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.
 
 
 
 
amis/demo/ts.worker.js

2 lines
4.5 MiB

/*! For license information please see ts.worker.js.LICENSE.txt */
!function(){"use strict";var e={52:function(e,n,t){t.d(n,{I5:function(){return p},hV:function(){return f}}),e=t.hmd(e);var r,i=function(e,n,t){if(t||2===arguments.length)for(var r,i=0,a=n.length;i<a;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))},a=function(){return a=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},a.apply(this,arguments)},o=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},s=function(e,n){var t,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(e,o)}catch(e){a=[6,e],r=0}finally{t=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},c=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t},l=(r=function(e,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},r(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});!function(e){function n(){var e={};return e.prev=e,{head:e,tail:e,size:0}}function t(e,n){return e===n||e!=e&&n!=n}function r(e){var n=e.prev;if(!n||n===e)throw new Error("Illegal state");return n}function i(e){for(;e;){var n=!e.prev;if(e=e.next,!n)return e}}function a(e,n){for(var i=e.tail;i!==e.head;i=r(i))if(t(i.key,n))return i}function o(e,n,t){var r=a(e,n);if(!r){var i=function(e,n){return{key:e,value:n,next:void 0,prev:void 0}}(n,t);return i.prev=e.tail,e.tail.next=i,e.tail=i,e.size++,i}r.value=t}function s(e,n){for(var i=e.tail;i!==e.head;i=r(i)){if(void 0===i.prev)throw new Error("Illegal state");if(t(i.key,n)){if(i.next)i.next.prev=i.prev;else{if(e.tail!==i)throw new Error("Illegal state");e.tail=i.prev}return i.prev.next=i.next,i.next=i.prev,i.prev=void 0,e.size--,i}}}function c(e){for(var n=e.tail;n!==e.head;){var t=r(n);n.next=e.head,n.prev=void 0,n=t}e.head.next=void 0,e.tail=e.head,e.size=0}function l(e,n){for(var t=e.head;t;)(t=i(t))&&n(t.value,t.key)}function u(e,n){if(e)for(var t=e.next();!t.done;t=e.next())n(t.value)}function d(e,n){return{current:e.head,selector:n}}function p(e){return e.current=i(e.current),e.current?{value:e.selector(e.current.key,e.current.value),done:!1}:{value:void 0,done:!0}}var f;(f=e.ShimCollections||(e.ShimCollections={})).createMapShim=function(e){var t=function(){function e(e,n){this._data=d(e,n)}return e.prototype.next=function(){return p(this._data)},e}();return function(){function r(t){var r=this;this._mapData=n(),u(e(t),(function(e){var n=e[0],t=e[1];return r.set(n,t)}))}return Object.defineProperty(r.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),r.prototype.get=function(e){var n;return null===(n=a(this._mapData,e))||void 0===n?void 0:n.value},r.prototype.set=function(e,n){return o(this._mapData,e,n),this},r.prototype.has=function(e){return!!a(this._mapData,e)},r.prototype.delete=function(e){return!!s(this._mapData,e)},r.prototype.clear=function(){c(this._mapData)},r.prototype.keys=function(){return new t(this._mapData,(function(e,n){return e}))},r.prototype.values=function(){return new t(this._mapData,(function(e,n){return n}))},r.prototype.entries=function(){return new t(this._mapData,(function(e,n){return[e,n]}))},r.prototype.forEach=function(e){l(this._mapData,e)},r}()},f.createSetShim=function(e){var t=function(){function e(e,n){this._data=d(e,n)}return e.prototype.next=function(){return p(this._data)},e}();return function(){function r(t){var r=this;this._mapData=n(),u(e(t),(function(e){return r.add(e)}))}return Object.defineProperty(r.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),r.prototype.add=function(e){return o(this._mapData,e,e),this},r.prototype.has=function(e){return!!a(this._mapData,e)},r.prototype.delete=function(e){return!!s(this._mapData,e)},r.prototype.clear=function(){c(this._mapData)},r.prototype.keys=function(){return new t(this._mapData,(function(e,n){return e}))},r.prototype.values=function(){return new t(this._mapData,(function(e,n){return n}))},r.prototype.entries=function(){return new t(this._mapData,(function(e,n){return[e,n]}))},r.prototype.forEach=function(e){l(this._mapData,e)},r}()}}(u||(u={})),function(e){var n,t;e.versionMajorMinor="4.4",e.version="4.4.4",(t=e.Comparison||(e.Comparison={}))[t.LessThan=-1]="LessThan",t[t.EqualTo=0]="EqualTo",t[t.GreaterThan=1]="GreaterThan",(n=e.NativeCollections||(e.NativeCollections={})).tryGetNativeMap=function(){return"undefined"!=typeof Map&&"entries"in Map.prototype&&1===new Map([[0,0]]).size?Map:void 0},n.tryGetNativeSet=function(){return"undefined"!=typeof Set&&"entries"in Set.prototype&&1===new Set([0]).size?Set:void 0}}(u||(u={})),function(e){function n(n,r,i){var a,o=null!==(a=e.NativeCollections[r]())&&void 0!==a?a:null===e.ShimCollections||void 0===e.ShimCollections?void 0:e.ShimCollections[i](t);if(o)return o;throw new Error("TypeScript requires an environment that provides a compatible native "+n+" implementation.")}function t(n){if(n){if(C(n))return _(n);if(n instanceof e.Map)return n.entries();if(n instanceof e.Set)return n.values();throw new Error("Iteration not supported.")}}function r(e,n,t){if(void 0===t&&(t=w),e)for(var r=0,i=e;r<i.length;r++)if(t(i[r],n))return!0;return!1}function a(e,n){if(e){if(!n)return e.length>0;for(var t=0,r=e;t<r.length;t++)if(n(r[t]))return!0}return!1}function o(e,n){return a(n)?a(e)?i(i([],e,!0),n,!0):n:e}function s(e,n){return n}function c(e){return e.map(s)}function l(e,n){return void 0===n?e:void 0===e?[n]:(e.push(n),e)}function u(e,n){return n<0?e.length+n:n}function d(e,n,t,r){if(void 0===n||0===n.length)return e;if(void 0===e)return n.slice(t,r);t=void 0===t?0:u(n,t),r=void 0===r?n.length:u(n,r);for(var i=t;i<r&&i<n.length;i++)void 0!==n[i]&&e.push(n[i]);return e}function p(e,n,t){return!r(e,n,t)&&(e.push(n),!0)}function f(e,n,t){n.sort((function(n,r){return t(e[n],e[r])||F(n,r)}))}function m(e,n){return 0===e.length?e:e.slice().sort(n)}function _(e){var n=0;return{next:function(){return n===e.length?{value:void 0,done:!0}:(n++,{value:e[n-1],done:!1})}}}function g(e,n,t,r,i){return y(e,t(n),t,r,i)}function y(e,n,t,r,i){if(!a(e))return-1;for(var o=i||0,s=e.length-1;o<=s;){var c=o+(s-o>>1);switch(r(t(e[c],c),n)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function h(e,n,t,r,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===r||r<0?0:r,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=t;o<=s;)c=n(c,e[o],o),o++;return c}}return t}e.Map=n("Map","tryGetNativeMap","createMapShim"),e.Set=n("Set","tryGetNativeSet","createSetShim"),e.getIterator=t,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.createMap=function(){return new e.Map},e.createMapFromTemplate=function(n){var t=new e.Map;for(var r in n)v.call(n,r)&&t.set(r,n[r]);return t},e.length=function(e){return e?e.length:0},e.forEach=function(e,n){if(e)for(var t=0;t<e.length;t++){var r=n(e[t],t);if(r)return r}},e.forEachRight=function(e,n){if(e)for(var t=e.length-1;t>=0;t--){var r=n(e[t],t);if(r)return r}},e.firstDefined=function(e,n){if(void 0!==e)for(var t=0;t<e.length;t++){var r=n(e[t],t);if(void 0!==r)return r}},e.firstDefinedIterator=function(e,n){for(;;){var t=e.next();if(t.done)return;var r=n(t.value);if(void 0!==r)return r}},e.reduceLeftIterator=function(e,n,t){var r=t;if(e)for(var i=e.next(),a=0;!i.done;i=e.next(),a++)r=n(r,i.value,a);return r},e.zipWith=function(n,t,r){var i=[];e.Debug.assertEqual(n.length,t.length);for(var a=0;a<n.length;a++)i.push(r(n[a],t[a],a));return i},e.zipToIterator=function(n,t){e.Debug.assertEqual(n.length,t.length);var r=0;return{next:function(){return r===n.length?{value:void 0,done:!0}:(r++,{value:[n[r-1],t[r-1]],done:!1})}}},e.zipToMap=function(n,t){e.Debug.assert(n.length===t.length);for(var r=new e.Map,i=0;i<n.length;++i)r.set(n[i],t[i]);return r},e.intersperse=function(e,n){if(e.length<=1)return e;for(var t=[],r=0,i=e.length;r<i;r++)r&&t.push(n),t.push(e[r]);return t},e.every=function(e,n){if(e)for(var t=0;t<e.length;t++)if(!n(e[t],t))return!1;return!0},e.find=function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(n(r,t))return r}},e.findLast=function(e,n){for(var t=e.length-1;t>=0;t--){var r=e[t];if(n(r,t))return r}},e.findIndex=function(e,n,t){for(var r=t||0;r<e.length;r++)if(n(e[r],r))return r;return-1},e.findLastIndex=function(e,n,t){for(var r=void 0===t?e.length-1:t;r>=0;r--)if(n(e[r],r))return r;return-1},e.findMap=function(n,t){for(var r=0;r<n.length;r++){var i=t(n[r],r);if(i)return i}return e.Debug.fail()},e.contains=r,e.arraysEqual=function(e,n,t){return void 0===t&&(t=w),e.length===n.length&&e.every((function(e,r){return t(e,n[r])}))},e.indexOfAnyCharCode=function(e,n,t){for(var i=t||0;i<e.length;i++)if(r(n,e.charCodeAt(i)))return i;return-1},e.countWhere=function(e,n){var t=0;if(e)for(var r=0;r<e.length;r++)n(e[r],r)&&t++;return t},e.filter=function(e,n){if(e){for(var t=e.length,r=0;r<t&&n(e[r]);)r++;if(r<t){var i=e.slice(0,r);for(r++;r<t;){var a=e[r];n(a)&&i.push(a),r++}return i}}return e},e.filterMutate=function(e,n){for(var t=0,r=0;r<e.length;r++)n(e[r],r,e)&&(e[t]=e[r],t++);e.length=t},e.clear=function(e){e.length=0},e.map=function(e,n){var t;if(e){t=[];for(var r=0;r<e.length;r++)t.push(n(e[r],r))}return t},e.mapIterator=function(e,n){return{next:function(){var t=e.next();return t.done?t:{value:n(t.value),done:!1}}}},e.sameMap=function(e,n){if(e)for(var t=0;t<e.length;t++){var r=e[t],i=n(r,t);if(r!==i){var a=e.slice(0,t);for(a.push(i),t++;t<e.length;t++)a.push(n(e[t],t));return a}}return e},e.flatten=function(e){for(var n=[],t=0,r=e;t<r.length;t++){var i=r[t];i&&(C(i)?d(n,i):n.push(i))}return n},e.flatMap=function(n,t){var r;if(n)for(var i=0;i<n.length;i++){var a=t(n[i],i);a&&(r=C(a)?d(r,a):l(r,a))}return r||e.emptyArray},e.flatMapToMutable=function(e,n){var t=[];if(e)for(var r=0;r<e.length;r++){var i=n(e[r],r);i&&(C(i)?d(t,i):t.push(i))}return t},e.flatMapIterator=function(n,t){var r=n.next();if(r.done)return e.emptyIterator;var i=a(r.value);return{next:function(){for(;;){var e=i.next();if(!e.done)return e;var t=n.next();if(t.done)return t;i=a(t.value)}}};function a(n){var r=t(n);return void 0===r?e.emptyIterator:C(r)?_(r):r}},e.sameFlatMap=function(e,n){var t;if(e)for(var r=0;r<e.length;r++){var i=e[r],a=n(i,r);(t||i!==a||C(a))&&(t||(t=e.slice(0,r)),C(a)?d(t,a):t.push(a))}return t||e},e.mapAllOrFail=function(e,n){for(var t=[],r=0;r<e.length;r++){var i=n(e[r],r);if(void 0===i)return;t.push(i)}return t},e.mapDefined=function(e,n){var t=[];if(e)for(var r=0;r<e.length;r++){var i=n(e[r],r);void 0!==i&&t.push(i)}return t},e.mapDefinedIterator=function(e,n){return{next:function(){for(;;){var t=e.next();if(t.done)return t;var r=n(t.value);if(void 0!==r)return{value:r,done:!1}}}}},e.mapDefinedEntries=function(n,t){if(n){var r=new e.Map;return n.forEach((function(e,n){var i=t(n,e);if(void 0!==i){var a=i[0],o=i[1];void 0!==a&&void 0!==o&&r.set(a,o)}})),r}},e.mapDefinedValues=function(n,t){if(n){var r=new e.Set;return n.forEach((function(e){var n=t(e);void 0!==n&&r.add(n)})),r}},e.getOrUpdate=function(e,n,t){if(e.has(n))return e.get(n);var r=t();return e.set(n,r),r},e.tryAddToSet=function(e,n){return!e.has(n)&&(e.add(n),!0)},e.emptyIterator={next:function(){return{value:void 0,done:!0}}},e.singleIterator=function(e){var n=!1;return{next:function(){var t=n;return n=!0,t?{value:void 0,done:!0}:{value:e,done:!1}}}},e.spanMap=function(e,n,t){var r;if(e){r=[];for(var i=e.length,a=void 0,o=void 0,s=0,c=0;s<i;){for(;c<i;){if(o=n(e[c],c),0===c)a=o;else if(o!==a)break;c++}if(s<c){var l=t(e.slice(s,c),a,s,c);l&&r.push(l),s=c}a=o,c++}}return r},e.mapEntries=function(n,t){if(n){var r=new e.Map;return n.forEach((function(e,n){var i=t(n,e),a=i[0],o=i[1];r.set(a,o)})),r}},e.some=a,e.getRangesWhere=function(e,n,t){for(var r,i=0;i<e.length;i++)n(e[i])?r=void 0===r?i:r:void 0!==r&&(t(r,i),r=void 0);void 0!==r&&t(r,e.length)},e.concatenate=o,e.indicesOf=c,e.deduplicate=function(e,n,t){return 0===e.length?[]:1===e.length?e.slice():t?function(e,n,t){var r=c(e);f(e,r,t);for(var i=e[r[0]],a=[r[0]],o=1;o<r.length;o++){var s=r[o],l=e[s];n(i,l)||(a.push(s),i=l)}return a.sort(),a.map((function(n){return e[n]}))}(e,n,t):function(e,n){for(var t=[],r=0,i=e;r<i.length;r++)p(t,i[r],n);return t}(e,n)},e.insertSorted=function(e,n,t){if(0!==e.length){var r=g(e,n,N,t);r<0&&e.splice(~r,0,n)}else e.push(n)},e.sortAndDeduplicate=function(n,t,r){return function(n,t){if(0===n.length)return e.emptyArray;for(var r=n[0],i=[r],a=1;a<n.length;a++){var o=n[a];switch(t(o,r)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}i.push(r=o)}return i}(m(n,t),r||t||B)},e.arrayIsSorted=function(e,n){if(e.length<2)return!0;for(var t=e[0],r=0,i=e.slice(1);r<i.length;r++){var a=i[r];if(1===n(t,a))return!1;t=a}return!0},e.arrayIsEqualTo=function(e,n,t){if(void 0===t&&(t=w),!e||!n)return e===n;if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(!t(e[r],n[r],r))return!1;return!0},e.compact=function(e){var n;if(e)for(var t=0;t<e.length;t++){var r=e[t];!n&&r||(n||(n=e.slice(0,t)),r&&n.push(r))}return n||e},e.relativeComplement=function(n,t,r){if(!t||!n||0===t.length||0===n.length)return t;var i=[];e:for(var a=0,o=0;o<t.length;o++){o>0&&e.Debug.assertGreaterThanOrEqual(r(t[o],t[o-1]),0);n:for(var s=a;a<n.length;a++)switch(a>s&&e.Debug.assertGreaterThanOrEqual(r(n[a],n[a-1]),0),r(t[o],n[a])){case-1:i.push(t[o]);continue e;case 0:continue e;case 1:continue n}}return i},e.sum=function(e,n){for(var t=0,r=0,i=e;r<i.length;r++)t+=i[r][n];return t},e.append=l,e.combine=function(e,n){return void 0===e?n:void 0===n?e:C(e)?C(n)?o(e,n):l(e,n):C(n)?l(n,e):[e,n]},e.addRange=d,e.pushIfUnique=p,e.appendIfUnique=function(e,n,t){return e?(p(e,n,t),e):[n]},e.sort=m,e.arrayIterator=_,e.arrayReverseIterator=function(e){var n=e.length;return{next:function(){return 0===n?{value:void 0,done:!0}:(n--,{value:e[n],done:!1})}}},e.stableSort=function(e,n){var t=c(e);return f(e,t,n),t.map((function(n){return e[n]}))},e.rangeEquals=function(e,n,t,r){for(;t<r;){if(e[t]!==n[t])return!1;t++}return!0},e.elementAt=function(e,n){if(e&&(n=u(e,n))<e.length)return e[n]},e.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},e.first=function(n){return e.Debug.assert(0!==n.length),n[0]},e.lastOrUndefined=function(e){return 0===e.length?void 0:e[e.length-1]},e.last=function(n){return e.Debug.assert(0!==n.length),n[n.length-1]},e.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},e.singleOrMany=function(e){return e&&1===e.length?e[0]:e},e.replaceElement=function(e,n,t){var r=e.slice(0);return r[n]=t,r},e.binarySearch=g,e.binarySearchKey=y,e.reduceLeft=h;var v=Object.prototype.hasOwnProperty;function b(e,n){return v.call(e,n)}function E(e){var n=[];for(var t in e)v.call(e,t)&&n.push(t);return n}e.hasProperty=b,e.getProperty=function(e,n){return v.call(e,n)?e[n]:void 0},e.getOwnKeys=E,e.getAllKeys=function(e){var n=[];do{for(var t=0,r=Object.getOwnPropertyNames(e);t<r.length;t++)p(n,r[t])}while(e=Object.getPrototypeOf(e));return n},e.getOwnValues=function(e){var n=[];for(var t in e)v.call(e,t)&&n.push(e[t]);return n};var T=Object.entries||function(e){for(var n=E(e),t=Array(n.length),r=0;r<n.length;r++)t[r]=[n[r],e[n[r]]];return t};function S(e,n){for(var t=[],r=e.next();!r.done;r=e.next())t.push(n?n(r.value):r.value);return t}function x(e,n,t){void 0===t&&(t=N);for(var r=L(),i=0,a=e;i<a.length;i++){var o=a[i];r.add(n(o),t(o))}return r}function L(){var n=new e.Map;return n.add=D,n.remove=A,n}function D(e,n){var t=this.get(e);return t?t.push(n):this.set(e,t=[n]),t}function A(e,n){var t=this.get(e);t&&(J(t,n),t.length||this.delete(e))}function C(e){return Array.isArray?Array.isArray(e):e instanceof Array}function I(e){}function N(e){return e}function k(e){return e.toLowerCase()}e.getEntries=function(e){return e?T(e):[]},e.arrayOf=function(e,n){for(var t=new Array(e),r=0;r<e;r++)t[r]=n(r);return t},e.arrayFrom=S,e.assign=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];for(var r=0,i=n;r<i.length;r++){var a=i[r];if(void 0!==a)for(var o in a)b(a,o)&&(e[o]=a[o])}return e},e.equalOwnProperties=function(e,n,t){if(void 0===t&&(t=w),e===n)return!0;if(!e||!n)return!1;for(var r in e)if(v.call(e,r)){if(!v.call(n,r))return!1;if(!t(e[r],n[r]))return!1}for(var r in n)if(v.call(n,r)&&!v.call(e,r))return!1;return!0},e.arrayToMap=function(n,t,r){void 0===r&&(r=N);for(var i=new e.Map,a=0,o=n;a<o.length;a++){var s=o[a],c=t(s);void 0!==c&&i.set(c,r(s))}return i},e.arrayToNumericMap=function(e,n,t){void 0===t&&(t=N);for(var r=[],i=0,a=e;i<a.length;i++){var o=a[i];r[n(o)]=t(o)}return r},e.arrayToMultiMap=x,e.group=function(e,n,t){return void 0===t&&(t=N),S(x(e,n).values(),t)},e.clone=function(e){var n={};for(var t in e)v.call(e,t)&&(n[t]=e[t]);return n},e.extend=function(e,n){var t={};for(var r in n)v.call(n,r)&&(t[r]=n[r]);for(var r in e)v.call(e,r)&&(t[r]=e[r]);return t},e.copyProperties=function(e,n){for(var t in n)v.call(n,t)&&(e[t]=n[t])},e.maybeBind=function(e,n){return n?n.bind(e):void 0},e.createMultiMap=L,e.createUnderscoreEscapedMultiMap=function(){return L()},e.isArray=C,e.toArray=function(e){return C(e)?e:[e]},e.isString=function(e){return"string"==typeof e},e.isNumber=function(e){return"number"==typeof e},e.tryCast=function(e,n){return void 0!==e&&n(e)?e:void 0},e.cast=function(n,t){return void 0!==n&&t(n)?n:e.Debug.fail("Invalid cast. The supplied value "+n+" did not pass the test '"+e.Debug.getFunctionName(t)+"'.")},e.noop=I,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.returnUndefined=function(){},e.identity=N,e.toLowerCase=k;var R,O=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function P(e){return O.test(e)?e.replace(O,k):e}function w(e,n){return e===n}function M(e,n){return e===n?0:void 0===e?-1:void 0===n?1:e<n?-1:1}function F(e,n){return M(e,n)}function G(e,n){return e===n?0:void 0===e?-1:void 0===n?1:(e=e.toUpperCase())<(n=n.toUpperCase())?-1:e>n?1:0}function B(e,n){return M(e,n)}e.toFileNameLowerCase=P,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var n;return function(){return e&&(n=e(),e=void 0),n}},e.memoizeOne=function(n){var t=new e.Map;return function(e){var r=typeof e+":"+e,i=t.get(r);return void 0!==i||t.has(r)||(i=n(e),t.set(r,i)),i}},e.compose=function(e,n,t,r,i){if(i){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return function(e){return h(a,(function(e,n){return n(e)}),e)}}return r?function(i){return r(t(n(e(i))))}:t?function(r){return t(n(e(r)))}:n?function(t){return n(e(t))}:e?function(n){return e(n)}:function(e){return e}},(R=e.AssertionLevel||(e.AssertionLevel={}))[R.None=0]="None",R[R.Normal=1]="Normal",R[R.Aggressive=2]="Aggressive",R[R.VeryAggressive=3]="VeryAggressive",e.equateValues=w,e.equateStringsCaseInsensitive=function(e,n){return e===n||void 0!==e&&void 0!==n&&e.toUpperCase()===n.toUpperCase()},e.equateStringsCaseSensitive=function(e,n){return w(e,n)},e.compareValues=F,e.compareTextSpans=function(e,n){return F(null==e?void 0:e.start,null==n?void 0:n.start)||F(null==e?void 0:e.length,null==n?void 0:n.length)},e.min=function(e,n,t){return-1===t(e,n)?e:n},e.compareStringsCaseInsensitive=G,e.compareStringsCaseSensitive=B,e.getStringComparer=function(e){return e?G:B};var U,V,j=function(){var e,n,t="object"==typeof Intl&&"function"==typeof Intl.Collator?i:"function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?a:o;return function(r){return void 0===r?e||(e=t(r)):"en-US"===r?n||(n=t(r)):t(r)};function r(e,n,t){if(e===n)return 0;if(void 0===e)return-1;if(void 0===n)return 1;var r=t(e,n);return r<0?-1:r>0?1:0}function i(e){var n=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,t){return r(e,t,n)}}function a(e){return void 0!==e?o():function(e,t){return r(e,t,n)};function n(e,n){return e.localeCompare(n)}}function o(){return function(n,t){return r(n,t,e)};function e(e,t){return n(e.toUpperCase(),t.toUpperCase())||n(e,t)}function n(e,n){return e<n?-1:e>n?1:0}}}();function K(e,n,t){for(var r=new Array(n.length+1),i=new Array(n.length+1),a=t+.01,o=0;o<=n.length;o++)r[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>t?o-t:1),l=Math.floor(n.length>t+o?t+o:n.length);i[0]=o;for(var u=o,d=1;d<c;d++)i[d]=a;for(d=c;d<=l;d++){var p=e[o-1].toLowerCase()===n[d-1].toLowerCase()?r[d-1]+.1:r[d-1]+2,f=s===n.charCodeAt(d-1)?r[d-1]:Math.min(r[d]+1,i[d-1]+1,p);i[d]=f,u=Math.min(u,f)}for(d=l+1;d<=n.length;d++)i[d]=a;if(u>t)return;var m=r;r=i,i=m}var _=r[n.length];return _>t?void 0:_}function H(e,n){var t=e.length-n.length;return t>=0&&e.indexOf(n,t)===t}function W(e,n){for(var t=n;t<e.length-1;t++)e[t]=e[t+1];e.pop()}function z(e,n){e[n]=e[e.length-1],e.pop()}function J(e,n){return function(e,t){for(var r=0;r<e.length;r++)if(e[r]===n)return z(e,r),!0;return!1}(e)}function q(e,n){return 0===e.lastIndexOf(n,0)}function X(e,n){var t=e.prefix,r=e.suffix;return n.length>=t.length+r.length&&q(n,t)&&H(n,r)}function Y(e,n,t,r){for(var i=0,a=e[r];i<a.length;i++){var o=a[i],s=void 0;t?(s=t.slice()).push(o):s=[o],r===e.length-1?n.push(s):Y(e,n,s,r+1)}}e.getUILocale=function(){return V},e.setUILocale=function(e){V!==e&&(V=e,U=void 0)},e.compareStringsCaseSensitiveUI=function(e,n){return(U||(U=j(V)))(e,n)},e.compareProperties=function(e,n,t,r){return e===n?0:void 0===e?-1:void 0===n?1:r(e[t],n[t])},e.compareBooleans=function(e,n){return F(e?1:0,n?1:0)},e.getSpellingSuggestion=function(n,t,r){for(var i,a=Math.min(2,Math.floor(.34*n.length)),o=Math.floor(.4*n.length)+1,s=0,c=t;s<c.length;s++){var l=c[s],u=r(l);if(void 0!==u&&Math.abs(u.length-n.length)<=a){if(u===n)continue;if(u.length<3&&u.toLowerCase()!==n.toLowerCase())continue;var d=K(n,u,o-.1);if(void 0===d)continue;e.Debug.assert(d<o),o=d,i=l}}return i},e.endsWith=H,e.removeSuffix=function(e,n){return H(e,n)?e.slice(0,e.length-n.length):e},e.tryRemoveSuffix=function(e,n){return H(e,n)?e.slice(0,e.length-n.length):void 0},e.stringContains=function(e,n){return-1!==e.indexOf(n)},e.removeMinAndVersionNumbers=function(e){for(var n=e.length,t=n-1;t>0;t--){var r=e.charCodeAt(t);if(r>=48&&r<=57)do{--t,r=e.charCodeAt(t)}while(t>0&&r>=48&&r<=57);else{if(!(t>4)||110!==r&&78!==r)break;if(--t,105!==(r=e.charCodeAt(t))&&73!==r)break;if(--t,109!==(r=e.charCodeAt(t))&&77!==r)break;--t,r=e.charCodeAt(t)}if(45!==r&&46!==r)break;n=t}return n===e.length?e:e.slice(0,n)},e.orderedRemoveItem=function(e,n){for(var t=0;t<e.length;t++)if(e[t]===n)return W(e,t),!0;return!1},e.orderedRemoveItemAt=W,e.unorderedRemoveItemAt=z,e.unorderedRemoveItem=J,e.createGetCanonicalFileName=function(e){return e?N:P},e.patternText=function(e){return e.prefix+"*"+e.suffix},e.matchedText=function(n,t){return e.Debug.assert(X(n,t)),t.substring(n.prefix.length,t.length-n.suffix.length)},e.findBestPatternMatch=function(e,n,t){for(var r,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=n(s);X(c,t)&&c.prefix.length>i&&(i=c.prefix.length,r=s)}return r},e.startsWith=q,e.removePrefix=function(e,n){return q(e,n)?e.substr(n.length):e},e.tryRemovePrefix=function(e,n,t){return void 0===t&&(t=N),q(t(e),t(n))?e.substring(n.length):void 0},e.and=function(e,n){return function(t){return e(t)&&n(t)}},e.or=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(var r=0,i=e;r<i.length;r++)if(i[r].apply(void 0,n))return!0;return!1}},e.not=function(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return!e.apply(void 0,n)}},e.assertType=function(e){},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,n,t,r,i,a){a=a||I;for(var o=0,s=0,c=e.length,l=n.length,u=!1;o<c&&s<l;){var d=e[o],p=n[s],f=t(d,p);-1===f?(r(d),o++,u=!0):1===f?(i(p),s++,u=!0):(a(p,d),o++,s++)}for(;o<c;)r(e[o++]),u=!0;for(;s<l;)i(n[s++]),u=!0;return u},e.fill=function(e,n){for(var t=Array(e),r=0;r<e;r++)t[r]=n(r);return t},e.cartesianProduct=function(e){var n=[];return Y(e,n,void 0,0),n},e.padLeft=function(e,n,t){return void 0===t&&(t=" "),n<=e.length?e:t.repeat(n-e.length)+e},e.padRight=function(e,n,t){return void 0===t&&(t=" "),n<=e.length?e:e+t.repeat(n-e.length)},e.takeWhile=function(e,n){for(var t=e.length,r=0;r<t&&n(e[r]);)r++;return e.slice(0,r)},e.trimString=String.prototype.trim?function(e){return e.trim()}:function(n){return e.trimStringEnd(e.trimStringStart(n))},e.trimStringEnd=String.prototype.trimEnd?function(e){return e.trimEnd()}:function(n){for(var t=n.length-1;t>=0&&e.isWhiteSpaceLike(n.charCodeAt(t));)t--;return n.slice(0,t+1)},e.trimStringStart=String.prototype.trimStart?function(e){return e.trimStart()}:function(e){return e.replace(/^\s+/g,"")}}(u||(u={})),function(e){var n;!function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose"}(n=e.LogLevel||(e.LogLevel={})),function(t){var r,i,a=0;function o(){return null!=r?r:r=new e.Version(e.version)}function s(e){return t.currentLogLevel<=e}function c(e,n){t.loggingHost&&s(e)&&t.loggingHost.log(e,n)}function l(e){c(n.Info,e)}t.currentLogLevel=n.Warning,t.isDebugging=!1,t.getTypeScriptVersion=o,t.shouldLog=s,t.log=l,(i=l=t.log||(t.log={})).error=function(e){c(n.Error,e)},i.warn=function(e){c(n.Warning,e)},i.log=function(e){c(n.Info,e)},i.trace=function(e){c(n.Verbose,e)};var u={};function d(e){return a>=e}function p(n,r){return!!d(n)||(u[r]={level:n,assertion:t[r]},t[r]=e.noop,!1)}function f(e,n){var t=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(t,n||f),t}function m(e,n,t,r){e||(n=n?"False expression: "+n:"False expression.",t&&(n+="\r\nVerbose Debug Information: "+("string"==typeof t?t:t())),f(n,r||m))}function _(e,n,t){null==e&&f(n,t||_)}function g(e,n,t){return _(e,n,t||g),e}function y(e,n,t){for(var r=0,i=e;r<i.length;r++)_(i[r],n,t||y)}function h(e,n,t){return y(e,n,t||h),e}function v(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var n=Function.prototype.toString.call(e),t=/^function\s+([\w\$]+)\s*\(/.exec(n);return t?t[1]:""}function b(n,t,r){void 0===n&&(n=0);var i=function(n){var t=[];for(var r in n){var i=n[r];"number"==typeof i&&t.push([i,r])}return e.stableSort(t,(function(n,t){return e.compareValues(n[0],t[0])}))}(t);if(0===n)return i.length>0&&0===i[0][0]?i[0][1]:"0";if(r){for(var a="",o=n,s=0,c=i;s<c.length;s++){var l=c[s],u=l[0],d=l[1];if(u>n)break;0!==u&&u&n&&(a=a+(a?"|":"")+d,o&=~u)}if(0===o)return a}else for(var p=0,f=i;p<f.length;p++){var m=f[p];if(u=m[0],d=m[1],u===n)return d}return n.toString()}function E(n){return b(n,e.SyntaxKind,!1)}function T(n){return b(n,e.NodeFlags,!0)}function S(n){return b(n,e.ModifierFlags,!0)}function x(n){return b(n,e.TransformFlags,!0)}function L(n){return b(n,e.EmitFlags,!0)}function D(n){return b(n,e.SymbolFlags,!0)}function A(n){return b(n,e.TypeFlags,!0)}function C(n){return b(n,e.SignatureFlags,!0)}function I(n){return b(n,e.ObjectFlags,!0)}function N(n){return b(n,e.FlowFlags,!0)}t.getAssertionLevel=function(){return a},t.setAssertionLevel=function(n){var r=a;if(a=n,n>r)for(var i=0,o=e.getOwnKeys(u);i<o.length;i++){var s=o[i],c=u[s];void 0!==c&&t[s]!==c.assertion&&n>=c.level&&(t[s]=c,u[s]=void 0)}},t.shouldAssert=d,t.fail=f,t.failBadSyntaxKind=function e(n,t,r){return f((t||"Unexpected node.")+"\r\nNode "+E(n.kind)+" was unexpected.",r||e)},t.assert=m,t.assertEqual=function e(n,t,r,i,a){n!==t&&f("Expected "+n+" === "+t+". "+(r?i?r+" "+i:r:""),a||e)},t.assertLessThan=function e(n,t,r,i){n>=t&&f("Expected "+n+" < "+t+". "+(r||""),i||e)},t.assertLessThanOrEqual=function e(n,t,r){n>t&&f("Expected "+n+" <= "+t,r||e)},t.assertGreaterThanOrEqual=function e(n,t,r){n<t&&f("Expected "+n+" >= "+t,r||e)},t.assertIsDefined=_,t.checkDefined=g,t.assertDefined=g,t.assertEachIsDefined=y,t.checkEachDefined=h,t.assertEachDefined=h,t.assertNever=function n(t,r,i){return void 0===r&&(r="Illegal value:"),f(r+" "+("object"==typeof t&&e.hasProperty(t,"kind")&&e.hasProperty(t,"pos")&&E?"SyntaxKind: "+E(t.kind):JSON.stringify(t)),i||n)},t.assertEachNode=function n(t,r,i,a){p(1,"assertEachNode")&&m(void 0===r||e.every(t,r),i||"Unexpected node.",(function(){return"Node array did not pass test '"+v(r)+"'."}),a||n)},t.assertNode=function e(n,t,r,i){p(1,"assertNode")&&m(void 0!==n&&(void 0===t||t(n)),r||"Unexpected node.",(function(){return"Node "+E(null==n?void 0:n.kind)+" did not pass test '"+v(t)+"'."}),i||e)},t.assertNotNode=function e(n,t,r,i){p(1,"assertNotNode")&&m(void 0===n||void 0===t||!t(n),r||"Unexpected node.",(function(){return"Node "+E(n.kind)+" should not have passed test '"+v(t)+"'."}),i||e)},t.assertOptionalNode=function e(n,t,r,i){p(1,"assertOptionalNode")&&m(void 0===t||void 0===n||t(n),r||"Unexpected node.",(function(){return"Node "+E(null==n?void 0:n.kind)+" did not pass test '"+v(t)+"'."}),i||e)},t.assertOptionalToken=function e(n,t,r,i){p(1,"assertOptionalToken")&&m(void 0===t||void 0===n||n.kind===t,r||"Unexpected node.",(function(){return"Node "+E(null==n?void 0:n.kind)+" was not a '"+E(t)+"' token."}),i||e)},t.assertMissingNode=function e(n,t,r){p(1,"assertMissingNode")&&m(void 0===n,t||"Unexpected node.",(function(){return"Node "+E(n.kind)+" was unexpected'."}),r||e)},t.type=function(e){},t.getFunctionName=v,t.formatSymbol=function(n){return"{ name: "+e.unescapeLeadingUnderscores(n.escapedName)+"; flags: "+D(n.flags)+"; declarations: "+e.map(n.declarations,(function(e){return E(e.kind)}))+" }"},t.formatEnum=b,t.formatSyntaxKind=E,t.formatNodeFlags=T,t.formatModifierFlags=S,t.formatTransformFlags=x,t.formatEmitFlags=L,t.formatSymbolFlags=D,t.formatTypeFlags=A,t.formatSignatureFlags=C,t.formatObjectFlags=I,t.formatFlowFlags=N;var k,R,O,P=!1;function w(e){return function(){if(G(),!k)throw new Error("Debugging helpers could not be loaded.");return k}().formatControlFlowGraph(e)}function M(n){"__debugFlowFlags"in n||Object.defineProperties(n,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",n=-2048&this.flags;return e+(n?" ("+N(n)+")":"")}},__debugFlowFlags:{get:function(){return b(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return w(this)}}})}function F(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return"NodeArray "+String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]")}}})}function G(){if(!P){var n,t;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var n=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return n+" '"+e.symbolName(this)+"'"+(t?" ("+D(t)+")":"")}},__debugFlags:{get:function(){return D(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var n=98304&this.flags?"NullableType":384&this.flags?"LiteralType "+JSON.stringify(this.value):2048&this.flags?"LiteralType "+(this.value.negative?"-":"")+this.value.base10Value+"n":8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType "+this.intrinsicName:1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return n+(this.symbol?" '"+e.symbolName(this.symbol)+"'":"")+(t?" ("+I(t)+")":"")}},__debugFlags:{get:function(){return A(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?I(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===n&&"function"==typeof WeakMap&&(n=new WeakMap),n),t=null==e?void 0:e.get(this);return void 0===t&&(t=this.checker.typeToString(this),null==e||e.set(this,t)),t}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return C(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var r=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];r<i.length;r++){var a=i[r];a.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(a.prototype,{__tsDebuggerDisplay:{value:function(){return(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":E(this.kind))+(this.flags?" ("+T(this.flags)+")":"")}},__debugKind:{get:function(){return E(this.kind)}},__debugNodeFlags:{get:function(){return T(this.flags)}},__debugModifierFlags:{get:function(){return S(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return x(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return L(e.getEmitFlags(this))}},__debugGetText:{value:function(n){if(e.nodeIsSynthesized(this))return"";var r=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),i=null==r?void 0:r.get(this);if(void 0===i){var a=e.getParseTreeNode(this),o=a&&e.getSourceFileOfNode(a);i=o?e.getSourceTextOfNodeFromSourceFile(o,a,n):"",null==r||r.set(this,i)}return i}}})}try{if(e.sys&&e.sys.require){e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath()));var o=void 0;o.error||(o.module.init(e),k=o.module)}}catch(e){}P=!0}}function B(n,t,r,i,a){var o=t?"DeprecationError: ":"DeprecationWarning: ";return o+="'"+n+"' ",o+=i?"has been deprecated since v"+i:"is deprecated",(o+=t?" and can no longer be used.":r?" and will no longer be usable after v"+r+".":".")+(a?" "+e.formatStringFromArgs(a,[n],0):"")}t.printControlFlowGraph=function(e){return console.log(w(e))},t.formatControlFlowGraph=w,t.attachFlowNodeDebugInfo=function(e){P&&("function"==typeof Object.setPrototypeOf?(R||M(R=Object.create(Object.prototype)),Object.setPrototypeOf(e,R)):M(e))},t.attachNodeArrayDebugInfo=function(e){P&&("function"==typeof Object.setPrototypeOf?(O||F(O=Object.create(Array.prototype)),Object.setPrototypeOf(e,O)):F(e))},t.enableDebugInfo=G,t.deprecate=function(n,t){return function(e,n){return function(){return e(),n.apply(this,arguments)}}(function(n,t){var r,i;void 0===t&&(t={});var a="string"==typeof t.typeScriptVersion?new e.Version(t.typeScriptVersion):null!==(r=t.typeScriptVersion)&&void 0!==r?r:o(),s="string"==typeof t.errorAfter?new e.Version(t.errorAfter):t.errorAfter,c="string"==typeof t.warnAfter?new e.Version(t.warnAfter):t.warnAfter,u="string"==typeof t.since?new e.Version(t.since):null!==(i=t.since)&&void 0!==i?i:c,d=t.error||s&&a.compareTo(s)<=0,p=!c||a.compareTo(c)>=0;return d?function(e,n,t,r){var i=B(e,!0,n,t,r);return function(){throw new TypeError(i)}}(n,s,u,t.message):p?function(e,n,t,r){var i=!1;return function(){i||(l.warn(B(e,!1,n,t,r)),i=!0)}}(n,s,u,t.message):e.noop}(v(n),t),n)}}(e.Debug||(e.Debug={}))}(u||(u={})),function(e){var n=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,t=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,r=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function n(n,i,a,s,c){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof n){var l=e.Debug.checkDefined(o(n),"Invalid version");n=l.major,i=l.minor,a=l.patch,s=l.prerelease,c=l.build}e.Debug.assert(n>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||t.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||r.test(c),"Invalid argument: build"),this.major=n,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return n.tryParse=function(e){var t=o(e);if(t)return new n(t.major,t.minor,t.patch,t.prerelease,t.build)},n.prototype.compareTo=function(n){return this===n?0:void 0===n?1:e.compareValues(this.major,n.major)||e.compareValues(this.minor,n.minor)||e.compareValues(this.patch,n.patch)||function(n,t){if(n===t)return 0;if(0===n.length)return 0===t.length?0:1;if(0===t.length)return-1;for(var r=Math.min(n.length,t.length),a=0;a<r;a++){var o=n[a],s=t[a];if(o!==s){var c=i.test(o),l=i.test(s);if(c||l){if(c!==l)return c?-1:1;if(u=e.compareValues(+o,+s))return u}else{var u;if(u=e.compareStringsCaseSensitive(o,s))return u}}}return e.compareValues(n.length,t.length)}(this.prerelease,n.prerelease)},n.prototype.increment=function(t){switch(t){case"major":return new n(this.major+1,0,0);case"minor":return new n(this.major,this.minor+1,0);case"patch":return new n(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(t)}},n.prototype.toString=function(){var n=this.major+"."+this.minor+"."+this.patch;return e.some(this.prerelease)&&(n+="-"+this.prerelease.join(".")),e.some(this.build)&&(n+="+"+this.build.join(".")),n},n.zero=new n(0,0,0),n}();function o(e){var i=n.exec(e);if(i){var a=i[1],o=i[2],s=void 0===o?"0":o,c=i[3],l=void 0===c?"0":c,u=i[4],d=void 0===u?"":u,p=i[5],f=void 0===p?"":p;if((!d||t.test(d))&&(!f||r.test(f)))return{major:parseInt(a,10),minor:parseInt(s,10),patch:parseInt(l,10),prerelease:d,build:f}}}e.Version=a;var s=function(){function n(n){this._alternatives=n?e.Debug.checkDefined(f(n),"Invalid range spec."):e.emptyArray}return n.tryParse=function(e){var t=f(e);if(t){var r=new n("");return r._alternatives=t,r}},n.prototype.test=function(e){return"string"==typeof e&&(e=new a(e)),function(e,n){if(0===n.length)return!0;for(var t=0,r=n;t<r.length;t++)if(v(e,r[t]))return!0;return!1}(e,this._alternatives)},n.prototype.toString=function(){return n=this._alternatives,e.map(n,E).join(" || ")||"*";var n},n}();e.VersionRange=s;var c=/\|\|/g,l=/\s+/g,u=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,d=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,p=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function f(n){for(var t=[],r=0,i=e.trimString(n).split(c);r<i.length;r++){var a=i[r];if(a){var o=[];a=e.trimString(a);var s=d.exec(a);if(s){if(!_(s[1],s[2],o))return}else for(var u=0,f=a.split(l);u<f.length;u++){var m=f[u],y=p.exec(e.trimString(m));if(!y||!g(y[1],y[2],o))return}t.push(o)}}return t}function m(e){var n=u.exec(e);if(n){var t=n[1],r=n[2],i=void 0===r?"*":r,o=n[3],s=void 0===o?"*":o,c=n[4],l=n[5];return{version:new a(y(t)?0:parseInt(t,10),y(t)||y(i)?0:parseInt(i,10),y(t)||y(i)||y(s)?0:parseInt(s,10),c,l),major:t,minor:i,patch:s}}}function _(e,n,t){var r=m(e);if(!r)return!1;var i=m(n);return!!i&&(y(r.major)||t.push(h(">=",r.version)),y(i.major)||t.push(y(i.minor)?h("<",i.version.increment("major")):y(i.patch)?h("<",i.version.increment("minor")):h("<=",i.version)),!0)}function g(e,n,t){var r=m(n);if(!r)return!1;var i=r.version,o=r.major,s=r.minor,c=r.patch;if(y(o))"<"!==e&&">"!==e||t.push(h("<",a.zero));else switch(e){case"~":t.push(h(">=",i)),t.push(h("<",i.increment(y(s)?"major":"minor")));break;case"^":t.push(h(">=",i)),t.push(h("<",i.increment(i.major>0||y(s)?"major":i.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":t.push(h(e,i));break;case"<=":case">":t.push(y(s)?h("<="===e?"<":">=",i.increment("major")):y(c)?h("<="===e?"<":">=",i.increment("minor")):h(e,i));break;case"=":case void 0:y(s)||y(c)?(t.push(h(">=",i)),t.push(h("<",i.increment(y(s)?"major":"minor")))):t.push(h("=",i));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function h(e,n){return{operator:e,operand:n}}function v(e,n){for(var t=0,r=n;t<r.length;t++){var i=r[t];if(!b(e,i.operator,i.operand))return!1}return!0}function b(n,t,r){var i=n.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(t)}}function E(n){return e.map(n,T).join(" ")}function T(e){return""+e.operator+e.operand}}(u||(u={})),function(e){function n(e,n){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof n}var t=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&n(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser)try{var t,r={},i=r.performance,a=r.PerformanceObserver;if(n(i,a)){t=i;var o=new e.Version(process.versions.node);return new e.VersionRange("<12.16.3 || 13 <13.13").test(o)&&(t={get timeOrigin(){return i.timeOrigin},now:function(){return i.now()},mark:function(e){return i.mark(e)},measure:function(e,n,t){void 0===n&&(n="nodeStart"),void 0===t&&(t="__performance.measure-fix__",i.mark(t)),i.measure(e,n,t),"__performance.measure-fix__"===t&&i.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:t,PerformanceObserver:a}}}catch(e){}}(),r=null==t?void 0:t.performance;e.tryGetNativePerformanceHooks=function(){return t},e.timestamp=r?function(){return r.now()}:Date.now?Date.now:function(){return+new Date}}(u||(u={})),function(e){!function(n){var t,r;function i(n,t,r){var i=0;return{enter:function(){1==++i&&u(t)},exit:function(){0==--i?(u(r),d(n,t,r)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}n.createTimerIf=function(e,t,r,a){return e?i(t,r,a):n.nullTimer},n.createTimer=i,n.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,l=new e.Map;function u(n){var t;if(a){var i=null!==(t=c.get(n))&&void 0!==t?t:0;c.set(n,i+1),s.set(n,e.timestamp()),null==r||r.mark(n)}}function d(n,t,i){var c,u;if(a){var d=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),p=null!==(u=void 0!==t?s.get(t):void 0)&&void 0!==u?u:o,f=l.get(n)||0;l.set(n,f+(d-p)),null==r||r.measure(n,t,i)}}n.mark=u,n.measure=d,n.getCount=function(e){return c.get(e)||0},n.getDuration=function(e){return l.get(e)||0},n.forEachMeasure=function(e){l.forEach((function(n,t){return e(t,n)}))},n.isEnabled=function(){return a},n.enable=function(n){var i;return void 0===n&&(n=e.sys),a||(a=!0,t||(t=e.tryGetNativePerformanceHooks()),t&&(o=t.performance.timeOrigin,(t.shouldWriteNativeEvents||(null===(i=null==n?void 0:n.cpuProfilingEnabled)||void 0===i?void 0:i.call(n))||(null==n?void 0:n.debugMode))&&(r=t.performance))),!0},n.disable=function(){a&&(s.clear(),c.clear(),l.clear(),r=void 0,a=!1)}}(e.performance||(e.performance={}))}(u||(u={})),function(e){var n,t={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{process.env.TS_ETW_MODULE_PATH,n=void 0}catch(e){n=void 0}e.perfLogger=n&&n.logEvent?n:t}(u||(u={})),function(e){var n;!function(n){var t,r,i,o,s=0,c=0,l=[],u=[];n.startTracing=function(o,d,p){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===t)try{t=void 0}catch(e){throw new Error("tracing requires having fs\n(original error: "+(e.message||e)+")")}r=o,l.length=0,void 0===i&&(i=e.combinePaths(d,"legend.json")),t.existsSync(d)||t.mkdirSync(d,{recursive:!0});var f="build"===r?"."+process.pid+"-"+ ++s:"server"===r?"."+process.pid:"",m=e.combinePaths(d,"trace"+f+".json"),_=e.combinePaths(d,"types"+f+".json");u.push({configFilePath:p,tracePath:m,typesPath:_}),c=t.openSync(m,"w"),e.tracing=n;var g={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};t.writeSync(c,"[\n"+[a({name:"process_name",args:{name:"tsc"}},g),a({name:"thread_name",args:{name:"Main"}},g),a(a({name:"TracingStartedInBrowser"},g),{cat:"disabled-by-default-devtools.timeline"})].map((function(e){return JSON.stringify(e)})).join(",\n"))},n.stopTracing=function(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!l.length==("server"!==r)),t.writeSync(c,"\n]\n"),t.closeSync(c),e.tracing=void 0,l.length?function(n){var r,i,o,s,c,l,d,p,f,m,g,y,h,v,b,E,T,S,x,L,D,A;e.performance.mark("beginDumpTypes");var C=u[u.length-1].typesPath,I=t.openSync(C,"w"),N=new e.Map;t.writeSync(I,"[");for(var k=n.length,R=0;R<k;R++){var O=n[R],P=O.objectFlags,w=null!==(r=O.aliasSymbol)&&void 0!==r?r:O.symbol,M=void 0;if(16&P|2944&O.flags)try{M=null===(i=O.checker)||void 0===i?void 0:i.typeToString(O)}catch(e){M=void 0}var F={};if(8388608&O.flags){var G=O;F={indexedAccessObjectType:null===(o=G.objectType)||void 0===o?void 0:o.id,indexedAccessIndexType:null===(s=G.indexType)||void 0===s?void 0:s.id}}var B={};if(4&P){var U=O;B={instantiatedType:null===(c=U.target)||void 0===c?void 0:c.id,typeArguments:null===(l=U.resolvedTypeArguments)||void 0===l?void 0:l.map((function(e){return e.id})),referenceLocation:_(U.node)}}var V={};if(16777216&O.flags){var j=O;V={conditionalCheckType:null===(d=j.checkType)||void 0===d?void 0:d.id,conditionalExtendsType:null===(p=j.extendsType)||void 0===p?void 0:p.id,conditionalTrueType:null!==(m=null===(f=j.resolvedTrueType)||void 0===f?void 0:f.id)&&void 0!==m?m:-1,conditionalFalseType:null!==(y=null===(g=j.resolvedFalseType)||void 0===g?void 0:g.id)&&void 0!==y?y:-1}}var K={};if(33554432&O.flags){var H=O;K={substitutionBaseType:null===(h=H.baseType)||void 0===h?void 0:h.id,substituteType:null===(v=H.substitute)||void 0===v?void 0:v.id}}var W={};if(1024&P){var z=O;W={reverseMappedSourceType:null===(b=z.source)||void 0===b?void 0:b.id,reverseMappedMappedType:null===(E=z.mappedType)||void 0===E?void 0:E.id,reverseMappedConstraintType:null===(T=z.constraintType)||void 0===T?void 0:T.id}}var J={};if(256&P){var q=O;J={evolvingArrayElementType:q.elementType.id,evolvingArrayFinalType:null===(S=q.finalArrayType)||void 0===S?void 0:S.id}}var X=void 0,Y=O.checker.getRecursionIdentity(O);Y&&((X=N.get(Y))||(X=N.size,N.set(Y,X)));var Q=a(a(a(a(a(a(a({id:O.id,intrinsicName:O.intrinsicName,symbolName:(null==w?void 0:w.escapedName)&&e.unescapeLeadingUnderscores(w.escapedName),recursionId:X,isTuple:!!(8&P)||void 0,unionTypes:1048576&O.flags?null===(x=O.types)||void 0===x?void 0:x.map((function(e){return e.id})):void 0,intersectionTypes:2097152&O.flags?O.types.map((function(e){return e.id})):void 0,aliasTypeArguments:null===(L=O.aliasTypeArguments)||void 0===L?void 0:L.map((function(e){return e.id})),keyofType:4194304&O.flags?null===(D=O.type)||void 0===D?void 0:D.id:void 0},F),B),V),K),W),J),{destructuringPattern:_(O.pattern),firstDeclaration:_(null===(A=null==w?void 0:w.declarations)||void 0===A?void 0:A[0]),flags:e.Debug.formatTypeFlags(O.flags).split("|"),display:M});t.writeSync(I,JSON.stringify(Q)),R<k-1&&t.writeSync(I,",\n")}t.writeSync(I,"]\n"),t.closeSync(I),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}(l):u[u.length-1].typesPath=void 0},n.recordType=function(e){"server"!==r&&l.push(e)},(o=n.Phase||(n.Phase={})).Parse="parse",o.Program="program",o.Bind="bind",o.Check="check",o.CheckTypes="checkTypes",o.Emit="emit",o.Session="session",n.instant=function(e,n,t){m("I",e,n,t,'"s":"g"')};var d=[];n.push=function(n,t,r,i){void 0===i&&(i=!1),i&&m("B",n,t,r),d.push({phase:n,name:t,args:r,time:1e3*e.timestamp(),separateBeginAndEnd:i})},n.pop=function(){e.Debug.assert(d.length>0),f(d.length-1,1e3*e.timestamp()),d.length--},n.popAll=function(){for(var n=1e3*e.timestamp(),t=d.length-1;t>=0;t--)f(t,n);d.length=0};var p=1e4;function f(e,n){var t=d[e],r=t.phase,i=t.name,a=t.args,o=t.time;t.separateBeginAndEnd?m("E",r,i,a,void 0,n):p-o%p<=n-o&&m("X",r,i,a,'"dur":'+(n-o),o)}function m(n,i,a,o,s,l){void 0===l&&(l=1e3*e.timestamp()),"server"===r&&"checkTypes"===i||(e.performance.mark("beginTracing"),t.writeSync(c,',\n{"pid":1,"tid":1,"ph":"'+n+'","cat":"'+i+'","ts":'+l+',"name":"'+a+'"'),s&&t.writeSync(c,","+s),o&&t.writeSync(c,',"args":'+JSON.stringify(o)),t.writeSync(c,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function _(n){var t=e.getSourceFileOfNode(n);return t?{path:t.path,start:r(e.getLineAndCharacterOfPosition(t,n.pos)),end:r(e.getLineAndCharacterOfPosition(t,n.end))}:void 0;function r(e){return{line:e.line+1,character:e.character+1}}}n.dumpLegend=function(){i&&t.writeFileSync(i,JSON.stringify(u))}}(n||(n={})),e.startTracing=n.startTracing,e.dumpTracingLegend=n.dumpLegend}(u||(u={})),function(e){var n,t,r,i,a,o,s,c,l;(l=e.SyntaxKind||(e.SyntaxKind={}))[l.Unknown=0]="Unknown",l[l.EndOfFileToken=1]="EndOfFileToken",l[l.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",l[l.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",l[l.NewLineTrivia=4]="NewLineTrivia",l[l.WhitespaceTrivia=5]="WhitespaceTrivia",l[l.ShebangTrivia=6]="ShebangTrivia",l[l.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",l[l.NumericLiteral=8]="NumericLiteral",l[l.BigIntLiteral=9]="BigIntLiteral",l[l.StringLiteral=10]="StringLiteral",l[l.JsxText=11]="JsxText",l[l.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",l[l.RegularExpressionLiteral=13]="RegularExpressionLiteral",l[l.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",l[l.TemplateHead=15]="TemplateHead",l[l.TemplateMiddle=16]="TemplateMiddle",l[l.TemplateTail=17]="TemplateTail",l[l.OpenBraceToken=18]="OpenBraceToken",l[l.CloseBraceToken=19]="CloseBraceToken",l[l.OpenParenToken=20]="OpenParenToken",l[l.CloseParenToken=21]="CloseParenToken",l[l.OpenBracketToken=22]="OpenBracketToken",l[l.CloseBracketToken=23]="CloseBracketToken",l[l.DotToken=24]="DotToken",l[l.DotDotDotToken=25]="DotDotDotToken",l[l.SemicolonToken=26]="SemicolonToken",l[l.CommaToken=27]="CommaToken",l[l.QuestionDotToken=28]="QuestionDotToken",l[l.LessThanToken=29]="LessThanToken",l[l.LessThanSlashToken=30]="LessThanSlashToken",l[l.GreaterThanToken=31]="GreaterThanToken",l[l.LessThanEqualsToken=32]="LessThanEqualsToken",l[l.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",l[l.EqualsEqualsToken=34]="EqualsEqualsToken",l[l.ExclamationEqualsToken=35]="ExclamationEqualsToken",l[l.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",l[l.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",l[l.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",l[l.PlusToken=39]="PlusToken",l[l.MinusToken=40]="MinusToken",l[l.AsteriskToken=41]="AsteriskToken",l[l.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",l[l.SlashToken=43]="SlashToken",l[l.PercentToken=44]="PercentToken",l[l.PlusPlusToken=45]="PlusPlusToken",l[l.MinusMinusToken=46]="MinusMinusToken",l[l.LessThanLessThanToken=47]="LessThanLessThanToken",l[l.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",l[l.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",l[l.AmpersandToken=50]="AmpersandToken",l[l.BarToken=51]="BarToken",l[l.CaretToken=52]="CaretToken",l[l.ExclamationToken=53]="ExclamationToken",l[l.TildeToken=54]="TildeToken",l[l.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",l[l.BarBarToken=56]="BarBarToken",l[l.QuestionToken=57]="QuestionToken",l[l.ColonToken=58]="ColonToken",l[l.AtToken=59]="AtToken",l[l.QuestionQuestionToken=60]="QuestionQuestionToken",l[l.BacktickToken=61]="BacktickToken",l[l.HashToken=62]="HashToken",l[l.EqualsToken=63]="EqualsToken",l[l.PlusEqualsToken=64]="PlusEqualsToken",l[l.MinusEqualsToken=65]="MinusEqualsToken",l[l.AsteriskEqualsToken=66]="AsteriskEqualsToken",l[l.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",l[l.SlashEqualsToken=68]="SlashEqualsToken",l[l.PercentEqualsToken=69]="PercentEqualsToken",l[l.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",l[l.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",l[l.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",l[l.AmpersandEqualsToken=73]="AmpersandEqualsToken",l[l.BarEqualsToken=74]="BarEqualsToken",l[l.BarBarEqualsToken=75]="BarBarEqualsToken",l[l.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",l[l.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",l[l.CaretEqualsToken=78]="CaretEqualsToken",l[l.Identifier=79]="Identifier",l[l.PrivateIdentifier=80]="PrivateIdentifier",l[l.BreakKeyword=81]="BreakKeyword",l[l.CaseKeyword=82]="CaseKeyword",l[l.CatchKeyword=83]="CatchKeyword",l[l.ClassKeyword=84]="ClassKeyword",l[l.ConstKeyword=85]="ConstKeyword",l[l.ContinueKeyword=86]="ContinueKeyword",l[l.DebuggerKeyword=87]="DebuggerKeyword",l[l.DefaultKeyword=88]="DefaultKeyword",l[l.DeleteKeyword=89]="DeleteKeyword",l[l.DoKeyword=90]="DoKeyword",l[l.ElseKeyword=91]="ElseKeyword",l[l.EnumKeyword=92]="EnumKeyword",l[l.ExportKeyword=93]="ExportKeyword",l[l.ExtendsKeyword=94]="ExtendsKeyword",l[l.FalseKeyword=95]="FalseKeyword",l[l.FinallyKeyword=96]="FinallyKeyword",l[l.ForKeyword=97]="ForKeyword",l[l.FunctionKeyword=98]="FunctionKeyword",l[l.IfKeyword=99]="IfKeyword",l[l.ImportKeyword=100]="ImportKeyword",l[l.InKeyword=101]="InKeyword",l[l.InstanceOfKeyword=102]="InstanceOfKeyword",l[l.NewKeyword=103]="NewKeyword",l[l.NullKeyword=104]="NullKeyword",l[l.ReturnKeyword=105]="ReturnKeyword",l[l.SuperKeyword=106]="SuperKeyword",l[l.SwitchKeyword=107]="SwitchKeyword",l[l.ThisKeyword=108]="ThisKeyword",l[l.ThrowKeyword=109]="ThrowKeyword",l[l.TrueKeyword=110]="TrueKeyword",l[l.TryKeyword=111]="TryKeyword",l[l.TypeOfKeyword=112]="TypeOfKeyword",l[l.VarKeyword=113]="VarKeyword",l[l.VoidKeyword=114]="VoidKeyword",l[l.WhileKeyword=115]="WhileKeyword",l[l.WithKeyword=116]="WithKeyword",l[l.ImplementsKeyword=117]="ImplementsKeyword",l[l.InterfaceKeyword=118]="InterfaceKeyword",l[l.LetKeyword=119]="LetKeyword",l[l.PackageKeyword=120]="PackageKeyword",l[l.PrivateKeyword=121]="PrivateKeyword",l[l.ProtectedKeyword=122]="ProtectedKeyword",l[l.PublicKeyword=123]="PublicKeyword",l[l.StaticKeyword=124]="StaticKeyword",l[l.YieldKeyword=125]="YieldKeyword",l[l.AbstractKeyword=126]="AbstractKeyword",l[l.AsKeyword=127]="AsKeyword",l[l.AssertsKeyword=128]="AssertsKeyword",l[l.AnyKeyword=129]="AnyKeyword",l[l.AsyncKeyword=130]="AsyncKeyword",l[l.AwaitKeyword=131]="AwaitKeyword",l[l.BooleanKeyword=132]="BooleanKeyword",l[l.ConstructorKeyword=133]="ConstructorKeyword",l[l.DeclareKeyword=134]="DeclareKeyword",l[l.GetKeyword=135]="GetKeyword",l[l.InferKeyword=136]="InferKeyword",l[l.IntrinsicKeyword=137]="IntrinsicKeyword",l[l.IsKeyword=138]="IsKeyword",l[l.KeyOfKeyword=139]="KeyOfKeyword",l[l.ModuleKeyword=140]="ModuleKeyword",l[l.NamespaceKeyword=141]="NamespaceKeyword",l[l.NeverKeyword=142]="NeverKeyword",l[l.ReadonlyKeyword=143]="ReadonlyKeyword",l[l.RequireKeyword=144]="RequireKeyword",l[l.NumberKeyword=145]="NumberKeyword",l[l.ObjectKeyword=146]="ObjectKeyword",l[l.SetKeyword=147]="SetKeyword",l[l.StringKeyword=148]="StringKeyword",l[l.SymbolKeyword=149]="SymbolKeyword",l[l.TypeKeyword=150]="TypeKeyword",l[l.UndefinedKeyword=151]="UndefinedKeyword",l[l.UniqueKeyword=152]="UniqueKeyword",l[l.UnknownKeyword=153]="UnknownKeyword",l[l.FromKeyword=154]="FromKeyword",l[l.GlobalKeyword=155]="GlobalKeyword",l[l.BigIntKeyword=156]="BigIntKeyword",l[l.OverrideKeyword=157]="OverrideKeyword",l[l.OfKeyword=158]="OfKeyword",l[l.QualifiedName=159]="QualifiedName",l[l.ComputedPropertyName=160]="ComputedPropertyName",l[l.TypeParameter=161]="TypeParameter",l[l.Parameter=162]="Parameter",l[l.Decorator=163]="Decorator",l[l.PropertySignature=164]="PropertySignature",l[l.PropertyDeclaration=165]="PropertyDeclaration",l[l.MethodSignature=166]="MethodSignature",l[l.MethodDeclaration=167]="MethodDeclaration",l[l.ClassStaticBlockDeclaration=168]="ClassStaticBlockDeclaration",l[l.Constructor=169]="Constructor",l[l.GetAccessor=170]="GetAccessor",l[l.SetAccessor=171]="SetAccessor",l[l.CallSignature=172]="CallSignature",l[l.ConstructSignature=173]="ConstructSignature",l[l.IndexSignature=174]="IndexSignature",l[l.TypePredicate=175]="TypePredicate",l[l.TypeReference=176]="TypeReference",l[l.FunctionType=177]="FunctionType",l[l.ConstructorType=178]="ConstructorType",l[l.TypeQuery=179]="TypeQuery",l[l.TypeLiteral=180]="TypeLiteral",l[l.ArrayType=181]="ArrayType",l[l.TupleType=182]="TupleType",l[l.OptionalType=183]="OptionalType",l[l.RestType=184]="RestType",l[l.UnionType=185]="UnionType",l[l.IntersectionType=186]="IntersectionType",l[l.ConditionalType=187]="ConditionalType",l[l.InferType=188]="InferType",l[l.ParenthesizedType=189]="ParenthesizedType",l[l.ThisType=190]="ThisType",l[l.TypeOperator=191]="TypeOperator",l[l.IndexedAccessType=192]="IndexedAccessType",l[l.MappedType=193]="MappedType",l[l.LiteralType=194]="LiteralType",l[l.NamedTupleMember=195]="NamedTupleMember",l[l.TemplateLiteralType=196]="TemplateLiteralType",l[l.TemplateLiteralTypeSpan=197]="TemplateLiteralTypeSpan",l[l.ImportType=198]="ImportType",l[l.ObjectBindingPattern=199]="ObjectBindingPattern",l[l.ArrayBindingPattern=200]="ArrayBindingPattern",l[l.BindingElement=201]="BindingElement",l[l.ArrayLiteralExpression=202]="ArrayLiteralExpression",l[l.ObjectLiteralExpression=203]="ObjectLiteralExpression",l[l.PropertyAccessExpression=204]="PropertyAccessExpression",l[l.ElementAccessExpression=205]="ElementAccessExpression",l[l.CallExpression=206]="CallExpression",l[l.NewExpression=207]="NewExpression",l[l.TaggedTemplateExpression=208]="TaggedTemplateExpression",l[l.TypeAssertionExpression=209]="TypeAssertionExpression",l[l.ParenthesizedExpression=210]="ParenthesizedExpression",l[l.FunctionExpression=211]="FunctionExpression",l[l.ArrowFunction=212]="ArrowFunction",l[l.DeleteExpression=213]="DeleteExpression",l[l.TypeOfExpression=214]="TypeOfExpression",l[l.VoidExpression=215]="VoidExpression",l[l.AwaitExpression=216]="AwaitExpression",l[l.PrefixUnaryExpression=217]="PrefixUnaryExpression",l[l.PostfixUnaryExpression=218]="PostfixUnaryExpression",l[l.BinaryExpression=219]="BinaryExpression",l[l.ConditionalExpression=220]="ConditionalExpression",l[l.TemplateExpression=221]="TemplateExpression",l[l.YieldExpression=222]="YieldExpression",l[l.SpreadElement=223]="SpreadElement",l[l.ClassExpression=224]="ClassExpression",l[l.OmittedExpression=225]="OmittedExpression",l[l.ExpressionWithTypeArguments=226]="ExpressionWithTypeArguments",l[l.AsExpression=227]="AsExpression",l[l.NonNullExpression=228]="NonNullExpression",l[l.MetaProperty=229]="MetaProperty",l[l.SyntheticExpression=230]="SyntheticExpression",l[l.TemplateSpan=231]="TemplateSpan",l[l.SemicolonClassElement=232]="SemicolonClassElement",l[l.Block=233]="Block",l[l.EmptyStatement=234]="EmptyStatement",l[l.VariableStatement=235]="VariableStatement",l[l.ExpressionStatement=236]="ExpressionStatement",l[l.IfStatement=237]="IfStatement",l[l.DoStatement=238]="DoStatement",l[l.WhileStatement=239]="WhileStatement",l[l.ForStatement=240]="ForStatement",l[l.ForInStatement=241]="ForInStatement",l[l.ForOfStatement=242]="ForOfStatement",l[l.ContinueStatement=243]="ContinueStatement",l[l.BreakStatement=244]="BreakStatement",l[l.ReturnStatement=245]="ReturnStatement",l[l.WithStatement=246]="WithStatement",l[l.SwitchStatement=247]="SwitchStatement",l[l.LabeledStatement=248]="LabeledStatement",l[l.ThrowStatement=249]="ThrowStatement",l[l.TryStatement=250]="TryStatement",l[l.DebuggerStatement=251]="DebuggerStatement",l[l.VariableDeclaration=252]="VariableDeclaration",l[l.VariableDeclarationList=253]="VariableDeclarationList",l[l.FunctionDeclaration=254]="FunctionDeclaration",l[l.ClassDeclaration=255]="ClassDeclaration",l[l.InterfaceDeclaration=256]="InterfaceDeclaration",l[l.TypeAliasDeclaration=257]="TypeAliasDeclaration",l[l.EnumDeclaration=258]="EnumDeclaration",l[l.ModuleDeclaration=259]="ModuleDeclaration",l[l.ModuleBlock=260]="ModuleBlock",l[l.CaseBlock=261]="CaseBlock",l[l.NamespaceExportDeclaration=262]="NamespaceExportDeclaration",l[l.ImportEqualsDeclaration=263]="ImportEqualsDeclaration",l[l.ImportDeclaration=264]="ImportDeclaration",l[l.ImportClause=265]="ImportClause",l[l.NamespaceImport=266]="NamespaceImport",l[l.NamedImports=267]="NamedImports",l[l.ImportSpecifier=268]="ImportSpecifier",l[l.ExportAssignment=269]="ExportAssignment",l[l.ExportDeclaration=270]="ExportDeclaration",l[l.NamedExports=271]="NamedExports",l[l.NamespaceExport=272]="NamespaceExport",l[l.ExportSpecifier=273]="ExportSpecifier",l[l.MissingDeclaration=274]="MissingDeclaration",l[l.ExternalModuleReference=275]="ExternalModuleReference",l[l.JsxElement=276]="JsxElement",l[l.JsxSelfClosingElement=277]="JsxSelfClosingElement",l[l.JsxOpeningElement=278]="JsxOpeningElement",l[l.JsxClosingElement=279]="JsxClosingElement",l[l.JsxFragment=280]="JsxFragment",l[l.JsxOpeningFragment=281]="JsxOpeningFragment",l[l.JsxClosingFragment=282]="JsxClosingFragment",l[l.JsxAttribute=283]="JsxAttribute",l[l.JsxAttributes=284]="JsxAttributes",l[l.JsxSpreadAttribute=285]="JsxSpreadAttribute",l[l.JsxExpression=286]="JsxExpression",l[l.CaseClause=287]="CaseClause",l[l.DefaultClause=288]="DefaultClause",l[l.HeritageClause=289]="HeritageClause",l[l.CatchClause=290]="CatchClause",l[l.PropertyAssignment=291]="PropertyAssignment",l[l.ShorthandPropertyAssignment=292]="ShorthandPropertyAssignment",l[l.SpreadAssignment=293]="SpreadAssignment",l[l.EnumMember=294]="EnumMember",l[l.UnparsedPrologue=295]="UnparsedPrologue",l[l.UnparsedPrepend=296]="UnparsedPrepend",l[l.UnparsedText=297]="UnparsedText",l[l.UnparsedInternalText=298]="UnparsedInternalText",l[l.UnparsedSyntheticReference=299]="UnparsedSyntheticReference",l[l.SourceFile=300]="SourceFile",l[l.Bundle=301]="Bundle",l[l.UnparsedSource=302]="UnparsedSource",l[l.InputFiles=303]="InputFiles",l[l.JSDocTypeExpression=304]="JSDocTypeExpression",l[l.JSDocNameReference=305]="JSDocNameReference",l[l.JSDocMemberName=306]="JSDocMemberName",l[l.JSDocAllType=307]="JSDocAllType",l[l.JSDocUnknownType=308]="JSDocUnknownType",l[l.JSDocNullableType=309]="JSDocNullableType",l[l.JSDocNonNullableType=310]="JSDocNonNullableType",l[l.JSDocOptionalType=311]="JSDocOptionalType",l[l.JSDocFunctionType=312]="JSDocFunctionType",l[l.JSDocVariadicType=313]="JSDocVariadicType",l[l.JSDocNamepathType=314]="JSDocNamepathType",l[l.JSDocComment=315]="JSDocComment",l[l.JSDocText=316]="JSDocText",l[l.JSDocTypeLiteral=317]="JSDocTypeLiteral",l[l.JSDocSignature=318]="JSDocSignature",l[l.JSDocLink=319]="JSDocLink",l[l.JSDocLinkCode=320]="JSDocLinkCode",l[l.JSDocLinkPlain=321]="JSDocLinkPlain",l[l.JSDocTag=322]="JSDocTag",l[l.JSDocAugmentsTag=323]="JSDocAugmentsTag",l[l.JSDocImplementsTag=324]="JSDocImplementsTag",l[l.JSDocAuthorTag=325]="JSDocAuthorTag",l[l.JSDocDeprecatedTag=326]="JSDocDeprecatedTag",l[l.JSDocClassTag=327]="JSDocClassTag",l[l.JSDocPublicTag=328]="JSDocPublicTag",l[l.JSDocPrivateTag=329]="JSDocPrivateTag",l[l.JSDocProtectedTag=330]="JSDocProtectedTag",l[l.JSDocReadonlyTag=331]="JSDocReadonlyTag",l[l.JSDocOverrideTag=332]="JSDocOverrideTag",l[l.JSDocCallbackTag=333]="JSDocCallbackTag",l[l.JSDocEnumTag=334]="JSDocEnumTag",l[l.JSDocParameterTag=335]="JSDocParameterTag",l[l.JSDocReturnTag=336]="JSDocReturnTag",l[l.JSDocThisTag=337]="JSDocThisTag",l[l.JSDocTypeTag=338]="JSDocTypeTag",l[l.JSDocTemplateTag=339]="JSDocTemplateTag",l[l.JSDocTypedefTag=340]="JSDocTypedefTag",l[l.JSDocSeeTag=341]="JSDocSeeTag",l[l.JSDocPropertyTag=342]="JSDocPropertyTag",l[l.SyntaxList=343]="SyntaxList",l[l.NotEmittedStatement=344]="NotEmittedStatement",l[l.PartiallyEmittedExpression=345]="PartiallyEmittedExpression",l[l.CommaListExpression=346]="CommaListExpression",l[l.MergeDeclarationMarker=347]="MergeDeclarationMarker",l[l.EndOfDeclarationMarker=348]="EndOfDeclarationMarker",l[l.SyntheticReferenceExpression=349]="SyntheticReferenceExpression",l[l.Count=350]="Count",l[l.FirstAssignment=63]="FirstAssignment",l[l.LastAssignment=78]="LastAssignment",l[l.FirstCompoundAssignment=64]="FirstCompoundAssignment",l[l.LastCompoundAssignment=78]="LastCompoundAssignment",l[l.FirstReservedWord=81]="FirstReservedWord",l[l.LastReservedWord=116]="LastReservedWord",l[l.FirstKeyword=81]="FirstKeyword",l[l.LastKeyword=158]="LastKeyword",l[l.FirstFutureReservedWord=117]="FirstFutureReservedWord",l[l.LastFutureReservedWord=125]="LastFutureReservedWord",l[l.FirstTypeNode=175]="FirstTypeNode",l[l.LastTypeNode=198]="LastTypeNode",l[l.FirstPunctuation=18]="FirstPunctuation",l[l.LastPunctuation=78]="LastPunctuation",l[l.FirstToken=0]="FirstToken",l[l.LastToken=158]="LastToken",l[l.FirstTriviaToken=2]="FirstTriviaToken",l[l.LastTriviaToken=7]="LastTriviaToken",l[l.FirstLiteralToken=8]="FirstLiteralToken",l[l.LastLiteralToken=14]="LastLiteralToken",l[l.FirstTemplateToken=14]="FirstTemplateToken",l[l.LastTemplateToken=17]="LastTemplateToken",l[l.FirstBinaryOperator=29]="FirstBinaryOperator",l[l.LastBinaryOperator=78]="LastBinaryOperator",l[l.FirstStatement=235]="FirstStatement",l[l.LastStatement=251]="LastStatement",l[l.FirstNode=159]="FirstNode",l[l.FirstJSDocNode=304]="FirstJSDocNode",l[l.LastJSDocNode=342]="LastJSDocNode",l[l.FirstJSDocTagNode=322]="FirstJSDocTagNode",l[l.LastJSDocTagNode=342]="LastJSDocTagNode",l[l.FirstContextualKeyword=126]="FirstContextualKeyword",l[l.LastContextualKeyword=158]="LastContextualKeyword",(c=e.NodeFlags||(e.NodeFlags={}))[c.None=0]="None",c[c.Let=1]="Let",c[c.Const=2]="Const",c[c.NestedNamespace=4]="NestedNamespace",c[c.Synthesized=8]="Synthesized",c[c.Namespace=16]="Namespace",c[c.OptionalChain=32]="OptionalChain",c[c.ExportContext=64]="ExportContext",c[c.ContainsThis=128]="ContainsThis",c[c.HasImplicitReturn=256]="HasImplicitReturn",c[c.HasExplicitReturn=512]="HasExplicitReturn",c[c.GlobalAugmentation=1024]="GlobalAugmentation",c[c.HasAsyncFunctions=2048]="HasAsyncFunctions",c[c.DisallowInContext=4096]="DisallowInContext",c[c.YieldContext=8192]="YieldContext",c[c.DecoratorContext=16384]="DecoratorContext",c[c.AwaitContext=32768]="AwaitContext",c[c.ThisNodeHasError=65536]="ThisNodeHasError",c[c.JavaScriptFile=131072]="JavaScriptFile",c[c.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",c[c.HasAggregatedChildData=524288]="HasAggregatedChildData",c[c.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",c[c.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",c[c.JSDoc=4194304]="JSDoc",c[c.Ambient=8388608]="Ambient",c[c.InWithStatement=16777216]="InWithStatement",c[c.JsonFile=33554432]="JsonFile",c[c.TypeCached=67108864]="TypeCached",c[c.Deprecated=134217728]="Deprecated",c[c.BlockScoped=3]="BlockScoped",c[c.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",c[c.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",c[c.ContextFlags=25358336]="ContextFlags",c[c.TypeExcludesFlags=40960]="TypeExcludesFlags",c[c.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags",(s=e.ModifierFlags||(e.ModifierFlags={}))[s.None=0]="None",s[s.Export=1]="Export",s[s.Ambient=2]="Ambient",s[s.Public=4]="Public",s[s.Private=8]="Private",s[s.Protected=16]="Protected",s[s.Static=32]="Static",s[s.Readonly=64]="Readonly",s[s.Abstract=128]="Abstract",s[s.Async=256]="Async",s[s.Default=512]="Default",s[s.Const=2048]="Const",s[s.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",s[s.Deprecated=8192]="Deprecated",s[s.Override=16384]="Override",s[s.HasComputedFlags=536870912]="HasComputedFlags",s[s.AccessibilityModifier=28]="AccessibilityModifier",s[s.ParameterPropertyModifier=16476]="ParameterPropertyModifier",s[s.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",s[s.TypeScriptModifier=18654]="TypeScriptModifier",s[s.ExportDefault=513]="ExportDefault",s[s.All=27647]="All",(o=e.JsxFlags||(e.JsxFlags={}))[o.None=0]="None",o[o.IntrinsicNamedElement=1]="IntrinsicNamedElement",o[o.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",o[o.IntrinsicElement=3]="IntrinsicElement",(a=e.RelationComparisonResult||(e.RelationComparisonResult={}))[a.Succeeded=1]="Succeeded",a[a.Failed=2]="Failed",a[a.Reported=4]="Reported",a[a.ReportsUnmeasurable=8]="ReportsUnmeasurable",a[a.ReportsUnreliable=16]="ReportsUnreliable",a[a.ReportsMask=24]="ReportsMask",(i=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[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",(r=e.TokenFlags||(e.TokenFlags={}))[r.None=0]="None",r[r.PrecedingLineBreak=1]="PrecedingLineBreak",r[r.PrecedingJSDocComment=2]="PrecedingJSDocComment",r[r.Unterminated=4]="Unterminated",r[r.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",r[r.Scientific=16]="Scientific",r[r.Octal=32]="Octal",r[r.HexSpecifier=64]="HexSpecifier",r[r.BinarySpecifier=128]="BinarySpecifier",r[r.OctalSpecifier=256]="OctalSpecifier",r[r.ContainsSeparator=512]="ContainsSeparator",r[r.UnicodeEscape=1024]="UnicodeEscape",r[r.ContainsInvalidEscape=2048]="ContainsInvalidEscape",r[r.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",r[r.NumericLiteralFlags=1008]="NumericLiteralFlags",r[r.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(t=e.FlowFlags||(e.FlowFlags={}))[t.Unreachable=1]="Unreachable",t[t.Start=2]="Start",t[t.BranchLabel=4]="BranchLabel",t[t.LoopLabel=8]="LoopLabel",t[t.Assignment=16]="Assignment",t[t.TrueCondition=32]="TrueCondition",t[t.FalseCondition=64]="FalseCondition",t[t.SwitchClause=128]="SwitchClause",t[t.ArrayMutation=256]="ArrayMutation",t[t.Call=512]="Call",t[t.ReduceLabel=1024]="ReduceLabel",t[t.Referenced=2048]="Referenced",t[t.Shared=4096]="Shared",t[t.Label=12]="Label",t[t.Condition=96]="Condition",(n=e.CommentDirectiveType||(e.CommentDirectiveType={}))[n.ExpectError=0]="ExpectError",n[n.Ignore=1]="Ignore";var u,d,p,f,m,_,g,y,h,v,b,E,T,S,x,L,D,A,C,I,N,k,R,O,P,w,M,F,G,B,U,V,j,K,H,W,z,J,q,X,Y,Q,Z,$,ee,ne,te,re,ie,ae,oe,se,ce,le,ue;e.OperationCanceledException=function(){},(ue=e.FileIncludeKind||(e.FileIncludeKind={}))[ue.RootFile=0]="RootFile",ue[ue.SourceFromProjectReference=1]="SourceFromProjectReference",ue[ue.OutputFromProjectReference=2]="OutputFromProjectReference",ue[ue.Import=3]="Import",ue[ue.ReferenceFile=4]="ReferenceFile",ue[ue.TypeReferenceDirective=5]="TypeReferenceDirective",ue[ue.LibFile=6]="LibFile",ue[ue.LibReferenceDirective=7]="LibReferenceDirective",ue[ue.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(le=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[le.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",le[le.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(ce=e.StructureIsReused||(e.StructureIsReused={}))[ce.Not=0]="Not",ce[ce.SafeModules=1]="SafeModules",ce[ce.Completely=2]="Completely",(se=e.ExitStatus||(e.ExitStatus={}))[se.Success=0]="Success",se[se.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",se[se.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",se[se.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",se[se.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",se[se.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(oe=e.UnionReduction||(e.UnionReduction={}))[oe.None=0]="None",oe[oe.Literal=1]="Literal",oe[oe.Subtype=2]="Subtype",(ae=e.ContextFlags||(e.ContextFlags={}))[ae.None=0]="None",ae[ae.Signature=1]="Signature",ae[ae.NoConstraints=2]="NoConstraints",ae[ae.Completions=4]="Completions",ae[ae.SkipBindingPatterns=8]="SkipBindingPatterns",(ie=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[ie.None=0]="None",ie[ie.NoTruncation=1]="NoTruncation",ie[ie.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",ie[ie.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",ie[ie.UseStructuralFallback=8]="UseStructuralFallback",ie[ie.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",ie[ie.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",ie[ie.UseFullyQualifiedType=64]="UseFullyQualifiedType",ie[ie.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",ie[ie.SuppressAnyReturnType=256]="SuppressAnyReturnType",ie[ie.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",ie[ie.MultilineObjectLiterals=1024]="MultilineObjectLiterals",ie[ie.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",ie[ie.UseTypeOfFunction=4096]="UseTypeOfFunction",ie[ie.OmitParameterModifiers=8192]="OmitParameterModifiers",ie[ie.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",ie[ie.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",ie[ie.NoTypeReduction=536870912]="NoTypeReduction",ie[ie.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",ie[ie.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",ie[ie.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",ie[ie.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",ie[ie.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",ie[ie.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",ie[ie.AllowEmptyTuple=524288]="AllowEmptyTuple",ie[ie.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",ie[ie.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",ie[ie.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",ie[ie.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",ie[ie.IgnoreErrors=70221824]="IgnoreErrors",ie[ie.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",ie[ie.InTypeAlias=8388608]="InTypeAlias",ie[ie.InInitialEntityName=16777216]="InInitialEntityName",(re=e.TypeFormatFlags||(e.TypeFormatFlags={}))[re.None=0]="None",re[re.NoTruncation=1]="NoTruncation",re[re.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",re[re.UseStructuralFallback=8]="UseStructuralFallback",re[re.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",re[re.UseFullyQualifiedType=64]="UseFullyQualifiedType",re[re.SuppressAnyReturnType=256]="SuppressAnyReturnType",re[re.MultilineObjectLiterals=1024]="MultilineObjectLiterals",re[re.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",re[re.UseTypeOfFunction=4096]="UseTypeOfFunction",re[re.OmitParameterModifiers=8192]="OmitParameterModifiers",re[re.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",re[re.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",re[re.NoTypeReduction=536870912]="NoTypeReduction",re[re.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",re[re.AddUndefined=131072]="AddUndefined",re[re.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",re[re.InArrayType=524288]="InArrayType",re[re.InElementType=2097152]="InElementType",re[re.InFirstTypeArgument=4194304]="InFirstTypeArgument",re[re.InTypeAlias=8388608]="InTypeAlias",re[re.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",re[re.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(te=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[te.None=0]="None",te[te.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",te[te.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",te[te.AllowAnyNodeKind=4]="AllowAnyNodeKind",te[te.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",te[te.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(ne=e.SymbolAccessibility||(e.SymbolAccessibility={}))[ne.Accessible=0]="Accessible",ne[ne.NotAccessible=1]="NotAccessible",ne[ne.CannotBeNamed=2]="CannotBeNamed",(ee=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[ee.UnionOrIntersection=0]="UnionOrIntersection",ee[ee.Spread=1]="Spread",($=e.TypePredicateKind||(e.TypePredicateKind={}))[$.This=0]="This",$[$.Identifier=1]="Identifier",$[$.AssertsThis=2]="AssertsThis",$[$.AssertsIdentifier=3]="AssertsIdentifier",(Z=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[Z.Unknown=0]="Unknown",Z[Z.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",Z[Z.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",Z[Z.NumberLikeType=3]="NumberLikeType",Z[Z.BigIntLikeType=4]="BigIntLikeType",Z[Z.StringLikeType=5]="StringLikeType",Z[Z.BooleanType=6]="BooleanType",Z[Z.ArrayLikeType=7]="ArrayLikeType",Z[Z.ESSymbolType=8]="ESSymbolType",Z[Z.Promise=9]="Promise",Z[Z.TypeWithCallSignature=10]="TypeWithCallSignature",Z[Z.ObjectType=11]="ObjectType",(Q=e.SymbolFlags||(e.SymbolFlags={}))[Q.None=0]="None",Q[Q.FunctionScopedVariable=1]="FunctionScopedVariable",Q[Q.BlockScopedVariable=2]="BlockScopedVariable",Q[Q.Property=4]="Property",Q[Q.EnumMember=8]="EnumMember",Q[Q.Function=16]="Function",Q[Q.Class=32]="Class",Q[Q.Interface=64]="Interface",Q[Q.ConstEnum=128]="ConstEnum",Q[Q.RegularEnum=256]="RegularEnum",Q[Q.ValueModule=512]="ValueModule",Q[Q.NamespaceModule=1024]="NamespaceModule",Q[Q.TypeLiteral=2048]="TypeLiteral",Q[Q.ObjectLiteral=4096]="ObjectLiteral",Q[Q.Method=8192]="Method",Q[Q.Constructor=16384]="Constructor",Q[Q.GetAccessor=32768]="GetAccessor",Q[Q.SetAccessor=65536]="SetAccessor",Q[Q.Signature=131072]="Signature",Q[Q.TypeParameter=262144]="TypeParameter",Q[Q.TypeAlias=524288]="TypeAlias",Q[Q.ExportValue=1048576]="ExportValue",Q[Q.Alias=2097152]="Alias",Q[Q.Prototype=4194304]="Prototype",Q[Q.ExportStar=8388608]="ExportStar",Q[Q.Optional=16777216]="Optional",Q[Q.Transient=33554432]="Transient",Q[Q.Assignment=67108864]="Assignment",Q[Q.ModuleExports=134217728]="ModuleExports",Q[Q.All=67108863]="All",Q[Q.Enum=384]="Enum",Q[Q.Variable=3]="Variable",Q[Q.Value=111551]="Value",Q[Q.Type=788968]="Type",Q[Q.Namespace=1920]="Namespace",Q[Q.Module=1536]="Module",Q[Q.Accessor=98304]="Accessor",Q[Q.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",Q[Q.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",Q[Q.ParameterExcludes=111551]="ParameterExcludes",Q[Q.PropertyExcludes=0]="PropertyExcludes",Q[Q.EnumMemberExcludes=900095]="EnumMemberExcludes",Q[Q.FunctionExcludes=110991]="FunctionExcludes",Q[Q.ClassExcludes=899503]="ClassExcludes",Q[Q.InterfaceExcludes=788872]="InterfaceExcludes",Q[Q.RegularEnumExcludes=899327]="RegularEnumExcludes",Q[Q.ConstEnumExcludes=899967]="ConstEnumExcludes",Q[Q.ValueModuleExcludes=110735]="ValueModuleExcludes",Q[Q.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",Q[Q.MethodExcludes=103359]="MethodExcludes",Q[Q.GetAccessorExcludes=46015]="GetAccessorExcludes",Q[Q.SetAccessorExcludes=78783]="SetAccessorExcludes",Q[Q.TypeParameterExcludes=526824]="TypeParameterExcludes",Q[Q.TypeAliasExcludes=788968]="TypeAliasExcludes",Q[Q.AliasExcludes=2097152]="AliasExcludes",Q[Q.ModuleMember=2623475]="ModuleMember",Q[Q.ExportHasLocal=944]="ExportHasLocal",Q[Q.BlockScoped=418]="BlockScoped",Q[Q.PropertyOrAccessor=98308]="PropertyOrAccessor",Q[Q.ClassMember=106500]="ClassMember",Q[Q.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",Q[Q.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",Q[Q.Classifiable=2885600]="Classifiable",Q[Q.LateBindingContainer=6256]="LateBindingContainer",(Y=e.EnumKind||(e.EnumKind={}))[Y.Numeric=0]="Numeric",Y[Y.Literal=1]="Literal",(X=e.CheckFlags||(e.CheckFlags={}))[X.Instantiated=1]="Instantiated",X[X.SyntheticProperty=2]="SyntheticProperty",X[X.SyntheticMethod=4]="SyntheticMethod",X[X.Readonly=8]="Readonly",X[X.ReadPartial=16]="ReadPartial",X[X.WritePartial=32]="WritePartial",X[X.HasNonUniformType=64]="HasNonUniformType",X[X.HasLiteralType=128]="HasLiteralType",X[X.ContainsPublic=256]="ContainsPublic",X[X.ContainsProtected=512]="ContainsProtected",X[X.ContainsPrivate=1024]="ContainsPrivate",X[X.ContainsStatic=2048]="ContainsStatic",X[X.Late=4096]="Late",X[X.ReverseMapped=8192]="ReverseMapped",X[X.OptionalParameter=16384]="OptionalParameter",X[X.RestParameter=32768]="RestParameter",X[X.DeferredType=65536]="DeferredType",X[X.HasNeverType=131072]="HasNeverType",X[X.Mapped=262144]="Mapped",X[X.StripOptional=524288]="StripOptional",X[X.Synthetic=6]="Synthetic",X[X.Discriminant=192]="Discriminant",X[X.Partial=48]="Partial",(q=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",q.Constructor="__constructor",q.New="__new",q.Index="__index",q.ExportStar="__export",q.Global="__global",q.Missing="__missing",q.Type="__type",q.Object="__object",q.JSXAttributes="__jsxAttributes",q.Class="__class",q.Function="__function",q.Computed="__computed",q.Resolving="__resolving__",q.ExportEquals="export=",q.Default="default",q.This="this",(J=e.NodeCheckFlags||(e.NodeCheckFlags={}))[J.TypeChecked=1]="TypeChecked",J[J.LexicalThis=2]="LexicalThis",J[J.CaptureThis=4]="CaptureThis",J[J.CaptureNewTarget=8]="CaptureNewTarget",J[J.SuperInstance=256]="SuperInstance",J[J.SuperStatic=512]="SuperStatic",J[J.ContextChecked=1024]="ContextChecked",J[J.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",J[J.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",J[J.CaptureArguments=8192]="CaptureArguments",J[J.EnumValuesComputed=16384]="EnumValuesComputed",J[J.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",J[J.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",J[J.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",J[J.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",J[J.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",J[J.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",J[J.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",J[J.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",J[J.AssignmentsMarked=8388608]="AssignmentsMarked",J[J.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",J[J.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",J[J.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",J[J.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",(z=e.TypeFlags||(e.TypeFlags={}))[z.Any=1]="Any",z[z.Unknown=2]="Unknown",z[z.String=4]="String",z[z.Number=8]="Number",z[z.Boolean=16]="Boolean",z[z.Enum=32]="Enum",z[z.BigInt=64]="BigInt",z[z.StringLiteral=128]="StringLiteral",z[z.NumberLiteral=256]="NumberLiteral",z[z.BooleanLiteral=512]="BooleanLiteral",z[z.EnumLiteral=1024]="EnumLiteral",z[z.BigIntLiteral=2048]="BigIntLiteral",z[z.ESSymbol=4096]="ESSymbol",z[z.UniqueESSymbol=8192]="UniqueESSymbol",z[z.Void=16384]="Void",z[z.Undefined=32768]="Undefined",z[z.Null=65536]="Null",z[z.Never=131072]="Never",z[z.TypeParameter=262144]="TypeParameter",z[z.Object=524288]="Object",z[z.Union=1048576]="Union",z[z.Intersection=2097152]="Intersection",z[z.Index=4194304]="Index",z[z.IndexedAccess=8388608]="IndexedAccess",z[z.Conditional=16777216]="Conditional",z[z.Substitution=33554432]="Substitution",z[z.NonPrimitive=67108864]="NonPrimitive",z[z.TemplateLiteral=134217728]="TemplateLiteral",z[z.StringMapping=268435456]="StringMapping",z[z.AnyOrUnknown=3]="AnyOrUnknown",z[z.Nullable=98304]="Nullable",z[z.Literal=2944]="Literal",z[z.Unit=109440]="Unit",z[z.StringOrNumberLiteral=384]="StringOrNumberLiteral",z[z.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",z[z.DefinitelyFalsy=117632]="DefinitelyFalsy",z[z.PossiblyFalsy=117724]="PossiblyFalsy",z[z.Intrinsic=67359327]="Intrinsic",z[z.Primitive=131068]="Primitive",z[z.StringLike=402653316]="StringLike",z[z.NumberLike=296]="NumberLike",z[z.BigIntLike=2112]="BigIntLike",z[z.BooleanLike=528]="BooleanLike",z[z.EnumLike=1056]="EnumLike",z[z.ESSymbolLike=12288]="ESSymbolLike",z[z.VoidLike=49152]="VoidLike",z[z.DisjointDomains=469892092]="DisjointDomains",z[z.UnionOrIntersection=3145728]="UnionOrIntersection",z[z.StructuredType=3670016]="StructuredType",z[z.TypeVariable=8650752]="TypeVariable",z[z.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",z[z.InstantiablePrimitive=406847488]="InstantiablePrimitive",z[z.Instantiable=465829888]="Instantiable",z[z.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",z[z.ObjectFlagsType=3899393]="ObjectFlagsType",z[z.Simplifiable=25165824]="Simplifiable",z[z.Singleton=67358815]="Singleton",z[z.Narrowable=536624127]="Narrowable",z[z.NotPrimitiveUnion=468598819]="NotPrimitiveUnion",z[z.IncludesMask=205258751]="IncludesMask",z[z.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",z[z.IncludesNonWideningType=4194304]="IncludesNonWideningType",z[z.IncludesWildcard=8388608]="IncludesWildcard",z[z.IncludesEmptyObject=16777216]="IncludesEmptyObject",(W=e.ObjectFlags||(e.ObjectFlags={}))[W.Class=1]="Class",W[W.Interface=2]="Interface",W[W.Reference=4]="Reference",W[W.Tuple=8]="Tuple",W[W.Anonymous=16]="Anonymous",W[W.Mapped=32]="Mapped",W[W.Instantiated=64]="Instantiated",W[W.ObjectLiteral=128]="ObjectLiteral",W[W.EvolvingArray=256]="EvolvingArray",W[W.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",W[W.ReverseMapped=1024]="ReverseMapped",W[W.JsxAttributes=2048]="JsxAttributes",W[W.MarkerType=4096]="MarkerType",W[W.JSLiteral=8192]="JSLiteral",W[W.FreshLiteral=16384]="FreshLiteral",W[W.ArrayLiteral=32768]="ArrayLiteral",W[W.PrimitiveUnion=65536]="PrimitiveUnion",W[W.ContainsWideningType=131072]="ContainsWideningType",W[W.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",W[W.NonInferrableType=524288]="NonInferrableType",W[W.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",W[W.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",W[W.ClassOrInterface=3]="ClassOrInterface",W[W.RequiresWidening=393216]="RequiresWidening",W[W.PropagatingFlags=917504]="PropagatingFlags",W[W.ObjectTypeKindMask=1343]="ObjectTypeKindMask",W[W.ContainsSpread=4194304]="ContainsSpread",W[W.ObjectRestType=8388608]="ObjectRestType",W[W.IsClassInstanceClone=16777216]="IsClassInstanceClone",W[W.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",W[W.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",W[W.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",W[W.IsGenericObjectType=8388608]="IsGenericObjectType",W[W.IsGenericIndexType=16777216]="IsGenericIndexType",W[W.IsGenericType=25165824]="IsGenericType",W[W.ContainsIntersections=33554432]="ContainsIntersections",W[W.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",W[W.IsNeverIntersection=67108864]="IsNeverIntersection",(H=e.VarianceFlags||(e.VarianceFlags={}))[H.Invariant=0]="Invariant",H[H.Covariant=1]="Covariant",H[H.Contravariant=2]="Contravariant",H[H.Bivariant=3]="Bivariant",H[H.Independent=4]="Independent",H[H.VarianceMask=7]="VarianceMask",H[H.Unmeasurable=8]="Unmeasurable",H[H.Unreliable=16]="Unreliable",H[H.AllowsStructuralFallback=24]="AllowsStructuralFallback",(K=e.ElementFlags||(e.ElementFlags={}))[K.Required=1]="Required",K[K.Optional=2]="Optional",K[K.Rest=4]="Rest",K[K.Variadic=8]="Variadic",K[K.Fixed=3]="Fixed",K[K.Variable=12]="Variable",K[K.NonRequired=14]="NonRequired",K[K.NonRest=11]="NonRest",(j=e.AccessFlags||(e.AccessFlags={}))[j.None=0]="None",j[j.IncludeUndefined=1]="IncludeUndefined",j[j.NoIndexSignatures=2]="NoIndexSignatures",j[j.Writing=4]="Writing",j[j.CacheSymbol=8]="CacheSymbol",j[j.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",j[j.ExpressionPosition=32]="ExpressionPosition",j[j.ReportDeprecated=64]="ReportDeprecated",j[j.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",j[j.Contextual=256]="Contextual",j[j.Persistent=1]="Persistent",(V=e.JsxReferenceKind||(e.JsxReferenceKind={}))[V.Component=0]="Component",V[V.Function=1]="Function",V[V.Mixed=2]="Mixed",(U=e.SignatureKind||(e.SignatureKind={}))[U.Call=0]="Call",U[U.Construct=1]="Construct",(B=e.SignatureFlags||(e.SignatureFlags={}))[B.None=0]="None",B[B.HasRestParameter=1]="HasRestParameter",B[B.HasLiteralTypes=2]="HasLiteralTypes",B[B.Abstract=4]="Abstract",B[B.IsInnerCallChain=8]="IsInnerCallChain",B[B.IsOuterCallChain=16]="IsOuterCallChain",B[B.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",B[B.PropagatingFlags=39]="PropagatingFlags",B[B.CallChainFlags=24]="CallChainFlags",(G=e.IndexKind||(e.IndexKind={}))[G.String=0]="String",G[G.Number=1]="Number",(F=e.TypeMapKind||(e.TypeMapKind={}))[F.Simple=0]="Simple",F[F.Array=1]="Array",F[F.Function=2]="Function",F[F.Composite=3]="Composite",F[F.Merged=4]="Merged",(M=e.InferencePriority||(e.InferencePriority={}))[M.NakedTypeVariable=1]="NakedTypeVariable",M[M.SpeculativeTuple=2]="SpeculativeTuple",M[M.SubstituteSource=4]="SubstituteSource",M[M.HomomorphicMappedType=8]="HomomorphicMappedType",M[M.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",M[M.MappedTypeConstraint=32]="MappedTypeConstraint",M[M.ContravariantConditional=64]="ContravariantConditional",M[M.ReturnType=128]="ReturnType",M[M.LiteralKeyof=256]="LiteralKeyof",M[M.NoConstraints=512]="NoConstraints",M[M.AlwaysStrict=1024]="AlwaysStrict",M[M.MaxValue=2048]="MaxValue",M[M.PriorityImpliesCombination=416]="PriorityImpliesCombination",M[M.Circularity=-1]="Circularity",(w=e.InferenceFlags||(e.InferenceFlags={}))[w.None=0]="None",w[w.NoDefault=1]="NoDefault",w[w.AnyDefault=2]="AnyDefault",w[w.SkippedGenericFunction=4]="SkippedGenericFunction",(P=e.Ternary||(e.Ternary={}))[P.False=0]="False",P[P.Unknown=1]="Unknown",P[P.Maybe=3]="Maybe",P[P.True=-1]="True",(O=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[O.None=0]="None",O[O.ExportsProperty=1]="ExportsProperty",O[O.ModuleExports=2]="ModuleExports",O[O.PrototypeProperty=3]="PrototypeProperty",O[O.ThisProperty=4]="ThisProperty",O[O.Property=5]="Property",O[O.Prototype=6]="Prototype",O[O.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",O[O.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",O[O.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(u=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,n){void 0===n&&(n=!0);var t=u[e.category];return n?t.toLowerCase():t},(R=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[R.Classic=1]="Classic",R[R.NodeJs=2]="NodeJs",(k=e.WatchFileKind||(e.WatchFileKind={}))[k.FixedPollingInterval=0]="FixedPollingInterval",k[k.PriorityPollingInterval=1]="PriorityPollingInterval",k[k.DynamicPriorityPolling=2]="DynamicPriorityPolling",k[k.FixedChunkSizePolling=3]="FixedChunkSizePolling",k[k.UseFsEvents=4]="UseFsEvents",k[k.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(N=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[N.UseFsEvents=0]="UseFsEvents",N[N.FixedPollingInterval=1]="FixedPollingInterval",N[N.DynamicPriorityPolling=2]="DynamicPriorityPolling",N[N.FixedChunkSizePolling=3]="FixedChunkSizePolling",(I=e.PollingWatchKind||(e.PollingWatchKind={}))[I.FixedInterval=0]="FixedInterval",I[I.PriorityInterval=1]="PriorityInterval",I[I.DynamicPriority=2]="DynamicPriority",I[I.FixedChunkSize=3]="FixedChunkSize",(C=e.ModuleKind||(e.ModuleKind={}))[C.None=0]="None",C[C.CommonJS=1]="CommonJS",C[C.AMD=2]="AMD",C[C.UMD=3]="UMD",C[C.System=4]="System",C[C.ES2015=5]="ES2015",C[C.ES2020=6]="ES2020",C[C.ESNext=99]="ESNext",(A=e.JsxEmit||(e.JsxEmit={}))[A.None=0]="None",A[A.Preserve=1]="Preserve",A[A.React=2]="React",A[A.ReactNative=3]="ReactNative",A[A.ReactJSX=4]="ReactJSX",A[A.ReactJSXDev=5]="ReactJSXDev",(D=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[D.Remove=0]="Remove",D[D.Preserve=1]="Preserve",D[D.Error=2]="Error",(L=e.NewLineKind||(e.NewLineKind={}))[L.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",L[L.LineFeed=1]="LineFeed",function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred"}(e.ScriptKind||(e.ScriptKind={})),(x=e.ScriptTarget||(e.ScriptTarget={}))[x.ES3=0]="ES3",x[x.ES5=1]="ES5",x[x.ES2015=2]="ES2015",x[x.ES2016=3]="ES2016",x[x.ES2017=4]="ES2017",x[x.ES2018=5]="ES2018",x[x.ES2019=6]="ES2019",x[x.ES2020=7]="ES2020",x[x.ES2021=8]="ES2021",x[x.ESNext=99]="ESNext",x[x.JSON=100]="JSON",x[x.Latest=99]="Latest",(S=e.LanguageVariant||(e.LanguageVariant={}))[S.Standard=0]="Standard",S[S.JSX=1]="JSX",(T=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[T.None=0]="None",T[T.Recursive=1]="Recursive",(E=e.CharacterCodes||(e.CharacterCodes={}))[E.nullCharacter=0]="nullCharacter",E[E.maxAsciiCharacter=127]="maxAsciiCharacter",E[E.lineFeed=10]="lineFeed",E[E.carriageReturn=13]="carriageReturn",E[E.lineSeparator=8232]="lineSeparator",E[E.paragraphSeparator=8233]="paragraphSeparator",E[E.nextLine=133]="nextLine",E[E.space=32]="space",E[E.nonBreakingSpace=160]="nonBreakingSpace",E[E.enQuad=8192]="enQuad",E[E.emQuad=8193]="emQuad",E[E.enSpace=8194]="enSpace",E[E.emSpace=8195]="emSpace",E[E.threePerEmSpace=8196]="threePerEmSpace",E[E.fourPerEmSpace=8197]="fourPerEmSpace",E[E.sixPerEmSpace=8198]="sixPerEmSpace",E[E.figureSpace=8199]="figureSpace",E[E.punctuationSpace=8200]="punctuationSpace",E[E.thinSpace=8201]="thinSpace",E[E.hairSpace=8202]="hairSpace",E[E.zeroWidthSpace=8203]="zeroWidthSpace",E[E.narrowNoBreakSpace=8239]="narrowNoBreakSpace",E[E.ideographicSpace=12288]="ideographicSpace",E[E.mathematicalSpace=8287]="mathematicalSpace",E[E.ogham=5760]="ogham",E[E._=95]="_",E[E.$=36]="$",E[E._0=48]="_0",E[E._1=49]="_1",E[E._2=50]="_2",E[E._3=51]="_3",E[E._4=52]="_4",E[E._5=53]="_5",E[E._6=54]="_6",E[E._7=55]="_7",E[E._8=56]="_8",E[E._9=57]="_9",E[E.a=97]="a",E[E.b=98]="b",E[E.c=99]="c",E[E.d=100]="d",E[E.e=101]="e",E[E.f=102]="f",E[E.g=103]="g",E[E.h=104]="h",E[E.i=105]="i",E[E.j=106]="j",E[E.k=107]="k",E[E.l=108]="l",E[E.m=109]="m",E[E.n=110]="n",E[E.o=111]="o",E[E.p=112]="p",E[E.q=113]="q",E[E.r=114]="r",E[E.s=115]="s",E[E.t=116]="t",E[E.u=117]="u",E[E.v=118]="v",E[E.w=119]="w",E[E.x=120]="x",E[E.y=121]="y",E[E.z=122]="z",E[E.A=65]="A",E[E.B=66]="B",E[E.C=67]="C",E[E.D=68]="D",E[E.E=69]="E",E[E.F=70]="F",E[E.G=71]="G",E[E.H=72]="H",E[E.I=73]="I",E[E.J=74]="J",E[E.K=75]="K",E[E.L=76]="L",E[E.M=77]="M",E[E.N=78]="N",E[E.O=79]="O",E[E.P=80]="P",E[E.Q=81]="Q",E[E.R=82]="R",E[E.S=83]="S",E[E.T=84]="T",E[E.U=85]="U",E[E.V=86]="V",E[E.W=87]="W",E[E.X=88]="X",E[E.Y=89]="Y",E[E.Z=90]="Z",E[E.ampersand=38]="ampersand",E[E.asterisk=42]="asterisk",E[E.at=64]="at",E[E.backslash=92]="backslash",E[E.backtick=96]="backtick",E[E.bar=124]="bar",E[E.caret=94]="caret",E[E.closeBrace=125]="closeBrace",E[E.closeBracket=93]="closeBracket",E[E.closeParen=41]="closeParen",E[E.colon=58]="colon",E[E.comma=44]="comma",E[E.dot=46]="dot",E[E.doubleQuote=34]="doubleQuote",E[E.equals=61]="equals",E[E.exclamation=33]="exclamation",E[E.greaterThan=62]="greaterThan",E[E.hash=35]="hash",E[E.lessThan=60]="lessThan",E[E.minus=45]="minus",E[E.openBrace=123]="openBrace",E[E.openBracket=91]="openBracket",E[E.openParen=40]="openParen",E[E.percent=37]="percent",E[E.plus=43]="plus",E[E.question=63]="question",E[E.semicolon=59]="semicolon",E[E.singleQuote=39]="singleQuote",E[E.slash=47]="slash",E[E.tilde=126]="tilde",E[E.backspace=8]="backspace",E[E.formFeed=12]="formFeed",E[E.byteOrderMark=65279]="byteOrderMark",E[E.tab=9]="tab",E[E.verticalTab=11]="verticalTab",(b=e.Extension||(e.Extension={})).Ts=".ts",b.Tsx=".tsx",b.Dts=".d.ts",b.Js=".js",b.Jsx=".jsx",b.Json=".json",b.TsBuildInfo=".tsbuildinfo",(v=e.TransformFlags||(e.TransformFlags={}))[v.None=0]="None",v[v.ContainsTypeScript=1]="ContainsTypeScript",v[v.ContainsJsx=2]="ContainsJsx",v[v.ContainsESNext=4]="ContainsESNext",v[v.ContainsES2021=8]="ContainsES2021",v[v.ContainsES2020=16]="ContainsES2020",v[v.ContainsES2019=32]="ContainsES2019",v[v.ContainsES2018=64]="ContainsES2018",v[v.ContainsES2017=128]="ContainsES2017",v[v.ContainsES2016=256]="ContainsES2016",v[v.ContainsES2015=512]="ContainsES2015",v[v.ContainsGenerator=1024]="ContainsGenerator",v[v.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",v[v.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",v[v.ContainsLexicalThis=8192]="ContainsLexicalThis",v[v.ContainsRestOrSpread=16384]="ContainsRestOrSpread",v[v.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",v[v.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",v[v.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",v[v.ContainsBindingPattern=262144]="ContainsBindingPattern",v[v.ContainsYield=524288]="ContainsYield",v[v.ContainsAwait=1048576]="ContainsAwait",v[v.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",v[v.ContainsDynamicImport=4194304]="ContainsDynamicImport",v[v.ContainsClassFields=8388608]="ContainsClassFields",v[v.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",v[v.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",v[v.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",v[v.HasComputedFlags=536870912]="HasComputedFlags",v[v.AssertTypeScript=1]="AssertTypeScript",v[v.AssertJsx=2]="AssertJsx",v[v.AssertESNext=4]="AssertESNext",v[v.AssertES2021=8]="AssertES2021",v[v.AssertES2020=16]="AssertES2020",v[v.AssertES2019=32]="AssertES2019",v[v.AssertES2018=64]="AssertES2018",v[v.AssertES2017=128]="AssertES2017",v[v.AssertES2016=256]="AssertES2016",v[v.AssertES2015=512]="AssertES2015",v[v.AssertGenerator=1024]="AssertGenerator",v[v.AssertDestructuringAssignment=2048]="AssertDestructuringAssignment",v[v.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",v[v.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",v[v.NodeExcludes=536870912]="NodeExcludes",v[v.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",v[v.FunctionExcludes=591310848]="FunctionExcludes",v[v.ConstructorExcludes=591306752]="ConstructorExcludes",v[v.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",v[v.PropertyExcludes=570433536]="PropertyExcludes",v[v.ClassExcludes=536940544]="ClassExcludes",v[v.ModuleExcludes=589443072]="ModuleExcludes",v[v.TypeExcludes=-2]="TypeExcludes",v[v.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",v[v.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",v[v.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",v[v.ParameterExcludes=536870912]="ParameterExcludes",v[v.CatchClauseExcludes=536903680]="CatchClauseExcludes",v[v.BindingPatternExcludes=536887296]="BindingPatternExcludes",v[v.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",v[v.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags",(h=e.EmitFlags||(e.EmitFlags={}))[h.None=0]="None",h[h.SingleLine=1]="SingleLine",h[h.AdviseOnEmitNode=2]="AdviseOnEmitNode",h[h.NoSubstitution=4]="NoSubstitution",h[h.CapturesThis=8]="CapturesThis",h[h.NoLeadingSourceMap=16]="NoLeadingSourceMap",h[h.NoTrailingSourceMap=32]="NoTrailingSourceMap",h[h.NoSourceMap=48]="NoSourceMap",h[h.NoNestedSourceMaps=64]="NoNestedSourceMaps",h[h.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",h[h.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",h[h.NoTokenSourceMaps=384]="NoTokenSourceMaps",h[h.NoLeadingComments=512]="NoLeadingComments",h[h.NoTrailingComments=1024]="NoTrailingComments",h[h.NoComments=1536]="NoComments",h[h.NoNestedComments=2048]="NoNestedComments",h[h.HelperName=4096]="HelperName",h[h.ExportName=8192]="ExportName",h[h.LocalName=16384]="LocalName",h[h.InternalName=32768]="InternalName",h[h.Indented=65536]="Indented",h[h.NoIndentation=131072]="NoIndentation",h[h.AsyncFunctionBody=262144]="AsyncFunctionBody",h[h.ReuseTempVariableScope=524288]="ReuseTempVariableScope",h[h.CustomPrologue=1048576]="CustomPrologue",h[h.NoHoisting=2097152]="NoHoisting",h[h.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",h[h.Iterator=8388608]="Iterator",h[h.NoAsciiEscaping=16777216]="NoAsciiEscaping",h[h.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",h[h.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",h[h.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",h[h.Immutable=268435456]="Immutable",h[h.IndirectCall=536870912]="IndirectCall",(y=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[y.Extends=1]="Extends",y[y.Assign=2]="Assign",y[y.Rest=4]="Rest",y[y.Decorate=8]="Decorate",y[y.Metadata=16]="Metadata",y[y.Param=32]="Param",y[y.Awaiter=64]="Awaiter",y[y.Generator=128]="Generator",y[y.Values=256]="Values",y[y.Read=512]="Read",y[y.SpreadArray=1024]="SpreadArray",y[y.Await=2048]="Await",y[y.AsyncGenerator=4096]="AsyncGenerator",y[y.AsyncDelegator=8192]="AsyncDelegator",y[y.AsyncValues=16384]="AsyncValues",y[y.ExportStar=32768]="ExportStar",y[y.ImportStar=65536]="ImportStar",y[y.ImportDefault=131072]="ImportDefault",y[y.MakeTemplateObject=262144]="MakeTemplateObject",y[y.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",y[y.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",y[y.CreateBinding=2097152]="CreateBinding",y[y.FirstEmitHelper=1]="FirstEmitHelper",y[y.LastEmitHelper=2097152]="LastEmitHelper",y[y.ForOfIncludes=256]="ForOfIncludes",y[y.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",y[y.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",y[y.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",y[y.SpreadIncludes=1536]="SpreadIncludes",(g=e.EmitHint||(e.EmitHint={}))[g.SourceFile=0]="SourceFile",g[g.Expression=1]="Expression",g[g.IdentifierName=2]="IdentifierName",g[g.MappedTypeParameter=3]="MappedTypeParameter",g[g.Unspecified=4]="Unspecified",g[g.EmbeddedStatement=5]="EmbeddedStatement",g[g.JsxAttributeValue=6]="JsxAttributeValue",(_=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[_.Parentheses=1]="Parentheses",_[_.TypeAssertions=2]="TypeAssertions",_[_.NonNullAssertions=4]="NonNullAssertions",_[_.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",_[_.Assertions=6]="Assertions",_[_.All=15]="All",(m=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[m.None=0]="None",m[m.InParameters=1]="InParameters",m[m.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(f=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",f.EmitHelpers="emitHelpers",f.NoDefaultLib="no-default-lib",f.Reference="reference",f.Type="type",f.Lib="lib",f.Prepend="prepend",f.Text="text",f.Internal="internal",(p=e.ListFormat||(e.ListFormat={}))[p.None=0]="None",p[p.SingleLine=0]="SingleLine",p[p.MultiLine=1]="MultiLine",p[p.PreserveLines=2]="PreserveLines",p[p.LinesMask=3]="LinesMask",p[p.NotDelimited=0]="NotDelimited",p[p.BarDelimited=4]="BarDelimited",p[p.AmpersandDelimited=8]="AmpersandDelimited",p[p.CommaDelimited=16]="CommaDelimited",p[p.AsteriskDelimited=32]="AsteriskDelimited",p[p.DelimitersMask=60]="DelimitersMask",p[p.AllowTrailingComma=64]="AllowTrailingComma",p[p.Indented=128]="Indented",p[p.SpaceBetweenBraces=256]="SpaceBetweenBraces",p[p.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",p[p.Braces=1024]="Braces",p[p.Parenthesis=2048]="Parenthesis",p[p.AngleBrackets=4096]="AngleBrackets",p[p.SquareBrackets=8192]="SquareBrackets",p[p.BracketsMask=15360]="BracketsMask",p[p.OptionalIfUndefined=16384]="OptionalIfUndefined",p[p.OptionalIfEmpty=32768]="OptionalIfEmpty",p[p.Optional=49152]="Optional",p[p.PreferNewLine=65536]="PreferNewLine",p[p.NoTrailingNewLine=131072]="NoTrailingNewLine",p[p.NoInterveningComments=262144]="NoInterveningComments",p[p.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",p[p.SingleElement=1048576]="SingleElement",p[p.SpaceAfterList=2097152]="SpaceAfterList",p[p.Modifiers=262656]="Modifiers",p[p.HeritageClauses=512]="HeritageClauses",p[p.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",p[p.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",p[p.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",p[p.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",p[p.UnionTypeConstituents=516]="UnionTypeConstituents",p[p.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",p[p.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",p[p.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",p[p.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",p[p.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",p[p.CommaListElements=528]="CommaListElements",p[p.CallExpressionArguments=2576]="CallExpressionArguments",p[p.NewExpressionArguments=18960]="NewExpressionArguments",p[p.TemplateExpressionSpans=262144]="TemplateExpressionSpans",p[p.SingleLineBlockStatements=768]="SingleLineBlockStatements",p[p.MultiLineBlockStatements=129]="MultiLineBlockStatements",p[p.VariableDeclarationList=528]="VariableDeclarationList",p[p.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",p[p.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",p[p.ClassHeritageClauses=0]="ClassHeritageClauses",p[p.ClassMembers=129]="ClassMembers",p[p.InterfaceMembers=129]="InterfaceMembers",p[p.EnumMembers=145]="EnumMembers",p[p.CaseBlockClauses=129]="CaseBlockClauses",p[p.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",p[p.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",p[p.JsxElementAttributes=262656]="JsxElementAttributes",p[p.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",p[p.HeritageClauseTypes=528]="HeritageClauseTypes",p[p.SourceFileStatements=131073]="SourceFileStatements",p[p.Decorators=2146305]="Decorators",p[p.TypeArguments=53776]="TypeArguments",p[p.TypeParameters=53776]="TypeParameters",p[p.Parameters=2576]="Parameters",p[p.IndexSignatureParameters=8848]="IndexSignatureParameters",p[p.JSDocComment=33]="JSDocComment",(d=e.PragmaKindFlags||(e.PragmaKindFlags={}))[d.None=0]="None",d[d.TripleSlashXML=1]="TripleSlashXML",d[d.SingleLine=2]="SingleLine",d[d.MultiLine=4]="MultiLine",d[d.All=7]="All",d[d.Default=7]="Default",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}}}(u||(u={})),function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var n="://",t=/\\/g;function r(e){return 47===e||92===e}function a(e){return d(e)>0}function o(e){return 0!==d(e)}function s(e){return/^\.\.?($|[\\/])/.test(e)}function c(n,t){return n.length>t.length&&e.endsWith(n,t)}function l(e){return e.length>0&&r(e.charCodeAt(e.length-1))}function u(e){return e>=97&&e<=122||e>=65&&e<=90}function d(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var i=t.indexOf(47===r?e.directorySeparator:e.altDirectorySeparator,2);return i<0?t.length:i+1}if(u(r)&&58===t.charCodeAt(1)){var a=t.charCodeAt(2);if(47===a||92===a)return 3;if(2===t.length)return 2}var o=t.indexOf(n);if(-1!==o){var s=o+n.length,c=t.indexOf(e.directorySeparator,s);if(-1!==c){var l=t.slice(0,o),d=t.slice(s,c);if("file"===l&&(""===d||"localhost"===d)&&u(t.charCodeAt(c+1))){var p=function(e,n){var t=e.charCodeAt(n);if(58===t)return n+1;if(37===t&&51===e.charCodeAt(n+1)){var r=e.charCodeAt(n+2);if(97===r||65===r)return n+3}return-1}(t,c+2);if(-1!==p){if(47===t.charCodeAt(p))return~(p+1);if(p===t.length)return~p}}return~(c+1)}return~t.length}return 0}function p(e){var n=d(e);return n<0?~n:n}function f(n){var t=p(n=v(n));return t===n.length?n:(n=D(n)).slice(0,Math.max(t,n.lastIndexOf(e.directorySeparator)))}function m(n,t,r){if(p(n=v(n))===n.length)return"";var i=(n=D(n)).slice(Math.max(p(n),n.lastIndexOf(e.directorySeparator)+1)),a=void 0!==t&&void 0!==r?g(i,t,r):void 0;return a?i.slice(0,i.length-a.length):i}function _(n,t,r){if(e.startsWith(t,".")||(t="."+t),n.length>=t.length&&46===n.charCodeAt(n.length-t.length)){var i=n.slice(n.length-t.length);if(r(i,t))return i}}function g(n,t,r){if(t)return function(e,n,t){if("string"==typeof n)return _(e,n,t)||"";for(var r=0,i=n;r<i.length;r++){var a=_(e,i[r],t);if(a)return a}return""}(D(n),t,r?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var i=m(n),a=i.lastIndexOf(".");return a>=0?i.substring(a):""}function y(n,t){return void 0===t&&(t=""),function(n,t){var r=n.substring(0,t),a=n.substring(t).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),i([r],a,!0)}(n=E(t,n),p(n))}function h(n){return 0===n.length?"":(n[0]&&A(n[0]))+n.slice(1).join(e.directorySeparator)}function v(n){var r=n.indexOf("\\");return-1===r?n:(t.lastIndex=r,n.replace(t,e.directorySeparator))}function b(n){if(!e.some(n))return[];for(var t=[n[0]],r=1;r<n.length;r++){var i=n[r];if(i&&"."!==i){if(".."===i)if(t.length>1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(i)}}return t}function E(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];e&&(e=v(e));for(var r=0,i=n;r<i.length;r++){var a=i[r];a&&(a=v(a),e=e&&0===p(a)?A(e)+a:a)}return e}function T(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return L(e.some(t)?E.apply(void 0,i([n],t,!1)):v(n))}function S(e,n){return b(y(e,n))}function x(e,n){return h(S(e,n))}function L(e){if(e=v(e),!I.test(e))return e;var n=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(n!==e&&(e=n,!I.test(e)))return e;var t=h(b(y(e)));return t&&l(e)?A(t):t}function D(e){return l(e)?e.substr(0,e.length-1):e}function A(n){return l(n)?n:n+e.directorySeparator}function C(e){return o(e)||s(e)?e:"./"+e}e.isAnyDirectorySeparator=r,e.isUrl=function(e){return d(e)<0},e.isRootedDiskPath=a,e.isDiskPathRoot=function(e){var n=d(e);return n>0&&n===e.length},e.pathIsAbsolute=o,e.pathIsRelative=s,e.pathIsBareSpecifier=function(e){return!o(e)&&!s(e)},e.hasExtension=function(n){return e.stringContains(m(n),".")},e.fileExtensionIs=c,e.fileExtensionIsOneOf=function(e,n){for(var t=0,r=n;t<r.length;t++)if(c(e,r[t]))return!0;return!1},e.hasTrailingDirectorySeparator=l,e.getRootLength=p,e.getDirectoryPath=f,e.getBaseFileName=m,e.getAnyExtensionFromPath=g,e.getPathComponents=y,e.getPathFromPathComponents=h,e.normalizeSlashes=v,e.reducePathComponents=b,e.combinePaths=E,e.resolvePath=T,e.getNormalizedPathComponents=S,e.getNormalizedAbsolutePath=x,e.normalizePath=L,e.getNormalizedAbsolutePathWithoutRoot=function(n,t){return 0===(r=S(n,t)).length?"":r.slice(1).join(e.directorySeparator);var r},e.toPath=function(e,n,t){return t(a(e)?L(e):x(e,n))},e.normalizePathAndParts=function(n){var t=b(y(n=v(n))),r=t[0],i=t.slice(1);if(i.length){var a=r+i.join(e.directorySeparator);return{path:l(n)?A(a):a,parts:i}}return{path:r,parts:i}},e.removeTrailingDirectorySeparator=D,e.ensureTrailingDirectorySeparator=A,e.ensurePathIsNonModuleName=C,e.changeAnyExtension=function(n,t,r,i){var a=void 0!==r&&void 0!==i?g(n,r,i):g(n);return a?n.slice(0,n.length-a.length)+(e.startsWith(t,".")?t:"."+t):n};var I=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function N(n,t,r){if(n===t)return 0;if(void 0===n)return-1;if(void 0===t)return 1;var i=n.substring(0,p(n)),a=t.substring(0,p(t)),o=e.compareStringsCaseInsensitive(i,a);if(0!==o)return o;var s=n.substring(i.length),c=t.substring(a.length);if(!I.test(s)&&!I.test(c))return r(s,c);for(var l=b(y(n)),u=b(y(t)),d=Math.min(l.length,u.length),f=1;f<d;f++){var m=r(l[f],u[f]);if(0!==m)return m}return e.compareValues(l.length,u.length)}function k(n,t,r,a){var o,s=b(y(n)),c=b(y(t));for(o=0;o<s.length&&o<c.length;o++){var l=a(s[o]),u=a(c[o]);if(!(0===o?e.equateStringsCaseInsensitive:r)(l,u))break}if(0===o)return c;for(var d=c.slice(o),p=[];o<s.length;o++)p.push("..");return i(i([""],p,!0),d,!0)}function R(n,t,r){e.Debug.assert(p(n)>0==p(t)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof r?r:e.identity;return h(k(n,t,"boolean"==typeof r&&r?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function O(n,t,r,i,o){var s=k(T(r,n),T(r,t),e.equateStringsCaseSensitive,i),c=s[0];if(o&&a(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return h(s)}e.comparePathsCaseSensitive=function(n,t){return N(n,t,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(n,t){return N(n,t,e.compareStringsCaseInsensitive)},e.comparePaths=function(n,t,r,i){return"string"==typeof r?(n=E(r,n),t=E(r,t)):"boolean"==typeof r&&(i=r),N(n,t,e.getStringComparer(i))},e.containsPath=function(n,t,r,i){if("string"==typeof r?(n=E(r,n),t=E(r,t)):"boolean"==typeof r&&(i=r),void 0===n||void 0===t)return!1;if(n===t)return!0;var a=b(y(n)),o=b(y(t));if(o.length<a.length)return!1;for(var s=i?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,c=0;c<a.length;c++)if(!(0===c?e.equateStringsCaseInsensitive:s)(a[c],o[c]))return!1;return!0},e.startsWithDirectory=function(n,t,r){var i=r(n),a=r(t);return e.startsWith(i,a+"/")||e.startsWith(i,a+"\\")},e.getPathComponentsRelativeTo=k,e.getRelativePathFromDirectory=R,e.convertToRelativePath=function(e,n,t){return a(e)?O(n,e,n,t,!1):e},e.getRelativePathFromFile=function(e,n,t){return C(R(f(e),n,t))},e.getRelativePathToDirectoryOrUrl=O,e.forEachAncestorDirectory=function(e,n){for(;;){var t=n(e);if(void 0!==t)return t;var r=f(e);if(r===e)return;e=r}},e.isNodeModulesDirectory=function(n){return e.endsWith(n,"/node_modules")}}(u||(u={})),function(e){var n,t;function r(n,t){return n.getModifiedTime(t)||e.missingFileModifiedTime}function i(e){var n;return(n={})[t.Low]=e.Low,n[t.Medium]=e.Medium,n[t.High]=e.High,n}e.generateDjb2Hash=function(e){for(var n=5381,t=0;t<e.length;t++)n=(n<<5)+n+e.charCodeAt(t);return n.toString()},e.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"}(n=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),function(e){e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"}(t=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0),e.getModifiedTime=r;var o,s={Low:32,Medium:64,High:256},c=i(s);function l(n){if(n.getEnvironmentVariable){var r=function(e,n){var t=o("TSC_WATCH_POLLINGINTERVAL");return!!t&&(r("Low"),r("Medium"),r("High"),!0);function r(e){n[e]=t[e]||n[e]}}(0,t);c=l("TSC_WATCH_POLLINGCHUNKSIZE",s)||c,e.unchangedPollThresholds=l("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",s)||e.unchangedPollThresholds}function o(e){var t;return r("Low"),r("Medium"),r("High"),t;function r(r){var i=function(e,t){return n.getEnvironmentVariable(e+"_"+t.toUpperCase())}(e,r);i&&((t||(t={}))[r]=Number(i))}}function l(e,n){var t=o(e);return(r||t)&&i(t?a(a({},n),t):n)}}function u(e,n,t,i,a){for(var o=t,s=n.length;i&&s;++t===n.length&&(o<t&&(n.length=o),t=0,o=0),s--){var c=n[t];if(c)if(c.isClosed)n[t]=void 0;else{i--;var l=f(c,r(e,c.fileName));c.isClosed?n[t]=void 0:(null==a||a(c,t,l),n[t]&&(o<t&&(n[o]=c,n[t]=void 0),o++))}}return t}function d(n){var i=[],a=[],o=d(t.Low),s=d(t.Medium),l=d(t.High);return function(t,a,o){var s={fileName:t,callback:a,unchangedPolls:0,mtime:r(n,t)};return i.push(s),g(s,o),{close:function(){s.isClosed=!0,e.unorderedRemoveItem(i,s)}}};function d(e){var n=[];return n.pollingInterval=e,n.pollIndex=0,n.pollScheduled=!1,n}function p(n){n.pollIndex=m(n,n.pollingInterval,n.pollIndex,c[n.pollingInterval]),n.length?h(n.pollingInterval):(e.Debug.assert(0===n.pollIndex),n.pollScheduled=!1)}function f(e){m(a,t.Low,0,a.length),p(e),!e.pollScheduled&&a.length&&h(t.Low)}function m(r,i,o,s){return u(n,r,o,s,(function(n,o,s){var c;s?(n.unchangedPolls=0,r!==a&&(r[o]=void 0,c=n,a.push(c),y(t.Low))):n.unchangedPolls!==e.unchangedPollThresholds[i]?n.unchangedPolls++:r===a?(n.unchangedPolls=1,r[o]=void 0,g(n,t.Low)):i!==t.High&&(n.unchangedPolls++,r[o]=void 0,g(n,i===t.Low?t.Medium:t.High))}))}function _(e){switch(e){case t.Low:return o;case t.Medium:return s;case t.High:return l}}function g(e,n){_(n).push(e),y(n)}function y(e){_(e).pollScheduled||h(e)}function h(e){_(e).pollScheduled=n.setTimeout(e===t.Low?f:p,e,_(e))}}function p(n){var i,a=[],o=0;return function(t,i){var o={fileName:t,callback:i,mtime:r(n,t)};return a.push(o),l(),{close:function(){o.isClosed=!0,e.unorderedRemoveItem(a,o)}}};function s(){i=void 0,o=u(n,a,o,c[t.Low]),l()}function l(){a.length&&!i&&(i=n.setTimeout(s,t.High))}}function f(e,n){var t=e.mtime.getTime(),r=n.getTime();return t!==r&&(e.mtime=n,e.callback(e.fileName,m(t,r)),!0)}function m(e,t){return 0===e?n.Created:0===t?n.Deleted:n.Changed}function _(n){var t,r=n.watchDirectory,i=n.useCaseSensitiveFileNames,a=n.getCurrentDirectory,o=n.getAccessibleSortedChildDirectories,s=n.directoryExists,c=n.realpath,l=n.setTimeout,u=n.clearTimeout,d=new e.Map,p=e.createMultiMap(),f=new e.Map,m=e.getStringComparer(!i),_=e.createGetCanonicalFileName(i);return function(e,n,t,i){return t?y(e,i,n):r(e,n,t,i)};function y(n,i,a){var o=_(n),c=d.get(o);c?c.refCount++:(c={watcher:r(n,(function(e){T(e,i)||((null==i?void 0:i.synchronousWatchDirectory)?(h(o,e),E(n,o,i)):function(e,n,r,i){var a=d.get(n);a&&s(e)?function(e,n,r,i){var a=f.get(n);a?a.fileNames.push(r):f.set(n,{dirName:e,options:i,fileNames:[r]}),t&&(u(t),t=void 0),t=l(v,1e3)}(e,n,r,i):(h(n,r),b(a))}(n,o,e,i))}),!1,i),refCount:1,childWatches:e.emptyArray},d.set(o,c),E(n,o,i));var m=a&&{dirName:n,callback:a};return m&&p.add(o,m),{dirName:n,close:function(){var n=e.Debug.checkDefined(d.get(o));m&&p.remove(o,m),n.refCount--,n.refCount||(d.delete(o),e.closeFileWatcherOf(n),n.childWatches.forEach(e.closeFileWatcher))}}}function h(n,t,r){var i,a;e.isString(t)?i=t:a=t,p.forEach((function(t,o){var s;if((!a||!0!==a.get(o))&&(o===n||e.startsWith(n,o)&&n[o.length]===e.directorySeparator))if(a)if(r){var c=a.get(o);c?(s=c).push.apply(s,r):a.set(o,r.slice())}else a.set(o,!0);else t.forEach((function(e){return(0,e.callback)(i)}))}))}function v(){t=void 0,e.sysLog("sysLog:: onTimerToUpdateChildWatches:: "+f.size);for(var n=e.timestamp(),r=new e.Map;!t&&f.size;){var i=f.entries().next();e.Debug.assert(!i.done);var a=i.value,o=a[0],s=a[1],c=s.dirName,l=s.options,u=s.fileNames;f.delete(o);var d=E(c,o,l);h(o,r,d?void 0:u)}e.sysLog("sysLog:: invokingWatchers:: Elapsed:: "+(e.timestamp()-n)+"ms:: "+f.size),p.forEach((function(n,t){var i=r.get(t);i&&n.forEach((function(n){var t=n.callback,r=n.dirName;e.isArray(i)?i.forEach(t):t(r)}))}));var m=e.timestamp()-n;e.sysLog("sysLog:: Elapsed:: "+m+"ms:: onTimerToUpdateChildWatches:: "+f.size+" "+t)}function b(n){if(n){var t=n.childWatches;n.childWatches=e.emptyArray;for(var r=0,i=t;r<i.length;r++){var a=i[r];a.close(),b(d.get(_(a.dirName)))}}}function E(n,t,r){var i,a=d.get(t);if(!a)return!1;var l=e.enumerateInsertsAndDeletes(s(n)?e.mapDefined(o(n),(function(t){var i=e.getNormalizedAbsolutePath(t,n);return T(i,r)||0!==m(i,e.normalizePath(c(i)))?void 0:i})):e.emptyArray,a.childWatches,(function(e,n){return m(e,n.dirName)}),(function(e){u(y(e,r))}),e.closeFileWatcher,u);return a.childWatches=i||e.emptyArray,l;function u(e){(i||(i=[])).push(e)}}function T(n,t){return e.some(e.ignoredPaths,(function(t){return function(n,t){return!!e.stringContains(n,t)||!i&&e.stringContains(_(n),t)}(n,t)}))||g(n,t,i,a)}}function g(n,t,r,i){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(e.matchesExclude(n,null==t?void 0:t.excludeFiles,r,i())||e.matchesExclude(n,null==t?void 0:t.excludeDirectories,r,i()))}function y(n,t,r,i,a){return function(o,s){if("rename"===o){var c=s?e.normalizePath(e.combinePaths(n,s)):n;s&&g(c,r,i,a)||t(c)}}}e.unchangedPollThresholds=i(s),e.setCustomPollingValues=l,e.createDynamicPriorityPollingWatchFile=d,e.createSingleFileWatcherPerName=function(n,t){var r=new e.Map,i=e.createMultiMap(),a=e.createGetCanonicalFileName(t);return function(t,o,s,c){var l=a(t),u=r.get(l);return u?u.refCount++:r.set(l,{watcher:n(t,(function(n,t){return e.forEach(i.get(l),(function(e){return e(n,t)}))}),s,c),refCount:1}),i.add(l,o),{close:function(){var n=e.Debug.checkDefined(r.get(l));i.remove(l,o),n.refCount--,n.refCount||(r.delete(l),e.closeFileWatcherOf(n))}}}},e.onWatchedFileStat=f,e.getFileWatcherEventKind=m,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop,e.setSysLog=function(n){e.sysLog=n},e.createDirectoryWatcherSupportingRecursive=_,(o=e.FileSystemEntryKind||(e.FileSystemEntryKind={}))[o.File=0]="File",o[o.Directory=1]="Directory",e.createFileWatcherCallback=function(e){return function(t,r){return e(r===n.Changed?"change":"rename","")}},e.createSystemWatchFunctions=function(r){var i,a,o,s,c=r.pollingWatchFile,l=r.getModifiedTime,u=r.setTimeout,f=r.clearTimeout,m=r.fsWatch,g=r.fileExists,h=r.useCaseSensitiveFileNames,v=r.getCurrentDirectory,b=r.fsSupportsRecursiveFsWatch,E=r.directoryExists,T=r.getAccessibleSortedChildDirectories,S=r.realpath,x=r.tscWatchFile,L=r.useNonPollingWatchers,D=r.tscWatchDirectory,A=r.defaultWatchFileKind;return{watchFile:function(r,i,a,s){s=function(n,t){if(n&&void 0!==n.watchFile)return n;switch(x){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return N(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,n);case"UseFsEventsWithFallbackDynamicPolling":return N(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,n);case"UseFsEventsOnParentDirectory":t=!0;default:return t?N(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,n):{watchFile:(null==A?void 0:A())||e.WatchFileKind.FixedPollingInterval}}}(s,L);var l=e.Debug.checkDefined(s.watchFile);switch(l){case e.WatchFileKind.FixedPollingInterval:return c(r,i,t.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return c(r,i,a,void 0);case e.WatchFileKind.DynamicPriorityPolling:return C()(r,i,a,void 0);case e.WatchFileKind.FixedChunkSizePolling:return I()(r,i,void 0,void 0);case e.WatchFileKind.UseFsEvents:return m(r,0,function(e,t,r){return function(i){t(e,"rename"===i?r(e)?n.Created:n.Deleted:n.Changed)}}(r,i,g),!1,a,e.getFallbackOptions(s));case e.WatchFileKind.UseFsEventsOnParentDirectory:return o||(o=function(r,i){var a=e.createMultiMap(),o=new e.Map,s=e.createGetCanonicalFileName(i);return function(i,c,l,u){var d=s(i);a.add(d,c);var p=e.getDirectoryPath(d)||".",f=o.get(p)||function(i,c,l){var u=r(i,1,(function(t,r){if(e.isString(r)){var o=e.getNormalizedAbsolutePath(r,i),c=o&&a.get(s(o));if(c)for(var l=0,u=c;l<u.length;l++)(0,u[l])(o,n.Changed)}}),!1,t.Medium,l);return u.referenceCount=0,o.set(c,u),u}(e.getDirectoryPath(i)||".",p,u);return f.referenceCount++,{close:function(){1===f.referenceCount?(f.close(),o.delete(p)):f.referenceCount--,a.remove(d,c)}}}}(m,h)),o(r,i,a,e.getFallbackOptions(s));default:e.Debug.assertNever(l)}},watchDirectory:function(n,r,i,a){return b?m(n,1,y(n,r,a,h,v),i,t.Medium,e.getFallbackOptions(a)):(s||(s=_({useCaseSensitiveFileNames:h,getCurrentDirectory:v,directoryExists:E,getAccessibleSortedChildDirectories:T,watchDirectory:k,realpath:S,setTimeout:u,clearTimeout:f})),s(n,r,i,a))}};function C(){return i||(i=d({getModifiedTime:l,setTimeout:u}))}function I(){return a||(a=p({getModifiedTime:l,setTimeout:u}))}function N(e,n,t){var r=null==t?void 0:t.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?n:r}}function k(n,r,i,a){e.Debug.assert(!i);var o=function(n){if(n&&void 0!==n.watchDirectory)return n;switch(D){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var t=null==n?void 0:n.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:void 0!==t?t:void 0}}}(a),s=e.Debug.checkDefined(o.watchDirectory);switch(s){case e.WatchDirectoryKind.FixedPollingInterval:return c(n,(function(){return r(n)}),t.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return C()(n,(function(){return r(n)}),t.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return I()(n,(function(){return r(n)}),void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return m(n,1,y(n,r,a,h,v),i,t.Medium,e.getFallbackOptions(o));default:e.Debug.assertNever(s)}}},e.patchWriteFileEnsuringDirectory=function(n){var t=n.writeFile;n.writeFile=function(r,i,a){return e.writeFileEnsuringDirectories(r,i,!!a,(function(e,r,i){return t.call(n,e,r,i)}),(function(e){return n.createDirectory(e)}),(function(e){return n.directoryExists(e)}))}},e.getNodeMajorVersion=function(){if("undefined"!=typeof process){var e=process.version;if(e){var n=e.indexOf(".");if(-1!==n)return parseInt(e.substring(1,n))}}},e.sys=void 0,e.sys&&e.sys.getEnvironmentVariable&&(l(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)}(u||(u={})),function(e){function n(e,n,t,r,i,a,o){return{code:e,category:n,key:t,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:a,reportsDeprecated:o}}e.Diagnostics={Unterminated_string_literal:n(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:n(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:n(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:n(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_to_match_the_token_here:n(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_to_match_the_token_here_1007","The parser expected to find a '}' to match the '{' token here."),Trailing_comma_not_allowed:n(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:n(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:n(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:n(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:n(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:n(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:n(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:n(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:n(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:n(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:n(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:n(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:n(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:n(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:n(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:n(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:n(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:n(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:n(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:n(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:n(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:n(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:n(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:n(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:n(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:n(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:n(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:n(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:n(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:n(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:n(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:n(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:n(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:n(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:n(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:n(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:n(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:n(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:n(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:n(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:n(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:n(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:n(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:n(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:n(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:n(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:n(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:n(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:n(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:n(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:n(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:n(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:n(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:n(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:n(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:n(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:n(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:n(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:n(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:n(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:n(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:n(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:n(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:n(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:n(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:n(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:n(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:n(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:n(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:n(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:n(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:n(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:n(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:n(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:n(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:n(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:n(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:n(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:n(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:n(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:n(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:n(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:n(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:n(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:n(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:n(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:n(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:n(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:n(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:n(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:n(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:n(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:n(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:n(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:n(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:n(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:n(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:n(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:n(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:n(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:n(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:n(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:n(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:n(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:n(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:n(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:n(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:n(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:n(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:n(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:n(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:n(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:n(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:n(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:n(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:n(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:n(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:n(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:n(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:n(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:n(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:n(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:n(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:n(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:n(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:n(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:n(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:n(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:n(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:n(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:n(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:n(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:n(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:n(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:n(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:n(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:n(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:n(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:n(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:n(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:n(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:n(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:n(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:n(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:n(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:n(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:n(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:n(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:n(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:n(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:n(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:n(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:n(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:n(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:n(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:n(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:n(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:n(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:n(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:n(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:n(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:n(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:n(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:n(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:n(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:n(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:n(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:n(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:n(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:n(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:n(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:n(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:n(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:n(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:n(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:n(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:n(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:n(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:n(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:n(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:n(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:n(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:n(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:n(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:n(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:n(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:n(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:n(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:n(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:n(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:n(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:n(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:n(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:n(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:n(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:n(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:n(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:n(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:n(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:n(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:n(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:n(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:n(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:n(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:n(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:n(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:n(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:n(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:n(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:n(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:n(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:n(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:n(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:n(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:n(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:n(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:n(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),with_statements_are_not_allowed_in_an_async_function_block:n(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:n(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:n(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:n(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:n(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:n(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:n(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:n(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:n(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:n(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:n(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:n(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:n(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd:n(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:n(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:n(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:n(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:n(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:n(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:n(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:n(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:n(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:n(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:n(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:n(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:n(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:n(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:n(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:n(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:n(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:n(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system:n(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:n(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:n(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:n(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:n(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:n(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:n(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:n(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:n(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:n(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:n(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:n(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:n(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:n(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:n(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:n(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:n(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Did_you_mean_to_parenthesize_this_function_type:n(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:n(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:n(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:n(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:n(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:n(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:n(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:n(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:n(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:n(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:n(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:n(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:n(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:n(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:n(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:n(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_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:n(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:n(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:n(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:n(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Only_named_exports_may_use_export_type:n(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:n(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:n(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:n(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:n(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:n(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:n(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),Provides_a_root_package_name_when_using_outFile_with_declarations:n(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:n(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:n(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:n(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:n(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:n(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:n(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:n(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:n(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:n(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:n(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:n(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:n(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:n(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:n(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:n(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:n(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:n(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:n(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:n(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:n(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:n(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:n(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:n(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:n(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:n(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:n(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:n(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:n(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:n(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:n(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:n(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:n(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:n(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:n(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:n(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:n(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:n(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:n(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:n(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:n(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:n(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:n(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_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:n(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:n(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:n(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:n(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:n(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:n(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:n(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:n(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:n(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:n(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:n(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),The_types_of_0_are_incompatible_between_these_types:n(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:n(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:n(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:n(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:n(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:n(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Duplicate_identifier_0:n(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:n(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:n(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:n(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:n(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:n(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:n(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:n(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:n(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:n(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:n(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:n(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:n(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:n(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:n(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:n(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:n(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:n(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:n(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:n(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:n(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:n(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:n(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:n(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:n(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:n(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:n(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:n(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:n(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:n(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:n(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:n(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:n(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:n(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:n(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:n(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:n(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:n(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:n(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:n(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:n(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:n(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:n(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:n(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:n(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:n(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:n(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:n(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:n(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:n(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:n(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:n(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:n(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:n(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:n(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:n(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:n(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:n(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:n(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:n(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:n(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:n(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:n(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:n(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:n(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:n(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:n(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:n(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:n(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:n(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:n(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:n(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:n(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:n(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:n(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:n(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:n(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:n(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:n(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),A_signature_with_an_implementation_cannot_use_a_string_literal_type:n(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:n(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:n(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:n(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:n(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:n(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:n(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:n(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:n(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:n(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:n(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:n(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:n(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:n(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:n(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:n(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:n(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:n(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:n(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:n(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:n(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:n(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:n(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:n(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:n(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:n(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:n(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:n(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:n(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:n(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:n(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:n(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:n(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:n(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:n(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:n(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:n(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:n(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:n(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:n(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:n(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:n(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:n(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:n(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:n(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:n(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:n(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:n(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:n(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:n(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:n(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:n(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:n(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:n(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:n(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:n(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:n(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:n(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:n(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:n(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:n(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:n(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:n(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:n(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:n(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:n(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:n(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:n(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:n(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:n(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:n(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:n(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:n(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:n(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:n(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:n(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:n(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:n(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:n(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:n(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:n(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:n(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:n(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:n(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:n(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:n(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:n(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:n(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:n(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:n(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:n(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:n(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:n(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:n(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:n(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:n(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:n(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:n(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:n(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:n(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:n(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:n(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:n(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:n(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:n(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:n(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:n(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:n(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:n(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:n(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:n(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:n(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:n(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:n(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:n(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:n(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:n(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:n(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:n(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:n(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:n(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:n(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:n(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:n(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:n(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:n(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:n(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:n(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:n(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:n(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:n(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:n(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:n(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:n(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:n(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:n(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:n(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:n(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:n(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:n(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:n(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:n(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:n(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:n(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:n(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:n(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:n(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:n(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:n(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:n(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:n(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:n(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:n(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:n(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:n(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:n(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:n(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:n(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:n(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:n(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:n(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:n(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:n(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:n(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:n(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:n(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:n(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:n(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:n(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:n(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:n(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:n(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:n(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:n(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:n(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:n(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:n(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:n(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:n(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:n(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Could_not_find_name_0_Did_you_mean_1:n(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:n(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:n(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:n(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:n(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:n(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:n(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:n(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:n(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:n(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:n(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:n(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:n(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:n(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:n(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Enum_type_0_circularly_references_itself:n(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:n(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:n(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:n(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:n(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:n(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:n(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:n(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:n(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:n(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:n(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:n(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:n(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_attributes_type_0_may_not_be_a_union_type:n(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:n(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:n(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:n(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:n(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:n(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:n(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:n(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:n(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:n(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:n(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:n(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:n(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:n(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:n(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:n(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:n(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:n(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:n(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:n(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:n(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:n(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:n(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:n(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:n(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:n(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:n(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:n(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:n(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:n(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:n(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:n(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:n(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:n(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:n(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:n(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:n(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:n(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:n(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:n(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:n(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:n(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:n(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:n(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:n(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:n(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:n(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:n(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:n(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:n(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:n(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:n(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:n(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:n(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:n(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:n(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:n(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:n(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:n(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:n(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:n(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:n(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:n(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:n(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:n(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:n(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:n(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:n(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:n(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:n(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:n(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:n(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:n(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:n(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:n(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:n(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:n(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:n(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:n(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:n(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:n(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:n(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:n(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:n(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:n(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:n(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:n(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:n(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:n(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:n(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:n(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:n(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:n(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:n(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:n(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:n(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:n(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:n(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:n(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:n(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:n(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:n(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:n(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:n(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:n(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:n(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:n(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:n(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:n(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:n(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:n(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:n(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:n(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:n(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:n(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:n(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:n(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:n(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:n(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:n(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:n(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:n(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:n(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:n(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:n(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:n(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:n(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:n(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:n(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:n(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:n(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:n(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:n(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:n(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:n(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:n(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:n(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:n(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:n(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:n(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:n(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:n(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:n(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:n(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:n(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:n(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:n(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:n(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:n(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:n(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:n(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:n(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:n(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:n(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:n(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:n(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:n(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:n(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:n(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:n(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:n(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:n(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:n(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:n(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:n(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:n(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:n(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:n(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:n(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:n(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:n(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:n(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:n(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:n(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:n(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:n(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:n(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:n(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:n(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:n(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:n(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:n(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:n(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:n(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:n(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag:n(2805,e.DiagnosticCategory.Error,"Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_no_2805","Static fields with private names can't have initializers when the '--useDefineForClassFields' flag is not specified with a '--target' of 'esnext'. Consider adding the '--useDefineForClassFields' flag."),Private_accessor_was_defined_without_a_getter:n(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:n(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:n(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:n(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false:n(2810,e.DiagnosticCategory.Error,"Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnex_2810","Property '{0}' may not be used in a static property's initializer in the same class when 'target' is 'esnext' and 'useDefineForClassFields' is 'false'."),Initializer_for_property_0:n(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:n(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:n(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:n(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:n(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:n(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:n(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:n(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:n(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Import_declaration_0_is_using_private_name_1:n(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:n(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:n(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:n(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:n(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:n(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:n(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:n(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:n(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:n(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:n(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:n(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:n(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:n(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:n(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:n(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:n(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:n(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:n(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:n(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:n(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:n(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:n(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:n(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:n(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:n(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:n(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:n(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:n(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:n(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:n(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:n(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:n(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:n(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:n(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:n(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:n(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:n(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:n(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:n(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:n(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:n(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:n(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:n(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:n(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:n(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:n(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:n(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:n(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:n(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:n(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:n(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:n(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:n(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:n(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:n(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:n(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:n(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:n(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:n(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:n(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:n(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:n(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:n(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:n(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:n(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:n(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:n(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),The_current_host_does_not_support_the_0_option:n(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:n(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:n(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:n(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:n(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:n(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:n(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:n(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:n(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:n(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:n(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:n(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:n(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:n(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:n(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:n(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:n(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:n(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:n(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:n(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:n(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:n(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:n(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:n(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:n(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:n(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:n(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:n(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:n(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:n(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:n(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:n(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:n(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:n(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:n(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:n(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:n(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:n(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:n(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:n(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:n(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:n(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:n(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:n(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:n(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:n(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:n(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:n(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:n(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:n(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:n(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:n(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:n(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:n(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:n(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:n(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:n(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:n(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:n(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:n(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:n(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:n(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:n(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:n(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:n(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:n(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:n(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:n(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:n(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:n(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:n(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:n(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:n(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:n(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:n(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:n(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:n(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:n(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:n(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:n(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:n(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:n(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:n(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:n(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:n(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:n(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:n(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:n(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:n(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:n(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:n(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:n(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:n(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:n(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:n(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:n(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unsupported_locale_0:n(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:n(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:n(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:n(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:n(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:n(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:n(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:n(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:n(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:n(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:n(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:n(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:n(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:n(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:n(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:n(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:n(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:n(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:n(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:n(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:n(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:n(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:n(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:n(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:n(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:n(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:n(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:n(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:n(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:n(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:n(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:n(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:n(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:n(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:n(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:n(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:n(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:n(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:n(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:n(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:n(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:n(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:n(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:n(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:n(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:n(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:n(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:n(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:n(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:n(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:n(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:n(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:n(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:n(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:n(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:n(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:n(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:n(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:n(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:n(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:n(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:n(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:n(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:n(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:n(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:n(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:n(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:n(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:n(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:n(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:n(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:n(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:n(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:n(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:n(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:n(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:n(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:n(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:n(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:n(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:n(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:n(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:n(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:n(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:n(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:n(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:n(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:n(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:n(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:n(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:n(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:n(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:n(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:n(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:n(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:n(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:n(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:n(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:n(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:n(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:n(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:n(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:n(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:n(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:n(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:n(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:n(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:n(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:n(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:n(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:n(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:n(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:n(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:n(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:n(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:n(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:n(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:n(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:n(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:n(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:n(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:n(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:n(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:n(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:n(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:n(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:n(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:n(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:n(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:n(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:n(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:n(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:n(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:n(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:n(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:n(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:n(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:n(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:n(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:n(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:n(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:n(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:n(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:n(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:n(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:n(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:n(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:n(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:n(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:n(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:n(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:n(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:n(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:n(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:n(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:n(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:n(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:n(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:n(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:n(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:n(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:n(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:n(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:n(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:n(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:n(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:n(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:n(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:n(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:n(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:n(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:n(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:n(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:n(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:n(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:n(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:n(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:n(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:n(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:n(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:n(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:n(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:n(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:n(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:n(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:n(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:n(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:n(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:n(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:n(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:n(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:n(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:n(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),Projects_to_reference:n(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:n(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:n(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:n(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:n(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:n(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:n(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:n(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:n(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:n(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:n(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:n(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:n(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:n(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:n(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:n(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:n(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:n(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:n(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:n(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:n(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:n(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:n(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:n(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:n(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Show_what_would_be_built_or_deleted_if_specified_with_clean:n(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:n(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:n(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:n(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:n(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:n(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:n(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:n(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:n(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:n(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:n(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:n(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:n(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:n(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:n(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:n(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:n(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:n(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:n(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:n(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:n(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:n(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:n(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:n(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:n(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:n(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:n(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:n(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:n(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:n(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:n(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:n(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:n(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:n(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:n(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:n(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:n(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:n(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:n(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:n(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:n(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:n(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:n(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:n(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:n(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:n(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:n(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:n(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:n(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:n(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:n(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:n(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:n(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:n(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:n(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:n(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:n(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:n(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects"),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:n(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Only_output_d_ts_files_and_not_JavaScript_files:n(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:n(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:n(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:n(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility."),Filters_results_from_the_include_option:n(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:n(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:n(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:n(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:n(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:n(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:n(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:n(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:n(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:n(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date"),Ensure_that_casing_is_correct_in_imports:n(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:n(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:n(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:n(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:n(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:n(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:n(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:n(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:n(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:n(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'"),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:n(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:n(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`"),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:n(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:n(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:n(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:n(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:n(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:n(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`."),Specify_what_module_code_is_generated:n(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:n(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:n(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:n(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:n(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like `__extends` in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:n(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:n(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:n(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:n(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied `any` type.."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:n(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:n(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:n(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when `this` is given the type `any`."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:n(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:n(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:n(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type"),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:n(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:n(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:n(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add `undefined` to a type when accessed using an index."),Enable_error_reporting_when_a_local_variables_aren_t_read:n(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_a_local_variables_aren_t_read_6675","Enable error reporting when a local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:n(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read"),Deprecated_setting_Use_outFile_instead:n(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:n(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:n(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:n(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:n(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:n(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing `const enum` declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:n(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:n(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode"),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:n(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read"),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:n(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:n(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:n(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:n(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:n(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:n(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:n(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:n(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:n(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:n(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:n(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for `bind`, `call`, and `apply` methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:n(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:n(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account `null` and `undefined`."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:n(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:n(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have `@internal` in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:n(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:n(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress `noImplicitAny` errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:n(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:n(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:n(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the `moduleResolution` process."),Specify_the_folder_for_tsbuildinfo_incremental_compilation_files:n(6707,e.DiagnosticCategory.Message,"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707","Specify the folder for .tsbuildinfo incremental compilation files."),Specify_options_for_automatic_acquisition_of_declaration_files:n(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:n(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like `./node_modules/@types`."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:n(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:n(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:n(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:n(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:n(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Include_undefined_in_index_signature_results:n(6716,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6716","Include 'undefined' in index signature results"),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:n(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:n(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types"),Type_catch_clause_variables_as_unknown_instead_of_any:n(6803,e.DiagnosticCategory.Message,"Type_catch_clause_variables_as_unknown_instead_of_any_6803","Type catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:n(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:n(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:n(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:n(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:n(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:n(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:n(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:n(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:n(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:n(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:n(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:n(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:n(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:n(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:n(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:n(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:n(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:n(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:n(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:n(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:n(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:n(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:n(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:n(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:n(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:n(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:n(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:n(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:n(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:n(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),Variable_0_implicitly_has_an_1_type:n(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:n(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:n(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:n(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:n(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:n(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:n(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:n(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:n(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:n(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:n(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:n(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:n(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:n(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:n(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:n(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:n(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:n(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:n(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:n(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:n(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:n(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:n(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:n(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:n(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:n(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:n(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:n(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:n(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:n(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:n(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:n(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:n(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:n(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:n(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:n(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:n(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:n(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:n(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:n(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:n(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:n(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:n(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:n(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:n(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:n(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:n(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:n(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:n(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:n(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),You_cannot_rename_this_element:n(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:n(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:n(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:n(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:n(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:n(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:n(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:n(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:n(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:n(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:n(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:n(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:n(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:n(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:n(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:n(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:n(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:n(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:n(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:n(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:n(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:n(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:n(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:n(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:n(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:n(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:n(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:n(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:n(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:n(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:n(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:n(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:n(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:n(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:n(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:n(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:n(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:n(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:n(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:n(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:n(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:n(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:n(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:n(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:n(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:n(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:n(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:n(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:n(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:n(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:n(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:n(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:n(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:n(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:n(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:n(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:n(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:n(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:n(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:n(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:n(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:n(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:n(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:n(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:n(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:n(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:n(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:n(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:n(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:n(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:n(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:n(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:n(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:n(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:n(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:n(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:n(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:n(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:n(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:n(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:n(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:n(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:n(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:n(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:n(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:n(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:n(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:n(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:n(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:n(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:n(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:n(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:n(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:n(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:n(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:n(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:n(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:n(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:n(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:n(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:n(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:n(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:n(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:n(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:n(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:n(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:n(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:n(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Convert_function_to_an_ES2015_class:n(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:n(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Convert_0_to_1_in_0:n(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:n(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:n(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:n(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:n(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:n(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:n(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:n(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:n(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:n(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:n(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:n(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:n(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:n(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:n(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:n(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:n(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:n(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:n(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:n(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:n(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:n(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:n(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:n(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:n(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:n(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:n(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:n(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:n(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:n(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:n(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:n(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:n(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:n(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:n(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:n(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:n(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:n(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:n(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:n(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:n(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:n(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:n(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:n(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:n(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:n(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:n(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:n(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:n(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:n(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:n(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:n(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:n(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:n(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:n(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:n(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:n(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:n(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:n(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:n(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:n(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:n(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:n(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:n(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:n(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:n(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:n(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:n(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:n(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:n(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:n(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:n(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:n(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:n(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:n(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:n(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:n(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:n(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:n(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:n(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:n(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:n(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:n(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:n(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:n(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:n(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:n(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:n(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:n(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:n(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:n(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:n(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:n(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:n(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:n(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:n(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:n(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:n(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:n(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:n(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:n(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:n(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:n(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:n(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:n(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:n(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:n(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:n(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:n(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:n(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:n(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:n(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:n(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:n(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:n(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:n(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:n(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:n(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:n(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:n(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:n(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:n(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:n(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:n(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:n(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:n(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:n(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:n(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:n(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:n(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:n(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:n(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:n(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:n(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:n(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:n(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:n(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:n(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:n(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:n(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:n(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:n(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:n(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:n(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:n(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:n(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:n(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:n(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:n(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:n(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:n(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:n(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:n(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:n(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:n(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:n(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:n(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:n(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:n(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:n(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:n(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:n(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:n(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:n(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:n(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:n(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:n(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:n(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:n(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:n(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:n(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:n(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:n(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:n(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:n(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:n(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:n(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:n(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:n(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:n(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:n(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:n(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:n(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:n(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:n(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:n(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:n(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:n(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:n(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:n(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:n(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:n(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:n(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:n(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:n(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}}(u||(u={})),function(e){var n;function t(e){return e>=79}e.tokenIsIdentifierOrKeyword=t,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||t(e)},e.textToKeywordObj=((n={abstract:126,any:129,as:127,asserts:128,bigint:156,boolean:132,break:81,case:82,catch:83,class:84,continue:86,const:85}).constructor=133,n.debugger=87,n.declare=134,n.default=88,n.delete=89,n.do=90,n.else=91,n.enum=92,n.export=93,n.extends=94,n.false=95,n.finally=96,n.for=97,n.from=154,n.function=98,n.get=135,n.if=99,n.implements=117,n.import=100,n.in=101,n.infer=136,n.instanceof=102,n.interface=118,n.intrinsic=137,n.is=138,n.keyof=139,n.let=119,n.module=140,n.namespace=141,n.never=142,n.new=103,n.null=104,n.number=145,n.object=146,n.package=120,n.private=121,n.protected=122,n.public=123,n.override=157,n.readonly=143,n.require=144,n.global=155,n.return=105,n.set=147,n.static=124,n.string=148,n.super=106,n.switch=107,n.symbol=149,n.this=108,n.throw=109,n.true=110,n.try=111,n.type=150,n.typeof=112,n.undefined=151,n.unique=152,n.unknown=153,n.var=113,n.void=114,n.while=115,n.with=116,n.yield=125,n.async=130,n.await=131,n.of=158,n);var r=new e.Map(e.getEntries(e.textToKeywordObj)),i=new e.Map(e.getEntries(a(a({},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}))),o=[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],s=[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],c=[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],l=[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],u=[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],d=[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],p=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,f=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function m(e,n){if(e<n[0])return!1;for(var t,r=0,i=n.length;r+1<i;){if(t=r+(i-r)/2,n[t-=t%2]<=e&&e<=n[t+1])return!0;e<n[t]?i=t:r=t+2}return!1}function _(e,n){return m(e,n>=2?u:1===n?c:o)}e.isUnicodeIdentifierStart=_;var g,y=(g=[],i.forEach((function(e,n){g[e]=n})),g);function h(e){for(var n=new Array,t=0,r=0;t<e.length;){var i=e.charCodeAt(t);switch(t++,i){case 13:10===e.charCodeAt(t)&&t++;case 10:n.push(r),r=t;break;default:i>127&&L(i)&&(n.push(r),r=t)}}return n.push(r),n}function v(n,t,r,i,a){(t<0||t>=n.length)&&(a?t=t<0?0:t>=n.length?n.length-1:t:e.Debug.fail("Bad line number. Line: "+t+", lineStarts.length: "+n.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(n,h(i)):"unknown")));var o=n[t]+r;return a?o>n[t+1]?n[t+1]:"string"==typeof i&&o>i.length?i.length:o:(t<n.length-1?e.Debug.assert(o<n[t+1]):void 0!==i&&e.Debug.assert(o<=i.length),o)}function b(e){return e.lineMap||(e.lineMap=h(e.text))}function E(e,n){var t=T(e,n);return{line:t,character:n-e[t]}}function T(n,t,r){var i=e.binarySearch(n,t,e.identity,e.compareValues,r);return i<0&&(i=~i-1,e.Debug.assert(-1!==i,"position cannot precede the beginning of the file")),i}function S(e){return x(e)||L(e)}function x(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function L(e){return 10===e||13===e||8232===e||8233===e}function D(e){return e>=48&&e<=57}function A(e){return D(e)||e>=65&&e<=70||e>=97&&e<=102}function C(e){return e>=48&&e<=55}e.tokenToString=function(e){return y[e]},e.stringToToken=function(e){return i.get(e)},e.computeLineStarts=h,e.getPositionOfLineAndCharacter=function(e,n,t,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(n,t,r):v(b(e),n,t,e.text,r)},e.computePositionOfLineAndCharacter=v,e.getLineStarts=b,e.computeLineAndCharacterOfPosition=E,e.computeLineOfPosition=T,e.getLinesBetweenPositions=function(e,n,t){if(n===t)return 0;var r=b(e),i=Math.min(n,t),a=i===t,o=a?n:t,s=T(r,i),c=T(r,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,n){return E(b(e),n)},e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=x,e.isLineBreak=L,e.isOctalDigit=C,e.couldStartTrivia=function(e,n){var t=e.charCodeAt(n);switch(t){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 0===n;default:return t>127}},e.skipTrivia=function(n,t,r,i,a){if(e.positionIsSynthesized(t))return t;for(var o=!1;;){var s=n.charCodeAt(t);switch(s){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)return t;o=!!a;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(47===n.charCodeAt(t+1)){for(t+=2;t<n.length&&!L(n.charCodeAt(t));)t++;o=!1;continue}if(42===n.charCodeAt(t+1)){for(t+=2;t<n.length;){if(42===n.charCodeAt(t)&&47===n.charCodeAt(t+1)){t+=2;break}t++}o=!1;continue}break;case 60:case 124:case 61:case 62:if(N(n,t)){t=k(n,t),o=!1;continue}break;case 35:if(0===t&&O(n,t)){t=P(n,t),o=!1;continue}break;case 42:if(o){t++,o=!1;continue}break;default:if(s>127&&S(s)){t++;continue}}return t}};var I=7;function N(n,t){if(e.Debug.assert(t>=0),0===t||L(n.charCodeAt(t-1))){var r=n.charCodeAt(t);if(t+I<n.length){for(var i=0;i<I;i++)if(n.charCodeAt(t+i)!==r)return!1;return 61===r||32===n.charCodeAt(t+I)}}return!1}function k(n,t,r){r&&r(e.Diagnostics.Merge_conflict_marker_encountered,t,I);var i=n.charCodeAt(t),a=n.length;if(60===i||62===i)for(;t<a&&!L(n.charCodeAt(t));)t++;else for(e.Debug.assert(124===i||61===i);t<a;){var o=n.charCodeAt(t);if((61===o||62===o)&&o!==i&&N(n,t))break;t++}return t}var R=/^#!.*/;function O(n,t){return e.Debug.assert(0===t),R.test(n)}function P(e,n){return n+R.exec(e)[0].length}function w(e,n,t,r,i,a,o){var s,c,l,u,d=!1,p=r,f=o;if(0===t){p=!0;var m=B(n);m&&(t=m.length)}e:for(;t>=0&&t<n.length;){var _=n.charCodeAt(t);switch(_){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)break e;p=!0,d&&(u=!0);continue;case 9:case 11:case 12:case 32:t++;continue;case 47:var g=n.charCodeAt(t+1),y=!1;if(47===g||42===g){var h=47===g?2:3,v=t;if(t+=2,47===g)for(;t<n.length;){if(L(n.charCodeAt(t))){y=!0;break}t++}else for(;t<n.length;){if(42===n.charCodeAt(t)&&47===n.charCodeAt(t+1)){t+=2;break}t++}if(p){if(d&&(f=i(s,c,l,u,a,f),!e&&f))return f;s=v,c=t,l=h,u=y,d=!0}continue}break e;default:if(_>127&&S(_)){d&&L(_)&&(u=!0),t++;continue}break e}}return d&&(f=i(s,c,l,u,a,f)),f}function M(e,n,t,r,i){return w(!0,e,n,!1,t,r,i)}function F(e,n,t,r,i){return w(!0,e,n,!0,t,r,i)}function G(e,n,t,r,i,a){return a||(a=[]),a.push({kind:t,pos:e,end:n,hasTrailingNewLine:r}),a}function B(e){var n=R.exec(e);if(n)return n[0]}function U(e,n){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&_(e,n)}function V(e,n,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===t&&(45===e||58===e)||e>127&&function(e,n){return m(e,n>=2?d:1===n?l:s)}(e,n)}e.isShebangTrivia=O,e.scanShebangTrivia=P,e.forEachLeadingCommentRange=function(e,n,t,r){return w(!1,e,n,!1,t,r)},e.forEachTrailingCommentRange=function(e,n,t,r){return w(!1,e,n,!0,t,r)},e.reduceEachLeadingCommentRange=M,e.reduceEachTrailingCommentRange=F,e.getLeadingCommentRanges=function(e,n){return M(e,n,G,void 0,void 0)},e.getTrailingCommentRanges=function(e,n){return F(e,n,G,void 0,void 0)},e.getShebang=B,e.isIdentifierStart=U,e.isIdentifierPart=V,e.isIdentifierText=function(e,n,t){var r=j(e,0);if(!U(r,n))return!1;for(var i=K(r);i<e.length;i+=K(r))if(!V(r=j(e,i),n,t))return!1;return!0},e.createScanner=function(n,i,a,o,s,c,l){void 0===a&&(a=0);var u,d,m,_,g,y,h,v,b=o,E=0;le(b,c,l);var T={getStartPos:function(){return m},getTextPos:function(){return u},getToken:function(){return g},getTokenPos:function(){return _},getTokenText:function(){return b.substring(_,u)},getTokenValue:function(){return y},hasUnicodeEscape:function(){return 0!=(1024&h)},hasExtendedUnicodeEscape:function(){return 0!=(8&h)},hasPrecedingLineBreak:function(){return 0!=(1&h)},hasPrecedingJSDocComment:function(){return 0!=(2&h)},isIdentifier:function(){return 79===g||g>116},isReservedWord:function(){return g>=81&&g<=116},isUnterminated:function(){return 0!=(4&h)},getCommentDirectives:function(){return v},getNumericLiteralFlags:function(){return 1008&h},getTokenFlags:function(){return h},reScanGreaterToken:function(){if(31===g){if(62===b.charCodeAt(u))return 62===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=72):(u+=2,g=49):61===b.charCodeAt(u+1)?(u+=2,g=71):(u++,g=48);if(61===b.charCodeAt(u))return u++,g=33}return g},reScanAsteriskEqualsToken:function(){return e.Debug.assert(66===g,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=_+1,g=63},reScanSlashToken:function(){if(43===g||68===g){for(var t=_+1,r=!1,i=!1;;){if(t>=d){h|=4,I(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(t);if(L(a)){h|=4,I(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===a&&!i){t++;break}91===a?i=!0:92===a?r=!0:93===a&&(i=!1)}t++}for(;t<d&&V(b.charCodeAt(t),n);)t++;u=t,y=b.substring(_,u),g=13}return g},reScanTemplateToken:function(n){return e.Debug.assert(19===g,"'reScanTemplateToken' should only be called on a '}'"),u=_,g=J(n)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return u=_,g=J(!0)},scanJsxIdentifier:function(){if(t(g)){for(var e=!1;u<d;){var n=b.charCodeAt(u);if(45!==n)if(58!==n||e){var r=u;if(y+=$(),u===r)break}else y+=":",u++,e=!0,g=79;else y+="-",u++}":"===y.slice(-1)&&(y=y.slice(0,-1),u--)}return g},scanJsxAttributeValue:se,reScanJsxAttributeValue:function(){return u=_=m,se()},reScanJsxToken:function(e){return void 0===e&&(e=!0),u=_=m,g=oe(e)},reScanLessThanToken:function(){return 47===g?(u=_+1,g=29):g},reScanHashToken:function(){return 80===g?(u=_+1,g=62):g},reScanQuestionToken:function(){return e.Debug.assert(60===g,"'reScanQuestionToken' should only be called on a '??'"),u=_+1,g=57},reScanInvalidIdentifier:function(){e.Debug.assert(0===g,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),u=_=m,h=0;var n=j(b,u),t=ie(n,99);return t?g=t:(u+=K(n),g)},scanJsxToken:oe,scanJsDocToken:function(){if(m=_=u,h=0,u>=d)return g=1;var e=j(b,u);switch(u+=K(e),e){case 9:case 11:case 12:case 32:for(;u<d&&x(b.charCodeAt(u));)u++;return g=5;case 64:return g=59;case 13:10===b.charCodeAt(u)&&u++;case 10:return h|=1,g=4;case 42:return g=41;case 123:return g=18;case 125:return g=19;case 91:return g=22;case 93:return g=23;case 60:return g=29;case 62:return g=31;case 61:return g=63;case 44:return g=27;case 46:return g=24;case 96:return g=61;case 35:return g=62;case 92:u--;var t=Z();if(t>=0&&U(t,n))return u+=3,h|=8,y=Y()+$(),g=ee();var r=Q();return r>=0&&U(r,n)?(u+=6,h|=1024,y=String.fromCharCode(r)+$(),g=ee()):(u++,g=0)}if(U(e,n)){for(var i=e;u<d&&V(i=j(b,u),n)||45===b.charCodeAt(u);)u+=K(i);return y=b.substring(_,u),92===i&&(y+=$()),g=ee()}return g=0},scan:re,getText:function(){return b},clearCommentDirectives:function(){v=void 0},setText:le,setScriptTarget:function(e){n=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:ue,setInJSDocType:function(e){E+=e?1:-1},tryScan:function(e){return ce(e,!1)},lookAhead:function(e){return ce(e,!0)},scanRange:function(e,n,t){var r=d,i=u,a=m,o=_,s=g,c=y,l=h,p=v;le(b,e,n);var f=t();return d=r,u=i,m=a,_=o,g=s,y=c,h=l,v=p,f}};return e.Debug.isDebugging&&Object.defineProperty(T,"__debugShowCurrentPositionInText",{get:function(){var e=T.getText();return e.slice(0,T.getStartPos())+"║"+e.slice(T.getStartPos())}}),T;function I(e,n,t){if(void 0===n&&(n=u),s){var r=u;u=n,s(e,t||0),u=r}}function R(){for(var n=u,t=!1,r=!1,i="";;){var a=b.charCodeAt(u);if(95!==a){if(!D(a))break;t=!0,r=!1,u++}else h|=512,t?(t=!1,r=!0,i+=b.substring(n,u)):I(r?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),n=++u}return 95===b.charCodeAt(u-1)&&I(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),i+b.substring(n,u)}function w(){var n,t,r=u,i=R();46===b.charCodeAt(u)&&(u++,n=R());var a,o=u;if(69===b.charCodeAt(u)||101===b.charCodeAt(u)){u++,h|=16,43!==b.charCodeAt(u)&&45!==b.charCodeAt(u)||u++;var s=u,c=R();c?(t=b.substring(o,s)+c,o=u):I(e.Diagnostics.Digit_expected)}if(512&h?(a=i,n&&(a+="."+n),t&&(a+=t)):a=b.substring(r,o),void 0!==n||16&h)return M(r,void 0===n&&!!(16&h)),{type:8,value:""+ +a};y=a;var l=te();return M(r),{type:l,value:y}}function M(t,r){if(U(j(b,u),n)){var i=u,a=$().length;1===a&&"n"===b[i]?I(r?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,t,i-t+1):(I(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),u=i)}}function F(){for(var e=u;C(b.charCodeAt(u));)u++;return+b.substring(e,u)}function G(e,n){var t=H(e,!1,n);return t?parseInt(t,16):-1}function B(e,n){return H(e,!0,n)}function H(n,t,r){for(var i=[],a=!1,o=!1;i.length<n||t;){var s=b.charCodeAt(u);if(r&&95===s)h|=512,a?(a=!1,o=!0):I(o?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++;else{if(a=r,s>=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),u++,o=!1}}return i.length<n&&(i=[]),95===b.charCodeAt(u-1)&&I(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),String.fromCharCode.apply(String,i)}function z(n){void 0===n&&(n=!1);for(var t=b.charCodeAt(u),r="",i=++u;;){if(u>=d){r+=b.substring(i,u),h|=4,I(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(u);if(a===t){r+=b.substring(i,u),u++;break}if(92!==a||n){if(L(a)&&!n){r+=b.substring(i,u),h|=4,I(e.Diagnostics.Unterminated_string_literal);break}u++}else r+=b.substring(i,u),r+=q(),i=u}return r}function J(n){for(var t,r=96===b.charCodeAt(u),i=++u,a="";;){if(u>=d){a+=b.substring(i,u),h|=4,I(e.Diagnostics.Unterminated_template_literal),t=r?14:17;break}var o=b.charCodeAt(u);if(96===o){a+=b.substring(i,u),u++,t=r?14:17;break}if(36===o&&u+1<d&&123===b.charCodeAt(u+1)){a+=b.substring(i,u),u+=2,t=r?15:16;break}92!==o?13!==o?u++:(a+=b.substring(i,u),++u<d&&10===b.charCodeAt(u)&&u++,a+="\n",i=u):(a+=b.substring(i,u),a+=q(n),i=u)}return e.Debug.assert(void 0!==t),y=a,t}function q(n){var t=u;if(++u>=d)return I(e.Diagnostics.Unexpected_end_of_text),"";var r=b.charCodeAt(u);switch(u++,r){case 48:return n&&u<d&&D(b.charCodeAt(u))?(u++,h|=2048,b.substring(t,u)):"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(n)for(var i=u;i<u+4;i++)if(i<d&&!A(b.charCodeAt(i))&&123!==b.charCodeAt(i))return u=i,h|=2048,b.substring(t,u);if(u<d&&123===b.charCodeAt(u)){if(u++,n&&!A(b.charCodeAt(u)))return h|=2048,b.substring(t,u);if(n){var a=u,o=B(1,!1);if(!((o?parseInt(o,16):-1)<=1114111&&125===b.charCodeAt(u)))return h|=2048,b.substring(t,u);u=a}return h|=8,Y()}return h|=1024,X(4);case 120:if(n){if(!A(b.charCodeAt(u)))return h|=2048,b.substring(t,u);if(!A(b.charCodeAt(u+1)))return u++,h|=2048,b.substring(t,u)}return X(2);case 13:u<d&&10===b.charCodeAt(u)&&u++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(r)}}function X(n){var t=G(n,!1);return t>=0?String.fromCharCode(t):(I(e.Diagnostics.Hexadecimal_digit_expected),"")}function Y(){var n=B(1,!1),t=n?parseInt(n,16):-1,r=!1;return t<0?(I(e.Diagnostics.Hexadecimal_digit_expected),r=!0):t>1114111&&(I(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),u>=d?(I(e.Diagnostics.Unexpected_end_of_text),r=!0):125===b.charCodeAt(u)?u++:(I(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":W(t)}function Q(){if(u+5<d&&117===b.charCodeAt(u+1)){var e=u;u+=2;var n=G(4,!1);return u=e,n}return-1}function Z(){if(n>=2&&117===j(b,u+1)&&123===j(b,u+2)){var e=u;u+=3;var t=B(1,!1),r=t?parseInt(t,16):-1;return u=e,r}return-1}function $(){for(var e="",t=u;u<d;){var r=j(b,u);if(V(r,n))u+=K(r);else{if(92!==r)break;if((r=Z())>=0&&V(r,n)){u+=3,h|=8,e+=Y(),t=u;continue}if(!((r=Q())>=0&&V(r,n)))break;h|=1024,e+=b.substring(t,u),e+=W(r),t=u+=6}}return e+b.substring(t,u)}function ee(){var e=y.length;if(e>=2&&e<=12){var n=y.charCodeAt(0);if(n>=97&&n<=122){var t=r.get(y);if(void 0!==t)return g=t}}return g=79}function ne(n){for(var t="",r=!1,i=!1;;){var a=b.charCodeAt(u);if(95!==a){if(r=!0,!D(a)||a-48>=n)break;t+=b[u],u++,i=!1}else h|=512,r?(r=!1,i=!0):I(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 95===b.charCodeAt(u-1)&&I(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),t}function te(){if(110===b.charCodeAt(u))return y+="n",384&h&&(y=e.parsePseudoBigInt(y)+"n"),u++,9;var n=128&h?parseInt(y.slice(2),2):256&h?parseInt(y.slice(2),8):+y;return y=""+n,8}function re(){var t;m=u,h=0;for(var r=!1;;){if(_=u,u>=d)return g=1;var o=j(b,u);if(35===o&&0===u&&O(b,u)){if(u=P(b,u),i)continue;return g=6}switch(o){case 10:case 13:if(h|=1,i){u++;continue}return 13===o&&u+1<d&&10===b.charCodeAt(u+1)?u+=2:u++,g=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(i){u++;continue}for(;u<d&&x(b.charCodeAt(u));)u++;return g=5;case 33:return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=37):(u+=2,g=35):(u++,g=53);case 34:case 39:return y=z(),g=10;case 96:return g=J(!1);case 37:return 61===b.charCodeAt(u+1)?(u+=2,g=69):(u++,g=44);case 38:return 38===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=76):(u+=2,g=55):61===b.charCodeAt(u+1)?(u+=2,g=73):(u++,g=50);case 40:return u++,g=20;case 41:return u++,g=21;case 42:if(61===b.charCodeAt(u+1))return u+=2,g=66;if(42===b.charCodeAt(u+1))return 61===b.charCodeAt(u+2)?(u+=3,g=67):(u+=2,g=42);if(u++,E&&!r&&1&h){r=!0;continue}return g=41;case 43:return 43===b.charCodeAt(u+1)?(u+=2,g=45):61===b.charCodeAt(u+1)?(u+=2,g=64):(u++,g=39);case 44:return u++,g=27;case 45:return 45===b.charCodeAt(u+1)?(u+=2,g=46):61===b.charCodeAt(u+1)?(u+=2,g=65):(u++,g=40);case 46:return D(b.charCodeAt(u+1))?(y=w().value,g=8):46===b.charCodeAt(u+1)&&46===b.charCodeAt(u+2)?(u+=3,g=25):(u++,g=24);case 47:if(47===b.charCodeAt(u+1)){for(u+=2;u<d&&!L(b.charCodeAt(u));)u++;if(v=ae(v,b.slice(_,u),p,_),i)continue;return g=2}if(42===b.charCodeAt(u+1)){u+=2,42===b.charCodeAt(u)&&47!==b.charCodeAt(u+1)&&(h|=2);for(var s=!1,c=_;u<d;){var l=b.charCodeAt(u);if(42===l&&47===b.charCodeAt(u+1)){u+=2,s=!0;break}u++,L(l)&&(c=u,h|=1)}if(v=ae(v,b.slice(c,u),f,c),s||I(e.Diagnostics.Asterisk_Slash_expected),i)continue;return s||(h|=4),g=3}return 61===b.charCodeAt(u+1)?(u+=2,g=68):(u++,g=43);case 48:if(u+2<d&&(88===b.charCodeAt(u+1)||120===b.charCodeAt(u+1)))return u+=2,(y=B(1,!0))||(I(e.Diagnostics.Hexadecimal_digit_expected),y="0"),y="0x"+y,h|=64,g=te();if(u+2<d&&(66===b.charCodeAt(u+1)||98===b.charCodeAt(u+1)))return u+=2,(y=ne(2))||(I(e.Diagnostics.Binary_digit_expected),y="0"),y="0b"+y,h|=128,g=te();if(u+2<d&&(79===b.charCodeAt(u+1)||111===b.charCodeAt(u+1)))return u+=2,(y=ne(8))||(I(e.Diagnostics.Octal_digit_expected),y="0"),y="0o"+y,h|=256,g=te();if(u+1<d&&C(b.charCodeAt(u+1)))return y=""+F(),h|=32,g=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t=w(),g=t.type,y=t.value,g;case 58:return u++,g=58;case 59:return u++,g=26;case 60:if(N(b,u)){if(u=k(b,u,I),i)continue;return g=7}return 60===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=70):(u+=2,g=47):61===b.charCodeAt(u+1)?(u+=2,g=32):1===a&&47===b.charCodeAt(u+1)&&42!==b.charCodeAt(u+2)?(u+=2,g=30):(u++,g=29);case 61:if(N(b,u)){if(u=k(b,u,I),i)continue;return g=7}return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=36):(u+=2,g=34):62===b.charCodeAt(u+1)?(u+=2,g=38):(u++,g=63);case 62:if(N(b,u)){if(u=k(b,u,I),i)continue;return g=7}return u++,g=31;case 63:return 46!==b.charCodeAt(u+1)||D(b.charCodeAt(u+2))?63===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=77):(u+=2,g=60):(u++,g=57):(u+=2,g=28);case 91:return u++,g=22;case 93:return u++,g=23;case 94:return 61===b.charCodeAt(u+1)?(u+=2,g=78):(u++,g=52);case 123:return u++,g=18;case 124:if(N(b,u)){if(u=k(b,u,I),i)continue;return g=7}return 124===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=75):(u+=2,g=56):61===b.charCodeAt(u+1)?(u+=2,g=74):(u++,g=51);case 125:return u++,g=19;case 126:return u++,g=54;case 64:return u++,g=59;case 92:var T=Z();if(T>=0&&U(T,n))return u+=3,h|=8,y=Y()+$(),g=ee();var S=Q();return S>=0&&U(S,n)?(u+=6,h|=1024,y=String.fromCharCode(S)+$(),g=ee()):(I(e.Diagnostics.Invalid_character),u++,g=0);case 35:return 0!==u&&"!"===b[u+1]?(I(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,g=0):(U(j(b,u+1),n)?(u++,ie(j(b,u),n)):(y=String.fromCharCode(j(b,u)),I(e.Diagnostics.Invalid_character,u++,K(o))),g=80);default:var A=ie(o,n);if(A)return g=A;if(x(o)){u+=K(o);continue}if(L(o)){h|=1,u+=K(o);continue}var R=K(o);return I(e.Diagnostics.Invalid_character,u,R),u+=R,g=0}}}function ie(e,n){var t=e;if(U(t,n)){for(u+=K(t);u<d&&V(t=j(b,u),n);)u+=K(t);return y=b.substring(_,u),92===t&&(y+=$()),ee()}}function ae(n,t,r,i){var a=function(e,n){var t=n.exec(e);if(t)switch(t[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}(e.trimStringStart(t),r);return void 0===a?n:e.append(n,{range:{pos:i,end:u},type:a})}function oe(n){if(void 0===n&&(n=!0),m=_=u,u>=d)return g=1;var t=b.charCodeAt(u);if(60===t)return 47===b.charCodeAt(u+1)?(u+=2,g=30):(u++,g=29);if(123===t)return u++,g=18;for(var r=0;u<d&&123!==(t=b.charCodeAt(u));){if(60===t){if(N(b,u))return u=k(b,u,I),g=7;break}if(62===t&&I(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,u,1),125===t&&I(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,u,1),L(t)&&0===r)r=-1;else{if(!n&&L(t)&&r>0)break;S(t)||(r=u)}u++}return y=b.substring(m,u),-1===r?12:11}function se(){switch(m=u,b.charCodeAt(u)){case 34:case 39:return y=z(!0),g=10;default:return re()}}function ce(e,n){var t=u,r=m,i=_,a=g,o=y,s=h,c=e();return c&&!n||(u=t,m=r,_=i,g=a,y=o,h=s),c}function le(e,n,t){b=e||"",d=void 0===t?b.length:n+t,ue(n||0)}function ue(n){e.Debug.assert(n>=0),u=n,m=n,_=n,g=0,y=void 0,h=0}};var j=String.prototype.codePointAt?function(e,n){return e.codePointAt(n)}:function(e,n){var t=e.length;if(!(n<0||n>=t)){var r=e.charCodeAt(n);if(r>=55296&&r<=56319&&t>n+1){var i=e.charCodeAt(n+1);if(i>=56320&&i<=57343)return 1024*(r-55296)+i-56320+65536}return r}};function K(e){return e>=65536?2:1}var H=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(n){if(e.Debug.assert(0<=n&&n<=1114111),n<=65535)return String.fromCharCode(n);var t=Math.floor((n-65536)/1024)+55296,r=(n-65536)%1024+56320;return String.fromCharCode(t,r)};function W(e){return H(e)}e.utf16EncodeAsString=W}(u||(u={})),function(e){function n(e){return e.start+e.length}function t(e){return 0===e.length}function r(e,n){var t=a(e,n);return t&&0===t.length?void 0:t}function i(e,n,t,r){return t<=e+n&&t+r>=e}function a(e,t){var r=Math.max(e.start,t.start),i=Math.min(n(e),n(t));return r<=i?s(r,i):void 0}function o(e,n){if(e<0)throw new Error("start < 0");if(n<0)throw new Error("length < 0");return{start:e,length:n}}function s(e,n){return o(e,n-e)}function c(e,n){if(n<0)throw new Error("newLength < 0");return{span:e,newLength:n}}function l(n){return!!Z(n)&&e.every(n.elements,u)}function u(n){return!!e.isOmittedExpression(n)||l(n.name)}function d(n){for(var t=n.parent;e.isBindingElement(t.parent);)t=t.parent.parent;return t.parent}function p(n,t){e.isBindingElement(n)&&(n=d(n));var r=t(n);return 252===n.kind&&(n=n.parent),n&&253===n.kind&&(r|=t(n),n=n.parent),n&&235===n.kind&&(r|=t(n)),r}function f(e){return 0==(8&e.flags)}function m(e){var n=e;return n.length>=3&&95===n.charCodeAt(0)&&95===n.charCodeAt(1)&&95===n.charCodeAt(2)?n.substr(1):n}function _(e){return m(e.escapedText)}function g(n){var t=n.parent.parent;if(t){if(se(t))return y(t);switch(t.kind){case 235:if(t.declarationList&&t.declarationList.declarations[0])return y(t.declarationList.declarations[0]);break;case 236:var r=t.expression;switch(219===r.kind&&63===r.operatorToken.kind&&(r=r.left),r.kind){case 204:return r.name;case 205:var i=r.argumentExpression;if(e.isIdentifier(i))return i}break;case 210:return y(t.expression);case 248:if(se(t.statement)||re(t.statement))return y(t.statement)}}}function y(n){var t=E(n);return t&&e.isIdentifier(t)?t:void 0}function h(e){return e.name||g(e)}function v(e){return!!e.name}function b(n){switch(n.kind){case 79:return n;case 342:case 335:var t=n.name;if(159===t.kind)return t.right;break;case 206:case 219:var r=n;switch(e.getAssignmentDeclarationKind(r)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}case 340:return h(n);case 334:return g(n);case 269:var i=n.expression;return e.isIdentifier(i)?i:void 0;case 205:var a=n;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return n.name}function E(n){if(void 0!==n)return b(n)||(e.isFunctionExpression(n)||e.isArrowFunction(n)||e.isClassExpression(n)?T(n):void 0)}function T(n){if(n.parent){if(e.isPropertyAssignment(n.parent)||e.isBindingElement(n.parent))return n.parent.name;if(e.isBinaryExpression(n.parent)&&n===n.parent.right){if(e.isIdentifier(n.parent.left))return n.parent.left;if(e.isAccessExpression(n.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(n.parent.left)}else if(e.isVariableDeclaration(n.parent)&&e.isIdentifier(n.parent.name))return n.parent.name}}function S(n,t){if(n.name){if(e.isIdentifier(n.name)){var r=n.name.escapedText;return I(n.parent,t).filter((function(n){return e.isJSDocParameterTag(n)&&e.isIdentifier(n.name)&&n.name.escapedText===r}))}var i=n.parent.parameters.indexOf(n);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=I(n.parent,t).filter(e.isJSDocParameterTag);if(i<a.length)return[a[i]]}return e.emptyArray}function x(e){return S(e,!1)}function L(n,t){var r=n.name.escapedText;return I(n.parent,t).filter((function(n){return e.isJSDocTemplateTag(n)&&n.typeParameters.some((function(e){return e.name.escapedText===r}))}))}function D(n){return k(n,e.isJSDocReturnTag)}function A(n){var t=k(n,e.isJSDocTypeTag);if(t&&t.typeExpression&&t.typeExpression.type)return t}function C(n){var t=k(n,e.isJSDocTypeTag);return!t&&e.isParameter(n)&&(t=e.find(x(n),(function(e){return!!e.typeExpression}))),t&&t.typeExpression&&t.typeExpression.type}function I(n,t){var r=n.jsDocCache;if(void 0===r||t){var i=e.getJSDocCommentsAndTags(n,t);e.Debug.assert(i.length<2||i[0]!==i[1]),r=e.flatMap(i,(function(n){return e.isJSDoc(n)?n.tags:n})),t||(n.jsDocCache=r)}return r}function N(e){return I(e,!1)}function k(n,t,r){return e.find(I(n,r),t)}function R(e,n){return N(e).filter(n)}function O(e){var n=e.kind;return!!(32&e.flags)&&(204===n||205===n||206===n||228===n)}function P(n){return O(n)&&!e.isNonNullExpression(n)&&!!n.questionDotToken}function w(n){return e.skipOuterExpressions(n,8)}function M(e){switch(e.kind){case 297:case 298:return!0;default:return!1}}function F(e){return e>=159}function G(e){return e>=0&&e<=158}function B(e){return 8<=e&&e<=14}function U(e){return 14<=e&&e<=17}function V(n){return(e.isPropertyDeclaration(n)||X(n))&&e.isPrivateIdentifier(n.name)}function j(e){switch(e){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}function K(n){return!!(16476&e.modifierToFlag(n))}function H(e){return!!e&&z(e.kind)}function W(e){switch(e){case 254:case 167:case 169:case 170:case 171:case 211:case 212:return!0;default:return!1}}function z(e){switch(e){case 166:case 172:case 318:case 173:case 174:case 177:case 312:case 178:return!0;default:return W(e)}}function J(e){var n=e.kind;return 169===n||165===n||167===n||170===n||171===n||174===n||168===n||232===n}function q(e){return e&&(255===e.kind||224===e.kind)}function X(e){switch(e.kind){case 167:case 170:case 171:return!0;default:return!1}}function Y(e){var n=e.kind;return 173===n||172===n||164===n||166===n||174===n}function Q(e){var n=e.kind;return 291===n||292===n||293===n||167===n||170===n||171===n}function Z(e){if(e){var n=e.kind;return 200===n||199===n}return!1}function $(e){switch(e.kind){case 199:case 203:return!0}return!1}function ee(e){switch(e.kind){case 200:case 202:return!0}return!1}function ne(e){switch(e){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 te(e){switch(e){case 217:case 218:case 213:case 214:case 215:case 216:case 209:return!0;default:return ne(e)}}function re(e){return function(e){switch(e){case 220:case 222:case 212:case 219:case 223:case 227:case 225:case 346:case 345:return!0;default:return te(e)}}(w(e).kind)}function ie(n){return e.isExportAssignment(n)||e.isExportDeclaration(n)}function ae(e){return 254===e||274===e||255===e||256===e||257===e||258===e||259===e||264===e||263===e||270===e||269===e||262===e}function oe(e){return 244===e||243===e||251===e||238===e||236===e||234===e||241===e||242===e||240===e||237===e||248===e||245===e||247===e||249===e||250===e||235===e||239===e||246===e||344===e||348===e||347===e}function se(n){return 161===n.kind?n.parent&&339!==n.parent.kind||e.isInJSFile(n):212===(t=n.kind)||201===t||255===t||224===t||168===t||169===t||258===t||294===t||273===t||254===t||211===t||170===t||265===t||263===t||268===t||256===t||283===t||167===t||166===t||259===t||262===t||266===t||272===t||162===t||291===t||165===t||164===t||171===t||292===t||257===t||161===t||252===t||340===t||333===t||342===t;var t}function ce(e){return e.kind>=322&&e.kind<=342}e.isExternalModuleNameRelative=function(n){return e.pathIsRelative(n)||e.isRootedDiskPath(n)},e.sortAndDeduplicateDiagnostics=function(n){return e.sortAndDeduplicate(n,e.compareDiagnostics)},e.getDefaultLibFileName=function(e){switch(e.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.textSpanEnd=n,e.textSpanIsEmpty=t,e.textSpanContainsPosition=function(e,t){return t>=e.start&&t<n(e)},e.textRangeContainsPositionInclusive=function(e,n){return n>=e.pos&&n<=e.end},e.textSpanContainsTextSpan=function(e,t){return t.start>=e.start&&n(t)<=n(e)},e.textSpanOverlapsWith=function(e,n){return void 0!==r(e,n)},e.textSpanOverlap=r,e.textSpanIntersectsWithTextSpan=function(e,n){return i(e.start,e.length,n.start,n.length)},e.textSpanIntersectsWith=function(e,n,t){return i(e.start,e.length,n,t)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,t){return t<=n(e)&&t>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return t(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var r=t[0],i=r.span.start,a=n(r.span),o=i+r.newLength,l=1;l<t.length;l++){var u=t[l],d=i,p=a,f=o,m=u.span.start,_=n(u.span),g=m+u.newLength;i=Math.min(d,m),a=Math.max(p,p+(_-f)),o=Math.max(g,g+(f-_))}return c(s(i,a),o-i)},e.getTypeParameterOwner=function(e){if(e&&161===e.kind)for(var n=e;n;n=n.parent)if(H(n)||q(n)||256===n.kind)return n},e.isParameterPropertyDeclaration=function(n,t){return e.hasSyntacticModifier(n,16476)&&169===t.kind},e.isEmptyBindingPattern=l,e.isEmptyBindingElement=u,e.walkUpBindingElementsAndPatterns=d,e.getCombinedModifierFlags=function(n){return p(n,e.getEffectiveModifierFlags)},e.getCombinedNodeFlagsAlwaysIncludeJSDoc=function(n){return p(n,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)},e.getCombinedNodeFlags=function(e){return p(e,(function(e){return e.flags}))},e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],e.validateLocaleAndSetLanguage=function(n,t,r){var i=n.toLowerCase(),a=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(a){var o=a[1],s=a[3];e.contains(e.supportedLocaleDirectories,i)&&!c(o,s,r)&&c(o,void 0,r),e.setUILocale(n)}else r&&r.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function c(n,r,i){var a=e.normalizePath(t.getExecutingFilePath()),o=e.getDirectoryPath(a),s=e.combinePaths(o,n);if(r&&(s=s+"-"+r),s=t.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!t.fileExists(s))return!1;var c="";try{c=t.readFile(s)}catch(n){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(c))}catch(n){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=function(e,n){if(e)for(;void 0!==e.original;)e=e.original;return!n||n(e)?e:void 0},e.findAncestor=function(e,n){for(;e;){var t=n(e);if("quit"===t)return;if(t)return e;e=e.parent}},e.isParseTreeNode=f,e.getParseTreeNode=function(e,n){if(void 0===e||f(e))return e;for(e=e.original;e;){if(f(e))return!n||n(e)?e:void 0;e=e.original}},e.escapeLeadingUnderscores=function(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=m,e.idText=_,e.symbolName=function(e){return e.valueDeclaration&&V(e.valueDeclaration)?_(e.valueDeclaration.name):m(e.escapedName)},e.nodeHasName=function n(t,r){return!(!v(t)||!e.isIdentifier(t.name)||_(t.name)!==_(r))||!(!e.isVariableStatement(t)||!e.some(t.declarationList.declarations,(function(e){return n(e,r)})))},e.getNameOfJSDocTypedef=h,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=E,e.getAssignedName=T,e.getJSDocParameterTags=x,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return L(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return L(e,!0)},e.hasJSDocParameterTags=function(n){return!!k(n,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(n){return k(n,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(n){return R(n,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(n){return k(n,e.isJSDocClassTag)},e.getJSDocPublicTag=function(n){return k(n,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(n){return k(n,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(n){return k(n,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(n){return k(n,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(n){return k(n,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(n){return k(n,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(n){return k(n,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(n){return k(n,e.isJSDocReadonlyTag,!0)},e.getJSDocOverrideTagNoCache=function(n){return k(n,e.isJSDocOverrideTag,!0)},e.getJSDocDeprecatedTag=function(n){return k(n,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(n){return k(n,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(n){return k(n,e.isJSDocEnumTag)},e.getJSDocThisTag=function(n){return k(n,e.isJSDocThisTag)},e.getJSDocReturnTag=D,e.getJSDocTemplateTag=function(n){return k(n,e.isJSDocTemplateTag)},e.getJSDocTypeTag=A,e.getJSDocType=C,e.getJSDocReturnType=function(n){var t=D(n);if(t&&t.typeExpression)return t.typeExpression.type;var r=A(n);if(r&&r.typeExpression){var i=r.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=N,e.getJSDocTagsNoCache=function(e){return I(e,!0)},e.getAllJSDocTags=R,e.getAllJSDocTagsOfKind=function(e,n){return N(e).filter((function(e){return e.kind===n}))},e.getTextOfJSDocComment=function(n){return"string"==typeof n?n:null==n?void 0:n.map((function(n){return 316===n.kind?n.text:"{@link "+(n.name?e.entityNameToString(n.name)+" ":"")+n.text+"}"})).join("")},e.getEffectiveTypeParameterDeclarations=function(n){if(e.isJSDocSignature(n))return e.emptyArray;if(e.isJSDocTypeAlias(n))return e.Debug.assert(315===n.parent.kind),e.flatMap(n.parent.tags,(function(n){return e.isJSDocTemplateTag(n)?n.typeParameters:void 0}));if(n.typeParameters)return n.typeParameters;if(e.isInJSFile(n)){var t=e.getJSDocTypeParameterDeclarations(n);if(t.length)return t;var r=C(n);if(r&&e.isFunctionTypeNode(r)&&r.typeParameters)return r.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(n){return n.constraint?n.constraint:e.isJSDocTemplateTag(n.parent)&&n===n.parent.typeParameters[0]?n.parent.constraint:void 0},e.isMemberName=function(e){return 79===e.kind||80===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 171===e.kind||170===e.kind},e.isPropertyAccessChain=function(n){return e.isPropertyAccessExpression(n)&&!!(32&n.flags)},e.isElementAccessChain=function(n){return e.isElementAccessExpression(n)&&!!(32&n.flags)},e.isCallChain=function(n){return e.isCallExpression(n)&&!!(32&n.flags)},e.isOptionalChain=O,e.isOptionalChainRoot=P,e.isExpressionOfOptionalChainRoot=function(e){return P(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!O(e.parent)||P(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 219===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"const"===n.typeName.escapedText&&!n.typeArguments},e.skipPartiallyEmittedExpressions=w,e.isNonNullChain=function(n){return e.isNonNullExpression(n)&&!!(32&n.flags)},e.isBreakOrContinueStatement=function(e){return 244===e.kind||243===e.kind},e.isNamedExportBindings=function(e){return 272===e.kind||271===e.kind},e.isUnparsedTextLike=M,e.isUnparsedNode=function(e){return M(e)||295===e.kind||299===e.kind},e.isJSDocPropertyLikeTag=function(e){return 342===e.kind||335===e.kind},e.isNode=function(e){return F(e.kind)},e.isNodeKind=F,e.isTokenKind=G,e.isToken=function(e){return G(e.kind)},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=B,e.isLiteralExpression=function(e){return B(e.kind)},e.isTemplateLiteralKind=U,e.isTemplateLiteralToken=function(e){return U(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var n=e.kind;return 16===n||17===n},e.isImportOrExportSpecifier=function(n){return e.isImportSpecifier(n)||e.isExportSpecifier(n)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 268:case 273:return e.parent.parent.isTypeOnly;case 266:return e.parent.isTypeOnly;case 265:case 263:return e.isTypeOnly;default:return!1}},e.isStringTextContainingNode=function(e){return 10===e.kind||U(e.kind)},e.isGeneratedIdentifier=function(n){return e.isIdentifier(n)&&(7&n.autoGenerateFlags)>0},e.isPrivateIdentifierClassElementDeclaration=V,e.isPrivateIdentifierPropertyAccessExpression=function(n){return e.isPropertyAccessExpression(n)&&e.isPrivateIdentifier(n.name)},e.isModifierKind=j,e.isParameterPropertyModifier=K,e.isClassMemberModifier=function(e){return K(e)||124===e||157===e},e.isModifier=function(e){return j(e.kind)},e.isEntityName=function(e){var n=e.kind;return 159===n||79===n},e.isPropertyName=function(e){var n=e.kind;return 79===n||80===n||10===n||8===n||160===n},e.isBindingName=function(e){var n=e.kind;return 79===n||199===n||200===n},e.isFunctionLike=H,e.isFunctionLikeOrClassStaticBlockDeclaration=function(n){return!!n&&(z(n.kind)||e.isClassStaticBlockDeclaration(n))},e.isFunctionLikeDeclaration=function(e){return e&&W(e.kind)},e.isBooleanLiteral=function(e){return 110===e.kind||95===e.kind},e.isFunctionLikeKind=z,e.isFunctionOrModuleBlock=function(n){return e.isSourceFile(n)||e.isModuleBlock(n)||e.isBlock(n)&&H(n.parent)},e.isClassElement=J,e.isClassLike=q,e.isAccessor=function(e){return e&&(170===e.kind||171===e.kind)},e.isMethodOrAccessor=X,e.isTypeElement=Y,e.isClassOrTypeElement=function(e){return Y(e)||J(e)},e.isObjectLiteralElementLike=Q,e.isTypeNode=function(n){return e.isTypeNodeKind(n.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 177:case 178:return!0}return!1},e.isBindingPattern=Z,e.isAssignmentPattern=function(e){var n=e.kind;return 202===n||203===n},e.isArrayBindingElement=function(e){var n=e.kind;return 201===n||225===n},e.isDeclarationBindingElement=function(e){switch(e.kind){case 252:case 162:case 201:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return $(e)||ee(e)},e.isObjectBindingOrAssignmentPattern=$,e.isObjectBindingOrAssignmentElement=function(e){switch(e.kind){case 201:case 291:case 292:case 293:return!0}return!1},e.isArrayBindingOrAssignmentPattern=ee,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var n=e.kind;return 204===n||159===n||198===n},e.isPropertyAccessOrQualifiedName=function(e){var n=e.kind;return 204===n||159===n},e.isCallLikeExpression=function(e){switch(e.kind){case 278:case 277:case 206:case 207:case 208:case 163:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 206===e.kind||207===e.kind},e.isTemplateLiteral=function(e){var n=e.kind;return 221===n||14===n},e.isLeftHandSideExpression=function(e){return ne(w(e).kind)},e.isUnaryExpression=function(e){return te(w(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 218:return!0;case 217:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=re,e.isAssertionExpression=function(e){var n=e.kind;return 209===n||227===n},e.isNotEmittedOrPartiallyEmittedNode=function(n){return e.isNotEmittedStatement(n)||e.isPartiallyEmittedExpression(n)},e.isIterationStatement=function e(n,t){switch(n.kind){case 240:case 241:case 242:case 238:case 239:return!0;case 248:return t&&e(n.statement,t)}return!1},e.isScopeMarker=ie,e.hasScopeMarker=function(n){return e.some(n,ie)},e.needsScopeMarker=function(n){return!(e.isAnyImportOrReExport(n)||e.isExportAssignment(n)||e.hasSyntacticModifier(n,1)||e.isAmbientModule(n))},e.isExternalModuleIndicator=function(n){return e.isAnyImportOrReExport(n)||e.isExportAssignment(n)||e.hasSyntacticModifier(n,1)},e.isForInOrOfStatement=function(e){return 241===e.kind||242===e.kind},e.isConciseBody=function(n){return e.isBlock(n)||re(n)},e.isFunctionBody=function(n){return e.isBlock(n)},e.isForInitializer=function(n){return e.isVariableDeclarationList(n)||re(n)},e.isModuleBody=function(e){var n=e.kind;return 260===n||259===n||79===n},e.isNamespaceBody=function(e){var n=e.kind;return 260===n||259===n},e.isJSDocNamespaceBody=function(e){var n=e.kind;return 79===n||259===n},e.isNamedImportBindings=function(e){var n=e.kind;return 267===n||266===n},e.isModuleOrEnumDeclaration=function(e){return 259===e.kind||258===e.kind},e.isDeclaration=se,e.isDeclarationStatement=function(e){return ae(e.kind)},e.isStatementButNotDeclaration=function(e){return oe(e.kind)},e.isStatement=function(n){var t=n.kind;return oe(t)||ae(t)||function(n){return 233===n.kind&&((void 0===n.parent||250!==n.parent.kind&&290!==n.parent.kind)&&!e.isFunctionBlock(n))}(n)},e.isStatementOrBlock=function(e){var n=e.kind;return oe(n)||ae(n)||233===n},e.isModuleReference=function(e){var n=e.kind;return 275===n||159===n||79===n},e.isJsxTagNameExpression=function(e){var n=e.kind;return 108===n||79===n||204===n},e.isJsxChild=function(e){var n=e.kind;return 276===n||286===n||277===n||11===n||280===n},e.isJsxAttributeLike=function(e){var n=e.kind;return 283===n||285===n},e.isStringLiteralOrJsxExpression=function(e){var n=e.kind;return 10===n||286===n},e.isJsxOpeningLikeElement=function(e){var n=e.kind;return 278===n||277===n},e.isCaseOrDefaultClause=function(e){var n=e.kind;return 287===n||288===n},e.isJSDocNode=function(e){return e.kind>=304&&e.kind<=342},e.isJSDocCommentContainingNode=function(n){return 315===n.kind||314===n.kind||316===n.kind||ue(n)||ce(n)||e.isJSDocTypeLiteral(n)||e.isJSDocSignature(n)},e.isJSDocTag=ce,e.isSetAccessor=function(e){return 171===e.kind},e.isGetAccessor=function(e){return 170===e.kind},e.hasJSDocNodes=function(e){var n=e.jsDoc;return!!n&&n.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 252:case 162:case 201:case 164:case 165:case 291:case 294:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 283===e.kind||285===e.kind||Q(e)},e.isTypeReferenceType=function(e){return 176===e.kind||226===e.kind};var le=1073741823;function ue(e){return 319===e.kind||320===e.kind||321===e.kind}e.guessIndentation=function(n){for(var t=le,r=0,i=n;r<i.length;r++){var a=i[r];if(a.length){for(var o=0;o<a.length&&o<t&&e.isWhiteSpaceLike(a.charCodeAt(o));o++);if(o<t&&(t=o),0===t)return 0}}return t===le?void 0:t},e.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind},e.isJSDocLinkLike=ue}(u||(u={})),function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6,e.getDeclarationOfKind=function(e,n){var t=e.declarations;if(t)for(var r=0,i=t;r<i.length;r++){var a=i[r];if(a.kind===n)return a}},e.createUnderscoreEscapedMap=function(){return new e.Map},e.hasEntries=function(e){return!!e&&!!e.size},e.createSymbolTable=function(n){var t=new e.Map;if(n)for(var r=0,i=n;r<i.length;r++){var a=i[r];t.set(a.escapedName,a)}return t},e.isTransientSymbol=function(e){return 0!=(33554432&e.flags)};var n,t,r,o=(n="",{getText:function(){return n},write:t=function(e){return n+=e},rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:function(e,n){return t(e)},writeTrailingSemicolon:t,writeComment:t,getTextPos:function(){return n.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!n.length&&e.isWhiteSpaceLike(n.charCodeAt(n.length-1))},writeLine:function(){return n+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return n=""},trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function s(n,t){return c(n,t,e.moduleResolutionOptionDeclarations)}function c(e,n,t){return e!==n&&t.some((function(t){return!ci(Dr(e,t),Dr(n,t))}))}function l(e){return e.end-e.pos}function u(e){for(;e&&300!==e.kind;)e=e.parent;return e}function d(n,t){e.Debug.assert(n>=0);var r=e.getLineStarts(t),i=n,a=t.text;if(i+1===r.length)return a.length-1;var o=r[i],s=r[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function p(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function f(e){return!p(e)}function m(e,n,t){if(void 0===n||0===n.length)return e;for(var r=0;r<e.length&&t(e[r]);++r);return e.splice.apply(e,i([r,0],n,!1)),e}function _(e,n,t){if(void 0===n)return e;for(var r=0;r<e.length&&t(e[r]);++r);return e.splice(r,0,n),e}function g(e){return q(e)||!!(1048576&S(e))}function y(e,n){return 42===e.charCodeAt(n+1)&&33===e.charCodeAt(n+2)}function h(n,t,r){return p(n)?n.pos:e.isJSDocNode(n)||11===n.kind?e.skipTrivia((t||u(n)).text,n.pos,!1,!0):r&&e.hasJSDocNodes(n)?h(n.jsDoc[0],t):343===n.kind&&n._children.length>0?h(n._children[0],t,r):e.skipTrivia((t||u(n)).text,n.pos,!1,!1,Te(n))}function v(e,n,t){return void 0===t&&(t=!1),b(e.text,n,t)}function b(n,t,r){if(void 0===r&&(r=!1),p(t))return"";var i=n.substring(r?t.pos:e.skipTrivia(n,t.pos),t.end);return function(n){return!!e.findAncestor(n,e.isJSDocTypeExpression)}(t)&&(i=i.split(/\r\n|\n|\r/).map((function(n){return e.trimStringStart(n.replace(/^\s*\*/,""))})).join("\n")),i}function E(e,n){return void 0===n&&(n=!1),v(u(e),e,n)}function T(e){return e.pos}function S(e){var n=e.emitNode;return n&&n.flags||0}function x(e){var n=An(e);return 252===n.kind&&290===n.parent.kind}function L(n){return e.isModuleDeclaration(n)&&(10===n.name.kind||A(n))}function D(n){return e.isModuleDeclaration(n)||e.isIdentifier(n)}function A(e){return!!(1024&e.flags)}function C(e){return L(e)&&I(e)}function I(n){switch(n.parent.kind){case 300:return e.isExternalModule(n.parent);case 260:return L(n.parent.parent)&&e.isSourceFile(n.parent.parent.parent)&&!e.isExternalModule(n.parent.parent.parent)}return!1}function N(n){var t;return null===(t=n.declarations)||void 0===t?void 0:t.find((function(n){return!(C(n)||e.isModuleDeclaration(n)&&A(n))}))}function k(n,t){switch(n.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(t)}return!1}function R(n){switch(n.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(n),!1}}function O(e){switch(e.kind){case 264:case 263:return!0;default:return!1}}function P(n){return O(n)||e.isExportDeclaration(n)}function w(n){return e.findAncestor(n.parent,(function(e){return k(e,e.parent)}))}function M(e){return e&&0!==l(e)?E(e):"(Missing)"}function F(n){switch(n.kind){case 79:case 80:return n.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(n.text);case 160:return bn(n.expression)?e.escapeLeadingUnderscores(n.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(n)}}function G(n){switch(n.kind){case 108:return"this";case 80:case 79:return 0===l(n)?e.idText(n):E(n);case 159:return G(n.left)+"."+G(n.right);case 204:return e.isIdentifier(n.name)||e.isPrivateIdentifier(n.name)?G(n.expression)+"."+G(n.name):e.Debug.assertNever(n.name);case 306:return G(n.left)+G(n.right);default:return e.Debug.assertNever(n)}}function B(e,n,t,r,i,a,o){var s=K(e,n);return _r(e,s.start,s.length,t,r,i,a,o)}function U(n,t,r){e.Debug.assertGreaterThanOrEqual(t,0),e.Debug.assertGreaterThanOrEqual(r,0),n&&(e.Debug.assertLessThanOrEqual(t,n.text.length),e.Debug.assertLessThanOrEqual(t+r,n.text.length))}function V(e,n,t,r,i){return U(e,n,t),{file:e,start:n,length:t,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i}}function j(n,t){var r=e.createScanner(n.languageVersion,!0,n.languageVariant,n.text,void 0,t);r.scan();var i=r.getTokenPos();return e.createTextSpanFromBounds(i,r.getTextPos())}function K(n,t){var r=t;switch(t.kind){case 300:var i=e.skipTrivia(n.text,0,!1);return i===n.text.length?e.createTextSpan(0,0):j(n,i);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:r=t.name;break;case 212:return function(n,t){var r=e.skipTrivia(n.text,t.pos);if(t.body&&233===t.body.kind){var i=e.getLineAndCharacterOfPosition(n,t.body.pos).line;if(i<e.getLineAndCharacterOfPosition(n,t.body.end).line)return e.createTextSpan(r,d(i,n)-r+1)}return e.createTextSpanFromBounds(r,t.end)}(n,t);case 287:case 288:var a=e.skipTrivia(n.text,t.pos),o=t.statements.length>0?t.statements[0].pos:t.end;return e.createTextSpanFromBounds(a,o)}if(void 0===r)return j(n,t.pos);e.Debug.assert(!e.isJSDoc(r));var s=p(r),c=s||e.isJsxText(t)?r.pos:e.skipTrivia(n.text,r.pos);return s?(e.Debug.assert(c===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,r.end)}function H(e){return 6===e.scriptKind}function W(n){return!!(2&e.getCombinedNodeFlags(n))}function z(e){return 206===e.kind&&100===e.expression.kind}function J(n){return e.isImportTypeNode(n)&&e.isLiteralTypeNode(n.argument)&&e.isStringLiteral(n.argument.literal)}function q(e){return 236===e.kind&&10===e.expression.kind}function X(e){return!!(1048576&S(e))}function Y(n){return e.isIdentifier(n.name)&&!n.initializer}e.changesAffectModuleResolution=function(e,n){return e.configFilePath!==n.configFilePath||s(e,n)},e.optionsHaveModuleResolutionChanges=s,e.changesAffectingProgramStructure=function(n,t){return c(n,t,e.optionsAffectingProgramStructure)},e.optionsHaveChanges=c,e.forEachAncestor=function(n,t){for(;;){var r=t(n);if("quit"===r)return;if(void 0!==r)return r;if(e.isSourceFile(n))return;n=n.parent}},e.forEachEntry=function(e,n){for(var t=e.entries(),r=t.next();!r.done;r=t.next()){var i=r.value,a=i[0],o=n(i[1],a);if(o)return o}},e.forEachKey=function(e,n){for(var t=e.keys(),r=t.next();!r.done;r=t.next()){var i=n(r.value);if(i)return i}},e.copyEntries=function(e,n){e.forEach((function(e,t){n.set(t,e)}))},e.usingSingleLineStringWriter=function(e){var n=o.getText();try{return e(o),o.getText()}finally{o.clear(),o.writeKeyword(n)}},e.getFullWidth=l,e.getResolvedModule=function(e,n){return e&&e.resolvedModules&&e.resolvedModules.get(n)},e.setResolvedModule=function(n,t,r){n.resolvedModules||(n.resolvedModules=new e.Map),n.resolvedModules.set(t,r)},e.setResolvedTypeReferenceDirective=function(n,t,r){n.resolvedTypeReferenceDirectiveNames||(n.resolvedTypeReferenceDirectiveNames=new e.Map),n.resolvedTypeReferenceDirectiveNames.set(t,r)},e.projectReferenceIsEqualTo=function(e,n){return e.path===n.path&&!e.prepend==!n.prepend&&!e.circular==!n.circular},e.moduleResolutionIsEqualTo=function(e,n){return e.isExternalLibraryImport===n.isExternalLibraryImport&&e.extension===n.extension&&e.resolvedFileName===n.resolvedFileName&&e.originalPath===n.originalPath&&((t=e.packageId)===(r=n.packageId)||!!t&&!!r&&t.name===r.name&&t.subModuleName===r.subModuleName&&t.version===r.version);var t,r},e.packageIdToString=function(e){var n=e.name,t=e.subModuleName;return(t?n+"/"+t:n)+"@"+e.version},e.typeDirectiveIsEqualTo=function(e,n){return e.resolvedFileName===n.resolvedFileName&&e.primary===n.primary&&e.originalPath===n.originalPath},e.hasChangesInResolutions=function(n,t,r,i){e.Debug.assert(n.length===t.length);for(var a=0;a<n.length;a++){var o=t[a],s=r&&r.get(n[a]);if(s?!o||!i(s,o):o)return!0}return!1},e.containsParseError=function n(t){return function(t){524288&t.flags||((0!=(65536&t.flags)||e.forEachChild(t,n))&&(t.flags|=262144),t.flags|=524288)}(t),0!=(262144&t.flags)},e.getSourceFileOfNode=u,e.getSourceFileOfModule=function(e){return u(e.valueDeclaration||N(e))},e.isStatementWithLocals=function(e){switch(e.kind){case 233:case 261:case 240:case 241:case 242:return!0}return!1},e.getStartPositionOfLine=function(n,t){return e.Debug.assert(n>=0),e.getLineStarts(t)[n]},e.nodePosToString=function(n){var t=u(n),r=e.getLineAndCharacterOfPosition(t,n.pos);return t.fileName+"("+(r.line+1)+","+(r.character+1)+")"},e.getEndLinePosition=d,e.isFileLevelUniqueName=function(e,n,t){return!(t&&t(n)||e.identifiers.has(n))},e.nodeIsMissing=p,e.nodeIsPresent=f,e.insertStatementsAfterStandardPrologue=function(e,n){return m(e,n,q)},e.insertStatementsAfterCustomPrologue=function(e,n){return m(e,n,g)},e.insertStatementAfterStandardPrologue=function(e,n){return _(e,n,q)},e.insertStatementAfterCustomPrologue=function(e,n){return _(e,n,g)},e.isRecognizedTripleSlashComment=function(n,t,r){if(47===n.charCodeAt(t+1)&&t+2<r&&47===n.charCodeAt(t+2)){var i=n.substring(t,r);return!!(e.fullTripleSlashReferencePathRegEx.test(i)||e.fullTripleSlashAMDReferencePathRegEx.test(i)||Q.test(i)||te.test(i))}return!1},e.isPinnedComment=y,e.createCommentDirectivesMap=function(n,t){var r=new e.Map(t.map((function(t){return[""+e.getLineAndCharacterOfPosition(n,t.range.end).line,t]}))),i=new e.Map;return{getUnusedExpectations:function(){return e.arrayFrom(r.entries()).filter((function(e){var n=e[0];return 0===e[1].type&&!i.get(n)})).map((function(e){return e[0],e[1]}))},markUsed:function(e){return!!r.has(""+e)&&(i.set(""+e,!0),!0)}}},e.getTokenPosOfNode=h,e.getNonDecoratorTokenPosOfNode=function(n,t){return p(n)||!n.decorators?h(n,t):e.skipTrivia((t||u(n)).text,n.decorators.end)},e.getSourceTextOfNodeFromSourceFile=v,e.isExportNamespaceAsDefaultDeclaration=function(n){return!!(e.isExportDeclaration(n)&&n.exportClause&&e.isNamespaceExport(n.exportClause)&&"default"===n.exportClause.name.escapedText)},e.getTextOfNodeFromSourceText=b,e.getTextOfNode=E,e.indexOfNode=function(n,t){return e.binarySearch(n,t,T,e.compareValues)},e.getEmitFlags=S,e.getScriptTargetFeatures=function(){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"]}}},(r=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}))[r.None=0]="None",r[r.NeverAsciiEscape=1]="NeverAsciiEscape",r[r.JsxAttributeEscape=2]="JsxAttributeEscape",r[r.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",r[r.AllowNumericSeparator=8]="AllowNumericSeparator",e.getLiteralText=function(n,t,r){var i;if(function(n,t){return!(Cn(n)||!n.parent||4&t&&n.isUnterminated)&&(e.isNumericLiteral(n)&&512&n.numericLiteralFlags?!!(8&t):!e.isBigIntLiteral(n))}(n,r))return v(t,n);switch(n.kind){case 10:var a=2&r?Jn:1&r||16777216&S(n)?Un:jn;return n.singleQuote?"'"+a(n.text,39)+"'":'"'+a(n.text,34)+'"';case 14:case 15:case 16:case 17:a=1&r||16777216&S(n)?Un:jn;var o=null!==(i=n.rawText)&&void 0!==i?i:function(e){return e.replace(On,"\\${")}(a(n.text,96));switch(n.kind){case 14:return"`"+o+"`";case 15:return"`"+o+"${";case 16:return"}"+o+"${";case 17:return"}"+o+"`"}break;case 8:case 9:return n.text;case 13:return 4&r&&n.isUnterminated?n.text+(92===n.text.charCodeAt(n.text.length-1)?" /":"/"):n.text}return e.Debug.fail("Literal kind '"+n.kind+"' not accounted for.")},e.getTextOfConstantValue=function(n){return e.isString(n)?'"'+jn(n)+'"':""+n},e.makeIdentifierFromModuleName=function(n){return e.getBaseFileName(n).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},e.isBlockOrCatchScoped=function(n){return 0!=(3&e.getCombinedNodeFlags(n))||x(n)},e.isCatchClauseVariableDeclarationOrBindingElement=x,e.isAmbientModule=L,e.isModuleWithStringLiteralName=function(n){return e.isModuleDeclaration(n)&&10===n.name.kind},e.isNonGlobalAmbientModule=function(n){return e.isModuleDeclaration(n)&&e.isStringLiteral(n.name)},e.isEffectiveModuleDeclaration=D,e.isShorthandAmbientModuleSymbol=function(e){return!!(n=e.valueDeclaration)&&259===n.kind&&!n.body;var n},e.isBlockScopedContainerTopLevel=function(n){return 300===n.kind||259===n.kind||e.isFunctionLikeOrClassStaticBlockDeclaration(n)},e.isGlobalScopeAugmentation=A,e.isExternalModuleAugmentation=C,e.isModuleAugmentationExternal=I,e.getNonAugmentationDeclaration=N,e.isEffectiveExternalModule=function(n,t){return e.isExternalModule(n)||t.isolatedModules||Tr(t)===e.ModuleKind.CommonJS&&!!n.commonJsModuleIndicator},e.isEffectiveStrictModeSourceFile=function(n,t){switch(n.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(n.isDeclarationFile||!xr(t,"alwaysStrict")&&!e.startsWithUseStrict(n.statements)&&(!e.isExternalModule(n)&&!t.isolatedModules||!(Tr(t)>=e.ModuleKind.ES2015)&&t.noImplicitUseStrict))},e.isBlockScope=k,e.isDeclarationWithTypeParameters=function(n){switch(n.kind){case 333:case 340:case 318:return!0;default:return e.assertType(n),R(n)}},e.isDeclarationWithTypeParameterChildren=R,e.isAnyImportSyntax=O,e.isLateVisibilityPaintedStatement=function(e){switch(e.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.hasPossibleExternalModuleReference=function(n){return P(n)||e.isModuleDeclaration(n)||e.isImportTypeNode(n)||z(n)},e.isAnyImportOrReExport=P,e.getEnclosingBlockScopeContainer=w,e.forEachEnclosingBlockScopeContainer=function(e,n){for(var t=w(e);t;)n(t),t=w(t)},e.declarationNameToString=M,e.getNameFromIndexInfo=function(e){return e.declaration?M(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 160===e.kind&&!bn(e.expression)},e.getTextOfPropertyName=F,e.entityNameToString=G,e.createDiagnosticForNode=function(e,n,t,r,i,a){return B(u(e),e,n,t,r,i,a)},e.createDiagnosticForNodeArray=function(n,t,r,i,a,o,s){var c=e.skipTrivia(n.text,t.pos);return _r(n,c,t.end-c,r,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=B,e.createDiagnosticForNodeFromMessageChain=function(e,n,t){var r=u(e),i=K(r,e);return V(r,i.start,i.length,n,t)},e.createFileDiagnosticFromMessageChain=V,e.createDiagnosticForFileFromMessageChain=function(e,n,t){return{file:e,start:0,length:0,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:t}},e.createDiagnosticForRange=function(e,n,t){return{file:e,start:n.pos,length:n.end-n.pos,code:t.code,category:t.category,messageText:t.message}},e.getSpanOfTokenAtPosition=j,e.getErrorSpanForNode=K,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=H,e.isEnumConst=function(n){return!!(2048&e.getCombinedModifierFlags(n))},e.isDeclarationReadonly=function(n){return!(!(64&e.getCombinedModifierFlags(n))||e.isParameterPropertyDeclaration(n,n.parent))},e.isVarConst=W,e.isLet=function(n){return!!(1&e.getCombinedNodeFlags(n))},e.isSuperCall=function(e){return 206===e.kind&&106===e.expression.kind},e.isImportCall=z,e.isImportMeta=function(n){return e.isMetaProperty(n)&&100===n.keywordToken&&"meta"===n.name.escapedText},e.isLiteralImportTypeNode=J,e.isPrologueDirective=q,e.isCustomPrologue=X,e.isHoistedFunction=function(n){return X(n)&&e.isFunctionDeclaration(n)},e.isHoistedVariableStatement=function(n){return X(n)&&e.isVariableStatement(n)&&e.every(n.declarationList.declarations,Y)},e.getLeadingCommentRangesOfNode=function(n,t){return 11!==n.kind?e.getLeadingCommentRanges(t.text,n.pos):void 0},e.getJSDocCommentRanges=function(n,t){var r=162===n.kind||161===n.kind||211===n.kind||212===n.kind||210===n.kind||252===n.kind?e.concatenate(e.getTrailingCommentRanges(t,n.pos),e.getLeadingCommentRanges(t,n.pos)):e.getLeadingCommentRanges(t,n.pos);return e.filter(r,(function(e){return 42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)}))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Q=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Z,$,ee,ne,te=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function re(n){if(175<=n.kind&&n.kind<=198)return!0;switch(n.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 215!==n.parent.kind;case 226:return!Gt(n);case 161:return 193===n.parent.kind||188===n.parent.kind;case 79:(159===n.parent.kind&&n.parent.right===n||204===n.parent.kind&&n.parent.name===n)&&(n=n.parent),e.Debug.assert(79===n.kind||159===n.kind||204===n.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 159:case 204:case 108:var t=n.parent;if(179===t.kind)return!1;if(198===t.kind)return!t.isTypeOf;if(175<=t.kind&&t.kind<=198)return!0;switch(t.kind){case 226:return!Gt(t);case 161:case 339:return n===t.constraint;case 165:case 164:case 162:case 252:case 254:case 211:case 212:case 169:case 167:case 166:case 170:case 171:case 172:case 173:case 174:case 209:return n===t.type;case 206:case 207:return e.contains(t.typeArguments,n);case 208:return!1}}return!1}function ie(e){if(e)switch(e.kind){case 201:case 294:case 162:case 291:case 165:case 164:case 292:case 252:return!0}return!1}function ae(e){return 253===e.parent.kind&&235===e.parent.parent.kind}function oe(e,n,t){return e.properties.filter((function(e){if(291===e.kind){var r=F(e.name);return n===r||!!t&&t===r}return!1}))}function se(n){if(n&&n.statements.length){var t=n.statements[0].expression;return e.tryCast(t,e.isObjectLiteralExpression)}}function ce(n,t){var r=se(n);return r?oe(r,t):e.emptyArray}function le(n,t){for(e.Debug.assert(300!==n.kind);;){if(!(n=n.parent))return e.Debug.fail();switch(n.kind){case 160:if(e.isClassLike(n.parent.parent))return n;n=n.parent;break;case 163:162===n.parent.kind&&e.isClassElement(n.parent.parent)?n=n.parent.parent:e.isClassElement(n.parent)&&(n=n.parent);break;case 212:if(!t)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 n}}}function ue(e){var n=e.kind;return(204===n||205===n)&&106===e.expression.kind}function de(n,t,r){if(e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name))return!1;switch(n.kind){case 255:return!0;case 165:return 255===t.kind;case 170:case 171:case 167:return void 0!==n.body&&255===t.kind;case 162:return void 0!==t.body&&(169===t.kind||167===t.kind||171===t.kind)&&255===r.kind}return!1}function pe(e,n,t){return void 0!==e.decorators&&de(e,n,t)}function fe(e,n,t){return pe(e,n,t)||me(e,n)}function me(n,t){switch(n.kind){case 255:return e.some(n.members,(function(e){return fe(e,n,t)}));case 167:case 171:case 169:return e.some(n.parameters,(function(e){return pe(e,n,t)}));default:return!1}}function _e(e){var n=e.parent;return(278===n.kind||277===n.kind||279===n.kind)&&n.tagName===e}function ge(n){switch(n.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(;159===n.parent.kind;)n=n.parent;return 179===n.parent.kind||e.isJSDocLinkLike(n.parent)||e.isJSDocNameReference(n.parent)||e.isJSDocMemberName(n.parent)||_e(n);case 306:for(;e.isJSDocMemberName(n.parent);)n=n.parent;return 179===n.parent.kind||e.isJSDocLinkLike(n.parent)||e.isJSDocNameReference(n.parent)||e.isJSDocMemberName(n.parent)||_e(n);case 79:if(179===n.parent.kind||e.isJSDocLinkLike(n.parent)||e.isJSDocNameReference(n.parent)||e.isJSDocMemberName(n.parent)||_e(n))return!0;case 8:case 9:case 10:case 14:case 108:return ye(n);default:return!1}}function ye(e){var n=e.parent;switch(n.kind){case 252:case 162:case 165:case 164:case 294:case 291:case 201:return n.initializer===e;case 236:case 237:case 238:case 239:case 245:case 246:case 247:case 287:case 249:return n.expression===e;case 240:var t=n;return t.initializer===e&&253!==t.initializer.kind||t.condition===e||t.incrementor===e;case 241:case 242:var r=n;return r.initializer===e&&253!==r.initializer.kind||r.expression===e;case 209:case 227:case 231:case 160:return e===n.expression;case 163:case 286:case 285:case 293:return!0;case 226:return n.expression===e&&Gt(n);case 292:return n.objectAssignmentInitializer===e;default:return ge(n)}}function he(e){for(;159===e.kind||79===e.kind;)e=e.parent;return 179===e.kind}function ve(e){return 263===e.kind&&275===e.moduleReference.kind}function be(e){return Ee(e)}function Ee(e){return!!e&&!!(131072&e.flags)}function Te(e){return!!e&&!!(4194304&e.flags)}function Se(n,t){if(206!==n.kind)return!1;var r=n,i=r.expression,a=r.arguments;if(79!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!t||e.isStringLiteralLike(o)}function xe(n){return 201===n.kind&&(n=n.parent.parent),e.isVariableDeclaration(n)&&!!n.initializer&&Se(rr(n.initializer),!0)}function Le(n){return e.isBinaryExpression(n)||tr(n)||e.isIdentifier(n)||e.isCallExpression(n)}function De(n){return Ee(n)&&n.initializer&&e.isBinaryExpression(n.initializer)&&(56===n.initializer.operatorToken.kind||60===n.initializer.operatorToken.kind)&&n.name&&Bt(n.name)&&Ce(n.name,n.initializer.left)?n.initializer.right:n.initializer}function Ae(n,t){if(e.isCallExpression(n)){var r=cn(n.expression);return 211===r.kind||212===r.kind?n:void 0}return 211===n.kind||224===n.kind||212===n.kind||e.isObjectLiteralExpression(n)&&(0===n.properties.length||t)?n:void 0}function Ce(n,t){if(Ln(n)&&Ln(t))return Dn(n)===Dn(t);if(e.isIdentifier(n)&&we(t)&&(108===t.expression.kind||e.isIdentifier(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))){var r=Ue(t);return e.isPrivateIdentifier(r)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),Ce(n,r)}return!(!we(n)||!we(t))&&je(n)===je(t)&&Ce(n.expression,t.expression)}function Ie(e){for(;Ft(e,!0);)e=e.right;return e}function Ne(n){return e.isIdentifier(n)&&"exports"===n.escapedText}function ke(n){return e.isIdentifier(n)&&"module"===n.escapedText}function Re(n){return(e.isPropertyAccessExpression(n)||Me(n))&&ke(n.expression)&&"exports"===je(n)}function Oe(n){var t=function(n){if(e.isCallExpression(n)){if(!Pe(n))return 0;var t=n.arguments[0];return Ne(t)||Re(t)?8:Fe(t)&&"prototype"===je(t)?9:7}return 63!==n.operatorToken.kind||!tr(n.left)||(r=Ie(n),e.isVoidExpression(r)&&e.isNumericLiteral(r.expression)&&"0"===r.expression.text)?0:Be(n.left.expression,!0)&&"prototype"===je(n.left)&&e.isObjectLiteralExpression(He(n))?6:Ke(n.left);var r}(n);return 5===t||Ee(n)?t:0}function Pe(n){return 3===e.length(n.arguments)&&e.isPropertyAccessExpression(n.expression)&&e.isIdentifier(n.expression.expression)&&"Object"===e.idText(n.expression.expression)&&"defineProperty"===e.idText(n.expression.name)&&bn(n.arguments[1])&&Be(n.arguments[0],!0)}function we(n){return e.isPropertyAccessExpression(n)||Me(n)}function Me(n){return e.isElementAccessExpression(n)&&bn(n.argumentExpression)}function Fe(n,t){return e.isPropertyAccessExpression(n)&&(!t&&108===n.expression.kind||e.isIdentifier(n.name)&&Be(n.expression,!0))||Ge(n,t)}function Ge(e,n){return Me(e)&&(!n&&108===e.expression.kind||Bt(e.expression)||Fe(e.expression,!0))}function Be(e,n){return Bt(e)||Fe(e,n)}function Ue(n){return e.isPropertyAccessExpression(n)?n.name:n.argumentExpression}function Ve(n){if(e.isPropertyAccessExpression(n))return n.name;var t=cn(n.argumentExpression);return e.isNumericLiteral(t)||e.isStringLiteralLike(t)?t:n}function je(n){var t=Ve(n);if(t){if(e.isIdentifier(t))return t.escapedText;if(e.isStringLiteralLike(t)||e.isNumericLiteral(t))return e.escapeLeadingUnderscores(t.text)}}function Ke(n){if(108===n.expression.kind)return 4;if(Re(n))return 2;if(Be(n.expression,!0)){if(Vt(n.expression))return 3;for(var t=n;!e.isIdentifier(t.expression);)t=t.expression;var r=t.expression;if(("exports"===r.escapedText||"module"===r.escapedText&&"exports"===je(t))&&Fe(n))return 1;if(Be(n,!0)||e.isElementAccessExpression(n)&&Sn(n))return 5}return 0}function He(n){for(;e.isBinaryExpression(n.right);)n=n.right;return n.right}function We(n){switch(n.parent.kind){case 264:case 270:return n.parent;case 275:return n.parent.parent;case 206:return z(n.parent)||Se(n.parent,!1)?n.parent:void 0;case 194:return e.Debug.assert(e.isStringLiteral(n)),e.tryCast(n.parent.parent,e.isImportTypeNode);default:return}}function ze(n){switch(n.kind){case 264:case 270:return n.moduleSpecifier;case 263:return 275===n.moduleReference.kind?n.moduleReference.expression:void 0;case 198:return J(n)?n.argument.literal:void 0;case 206:return n.arguments[0];case 259:return 10===n.name.kind?n.name:void 0;default:return e.Debug.assertNever(n)}}function Je(e){return 340===e.kind||333===e.kind||334===e.kind}function qe(n){return e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&0!==Oe(n.expression)&&e.isBinaryExpression(n.expression.right)&&(56===n.expression.right.operatorToken.kind||60===n.expression.right.operatorToken.kind)?n.expression.right.right:void 0}function Xe(e){switch(e.kind){case 235:var n=Ye(e);return n&&n.initializer;case 165:case 291:return e.initializer}}function Ye(n){return e.isVariableStatement(n)?e.firstOrUndefined(n.declarationList.declarations):void 0}function Qe(n){return e.isModuleDeclaration(n)&&n.body&&259===n.body.kind?n.body:void 0}function Ze(n){var t=n.parent;return 291===t.kind||269===t.kind||165===t.kind||236===t.kind&&204===n.kind||245===t.kind||Qe(t)||e.isBinaryExpression(n)&&63===n.operatorToken.kind?t:t.parent&&(Ye(t.parent)===n||e.isBinaryExpression(t)&&63===t.operatorToken.kind)?t.parent:t.parent&&t.parent.parent&&(Ye(t.parent.parent)||Xe(t.parent.parent)===n||qe(t.parent.parent))?t.parent.parent:void 0}function $e(n){var t=en(n);return t&&e.isFunctionLike(t)?t:void 0}function en(n){var t=nn(n);if(t)return qe(t)||function(n){return e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&63===n.expression.operatorToken.kind?Ie(n.expression):void 0}(t)||Xe(t)||Ye(t)||Qe(t)||t}function nn(n){var t=tn(n);if(t){var r=t.parent;return r&&r.jsDoc&&t===e.lastOrUndefined(r.jsDoc)?r:void 0}}function tn(n){return e.findAncestor(n.parent,e.isJSDoc)}function rn(n){var t=e.isJSDocParameterTag(n)?n.typeExpression&&n.typeExpression.type:n.type;return void 0!==n.dotDotDotToken||!!t&&313===t.kind}function an(e){for(var n=e.parent;;){switch(n.kind){case 219:var t=n.operatorToken.kind;return Pt(t)&&n.left===e?63===t||Ot(t)?1:2:0;case 217:case 218:var r=n.operator;return 45===r||46===r?2:0;case 241:case 242:return n.initializer===e?1:0;case 210:case 202:case 223:case 228:e=n;break;case 293:e=n.parent;break;case 292:if(n.name!==e)return 0;e=n.parent;break;case 291:if(n.name===e)return 0;e=n.parent;break;default:return 0}n=e.parent}}function on(e,n){for(;e&&e.kind===n;)e=e.parent;return e}function sn(e){return on(e,210)}function cn(n){return e.skipOuterExpressions(n,1)}function ln(n){return Bt(n)||e.isClassExpression(n)}function un(e){return ln(dn(e))}function dn(n){return e.isExportAssignment(n)?n.expression:n.right}function pn(n){var t=fn(n);if(t&&Ee(n)){var r=e.getJSDocAugmentsTag(n);if(r)return r.class}return t}function fn(e){var n=gn(e.heritageClauses,94);return n&&n.types.length>0?n.types[0]:void 0}function mn(n){if(Ee(n))return e.getJSDocImplementsTags(n).map((function(e){return e.class}));var t=gn(n.heritageClauses,117);return null==t?void 0:t.types}function _n(e){var n=gn(e.heritageClauses,94);return n?n.types:void 0}function gn(e,n){if(e)for(var t=0,r=e;t<r.length;t++){var i=r[t];if(i.token===n)return i}}function yn(e){return 81<=e&&e<=158}function hn(e){return 126<=e&&e<=158}function vn(e){return yn(e)&&!hn(e)}function bn(n){return e.isStringLiteralLike(n)||e.isNumericLiteral(n)}function En(n){return e.isPrefixUnaryExpression(n)&&(39===n.operator||40===n.operator)&&e.isNumericLiteral(n.operand)}function Tn(n){var t=e.getNameOfDeclaration(n);return!!t&&Sn(t)}function Sn(n){if(160!==n.kind&&205!==n.kind)return!1;var t=e.isElementAccessExpression(n)?cn(n.argumentExpression):n.expression;return!bn(t)&&!En(t)}function xn(n){switch(n.kind){case 79:case 80:return n.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(n.text);case 160:var t=n.expression;return bn(t)?e.escapeLeadingUnderscores(t.text):En(t)?40===t.operator?e.tokenToString(t.operator)+t.operand.text:t.operand.text:void 0;default:return e.Debug.assertNever(n)}}function Ln(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function Dn(n){return e.isMemberName(n)?e.idText(n):n.text}function An(e){for(;201===e.kind;)e=e.parent.parent;return e}function Cn(e){return ai(e.pos)||ai(e.end)}function In(e,n,t){switch(e){case 207:return t?0:1;case 217:case 214:case 215:case 213:case 216:case 220:case 222:return 1;case 219:switch(n){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}function Nn(e){return 219===e.kind?e.operatorToken.kind:217===e.kind||218===e.kind?e.operator:e.kind}function kn(e,n,t){switch(e){case 346:return 0;case 223:return 1;case 222:return 2;case 220:return 4;case 219:switch(n){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 Rn(n)}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 t?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}}function Rn(e){switch(e){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.isPartOfTypeNode=re,e.isChildOfNodeWithKind=function(e,n){for(;e;){if(e.kind===n)return!0;e=e.parent}return!1},e.forEachReturnStatement=function(n,t){return function n(r){switch(r.kind){case 245:return t(r);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(r,n)}}(n)},e.forEachYieldExpression=function(n,t){return function n(r){switch(r.kind){case 222:t(r);var i=r.expression;return void(i&&n(i));case 258:case 256:case 259:case 257:return;default:if(e.isFunctionLike(r)){if(r.name&&160===r.name.kind)return void n(r.name.expression)}else re(r)||e.forEachChild(r,n)}}(n)},e.getRestParameterElementType=function(n){return n&&181===n.kind?n.elementType:n&&176===n.kind?e.singleOrUndefined(n.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 256:case 255:case 224:case 180:return e.members;case 203:return e.properties}},e.isVariableLike=ie,e.isVariableLikeOrAccessor=function(n){return ie(n)||e.isAccessor(n)},e.isVariableDeclarationInVariableStatement=ae,e.isValidESSymbolDeclaration=function(n){return e.isVariableDeclaration(n)?W(n)&&e.isIdentifier(n.name)&&ae(n):e.isPropertyDeclaration(n)?St(n)&&Tt(n):e.isPropertySignature(n)&&St(n)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 167:case 166:case 169:case 170:case 171:case 254:case 211:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,n){for(;;){if(n&&n(e),248!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(n){return n&&233===n.kind&&e.isFunctionLike(n.parent)},e.isObjectLiteralMethod=function(e){return e&&167===e.kind&&203===e.parent.kind},e.isObjectLiteralOrClassExpressionMethod=function(e){return 167===e.kind&&(203===e.parent.kind||224===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=oe,e.getPropertyArrayElementValue=function(n,t,r){return e.firstDefined(oe(n,t),(function(n){return e.isArrayLiteralExpression(n.initializer)?e.find(n.initializer.elements,(function(n){return e.isStringLiteral(n)&&n.text===r})):void 0}))},e.getTsConfigObjectLiteralExpression=se,e.getTsConfigPropArrayElementValue=function(n,t,r){return e.firstDefined(ce(n,t),(function(n){return e.isArrayLiteralExpression(n.initializer)?e.find(n.initializer.elements,(function(n){return e.isStringLiteral(n)&&n.text===r})):void 0}))},e.getTsConfigPropArray=ce,e.getContainingFunction=function(n){return e.findAncestor(n.parent,e.isFunctionLike)},e.getContainingFunctionDeclaration=function(n){return e.findAncestor(n.parent,e.isFunctionLikeDeclaration)},e.getContainingClass=function(n){return e.findAncestor(n.parent,e.isClassLike)},e.getContainingClassStaticBlock=function(n){return e.findAncestor(n.parent,(function(n){return e.isClassLike(n)||e.isFunctionLike(n)?"quit":e.isClassStaticBlockDeclaration(n)}))},e.getContainingFunctionOrClassStaticBlock=function(n){return e.findAncestor(n.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)},e.getThisContainer=le,e.isInTopLevelContext=function(n){e.isIdentifier(n)&&(e.isClassDeclaration(n.parent)||e.isFunctionDeclaration(n.parent))&&n.parent.name===n&&(n=n.parent);var t=le(n,!0);return e.isSourceFile(t)},e.getNewTargetContainer=function(e){var n=le(e,!1);if(n)switch(n.kind){case 169:case 254:case 211:return n}},e.getSuperContainer=function(n,t){for(;;){if(!(n=n.parent))return n;switch(n.kind){case 160:n=n.parent;break;case 254:case 211:case 212:if(!t)continue;case 165:case 164:case 167:case 166:case 169:case 170:case 171:case 168:return n;case 163:162===n.parent.kind&&e.isClassElement(n.parent.parent)?n=n.parent.parent:e.isClassElement(n.parent)&&(n=n.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(211===e.kind||212===e.kind){for(var n=e,t=e.parent;210===t.kind;)n=t,t=t.parent;if(206===t.kind&&t.expression===n)return t}},e.isSuperOrSuperProperty=function(e){return 106===e.kind||ue(e)},e.isSuperProperty=ue,e.isThisProperty=function(e){var n=e.kind;return(204===n||205===n)&&108===e.expression.kind},e.isThisInitializedDeclaration=function(n){var t;return!!n&&e.isVariableDeclaration(n)&&108===(null===(t=n.initializer)||void 0===t?void 0:t.kind)},e.isThisInitializedObjectBindingExpression=function(n){return!!n&&(e.isShorthandPropertyAssignment(n)||e.isPropertyAssignment(n))&&e.isBinaryExpression(n.parent.parent)&&63===n.parent.parent.operatorToken.kind&&108===n.parent.parent.right.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 176:return e.typeName;case 226:return Bt(e.expression)?e.expression:void 0;case 79:case 159:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 208:return e.tag;case 278:case 277:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=de,e.nodeIsDecorated=pe,e.nodeOrChildIsDecorated=fe,e.childIsDecorated=me,e.classOrConstructorParameterIsDecorated=function(e){if(pe(e))return!0;var n=ct(e);return!!n&&me(n,e)},e.isJSXTagName=_e,e.isExpressionNode=ge,e.isInExpressionContext=ye,e.isPartOfTypeQuery=he,e.isNamespaceReexportDeclaration=function(n){return e.isNamespaceExport(n)&&!!n.parent.moduleSpecifier},e.isExternalModuleImportEqualsDeclaration=ve,e.getExternalModuleImportEqualsDeclarationExpression=function(n){return e.Debug.assert(ve(n)),n.moduleReference.expression},e.getExternalModuleRequireArgument=function(e){return xe(e)&&rr(e.initializer).arguments[0]},e.isInternalModuleImportEqualsDeclaration=function(e){return 263===e.kind&&275!==e.moduleReference.kind},e.isSourceFileJS=be,e.isSourceFileNotJS=function(e){return!Ee(e)},e.isInJSFile=Ee,e.isInJsonFile=function(e){return!!e&&!!(33554432&e.flags)},e.isSourceFileNotJson=function(e){return!H(e)},e.isInJSDoc=Te,e.isJSDocIndexSignature=function(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Object"===n.typeName.escapedText&&n.typeArguments&&2===n.typeArguments.length&&(148===n.typeArguments[0].kind||145===n.typeArguments[0].kind)},e.isRequireCall=Se,e.isRequireVariableDeclaration=xe,e.isRequireVariableStatement=function(n){return e.isVariableStatement(n)&&n.declarationList.declarations.length>0&&e.every(n.declarationList.declarations,(function(e){return xe(e)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,n){return 34===v(n,e).charCodeAt(0)},e.isAssignmentDeclaration=Le,e.getEffectiveInitializer=De,e.getDeclaredExpandoInitializer=function(e){var n=De(e);return n&&Ae(n,Vt(e.name))},e.getAssignedExpandoInitializer=function(n){if(n&&n.parent&&e.isBinaryExpression(n.parent)&&63===n.parent.operatorToken.kind){var t=Vt(n.parent.left);return Ae(n.parent.right,t)||function(n,t,r){var i=e.isBinaryExpression(t)&&(56===t.operatorToken.kind||60===t.operatorToken.kind)&&Ae(t.right,r);if(i&&Ce(n,t.left))return i}(n.parent.left,n.parent.right,t)}if(n&&e.isCallExpression(n)&&Pe(n)){var r=function(n,t){return e.forEach(n.properties,(function(n){return e.isPropertyAssignment(n)&&e.isIdentifier(n.name)&&"value"===n.name.escapedText&&n.initializer&&Ae(n.initializer,t)}))}(n.arguments[2],"prototype"===n.arguments[1].text);if(r)return r}},e.getExpandoInitializer=Ae,e.isDefaultedExpandoInitializer=function(n){var t=e.isVariableDeclaration(n.parent)?n.parent.name:e.isBinaryExpression(n.parent)&&63===n.parent.operatorToken.kind?n.parent.left:void 0;return t&&Ae(n.right,Vt(t))&&Bt(t)&&Ce(t,n.left)},e.getNameOfExpando=function(n){if(e.isBinaryExpression(n.parent)){var t=56!==n.parent.operatorToken.kind&&60!==n.parent.operatorToken.kind||!e.isBinaryExpression(n.parent.parent)?n.parent:n.parent.parent;if(63===t.operatorToken.kind&&e.isIdentifier(t.left))return t.left}else if(e.isVariableDeclaration(n.parent))return n.parent.name},e.isSameEntityName=Ce,e.getRightMostAssignedExpression=Ie,e.isExportsIdentifier=Ne,e.isModuleIdentifier=ke,e.isModuleExportsAccessExpression=Re,e.getAssignmentDeclarationKind=Oe,e.isBindableObjectDefinePropertyCall=Pe,e.isLiteralLikeAccess=we,e.isLiteralLikeElementAccess=Me,e.isBindableStaticAccessExpression=Fe,e.isBindableStaticElementAccessExpression=Ge,e.isBindableStaticNameExpression=Be,e.getNameOrArgument=Ue,e.getElementOrPropertyAccessArgumentExpressionOrName=Ve,e.getElementOrPropertyAccessName=je,e.getAssignmentDeclarationPropertyAccessKind=Ke,e.getInitializerOfBinaryExpression=He,e.isPrototypePropertyAssignment=function(n){return e.isBinaryExpression(n)&&3===Oe(n)},e.isSpecialPropertyDeclaration=function(n){return Ee(n)&&n.parent&&236===n.parent.kind&&(!e.isElementAccessExpression(n)||Me(n))&&!!e.getJSDocTypeTag(n.parent)},e.setValueDeclaration=function(e,n){var t=e.valueDeclaration;(!t||(!(8388608&n.flags)||8388608&t.flags)&&Le(t)&&!Le(n)||t.kind!==n.kind&&D(t))&&(e.valueDeclaration=n)},e.isFunctionSymbol=function(n){if(!n||!n.valueDeclaration)return!1;var t=n.valueDeclaration;return 254===t.kind||e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionLike(t.initializer)},e.tryGetModuleSpecifierFromDeclaration=function(n){var t,r,i;switch(n.kind){case 252:return n.initializer.arguments[0].text;case 264:return null===(t=e.tryCast(n.moduleSpecifier,e.isStringLiteralLike))||void 0===t?void 0:t.text;case 263:return null===(i=e.tryCast(null===(r=e.tryCast(n.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression,e.isStringLiteralLike))||void 0===i?void 0:i.text;default:e.Debug.assertNever(n)}},e.importFromModuleSpecifier=function(n){return We(n)||e.Debug.failBadSyntaxKind(n.parent)},e.tryGetImportFromModuleSpecifier=We,e.getExternalModuleName=ze,e.getNamespaceDeclarationNode=function(n){switch(n.kind){case 264:return n.importClause&&e.tryCast(n.importClause.namedBindings,e.isNamespaceImport);case 263:return n;case 270:return n.exportClause&&e.tryCast(n.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(n)}},e.isDefaultImport=function(e){return 264===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(n,t){var r;return n.name&&(r=t(n))||n.namedBindings&&(r=e.isNamespaceImport(n.namedBindings)?t(n.namedBindings):e.forEach(n.namedBindings.elements,t))?r:void 0},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 162:case 167:case 166:case 292:case 291:case 165:case 164:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(n){var t=e.isJSDocFunctionType(n)?e.firstOrUndefined(n.parameters):void 0,r=e.tryCast(t&&t.name,e.isIdentifier);return!!r&&"new"===r.escapedText},e.isJSDocTypeAlias=Je,e.isTypeAlias=function(n){return Je(n)||e.isTypeAliasDeclaration(n)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Xe,e.getSingleVariableOfVariableStatement=Ye,e.getJSDocCommentsAndTags=function(n,t){var r;ie(n)&&e.hasInitializer(n)&&e.hasJSDocNodes(n.initializer)&&(r=e.append(r,e.last(n.initializer.jsDoc)));for(var i=n;i&&i.parent;){if(e.hasJSDocNodes(i)&&(r=e.append(r,e.last(i.jsDoc))),162===i.kind){r=e.addRange(r,(t?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(161===i.kind){r=e.addRange(r,(t?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=Ze(i)}return r||e.emptyArray},e.getNextJSDocCommentLocation=Ze,e.getParameterSymbolFromJSDoc=function(n){if(n.symbol)return n.symbol;if(e.isIdentifier(n.name)){var t=n.name.escapedText,r=$e(n);if(r){var i=e.find(r.parameters,(function(e){return 79===e.name.kind&&e.name.escapedText===t}));return i&&i.symbol}}},e.getHostSignatureFromJSDoc=$e,e.getEffectiveJSDocHost=en,e.getJSDocHost=nn,e.getJSDocRoot=tn,e.getTypeParameterFromJsDoc=function(n){var t=n.name.escapedText,r=n.parent.parent.parent.typeParameters;return r&&e.find(r,(function(e){return e.name.escapedText===t}))},e.hasRestParameter=function(n){var t=e.lastOrUndefined(n.parameters);return!!t&&rn(t)},e.isRestParameter=rn,e.hasTypeArguments=function(e){return!!e.typeArguments},(ne=e.AssignmentKind||(e.AssignmentKind={}))[ne.None=0]="None",ne[ne.Definite=1]="Definite",ne[ne.Compound=2]="Compound",e.getAssignmentTargetKind=an,e.isAssignmentTarget=function(e){return 0!==an(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.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.isValueSignatureDeclaration=function(n){return e.isFunctionExpression(n)||e.isArrowFunction(n)||e.isMethodOrAccessor(n)||e.isFunctionDeclaration(n)||e.isConstructorDeclaration(n)},e.walkUpParenthesizedTypes=function(e){return on(e,189)},e.walkUpParenthesizedExpressions=sn,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var n;e&&189===e.kind;)n=e,e=e.parent;return[n,e]},e.skipParentheses=cn,e.isDeleteTarget=function(e){return(204===e.kind||205===e.kind)&&(e=sn(e.parent))&&213===e.kind},e.isNodeDescendantOf=function(e,n){for(;e;){if(e===n)return!0;e=e.parent}return!1},e.isDeclarationName=function(n){return!e.isSourceFile(n)&&!e.isBindingPattern(n)&&e.isDeclaration(n.parent)&&n.parent.name===n},e.getDeclarationFromName=function(n){var t=n.parent;switch(n.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(t))return t.parent;case 79:if(e.isDeclaration(t))return t.name===n?t:void 0;if(e.isQualifiedName(t)){var r=t.parent;return e.isJSDocParameterTag(r)&&r.name===t?r:void 0}var i=t.parent;return e.isBinaryExpression(i)&&0!==Oe(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===n?i:void 0;case 80:return e.isDeclaration(t)&&t.name===n?t:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(n){return bn(n)&&160===n.parent.kind&&e.isDeclaration(n.parent.parent)},e.isIdentifierName=function(e){var n=e.parent;switch(n.kind){case 165:case 164:case 167:case 166:case 170:case 171:case 294:case 291:case 204:return n.name===e;case 159:return n.right===e;case 201:case 268:return n.propertyName===e;case 273:case 283:return!0}return!1},e.isAliasSymbolDeclaration=function(n){return 263===n.kind||262===n.kind||265===n.kind&&!!n.name||266===n.kind||272===n.kind||268===n.kind||273===n.kind||269===n.kind&&un(n)||e.isBinaryExpression(n)&&2===Oe(n)&&un(n)||e.isPropertyAccessExpression(n)&&e.isBinaryExpression(n.parent)&&n.parent.left===n&&63===n.parent.operatorToken.kind&&ln(n.parent.right)||292===n.kind||291===n.kind&&ln(n.initializer)},e.getAliasDeclarationFromName=function e(n){switch(n.parent.kind){case 265:case 268:case 266:case 273:case 269:case 263:return n.parent;case 159:do{n=n.parent}while(159===n.parent.kind);return e(n)}},e.isAliasableExpression=ln,e.exportAssignmentIsAlias=un,e.getExportAssignmentExpression=dn,e.getPropertyAssignmentAliasLikeExpression=function(e){return 292===e.kind?e.name:291===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=pn,e.getClassExtendsHeritageElement=fn,e.getEffectiveImplementsTypeNodes=mn,e.getAllSuperTypeNodes=function(n){return e.isInterfaceDeclaration(n)?_n(n)||e.emptyArray:e.isClassLike(n)&&e.concatenate(e.singleElementArray(pn(n)),mn(n))||e.emptyArray},e.getInterfaceBaseTypeNodes=_n,e.getHeritageClause=gn,e.getAncestor=function(e,n){for(;e;){if(e.kind===n)return e;e=e.parent}},e.isKeyword=yn,e.isContextualKeyword=hn,e.isNonContextualKeyword=vn,e.isFutureReservedKeyword=function(e){return 117<=e&&e<=125},e.isStringANonContextualKeyword=function(n){var t=e.stringToToken(n);return void 0!==t&&vn(t)},e.isStringAKeyword=function(n){var t=e.stringToToken(n);return void 0!==t&&yn(t)},e.isIdentifierANonContextualKeyword=function(e){var n=e.originalKeywordKind;return!!n&&!hn(n)},e.isTrivia=function(e){return 2<=e&&e<=7},(ee=e.FunctionFlags||(e.FunctionFlags={}))[ee.Normal=0]="Normal",ee[ee.Generator=1]="Generator",ee[ee.Async=2]="Async",ee[ee.Invalid=4]="Invalid",ee[ee.AsyncGenerator=3]="AsyncGenerator",e.getFunctionFlags=function(e){if(!e)return 4;var n=0;switch(e.kind){case 254:case 211:case 167:e.asteriskToken&&(n|=1);case 212:bt(e,256)&&(n|=2)}return e.body||(n|=4),n},e.isAsyncFunction=function(e){switch(e.kind){case 254:case 211:case 212:case 167:return void 0!==e.body&&void 0===e.asteriskToken&&bt(e,256)}return!1},e.isStringOrNumericLiteralLike=bn,e.isSignedNumericLiteral=En,e.hasDynamicName=Tn,e.isDynamicName=Sn,e.getPropertyNameForPropertyNameNode=xn,e.isPropertyNameLiteral=Ln,e.getTextOfIdentifierOrLiteral=Dn,e.getEscapedTextOfIdentifierOrLiteral=function(n){return e.isMemberName(n)?n.escapedText:e.escapeLeadingUnderscores(n.text)},e.getPropertyNameForUniqueESSymbol=function(n){return"__@"+e.getSymbolId(n)+"@"+n.escapedName},e.getSymbolNameForPrivateIdentifier=function(n,t){return"__#"+e.getSymbolId(n)+"@"+t},e.isKnownSymbol=function(n){return e.startsWith(n.escapedName,"__@")},e.isPrivateIdentifierSymbol=function(n){return e.startsWith(n.escapedName,"__#")},e.isESSymbolIdentifier=function(e){return 79===e.kind&&"Symbol"===e.escapedText},e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 162===An(e).kind},e.getRootDeclaration=An,e.nodeStartsNewLexicalEnvironment=function(e){var n=e.kind;return 169===n||211===n||254===n||212===n||167===n||170===n||171===n||259===n||300===n},e.nodeIsSynthesized=Cn,e.getOriginalSourceFile=function(n){return e.getParseTreeNode(n,e.isSourceFile)||n},($=e.Associativity||(e.Associativity={}))[$.Left=0]="Left",$[$.Right=1]="Right",e.getExpressionAssociativity=function(e){var n=Nn(e),t=207===e.kind&&void 0!==e.arguments;return In(e.kind,n,t)},e.getOperatorAssociativity=In,e.getExpressionPrecedence=function(e){var n=Nn(e),t=207===e.kind&&void 0!==e.arguments;return kn(e.kind,n,t)},e.getOperator=Nn,(Z=e.OperatorPrecedence||(e.OperatorPrecedence={}))[Z.Comma=0]="Comma",Z[Z.Spread=1]="Spread",Z[Z.Yield=2]="Yield",Z[Z.Assignment=3]="Assignment",Z[Z.Conditional=4]="Conditional",Z[Z.Coalesce=4]="Coalesce",Z[Z.LogicalOR=5]="LogicalOR",Z[Z.LogicalAND=6]="LogicalAND",Z[Z.BitwiseOR=7]="BitwiseOR",Z[Z.BitwiseXOR=8]="BitwiseXOR",Z[Z.BitwiseAND=9]="BitwiseAND",Z[Z.Equality=10]="Equality",Z[Z.Relational=11]="Relational",Z[Z.Shift=12]="Shift",Z[Z.Additive=13]="Additive",Z[Z.Multiplicative=14]="Multiplicative",Z[Z.Exponentiation=15]="Exponentiation",Z[Z.Unary=16]="Unary",Z[Z.Update=17]="Update",Z[Z.LeftHandSide=18]="LeftHandSide",Z[Z.Member=19]="Member",Z[Z.Primary=20]="Primary",Z[Z.Highest=20]="Highest",Z[Z.Lowest=0]="Lowest",Z[Z.Invalid=-1]="Invalid",e.getOperatorPrecedence=kn,e.getBinaryOperatorPrecedence=Rn,e.getSemanticJsxChildren=function(n){return e.filter(n,(function(e){switch(e.kind){case 286:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))},e.createDiagnosticCollection=function(){var n=[],t=[],r=new e.Map,i=!1;return{add:function(a){var o;a.file?(o=r.get(a.file.fileName))||(o=[],r.set(a.file.fileName,o),e.insertSorted(t,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,n=n.slice()),o=n),e.insertSorted(o,a,hr)},lookup:function(t){var i;if(i=t.file?r.get(t.file.fileName):n){var a=e.binarySearch(i,t,e.identity,vr);return a>=0?i[a]:void 0}},getGlobalDiagnostics:function(){return i=!0,n},getDiagnostics:function(i){if(i)return r.get(i)||[];var a=e.flatMapToMutable(t,(function(e){return r.get(e)}));return n.length?(a.unshift.apply(a,n),a):a}}};var On=/\$\{/g;e.hasInvalidEscape=function(n){return n&&!!(e.isNoSubstitutionTemplateLiteral(n)?n.templateFlags:n.head.templateFlags||e.some(n.templateSpans,(function(e){return!!e.literal.templateFlags})))};var Pn=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,wn=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Mn=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Fn=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function Gn(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Bn(e,n,t){if(0===e.charCodeAt(0)){var r=t.charCodeAt(n+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Fn.get(e)||Gn(e.charCodeAt(0))}function Un(e,n){var t=96===n?Mn:39===n?wn:Pn;return e.replace(t,Bn)}e.escapeString=Un;var Vn=/[^\u0000-\u007F]/g;function jn(e,n){return e=Un(e,n),Vn.test(e)?e.replace(Vn,(function(e){return Gn(e.charCodeAt(0))})):e}e.escapeNonAsciiString=jn;var Kn=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Hn=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Wn=new e.Map(e.getEntries({'"':"&quot;","'":"&apos;"}));function zn(e){return 0===e.charCodeAt(0)?"&#0;":Wn.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Jn(e,n){var t=39===n?Hn:Kn;return e.replace(t,zn)}e.escapeJsxAttributeString=Jn,e.stripQuotes=function(e){var n,t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e},e.isIntrinsicJsxName=function(n){var t=n.charCodeAt(0);return t>=97&&t<=122||e.stringContains(n,"-")||e.stringContains(n,":")};var qn=[""," "];function Xn(e){for(var n=qn[1],t=qn.length;t<=e;t++)qn.push(qn[t-1]+n);return qn[e]}function Yn(){return qn[1].length}function Qn(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Zn(e,n,t){return n.moduleName||et(e,n.fileName,t&&t.fileName)}function $n(n,t){return n.getCanonicalFileName(e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()))}function et(n,t,r){var i=function(e){return n.getCanonicalFileName(e)},a=e.toPath(r?e.getDirectoryPath(r):n.getCommonSourceDirectory(),n.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),s=ni(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return r?e.ensurePathIsNonModuleName(s):s}function nt(e,n,t,r,i){var a=n.declarationDir||n.outDir;return ni(a?at(e,a,t,r,i):e)+".d.ts"}function tt(e){return e.outFile||e.out}function rt(e,n,t){return!(n.getCompilerOptions().noEmitForJsFiles&&be(e))&&!e.isDeclarationFile&&!n.isSourceFileFromExternalLibrary(e)&&(t||!(H(e)&&n.getResolvedProjectReferenceToRedirect(e.fileName))&&!n.isSourceOfProjectReferenceRedirect(e.fileName))}function it(e,n,t){return at(e,t,n.getCurrentDirectory(),n.getCommonSourceDirectory(),(function(e){return n.getCanonicalFileName(e)}))}function at(n,t,r,i,a){var o=e.getNormalizedAbsolutePath(n,r);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(t,o)}function ot(n,t,r){n.length>e.getRootLength(n)&&!r(n)&&(ot(e.getDirectoryPath(n),t,r),t(n))}function st(n,t){return e.computeLineOfPosition(n,t)}function ct(n){return e.find(n.members,(function(n){return e.isConstructorDeclaration(n)&&f(n.body)}))}function lt(e){if(e&&e.parameters.length>0){var n=2===e.parameters.length&&ut(e.parameters[0]);return e.parameters[n?1:0]}}function ut(e){return dt(e.name)}function dt(e){return!!e&&79===e.kind&&pt(e)}function pt(e){return 108===e.originalKeywordKind}function ft(n){if(Ee(n)||!e.isFunctionDeclaration(n)){var t=n.type;return t||!Ee(n)?t:e.isJSDocPropertyLikeTag(n)?n.typeExpression&&n.typeExpression.type:e.getJSDocType(n)}}function mt(e,n,t,r){_t(e,n,t.pos,r)}function _t(e,n,t,r){r&&r.length&&t!==r[0].pos&&st(e,t)!==st(e,r[0].pos)&&n.writeLine()}function gt(e,n,t,r,i,a,o,s){if(r&&r.length>0){i&&t.writeSpace(" ");for(var c=!1,l=0,u=r;l<u.length;l++){var d=u[l];c&&(t.writeSpace(" "),c=!1),s(e,n,t,d.pos,d.end,o),d.hasTrailingNewLine?t.writeLine():c=!0}c&&a&&t.writeSpace(" ")}}function yt(n,t,r,i,a,o){var s=Math.min(t,o-1),c=e.trimString(n.substring(a,s));c?(r.writeComment(c),s!==t&&r.writeLine()):r.rawWrite(i)}function ht(n,t,r){for(var i=0;t<r&&e.isWhiteSpaceSingleLine(n.charCodeAt(t));t++)9===n.charCodeAt(t)?i+=Yn()-i%Yn():i++;return i}function vt(e,n){return!!xt(e,n)}function bt(e,n){return!!Lt(e,n)}function Et(n){return e.isClassElement(n)&&Tt(n)||e.isClassStaticBlockDeclaration(n)}function Tt(e){return bt(e,32)}function St(e){return vt(e,64)}function xt(e,n){return At(e)&n}function Lt(e,n){return Ct(e)&n}function Dt(e,n,t){return e.kind>=0&&e.kind<=158?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Nt(e)),!n||4096&e.modifierFlagsCache||!t&&!Ee(e)||!e.parent||(e.modifierFlagsCache|=4096|It(e)),-536875009&e.modifierFlagsCache)}function At(e){return Dt(e,!0)}function Ct(e){return Dt(e,!1)}function It(n){var t=0;return n.parent&&!e.isParameter(n)&&(Ee(n)&&(e.getJSDocPublicTagNoCache(n)&&(t|=4),e.getJSDocPrivateTagNoCache(n)&&(t|=8),e.getJSDocProtectedTagNoCache(n)&&(t|=16),e.getJSDocReadonlyTagNoCache(n)&&(t|=64),e.getJSDocOverrideTagNoCache(n)&&(t|=16384)),e.getJSDocDeprecatedTagNoCache(n)&&(t|=8192)),t}function Nt(e){var n=kt(e.modifiers);return(4&e.flags||79===e.kind&&e.isInJSDocNamespace)&&(n|=1),n}function kt(e){var n=0;if(e)for(var t=0,r=e;t<r.length;t++)n|=Rt(r[t].kind);return n}function Rt(e){switch(e){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}function Ot(e){return 75===e||76===e||77===e}function Pt(e){return e>=63&&e<=78}function wt(e){var n=Mt(e);return n&&!n.isImplements?n.class:void 0}function Mt(n){return e.isExpressionWithTypeArguments(n)&&e.isHeritageClause(n.parent)&&e.isClassLike(n.parent.parent)?{class:n.parent.parent,isImplements:117===n.parent.token}:void 0}function Ft(n,t){return e.isBinaryExpression(n)&&(t?63===n.operatorToken.kind:Pt(n.operatorToken.kind))&&e.isLeftHandSideExpression(n.left)}function Gt(e){return void 0!==wt(e)}function Bt(e){return 79===e.kind||Ut(e)}function Ut(n){return e.isPropertyAccessExpression(n)&&e.isIdentifier(n.name)&&Bt(n.expression)}function Vt(e){return Fe(e)&&"prototype"===je(e)}e.getIndentString=Xn,e.getIndentSize=Yn,e.createTextWriter=function(n){var t,r,i,a,o,s=!1;function c(n){var r=e.computeLineStarts(n);r.length>1?(a=a+r.length-1,o=t.length-n.length+e.last(r),i=o-t.length==0):i=!1}function l(e){e&&e.length&&(i&&(e=Xn(r)+e,i=!1),t+=e,c(e))}function u(e){e&&(s=!1),l(e)}function d(){t="",r=0,i=!0,a=0,o=0,s=!1}return d(),{write:u,rawWrite:function(e){void 0!==e&&(t+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&u(e)},writeLine:function(e){i&&!e||(a++,o=(t+=n).length,i=!0,s=!1)},increaseIndent:function(){r++},decreaseIndent:function(){r--},getIndent:function(){return r},getTextPos:function(){return t.length},getLine:function(){return a},getColumn:function(){return i?r*Yn():t.length-o},getText:function(){return t},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1))},clear:d,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:function(e,n){return u(e)},writeTrailingSemicolon:u,writeComment:function(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:function(){return i?t.length:t.length+n.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var n=!1;function t(){n&&(e.writeTrailingSemicolon(";"),n=!1)}return a(a({},e),{writeTrailingSemicolon:function(){n=!0},writeLiteral:function(n){t(),e.writeLiteral(n)},writeStringLiteral:function(n){t(),e.writeStringLiteral(n)},writeSymbol:function(n,r){t(),e.writeSymbol(n,r)},writePunctuation:function(n){t(),e.writePunctuation(n)},writeKeyword:function(n){t(),e.writeKeyword(n)},writeOperator:function(n){t(),e.writeOperator(n)},writeParameter:function(n){t(),e.writeParameter(n)},writeSpace:function(n){t(),e.writeSpace(n)},writeProperty:function(n){t(),e.writeProperty(n)},writeComment:function(n){t(),e.writeComment(n)},writeLine:function(){t(),e.writeLine()},increaseIndent:function(){t(),e.increaseIndent()},decreaseIndent:function(){t(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=Qn,e.hostGetCanonicalFileName=function(n){return e.createGetCanonicalFileName(Qn(n))},e.getResolvedExternalModuleName=Zn,e.getExternalModuleNameFromDeclaration=function(n,t,r){var i=t.getExternalModuleFileFromDeclaration(r);if(i&&!i.isDeclarationFile){var a=ze(r);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==$n(n,i.path).indexOf($n(n,e.ensureTrailingDirectorySeparator(n.getCommonSourceDirectory()))))return Zn(n,i)}},e.getExternalModuleNameFromPath=et,e.getOwnEmitOutputFilePath=function(e,n,t){var r=n.getCompilerOptions();return(r.outDir?ni(it(e,n,r.outDir)):ni(e))+t},e.getDeclarationEmitOutputFilePath=function(e,n){return nt(e,n.getCompilerOptions(),n.getCurrentDirectory(),n.getCommonSourceDirectory(),(function(e){return n.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=nt,e.outFile=tt,e.getPathsBasePath=function(n,t){var r,i;if(n.paths)return null!==(r=n.baseUrl)&&void 0!==r?r:e.Debug.checkDefined(n.pathsBasePath||(null===(i=t.getCurrentDirectory)||void 0===i?void 0:i.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=function(n,t,r){var i=n.getCompilerOptions();if(tt(i)){var a=Tr(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(n.getSourceFiles(),(function(t){return(o||!e.isExternalModule(t))&&rt(t,n,r)}))}var s=void 0===t?n.getSourceFiles():[t];return e.filter(s,(function(e){return rt(e,n,r)}))},e.sourceFileMayBeEmitted=rt,e.getSourceFilePathInNewDir=it,e.getSourceFilePathInNewDirWorker=at,e.writeFile=function(n,t,r,i,a,o){n.writeFile(r,i,a,(function(n){t.add(gr(e.Diagnostics.Could_not_write_file_0_Colon_1,r,n))}),o)},e.writeFileEnsuringDirectories=function(n,t,r,i,a,o){try{i(n,t,r)}catch(s){ot(e.getDirectoryPath(e.normalizePath(n)),a,o),i(n,t,r)}},e.getLineOfLocalPosition=function(n,t){var r=e.getLineStarts(n);return e.computeLineOfPosition(r,t)},e.getLineOfLocalPositionFromLineMap=st,e.getFirstConstructorWithBody=ct,e.getSetAccessorValueParameter=lt,e.getSetAccessorTypeAnnotationNode=function(e){var n=lt(e);return n&&n.type},e.getThisParameter=function(n){if(n.parameters.length&&!e.isJSDocSignature(n)){var t=n.parameters[0];if(ut(t))return t}},e.parameterIsThisKeyword=ut,e.isThisIdentifier=dt,e.isThisInTypeQuery=function(n){if(!dt(n))return!1;for(;e.isQualifiedName(n.parent)&&n.parent.left===n;)n=n.parent;return 179===n.parent.kind},e.identifierIsThisKeyword=pt,e.getAllAccessorDeclarations=function(n,t){var r,i,a,o;return Tn(t)?(r=t,170===t.kind?a=t:171===t.kind?o=t:e.Debug.fail("Accessor has wrong kind")):e.forEach(n,(function(n){e.isAccessor(n)&&Et(n)===Et(t)&&xn(n.name)===xn(t.name)&&(r?i||(i=n):r=n,170!==n.kind||a||(a=n),171!==n.kind||o||(o=n))})),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=ft,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(n){return e.isJSDocSignature(n)?n.type&&n.type.typeExpression&&n.type.typeExpression.type:n.type||(Ee(n)?e.getJSDocReturnType(n):void 0)},e.getJSDocTypeParameterDeclarations=function(n){return e.flatMap(e.getJSDocTags(n),(function(n){return function(n){return e.isJSDocTemplateTag(n)&&!(315===n.parent.kind&&n.parent.tags.some(Je))}(n)?n.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var n=lt(e);return n&&ft(n)},e.emitNewLineBeforeLeadingComments=mt,e.emitNewLineBeforeLeadingCommentsOfPosition=_t,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,n,t,r){t!==r&&st(e,t)!==st(e,r)&&n.writeLine()},e.emitComments=gt,e.emitDetachedComments=function(n,t,r,i,a,o,s){var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(n,a.pos),(function(e){return y(n,e.pos)}))):c=e.getLeadingCommentRanges(n,a.pos),c){for(var u=[],d=void 0,p=0,f=c;p<f.length;p++){var m=f[p];if(d){var _=st(t,d.end);if(st(t,m.pos)>=_+2)break}u.push(m),d=m}u.length&&(_=st(t,e.last(u).end),st(t,e.skipTrivia(n,a.pos))>=_+2&&(mt(t,r,a,c),gt(n,t,r,u,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.last(u).end}))}return l},e.writeCommentRange=function(n,t,r,i,a,o){if(42===n.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(t,i),c=t.length,l=void 0,u=i,d=s.line;u<a;d++){var p=d+1===c?n.length+1:t[d+1];if(u!==i){void 0===l&&(l=ht(n,t[s.line],i));var f=r.getIndent()*Yn()-l+ht(n,u,p);if(f>0){var m=f%Yn(),_=Xn((f-m)/Yn());for(r.rawWrite(_);m;)r.rawWrite(" "),m--}else r.rawWrite("")}yt(n,a,r,o,u,p),u=p}else r.writeComment(n.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==At(e)},e.hasSyntacticModifiers=function(e){return 0!==Ct(e)},e.hasEffectiveModifier=vt,e.hasSyntacticModifier=bt,e.isStatic=Et,e.hasStaticModifier=Tt,e.hasOverrideModifier=function(e){return vt(e,16384)},e.hasAbstractModifier=function(e){return bt(e,128)},e.hasAmbientModifier=function(e){return bt(e,2)},e.hasEffectiveReadonlyModifier=St,e.getSelectedEffectiveModifierFlags=xt,e.getSelectedSyntacticModifierFlags=Lt,e.getEffectiveModifierFlags=At,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return Dt(e,!0,!0)},e.getSyntacticModifierFlags=Ct,e.getEffectiveModifierFlagsNoCache=function(e){return Nt(e)|It(e)},e.getSyntacticModifierFlagsNoCache=Nt,e.modifiersToFlags=kt,e.modifierToFlag=Rt,e.createModifiers=function(n){return n?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(n)):void 0},e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=Ot,e.isLogicalOrCoalescingAssignmentExpression=function(e){return Ot(e.operatorToken.kind)},e.isAssignmentOperator=Pt,e.tryGetClassExtendingExpressionWithTypeArguments=wt,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Mt,e.isAssignmentExpression=Ft,e.isLeftHandSideOfAssignment=function(e){return Ft(e.parent)&&e.parent.left===e},e.isDestructuringAssignment=function(e){if(Ft(e,!0)){var n=e.left.kind;return 203===n||202===n}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Gt,e.isEntityNameExpression=Bt,e.getFirstIdentifier=function(e){switch(e.kind){case 79:return e;case 159:do{e=e.left}while(79!==e.kind);return e;case 204:do{e=e.expression}while(79!==e.kind);return e}},e.isDottedName=function e(n){return 79===n.kind||108===n.kind||106===n.kind||229===n.kind||204===n.kind&&e(n.expression)||210===n.kind&&e(n.expression)},e.isPropertyAccessEntityNameExpression=Ut,e.tryGetPropertyAccessOrIdentifierToString=function n(t){if(e.isPropertyAccessExpression(t)){if(void 0!==(r=n(t.expression)))return r+"."+G(t.name)}else if(e.isElementAccessExpression(t)){var r;if(void 0!==(r=n(t.expression))&&e.isPropertyName(t.argumentExpression))return r+"."+xn(t.argumentExpression)}else if(e.isIdentifier(t))return e.unescapeLeadingUnderscores(t.escapedText)},e.isPrototypeAccess=Vt,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 159===e.parent.kind&&e.parent.right===e||204===e.parent.kind&&e.parent.name===e},e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=function(n){return e.isQualifiedName(n.parent)&&n.parent.right===n||e.isPropertyAccessExpression(n.parent)&&n.parent.name===n||e.isJSDocMemberName(n.parent)&&n.parent.right===n},e.isEmptyObjectLiteral=function(e){return 203===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 202===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(n){if(function(n){return n&&e.length(n.declarations)>0&&bt(n.declarations[0],512)}(n)&&n.declarations)for(var t=0,r=n.declarations;t<r.length;t++){var i=r[t];if(i.localSymbol)return i.localSymbol}},e.tryExtractTSExtension=function(n){return e.find(e.supportedTSExtensionsForExtractExtension,(function(t){return e.fileExtensionIs(n,t)}))};var jt,Kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Ht(n){for(var t,r,i,a,o="",s=function(n){for(var t=[],r=n.length,i=0;i<r;i++){var a=n.charCodeAt(i);a<128?t.push(a):a<2048?(t.push(a>>6|192),t.push(63&a|128)):a<65536?(t.push(a>>12|224),t.push(a>>6&63|128),t.push(63&a|128)):a<131072?(t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return t}(n),c=0,l=s.length;c<l;)t=s[c]>>2,r=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=l?i=a=64:c+2>=l&&(a=64),o+=Kt.charAt(t)+Kt.charAt(r)+Kt.charAt(i)+Kt.charAt(a),c+=3;return o}function Wt(n,t){return void 0===t&&(t=n),e.Debug.assert(t>=n||-1===t),{pos:n,end:t}}function zt(e,n){return Wt(n,e.end)}function Jt(e){return e.decorators&&e.decorators.length>0?zt(e,e.decorators.end):e}function qt(e,n,t){return Xt(Yt(e,t,!1),n.end,t)}function Xt(n,t,r){return 0===e.getLinesBetweenPositions(r,n,t)}function Yt(n,t,r){return ai(n.pos)?-1:e.skipTrivia(t.text,n.pos,!1,r)}function Qt(e){return void 0!==e.initializer}function Zt(e){return 33554432&e.flags?e.checkFlags:0}function $t(n){var t=n.parent;if(!t)return 0;switch(t.kind){case 210:case 202:return $t(t);case 218:case 217:var r=t.operator;return 45===r||46===r?c():0;case 219:var i=t,a=i.left,o=i.operatorToken;return a===n&&Pt(o.kind)?63===o.kind?1:c():0;case 204:return t.name!==n?0:$t(t);case 291:var s=$t(t.parent);return n===t.name?function(n){switch(n){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(n)}}(s):s;case 292:return n===t.objectAssignmentInitializer?0:$t(t.parent);default:return 0}function c(){return t.parent&&236===sn(t.parent).kind?1:2}}function er(e,n,t){var r=t.onDeleteValue,i=t.onExistingValue;e.forEach((function(t,a){var o=n.get(a);void 0===o?(e.delete(a),r(t,a)):i&&i(t,o,a)}))}function nr(n){var t;return null===(t=n.declarations)||void 0===t?void 0:t.find(e.isClassLike)}function tr(e){return 204===e.kind||205===e.kind}function rr(e){for(;tr(e);)e=e.expression;return e}function ir(e,n){this.flags=e,this.escapedName=n,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function ar(n,t){this.flags=t,(e.Debug.isDebugging||e.tracing)&&(this.checker=n)}function or(n,t){this.flags=t,e.Debug.isDebugging&&(this.checker=n)}function sr(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function cr(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function lr(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function ur(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t||function(e){return e}}function dr(n,t,r){return void 0===r&&(r=0),n.replace(/{(\d+)}/g,(function(n,i){return""+e.Debug.checkDefined(t[+i+r])}))}function pr(n){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[n.key]||n.message}function fr(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function mr(n,t){var r=t.fileName||"",i=t.text.length;e.Debug.assertEqual(n.fileName,r),e.Debug.assertLessThanOrEqual(n.start,i),e.Debug.assertLessThanOrEqual(n.start+n.length,i);var a={file:t,start:n.start,length:n.length,messageText:n.messageText,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary};if(n.relatedInformation){a.relatedInformation=[];for(var o=0,s=n.relatedInformation;o<s.length;o++){var c=s[o];fr(c)&&c.fileName===r?(e.Debug.assertLessThanOrEqual(c.start,i),e.Debug.assertLessThanOrEqual(c.start+c.length,i),a.relatedInformation.push(mr(c,t))):a.relatedInformation.push(c)}}return a}function _r(e,n,t,r){U(e,n,t);var i=pr(r);return arguments.length>4&&(i=dr(i,arguments,4)),{file:e,start:n,length:t,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function gr(e){var n=pr(e);return arguments.length>1&&(n=dr(n,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function yr(e){return e.file?e.file.path:void 0}function hr(n,t){return vr(n,t)||function(n,t){return n.relatedInformation||t.relatedInformation?n.relatedInformation&&t.relatedInformation?e.compareValues(n.relatedInformation.length,t.relatedInformation.length)||e.forEach(n.relatedInformation,(function(e,n){return hr(e,t.relatedInformation[n])}))||0:n.relatedInformation?-1:1:0}(n,t)||0}function vr(n,t){return e.compareStringsCaseSensitive(yr(n),yr(t))||e.compareValues(n.start,t.start)||e.compareValues(n.length,t.length)||e.compareValues(n.code,t.code)||br(n.messageText,t.messageText)||0}function br(n,t){if("string"==typeof n&&"string"==typeof t)return e.compareStringsCaseSensitive(n,t);if("string"==typeof n)return-1;if("string"==typeof t)return 1;var r=e.compareStringsCaseSensitive(n.messageText,t.messageText);if(r)return r;if(!n.next&&!t.next)return 0;if(!n.next)return-1;if(!t.next)return 1;for(var i=Math.min(n.next.length,t.next.length),a=0;a<i;a++)if(r=br(n.next[a],t.next[a]))return r;return n.next.length<t.next.length?-1:n.next.length>t.next.length?1:0}function Er(e){return e.target||0}function Tr(n){return"number"==typeof n.module?n.module:Er(n)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Sr(e){return!(!e.declaration&&!e.composite)}function xr(e,n){return void 0===e[n]?!!e.strict:!!e[n]}function Lr(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function Dr(e,n){return n.strictFlag?xr(e,n.name):e[n.name]}function Ar(n,t,r,i){for(var a=e.getPathComponents(e.getNormalizedAbsolutePath(n,r)),o=e.getPathComponents(e.getNormalizedAbsolutePath(t,r)),s=!1;!Cr(a[a.length-2],i)&&!Cr(o[o.length-2],i)&&i(a[a.length-1])===i(o[o.length-1]);)a.pop(),o.pop(),s=!0;return s?[e.getPathFromPathComponents(a),e.getPathFromPathComponents(o)]:void 0}function Cr(n,t){return"node_modules"===t(n)||e.startsWith(n,"@")}e.convertToBase64=Ht,e.base64encode=function(e,n){return e&&e.base64encode?e.base64encode(n):Ht(n)},e.base64decode=function(e,n){if(e&&e.base64decode)return e.base64decode(n);for(var t=n.length,r=[],i=0;i<t&&n.charCodeAt(i)!==Kt.charCodeAt(64);){var a=Kt.indexOf(n[i]),o=Kt.indexOf(n[i+1]),s=Kt.indexOf(n[i+2]),c=Kt.indexOf(n[i+3]),l=(63&a)<<2|o>>4&3,u=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===u&&0!==s?r.push(l):0===d&&0!==c?r.push(l,u):r.push(l,u,d),i+=4}return function(e){for(var n="",t=0,r=e.length;t<r;){var i=e[t];if(i<128)n+=String.fromCharCode(i),t++;else if(192==(192&i)){for(var a=63&i,o=e[++t];128==(192&o);)a=a<<6|63&o,o=e[++t];n+=String.fromCharCode(a)}else n+=String.fromCharCode(i),t++}return n}(r)},e.readJson=function(n,t){try{var r=t.readFile(n);if(!r)return{};var i=e.parseConfigFileTextToJson(n,r);return i.error?{}:i.config}catch(e){return{}}},e.directoryProbablyExists=function(e,n){return!n.directoryExists||n.directoryExists(e)},e.getNewLineCharacter=function(n,t){switch(n.newLine){case 0:return"\r\n";case 1:return"\n"}return t?t():e.sys?e.sys.newLine:"\r\n"},e.createRange=Wt,e.moveRangeEnd=function(e,n){return Wt(e.pos,n)},e.moveRangePos=zt,e.moveRangePastDecorators=Jt,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?zt(e,e.modifiers.end):Jt(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(n,t){return Wt(n,n+e.tokenToString(t).length)},e.rangeIsOnSingleLine=function(e,n){return qt(e,e,n)},e.rangeStartPositionsAreOnSameLine=function(e,n,t){return Xt(Yt(e,t,!1),Yt(n,t,!1),t)},e.rangeEndPositionsAreOnSameLine=function(e,n,t){return Xt(e.end,n.end,t)},e.rangeStartIsOnSameLineAsRangeEnd=qt,e.rangeEndIsOnSameLineAsRangeStart=function(e,n,t){return Xt(e.end,Yt(n,t,!1),t)},e.getLinesBetweenRangeEndAndRangeStart=function(n,t,r,i){var a=Yt(t,r,i);return e.getLinesBetweenPositions(r,n.end,a)},e.getLinesBetweenRangeEndPositions=function(n,t,r){return e.getLinesBetweenPositions(r,n.end,t.end)},e.isNodeArrayMultiLine=function(e,n){return!Xt(e.pos,e.end,n)},e.positionsAreOnSameLine=Xt,e.getStartPositionOfRange=Yt,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(n,t,r,i){var a=e.skipTrivia(r.text,n,!1,i),o=function(n,t,r){for(void 0===t&&(t=0);n-- >t;)if(!e.isWhiteSpaceLike(r.text.charCodeAt(n)))return n}(a,t,r);return e.getLinesBetweenPositions(r,null!=o?o:t,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(n,t,r,i){var a=e.skipTrivia(r.text,n,!1,i);return e.getLinesBetweenPositions(r,n,Math.min(t,a))},e.isDeclarationNameOfEnumOrNamespace=function(n){var t=e.getParseTreeNode(n);if(t)switch(t.parent.kind){case 258:case 259:return t===t.parent.name}return!1},e.getInitializedVariables=function(n){return e.filter(n.declarations,Qt)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=Zt,e.getDeclarationModifierFlagsFromSymbol=function(n,t){if(void 0===t&&(t=!1),n.valueDeclaration){var r=t&&n.declarations&&e.find(n.declarations,(function(e){return 171===e.kind}))||n.valueDeclaration,i=e.getCombinedModifierFlags(r);return n.parent&&32&n.parent.flags?i:-29&i}if(6&Zt(n)){var a=n.checkFlags;return(1024&a?8:256&a?4:16)|(2048&a?32:0)}return 4194304&n.flags?36:0},e.skipAlias=function(e,n){return 2097152&e.flags?n.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===$t(e)},e.isWriteAccess=function(e){return 0!==$t(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(jt||(jt={})),e.compareDataObjects=function e(n,t){if(!n||!t||Object.keys(n).length!==Object.keys(t).length)return!1;for(var r in n)if("object"==typeof n[r]){if(!e(n[r],t[r]))return!1}else if("function"!=typeof n[r]&&n[r]!==t[r])return!1;return!0},e.clearMap=function(e,n){e.forEach(n),e.clear()},e.mutateMapSkippingNewValues=er,e.mutateMap=function(e,n,t){er(e,n,t);var r=t.createNewValue;n.forEach((function(n,t){e.has(t)||e.set(t,r(t,n))}))},e.isAbstractConstructorSymbol=function(e){if(32&e.flags){var n=nr(e);return!!n&&bt(n,128)}return!1},e.getClassLikeDeclarationOfSymbol=nr,e.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},e.typeHasCallOrConstructSignatures=function(e,n){return 0!==n.getSignaturesOfType(e,0).length||0!==n.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(n,t){return!!e.forEachAncestorDirectory(n,(function(e){return!!t(e)||void 0}))},e.isUMDExportSymbol=function(n){return!!n&&!!n.declarations&&!!n.declarations[0]&&e.isNamespaceExportDeclaration(n.declarations[0])},e.showModuleSpecifier=function(n){var t=n.moduleSpecifier;return e.isStringLiteral(t)?t.text:E(t)},e.getLastChild=function(n){var t;return e.forEachChild(n,(function(e){f(e)&&(t=e)}),(function(e){for(var n=e.length-1;n>=0;n--)if(f(e[n])){t=e[n];break}})),t},e.addToSeen=function(e,n,t){return void 0===t&&(t=!0),!e.has(n)&&(e.set(n,t),!0)},e.isObjectTypeDeclaration=function(n){return e.isClassLike(n)||e.isInterfaceDeclaration(n)||e.isTypeLiteralNode(n)},e.isTypeNodeKind=function(e){return e>=175&&e<=198||129===e||153===e||145===e||156===e||146===e||132===e||148===e||149===e||114===e||151===e||142===e||226===e||307===e||308===e||309===e||310===e||311===e||312===e||313===e},e.isAccessExpression=tr,e.getNameOfAccessExpression=function(n){return 204===n.kind?n.name:(e.Debug.assert(205===n.kind),n.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 267===e.kind||271===e.kind},e.getLeftmostAccessExpression=rr,e.getLeftmostExpression=function(e,n){for(;;){switch(e.kind){case 218:e=e.operand;continue;case 219:e=e.left;continue;case 220:e=e.condition;continue;case 208:e=e.tag;continue;case 206:if(n)return e;case 227:case 205:case 204:case 228:case 345:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return sr},getTokenConstructor:function(){return cr},getIdentifierConstructor:function(){return lr},getPrivateIdentifierConstructor:function(){return sr},getSourceFileConstructor:function(){return sr},getSymbolConstructor:function(){return ir},getTypeConstructor:function(){return ar},getSignatureConstructor:function(){return or},getSourceMapSourceConstructor:function(){return ur}},e.setObjectAllocator=function(n){e.objectAllocator=n},e.formatStringFromArgs=dr,e.setLocalizedDiagnosticMessages=function(n){e.localizedDiagnosticMessages=n},e.getLocaleSpecificMessage=pr,e.createDetachedDiagnostic=function(e,n,t,r){U(void 0,n,t);var i=pr(r);return arguments.length>4&&(i=dr(i,arguments,4)),{file:void 0,start:n,length:t,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=function(e,n){for(var t=[],r=0,i=e;r<i.length;r++){var a=i[r];t.push(mr(a,n))}return t},e.createFileDiagnostic=_r,e.formatMessage=function(e,n){var t=pr(n);return arguments.length>2&&(t=dr(t,arguments,2)),t},e.createCompilerDiagnostic=gr,e.createCompilerDiagnosticFromMessageChain=function(e,n){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:n}},e.chainDiagnosticMessages=function(e,n){var t=pr(n);return arguments.length>2&&(t=dr(t,arguments,2)),{messageText:t,category:n.category,code:n.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,n){for(var t=e;t.next;)t=t.next[0];t.next=[n]},e.compareDiagnostics=hr,e.compareDiagnosticsSkipRelatedInformation=vr,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getEmitScriptTarget=Er,e.getEmitModuleKind=Tr,e.getEmitModuleResolutionKind=function(n){var t=n.moduleResolution;return void 0===t&&(t=Tr(n)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),t},e.hasJsonModuleEmitEnabled=function(n){switch(Tr(n)){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.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!Sr(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(n){var t=Tr(n);return void 0!==n.allowSyntheticDefaultImports?n.allowSyntheticDefaultImports:n.esModuleInterop||t===e.ModuleKind.System},e.getEmitDeclarations=Sr,e.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=xr,e.getAllowJSCompilerOption=Lr,e.getUseDefineForClassFields=function(e){return void 0===e.useDefineForClassFields?99===e.target:e.useDefineForClassFields},e.compilerOptionsAffectSemanticDiagnostics=function(n,t){return c(t,n,e.semanticDiagnosticsOptionDeclarations)},e.compilerOptionsAffectEmit=function(n,t){return c(t,n,e.affectsEmitOptionDeclarations)},e.getCompilerOptionValue=Dr,e.getJSXTransformEnabled=function(e){var n=e.jsx;return 2===n||4===n||5===n},e.getJSXImplicitImportBase=function(n,t){var r=null==t?void 0:t.pragmas.get("jsximportsource"),i=e.isArray(r)?r[r.length-1]:r;return 4===n.jsx||5===n.jsx||n.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||n.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=function(e,n){return e?e+"/"+(5===n.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},e.hasZeroOrOneAsteriskCharacter=function(e){for(var n=!1,t=0;t<e.length;t++)if(42===e.charCodeAt(t)){if(n)return!1;n=!0}return!0},e.createSymlinkCache=function(n,t){var r,i,a,o=!1;return{getSymlinkedFiles:function(){return a},getSymlinkedDirectories:function(){return r},getSymlinkedDirectoriesByRealpath:function(){return i},setSymlinkedFile:function(n,t){return(a||(a=new e.Map)).set(n,t)},setSymlinkedDirectory:function(a,o){var s=e.toPath(a,n,t);mi(s)||(s=e.ensureTrailingDirectorySeparator(s),!1===o||(null==r?void 0:r.has(s))||(i||(i=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(o.realPath),a),(r||(r=new e.Map)).set(s,o))},setSymlinkedDirectoryFromSymlinkedFile:function(r,i){this.setSymlinkedFile(e.toPath(r,n,t),i);var a=Ar(i,r,n,t)||e.emptyArray,o=a[0],s=a[1];o&&s&&this.setSymlinkedDirectory(s,{real:o,realPath:e.toPath(o,n,t)})},setSymlinksFromResolutions:function(n,t){var r,i=this;e.Debug.assert(!o),o=!0;for(var a=0,c=n;a<c.length;a++)null===(r=c[a].resolvedModules)||void 0===r||r.forEach((function(e){return s(i,e)}));null==t||t.forEach((function(e){return s(i,e)}))},hasProcessedResolutions:function(){return o}};function s(r,i){if(i&&i.originalPath&&i.resolvedFileName){var a=i.resolvedFileName,o=i.originalPath;r.setSymlinkedFile(e.toPath(o,n,t),a);var s=Ar(a,o,n,t)||e.emptyArray,c=s[0],l=s[1];c&&l&&r.setSymlinkedDirectory(l,{real:c,realPath:e.toPath(c,n,t)})}}},e.tryRemoveDirectoryPrefix=function(n,t,r){var i,a=e.tryRemovePrefix(n,t,r);return void 0===a?void 0:(i=a,e.isAnyDirectorySeparator(i.charCodeAt(0))?i.slice(1):void 0)};var Ir=/[^\w\s\/]/g;function Nr(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(Ir,Nr)};var kr=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Rr="(?!("+e.commonPackageFolders.join("|")+")(/|$))",Or={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+Rr+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Vr(e,Or.singleAsteriskRegexFragment)}},Pr={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+Rr+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Vr(e,Pr.singleAsteriskRegexFragment)}},wr={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return Vr(e,wr.singleAsteriskRegexFragment)}},Mr={files:Or,directories:Pr,exclude:wr};function Fr(e,n,t){var r=Gr(e,n,t);if(r&&r.length)return"^("+r.map((function(e){return"("+e+")"})).join("|")+")"+("exclude"===t?"($|/)":"$")}function Gr(n,t,r){if(void 0!==n&&0!==n.length)return e.flatMap(n,(function(e){return e&&Ur(e,t,r,Mr[r])}))}function Br(e){return!/[.*?]/.test(e)}function Ur(n,t,r,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",l=!1,u=e.getNormalizedPathComponents(n,t),d=e.last(u);if("exclude"===r||"**"!==d){u[0]=e.removeTrailingDirectorySeparator(u[0]),Br(d)&&u.push("**","*");for(var p=0,f=0,m=u;f<m.length;f++){var _=m[f];if("**"===_)c+=o;else if("directories"===r&&(c+="(",p++),l&&(c+=e.directorySeparator),"exclude"!==r){var g="";42===_.charCodeAt(0)?(g+="([^./]"+a+")?",_=_.substr(1)):63===_.charCodeAt(0)&&(g+="[^./]",_=_.substr(1)),(g+=_.replace(Ir,s))!==_&&(c+=Rr),c+=g}else c+=_.replace(Ir,s);l=!0}for(;p>0;)c+=")?",p--;return c}}function Vr(e,n){return"*"===e?n:"?"===e?"[^/]":"\\"+e}function jr(n,t,r,i,a){n=e.normalizePath(n),a=e.normalizePath(a);var o=e.combinePaths(a,n);return{includeFilePatterns:e.map(Gr(r,o,"files"),(function(e){return"^"+e+"$"})),includeFilePattern:Fr(r,o,"files"),includeDirectoryPattern:Fr(r,o,"directories"),excludePattern:Fr(t,o,"exclude"),basePaths:Hr(n,r,i)}}function Kr(e,n){return new RegExp(e,n?"":"i")}function Hr(n,t,r){var i=[n];if(t){for(var a=[],o=0,s=t;o<s.length;o++){var c=s[o],l=e.isRootedDiskPath(c)?c:e.normalizePath(e.combinePaths(n,c));a.push(Wr(l))}a.sort(e.getStringComparer(!r));for(var u=function(t){e.every(i,(function(i){return!e.containsPath(i,t,n,!r)}))&&i.push(t)},d=0,p=a;d<p.length;d++)u(p[d])}return i}function Wr(n){var t=e.indexOfAnyCharCode(n,kr);return t<0?e.hasExtension(n)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(n)):n:n.substring(0,n.lastIndexOf(e.directorySeparator,t))}function zr(e){switch(e.substr(e.lastIndexOf(".")).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.getRegularExpressionForWildcard=Fr,e.getRegularExpressionsForWildcards=Gr,e.isImplicitGlob=Br,e.getPatternFromSpec=function(e,n,t){var r=e&&Ur(e,n,t,Mr[t]);return r&&"^("+r+")"+("exclude"===t?"($|/)":"$")},e.getFileMatcherPatterns=jr,e.getRegexFromPattern=Kr,e.matchFiles=function(n,t,r,i,a,o,s,c,l,u){n=e.normalizePath(n),o=e.normalizePath(o);for(var d=jr(n,r,i,a,o),p=d.includeFilePatterns&&d.includeFilePatterns.map((function(e){return Kr(e,a)})),f=d.includeDirectoryPattern&&Kr(d.includeDirectoryPattern,a),m=d.excludePattern&&Kr(d.excludePattern,a),_=p?p.map((function(){return[]})):[[]],g=new e.Map,y=e.createGetCanonicalFileName(a),h=0,v=d.basePaths;h<v.length;h++){var b=v[h];u(b)&&E(b,e.combinePaths(o,b),s)}return e.flatten(_);function E(n,r,i){var a=y(l(r));if(!g.has(a)){g.set(a,!0);for(var o=c(n),s=o.files,u=o.directories,d=function(i){var a=e.combinePaths(n,i),o=e.combinePaths(r,i);if(t&&!e.fileExtensionIsOneOf(a,t))return"continue";if(m&&m.test(o))return"continue";if(p){var s=e.findIndex(p,(function(e){return e.test(o)}));-1!==s&&_[s].push(a)}else _[0].push(a)},h=0,v=e.sort(s,e.compareStringsCaseSensitive);h<v.length;h++)d(S=v[h]);if(void 0===i||0!=--i)for(var b=0,T=e.sort(u,e.compareStringsCaseSensitive);b<T.length;b++){var S=T[b],x=e.combinePaths(n,S),L=e.combinePaths(r,S);f&&!f.test(L)||m&&m.test(L)||E(x,L,i)}}}},e.ensureScriptKind=function(e,n){return n||zr(e)||3},e.getScriptKindFromFileName=zr,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 Jr,qr=i(i([],e.supportedTSExtensions,!0),e.supportedJSExtensions,!0),Xr=i(i(i([],e.supportedTSExtensions,!0),e.supportedJSExtensions,!0),[".json"],!1);function Yr(n,t){var r=n&&Lr(n);if(!t||0===t.length)return r?qr:e.supportedTSExtensions;var a=i(i([],r?qr:e.supportedTSExtensions,!0),e.mapDefined(t,(function(e){return 7===e.scriptKind||r&&(1===(n=e.scriptKind)||2===n)?e.extension:void 0;var n})),!0);return e.deduplicate(a,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function Qr(n,t){return n&&n.resolveJsonModule?t===qr?Xr:t===e.supportedTSExtensions?e.supportedTSExtensionsWithJson:i(i([],t,!0),[".json"],!1):t}function Zr(e){var n=e.match(/\//g);return n?n.length:0}function $r(e,n){return e<2?0:e<n.length?2:n.length}e.getSupportedExtensions=Yr,e.getSuppoertedExtensionsWithJsonIfResolveJsonModule=Qr,e.hasJSFileExtension=function(n){return e.some(e.supportedJSExtensions,(function(t){return e.fileExtensionIs(n,t)}))},e.hasTSFileExtension=function(n){return e.some(e.supportedTSExtensions,(function(t){return e.fileExtensionIs(n,t)}))},e.isSupportedSourceFileName=function(n,t,r){if(!n)return!1;for(var i=0,a=Qr(t,Yr(t,r));i<a.length;i++){var o=a[i];if(e.fileExtensionIs(n,o))return!0}return!1},e.compareNumberOfDirectorySeparators=function(n,t){return e.compareValues(Zr(n),Zr(t))},(Jr=e.ExtensionPriority||(e.ExtensionPriority={}))[Jr.TypeScriptFiles=0]="TypeScriptFiles",Jr[Jr.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",Jr[Jr.Highest=0]="Highest",Jr[Jr.Lowest=2]="Lowest",e.getExtensionPriority=function(n,t){for(var r=t.length-1;r>=0;r--)if(e.fileExtensionIs(n,t[r]))return $r(r,t);return 0},e.adjustExtensionPriority=$r,e.getNextLowestExtensionPriority=function(e,n){return e<2?2:n.length};var ei=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function ni(e){for(var n=0,t=ei;n<t.length;n++){var r=ti(e,t[n]);if(void 0!==r)return r}return e}function ti(n,t){return e.fileExtensionIs(n,t)?ri(n,t):void 0}function ri(e,n){return e.substring(0,e.length-n.length)}function ii(e){var n=e.indexOf("*");return-1===n?e:-1!==e.indexOf("*",n+1)?void 0:{prefix:e.substr(0,n),suffix:e.substr(n+1)}}function ai(e){return!(e>=0)}function oi(e){return".ts"===e||".tsx"===e||".d.ts"===e}function si(n){return e.find(ei,(function(t){return e.fileExtensionIs(n,t)}))}function ci(n,t){return n===t||"object"==typeof n&&null!==n&&"object"==typeof t&&null!==t&&e.equalOwnProperties(n,t,ci)}function li(e,n){return e.pos=n,e}function ui(e,n){return e.end=n,e}function di(e,n,t){return ui(li(e,n),t)}function pi(e,n){return e&&n&&(e.parent=n),e}function fi(n){return!e.isOmittedExpression(n)}function mi(n){return e.some(e.ignoredPaths,(function(t){return e.stringContains(n,t)}))}e.removeFileExtension=ni,e.tryRemoveExtension=ti,e.removeExtension=ri,e.changeExtension=function(n,t){return e.changeAnyExtension(n,t,ei,!1)},e.tryParsePattern=ii,e.tryParsePatterns=function(n){return e.mapDefined(e.getOwnKeys(n),(function(e){return ii(e)}))},e.positionIsSynthesized=ai,e.extensionIsTS=oi,e.resolutionExtensionIsTSOrJson=function(e){return oi(e)||".json"===e},e.extensionFromPath=function(n){var t=si(n);return void 0!==t?t:e.Debug.fail("File "+n+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==si(e)},e.tryGetExtensionFromPath=si,e.isCheckJsEnabledForFile=function(e,n){return e.checkJsDirective?e.checkJsDirective.enabled:n.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(n,t){for(var r=[],i=0,a=n;i<a.length;i++){var o=a[i];if(o===t)return t;e.isString(o)||r.push(o)}return e.findBestPatternMatch(r,(function(e){return e}),t)},e.sliceAfter=function(n,t){var r=n.indexOf(t);return e.Debug.assert(-1!==r),n.slice(r)},e.addRelatedInfo=function(n){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return r.length?(n.relatedInformation||(n.relatedInformation=[]),e.Debug.assert(n.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(t=n.relatedInformation).push.apply(t,r),n):n},e.minAndMax=function(n,t){e.Debug.assert(0!==n.length);for(var r=t(n[0]),i=r,a=1;a<n.length;a++){var o=t(n[a]);o<r?r=o:o>i&&(i=o)}return{min:r,max:i}},e.rangeOfNode=function(e){return{pos:h(e),end:e.end}},e.rangeOfTypeParameters=function(n,t){return{pos:t.pos-1,end:e.skipTrivia(n.text,t.end)+1}},e.skipTypeChecking=function(e,n,t){return n.skipLibCheck&&e.isDeclarationFile||n.skipDefaultLibCheck&&e.hasNoDefaultLib||t.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=ci,e.parsePseudoBigInt=function(e){var n;switch(e.charCodeAt(1)){case 98:case 66:n=1;break;case 111:case 79:n=3;break;case 120:case 88:n=4;break;default:for(var t=e.length-1,r=0;48===e.charCodeAt(r);)r++;return e.slice(r,t)||"0"}for(var i=e.length-1,a=(i-2)*n,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=n){var l=c>>>4,u=e.charCodeAt(s),d=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=d;var p=d>>>16;p&&(o[l+1]|=p)}for(var f="",m=o.length-1,_=!0;_;){var g=0;for(_=!1,l=m;l>=0;l--){var y=g<<16|o[l],h=y/10|0;o[l]=h,g=y-10*h,h&&!_&&(m=l,_=!0)}f=g+f}return f},e.pseudoBigIntToString=function(e){var n=e.negative,t=e.base10Value;return(n&&"0"!==t?"-":"")+t},e.isValidTypeOnlyAliasUseSite=function(n){return!!(8388608&n.flags)||he(n)||function(n){if(79!==n.kind)return!1;var t=e.findAncestor(n.parent,(function(e){switch(e.kind){case 289:return!0;case 204:case 226:return!1;default:return"quit"}}));return 117===(null==t?void 0:t.token)||256===(null==t?void 0:t.parent.kind)}(n)||function(e){for(;79===e.kind||204===e.kind;)e=e.parent;if(160!==e.kind)return!1;if(bt(e.parent,128))return!0;var n=e.parent.parent.kind;return 256===n||180===n}(n)||!(ge(n)||function(n){return e.isIdentifier(n)&&e.isShorthandPropertyAssignment(n.parent)&&n.parent.name===n}(n))},e.typeOnlyDeclarationIsExport=function(e){return 273===e.kind},e.isIdentifierTypeReference=function(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)},e.arrayIsHomogeneous=function(n,t){if(void 0===t&&(t=e.equateValues),n.length<2)return!0;for(var r=n[0],i=1,a=n.length;i<a;i++)if(!t(r,n[i]))return!1;return!0},e.setTextRangePos=li,e.setTextRangeEnd=ui,e.setTextRangePosEnd=di,e.setTextRangePosWidth=function(e,n,t){return di(e,n,n+t)},e.setNodeFlags=function(e,n){return e&&(e.flags=n),e},e.setParent=pi,e.setEachParent=function(e,n){if(e)for(var t=0,r=e;t<r.length;t++)pi(r[t],n);return e},e.setParentRecursive=function(n,t){return n?(e.forEachChildRecursively(n,e.isJSDocNode(n)?r:function(n,t){return r(n,t)||function(n){if(e.hasJSDocNodes(n))for(var t=0,i=n.jsDoc;t<i.length;t++){var a=i[t];r(a,n),e.forEachChildRecursively(a,r)}}(n)}),n):n;function r(e,n){if(t&&e.parent===n)return"skip";pi(e,n)}},e.isPackedArrayLiteral=function(n){return e.isArrayLiteralExpression(n)&&e.every(n.elements,fi)},e.expressionResultIsUnused=function(n){for(e.Debug.assertIsDefined(n.parent);;){var t=n.parent;if(e.isParenthesizedExpression(t))n=t;else{if(e.isExpressionStatement(t)||e.isVoidExpression(t)||e.isForStatement(t)&&(t.initializer===n||t.incrementor===n))return!0;if(e.isCommaListExpression(t)){if(n!==e.last(t.elements))return!0;n=t}else{if(!e.isBinaryExpression(t)||27!==t.operatorToken.kind)return!1;if(n===t.left)return!0;n=t}}}},e.containsIgnoredPath=mi,e.getContainingNodeArray=function(n){if(n.parent){switch(n.kind){case 161:var t=n.parent;return 188===t.kind?void 0:t.typeParameters;case 162:return n.parent.parameters;case 197:case 231:return n.parent.templateSpans;case 163:return n.parent.decorators;case 289:return n.parent.heritageClauses}var r=n.parent;if(e.isJSDocTag(n))return e.isJSDocTypeLiteral(n.parent)?void 0:n.parent.tags;switch(r.kind){case 180:case 256:return e.isTypeElement(n)?r.members:void 0;case 185:case 186:return r.types;case 182:case 202:case 346:case 267:case 271:return r.elements;case 203:case 284:return r.properties;case 206:case 207:return e.isTypeNode(n)?r.typeArguments:r.expression===n?void 0:r.arguments;case 276:case 280:return e.isJsxChild(n)?r.children:void 0;case 278:case 277:return e.isTypeNode(n)?r.typeArguments:void 0;case 233:case 287:case 288:case 260:case 300:return r.statements;case 261:return r.clauses;case 255:case 224:return e.isClassElement(n)?r.members:void 0;case 258:return e.isEnumMember(n)?r.members:void 0}}},e.hasContextSensitiveParameters=function(n){if(!n.typeParameters){if(e.some(n.parameters,(function(e){return!ft(e)})))return!0;if(212!==n.kind){var t=e.firstOrUndefined(n.parameters);if(!t||!ut(t))return!0}}return!1},e.isInfinityOrNaNString=function(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}}(u||(u={})),function(e){e.createBaseNodeFactory=function(){var n,t,r,i,a;return{createBaseSourceFileNode:function(n){return new(a||(a=e.objectAllocator.getSourceFileConstructor()))(n,-1,-1)},createBaseIdentifierNode:function(n){return new(r||(r=e.objectAllocator.getIdentifierConstructor()))(n,-1,-1)},createBasePrivateIdentifierNode:function(n){return new(i||(i=e.objectAllocator.getPrivateIdentifierConstructor()))(n,-1,-1)},createBaseTokenNode:function(n){return new(t||(t=e.objectAllocator.getTokenConstructor()))(n,-1,-1)},createBaseNode:function(t){return new(n||(n=e.objectAllocator.getNodeConstructor()))(t,-1,-1)}}}}(u||(u={})),function(e){e.createParenthesizerRules=function(n){var t,r;return{getParenthesizeLeftSideOfBinaryForOperator:function(n){t||(t=new e.Map);var r=t.get(n);return r||(r=function(e){return o(n,e)},t.set(n,r)),r},getParenthesizeRightSideOfBinaryForOperator:function(n){r||(r=new e.Map);var t=r.get(n);return t||(t=function(e){return s(n,void 0,e)},r.set(n,t)),t},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:s,parenthesizeExpressionOfComputedPropertyName:function(t){return e.isCommaSequence(t)?n.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){var r=e.getOperatorPrecedence(220,57),i=e.skipPartiallyEmittedExpressions(t),a=e.getExpressionPrecedence(i);return 1!==e.compareValues(a,r)?n.createParenthesizedExpression(t):t},parenthesizeBranchOfConditionalExpression:function(t){var r=e.skipPartiallyEmittedExpressions(t);return e.isCommaSequence(r)?n.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){var r=e.skipPartiallyEmittedExpressions(t),i=e.isCommaSequence(r);if(!i)switch(e.getLeftmostExpression(r,!1).kind){case 224:case 211:i=!0}return i?n.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){var r=e.getLeftmostExpression(t,!0);switch(r.kind){case 206:return n.createParenthesizedExpression(t);case 207:return r.arguments?t:n.createParenthesizedExpression(t)}return c(t)},parenthesizeLeftSideOfAccess:c,parenthesizeOperandOfPostfixUnary:function(t){return e.isLeftHandSideExpression(t)?t:e.setTextRange(n.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return e.isUnaryExpression(t)?t:e.setTextRange(n.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){var r=e.sameMap(t,l);return e.setTextRange(n.createNodeArray(r,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:l,parenthesizeExpressionOfExpressionStatement:function(t){var r=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(r)){var i=r.expression,a=e.skipPartiallyEmittedExpressions(i).kind;if(211===a||212===a){var o=n.updateCallExpression(r,e.setTextRange(n.createParenthesizedExpression(i),i),r.typeArguments,r.arguments);return n.restoreOuterExpressions(t,o,8)}}var s=e.getLeftmostExpression(r,!1).kind;return 203===s||211===s?e.setTextRange(n.createParenthesizedExpression(t),t):t},parenthesizeConciseBodyOfArrowFunction:function(t){return e.isBlock(t)||!e.isCommaSequence(t)&&203!==e.getLeftmostExpression(t,!1).kind?t:e.setTextRange(n.createParenthesizedExpression(t),t)},parenthesizeMemberOfConditionalType:u,parenthesizeMemberOfElementType:d,parenthesizeElementTypeOfArrayType:function(e){switch(e.kind){case 179:case 191:case 188:return n.createParenthesizedType(e)}return d(e)},parenthesizeConstituentTypesOfUnionOrIntersectionType:function(t){return n.createNodeArray(e.sameMap(t,d))},parenthesizeTypeArguments:function(t){if(e.some(t))return n.createNodeArray(e.sameMap(t,p))}};function i(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isLiteralKind(n.kind))return n.kind;if(219===n.kind&&39===n.operatorToken.kind){if(void 0!==n.cachedLiteralKind)return n.cachedLiteralKind;var t=i(n.left),r=e.isLiteralKind(t)&&t===i(n.right)?t:0;return n.cachedLiteralKind=r,r}return 0}function a(t,r,a,o){return 210===e.skipPartiallyEmittedExpressions(r).kind?r:function(n,t,r,a){var o=e.getOperatorPrecedence(219,n),s=e.getOperatorAssociativity(219,n),c=e.skipPartiallyEmittedExpressions(t);if(!r&&212===t.kind&&o>3)return!0;var l=e.getExpressionPrecedence(c);switch(e.compareValues(l,o)){case-1:return!(!r&&1===s&&222===t.kind);case 1:return!1;case 0:if(r)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===n){if(function(e){return 41===e||51===e||50===e||52===e}(n))return!1;if(39===n){var u=a?i(a):0;if(e.isLiteralKind(u)&&u===i(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(t,r,a,o)?n.createParenthesizedExpression(r):r}function o(e,n){return a(e,n,!0)}function s(e,n,t){return a(e,t,!1,n)}function c(t){var r=e.skipPartiallyEmittedExpressions(t);return e.isLeftHandSideExpression(r)&&(207!==r.kind||r.arguments)?t:e.setTextRange(n.createParenthesizedExpression(t),t)}function l(t){var r=e.skipPartiallyEmittedExpressions(t);return e.getExpressionPrecedence(r)>e.getOperatorPrecedence(219,27)?t:e.setTextRange(n.createParenthesizedExpression(t),t)}function u(e){return 187===e.kind?n.createParenthesizedType(e):e}function d(e){switch(e.kind){case 185:case 186:case 177:case 178:return n.createParenthesizedType(e)}return u(e)}function p(t,r){return 0===r&&e.isFunctionOrConstructorTypeNode(t)&&t.typeParameters?n.createParenthesizedType(t):t}},e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(n){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(n){return e.identity},parenthesizeLeftSideOfBinary:function(e,n){return n},parenthesizeRightSideOfBinary:function(e,n,t){return t},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(n){return e.cast(n,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(n){return e.cast(n,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(n){return e.cast(n,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(n){return e.cast(n,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(n){return e.cast(n,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(n){return e.cast(n,e.isNodeArray)},parenthesizeTypeArguments:function(n){return n&&e.cast(n,e.isNodeArray)}}}(u||(u={})),function(e){e.createNodeConverters=function(n){return{convertToFunctionBlock:function(t,r){if(e.isBlock(t))return t;var i=n.createReturnStatement(t);e.setTextRange(i,t);var a=n.createBlock([i],r);return e.setTextRange(a,t),a},convertToFunctionExpression:function(t){if(!t.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var r=n.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(r,t),e.setTextRange(r,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(r,!0),r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:r,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function t(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(n.createSpreadElement(t.name),t),t);var r=s(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(n.createAssignment(r,t.initializer),t),t):r}return e.cast(t,e.isExpression)}function r(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(n.createSpreadAssignment(t.name),t),t);if(t.propertyName){var r=s(t.name);return e.setOriginalNode(e.setTextRange(n.createPropertyAssignment(t.propertyName,t.initializer?n.createAssignment(r,t.initializer):r),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(n.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.cast(t,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 200:case 202:return o(e);case 199:case 203:return a(e)}}function a(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(n.createObjectLiteralExpression(e.map(t.elements,r)),t),t):e.cast(t,e.isObjectLiteralExpression)}function o(r){return e.isArrayBindingPattern(r)?e.setOriginalNode(e.setTextRange(n.createArrayLiteralExpression(e.map(r.elements,t)),r),r):e.cast(r,e.isArrayLiteralExpression)}function s(n){return e.isBindingPattern(n)?i(n):e.cast(n,e.isExpression)}},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}}(u||(u={})),function(e){var n,t,r=0;function a(t,a){var m=8&t?o:s,_=e.memoize((function(){return 1&t?e.nullParenthesizerRules:e.createParenthesizerRules(C)})),g=e.memoize((function(){return 2&t?e.nullNodeConverters:e.createNodeConverters(C)})),y=e.memoizeOne((function(e){return function(n,t){return Mn(n,e,t)}})),h=e.memoizeOne((function(e){return function(n){return Pn(e,n)}})),b=e.memoizeOne((function(e){return function(n){return wn(n,e)}})),E=e.memoizeOne((function(e){return function(){return function(e){return N(e)}(e)}})),T=e.memoizeOne((function(e){return function(n){return er(e,n)}})),S=e.memoizeOne((function(e){return function(n,t){return function(e,n,t){return n.type!==t?m(er(e,t),n):n}(e,n,t)}})),x=e.memoizeOne((function(e){return function(n,t){return br(e,n,t)}})),L=e.memoizeOne((function(e){return function(n,t,r){return function(e,n,t,r){return void 0===t&&(t=ar(n)),n.tagName!==t||n.comment!==r?m(br(e,t,r),n):n}(e,n,t,r)}})),D=e.memoizeOne((function(e){return function(n,t,r){return Er(e,n,t,r)}})),A=e.memoizeOne((function(e){return function(n,t,r,i){return function(e,n,t,r,i){return void 0===t&&(t=ar(n)),n.tagName!==t||n.typeExpression!==r||n.comment!==i?m(Er(e,t,r,i),n):n}(e,n,t,r,i)}})),C={get parenthesizer(){return _()},get converters(){return g()},createNodeArray:I,createNumericLiteral:K,createBigIntLiteral:H,createStringLiteral:z,createStringLiteralFromNode:function(n){var t=W(e.getTextOfIdentifierOrLiteral(n),void 0);return t.textSourceNode=n,t},createRegularExpressionLiteral:J,createLiteralLikeNode:function(e,n){switch(e){case 8:return K(n,0);case 9:return H(n);case 10:return z(n,void 0);case 11:return Nr(n,!1);case 12:return Nr(n,!0);case 13:return J(n);case 14:return Vn(e,n,void 0,0)}},createIdentifier:Y,updateIdentifier:function(n,t){return n.typeArguments!==t?m(Y(e.idText(n),t),n):n},createTempVariable:Q,createLoopVariable:function(e){var n=2;return e&&(n|=8),X("",n)},createUniqueName:function(n,t){return void 0===t&&(t=0),e.Debug.assert(!(7&t),"Argument out of range: flags"),e.Debug.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),X(n,3|t)},getGeneratedNameForNode:Z,createPrivateIdentifier:function(n){e.startsWith(n,"#")||e.Debug.fail("First character of private identifier must be #: "+n);var t=a.createBasePrivateIdentifierNode(80);return t.escapedText=e.escapeLeadingUnderscores(n),t.transformFlags|=8388608,t},createToken:ee,createSuper:function(){return ee(106)},createThis:ne,createNull:function(){return ee(104)},createTrue:te,createFalse:re,createModifier:ie,createModifiersFromModifierFlags:ae,createQualifiedName:oe,updateQualifiedName:function(e,n,t){return e.left!==n||e.right!==t?m(oe(n,t),e):e},createComputedPropertyName:se,updateComputedPropertyName:function(e,n){return e.expression!==n?m(se(n),e):e},createTypeParameterDeclaration:ce,updateTypeParameterDeclaration:function(e,n,t,r){return e.name!==n||e.constraint!==t||e.default!==r?m(ce(n,t,r),e):e},createParameterDeclaration:le,updateParameterDeclaration:ue,createDecorator:de,updateDecorator:function(e,n){return e.expression!==n?m(de(n),e):e},createPropertySignature:pe,updatePropertySignature:fe,createPropertyDeclaration:me,updatePropertyDeclaration:_e,createMethodSignature:ge,updateMethodSignature:ye,createMethodDeclaration:he,updateMethodDeclaration:ve,createConstructorDeclaration:Ee,updateConstructorDeclaration:Te,createGetAccessorDeclaration:Se,updateGetAccessorDeclaration:xe,createSetAccessorDeclaration:Le,updateSetAccessorDeclaration:De,createCallSignature:Ae,updateCallSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?w(Ae(n,t,r),e):e},createConstructSignature:Ce,updateConstructSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?w(Ce(n,t,r),e):e},createIndexSignature:Ie,updateIndexSignature:Ne,createClassStaticBlockDeclaration:be,updateClassStaticBlockDeclaration:function(e,n,t,r){return e.decorators!==n||e.modifier!==t||e.body!==r?m(be(n,t,r),e):e},createTemplateLiteralTypeSpan:ke,updateTemplateLiteralTypeSpan:function(e,n,t){return e.type!==n||e.literal!==t?m(ke(n,t),e):e},createKeywordTypeNode:function(e){return ee(e)},createTypePredicateNode:Re,updateTypePredicateNode:function(e,n,t,r){return e.assertsModifier!==n||e.parameterName!==t||e.type!==r?m(Re(n,t,r),e):e},createTypeReferenceNode:Oe,updateTypeReferenceNode:function(e,n,t){return e.typeName!==n||e.typeArguments!==t?m(Oe(n,t),e):e},createFunctionTypeNode:Pe,updateFunctionTypeNode:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?w(Pe(n,t,r),e):e},createConstructorTypeNode:we,updateConstructorTypeNode:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 5===n.length?Ge.apply(void 0,n):4===n.length?Be.apply(void 0,n):e.Debug.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Ue,updateTypeQueryNode:function(e,n){return e.exprName!==n?m(Ue(n),e):e},createTypeLiteralNode:Ve,updateTypeLiteralNode:function(e,n){return e.members!==n?m(Ve(n),e):e},createArrayTypeNode:je,updateArrayTypeNode:function(e,n){return e.elementType!==n?m(je(n),e):e},createTupleTypeNode:Ke,updateTupleTypeNode:function(e,n){return e.elements!==n?m(Ke(n),e):e},createNamedTupleMember:He,updateNamedTupleMember:function(e,n,t,r,i){return e.dotDotDotToken!==n||e.name!==t||e.questionToken!==r||e.type!==i?m(He(n,t,r,i),e):e},createOptionalTypeNode:We,updateOptionalTypeNode:function(e,n){return e.type!==n?m(We(n),e):e},createRestTypeNode:ze,updateRestTypeNode:function(e,n){return e.type!==n?m(ze(n),e):e},createUnionTypeNode:function(e){return Je(185,e)},updateUnionTypeNode:function(e,n){return qe(e,n)},createIntersectionTypeNode:function(e){return Je(186,e)},updateIntersectionTypeNode:function(e,n){return qe(e,n)},createConditionalTypeNode:Xe,updateConditionalTypeNode:function(e,n,t,r,i){return e.checkType!==n||e.extendsType!==t||e.trueType!==r||e.falseType!==i?m(Xe(n,t,r,i),e):e},createInferTypeNode:Ye,updateInferTypeNode:function(e,n){return e.typeParameter!==n?m(Ye(n),e):e},createImportTypeNode:Ze,updateImportTypeNode:function(e,n,t,r,i){return void 0===i&&(i=e.isTypeOf),e.argument!==n||e.qualifier!==t||e.typeArguments!==r||e.isTypeOf!==i?m(Ze(n,t,r,i),e):e},createParenthesizedType:$e,updateParenthesizedType:function(e,n){return e.type!==n?m($e(n),e):e},createThisTypeNode:function(){var e=N(190);return e.transformFlags=1,e},createTypeOperatorNode:en,updateTypeOperatorNode:function(e,n){return e.type!==n?m(en(e.operator,n),e):e},createIndexedAccessTypeNode:nn,updateIndexedAccessTypeNode:function(e,n,t){return e.objectType!==n||e.indexType!==t?m(nn(n,t),e):e},createMappedTypeNode:tn,updateMappedTypeNode:function(e,n,t,r,i,a){return e.readonlyToken!==n||e.typeParameter!==t||e.nameType!==r||e.questionToken!==i||e.type!==a?m(tn(n,t,r,i,a),e):e},createLiteralTypeNode:rn,updateLiteralTypeNode:function(e,n){return e.literal!==n?m(rn(n),e):e},createTemplateLiteralType:Qe,updateTemplateLiteralType:function(e,n,t){return e.head!==n||e.templateSpans!==t?m(Qe(n,t),e):e},createObjectBindingPattern:an,updateObjectBindingPattern:function(e,n){return e.elements!==n?m(an(n),e):e},createArrayBindingPattern:on,updateArrayBindingPattern:function(e,n){return e.elements!==n?m(on(n),e):e},createBindingElement:sn,updateBindingElement:function(e,n,t,r,i){return e.propertyName!==t||e.dotDotDotToken!==n||e.name!==r||e.initializer!==i?m(sn(n,t,r,i),e):e},createArrayLiteralExpression:ln,updateArrayLiteralExpression:function(e,n){return e.elements!==n?m(ln(n,e.multiLine),e):e},createObjectLiteralExpression:un,updateObjectLiteralExpression:function(e,n){return e.properties!==n?m(un(n,e.multiLine),e):e},createPropertyAccessExpression:4&t?function(n,t){return e.setEmitFlags(dn(n,t),131072)}:dn,updatePropertyAccessExpression:function(n,t,r){return e.isPropertyAccessChain(n)?fn(n,t,n.questionDotToken,e.cast(r,e.isIdentifier)):n.expression!==t||n.name!==r?m(dn(t,r),n):n},createPropertyAccessChain:4&t?function(n,t,r){return e.setEmitFlags(pn(n,t,r),131072)}:pn,updatePropertyAccessChain:fn,createElementAccessExpression:mn,updateElementAccessExpression:function(n,t,r){return e.isElementAccessChain(n)?gn(n,t,n.questionDotToken,r):n.expression!==t||n.argumentExpression!==r?m(mn(t,r),n):n},createElementAccessChain:_n,updateElementAccessChain:gn,createCallExpression:yn,updateCallExpression:function(n,t,r,i){return e.isCallChain(n)?vn(n,t,n.questionDotToken,r,i):n.expression!==t||n.typeArguments!==r||n.arguments!==i?m(yn(t,r,i),n):n},createCallChain:hn,updateCallChain:vn,createNewExpression:bn,updateNewExpression:function(e,n,t,r){return e.expression!==n||e.typeArguments!==t||e.arguments!==r?m(bn(n,t,r),e):e},createTaggedTemplateExpression:En,updateTaggedTemplateExpression:function(e,n,t,r){return e.tag!==n||e.typeArguments!==t||e.template!==r?m(En(n,t,r),e):e},createTypeAssertion:Tn,updateTypeAssertion:Sn,createParenthesizedExpression:xn,updateParenthesizedExpression:Ln,createFunctionExpression:Dn,updateFunctionExpression:An,createArrowFunction:Cn,updateArrowFunction:In,createDeleteExpression:Nn,updateDeleteExpression:function(e,n){return e.expression!==n?m(Nn(n),e):e},createTypeOfExpression:kn,updateTypeOfExpression:function(e,n){return e.expression!==n?m(kn(n),e):e},createVoidExpression:Rn,updateVoidExpression:function(e,n){return e.expression!==n?m(Rn(n),e):e},createAwaitExpression:On,updateAwaitExpression:function(e,n){return e.expression!==n?m(On(n),e):e},createPrefixUnaryExpression:Pn,updatePrefixUnaryExpression:function(e,n){return e.operand!==n?m(Pn(e.operator,n),e):e},createPostfixUnaryExpression:wn,updatePostfixUnaryExpression:function(e,n){return e.operand!==n?m(wn(n,e.operator),e):e},createBinaryExpression:Mn,updateBinaryExpression:function(e,n,t,r){return e.left!==n||e.operatorToken!==t||e.right!==r?m(Mn(n,t,r),e):e},createConditionalExpression:Gn,updateConditionalExpression:function(e,n,t,r,i,a){return e.condition!==n||e.questionToken!==t||e.whenTrue!==r||e.colonToken!==i||e.whenFalse!==a?m(Gn(n,t,r,i,a),e):e},createTemplateExpression:Bn,updateTemplateExpression:function(e,n,t){return e.head!==n||e.templateSpans!==t?m(Bn(n,t),e):e},createTemplateHead:function(e,n,t){return Un(15,e,n,t)},createTemplateMiddle:function(e,n,t){return Un(16,e,n,t)},createTemplateTail:function(e,n,t){return Un(17,e,n,t)},createNoSubstitutionTemplateLiteral:function(e,n,t){return Un(14,e,n,t)},createTemplateLiteralLikeNode:Vn,createYieldExpression:jn,updateYieldExpression:function(e,n,t){return e.expression!==t||e.asteriskToken!==n?m(jn(n,t),e):e},createSpreadElement:Kn,updateSpreadElement:function(e,n){return e.expression!==n?m(Kn(n),e):e},createClassExpression:Hn,updateClassExpression:Wn,createOmittedExpression:function(){return cn(225)},createExpressionWithTypeArguments:zn,updateExpressionWithTypeArguments:function(e,n,t){return e.expression!==n||e.typeArguments!==t?m(zn(n,t),e):e},createAsExpression:Jn,updateAsExpression:qn,createNonNullExpression:Xn,updateNonNullExpression:Yn,createNonNullChain:Qn,updateNonNullChain:Zn,createMetaProperty:$n,updateMetaProperty:function(e,n){return e.name!==n?m($n(e.keywordToken,n),e):e},createTemplateSpan:et,updateTemplateSpan:function(e,n,t){return e.expression!==n||e.literal!==t?m(et(n,t),e):e},createSemicolonClassElement:function(){var e=N(232);return e.transformFlags|=512,e},createBlock:nt,updateBlock:function(e,n){return e.statements!==n?m(nt(n,e.multiLine),e):e},createVariableStatement:tt,updateVariableStatement:rt,createEmptyStatement:it,createExpressionStatement:at,updateExpressionStatement:function(e,n){return e.expression!==n?m(at(n),e):e},createIfStatement:ot,updateIfStatement:function(e,n,t,r){return e.expression!==n||e.thenStatement!==t||e.elseStatement!==r?m(ot(n,t,r),e):e},createDoStatement:st,updateDoStatement:function(e,n,t){return e.statement!==n||e.expression!==t?m(st(n,t),e):e},createWhileStatement:ct,updateWhileStatement:function(e,n,t){return e.expression!==n||e.statement!==t?m(ct(n,t),e):e},createForStatement:lt,updateForStatement:function(e,n,t,r,i){return e.initializer!==n||e.condition!==t||e.incrementor!==r||e.statement!==i?m(lt(n,t,r,i),e):e},createForInStatement:ut,updateForInStatement:function(e,n,t,r){return e.initializer!==n||e.expression!==t||e.statement!==r?m(ut(n,t,r),e):e},createForOfStatement:dt,updateForOfStatement:function(e,n,t,r,i){return e.awaitModifier!==n||e.initializer!==t||e.expression!==r||e.statement!==i?m(dt(n,t,r,i),e):e},createContinueStatement:pt,updateContinueStatement:function(e,n){return e.label!==n?m(pt(n),e):e},createBreakStatement:ft,updateBreakStatement:function(e,n){return e.label!==n?m(ft(n),e):e},createReturnStatement:mt,updateReturnStatement:function(e,n){return e.expression!==n?m(mt(n),e):e},createWithStatement:_t,updateWithStatement:function(e,n,t){return e.expression!==n||e.statement!==t?m(_t(n,t),e):e},createSwitchStatement:gt,updateSwitchStatement:function(e,n,t){return e.expression!==n||e.caseBlock!==t?m(gt(n,t),e):e},createLabeledStatement:yt,updateLabeledStatement:ht,createThrowStatement:vt,updateThrowStatement:function(e,n){return e.expression!==n?m(vt(n),e):e},createTryStatement:bt,updateTryStatement:function(e,n,t,r){return e.tryBlock!==n||e.catchClause!==t||e.finallyBlock!==r?m(bt(n,t,r),e):e},createDebuggerStatement:function(){return N(251)},createVariableDeclaration:Et,updateVariableDeclaration:function(e,n,t,r,i){return e.name!==n||e.type!==r||e.exclamationToken!==t||e.initializer!==i?m(Et(n,t,r,i),e):e},createVariableDeclarationList:Tt,updateVariableDeclarationList:function(e,n){return e.declarations!==n?m(Tt(n,e.flags),e):e},createFunctionDeclaration:St,updateFunctionDeclaration:xt,createClassDeclaration:Lt,updateClassDeclaration:Dt,createInterfaceDeclaration:At,updateInterfaceDeclaration:Ct,createTypeAliasDeclaration:It,updateTypeAliasDeclaration:Nt,createEnumDeclaration:kt,updateEnumDeclaration:Rt,createModuleDeclaration:Ot,updateModuleDeclaration:Pt,createModuleBlock:wt,updateModuleBlock:function(e,n){return e.statements!==n?m(wt(n),e):e},createCaseBlock:Mt,updateCaseBlock:function(e,n){return e.clauses!==n?m(Mt(n),e):e},createNamespaceExportDeclaration:Ft,updateNamespaceExportDeclaration:function(e,n){return e.name!==n?m(Ft(n),e):e},createImportEqualsDeclaration:Gt,updateImportEqualsDeclaration:Bt,createImportDeclaration:Ut,updateImportDeclaration:Vt,createImportClause:jt,updateImportClause:function(e,n,t,r){return e.isTypeOnly!==n||e.name!==t||e.namedBindings!==r?m(jt(n,t,r),e):e},createNamespaceImport:Kt,updateNamespaceImport:function(e,n){return e.name!==n?m(Kt(n),e):e},createNamespaceExport:Ht,updateNamespaceExport:function(e,n){return e.name!==n?m(Ht(n),e):e},createNamedImports:Wt,updateNamedImports:function(e,n){return e.elements!==n?m(Wt(n),e):e},createImportSpecifier:zt,updateImportSpecifier:function(e,n,t){return e.propertyName!==n||e.name!==t?m(zt(n,t),e):e},createExportAssignment:Jt,updateExportAssignment:qt,createExportDeclaration:Xt,updateExportDeclaration:Yt,createNamedExports:Qt,updateNamedExports:function(e,n){return e.elements!==n?m(Qt(n),e):e},createExportSpecifier:Zt,updateExportSpecifier:function(e,n,t){return e.propertyName!==n||e.name!==t?m(Zt(n,t),e):e},createMissingDeclaration:function(){return k(274,void 0,void 0)},createExternalModuleReference:$t,updateExternalModuleReference:function(e,n){return e.expression!==n?m($t(n),e):e},get createJSDocAllType(){return E(307)},get createJSDocUnknownType(){return E(308)},get createJSDocNonNullableType(){return T(310)},get updateJSDocNonNullableType(){return S(310)},get createJSDocNullableType(){return T(309)},get updateJSDocNullableType(){return S(309)},get createJSDocOptionalType(){return T(311)},get updateJSDocOptionalType(){return S(311)},get createJSDocVariadicType(){return T(313)},get updateJSDocVariadicType(){return S(313)},get createJSDocNamepathType(){return T(314)},get updateJSDocNamepathType(){return S(314)},createJSDocFunctionType:nr,updateJSDocFunctionType:function(e,n,t){return e.parameters!==n||e.type!==t?m(nr(n,t),e):e},createJSDocTypeLiteral:tr,updateJSDocTypeLiteral:function(e,n,t){return e.jsDocPropertyTags!==n||e.isArrayType!==t?m(tr(n,t),e):e},createJSDocTypeExpression:rr,updateJSDocTypeExpression:function(e,n){return e.type!==n?m(rr(n),e):e},createJSDocSignature:ir,updateJSDocSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?m(ir(n,t,r),e):e},createJSDocTemplateTag:sr,updateJSDocTemplateTag:function(e,n,t,r,i){return void 0===n&&(n=ar(e)),e.tagName!==n||e.constraint!==t||e.typeParameters!==r||e.comment!==i?m(sr(n,t,r,i),e):e},createJSDocTypedefTag:cr,updateJSDocTypedefTag:function(e,n,t,r,i){return void 0===n&&(n=ar(e)),e.tagName!==n||e.typeExpression!==t||e.fullName!==r||e.comment!==i?m(cr(n,t,r,i),e):e},createJSDocParameterTag:lr,updateJSDocParameterTag:function(e,n,t,r,i,a,o){return void 0===n&&(n=ar(e)),e.tagName!==n||e.name!==t||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?m(lr(n,t,r,i,a,o),e):e},createJSDocPropertyTag:ur,updateJSDocPropertyTag:function(e,n,t,r,i,a,o){return void 0===n&&(n=ar(e)),e.tagName!==n||e.name!==t||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?m(ur(n,t,r,i,a,o),e):e},createJSDocCallbackTag:dr,updateJSDocCallbackTag:function(e,n,t,r,i){return void 0===n&&(n=ar(e)),e.tagName!==n||e.typeExpression!==t||e.fullName!==r||e.comment!==i?m(dr(n,t,r,i),e):e},createJSDocAugmentsTag:pr,updateJSDocAugmentsTag:function(e,n,t,r){return void 0===n&&(n=ar(e)),e.tagName!==n||e.class!==t||e.comment!==r?m(pr(n,t,r),e):e},createJSDocImplementsTag:fr,updateJSDocImplementsTag:function(e,n,t,r){return void 0===n&&(n=ar(e)),e.tagName!==n||e.class!==t||e.comment!==r?m(fr(n,t,r),e):e},createJSDocSeeTag:mr,updateJSDocSeeTag:function(e,n,t,r){return e.tagName!==n||e.name!==t||e.comment!==r?m(mr(n,t,r),e):e},createJSDocNameReference:_r,updateJSDocNameReference:function(e,n){return e.name!==n?m(_r(n),e):e},createJSDocMemberName:gr,updateJSDocMemberName:function(e,n,t){return e.left!==n||e.right!==t?m(gr(n,t),e):e},createJSDocLink:yr,updateJSDocLink:function(e,n,t){return e.name!==n?m(yr(n,t),e):e},createJSDocLinkCode:hr,updateJSDocLinkCode:function(e,n,t){return e.name!==n?m(hr(n,t),e):e},createJSDocLinkPlain:vr,updateJSDocLinkPlain:function(e,n,t){return e.name!==n?m(vr(n,t),e):e},get createJSDocTypeTag(){return D(338)},get updateJSDocTypeTag(){return A(338)},get createJSDocReturnTag(){return D(336)},get updateJSDocReturnTag(){return A(336)},get createJSDocThisTag(){return D(337)},get updateJSDocThisTag(){return A(337)},get createJSDocEnumTag(){return D(334)},get updateJSDocEnumTag(){return A(334)},get createJSDocAuthorTag(){return x(325)},get updateJSDocAuthorTag(){return L(325)},get createJSDocClassTag(){return x(327)},get updateJSDocClassTag(){return L(327)},get createJSDocPublicTag(){return x(328)},get updateJSDocPublicTag(){return L(328)},get createJSDocPrivateTag(){return x(329)},get updateJSDocPrivateTag(){return L(329)},get createJSDocProtectedTag(){return x(330)},get updateJSDocProtectedTag(){return L(330)},get createJSDocReadonlyTag(){return x(331)},get updateJSDocReadonlyTag(){return L(331)},get createJSDocOverrideTag(){return x(332)},get updateJSDocOverrideTag(){return L(332)},get createJSDocDeprecatedTag(){return x(326)},get updateJSDocDeprecatedTag(){return L(326)},createJSDocUnknownTag:Tr,updateJSDocUnknownTag:function(e,n,t){return e.tagName!==n||e.comment!==t?m(Tr(n,t),e):e},createJSDocText:Sr,updateJSDocText:function(e,n){return e.text!==n?m(Sr(n),e):e},createJSDocComment:xr,updateJSDocComment:function(e,n,t){return e.comment!==n||e.tags!==t?m(xr(n,t),e):e},createJsxElement:Lr,updateJsxElement:function(e,n,t,r){return e.openingElement!==n||e.children!==t||e.closingElement!==r?m(Lr(n,t,r),e):e},createJsxSelfClosingElement:Dr,updateJsxSelfClosingElement:function(e,n,t,r){return e.tagName!==n||e.typeArguments!==t||e.attributes!==r?m(Dr(n,t,r),e):e},createJsxOpeningElement:Ar,updateJsxOpeningElement:function(e,n,t,r){return e.tagName!==n||e.typeArguments!==t||e.attributes!==r?m(Ar(n,t,r),e):e},createJsxClosingElement:Cr,updateJsxClosingElement:function(e,n){return e.tagName!==n?m(Cr(n),e):e},createJsxFragment:Ir,createJsxText:Nr,updateJsxText:function(e,n,t){return e.text!==n||e.containsOnlyTriviaWhiteSpaces!==t?m(Nr(n,t),e):e},createJsxOpeningFragment:function(){var e=N(281);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){var e=N(282);return e.transformFlags|=2,e},updateJsxFragment:function(e,n,t,r){return e.openingFragment!==n||e.children!==t||e.closingFragment!==r?m(Ir(n,t,r),e):e},createJsxAttribute:kr,updateJsxAttribute:function(e,n,t){return e.name!==n||e.initializer!==t?m(kr(n,t),e):e},createJsxAttributes:Rr,updateJsxAttributes:function(e,n){return e.properties!==n?m(Rr(n),e):e},createJsxSpreadAttribute:Or,updateJsxSpreadAttribute:function(e,n){return e.expression!==n?m(Or(n),e):e},createJsxExpression:Pr,updateJsxExpression:function(e,n){return e.expression!==n?m(Pr(e.dotDotDotToken,n),e):e},createCaseClause:wr,updateCaseClause:function(e,n,t){return e.expression!==n||e.statements!==t?m(wr(n,t),e):e},createDefaultClause:Mr,updateDefaultClause:function(e,n){return e.statements!==n?m(Mr(n),e):e},createHeritageClause:Fr,updateHeritageClause:function(e,n){return e.types!==n?m(Fr(e.token,n),e):e},createCatchClause:Gr,updateCatchClause:function(e,n,t){return e.variableDeclaration!==n||e.block!==t?m(Gr(n,t),e):e},createPropertyAssignment:Br,updatePropertyAssignment:function(e,n,t){return e.name!==n||e.initializer!==t?(r=Br(n,t),(i=e).decorators&&(r.decorators=i.decorators),i.modifiers&&(r.modifiers=i.modifiers),i.questionToken&&(r.questionToken=i.questionToken),i.exclamationToken&&(r.exclamationToken=i.exclamationToken),m(r,i)):e;var r,i},createShorthandPropertyAssignment:Ur,updateShorthandPropertyAssignment:function(e,n,t){return e.name!==n||e.objectAssignmentInitializer!==t?(r=Ur(n,t),(i=e).decorators&&(r.decorators=i.decorators),i.modifiers&&(r.modifiers=i.modifiers),i.equalsToken&&(r.equalsToken=i.equalsToken),i.questionToken&&(r.questionToken=i.questionToken),i.exclamationToken&&(r.exclamationToken=i.exclamationToken),m(r,i)):e;var r,i},createSpreadAssignment:Vr,updateSpreadAssignment:function(e,n){return e.expression!==n?m(Vr(n),e):e},createEnumMember:jr,updateEnumMember:function(e,n,t){return e.name!==n||e.initializer!==t?m(jr(n,t),e):e},createSourceFile:function(e,n,t){var r=a.createBaseSourceFileNode(300);return r.statements=I(e),r.endOfFileToken=n,r.flags|=t,r.fileName="",r.text="",r.languageVersion=0,r.languageVariant=0,r.scriptKind=0,r.isDeclarationFile=!1,r.hasNoDefaultLib=!1,r.transformFlags|=p(r.statements)|d(r.endOfFileToken),r},updateSourceFile:function(n,t,r,i,o,s,c){return void 0===r&&(r=n.isDeclarationFile),void 0===i&&(i=n.referencedFiles),void 0===o&&(o=n.typeReferenceDirectives),void 0===s&&(s=n.hasNoDefaultLib),void 0===c&&(c=n.libReferenceDirectives),n.statements!==t||n.isDeclarationFile!==r||n.referencedFiles!==i||n.typeReferenceDirectives!==o||n.hasNoDefaultLib!==s||n.libReferenceDirectives!==c?m(function(n,t,r,i,o,s,c){var l=a.createBaseSourceFileNode(300);for(var u in n)"emitNode"!==u&&!e.hasProperty(l,u)&&e.hasProperty(n,u)&&(l[u]=n[u]);return l.flags|=n.flags,l.statements=I(t),l.endOfFileToken=n.endOfFileToken,l.isDeclarationFile=r,l.referencedFiles=i,l.typeReferenceDirectives=o,l.hasNoDefaultLib=s,l.libReferenceDirectives=c,l.transformFlags=p(l.statements)|d(l.endOfFileToken),l}(n,t,r,i,o,s,c),n):n},createBundle:Kr,updateBundle:function(n,t,r){return void 0===r&&(r=e.emptyArray),n.sourceFiles!==t||n.prepends!==r?m(Kr(t,r),n):n},createUnparsedSource:function(n,t,r){var i=N(302);return i.prologues=n,i.syntheticReferences=t,i.texts=r,i.fileName="",i.text="",i.referencedFiles=e.emptyArray,i.libReferenceDirectives=e.emptyArray,i.getLineAndCharacterOfPosition=function(n){return e.getLineAndCharacterOfPosition(i,n)},i},createUnparsedPrologue:function(e){return Hr(295,e)},createUnparsedPrepend:function(e,n){var t=Hr(296,e);return t.texts=n,t},createUnparsedTextLike:function(e,n){return Hr(n?298:297,e)},createUnparsedSyntheticReference:function(e){var n=N(299);return n.data=e.data,n.section=e,n},createInputFiles:function(){var e=N(303);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,n,t){void 0===n&&(n=!1);var r=N(230);return r.type=e,r.isSpread=n,r.tupleNameSource=t,r},createSyntaxList:function(e){var n=N(343);return n._children=e,n},createNotEmittedStatement:function(n){var t=N(344);return t.original=n,e.setTextRange(t,n),t},createPartiallyEmittedExpression:Wr,updatePartiallyEmittedExpression:zr,createCommaListExpression:qr,updateCommaListExpression:function(e,n){return e.elements!==n?m(qr(n),e):e},createEndOfDeclarationMarker:function(e){var n=N(348);return n.emitNode={},n.original=e,n},createMergeDeclarationMarker:function(e){var n=N(347);return n.emitNode={},n.original=e,n},createSyntheticReferenceExpression:Xr,updateSyntheticReferenceExpression:function(e,n,t){return e.expression!==n||e.thisArg!==t?m(Xr(n,t),e):e},cloneNode:Yr,get createComma(){return y(27)},get createAssignment(){return y(63)},get createLogicalOr(){return y(56)},get createLogicalAnd(){return y(55)},get createBitwiseOr(){return y(51)},get createBitwiseXor(){return y(52)},get createBitwiseAnd(){return y(50)},get createStrictEquality(){return y(36)},get createStrictInequality(){return y(37)},get createEquality(){return y(34)},get createInequality(){return y(35)},get createLessThan(){return y(29)},get createLessThanEquals(){return y(32)},get createGreaterThan(){return y(31)},get createGreaterThanEquals(){return y(33)},get createLeftShift(){return y(47)},get createRightShift(){return y(48)},get createUnsignedRightShift(){return y(49)},get createAdd(){return y(39)},get createSubtract(){return y(40)},get createMultiply(){return y(41)},get createDivide(){return y(43)},get createModulo(){return y(44)},get createExponent(){return y(42)},get createPrefixPlus(){return h(39)},get createPrefixMinus(){return h(40)},get createPrefixIncrement(){return h(45)},get createPrefixDecrement(){return h(46)},get createBitwiseNot(){return h(54)},get createLogicalNot(){return h(53)},get createPostfixIncrement(){return b(45)},get createPostfixDecrement(){return b(46)},createImmediatelyInvokedFunctionExpression:function(e,n,t){return yn(Dn(void 0,void 0,void 0,void 0,n?[n]:[],void 0,nt(e,!0)),void 0,t?[t]:[])},createImmediatelyInvokedArrowFunction:function(e,n,t){return yn(Cn(void 0,void 0,n?[n]:[],void 0,void 0,nt(e,!0)),void 0,t?[t]:[])},createVoidZero:Qr,createExportDefault:function(e){return Jt(void 0,void 0,!1,e)},createExternalModuleExport:function(e){return Xt(void 0,void 0,!1,Qt([Zt(void 0,e)]))},createTypeCheck:function(e,n){return"undefined"===n?C.createStrictEquality(e,Qr()):C.createStrictEquality(kn(e),z(n))},createMethodCall:Zr,createGlobalMethodCall:$r,createFunctionBindCall:function(e,n,t){return Zr(e,"bind",i([n],t,!0))},createFunctionCallCall:function(e,n,t){return Zr(e,"call",i([n],t,!0))},createFunctionApplyCall:function(e,n,t){return Zr(e,"apply",[n,t])},createArraySliceCall:function(e,n){return Zr(e,"slice",void 0===n?[]:[di(n)])},createArrayConcatCall:function(e,n){return Zr(e,"concat",n)},createObjectDefinePropertyCall:function(e,n,t){return $r("Object","defineProperty",[e,di(n),t])},createReflectGetCall:function(e,n,t){return $r("Reflect","get",t?[e,n,t]:[e,n])},createReflectSetCall:function(e,n,t,r){return $r("Reflect","set",r?[e,n,t,r]:[e,n,t])},createPropertyDescriptor:function(n,t){var r=[];ei(r,"enumerable",di(n.enumerable)),ei(r,"configurable",di(n.configurable));var i=ei(r,"writable",di(n.writable));i=ei(r,"value",n.value)||i;var a=ei(r,"get",n.get);return a=ei(r,"set",n.set)||a,e.Debug.assert(!(i&&a),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),un(r,!t)},createCallBinding:function(n,t,r,i){void 0===i&&(i=!1);var a,o,s=e.skipOuterExpressions(n,15);return e.isSuperProperty(s)?(a=ne(),o=s):e.isSuperKeyword(s)?(a=ne(),o=void 0!==r&&r<2?e.setTextRange(Y("_super"),s):s):4096&e.getEmitFlags(s)?(a=Qr(),o=_().parenthesizeLeftSideOfAccess(s)):e.isPropertyAccessExpression(s)?ni(s.expression,i)?(a=Q(t),o=dn(e.setTextRange(C.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s):e.isElementAccessExpression(s)?ni(s.expression,i)?(a=Q(t),o=mn(e.setTextRange(C.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s):(a=Qr(),o=_().parenthesizeLeftSideOfAccess(n)),{target:o,thisArg:a}},createAssignmentTargetWrapper:function(e,n){return dn(xn(un([Le(void 0,void 0,"value",[le(void 0,void 0,void 0,e,void 0,void 0,void 0)],nt([at(n)]))])),"value")},inlineExpressions:function(n){return n.length>10?qr(n):e.reduceLeft(n,C.createComma)},getInternalName:function(e,n,t){return ti(e,n,t,49152)},getLocalName:function(e,n,t){return ti(e,n,t,16384)},getExportName:ri,getDeclarationName:function(e,n,t){return ti(e,n,t)},getNamespaceMemberName:ii,getExternalModuleOrNamespaceExportName:function(n,t,r,i){return n&&e.hasSyntacticModifier(t,1)?ii(n,ti(t),r,i):ri(t,r,i)},restoreOuterExpressions:function n(t,r,i){return void 0===i&&(i=15),t&&e.isOuterExpression(t,i)&&(a=t,!(e.isParenthesizedExpression(a)&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a)))?function(e,n){switch(e.kind){case 210:return Ln(e,n);case 209:return Sn(e,e.type,n);case 227:return qn(e,n,e.type);case 228:return Yn(e,n);case 345:return zr(e,n)}}(t,n(t.expression,r)):r;var a},restoreEnclosingLabel:function n(t,r,i){if(!r)return t;var a=ht(r,r.label,e.isLabeledStatement(r.statement)?n(t,r.statement):t);return i&&i(r),a},createUseStrictPrologue:ai,copyPrologue:function(e,n,t,r){return si(e,n,oi(e,n,t),r)},copyStandardPrologue:oi,copyCustomPrologue:si,ensureUseStrict:function(n){return e.findUseStrictPrologue(n)?n:e.setTextRange(I(i([ai()],n,!0)),n)},liftToBlock:function(n){return e.Debug.assert(e.every(n,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(n)||nt(n)},mergeLexicalEnvironment:function(n,t){if(!e.some(t))return n;var r=ci(n,e.isPrologueDirective,0),a=ci(n,e.isHoistedFunction,r),o=ci(n,e.isHoistedVariableStatement,a),s=ci(t,e.isPrologueDirective,0),c=ci(t,e.isHoistedFunction,s),l=ci(t,e.isHoistedVariableStatement,c),u=ci(t,e.isCustomPrologue,l);e.Debug.assert(u===t.length,"Expected declarations to be valid standard or custom prologues");var d=e.isNodeArray(n)?n.slice():n;if(u>l&&d.splice.apply(d,i([o,0],t.slice(l,u),!1)),l>c&&d.splice.apply(d,i([a,0],t.slice(c,l),!1)),c>s&&d.splice.apply(d,i([r,0],t.slice(s,c),!1)),s>0)if(0===r)d.splice.apply(d,i([0,0],t.slice(0,s),!1));else{for(var p=new e.Map,f=0;f<r;f++){var m=n[f];p.set(m.expression.text,!0)}for(f=s-1;f>=0;f--){var _=t[f];p.has(_.expression.text)||d.unshift(_)}}return e.isNodeArray(n)?e.setTextRange(I(d,n.hasTrailingComma),n):n},updateModifiers:function(n,t){var r;return"number"==typeof t&&(t=ae(t)),e.isParameter(n)?ue(n,n.decorators,t,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):e.isPropertySignature(n)?fe(n,t,n.name,n.questionToken,n.type):e.isPropertyDeclaration(n)?_e(n,n.decorators,t,n.name,null!==(r=n.questionToken)&&void 0!==r?r:n.exclamationToken,n.type,n.initializer):e.isMethodSignature(n)?ye(n,t,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):e.isMethodDeclaration(n)?ve(n,n.decorators,t,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):e.isConstructorDeclaration(n)?Te(n,n.decorators,t,n.parameters,n.body):e.isGetAccessorDeclaration(n)?xe(n,n.decorators,t,n.name,n.parameters,n.type,n.body):e.isSetAccessorDeclaration(n)?De(n,n.decorators,t,n.name,n.parameters,n.body):e.isIndexSignatureDeclaration(n)?Ne(n,n.decorators,t,n.parameters,n.type):e.isFunctionExpression(n)?An(n,t,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):e.isArrowFunction(n)?In(n,t,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):e.isClassExpression(n)?Wn(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isVariableStatement(n)?rt(n,t,n.declarationList):e.isFunctionDeclaration(n)?xt(n,n.decorators,t,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):e.isClassDeclaration(n)?Dt(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isInterfaceDeclaration(n)?Ct(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isTypeAliasDeclaration(n)?Nt(n,n.decorators,t,n.name,n.typeParameters,n.type):e.isEnumDeclaration(n)?Rt(n,n.decorators,t,n.name,n.members):e.isModuleDeclaration(n)?Pt(n,n.decorators,t,n.name,n.body):e.isImportEqualsDeclaration(n)?Bt(n,n.decorators,t,n.isTypeOnly,n.name,n.moduleReference):e.isImportDeclaration(n)?Vt(n,n.decorators,t,n.importClause,n.moduleSpecifier):e.isExportAssignment(n)?qt(n,n.decorators,t,n.expression):e.isExportDeclaration(n)?Yt(n,n.decorators,t,n.isTypeOnly,n.exportClause,n.moduleSpecifier):e.Debug.assertNever(n)}};return C;function I(n,t){if(void 0===n||n===e.emptyArray)n=[];else if(e.isNodeArray(n)){if(void 0===t||n.hasTrailingComma===t)return void 0===n.transformFlags&&f(n),e.Debug.attachNodeArrayDebugInfo(n),n;var r=n.slice();return r.pos=n.pos,r.end=n.end,r.hasTrailingComma=t,r.transformFlags=n.transformFlags,e.Debug.attachNodeArrayDebugInfo(r),r}var i=n.length,a=i>=1&&i<=4?n.slice():n;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!t,f(a),e.Debug.attachNodeArrayDebugInfo(a),a}function N(e){return a.createBaseNode(e)}function k(e,n,t){var r=N(e);return r.decorators=li(n),r.modifiers=li(t),r.transformFlags|=p(r.decorators)|p(r.modifiers),r.symbol=void 0,r.localSymbol=void 0,r.locals=void 0,r.nextContainer=void 0,r}function R(n,t,r,i){var a=k(n,t,r);if(i=ui(i),a.name=i,i)switch(a.kind){case 167:case 170:case 171:case 165:case 291:if(e.isIdentifier(i)){a.transformFlags|=u(i);break}default:a.transformFlags|=d(i)}return a}function O(e,n,t,r,i){var a=R(e,n,t,r);return a.typeParameters=li(i),a.transformFlags|=p(a.typeParameters),i&&(a.transformFlags|=1),a}function P(e,n,t,r,i,a,o){var s=O(e,n,t,r,i);return s.parameters=I(a),s.type=o,s.transformFlags|=p(s.parameters)|d(s.type),o&&(s.transformFlags|=1),s}function w(e,n){return n.typeArguments&&(e.typeArguments=n.typeArguments),m(e,n)}function M(e,n,t,r,i,a,o,s){var c=P(e,n,t,r,i,a,o);return c.body=s,c.transformFlags|=-16777217&d(c.body),s||(c.transformFlags|=1),c}function F(e,n){return n.exclamationToken&&(e.exclamationToken=n.exclamationToken),n.typeArguments&&(e.typeArguments=n.typeArguments),w(e,n)}function G(e,n,t,r,i,a){var o=O(e,n,t,r,i);return o.heritageClauses=li(a),o.transformFlags|=p(o.heritageClauses),o}function B(e,n,t,r,i,a,o){var s=G(e,n,t,r,i,a);return s.members=I(o),s.transformFlags|=p(s.members),s}function U(e,n,t,r,i){var a=R(e,n,t,r);return a.initializer=i,a.transformFlags|=d(a.initializer),a}function V(e,n,t,r,i,a){var o=U(e,n,t,r,a);return o.type=i,o.transformFlags|=d(i),i&&(o.transformFlags|=1),o}function j(e,n){var t=$(e);return t.text=n,t}function K(e,n){void 0===n&&(n=0);var t=j(8,"number"==typeof e?e+"":e);return t.numericLiteralFlags=n,384&n&&(t.transformFlags|=512),t}function H(n){var t=j(9,"string"==typeof n?n:e.pseudoBigIntToString(n)+"n");return t.transformFlags|=4,t}function W(e,n){var t=j(10,e);return t.singleQuote=n,t}function z(e,n,t){var r=W(e,n);return r.hasExtendedUnicodeEscape=t,t&&(r.transformFlags|=512),r}function J(e){return j(13,e)}function q(n,t){void 0===t&&n&&(t=e.stringToToken(n)),79===t&&(t=void 0);var r=a.createBaseIdentifierNode(79);return r.originalKeywordKind=t,r.escapedText=e.escapeLeadingUnderscores(n),r}function X(e,n){var t=q(e,void 0);return t.autoGenerateFlags=n,t.autoGenerateId=r,r++,t}function Y(e,n,t){var r=q(e,t);return n&&(r.typeArguments=I(n)),131===r.originalKeywordKind&&(r.transformFlags|=16777216),r}function Q(e,n){var t=1;n&&(t|=8);var r=X("",t);return e&&e(r),r}function Z(n,t){void 0===t&&(t=0),e.Debug.assert(!(7&t),"Argument out of range: flags");var r=X(n&&e.isIdentifier(n)?e.idText(n):"",4|t);return r.original=n,r}function $(e){return a.createBaseTokenNode(e)}function ee(n){e.Debug.assert(n>=0&&n<=158,"Invalid token"),e.Debug.assert(n<=14||n>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(n<=8||n>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(79!==n,"Invalid token. Use 'createIdentifier' to create identifiers");var t=$(n),r=0;switch(n){case 130:r=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:r=1;break;case 106:r=33554944;break;case 124:r=512;break;case 108:r=8192}return r&&(t.transformFlags|=r),t}function ne(){return ee(108)}function te(){return ee(110)}function re(){return ee(95)}function ie(e){return ee(e)}function ae(e){var n=[];return 1&e&&n.push(ie(93)),2&e&&n.push(ie(134)),512&e&&n.push(ie(88)),2048&e&&n.push(ie(85)),4&e&&n.push(ie(123)),8&e&&n.push(ie(121)),16&e&&n.push(ie(122)),128&e&&n.push(ie(126)),32&e&&n.push(ie(124)),16384&e&&n.push(ie(157)),64&e&&n.push(ie(143)),256&e&&n.push(ie(130)),n}function oe(e,n){var t=N(159);return t.left=e,t.right=ui(n),t.transformFlags|=d(t.left)|u(t.right),t}function se(e){var n=N(160);return n.expression=_().parenthesizeExpressionOfComputedPropertyName(e),n.transformFlags|=66048|d(n.expression),n}function ce(e,n,t){var r=R(161,void 0,void 0,e);return r.constraint=n,r.default=t,r.transformFlags=1,r}function le(n,t,r,i,a,o,s){var c=V(162,n,t,i,o,s&&_().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=r,c.questionToken=a,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=d(c.dotDotDotToken)|d(c.questionToken),a&&(c.transformFlags|=1),16476&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=4096),(s||r)&&(c.transformFlags|=512)),c}function ue(e,n,t,r,i,a,o,s){return e.decorators!==n||e.modifiers!==t||e.dotDotDotToken!==r||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?m(le(n,t,r,i,a,o,s),e):e}function de(e){var n=N(163);return n.expression=_().parenthesizeLeftSideOfAccess(e),n.transformFlags|=4097|d(n.expression),n}function pe(e,n,t,r){var i=R(164,void 0,e,n);return i.type=r,i.questionToken=t,i.transformFlags=1,i}function fe(e,n,t,r,i){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.type!==i?m(pe(n,t,r,i),e):e}function me(n,t,r,i,a,o){var s=V(165,n,t,r,a,o);return s.questionToken=i&&e.isQuestionToken(i)?i:void 0,s.exclamationToken=i&&e.isExclamationToken(i)?i:void 0,s.transformFlags|=d(s.questionToken)|d(s.exclamationToken)|8388608,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=4096),(i||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function _e(n,t,r,i,a,o,s){return n.decorators!==t||n.modifiers!==r||n.name!==i||n.questionToken!==(void 0!==a&&e.isQuestionToken(a)?a:void 0)||n.exclamationToken!==(void 0!==a&&e.isExclamationToken(a)?a:void 0)||n.type!==o||n.initializer!==s?m(me(t,r,i,a,o,s),n):n}function ge(e,n,t,r,i,a){var o=P(166,void 0,e,n,r,i,a);return o.questionToken=t,o.transformFlags=1,o}function ye(e,n,t,r,i,a,o){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o?w(ge(n,t,r,i,a,o),e):e}function he(n,t,r,i,a,o,s,c,l){var u=M(167,n,t,i,o,s,c,l);return u.asteriskToken=r,u.questionToken=a,u.transformFlags|=d(u.asteriskToken)|d(u.questionToken)|512,a&&(u.transformFlags|=1),256&e.modifiersToFlags(u.modifiers)?u.transformFlags|=r?64:128:r&&(u.transformFlags|=1024),u}function ve(e,n,t,r,i,a,o,s,c,l){return e.decorators!==n||e.modifiers!==t||e.asteriskToken!==r||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==l?F(he(n,t,r,i,a,o,s,c,l),e):e}function be(e,n,t){var r=O(168,e,n,void 0,void 0);return r.body=t,r.transformFlags=8388608|d(t),r}function Ee(e,n,t,r){var i=M(169,e,n,void 0,void 0,t,void 0,r);return i.transformFlags|=512,i}function Te(e,n,t,r,i){return e.decorators!==n||e.modifiers!==t||e.parameters!==r||e.body!==i?F(Ee(n,t,r,i),e):e}function Se(e,n,t,r,i,a){return M(170,e,n,t,void 0,r,i,a)}function xe(e,n,t,r,i,a,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.parameters!==i||e.type!==a||e.body!==o?F(Se(n,t,r,i,a,o),e):e}function Le(e,n,t,r,i){return M(171,e,n,t,void 0,r,void 0,i)}function De(e,n,t,r,i,a){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.parameters!==i||e.body!==a?F(Le(n,t,r,i,a),e):e}function Ae(e,n,t){var r=P(172,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function Ce(e,n,t){var r=P(173,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function Ie(e,n,t,r){var i=P(174,e,n,void 0,void 0,t,r);return i.transformFlags=1,i}function Ne(e,n,t,r,i){return e.parameters!==r||e.type!==i||e.decorators!==n||e.modifiers!==t?w(Ie(n,t,r,i),e):e}function ke(e,n){var t=N(197);return t.type=e,t.literal=n,t.transformFlags=1,t}function Re(e,n,t){var r=N(175);return r.assertsModifier=e,r.parameterName=ui(n),r.type=t,r.transformFlags=1,r}function Oe(e,n){var t=N(176);return t.typeName=ui(e),t.typeArguments=n&&_().parenthesizeTypeArguments(I(n)),t.transformFlags=1,t}function Pe(e,n,t){var r=P(177,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function we(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 4===n.length?Me.apply(void 0,n):3===n.length?Fe.apply(void 0,n):e.Debug.fail("Incorrect number of arguments specified.")}function Me(e,n,t,r){var i=P(178,void 0,e,void 0,n,t,r);return i.transformFlags=1,i}function Fe(e,n,t){return Me(void 0,e,n,t)}function Ge(e,n,t,r,i){return e.modifiers!==n||e.typeParameters!==t||e.parameters!==r||e.type!==i?w(we(n,t,r,i),e):e}function Be(e,n,t,r){return Ge(e,e.modifiers,n,t,r)}function Ue(e){var n=N(179);return n.exprName=e,n.transformFlags=1,n}function Ve(e){var n=N(180);return n.members=I(e),n.transformFlags=1,n}function je(e){var n=N(181);return n.elementType=_().parenthesizeElementTypeOfArrayType(e),n.transformFlags=1,n}function Ke(e){var n=N(182);return n.elements=I(e),n.transformFlags=1,n}function He(e,n,t,r){var i=N(195);return i.dotDotDotToken=e,i.name=n,i.questionToken=t,i.type=r,i.transformFlags=1,i}function We(e){var n=N(183);return n.type=_().parenthesizeElementTypeOfArrayType(e),n.transformFlags=1,n}function ze(e){var n=N(184);return n.type=e,n.transformFlags=1,n}function Je(e,n){var t=N(e);return t.types=_().parenthesizeConstituentTypesOfUnionOrIntersectionType(n),t.transformFlags=1,t}function qe(e,n){return e.types!==n?m(Je(e.kind,n),e):e}function Xe(e,n,t,r){var i=N(187);return i.checkType=_().parenthesizeMemberOfConditionalType(e),i.extendsType=_().parenthesizeMemberOfConditionalType(n),i.trueType=t,i.falseType=r,i.transformFlags=1,i}function Ye(e){var n=N(188);return n.typeParameter=e,n.transformFlags=1,n}function Qe(e,n){var t=N(196);return t.head=e,t.templateSpans=I(n),t.transformFlags=1,t}function Ze(e,n,t,r){void 0===r&&(r=!1);var i=N(198);return i.argument=e,i.qualifier=n,i.typeArguments=t&&_().parenthesizeTypeArguments(t),i.isTypeOf=r,i.transformFlags=1,i}function $e(e){var n=N(189);return n.type=e,n.transformFlags=1,n}function en(e,n){var t=N(191);return t.operator=e,t.type=_().parenthesizeMemberOfElementType(n),t.transformFlags=1,t}function nn(e,n){var t=N(192);return t.objectType=_().parenthesizeMemberOfElementType(e),t.indexType=n,t.transformFlags=1,t}function tn(e,n,t,r,i){var a=N(193);return a.readonlyToken=e,a.typeParameter=n,a.nameType=t,a.questionToken=r,a.type=i,a.transformFlags=1,a}function rn(e){var n=N(194);return n.literal=e,n.transformFlags=1,n}function an(e){var n=N(199);return n.elements=I(e),n.transformFlags|=262656|p(n.elements),16384&n.transformFlags&&(n.transformFlags|=32832),n}function on(e){var n=N(200);return n.elements=I(e),n.transformFlags|=262656|p(n.elements),n}function sn(n,t,r,i){var a=U(201,void 0,void 0,r,i&&_().parenthesizeExpressionForDisallowedComma(i));return a.propertyName=ui(t),a.dotDotDotToken=n,a.transformFlags|=512|d(a.dotDotDotToken),a.propertyName&&(a.transformFlags|=e.isIdentifier(a.propertyName)?u(a.propertyName):d(a.propertyName)),n&&(a.transformFlags|=16384),a}function cn(e){return N(e)}function ln(n,t){var r=cn(202),i=n&&e.lastOrUndefined(n),a=I(n,!(!i||!e.isOmittedExpression(i))||void 0);return r.elements=_().parenthesizeExpressionsOfCommaDelimitedList(a),r.multiLine=t,r.transformFlags|=p(r.elements),r}function un(e,n){var t=cn(203);return t.properties=I(e),t.multiLine=n,t.transformFlags|=p(t.properties),t}function dn(n,t){var r=cn(204);return r.expression=_().parenthesizeLeftSideOfAccess(n),r.name=ui(t),r.transformFlags=d(r.expression)|(e.isIdentifier(r.name)?u(r.name):d(r.name)),e.isSuperKeyword(n)&&(r.transformFlags|=192),r}function pn(n,t,r){var i=cn(204);return i.flags|=32,i.expression=_().parenthesizeLeftSideOfAccess(n),i.questionDotToken=t,i.name=ui(r),i.transformFlags|=16|d(i.expression)|d(i.questionDotToken)|(e.isIdentifier(i.name)?u(i.name):d(i.name)),i}function fn(n,t,r,i){return e.Debug.assert(!!(32&n.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==t||n.questionDotToken!==r||n.name!==i?m(pn(t,r,i),n):n}function mn(n,t){var r=cn(205);return r.expression=_().parenthesizeLeftSideOfAccess(n),r.argumentExpression=di(t),r.transformFlags|=d(r.expression)|d(r.argumentExpression),e.isSuperKeyword(n)&&(r.transformFlags|=192),r}function _n(e,n,t){var r=cn(205);return r.flags|=32,r.expression=_().parenthesizeLeftSideOfAccess(e),r.questionDotToken=n,r.argumentExpression=di(t),r.transformFlags|=d(r.expression)|d(r.questionDotToken)|d(r.argumentExpression)|16,r}function gn(n,t,r,i){return e.Debug.assert(!!(32&n.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==t||n.questionDotToken!==r||n.argumentExpression!==i?m(_n(t,r,i),n):n}function yn(n,t,r){var i=cn(206);return i.expression=_().parenthesizeLeftSideOfAccess(n),i.typeArguments=li(t),i.arguments=_().parenthesizeExpressionsOfCommaDelimitedList(I(r)),i.transformFlags|=d(i.expression)|p(i.typeArguments)|p(i.arguments),i.typeArguments&&(i.transformFlags|=1),e.isImportKeyword(i.expression)?i.transformFlags|=4194304:e.isSuperProperty(i.expression)&&(i.transformFlags|=8192),i}function hn(n,t,r,i){var a=cn(206);return a.flags|=32,a.expression=_().parenthesizeLeftSideOfAccess(n),a.questionDotToken=t,a.typeArguments=li(r),a.arguments=_().parenthesizeExpressionsOfCommaDelimitedList(I(i)),a.transformFlags|=d(a.expression)|d(a.questionDotToken)|p(a.typeArguments)|p(a.arguments)|16,a.typeArguments&&(a.transformFlags|=1),e.isSuperProperty(a.expression)&&(a.transformFlags|=8192),a}function vn(n,t,r,i,a){return e.Debug.assert(!!(32&n.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==t||n.questionDotToken!==r||n.typeArguments!==i||n.arguments!==a?m(hn(t,r,i,a),n):n}function bn(e,n,t){var r=cn(207);return r.expression=_().parenthesizeExpressionOfNew(e),r.typeArguments=li(n),r.arguments=t?_().parenthesizeExpressionsOfCommaDelimitedList(t):void 0,r.transformFlags|=d(r.expression)|p(r.typeArguments)|p(r.arguments)|16,r.typeArguments&&(r.transformFlags|=1),r}function En(n,t,r){var i=cn(208);return i.tag=_().parenthesizeLeftSideOfAccess(n),i.typeArguments=li(t),i.template=r,i.transformFlags|=d(i.tag)|p(i.typeArguments)|d(i.template)|512,i.typeArguments&&(i.transformFlags|=1),e.hasInvalidEscape(i.template)&&(i.transformFlags|=64),i}function Tn(e,n){var t=cn(209);return t.expression=_().parenthesizeOperandOfPrefixUnary(n),t.type=e,t.transformFlags|=d(t.expression)|d(t.type)|1,t}function Sn(e,n,t){return e.type!==n||e.expression!==t?m(Tn(n,t),e):e}function xn(e){var n=cn(210);return n.expression=e,n.transformFlags=d(n.expression),n}function Ln(e,n){return e.expression!==n?m(xn(n),e):e}function Dn(n,t,r,i,a,o,s){var c=M(211,void 0,n,r,i,a,o,s);return c.asteriskToken=t,c.transformFlags|=d(c.asteriskToken),c.typeParameters&&(c.transformFlags|=1),256&e.modifiersToFlags(c.modifiers)?c.asteriskToken?c.transformFlags|=64:c.transformFlags|=128:c.asteriskToken&&(c.transformFlags|=1024),c}function An(e,n,t,r,i,a,o,s){return e.name!==r||e.modifiers!==n||e.asteriskToken!==t||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?F(Dn(n,t,r,i,a,o,s),e):e}function Cn(n,t,r,i,a,o){var s=M(212,void 0,n,void 0,t,r,i,_().parenthesizeConciseBodyOfArrowFunction(o));return s.equalsGreaterThanToken=null!=a?a:ee(38),s.transformFlags|=512|d(s.equalsGreaterThanToken),256&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=8320),s}function In(e,n,t,r,i,a,o){return e.modifiers!==n||e.typeParameters!==t||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?F(Cn(n,t,r,i,a,o),e):e}function Nn(e){var n=cn(213);return n.expression=_().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=d(n.expression),n}function kn(e){var n=cn(214);return n.expression=_().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=d(n.expression),n}function Rn(e){var n=cn(215);return n.expression=_().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=d(n.expression),n}function On(e){var n=cn(216);return n.expression=_().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=1048768|d(n.expression),n}function Pn(n,t){var r=cn(217);return r.operator=n,r.operand=_().parenthesizeOperandOfPrefixUnary(t),r.transformFlags|=d(r.operand),45!==n&&46!==n||!e.isIdentifier(r.operand)||e.isGeneratedIdentifier(r.operand)||e.isLocalName(r.operand)||(r.transformFlags|=67108864),r}function wn(n,t){var r=cn(218);return r.operator=t,r.operand=_().parenthesizeOperandOfPostfixUnary(n),r.transformFlags|=d(r.operand),!e.isIdentifier(r.operand)||e.isGeneratedIdentifier(r.operand)||e.isLocalName(r.operand)||(r.transformFlags|=67108864),r}function Mn(n,t,r){var i,a=cn(219),o="number"==typeof(i=t)?ee(i):i,s=o.kind;return a.left=_().parenthesizeLeftSideOfBinary(s,n),a.operatorToken=o,a.right=_().parenthesizeRightSideOfBinary(s,a.left,r),a.transformFlags|=d(a.left)|d(a.operatorToken)|d(a.right),60===s?a.transformFlags|=16:63===s?e.isObjectLiteralExpression(a.left)?a.transformFlags|=2624|Fn(a.left):e.isArrayLiteralExpression(a.left)&&(a.transformFlags|=2560|Fn(a.left)):42===s||67===s?a.transformFlags|=256:e.isLogicalOrCoalescingAssignmentOperator(s)&&(a.transformFlags|=8),a}function Fn(n){if(32768&n.transformFlags)return 32768;if(64&n.transformFlags)for(var t=0,r=e.getElementsOfBindingOrAssignmentPattern(n);t<r.length;t++){var i=r[t],a=e.getTargetOfBindingOrAssignmentElement(i);if(a&&e.isAssignmentPattern(a)){if(32768&a.transformFlags)return 32768;if(64&a.transformFlags){var o=Fn(a);if(o)return o}}}return 0}function Gn(e,n,t,r,i){var a=cn(220);return a.condition=_().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=n?n:ee(57),a.whenTrue=_().parenthesizeBranchOfConditionalExpression(t),a.colonToken=null!=r?r:ee(58),a.whenFalse=_().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=d(a.condition)|d(a.questionToken)|d(a.whenTrue)|d(a.colonToken)|d(a.whenFalse),a}function Bn(e,n){var t=cn(221);return t.head=e,t.templateSpans=I(n),t.transformFlags|=d(t.head)|p(t.templateSpans)|512,t}function Un(t,r,i,a){void 0===a&&(a=0),e.Debug.assert(!(-2049&a),"Unsupported template flags.");var o=void 0;if(void 0!==i&&i!==r&&(o=function(t,r){switch(n||(n=e.createScanner(99,!1,0)),t){case 14:n.setText("`"+r+"`");break;case 15:n.setText("`"+r+"${");break;case 16:n.setText("}"+r+"${");break;case 17:n.setText("}"+r+"`")}var i,a=n.scan();if(19===a&&(a=n.reScanTemplateToken(!1)),n.isUnterminated())return n.setText(void 0),l;switch(a){case 14:case 15:case 16:case 17:i=n.getTokenValue()}return void 0===i||1!==n.scan()?(n.setText(void 0),l):(n.setText(void 0),i)}(t,i),"object"==typeof o))return e.Debug.fail("Invalid raw text");if(void 0===r){if(void 0===o)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");r=o}else void 0!==o&&e.Debug.assert(r===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Vn(t,r,i,a)}function Vn(e,n,t,r){var i=$(e);return i.text=n,i.rawText=t,i.templateFlags=2048&r,i.transformFlags|=512,i.templateFlags&&(i.transformFlags|=64),i}function jn(n,t){e.Debug.assert(!n||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");var r=cn(222);return r.expression=t&&_().parenthesizeExpressionForDisallowedComma(t),r.asteriskToken=n,r.transformFlags|=d(r.expression)|d(r.asteriskToken)|524864,r}function Kn(e){var n=cn(223);return n.expression=_().parenthesizeExpressionForDisallowedComma(e),n.transformFlags|=16896|d(n.expression),n}function Hn(e,n,t,r,i,a){var o=B(224,e,n,t,r,i,a);return o.transformFlags|=512,o}function Wn(e,n,t,r,i,a,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?m(Hn(n,t,r,i,a,o),e):e}function zn(e,n){var t=N(226);return t.expression=_().parenthesizeLeftSideOfAccess(e),t.typeArguments=n&&_().parenthesizeTypeArguments(n),t.transformFlags|=d(t.expression)|p(t.typeArguments)|512,t}function Jn(e,n){var t=cn(227);return t.expression=e,t.type=n,t.transformFlags|=d(t.expression)|d(t.type)|1,t}function qn(e,n,t){return e.expression!==n||e.type!==t?m(Jn(n,t),e):e}function Xn(e){var n=cn(228);return n.expression=_().parenthesizeLeftSideOfAccess(e),n.transformFlags|=1|d(n.expression),n}function Yn(n,t){return e.isNonNullChain(n)?Zn(n,t):n.expression!==t?m(Xn(t),n):n}function Qn(e){var n=cn(228);return n.flags|=32,n.expression=_().parenthesizeLeftSideOfAccess(e),n.transformFlags|=1|d(n.expression),n}function Zn(n,t){return e.Debug.assert(!!(32&n.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==t?m(Qn(t),n):n}function $n(n,t){var r=cn(229);switch(r.keywordToken=n,r.name=t,r.transformFlags|=d(r.name),n){case 103:r.transformFlags|=512;break;case 100:r.transformFlags|=4;break;default:return e.Debug.assertNever(n)}return r}function et(e,n){var t=N(231);return t.expression=e,t.literal=n,t.transformFlags|=d(t.expression)|d(t.literal)|512,t}function nt(e,n){var t=N(233);return t.statements=I(e),t.multiLine=n,t.transformFlags|=p(t.statements),t}function tt(n,t){var r=k(235,void 0,n);return r.declarationList=e.isArray(t)?Tt(t):t,r.transformFlags|=d(r.declarationList),2&e.modifiersToFlags(r.modifiers)&&(r.transformFlags=1),r}function rt(e,n,t){return e.modifiers!==n||e.declarationList!==t?m(tt(n,t),e):e}function it(){return N(234)}function at(e){var n=N(236);return n.expression=_().parenthesizeExpressionOfExpressionStatement(e),n.transformFlags|=d(n.expression),n}function ot(e,n,t){var r=N(237);return r.expression=e,r.thenStatement=pi(n),r.elseStatement=pi(t),r.transformFlags|=d(r.expression)|d(r.thenStatement)|d(r.elseStatement),r}function st(e,n){var t=N(238);return t.statement=pi(e),t.expression=n,t.transformFlags|=d(t.statement)|d(t.expression),t}function ct(e,n){var t=N(239);return t.expression=e,t.statement=pi(n),t.transformFlags|=d(t.expression)|d(t.statement),t}function lt(e,n,t,r){var i=N(240);return i.initializer=e,i.condition=n,i.incrementor=t,i.statement=pi(r),i.transformFlags|=d(i.initializer)|d(i.condition)|d(i.incrementor)|d(i.statement),i}function ut(e,n,t){var r=N(241);return r.initializer=e,r.expression=n,r.statement=pi(t),r.transformFlags|=d(r.initializer)|d(r.expression)|d(r.statement),r}function dt(e,n,t,r){var i=N(242);return i.awaitModifier=e,i.initializer=n,i.expression=_().parenthesizeExpressionForDisallowedComma(t),i.statement=pi(r),i.transformFlags|=d(i.awaitModifier)|d(i.initializer)|d(i.expression)|d(i.statement)|512,e&&(i.transformFlags|=64),i}function pt(e){var n=N(243);return n.label=ui(e),n.transformFlags|=2097152|d(n.label),n}function ft(e){var n=N(244);return n.label=ui(e),n.transformFlags|=2097152|d(n.label),n}function mt(e){var n=N(245);return n.expression=e,n.transformFlags|=2097216|d(n.expression),n}function _t(e,n){var t=N(246);return t.expression=e,t.statement=pi(n),t.transformFlags|=d(t.expression)|d(t.statement),t}function gt(e,n){var t=N(247);return t.expression=_().parenthesizeExpressionForDisallowedComma(e),t.caseBlock=n,t.transformFlags|=d(t.expression)|d(t.caseBlock),t}function yt(e,n){var t=N(248);return t.label=ui(e),t.statement=pi(n),t.transformFlags|=d(t.label)|d(t.statement),t}function ht(e,n,t){return e.label!==n||e.statement!==t?m(yt(n,t),e):e}function vt(e){var n=N(249);return n.expression=e,n.transformFlags|=d(n.expression),n}function bt(e,n,t){var r=N(250);return r.tryBlock=e,r.catchClause=n,r.finallyBlock=t,r.transformFlags|=d(r.tryBlock)|d(r.catchClause)|d(r.finallyBlock),r}function Et(e,n,t,r){var i=V(252,void 0,void 0,e,t,r&&_().parenthesizeExpressionForDisallowedComma(r));return i.exclamationToken=n,i.transformFlags|=d(i.exclamationToken),n&&(i.transformFlags|=1),i}function Tt(e,n){void 0===n&&(n=0);var t=N(253);return t.flags|=3&n,t.declarations=I(e),t.transformFlags|=2097152|p(t.declarations),3&n&&(t.transformFlags|=131584),t}function St(n,t,r,i,a,o,s,c){var l=M(254,n,t,i,a,o,s,c);return l.asteriskToken=r,!l.body||2&e.modifiersToFlags(l.modifiers)?l.transformFlags=1:(l.transformFlags|=2097152|d(l.asteriskToken),256&e.modifiersToFlags(l.modifiers)?l.asteriskToken?l.transformFlags|=64:l.transformFlags|=128:l.asteriskToken&&(l.transformFlags|=1024)),l}function xt(e,n,t,r,i,a,o,s,c){return e.decorators!==n||e.modifiers!==t||e.asteriskToken!==r||e.name!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?F(St(n,t,r,i,a,o,s,c),e):e}function Lt(n,t,r,i,a,o){var s=B(255,n,t,r,i,a,o);return 2&e.modifiersToFlags(s.modifiers)?s.transformFlags=1:(s.transformFlags|=512,4096&s.transformFlags&&(s.transformFlags|=1)),s}function Dt(e,n,t,r,i,a,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?m(Lt(n,t,r,i,a,o),e):e}function At(e,n,t,r,i,a){var o=G(256,e,n,t,r,i);return o.members=I(a),o.transformFlags=1,o}function Ct(e,n,t,r,i,a,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?m(At(n,t,r,i,a,o),e):e}function It(e,n,t,r,i){var a=O(257,e,n,t,r);return a.type=i,a.transformFlags=1,a}function Nt(e,n,t,r,i,a){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.type!==a?m(It(n,t,r,i,a),e):e}function kt(e,n,t,r){var i=R(258,e,n,t);return i.members=I(r),i.transformFlags|=1|p(i.members),i.transformFlags&=-16777217,i}function Rt(e,n,t,r,i){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.members!==i?m(kt(n,t,r,i),e):e}function Ot(n,t,r,i,a){void 0===a&&(a=0);var o=k(259,n,t);return o.flags|=1044&a,o.name=r,o.body=i,2&e.modifiersToFlags(o.modifiers)?o.transformFlags=1:o.transformFlags|=d(o.name)|d(o.body)|1,o.transformFlags&=-16777217,o}function Pt(e,n,t,r,i){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.body!==i?m(Ot(n,t,r,i,e.flags),e):e}function wt(e){var n=N(260);return n.statements=I(e),n.transformFlags|=p(n.statements),n}function Mt(e){var n=N(261);return n.clauses=I(e),n.transformFlags|=p(n.clauses),n}function Ft(e){var n=R(262,void 0,void 0,e);return n.transformFlags=1,n}function Gt(n,t,r,i,a){var o=R(263,n,t,i);return o.isTypeOnly=r,o.moduleReference=a,o.transformFlags|=d(o.moduleReference),e.isExternalModuleReference(o.moduleReference)||(o.transformFlags|=1),o.transformFlags&=-16777217,o}function Bt(e,n,t,r,i,a){return e.decorators!==n||e.modifiers!==t||e.isTypeOnly!==r||e.name!==i||e.moduleReference!==a?m(Gt(n,t,r,i,a),e):e}function Ut(e,n,t,r){var i=k(264,e,n);return i.importClause=t,i.moduleSpecifier=r,i.transformFlags|=d(i.importClause)|d(i.moduleSpecifier),i.transformFlags&=-16777217,i}function Vt(e,n,t,r,i){return e.decorators!==n||e.modifiers!==t||e.importClause!==r||e.moduleSpecifier!==i?m(Ut(n,t,r,i),e):e}function jt(e,n,t){var r=N(265);return r.isTypeOnly=e,r.name=n,r.namedBindings=t,r.transformFlags|=d(r.name)|d(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-16777217,r}function Kt(e){var n=N(266);return n.name=e,n.transformFlags|=d(n.name),n.transformFlags&=-16777217,n}function Ht(e){var n=N(272);return n.name=e,n.transformFlags|=4|d(n.name),n.transformFlags&=-16777217,n}function Wt(e){var n=N(267);return n.elements=I(e),n.transformFlags|=p(n.elements),n.transformFlags&=-16777217,n}function zt(e,n){var t=N(268);return t.propertyName=e,t.name=n,t.transformFlags|=d(t.propertyName)|d(t.name),t.transformFlags&=-16777217,t}function Jt(e,n,t,r){var i=k(269,e,n);return i.isExportEquals=t,i.expression=t?_().parenthesizeRightSideOfBinary(63,void 0,r):_().parenthesizeExpressionOfExportDefault(r),i.transformFlags|=d(i.expression),i.transformFlags&=-16777217,i}function qt(e,n,t,r){return e.decorators!==n||e.modifiers!==t||e.expression!==r?m(Jt(n,t,e.isExportEquals,r),e):e}function Xt(e,n,t,r,i){var a=k(270,e,n);return a.isTypeOnly=t,a.exportClause=r,a.moduleSpecifier=i,a.transformFlags|=d(a.exportClause)|d(a.moduleSpecifier),a.transformFlags&=-16777217,a}function Yt(e,n,t,r,i,a){return e.decorators!==n||e.modifiers!==t||e.isTypeOnly!==r||e.exportClause!==i||e.moduleSpecifier!==a?m(Xt(n,t,r,i,a),e):e}function Qt(e){var n=N(271);return n.elements=I(e),n.transformFlags|=p(n.elements),n.transformFlags&=-16777217,n}function Zt(e,n){var t=N(273);return t.propertyName=ui(e),t.name=ui(n),t.transformFlags|=d(t.propertyName)|d(t.name),t.transformFlags&=-16777217,t}function $t(e){var n=N(275);return n.expression=e,n.transformFlags|=d(n.expression),n.transformFlags&=-16777217,n}function er(e,n){var t=N(e);return t.type=n,t}function nr(e,n){return P(312,void 0,void 0,void 0,void 0,e,n)}function tr(e,n){void 0===n&&(n=!1);var t=N(317);return t.jsDocPropertyTags=li(e),t.isArrayType=n,t}function rr(e){var n=N(304);return n.type=e,n}function ir(e,n,t){var r=N(318);return r.typeParameters=li(e),r.parameters=I(n),r.type=t,r}function ar(n){var t=c(n.kind);return n.tagName.escapedText===e.escapeLeadingUnderscores(t)?n.tagName:Y(t)}function or(e,n,t){var r=N(e);return r.tagName=n,r.comment=t,r}function sr(e,n,t,r){var i=or(339,null!=e?e:Y("template"),r);return i.constraint=n,i.typeParameters=I(t),i}function cr(n,t,r,i){var a=or(340,null!=n?n:Y("typedef"),i);return a.typeExpression=t,a.fullName=r,a.name=e.getJSDocTypeAliasName(r),a}function lr(e,n,t,r,i,a){var o=or(335,null!=e?e:Y("param"),a);return o.typeExpression=r,o.name=n,o.isNameFirst=!!i,o.isBracketed=t,o}function ur(e,n,t,r,i,a){var o=or(342,null!=e?e:Y("prop"),a);return o.typeExpression=r,o.name=n,o.isNameFirst=!!i,o.isBracketed=t,o}function dr(n,t,r,i){var a=or(333,null!=n?n:Y("callback"),i);return a.typeExpression=t,a.fullName=r,a.name=e.getJSDocTypeAliasName(r),a}function pr(e,n,t){var r=or(323,null!=e?e:Y("augments"),t);return r.class=n,r}function fr(e,n,t){var r=or(324,null!=e?e:Y("implements"),t);return r.class=n,r}function mr(e,n,t){var r=or(341,null!=e?e:Y("see"),t);return r.name=n,r}function _r(e){var n=N(305);return n.name=e,n}function gr(e,n){var t=N(306);return t.left=e,t.right=n,t.transformFlags|=d(t.left)|d(t.right),t}function yr(e,n){var t=N(319);return t.name=e,t.text=n,t}function hr(e,n){var t=N(320);return t.name=e,t.text=n,t}function vr(e,n){var t=N(321);return t.name=e,t.text=n,t}function br(e,n,t){return or(e,null!=n?n:Y(c(e)),t)}function Er(e,n,t,r){var i=or(e,null!=n?n:Y(c(e)),r);return i.typeExpression=t,i}function Tr(e,n){return or(322,e,n)}function Sr(e){var n=N(316);return n.text=e,n}function xr(e,n){var t=N(315);return t.comment=e,t.tags=li(n),t}function Lr(e,n,t){var r=N(276);return r.openingElement=e,r.children=I(n),r.closingElement=t,r.transformFlags|=d(r.openingElement)|p(r.children)|d(r.closingElement)|2,r}function Dr(e,n,t){var r=N(277);return r.tagName=e,r.typeArguments=li(n),r.attributes=t,r.transformFlags|=d(r.tagName)|p(r.typeArguments)|d(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Ar(e,n,t){var r=N(278);return r.tagName=e,r.typeArguments=li(n),r.attributes=t,r.transformFlags|=d(r.tagName)|p(r.typeArguments)|d(r.attributes)|2,n&&(r.transformFlags|=1),r}function Cr(e){var n=N(279);return n.tagName=e,n.transformFlags|=2|d(n.tagName),n}function Ir(e,n,t){var r=N(280);return r.openingFragment=e,r.children=I(n),r.closingFragment=t,r.transformFlags|=d(r.openingFragment)|p(r.children)|d(r.closingFragment)|2,r}function Nr(e,n){var t=N(11);return t.text=e,t.containsOnlyTriviaWhiteSpaces=!!n,t.transformFlags|=2,t}function kr(e,n){var t=N(283);return t.name=e,t.initializer=n,t.transformFlags|=d(t.name)|d(t.initializer)|2,t}function Rr(e){var n=N(284);return n.properties=I(e),n.transformFlags|=2|p(n.properties),n}function Or(e){var n=N(285);return n.expression=e,n.transformFlags|=2|d(n.expression),n}function Pr(e,n){var t=N(286);return t.dotDotDotToken=e,t.expression=n,t.transformFlags|=d(t.dotDotDotToken)|d(t.expression)|2,t}function wr(e,n){var t=N(287);return t.expression=_().parenthesizeExpressionForDisallowedComma(e),t.statements=I(n),t.transformFlags|=d(t.expression)|p(t.statements),t}function Mr(e){var n=N(288);return n.statements=I(e),n.transformFlags=p(n.statements),n}function Fr(n,t){var r=N(289);switch(r.token=n,r.types=I(t),r.transformFlags|=p(r.types),n){case 94:r.transformFlags|=512;break;case 117:r.transformFlags|=1;break;default:return e.Debug.assertNever(n)}return r}function Gr(n,t){var r=N(290);return n=e.isString(n)?Et(n,void 0,void 0,void 0):n,r.variableDeclaration=n,r.block=t,r.transformFlags|=d(r.variableDeclaration)|d(r.block),n||(r.transformFlags|=32),r}function Br(e,n){var t=R(291,void 0,void 0,e);return t.initializer=_().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=d(t.name)|d(t.initializer),t}function Ur(e,n){var t=R(292,void 0,void 0,e);return t.objectAssignmentInitializer=n&&_().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=512|d(t.objectAssignmentInitializer),t}function Vr(e){var n=N(293);return n.expression=_().parenthesizeExpressionForDisallowedComma(e),n.transformFlags|=32832|d(n.expression),n}function jr(e,n){var t=N(294);return t.name=ui(e),t.initializer=n&&_().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=d(t.name)|d(t.initializer)|1,t}function Kr(n,t){void 0===t&&(t=e.emptyArray);var r=N(301);return r.prepends=t,r.sourceFiles=n,r}function Hr(e,n){var t=N(e);return t.data=n,t}function Wr(n,t){var r=N(345);return r.expression=n,r.original=t,r.transformFlags|=1|d(r.expression),e.setTextRange(r,t),r}function zr(e,n){return e.expression!==n?m(Wr(n,e.original),e):e}function Jr(n){if(e.nodeIsSynthesized(n)&&!e.isParseTreeNode(n)&&!n.original&&!n.emitNode&&!n.id){if(e.isCommaListExpression(n))return n.elements;if(e.isBinaryExpression(n)&&e.isCommaToken(n.operatorToken))return[n.left,n.right]}return n}function qr(n){var t=N(346);return t.elements=I(e.sameFlatMap(n,Jr)),t.transformFlags|=p(t.elements),t}function Xr(e,n){var t=N(349);return t.expression=e,t.thisArg=n,t.transformFlags|=d(t.expression)|d(t.thisArg),t}function Yr(n){if(void 0===n)return n;var t=e.isSourceFile(n)?a.createBaseSourceFileNode(300):e.isIdentifier(n)?a.createBaseIdentifierNode(79):e.isPrivateIdentifier(n)?a.createBasePrivateIdentifierNode(80):e.isNodeKind(n.kind)?a.createBaseNode(n.kind):a.createBaseTokenNode(n.kind);for(var r in t.flags|=-9&n.flags,t.transformFlags=n.transformFlags,v(t,n),n)!t.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(t[r]=n[r]);return t}function Qr(){return Rn(K("0"))}function Zr(n,t,r){return e.isCallChain(n)?hn(pn(n,void 0,t),void 0,void 0,r):yn(dn(n,t),void 0,r)}function $r(e,n,t){return Zr(Y(e),n,t)}function ei(e,n,t){return!!t&&(e.push(Br(n,t)),!0)}function ni(n,t){var r=e.skipParentheses(n);switch(r.kind){case 79:return t;case 108:case 8:case 9:case 10:return!1;case 202:return 0!==r.elements.length;case 203:return r.properties.length>0;default:return!0}}function ti(n,t,r,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(n);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange(Yr(a),a),a.parent);return i|=e.getEmitFlags(a),r||(i|=48),t||(i|=1536),i&&e.setEmitFlags(o,i),o}return Z(n)}function ri(e,n,t){return ti(e,n,t,8192)}function ii(n,t,r,i){var a=dn(n,e.nodeIsSynthesized(t)?t:Yr(t));e.setTextRange(a,t);var o=0;return i||(o|=48),r||(o|=1536),o&&e.setEmitFlags(a,o),a}function ai(){return e.startOnNewLine(at(z("use strict")))}function oi(n,t,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i,a=!1,o=0,s=n.length;o<s;){var c=n[o];if(!e.isPrologueDirective(c))break;i=c,e.isStringLiteral(i.expression)&&"use strict"===i.expression.text&&(a=!0),t.push(c),o++}return r&&!a&&t.push(ai()),o}function si(n,t,r,i,a){void 0===a&&(a=e.returnTrue);for(var o=n.length;void 0!==r&&r<o;){var s=n[r];if(!(1048576&e.getEmitFlags(s)&&a(s)))break;e.append(t,i?e.visitNode(s,i,e.isStatement):s),r++}return r}function ci(e,n,t){for(var r=t;r<e.length&&n(e[r]);)r++;return r}function li(e){return e?I(e):void 0}function ui(e){return"string"==typeof e?Y(e):e}function di(e){return"string"==typeof e?z(e):"number"==typeof e?K(e):"boolean"==typeof e?e?te():re():e}function pi(n){return n&&e.isNotEmittedStatement(n)?e.setTextRange(v(it(),n),n):n}}function o(n,t){return n!==t&&e.setTextRange(n,t),n}function s(n,t){return n!==t&&(v(n,t),e.setTextRange(n,t)),n}function c(n){switch(n){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(n))}}(t=e.NodeFactoryFlags||(e.NodeFactoryFlags={}))[t.None=0]="None",t[t.NoParenthesizerRules=1]="NoParenthesizerRules",t[t.NoNodeConverters=2]="NoNodeConverters",t[t.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",t[t.NoOriginalNode=8]="NoOriginalNode",e.createNodeFactory=a;var l={};function u(e){return-16777217&d(e)}function d(n){if(!n)return 0;var t=n.transformFlags&~m(n.kind);return e.isNamedDeclaration(n)&&e.isPropertyName(n.name)?t|33562624&n.name.transformFlags:t}function p(e){return e?e.transformFlags:0}function f(e){for(var n=0,t=0,r=e;t<r.length;t++)n|=d(r[t]);e.transformFlags=n}function m(e){if(e>=175&&e<=198)return-2;switch(e){case 206:case 207:case 202:case 199:case 200:return 536887296;case 259:return 589443072;case 162:case 209:case 227:case 345:case 210:case 106:case 204:case 205:default: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}}e.getTransformFlagsSubtreeExclusions=m;var _=e.createBaseNodeFactory();function g(e){return e.flags|=8,e}var y,h={createBaseSourceFileNode:function(e){return g(_.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return g(_.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return g(_.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return g(_.createBaseTokenNode(e))},createBaseNode:function(e){return g(_.createBaseNode(e))}};function v(n,t){if(n.original=t,t){var r=t.emitNode;r&&(n.emitNode=function(n,t){var r=n.flags,i=n.leadingComments,a=n.trailingComments,o=n.commentRange,s=n.sourceMapRange,c=n.tokenSourceMapRanges,l=n.constantValue,u=n.helpers,d=n.startsOnNewLine;if(t||(t={}),i&&(t.leadingComments=e.addRange(i.slice(),t.leadingComments)),a&&(t.trailingComments=e.addRange(a.slice(),t.trailingComments)),r&&(t.flags=-268435457&r),o&&(t.commentRange=o),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=function(e,n){for(var t in n||(n=[]),e)n[t]=e[t];return n}(c,t.tokenSourceMapRanges)),void 0!==l&&(t.constantValue=l),u)for(var p=0,f=u;p<f.length;p++){var m=f[p];t.helpers=e.appendIfUnique(t.helpers,m)}return void 0!==d&&(t.startsOnNewLine=d),t}(r,n.emitNode))}return n}e.factory=a(4,h),e.createUnparsedSourceFile=function(n,t,r){var i,a,o,s,c,l,u,d,p,f;e.isString(n)?(o="",s=n,c=n.length,l=t,u=r):(e.Debug.assert("js"===t||"dts"===t),o=("js"===t?n.javascriptPath:n.declarationPath)||"",l="js"===t?n.javascriptMapPath:n.declarationMapPath,d=function(){return"js"===t?n.javascriptText:n.declarationText},p=function(){return"js"===t?n.javascriptMapText:n.declarationMapText},c=function(){return d().length},n.buildInfo&&n.buildInfo.bundle&&(e.Debug.assert(void 0===r||"boolean"==typeof r),i=r,a="js"===t?n.buildInfo.bundle.js:n.buildInfo.bundle.dts,f=n.oldFileOfCurrentEmit));var m=f?function(n){for(var t,r,i=0,a=n.sections;i<a.length;i++){var o=a[i];switch(o.kind){case"internal":case"text":t=e.append(t,e.setTextRange(e.factory.createUnparsedTextLike(o.data,"internal"===o.kind),o));break;case"no-default-lib":case"reference":case"type":case"lib":r=e.append(r,e.setTextRange(e.factory.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(o)}}var s=e.factory.createUnparsedSource(e.emptyArray,r,null!=t?t:e.emptyArray);return e.setEachParent(r,s),e.setEachParent(t,s),s.helpers=e.map(n.sources&&n.sources.helpers,(function(n){return e.getAllUnscopedEmitHelpers().get(n)})),s}(e.Debug.assertDefined(a)):function(n,t,r){for(var i,a,o,s,c,l,u,d,p=0,f=n?n.sections:e.emptyArray;p<f.length;p++){var m=f[p];switch(m.kind){case"prologue":i=e.append(i,e.setTextRange(e.factory.createUnparsedPrologue(m.data),m));break;case"emitHelpers":a=e.append(a,e.getAllUnscopedEmitHelpers().get(m.data));break;case"no-default-lib":d=!0;break;case"reference":o=e.append(o,{pos:-1,end:-1,fileName:m.data});break;case"type":s=e.append(s,m.data);break;case"lib":c=e.append(c,{pos:-1,end:-1,fileName:m.data});break;case"prepend":for(var _=void 0,g=0,y=m.texts;g<y.length;g++){var h=y[g];t&&"internal"===h.kind||(_=e.append(_,e.setTextRange(e.factory.createUnparsedTextLike(h.data,"internal"===h.kind),h)))}l=e.addRange(l,_),u=e.append(u,e.factory.createUnparsedPrepend(m.data,null!=_?_:e.emptyArray));break;case"internal":if(t){u||(u=[]);break}case"text":u=e.append(u,e.setTextRange(e.factory.createUnparsedTextLike(m.data,"internal"===m.kind),m));break;default:e.Debug.assertNever(m)}}if(!u){var v=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(v,0,"function"==typeof r?r():r),u=[v]}var b=e.parseNodeFactory.createUnparsedSource(null!=i?i:e.emptyArray,void 0,u);return e.setEachParent(i,b),e.setEachParent(u,b),e.setEachParent(l,b),b.hasNoDefaultLib=d,b.helpers=a,b.referencedFiles=o||e.emptyArray,b.typeReferenceDirectives=s,b.libReferenceDirectives=c||e.emptyArray,b}(a,i,c);return m.fileName=o,m.sourceMapPath=l,m.oldFileOfCurrentEmit=f,d&&p?(Object.defineProperty(m,"text",{get:d}),Object.defineProperty(m,"sourceMapText",{get:p})):(e.Debug.assert(!f),m.text=null!=s?s:"",m.sourceMapText=u),m},e.createInputFiles=function(n,t,r,i,a,o,s,c,l,u,d){var p=e.parseNodeFactory.createInputFiles();if(e.isString(n))p.javascriptText=n,p.javascriptMapPath=r,p.javascriptMapText=i,p.declarationText=t,p.declarationMapPath=a,p.declarationMapText=o,p.javascriptPath=s,p.declarationPath=c,p.buildInfoPath=l,p.buildInfo=u,p.oldFileOfCurrentEmit=d;else{var f,m=new e.Map,_=function(e){if(void 0!==e){var t=m.get(e);return void 0===t&&(t=n(e),m.set(e,void 0!==t&&t)),!1!==t?t:void 0}},g=function(e){var n=_(e);return void 0!==n?n:"/* Input file "+e+" was missing */\r\n"};p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=e.Debug.assertDefined(i),p.declarationMapPath=a,p.buildInfoPath=o,Object.defineProperties(p,{javascriptText:{get:function(){return g(t)}},javascriptMapText:{get:function(){return _(r)}},declarationText:{get:function(){return g(e.Debug.assertDefined(i))}},declarationMapText:{get:function(){return _(a)}},buildInfo:{get:function(){return function(n){if(void 0===f){var t=_(o);f=void 0!==t&&e.getBuildInfo(t)}return f||void 0}()}}})}return p},e.createSourceMapSource=function(n,t,r){return new(y||(y=e.objectAllocator.getSourceMapSourceConstructor()))(n,t,r)},e.setOriginalNode=v}(u||(u={})),function(e){function n(t){var r;if(t.emitNode)e.Debug.assert(!(268435456&t.emitNode.flags),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(t)){if(300===t.kind)return t.emitNode={annotatedNodes:[t]};n(null!==(r=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(t))))&&void 0!==r?r:e.Debug.fail("Could not determine parsed source file.")).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function t(e){var n;return null===(n=e.emitNode)||void 0===n?void 0:n.leadingComments}function r(e,t){return n(e).leadingComments=t,e}function i(e){var n;return null===(n=e.emitNode)||void 0===n?void 0:n.trailingComments}function a(e,t){return n(e).trailingComments=t,e}e.getOrCreateEmitNode=n,e.disposeEmitNodes=function(n){var t,r,i=null===(r=null===(t=e.getSourceFileOfNode(e.getParseTreeNode(n)))||void 0===t?void 0:t.emitNode)||void 0===r?void 0:r.annotatedNodes;if(i)for(var a=0,o=i;a<o.length;a++)o[a].emitNode=void 0},e.removeAllComments=function(e){var t=n(e);return t.flags|=1536,t.leadingComments=void 0,t.trailingComments=void 0,e},e.setEmitFlags=function(e,t){return n(e).flags=t,e},e.addEmitFlags=function(e,t){var r=n(e);return r.flags=r.flags|t,e},e.getSourceMapRange=function(e){var n,t;return null!==(t=null===(n=e.emitNode)||void 0===n?void 0:n.sourceMapRange)&&void 0!==t?t:e},e.setSourceMapRange=function(e,t){return n(e).sourceMapRange=t,e},e.getTokenSourceMapRange=function(e,n){var t,r;return null===(r=null===(t=e.emitNode)||void 0===t?void 0:t.tokenSourceMapRanges)||void 0===r?void 0:r[n]},e.setTokenSourceMapRange=function(e,t,r){var i,a=n(e);return(null!==(i=a.tokenSourceMapRanges)&&void 0!==i?i:a.tokenSourceMapRanges=[])[t]=r,e},e.getStartsOnNewLine=function(e){var n;return null===(n=e.emitNode)||void 0===n?void 0:n.startsOnNewLine},e.setStartsOnNewLine=function(e,t){return n(e).startsOnNewLine=t,e},e.getCommentRange=function(e){var n,t;return null!==(t=null===(n=e.emitNode)||void 0===n?void 0:n.commentRange)&&void 0!==t?t:e},e.setCommentRange=function(e,t){return n(e).commentRange=t,e},e.getSyntheticLeadingComments=t,e.setSyntheticLeadingComments=r,e.addSyntheticLeadingComment=function(n,i,a,o){return r(n,e.append(t(n),{kind:i,pos:-1,end:-1,hasTrailingNewLine:o,text:a}))},e.getSyntheticTrailingComments=i,e.setSyntheticTrailingComments=a,e.addSyntheticTrailingComment=function(n,t,r,o){return a(n,e.append(i(n),{kind:t,pos:-1,end:-1,hasTrailingNewLine:o,text:r}))},e.moveSyntheticComments=function(e,o){r(e,t(o)),a(e,i(o));var s=n(o);return s.leadingComments=void 0,s.trailingComments=void 0,e},e.getConstantValue=function(e){var n;return null===(n=e.emitNode)||void 0===n?void 0:n.constantValue},e.setConstantValue=function(e,t){return n(e).constantValue=t,e},e.addEmitHelper=function(t,r){var i=n(t);return i.helpers=e.append(i.helpers,r),t},e.addEmitHelpers=function(t,r){if(e.some(r))for(var i=n(t),a=0,o=r;a<o.length;a++){var s=o[a];i.helpers=e.appendIfUnique(i.helpers,s)}return t},e.removeEmitHelper=function(n,t){var r,i=null===(r=n.emitNode)||void 0===r?void 0:r.helpers;return!!i&&e.orderedRemoveItem(i,t)},e.getEmitHelpers=function(e){var n;return null===(n=e.emitNode)||void 0===n?void 0:n.helpers},e.moveEmitHelpers=function(t,r,i){var a=t.emitNode,o=a&&a.helpers;if(e.some(o)){for(var s=n(r),c=0,l=0;l<o.length;l++){var u=o[l];i(u)?(c++,s.helpers=e.appendIfUnique(s.helpers,u)):c>0&&(o[l-c]=u)}c>0&&(o.length-=c)}},e.ignoreSourceNewlines=function(e){return n(e).flags|=134217728,e}}(u||(u={})),function(e){function n(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return function(t){for(var r="",i=0;i<n.length;i++)r+=e[i],r+=t(n[i]);return r+e[e.length-1]}}var t;e.createEmitHelperFactory=function(n){var t=n.factory,r=e.memoize((function(){return e.setEmitFlags(t.createTrue(),268435456)})),a=e.memoize((function(){return e.setEmitFlags(t.createFalse(),268435456)}));return{getUnscopedHelperName:o,createDecorateHelper:function(r,i,a,s){n.requestEmitHelper(e.decorateHelper);var c=[];return c.push(t.createArrayLiteralExpression(r,!0)),c.push(i),a&&(c.push(a),s&&c.push(s)),t.createCallExpression(o("__decorate"),void 0,c)},createMetadataHelper:function(r,i){return n.requestEmitHelper(e.metadataHelper),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(r),i])},createParamHelper:function(r,i,a){return n.requestEmitHelper(e.paramHelper),e.setTextRange(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(i+""),r]),a)},createAssignHelper:function(r){return n.getCompilerOptions().target>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,r):(n.requestEmitHelper(e.assignHelper),t.createCallExpression(o("__assign"),void 0,r))},createAwaitHelper:function(r){return n.requestEmitHelper(e.awaitHelper),t.createCallExpression(o("__await"),void 0,[r])},createAsyncGeneratorHelper:function(r,i){return n.requestEmitHelper(e.awaitHelper),n.requestEmitHelper(e.asyncGeneratorHelper),(r.emitNode||(r.emitNode={})).flags|=786432,t.createCallExpression(o("__asyncGenerator"),void 0,[i?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),r])},createAsyncDelegatorHelper:function(r){return n.requestEmitHelper(e.awaitHelper),n.requestEmitHelper(e.asyncDelegator),t.createCallExpression(o("__asyncDelegator"),void 0,[r])},createAsyncValuesHelper:function(r){return n.requestEmitHelper(e.asyncValues),t.createCallExpression(o("__asyncValues"),void 0,[r])},createRestHelper:function(r,i,a,s){n.requestEmitHelper(e.restHelper);for(var c=[],l=0,u=0;u<i.length-1;u++){var d=e.getPropertyNameOfBindingOrAssignmentElement(i[u]);if(d)if(e.isComputedPropertyName(d)){e.Debug.assertIsDefined(a,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var p=a[l];l++,c.push(t.createConditionalExpression(t.createTypeCheck(p,"symbol"),void 0,p,void 0,t.createAdd(p,t.createStringLiteral(""))))}else c.push(t.createStringLiteralFromNode(d))}return t.createCallExpression(o("__rest"),void 0,[r,e.setTextRange(t.createArrayLiteralExpression(c),s)])},createAwaiterHelper:function(r,i,a,s){n.requestEmitHelper(e.awaiterHelper);var c=t.createFunctionExpression(void 0,t.createToken(41),void 0,void 0,[],void 0,s);return(c.emitNode||(c.emitNode={})).flags|=786432,t.createCallExpression(o("__awaiter"),void 0,[r?t.createThis():t.createVoidZero(),i?t.createIdentifier("arguments"):t.createVoidZero(),a?e.createExpressionFromEntityName(t,a):t.createVoidZero(),c])},createExtendsHelper:function(r){return n.requestEmitHelper(e.extendsHelper),t.createCallExpression(o("__extends"),void 0,[r,t.createUniqueName("_super",48)])},createTemplateObjectHelper:function(r,i){return n.requestEmitHelper(e.templateObjectHelper),t.createCallExpression(o("__makeTemplateObject"),void 0,[r,i])},createSpreadArrayHelper:function(i,s,c){return n.requestEmitHelper(e.spreadArrayHelper),t.createCallExpression(o("__spreadArray"),void 0,[i,s,c?r():a()])},createValuesHelper:function(r){return n.requestEmitHelper(e.valuesHelper),t.createCallExpression(o("__values"),void 0,[r])},createReadHelper:function(r,i){return n.requestEmitHelper(e.readHelper),t.createCallExpression(o("__read"),void 0,void 0!==i?[r,t.createNumericLiteral(i+"")]:[r])},createGeneratorHelper:function(r){return n.requestEmitHelper(e.generatorHelper),t.createCallExpression(o("__generator"),void 0,[t.createThis(),r])},createCreateBindingHelper:function(r,a,s){return n.requestEmitHelper(e.createBindingHelper),t.createCallExpression(o("__createBinding"),void 0,i([t.createIdentifier("exports"),r,a],s?[s]:[],!0))},createImportStarHelper:function(r){return n.requestEmitHelper(e.importStarHelper),t.createCallExpression(o("__importStar"),void 0,[r])},createImportStarCallbackHelper:function(){return n.requestEmitHelper(e.importStarHelper),o("__importStar")},createImportDefaultHelper:function(r){return n.requestEmitHelper(e.importDefaultHelper),t.createCallExpression(o("__importDefault"),void 0,[r])},createExportStarHelper:function(r,i){return void 0===i&&(i=t.createIdentifier("exports")),n.requestEmitHelper(e.exportStarHelper),n.requestEmitHelper(e.createBindingHelper),t.createCallExpression(o("__exportStar"),void 0,[r,i])},createClassPrivateFieldGetHelper:function(r,i,a,s){var c;return n.requestEmitHelper(e.classPrivateFieldGetHelper),c=s?[r,i,t.createStringLiteral(a),s]:[r,i,t.createStringLiteral(a)],t.createCallExpression(o("__classPrivateFieldGet"),void 0,c)},createClassPrivateFieldSetHelper:function(r,i,a,s,c){var l;return n.requestEmitHelper(e.classPrivateFieldSetHelper),l=c?[r,i,a,t.createStringLiteral(s),c]:[r,i,a,t.createStringLiteral(s)],t.createCallExpression(o("__classPrivateFieldSet"),void 0,l)}};function o(n){return e.setEmitFlags(t.createIdentifier(n),4098)}},e.compareEmitHelpers=function(n,t){return n===t||n.priority===t.priority?0:void 0===n.priority?1:void 0===t.priority?-1:e.compareValues(n.priority,t.priority)},e.helperString=n,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n 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:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n 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); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n 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; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n 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);\n 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); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n 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;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:"\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));"},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n 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");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n 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");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},e.getAllUnscopedEmitHelpers=function(){return t||(t=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.createBindingHelper,e.setModuleDefaultHelper],(function(e){return e.name})))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:n(o(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:n(o(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},e.isCallToHelper=function(n,t){return e.isCallExpression(n)&&e.isIdentifier(n.expression)&&0!=(4096&e.getEmitFlags(n.expression))&&n.expression.escapedText===t}}(u||(u={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isDotDotDotToken=function(e){return 25===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isPlusToken=function(e){return 39===e.kind},e.isMinusToken=function(e){return 40===e.kind},e.isAsteriskToken=function(e){return 41===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isColonToken=function(e){return 58===e.kind},e.isQuestionDotToken=function(e){return 28===e.kind},e.isEqualsGreaterThanToken=function(e){return 38===e.kind},e.isIdentifier=function(e){return 79===e.kind},e.isPrivateIdentifier=function(e){return 80===e.kind},e.isExportModifier=function(e){return 93===e.kind},e.isAsyncModifier=function(e){return 130===e.kind},e.isAssertsKeyword=function(e){return 128===e.kind},e.isAwaitKeyword=function(e){return 131===e.kind},e.isReadonlyKeyword=function(e){return 143===e.kind},e.isStaticModifier=function(e){return 124===e.kind},e.isAbstractModifier=function(e){return 126===e.kind},e.isSuperKeyword=function(e){return 106===e.kind},e.isImportKeyword=function(e){return 100===e.kind},e.isQualifiedName=function(e){return 159===e.kind},e.isComputedPropertyName=function(e){return 160===e.kind},e.isTypeParameterDeclaration=function(e){return 161===e.kind},e.isParameter=function(e){return 162===e.kind},e.isDecorator=function(e){return 163===e.kind},e.isPropertySignature=function(e){return 164===e.kind},e.isPropertyDeclaration=function(e){return 165===e.kind},e.isMethodSignature=function(e){return 166===e.kind},e.isMethodDeclaration=function(e){return 167===e.kind},e.isClassStaticBlockDeclaration=function(e){return 168===e.kind},e.isConstructorDeclaration=function(e){return 169===e.kind},e.isGetAccessorDeclaration=function(e){return 170===e.kind},e.isSetAccessorDeclaration=function(e){return 171===e.kind},e.isCallSignatureDeclaration=function(e){return 172===e.kind},e.isConstructSignatureDeclaration=function(e){return 173===e.kind},e.isIndexSignatureDeclaration=function(e){return 174===e.kind},e.isTypePredicateNode=function(e){return 175===e.kind},e.isTypeReferenceNode=function(e){return 176===e.kind},e.isFunctionTypeNode=function(e){return 177===e.kind},e.isConstructorTypeNode=function(e){return 178===e.kind},e.isTypeQueryNode=function(e){return 179===e.kind},e.isTypeLiteralNode=function(e){return 180===e.kind},e.isArrayTypeNode=function(e){return 181===e.kind},e.isTupleTypeNode=function(e){return 182===e.kind},e.isNamedTupleMember=function(e){return 195===e.kind},e.isOptionalTypeNode=function(e){return 183===e.kind},e.isRestTypeNode=function(e){return 184===e.kind},e.isUnionTypeNode=function(e){return 185===e.kind},e.isIntersectionTypeNode=function(e){return 186===e.kind},e.isConditionalTypeNode=function(e){return 187===e.kind},e.isInferTypeNode=function(e){return 188===e.kind},e.isParenthesizedTypeNode=function(e){return 189===e.kind},e.isThisTypeNode=function(e){return 190===e.kind},e.isTypeOperatorNode=function(e){return 191===e.kind},e.isIndexedAccessTypeNode=function(e){return 192===e.kind},e.isMappedTypeNode=function(e){return 193===e.kind},e.isLiteralTypeNode=function(e){return 194===e.kind},e.isImportTypeNode=function(e){return 198===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 197===e.kind},e.isTemplateLiteralTypeNode=function(e){return 196===e.kind},e.isObjectBindingPattern=function(e){return 199===e.kind},e.isArrayBindingPattern=function(e){return 200===e.kind},e.isBindingElement=function(e){return 201===e.kind},e.isArrayLiteralExpression=function(e){return 202===e.kind},e.isObjectLiteralExpression=function(e){return 203===e.kind},e.isPropertyAccessExpression=function(e){return 204===e.kind},e.isElementAccessExpression=function(e){return 205===e.kind},e.isCallExpression=function(e){return 206===e.kind},e.isNewExpression=function(e){return 207===e.kind},e.isTaggedTemplateExpression=function(e){return 208===e.kind},e.isTypeAssertionExpression=function(e){return 209===e.kind},e.isParenthesizedExpression=function(e){return 210===e.kind},e.isFunctionExpression=function(e){return 211===e.kind},e.isArrowFunction=function(e){return 212===e.kind},e.isDeleteExpression=function(e){return 213===e.kind},e.isTypeOfExpression=function(e){return 214===e.kind},e.isVoidExpression=function(e){return 215===e.kind},e.isAwaitExpression=function(e){return 216===e.kind},e.isPrefixUnaryExpression=function(e){return 217===e.kind},e.isPostfixUnaryExpression=function(e){return 218===e.kind},e.isBinaryExpression=function(e){return 219===e.kind},e.isConditionalExpression=function(e){return 220===e.kind},e.isTemplateExpression=function(e){return 221===e.kind},e.isYieldExpression=function(e){return 222===e.kind},e.isSpreadElement=function(e){return 223===e.kind},e.isClassExpression=function(e){return 224===e.kind},e.isOmittedExpression=function(e){return 225===e.kind},e.isExpressionWithTypeArguments=function(e){return 226===e.kind},e.isAsExpression=function(e){return 227===e.kind},e.isNonNullExpression=function(e){return 228===e.kind},e.isMetaProperty=function(e){return 229===e.kind},e.isSyntheticExpression=function(e){return 230===e.kind},e.isPartiallyEmittedExpression=function(e){return 345===e.kind},e.isCommaListExpression=function(e){return 346===e.kind},e.isTemplateSpan=function(e){return 231===e.kind},e.isSemicolonClassElement=function(e){return 232===e.kind},e.isBlock=function(e){return 233===e.kind},e.isVariableStatement=function(e){return 235===e.kind},e.isEmptyStatement=function(e){return 234===e.kind},e.isExpressionStatement=function(e){return 236===e.kind},e.isIfStatement=function(e){return 237===e.kind},e.isDoStatement=function(e){return 238===e.kind},e.isWhileStatement=function(e){return 239===e.kind},e.isForStatement=function(e){return 240===e.kind},e.isForInStatement=function(e){return 241===e.kind},e.isForOfStatement=function(e){return 242===e.kind},e.isContinueStatement=function(e){return 243===e.kind},e.isBreakStatement=function(e){return 244===e.kind},e.isReturnStatement=function(e){return 245===e.kind},e.isWithStatement=function(e){return 246===e.kind},e.isSwitchStatement=function(e){return 247===e.kind},e.isLabeledStatement=function(e){return 248===e.kind},e.isThrowStatement=function(e){return 249===e.kind},e.isTryStatement=function(e){return 250===e.kind},e.isDebuggerStatement=function(e){return 251===e.kind},e.isVariableDeclaration=function(e){return 252===e.kind},e.isVariableDeclarationList=function(e){return 253===e.kind},e.isFunctionDeclaration=function(e){return 254===e.kind},e.isClassDeclaration=function(e){return 255===e.kind},e.isInterfaceDeclaration=function(e){return 256===e.kind},e.isTypeAliasDeclaration=function(e){return 257===e.kind},e.isEnumDeclaration=function(e){return 258===e.kind},e.isModuleDeclaration=function(e){return 259===e.kind},e.isModuleBlock=function(e){return 260===e.kind},e.isCaseBlock=function(e){return 261===e.kind},e.isNamespaceExportDeclaration=function(e){return 262===e.kind},e.isImportEqualsDeclaration=function(e){return 263===e.kind},e.isImportDeclaration=function(e){return 264===e.kind},e.isImportClause=function(e){return 265===e.kind},e.isNamespaceImport=function(e){return 266===e.kind},e.isNamespaceExport=function(e){return 272===e.kind},e.isNamedImports=function(e){return 267===e.kind},e.isImportSpecifier=function(e){return 268===e.kind},e.isExportAssignment=function(e){return 269===e.kind},e.isExportDeclaration=function(e){return 270===e.kind},e.isNamedExports=function(e){return 271===e.kind},e.isExportSpecifier=function(e){return 273===e.kind},e.isMissingDeclaration=function(e){return 274===e.kind},e.isNotEmittedStatement=function(e){return 344===e.kind},e.isSyntheticReference=function(e){return 349===e.kind},e.isMergeDeclarationMarker=function(e){return 347===e.kind},e.isEndOfDeclarationMarker=function(e){return 348===e.kind},e.isExternalModuleReference=function(e){return 275===e.kind},e.isJsxElement=function(e){return 276===e.kind},e.isJsxSelfClosingElement=function(e){return 277===e.kind},e.isJsxOpeningElement=function(e){return 278===e.kind},e.isJsxClosingElement=function(e){return 279===e.kind},e.isJsxFragment=function(e){return 280===e.kind},e.isJsxOpeningFragment=function(e){return 281===e.kind},e.isJsxClosingFragment=function(e){return 282===e.kind},e.isJsxAttribute=function(e){return 283===e.kind},e.isJsxAttributes=function(e){return 284===e.kind},e.isJsxSpreadAttribute=function(e){return 285===e.kind},e.isJsxExpression=function(e){return 286===e.kind},e.isCaseClause=function(e){return 287===e.kind},e.isDefaultClause=function(e){return 288===e.kind},e.isHeritageClause=function(e){return 289===e.kind},e.isCatchClause=function(e){return 290===e.kind},e.isPropertyAssignment=function(e){return 291===e.kind},e.isShorthandPropertyAssignment=function(e){return 292===e.kind},e.isSpreadAssignment=function(e){return 293===e.kind},e.isEnumMember=function(e){return 294===e.kind},e.isUnparsedPrepend=function(e){return 296===e.kind},e.isSourceFile=function(e){return 300===e.kind},e.isBundle=function(e){return 301===e.kind},e.isUnparsedSource=function(e){return 302===e.kind},e.isJSDocTypeExpression=function(e){return 304===e.kind},e.isJSDocNameReference=function(e){return 305===e.kind},e.isJSDocMemberName=function(e){return 306===e.kind},e.isJSDocLink=function(e){return 319===e.kind},e.isJSDocLinkCode=function(e){return 320===e.kind},e.isJSDocLinkPlain=function(e){return 321===e.kind},e.isJSDocAllType=function(e){return 307===e.kind},e.isJSDocUnknownType=function(e){return 308===e.kind},e.isJSDocNullableType=function(e){return 309===e.kind},e.isJSDocNonNullableType=function(e){return 310===e.kind},e.isJSDocOptionalType=function(e){return 311===e.kind},e.isJSDocFunctionType=function(e){return 312===e.kind},e.isJSDocVariadicType=function(e){return 313===e.kind},e.isJSDocNamepathType=function(e){return 314===e.kind},e.isJSDoc=function(e){return 315===e.kind},e.isJSDocTypeLiteral=function(e){return 317===e.kind},e.isJSDocSignature=function(e){return 318===e.kind},e.isJSDocAugmentsTag=function(e){return 323===e.kind},e.isJSDocAuthorTag=function(e){return 325===e.kind},e.isJSDocClassTag=function(e){return 327===e.kind},e.isJSDocCallbackTag=function(e){return 333===e.kind},e.isJSDocPublicTag=function(e){return 328===e.kind},e.isJSDocPrivateTag=function(e){return 329===e.kind},e.isJSDocProtectedTag=function(e){return 330===e.kind},e.isJSDocReadonlyTag=function(e){return 331===e.kind},e.isJSDocOverrideTag=function(e){return 332===e.kind},e.isJSDocDeprecatedTag=function(e){return 326===e.kind},e.isJSDocSeeTag=function(e){return 341===e.kind},e.isJSDocEnumTag=function(e){return 334===e.kind},e.isJSDocParameterTag=function(e){return 335===e.kind},e.isJSDocReturnTag=function(e){return 336===e.kind},e.isJSDocThisTag=function(e){return 337===e.kind},e.isJSDocTypeTag=function(e){return 338===e.kind},e.isJSDocTemplateTag=function(e){return 339===e.kind},e.isJSDocTypedefTag=function(e){return 340===e.kind},e.isJSDocUnknownTag=function(e){return 322===e.kind},e.isJSDocPropertyTag=function(e){return 342===e.kind},e.isJSDocImplementsTag=function(e){return 324===e.kind},e.isSyntaxList=function(e){return 343===e.kind}}(u||(u={})),function(e){function n(n,t,r,i){if(e.isComputedPropertyName(r))return e.setTextRange(n.createElementAccessExpression(t,r.expression),i);var a=e.setTextRange(e.isMemberName(r)?n.createPropertyAccessExpression(t,r):n.createElementAccessExpression(t,r),r);return e.getOrCreateEmitNode(a).flags|=64,a}function t(n,t){var r=e.parseNodeFactory.createIdentifier(n||"React");return e.setParent(r,e.getParseTreeNode(t)),r}function r(n,i,a){if(e.isQualifiedName(i)){var o=r(n,i.left,a),s=n.createIdentifier(e.idText(i.right));return s.escapedText=i.right.escapedText,n.createPropertyAccessExpression(o,s)}return t(e.idText(i),a)}function a(e,n,i,a){return n?r(e,n,a):e.createPropertyAccessExpression(t(i,a),"createElement")}function o(n,t){return e.isIdentifier(t)?n.createStringLiteralFromNode(t):e.isComputedPropertyName(t)?e.setParent(e.setTextRange(n.cloneNode(t.expression),t.expression),t.expression.parent):e.setParent(e.setTextRange(n.cloneNode(t),t),t.parent)}function s(n){return e.isStringLiteral(n.expression)&&"use strict"===n.expression.text}function c(e,n){switch(void 0===n&&(n=15),e.kind){case 210:return 0!=(1&n);case 209:case 227:return 0!=(2&n);case 228:return 0!=(4&n);case 345:return 0!=(8&n)}return!1}function l(e,n){for(void 0===n&&(n=15);c(e,n);)e=e.expression;return e}function u(n){return e.setStartsOnNewLine(n,!0)}function d(n){var t=e.getOriginalNode(n,e.isSourceFile),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function p(n,t,r,i,a){if(r.importHelpers&&e.isEffectiveExternalModule(t,r)){var o=d(t);if(o)return o;var s=e.getEmitModuleKind(r),c=(i||r.esModuleInterop&&a)&&s!==e.ModuleKind.System&&s<e.ModuleKind.ES2015;if(!c){var l=e.getEmitHelpers(t);if(l)for(var u=0,p=l;u<p.length;u++)if(!p[u].scoped){c=!0;break}}if(c){var f=e.getOriginalNode(t,e.isSourceFile),m=e.getOrCreateEmitNode(f);return m.externalHelpersModuleName||(m.externalHelpersModuleName=n.createUniqueName(e.externalHelpersModuleNameText))}}}function f(n,t,r,i){if(t)return t.moduleName?n.createStringLiteral(t.moduleName):!t.isDeclarationFile&&e.outFile(i)?n.createStringLiteral(e.getExternalModuleNameFromPath(r,t.fileName)):void 0}function m(n){if(e.isDeclarationBindingElement(n))return n.name;if(!e.isObjectLiteralElementLike(n))return e.isAssignmentExpression(n,!0)?m(n.left):e.isSpreadElement(n)?m(n.expression):n;switch(n.kind){case 291:return m(n.initializer);case 292:return n.name;case 293:return m(n.expression)}}function _(n){switch(n.kind){case 201:if(n.propertyName){var t=n.propertyName;return e.isPrivateIdentifier(t)?e.Debug.failBadSyntaxKind(t):e.isComputedPropertyName(t)&&g(t.expression)?t.expression:t}break;case 291:if(n.name)return t=n.name,e.isPrivateIdentifier(t)?e.Debug.failBadSyntaxKind(t):e.isComputedPropertyName(t)&&g(t.expression)?t.expression:t;break;case 293:return n.name&&e.isPrivateIdentifier(n.name)?e.Debug.failBadSyntaxKind(n.name):n.name}var r=m(n);if(r&&e.isPropertyName(r))return r}function g(e){var n=e.kind;return 10===n||8===n}var y;e.createEmptyExports=function(e){return e.createExportDeclaration(void 0,void 0,!1,e.createNamedExports([]),void 0)},e.createMemberAccessForPropertyName=n,e.createJsxFactoryExpression=a,e.createExpressionForJsxElement=function(n,t,r,i,a,o){var s=[r];if(i&&s.push(i),a&&a.length>0)if(i||s.push(n.createNull()),a.length>1)for(var c=0,l=a;c<l.length;c++){var d=l[c];u(d),s.push(d)}else s.push(a[0]);return e.setTextRange(n.createCallExpression(t,void 0,s),o)},e.createExpressionForJsxFragment=function(n,i,o,s,c,l,d){var p=[function(e,n,i,a){return n?r(e,n,a):e.createPropertyAccessExpression(t(i,a),"Fragment")}(n,o,s,l),n.createNull()];if(c&&c.length>0)if(c.length>1)for(var f=0,m=c;f<m.length;f++){var _=m[f];u(_),p.push(_)}else p.push(c[0]);return e.setTextRange(n.createCallExpression(a(n,i,s,l),void 0,p),d)},e.createForOfBindingStatement=function(n,t,r){if(e.isVariableDeclarationList(t)){var i=e.first(t.declarations),a=n.updateVariableDeclaration(i,i.name,void 0,void 0,r);return e.setTextRange(n.createVariableStatement(void 0,n.updateVariableDeclarationList(t,[a])),t)}var o=e.setTextRange(n.createAssignment(t,r),t);return e.setTextRange(n.createExpressionStatement(o),t)},e.insertLeadingStatement=function(n,t,r){return e.isBlock(t)?n.updateBlock(t,e.setTextRange(n.createNodeArray(i([r],t.statements,!0)),t.statements)):n.createBlock(n.createNodeArray([t,r]),!0)},e.createExpressionFromEntityName=function n(t,r){if(e.isQualifiedName(r)){var i=n(t,r.left),a=e.setParent(e.setTextRange(t.cloneNode(r.right),r.right),r.right.parent);return e.setTextRange(t.createPropertyAccessExpression(i,a),r)}return e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)},e.createExpressionForPropertyName=o,e.createExpressionForObjectLiteralElementLike=function(t,r,i,a){switch(i.name&&e.isPrivateIdentifier(i.name)&&e.Debug.failBadSyntaxKind(i.name,"Private identifiers are not allowed in object literals."),i.kind){case 170:case 171:return function(n,t,r,i,a){var s=e.getAllAccessorDeclarations(t,r),c=s.firstAccessor,l=s.getAccessor,u=s.setAccessor;if(r===c)return e.setTextRange(n.createObjectDefinePropertyCall(i,o(n,r.name),n.createPropertyDescriptor({enumerable:n.createFalse(),configurable:!0,get:l&&e.setTextRange(e.setOriginalNode(n.createFunctionExpression(l.modifiers,void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&e.setTextRange(e.setOriginalNode(n.createFunctionExpression(u.modifiers,void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!a)),c)}(t,r.properties,i,a,!!r.multiLine);case 291:return function(t,r,i){return e.setOriginalNode(e.setTextRange(t.createAssignment(n(t,i,r.name,r.name),r.initializer),r),r)}(t,i,a);case 292:return function(t,r,i){return e.setOriginalNode(e.setTextRange(t.createAssignment(n(t,i,r.name,r.name),t.cloneNode(r.name)),r),r)}(t,i,a);case 167:return function(t,r,i){return e.setOriginalNode(e.setTextRange(t.createAssignment(n(t,i,r.name,r.name),e.setOriginalNode(e.setTextRange(t.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,void 0,r.parameters,void 0,r.body),r),r)),r),r)}(t,i,a)}},e.expandPreOrPostfixIncrementOrDecrementExpression=function(n,t,r,i,a){var o=t.operator;e.Debug.assert(45===o||46===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var s=n.createTempVariable(i);r=n.createAssignment(s,r),e.setTextRange(r,t.operand);var c=e.isPrefixUnaryExpression(t)?n.createPrefixUnaryExpression(o,s):n.createPostfixUnaryExpression(s,o);return e.setTextRange(c,t),a&&(c=n.createAssignment(a,c),e.setTextRange(c,t)),r=n.createComma(r,c),e.setTextRange(r,t),e.isPostfixUnaryExpression(t)&&(r=n.createComma(r,s),e.setTextRange(r,t)),r},e.isInternalName=function(n){return 0!=(32768&e.getEmitFlags(n))},e.isLocalName=function(n){return 0!=(16384&e.getEmitFlags(n))},e.isExportName=function(n){return 0!=(8192&e.getEmitFlags(n))},e.findUseStrictPrologue=function(n){for(var t=0,r=n;t<r.length;t++){var i=r[t];if(!e.isPrologueDirective(i))break;if(s(i))return i}},e.startsWithUseStrict=function(n){var t=e.firstOrUndefined(n);return void 0!==t&&e.isPrologueDirective(t)&&s(t)},e.isCommaSequence=function(e){return 219===e.kind&&27===e.operatorToken.kind||346===e.kind},e.isOuterExpression=c,e.skipOuterExpressions=l,e.skipAssertions=function(e){return l(e,6)},e.startOnNewLine=u,e.getExternalHelpersModuleName=d,e.hasRecordedExternalHelpers=function(n){var t=e.getOriginalNode(n,e.isSourceFile),r=t&&t.emitNode;return!(!r||!r.externalHelpersModuleName&&!r.externalHelpers)},e.createExternalHelpersImportDeclarationIfNeeded=function(n,t,r,i,a,o,s){if(i.importHelpers&&e.isEffectiveExternalModule(r,i)){var c=void 0,l=e.getEmitModuleKind(i);if(l>=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext){var u=e.getEmitHelpers(r);if(u){for(var d=[],f=0,m=u;f<m.length;f++){var _=m[f];if(!_.scoped){var g=_.importName;g&&e.pushIfUnique(d,g)}}if(e.some(d)){d.sort(e.compareStringsCaseSensitive),c=n.createNamedImports(e.map(d,(function(i){return e.isFileLevelUniqueName(r,i)?n.createImportSpecifier(void 0,n.createIdentifier(i)):n.createImportSpecifier(n.createIdentifier(i),t.getUnscopedHelperName(i))})));var y=e.getOriginalNode(r,e.isSourceFile);e.getOrCreateEmitNode(y).externalHelpers=!0}}}else{var h=p(n,r,i,a,o||s);h&&(c=n.createNamespaceImport(h))}if(c){var v=n.createImportDeclaration(void 0,void 0,n.createImportClause(!1,void 0,c),n.createStringLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(v,67108864),v}}},e.getOrCreateExternalHelpersModuleNameIfNeeded=p,e.getLocalNameForExternalImport=function(n,t,r){var i=e.getNamespaceDeclarationNode(t);if(i&&!e.isDefaultImport(t)&&!e.isExportNamespaceAsDefaultDeclaration(t)){var a=i.name;return e.isGeneratedIdentifier(a)?a:n.createIdentifier(e.getSourceTextOfNodeFromSourceFile(r,a)||e.idText(a))}return 264===t.kind&&t.importClause||270===t.kind&&t.moduleSpecifier?n.getGeneratedNameForNode(t):void 0},e.getExternalModuleNameLiteral=function(n,t,r,i,a,o){var s=e.getExternalModuleName(t);if(s&&e.isStringLiteral(s))return function(e,n,t,r,i){return f(t,r.getExternalModuleFileFromDeclaration(e),n,i)}(t,i,n,a,o)||function(e,n,t){var r=t.renamedDependencies&&t.renamedDependencies.get(n.text);return r?e.createStringLiteral(r):void 0}(n,s,r)||n.cloneNode(s)},e.tryGetModuleNameFromFile=f,e.getInitializerOfBindingOrAssignmentElement=function n(t){if(e.isDeclarationBindingElement(t))return t.initializer;if(e.isPropertyAssignment(t)){var r=t.initializer;return e.isAssignmentExpression(r,!0)?r.right:void 0}return e.isShorthandPropertyAssignment(t)?t.objectAssignmentInitializer:e.isAssignmentExpression(t,!0)?t.right:e.isSpreadElement(t)?n(t.expression):void 0},e.getTargetOfBindingOrAssignmentElement=m,e.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 162:case 201:return e.dotDotDotToken;case 223:case 293:return e}},e.getPropertyNameOfBindingOrAssignmentElement=function(n){var t=_(n);return e.Debug.assert(!!t||e.isSpreadAssignment(n),"Invalid property name for binding element."),t},e.tryGetPropertyNameOfBindingOrAssignmentElement=_,e.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 199:case 200:case 202:return e.elements;case 203:return e.properties}},e.getJSDocTypeAliasName=function(n){if(n)for(var t=n;;){if(e.isIdentifier(t)||!t.body)return e.isIdentifier(t)?t:t.name;t=t.body}},e.canHaveModifiers=function(e){var n=e.kind;return 162===n||164===n||165===n||166===n||167===n||169===n||170===n||171===n||174===n||211===n||212===n||224===n||235===n||254===n||255===n||256===n||257===n||258===n||259===n||263===n||264===n||269===n||270===n},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),e.isLiteralTypeLikeExpression=function(n){var t=n.kind;return 104===t||110===t||95===t||e.isLiteralExpression(n)||e.isPrefixUnaryExpression(n)},e.isBinaryOperatorToken=function(n){return function(n){return 60===n||function(e){return function(e){return 55===e||56===e}(e)||function(e){return function(e){return 50===e||51===e||52===e}(e)||function(e){return function(e){return 34===e||36===e||35===e||37===e}(e)||function(e){return function(e){return 29===e||32===e||31===e||33===e||102===e||101===e}(e)||function(e){return function(e){return 47===e||48===e||49===e}(e)||function(e){return function(e){return 39===e||40===e}(e)||function(e){return function(e){return 42===e}(e)||function(e){return 41===e||43===e||44===e}(e)}(e)}(e)}(e)}(e)}(e)}(e)}(n)||e.isAssignmentOperator(n)}(t=n.kind)||27===t;var t},function(n){function t(n,r,i,a,o,s,l){var u=r>0?o[r-1]:void 0;return e.Debug.assertEqual(i[r],t),o[r]=n.onEnter(a[r],u,l),i[r]=c(n,t),r}function r(n,t,i,a,o,s,d){e.Debug.assertEqual(i[t],r),e.Debug.assertIsDefined(n.onLeft),i[t]=c(n,r);var p=n.onLeft(a[t].left,o[t],a[t]);return p?(u(t,a,p),l(t,i,a,o,p)):t}function i(n,t,r,a,o,s,l){return e.Debug.assertEqual(r[t],i),e.Debug.assertIsDefined(n.onOperator),r[t]=c(n,i),n.onOperator(a[t].operatorToken,o[t],a[t]),t}function a(n,t,r,i,o,s,d){e.Debug.assertEqual(r[t],a),e.Debug.assertIsDefined(n.onRight),r[t]=c(n,a);var p=n.onRight(i[t].right,o[t],i[t]);return p?(u(t,i,p),l(t,r,i,o,p)):t}function o(n,t,r,i,a,s,l){e.Debug.assertEqual(r[t],o),r[t]=c(n,o);var u=n.onExit(i[t],a[t]);if(t>0){if(t--,n.foldState){var d=r[t]===o?"right":"left";a[t]=n.foldState(a[t],u,d)}}else s.value=u;return t}function s(n,t,r,i,a,o,c){return e.Debug.assertEqual(r[t],s),t}function c(n,c){switch(c){case t:if(n.onLeft)return r;case r:if(n.onOperator)return i;case i:if(n.onRight)return a;case a:return o;case o:case s:return s;default:e.Debug.fail("Invalid state")}}function l(e,n,r,i,a){return n[++e]=t,r[e]=a,i[e]=void 0,e}function u(n,t,r){if(e.Debug.shouldAssert(2))for(;n>=0;)e.Debug.assert(t[n]!==r,"Circular traversal detected."),n--}n.enter=t,n.left=r,n.operator=i,n.right=a,n.exit=o,n.done=s,n.nextState=c}(y||(y={}));var h=function(e,n,t,r,i,a){this.onEnter=e,this.onLeft=n,this.onOperator=t,this.onRight=r,this.onExit=i,this.foldState=a};e.createBinaryExpressionTrampoline=function(n,t,r,i,a,o){var s=new h(n,t,r,i,a,o);return function(n,t){for(var r={value:void 0},i=[y.enter],a=[n],o=[void 0],c=0;i[c]!==y.done;)c=i[c](s,c,i,a,o,r,t);return e.Debug.assertEqual(c,0),r.value}}}(u||(u={})),function(e){e.setTextRange=function(n,t){return t?e.setTextRangePosEnd(n,t.pos,t.end):n}}(u||(u={})),function(e){var n,t,r,a,o,s,c,l,u;function d(e,n){return n&&e(n)}function p(e,n,t){if(t){if(n)return n(t);for(var r=0,i=t;r<i.length;r++){var a=e(i[r]);if(a)return a}}}function f(e,n){return 42===e.charCodeAt(n+1)&&42===e.charCodeAt(n+2)&&47!==e.charCodeAt(n+3)}function m(n,t,r){if(n&&!(n.kind<=158))switch(n.kind){case 159:case 306:return d(t,n.left)||d(t,n.right);case 161:return d(t,n.name)||d(t,n.constraint)||d(t,n.default)||d(t,n.expression);case 292:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.name)||d(t,n.questionToken)||d(t,n.exclamationToken)||d(t,n.equalsToken)||d(t,n.objectAssignmentInitializer);case 293:case 210:case 213:case 214:case 215:case 216:case 228:case 223:case 236:case 245:case 249:case 163:case 160:case 275:case 285:case 345:return d(t,n.expression);case 162:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.dotDotDotToken)||d(t,n.name)||d(t,n.questionToken)||d(t,n.type)||d(t,n.initializer);case 165:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.name)||d(t,n.questionToken)||d(t,n.exclamationToken)||d(t,n.type)||d(t,n.initializer);case 164:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.name)||d(t,n.questionToken)||d(t,n.type)||d(t,n.initializer);case 291:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.name)||d(t,n.questionToken)||d(t,n.initializer);case 252:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.name)||d(t,n.exclamationToken)||d(t,n.type)||d(t,n.initializer);case 201:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.dotDotDotToken)||d(t,n.propertyName)||d(t,n.name)||d(t,n.initializer);case 177:case 178:case 172:case 173:case 174:return p(t,r,n.decorators)||p(t,r,n.modifiers)||p(t,r,n.typeParameters)||p(t,r,n.parameters)||d(t,n.type);case 167:case 166:case 169:case 170:case 171:case 211:case 254:case 212:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.asteriskToken)||d(t,n.name)||d(t,n.questionToken)||d(t,n.exclamationToken)||p(t,r,n.typeParameters)||p(t,r,n.parameters)||d(t,n.type)||d(t,n.equalsGreaterThanToken)||d(t,n.body);case 168:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.body);case 176:return d(t,n.typeName)||p(t,r,n.typeArguments);case 175:return d(t,n.assertsModifier)||d(t,n.parameterName)||d(t,n.type);case 179:return d(t,n.exprName);case 180:return p(t,r,n.members);case 181:return d(t,n.elementType);case 182:case 199:case 200:case 202:case 267:case 271:case 346:return p(t,r,n.elements);case 185:case 186:case 289:return p(t,r,n.types);case 187:return d(t,n.checkType)||d(t,n.extendsType)||d(t,n.trueType)||d(t,n.falseType);case 188:return d(t,n.typeParameter);case 198:return d(t,n.argument)||d(t,n.qualifier)||p(t,r,n.typeArguments);case 189:case 191:case 183:case 184:case 304:case 310:case 309:case 311:case 313:return d(t,n.type);case 192:return d(t,n.objectType)||d(t,n.indexType);case 193:return d(t,n.readonlyToken)||d(t,n.typeParameter)||d(t,n.nameType)||d(t,n.questionToken)||d(t,n.type);case 194:return d(t,n.literal);case 195:return d(t,n.dotDotDotToken)||d(t,n.name)||d(t,n.questionToken)||d(t,n.type);case 203:case 284:return p(t,r,n.properties);case 204:return d(t,n.expression)||d(t,n.questionDotToken)||d(t,n.name);case 205:return d(t,n.expression)||d(t,n.questionDotToken)||d(t,n.argumentExpression);case 206:case 207:return d(t,n.expression)||d(t,n.questionDotToken)||p(t,r,n.typeArguments)||p(t,r,n.arguments);case 208:return d(t,n.tag)||d(t,n.questionDotToken)||p(t,r,n.typeArguments)||d(t,n.template);case 209:return d(t,n.type)||d(t,n.expression);case 217:case 218:return d(t,n.operand);case 222:return d(t,n.asteriskToken)||d(t,n.expression);case 219:return d(t,n.left)||d(t,n.operatorToken)||d(t,n.right);case 227:return d(t,n.expression)||d(t,n.type);case 229:case 262:case 266:case 272:case 305:case 319:case 320:case 321:return d(t,n.name);case 220:return d(t,n.condition)||d(t,n.questionToken)||d(t,n.whenTrue)||d(t,n.colonToken)||d(t,n.whenFalse);case 233:case 260:case 288:return p(t,r,n.statements);case 300:return p(t,r,n.statements)||d(t,n.endOfFileToken);case 235:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.declarationList);case 253:return p(t,r,n.declarations);case 237:return d(t,n.expression)||d(t,n.thenStatement)||d(t,n.elseStatement);case 238:return d(t,n.statement)||d(t,n.expression);case 239:case 246:return d(t,n.expression)||d(t,n.statement);case 240:return d(t,n.initializer)||d(t,n.condition)||d(t,n.incrementor)||d(t,n.statement);case 241:return d(t,n.initializer)||d(t,n.expression)||d(t,n.statement);case 242:return d(t,n.awaitModifier)||d(t,n.initializer)||d(t,n.expression)||d(t,n.statement);case 243:case 244:return d(t,n.label);case 247:return d(t,n.expression)||d(t,n.caseBlock);case 261:return p(t,r,n.clauses);case 287:return d(t,n.expression)||p(t,r,n.statements);case 248:return d(t,n.label)||d(t,n.statement);case 250:return d(t,n.tryBlock)||d(t,n.catchClause)||d(t,n.finallyBlock);case 290:return d(t,n.variableDeclaration)||d(t,n.block);case 255:case 224:case 256:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.name)||p(t,r,n.typeParameters)||p(t,r,n.heritageClauses)||p(t,r,n.members);case 257:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.name)||p(t,r,n.typeParameters)||d(t,n.type);case 258:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.name)||p(t,r,n.members);case 294:case 283:return d(t,n.name)||d(t,n.initializer);case 259:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.name)||d(t,n.body);case 263:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.name)||d(t,n.moduleReference);case 264:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.importClause)||d(t,n.moduleSpecifier);case 265:return d(t,n.name)||d(t,n.namedBindings);case 270:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.exportClause)||d(t,n.moduleSpecifier);case 268:case 273:return d(t,n.propertyName)||d(t,n.name);case 269:return p(t,r,n.decorators)||p(t,r,n.modifiers)||d(t,n.expression);case 221:case 196:return d(t,n.head)||p(t,r,n.templateSpans);case 231:return d(t,n.expression)||d(t,n.literal);case 197:return d(t,n.type)||d(t,n.literal);case 226:return d(t,n.expression)||p(t,r,n.typeArguments);case 274:return p(t,r,n.decorators);case 276:return d(t,n.openingElement)||p(t,r,n.children)||d(t,n.closingElement);case 280:return d(t,n.openingFragment)||p(t,r,n.children)||d(t,n.closingFragment);case 277:case 278:return d(t,n.tagName)||p(t,r,n.typeArguments)||d(t,n.attributes);case 286:return d(t,n.dotDotDotToken)||d(t,n.expression);case 279:return d(t,n.tagName);case 312:return p(t,r,n.parameters)||d(t,n.type);case 315:return("string"==typeof n.comment?void 0:p(t,r,n.comment))||p(t,r,n.tags);case 341:return d(t,n.tagName)||d(t,n.name)||("string"==typeof n.comment?void 0:p(t,r,n.comment));case 335:case 342:return d(t,n.tagName)||(n.isNameFirst?d(t,n.name)||d(t,n.typeExpression)||("string"==typeof n.comment?void 0:p(t,r,n.comment)):d(t,n.typeExpression)||d(t,n.name)||("string"==typeof n.comment?void 0:p(t,r,n.comment)));case 325:case 322:case 327:case 328:case 329:case 330:case 331:case 326:return d(t,n.tagName)||("string"==typeof n.comment?void 0:p(t,r,n.comment));case 324:case 323:return d(t,n.tagName)||d(t,n.class)||("string"==typeof n.comment?void 0:p(t,r,n.comment));case 339:return d(t,n.tagName)||d(t,n.constraint)||p(t,r,n.typeParameters)||("string"==typeof n.comment?void 0:p(t,r,n.comment));case 340:return d(t,n.tagName)||(n.typeExpression&&304===n.typeExpression.kind?d(t,n.typeExpression)||d(t,n.fullName)||("string"==typeof n.comment?void 0:p(t,r,n.comment)):d(t,n.fullName)||d(t,n.typeExpression)||("string"==typeof n.comment?void 0:p(t,r,n.comment)));case 333:return d(t,n.tagName)||d(t,n.fullName)||d(t,n.typeExpression)||("string"==typeof n.comment?void 0:p(t,r,n.comment));case 336:case 338:case 337:case 334:return d(t,n.tagName)||d(t,n.typeExpression)||("string"==typeof n.comment?void 0:p(t,r,n.comment));case 318:return e.forEach(n.typeParameters,t)||e.forEach(n.parameters,t)||d(t,n.type);case 317:return e.forEach(n.jsDocPropertyTags,t)}}function _(e){var n=[];return m(e,t,t),n;function t(e){n.unshift(e)}}function g(e){return void 0!==e.externalModuleIndicator}function y(n){return e.fileExtensionIs(n,".d.ts")}function h(n,t){for(var r=[],i=0,a=e.getLeadingCommentRanges(t,0)||e.emptyArray;i<a.length;i++){var o=a[i];x(r,o,t.substring(o.pos,o.end))}n.pragmas=new e.Map;for(var s=0,c=r;s<c.length;s++){var l=c[s];if(n.pragmas.has(l.name)){var u=n.pragmas.get(l.name);u instanceof Array?u.push(l.args):n.pragmas.set(l.name,[u,l.args])}else n.pragmas.set(l.name,l.args)}}function v(n,t){n.checkJsDirective=void 0,n.referencedFiles=[],n.typeReferenceDirectives=[],n.libReferenceDirectives=[],n.amdDependencies=[],n.hasNoDefaultLib=!1,n.pragmas.forEach((function(r,i){switch(i){case"reference":var a=n.referencedFiles,o=n.typeReferenceDirectives,s=n.libReferenceDirectives;e.forEach(e.toArray(r),(function(r){var i=r.arguments,c=i.types,l=i.lib,u=i.path;r.arguments["no-default-lib"]?n.hasNoDefaultLib=!0:c?o.push({pos:c.pos,end:c.end,fileName:c.value}):l?s.push({pos:l.pos,end:l.end,fileName:l.value}):u?a.push({pos:u.pos,end:u.end,fileName:u.value}):t(r.range.pos,r.range.end-r.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)}));break;case"amd-dependency":n.amdDependencies=e.map(e.toArray(r),(function(e){return{name:e.arguments.name,path:e.arguments.path}}));break;case"amd-module":if(r instanceof Array)for(var c=0,l=r;c<l.length;c++){var u=l[c];n.moduleName&&t(u.range.pos,u.range.end-u.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),n.moduleName=u.arguments.name}else n.moduleName=r.arguments.name;break;case"ts-nocheck":case"ts-check":e.forEach(e.toArray(r),(function(e){(!n.checkJsDirective||e.range.pos>n.checkJsDirective.pos)&&(n.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}}))}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(n||(n={})),function(e){e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"}(t||(t={})),e.parseBaseNodeFactory={createBaseSourceFileNode:function(n){return new(c||(c=e.objectAllocator.getSourceFileConstructor()))(n,-1,-1)},createBaseIdentifierNode:function(n){return new(o||(o=e.objectAllocator.getIdentifierConstructor()))(n,-1,-1)},createBasePrivateIdentifierNode:function(n){return new(s||(s=e.objectAllocator.getPrivateIdentifierConstructor()))(n,-1,-1)},createBaseTokenNode:function(n){return new(a||(a=e.objectAllocator.getTokenConstructor()))(n,-1,-1)},createBaseNode:function(n){return new(r||(r=e.objectAllocator.getNodeConstructor()))(n,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=f,e.forEachChild=m,e.forEachChildRecursively=function(n,t,r){for(var i=_(n),a=[];a.length<i.length;)a.push(n);for(;0!==i.length;){var o=i.pop(),s=a.pop();if(e.isArray(o)){if(r&&(l=r(o,s))){if("skip"===l)continue;return l}for(var c=o.length-1;c>=0;--c)i.push(o[c]),a.push(s)}else{var l;if(l=t(o,s)){if("skip"===l)continue;return l}if(o.kind>=159)for(var u=0,d=_(o);u<d.length;u++){var p=d[u];i.push(p),a.push(o)}}}},e.createSourceFile=function(n,t,r,i,a){var o;return void 0===i&&(i=!1),null===e.tracing||void 0===e.tracing||e.tracing.push("parse","createSourceFile",{path:n},!0),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(n),o=100===r?l.parseSourceFile(n,t,r,void 0,i,6):l.parseSourceFile(n,t,r,void 0,i,a),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o},e.parseIsolatedEntityName=function(e,n){return l.parseIsolatedEntityName(e,n)},e.parseJsonText=function(e,n){return l.parseJsonText(e,n)},e.isExternalModule=g,e.updateSourceFile=function(e,n,t,r){void 0===r&&(r=!1);var i=u.updateSourceFile(e,n,t,r);return i.flags|=3145728&e.flags,i},e.parseIsolatedJSDocComment=function(e,n,t){var r=l.JSDocParser.parseIsolatedJSDocComment(e,n,t);return r&&r.jsDoc&&l.fixupParentReferences(r.jsDoc),r},e.parseJSDocTypeExpressionForTests=function(e,n,t){return l.JSDocParser.parseJSDocTypeExpressionForTests(e,n,t)},function(n){var t,r,a,o,s,c=e.createScanner(99,!0),l=20480;function d(e){return I++,e}var p,_,b,E,T,S,x,L,A,C,I,N,k,R,O,P,w,M={createBaseSourceFileNode:function(e){return d(new s(e,0,0))},createBaseIdentifierNode:function(e){return d(new a(e,0,0))},createBasePrivateIdentifierNode:function(e){return d(new o(e,0,0))},createBaseTokenNode:function(e){return d(new r(e,0,0))},createBaseNode:function(e){return d(new t(e,0,0))}},F=e.createNodeFactory(11,M),G=!0,B=!1;function U(n,t,r,i,a){void 0===r&&(r=2),void 0===a&&(a=!1),V(n,t,r,i,6),_=w,ve();var o,s,c=me();if(1===ge())o=Je([],c,c),s=Ke();else{for(var l=void 0;1!==ge();){var u=void 0;switch(ge()){case 22:u=Lr();break;case 110:case 95:case 104:u=Ke();break;case 40:u=Ce((function(){return 8===ve()&&58!==ve()}))?er():Ar();break;case 8:case 10:if(Ce((function(){return 58!==ve()}))){u=Fn();break}default:u=Ar()}l&&e.isArray(l)?l.push(u):l?l=[l,u]:(l=u,1!==ge()&&le(e.Diagnostics.Unexpected_token))}var d=e.isArray(l)?qe(F.createArrayLiteralExpression(l),c):e.Debug.checkDefined(l),p=F.createExpressionStatement(d);qe(p,c),o=Je([p],c),s=je(1,e.Diagnostics.Unexpected_token)}var f=q(n,2,6,!1,o,s,_);a&&J(f),f.nodeCount=I,f.identifierCount=R,f.identifiers=N,f.parseDiagnostics=e.attachFileToDiagnostics(x,f),L&&(f.jsDocDiagnostics=e.attachFileToDiagnostics(L,f));var m=f;return j(),m}function V(n,i,l,u,d){switch(t=e.objectAllocator.getNodeConstructor(),r=e.objectAllocator.getTokenConstructor(),a=e.objectAllocator.getIdentifierConstructor(),o=e.objectAllocator.getPrivateIdentifierConstructor(),s=e.objectAllocator.getSourceFileConstructor(),p=e.normalizePath(n),b=i,E=l,A=u,T=d,S=e.getLanguageVariant(d),x=[],O=0,N=new e.Map,k=new e.Map,R=0,I=0,_=0,G=!0,T){case 1:case 2:w=131072;break;case 6:w=33685504;break;default:w=0}B=!1,c.setText(b),c.setOnError(fe),c.setScriptTarget(E),c.setLanguageVariant(S)}function j(){c.clearCommentDirectives(),c.setText(""),c.setOnError(void 0),b=void 0,E=void 0,A=void 0,T=void 0,S=void 0,_=0,x=void 0,L=void 0,O=0,N=void 0,P=void 0,G=!0}function K(n,t,r){var i=y(p);i&&(w|=8388608),_=w,ve();var a=En(0,jr);e.Debug.assert(1===ge());var o=z(Ke()),s=q(p,n,r,i,a,o,_);return h(s,b),v(s,(function(n,t,r){x.push(e.createDetachedDiagnostic(p,n,t,r))})),s.commentDirectives=c.getCommentDirectives(),s.nodeCount=I,s.identifierCount=R,s.identifiers=N,s.parseDiagnostics=e.attachFileToDiagnostics(x,s),L&&(s.jsDocDiagnostics=e.attachFileToDiagnostics(L,s)),t&&J(s),s}function H(e,n){return n?z(e):e}n.parseSourceFile=function(n,t,r,i,a,o){var s;if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(n,o))){var c=U(n,t,r,i,a);return e.convertToObjectWorker(c,null===(s=c.statements[0])||void 0===s?void 0:s.expression,c.parseDiagnostics,!1,void 0,void 0),c.referencedFiles=e.emptyArray,c.typeReferenceDirectives=e.emptyArray,c.libReferenceDirectives=e.emptyArray,c.amdDependencies=e.emptyArray,c.hasNoDefaultLib=!1,c.pragmas=e.emptyMap,c}V(n,t,r,i,o);var l=K(r,a,o);return j(),l},n.parseIsolatedEntityName=function(e,n){V("",e,n,void 0,1),ve();var t=Nn(!0),r=1===ge()&&!x.length;return j(),r?t:void 0},n.parseJsonText=U;var W=!1;function z(n){e.Debug.assert(!n.jsDoc);var t=e.mapDefined(e.getJSDocCommentRanges(n,b),(function(e){return we.parseJSDocComment(n,e.pos,e.end-e.pos)}));return t.length&&(n.jsDoc=t),W&&(W=!1,n.flags|=134217728),n}function J(n){e.setParentRecursive(n,!0)}function q(n,t,r,i,a,o,s){var l=F.createSourceFile(a,o,s);return e.setTextRangePosWidth(l,0,b.length),function(n){n.externalModuleIndicator=e.forEach(n.statements,Pi)||function(e){return 2097152&e.flags?wi(e):void 0}(n)}(l),!i&&g(l)&&16777216&l.transformFlags&&(l=function(n){var t=A,r=u.createSyntaxCursor(n);A={currentNode:function(e){var n=r.currentNode(e);return G&&n&&f(n)&&(n.intersectsChange=!0),n}};var i=[],a=x;x=[];for(var o=0,s=m(n.statements,0),l=function(){var t=n.statements[o],r=n.statements[s];e.addRange(i,n.statements,o,s),o=_(n.statements,s);var l=e.findIndex(a,(function(e){return e.start>=t.pos})),u=l>=0?e.findIndex(a,(function(e){return e.start>=r.pos}),l):-1;l>=0&&e.addRange(x,a,l,u>=0?u:void 0),Ae((function(){var e=w;for(w|=32768,c.setTextPos(r.pos),ve();1!==ge();){var t=c.getStartPos(),a=Tn(0,jr);if(i.push(a),t===c.getStartPos()&&ve(),o>=0){var s=n.statements[o];if(a.end===s.pos)break;a.end>s.pos&&(o=_(n.statements,o+1))}}w=e}),2),s=o>=0?m(n.statements,o):-1};-1!==s;)l();if(o>=0){var d=n.statements[o];e.addRange(i,n.statements,o);var p=e.findIndex(a,(function(e){return e.start>=d.pos}));p>=0&&e.addRange(x,a,p)}return A=t,F.updateSourceFile(n,e.setTextRange(F.createNodeArray(i),n.statements));function f(e){return!(32768&e.flags||!(16777216&e.transformFlags))}function m(e,n){for(var t=n;t<e.length;t++)if(f(e[t]))return t;return-1}function _(e,n){for(var t=n;t<e.length;t++)if(!f(e[t]))return t;return-1}}(l)),l.text=b,l.bindDiagnostics=[],l.bindSuggestionDiagnostics=void 0,l.languageVersion=t,l.fileName=n,l.languageVariant=e.getLanguageVariant(r),l.isDeclarationFile=i,l.scriptKind=r,l}function X(e,n){e?w|=n:w&=~n}function Y(e){X(e,4096)}function Q(e){X(e,8192)}function Z(e){X(e,16384)}function $(e){X(e,32768)}function ee(e,n){var t=e&w;if(t){X(!1,t);var r=n();return X(!0,t),r}return n()}function ne(e,n){var t=e&~w;if(t){X(!0,t);var r=n();return X(!1,t),r}return n()}function te(e){return ee(4096,e)}function re(e){return ne(32768,e)}function ie(e){return 0!=(w&e)}function ae(){return ie(8192)}function oe(){return ie(4096)}function se(){return ie(16384)}function ce(){return ie(32768)}function le(e,n){de(c.getTokenPos(),c.getTextPos(),e,n)}function ue(n,t,r,i){var a=e.lastOrUndefined(x);a&&n===a.start||x.push(e.createDetachedDiagnostic(p,n,t,r,i)),B=!0}function de(e,n,t,r){ue(e,n-e,t,r)}function pe(e,n,t){de(e.pos,e.end,n,t)}function fe(e,n){ue(c.getTextPos(),n,e)}function me(){return c.getStartPos()}function _e(){return c.hasPrecedingJSDocComment()}function ge(){return C}function ye(){return C=c.scan()}function he(e){return ve(),e()}function ve(){return e.isKeyword(C)&&(c.hasUnicodeEscape()||c.hasExtendedUnicodeEscape())&&de(c.getTokenPos(),c.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),ye()}function be(){return C=c.scanJsDocToken()}function Ee(){return C=c.reScanGreaterToken()}function Te(){return C=c.reScanTemplateHeadOrNoSubstitutionTemplate()}function Se(){return C=c.reScanLessThanToken()}function xe(){return C=c.reScanHashToken()}function Le(){return C=c.scanJsxIdentifier()}function De(){return C=c.scanJsxToken()}function Ae(n,t){var r=C,i=x.length,a=B,o=w,s=0!==t?c.lookAhead(n):c.tryScan(n);return e.Debug.assert(o===w),s&&0===t||(C=r,2!==t&&(x.length=i),B=a),s}function Ce(e){return Ae(e,1)}function Ie(e){return Ae(e,0)}function Ne(){return 79===ge()||ge()>116}function ke(){return 79===ge()||(125!==ge()||!ae())&&(131!==ge()||!ce())&&ge()>116}function Re(n,t,r){return void 0===r&&(r=!0),ge()===n?(r&&ve(),!0):(t?le(t):le(e.Diagnostics._0_expected,e.tokenToString(n)),!1)}n.fixupParentReferences=J;var Oe,Pe,we,Me=Object.keys(e.textToKeywordObj).filter((function(e){return e.length>2}));function Fe(n){var t;if(e.isTaggedTemplateExpression(n))de(e.skipTrivia(b,n.template.pos),n.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var r=e.isIdentifier(n)?e.idText(n):void 0;if(r&&e.isIdentifierText(r,E)){var i=e.skipTrivia(b,n.pos);switch(r){case"const":case"let":case"var":return void de(i,n.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Ge(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void de(i,c.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void Ge(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Ge(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var a=null!==(t=e.getSpellingSuggestion(r,Me,(function(e){return e})))&&void 0!==t?t:function(n){for(var t=0,r=Me;t<r.length;t++){var i=r[t];if(n.length>i.length+2&&e.startsWith(n,i))return i+" "+n.slice(i.length)}}(r);a?de(i,n.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==ge()&&de(i,n.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else le(e.Diagnostics._0_expected,e.tokenToString(26))}}function Ge(n,t,r){ge()===r?le(t):le(n,e.tokenToString(ge()))}function Be(n){return ge()===n?(be(),!0):(le(e.Diagnostics._0_expected,e.tokenToString(n)),!1)}function Ue(e){return ge()===e&&(ve(),!0)}function Ve(e){if(ge()===e)return Ke()}function je(n,t,r){return Ve(n)||Xe(n,!1,t||e.Diagnostics._0_expected,r||e.tokenToString(n))}function Ke(){var e=me(),n=ge();return ve(),qe(F.createToken(n),e)}function He(){return 26===ge()||19===ge()||1===ge()||c.hasPrecedingLineBreak()}function We(){return!!He()&&(26===ge()&&ve(),!0)}function ze(){return We()||Re(26)}function Je(n,t,r,i){var a=F.createNodeArray(n,i);return e.setTextRangePosEnd(a,t,null!=r?r:c.getStartPos()),a}function qe(n,t,r){return e.setTextRangePosEnd(n,t,null!=r?r:c.getStartPos()),w&&(n.flags|=w),B&&(B=!1,n.flags|=65536),n}function Xe(n,t,r,i){t?ue(c.getStartPos(),0,r,i):r&&le(r,i);var a=me();return qe(79===n?F.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(n)?F.createTemplateLiteralLikeNode(n,"","",void 0):8===n?F.createNumericLiteral("",void 0):10===n?F.createStringLiteral("",void 0):274===n?F.createMissingDeclaration():F.createToken(n),a)}function Ye(e){var n=N.get(e);return void 0===n&&N.set(e,n=e),n}function Qe(n,t,r){if(n){R++;var i=me(),a=ge(),o=Ye(c.getTokenValue());return ye(),qe(F.createIdentifier(o,void 0,a),i)}if(80===ge())return le(r||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Qe(!0);if(0===ge()&&c.tryScan((function(){return 79===c.reScanInvalidIdentifier()})))return Qe(!0);R++;var s=1===ge(),l=c.isReservedWord(),u=c.getTokenText(),d=l?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Xe(79,s,t||d,u)}function Ze(e){return Qe(Ne(),void 0,e)}function $e(e,n){return Qe(ke(),e,n)}function en(n){return Qe(e.tokenIsIdentifierOrKeyword(ge()),n)}function nn(){return e.tokenIsIdentifierOrKeyword(ge())||10===ge()||8===ge()}function tn(){return function(e){if(10===ge()||8===ge()){var n=Fn();return n.text=Ye(n.text),n}return e&&22===ge()?function(){var e=me();Re(22);var n=te(Vt);return Re(23),qe(F.createComputedPropertyName(n),e)}():80===ge()?rn():en()}(!0)}function rn(){var e,n,t=me(),r=F.createPrivateIdentifier((e=c.getTokenText(),void 0===(n=k.get(e))&&k.set(e,n=e),n));return ve(),qe(r,t)}function an(e){return ge()===e&&Ie(sn)}function on(){return ve(),!c.hasPrecedingLineBreak()&&un()}function sn(){switch(ge()){case 85:return 92===ve();case 93:return ve(),88===ge()?Ce(dn):150===ge()?Ce(ln):cn();case 88:return dn();case 124:default:return on();case 135:case 147:return ve(),un()}}function cn(){return 41!==ge()&&127!==ge()&&18!==ge()&&un()}function ln(){return ve(),cn()}function un(){return 22===ge()||18===ge()||41===ge()||25===ge()||nn()}function dn(){return ve(),84===ge()||98===ge()||118===ge()||126===ge()&&Ce(wr)||130===ge()&&Ce(Mr)}function pn(n,t){if(Sn(n))return!0;switch(n){case 0:case 1:case 3:return!(26===ge()&&t)&&Ur();case 2:return 82===ge()||88===ge();case 4:return Ce(st);case 5:return Ce(si)||26===ge()&&!t;case 6:return 22===ge()||nn();case 12:switch(ge()){case 22:case 41:case 25:case 24:return!0;default:return nn()}case 18:return nn();case 9:return 22===ge()||25===ge()||nn();case 7:return 18===ge()?Ce(fn):t?ke()&&!yn():Bt()&&!yn();case 8:return Xr();case 10:return 27===ge()||25===ge()||Xr();case 19:return ke();case 15:switch(ge()){case 27:case 24:return!0}case 11:return 25===ge()||Ut();case 16:return Xn(!1);case 17:return Xn(!0);case 20:case 21:return 27===ge()||Lt();case 22:return Ei();case 23:return e.tokenIsIdentifierOrKeyword(ge());case 13:return e.tokenIsIdentifierOrKeyword(ge())||18===ge();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function fn(){if(e.Debug.assert(18===ge()),19===ve()){var n=ve();return 27===n||18===n||94===n||117===n}return!0}function mn(){return ve(),ke()}function _n(){return ve(),e.tokenIsIdentifierOrKeyword(ge())}function gn(){return ve(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ge())}function yn(){return(117===ge()||94===ge())&&Ce(hn)}function hn(){return ve(),Ut()}function vn(){return ve(),Lt()}function bn(e){if(1===ge())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===ge();case 3:return 19===ge()||82===ge()||88===ge();case 7:return 18===ge()||94===ge()||117===ge();case 8:return!!He()||!!Qt(ge())||38===ge();case 19:return 31===ge()||20===ge()||18===ge()||94===ge()||117===ge();case 11:return 21===ge()||26===ge();case 15:case 21:case 10:return 23===ge();case 17:case 16:case 18:return 21===ge()||23===ge();case 20:return 27!==ge();case 22:return 18===ge()||19===ge();case 13:return 31===ge()||43===ge();case 14:return 29===ge()&&Ce(Ci);default:return!1}}function En(e,n){var t=O;O|=1<<e;for(var r=[],i=me();!bn(e);)if(pn(e,!1))r.push(Tn(e,n));else if(Ln(e))break;return O=t,Je(r,i)}function Tn(e,n){var t=Sn(e);return t?xn(t):n()}function Sn(n){if(A&&function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(n)&&!B){var t=A.currentNode(c.getStartPos());if(!(e.nodeIsMissing(t)||t.intersectsChange||e.containsParseError(t))&&(25358336&t.flags)===w&&function(e,n){switch(n){case 5:return function(e){if(e)switch(e.kind){case 169:case 174:case 170:case 171:case 165:case 232:return!0;case 167:var n=e;return!(79===n.name.kind&&133===n.name.originalKeywordKind)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 287:case 288:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.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}(e);case 6:return function(e){return 294===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 173:case 166:case 174:case 164:case 172:return!0}return!1}(e);case 8:return function(e){return 252===e.kind&&void 0===e.initializer}(e);case 17:case 16:return function(e){return 162===e.kind&&void 0===e.initializer}(e)}return!1}(t,n))return t.jsDocCache&&(t.jsDocCache=void 0),t}}function xn(e){return c.setTextPos(e.end),ve(),e}function Ln(n){return function(n){switch(n){case 0:return 88===ge()?le(e.Diagnostics._0_expected,e.tokenToString(93)):le(e.Diagnostics.Declaration_or_statement_expected);case 1:return le(e.Diagnostics.Declaration_or_statement_expected);case 2:return le(e.Diagnostics.case_or_default_expected);case 3:return le(e.Diagnostics.Statement_expected);case 18:case 4:return le(e.Diagnostics.Property_or_signature_expected);case 5:return le(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return le(e.Diagnostics.Enum_member_expected);case 7:return le(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(ge())?le(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(ge())):le(e.Diagnostics.Variable_declaration_expected);case 9:return le(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return le(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return le(e.Diagnostics.Argument_expression_expected);case 12:return le(e.Diagnostics.Property_assignment_expected);case 15:return le(e.Diagnostics.Expression_or_comma_expected);case 17:case 16:return le(e.Diagnostics.Parameter_declaration_expected);case 19:return le(e.Diagnostics.Type_parameter_declaration_expected);case 20:return le(e.Diagnostics.Type_argument_expected);case 21:return le(e.Diagnostics.Type_expected);case 22:return le(e.Diagnostics.Unexpected_token_expected);case 23:case 13:case 14:le(e.Diagnostics.Identifier_expected)}}(n),!!function(){for(var e=0;e<24;e++)if(O&1<<e&&(pn(e,!0)||bn(e)))return!0;return!1}()||(ve(),!1)}function Dn(e,n,t){var r=O;O|=1<<e;for(var i=[],a=me(),o=-1;;)if(pn(e,!1)){var s=c.getStartPos();if(i.push(Tn(e,n)),o=c.getTokenPos(),Ue(27))continue;if(o=-1,bn(e))break;Re(27,An(e)),t&&26===ge()&&!c.hasPrecedingLineBreak()&&ve(),s===c.getStartPos()&&ve()}else{if(bn(e))break;if(Ln(e))break}return O=r,Je(i,a,void 0,o>=0)}function An(n){return 6===n?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Cn(){var e=Je([],me());return e.isMissingList=!0,e}function In(e,n,t,r){if(Re(t)){var i=Dn(e,n);return Re(r),i}return Cn()}function Nn(e,n){for(var t=me(),r=e?en(n):$e(n),i=me();Ue(24);){if(29===ge()){r.jsdocDotPos=i;break}i=me(),r=qe(F.createQualifiedName(r,Rn(e,!1)),t)}return r}function kn(e,n){return qe(F.createQualifiedName(e,n),e.pos)}function Rn(n,t){if(c.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ge())&&Ce(Pr))return Xe(79,!0,e.Diagnostics.Identifier_expected);if(80===ge()){var r=rn();return t?r:Xe(79,!0,e.Diagnostics.Identifier_expected)}return n?en():$e()}function On(e){var n=me();return qe(F.createTemplateExpression(Gn(e),function(e){var n,t=me(),r=[];do{n=Mn(e),r.push(n)}while(16===n.literal.kind);return Je(r,t)}(e)),n)}function Pn(){var e=me();return qe(F.createTemplateLiteralTypeSpan(Mt(),wn(!1)),e)}function wn(n){return 19===ge()?(function(e){C=c.reScanTemplateToken(e)}(n),t=Bn(ge()),e.Debug.assert(16===t.kind||17===t.kind,"Template fragment has wrong token kind"),t):je(17,e.Diagnostics._0_expected,e.tokenToString(19));var t}function Mn(e){var n=me();return qe(F.createTemplateSpan(te(Vt),wn(e)),n)}function Fn(){return Bn(ge())}function Gn(n){n&&Te();var t=Bn(ge());return e.Debug.assert(15===t.kind,"Template head has wrong token kind"),t}function Bn(n){var t=me(),r=e.isTemplateLiteralKind(n)?F.createTemplateLiteralLikeNode(n,c.getTokenValue(),function(e){var n=14===e||17===e,t=c.getTokenText();return t.substring(1,t.length-(c.isUnterminated()?0:n?1:2))}(n),2048&c.getTokenFlags()):8===n?F.createNumericLiteral(c.getTokenValue(),c.getNumericLiteralFlags()):10===n?F.createStringLiteral(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):e.isLiteralKind(n)?F.createLiteralLikeNode(n,c.getTokenValue()):e.Debug.fail();return c.hasExtendedUnicodeEscape()&&(r.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(r.isUnterminated=!0),ve(),qe(r,t)}function Un(){return Nn(!0,e.Diagnostics.Type_expected)}function Vn(){if(!c.hasPrecedingLineBreak()&&29===Se())return In(20,Mt,29,31)}function jn(){var e=me();return qe(F.createTypeReferenceNode(Un(),Vn()),e)}function Kn(n){switch(n.kind){case 176:return e.nodeIsMissing(n.typeName);case 177:case 178:var t=n,r=t.parameters,i=t.type;return!!r.isMissingList||Kn(i);case 189:return Kn(n.type);default:return!1}}function Hn(){var e=me();return ve(),qe(F.createThisTypeNode(),e)}function Wn(){var e,n=me();return 108!==ge()&&103!==ge()||(e=en(),Re(58)),qe(F.createParameterDeclaration(void 0,void 0,void 0,e,void 0,zn(),void 0),n)}function zn(){c.setInJSDocType(!0);var e=me();if(Ue(140)){var n=F.createJSDocNamepathType(void 0);e:for(;;)switch(ge()){case 19:case 1:case 27:case 5:break e;default:be()}return c.setInJSDocType(!1),qe(n,e)}var t=Ue(25),r=Pt();return c.setInJSDocType(!1),t&&(r=qe(F.createJSDocVariadicType(r),e)),63===ge()?(ve(),qe(F.createJSDocOptionalType(r),e)):r}function Jn(){var e,n,t=me(),r=$e();Ue(94)&&(Lt()||!Ut()?e=Mt():n=nr());var i=Ue(63)?Mt():void 0,a=F.createTypeParameterDeclaration(r,e,i);return a.expression=n,qe(a,t)}function qn(){if(29===ge())return In(19,Jn,29,31)}function Xn(n){return 25===ge()||Xr()||e.isModifierKind(ge())||59===ge()||Lt(!n)}function Yn(){return Zn(!0)}function Qn(){return Zn(!1)}function Zn(n){var t=me(),r=_e(),i=n?re(ui):ui();if(108===ge()){var a=F.createParameterDeclaration(i,void 0,void 0,Qe(!0),void 0,Gt(),void 0);return i&&pe(i[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),H(qe(a,t),r)}var o=G;G=!1;var s=pi(),c=H(qe(F.createParameterDeclaration(i,s,Ve(25),function(n){var t=Yr(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(t)&&!e.some(n)&&e.isModifierKind(ge())&&ve(),t}(s),Ve(57),Gt(),jt()),t),r);return G=o,c}function $n(n,t){if(function(n,t){return 38===n?(Re(n),!0):!!Ue(58)||!(!t||38!==ge())&&(le(e.Diagnostics._0_expected,e.tokenToString(58)),ve(),!0)}(n,t))return Pt()}function et(e){var n=ae(),t=ce();Q(!!(1&e)),$(!!(2&e));var r=32&e?Dn(17,Wn):Dn(16,t?Yn:Qn);return Q(n),$(t),r}function nt(e){if(!Re(20))return Cn();var n=et(e);return Re(21),n}function tt(){Ue(27)||ze()}function rt(e){var n=me(),t=_e();173===e&&Re(103);var r=qn(),i=nt(4),a=$n(58,!0);return tt(),H(qe(172===e?F.createCallSignature(r,i,a):F.createConstructSignature(r,i,a),n),t)}function it(){return 22===ge()&&Ce(at)}function at(){if(ve(),25===ge()||23===ge())return!0;if(e.isModifierKind(ge())){if(ve(),ke())return!0}else{if(!ke())return!1;ve()}return 58===ge()||27===ge()||57===ge()&&(ve(),58===ge()||27===ge()||23===ge())}function ot(e,n,t,r){var i=In(16,Qn,22,23),a=Gt();return tt(),H(qe(F.createIndexSignature(t,r,i,a),e),n)}function st(){if(20===ge()||29===ge()||135===ge()||147===ge())return!0;for(var n=!1;e.isModifierKind(ge());)n=!0,ve();return 22===ge()||(nn()&&(n=!0,ve()),!!n&&(20===ge()||29===ge()||57===ge()||58===ge()||27===ge()||He()))}function ct(){if(20===ge()||29===ge())return rt(172);if(103===ge()&&Ce(lt))return rt(173);var e=me(),n=_e(),t=pi();return an(135)?oi(e,n,void 0,t,170):an(147)?oi(e,n,void 0,t,171):it()?ot(e,n,void 0,t):function(e,n,t){var r,i=tn(),a=Ve(57);if(20===ge()||29===ge()){var o=qn(),s=nt(4),c=$n(58,!0);r=F.createMethodSignature(t,i,a,o,s,c)}else c=Gt(),r=F.createPropertySignature(t,i,a,c),63===ge()&&(r.initializer=jt());return tt(),H(qe(r,e),n)}(e,n,t)}function lt(){return ve(),20===ge()||29===ge()}function ut(){return 24===ve()}function dt(){switch(ve()){case 20:case 29:case 24:return!0}return!1}function pt(){var e;return Re(18)?(e=En(4,ct),Re(19)):e=Cn(),e}function ft(){return ve(),39===ge()||40===ge()?143===ve():(143===ge()&&ve(),22===ge()&&mn()&&101===ve())}function mt(){var n=me();if(Ue(25))return qe(F.createRestTypeNode(Mt()),n);var t=Mt();if(e.isJSDocNullableType(t)&&t.pos===t.type.pos){var r=F.createOptionalTypeNode(t.type);return e.setTextRange(r,t),r.flags=t.flags,r}return t}function _t(){return 58===ve()||57===ge()&&58===ve()}function gt(){return 25===ge()?e.tokenIsIdentifierOrKeyword(ve())&&_t():e.tokenIsIdentifierOrKeyword(ge())&&_t()}function yt(){if(Ce(gt)){var e=me(),n=_e(),t=Ve(25),r=en(),i=Ve(57);Re(58);var a=mt();return H(qe(F.createNamedTupleMember(t,r,i,a),e),n)}return mt()}function ht(){var e=me(),n=_e(),t=function(){var e;if(126===ge()){var n=me();ve(),e=Je([qe(F.createToken(126),n)],n)}return e}(),r=Ue(103),i=qn(),a=nt(4),o=$n(38,!1),s=r?F.createConstructorTypeNode(t,i,a,o):F.createFunctionTypeNode(i,a,o);return r||(s.modifiers=t),H(qe(s,e),n)}function vt(){var e=Ke();return 24===ge()?void 0:e}function bt(e){var n=me();e&&ve();var t=110===ge()||95===ge()||104===ge()?Ke():Bn(ge());return e&&(t=qe(F.createPrefixUnaryExpression(40,t),n)),qe(F.createLiteralTypeNode(t),n)}function Et(){return ve(),100===ge()}function Tt(){_|=1048576;var e=me(),n=Ue(112);Re(100),Re(20);var t=Mt();Re(21);var r=Ue(24)?Un():void 0,i=Vn();return qe(F.createImportTypeNode(t,r,i,n),e)}function St(){return ve(),8===ge()||9===ge()}function xt(){switch(ge()){case 129:case 153:case 148:case 145:case 156:case 149:case 132:case 151:case 142:case 146:return Ie(vt)||jn();case 66:c.reScanAsteriskEqualsToken();case 41:return t=me(),ve(),qe(F.createJSDocAllType(),t);case 60:c.reScanQuestionToken();case 57:return function(){var e=me();return ve(),27===ge()||19===ge()||21===ge()||31===ge()||63===ge()||51===ge()?qe(F.createJSDocUnknownType(),e):qe(F.createJSDocNullableType(Mt()),e)}();case 98:return function(){var e=me(),n=_e();if(Ce(Di)){ve();var t=nt(36),r=$n(58,!1);return H(qe(F.createJSDocFunctionType(t,r),e),n)}return qe(F.createTypeReferenceNode(en(),void 0),e)}();case 53:return function(){var e=me();return ve(),qe(F.createJSDocNonNullableType(xt()),e)}();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return bt();case 40:return Ce(St)?bt(!0):jn();case 114:return Ke();case 108:var e=Hn();return 138!==ge()||c.hasPrecedingLineBreak()?e:(n=e,ve(),qe(F.createTypePredicateNode(void 0,n,Mt()),n.pos));case 112:return Ce(Et)?Tt():function(){var e=me();return Re(112),qe(F.createTypeQueryNode(Nn(!0)),e)}();case 18:return Ce(ft)?function(){var e,n=me();Re(18),143!==ge()&&39!==ge()&&40!==ge()||143!==(e=Ke()).kind&&Re(143),Re(22);var t,r=function(){var e=me(),n=en();Re(101);var t=Mt();return qe(F.createTypeParameterDeclaration(n,t,void 0),e)}(),i=Ue(127)?Mt():void 0;Re(23),57!==ge()&&39!==ge()&&40!==ge()||57!==(t=Ke()).kind&&Re(57);var a=Gt();return ze(),Re(19),qe(F.createMappedTypeNode(e,r,i,t,a),n)}():function(){var e=me();return qe(F.createTypeLiteralNode(pt()),e)}();case 22:return function(){var e=me();return qe(F.createTupleTypeNode(In(21,yt,22,23)),e)}();case 20:return function(){var e=me();Re(20);var n=Mt();return Re(21),qe(F.createParenthesizedType(n),e)}();case 100:return Tt();case 128:return Ce(Pr)?function(){var e=me(),n=je(128),t=108===ge()?Hn():$e(),r=Ue(138)?Mt():void 0;return qe(F.createTypePredicateNode(n,t,r),e)}():jn();case 15:return function(){var e=me();return qe(F.createTemplateLiteralType(Gn(!1),function(){var e,n=me(),t=[];do{e=Pn(),t.push(e)}while(16===e.literal.kind);return Je(t,n)}()),e)}();default:return jn()}var n,t}function Lt(e){switch(ge()){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!e;case 40:return!e&&Ce(St);case 20:return!e&&Ce(Dt);default:return ke()}}function Dt(){return ve(),21===ge()||Xn(!1)||Lt()}function At(){var e,n=ge();switch(n){case 139:case 152:case 143:return function(e){var n=me();return Re(e),qe(F.createTypeOperatorNode(e,At()),n)}(n);case 136:return e=me(),Re(136),qe(F.createInferTypeNode(function(){var e=me();return qe(F.createTypeParameterDeclaration($e(),void 0,void 0),e)}()),e)}return function(){for(var e=me(),n=xt();!c.hasPrecedingLineBreak();)switch(ge()){case 53:ve(),n=qe(F.createJSDocNonNullableType(n),e);break;case 57:if(Ce(vn))return n;ve(),n=qe(F.createJSDocNullableType(n),e);break;case 22:if(Re(22),Lt()){var t=Mt();Re(23),n=qe(F.createIndexedAccessTypeNode(n,t),e)}else Re(23),n=qe(F.createArrayTypeNode(n),e);break;default:return n}return n}()}function Ct(n){if(Rt()){var t=ht();return pe(t,e.isFunctionTypeNode(t)?n?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:n?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),t}}function It(e,n,t){var r=me(),i=51===e,a=Ue(e),o=a&&Ct(i)||n();if(ge()===e||a){for(var s=[o];Ue(e);)s.push(Ct(i)||n());o=qe(t(Je(s,r)),r)}return o}function Nt(){return It(50,At,F.createIntersectionTypeNode)}function kt(){return ve(),103===ge()}function Rt(){return 29===ge()||!(20!==ge()||!Ce(Ot))||103===ge()||126===ge()&&Ce(kt)}function Ot(){if(ve(),21===ge()||25===ge())return!0;if(function(){if(e.isModifierKind(ge())&&pi(),ke()||108===ge())return ve(),!0;if(22===ge()||18===ge()){var n=x.length;return Yr(),n===x.length}return!1}()){if(58===ge()||27===ge()||57===ge()||63===ge())return!0;if(21===ge()&&(ve(),38===ge()))return!0}return!1}function Pt(){var e=me(),n=ke()&&Ie(wt),t=Mt();return n?qe(F.createTypePredicateNode(void 0,n,t),e):t}function wt(){var e=$e();if(138===ge()&&!c.hasPrecedingLineBreak())return ve(),e}function Mt(){return ee(40960,Ft)}function Ft(e){if(Rt())return ht();var n=me(),t=It(51,Nt,F.createUnionTypeNode);if(!e&&!c.hasPrecedingLineBreak()&&Ue(94)){var r=Ft(!0);Re(57);var i=Ft();Re(58);var a=Ft();return qe(F.createConditionalTypeNode(t,r,i,a),n)}return t}function Gt(){return Ue(58)?Mt():void 0}function Bt(){switch(ge()){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 Ce(dt);default:return ke()}}function Ut(){if(Bt())return!0;switch(ge()){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!(oe()&&101===ge()||!(e.getBinaryOperatorPrecedence(ge())>0))||ke()}}function Vt(){var e=se();e&&Z(!1);for(var n,t=me(),r=Kt();n=Ve(27);)r=$t(r,n,Kt(),t);return e&&Z(!0),r}function jt(){return Ue(63)?Kt():void 0}function Kt(){if(125===ge()&&(ae()||Ce(Fr)))return function(){var e=me();return ve(),c.hasPrecedingLineBreak()||41!==ge()&&!Ut()?qe(F.createYieldExpression(void 0,void 0),e):qe(F.createYieldExpression(Ve(41),Kt()),e)}();var n=function(){var e=20===ge()||29===ge()||130===ge()?Ce(Wt):38===ge()?1:0;if(0!==e)return 1===e?qt(!0):Ie(zt)}()||function(){if(130===ge()&&1===Ce(Jt)){var e=me(),n=fi();return Ht(e,Yt(0),n)}}();if(n)return n;var t=me(),r=Yt(0);return 79===r.kind&&38===ge()?Ht(t,r,void 0):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(Ee())?$t(r,Ke(),Kt(),t):function(n,t){var r,i=Ve(57);return i?qe(F.createConditionalExpression(n,i,ee(l,Kt),r=je(58),e.nodeIsPresent(r)?Kt():Xe(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),t):n}(r,t)}function Ht(n,t,r){e.Debug.assert(38===ge(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=F.createParameterDeclaration(void 0,void 0,void 0,t,void 0,void 0,void 0);qe(i,t.pos);var a=Je([i],i.pos,i.end),o=je(38),s=Xt(!!r);return z(qe(F.createArrowFunction(r,void 0,a,void 0,o,s),n))}function Wt(){if(130===ge()){if(ve(),c.hasPrecedingLineBreak())return 0;if(20!==ge()&&29!==ge())return 0}var n=ge(),t=ve();if(20===n){if(21===t)switch(ve()){case 38:case 58:case 18:return 1;default:return 0}if(22===t||18===t)return 2;if(25===t)return 1;if(e.isModifierKind(t)&&130!==t&&Ce(mn))return 1;if(!ke()&&108!==t)return 0;switch(ve()){case 58:return 1;case 57:return ve(),58===ge()||27===ge()||63===ge()||21===ge()?1:0;case 27:case 63:case 21:return 2}return 0}return e.Debug.assert(29===n),ke()?1===S?Ce((function(){var e=ve();if(94===e)switch(ve()){case 63:case 31:return!1;default:return!0}else if(27===e)return!0;return!1}))?1:0:2:0}function zt(){var n=c.getTokenPos();if(!(null==P?void 0:P.has(n))){var t=qt(!1);return t||(P||(P=new e.Set)).add(n),t}}function Jt(){if(130===ge()){if(ve(),c.hasPrecedingLineBreak()||38===ge())return 0;var e=Yt(0);if(!c.hasPrecedingLineBreak()&&79===e.kind&&38===ge())return 1}return 0}function qt(n){var t,r=me(),i=_e(),a=fi(),o=e.some(a,e.isAsyncModifier)?2:0,s=qn();if(Re(20)){if(t=et(o),!Re(21)&&!n)return}else{if(!n)return;t=Cn()}var c=$n(58,!1);if(!c||n||!Kn(c)){var l=c&&e.isJSDocFunctionType(c);if(n||38===ge()||!l&&18===ge()){var u=ge(),d=je(38),p=38===u||18===u?Xt(e.some(a,e.isAsyncModifier)):$e();return H(qe(F.createArrowFunction(a,s,t,c,d,p),r),i)}}}function Xt(e){if(18===ge())return kr(e?2:0);if(26!==ge()&&98!==ge()&&84!==ge()&&Ur()&&(18===ge()||98===ge()||84===ge()||59===ge()||!Ut()))return kr(16|(e?2:0));var n=G;G=!1;var t=e?re(Kt):ee(32768,Kt);return G=n,t}function Yt(e){var n=me();return Zt(e,nr(),n)}function Qt(e){return 101===e||158===e}function Zt(n,t,r){for(;;){Ee();var i=e.getBinaryOperatorPrecedence(ge());if(!(42===ge()?i>=n:i>n))break;if(101===ge()&&oe())break;if(127===ge()){if(c.hasPrecedingLineBreak())break;ve(),a=t,o=Mt(),t=qe(F.createAsExpression(a,o),a.pos)}else t=$t(t,Ke(),Yt(i),r)}var a,o;return t}function $t(e,n,t,r){return qe(F.createBinaryExpression(e,n,t),r)}function er(){var e=me();return qe(F.createPrefixUnaryExpression(ge(),he(tr)),e)}function nr(){if(function(){switch(ge()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 131:return!1;case 29:if(1!==S)return!1;default:return!0}}()){var n=me(),t=rr();return 42===ge()?Zt(e.getBinaryOperatorPrecedence(ge()),t,n):t}var r=ge(),i=tr();if(42===ge()){n=e.skipTrivia(b,i.pos);var a=i.end;209===i.kind?de(n,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):de(n,a,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(r))}return i}function tr(){switch(ge()){case 39:case 40:case 54:case 53:return er();case 89:return e=me(),qe(F.createDeleteExpression(he(tr)),e);case 112:return function(){var e=me();return qe(F.createTypeOfExpression(he(tr)),e)}();case 114:return function(){var e=me();return qe(F.createVoidExpression(he(tr)),e)}();case 29:return function(){var e=me();Re(29);var n=Mt();Re(31);var t=tr();return qe(F.createTypeAssertion(n,t),e)}();case 131:if(131===ge()&&(ce()||Ce(Fr)))return function(){var e=me();return qe(F.createAwaitExpression(he(tr)),e)}();default:return rr()}var e}function rr(){if(45===ge()||46===ge()){var n=me();return qe(F.createPrefixUnaryExpression(ge(),he(ir)),n)}if(1===S&&29===ge()&&Ce(gn))return or(!0);var t=ir();if(e.Debug.assert(e.isLeftHandSideExpression(t)),(45===ge()||46===ge())&&!c.hasPrecedingLineBreak()){var r=ge();return ve(),qe(F.createPostfixUnaryExpression(t,r),t.pos)}return t}function ir(){var n,t=me();return 100===ge()?Ce(lt)?(_|=1048576,n=Ke()):Ce(ut)?(ve(),ve(),n=qe(F.createMetaProperty(100,en()),t),_|=2097152):n=ar():n=106===ge()?function(){var n=me(),t=Ke();if(29===ge()){var r=me();void 0!==Ie(Er)&&de(r,me(),e.Diagnostics.super_may_not_use_type_arguments)}return 20===ge()||24===ge()||22===ge()?t:(je(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),qe(F.createPropertyAccessExpression(t,Rn(!0,!0)),n))}():ar(),vr(t,n)}function ar(){return gr(me(),Tr(),!0)}function or(n,t,r){var a,o=me(),s=function(e){var n=me();if(Re(29),31===ge())return De(),qe(F.createJsxOpeningFragment(),n);var t,r=lr(),i=0==(131072&w)?bi():void 0,a=function(){var e=me();return qe(F.createJsxAttributes(En(13,dr)),e)}();return 31===ge()?(De(),t=F.createJsxOpeningElement(r,i,a)):(Re(43),Re(31,void 0,!1)&&(e?ve():De()),t=F.createJsxSelfClosingElement(r,i,a)),qe(t,n)}(n);if(278===s.kind){var c=cr(s),l=void 0,u=c[c.length-1];if(276===(null==u?void 0:u.kind)&&!D(u.openingElement.tagName,u.closingElement.tagName)&&D(s.tagName,u.closingElement.tagName)){var d=u.openingElement.end,p=qe(F.createJsxElement(u.openingElement,Je([],d,d),qe(F.createJsxClosingElement(qe(F.createIdentifier(""),d,d)),d,d)),u.openingElement.pos,d);c=Je(i(i([],c.slice(0,c.length-1),!0),[p],!1),c.pos,d),l=u.closingElement}else l=function(e,n){var t=me();Re(30);var r=lr();return Re(31,void 0,!1)&&(n||!D(e.tagName,r)?ve():De()),qe(F.createJsxClosingElement(r),t)}(s,n),D(s.tagName,l.tagName)||(r&&e.isJsxOpeningElement(r)&&D(l.tagName,r.tagName)?pe(s.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(b,s.tagName)):pe(l.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(b,s.tagName)));a=qe(F.createJsxElement(s,c,l),o)}else 281===s.kind?a=qe(F.createJsxFragment(s,cr(s),function(n){var t=me();return Re(30),e.tokenIsIdentifierOrKeyword(ge())&&pe(lr(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),Re(31,void 0,!1)&&(n?ve():De()),qe(F.createJsxJsxClosingFragment(),t)}(n)),o):(e.Debug.assert(277===s.kind),a=s);if(n&&29===ge()){var f=void 0===t?a.pos:t,m=Ie((function(){return or(!0,f)}));if(m){var _=Xe(27,!1);return e.setTextRangePosWidth(_,m.pos,0),de(e.skipTrivia(b,f),m.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),qe(F.createBinaryExpression(a,_,m),o)}}return a}function sr(n,t){switch(t){case 1:if(e.isJsxOpeningFragment(n))pe(n,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var r=n.tagName;de(e.skipTrivia(b,r.pos),r.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(b,n.tagName))}return;case 30:case 7:return;case 11:case 12:return i=me(),a=F.createJsxText(c.getTokenValue(),12===C),C=c.scanJsxToken(),qe(a,i);case 18:return ur(!1);case 29:return or(!1,void 0,n);default:return e.Debug.assertNever(t)}var i,a}function cr(n){var t=[],r=me(),i=O;for(O|=16384;;){var a=sr(n,C=c.reScanJsxToken());if(!a)break;if(t.push(a),e.isJsxOpeningElement(n)&&276===(null==a?void 0:a.kind)&&!D(a.openingElement.tagName,a.closingElement.tagName)&&D(n.tagName,a.closingElement.tagName))break}return O=i,Je(t,r)}function lr(){var e=me();Le();for(var n=108===ge()?Ke():en();Ue(24);)n=qe(F.createPropertyAccessExpression(n,Rn(!0,!1)),e);return n}function ur(e){var n,t,r=me();if(Re(18))return 19!==ge()&&(n=Ve(25),t=Vt()),e?Re(19):Re(19,void 0,!1)&&De(),qe(F.createJsxExpression(n,t),r)}function dr(){if(18===ge())return function(){var e=me();Re(18),Re(25);var n=Vt();return Re(19),qe(F.createJsxSpreadAttribute(n),e)}();Le();var e=me();return qe(F.createJsxAttribute(en(),63!==ge()?void 0:10===(C=c.scanJsxAttributeValue())?Fn():ur(!0)),e)}function pr(){return ve(),e.tokenIsIdentifierOrKeyword(ge())||22===ge()||yr()}function fr(n){if(32&n.flags)return!0;if(e.isNonNullExpression(n)){for(var t=n.expression;e.isNonNullExpression(t)&&!(32&t.flags);)t=t.expression;if(32&t.flags){for(;e.isNonNullExpression(n);)n.flags|=32,n=n.expression;return!0}}return!1}function mr(n,t,r){var i=Rn(!0,!0),a=r||fr(t),o=a?F.createPropertyAccessChain(t,r,i):F.createPropertyAccessExpression(t,i);return a&&e.isPrivateIdentifier(o.name)&&pe(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),qe(o,n)}function _r(n,t,r){var i;if(23===ge())i=Xe(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=te(Vt);e.isStringOrNumericLiteralLike(a)&&(a.text=Ye(a.text)),i=a}return Re(23),qe(r||fr(t)?F.createElementAccessChain(t,r,i):F.createElementAccessExpression(t,i),n)}function gr(n,t,r){for(;;){var i=void 0,a=!1;if(r&&28===ge()&&Ce(pr)?(i=je(28),a=e.tokenIsIdentifierOrKeyword(ge())):a=Ue(24),a)t=mr(n,t,i);else if(i||53!==ge()||c.hasPrecedingLineBreak())if(!i&&se()||!Ue(22)){if(!yr())return t;t=hr(n,t,i,void 0)}else t=_r(n,t,i);else ve(),t=qe(F.createNonNullExpression(t),n)}}function yr(){return 14===ge()||15===ge()}function hr(e,n,t,r){var i=F.createTaggedTemplateExpression(n,r,14===ge()?(Te(),Fn()):On(!0));return(t||32&n.flags)&&(i.flags|=32),i.questionDotToken=t,qe(i,e)}function vr(n,t){for(;;){t=gr(n,t,!0);var r=Ve(28);if(0!=(131072&w)||29!==ge()&&47!==ge()){if(20===ge()){a=br(),t=qe(r||fr(t)?F.createCallChain(t,r,void 0,a):F.createCallExpression(t,void 0,a),n);continue}}else{var i=Ie(Er);if(i){if(yr()){t=hr(n,t,r,i);continue}var a=br();t=qe(r||fr(t)?F.createCallChain(t,r,i,a):F.createCallExpression(t,i,a),n);continue}}if(r){var o=Xe(79,!1,e.Diagnostics.Identifier_expected);t=qe(F.createPropertyAccessChain(t,r,o),n)}break}return t}function br(){Re(20);var e=Dn(11,xr);return Re(21),e}function Er(){if(0==(131072&w)&&29===Se()){ve();var e=Dn(20,Mt);if(Re(31))return e&&function(){switch(ge()){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;default:return!1}}()?e:void 0}}function Tr(){switch(ge()){case 8:case 9:case 10:case 14:return Fn();case 108:case 106:case 104:case 110:case 95:return Ke();case 20:return function(){var e=me(),n=_e();Re(20);var t=te(Vt);return Re(21),H(qe(F.createParenthesizedExpression(t),e),n)}();case 22:return Lr();case 18:return Ar();case 130:if(!Ce(Mr))break;return Cr();case 84:return gi(me(),_e(),void 0,void 0,224);case 98:return Cr();case 103:return function(){var n=me();if(Re(103),Ue(24)){var t=en();return qe(F.createMetaProperty(103,t),n)}for(var r,i,a=me(),o=Tr();;){o=gr(a,o,!1),r=Ie(Er),yr()&&(e.Debug.assert(!!r,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=hr(a,o,void 0,r),r=void 0);break}return 20===ge()?i=br():r&&de(n,c.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),qe(F.createNewExpression(o,r,i),n)}();case 43:case 68:if(13===(C=c.reScanSlashToken()))return Fn();break;case 15:return On(!1)}return $e(e.Diagnostics.Expression_expected)}function Sr(){return 25===ge()?function(){var e=me();Re(25);var n=Kt();return qe(F.createSpreadElement(n),e)}():27===ge()?qe(F.createOmittedExpression(),me()):Kt()}function xr(){return ee(l,Sr)}function Lr(){var e=me();Re(22);var n=c.hasPrecedingLineBreak(),t=Dn(15,Sr);return Re(23),qe(F.createArrayLiteralExpression(t,n),e)}function Dr(){var e=me(),n=_e();if(Ve(25)){var t=Kt();return H(qe(F.createSpreadAssignment(t),e),n)}var r=ui(),i=pi();if(an(135))return oi(e,n,r,i,170);if(an(147))return oi(e,n,r,i,171);var a,o=Ve(41),s=ke(),c=tn(),l=Ve(57),u=Ve(53);if(o||20===ge()||29===ge())return ri(e,n,r,i,o,c,l,u);if(s&&58!==ge()){var d=Ve(63),p=d?te(Kt):void 0;(a=F.createShorthandPropertyAssignment(c,p)).equalsToken=d}else{Re(58);var f=te(Kt);a=F.createPropertyAssignment(c,f)}return a.decorators=r,a.modifiers=i,a.questionToken=l,a.exclamationToken=u,H(qe(a,e),n)}function Ar(){var n=me(),t=c.getTokenPos();Re(18);var r=c.hasPrecedingLineBreak(),i=Dn(12,Dr,!0);if(!Re(19)){var a=e.lastOrUndefined(x);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(p,t,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return qe(F.createObjectLiteralExpression(i,r),n)}function Cr(){var n=se();Z(!1);var t=me(),r=_e(),i=pi();Re(98);var a=Ve(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?ne(40960,Ir):o?ne(8192,Ir):s?re(Ir):Ir(),l=qn(),u=nt(o|s),d=$n(58,!1),p=kr(o|s);return Z(n),H(qe(F.createFunctionExpression(i,a,c,l,u,d,p),t),r)}function Ir(){return Ne()?Ze():void 0}function Nr(n,t){var r=me(),i=_e(),a=c.getTokenPos();if(Re(18,t)||n){var o=c.hasPrecedingLineBreak(),s=En(1,jr);if(!Re(19)){var l=e.lastOrUndefined(x);l&&l.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(l,e.createDetachedDiagnostic(p,a,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var u=H(qe(F.createBlock(s,o),r),i);return 63===ge()&&(le(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),ve()),u}return s=Cn(),H(qe(F.createBlock(s,void 0),r),i)}function kr(e,n){var t=ae();Q(!!(1&e));var r=ce();$(!!(2&e));var i=G;G=!1;var a=se();a&&Z(!1);var o=Nr(!!(16&e),n);return a&&Z(!0),G=i,Q(t),$(r),o}function Rr(e){var n=me(),t=_e();Re(244===e?81:86);var r=He()?void 0:$e();return ze(),H(qe(244===e?F.createBreakStatement(r):F.createContinueStatement(r),n),t)}function Or(){return 82===ge()?function(){var e=me();Re(82);var n=te(Vt);Re(58);var t=En(3,jr);return qe(F.createCaseClause(n,t),e)}():function(){var e=me();Re(88),Re(58);var n=En(3,jr);return qe(F.createDefaultClause(n),e)}()}function Pr(){return ve(),e.tokenIsIdentifierOrKeyword(ge())&&!c.hasPrecedingLineBreak()}function wr(){return ve(),84===ge()&&!c.hasPrecedingLineBreak()}function Mr(){return ve(),98===ge()&&!c.hasPrecedingLineBreak()}function Fr(){return ve(),(e.tokenIsIdentifierOrKeyword(ge())||8===ge()||9===ge()||10===ge())&&!c.hasPrecedingLineBreak()}function Gr(){for(;;)switch(ge()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 150:return ve(),!c.hasPrecedingLineBreak()&&ke();case 140:case 141:return ve(),!c.hasPrecedingLineBreak()&&(ke()||10===ge());case 126:case 130:case 134:case 121:case 122:case 123:case 143:if(ve(),c.hasPrecedingLineBreak())return!1;continue;case 155:return ve(),18===ge()||79===ge()||93===ge();case 100:return ve(),10===ge()||41===ge()||18===ge()||e.tokenIsIdentifierOrKeyword(ge());case 93:var n=ve();if(150===n&&(n=Ce(ve)),63===n||41===n||18===n||88===n||127===n)return!0;continue;case 124:ve();continue;default:return!1}}function Br(){return Ce(Gr)}function Ur(){switch(ge()){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:case 130:case 134:case 118:case 140:case 141:case 150:case 155:return!0;case 100:return Br()||Ce(dt);case 85:case 93:return Br();case 123:case 121:case 122:case 124:case 143:return Br()||!Ce(Pr);default:return Ut()}}function Vr(){return ve(),Ne()||18===ge()||22===ge()}function jr(){switch(ge()){case 26:return n=me(),t=_e(),Re(26),H(qe(F.createEmptyStatement(),n),t);case 18:return Nr(!1);case 113:return ni(me(),_e(),void 0,void 0);case 119:if(Ce(Vr))return ni(me(),_e(),void 0,void 0);break;case 98:return ti(me(),_e(),void 0,void 0);case 84:return _i(me(),_e(),void 0,void 0);case 99:return function(){var e=me(),n=_e();Re(99),Re(20);var t=te(Vt);Re(21);var r=jr(),i=Ue(91)?jr():void 0;return H(qe(F.createIfStatement(t,r,i),e),n)}();case 90:return function(){var e=me(),n=_e();Re(90);var t=jr();Re(115),Re(20);var r=te(Vt);return Re(21),Ue(26),H(qe(F.createDoStatement(t,r),e),n)}();case 115:return function(){var e=me(),n=_e();Re(115),Re(20);var t=te(Vt);Re(21);var r=jr();return H(qe(F.createWhileStatement(t,r),e),n)}();case 97:return function(){var e=me(),n=_e();Re(97);var t,r,i=Ve(131);if(Re(20),26!==ge()&&(t=113===ge()||119===ge()||85===ge()?$r(!0):ne(4096,Vt)),i?Re(158):Ue(158)){var a=te(Kt);Re(21),r=F.createForOfStatement(i,t,a,jr())}else if(Ue(101))a=te(Vt),Re(21),r=F.createForInStatement(t,a,jr());else{Re(26);var o=26!==ge()&&21!==ge()?te(Vt):void 0;Re(26);var s=21!==ge()?te(Vt):void 0;Re(21),r=F.createForStatement(t,o,s,jr())}return H(qe(r,e),n)}();case 86:return Rr(243);case 81:return Rr(244);case 105:return function(){var e=me(),n=_e();Re(105);var t=He()?void 0:te(Vt);return ze(),H(qe(F.createReturnStatement(t),e),n)}();case 116:return function(){var e=me(),n=_e();Re(116),Re(20);var t=te(Vt);Re(21);var r=ne(16777216,jr);return H(qe(F.createWithStatement(t,r),e),n)}();case 107:return function(){var e=me(),n=_e();Re(107),Re(20);var t=te(Vt);Re(21);var r=function(){var e=me();Re(18);var n=En(2,Or);return Re(19),qe(F.createCaseBlock(n),e)}();return H(qe(F.createSwitchStatement(t,r),e),n)}();case 109:return function(){var e=me(),n=_e();Re(109);var t=c.hasPrecedingLineBreak()?void 0:te(Vt);return void 0===t&&(R++,t=qe(F.createIdentifier(""),me())),We()||Fe(t),H(qe(F.createThrowStatement(t),e),n)}();case 111:case 83:case 96:return function(){var e=me(),n=_e();Re(111);var t,r=Nr(!1),i=83===ge()?function(){var e,n=me();Re(83),Ue(20)?(e=Zr(),Re(21)):e=void 0;var t=Nr(!1);return qe(F.createCatchClause(e,t),n)}():void 0;return i&&96!==ge()||(Re(96),t=Nr(!1)),H(qe(F.createTryStatement(r,i,t),e),n)}();case 87:return function(){var e=me(),n=_e();return Re(87),ze(),H(qe(F.createDebuggerStatement(),e),n)}();case 59:return Hr();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(Br())return Hr()}var n,t;return function(){var n,t=me(),r=_e(),i=20===ge(),a=te(Vt);return e.isIdentifier(a)&&Ue(58)?n=F.createLabeledStatement(a,jr()):(We()||Fe(a),n=F.createExpressionStatement(a),i&&(r=!1)),H(qe(n,t),r)}()}function Kr(e){return 134===e.kind}function Hr(){var n=e.some(Ce((function(){return ui(),pi()})),Kr);if(n){var t=ne(8388608,(function(){var e=Sn(O);if(e)return xn(e)}));if(t)return t}var r=me(),i=_e(),a=ui(),o=pi();if(n){for(var s=0,c=o;s<c.length;s++)c[s].flags|=8388608;return ne(8388608,(function(){return Wr(r,i,a,o)}))}return Wr(r,i,a,o)}function Wr(n,t,r,i){switch(ge()){case 113:case 119:case 85:return ni(n,t,r,i);case 98:return ti(n,t,r,i);case 84:return _i(n,t,r,i);case 118:return function(e,n,t,r){Re(118);var i=$e(),a=qn(),o=yi(),s=pt();return H(qe(F.createInterfaceDeclaration(t,r,i,a,o,s),e),n)}(n,t,r,i);case 150:return function(e,n,t,r){Re(150);var i=$e(),a=qn();Re(63);var o=137===ge()&&Ie(vt)||Mt();return ze(),H(qe(F.createTypeAliasDeclaration(t,r,i,a,o),e),n)}(n,t,r,i);case 92:return function(e,n,t,r){Re(92);var i,a=$e();return Re(18)?(i=ee(40960,(function(){return Dn(6,Ti)})),Re(19)):i=Cn(),H(qe(F.createEnumDeclaration(t,r,a,i),e),n)}(n,t,r,i);case 155:case 140:case 141:return function(e,n,t,r){var i=0;if(155===ge())return Li(e,n,t,r);if(Ue(141))i|=16;else if(Re(140),10===ge())return Li(e,n,t,r);return xi(e,n,t,r,i)}(n,t,r,i);case 100:return function(e,n,t,r){Re(100);var i,a=c.getStartPos();ke()&&(i=$e());var o,s=!1;if(154===ge()||"type"!==(null==i?void 0:i.escapedText)||!ke()&&41!==ge()&&18!==ge()||(s=!0,i=ke()?$e():void 0),i&&27!==ge()&&154!==ge())return function(e,n,t,r,i,a){Re(63);var o=144===ge()&&Ce(Di)?function(){var e=me();Re(144),Re(20);var n=Ii();return Re(21),qe(F.createExternalModuleReference(n),e)}():Nn(!1);return ze(),H(qe(F.createImportEqualsDeclaration(t,r,a,i,o),e),n)}(e,n,t,r,i,s);(i||41===ge()||18===ge())&&(o=function(e,n,t){var r;return e&&!Ue(27)||(r=41===ge()?function(){var e=me();Re(41),Re(127);var n=$e();return qe(F.createNamespaceImport(n),e)}():Ni(267)),qe(F.createImportClause(t,e,r),n)}(i,a,s),Re(154));var l=Ii();return ze(),H(qe(F.createImportDeclaration(t,r,o,l),e),n)}(n,t,r,i);case 93:switch(ve(),ge()){case 88:case 63:return function(e,n,t,r){var i,a=ce();$(!0),Ue(63)?i=!0:Re(88);var o=Kt();return ze(),$(a),H(qe(F.createExportAssignment(t,r,i,o),e),n)}(n,t,r,i);case 127:return function(e,n,t,r){Re(127),Re(141);var i=$e();ze();var a=F.createNamespaceExportDeclaration(i);return a.decorators=t,a.modifiers=r,H(qe(a,e),n)}(n,t,r,i);default:return function(e,n,t,r){var i,a,o=ce();$(!0);var s=Ue(150),l=me();return Ue(41)?(Ue(127)&&(i=function(e){return qe(F.createNamespaceExport(en()),e)}(l)),Re(154),a=Ii()):(i=Ni(271),(154===ge()||10===ge()&&!c.hasPrecedingLineBreak())&&(Re(154),a=Ii())),ze(),$(o),H(qe(F.createExportDeclaration(t,r,s,i,a),e),n)}(n,t,r,i)}default:if(r||i){var a=Xe(274,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(a,n),a.decorators=r,a.modifiers=i,a}return}}function zr(e,n){if(18===ge()||!He())return kr(e,n);ze()}function Jr(){var e=me();if(27===ge())return qe(F.createOmittedExpression(),e);var n=Ve(25),t=Yr(),r=jt();return qe(F.createBindingElement(n,void 0,t,r),e)}function qr(){var e,n=me(),t=Ve(25),r=Ne(),i=tn();r&&58!==ge()?(e=i,i=void 0):(Re(58),e=Yr());var a=jt();return qe(F.createBindingElement(t,i,e,a),n)}function Xr(){return 18===ge()||22===ge()||80===ge()||Ne()}function Yr(e){return 22===ge()?function(){var e=me();Re(22);var n=Dn(10,Jr);return Re(23),qe(F.createArrayBindingPattern(n),e)}():18===ge()?function(){var e=me();Re(18);var n=Dn(9,qr);return Re(19),qe(F.createObjectBindingPattern(n),e)}():Ze(e)}function Qr(){return Zr(!0)}function Zr(n){var t,r=me(),i=_e(),a=Yr(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations);n&&79===a.kind&&53===ge()&&!c.hasPrecedingLineBreak()&&(t=Ke());var o=Gt(),s=Qt(ge())?void 0:jt();return H(qe(F.createVariableDeclaration(a,t,o,s),r),i)}function $r(n){var t,r=me(),i=0;switch(ge()){case 113:break;case 119:i|=1;break;case 85:i|=2;break;default:e.Debug.fail()}if(ve(),158===ge()&&Ce(ei))t=Cn();else{var a=oe();Y(n),t=Dn(8,n?Zr:Qr),Y(a)}return qe(F.createVariableDeclarationList(t,i),r)}function ei(){return mn()&&21===ve()}function ni(e,n,t,r){var i=$r(!1);ze();var a=F.createVariableStatement(r,i);return a.decorators=t,H(qe(a,e),n)}function ti(n,t,r,i){var a=ce(),o=e.modifiersToFlags(i);Re(98);var s=Ve(41),c=512&o?Ir():Ze(),l=s?1:0,u=256&o?2:0,d=qn();1&o&&$(!0);var p=nt(l|u),f=$n(58,!1),m=zr(l|u,e.Diagnostics.or_expected);return $(a),H(qe(F.createFunctionDeclaration(r,i,s,c,d,p,f,m),n),t)}function ri(n,t,r,i,a,o,s,c,l){var u=a?1:0,d=e.some(i,e.isAsyncModifier)?2:0,p=qn(),f=nt(u|d),m=$n(58,!1),_=zr(u|d,l),g=F.createMethodDeclaration(r,i,a,o,s,p,f,m,_);return g.exclamationToken=c,H(qe(g,n),t)}function ii(n,t,r,i,a,o){var s=o||c.hasPrecedingLineBreak()?void 0:Ve(53),l=Gt(),u=ee(45056,jt);return function(n,t,r){if(59!==ge()||c.hasPrecedingLineBreak())return 20===ge()?(le(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),void ve()):void(!t||He()?We()||(r?18===ge()&&le(e.Diagnostics._0_expected,e.tokenToString(26)):Fe(n)):r?le(e.Diagnostics._0_expected,e.tokenToString(26)):le(e.Diagnostics.Expected_for_property_initializer));le(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(a,l,u),H(qe(F.createPropertyDeclaration(r,i,a,o||s,l,u),n),t)}function ai(n,t,r,i){var a=Ve(41),o=tn(),s=Ve(57);return a||20===ge()||29===ge()?ri(n,t,r,i,a,o,s,void 0,e.Diagnostics.or_expected):ii(n,t,r,i,o,s)}function oi(e,n,t,r,i){var a=tn(),o=qn(),s=nt(0),c=$n(58,!1),l=zr(0),u=170===i?F.createGetAccessorDeclaration(t,r,a,s,c,l):F.createSetAccessorDeclaration(t,r,a,s,l);return u.typeParameters=o,c&&171===u.kind&&(u.type=c),H(qe(u,e),n)}function si(){var n;if(59===ge())return!0;for(;e.isModifierKind(ge());){if(n=ge(),e.isClassMemberModifier(n))return!0;ve()}if(41===ge())return!0;if(nn()&&(n=ge(),ve()),22===ge())return!0;if(void 0!==n){if(!e.isKeyword(n)||147===n||135===n)return!0;switch(ge()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return He()}}return!1}function ci(){if(ce()&&131===ge()){var n=me(),t=$e(e.Diagnostics.Expression_expected);return ve(),vr(n,gr(n,t,!0))}return ir()}function li(){var e=me();if(Ue(59)){var n=ne(16384,ci);return qe(F.createDecorator(n),e)}}function ui(){for(var n,t,r=me();t=li();)n=e.append(n,t);return n&&Je(n,r)}function di(n,t){var r=me(),i=ge();if(85===ge()&&n){if(!Ie(on))return}else{if(t&&124===ge()&&Ce(Ai))return;if(!e.isModifierKind(ge())||!Ie(sn))return}return qe(F.createToken(i),r)}function pi(n,t){for(var r,i,a=me();i=di(n,t);)r=e.append(r,i);return r&&Je(r,a)}function fi(){var e;if(130===ge()){var n=me();ve(),e=Je([qe(F.createToken(130),n)],n)}return e}function mi(){var n=me();if(26===ge())return ve(),qe(F.createSemicolonClassElement(),n);var t=_e(),r=ui(),i=pi(!0,!0);if(124===ge()&&Ce(Ai))return function(e,n,t,r){je(124);var i=function(){var e=ae(),n=ce();Q(!1),$(!0);var t=Nr(!1);return Q(e),$(n),t}();return H(qe(F.createClassStaticBlockDeclaration(t,r,i),e),n)}(n,t,r,i);if(an(135))return oi(n,t,r,i,170);if(an(147))return oi(n,t,r,i,171);if(133===ge()||10===ge()){var a=function(n,t,r,i){return Ie((function(){if(133===ge()?Re(133):10===ge()&&20===Ce(ve)?Ie((function(){var e=Fn();return"constructor"===e.text?e:void 0})):void 0){var a=qn(),o=nt(0),s=$n(58,!1),c=zr(0,e.Diagnostics.or_expected),l=F.createConstructorDeclaration(r,i,o,c);return l.typeParameters=a,l.type=s,H(qe(l,n),t)}}))}(n,t,r,i);if(a)return a}if(it())return ot(n,t,r,i);if(e.tokenIsIdentifierOrKeyword(ge())||10===ge()||8===ge()||41===ge()||22===ge()){if(e.some(i,Kr)){for(var o=0,s=i;o<s.length;o++)s[o].flags|=8388608;return ne(8388608,(function(){return ai(n,t,r,i)}))}return ai(n,t,r,i)}if(r||i){var c=Xe(79,!0,e.Diagnostics.Declaration_expected);return ii(n,t,r,i,c,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function _i(e,n,t,r){return gi(e,n,t,r,255)}function gi(n,t,r,i,a){var o=ce();Re(84);var s=!Ne()||117===ge()&&Ce(_n)?void 0:Qe(Ne()),c=qn();e.some(i,e.isExportModifier)&&$(!0);var l,u=yi();return Re(18)?(l=En(5,mi),Re(19)):l=Cn(),$(o),H(qe(255===a?F.createClassDeclaration(r,i,s,c,u,l):F.createClassExpression(r,i,s,c,u,l),n),t)}function yi(){if(Ei())return En(22,hi)}function hi(){var n=me(),t=ge();e.Debug.assert(94===t||117===t),ve();var r=Dn(7,vi);return qe(F.createHeritageClause(t,r),n)}function vi(){var e=me(),n=ir(),t=bi();return qe(F.createExpressionWithTypeArguments(n,t),e)}function bi(){return 29===ge()?In(20,Mt,29,31):void 0}function Ei(){return 94===ge()||117===ge()}function Ti(){var e=me(),n=_e(),t=tn(),r=te(jt);return H(qe(F.createEnumMember(t,r),e),n)}function Si(){var e,n=me();return Re(18)?(e=En(1,jr),Re(19)):e=Cn(),qe(F.createModuleBlock(e),n)}function xi(e,n,t,r,i){var a=16&i,o=$e(),s=Ue(24)?xi(me(),!1,void 0,void 0,4|a):Si();return H(qe(F.createModuleDeclaration(t,r,o,s,i),e),n)}function Li(e,n,t,r){var i,a,o=0;return 155===ge()?(i=$e(),o|=1024):(i=Fn()).text=Ye(i.text),18===ge()?a=Si():ze(),H(qe(F.createModuleDeclaration(t,r,i,a,o),e),n)}function Di(){return 20===ve()}function Ai(){return 18===ve()}function Ci(){return 43===ve()}function Ii(){if(10===ge()){var e=Fn();return e.text=Ye(e.text),e}return Vt()}function Ni(e){var n=me();return qe(267===e?F.createNamedImports(In(23,Ri,18,19)):F.createNamedExports(In(23,ki,18,19)),n)}function ki(){return Oi(273)}function Ri(){return Oi(268)}function Oi(n){var t,r,i=me(),a=e.isKeyword(ge())&&!ke(),o=c.getTokenPos(),s=c.getTextPos(),l=en();return 127===ge()?(t=l,Re(127),a=e.isKeyword(ge())&&!ke(),o=c.getTokenPos(),s=c.getTextPos(),r=en()):r=l,268===n&&a&&de(o,s,e.Diagnostics.Identifier_expected),qe(268===n?F.createImportSpecifier(t,r):F.createExportSpecifier(t,r),i)}function Pi(n){return function(n,t){return e.some(n.modifiers,(function(e){return 93===e.kind}))}(n)||e.isImportEqualsDeclaration(n)&&e.isExternalModuleReference(n.moduleReference)||e.isImportDeclaration(n)||e.isExportAssignment(n)||e.isExportDeclaration(n)?n:void 0}function wi(n){return function(n){return e.isMetaProperty(n)&&100===n.keywordToken&&"meta"===n.name.escapedText}(n)?n:m(n,wi)}!function(e){e[e.SourceElements=0]="SourceElements",e[e.BlockStatements=1]="BlockStatements",e[e.SwitchClauses=2]="SwitchClauses",e[e.SwitchClauseStatements=3]="SwitchClauseStatements",e[e.TypeMembers=4]="TypeMembers",e[e.ClassMembers=5]="ClassMembers",e[e.EnumMembers=6]="EnumMembers",e[e.HeritageClauseElement=7]="HeritageClauseElement",e[e.VariableDeclarations=8]="VariableDeclarations",e[e.ObjectBindingElements=9]="ObjectBindingElements",e[e.ArrayBindingElements=10]="ArrayBindingElements",e[e.ArgumentExpressions=11]="ArgumentExpressions",e[e.ObjectLiteralMembers=12]="ObjectLiteralMembers",e[e.JsxAttributes=13]="JsxAttributes",e[e.JsxChildren=14]="JsxChildren",e[e.ArrayLiteralMembers=15]="ArrayLiteralMembers",e[e.Parameters=16]="Parameters",e[e.JSDocParameters=17]="JSDocParameters",e[e.RestProperties=18]="RestProperties",e[e.TypeParameters=19]="TypeParameters",e[e.TypeArguments=20]="TypeArguments",e[e.TupleElementTypes=21]="TupleElementTypes",e[e.HeritageClauses=22]="HeritageClauses",e[e.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",e[e.Count=24]="Count"}(Oe||(Oe={})),function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"}(Pe||(Pe={})),function(n){function t(e){var n=me(),t=(e?Ue:Re)(18),r=ne(4194304,zn);e&&!t||Be(19);var i=F.createJSDocTypeExpression(r);return J(i),qe(i,n)}function r(){for(var e=me(),n=Ue(18),t=me(),r=Nn(!1);80===ge();)xe(),be(),r=qe(F.createJSDocMemberName(r,$e()),t);n&&Be(19);var i=F.createJSDocNameReference(r);return J(i),qe(i,e)}var i,a;function o(n,i){void 0===n&&(n=0);var a=b,o=void 0===i?a.length:n+i;if(i=o-n,e.Debug.assert(n>=0),e.Debug.assert(n<=o),e.Debug.assert(o<=a.length),f(a,n)){var s,l,u,d,m,_=[],g=[];return c.scanRange(n+3,i-5,(function(){var t,r,i=1,p=n-(a.lastIndexOf("\n",n)+1)+4;function f(e){t||(t=p),_.push(e),p+=e.length}for(be();z(5););z(4)&&(i=0,p=0);e:for(;;){switch(ge()){case 59:0===i||1===i?(h(_),m||(m=me()),(r=S(p))&&(s?s.push(r):(s=[r],l=r.pos),u=r.end),i=0,t=void 0):f(c.getTokenText());break;case 4:_.push(c.getTokenText()),i=0,p=0;break;case 41:var v=c.getTokenText();1===i||2===i?(i=2,f(v)):(i=1,p+=v.length);break;case 5:var b=c.getTokenText();2===i?_.push(b):void 0!==t&&p+b.length>t&&_.push(b.slice(t-p)),p+=b.length;break;case 1:break e;case 18:i=2;var E=c.getStartPos(),T=C(c.getTextPos()-1);if(T){d||y(_),g.push(qe(F.createJSDocText(_.join("")),null!=d?d:n,E)),g.push(T),_=[],d=c.getTextPos();break}default:i=2,f(c.getTokenText())}be()}h(_),g.length&&_.length&&g.push(qe(F.createJSDocText(_.join("")),null!=d?d:n,m)),g.length&&s&&e.Debug.assertIsDefined(m,"having parsed tags implies that the end of the comment span should be set");var x=s&&Je(s,l,u);return qe(F.createJSDocComment(g.length?Je(g,n,m):_.length?_.join(""):void 0,x),n,o)}))}function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function h(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function v(){for(;;){if(be(),1===ge())return!0;if(5!==ge()&&4!==ge())return!1}}function E(){if(5!==ge()&&4!==ge()||!Ce(v))for(;5===ge()||4===ge();)be()}function T(){if((5===ge()||4===ge())&&Ce(v))return"";for(var e=c.hasPrecedingLineBreak(),n=!1,t="";e&&41===ge()||5===ge()||4===ge();)t+=c.getTokenText(),4===ge()?(e=!0,n=!0,t=""):41===ge()&&(e=!1),be();return n?t:""}function S(n){e.Debug.assert(59===ge());var i=c.getTokenPos();be();var a,o=J(void 0),l=T();switch(o.escapedText){case"author":a=function(n,t,r,i){var a=me(),o=function(){for(var e=[],n=!1,t=c.getToken();1!==t&&4!==t;){if(29===t)n=!0;else{if(59===t&&!n)break;if(31===t&&n){e.push(c.getTokenText()),c.setTextPos(c.getTokenPos()+1);break}}e.push(c.getTokenText()),t=be()}return F.createJSDocText(e.join(""))}(),s=c.getStartPos(),l=L(n,s,r,i);l||(s=c.getStartPos());var u="string"!=typeof l?Je(e.concatenate([qe(o,a,s)],l),a):o.text+l;return qe(F.createJSDocAuthorTag(t,u),n)}(i,o,n,l);break;case"implements":a=function(e,n,t,r){var i=M();return qe(F.createJSDocImplementsTag(n,i,L(e,me(),t,r)),e)}(i,o,n,l);break;case"augments":case"extends":a=function(e,n,t,r){var i=M();return qe(F.createJSDocAugmentsTag(n,i,L(e,me(),t,r)),e)}(i,o,n,l);break;case"class":case"constructor":a=G(i,F.createJSDocClassTag,o,n,l);break;case"public":a=G(i,F.createJSDocPublicTag,o,n,l);break;case"private":a=G(i,F.createJSDocPrivateTag,o,n,l);break;case"protected":a=G(i,F.createJSDocProtectedTag,o,n,l);break;case"readonly":a=G(i,F.createJSDocReadonlyTag,o,n,l);break;case"override":a=G(i,F.createJSDocOverrideTag,o,n,l);break;case"deprecated":W=!0,a=G(i,F.createJSDocDeprecatedTag,o,n,l);break;case"this":a=function(e,n,r,i){var a=t(!0);return E(),qe(F.createJSDocThisTag(n,a,L(e,me(),r,i)),e)}(i,o,n,l);break;case"enum":a=function(e,n,r,i){var a=t(!0);return E(),qe(F.createJSDocEnumTag(n,a,L(e,me(),r,i)),e)}(i,o,n,l);break;case"arg":case"argument":case"param":return P(i,o,2,n);case"return":case"returns":a=function(n,t,r,i){e.some(s,e.isJSDocReturnTag)&&de(t.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,t.escapedText);var a=N();return qe(F.createJSDocReturnTag(t,a,L(n,me(),r,i)),n)}(i,o,n,l);break;case"template":a=function(e,n,r,i){var a=18===ge()?t():void 0,o=function(){var e=me(),n=[];do{E();var t=H();void 0!==t&&n.push(t),T()}while(z(27));return Je(n,e)}();return qe(F.createJSDocTemplateTag(n,a,o,L(e,me(),r,i)),e)}(i,o,n,l);break;case"type":a=w(i,o,n,l);break;case"typedef":a=function(n,t,r,i){var a,o=N();T();var s=B();E();var c,l=D(r);if(!o||O(o.type)){for(var u=void 0,d=void 0,f=void 0,m=!1;u=Ie((function(){return V(r)}));)if(m=!0,338===u.kind){if(d){le(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var _=e.lastOrUndefined(x);_&&e.addRelatedInfo(_,e.createDetachedDiagnostic(p,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}d=u}else f=e.append(f,u);if(m){var g=o&&181===o.type.kind,y=F.createJSDocTypeLiteral(f,g);c=(o=d&&d.typeExpression&&!O(d.typeExpression.type)?d.typeExpression:qe(y,n)).end}}return c=c||void 0!==l?me():(null!==(a=null!=s?s:o)&&void 0!==a?a:t).end,l||(l=L(n,c,r,i)),qe(F.createJSDocTypedefTag(t,o,s,l),n,c)}(i,o,n,l);break;case"callback":a=function(n,t,r,i){var a=B();E();var o=D(r),s=function(n){for(var t,r,i=me();t=Ie((function(){return j(4,n)}));)r=e.append(r,t);return Je(r||[],i)}(r),c=Ie((function(){if(z(59)){var e=S(r);if(e&&336===e.kind)return e}})),l=qe(F.createJSDocSignature(void 0,s,c),n);return o||(o=L(n,me(),r,i)),qe(F.createJSDocCallbackTag(t,l,a,o),n)}(i,o,n,l);break;case"see":a=function(n,t,i,a){var o=Ce((function(){return 59===be()&&e.tokenIsIdentifierOrKeyword(be())&&"link"===c.getTokenValue()}))?void 0:r(),s=void 0!==i&&void 0!==a?L(n,me(),i,a):void 0;return qe(F.createJSDocSeeTag(t,o,s),n)}(i,o,n,l);break;default:a=function(e,n,t,r){return qe(F.createJSDocUnknownTag(n,L(e,me(),t,r)),e)}(i,o,n,l)}return a}function L(e,n,t,r){return r||(t+=n-e),D(t,r.slice(t))}function D(e,n){var t,r,i=me(),a=[],o=[],s=0,l=!0;function u(n){r||(r=e),a.push(n),e+=n.length}void 0!==n&&(""!==n&&u(n),s=1);var d=ge();e:for(;;){switch(d){case 4:s=0,a.push(c.getTokenText()),e=0;break;case 59:if(3===s||2===s&&(!l||Ce(A))){a.push(c.getTokenText());break}c.setTextPos(c.getTextPos()-1);case 1:break e;case 5:if(2===s||3===s)u(c.getTokenText());else{var p=c.getTokenText();void 0!==r&&e+p.length>r&&a.push(p.slice(r-e)),e+=p.length}break;case 18:s=2;var f=c.getStartPos(),m=C(c.getTextPos()-1);m?(o.push(qe(F.createJSDocText(a.join("")),null!=t?t:i,f)),o.push(m),a=[],t=c.getTextPos()):u(c.getTokenText());break;case 61:s=3===s?2:3,u(c.getTokenText());break;case 41:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),u(c.getTokenText())}l=5===ge(),d=be()}return y(a),h(a),o.length?(a.length&&o.push(qe(F.createJSDocText(a.join("")),null!=t?t:i)),Je(o,i,c.getTextPos())):a.length?a.join(""):void 0}function A(){var e=be();return 5===e||4===e}function C(n){var t=Ie(I);if(t){be(),E();var r=me(),i=e.tokenIsIdentifierOrKeyword(ge())?Nn(!0):void 0;if(i)for(;80===ge();)xe(),be(),i=qe(F.createJSDocMemberName(i,$e()),r);for(var a=[];19!==ge()&&4!==ge()&&1!==ge();)a.push(c.getTokenText()),be();return qe(("link"===t?F.createJSDocLink:"linkcode"===t?F.createJSDocLinkCode:F.createJSDocLinkPlain)(i,a.join("")),n,c.getTextPos())}}function I(){if(T(),18===ge()&&59===be()&&e.tokenIsIdentifierOrKeyword(be())){var n=c.getTokenValue();if("link"===n||"linkcode"===n||"linkplain"===n)return n}}function N(){return T(),18===ge()?t():void 0}function k(){var n=z(22);n&&E();var t=z(61),r=function(){var e=J();for(Ue(22)&&Re(23);Ue(24);){var n=J();Ue(22)&&Re(23),e=kn(e,n)}return e}();return t&&(function(e){if(ge()===e)return n=me(),t=ge(),be(),qe(F.createToken(t),n);var n,t}(61)||Xe(61,!1,e.Diagnostics._0_expected,e.tokenToString(61))),n&&(E(),Ve(63)&&Vt(),Re(23)),{name:r,isBracketed:n}}function O(n){switch(n.kind){case 146:return!0;case 181:return O(n.elementType);default:return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Object"===n.typeName.escapedText&&!n.typeArguments}}function P(n,t,r,i){var a=N(),o=!a;T();var s=k(),c=s.name,l=s.isBracketed,u=T();o&&!Ce(I)&&(a=N());var d=L(n,me(),i,u),p=4!==r&&function(n,t,r,i){if(n&&O(n.type)){for(var a=me(),o=void 0,s=void 0;o=Ie((function(){return j(r,i,t)}));)335!==o.kind&&342!==o.kind||(s=e.append(s,o));if(s){var c=qe(F.createJSDocTypeLiteral(s,181===n.type.kind),a);return qe(F.createJSDocTypeExpression(c),a)}}}(a,c,r,i);return p&&(a=p,o=!0),qe(1===r?F.createJSDocPropertyTag(t,c,l,a,o,d):F.createJSDocParameterTag(t,c,l,a,o,d),n)}function w(n,r,i,a){e.some(s,e.isJSDocTypeTag)&&de(r.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var o=t(!0),l=void 0!==i&&void 0!==a?L(n,me(),i,a):void 0;return qe(F.createJSDocTypeTag(r,o,l),n)}function M(){var e=Ue(18),n=me(),t=function(){for(var e=me(),n=J();Ue(24);){var t=J();n=qe(F.createPropertyAccessExpression(n,t),e)}return n}(),r=bi(),i=qe(F.createExpressionWithTypeArguments(t,r),n);return e&&Re(19),i}function G(e,n,t,r,i){return qe(n(t,L(e,me(),r,i)),e)}function B(n){var t=c.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ge())){var r=J();if(Ue(24)){var i=B(!0);return qe(F.createModuleDeclaration(void 0,void 0,r,i,n?4:void 0),t)}return n&&(r.isInJSDocNamespace=!0),r}}function U(n,t){for(;!e.isIdentifier(n)||!e.isIdentifier(t);){if(e.isIdentifier(n)||e.isIdentifier(t)||n.right.escapedText!==t.right.escapedText)return!1;n=n.left,t=t.left}return n.escapedText===t.escapedText}function V(e){return j(1,e)}function j(n,t,r){for(var i=!0,a=!1;;)switch(be()){case 59:if(i){var o=K(n,t);return!(o&&(335===o.kind||342===o.kind)&&4!==n&&r&&(e.isIdentifier(o.name)||!U(r,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 79:i=!1;break;case 1:return!1}}function K(n,t){e.Debug.assert(59===ge());var r=c.getStartPos();be();var i,a=J();switch(E(),a.escapedText){case"type":return 1===n&&w(r,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(n&i)&&P(r,a,n,t)}function H(){var n=me(),t=J(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(!e.nodeIsMissing(t))return qe(F.createTypeParameterDeclaration(t,void 0,void 0),n)}function z(e){return ge()===e&&(be(),!0)}function J(n){if(!e.tokenIsIdentifierOrKeyword(ge()))return Xe(79,!n,n||e.Diagnostics.Identifier_expected);R++;var t=c.getTokenPos(),r=c.getTextPos(),i=ge(),a=Ye(c.getTokenValue()),o=qe(F.createIdentifier(a,void 0,i),t,r);return be(),o}}n.parseJSDocTypeExpressionForTests=function(n,r,i){V("file.js",n,99,void 0,1),c.setText(n,r,i),C=c.scan();var a=t(),o=q("file.js",99,1,!1,[],F.createToken(1),0),s=e.attachFileToDiagnostics(x,o);return L&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(L,o)),j(),a?{jsDocTypeExpression:a,diagnostics:s}:void 0},n.parseJSDocTypeExpression=t,n.parseJSDocNameReference=r,n.parseIsolatedJSDocComment=function(n,t,r){V("",n,99,void 0,1);var i=ne(4194304,(function(){return o(t,r)})),a={languageVariant:0,text:n},s=e.attachFileToDiagnostics(x,a);return j(),i?{jsDoc:i,diagnostics:s}:void 0},n.parseJSDocComment=function(n,t,r){var i=C,a=x.length,s=B,c=ne(4194304,(function(){return o(t,r)}));return e.setParent(c,n),131072&w&&(L||(L=[]),L.push.apply(L,x)),C=i,x.length=a,B=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(i||(i={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(a||(a={}))}(we=n.JSDocParser||(n.JSDocParser={}))}(l||(l={})),function(n){function t(n,t,i,o,s,c){return void(t?u(n):l(n));function l(n){var t="";if(c&&r(n)&&(t=o.substring(n.pos,n.end)),n._children&&(n._children=void 0),e.setTextRangePosEnd(n,n.pos+i,n.end+i),c&&r(n)&&e.Debug.assert(t===s.substring(n.pos,n.end)),m(n,l,u),e.hasJSDocNodes(n))for(var d=0,p=n.jsDoc;d<p.length;d++)l(p[d]);a(n,c)}function u(n){n._children=void 0,e.setTextRangePosEnd(n,n.pos+i,n.end+i);for(var t=0,r=n;t<r.length;t++)l(r[t])}}function r(e){switch(e.kind){case 10:case 8:case 79:return!0}return!1}function i(n,t,r,i,a){e.Debug.assert(n.end>=t,"Adjusting an element that was entirely before the change range"),e.Debug.assert(n.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(n.pos<=n.end);var o=Math.min(n.pos,i),s=n.end>=r?n.end+a:Math.min(n.end,i);e.Debug.assert(o<=s),n.parent&&(e.Debug.assertGreaterThanOrEqual(o,n.parent.pos),e.Debug.assertLessThanOrEqual(s,n.parent.end)),e.setTextRangePosEnd(n,o,s)}function a(n,t){if(t){var r=n.pos,i=function(n){e.Debug.assert(n.pos>=r),r=n.end};if(e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a<o.length;a++)i(o[a]);m(n,i),e.Debug.assert(r<=n.end)}}function o(n,t){var r,i=n;if(m(n,(function n(a){if(!e.nodeIsMissing(a))return a.pos<=t?(a.pos>=i.pos&&(i=a),t<a.end?(m(a,n),!0):(e.Debug.assert(a.end<=t),void(r=a))):(e.Debug.assert(a.pos>t),!0)})),r){var a=function(n){for(;;){var t=e.getLastChild(n);if(!t)return n;n=t}}(r);a.pos>i.pos&&(i=a)}return i}function s(n,t,r,i){var a=n.text;if(r&&(e.Debug.assert(a.length-r.span.length+r.newLength===t.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,r.span.start),s=t.substr(0,r.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(r.span),a.length),l=t.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),t.length);e.Debug.assert(c===l)}}function c(n){var t=n.statements,r=0;e.Debug.assert(r<t.length);var i=t[r],a=-1;return{currentNode:function(o){return o!==a&&(i&&i.end===o&&r<t.length-1&&(r++,i=t[r]),i&&i.pos===o||function(e){return t=void 0,r=-1,i=void 0,void m(n,a,o);function a(n){return e>=n.pos&&e<n.end&&(m(n,a,o),!0)}function o(n){if(e>=n.pos&&e<n.end)for(var s=0;s<n.length;s++){var c=n[s];if(c){if(c.pos===e)return t=n,r=s,i=c,!0;if(c.pos<e&&e<c.end)return m(c,a,o),!0}}return!1}}(o)),a=o,e.Debug.assert(!i||i.pos===o),i}}}var u;n.updateSourceFile=function(n,r,u,d){if(s(n,r,u,d=d||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(u))return n;if(0===n.statements.length)return l.parseSourceFile(n.fileName,r,n.languageVersion,void 0,!0,n.scriptKind);var p=n;e.Debug.assert(!p.hasBeenIncrementallyParsed),p.hasBeenIncrementallyParsed=!0,l.fixupParentReferences(p);var f=n.text,_=c(n),g=function(n,t){for(var r=t.span.start,i=0;r>0&&i<=1;i++){var a=o(n,r);e.Debug.assert(a.pos<=r);var s=a.pos;r=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(r,e.textSpanEnd(t.span)),l=t.newLength+(t.span.start-r);return e.createTextChangeRange(c,l)}(n,u);s(n,r,g,d),e.Debug.assert(g.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(g.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(g))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var y=e.textChangeRangeNewSpan(g).length-g.span.length;!function(n,r,o,s,c,l,u,d){return void p(n);function p(n){if(e.Debug.assert(n.pos<=n.end),n.pos>o)t(n,!1,c,l,u,d);else{var _=n.end;if(_>=r){if(n.intersectsChange=!0,n._children=void 0,i(n,r,o,s,c),m(n,p,f),e.hasJSDocNodes(n))for(var g=0,y=n.jsDoc;g<y.length;g++)p(y[g]);a(n,d)}else e.Debug.assert(_<r)}}function f(n){if(e.Debug.assert(n.pos<=n.end),n.pos>o)t(n,!0,c,l,u,d);else{var a=n.end;if(a>=r){n.intersectsChange=!0,n._children=void 0,i(n,r,o,s,c);for(var f=0,m=n;f<m.length;f++)p(m[f])}else e.Debug.assert(a<r)}}}(p,g.span.start,e.textSpanEnd(g.span),e.textSpanEnd(e.textChangeRangeNewSpan(g)),y,f,r,d);var h=l.parseSourceFile(n.fileName,r,n.languageVersion,_,!0,n.scriptKind);return h.commentDirectives=function(n,t,r,i,a,o,s,c){if(!n)return t;for(var l,u=!1,d=0,p=n;d<p.length;d++){var f=p[d],m=f.range,_=f.type;if(m.end<r)l=e.append(l,f);else if(m.pos>i){y();var g={range:{pos:m.pos+a,end:m.end+a},type:_};l=e.append(l,g),c&&e.Debug.assert(o.substring(m.pos,m.end)===s.substring(g.range.pos,g.range.end))}}return y(),l;function y(){u||(u=!0,l?t&&l.push.apply(l,t):l=t)}}(n.commentDirectives,h.commentDirectives,g.span.start,e.textSpanEnd(g.span),y,f,r,d),h},n.createSyntaxCursor=c,function(e){e[e.Value=-1]="Value"}(u||(u={}))}(u||(u={})),e.isDeclarationFileName=y,e.processCommentPragmas=h,e.processPragmasIntoFields=v;var b=new e.Map;function E(e){if(b.has(e))return b.get(e);var n=new RegExp("(\\s"+e+"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))","im");return b.set(e,n),n}var T=/^\/\/\/\s*<(\S+)\s.*?\/>/im,S=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function x(n,t,r){var i=2===t.kind&&T.exec(r);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,l=o.args;c<l.length;c++){var u=l[c],d=E(u.name).exec(r);if(!d&&!u.optional)return;if(d){var p=d[2]||d[3];if(u.captureSpan){var f=t.pos+d.index+d[1].length+1;s[u.name]={value:p,pos:f,end:f+p.length}}else s[u.name]=p}}n.push({name:a,args:{arguments:s,range:t}})}else n.push({name:a,args:{arguments:{},range:t}})}else{var m=2===t.kind&&S.exec(r);if(m)return L(n,t,2,m);if(3===t.kind)for(var _=/@(\S+)(\s+.*)?$/gim,g=void 0;g=_.exec(r);)L(n,t,4,g)}}function L(n,t,r,i){if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(o&&o.kind&r){var s=function(n,t){if(!t)return{};if(!n.args)return{};for(var r=e.trimString(t).split(/\s+/),i={},a=0;a<n.args.length;a++){var o=n.args[a];if(!r[a]&&!o.optional)return"fail";if(o.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");i[o.name]=r[a]}return i}(o,i[2]);"fail"!==s&&n.push({name:a,args:{arguments:s,range:t}})}}}function D(e,n){return e.kind===n.kind&&(79===e.kind?e.escapedText===n.escapedText:108===e.kind||e.name.escapedText===n.name.escapedText&&D(e.expression,n.expression))}e.tagNamesAreEquivalent=D}(u||(u={})),function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var n=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(n.entries(),(function(e){var n=e[0];return[""+e[1],n]}))));var t=[["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=t.map((function(e){return e[0]})),e.libMap=new e.Map(t),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:Se},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:Se},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 r,o=[{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:n,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:"undefined"},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0,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}];function s(n){var t=new e.Map,r=new e.Map;return e.forEach(n,(function(e){t.set(e.name.toLowerCase(),e),e.shortName&&r.set(e.shortName,e.name)})),{optionsNameMap:t,shortOptionNames:r}}function c(){return r||(r=s(e.optionDeclarations))}e.optionDeclarations=i(i([],e.commonOptionsWithBuild,!0),o,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsSemanticDiagnostics})),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsEmit})),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsModuleResolution})),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter((function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics})),e.optionsAffectingProgramStructure=e.optionDeclarations.filter((function(e){return!!e.affectsProgramStructure})),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter((function(n){return e.hasProperty(n,"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=i(i([],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"}],e.createOptionNameMap=s,e.getOptionsNameMap=c;var l,u={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:T};function d(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function p(n){return f(n,e.createCompilerDiagnostic)}function f(n,t){var r=e.arrayFrom(n.type.keys()).map((function(e){return"'"+e+"'"})).join(", ");return t(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+n.name,r)}function m(n,t,r){return ge(n,e.trimString(t||""),r)}function _(n,t,r){if(void 0===t&&(t=""),t=e.trimString(t),!e.startsWith(t,"-")){if(""===t)return[];var i=t.split(",");switch(n.element.type){case"number":return e.mapDefined(i,(function(e){return _e(n.element,parseInt(e),r)}));case"string":return e.mapDefined(i,(function(e){return _e(n.element,e||"",r)}));default:return e.mapDefined(i,(function(e){return m(n.element,e,r)}))}}}function g(e){return e.name}function y(n,t,r,i){var a;if(null===(a=t.alternateMode)||void 0===a?void 0:a.getOptionsNameMap().optionsNameMap.has(n.toLowerCase()))return r(t.alternateMode.diagnostic,n);var o=e.getSpellingSuggestion(n,t.optionDeclarations,g);return o?r(t.unknownDidYouMeanDiagnostic,i||n,o.name):r(t.unknownOptionDiagnostic,i||n)}function h(n,t,r){var i,a={},o=[],s=[];return c(t),{options:a,watchOptions:i,fileNames:o,errors:s};function c(t){for(var r=0;r<t.length;){var c=t[r];if(r++,64===c.charCodeAt(0))l(c.slice(1));else if(45===c.charCodeAt(0)){var u=c.slice(45===c.charCodeAt(1)?2:1),d=E(n.getOptionsNameMap,u,!0);if(d)r=v(t,r,n,d,a,s);else{var p=E(w.getOptionsNameMap,u,!0);p?r=v(t,r,w,p,i||(i={}),s):s.push(y(u,n,e.createCompilerDiagnostic,c))}}else o.push(c)}}function l(n){var t=D(n,r||function(n){return e.sys.readFile(n)});if(e.isString(t)){for(var i=[],a=0;;){for(;a<t.length&&t.charCodeAt(a)<=32;)a++;if(a>=t.length)break;var o=a;if(34===t.charCodeAt(o)){for(a++;a<t.length&&34!==t.charCodeAt(a);)a++;a<t.length?(i.push(t.substring(o+1,a)),a++):s.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,n))}else{for(;t.charCodeAt(a)>32;)a++;i.push(t.substring(o,a))}}c(i)}else s.push(t)}}function v(n,t,r,i,a,o){if(i.isTSConfigOnly)"null"===(s=n[t])?(a[i.name]=void 0,t++):"boolean"===i.type?"false"===s?(a[i.name]=_e(i,!1,o),t++):("true"===s&&t++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&t++);else if(n[t]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(r.optionTypeMismatchDiagnostic,i.name,j(i))),"null"!==n[t])switch(i.type){case"number":a[i.name]=_e(i,parseInt(n[t]),o),t++;break;case"boolean":var s=n[t];a[i.name]=_e(i,"false"!==s,o),"false"!==s&&"true"!==s||t++;break;case"string":a[i.name]=_e(i,n[t]||"",o),t++;break;case"list":var c=_(i,n[t],o);a[i.name]=c||[],c&&t++;break;default:a[i.name]=m(i,n[t],o),t++}else a[i.name]=void 0,t++;return t}function b(e,n){return E(c,e,n)}function E(e,n,t){void 0===t&&(t=!1),n=n.toLowerCase();var r=e(),i=r.optionsNameMap,a=r.shortOptionNames;if(t){var o=a.get(n);void 0!==o&&(n=o)}return i.get(n)}function T(){return l||(l=s(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=d,e.createCompilerDiagnosticForInvalidCustomType=p,e.parseCustomTypeOption=m,e.parseListTypeOption=_,e.parseCommandLineWorker=h,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:u,getOptionsNameMap:c,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},e.parseCommandLine=function(n,t){return h(e.compilerOptionsDidYouMeanDiagnostics,n,t)},e.getOptionFromName=b;var S={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:c},getOptionsNameMap:T,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 x(n,t){var r=e.parseJsonText(n,t);return{config:B(r,r.parseDiagnostics,!1,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function L(n,t){var r=D(n,t);return e.isString(r)?e.parseJsonText(n,r):{fileName:n,parseDiagnostics:[r]}}function D(n,t){var r;try{r=t(n)}catch(t){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,n,t.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,n):r}function A(n){return e.arrayToMap(n,g)}e.parseBuildCommand=function(n){var t=h(S,n),r=t.options,i=t.watchOptions,a=t.fileNames,o=t.errors,s=r;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return e.createCompilerDiagnostic.apply(void 0,arguments).messageText},e.getParsedCommandLineOfConfigFile=function(n,t,r,i,a,o){var s=D(n,(function(e){return r.readFile(e)}));if(e.isString(s)){var c=e.parseJsonText(n,s),l=r.getCurrentDirectory();return c.path=e.toPath(n,l,e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)),c.resolvedPath=c.path,c.originalFileName=c.fileName,Q(c,r,e.getNormalizedAbsolutePath(e.getDirectoryPath(n),l),t,e.getNormalizedAbsolutePath(n,l),void 0,o,i,a)}r.onUnRecoverableConfigFileDiagnostic(s)},e.readConfigFile=function(n,t){var r=D(n,t);return e.isString(r)?x(n,r):{config:{},error:r}},e.parseConfigFileTextToJson=x,e.readJsonConfigFile=L,e.tryReadFile=D;var C,I={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1};function N(){return C||(C=s(e.optionsForWatch))}var k,R,O,P,w={getOptionsNameMap:N,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};function M(){return k||(k=A(e.optionDeclarations))}function F(){return R||(R=A(e.optionsForWatch))}function G(){return O||(O=A(e.typeAcquisitionDeclarations))}function B(n,t,r,i){var a,o=null===(a=n.statements[0])||void 0===a?void 0:a.expression,s=r?(void 0===P&&(P={name:void 0,type:"object",elementOptions:A([{name:"compilerOptions",type:"object",elementOptions:M(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:F(),extraKeyDiagnostics:w},{name:"typingOptions",type:"object",elementOptions:G(),extraKeyDiagnostics:I},{name:"typeAcquisition",type:"object",elementOptions:G(),extraKeyDiagnostics:I},{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])}),P):void 0;if(o&&203!==o.kind){if(t.push(e.createDiagnosticForNodeInSourceFile(n,o,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===e.getBaseFileName(n.fileName)?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(o)){var c=e.find(o.elements,e.isObjectLiteralExpression);if(c)return V(n,c,t,!0,s,i)}return{}}return V(n,o,t,!0,s,i)}function U(e,n){var t;return V(e,null===(t=e.statements[0])||void 0===t?void 0:t.expression,n,!0,void 0,void 0)}function V(n,t,r,a,o,s){return t?u(t,o):a?{}:void 0;function c(e){return o&&o.elementOptions===e}function l(t,i,o,l){for(var p=a?{}:void 0,f=function(t){if(291!==t.kind)return r.push(e.createDiagnosticForNodeInSourceFile(n,t,e.Diagnostics.Property_assignment_expected)),"continue";t.questionToken&&r.push(e.createDiagnosticForNodeInSourceFile(n,t.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),d(t.name)||r.push(e.createDiagnosticForNodeInSourceFile(n,t.name,e.Diagnostics.String_literal_with_double_quotes_expected));var f=e.isComputedNonLiteralName(t.name)?void 0:e.getTextOfPropertyName(t.name),m=f&&e.unescapeLeadingUnderscores(f),_=m&&i?i.get(m):void 0;m&&o&&!_&&(i?r.push(y(m,o,(function(r,i,a){return e.createDiagnosticForNodeInSourceFile(n,t.name,r,i,a)}))):r.push(e.createDiagnosticForNodeInSourceFile(n,t.name,o.unknownOptionDiagnostic,m)));var g=u(t.initializer,_);if(void 0!==m&&(a&&(p[m]=g),s&&(l||c(i)))){var h=K(_,g);l?h&&s.onSetValidOptionKeyValueInParent(l,_,g):c(i)&&(h?s.onSetValidOptionKeyValueInRoot(m,t.name,g,t.initializer):_||s.onSetUnknownOptionKeyValueInRoot(m,t.name,g,t.initializer))}},m=0,_=t.properties;m<_.length;m++)f(_[m]);return p}function u(t,o){var s;switch(t.kind){case 110:return y(o&&"boolean"!==o.type),g(!0);case 95:return y(o&&"boolean"!==o.type),g(!1);case 104:return y(o&&"extends"===o.name),g(null);case 10:d(t)||r.push(e.createDiagnosticForNodeInSourceFile(n,t,e.Diagnostics.String_literal_with_double_quotes_expected)),y(o&&e.isString(o.type)&&"string"!==o.type);var c=t.text;if(o&&!e.isString(o.type)){var p=o;p.type.has(c.toLowerCase())||(r.push(f(p,(function(r,i,a){return e.createDiagnosticForNodeInSourceFile(n,t,r,i,a)}))),s=!0)}return g(c);case 8:return y(o&&"number"!==o.type),g(Number(t.text));case 217:if(40!==t.operator||8!==t.operand.kind)break;return y(o&&"number"!==o.type),g(-Number(t.operand.text));case 203:y(o&&"object"!==o.type);var m=t;if(o){var _=o;return g(l(m,_.elementOptions,_.extraKeyDiagnostics,_.name))}return g(l(m,void 0,void 0,void 0));case 202:return y(o&&"list"!==o.type),g(function(n,t){if(a)return e.filter(n.map((function(e){return u(e,t)})),(function(e){return void 0!==e}));n.forEach((function(e){return u(e,t)}))}(t.elements,o&&o.element))}return void(o?y(!0):r.push(e.createDiagnosticForNodeInSourceFile(n,t,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function g(a){var c;if(!s){var l=null===(c=null==o?void 0:o.extraValidation)||void 0===c?void 0:c.call(o,a);if(l)return void r.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,i([n,t],l,!1)))}return a}function y(i){i&&(r.push(e.createDiagnosticForNodeInSourceFile(n,t,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,o.name,j(o))),s=!0)}}function d(t){return e.isStringLiteral(t)&&e.isStringDoubleQuoted(t,n)}}function j(n){return"list"===n.type?"Array":e.isString(n.type)?n.type:"string"}function K(n,t){return!!n&&(!!$(t)||("list"===n.type?e.isArray(t):typeof t===(e.isString(n.type)?n.type:"string")))}function H(n){return a({},e.arrayFrom(n.entries()).reduce((function(e,n){var t;return a(a({},e),((t={})[n[0]]=n[1],t))}),{}))}function W(n){if(e.length(n)){if(1!==e.length(n))return n;if("**/*"!==n[0])return n}}function z(e){return"string"===e.type||"number"===e.type||"boolean"===e.type||"object"===e.type?void 0:"list"===e.type?z(e.element):e.type}function J(n,t){return e.forEachEntry(t,(function(e,t){if(e===n)return t}))}function q(e,n){return X(e,c(),n)}function X(n,t,r){var i=t.optionsNameMap,a=new e.Map,o=r&&e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),s=function(t){if(e.hasProperty(n,t)){if(i.has(t)&&(i.get(t).category===e.Diagnostics.Command_line_Options||i.get(t).category===e.Diagnostics.Output_Formatting))return"continue";var s=n[t],c=i.get(t.toLowerCase());if(c){var l=z(c);l?"list"===c.type?a.set(t,s.map((function(e){return J(e,l)}))):a.set(t,J(s,l)):r&&c.isFilePath?a.set(t,e.getRelativePathFromFile(r.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(r.configFilePath)),o)):a.set(t,s)}}};for(var c in n)s(c);return a}function Y(e,n,t){if(e&&!$(n))if("list"===e.type){var r=n;if(e.element.isFilePath&&r.length)return r.map(t)}else if(e.isFilePath)return t(n);return n}function Q(e,n,t,r,i,a,o,s,c){return ne(void 0,e,n,t,r,c,i,a,o,s)}function Z(e,n){n&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:n})}function $(e){return null==e}function ee(n,t){return e.getDirectoryPath(e.getNormalizedAbsolutePath(n,t))}function ne(n,t,r,i,a,o,s,c,l,u){void 0===a&&(a={}),void 0===c&&(c=[]),void 0===l&&(l=[]),e.Debug.assert(void 0===n&&void 0!==t||void 0!==n&&void 0===t);var d=[],p=ae(n,t,r,i,s,c,d,u),f=p.raw,m=e.extend(a,p.options||{}),_=o&&p.watchOptions?e.extend(o,p.watchOptions):p.watchOptions||o;m.configFilePath=s&&e.normalizeSlashes(s);var g=function(){var n=b("references",(function(e){return"object"==typeof e}),"object"),r=h(v("files"));if(r){var i="no-prop"===n||e.isArray(n)&&0===n.length,a=e.hasProperty(f,"extends");if(0===r.length&&i&&!a)if(t){var o=s||"tsconfig.json",c=e.Diagnostics.The_files_list_in_config_file_0_is_empty,l=e.firstDefined(e.getTsConfigPropArray(t,"files"),(function(e){return e.initializer})),u=l?e.createDiagnosticForNodeInSourceFile(t,l,c,o):e.createCompilerDiagnostic(c,o);d.push(u)}else E(e.Diagnostics.The_files_list_in_config_file_0_is_empty,s||"tsconfig.json")}var p,m,_=h(v("include")),g=v("exclude"),y=h(g);if("no-prop"===g&&f.compilerOptions){var T=f.compilerOptions.outDir,S=f.compilerOptions.declarationDir;(T||S)&&(y=[T,S].filter((function(e){return!!e})))}return void 0===r&&void 0===_&&(_=["**/*"]),_&&(p=Te(_,d,!0,t,"include")),y&&(m=Te(y,d,!1,t,"exclude")),{filesSpecs:r,includeSpecs:_,excludeSpecs:y,validatedFilesSpec:e.filter(r,e.isString),validatedIncludeSpecs:p,validatedExcludeSpecs:m,pathPatterns:void 0}}();t&&(t.configFileSpecs=g),Z(m,t);var y=e.normalizePath(s?ee(s,i):i);return{options:m,watchOptions:_,fileNames:function(e){var n=ve(g,e,m,r,l);return re(n,ie(f),c)&&d.push(te(g,s)),n}(y),projectReferences:function(n){var t,r=b("references",(function(e){return"object"==typeof e}),"object");if(e.isArray(r))for(var i=0,a=r;i<a.length;i++){var o=a[i];"string"!=typeof o.path?E(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t||(t=[])).push({path:e.getNormalizedAbsolutePath(o.path,n),originalPath:o.path,prepend:o.prepend,circular:o.circular})}return t}(y),typeAcquisition:p.typeAcquisition||le(),raw:f,errors:d,wildcardDirectories:xe(g,y,r.useCaseSensitiveFileNames),compileOnSave:!!f.compileOnSave};function h(n){return e.isArray(n)?n:void 0}function v(n){return b(n,e.isString,"string")}function b(n,r,i){if(e.hasProperty(f,n)&&!$(f[n])){if(e.isArray(f[n])){var a=f[n];return t||e.every(a,r)||d.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,n,i)),a}return E(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,n,"Array"),"not-array"}return"no-prop"}function E(n,r,i){t||d.push(e.createCompilerDiagnostic(n,r,i))}}function te(n,t){var r=n.includeSpecs,i=n.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,t||"tsconfig.json",JSON.stringify(r||[]),JSON.stringify(i||[]))}function re(e,n,t){return 0===e.length&&n&&(!t||0===t.length)}function ie(n){return!e.hasProperty(n,"files")&&!e.hasProperty(n,"references")}function ae(n,t,r,a,o,s,c,l){var u;a=e.normalizeSlashes(a);var d=e.getNormalizedAbsolutePath(o||"",a);if(s.indexOf(d)>=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,i(i([],s,!0),[d],!1).join(" -> "))),{raw:n||U(t,c)};var p=n?function(n,t,r,i,a){e.hasProperty(n,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=ce(n.compilerOptions,r,a,i),c=ue(n.typeAcquisition||n.typingOptions,r,a,i),l=function(e,n,t){return de(F(),e,n,void 0,w,t)}(n.watchOptions,r,a);if(n.compileOnSave=function(n,t,r){if(!e.hasProperty(n,e.compileOnSaveCommandLineOption.name))return!1;var i=pe(e.compileOnSaveCommandLineOption,n.compileOnSave,t,r);return"boolean"==typeof i&&i}(n,r,a),n.extends)if(e.isString(n.extends)){var u=i?ee(i,r):r;o=oe(n.extends,t,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:n,options:s,watchOptions:l,typeAcquisition:c,extendedConfigPath:o}}(n,r,a,o,c):function(n,t,r,i,a){var o,s,c,l,u=se(i),d={onSetValidOptionKeyValueInParent:function(n,t,a){var l;switch(n){case"compilerOptions":l=u;break;case"watchOptions":l=c||(c={});break;case"typeAcquisition":l=o||(o=le(i));break;case"typingOptions":l=s||(s=le(i));break;default:e.Debug.fail("Unknown option")}l[t.name]=fe(t,r,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,u){if("extends"!==o);else{var d=i?ee(i,r):r;l=oe(c,t,d,a,(function(t,r){return e.createDiagnosticForNodeInSourceFile(n,u,t,r)}))}},onSetUnknownOptionKeyValueInRoot:function(t,r,i,o){"excludes"===t&&a.push(e.createDiagnosticForNodeInSourceFile(n,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},p=B(n,a,!0,d);return o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:le(i)),{raw:p,options:u,watchOptions:c,typeAcquisition:o,extendedConfigPath:l}}(t,r,a,o,c);if((null===(u=p.options)||void 0===u?void 0:u.paths)&&(p.options.pathsBasePath=a),p.extendedConfigPath){s=s.concat([d]);var f=function(n,t,r,i,a,o){var s,c,l,u,d=r.useCaseSensitiveFileNames?t:e.toFileNameLowerCase(t);if(o&&(c=o.get(d))?(l=c.extendedResult,u=c.extendedConfig):(l=L(t,(function(e){return r.readFile(e)})),l.parseDiagnostics.length||(u=ae(void 0,l,r,e.getDirectoryPath(t),e.getBaseFileName(t),i,a,o)),o&&o.set(d,{extendedResult:l,extendedConfig:u})),n&&(n.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=n.extendedSourceFiles).push.apply(s,l.extendedSourceFiles)),!l.parseDiagnostics.length)return u;a.push.apply(a,l.parseDiagnostics)}(t,p.extendedConfigPath,r,s,c,l);if(f&&f.options){var m,_=f.raw,g=p.raw,y=function(n){!g[n]&&_[n]&&(g[n]=e.map(_[n],(function(n){return e.isRootedDiskPath(n)?n:e.combinePaths(m||(m=e.convertToRelativePath(e.getDirectoryPath(p.extendedConfigPath),a,e.createGetCanonicalFileName(r.useCaseSensitiveFileNames))),n)})))};y("include"),y("exclude"),y("files"),void 0===g.compileOnSave&&(g.compileOnSave=_.compileOnSave),p.options=e.assign({},f.options,p.options),p.watchOptions=p.watchOptions&&f.watchOptions?e.assign({},f.watchOptions,p.watchOptions):p.watchOptions||f.watchOptions}}return p}function oe(n,t,r,i,a){if(n=e.normalizeSlashes(n),e.isRootedDiskPath(n)||e.startsWith(n,"./")||e.startsWith(n,"../")){var o=e.getNormalizedAbsolutePath(n,r);return t.fileExists(o)||e.endsWith(o,".json")||(o+=".json",t.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_not_found,n))}var s=e.nodeModuleNameResolver(n,e.combinePaths(r,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},t,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,n))}function se(n){return n&&"jsconfig.json"===e.getBaseFileName(n)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function ce(n,t,r,i){var a=se(i);return de(M(),n,t,a,e.compilerOptionsDidYouMeanDiagnostics,r),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function le(n){return{enable:!!n&&"jsconfig.json"===e.getBaseFileName(n),include:[],exclude:[]}}function ue(e,n,t,r){var i=le(r),a=d(e);return de(G(),a,n,i,I,t),i}function de(n,t,r,i,a,o){if(t){for(var s in t){var c=n.get(s);c?(i||(i={}))[c.name]=pe(c,t[s],r,o):o.push(y(s,a,e.createCompilerDiagnostic))}return i}}function pe(n,t,r,i){if(K(n,t)){var a=n.type;if("list"===a&&e.isArray(t))return function(n,t,r,i){return e.filter(e.map(t,(function(e){return pe(n.element,e,r,i)})),(function(e){return!!e}))}(n,t,r,i);if(!e.isString(a))return ge(n,t,i);var o=_e(n,t,i);return $(o)?o:me(n,r,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,n.name,j(n)))}function fe(n,t,r){if(!$(r)){if("list"===n.type){var i=n;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(r,(function(e){return fe(i.element,t,e)})),(function(e){return!!e})):r}return e.isString(n.type)?me(n,t,r):n.type.get(e.isString(r)?r.toLowerCase():r)}}function me(n,t,r){return n.isFilePath&&""===(r=e.getNormalizedAbsolutePath(r,t))&&(r="."),r}function _e(n,t,r){var i;if(!$(t)){var a=null===(i=n.extraValidation)||void 0===i?void 0:i.call(n,t);if(!a)return t;r.push(e.createCompilerDiagnostic.apply(void 0,a))}}function ge(e,n,t){if(!$(n)){var r=n.toLowerCase(),i=e.type.get(r);if(void 0!==i)return _e(e,i,t);t.push(p(e))}}e.convertToObject=U,e.convertToObjectWorker=V,e.convertToTSConfig=function(n,t,r){var i,o,s,c=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),l=e.map(e.filter(n.fileNames,(null===(o=null===(i=n.options.configFile)||void 0===i?void 0:i.configFileSpecs)||void 0===o?void 0:o.validatedIncludeSpecs)?function(n,t,r,i){if(!t)return e.returnTrue;var a=e.getFileMatcherPatterns(n,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);return s?o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)}:o?function(e){return o.test(e)}:e.returnTrue}(t,n.options.configFile.configFileSpecs.validatedIncludeSpecs,n.options.configFile.configFileSpecs.validatedExcludeSpecs,r):e.returnTrue),(function(n){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),e.getNormalizedAbsolutePath(n,r.getCurrentDirectory()),c)})),u=q(n.options,{configFilePath:e.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),d=n.watchOptions&&X(n.watchOptions,N());return a(a({compilerOptions:a(a({},H(u)),{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:d&&H(d),references:e.map(n.projectReferences,(function(e){return a(a({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(l)?l:void 0},(null===(s=n.options.configFile)||void 0===s?void 0:s.configFileSpecs)?{include:W(n.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:n.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!n.compileOnSave||void 0})},e.generateTSConfig=function(n,t,r){var i=q(e.extend(n,e.defaultInitCompilerOptions));return function(){for(var n=e.createMultiMap(),c=0,l=e.optionDeclarations;c<l.length;c++){var u=l[c],d=u.category;s(u)&&n.add(e.getLocaleSpecificMessage(d),u)}var p=0,f=0,m=[];n.forEach((function(n,t){0!==m.length&&m.push({value:""}),m.push({value:"/* "+t+" */"});for(var r=0,o=n;r<o.length;r++){var s,c=o[r];s=i.has(c.name)?'"'+c.name+'": '+JSON.stringify(i.get(c.name))+((f+=1)===i.size?"":","):'// "'+c.name+'": '+JSON.stringify(a(c))+",",m.push({value:s,description:"/* "+(c.description&&e.getLocaleSpecificMessage(c.description)||c.name)+" */"}),p=Math.max(s.length,p)}}));var _=o(2),g=[];g.push("{"),g.push(_+'"compilerOptions": {'),g.push(""+_+_+"/* "+e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)+" */"),g.push("");for(var y=0,h=m;y<h.length;y++){var v=h[y],b=v.value,E=v.description,T=void 0===E?"":E;g.push(b&&""+_+_+b+(T&&o(p-b.length+2)+T))}if(t.length){g.push(_+"},"),g.push(_+'"files": [');for(var S=0;S<t.length;S++)g.push(""+_+_+JSON.stringify(t[S])+(S===t.length-1?"":","));g.push(_+"]")}else g.push(_+"}");return g.push("}"),g.join(r)+r}();function a(n){switch(n.type){case"number":return 1;case"boolean":return!0;case"string":return n.isFilePath?"./":"";case"list":return[];case"object":return{};default:var t=n.type.keys().next();return t.done?e.Debug.fail("Expected 'option.type' to have entries."):t.value}}function o(e){return Array(e+1).join(" ")}function s(n){var t=n.category,r=n.name,a=n.isCommandLineOnly,o=[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!a&&void 0!==t&&(!o.includes(t)||i.has(r))}},e.convertToOptionsWithAbsolutePaths=function(n,t){var r={},i=c().optionsNameMap;for(var a in n)e.hasProperty(n,a)&&(r[a]=Y(i.get(a.toLowerCase()),n[a],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r},e.parseJsonConfigFileContent=function(e,n,t,r,i,a,o,s,c){return ne(e,void 0,n,t,r,c,i,a,o,s)},e.parseJsonSourceFileConfigFileContent=Q,e.setConfigFileInOptions=Z,e.canJsonReportNoInputFiles=ie,e.updateErrorForNoInputFiles=function(n,t,r,i,a){var o=i.length;return re(n,a)?i.push(te(r,t)):e.filterMutate(i,(function(n){return!function(n){return n.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(n)})),o!==i.length},e.convertCompilerOptionsFromJson=function(e,n,t){var r=[];return{options:ce(e,n,r,t),errors:r}},e.convertTypeAcquisitionFromJson=function(e,n,t){var r=[];return{options:ue(e,n,r,t),errors:r}},e.convertJsonOption=pe;var ye=/(^|\/)\*\*\/?$/,he=/^[^*?]*(?=\/[^/]*[*?])/;function ve(n,t,r,i,a){void 0===a&&(a=e.emptyArray),t=e.normalizePath(t);var o,s=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),c=new e.Map,l=new e.Map,u=new e.Map,d=n.validatedFilesSpec,p=n.validatedIncludeSpecs,f=n.validatedExcludeSpecs,m=e.getSupportedExtensions(r,a),_=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(r,m);if(d)for(var g=0,y=d;g<y.length;g++){var h=y[g],v=e.getNormalizedAbsolutePath(h,t);c.set(s(v),v)}if(p&&p.length>0)for(var b=function(n){if(e.fileExtensionIs(n,".json")){if(!o){var r=p.filter((function(n){return e.endsWith(n,".json")})),a=e.map(e.getRegularExpressionsForWildcards(r,t,"files"),(function(e){return"^"+e+"$"}));o=a?a.map((function(n){return e.getRegexFromPattern(n,i.useCaseSensitiveFileNames)})):e.emptyArray}if(-1!==e.findIndex(o,(function(e){return e.test(n)}))){var d=s(n);c.has(d)||u.has(d)||u.set(d,n)}return"continue"}if(function(n,t,r,i,a){for(var o=e.getExtensionPriority(n,i),s=e.adjustExtensionPriority(o,i),c=0;c<s;c++){var l=i[c],u=a(e.changeExtension(n,l));if(t.has(u)||r.has(u))return!0}return!1}(n,c,l,m,s))return"continue";!function(n,t,r,i){for(var a=e.getExtensionPriority(n,r),o=e.getNextLowestExtensionPriority(a,r);o<r.length;o++){var s=r[o],c=i(e.changeExtension(n,s));t.delete(c)}}(n,l,m,s);var f=s(n);c.has(f)||l.has(f)||l.set(f,n)},E=0,T=i.readDirectory(t,_,f,p,void 0);E<T.length;E++)b(v=T[E]);var S=e.arrayFrom(c.values()),x=e.arrayFrom(l.values());return S.concat(x,e.arrayFrom(u.values()))}function be(n){var t=e.startsWith(n,"**/")?0:n.indexOf("/**/");return-1!==t&&(e.endsWith(n,"/..")?n.length:n.lastIndexOf("/../"))>t}function Ee(n,t,r,i,a){var o=e.getRegularExpressionForWildcard(t,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,r);return!!s&&(!!s.test(n)||!e.hasExtension(n)&&s.test(e.ensureTrailingDirectorySeparator(n)))}function Te(n,t,r,i,a){return n.filter((function(n){if(!e.isString(n))return!1;var i=Se(n,r);return void 0!==i&&t.push(o.apply(void 0,i)),void 0===i}));function o(n,t){var r=e.getTsConfigPropArrayElementValue(i,a,t);return r?e.createDiagnosticForNodeInSourceFile(i,r,n,t):e.createCompilerDiagnostic(n,t)}}function Se(n,t){return t&&ye.test(n)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,n]:be(n)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,n]:void 0}function xe(n,t,r){var i=n.validatedIncludeSpecs,a=n.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,t,"exclude"),s=o&&new RegExp(o,r?"":"i"),c={};if(void 0!==i){for(var l=[],u=0,d=i;u<d.length;u++){var p=d[u],f=e.normalizePath(e.combinePaths(t,p));if(!s||!s.test(f)){var m=Le(f,r);if(m){var _=m.key,g=m.flags,y=c[_];(void 0===y||y<g)&&(c[_]=g,1===g&&l.push(_))}}}for(var _ in c)if(e.hasProperty(c,_))for(var h=0,v=l;h<v.length;h++){var b=v[h];_!==b&&e.containsPath(b,_,t,!r)&&delete c[_]}}return c}function Le(n,t){var r=he.exec(n);if(r){var i=n.indexOf("?"),a=n.indexOf("*"),o=n.lastIndexOf(e.directorySeparator);return{key:t?r[0]:e.toFileNameLowerCase(r[0]),flags:-1!==i&&i<o||-1!==a&&a<o?1:0}}if(e.isImplicitGlob(n))return{key:t?n:e.toFileNameLowerCase(n),flags:1}}function De(n,t){switch(t.type){case"object":case"string":return"";case"number":return"number"==typeof n?n:"";case"boolean":return"boolean"==typeof n?n:"";case"list":var r=t.element;return e.isArray(n)?n.map((function(e){return De(e,r)})):"";default:return e.forEachEntry(t.type,(function(e,t){if(e===n)return t}))}}e.getFileNamesFromConfigSpecs=ve,e.isExcludedFile=function(n,t,r,i,a){var o=t.validatedFilesSpec,s=t.validatedIncludeSpecs,c=t.validatedExcludeSpecs;if(!e.length(s)||!e.length(c))return!1;r=e.normalizePath(r);var l=e.createGetCanonicalFileName(i);if(o)for(var u=0,d=o;u<d.length;u++){var p=d[u];if(l(e.getNormalizedAbsolutePath(p,r))===n)return!1}return Ee(n,c,i,a,r)},e.matchesExclude=function(n,t,r,i){return Ee(n,e.filter(t,(function(e){return!be(e)})),r,i)},e.convertCompilerOptionsForTelemetry=function(e){var n={};for(var t in e)if(e.hasOwnProperty(t)){var r=b(t);void 0!==r&&(n[t]=De(e[t],r))}return n}}(u||(u={})),function(e){function n(n){n.trace(e.formatMessage.apply(void 0,arguments))}function t(e,n){return!!e.traceResolution&&void 0!==n.trace}function r(n,t){var r;if(t&&n){var i=n.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(r={name:i.name,subModuleName:t.path.slice(n.packageDirectory.length+e.directorySeparator.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r}}function o(e){return r(void 0,e)}function s(n){if(n)return e.Debug.assert(void 0===n.packageId),{path:n.path,ext:n.extension}}var c,l;function u(n){if(n)return e.Debug.assert(e.extensionIsTS(n.extension)),{fileName:n.path,packageId:n.packageId}}function d(e,n,t,r){var i;return r?((i=r.failedLookupLocations).push.apply(i,t),r):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:n,packageId:e.packageId},failedLookupLocations:t}}function p(t,r,i,a){if(e.hasProperty(t,r)){var o=t[r];if(typeof o===i&&null!==o)return o;a.traceEnabled&&n(a.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,r,i,null===o?"null":typeof o)}else a.traceEnabled&&n(a.host,e.Diagnostics.package_json_does_not_have_a_0_field,r)}function f(t,r,i,a){var o=p(t,r,"string",a);if(void 0!==o){if(o){var s=e.normalizePath(e.combinePaths(i,o));return a.traceEnabled&&n(a.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,r,o,s),s}a.traceEnabled&&n(a.host,e.Diagnostics.package_json_had_a_falsy_0_field,r)}}function m(e,n,t){return f(e,"typings",n,t)||f(e,"types",n,t)}function _(e,n,t){return f(e,"main",n,t)}function g(t,r){var i=function(t,r){var i=p(t,"typesVersions","object",r);if(void 0!==i)return r.traceEnabled&&n(r.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),i}(t,r);if(void 0!==i){if(r.traceEnabled)for(var a in i)e.hasProperty(i,a)&&!e.VersionRange.tryParse(a)&&n(r.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,a);var o=y(i);if(o){var s=o.version,c=o.paths;if("object"==typeof c)return o;r.traceEnabled&&n(r.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+s+"']","object",typeof c)}else r.traceEnabled&&n(r.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor)}}function y(n){for(var t in l||(l=new e.Version(e.version)),n)if(e.hasProperty(n,t)){var r=e.VersionRange.tryParse(t);if(void 0!==r&&r.test(l))return{version:t,paths:n[t]}}}function h(n,t){return n.typeRoots?n.typeRoots:(n.configFilePath?r=e.getDirectoryPath(n.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),void 0!==r?function(n,t){return t.directoryExists?(e.forEachAncestorDirectory(e.normalizePath(n),(function(n){var i=e.combinePaths(n,v);t.directoryExists(i)&&(r||(r=[])).push(i)})),r):[e.combinePaths(n,v)];var r}(r,t):void 0);var r}e.trace=n,e.isTraceEnabled=t,function(e){e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.TSConfig=3]="TSConfig",e[e.DtsOnly=4]="DtsOnly"}(c||(c={})),e.getPackageJsonTypesVersionsPaths=y,e.getEffectiveTypeRoots=h;var v=e.combinePaths("node_modules","@types");function b(n){var t=new e.Map,r=new e.Map;return{getOwnMap:function(){return t},redirectsMap:r,getOrCreateMapOfCacheRedirects:function(i){if(!i)return t;var a=i.sourceFile.path,o=r.get(a);return o||(o=!n||e.optionsHaveModuleResolutionChanges(n,i.commandLine.options)?new e.Map:t,r.set(a,o)),o},clear:function(){t.clear(),r.clear()},setOwnOptions:function(e){n=e},setOwnMap:function(e){t=e}}}function E(n,t){var r;return{getPackageJsonInfo:function(i){return null==r?void 0:r.get(e.toPath(i,n,t))},setPackageJsonInfo:function(i,a){(r||(r=new e.Map)).set(e.toPath(i,n,t),a)},clear:function(){r=void 0},entries:function(){var n=null==r?void 0:r.entries();return n?e.arrayFrom(n):[]}}}function T(e,n,t,r){var i=e.getOrCreateMapOfCacheRedirects(n),a=i.get(t);return a||(a=r(),i.set(t,a)),a}function S(n,t,r){if(n.configFile){if(0===t.redirectsMap.size)e.Debug.assert(!r||0===r.redirectsMap.size),e.Debug.assert(0===t.getOwnMap().size),e.Debug.assert(!r||0===r.getOwnMap().size),t.redirectsMap.set(n.configFile.path,t.getOwnMap()),null==r||r.redirectsMap.set(n.configFile.path,r.getOwnMap());else{e.Debug.assert(!r||r.redirectsMap.size>0);var i={sourceFile:n.configFile,commandLine:{options:n}};t.setOwnMap(t.getOrCreateMapOfCacheRedirects(i)),null==r||r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i))}t.setOwnOptions(n),null==r||r.setOwnOptions(n)}}function x(n,t,r){return{getOrCreateCacheForDirectory:function(i,a){var o=e.toPath(i,n,t);return T(r,a,o,(function(){return new e.Map}))},clear:function(){r.clear()},update:function(e){S(e,r)}}}function L(t,r,i,a,o){var s=function(t,r,i,a){var o,s=a.compilerOptions,c=s.baseUrl,l=s.paths,u=s.configFile;if(l&&!e.pathIsRelative(r))return a.traceEnabled&&(c&&n(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,r),n(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,r)),Y(t,r,e.getPathsBasePath(a.compilerOptions,a.host),l,(null==u?void 0:u.configFileSpecs)?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(l)):void 0,i,!1,a)}(t,r,a,o);return s?s.value:e.isExternalModuleNameRelative(r)?function(t,r,i,a,o){if(o.compilerOptions.rootDirs){o.traceEnabled&&n(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,r);for(var s,c,l=e.normalizePath(e.combinePaths(i,r)),u=0,d=o.compilerOptions.rootDirs;u<d.length;u++){var p=d[u],f=e.normalizePath(p);e.endsWith(f,e.directorySeparator)||(f+=e.directorySeparator);var m=e.startsWith(l,f)&&(void 0===c||c.length<f.length);o.traceEnabled&&n(o.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,f,l,m),m&&(c=f,s=p)}if(c){o.traceEnabled&&n(o.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,l,c);var _=l.substr(c.length);o.traceEnabled&&n(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,_,c,l);var g=a(t,l,!e.directoryProbablyExists(i,o.host),o);if(g)return g;o.traceEnabled&&n(o.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var y=0,h=o.compilerOptions.rootDirs;y<h.length;y++)if((p=h[y])!==s){var v=e.combinePaths(e.normalizePath(p),_);o.traceEnabled&&n(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,_,p,v);var b=e.getDirectoryPath(v),E=a(t,v,!e.directoryProbablyExists(b,o.host),o);if(E)return E}o.traceEnabled&&n(o.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}(t,r,i,a,o):function(t,r,i,a){var o=a.compilerOptions.baseUrl;if(o){a.traceEnabled&&n(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,r);var s=e.normalizePath(e.combinePaths(o,r));return a.traceEnabled&&n(a.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,r,o,s),i(t,s,!e.directoryProbablyExists(e.getDirectoryPath(s),a.host),a)}}(t,r,a,o)}e.resolveTypeReferenceDirective=function(r,i,a,o,s,l){var d=t(a,o);s&&(a=s.commandLine.options);var p=i?e.getDirectoryPath(i):void 0,f=p?l&&l.getOrCreateCacheForDirectory(p,s):void 0,m=f&&f.get(r);if(m)return d&&(n(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,r,i),s&&n(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName),n(o,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,r,p),L(m)),m;var _=h(a,o);d&&(void 0===i?void 0===_?n(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,r):n(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,r,_):void 0===_?n(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,r,i):n(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,r,i,_),s&&n(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));var g,y=[],v={compilerOptions:a,host:o,traceEnabled:d,failedLookupLocations:y,packageJsonInfoCache:l},b=function(){if(_&&_.length)return d&&n(o,e.Diagnostics.Resolving_with_primary_search_path_0,_.join(", ")),e.firstDefined(_,(function(t){var i=e.combinePaths(t,r),a=e.getDirectoryPath(i),s=e.directoryProbablyExists(a,o);return!s&&d&&n(o,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),u(j(c.DtsOnly,i,!s,v))}));d&&n(o,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),E=!0;if(b||(b=function(){var t=i&&e.getDirectoryPath(i);if(void 0!==t){var a;if(d&&n(o,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,t),e.isExternalModuleNameRelative(r)){var s=e.normalizePathAndParts(e.combinePaths(t,r)).path;a=P(c.DtsOnly,s,!1,v,!0)}else{var l=z(c.DtsOnly,r,t,v,void 0,void 0);a=l&&l.value}return u(a)}d&&n(o,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),E=!1),b){var T=b.fileName,S=b.packageId,x=a.preserveSymlinks?T:O(T,o,d);g={primary:E,resolvedFileName:x,originalPath:T===x?void 0:T,packageId:S,isExternalLibraryImport:w(T)}}return m={resolvedTypeReferenceDirective:g,failedLookupLocations:y},null==f||f.set(r,m),d&&L(m),m;function L(t){var i;(null===(i=t.resolvedTypeReferenceDirective)||void 0===i?void 0:i.resolvedFileName)?t.resolvedTypeReferenceDirective.packageId?n(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,r,t.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):n(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,r,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):n(o,e.Diagnostics.Type_reference_directive_0_was_not_resolved,r)}},e.getAutomaticTypeDirectiveNames=function(n,t){if(n.types)return n.types;var r=[];if(t.directoryExists&&t.getDirectories){var i=h(n,t);if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];if(t.directoryExists(s))for(var c=0,l=t.getDirectories(s);c<l.length;c++){var u=l[c],d=e.normalizePath(u),p=e.combinePaths(s,d,"package.json");if(!t.fileExists(p)||null!==e.readJson(p,t).typings){var f=e.getBaseFileName(d);46!==f.charCodeAt(0)&&r.push(f)}}}}return r},e.createCacheWithRedirects=b,e.createModuleResolutionCache=function(n,t,r,i,o){var s=x(n,t,i||(i=b(r)));o||(o=b(r));var c=E(n,t);return a(a(a({},c),s),{getOrCreateCacheForModuleName:function(n,t){return e.Debug.assert(!e.isExternalModuleNameRelative(n)),T(o,t,n,l)},clear:function(){s.clear(),o.clear(),c.clear()},update:function(e){S(e,i,o)},getPackageJsonInfoCache:function(){return c}});function l(){var r=new e.Map;return{get:function(i){return r.get(e.toPath(i,n,t))},set:function(i,a){var o=e.toPath(i,n,t);if(!r.has(o)){r.set(o,a);for(var s=a.resolvedModule&&(a.resolvedModule.originalPath||a.resolvedModule.resolvedFileName),c=s&&function(r,i){for(var a=e.toPath(e.getDirectoryPath(i),n,t),o=0,s=Math.min(r.length,a.length);o<s&&r.charCodeAt(o)===a.charCodeAt(o);)o++;if(o===r.length&&(a.length===o||a[o]===e.directorySeparator))return r;var c=e.getRootLength(r);if(!(o<c)){var l=r.lastIndexOf(e.directorySeparator,o-1);if(-1!==l)return r.substr(0,Math.max(l,c))}}(o,s),l=o;l!==c;){var u=e.getDirectoryPath(l);if(u===l||r.has(u))break;r.set(u,a),l=u}}}}}},e.createTypeReferenceDirectiveResolutionCache=function(e,n,t,r,i){var o=x(e,n,i||(i=b(t)));return r||(r=E(e,n)),a(a(a({},r),o),{clear:function(){o.clear(),r.clear()}})},e.resolveModuleNameFromCache=function(n,t,r){var i=e.getDirectoryPath(t),a=r&&r.getOrCreateCacheForDirectory(i);return a&&a.get(n)},e.resolveModuleName=function(r,i,a,o,s,c){var l=t(a,o);c&&(a=c.commandLine.options),l&&(n(o,e.Diagnostics.Resolving_module_0_from_1,r,i),c&&n(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName));var u=e.getDirectoryPath(i),d=s&&s.getOrCreateCacheForDirectory(u,c),p=d&&d.get(r);if(p)l&&n(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,r,u);else{var f=a.moduleResolution;switch(void 0===f?(f=e.getEmitModuleKind(a)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,l&&n(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[f])):l&&n(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[f]),e.perfLogger.logStartResolveModule(r),f){case e.ModuleResolutionKind.NodeJs:p=k(r,i,a,o,s,c);break;case e.ModuleResolutionKind.Classic:p=ne(r,i,a,o,s,c);break;default:return e.Debug.fail("Unexpected moduleResolution: "+f)}p&&p.resolvedModule&&e.perfLogger.logInfoEvent('Module "'+r+'" resolved to "'+p.resolvedModule.resolvedFileName+'"'),e.perfLogger.logStopResolveModule(p&&p.resolvedModule?""+p.resolvedModule.resolvedFileName:"null"),d&&(d.set(r,p),e.isExternalModuleNameRelative(r)||s.getOrCreateCacheForModuleName(r,c).set(u,p))}return l&&(p.resolvedModule?p.resolvedModule.packageId?n(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,r,p.resolvedModule.resolvedFileName,e.packageIdToString(p.resolvedModule.packageId)):n(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,r,p.resolvedModule.resolvedFileName):n(o,e.Diagnostics.Module_name_0_was_not_resolved,r)),p},e.resolveJSModule=function(e,n,t){var r=N(e,n,t),i=r.resolvedModule,a=r.failedLookupLocations;if(!i)throw new Error("Could not resolve JS module '"+e+"' starting at '"+n+"'. Looked in: "+a.join(", "));return i.resolvedFileName},e.tryResolveJSModule=function(e,n,t){var r=N(e,n,t).resolvedModule;return r&&r.resolvedFileName};var D=[c.JavaScript],A=[c.TypeScript,c.JavaScript],C=i(i([],A,!0),[c.Json],!1),I=[c.TSConfig];function N(n,t,r){return R(n,t,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},r,void 0,D,void 0)}function k(n,t,r,i,a,o,s){return R(n,e.getDirectoryPath(t),r,i,a,s?I:r.resolveJsonModule?C:A,o)}function R(r,i,o,s,l,u,p){var f,m,_=t(o,s),g=[],y={compilerOptions:o,host:s,traceEnabled:_,failedLookupLocations:g,packageJsonInfoCache:l},h=e.forEach(u,(function(t){return function(t){var u=L(t,r,i,(function(e,n,t,r){return P(e,n,t,r,!0)}),y);if(u)return te({resolved:u,isExternalLibraryImport:w(u.path)});if(e.isExternalModuleNameRelative(r)){var d=e.normalizePathAndParts(e.combinePaths(i,r)),f=d.path,m=d.parts,g=P(t,f,!1,y,!0);return g&&te({resolved:g,isExternalLibraryImport:e.contains(m,"node_modules")})}_&&n(s,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,r,c[t]);var h=z(t,r,i,y,l,p);if(h){var v=h.value;if(!o.preserveSymlinks&&v&&!v.originalPath){var b=O(v.path,s,_),E=b===v.path?void 0:v.path;v=a(a({},v),{path:b,originalPath:E})}return{value:v&&{resolved:v,isExternalLibraryImport:!0}}}}(t)}));return d(null===(f=null==h?void 0:h.value)||void 0===f?void 0:f.resolved,null===(m=null==h?void 0:h.value)||void 0===m?void 0:m.isExternalLibraryImport,g,y.resultFromCache)}function O(t,r,i){if(!r.realpath)return t;var a=e.normalizePath(r.realpath(t));return i&&n(r,e.Diagnostics.Resolving_real_path_for_0_result_1,t,a),e.Debug.assert(r.fileExists(a),t+" linked to nonexistent file "+a),a}function P(t,i,a,o,s){if(o.traceEnabled&&n(o.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,i,c[t]),!e.hasTrailingDirectorySeparator(i)){if(!a){var l=e.getDirectoryPath(i);e.directoryProbablyExists(l,o.host)||(o.traceEnabled&&n(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),a=!0)}var u=B(t,i,a,o);if(u){var d=s?M(u.path):void 0;return r(d?K(d,!1,o):void 0,u)}}return a||e.directoryProbablyExists(i,o.host)||(o.traceEnabled&&n(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),a=!0),j(t,i,a,o,s)}function w(n){return e.stringContains(n,e.nodeModulesPathPart)}function M(n){var t=e.normalizePath(n),r=t.lastIndexOf(e.nodeModulesPathPart);if(-1!==r){var i=r+e.nodeModulesPathPart.length,a=F(t,i);return 64===t.charCodeAt(i)&&(a=F(t,a)),t.slice(0,a)}}function F(n,t){var r=n.indexOf(e.directorySeparator,t+1);return-1===r?t:r}function G(e,n,t,r){return o(B(e,n,t,r))}function B(t,r,i,a){if(t===c.Json||t===c.TSConfig){var o=e.tryRemoveExtension(r,".json");return void 0===o&&t===c.Json?void 0:U(o||r,t,i,a)}var s=U(r,t,i,a);if(s)return s;if(e.hasJSFileExtension(r)){var l=e.removeFileExtension(r);if(a.traceEnabled){var u=r.substring(l.length);n(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,r,u)}return U(l,t,i,a)}}function U(n,t,r,i){if(!r){var a=e.getDirectoryPath(n);a&&(r=!e.directoryProbablyExists(a,i.host))}switch(t){case c.DtsOnly:return o(".d.ts");case c.TypeScript:return o(".ts")||o(".tsx")||o(".d.ts");case c.JavaScript:return o(".js")||o(".jsx");case c.TSConfig:case c.Json:return o(".json")}function o(e){var t=V(n+e,r,i);return void 0===t?void 0:{path:t,ext:e}}}function V(t,r,i){if(!r){if(i.host.fileExists(t))return i.traceEnabled&&n(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,t),t;i.traceEnabled&&n(i.host,e.Diagnostics.File_0_does_not_exist,t)}i.failedLookupLocations.push(t)}function j(e,n,t,i,a){void 0===a&&(a=!0);var o=a?K(n,t,i):void 0;return r(o,H(e,n,t,i,o&&o.packageJsonContent,o&&o.versionPaths))}function K(t,r,i){var a,o,s,c=i.host,l=i.traceEnabled,u=e.combinePaths(t,"package.json");if(r)i.failedLookupLocations.push(u);else{var d=null===(a=i.packageJsonInfoCache)||void 0===a?void 0:a.getPackageJsonInfo(u);if(void 0!==d)return"boolean"!=typeof d?(l&&n(c,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,u),d):(d&&l&&n(c,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void i.failedLookupLocations.push(u));var p=e.directoryProbablyExists(t,c);if(p&&c.fileExists(u)){var f=e.readJson(u,c);l&&n(c,e.Diagnostics.Found_package_json_at_0,u);var m={packageDirectory:t,packageJsonContent:f,versionPaths:g(f,i)};return null===(o=i.packageJsonInfoCache)||void 0===o||o.setPackageJsonInfo(u,m),m}p&&l&&n(c,e.Diagnostics.File_0_does_not_exist,u),null===(s=i.packageJsonInfoCache)||void 0===s||s.setPackageJsonInfo(u,p),i.failedLookupLocations.push(u)}}function H(t,r,i,a,l,u){var d;if(l)switch(t){case c.JavaScript:case c.Json:d=_(l,r,a);break;case c.TypeScript:d=m(l,r,a)||_(l,r,a);break;case c.DtsOnly:d=m(l,r,a);break;case c.TSConfig:d=function(e,n,t){return f(e,"tsconfig",n,t)}(l,r,a);break;default:return e.Debug.assertNever(t)}var p=function(t,r,i,a){var s=V(r,i,a);if(s){var l=function(n,t){var r=e.tryGetExtensionFromPath(t);return void 0!==r&&function(e,n){switch(e){case c.JavaScript:return".js"===n||".jsx"===n;case c.TSConfig:case c.Json:return".json"===n;case c.TypeScript:return".ts"===n||".tsx"===n||".d.ts"===n;case c.DtsOnly:return".d.ts"===n}}(n,r)?{path:t,ext:r}:void 0}(t,s);if(l)return o(l);a.traceEnabled&&n(a.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}return P(t===c.DtsOnly?c.TypeScript:t,r,i,a,!1)},g=d?!e.directoryProbablyExists(e.getDirectoryPath(d),a.host):void 0,y=i||!e.directoryProbablyExists(r,a.host),h=e.combinePaths(r,t===c.TSConfig?"tsconfig":"index");if(u&&(!d||e.containsPath(r,d))){var v=e.getRelativePathFromDirectory(r,d||h,!1);a.traceEnabled&&n(a.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,u.version,e.version,v);var b=Y(t,v,r,u.paths,void 0,p,g||y,a);if(b)return s(b.value)}return d&&s(p(t,d,g,a))||B(t,h,y,a)}function W(n){var t=n.indexOf(e.directorySeparator);return"@"===n[0]&&(t=n.indexOf(e.directorySeparator,t+1)),-1===t?{packageName:n,rest:""}:{packageName:n.slice(0,t),rest:n.slice(t+1)}}function z(e,n,t,r,i,a){return J(e,n,t,r,!1,i,a)}function J(n,t,r,i,a,o,s){var c=o&&o.getOrCreateCacheForModuleName(t,s);return e.forEachAncestorDirectory(e.normalizeSlashes(r),(function(r){if("node_modules"!==e.getBaseFileName(r))return ee(c,t,r,i)||te(q(n,t,r,i,a))}))}function q(t,r,i,a,o){var s=e.combinePaths(i,"node_modules"),l=e.directoryProbablyExists(s,a.host);!l&&a.traceEnabled&&n(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,s);var u=o?void 0:X(t,r,s,l,a);if(u)return u;if(t===c.TypeScript||t===c.DtsOnly){var d=e.combinePaths(s,"@types"),p=l;return l&&!e.directoryProbablyExists(d,a.host)&&(a.traceEnabled&&n(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),p=!1),X(c.DtsOnly,function(t,r){var i=Z(t);return r.traceEnabled&&i!==t&&n(r.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i),i}(r,a),d,p,a)}}function X(t,i,a,s,c){var l=e.normalizePath(e.combinePaths(a,i)),u=K(l,!s,c);if(u){var d=B(t,l,!s,c);if(d)return o(d);var p=H(t,l,!s,c,u.packageJsonContent,u.versionPaths);return r(u,p)}var f=function(e,n,t,i){var a=B(e,n,t,i)||H(e,n,t,i,u&&u.packageJsonContent,u&&u.versionPaths);return r(u,a)},m=W(i),_=m.packageName,g=m.rest;if(""!==g){var y=e.combinePaths(a,_);if((u=K(y,!s,c))&&u.versionPaths){c.traceEnabled&&n(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,u.versionPaths.version,e.version,g);var h=s&&e.directoryProbablyExists(y,c.host),v=Y(t,g,y,u.versionPaths.paths,void 0,f,!h,c);if(v)return v.value}}return f(t,l,!s,c)}function Y(t,r,i,a,s,c,l,u){s||(s=e.tryParsePatterns(a));var d=e.matchPatternOrExact(s,r);if(d){var p=e.isString(d)?void 0:e.matchedText(d,r),f=e.isString(d)?d:e.patternText(d);return u.traceEnabled&&n(u.host,e.Diagnostics.Module_name_0_matched_pattern_1,r,f),{value:e.forEach(a[f],(function(r){var a=p?r.replace("*",p):r,s=e.normalizePath(e.combinePaths(i,a));u.traceEnabled&&n(u.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,r,a);var d=e.tryGetExtensionFromPath(r);if(void 0!==d){var f=V(s,l,u);if(void 0!==f)return o({path:f,ext:d})}return c(t,s,l||!e.directoryProbablyExists(e.getDirectoryPath(s),u.host),u)}))}}}e.nodeModuleNameResolver=k,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=w,e.parseNodeModuleFromPath=M,e.parsePackageName=W;var Q="__";function Z(n){if(e.startsWith(n,"@")){var t=n.replace(e.directorySeparator,Q);if(t!==n)return t.slice(1)}return n}function $(n){return e.stringContains(n,Q)?"@"+n.replace(Q,e.directorySeparator):n}function ee(t,r,i,a){var o=t&&t.get(i);if(o)return a.traceEnabled&&n(a.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,r,i),a.resultFromCache=o,{value:o.resolvedModule&&{path:o.resolvedModule.resolvedFileName,originalPath:o.resolvedModule.originalPath||!0,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId}}}function ne(n,r,i,a,o,s){var l=[],u={compilerOptions:i,host:a,traceEnabled:t(i,a),failedLookupLocations:l,packageJsonInfoCache:o},p=e.getDirectoryPath(r),f=m(c.TypeScript)||m(c.JavaScript);return d(f&&f.value,!1,l,u.resultFromCache);function m(t){var r=L(t,n,p,G,u);if(r)return{value:r};if(e.isExternalModuleNameRelative(n)){var i=e.normalizePath(e.combinePaths(p,n));return te(G(t,i,!1,u))}var a=o&&o.getOrCreateCacheForModuleName(n,s);return e.forEachAncestorDirectory(p,(function(r){var i=ee(a,n,r,u);if(i)return i;var o=e.normalizePath(e.combinePaths(r,n));return te(G(t,o,!1,u))}))||(t===c.TypeScript?function(e,n,t){return J(c.DtsOnly,e,n,t,!0,void 0,void 0)}(n,p,u):void 0)}}function te(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/"+Z(e)},e.mangleScopedPackageName=Z,e.getPackageNameFromTypesPackageName=function(n){var t=e.removePrefix(n,"@types/");return t!==n?$(t):n},e.unmangleScopedPackageName=$,e.classicNameResolver=ne,e.loadModuleFromGlobalCache=function(r,i,a,o,s,l){var u=t(a,o);u&&n(o,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,r,s);var p=[],f={compilerOptions:a,host:o,traceEnabled:u,failedLookupLocations:p,packageJsonInfoCache:l};return d(q(c.DtsOnly,r,s,f,!1),!0,p,f.resultFromCache)}}(u||(u={})),function(e){var n,t;function r(n,t){return n.body&&!n.body.parent&&(e.setParent(n.body,n),e.setParentRecursive(n.body,!1)),n.body?o(n.body,t):1}function o(n,t){void 0===t&&(t=new e.Map);var i=e.getNodeId(n);if(t.has(i))return t.get(i)||0;t.set(i,void 0);var a=function(n,t){switch(n.kind){case 256:case 257:return 0;case 258:if(e.isEnumConst(n))return 2;break;case 264:case 263:if(!e.hasSyntacticModifier(n,1))return 0;break;case 270:var i=n;if(!i.moduleSpecifier&&i.exportClause&&271===i.exportClause.kind){for(var a=0,c=0,l=i.exportClause.elements;c<l.length;c++){var u=s(l[c],t);if(u>a&&(a=u),1===a)return a}return a}break;case 260:var d=0;return e.forEachChild(n,(function(n){var r=o(n,t);switch(r){case 0:return;case 2:return void(d=2);case 1:return d=1,!0;default:e.Debug.assertNever(r)}})),d;case 259:return r(n,t);case 79:if(n.isInJSDocNamespace)return 0}return 1}(n,t);return t.set(i,a),a}function s(n,t){for(var r=n.propertyName||n.name,i=n.parent;i;){if(e.isBlock(i)||e.isModuleBlock(i)||e.isSourceFile(i)){for(var a=void 0,s=0,c=i.statements;s<c.length;s++){var l=c[s];if(e.nodeHasName(l,r)){l.parent||(e.setParent(l,i),e.setParentRecursive(l,!1));var u=o(l,t);if((void 0===a||u>a)&&(a=u),1===a)return a}}if(void 0!==a)return a}i=i.parent}return 1}function c(n){return e.Debug.attachFlowNodeDebugInfo(n),n}(t=e.ModuleInstanceState||(e.ModuleInstanceState={}))[t.NonInstantiated=0]="NonInstantiated",t[t.Instantiated=1]="Instantiated",t[t.ConstEnumOnly=2]="ConstEnumOnly",e.getModuleInstanceState=r,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"}(n||(n={}));var l=function(){var n,t,o,s,l,f,m,_,g,y,h,v,b,E,T,S,x,L,D,A,C,I,N,k,R=!1,O=0,P={flags:1},w={flags:1},M=function(){return e.createBinaryExpressionTrampoline((function(n,t){if(t){t.stackIndex++,e.setParent(n,s);var r=I;Be(n);var i=s;s=n,t.skip=!1,t.inStrictModeStack[t.stackIndex]=r,t.parentStack[t.stackIndex]=i}else t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var a=n.operatorToken.kind;if(55===a||56===a||60===a||e.isLogicalOrCoalescingAssignmentOperator(a)){if(de(n)){var o=$();be(n,o,o),h=ce(o)}else be(n,T,S);t.skip=!0}return t}),(function(e,t,r){if(!t.skip)return n(e)}),(function(e,n,t){n.skip||(27===e.kind&&ye(t.left),Me(e))}),(function(e,t,r){if(!t.skip)return n(e)}),(function(n,t){if(!t.skip){var r=n.operatorToken.kind;e.isAssignmentOperator(r)&&!e.isAssignmentTarget(n)&&(ve(n.left),63===r&&205===n.left.kind&&Z(n.left.expression)&&(h=oe(256,h,n)))}var i=t.inStrictModeStack[t.stackIndex],a=t.parentStack[t.stackIndex];void 0!==i&&(I=i),void 0!==a&&(s=a),t.skip=!1,t.stackIndex--}),void 0);function n(n){if(n&&e.isBinaryExpression(n)&&!e.isDestructuringAssignment(n))return n;Me(n)}}();function F(t,r,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(t)||n,t,r,i,a,o)}return function(r,i){n=r,t=i,o=e.getEmitScriptTarget(t),I=function(n,t){return!(!e.getStrictOptionValue(t,"alwaysStrict")||n.isDeclarationFile)||!!n.externalModuleIndicator}(n,i),k=new e.Set,O=0,N=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(P),e.Debug.attachFlowNodeDebugInfo(w),n.locals||(Me(n),n.symbolCount=O,n.classifiableNames=k,function(){if(g){for(var t=l,r=_,i=m,a=s,o=h,u=0,p=g;u<p.length;u++){var f=p[u],y=f.parent.parent;l=e.findAncestor(y.parent,(function(e){return!!(1&Le(e))}))||n,m=e.getEnclosingBlockScopeContainer(y)||n,h=c({flags:2}),s=f,Me(f.typeExpression);var v=e.getNameOfDeclaration(f);if((e.isJSDocEnumTag(f)||!f.fullName)&&v&&e.isPropertyAccessEntityNameExpression(v.parent)){var b=Qe(v.parent);if(b){Xe(n.symbol,v.parent,b,!!e.findAncestor(v,(function(n){return e.isPropertyAccessExpression(n)&&"prototype"===n.name.escapedText})),!1);var E=l;switch(e.getAssignmentDeclarationPropertyAccessKind(v.parent)){case 1:case 2:l=e.isExternalOrCommonJsModule(n)?n:void 0;break;case 4:l=v.parent.expression;break;case 3:l=v.parent.expression.name;break;case 5:l=d(n,v.parent.expression)?n:e.isPropertyAccessExpression(v.parent.expression)?v.parent.expression.name:v.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}l&&K(f,524288,788968),l=E}}else e.isJSDocEnumTag(f)||!f.fullName||79===f.fullName.kind?(s=f.parent,ke(f,524288,788968)):Me(f.fullName)}l=t,_=r,m=i,s=a,h=o}}()),n=void 0,t=void 0,o=void 0,s=void 0,l=void 0,f=void 0,m=void 0,_=void 0,g=void 0,y=!1,h=void 0,v=void 0,b=void 0,E=void 0,T=void 0,S=void 0,x=void 0,D=void 0,A=!1,R=!1,C=0};function G(e,n){return O++,new N(e,n)}function B(n,t,r){n.flags|=r,t.symbol=n,n.declarations=e.appendIfUnique(n.declarations,t),1955&r&&!n.exports&&(n.exports=e.createSymbolTable()),6240&r&&!n.members&&(n.members=e.createSymbolTable()),n.constEnumOnlyModule&&304&n.flags&&(n.constEnumOnlyModule=!1),111551&r&&e.setValueDeclaration(n,t)}function U(n){if(269===n.kind)return n.isExportEquals?"export=":"default";var t=e.getNameOfDeclaration(n);if(t){if(e.isAmbientModule(n)){var r=e.getTextOfIdentifierOrLiteral(t);return e.isGlobalScopeAugmentation(n)?"__global":'"'+r+'"'}if(160===t.kind){var i=t.expression;if(e.isStringOrNumericLiteralLike(i))return e.escapeLeadingUnderscores(i.text);if(e.isSignedNumericLiteral(i))return e.tokenToString(i.operator)+i.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(t)){var a=e.getContainingClass(n);if(!a)return;var o=a.symbol;return e.getSymbolNameForPrivateIdentifier(o,t.escapedText)}return e.isPropertyNameLiteral(t)?e.getEscapedTextOfIdentifierOrLiteral(t):void 0}switch(n.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(2===e.getAssignmentDeclarationKind(n))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 312:return e.isJSDocConstructSignature(n)?"__new":"__call";case 162:return e.Debug.assert(312===n.parent.kind,"Impossible parameter parent kind",(function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[n.parent.kind]:n.parent.kind)+", expected JSDocFunctionType"})),"arg"+n.parent.parameters.indexOf(n)}}function V(n){return e.isNamedDeclaration(n)?e.declarationNameToString(n.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(U(n)))}function j(t,r,a,o,s,c,l){e.Debug.assert(l||!e.hasDynamicName(a));var u,d=e.hasSyntacticModifier(a,512)||e.isExportSpecifier(a)&&"default"===a.name.escapedText,p=l?"__computed":d&&r?"default":U(a);if(void 0===p)u=G(0,"__missing");else if(u=t.get(p),2885600&o&&k.add(p),u){if(c&&!u.isReplaceableByMethod)return u;if(u.flags&s)if(u.isReplaceableByMethod)t.set(p,u=G(0,p));else if(!(3&o&&67108864&u.flags)){e.isNamedDeclaration(a)&&e.setParent(a.name,a);var f=2&u.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,m=!0;(384&u.flags||384&o)&&(f=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,m=!1);var _=!1;e.length(u.declarations)&&(d||u.declarations&&u.declarations.length&&269===a.kind&&!a.isExportEquals)&&(f=e.Diagnostics.A_module_cannot_have_multiple_default_exports,m=!1,_=!0);var g=[];e.isTypeAliasDeclaration(a)&&e.nodeIsMissing(a.type)&&e.hasSyntacticModifier(a,1)&&2887656&u.flags&&g.push(F(a,e.Diagnostics.Did_you_mean_0,"export type { "+e.unescapeLeadingUnderscores(a.name.escapedText)+" }"));var y=e.getNameOfDeclaration(a)||a;e.forEach(u.declarations,(function(t,r){var i=e.getNameOfDeclaration(t)||t,a=F(i,f,m?V(t):void 0);n.bindDiagnostics.push(_?e.addRelatedInfo(a,F(y,0===r?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a),_&&g.push(F(i,e.Diagnostics.The_first_export_default_is_here))}));var h=F(y,f,m?V(a):void 0);n.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,i([h],g,!1))),u=G(0,p)}}else t.set(p,u=G(0,p)),c&&(u.isReplaceableByMethod=!0);return B(u,a,o),u.parent?e.Debug.assert(u.parent===r,"Existing symbol parent should match new one"):u.parent=r,u}function K(n,t,r){var i=!!(1&e.getCombinedModifierFlags(n))||function(n){if(n.parent&&e.isModuleDeclaration(n)&&(n=n.parent),!e.isJSDocTypeAlias(n))return!1;if(!e.isJSDocEnumTag(n)&&n.fullName)return!0;var t=e.getNameOfDeclaration(n);return!!(t&&(e.isPropertyAccessEntityNameExpression(t.parent)&&Qe(t.parent)||e.isDeclaration(t.parent)&&1&e.getCombinedModifierFlags(t.parent)))}(n);if(2097152&t)return 273===n.kind||263===n.kind&&i?j(l.symbol.exports,l.symbol,n,t,r):j(l.locals,void 0,n,t,r);if(e.isJSDocTypeAlias(n)&&e.Debug.assert(e.isInJSFile(n)),!e.isAmbientModule(n)&&(i||64&l.flags)){if(!l.locals||e.hasSyntacticModifier(n,512)&&!U(n))return j(l.symbol.exports,l.symbol,n,t,r);var a=111551&t?1048576:0,o=j(l.locals,void 0,n,a,r);return o.exportSymbol=j(l.symbol.exports,l.symbol,n,t,r),n.localSymbol=o,o}return j(l.locals,void 0,n,t,r)}function H(e){W(e,(function(e){return 254===e.kind?Me(e):void 0})),W(e,(function(e){return 254!==e.kind?Me(e):void 0}))}function W(n,t){void 0===t&&(t=Me),void 0!==n&&e.forEach(n,t)}function z(n){e.forEachChild(n,Me,W)}function J(n){var i=R;if(R=!1,function(n){if(!(1&h.flags))return!1;if(h===P){var i=e.isStatementButNotDeclaration(n)&&234!==n.kind||255===n.kind||259===n.kind&&function(n){var i=r(n);return 1===i||2===i&&e.shouldPreserveConstEnums(t)}(n);if(i&&(h=w,!t.allowUnreachableCode)){var a=e.unreachableCodeIsError(t)&&!(8388608&n.flags)&&(!e.isVariableStatement(n)||!!(3&e.getCombinedNodeFlags(n.declarationList))||n.declarationList.declarations.some((function(e){return!!e.initializer})));!function(n,t){if(e.isStatement(n)&&u(n)&&e.isBlock(n.parent)){var r=n.parent.statements,i=e.sliceAfter(r,n);e.getRangesWhere(i,u,(function(e,n){return t(i[e],i[n-1])}))}else t(n,n)}(n,(function(n,t){return we(a,n,t,e.Diagnostics.Unreachable_code_detected)}))}}return!0}(n))return z(n),Fe(n),void(R=i);switch(n.kind>=235&&n.kind<=251&&!t.allowUnreachableCode&&(n.flowNode=h),n.kind){case 239:!function(e){var n=_e(e,ee()),t=$(),r=$();re(n,h),h=n,fe(e.expression,t,r),h=ce(t),me(e.statement,r,n),re(n,h),h=ce(r)}(n);break;case 238:!function(e){var n=ee(),t=_e(e,$()),r=$();re(n,h),h=n,me(e.statement,r,t),re(t,h),h=ce(t),fe(e.expression,n,r),h=ce(r)}(n);break;case 240:!function(e){var n=_e(e,ee()),t=$(),r=$();Me(e.initializer),re(n,h),h=n,fe(e.condition,t,r),h=ce(t),me(e.statement,r,n),Me(e.incrementor),re(n,h),h=ce(r)}(n);break;case 241:case 242:!function(e){var n=_e(e,ee()),t=$();Me(e.expression),re(n,h),h=n,242===e.kind&&Me(e.awaitModifier),re(t,h),Me(e.initializer),253!==e.initializer.kind&&ve(e.initializer),me(e.statement,t,n),re(n,h),h=ce(t)}(n);break;case 237:!function(e){var n=$(),t=$(),r=$();fe(e.expression,n,t),h=ce(n),Me(e.thenStatement),re(r,h),h=ce(t),Me(e.elseStatement),re(r,h),h=ce(r)}(n);break;case 245:case 249:!function(e){Me(e.expression),245===e.kind&&(A=!0,E&&re(E,h)),h=P}(n);break;case 244:case 243:!function(e){if(Me(e.label),e.label){var n=function(e){for(var n=D;n;n=n.next)if(n.name===e)return n}(e.label.escapedText);n&&(n.referenced=!0,ge(e,n.breakTarget,n.continueTarget))}else ge(e,v,b)}(n);break;case 250:!function(n){var t=E,r=x,i=$(),a=$(),o=$();if(n.finallyBlock&&(E=a),re(o,h),x=o,Me(n.tryBlock),re(i,h),n.catchClause&&(h=ce(o),re(o=$(),h),x=o,Me(n.catchClause),re(i,h)),E=t,x=r,n.finallyBlock){var s=$();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),h=s,Me(n.finallyBlock),1&h.flags?h=P:(E&&a.antecedents&&re(E,ne(s,a.antecedents,h)),x&&o.antecedents&&re(x,ne(s,o.antecedents,h)),h=i.antecedents?ne(s,i.antecedents,h):P)}else h=ce(i)}(n);break;case 247:!function(n){var t=$();Me(n.expression);var r=v,i=L;v=t,L=h,Me(n.caseBlock),re(t,h);var a=e.forEach(n.caseBlock.clauses,(function(e){return 288===e.kind}));n.possiblyExhaustive=!a&&!t.antecedents,a||re(t,ae(L,n,0,0)),v=r,L=i,h=ce(t)}(n);break;case 261:!function(e){for(var n=e.clauses,r=q(e.parent.expression),i=P,a=0;a<n.length;a++){for(var o=a;!n[a].statements.length&&a+1<n.length;)Me(n[a]),a++;var s=$();re(s,r?ae(L,e.parent,o,a+1):L),re(s,i),h=ce(s);var c=n[a];Me(c),i=h,1&h.flags||a===n.length-1||!t.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=h)}}(n);break;case 287:!function(e){var n=h;h=L,Me(e.expression),h=n,W(e.statements)}(n);break;case 236:!function(e){Me(e.expression),ye(e.expression)}(n);break;case 248:!function(n){var r=$();D={next:D,name:n.label.escapedText,breakTarget:r,continueTarget:void 0,referenced:!1},Me(n.label),Me(n.statement),D.referenced||t.allowUnusedLabels||function(e,n,t){we(e,n,n,t)}(e.unusedLabelIsError(t),n.label,e.Diagnostics.Unused_label),D=D.next,re(r,h),h=ce(r)}(n);break;case 217:!function(e){if(53===e.operator){var n=T;T=S,S=n,z(e),S=T,T=n}else z(e),45!==e.operator&&46!==e.operator||ve(e.operand)}(n);break;case 218:!function(e){z(e),(45===e.operator||46===e.operator)&&ve(e.operand)}(n);break;case 219:if(e.isDestructuringAssignment(n))return R=i,void function(e){R?(R=!1,Me(e.operatorToken),Me(e.right),R=!0,Me(e.left)):(R=!0,Me(e.left),R=!1,Me(e.operatorToken),Me(e.right)),ve(e.left)}(n);M(n);break;case 213:!function(e){z(e),204===e.expression.kind&&ve(e.expression)}(n);break;case 220:!function(e){var n=$(),t=$(),r=$();fe(e.condition,n,t),h=ce(n),Me(e.questionToken),Me(e.whenTrue),re(r,h),h=ce(t),Me(e.colonToken),Me(e.whenFalse),re(r,h),h=ce(r)}(n);break;case 252:!function(n){z(n),(n.initializer||e.isForInOrOfStatement(n.parent.parent))&&Ee(n)}(n);break;case 204:case 205:!function(n){e.isOptionalChain(n)?xe(n):z(n)}(n);break;case 206:!function(n){if(e.isOptionalChain(n))xe(n);else{var t=e.skipParentheses(n.expression);211===t.kind||212===t.kind?(W(n.typeArguments),W(n.arguments),Me(n.expression)):(z(n),106===n.expression.kind&&(h=se(h,n)))}if(204===n.expression.kind){var r=n.expression;e.isIdentifier(r.name)&&Z(r.expression)&&e.isPushOrUnshiftIdentifier(r.name)&&(h=oe(256,h,n))}}(n);break;case 228:!function(n){e.isOptionalChain(n)?xe(n):z(n)}(n);break;case 340:case 333:case 334:!function(n){Me(n.tagName),334!==n.kind&&n.fullName&&(e.setParent(n.fullName,n),e.setParentRecursive(n.fullName,!1)),"string"!=typeof n.comment&&W(n.comment)}(n);break;case 300:H(n.statements),Me(n.endOfFileToken);break;case 233:case 260:H(n.statements);break;case 201:!function(n){e.isBindingPattern(n.name)?(W(n.decorators),W(n.modifiers),Me(n.dotDotDotToken),Me(n.propertyName),Me(n.initializer),Me(n.name)):z(n)}(n);break;case 203:case 202:case 291:case 223:R=i;default:z(n)}Fe(n),R=i}function q(e){switch(e.kind){case 79:case 80:case 108:case 204:case 205:return Y(e);case 206:return function(e){if(e.arguments)for(var n=0,t=e.arguments;n<t.length;n++)if(Y(t[n]))return!0;return!(204!==e.expression.kind||!Y(e.expression.expression))}(e);case 210:case 228:case 214:return q(e.expression);case 219:return function(e){switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return Y(e.left);case 34:case 35:case 36:case 37:return Z(e.left)||Z(e.right)||Q(e.right,e.left)||Q(e.left,e.right);case 102:return Z(e.left);case 101:case 27:return q(e.right)}return!1}(e);case 217:return 53===e.operator&&q(e.operand)}return!1}function X(n){return e.isDottedName(n)||(e.isPropertyAccessExpression(n)||e.isNonNullExpression(n)||e.isParenthesizedExpression(n))&&X(n.expression)||e.isBinaryExpression(n)&&27===n.operatorToken.kind&&X(n.right)||e.isElementAccessExpression(n)&&e.isStringOrNumericLiteralLike(n.argumentExpression)&&X(n.expression)||e.isAssignmentExpression(n)&&X(n.left)}function Y(n){return X(n)||e.isOptionalChain(n)&&Y(n.expression)}function Q(n,t){return e.isTypeOfExpression(n)&&Z(n.expression)&&e.isStringLiteralLike(t)}function Z(e){switch(e.kind){case 210:return Z(e.expression);case 219:switch(e.operatorToken.kind){case 63:return Z(e.left);case 27:return Z(e.right)}}return Y(e)}function $(){return c({flags:4,antecedents:void 0})}function ee(){return c({flags:8,antecedents:void 0})}function ne(e,n,t){return c({flags:1024,target:e,antecedents:n,antecedent:t})}function te(e){e.flags|=2048&e.flags?4096:2048}function re(n,t){1&t.flags||e.contains(n.antecedents,t)||((n.antecedents||(n.antecedents=[])).push(t),te(t))}function ie(n,t,r){return 1&t.flags?t:r?!(110===r.kind&&64&n||95===r.kind&&32&n)||e.isExpressionOfOptionalChainRoot(r)||e.isNullishCoalesce(r.parent)?q(r)?(te(t),c({flags:n,antecedent:t,node:r})):t:P:32&n?t:P}function ae(e,n,t,r){return te(e),c({flags:128,antecedent:e,switchStatement:n,clauseStart:t,clauseEnd:r})}function oe(e,n,t){te(n);var r=c({flags:e,antecedent:n,node:t});return x&&re(x,r),r}function se(e,n){return te(e),c({flags:512,antecedent:e,node:n})}function ce(e){var n=e.antecedents;return n?1===n.length?n[0]:e:P}function le(e){for(;;)if(210===e.kind)e=e.expression;else{if(217!==e.kind||53!==e.operator)return 219===e.kind&&(55===e.operatorToken.kind||56===e.operatorToken.kind||60===e.operatorToken.kind);e=e.operand}}function ue(n){return n=e.skipParentheses(n),e.isBinaryExpression(n)&&e.isLogicalOrCoalescingAssignmentOperator(n.operatorToken.kind)}function de(n){for(;e.isParenthesizedExpression(n.parent)||e.isPrefixUnaryExpression(n.parent)&&53===n.parent.operator;)n=n.parent;return!(function(e){var n=e.parent;switch(n.kind){case 237:case 239:case 238:return n.expression===e;case 240:case 220:return n.condition===e}return!1}(n)||ue(n.parent)||le(n.parent)||e.isOptionalChain(n.parent)&&n.parent.expression===n)}function pe(e,n,t,r){var i=T,a=S;T=t,S=r,e(n),T=i,S=a}function fe(n,t,r){pe(Me,n,t,r),n&&(ue(n)||le(n)||e.isOptionalChain(n)&&e.isOutermostOptionalChain(n))||(re(t,ie(32,h,n)),re(r,ie(64,h,n)))}function me(e,n,t){var r=v,i=b;v=n,b=t,Me(e),v=r,b=i}function _e(e,n){for(var t=D;t&&248===e.parent.kind;)t.continueTarget=n,t=t.next,e=e.parent;return n}function ge(e,n,t){var r=244===e.kind?n:t;r&&(re(r,h),h=P)}function ye(n){if(206===n.kind){var t=n;106!==t.expression.kind&&e.isDottedName(t.expression)&&(h=se(h,t))}}function he(e){219===e.kind&&63===e.operatorToken.kind?ve(e.left):ve(e)}function ve(e){if(X(e))h=oe(16,h,e);else if(202===e.kind)for(var n=0,t=e.elements;n<t.length;n++){var r=t[n];223===r.kind?ve(r.expression):he(r)}else if(203===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];291===o.kind?he(o.initializer):292===o.kind?ve(o.name):293===o.kind&&ve(o.expression)}}function be(n,t,r){var i=$();55===n.operatorToken.kind||76===n.operatorToken.kind?fe(n.left,i,r):fe(n.left,t,i),h=ce(i),Me(n.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(n.operatorToken.kind)?(pe(Me,n.right,t,r),ve(n.left),re(t,ie(32,h,n)),re(r,ie(64,h,n))):fe(n.right,t,r)}function Ee(n){var t=e.isOmittedExpression(n)?void 0:n.name;if(e.isBindingPattern(t))for(var r=0,i=t.elements;r<i.length;r++)Ee(i[r]);else h=oe(16,h,n)}function Te(e){switch(e.kind){case 204:Me(e.questionDotToken),Me(e.name);break;case 205:Me(e.questionDotToken),Me(e.argumentExpression);break;case 206:Me(e.questionDotToken),W(e.typeArguments),W(e.arguments)}}function Se(n,t,r){var i=e.isOptionalChainRoot(n)?$():void 0;!function(n,t,r){pe(Me,n,t,r),e.isOptionalChain(n)&&!e.isOutermostOptionalChain(n)||(re(t,ie(32,h,n)),re(r,ie(64,h,n)))}(n.expression,i||t,r),i&&(h=ce(i)),pe(Te,n,t,r),e.isOutermostOptionalChain(n)&&(re(t,ie(32,h,n)),re(r,ie(64,h,n)))}function xe(e){if(de(e)){var n=$();Se(e,n,n),h=ce(n)}else Se(e,T,S)}function Le(n){switch(n.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(n))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 n.initializer?4:0;case 290:case 240:case 241:case 242:case 261:return 2;case 233:return e.isFunctionLike(n.parent)||e.isClassStaticBlockDeclaration(n.parent)?0:2}return 0}function De(e){_&&(_.nextContainer=e),_=e}function Ae(t,r,i){switch(l.kind){case 259:return K(t,r,i);case 300:return function(t,r,i){return e.isExternalModule(n)?K(t,r,i):j(n.locals,void 0,t,r,i)}(t,r,i);case 224:case 255:return function(n,t,r){return e.isStatic(n)?j(l.symbol.exports,l.symbol,n,t,r):j(l.symbol.members,l.symbol,n,t,r)}(t,r,i);case 258:return j(l.symbol.exports,l.symbol,t,r,i);case 180:case 317:case 203:case 256:case 284:return j(l.symbol.members,l.symbol,t,r,i);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 j(l.locals,void 0,t,r,i)}}function Ce(n){8388608&n.flags&&!function(n){var t=e.isSourceFile(n)?n:e.tryCast(n.body,e.isModuleBlock);return!!t&&t.statements.some((function(n){return e.isExportDeclaration(n)||e.isExportAssignment(n)}))}(n)?n.flags|=64:n.flags&=-65}function Ie(e){var n=r(e),t=0!==n;return Ae(e,t?512:1024,t?110735:0),n}function Ne(e,n,t){var r=G(n,t);return 106508&n&&(r.parent=l.symbol),B(r,e,n),r}function ke(n,t,r){switch(m.kind){case 259:K(n,t,r);break;case 300:if(e.isExternalOrCommonJsModule(l)){K(n,t,r);break}default:m.locals||(m.locals=e.createSymbolTable(),De(m)),j(m.locals,void 0,n,t,r)}}function Re(t,r){if(r&&79===r.kind){var i=r;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(n,r);n.bindDiagnostics.push(e.createFileDiagnostic(n,a.start,a.length,function(t){return e.getContainingClass(t)?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:n.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}(t),e.idText(i)))}}var o}function Oe(e){I&&Re(e,e.name)}function Pe(t,r,i,a,o){var s=e.getSpanOfTokenAtPosition(n,t.pos);n.bindDiagnostics.push(e.createFileDiagnostic(n,s.start,s.length,r,i,a,o))}function we(t,r,i,o){!function(t,r,i){var o=e.createFileDiagnostic(n,r.pos,r.end-r.pos,i);t?n.bindDiagnostics.push(o):n.bindSuggestionDiagnostics=e.append(n.bindSuggestionDiagnostics,a(a({},o),{category:e.DiagnosticCategory.Suggestion}))}(t,{pos:e.getTokenPosOfNode(r,n),end:i.end},o)}function Me(n){if(n){e.setParent(n,s);var t=I;if(Be(n),n.kind>158){var r=s;s=n;var i=Le(n);0===i?J(n):function(n,t){var r=l,i=f,a=m;if(1&t?(212!==n.kind&&(f=l),l=m=n,32&t&&(l.locals=e.createSymbolTable()),De(l)):2&t&&((m=n).locals=void 0),4&t){var o=h,s=v,u=b,d=E,p=x,_=D,g=A,T=16&t&&!e.hasSyntacticModifier(n,256)&&!n.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(n);T||(h=c({flags:2}),144&t&&(h.node=n)),E=T||169===n.kind||168===n.kind||e.isInJSFile(n)&&(254===n.kind||211===n.kind)?$():void 0,x=void 0,v=void 0,b=void 0,D=void 0,A=!1,J(n),n.flags&=-2817,!(1&h.flags)&&8&t&&e.nodeIsPresent(n.body)&&(n.flags|=256,A&&(n.flags|=512),n.endFlowNode=h),300===n.kind&&(n.flags|=C,n.endFlowNode=h),E&&(re(E,h),h=ce(E),(169===n.kind||168===n.kind||e.isInJSFile(n)&&(254===n.kind||211===n.kind))&&(n.returnFlowNode=h)),T||(h=o),v=s,b=u,E=d,x=p,D=_,A=g}else 64&t?(y=!1,J(n),n.flags=y?128|n.flags:-129&n.flags):J(n);l=r,f=i,m=a}(n,i),s=r}else r=s,1===n.kind&&(s=n),Fe(n),s=r;I=t}}function Fe(n){if(e.hasJSDocNodes(n))if(e.isInJSFile(n))for(var t=0,r=n.jsDoc;t<r.length;t++)Me(o=r[t]);else for(var i=0,a=n.jsDoc;i<a.length;i++){var o=a[i];e.setParent(o,n),e.setParentRecursive(o,!1)}}function Ge(t){if(!I)for(var r=0,i=t;r<i.length;r++){var a=i[r];if(!e.isPrologueDirective(a))return;if(o=a,void 0,'"use strict"'===(s=e.getSourceTextOfNodeFromSourceFile(n,o.expression))||"'use strict'"===s)return void(I=!0)}var o,s}function Be(r){switch(r.kind){case 79:if(r.isInJSDocNamespace){for(var i=r.parent;i&&!e.isJSDocTypeAlias(i);)i=i.parent;ke(i,524288,788968);break}case 108:return h&&(e.isExpression(r)||292===s.kind)&&(r.flowNode=h),function(t){n.parseDiagnostics.length||8388608&t.flags||4194304&t.flags||e.isIdentifierName(t)||(I&&t.originalKeywordKind>=117&&t.originalKeywordKind<=125?n.bindDiagnostics.push(F(t,function(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:n.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}(t),e.declarationNameToString(t))):131===t.originalKeywordKind?e.isExternalModule(n)&&e.isInTopLevelContext(t)?n.bindDiagnostics.push(F(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(t))):32768&t.flags&&n.bindDiagnostics.push(F(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(t))):125===t.originalKeywordKind&&8192&t.flags&&n.bindDiagnostics.push(F(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(t))))}(r);case 159:h&&e.isPartOfTypeQuery(r)&&(r.flowNode=h);break;case 229:case 106:r.flowNode=h;break;case 80:return function(t){"#constructor"===t.escapedText&&(n.parseDiagnostics.length||n.bindDiagnostics.push(F(t,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(t))))}(r);case 204:case 205:var a=r;h&&X(a)&&(a.flowNode=h),e.isSpecialPropertyDeclaration(a)&&function(n){108===n.expression.kind?He(n):e.isBindableStaticAccessExpression(n)&&300===n.parent.parent.kind&&(e.isPrototypeAccess(n.expression)?Je(n,n.parent):qe(n))}(a),e.isInJSFile(a)&&n.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(a)&&!p(m,"module")&&j(n.locals,void 0,a.expression,134217729,111550);break;case 219:switch(e.getAssignmentDeclarationKind(r)){case 1:je(r);break;case 2:!function(t){if(Ve(t)){var r=e.getRightMostAssignedExpression(t.right);if(!(e.isEmptyObjectLiteral(r)||l===n&&d(n,r)))if(e.isObjectLiteralExpression(r)&&e.every(r.properties,e.isShorthandPropertyAssignment))e.forEach(r.properties,Ke);else{var i=e.exportAssignmentIsAlias(t)?2097152:1049092,a=j(n.symbol.exports,n.symbol,t,67108864|i,0);e.setValueDeclaration(a,t)}}}(r);break;case 3:Je(r.left,r);break;case 6:!function(n){e.setParent(n.left,n),e.setParent(n.right,n),Ze(n.left.expression,n.left,!1,!0)}(r);break;case 4:He(r);break;case 5:var c=r.left.expression;if(e.isInJSFile(r)&&e.isIdentifier(c)){var u=p(m,c.escapedText);if(e.isThisInitializedDeclaration(null==u?void 0:u.valueDeclaration)){He(r);break}}!function(t){var r,i=$e(t.left.expression,l)||$e(t.left.expression,m);if(e.isInJSFile(t)||e.isFunctionSymbol(i)){var a=e.getLeftmostAccessExpression(t.left);e.isIdentifier(a)&&2097152&(null===(r=p(l,a.escapedText))||void 0===r?void 0:r.flags)||(e.setParent(t.left,t),e.setParent(t.right,t),e.isIdentifier(t.left.expression)&&l===n&&d(n,t.left.expression)?je(t):e.hasDynamicName(t)?(Ne(t,67108868,"__computed"),ze(t,Xe(i,t.left.expression,Qe(t.left),!1,!1))):qe(e.cast(t.left,e.isBindableStaticNameExpression)))}}(r);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(n){I&&e.isLeftHandSideExpression(n.left)&&e.isAssignmentOperator(n.operatorToken.kind)&&Re(n,n.left)}(r);case 290:return function(e){I&&e.variableDeclaration&&Re(e,e.variableDeclaration.name)}(r);case 213:return function(t){if(I&&79===t.expression.kind){var r=e.getErrorSpanForNode(n,t.expression);n.bindDiagnostics.push(e.createFileDiagnostic(n,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(r);case 8:return function(t){I&&32&t.numericLiteralFlags&&n.bindDiagnostics.push(F(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(r);case 218:return function(e){I&&Re(e,e.operand)}(r);case 217:return function(e){I&&(45!==e.operator&&46!==e.operator||Re(e,e.operand))}(r);case 246:return function(n){I&&Pe(n,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(r);case 248:return function(n){I&&t.target>=2&&(e.isDeclarationStatement(n.statement)||e.isVariableStatement(n.statement))&&Pe(n.label,e.Diagnostics.A_label_is_not_allowed_here)}(r);case 190:return void(y=!0);case 175:break;case 161:return function(n){if(e.isJSDocTemplateTag(n.parent)){var t=e.find(n.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(n.parent);t?(t.locals||(t.locals=e.createSymbolTable()),j(t.locals,void 0,n,262144,526824)):Ae(n,262144,526824)}else if(188===n.parent.kind){var r=function(n){var t=e.findAncestor(n,(function(n){return n.parent&&e.isConditionalTypeNode(n.parent)&&n.parent.extendsType===n}));return t&&t.parent}(n.parent);r?(r.locals||(r.locals=e.createSymbolTable()),j(r.locals,void 0,n,262144,526824)):Ne(n,262144,U(n))}else Ae(n,262144,526824)}(r);case 162:return tn(r);case 252:return nn(r);case 201:return r.flowNode=h,nn(r);case 165:case 164:return function(e){return rn(e,4|(e.questionToken?16777216:0),0)}(r);case 291:case 292:return rn(r,4,0);case 294:return rn(r,8,900095);case 172:case 173:case 174:return Ae(r,131072,0);case 167:case 166:return rn(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:103359);case 254:return function(t){n.isDeclarationFile||8388608&t.flags||e.isAsyncFunction(t)&&(C|=2048),Oe(t),I?(function(t){if(o<2&&300!==m.kind&&259!==m.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(m)){var r=e.getErrorSpanForNode(n,t);n.bindDiagnostics.push(e.createFileDiagnostic(n,r.start,r.length,function(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:n.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}(t)))}}(t),ke(t,16,110991)):Ae(t,16,110991)}(r);case 169:return Ae(r,16384,0);case 170:return rn(r,32768,46015);case 171:return rn(r,65536,78783);case 177:case 312:case 318:case 178:return function(n){var t=G(131072,U(n));B(t,n,131072);var r=G(2048,"__type");B(r,n,2048),r.members=e.createSymbolTable(),r.members.set(t.escapedName,t)}(r);case 180:case 317:case 193:return function(e){return Ne(e,2048,"__type")}(r);case 327:return function(n){z(n);var t=e.getHostSignatureFromJSDoc(n);t&&167!==t.kind&&B(t.symbol,t,32)}(r);case 203:return function(t){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),I&&!e.isAssignmentTarget(t))for(var i=new e.Map,a=0,o=t.properties;a<o.length;a++){var s=o[a];if(293!==s.kind&&79===s.name.kind){var c=s.name,l=291===s.kind||292===s.kind||167===s.kind?1:2,u=i.get(c.escapedText);if(u){if(1===l&&1===u){var d=e.getErrorSpanForNode(n,c);n.bindDiagnostics.push(e.createFileDiagnostic(n,d.start,d.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else i.set(c.escapedText,l)}}return Ne(t,4096,"__object")}(r);case 211:case 212:return function(t){return n.isDeclarationFile||8388608&t.flags||e.isAsyncFunction(t)&&(C|=2048),h&&(t.flowNode=h),Oe(t),Ne(t,16,t.name?t.name.escapedText:"__function")}(r);case 206:switch(e.getAssignmentDeclarationKind(r)){case 7:return function(e){var n=$e(e.arguments[0]),t=300===e.parent.parent.kind;Ye(e,n=Xe(n,e.arguments[0],t,!1,!1),!1)}(r);case 8:return function(e){if(Ve(e)){var n=en(e.arguments[0],void 0,(function(e,n){return n&&B(n,e,67110400),n}));if(n){j(n.exports,n,e,1048580,0)}}}(r);case 9:return function(e){var n=$e(e.arguments[0].expression);n&&n.valueDeclaration&&B(n,n.valueDeclaration,32),Ye(e,n,!0)}(r);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(r)&&function(t){!n.commonJsModuleIndicator&&e.isRequireCall(t,!1)&&Ve(t)}(r);break;case 224:case 255:return I=!0,function(t){255===t.kind?ke(t,32,899503):(Ne(t,32,t.name?t.name.escapedText:"__class"),t.name&&k.add(t.name.escapedText));var r=t.symbol,i=G(4194308,"prototype"),a=r.exports.get(i.escapedName);a&&(t.name&&e.setParent(t.name,t),n.bindDiagnostics.push(F(a.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i)))),r.exports.set(i.escapedName,i),i.parent=r}(r);case 256:return ke(r,64,788872);case 257:return ke(r,524288,788968);case 258:return function(n){return e.isEnumConst(n)?ke(n,128,899967):ke(n,256,899327)}(r);case 259:return function(t){if(Ce(t),e.isAmbientModule(t))if(e.hasSyntacticModifier(t,1)&&Pe(t,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(t))Ie(t);else{var r=void 0;if(10===t.name.kind){var i=t.name.text;void 0===(r=e.tryParsePattern(i))&&Pe(t.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=Ae(t,512,110735);n.patternAmbientModules=e.append(n.patternAmbientModules,r&&!e.isString(r)?{pattern:r,symbol:a}:void 0)}else{var o=Ie(t);0!==o&&((a=t.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule)}}(r);case 284:return function(e){return Ne(e,4096,"__jsxAttributes")}(r);case 283:return function(e,n,t){return Ae(e,4,0)}(r);case 263:case 266:case 268:case 273:return Ae(r,2097152,2097152);case 262:return function(t){t.modifiers&&t.modifiers.length&&n.bindDiagnostics.push(F(t,e.Diagnostics.Modifiers_cannot_appear_here));var r=e.isSourceFile(t.parent)?e.isExternalModule(t.parent)?t.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;r?n.bindDiagnostics.push(F(t,r)):(n.symbol.globalExports=n.symbol.globalExports||e.createSymbolTable(),j(n.symbol.globalExports,n.symbol,t,2097152,2097152))}(r);case 265:return function(e){e.name&&Ae(e,2097152,2097152)}(r);case 270:return function(n){l.symbol&&l.symbol.exports?n.exportClause?e.isNamespaceExport(n.exportClause)&&(e.setParent(n.exportClause,n),j(l.symbol.exports,l.symbol,n.exportClause,2097152,2097152)):j(l.symbol.exports,l.symbol,n,8388608,0):Ne(n,8388608,U(n))}(r);case 269:return function(n){if(l.symbol&&l.symbol.exports){var t=e.exportAssignmentIsAlias(n)?2097152:4,r=j(l.symbol.exports,l.symbol,n,t,67108863);n.isExportEquals&&e.setValueDeclaration(r,n)}else Ne(n,111551,U(n))}(r);case 300:return Ge(r.statements),function(){if(Ce(n),e.isExternalModule(n))Ue();else if(e.isJsonSourceFile(n)){Ue();var t=n.symbol;j(n.symbol.exports,n.symbol,n,4,67108863),n.symbol=t}}();case 233:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(r.parent))return;case 260:return Ge(r.statements);case 335:if(318===r.parent.kind)return tn(r);if(317!==r.parent.kind)break;case 342:var f=r;return Ae(f,f.isBracketed||f.typeExpression&&311===f.typeExpression.type.kind?16777220:4,0);case 340:case 333:case 334:return(g||(g=[])).push(r)}}function Ue(){Ne(n,512,'"'+e.removeFileExtension(n.fileName)+'"')}function Ve(e){return!n.externalModuleIndicator&&(n.commonJsModuleIndicator||(n.commonJsModuleIndicator=e,Ue()),!0)}function je(n){if(Ve(n)){var t=en(n.left.expression,void 0,(function(e,n){return n&&B(n,e,67110400),n}));if(t){var r=e.isAliasableExpression(n.right)&&(e.isExportsIdentifier(n.left.expression)||e.isModuleExportsAccessExpression(n.left.expression))?2097152:1048580;e.setParent(n.left,n),j(t.exports,t,n.left,r,0)}}}function Ke(e){j(n.symbol.exports,n.symbol,e,69206016,0)}function He(n){if(e.Debug.assert(e.isInJSFile(n)),!(e.isBinaryExpression(n)&&e.isPropertyAccessExpression(n.left)&&e.isPrivateIdentifier(n.left.name)||e.isPropertyAccessExpression(n)&&e.isPrivateIdentifier(n.name))){var t=e.getThisContainer(n,!1);switch(t.kind){case 254:case 211:var r=t.symbol;if(e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var i=t.parent.left;e.isBindableStaticAccessExpression(i)&&e.isPrototypeAccess(i.expression)&&(r=$e(i.expression.expression,f))}r&&r.valueDeclaration&&(r.members=r.members||e.createSymbolTable(),e.hasDynamicName(n)?We(n,r,r.members):j(r.members,r,n,67108868,0),B(r,r.valueDeclaration,32));break;case 169:case 165:case 167:case 170:case 171:var a=t.parent,o=e.isStatic(t)?a.symbol.exports:a.symbol.members;e.hasDynamicName(n)?We(n,a.symbol,o):j(o,a.symbol,n,67108868,0,!0);break;case 300:if(e.hasDynamicName(n))break;t.commonJsModuleIndicator?j(t.symbol.exports,t.symbol,n,1048580,0):Ae(n,1,111550);break;default:e.Debug.failBadSyntaxKind(t)}}}function We(e,n,t){j(t,n,e,4,0,!0,!0),ze(e,n)}function ze(n,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(n),n)}function Je(n,t){var r=n.expression,i=r.expression;e.setParent(i,r),e.setParent(r,n),e.setParent(n,t),Ze(i,n,!0,!0)}function qe(n){e.Debug.assert(!e.isIdentifier(n)),e.setParent(n.expression,n),Ze(n.expression,n,!1,!1)}function Xe(t,r,i,a,o){if(2097152&(null==t?void 0:t.flags))return t;if(i&&!a){var s=67110400;t=en(r,t,(function(t,r,i){return r?(B(r,t,s),r):j(i?i.exports:n.jsGlobalAugmentations||(n.jsGlobalAugmentations=e.createSymbolTable()),i,t,s,110735)}))}return o&&t&&t.valueDeclaration&&B(t,t.valueDeclaration,32),t}function Ye(n,t,r){if(t&&function(n){if(1072&n.flags)return!0;var t=n.valueDeclaration;if(t&&e.isCallExpression(t))return!!e.getAssignedExpandoInitializer(t);var r=t?e.isVariableDeclaration(t)?t.initializer:e.isBinaryExpression(t)?t.right:e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)?t.parent.right:void 0:void 0;if(r=r&&e.getRightMostAssignedExpression(r)){var i=e.isPrototypeAccess(e.isVariableDeclaration(t)?t.name:e.isBinaryExpression(t)?t.left:t);return!!e.getExpandoInitializer(!e.isBinaryExpression(r)||56!==r.operatorToken.kind&&60!==r.operatorToken.kind?r:r.right,i)}return!1}(t)){var i=r?t.members||(t.members=e.createSymbolTable()):t.exports||(t.exports=e.createSymbolTable()),a=0,o=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(n))?(a=8192,o=103359):e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&(e.some(n.arguments[2].properties,(function(n){var t=e.getNameOfDeclaration(n);return!!t&&e.isIdentifier(t)&&"set"===e.idText(t)}))&&(a|=65540,o|=78783),e.some(n.arguments[2].properties,(function(n){var t=e.getNameOfDeclaration(n);return!!t&&e.isIdentifier(t)&&"get"===e.idText(t)}))&&(a|=32772,o|=46015)),0===a&&(a=4,o=0),j(i,t,n,67108864|a,-67108865&o)}}function Qe(n){return e.isBinaryExpression(n.parent)?300===function(n){for(;e.isBinaryExpression(n.parent);)n=n.parent;return n.parent}(n.parent).parent.kind:300===n.parent.parent.kind}function Ze(e,n,t,r){var i=$e(e,l)||$e(e,m),a=Qe(n);Ye(n,i=Xe(i,n.expression,a,t,r),t)}function $e(n,t){if(void 0===t&&(t=l),e.isIdentifier(n))return p(t,n.escapedText);var r=$e(n.expression);return r&&r.exports&&r.exports.get(e.getElementOrPropertyAccessName(n))}function en(t,r,i){if(d(n,t))return n.symbol;if(e.isIdentifier(t))return i(t,$e(t),r);var a=en(t.expression,r,i),o=e.getNameOrArgument(t);return e.isPrivateIdentifier(o)&&e.Debug.fail("unexpected PrivateIdentifier"),i(o,a&&a.exports&&a.exports.get(e.getElementOrPropertyAccessName(t)),a)}function nn(n){I&&Re(n,n.name),e.isBindingPattern(n.name)||(e.isInJSFile(n)&&e.isRequireVariableDeclaration(n)&&!e.getJSDocTypeTag(n)?Ae(n,2097152,2097152):e.isBlockOrCatchScoped(n)?ke(n,2,111551):e.isParameterDeclaration(n)?Ae(n,1,111551):Ae(n,1,111550))}function tn(n){if((335!==n.kind||318===l.kind)&&(!I||8388608&n.flags||Re(n,n.name),e.isBindingPattern(n.name)?Ne(n,1,"__"+n.parent.parameters.indexOf(n)):Ae(n,1,111551),e.isParameterPropertyDeclaration(n,n.parent))){var t=n.parent.parent;j(t.symbol.members,t.symbol,n,4|(n.questionToken?16777216:0),0)}}function rn(t,r,i){return n.isDeclarationFile||8388608&t.flags||!e.isAsyncFunction(t)||(C|=2048),h&&e.isObjectLiteralOrClassExpressionMethod(t)&&(t.flowNode=h),e.hasDynamicName(t)?Ne(t,r,"__computed"):Ae(t,r,i)}}();function u(n){return!(e.isFunctionDeclaration(n)||function(n){switch(n.kind){case 256:case 257:return!0;case 259:return 1!==r(n);case 258:return e.hasSyntacticModifier(n,2048);default:return!1}}(n)||e.isEnumDeclaration(n)||e.isVariableStatement(n)&&!(3&e.getCombinedNodeFlags(n))&&n.declarationList.declarations.some((function(e){return!e.initializer})))}function d(n,t){for(var r=0,i=[t];i.length&&r<100;){if(r++,t=i.shift(),e.isExportsIdentifier(t)||e.isModuleExportsAccessExpression(t))return!0;if(e.isIdentifier(t)){var a=p(n,t.escapedText);if(a&&a.valueDeclaration&&e.isVariableDeclaration(a.valueDeclaration)&&a.valueDeclaration.initializer){var o=a.valueDeclaration.initializer;i.push(o),e.isAssignmentExpression(o,!0)&&(i.push(o.left),i.push(o.right))}}}return!1}function p(n,t){var r=n.locals&&n.locals.get(t);return r?r.exportSymbol||r:e.isSourceFile(n)&&n.jsGlobalAugmentations&&n.jsGlobalAugmentations.has(t)?n.jsGlobalAugmentations.get(t):n.symbol&&n.symbol.exports&&n.symbol.exports.get(t)}e.bindSourceFile=function(n,t){null===e.tracing||void 0===e.tracing||e.tracing.push("bind","bindSourceFile",{path:n.path},!0),e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+n.fileName),l(n,t),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind"),null===e.tracing||void 0===e.tracing||e.tracing.pop()},e.isExportsOrModuleExportsOrAlias=d}(u||(u={})),function(e){e.createGetSymbolWalker=function(n,t,r,i,a,o,s,c,l,u){return function(d){void 0===d&&(d=function(){return!0});var p=[],f=[];return{walkType:function(n){try{return m(n),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(p),e.clear(f)}},walkSymbol:function(n){try{return y(n),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(p),e.clear(f)}}};function m(n){if(n&&!p[n.id]&&(p[n.id]=n,!y(n.symbol))){if(524288&n.flags){var t=n,r=t.objectFlags;4&r&&function(n){m(n.target),e.forEach(u(n),m)}(n),32&r&&function(e){m(e.typeParameter),m(e.constraintType),m(e.templateType),m(e.modifiersType)}(n),3&r&&(g(a=n),e.forEach(a.typeParameters,m),e.forEach(i(a),m),m(a.thisType)),24&r&&g(t)}var a;262144&n.flags&&function(e){m(c(e))}(n),3145728&n.flags&&function(n){e.forEach(n.types,m)}(n),4194304&n.flags&&function(e){m(e.type)}(n),8388608&n.flags&&function(e){m(e.objectType),m(e.indexType),m(e.constraint)}(n)}}function _(i){var a=t(i);a&&m(a.type),e.forEach(i.typeParameters,m);for(var o=0,s=i.parameters;o<s.length;o++)y(s[o]);m(n(i)),m(r(i))}function g(e){for(var n=a(e),t=0,r=n.indexInfos;t<r.length;t++){var i=r[t];m(i.keyType),m(i.type)}for(var o=0,s=n.callSignatures;o<s.length;o++)_(s[o]);for(var c=0,l=n.constructSignatures;c<l.length;c++)_(l[c]);for(var u=0,d=n.properties;u<d.length;u++)y(d[u])}function y(n){if(!n)return!1;var t=e.getSymbolId(n);return!f[t]&&(f[t]=n,!d(n)||(m(o(n)),n.exports&&n.exports.forEach(y),e.forEach(n.declarations,(function(e){if(e.type&&179===e.type.kind){var n=e.type;y(s(l(n.exprName)))}})),!1))}}}}(u||(u={})),function(e){var n,t,r,o,c=/^".+"$/,l="(anonymous)",u=1,d=1,p=1,f=1;!function(e){e[e.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",e[e.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",e[e.AllowsStringInputFlag=4]="AllowsStringInputFlag",e[e.ForOfFlag=8]="ForOfFlag",e[e.YieldStarFlag=16]="YieldStarFlag",e[e.SpreadFlag=32]="SpreadFlag",e[e.DestructuringFlag=64]="DestructuringFlag",e[e.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",e[e.Element=1]="Element",e[e.Spread=33]="Spread",e[e.Destructuring=65]="Destructuring",e[e.ForOf=13]="ForOf",e[e.ForAwaitOf=15]="ForAwaitOf",e[e.YieldStar=17]="YieldStar",e[e.AsyncYieldStar=19]="AsyncYieldStar",e[e.GeneratorReturnType=1]="GeneratorReturnType",e[e.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"}(n||(n={})),function(e){e[e.Yield=0]="Yield",e[e.Return=1]="Return",e[e.Next=2]="Next"}(t||(t={})),function(e){e[e.Normal=0]="Normal",e[e.FunctionReturn=1]="FunctionReturn",e[e.GeneratorNext=2]="GeneratorNext",e[e.GeneratorYield=3]="GeneratorYield"}(r||(r={})),function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.All=16777215]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.UndefinedFacts=9830144]="UndefinedFacts",e[e.NullFacts=9363232]="NullFacts",e[e.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.EmptyObjectFacts=16777215]="EmptyObjectFacts"}(o||(o={}));var m,_,g,y,h,v,b,E,T=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),S=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}));!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",e[e.EnumTagType=5]="EnumTagType",e[e.ResolvedTypeArguments=6]="ResolvedTypeArguments",e[e.ResolvedBaseTypes=7]="ResolvedBaseTypes"}(m||(m={})),function(e){e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp"}(_||(_={})),function(e){e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.Callback=3]="Callback"}(g||(g={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.PropertyCheck=4]="PropertyCheck",e[e.UnionIntersectionCheck=8]="UnionIntersectionCheck",e[e.InPropertyCheck=16]="InPropertyCheck"}(y||(y={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(h||(h={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(v||(v={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(b||(b={})),function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(E||(E={}));var x,L,D,A,C=e.and(M,(function(n){return!e.isAccessor(n)}));!function(e){e[e.GetAccessor=1]="GetAccessor",e[e.SetAccessor=2]="SetAccessor",e[e.PropertyAssignment=4]="PropertyAssignment",e[e.Method=8]="Method",e[e.PrivateStatic=16]="PrivateStatic",e[e.GetOrSetAccessor=3]="GetOrSetAccessor",e[e.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"}(x||(x={})),function(e){e[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace"}(L||(L={})),function(e){e[e.None=0]="None",e[e.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",e[e.VoidIsNonOptional=2]="VoidIsNonOptional"}(D||(D={})),function(e){e[e.Uppercase=0]="Uppercase",e[e.Lowercase=1]="Lowercase",e[e.Capitalize=2]="Capitalize",e[e.Uncapitalize=3]="Uncapitalize"}(A||(A={}));var I,N=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function k(){}function R(){this.flags=0}function O(e){return e.id||(e.id=d,d++),e.id}function P(e){return e.id||(e.id=u,u++),e.id}function w(n,t){var r=e.getModuleInstanceState(n);return 1===r||t&&2===r}function M(e){return 254!==e.kind&&167!==e.kind||!!e.body}function F(n){switch(n.parent.kind){case 268:case 273:return e.isIdentifier(n);default:return e.isDeclarationName(n)}}function G(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function B(e){return!!(1&e.flags)}function U(e){return!!(2&e.flags)}e.getNodeId=O,e.getSymbolId=P,e.isInstantiatedModule=w,e.createTypeChecker=function(n,t){var r,o,u,d,m=e.memoize((function(){var t=new e.Set;return n.getSourceFiles().forEach((function(n){n.resolvedModules&&e.forEachEntry(n.resolvedModules,(function(e){e&&e.packageId&&t.add(e.packageId.name)}))})),t})),_=e.objectAllocator.getSymbolConstructor(),g=e.objectAllocator.getTypeConstructor(),y=e.objectAllocator.getSignatureConstructor(),h=0,v=0,b=0,E=0,x=0,L=0,D=e.createSymbolTable(),A=[1],V=n.getCompilerOptions(),j=e.getEmitScriptTarget(V),K=e.getEmitModuleKind(V),H=e.getUseDefineForClassFields(V),W=e.getAllowSyntheticDefaultImports(V),z=e.getStrictOptionValue(V,"strictNullChecks"),J=e.getStrictOptionValue(V,"strictFunctionTypes"),q=e.getStrictOptionValue(V,"strictBindCallApply"),X=e.getStrictOptionValue(V,"strictPropertyInitialization"),Y=e.getStrictOptionValue(V,"noImplicitAny"),Q=e.getStrictOptionValue(V,"noImplicitThis"),Z=e.getStrictOptionValue(V,"useUnknownInCatchVariables"),$=!!V.keyofStringsOnly,ee=V.suppressExcessPropertyErrors?0:16384,ne=V.exactOptionalPropertyTypes,te=function(){var n=e.createBinaryExpressionTrampoline((function(n,t,i){return t?(t.stackIndex++,t.skip=!1,r(t,void 0),a(t,void 0)):t={checkMode:i,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(n)&&e.getAssignedExpandoInitializer(n)?(t.skip=!0,a(t,Ab(n.right,i)),t):(function(n){var t=n.left,r=n.operatorToken,i=n.right;60===r.kind&&(!e.isBinaryExpression(t)||56!==t.operatorToken.kind&&55!==t.operatorToken.kind||fx(t,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(t.operatorToken.kind),e.tokenToString(r.kind)),!e.isBinaryExpression(i)||56!==i.operatorToken.kind&&55!==i.operatorToken.kind||fx(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(r.kind)))}(n),63!==n.operatorToken.kind||203!==n.left.kind&&202!==n.left.kind||(t.skip=!0,a(t,tb(n.left,Ab(n.right,i),i,108===n.right.kind))),t)}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(n,t,o){if(!t.skip){var s=i(t);e.Debug.assertIsDefined(s),r(t,s),a(t,void 0);var c=n.kind;if(55===c||56===c||60===c){if(55===c){var l=e.walkUpParenthesizedExpressions(o.parent);OE(o.left,s,e.isIfStatement(l)?l.thenStatement:void 0)}PE(s,o.left)}}}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(n,t){var o;if(t.skip)o=i(t);else{var s=function(e){return e.typeStack[e.stackIndex]}(t);e.Debug.assertIsDefined(s);var c=i(t);e.Debug.assertIsDefined(c),o=ab(n.left,n.operatorToken,n.right,s,c,n)}return t.skip=!1,r(t,void 0),a(t,void 0),t.stackIndex--,o}),(function(e,n,t){return a(e,n),e}));return function(t,r){var i=n(t,r);return e.Debug.assertIsDefined(i),i};function t(n,t){if(e.isBinaryExpression(t))return t;a(n,Ab(t,n.checkMode))}function r(e,n){e.typeStack[e.stackIndex]=n}function i(e){return e.typeStack[e.stackIndex+1]}function a(e,n){e.typeStack[e.stackIndex+1]=n}}(),re=function(){var t,r=n.getResolvedTypeReferenceDirectives();return r&&(t=new e.Map,r.forEach((function(e,t){if(e&&e.resolvedFileName){var r=n.getSourceFile(e.resolvedFileName);r&&a(r,t)}}))),{getReferencedExportContainer:sS,getReferencedImportDeclaration:cS,getReferencedDeclarationWithCollidingName:uS,isDeclarationWithCollidingName:dS,isValueAliasDeclaration:function(n){var t=e.getParseTreeNode(n);return!t||pS(t)},hasGlobalName:kS,isReferencedAliasDeclaration:function(n,t){var r=e.getParseTreeNode(n);return!r||gS(r,t)},getNodeCheckFlags:function(n){var t=e.getParseTreeNode(n);return t?TS(t):0},isTopLevelValueImportEqualsWithEntityName:fS,isDeclarationVisible:Oa,isImplementationOfOverload:yS,isRequiredInitializedParameter:hS,isOptionalUninitializedParameterProperty:vS,isExpandoFunctionDeclaration:bS,getPropertiesOfContainerFunction:ES,createTypeOfDeclaration:CS,createReturnTypeOfSignatureDeclaration:IS,createTypeOfExpression:NS,createLiteralConstValue:wS,isSymbolAccessible:pa,isEntityNameVisible:ha,getConstantValue:function(n){var t=e.getParseTreeNode(n,xS);return t?LS(t):void 0},collectLinkedAliases:Pa,getReferencedValueDeclaration:OS,getTypeReferenceSerializationKind:AS,isOptionalParameter:Vc,moduleExportsSomeValue:oS,isArgumentsLocalBinding:aS,getExternalModuleFileFromDeclaration:function(n){var t=e.getParseTreeNode(n,e.hasPossibleExternalModuleReference);return t&&GS(t)},getTypeReferenceDirectivesForEntityName:function(e){if(t){var n=790504;(79===e.kind&&Zm(e)||204===e.kind&&!function(e){return e.parent&&226===e.parent.kind&&e.parent.parent&&289===e.parent.parent.kind}(e))&&(n=1160127);var r=Si(e,n,!0);return r&&r!==Ae?i(r,n):void 0}},getTypeReferenceDirectivesForSymbol:i,isLiteralConstDeclaration:PS,isLateBound:function(n){var t=e.getParseTreeNode(n,e.isDeclaration),r=t&&Ui(t);return!!(r&&4096&e.getCheckFlags(r))},getJsxFactoryEntity:MS,getJsxFragmentFactoryEntity:FS,getAllAccessorDeclarations:function(n){var t=171===(n=e.getParseTreeNode(n,e.isGetOrSetAccessorDeclaration)).kind?170:171,r=e.getDeclarationOfKind(Ui(n),t);return{firstAccessor:r&&r.pos<n.pos?r:n,secondAccessor:r&&r.pos<n.pos?n:r,setAccessor:171===n.kind?n:r,getAccessor:170===n.kind?n:r}},getSymbolOfExternalModuleSpecifier:function(e){return Di(e,e,void 0)},isBindingCapturedByNode:function(n,t){var r=e.getParseTreeNode(n),i=e.getParseTreeNode(t);return!!r&&!!i&&(e.isVariableDeclaration(i)||e.isBindingElement(i))&&function(n,t){var r=Ur(n);return!!r&&e.contains(r.capturedBlockScopeBindings,Ui(t))}(r,i)},getDeclarationStatementsForSourceFile:function(n,t,r,i){var a=e.getParseTreeNode(n);e.Debug.assert(a&&300===a.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");var o=Ui(n);return o?o.exports?ie.symbolTableToDeclarationStatements(o.exports,n,t,r,i):[]:n.locals?ie.symbolTableToDeclarationStatements(n.locals,n,t,r,i):[]},isImportRequiredByAugmentation:function(n){var t=e.getSourceFileOfNode(n);if(!t.symbol)return!1;var r=GS(n);if(!r)return!1;if(r===t)return!1;for(var i=Mi(t.symbol),a=0,o=e.arrayFrom(i.values());a<o.length;a++){var s=o[a];if(s.mergeId){var c=Bi(s);if(c.declarations)for(var l=0,u=c.declarations;l<u.length;l++){var d=u[l];if(e.getSourceFileOfNode(d)===r)return!0}}}return!1}};function i(n,r){if(t&&function(n){if(!n.declarations)return!1;for(var r=n;;){var i=Vi(r);if(!i)break;r=i}if(r.valueDeclaration&&300===r.valueDeclaration.kind&&512&r.flags)return!1;for(var a=0,o=n.declarations;a<o.length;a++){var s=o[a],c=e.getSourceFileOfNode(s);if(t.has(c.path))return!0}return!1}(n)){for(var i,a=0,o=n.declarations;a<o.length;a++){var s=o[a];if(s.symbol&&s.symbol.flags&r){var c=e.getSourceFileOfNode(s),l=t.get(c.path);if(!l)return;(i||(i=[])).push(l)}}return i}}function a(r,i){if(!t.has(r.path)){t.set(r.path,i);for(var o=0,s=r.referencedFiles;o<s.length;o++){var c=s[o].fileName,l=e.resolveTripleslashReference(c,r.fileName),u=n.getSourceFile(l);u&&a(u,i)}}}}(),ie=function(){return{typeToTypeNode:function(e,n,r,i){return t(n,r,i,(function(n){return l(e,n)}))},indexInfoToIndexSignatureDeclaration:function(e,n,r,i){return t(n,r,i,(function(n){return m(e,n,void 0)}))},signatureToSignatureDeclaration:function(e,n,r,i,a){return t(r,i,a,(function(t){return _(e,n,t)}))},symbolToEntityName:function(e,n,r,i,a){return t(r,i,a,(function(t){return I(e,t,n,!1)}))},symbolToExpression:function(e,n,r,i,a){return t(r,i,a,(function(t){return N(e,t,n)}))},symbolToTypeParameterDeclarations:function(e,n,r,i){return t(n,r,i,(function(n){return T(e,n)}))},symbolToParameterDeclaration:function(e,n,r,i){return t(n,r,i,(function(n){return h(e,n)}))},typeParameterToDeclaration:function(e,n,r,i){return t(n,r,i,(function(n){return y(e,n)}))},symbolTableToDeclarationStatements:function(n,r,s,c,u){return t(r,s,c,(function(t){return function(n,t,r){var s=Y(e.factory.createPropertyDeclaration,167,!0),c=Y((function(n,t,r,i,a){return e.factory.createPropertySignature(t,r,i,a)}),166,!1),u=t.enclosingDeclaration,d=[],p=new e.Set,f=[],g=t;(t=a(a({},g),{usedSymbolNames:new e.Set(g.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:a(a({},g.tracker),{trackSymbol:function(e,n,r){if(0===pa(e,n,r,!1).accessibility){var i=E(e,t,r);4&e.flags||k(i[0])}else if(g.tracker&&g.tracker.trackSymbol)return g.tracker.trackSymbol(e,n,r);return!1}})})).tracker=o(t,t.tracker),e.forEachEntry(n,(function(n,t){re(n,e.unescapeLeadingUnderscores(t))}));var h,v=!r,b=n.get("export=");return b&&n.size>1&&2097152&b.flags&&(n=e.createSymbolTable()).set("export=",b),A(n),h=function(n){var t=e.findIndex(n,(function(n){return e.isExportDeclaration(n)&&!n.moduleSpecifier&&!!n.exportClause&&e.isNamedExports(n.exportClause)}));if(t>=0){var r=n[t],i=e.mapDefined(r.exportClause.elements,(function(t){if(!t.propertyName){var r=e.indicesOf(n),i=e.filter(r,(function(r){return e.nodeHasName(n[r],t.name)}));if(e.length(i)&&e.every(i,(function(e){return S(n[e])}))){for(var a=0,o=i;a<o.length;a++){var s=o[a];n[s]=x(n[s])}return}}return t}));e.length(i)?n[t]=e.factory.updateExportDeclaration(r,r.decorators,r.modifiers,r.isTypeOnly,e.factory.updateNamedExports(r.exportClause,i),r.moduleSpecifier):e.orderedRemoveItemAt(n,t)}return n}(h=function(n){var t=e.filter(n,(function(n){return e.isExportDeclaration(n)&&!n.moduleSpecifier&&!!n.exportClause&&e.isNamedExports(n.exportClause)}));if(e.length(t)>1){var r=e.filter(n,(function(n){return!e.isExportDeclaration(n)||!!n.moduleSpecifier||!n.exportClause}));n=i(i([],r,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(t,(function(n){return e.cast(n.exportClause,e.isNamedExports).elements}))),void 0)],!1)}var a=e.filter(n,(function(n){return e.isExportDeclaration(n)&&!!n.moduleSpecifier&&!!n.exportClause&&e.isNamedExports(n.exportClause)}));if(e.length(a)>1){var o=e.group(a,(function(n){return e.isStringLiteral(n.moduleSpecifier)?">"+n.moduleSpecifier.text:">"}));if(o.length!==a.length)for(var s=function(t){t.length>1&&(n=i(i([],e.filter(n,(function(e){return-1===t.indexOf(e)})),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(t,(function(n){return e.cast(n.exportClause,e.isNamedExports).elements}))),t[0].moduleSpecifier)],!1))},c=0,l=o;c<l.length;c++)s(l[c])}return n}(h=function(n){var t=e.find(n,e.isExportAssignment),r=e.findIndex(n,e.isModuleDeclaration),a=-1!==r?n[r]:void 0;if(a&&t&&t.isExportEquals&&e.isIdentifier(t.expression)&&e.isIdentifier(a.name)&&e.idText(a.name)===e.idText(t.expression)&&a.body&&e.isModuleBlock(a.body)){var o=e.filter(n,(function(n){return!!(1&e.getEffectiveModifierFlags(n))})),s=a.name,c=a.body;if(e.length(o)&&(a=e.factory.updateModuleDeclaration(a,a.decorators,a.modifiers,a.name,c=e.factory.updateModuleBlock(c,e.factory.createNodeArray(i(i([],a.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(o,(function(n){return t=n,e.isVariableStatement(t)?e.filter(e.map(t.declarationList.declarations,e.getNameOfDeclaration),T):e.filter([e.getNameOfDeclaration(t)],T);var t})),(function(n){return e.factory.createExportSpecifier(void 0,n)}))),void 0)],!1)))),n=i(i(i([],n.slice(0,r),!0),[a],!1),n.slice(r+1),!0)),!e.find(n,(function(n){return n!==a&&e.nodeHasName(n,s)}))){d=[];var l=!e.some(c.statements,(function(n){return e.hasSyntacticModifier(n,1)||e.isExportAssignment(n)||e.isExportDeclaration(n)}));e.forEach(c.statements,(function(e){R(e,l?1:0)})),n=i(i([],e.filter(n,(function(e){return e!==a&&e!==t})),!0),d,!0)}}return n}(h=d))),u&&(e.isSourceFile(u)&&e.isExternalOrCommonJsModule(u)||e.isModuleDeclaration(u))&&(!e.some(h,e.isExternalModuleIndicator)||!e.hasScopeMarker(h)&&e.some(h,e.needsScopeMarker))&&h.push(e.createEmptyExports(e.factory)),h;function T(e){return!!e&&79===e.kind}function S(n){return e.isEnumDeclaration(n)||e.isVariableStatement(n)||e.isFunctionDeclaration(n)||e.isClassDeclaration(n)||e.isModuleDeclaration(n)&&!e.isExternalModuleAugmentation(n)&&!e.isGlobalScopeAugmentation(n)||e.isInterfaceDeclaration(n)||HT(n)}function x(n){var t=-3&(1|e.getEffectiveModifierFlags(n));return e.factory.updateModifiers(n,t)}function D(n){var t=-2&e.getEffectiveModifierFlags(n);return e.factory.updateModifiers(n,t)}function A(n,t,r){t||f.push(new e.Map),n.forEach((function(e){C(e,!1,!!r)})),t||(f[f.length-1].forEach((function(e){C(e,!0,!!r)})),f.pop())}function C(n,d,f){var m=Bi(n);if(!p.has(P(m))&&(p.add(P(m)),!d||e.length(n.declarations)&&e.some(n.declarations,(function(n){return!!e.findAncestor(n,(function(e){return e===u}))})))){var _=t;t=function(n){var t=a({},n);return t.typeParameterNames&&(t.typeParameterNames=new e.Map(t.typeParameterNames)),t.typeParameterNamesByText&&(t.typeParameterNamesByText=new e.Set(t.typeParameterNamesByText)),t.typeParameterSymbolList&&(t.typeParameterSymbolList=new e.Set(t.typeParameterSymbolList)),t.tracker=o(t,t.tracker),t}(t);var h=function(n,a,o){var d,p,f=e.unescapeLeadingUnderscores(n.escapedName),m="default"===n.escapedName;if(!a||131072&t.flags||!e.isStringANonContextualKeyword(f)||m){var _=m&&!!(-113&n.flags||16&n.flags&&e.length(nc(Ao(n))))&&!(2097152&n.flags),g=!_&&!a&&e.isStringANonContextualKeyword(f)&&!m;(_||g)&&(a=!0);var h=(a?0:1)|(m&&!_?512:0),v=1536&n.flags&&7&n.flags&&"export="!==n.escapedName,b=v&&X(Ao(n),n);if((8208&n.flags||b)&&M(Ao(n),n,re(n,f),h),524288&n.flags&&function(n,i,a){var o,s=Jo(n),c=Br(n).typeParameters,u=e.map(c,(function(e){return y(e,t)})),d=null===(o=n.declarations)||void 0===o?void 0:o.find(e.isJSDocTypeAlias),p=e.getTextOfJSDocComment(d?d.comment||d.parent.comment:void 0),f=t.flags;t.flags|=8388608;var m=t.enclosingDeclaration;t.enclosingDeclaration=d;var _=d&&d.typeExpression&&e.isJSDocTypeExpression(d.typeExpression)&&K(t,d.typeExpression.type,k,r)||l(s,t);R(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,re(n,i),u,_),p?[{kind:3,text:"*\n * "+p.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),a),t.flags=f,t.enclosingDeclaration=m}(n,f,h),7&n.flags&&"export="!==n.escapedName&&!(4194304&n.flags)&&!(32&n.flags)&&!b)if(o)q(n)&&(g=!1,_=!1);else{var E=Ao(n),T=re(n,f);if(16&n.flags||!X(E,n)){var S=2&n.flags?ug(n)?2:1:void 0,x=!_&&4&n.flags?ne(T,n):T,D=n.declarations&&e.find(n.declarations,(function(n){return e.isVariableDeclaration(n)}));D&&e.isVariableDeclarationList(D.parent)&&1===D.parent.declarations.length&&(D=D.parent.parent);var A=null===(d=n.declarations)||void 0===d?void 0:d.find(e.isPropertyAccessExpression);if(A&&e.isBinaryExpression(A.parent)&&e.isIdentifier(A.parent.right)&&(null===(p=E.symbol)||void 0===p?void 0:p.valueDeclaration)&&e.isSourceFile(E.symbol.valueDeclaration)){var C=T===A.parent.right.escapedText?void 0:A.parent.right;R(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(C,T)])),0),t.tracker.trackSymbol(E.symbol,t.enclosingDeclaration,111551)}else R(e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(x,void 0,B(t,E,n,u,k,r))],S)),D),x!==T?-2&h:h),x===T||a||(R(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(x,T)])),0),g=!1,_=!1)}else M(E,n,T,h)}if(384&n.flags&&function(n,t,r){R(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags($v(n)?2048:0),re(n,t),e.map(e.filter(nc(Ao(n)),(function(e){return!!(8&e.flags)})),(function(n){var t=n.declarations&&n.declarations[0]&&e.isEnumMember(n.declarations[0])?LS(n.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(n.escapedName),void 0===t?void 0:"string"==typeof t?e.factory.createStringLiteral(t):e.factory.createNumericLiteral(t))}))),r)}(n,f,h),32&n.flags&&(4&n.flags&&n.valueDeclaration&&e.isBinaryExpression(n.valueDeclaration.parent)&&e.isClassExpression(n.valueDeclaration.parent.right)?z(n,re(n,f),h):function(n,a,o){var c,u,d=null===(c=n.declarations)||void 0===c?void 0:c.find(e.isClassLike),p=t.enclosingDeclaration;t.enclosingDeclaration=d||p;var f=wo(n),m=e.map(f,(function(e){return y(e,t)})),_=zo(n),g=Ko(_),h=d&&e.getEffectiveImplementsTypeNodes(d),v=h&&function(n){var i=e.mapDefined(n,(function(n){var i,a=t.enclosingDeclaration;t.enclosingDeclaration=n;var o=n.expression;if(e.isEntityNameExpression(o)){if(e.isIdentifier(o)&&""===e.idText(o))return c(void 0);var s=void 0;if(s=(i=U(o,t,k)).introducesError,o=i.node,s)return c(void 0)}return c(e.factory.createExpressionWithTypeArguments(o,e.map(n.typeArguments,(function(e){return K(t,e,k,r)||l(jd(e),t)}))));function c(e){return t.enclosingDeclaration=a,e}}));if(i.length===n.length)return i}(h)||e.mapDefined(function(n){var t=e.emptyArray;if(n.symbol.declarations)for(var r=0,i=n.symbol.declarations;r<i.length;r++){var a=i[r],o=e.getEffectiveImplementsTypeNodes(a);if(o)for(var s=0,c=o;s<c.length;s++){var l=jd(c[s]);l!==Re&&(t===e.emptyArray?t=[l]:t.push(l))}}return t}(_),ee),b=Ao(n),E=!!(null===(u=b.symbol)||void 0===u?void 0:u.valueDeclaration)&&e.isClassLike(b.symbol.valueDeclaration),T=E?Vo(b):Ie,S=i(i([],e.length(g)?[e.factory.createHeritageClause(94,e.map(g,(function(n){return function(n,r,i){var a=$(n,111551);if(a)return a;var o=ne(i+"_base");return R(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(o,void 0,l(r,t))],2)),0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(o),void 0)}(n,T,a)})))]:[],!0),e.length(v)?[e.factory.createHeritageClause(117,v)]:[],!0),x=function(n,t,r){if(!e.length(t))return r;var i=new e.Map;e.forEach(r,(function(e){i.set(e.escapedName,e)}));for(var a=0,o=t;a<o.length;a++)for(var s=0,c=nc(Es(o[a],n.thisType));s<c.length;s++){var l=c[s],u=i.get(l.escapedName);u&&!yf(u,l)&&i.delete(l.escapedName)}return e.arrayFrom(i.values())}(_,g,nc(_)),L=e.filter(x,(function(n){var t=n.valueDeclaration;return!(!t||e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))})),D=e.some(x,(function(n){var t=n.valueDeclaration;return!!t&&e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name)}))?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,A=e.flatMap(L,(function(e){return s(e,!1,g[0])})),C=e.flatMap(e.filter(nc(b),(function(e){return!(4194304&e.flags||"prototype"===e.escapedName||W(e))})),(function(e){return s(e,!0,T)})),I=!E&&n.valueDeclaration&&e.isInJSFile(n.valueDeclaration)&&!e.some(Dc(b,1))?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:Q(1,b,T,169),N=Z(_,g[0]);t.enclosingDeclaration=p,R(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,a,m,S,i(i(i(i(i([],N,!0),C,!0),I,!0),A,!0),D,!0)),n.declarations&&e.filter(n.declarations,(function(n){return e.isClassDeclaration(n)||e.isClassExpression(n)}))[0]),o)}(n,re(n,f),h)),(1536&n.flags&&(!v||function(n){return e.every(O(n),(function(e){return!(111551&mi(e).flags)}))}(n))||b)&&function(n,r,i){var a=O(n),o=e.arrayToMultiMap(a,(function(e){return e.parent&&e.parent===n?"real":"merged"})),s=o.get("real")||e.emptyArray,c=o.get("merged")||e.emptyArray;if(e.length(s)&&H(s,u=re(n,r),i,!!(67108880&n.flags)),e.length(c)){var l=e.getSourceFileOfNode(t.enclosingDeclaration),u=re(n,r),d=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(c,(function(e){return"export="!==e.escapedName})),(function(r){var i,a,o=e.unescapeLeadingUnderscores(r.escapedName),s=re(r,o),c=r.declarations&&ti(r);if(!l||(c?l===e.getSourceFileOfNode(c):e.some(r.declarations,(function(n){return e.getSourceFileOfNode(n)===l})))){var u=c&&pi(c,!0);k(u||r);var d=u?re(u,e.unescapeLeadingUnderscores(u.escapedName)):s;return e.factory.createExportSpecifier(o===d?void 0:d,o)}null===(a=null===(i=t.tracker)||void 0===i?void 0:i.reportNonlocalAugmentation)||void 0===a||a.call(i,l,n,r)}))))]);R(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(u),d,16),0)}}(n,f,h),64&n.flags&&!(32&n.flags)&&function(n,r,a){var o=zo(n),s=wo(n),l=e.map(s,(function(e){return y(e,t)})),u=Ko(o),d=e.length(u)?ku(u):void 0,p=e.flatMap(nc(o),(function(e){return function(e,n){return c(e,!1,n)}(e,d)})),f=Q(0,o,d,172),m=Q(1,o,d,173),_=Z(o,d),g=e.length(u)?[e.factory.createHeritageClause(94,e.mapDefined(u,(function(e){return $(e,111551)})))]:void 0;R(e.factory.createInterfaceDeclaration(void 0,void 0,re(n,r),l,g,i(i(i(i([],_,!0),m,!0),f,!0),p,!0)),a)}(n,f,h),2097152&n.flags&&z(n,re(n,f),h),4&n.flags&&"export="===n.escapedName&&q(n),8388608&n.flags&&n.declarations)for(var I=0,N=n.declarations;I<N.length;I++){var P=N[I],w=Li(P,P.moduleSpecifier);w&&R(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(L(w,t))),0)}_?R(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier(re(n,f))),0):g&&R(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(re(n,f),f)])),0)}else t.encounteredError=!0}(n,d,f);return t.reportedDiagnostic&&(g.reportedDiagnostic=t.reportedDiagnostic),t=_,h}}function k(n){if(!e.some(n.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(f[f.length-1]),ne(e.unescapeLeadingUnderscores(n.escapedName),n);var t=!!(2097152&n.flags)&&!e.some(n.declarations,(function(n){return!!e.findAncestor(n,e.isExportDeclaration)||e.isNamespaceExport(n)||e.isImportEqualsDeclaration(n)&&!e.isExternalModuleReference(n.moduleReference)}));f[t?0:f.length-1].set(P(n),n)}}function R(n,r){if(e.canHaveModifiers(n)){var i=0,a=t.enclosingDeclaration&&(e.isJSDocTypeAlias(t.enclosingDeclaration)?e.getSourceFileOfNode(t.enclosingDeclaration):t.enclosingDeclaration);1&r&&a&&(function(n){return e.isSourceFile(n)&&(e.isExternalOrCommonJsModule(n)||e.isJsonSourceFile(n))||e.isAmbientModule(n)&&!e.isGlobalScopeAugmentation(n)}(a)||e.isModuleDeclaration(a))&&S(n)&&(i|=1),!v||1&i||a&&8388608&a.flags||!(e.isEnumDeclaration(n)||e.isVariableStatement(n)||e.isFunctionDeclaration(n)||e.isClassDeclaration(n)||e.isModuleDeclaration(n))||(i|=2),512&r&&(e.isClassDeclaration(n)||e.isInterfaceDeclaration(n)||e.isFunctionDeclaration(n))&&(i|=512),i&&(n=e.factory.updateModifiers(n,i|e.getEffectiveModifierFlags(n)))}d.push(n)}function O(n){return n.exports?e.filter(e.arrayFrom(n.exports.values()),W):[]}function M(n,i,a,o){for(var s=0,c=Dc(n,0);s<c.length;s++){var l=c[s],u=_(l,254,t,{name:e.factory.createIdentifier(a),privateSymbolVisitor:k,bundledImports:r});R(e.setTextRange(u,G(l)),o)}1536&i.flags&&i.exports&&i.exports.size||H(e.filter(nc(n),W),a,o,!0)}function G(n){if(n.declaration&&n.declaration.parent){if(e.isBinaryExpression(n.declaration.parent)&&5===e.getAssignmentDeclarationKind(n.declaration.parent))return n.declaration.parent;if(e.isVariableDeclaration(n.declaration.parent)&&n.declaration.parent.parent)return n.declaration.parent.parent}return n.declaration}function H(n,r,i,o){if(e.length(n)){var s=e.arrayToMultiMap(n,(function(n){return!e.length(n.declarations)||e.some(n.declarations,(function(n){return e.getSourceFileOfNode(n)===e.getSourceFileOfNode(t.enclosingDeclaration)}))?"local":"remote"})).get("local")||e.emptyArray,c=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(r),e.factory.createModuleBlock([]),16);e.setParent(c,u),c.locals=e.createSymbolTable(n),c.symbol=n[0].parent;var l=d;d=[];var p=v;v=!1;var f=a(a({},t),{enclosingDeclaration:c}),m=t;t=f,A(e.createSymbolTable(s),o,!0),t=m,v=p;var _=d;d=l;var g=e.map(_,(function(n){return e.isExportAssignment(n)&&!n.isExportEquals&&e.isIdentifier(n.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(n.expression,e.factory.createIdentifier("default"))])):n})),y=e.every(g,(function(n){return e.hasSyntacticModifier(n,1)}))?e.map(g,D):g;R(c=e.factory.updateModuleDeclaration(c,c.decorators,c.modifiers,c.name,e.factory.createModuleBlock(y)),i)}}function W(n){return!!(2887656&n.flags)||!(4194304&n.flags||"prototype"===n.escapedName||n.valueDeclaration&&e.isStatic(n.valueDeclaration)&&e.isClassLike(n.valueDeclaration.parent))}function z(n,r,i){var a,o,s,c,l,u=ti(n);if(!u)return e.Debug.fail();var d=Bi(pi(u,!0));if(d){var p=e.unescapeLeadingUnderscores(d.escapedName);"export="===p&&(V.esModuleInterop||V.allowSyntheticDefaultImports)&&(p="default");var f=re(d,p);switch(k(d),u.kind){case 201:if(252===(null===(o=null===(a=u.parent)||void 0===a?void 0:a.parent)||void 0===o?void 0:o.kind)){var m=L(d.parent||d,t),_=u.propertyName;R(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(_&&e.isIdentifier(_)?e.factory.createIdentifier(e.idText(_)):void 0,e.factory.createIdentifier(r))])),e.factory.createStringLiteral(m)),0);break}e.Debug.failBadSyntaxKind((null===(s=u.parent)||void 0===s?void 0:s.parent)||u,"Unhandled binding element grandparent kind in declaration serialization");break;case 292:219===(null===(l=null===(c=u.parent)||void 0===c?void 0:c.parent)||void 0===l?void 0:l.kind)&&J(e.unescapeLeadingUnderscores(n.escapedName),f);break;case 252:if(e.isPropertyAccessExpression(u.initializer)){var g=u.initializer,y=e.factory.createUniqueName(r),h=L(d.parent||d,t);R(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,y,e.factory.createExternalModuleReference(e.factory.createStringLiteral(h))),0),R(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(r),e.factory.createQualifiedName(y,g.name)),i);break}case 263:if("export="===d.escapedName&&e.some(d.declarations,e.isJsonSourceFile)){q(n);break}var v=!(512&d.flags||e.isVariableDeclaration(u));R(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(r),v?I(d,t,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(L(d,t)))),v?i:0);break;case 262:R(e.factory.createNamespaceExportDeclaration(e.idText(u.name)),0);break;case 265:R(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(r),void 0),e.factory.createStringLiteral(L(d.parent||d,t))),0);break;case 266:R(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(r))),e.factory.createStringLiteral(L(d,t))),0);break;case 272:R(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(r)),e.factory.createStringLiteral(L(d,t))),0);break;case 268:R(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(r!==p?e.factory.createIdentifier(p):void 0,e.factory.createIdentifier(r))])),e.factory.createStringLiteral(L(d.parent||d,t))),0);break;case 273:var b=u.parent.parent.moduleSpecifier;J(e.unescapeLeadingUnderscores(n.escapedName),b?p:f,b&&e.isStringLiteralLike(b)?e.factory.createStringLiteral(b.text):void 0);break;case 269:q(n);break;case 219:case 204:case 205:"default"===n.escapedName||"export="===n.escapedName?q(n):J(r,f);break;default:return e.Debug.failBadSyntaxKind(u,"Unhandled alias declaration kind in symbol serializer!")}}}function J(n,t,r){R(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(n!==t?t:void 0,n)]),r),0)}function q(n){if(4194304&n.flags)return!1;var i=e.unescapeLeadingUnderscores(n.escapedName),a="export="===i,o=a||"default"===i,s=n.declarations&&ti(n),c=s&&pi(s,!0);if(c&&e.length(c.declarations)&&e.some(c.declarations,(function(n){return e.getSourceFileOfNode(n)===e.getSourceFileOfNode(u)}))){var l=s&&(e.isExportAssignment(s)||e.isBinaryExpression(s)?e.getExportAssignmentExpression(s):e.getPropertyAssignmentAliasLikeExpression(s)),p=l&&e.isEntityNameExpression(l)?function(n){switch(n.kind){case 79:return n;case 159:do{n=n.left}while(79!==n.kind);return n;case 204:do{if(e.isModuleExportsAccessExpression(n.expression)&&!e.isPrivateIdentifier(n.name))return n.name;n=n.expression}while(79!==n.kind);return n}}(l):void 0,f=p&&Si(p,67108863,!0,!0,u);(f||c)&&k(f||c);var m=t.tracker.trackSymbol;if(t.tracker.trackSymbol=function(){return!1},o)d.push(e.factory.createExportAssignment(void 0,void 0,a,N(c,t,67108863)));else if(p===l&&p)J(i,e.idText(p));else if(l&&e.isClassExpression(l))J(i,re(c,e.symbolName(c)));else{var _=ne(i,n);R(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(_),I(c,t,67108863,!1)),0),J(i,_)}return t.tracker.trackSymbol=m,!0}_=ne(i,n);var g=mm(Ao(Bi(n)));return X(g,n)?M(g,n,_,o?0:1):R(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(_,void 0,B(t,g,n,u,k,r))],2)),c&&4&c.flags&&"export="===c.escapedName?2:i===_?1:0),o?(d.push(e.factory.createExportAssignment(void 0,void 0,a,e.factory.createIdentifier(_))),!0):i!==_&&(J(i,_),!0)}function X(n,r){var i=e.getSourceFileOfNode(t.enclosingDeclaration);return 48&e.getObjectFlags(n)&&!e.length(kc(n))&&!Da(n)&&!(!e.length(e.filter(nc(n),W))&&!e.length(Dc(n,0)))&&!e.length(Dc(n,1))&&!F(r,u)&&!(n.symbol&&e.some(n.symbol.declarations,(function(n){return e.getSourceFileOfNode(n)!==i})))&&!e.some(nc(n),(function(e){return fs(e.escapedName)}))&&!e.some(nc(n),(function(n){return e.some(n.declarations,(function(n){return e.getSourceFileOfNode(n)!==i}))}))&&e.every(nc(n),(function(n){return e.isIdentifierText(e.symbolName(n),j)}))}function Y(n,i,a){return function(o,s,c){var l,d,p,f,m,g=e.getDeclarationModifierFlagsFromSymbol(o),y=!!(8&g);if(s&&2887656&o.flags)return[];if(4194304&o.flags||c&&xc(c,o.escapedName)&&Wv(xc(c,o.escapedName))===Wv(o)&&(16777216&o.flags)==(16777216&xc(c,o.escapedName).flags)&&Tp(Ao(o),Ua(c,o.escapedName)))return[];var h=-257&g|(s?32:0),v=w(o,t),b=null===(l=o.declarations)||void 0===l?void 0:l.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(98304&o.flags&&a){var E=[];if(65536&o.flags&&E.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(h),v,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,y?void 0:B(t,Ao(o),o,u,k,r))],void 0),(null===(d=o.declarations)||void 0===d?void 0:d.find(e.isSetAccessor))||b)),32768&o.flags){var T=8&g;E.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(h),v,[],T?void 0:B(t,Ao(o),o,u,k,r),void 0),(null===(p=o.declarations)||void 0===p?void 0:p.find(e.isGetAccessor))||b))}return E}if(98311&o.flags)return e.setTextRange(n(void 0,e.factory.createModifiersFromModifierFlags((Wv(o)?64:0)|h),v,16777216&o.flags?e.factory.createToken(57):void 0,y?void 0:B(t,Ao(o),o,u,k,r),void 0),(null===(f=o.declarations)||void 0===f?void 0:f.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||b);if(8208&o.flags){var S=Dc(Ao(o),0);if(8&h)return e.setTextRange(n(void 0,e.factory.createModifiersFromModifierFlags((Wv(o)?64:0)|h),v,16777216&o.flags?e.factory.createToken(57):void 0,void 0,void 0),(null===(m=o.declarations)||void 0===m?void 0:m.find(e.isFunctionLikeDeclaration))||S[0]&&S[0].declaration||o.declarations&&o.declarations[0]);for(var x=[],L=0,D=S;L<D.length;L++){var A=D[L],C=_(A,i,t,{name:v,questionToken:16777216&o.flags?e.factory.createToken(57):void 0,modifiers:h?e.factory.createModifiersFromModifierFlags(h):void 0}),I=A.declaration&&e.isPrototypePropertyAssignment(A.declaration.parent)?A.declaration.parent:A.declaration;x.push(e.setTextRange(C,I))}return x}return e.Debug.fail("Unhandled class member kind! "+(o.__debugFlags||o.flags))}}function Q(n,r,i,a){var o=Dc(r,n);if(1===n){if(!i&&e.every(o,(function(n){return 0===e.length(n.parameters)})))return[];if(i){var s=Dc(i,1);if(!e.length(s)&&e.every(o,(function(n){return 0===e.length(n.parameters)})))return[];if(s.length===o.length){for(var c=!1,l=0;l<s.length;l++)if(!vf(o[l],s[l],!1,!1,!0,Sp)){c=!0;break}if(!c)return[]}}for(var u=0,d=0,p=o;d<p.length;d++){var f=p[d];f.declaration&&(u|=e.getSelectedEffectiveModifierFlags(f.declaration,24))}if(u)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(u),[],void 0),o[0].declaration)]}for(var m=[],g=0,y=o;g<y.length;g++){var h=y[g],v=_(h,a,t);m.push(e.setTextRange(v,h.declaration))}return m}function Z(e,n){for(var r=[],i=0,a=kc(e);i<a.length;i++){var o=a[i];if(n){var s=Rc(n,o.keyType);if(s&&Tp(o.type,s.type))continue}r.push(m(o,t,void 0))}return r}function $(n,r){var i,a;if(n.target&&ua(n.target.symbol,u,r)?(i=e.map(Ll(n),(function(e){return l(e,t)})),a=N(n.target.symbol,t,788968)):n.symbol&&ua(n.symbol,u,r)&&(a=N(n.symbol,t,788968)),a)return e.factory.createExpressionWithTypeArguments(a,i)}function ee(n){return $(n,788968)||(n.symbol?e.factory.createExpressionWithTypeArguments(N(n.symbol,t,788968),void 0):void 0)}function ne(e,n){var r,i,a=n?P(n):void 0;if(a&&t.remappedSymbolNames.has(a))return t.remappedSymbolNames.get(a);n&&(e=te(n,e));for(var o=0,s=e;null===(r=t.usedSymbolNames)||void 0===r?void 0:r.has(e);)e=s+"_"+ ++o;return null===(i=t.usedSymbolNames)||void 0===i||i.add(e),a&&t.remappedSymbolNames.set(a,e),e}function te(n,r){if("default"===r||"__class"===r||"__function"===r){var i=t.flags;t.flags|=16777216;var a=Ra(n,t);t.flags=i,r=a.length>0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===r?r="_default":"export="===r&&(r="_exports"),e.isIdentifierText(r,j)&&!e.isStringANonContextualKeyword(r)?r:"_"+r.replace(/[^a-zA-Z0-9]/g,"_")}function re(e,n){var r=P(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=te(e,n),t.remappedSymbolNames.set(r,n),n)}}(n,t,u)}))}};function t(t,r,i,a){var s,c;e.Debug.assert(void 0===t||0==(8&t.flags));var l={enclosingDeclaration:t,flags:r||0,tracker:i&&i.trackSymbol?i:{trackSymbol:function(){return!1},moduleResolverHost:134217728&r?{getCommonSourceDirectory:n.getCommonSourceDirectory?function(){return n.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return n.getCurrentDirectory()},getSymlinkCache:e.maybeBind(n,n.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(n,n.useCaseSensitiveFileNames),redirectTargetsMap:n.redirectTargetsMap,getProjectReferenceRedirect:function(e){return n.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return n.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return n.fileExists(e)},getFileIncludeReasons:function(){return n.getFileIncludeReasons()}}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};l.tracker=o(l,l.tracker);var u=a(l);return l.truncating&&1&l.flags&&(null===(c=null===(s=l.tracker)||void 0===s?void 0:s.reportTruncationError)||void 0===c||c.call(s)),l.encounteredError?void 0:u}function o(e,n){var t=n.trackSymbol;return a(a({},n),{reportCyclicStructureError:r(n.reportCyclicStructureError),reportInaccessibleThisError:r(n.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:r(n.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:r(n.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:r(n.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:r(n.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:r(n.reportNonSerializableProperty),trackSymbol:t&&function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(void 0,n);return i&&(e.reportedDiagnostic=!0),i}});function r(n){return n?function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.reportedDiagnostic=!0,n.apply(void 0,t)}:n}}function s(n){return n.truncating?n.truncating:n.truncating=n.approximateLength>(1&n.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function l(n,t){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var i=8388608&t.flags;if(t.flags&=-8388609,!n)return 262144&t.flags?(t.approximateLength+=3,e.factory.createKeywordTypeNode(129)):void(t.encounteredError=!0);if(536870912&t.flags||(n=vc(n)),1&n.flags)return t.approximateLength+=3,e.factory.createKeywordTypeNode(n===Pe?137:129);if(2&n.flags)return e.factory.createKeywordTypeNode(153);if(4&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(8&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(145);if(64&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(156);if(16&n.flags&&!n.aliasSymbol)return t.approximateLength+=7,e.factory.createKeywordTypeNode(132);if(1024&n.flags&&!(1048576&n.flags)){var a=Vi(n.symbol),o=D(a,t,788968);if(ns(a)===n)return o;var c=e.symbolName(n.symbol);return e.isIdentifierText(c,0)?B(o,e.factory.createTypeReferenceNode(c,void 0)):e.isImportTypeNode(o)?(o.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(o,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(c)))):e.isTypeReferenceNode(o)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(o.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(c))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&n.flags)return D(n.symbol,t,788968);if(128&n.flags)return t.approximateLength+=n.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(n.value,!!(268435456&t.flags)),16777216));if(256&n.flags){var d=n.value;return t.approximateLength+=(""+d).length,e.factory.createLiteralTypeNode(d<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-d)):e.factory.createNumericLiteral(d))}if(2048&n.flags)return t.approximateLength+=e.pseudoBigIntToString(n.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(n.value));if(512&n.flags)return t.approximateLength+=n.intrinsicName.length,e.factory.createLiteralTypeNode("true"===n.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&n.flags){if(!(1048576&t.flags)){if(la(n.symbol,t.enclosingDeclaration))return t.approximateLength+=6,D(n.symbol,t,111551);t.tracker.reportInaccessibleUniqueSymbolError&&t.tracker.reportInaccessibleUniqueSymbolError()}return t.approximateLength+=13,e.factory.createTypeOperatorNode(152,e.factory.createKeywordTypeNode(149))}if(16384&n.flags)return t.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(32768&n.flags)return t.approximateLength+=9,e.factory.createKeywordTypeNode(151);if(65536&n.flags)return t.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&n.flags)return t.approximateLength+=5,e.factory.createKeywordTypeNode(142);if(4096&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(67108864&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(ed(n))return 4194304&t.flags&&(t.encounteredError||32768&t.flags||(t.encounteredError=!0),t.tracker.reportInaccessibleThisError&&t.tracker.reportInaccessibleThisError()),t.approximateLength+=4,e.factory.createThisTypeNode();if(!i&&n.aliasSymbol&&(16384&t.flags||ca(n.aliasSymbol,t.enclosingDeclaration))){var y=f(n.aliasTypeArguments,t);return!ea(n.aliasSymbol.escapedName)||32&n.aliasSymbol.flags?D(n.aliasSymbol,t,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var h=e.getObjectFlags(n);if(4&h)return e.Debug.assert(!!(524288&n.flags)),n.node?M(n,G):G(n);if(262144&n.flags||3&h){if(262144&n.flags&&e.contains(t.inferTypeParameters,n))return t.approximateLength+=e.symbolName(n.symbol).length+6,e.factory.createInferTypeNode(g(n,t,void 0));if(4&t.flags&&262144&n.flags&&!ca(n.symbol,t.enclosingDeclaration)){var v=C(n,t);return t.approximateLength+=e.idText(v).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(v)),void 0)}return n.symbol?D(n.symbol,t,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(1048576&n.flags&&n.origin&&(n=n.origin),3145728&n.flags){var b=1048576&n.flags?function(e){for(var n=[],t=0,r=0;r<e.length;r++){var i=e[r];if(t|=i.flags,!(98304&i.flags)){if(1536&i.flags){var a=512&i.flags?Xe:Qo(i);if(1048576&a.flags){var o=a.types.length;if(r+o<=e.length&&Rd(e[r+o-1])===Rd(a.types[o-1])){n.push(a),r+=o-1;continue}}}n.push(i)}}return 65536&t&&n.push(Ue),32768&t&&n.push(Me),n||e}(n.types):n.types;if(1===e.length(b))return l(b[0],t);var E=f(b,t,!0);return E&&E.length>0?1048576&n.flags?e.factory.createUnionTypeNode(E):e.factory.createIntersectionTypeNode(E):void(t.encounteredError||262144&t.flags||(t.encounteredError=!0))}if(48&h)return e.Debug.assert(!!(524288&n.flags)),w(n);if(4194304&n.flags){var T=n.type;t.approximateLength+=6;var S=l(T,t);return e.factory.createTypeOperatorNode(139,S)}if(134217728&n.flags){var x=n.texts,L=n.types,A=e.factory.createTemplateHead(x[0]),I=e.factory.createNodeArray(e.map(L,(function(n,r){return e.factory.createTemplateLiteralTypeSpan(l(n,t),(r<L.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(x[r+1]))})));return t.approximateLength+=2,e.factory.createTemplateLiteralType(A,I)}if(268435456&n.flags){var N=l(n.type,t);return D(n.symbol,t,788968,[N])}if(8388608&n.flags){var k=l(n.objectType,t);return S=l(n.indexType,t),t.approximateLength+=2,e.factory.createIndexedAccessTypeNode(k,S)}return 16777216&n.flags?M(n,(function(n){return function(n){var r=l(n.checkType,t),i=t.inferTypeParameters;t.inferTypeParameters=n.root.inferTypeParameters;var a=l(n.extendsType,t);t.inferTypeParameters=i;var o=R(_d(n)),s=R(gd(n));return t.approximateLength+=15,e.factory.createConditionalTypeNode(r,a,o,s)}(n)})):33554432&n.flags?l(n.baseType,t):e.Debug.fail("Should be unreachable.");function R(e){var n,r,i;return 1048576&e.flags?(null===(n=t.visitedTypes)||void 0===n?void 0:n.has(yu(e)))?(131072&t.flags||(t.encounteredError=!0,null===(i=null===(r=t.tracker)||void 0===r?void 0:r.reportCyclicStructureError)||void 0===i||i.call(r)),u(t)):M(e,(function(e){return l(e,t)})):l(e,t)}function w(n){var r,i=n.id,a=n.symbol;if(a){var o=Da(n)?788968:111551;if(ev(a.valueDeclaration))return D(a,t,o);if(32&a.flags&&!So(a)&&!(a.valueDeclaration&&224===a.valueDeclaration.kind&&2048&t.flags)||896&a.flags||function(){var n,r=!!(8192&a.flags)&&e.some(a.declarations,(function(n){return e.isStatic(n)})),o=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,(function(e){return 300===e.parent.kind||260===e.parent.kind})));if(r||o)return(!!(4096&t.flags)||(null===(n=t.visitedTypes)||void 0===n?void 0:n.has(i)))&&(!(8&t.flags)||la(a,t.enclosingDeclaration))}())return D(a,t,o);if(null===(r=t.visitedTypes)||void 0===r?void 0:r.has(i)){var s=function(n){if(n.symbol&&2048&n.symbol.flags&&n.symbol.declarations){var t=e.walkUpParenthesizedTypes(n.symbol.declarations[0].parent);if(257===t.kind)return Ui(t)}}(n);return s?D(s,t,788968):u(t)}return M(n,F)}return F(n)}function M(n,r){var i,a,o=n.id,s=16&e.getObjectFlags(n)&&n.symbol&&32&n.symbol.flags,c=4&e.getObjectFlags(n)&&n.node?"N"+O(n.node):16777216&n.flags?"N"+O(n.root.node):n.symbol?(s?"+":"")+P(n.symbol):void 0;t.visitedTypes||(t.visitedTypes=new e.Set),c&&!t.symbolDepth&&(t.symbolDepth=new e.Map);var l=t.enclosingDeclaration&&Ur(t.enclosingDeclaration),d=yu(n)+"|"+t.flags;l&&(l.serializedTypes||(l.serializedTypes=new e.Map));var p,f=null===(i=null==l?void 0:l.serializedTypes)||void 0===i?void 0:i.get(d);if(f)return f.truncating&&(t.truncating=!0),t.approximateLength+=f.addedLength,function n(t){return e.nodeIsSynthesized(t)||e.getParseTreeNode(t)!==t?e.setTextRange(e.factory.cloneNode(e.visitEachChild(t,n,e.nullTransformationContext)),t):t}(f);if(c){if((p=t.symbolDepth.get(c)||0)>10)return u(t);t.symbolDepth.set(c,p+1)}t.visitedTypes.add(o);var m=t.approximateLength,_=r(n),g=t.approximateLength-m;return t.reportedDiagnostic||t.encounteredError||(t.truncating&&(_.truncating=!0),_.addedLength=g,null===(a=null==l?void 0:l.serializedTypes)||void 0===a||a.set(d,_)),t.visitedTypes.delete(o),c&&t.symbolDepth.set(c,p),_}function F(n){if(Ys(n)||n.containsError)return function(n){e.Debug.assert(!!(524288&n.flags));var r,i=n.declaration.readonlyToken?e.factory.createToken(n.declaration.readonlyToken.kind):void 0,a=n.declaration.questionToken?e.factory.createToken(n.declaration.questionToken.kind):void 0;r=Ws(n)?e.factory.createTypeOperatorNode(139,l(zs(n),t)):l(Vs(n),t);var o=g(Us(n),t,r),s=n.declaration.nameType?l(js(n),t):void 0,c=l(rm(Ks(n),!!(4&Js(n))),t),u=e.factory.createMappedTypeNode(i,o,s,a,c);return t.approximateLength+=10,e.setEmitFlags(u,1)}(n);var r=Qs(n);if(!r.properties.length&&!r.indexInfos.length){if(!r.callSignatures.length&&!r.constructSignatures.length)return t.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length)return _(r.callSignatures[0],177,t);if(1===r.constructSignatures.length&&!r.callSignatures.length)return _(r.constructSignatures[0],178,t)}var i=e.filter(r.constructSignatures,(function(e){return!!(4&e.flags)}));if(e.some(i)){var a=e.map(i,ll);return r.callSignatures.length+(r.constructSignatures.length-i.length)+r.indexInfos.length+(2048&t.flags?e.countWhere(r.properties,(function(e){return!(4194304&e.flags)})):e.length(r.properties))&&a.push(function(n){if(0===n.constructSignatures.length)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;var t=e.filter(n.constructSignatures,(function(e){return!(4&e.flags)}));if(n.constructSignatures===t)return n;var r=ra(n.symbol,n.members,n.callSignatures,e.some(t)?t:e.emptyArray,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=r,r.objectTypeWithoutAbstractConstructSignatures=r,r}(r)),l(ku(a),t)}var o=t.flags;t.flags|=4194304;var c=function(n){if(s(t))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var r=[],i=0,a=n.callSignatures;i<a.length;i++){var o=a[i];r.push(_(o,172,t))}for(var c=0,l=n.constructSignatures;c<l.length;c++)4&(o=l[c]).flags||r.push(_(o,173,t));for(var d=0,f=n.indexInfos;d<f.length;d++){var g=f[d];r.push(m(g,t,1024&n.objectFlags?u(t):void 0))}var y=n.properties;if(!y)return r;for(var h=0,v=0,b=y;v<b.length;v++){var E=b[v];if(h++,2048&t.flags){if(4194304&E.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(E)&&t.tracker.reportPrivateInBaseOfClassExpression&&t.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(E.escapedName))}if(s(t)&&h+2<y.length-1){r.push(e.factory.createPropertySignature(void 0,"... "+(y.length-h)+" more ...",void 0,void 0)),p(y[y.length-1],t,r);break}p(E,t,r)}return r.length?r:void 0}(r);t.flags=o;var d=e.factory.createTypeLiteralNode(c);return t.approximateLength+=2,e.setEmitFlags(d,1024&t.flags?0:1),d}function G(n){var r=Ll(n);if(n.target===kn||n.target===Rn){if(2&t.flags){var i=l(r[0],t);return e.factory.createTypeReferenceNode(n.target===kn?"Array":"ReadonlyArray",[i])}var a=l(r[0],t),o=e.factory.createArrayTypeNode(a);return n.target===kn?o:e.factory.createTypeOperatorNode(143,o)}if(!(8&n.target.objectFlags)){if(2048&t.flags&&n.symbol.valueDeclaration&&e.isClassLike(n.symbol.valueDeclaration)&&!la(n.symbol,t.enclosingDeclaration))return w(n);var s=n.target.outerTypeParameters,c=void(T=0);if(s)for(var u=s.length;T<u;){var d=T,p=hl(s[T]);do{T++}while(T<u&&hl(s[T])===p);if(!e.rangeEquals(s,r,d,T)){var m=f(r.slice(d,T),t),_=t.flags;t.flags|=16;var g=D(p,t,788968,m);t.flags=_,c=c?B(c,g):g}}var y=void 0;if(r.length>0){var h=(n.target.typeParameters||e.emptyArray).length;y=f(r.slice(T,h),t)}S=t.flags,t.flags|=16;var v=D(n.symbol,t,788968,y);return t.flags=S,c?B(c,v):v}if(r=e.sameMap(r,(function(e,t){return rm(e,!!(2&n.target.elementFlags[t]))})),r.length>0){var b=Dl(n),E=f(r.slice(0,b),t);if(E){if(n.target.labeledElementDeclarations)for(var T=0;T<E.length;T++){var S=n.target.elementFlags[T];E[T]=e.factory.createNamedTupleMember(12&S?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(fv(n.target.labeledElementDeclarations[T]))),2&S?e.factory.createToken(57):void 0,4&S?e.factory.createArrayTypeNode(E[T]):E[T])}else for(T=0;T<Math.min(b,E.length);T++){S=n.target.elementFlags[T];E[T]=12&S?e.factory.createRestTypeNode(4&S?e.factory.createArrayTypeNode(E[T]):E[T]):2&S?e.factory.createOptionalTypeNode(E[T]):E[T]}var x=e.setEmitFlags(e.factory.createTupleTypeNode(E),1);return n.target.readonly?e.factory.createTypeOperatorNode(143,x):x}}if(t.encounteredError||524288&t.flags)return x=e.setEmitFlags(e.factory.createTupleTypeNode([]),1),n.target.readonly?e.factory.createTypeOperatorNode(143,x):x;t.encounteredError=!0}function B(n,t){if(e.isImportTypeNode(n)){var r=n.typeArguments,i=n.qualifier;i&&(i=e.isIdentifier(i)?e.factory.updateIdentifier(i,r):e.factory.updateQualifiedName(i,i.left,e.factory.updateIdentifier(i.right,r))),r=t.typeArguments;for(var a=0,o=U(t);a<o.length;a++){var s=o[a];i=i?e.factory.createQualifiedName(i,s):s}return e.factory.updateImportTypeNode(n,n.argument,i,r,n.isTypeOf)}r=n.typeArguments;var c=n.typeName;c=e.isIdentifier(c)?e.factory.updateIdentifier(c,r):e.factory.updateQualifiedName(c,c.left,e.factory.updateIdentifier(c.right,r)),r=t.typeArguments;for(var l=0,u=U(t);l<u.length;l++)s=u[l],c=e.factory.createQualifiedName(c,s);return e.factory.updateTypeReferenceNode(n,c,r)}function U(n){for(var t=n.typeName,r=[];!e.isIdentifier(t);)r.unshift(t.right),t=t.left;return r.unshift(t),r}}function u(n){return n.approximateLength+=3,1&n.flags?e.factory.createKeywordTypeNode(129):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function d(n,t){var r;return!!(8192&e.getCheckFlags(n))&&(e.contains(t.reverseMappedStack,n)||(null===(r=t.reverseMappedStack)||void 0===r?void 0:r[0])&&!(16&e.getObjectFlags(e.last(t.reverseMappedStack).propertyType)))}function p(n,t,r){var i,a,o=!!(8192&e.getCheckFlags(n)),s=d(n,t)?Ie:Co(n),c=t.enclosingDeclaration;if(t.enclosingDeclaration=void 0,t.tracker.trackSymbol&&4096&e.getCheckFlags(n)&&fs(n.escapedName))if(n.declarations){var l=e.first(n.declarations);if(ms(l))if(e.isBinaryExpression(l)){var p=e.getNameOfDeclaration(l);p&&e.isElementAccessExpression(p)&&e.isPropertyAccessEntityNameExpression(p.argumentExpression)&&v(p.argumentExpression,c,t)}else v(l.name.expression,c,t)}else(null===(i=t.tracker)||void 0===i?void 0:i.reportNonSerializableProperty)&&t.tracker.reportNonSerializableProperty(va(n));t.enclosingDeclaration=n.valueDeclaration||(null===(a=n.declarations)||void 0===a?void 0:a[0])||c;var f=w(n,t);t.enclosingDeclaration=c,t.approximateLength+=e.symbolName(n).length+1;var m=16777216&n.flags?e.factory.createToken(57):void 0;if(8208&n.flags&&!Zs(s).length&&!Wv(n))for(var g=0,y=Dc(w_(s,(function(e){return!(32768&e.flags)})),0);g<y.length;g++){var h=_(y[g],166,t,{name:f,questionToken:m});r.push(S(h))}else{var b=void 0;d(n,t)?b=u(t):(o&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(n)),b=s?B(t,s,n,c):e.factory.createKeywordTypeNode(129),o&&t.reverseMappedStack.pop());var E=Wv(n)?[e.factory.createToken(143)]:void 0;E&&(t.approximateLength+=9);var T=e.factory.createPropertySignature(E,f,m,b);r.push(S(T))}function S(t){var r;if(e.some(n.declarations,(function(e){return 342===e.kind}))){var i=null===(r=n.declarations)||void 0===r?void 0:r.find((function(e){return 342===e.kind})),a=e.getTextOfJSDocComment(i.comment);a&&e.setSyntheticLeadingComments(t,[{kind:3,text:"*\n * "+a.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else n.valueDeclaration&&e.setCommentRange(t,n.valueDeclaration);return t}}function f(n,t,r){if(e.some(n)){if(s(t)){if(!r)return[e.factory.createTypeReferenceNode("...",void 0)];if(n.length>2)return[l(n[0],t),e.factory.createTypeReferenceNode("... "+(n.length-2)+" more ...",void 0),l(n[n.length-1],t)]}for(var i=64&t.flags?void 0:e.createUnderscoreEscapedMultiMap(),a=[],o=0,c=0,u=n;c<u.length;c++){var d=u[c];if(o++,s(t)&&o+2<n.length-1){a.push(e.factory.createTypeReferenceNode("... "+(n.length-o)+" more ...",void 0));var p=l(n[n.length-1],t);p&&a.push(p);break}t.approximateLength+=2;var f=l(d,t);f&&(a.push(f),i&&e.isIdentifierTypeReference(f)&&i.add(f.typeName.escapedText,[d,a.length-1]))}if(i){var m=t.flags;t.flags|=64,i.forEach((function(n){if(!e.arrayIsHomogeneous(n,(function(e,n){return t=e[0],r=n[0],t===r||!!t.symbol&&t.symbol===r.symbol||!!t.aliasSymbol&&t.aliasSymbol===r.aliasSymbol;var t,r})))for(var r=0,i=n;r<i.length;r++){var o=i[r],s=o[0],c=o[1];a[c]=l(s,t)}})),t.flags=m}return a}}function m(n,t,r){var i=e.getNameFromIndexInfo(n)||"x",a=l(n.keyType,t),o=e.factory.createParameterDeclaration(void 0,void 0,void 0,i,void 0,a,void 0);return r||(r=l(n.type||Ie,t)),n.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=i.length+4,e.factory.createIndexSignature(void 0,n.isReadonly?[e.factory.createToken(143)]:void 0,[o],r)}function _(n,t,r,i){var a,o,s,c,u,d,p=256&r.flags;p&&(r.flags&=-257),r.approximateLength+=3,32&r.flags&&n.target&&n.mapper&&n.target.typeParameters?d=n.target.typeParameters.map((function(e){return l(fp(e,n.mapper),r)})):u=n.typeParameters&&n.typeParameters.map((function(e){return y(e,r)}));var f,m=As(n,!0)[0],_=(e.some(m,(function(n){return n!==m[m.length-1]&&!!(32768&e.getCheckFlags(n))}))?n.parameters:m).map((function(e){return h(e,r,169===t,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}));if(n.thisParameter){var g=h(n.thisParameter,r);_.unshift(g)}var v=Zc(n);if(v){var b=2===v.kind||3===v.kind?e.factory.createToken(128):void 0,E=1===v.kind||3===v.kind?e.setEmitFlags(e.factory.createIdentifier(v.parameterName),16777216):e.factory.createThisTypeNode(),T=v.type&&l(v.type,r);f=e.factory.createTypePredicateNode(b,E,T)}else{var S=el(n);!S||p&&Va(S)?p||(f=e.factory.createKeywordTypeNode(129)):f=function(n,t,r,i,a){if(t!==Re&&n.enclosingDeclaration){var o=r.declaration&&e.getEffectiveReturnTypeNode(r.declaration);if(e.findAncestor(o,(function(e){return e===n.enclosingDeclaration}))&&o){var s=jd(o);if((262144&s.flags&&s.isThisType?fp(s,r.mapper):s)===t&&G(o,t)){var c=K(n,o,i,a);if(c)return c}}}return l(t,n)}(r,S,n,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}var x=null==i?void 0:i.modifiers;if(178===t&&4&n.flags){var L=e.modifiersToFlags(x);x=e.factory.createModifiersFromModifierFlags(128|L)}var D=172===t?e.factory.createCallSignature(u,_,f):173===t?e.factory.createConstructSignature(u,_,f):166===t?e.factory.createMethodSignature(x,null!==(a=null==i?void 0:i.name)&&void 0!==a?a:e.factory.createIdentifier(""),null==i?void 0:i.questionToken,u,_,f):167===t?e.factory.createMethodDeclaration(void 0,x,void 0,null!==(o=null==i?void 0:i.name)&&void 0!==o?o:e.factory.createIdentifier(""),void 0,u,_,f,void 0):169===t?e.factory.createConstructorDeclaration(void 0,x,_,void 0):170===t?e.factory.createGetAccessorDeclaration(void 0,x,null!==(s=null==i?void 0:i.name)&&void 0!==s?s:e.factory.createIdentifier(""),_,f,void 0):171===t?e.factory.createSetAccessorDeclaration(void 0,x,null!==(c=null==i?void 0:i.name)&&void 0!==c?c:e.factory.createIdentifier(""),_,void 0):174===t?e.factory.createIndexSignature(void 0,x,_,f):312===t?e.factory.createJSDocFunctionType(_,f):177===t?e.factory.createFunctionTypeNode(u,_,null!=f?f:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):178===t?e.factory.createConstructorTypeNode(x,u,_,null!=f?f:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):254===t?e.factory.createFunctionDeclaration(void 0,x,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),u,_,f,void 0):211===t?e.factory.createFunctionExpression(x,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),u,_,f,e.factory.createBlock([])):212===t?e.factory.createArrowFunction(x,u,_,f,void 0,e.factory.createBlock([])):e.Debug.assertNever(t);return d&&(D.typeArguments=e.factory.createNodeArray(d)),D}function g(n,t,r){var i=t.flags;t.flags&=-513;var a=C(n,t),o=fc(n),s=o&&l(o,t);return t.flags=i,e.factory.createTypeParameterDeclaration(a,r,s)}function y(e,n,t){return void 0===t&&(t=rc(e)),g(e,n,t&&l(t,n))}function h(n,t,r,i,a){var o=e.getDeclarationOfKind(n,162);o||e.isTransientSymbol(n)||(o=e.getDeclarationOfKind(n,335));var s,c=Ao(n);o&&hS(o)&&(c=Qf(c)),1073741824&t.flags&&o&&!e.isJSDocParameterTag(o)&&(s=o,z&&Vc(s)&&!s.initializer)&&(c=__(c,524288));var l=B(t,c,n,t.enclosingDeclaration,i,a),u=!(8192&t.flags)&&r&&o&&o.modifiers?o.modifiers.map(e.factory.cloneNode):void 0,d=o&&e.isRestParameter(o)||32768&e.getCheckFlags(n)?e.factory.createToken(25):void 0,p=o&&o.name?79===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name),16777216):159===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name.right),16777216):function n(r){t.tracker.trackSymbol&&e.isComputedPropertyName(r)&&ps(r)&&v(r.expression,t.enclosingDeclaration,t);var i=e.visitEachChild(r,n,e.nullTransformationContext,void 0,n);return e.isBindingElement(i)&&(i=e.factory.updateBindingElement(i,i.dotDotDotToken,i.propertyName,i.name,void 0)),e.nodeIsSynthesized(i)||(i=e.factory.cloneNode(i)),e.setEmitFlags(i,16777217)}(o.name):e.symbolName(n),f=o&&Vc(o)||16384&e.getCheckFlags(n)?e.factory.createToken(57):void 0,m=e.factory.createParameterDeclaration(void 0,u,d,p,f,l,void 0);return t.approximateLength+=e.symbolName(n).length+3,m}function v(n,t,r){if(r.tracker.trackSymbol){var i=e.getFirstIdentifier(n),a=Wr(i,i.escapedText,1160127,void 0,void 0,!0);a&&r.tracker.trackSymbol(a,t,111551)}}function b(e,n,t,r){return n.tracker.trackSymbol(e,n.enclosingDeclaration,t),E(e,n,t,r)}function E(n,t,r,i){var a;return 262144&n.flags||!(t.enclosingDeclaration||64&t.flags)||134217728&t.flags?a=[n]:(a=e.Debug.checkDefined(function n(r,a,o){var s,c=oa(r,t.enclosingDeclaration,a,!!(128&t.flags));if(!c||sa(c[0],t.enclosingDeclaration,1===c.length?a:aa(a))){var l=ji(c?c[0]:r,t.enclosingDeclaration,a);if(e.length(l)){s=l.map((function(n){return e.some(n.declarations,ga)?L(n,t):void 0}));var u=l.map((function(e,n){return n}));u.sort((function(n,t){var r=s[n],i=s[t];if(r&&i){var a=e.pathIsRelative(i);return e.pathIsRelative(r)===a?e.moduleSpecifiers.countPathComponents(r)-e.moduleSpecifiers.countPathComponents(i):a?-1:1}return 0}));for(var d=0,p=u.map((function(e){return l[e]}));d<p.length;d++){var f=p[d],m=n(f,aa(a),!1);if(m){if(f.exports&&f.exports.get("export=")&&Wi(f.exports.get("export="),r)){c=m;break}c=m.concat(c||[Hi(f,r)||r]);break}}}}if(c)return c;if(o||!(6144&r.flags)){if(!o&&!i&&e.forEach(r.declarations,ga))return;return[r]}}(n,r,!0)),e.Debug.assert(a&&a.length>0)),a}function T(n,t){var r;return 524384&hT(n).flags&&(r=e.factory.createNodeArray(e.map(wo(n),(function(e){return y(e,t)})))),r}function S(n,t,r){var i;e.Debug.assert(n&&0<=t&&t<n.length);var a=n[t],o=P(a);if(!(null===(i=r.typeParameterSymbolList)||void 0===i?void 0:i.has(o))){var s;if((r.typeParameterSymbolList||(r.typeParameterSymbolList=new e.Set)).add(o),512&r.flags&&t<n.length-1){var c=a,l=n[t+1];if(1&e.getCheckFlags(l)){var u=function(n){return e.concatenate(Po(n),wo(n))}(2097152&c.flags?_i(c):c);s=f(e.map(u,(function(e){return Xd(e,l.mapper)})),r)}else s=T(a,r)}return s}}function x(n){return e.isIndexedAccessTypeNode(n.objectType)?x(n.objectType):n}function L(n,t){var r,i=e.getDeclarationOfKind(n,300);if(!i){var o=e.firstDefined(n.declarations,(function(e){return Ki(e,n)}));o&&(i=e.getDeclarationOfKind(o,300))}if(i&&void 0!==i.moduleName)return i.moduleName;if(!i){if(t.tracker.trackReferencedAmbientModule){var s=e.filter(n.declarations,e.isAmbientModule);if(e.length(s))for(var l=0,u=s;l<u.length;l++){var d=u[l];t.tracker.trackReferencedAmbientModule(d,n)}}if(c.test(n.escapedName))return n.escapedName.substring(1,n.escapedName.length-1)}if(!t.enclosingDeclaration||!t.tracker.moduleResolverHost)return c.test(n.escapedName)?n.escapedName.substring(1,n.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(n)).fileName;var p=e.getSourceFileOfNode(e.getOriginalNode(t.enclosingDeclaration)),f=Br(n),m=f.specifierCache&&f.specifierCache.get(p.path);if(!m){var _=!!e.outFile(V),g=t.tracker.moduleResolverHost,y=_?a(a({},V),{baseUrl:g.getCommonSourceDirectory()}):V;m=e.first(e.moduleSpecifiers.getModuleSpecifiers(n,de,y,p,g,{importModuleSpecifierPreference:_?"non-relative":"project-relative",importModuleSpecifierEnding:_?"minimal":void 0})),null!==(r=f.specifierCache)&&void 0!==r||(f.specifierCache=new e.Map),f.specifierCache.set(p.path,m)}return m}function D(n,t,r,i){var a=b(n,t,r,!(16384&t.flags)),o=111551===r;if(e.some(a[0].declarations,ga)){var s=a.length>1?g(a,a.length-1,1):void 0,c=i||S(a,0,t),l=L(a[0],t);!(67108864&t.flags)&&e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeJs&&l.indexOf("/node_modules/")>=0&&(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(l));var u=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(l));if(t.tracker.trackExternalModuleSymbolOfImportTypeNode&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),t.approximateLength+=l.length+10,!s||e.isEntityName(s))return s&&((m=e.isIdentifier(s)?s:s.right).typeArguments=void 0),e.factory.createImportTypeNode(u,s,c,o);var d=x(s),p=d.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(u,p,c,o),d.indexType)}var f=g(a,a.length-1,0);if(e.isIndexedAccessTypeNode(f))return f;if(o)return e.factory.createTypeQueryNode(f);var m,_=(m=e.isIdentifier(f)?f:f.right).typeArguments;return m.typeArguments=void 0,e.factory.createTypeReferenceNode(f,_);function g(n,r,a){var o,s=r===n.length-1?i:S(n,r,t),c=n[r],l=n[r-1];if(0===r)t.flags|=16777216,o=Ra(c,t),t.approximateLength+=(o?o.length:0)+1,t.flags^=16777216;else if(l&&wi(l)){var u=wi(l);e.forEachEntry(u,(function(n,t){if(Wi(n,c)&&!fs(t)&&"export="!==t)return o=e.unescapeLeadingUnderscores(t),!0}))}if(o||(o=Ra(c,t)),t.approximateLength+=o.length+1,!(16&t.flags)&&l&&vs(l)&&vs(l).get(c.escapedName)&&Wi(vs(l).get(c.escapedName),c)){var d=g(n,r-1,a);return e.isIndexedAccessTypeNode(d)?e.factory.createIndexedAccessTypeNode(d,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(d,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)))}var p=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);return p.symbol=c,r>a?(d=g(n,r-1,a),e.isEntityName(d)?e.factory.createQualifiedName(d,p):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")):p}}function A(e,n,t){var r=Wr(n.enclosingDeclaration,e,788968,void 0,e,!1);return!(!r||262144&r.flags&&r===t.symbol)}function C(n,t){var r,i;if(4&t.flags&&t.typeParameterNames){var a=t.typeParameterNames.get(yu(n));if(a)return a}var o=I(n.symbol,t,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&t.flags){for(var s=o.escapedText,c=(null===(r=t.typeParameterNamesByTextNextNameCount)||void 0===r?void 0:r.get(s))||0,l=s;(null===(i=t.typeParameterNamesByText)||void 0===i?void 0:i.has(l))||A(l,t,n);)l=s+"_"+ ++c;l!==s&&(o=e.factory.createIdentifier(l,o.typeArguments)),(t.typeParameterNamesByTextNextNameCount||(t.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(t.typeParameterNames||(t.typeParameterNames=new e.Map)).set(yu(n),o),(t.typeParameterNamesByText||(t.typeParameterNamesByText=new e.Set)).add(s)}return o}function I(n,t,r,i){var a=b(n,t,r);return!i||1===a.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function n(r,i){var a=S(r,i,t),o=r[i];0===i&&(t.flags|=16777216);var s=Ra(o,t);0===i&&(t.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(n(r,i-1),c):c}(a,a.length-1)}function N(n,t,r){var i=b(n,t,r);return function n(r,i){var a=S(r,i,t),o=r[i];0===i&&(t.flags|=16777216);var s=Ra(o,t);0===i&&(t.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,ga))return e.factory.createStringLiteral(L(o,t));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),j):e.isIdentifierStart(c,j);if(0===i||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return u.symbol=o,i>0?e.factory.createPropertyAccessExpression(n(r,i-1),u):u}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var d=void 0;return e.isSingleOrDoubleQuote(c)?d=e.factory.createStringLiteral(s.substring(1,s.length-1).replace(/\\./g,(function(e){return e.substring(1)})),39===c):""+ +s===s&&(d=e.factory.createNumericLiteral(+s)),d||((d=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(n(r,i-1),d)}(i,i.length-1)}function k(n){var t=e.getNameOfDeclaration(n);return!!t&&e.isStringLiteral(t)}function R(n){var t=e.getNameOfDeclaration(n);return!!(t&&e.isStringLiteral(t)&&(t.singleQuote||!e.nodeIsSynthesized(t)&&e.startsWith(e.getTextOfNode(t,!1),"'")))}function w(n,t){var r=!!e.length(n.declarations)&&e.every(n.declarations,R),i=function(n,t,r){var i=Br(n).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,V.target)||ty(a)?ty(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):M(a):e.factory.createStringLiteral(a,!!r)}if(8192&i.flags)return e.factory.createComputedPropertyName(N(i.symbol,t,111551))}}(n,t,r);return i||M(e.unescapeLeadingUnderscores(n.escapedName),!!e.length(n.declarations)&&e.every(n.declarations,k),r)}function M(n,t,r){return e.isIdentifierText(n,V.target)?e.factory.createIdentifier(n):!t&&ty(n)&&+n>=0?e.factory.createNumericLiteral(+n):e.factory.createStringLiteral(n,!!r)}function F(n,t){return n.declarations&&e.find(n.declarations,(function(n){return!(!e.getEffectiveTypeAnnotationNode(n)||t&&!e.findAncestor(n,(function(e){return e===t})))}))}function G(n,t){return!(4&e.getObjectFlags(t))||!e.isTypeReferenceNode(n)||e.length(n.typeArguments)>=Hc(t.target.typeParameters)}function B(n,t,r,i,a,o){if(t!==Re&&i){var s=F(r,i);if(s&&!e.isFunctionLikeDeclaration(s)&&!e.isGetAccessorDeclaration(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(jd(c)===t&&G(c,t)){var u=K(n,c,a,o);if(u)return u}}}var d=n.flags;8192&t.flags&&t.symbol===r&&(!n.enclosingDeclaration||e.some(r.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(n.enclosingDeclaration)})))&&(n.flags|=1048576);var p=l(t,n);return n.flags=d,p}function U(n,t,r){var i,a,o=!1,s=e.getFirstIdentifier(n);if(e.isInJSFile(n)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return{introducesError:o=!0,node:n};var c=Si(s,67108863,!0,!0);if(c&&(0!==pa(c,t.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=t.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,t.enclosingDeclaration,67108863),null==r||r(c)),e.isIdentifier(n))){var l=262144&c.flags?C(ns(c),t):e.factory.cloneNode(n);return l.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(l,n),16777216)}}return{introducesError:o,node:n}}function K(t,i,a,o){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var s=!1,c=e.getSourceFileOfNode(i),u=e.visitNode(i,(function r(i){if(e.isJSDocAllType(i)||314===i.kind)return e.factory.createKeywordTypeNode(129);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(153);if(e.isJSDocNullableType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createKeywordTypeNode(151)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,r);if(e.isJSDocVariadicType(i))return e.factory.createArrayTypeNode(e.visitNode(i.type,r));if(e.isJSDocTypeLiteral(i))return e.factory.createTypeLiteralNode(e.map(i.jsDocPropertyTags,(function(n){var a=e.isIdentifier(n.name)?n.name:n.name.right,o=Ua(jd(i),a.escapedText),s=o&&n.typeExpression&&jd(n.typeExpression.type)!==o?l(o,t):void 0;return e.factory.createPropertySignature(void 0,a,n.isBracketed||n.typeExpression&&e.isJSDocOptionalType(n.typeExpression.type)?e.factory.createToken(57):void 0,s||n.typeExpression&&e.visitNode(n.typeExpression.type,r)||e.factory.createKeywordTypeNode(129))})));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(129),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))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(i.typeArguments[0],r))],e.visitNode(i.typeArguments[1],r))]);var u;if(e.isJSDocFunctionType(i))return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(i.modifiers,e.visitNodes(i.typeParameters,r),e.mapDefined(i.parameters,(function(n,t){return n.name&&e.isIdentifier(n.name)&&"new"===n.name.escapedText?void(u=n.type):e.factory.createParameterDeclaration(void 0,void 0,_(n),g(n,t),n.questionToken,e.visitNode(n.type,r),void 0)})),e.visitNode(u||i.type,r)||e.factory.createKeywordTypeNode(129)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,r),e.map(i.parameters,(function(n,t){return e.factory.createParameterDeclaration(void 0,void 0,_(n),g(n,t),n.questionToken,e.visitNode(n.type,r),void 0)})),e.visitNode(i.type,r)||e.factory.createKeywordTypeNode(129));if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!G(i,jd(i))||Bl(i)||Ae===kl(Nl(i),788968,!0)))return e.setOriginalNode(l(jd(i),t),i);if(e.isLiteralImportTypeNode(i)){var d=Ur(i).resolvedSymbol;return!e.isInJSDoc(i)||!d||(i.isTypeOf||788968&d.flags)&&e.length(i.typeArguments)>=Hc(wo(d))?e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,function(r,i){if(o){if(t.tracker&&t.tracker.moduleResolverHost){var a=GS(r);if(a){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!n.useCaseSensitiveFileNames),getCurrentDirectory:function(){return t.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return t.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,a);return e.factory.createStringLiteral(c)}}}else if(t.tracker&&t.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=Di(i,i,void 0);l&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return i}(i,i.argument.literal)),i.qualifier,e.visitNodes(i.typeArguments,r,e.isTypeNode),i.isTypeOf):e.setOriginalNode(l(jd(i),t),i)}if(e.isEntityName(i)||e.isEntityNameExpression(i)){var p=U(i,t,a),f=p.introducesError,m=p.node;if(s=s||f,m!==i)return m}return c&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(c,i.pos).line===e.getLineAndCharacterOfPosition(c,i.end).line&&e.setEmitFlags(i,1),e.visitEachChild(i,r,e.nullTransformationContext);function _(n){return n.dotDotDotToken||(n.type&&e.isJSDocVariadicType(n.type)?e.factory.createToken(25):void 0)}function g(n,t){return n.name&&e.isIdentifier(n.name)&&"this"===n.name.escapedText?"this":_(n)?"args":"arg"+t}}));if(!s)return u===i?e.setTextRange(e.factory.cloneNode(i),i):u}}(),ae=e.createSymbolTable(),oe=Nr(4,"undefined");oe.declarations=[];var se=Nr(1536,"globalThis",8);se.exports=ae,se.declarations=[],ae.set(se.escapedName,se);var ce,le=Nr(4,"arguments"),ue=Nr(4,"require"),de={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+v},getTypeCount:function(){return h},getInstantiationCount:function(){return E},getRelationCacheSizes:function(){return{assignable:gr.size,identity:hr.size,subtype:mr.size,strictSubtype:_r.size}},isUndefinedSymbol:function(e){return e===oe},isArgumentsSymbol:function(e){return e===le},isUnknownSymbol:function(e){return e===Ae},getMergedSymbol:Bi,getDiagnostics:jT,getGlobalDiagnostics:function(){return KT(),ur.getGlobalDiagnostics()},getRecursionIdentity:gf,getUnmatchedProperties:Pm,getTypeOfSymbolAtLocation:function(n,t){var r=e.getParseTreeNode(t);return r?function(n,t){if(n=n.exportSymbol||n,(79===t.kind||80===t.kind)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),e.isExpressionNode(t)&&(!e.isAssignmentTarget(t)||e.isWriteAccess(t)))){var r=xb(t);if(zi(Ur(t).resolvedSymbol)===n)return r}return e.isDeclarationName(t)&&e.isSetAccessor(t.parent)&&ho(t.parent)?To(t.parent.symbol,!0):Co(n)}(n,r):Re},getSymbolsOfParameterPropertyDeclaration:function(n,t){var r=e.getParseTreeNode(n,e.isParameter);return void 0===r?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(n,t){var r=n.parent,i=n.parent.parent,a=jr(r.locals,t,111551),o=jr(vs(i.symbol),t,111551);return a&&o?[a,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(r,e.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:ns,getPropertiesOfType:nc,getPropertyOfType:function(n,t){return xc(n,e.escapeLeadingUnderscores(t))},getPrivateIdentifierPropertyOfType:function(n,t,r){var i=e.getParseTreeNode(r);if(i){var a=Ky(e.escapeLeadingUnderscores(t),i);return a?Hy(n,a):void 0}},getTypeOfPropertyOfType:function(n,t){return Ua(n,e.escapeLeadingUnderscores(t))},getIndexInfoOfType:function(e,n){return Rc(e,0===n?je:Ke)},getIndexInfosOfType:kc,getSignaturesOfType:Dc,getIndexTypeOfType:function(e,n){return Oc(e,0===n?je:Ke)},getBaseTypes:Ko,getBaseTypeOfLiteralType:wf,getWidenedType:mm,getTypeFromTypeNode:function(n){var t=e.getParseTreeNode(n,e.isTypeNode);return t?jd(t):Re},getParameterType:hv,getParameterIdentifierNameAtPosition:function(e,n){var t=e.parameters.length-(B(e)?1:0);if(n<t){var r=e.parameters[n];return _v(r)?[r.escapedName,!1]:void 0}var i=e.parameters[t]||Ae;if(_v(i)){var a=Ao(i);if(Uf(a)){var o=a.target.labeledElementDeclarations,s=null==o?void 0:o[n-t],c=!!(null==s?void 0:s.dotDotDotToken);return s?[fv(s),c]:void 0}return n===t?[i.escapedName,!0]:void 0}},getPromisedTypeOfPromise:Jb,getAwaitedType:function(e){return Xb(e)},getReturnTypeOfSignature:el,isNullableType:Oy,getNullableType:Yf,getNonNullableType:Zf,getNonOptionalType:em,getTypeArguments:Ll,typeToTypeNode:ie.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ie.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ie.signatureToSignatureDeclaration,symbolToEntityName:ie.symbolToEntityName,symbolToExpression:ie.symbolToExpression,symbolToTypeParameterDeclarations:ie.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ie.symbolToParameterDeclaration,typeParameterToDeclaration:ie.typeParameterToDeclaration,getSymbolsInScope:function(n,t){var r=e.getParseTreeNode(n);return r?function(n,t){if(16777216&n.flags)return[];var r=e.createSymbolTable(),i=!1;return function(){for(;n;){switch(n.locals&&!Vr(n)&&o(n.locals,t),n.kind){case 300:if(!e.isExternalModule(n))break;case 259:s(Ui(n).exports,2623475&t);break;case 258:o(Ui(n).exports,8&t);break;case 224:n.name&&a(n.symbol,t);case 255:case 256:i||o(vs(Ui(n)),788968&t);break;case 211:n.name&&a(n.symbol,t)}e.introducesArgumentsExoticObject(n)&&a(le,t),i=e.isStatic(n),n=n.parent}o(ae,t)}(),r.delete("this"),Gc(r);function a(n,t){if(e.getCombinedLocalAndExportSymbolFlags(n)&t){var i=n.escapedName;r.has(i)||r.set(i,n)}}function o(e,n){n&&e.forEach((function(e){a(e,n)}))}function s(n,t){t&&n.forEach((function(n){e.getDeclarationOfKind(n,273)||e.getDeclarationOfKind(n,272)||a(n,t)}))}}(r,t):[]},getSymbolAtLocation:function(n){var t=e.getParseTreeNode(n);return t?QT(t,!0):void 0},getIndexInfosAtLocation:function(n){var t=e.getParseTreeNode(n);return t?function(n){if(e.isIdentifier(n)&&e.isPropertyAccessExpression(n.parent)&&n.parent.name===n){var t=Mu(n),r=xb(n.parent.expression),i=1048576&r.flags?r.types:[r];return e.flatMap(i,(function(n){return e.filter(kc(n),(function(e){return Ic(t,e.keyType)}))}))}}(t):void 0},getShorthandAssignmentValueSymbol:function(n){var t=e.getParseTreeNode(n);return t?function(e){if(e&&292===e.kind)return Si(e.name,2208703)}(t):void 0},getExportSpecifierLocalTargetSymbol:function(n){var t=e.getParseTreeNode(n,e.isExportSpecifier);return t?function(n){return e.isExportSpecifier(n)?n.parent.parent.moduleSpecifier?ci(n.parent.parent,n):Si(n.propertyName||n.name,2998271):Si(n,2998271)}(t):void 0},getExportSymbolOfSymbol:function(e){return Bi(e.exportSymbol||e)},getTypeAtLocation:function(n){var t=e.getParseTreeNode(n);return t?ZT(t):Re},getTypeOfAssignmentPattern:function(n){var t=e.getParseTreeNode(n,e.isAssignmentPattern);return t&&$T(t)||Re},getPropertySymbolOfDestructuringAssignment:function(n){var t=e.getParseTreeNode(n,e.isIdentifier);return t?function(n){var t=$T(e.cast(n.parent.parent,e.isAssignmentPattern));return t&&xc(t,n.escapedText)}(t):void 0},signatureToString:function(n,t,r,i){return ba(n,e.getParseTreeNode(t),r,i)},typeToString:function(n,t,r){return Ea(n,e.getParseTreeNode(t),r)},symbolToString:function(n,t,r,i){return va(n,e.getParseTreeNode(t),r,i)},typePredicateToString:function(n,t,r){return Aa(n,e.getParseTreeNode(t),r)},writeSignature:function(n,t,r,i,a){return ba(n,e.getParseTreeNode(t),r,i,a)},writeType:function(n,t,r,i){return Ea(n,e.getParseTreeNode(t),r,i)},writeSymbol:function(n,t,r,i,a){return va(n,e.getParseTreeNode(t),r,i,a)},writeTypePredicate:function(n,t,r,i){return Aa(n,e.getParseTreeNode(t),r,i)},getAugmentedPropertiesOfType:rS,getRootSymbols:function n(t){var r=function(n){if(6&e.getCheckFlags(n))return e.mapDefined(Br(n).containingType.types,(function(e){return xc(e,n.escapedName)}));if(33554432&n.flags){var t=n,r=t.leftSpread,i=t.rightSpread,a=t.syntheticOrigin;return r?[r,i]:a?[a]:e.singleElementArray(function(e){for(var n,t=e;t=Br(t).target;)n=t;return n}(n))}}(t);return r?e.flatMap(r,n):[t]},getSymbolOfExpando:tv,getContextualType:function(n,t){var r=e.getParseTreeNode(n,e.isExpression);if(r){var i=e.findAncestor(r,e.isCallLikeExpression),a=i&&Ur(i).resolvedSignature;if(4&t&&i){var o=r;do{Ur(o).skipDirectInference=!0,o=o.parent}while(o&&o!==i);Ur(i).resolvedSignature=void 0}var s=Hg(r,t);if(4&t&&i){o=r;do{Ur(o).skipDirectInference=void 0,o=o.parent}while(o&&o!==i);Ur(i).resolvedSignature=a}return s}},getContextualTypeForObjectLiteralElement:function(n){var t=e.getParseTreeNode(n,e.isObjectLiteralElementLike);return t?Fg(t):void 0},getContextualTypeForArgumentAtIndex:function(n,t){var r=e.getParseTreeNode(n,e.isCallLikeExpression);return r&&Og(r,t)},getContextualTypeForJsxAttribute:function(n){var t=e.getParseTreeNode(n,e.isJsxAttributeLike);return t&&Bg(t)},isContextSensitive:hp,getTypeOfPropertyOfContextualType:Mg,getFullyQualifiedName:Ti,getResolvedSignature:function(e,n,t){return pe(e,n,t,0)},getResolvedSignatureForSignatureHelp:function(e,n,t){return pe(e,n,t,16)},getExpandedParameters:As,hasEffectiveRestParameter:Sv,containsArgumentsReference:qc,getConstantValue:function(n){var t=e.getParseTreeNode(n,xS);return t?LS(t):void 0},isValidPropertyAccess:function(n,t){var r=e.getParseTreeNode(n,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!r&&function(e,n){switch(e.kind){case 204:return ch(e,106===e.expression.kind,n,mm(Ab(e.expression)));case 159:return ch(e,!1,n,mm(Ab(e.left)));case 198:return ch(e,!1,n,jd(e))}}(r,e.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(n,t,r){var i=e.getParseTreeNode(n,e.isPropertyAccessExpression);return!!i&&sh(i,t,r)},getSignatureFromDeclaration:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?zc(t):void 0},isImplementationOfOverload:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?yS(t):void 0},getImmediateAliasedSymbol:oy,getAliasedSymbol:_i,getEmitResolver:function(e,n){return jT(e,n),re},getExportsOfModule:Ri,getExportsAndPropertiesOfModule:function(n){var t=Ri(n),r=Ii(n);if(r!==n){var i=Ao(r);Pi(i)&&e.addRange(t,nc(i))}return t},forEachExportAndPropertyOfModule:function(e,n){Mi(e).forEach((function(e,t){ea(t)||n(e,t)}));var t=Ii(e);if(t!==e){var r=Ao(t);Pi(r)&&nc(r).forEach((function(e){n(e,e.escapedName)}))}},getSymbolWalker:e.createGetSymbolWalker((function(e){return rl(e)||Ie}),Zc,el,Ko,Qs,Ao,Qm,rc,e.getFirstIdentifier,Ll),getAmbientModules:function(){return xn||(xn=[],ae.forEach((function(e,n){c.test(n)&&xn.push(e)}))),xn},getJsxIntrinsicTagNamesAt:function(n){var t=fy(I.IntrinsicElements,n);return t?nc(t):e.emptyArray},isOptionalParameter:function(n){var t=e.getParseTreeNode(n,e.isParameter);return!!t&&Vc(t)},tryGetMemberInModuleExports:function(n,t){return Oi(e.escapeLeadingUnderscores(n),t)},tryGetMemberInModuleExportsAndProperties:function(n,t){return function(e,n){var t=Oi(e,n);if(t)return t;var r=Ii(n);if(r!==n){var i=Ao(r);return Pi(i)?xc(i,e):void 0}}(e.escapeLeadingUnderscores(n),t)},tryFindAmbientModule:function(e){return Uc(e,!0)},tryFindAmbientModuleWithoutAugmentations:function(e){return Uc(e,!1)},getApparentType:mc,getUnionType:xu,isTypeAssignableTo:Ap,createAnonymousType:ra,createSignature:Ss,createSymbol:Nr,createIndexInfo:pl,getAnyType:function(){return Ie},getStringType:function(){return je},getNumberType:function(){return Ke},createPromiseType:kv,createArrayType:ru,getElementTypeOfArrayType:xf,getBooleanType:function(){return Xe},getFalseType:function(e){return e?We:ze},getTrueType:function(e){return e?Je:qe},getVoidType:function(){return Qe},getUndefinedType:function(){return Me},getNullType:function(){return Ue},getESSymbolType:function(){return Ye},getNeverType:function(){return Ze},getOptionalType:function(){return Ge},isSymbolAccessible:pa,isArrayType:Ef,isTupleType:Uf,isArrayLikeType:Lf,isTypeInvalidDueToUnionDiscriminant:function(e,n){return n.properties.some((function(n){var t=n.name&&Mu(n.name),r=t&&ds(t)?gs(t):void 0,i=void 0===r?void 0:Ua(e,r);return!!i&&Pf(i)&&!Ap(ZT(n),i)}))},getAllPossiblePropertiesOfTypes:function(n){var t=xu(n);if(!(1048576&t.flags))return rS(t);for(var r=e.createSymbolTable(),i=0,a=n;i<a.length;i++)for(var o=0,s=rS(a[i]);o<s.length;o++){var c=s[o].escapedName;if(!r.has(c)){var l=gc(t,c);l&&r.set(c,l)}}return e.arrayFrom(r.values())},getSuggestedSymbolForNonexistentProperty:$y,getSuggestionForNonexistentProperty:nh,getSuggestedSymbolForNonexistentJSXAttribute:eh,getSuggestedSymbolForNonexistentSymbol:function(n,t,r){return th(n,e.escapeLeadingUnderscores(t),r)},getSuggestionForNonexistentSymbol:function(n,t,r){return function(n,t,r){var i=th(n,t,r);return i&&e.symbolName(i)}(n,e.escapeLeadingUnderscores(t),r)},getSuggestedSymbolForNonexistentModule:rh,getSuggestionForNonexistentExport:function(n,t){var r=rh(n,t);return r&&e.symbolName(r)},getSuggestedSymbolForNonexistentClassMember:Zy,getBaseConstraintOfType:cc,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?fc(e):void 0},resolveName:function(n,t,r,i){return Wr(t,e.escapeLeadingUnderscores(n),r,void 0,void 0,!1,i)},getJsxNamespace:function(n){return e.unescapeLeadingUnderscores(Er(n))},getJsxFragmentFactory:function(n){var t=FS(n);return t&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(t).escapedText)},getAccessibleSymbolChain:oa,getTypePredicateOfSignature:Zc,resolveExternalModuleName:function(n){var t=e.getParseTreeNode(n,e.isExpression);return t&&Li(t,t,!0)},resolveExternalModuleSymbol:Ii,tryGetThisTypeAt:function(n,t){var r=e.getParseTreeNode(n);return r&&Eg(r,t)},getTypeArgumentConstraint:function(n){var t=e.getParseTreeNode(n,e.isTypeNode);return t&&function(n){var t=e.tryCast(n.parent,e.isTypeReferenceType);if(t){var r=Bb(t),i=rc(r[t.typeArguments.indexOf(n)]);return i&&fp(i,qd(r,Fb(t,r)))}}(t)},getSuggestionDiagnostics:function(t,i){var o,s=e.getParseTreeNode(t,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(s,V,n))return e.emptyArray;try{return r=i,BT(s),e.Debug.assert(!!(1&Ur(s).flags)),o=e.addRange(o,dr.getDiagnostics(s.fileName)),sE(VT(s),(function(n,t,r){e.containsParseError(n)||UT(t,!!(8388608&n.flags))||(o||(o=[])).push(a(a({},r),{category:e.DiagnosticCategory.Suggestion}))})),o||e.emptyArray}finally{r=void 0}},runWithCancellationToken:function(e,n){try{return r=e,n(de)}finally{r=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:wo,isDeclarationVisible:Oa};function pe(n,t,r,i){var a=e.getParseTreeNode(n,e.isCallLikeExpression);ce=r;var o=a?$h(a,t,i):void 0;return ce=void 0,o}var fe=new e.Map,me=new e.Map,_e=new e.Map,ge=new e.Map,ye=new e.Map,he=new e.Map,ve=new e.Map,be=new e.Map,Ee=new e.Map,Te=new e.Map,Se=new e.Map,xe=new e.Map,Le=[],De=new e.Map,Ae=Nr(4,"unknown"),Ce=Nr(0,"__resolving__"),Ie=Qi(1,"any"),Ne=Qi(1,"any"),ke=Qi(1,"any"),Re=Qi(1,"error"),Oe=Qi(1,"any",131072),Pe=Qi(1,"intrinsic"),we=Qi(2,"unknown"),Me=Qi(32768,"undefined"),Fe=z?Me:Qi(32768,"undefined",131072),Ge=Qi(32768,"undefined"),Be=ne?Qi(32768,"undefined"):Me,Ue=Qi(65536,"null"),Ve=z?Ue:Qi(65536,"null",131072),je=Qi(4,"string"),Ke=Qi(8,"number"),He=Qi(64,"bigint"),We=Qi(512,"false"),ze=Qi(512,"false"),Je=Qi(512,"true"),qe=Qi(512,"true");Je.regularType=qe,Je.freshType=Je,qe.regularType=qe,qe.freshType=Je,We.regularType=ze,We.freshType=We,ze.regularType=ze,ze.freshType=We;var Xe=xu([ze,qe]),Ye=Qi(4096,"symbol"),Qe=Qi(16384,"void"),Ze=Qi(131072,"never"),$e=Qi(131072,"never"),en=Qi(131072,"never",524288),nn=Qi(131072,"never"),tn=Qi(131072,"never"),rn=Qi(67108864,"object"),an=xu([je,Ke]),on=xu([je,Ke,Ye]),sn=$?je:on,cn=xu([Ke,He]),ln=xu([je,Ke,Xe,He,Ue,Me]),un=Qd((function(e){return 262144&e.flags?(n=e).constraint===we?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=$i(n.symbol),n.restrictiveInstantiation.constraint=we,n.restrictiveInstantiation):e;var n})),dn=Qd((function(e){return 262144&e.flags?ke:e})),pn=ra(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray),fn=ra(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray);fn.objectFlags|=2048;var mn=Nr(2048,"__type");mn.members=e.createSymbolTable();var _n=ra(mn,D,e.emptyArray,e.emptyArray,e.emptyArray),gn=ra(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray);gn.instantiations=new e.Map;var yn=ra(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray);yn.objectFlags|=524288;var hn=ra(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray),vn=ra(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray),bn=ra(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray),En=$i(),Tn=$i();Tn.constraint=En;var Sn,xn,Ln,Dn,An,Cn,In,Nn,kn,Rn,On,Pn,wn,Mn,Fn,Gn,Bn,Un,Vn,jn,Kn,Hn,Wn,zn,Jn,qn,Xn,Yn,Qn,Zn,$n,et,nt,tt,rt,it,at,ot,st,ct,lt,ut,dt,pt,ft,mt,_t,gt,yt,ht=$i(),vt=Kc(1,"<<unresolved>>",0,Ie),bt=Ss(void 0,void 0,void 0,e.emptyArray,Ie,void 0,0,0),Et=Ss(void 0,void 0,void 0,e.emptyArray,Re,void 0,0,0),Tt=Ss(void 0,void 0,void 0,e.emptyArray,Ie,void 0,0,0),St=Ss(void 0,void 0,void 0,e.emptyArray,$e,void 0,0,0),xt=pl(Ke,je,!0),Lt=new e.Map,Dt={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},At=VE(Ie,Ie,Ie),Ct=VE(Ie,Ie,we),It=VE(Ze,Ie,Me),Nt={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return rt||(rt=Jl("AsyncIterator",3,e))||gn},getGlobalIterableType:function(e){return tt||(tt=Jl("AsyncIterable",1,e))||gn},getGlobalIterableIteratorType:function(e){return it||(it=Jl("AsyncIterableIterator",1,e))||gn},getGlobalGeneratorType:function(e){return at||(at=Jl("AsyncGenerator",3,e))||gn},resolveIterationType:Xb,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},kt={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Qn||(Qn=Jl("Iterator",3,e))||gn},getGlobalIterableType:$l,getGlobalIterableIteratorType:function(e){return Zn||(Zn=Jl("IterableIterator",1,e))||gn},getGlobalGeneratorType:function(e){return $n||($n=Jl("Generator",3,e))||gn},resolveIterationType:function(e,n){return e},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},Rt=new e.Map,Ot=!1,Pt=new e.Map,wt=0,Mt=0,Ft=0,Gt=!1,Bt=0,Ut=Pd(""),Vt=wd(0),jt=Md({negative:!1,base10Value:"0"}),Kt=[],Ht=[],Wt=[],zt=0,Jt=10,qt=[],Xt=[],Yt=[],Qt=[],Zt=[],$t=[],er=[],nr=[],tr=[],rr=[],ir=[],ar=[],or=[],sr=[],cr=[],lr=[],ur=e.createDiagnosticCollection(),dr=e.createDiagnosticCollection(),pr=new e.Map(e.getEntries({string:je,number:Ke,bigint:He,boolean:Xe,symbol:Ye,undefined:Me})),fr=xu(e.arrayFrom(T.keys(),Pd)),mr=new e.Map,_r=new e.Map,gr=new e.Map,yr=new e.Map,hr=new e.Map,vr=new e.Map,br=e.createSymbolTable();return br.set(oe.escapedName,oe),function(){for(var t=0,r=n.getSourceFiles();t<r.length;t++){var i=r[t];e.bindSourceFile(i,V)}var a,o,s,c;Sn=new e.Map;for(var l=0,u=n.getSourceFiles();l<u.length;l++)if(!(i=u[l]).redirectInfo){if(!e.isExternalOrCommonJsModule(i)){var d=i.locals.get("globalThis");if(null==d?void 0:d.declarations)for(var p=0,f=d.declarations;p<f.length;p++){var m=f[p];ur.add(e.createDiagnosticForNode(m,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}Fr(ae,i.locals)}i.jsGlobalAugmentations&&Fr(ae,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(Ln=e.concatenate(Ln,i.patternAmbientModules)),i.moduleAugmentations.length&&(a||(a=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports&&i.symbol.globalExports.forEach((function(e,n){ae.has(n)||ae.set(n,e)}))}if(a)for(var _=0,g=a;_<g.length;_++)for(var y=0,h=g[_];y<h.length;y++){var v=h[y];e.isGlobalScopeAugmentation(v.parent)&&Gr(v)}if(o=ae,s=br,c=e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,s.forEach((function(n,t){var r=o.get(t);r?e.forEach(r.declarations,function(n,t){return function(r){return ur.add(e.createDiagnosticForNode(r,t,n))}}(e.unescapeLeadingUnderscores(t),c)):o.set(t,n)})),Br(oe).type=Fe,Br(le).type=Jl("IArguments",0,!0),Br(Ae).type=Re,Br(se).type=Zi(16,se),kn=Jl("Array",1,!0),An=Jl("Object",0,!0),Cn=Jl("Function",0,!0),In=q&&Jl("CallableFunction",0,!0)||Cn,Nn=q&&Jl("NewableFunction",0,!0)||Cn,On=Jl("String",0,!0),Pn=Jl("Number",0,!0),wn=Jl("Boolean",0,!0),Mn=Jl("RegExp",0,!0),Gn=ru(Ie),(Bn=ru(Ne))===pn&&(Bn=ra(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray)),Rn=eu("ReadonlyArray",1)||kn,Un=Rn?nu(Rn,[Ie]):Gn,Fn=eu("ThisType",1),a)for(var b=0,E=a;b<E.length;b++)for(var T=0,S=E[b];T<S.length;T++)v=S[T],e.isGlobalScopeAugmentation(v.parent)||Gr(v);Sn.forEach((function(n){var t=n.firstFile,r=n.secondFile,i=n.conflictingSymbols;if(i.size<8)i.forEach((function(n,t){for(var r=n.isBlockScoped,i=n.firstFileLocations,a=n.secondFileLocations,o=r?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,s=0,c=i;s<c.length;s++)Mr(c[s],o,t,a);for(var l=0,u=a;l<u.length;l++)Mr(u[l],o,t,i)}));else{var a=e.arrayFrom(i.keys()).join(", ");ur.add(e.addRelatedInfo(e.createDiagnosticForNode(t,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(r,e.Diagnostics.Conflicts_are_in_this_file))),ur.add(e.addRelatedInfo(e.createDiagnosticForNode(r,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(t,e.Diagnostics.Conflicts_are_in_this_file)))}})),Sn=void 0}(),de;function Er(n){if(n){var t=e.getSourceFileOfNode(n);if(t)if(e.isJsxOpeningFragment(n)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;var r=t.pragmas.get("jsxfrag");if(r){var i=e.isArray(r)?r[0]:r;if(t.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,j),e.visitNode(t.localJsxFragmentFactory,s),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=e.getFirstIdentifier(t.localJsxFragmentFactory).escapedText}var a=FS(n);if(a)return t.localJsxFragmentFactory=a,t.localJsxFragmentNamespace=e.getFirstIdentifier(a).escapedText}else{if(t.localJsxNamespace)return t.localJsxNamespace;var o=t.pragmas.get("jsx");if(o&&(i=e.isArray(o)?o[0]:o,t.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,j),e.visitNode(t.localJsxFactory,s),t.localJsxFactory))return t.localJsxNamespace=e.getFirstIdentifier(t.localJsxFactory).escapedText}}return _t||(_t="React",V.jsxFactory?(gt=e.parseIsolatedEntityName(V.jsxFactory,j),e.visitNode(gt,s),gt&&(_t=e.getFirstIdentifier(gt).escapedText)):V.reactNamespace&&(_t=e.escapeLeadingUnderscores(V.reactNamespace))),gt||(gt=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(_t)),"createElement")),_t;function s(n){return e.setTextRangePosEnd(n,-1,-1),e.visitEachChild(n,s,e.nullTransformationContext)}}function Tr(e,n,t,r,i,a,o){var s=xr(n,t,r,i,a,o);return s.skippedOn=e,s}function Sr(n,t,r,i,a,o){return n?e.createDiagnosticForNode(n,t,r,i,a,o):e.createCompilerDiagnostic(t,r,i,a,o)}function xr(e,n,t,r,i,a){var o=Sr(e,n,t,r,i,a);return ur.add(o),o}function Lr(n,t){n?ur.add(t):dr.add(a(a({},t),{category:e.DiagnosticCategory.Suggestion}))}function Dr(n,t,r,i,a,o,s){if(t.pos<0||t.end<0){if(!n)return;var c=e.getSourceFileOfNode(t);Lr(n,"message"in r?e.createFileDiagnostic(c,0,0,r,i,a,o,s):e.createDiagnosticForFileFromMessageChain(c,r))}else Lr(n,"message"in r?e.createDiagnosticForNode(t,r,i,a,o,s):e.createDiagnosticForNodeFromMessageChain(t,r))}function Ar(n,t,r,i,a,o,s){var c=xr(n,r,i,a,o,s);if(t){var l=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(c,l)}return c}function Cr(n,t){var r=Array.isArray(n)?e.forEach(n,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(n);return r&&e.addRelatedInfo(t,e.createDiagnosticForNode(r,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),dr.add(t),t}function Ir(n,t,r){return Cr(t,e.createDiagnosticForNode(n,e.Diagnostics._0_is_deprecated,r))}function Nr(e,n,t){v++;var r=new _(33554432|e,n);return r.checkFlags=t||0,r}function kr(e){var n=0;return 2&e&&(n|=111551),1&e&&(n|=111550),4&e&&(n|=0),8&e&&(n|=900095),16&e&&(n|=110991),32&e&&(n|=899503),64&e&&(n|=788872),256&e&&(n|=899327),128&e&&(n|=899967),512&e&&(n|=110735),8192&e&&(n|=103359),32768&e&&(n|=46015),65536&e&&(n|=78783),262144&e&&(n|=526824),524288&e&&(n|=788968),2097152&e&&(n|=2097152),n}function Rr(e,n){n.mergeId||(n.mergeId=p,p++),qt[n.mergeId]=e}function Or(n){var t=Nr(n.flags,n.escapedName);return t.declarations=n.declarations?n.declarations.slice():[],t.parent=n.parent,n.valueDeclaration&&(t.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),n.members&&(t.members=new e.Map(n.members)),n.exports&&(t.exports=new e.Map(n.exports)),Rr(t,n),t}function Pr(n,t,r){if(void 0===r&&(r=!1),!(n.flags&kr(t.flags))||67108864&(t.flags|n.flags)){if(t===n)return n;if(!(33554432&n.flags)){var i=mi(n);if(i===Ae)return t;n=Or(i)}512&t.flags&&512&n.flags&&n.constEnumOnlyModule&&!t.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=t.flags,t.valueDeclaration&&e.setValueDeclaration(n,t.valueDeclaration),e.addRange(n.declarations,t.declarations),t.members&&(n.members||(n.members=e.createSymbolTable()),Fr(n.members,t.members,r)),t.exports&&(n.exports||(n.exports=e.createSymbolTable()),Fr(n.exports,t.exports,r)),r||Rr(n,t)}else if(1024&n.flags)n!==se&&xr(t.declarations&&e.getNameOfDeclaration(t.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,va(n));else{var a=!!(384&n.flags||384&t.flags),o=!!(2&n.flags||2&t.flags),s=a?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:o?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,c=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),l=n.declarations&&e.getSourceFileOfNode(n.declarations[0]),u=va(t);if(c&&l&&Sn&&!a&&c!==l){var d=-1===e.comparePaths(c.path,l.path)?c:l,p=d===c?l:c,f=e.getOrUpdate(Sn,d.path+"|"+p.path,(function(){return{firstFile:d,secondFile:p,conflictingSymbols:new e.Map}})),m=e.getOrUpdate(f.conflictingSymbols,u,(function(){return{isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]}}));_(m.firstFileLocations,t),_(m.secondFileLocations,n)}else wr(t,s,u,n),wr(n,s,u,t)}return n;function _(n,t){if(t.declarations)for(var r=0,i=t.declarations;r<i.length;r++){var a=i[r];e.pushIfUnique(n,a)}}}function wr(n,t,r,i){e.forEach(n.declarations,(function(e){Mr(e,t,r,i.declarations)}))}function Mr(n,t,r,i){for(var a=(e.getExpandoInitializer(n,!1)?e.getNameOfExpando(n):e.getNameOfDeclaration(n))||n,o=function(n,t,r,i,a,o){var s=n?e.createDiagnosticForNode(n,t,r,i,a,o):e.createCompilerDiagnostic(t,r,i,a,o);return ur.lookup(s)||(ur.add(s),s)}(a,t,r),s=function(n){var t=(e.getExpandoInitializer(n,!1)?e.getNameOfExpando(n):e.getNameOfDeclaration(n))||n;if(t===a)return"continue";o.relatedInformation=o.relatedInformation||[];var i=e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,r),s=e.createDiagnosticForNode(t,e.Diagnostics.and_here);if(e.length(o.relatedInformation)>=5||e.some(o.relatedInformation,(function(n){return 0===e.compareDiagnostics(n,s)||0===e.compareDiagnostics(n,i)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,l=i||e.emptyArray;c<l.length;c++)s(l[c])}function Fr(e,n,t){void 0===t&&(t=!1),n.forEach((function(n,r){var i=e.get(r);e.set(r,i?Pr(i,n,t):n)}))}function Gr(n){var t,r,i,a=n.parent;if((null===(t=a.symbol.declarations)||void 0===t?void 0:t[0])===a)if(e.isGlobalScopeAugmentation(a))Fr(ae,a.symbol.exports);else{var o=Di(n,n,8388608&n.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!o)return;if(1920&(o=Ii(o)).flags)if(e.some(Ln,(function(e){return o===e.symbol}))){var s=Pr(a.symbol,o,!0);Dn||(Dn=new e.Map),Dn.set(n.text,s)}else{if((null===(r=o.exports)||void 0===r?void 0:r.get("__export"))&&(null===(i=a.symbol.exports)||void 0===i?void 0:i.size))for(var c=hs(o,"resolvedExports"),l=0,u=e.arrayFrom(a.symbol.exports.entries());l<u.length;l++){var d=u[l],p=d[0],f=d[1];c.has(p)&&!o.exports.has(p)&&Pr(c.get(p),f)}Pr(o,a.symbol)}else xr(n,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}else e.Debug.assert(a.symbol.declarations.length>1)}function Br(e){if(33554432&e.flags)return e;var n=P(e);return Xt[n]||(Xt[n]=new k)}function Ur(e){var n=O(e);return Yt[n]||(Yt[n]=new R)}function Vr(n){return 300===n.kind&&!e.isExternalOrCommonJsModule(n)}function jr(n,t,r){if(r){var i=Bi(n.get(t));if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&r)return i;if(2097152&i.flags){var a=_i(i);if(a===Ae||a.flags&r)return i}}}}function Kr(t,r){var i=e.getSourceFileOfNode(t),a=e.getSourceFileOfNode(r),o=e.getEnclosingBlockScopeContainer(t);if(i!==a){if(K&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(V)||Zm(r)||8388608&t.flags)return!0;if(l(r,t))return!0;var s=n.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(t.pos<=r.pos&&(!e.isPropertyDeclaration(t)||!e.isThisProperty(r.parent)||t.initializer||t.exclamationToken)){if(201===t.kind){var c=e.getAncestor(r,201);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos<c.pos:Kr(e.getAncestor(t,252),r)}return 252===t.kind?!function(n,t){switch(n.parent.parent.kind){case 235:case 240:case 242:if(ei(t,n,o))return!0}var r=n.parent.parent;return e.isForInOrOfStatement(r)&&ei(t,r.expression,o)}(t,r):e.isClassDeclaration(t)?!e.findAncestor(r,(function(n){return e.isComputedPropertyName(n)&&n.parent.parent===t})):e.isPropertyDeclaration(t)?!u(t,r,!1):!e.isParameterPropertyDeclaration(t,t.parent)||!(99===V.target&&H&&e.getContainingClass(t)===e.getContainingClass(r)&&l(r,t))}return!(!(273===r.parent.kind||269===r.parent.kind&&r.parent.isExportEquals)&&(269!==r.kind||!r.isExportEquals)&&!(4194304&r.flags||Zm(r)||e.findAncestor(r,(function(n){return e.isInterfaceDeclaration(n)||e.isTypeAliasDeclaration(n)})))&&(!l(r,t)||99===V.target&&H&&e.getContainingClass(t)&&(e.isPropertyDeclaration(t)||e.isParameterPropertyDeclaration(t,t.parent))&&u(t,r,!0)));function l(n,t){return!!e.findAncestor(n,(function(r){if(r===o)return"quit";if(e.isFunctionLike(r))return!0;if(e.isClassStaticBlockDeclaration(r))return t.pos<n.pos;var i=e.tryCast(r.parent,e.isPropertyDeclaration);if(i&&i.initializer===r)if(e.isStatic(r.parent)){if(167===t.kind)return!0;if(e.isPropertyDeclaration(t)&&e.getContainingClass(n)===e.getContainingClass(t)){var a=t.name;if((e.isIdentifier(a)||e.isPrivateIdentifier(a))&&function(n,t,r,i,a){for(var o=0,s=r;o<s.length;o++){var c=s[o];if(c.pos>=i&&c.pos<=a){var l=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);if(e.setParent(l.expression,l),e.setParent(l,c),l.flowNode=c.returnFlowNode,!(32768&Jf(og(l,t,Qf(t)))))return!0}}return!1}(a,Ao(Ui(t)),e.filter(t.parent.members,e.isClassStaticBlockDeclaration),t.parent.pos,r.pos))return!0}}else if(165!==t.kind||e.isStatic(t)||e.getContainingClass(n)!==e.getContainingClass(t))return!0;return!1}))}function u(n,t,r){return!(t.end>n.end)&&void 0===e.findAncestor(t,(function(t){if(t===n)return"quit";switch(t.kind){case 212:return!0;case 165:return!r||!(e.isPropertyDeclaration(n)&&t.parent===n.parent||e.isParameterPropertyDeclaration(n,n.parent)&&t.parent===n.parent.parent)||"quit";case 233:switch(t.parent.kind){case 170:case 167:case 171:return!0;default:return!1}default:return!1}}))}}function Hr(n,t,r){var i=e.getEmitScriptTarget(V),a=t;if(e.isParameter(r)&&a.body&&n.valueDeclaration&&n.valueDeclaration.pos>=a.body.pos&&n.valueDeclaration.end<=a.body.end&&i>=2){var o=Ur(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,(function(e){return s(e.name)||!!e.initializer&&s(e.initializer)}))||!1),!o.declarationRequiresScopeChange}return!1;function s(n){switch(n.kind){case 212:case 211:case 254:case 169:return!1;case 167:case 170:case 171:case 291:return s(n.name);case 165:return e.hasStaticModifier(n)?i<99||!H:s(n.name);default:return e.isNullishCoalesce(n)||e.isOptionalChain(n)?i<7:e.isBindingElement(n)&&n.dotDotDotToken&&e.isObjectBindingPattern(n.parent)?i<4:!e.isTypeNode(n)&&(e.forEachChild(n,s)||!1)}}}function Wr(e,n,t,r,i,a,o,s){return void 0===o&&(o=!1),zr(e,n,t,r,i,a,o,jr,s)}function zr(n,t,r,i,a,o,s,c,l){var u,d,p,f,m,_,g,y=n,h=!1,v=n,b=!1;e:for(;n;){if(n.locals&&!Vr(n)&&(d=c(n.locals,t,r))){var E=!0;if(e.isFunctionLike(n)&&p&&p!==n.body?(r&d.flags&788968&&315!==p.kind&&(E=!!(262144&d.flags)&&(p===n.type||162===p.kind||161===p.kind)),r&d.flags&3&&(Hr(d,n,p)?E=!1:1&d.flags&&(E=162===p.kind||p===n.type&&!!e.findAncestor(d.valueDeclaration,e.isParameter)))):187===n.kind&&(E=p===n.trueType),E)break e;d=void 0}switch(h=h||Jr(n,p),n.kind){case 300:if(!e.isExternalOrCommonJsModule(n))break;b=!0;case 259:var T=Ui(n).exports||D;if(300===n.kind||e.isModuleDeclaration(n)&&8388608&n.flags&&!e.isGlobalScopeAugmentation(n)){if(d=T.get("default")){var S=e.getLocalSymbolForExportDefault(d);if(S&&d.flags&r&&S.escapedName===t)break e;d=void 0}var x=T.get(t);if(x&&2097152===x.flags&&(e.getDeclarationOfKind(x,273)||e.getDeclarationOfKind(x,272)))break}if("default"!==t&&(d=c(T,t,2623475&r))){if(!e.isSourceFile(n)||!n.commonJsModuleIndicator||(null===(u=d.declarations)||void 0===u?void 0:u.some(e.isJSDocTypeAlias)))break e;d=void 0}break;case 258:if(d=c(Ui(n).exports,t,8&r))break e;break;case 165:if(!e.isStatic(n)){var L=qi(n.parent);L&&L.locals&&c(L.locals,t,111551&r)&&(m=n)}break;case 255:case 224:case 256:if(d=c(Ui(n).members||D,t,788968&r)){if(!Yr(d,n)){d=void 0;break}if(p&&e.isStatic(p))return void xr(v,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(224===n.kind&&32&r){var A=n.name;if(A&&t===A.escapedText){d=n.symbol;break e}}break;case 226:if(p===n.expression&&94===n.parent.token){var C=n.parent.parent;if(e.isClassLike(C)&&(d=c(Ui(C).members,t,788968&r)))return void(i&&xr(v,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 160:if(g=n.parent.parent,(e.isClassLike(g)||256===g.kind)&&(d=c(Ui(g).members,t,788968&r)))return void xr(v,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 212:if(V.target>=2)break;case 167:case 169:case 170:case 171:case 254:if(3&r&&"arguments"===t){d=le;break e}break;case 211:if(3&r&&"arguments"===t){d=le;break e}if(16&r){var I=n.name;if(I&&t===I.escapedText){d=n.symbol;break e}}break;case 163:n.parent&&162===n.parent.kind&&(n=n.parent),n.parent&&(e.isClassElement(n.parent)||255===n.parent.kind)&&(n=n.parent);break;case 340:case 333:case 334:(w=e.getJSDocRoot(n))&&(n=w.parent);break;case 162:p&&(p===n.initializer||p===n.name&&e.isBindingPattern(p))&&(_||(_=n));break;case 201:p&&(p===n.initializer||p===n.name&&e.isBindingPattern(p))&&e.isParameterDeclaration(n)&&!_&&(_=n);break;case 188:if(262144&r){var N=n.typeParameter.name;if(N&&t===N.escapedText){d=n.typeParameter.symbol;break e}}}qr(n)&&(f=n),p=n,n=n.parent}if(!o||!d||f&&d===f.symbol||(d.isReferenced|=r),!d){if(p&&(e.Debug.assert(300===p.kind),p.commonJsModuleIndicator&&"exports"===t&&r&p.symbol.flags))return p.symbol;s||(d=c(ae,t,r))}if(!d&&y&&e.isInJSFile(y)&&y.parent&&e.isRequireCall(y.parent,!1))return ue;if(d){if(i){if(m&&(99!==V.target||!H)){var k=m.name;return void xr(v,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(k),Xr(a))}if(v&&(2&r||(32&r||384&r)&&111551==(111551&r))){var R=zi(d);(2&R.flags||32&R.flags||384&R.flags)&&function(n,t){var r;if(e.Debug.assert(!!(2&n.flags||32&n.flags||384&n.flags)),!(67108881&n.flags&&32&n.flags)){var i=null===(r=n.declarations)||void 0===r?void 0:r.find((function(n){return e.isBlockOrCatchScoped(n)||e.isClassLike(n)||258===n.kind}));if(void 0===i)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&i.flags||Kr(i,t))){var a=void 0,o=e.declarationNameToString(e.getNameOfDeclaration(i));2&n.flags?a=xr(t,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,o):32&n.flags?a=xr(t,e.Diagnostics.Class_0_used_before_its_declaration,o):256&n.flags?a=xr(t,e.Diagnostics.Enum_0_used_before_its_declaration,o):(e.Debug.assert(!!(128&n.flags)),e.shouldPreserveConstEnums(V)&&(a=xr(t,e.Diagnostics.Enum_0_used_before_its_declaration,o))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}}(R,v)}if(d&&b&&111551==(111551&r)&&!(4194304&y.flags)){var O=Bi(d);e.length(O.declarations)&&e.every(O.declarations,(function(n){return e.isNamespaceExportDeclaration(n)||e.isSourceFile(n)&&!!n.symbol.globalExports}))&&Dr(!V.allowUmdGlobalAccess,v,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(t))}if(d&&_&&!h&&111551==(111551&r)){var P=Bi(bs(d)),w=e.getRootDeclaration(_);P===Ui(_)?xr(v,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(_.name)):P.valueDeclaration&&P.valueDeclaration.pos>_.pos&&w.parent.locals&&c(w.parent.locals,P.escapedName,r)===P&&xr(v,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(_.name),e.declarationNameToString(v))}d&&v&&111551&r&&2097152&d.flags&&function(n,t,r){if(!e.isValidTypeOnlyAliasUseSite(r)){var i=hi(n);if(i){var a=e.typeOnlyDeclarationIsExport(i),o=a?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=a?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,c=e.unescapeLeadingUnderscores(t);e.addRelatedInfo(xr(r,o,c),e.createDiagnosticForNode(i,s,c))}}}(d,t,v)}return d}if(i&&(!v||!(function(n,t,r){if(!e.isIdentifier(n)||n.escapedText!==t||WT(n)||Zm(n))return!1;for(var i=e.getThisContainer(n,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=Ui(a.parent);if(!o)break;if(xc(Ao(o),t))return xr(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Xr(r),va(o)),!0;if(a===i&&!e.isStatic(a)&&xc(ns(o).thisType,t))return xr(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Xr(r)),!0}a=a.parent}return!1}(v,t,a)||Qr(v)||function(n,t,r){var i=1920|(e.isInJSFile(n)?111551:0);if(r===i){var a=mi(Wr(n,t,788968&~i,void 0,void 0,!1)),o=n.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===n,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(xc(ns(a),s))return xr(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(t),e.unescapeLeadingUnderscores(s)),!0}return xr(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(t)),!0}}return!1}(v,t,r)||function(n,t){return!(!$r(t)||273!==n.parent.kind)&&(xr(n,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0)}(v,t)||function(n,t,r){if(111551&r){if($r(t))return xr(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0;var i=mi(Wr(n,t,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a=e.unescapeLeadingUnderscores(t);return function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?xr(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,a):function(n,t){var r=e.findAncestor(n.parent,(function(n){return!e.isComputedPropertyName(n)&&!e.isPropertySignature(n)&&(e.isTypeLiteralNode(n)||"quit")}));if(r&&1===r.members.length){var i=ns(t);return!!(1048576&i.flags)&&Qv(i,384,!0)}return!1}(n,i)?xr(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,a,"K"===a?"P":"K"):xr(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,a),!0}}return!1}(v,t,r)||function(n,t,r){if(111127&r){if(mi(Wr(n,t,1024,void 0,void 0,!1)))return xr(n,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(t)),!0}else if(788544&r&&mi(Wr(n,t,1536,void 0,void 0,!1)))return xr(n,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(t)),!0;return!1}(v,t,r)||function(n,t,r){if(788584&r){var i=mi(Wr(n,t,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return xr(n,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(t)),!0}return!1}(v,t,r)))){var M=void 0;if(l&&zt<Jt&&((null==(M=th(y,t,r))?void 0:M.valueDeclaration)&&e.isAmbientModule(M.valueDeclaration)&&e.isGlobalScopeAugmentation(M.valueDeclaration)&&(M=void 0),M)){var F=va(M),G=Jy(y,M,!1),B=Sr(v,G?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,Xr(a),F);Lr(!G,B),M.valueDeclaration&&e.addRelatedInfo(B,e.createDiagnosticForNode(M.valueDeclaration,e.Diagnostics._0_is_declared_here,F))}if(!M&&a){var U=function(n){for(var t=Xr(n),r=e.getScriptTargetFeatures(),i=0,a=e.getOwnKeys(r);i<a.length;i++){var o=a[i],s=e.getOwnKeys(r[o]);if(void 0!==s&&e.contains(s,t))return o}}(a);U?xr(v,i,Xr(a),U):xr(v,i,Xr(a))}zt++}}function Jr(n,t){return 212!==n.kind&&211!==n.kind?e.isTypeQueryNode(n)||(e.isFunctionLikeDeclaration(n)||165===n.kind&&!e.isStatic(n))&&(!t||t!==n.name):!(t&&t===n.name||!n.asteriskToken&&!e.hasSyntacticModifier(n,256)&&e.getImmediatelyInvokedFunctionExpression(n))}function qr(e){switch(e.kind){case 254:case 255:case 256:case 258:case 257:case 259:return!0;default:return!1}}function Xr(n){return e.isString(n)?e.unescapeLeadingUnderscores(n):e.declarationNameToString(n)}function Yr(n,t){if(n.declarations)for(var r=0,i=n.declarations;r<i.length;r++){var a=i[r];if(161===a.kind&&(e.isJSDocTemplateTag(a.parent)?e.getJSDocHost(a.parent):a.parent)===t)return!(e.isJSDocTemplateTag(a.parent)&&e.find(a.parent.parent.tags,e.isJSDocTypeAlias))}return!1}function Qr(n){var t=Zr(n);return!(!t||!Si(t,64,!0)||(xr(n,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(t)),0))}function Zr(n){switch(n.kind){case 79:case 204:return n.parent?Zr(n.parent):void 0;case 226:if(e.isEntityNameExpression(n.expression))return n.expression;default:return}}function $r(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function ei(n,t,r){return!!t&&!!e.findAncestor(n,(function(n){return n===r||e.isFunctionLike(n)?"quit":n===t}))}function ni(e){switch(e.kind){case 263:return e;case 265:return e.parent;case 266:return e.parent.parent;case 268:return e.parent.parent.parent;default:return}}function ti(n){return n.declarations&&e.findLast(n.declarations,ri)}function ri(n){return 263===n.kind||262===n.kind||265===n.kind&&!!n.name||266===n.kind||272===n.kind||268===n.kind||273===n.kind||269===n.kind&&e.exportAssignmentIsAlias(n)||e.isBinaryExpression(n)&&2===e.getAssignmentDeclarationKind(n)&&e.exportAssignmentIsAlias(n)||e.isAccessExpression(n)&&e.isBinaryExpression(n.parent)&&n.parent.left===n&&63===n.parent.operatorToken.kind&&ii(n.parent.right)||292===n.kind||291===n.kind&&ii(n.initializer)||e.isRequireVariableDeclaration(n)}function ii(n){return e.isAliasableExpression(n)||e.isFunctionExpression(n)&&ev(n)}function ai(e,n,t,r){var i=e.exports.get("export="),a=i?xc(Ao(i),n):e.exports.get(n),o=mi(a,r);return gi(t,a,o,!1),o}function oi(n){return e.isExportAssignment(n)&&!n.isExportEquals||e.hasSyntacticModifier(n,512)||e.isExportSpecifier(n)}function si(n,t,r){if(!W)return!1;if(!n||n.isDeclarationFile){var i=ai(t,"default",void 0,!0);return!(i&&e.some(i.declarations,oi)||ai(t,e.escapeLeadingUnderscores("__esModule"),void 0,r))}return e.isSourceFileJS(n)?!n.externalModuleIndicator&&!ai(t,e.escapeLeadingUnderscores("__esModule"),void 0,r):ki(t)}function ci(n,t,r){var a,o;void 0===r&&(r=!1);var s=e.getExternalModuleRequireArgument(n)||n.moduleSpecifier,c=Li(n,s),l=!e.isPropertyAccessExpression(t)&&t.propertyName||t.name;if(e.isIdentifier(l)){var u=Ni(c,s,!1,"default"===l.escapedText&&!(!V.allowSyntheticDefaultImports&&!V.esModuleInterop));if(u&&l.escapedText){if(e.isShorthandAmbientModuleSymbol(c))return c;var d=void 0;d=c&&c.exports&&c.exports.get("export=")?xc(Ao(u),l.escapedText,!0):function(e,n){if(3&e.flags){var t=e.valueDeclaration.type;if(t)return mi(xc(jd(t),n))}}(u,l.escapedText),d=mi(d,r);var p=function(e,n,t,r){if(1536&e.flags){var i=wi(e).get(n.escapedText),a=mi(i,r);return gi(t,i,a,!1),a}}(u,l,t,r);void 0===p&&"default"===l.escapedText&&si(null===(a=c.declarations)||void 0===a?void 0:a.find(e.isSourceFile),c,r)&&(p=Ii(c,r)||mi(c,r));var f=p&&d&&p!==d?function(n,t){if(n===Ae&&t===Ae)return Ae;if(790504&n.flags)return n;var r=Nr(n.flags|t.flags,n.escapedName);return r.declarations=e.deduplicate(e.concatenate(n.declarations,t.declarations),e.equateValues),r.parent=n.parent||t.parent,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),t.members&&(r.members=new e.Map(t.members)),n.exports&&(r.exports=new e.Map(n.exports)),r}(d,p):p||d;if(!f){var m=Ti(c,n),_=e.declarationNameToString(l),g=rh(l,u);if(void 0!==g){var y=va(g),h=xr(l,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,m,_,y);g.valueDeclaration&&e.addRelatedInfo(h,e.createDiagnosticForNode(g.valueDeclaration,e.Diagnostics._0_is_declared_here,y))}else(null===(o=c.exports)||void 0===o?void 0:o.has("default"))?xr(l,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,m,_):function(n,t,r,a,o){var s,c,l=null===(c=null===(s=a.valueDeclaration)||void 0===s?void 0:s.locals)||void 0===c?void 0:c.get(t.escapedText),u=a.exports;if(l){var d=null==u?void 0:u.get("export=");if(d)Wi(d,l)?function(n,t,r,i){K>=e.ModuleKind.ES2015?xr(t,V.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,r):e.isInJSFile(n)?xr(t,V.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,r):xr(t,V.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,r,r,i)}(n,t,r,o):xr(t,e.Diagnostics.Module_0_has_no_exported_member_1,o,r);else{var p=u?e.find(Gc(u),(function(e){return!!Wi(e,l)})):void 0,f=p?xr(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,o,r,va(p)):xr(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,o,r);l.declarations&&e.addRelatedInfo.apply(void 0,i([f],e.map(l.declarations,(function(n,t){return e.createDiagnosticForNode(n,0===t?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,r)})),!1))}}else xr(t,e.Diagnostics.Module_0_has_no_exported_member_1,o,r)}(n,l,_,c,m)}return f}}}function li(n){if(e.isVariableDeclaration(n)&&n.initializer&&e.isPropertyAccessExpression(n.initializer))return n.initializer}function ui(e,n,t){var r=e.parent.parent.moduleSpecifier?ci(e.parent.parent,e,t):Si(e.propertyName||e.name,n,!1,t);return gi(e,void 0,r,!1),r}function di(n,t){return e.isClassExpression(n)?ub(n).symbol:e.isEntityName(n)||e.isEntityNameExpression(n)?Si(n,901119,!0,t)||(ub(n),Ur(n).resolvedSymbol):void 0}function pi(n,t){switch(void 0===t&&(t=!1),n.kind){case 263:case 252:return function(n,t){var r=li(n);if(r){var i=e.getLeftmostAccessExpression(r.expression).arguments[0];return e.isIdentifier(r.name)?mi(xc(Yc(i),r.name.escapedText)):void 0}if(e.isVariableDeclaration(n)||275===n.moduleReference.kind){var a=Li(n,e.getExternalModuleRequireArgument(n)||e.getExternalModuleImportEqualsDeclarationExpression(n)),o=Ii(a);return gi(n,a,o,!1),o}var s=Ei(n.moduleReference,t);return function(n,t){if(gi(n,void 0,t,!1)&&!n.isTypeOnly){var r=hi(Ui(n)),i=e.typeOnlyDeclarationIsExport(r),a=i?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,o=i?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,s=e.unescapeLeadingUnderscores(r.name.escapedText);e.addRelatedInfo(xr(n.moduleReference,a),e.createDiagnosticForNode(r,o,s))}}(n,s),s}(n,t);case 265:return function(n,t){var r,i=Li(n,n.parent.moduleSpecifier);if(i){var a;a=e.isShorthandAmbientModuleSymbol(i)?i:ai(i,"default",n,t);var o=si(null===(r=i.declarations)||void 0===r?void 0:r.find(e.isSourceFile),i,t);if(a||o){if(o){var s=Ii(i,t)||mi(i,t);return gi(n,i,s,!1),s}}else if(ki(i)){var c=K>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",l=i.exports.get("export=").valueDeclaration,u=xr(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,va(i),c);l&&e.addRelatedInfo(u,e.createDiagnosticForNode(l,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,c))}else!function(n,t){var r,i,a;if(null===(r=n.exports)||void 0===r?void 0:r.has(t.symbol.escapedName))xr(t.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,va(n),va(t.symbol));else{var o=xr(t.name,e.Diagnostics.Module_0_has_no_default_export,va(n)),s=null===(i=n.exports)||void 0===i?void 0:i.get("__export");if(s){var c=null===(a=s.declarations)||void 0===a?void 0:a.find((function(n){var t,r;return!!(e.isExportDeclaration(n)&&n.moduleSpecifier&&(null===(r=null===(t=Li(n,n.moduleSpecifier))||void 0===t?void 0:t.exports)||void 0===r?void 0:r.has("default")))}));c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(i,n);return gi(n,a,void 0,!1),a}}(n,t);case 266:return function(e,n){var t=e.parent.parent.moduleSpecifier,r=Li(e,t),i=Ni(r,t,n,!1);return gi(e,r,i,!1),i}(n,t);case 272:return function(e,n){var t=e.parent.moduleSpecifier,r=t&&Li(e,t),i=t&&Ni(r,t,n,!1);return gi(e,r,i,!1),i}(n,t);case 268:case 201:return function(n,t){var r=e.isBindingElement(n)?e.getRootDeclaration(n):n.parent.parent.parent,i=li(r),a=ci(r,i||n,t),o=n.propertyName||n.name;return i&&a&&e.isIdentifier(o)?mi(xc(Ao(a),o.escapedText),t):(gi(n,void 0,a,!1),a)}(n,t);case 273:return ui(n,901119,t);case 269:case 219:return function(n,t){var r=di(e.isExportAssignment(n)?n.expression:n.right,t);return gi(n,void 0,r,!1),r}(n,t);case 262:return function(e,n){var t=Ii(e.parent.symbol,n);return gi(e,void 0,t,!1),t}(n,t);case 292:return Si(n.name,901119,!0,t);case 291:return function(e,n){return di(e.initializer,n)}(n,t);case 205:case 204:return function(n,t){if(e.isBinaryExpression(n.parent)&&n.parent.left===n&&63===n.parent.operatorToken.kind)return di(n.parent.right,t)}(n,t);default:return e.Debug.fail()}}function fi(e,n){return void 0===n&&(n=901119),!(!e||2097152!=(e.flags&(2097152|n))&&!(2097152&e.flags&&67108864&e.flags))}function mi(e,n){return!n&&fi(e)?_i(e):e}function _i(n){e.Debug.assert(0!=(2097152&n.flags),"Should only get Alias here.");var t=Br(n);if(t.target)t.target===Ce&&(t.target=Ae);else{t.target=Ce;var r=ti(n);if(!r)return e.Debug.fail();var i=pi(r);t.target===Ce?t.target=i||Ae:xr(r,e.Diagnostics.Circular_definition_of_import_alias_0,va(n))}return t.target}function gi(n,t,r,i){if(!n||e.isPropertyAccessExpression(n))return!1;var a=Ui(n);if(e.isTypeOnlyImportOrExportDeclaration(n))return Br(a).typeOnlyDeclaration=n,!0;var o=Br(a);return yi(o,t,i)||yi(o,r,i)}function yi(n,t,r){var i,a,o;if(t&&(void 0===n.typeOnlyDeclaration||r&&!1===n.typeOnlyDeclaration)){var s=null!==(a=null===(i=t.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:t,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);n.typeOnlyDeclaration=null!==(o=null!=c?c:Br(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!n.typeOnlyDeclaration}function hi(e){if(2097152&e.flags)return Br(e).typeOnlyDeclaration||void 0}function vi(e){var n=Ui(e),t=_i(n);t&&(t===Ae||111551&t.flags&&!_S(t)&&!hi(n))&&bi(n)}function bi(n){var t=Br(n);if(!t.referenced){t.referenced=!0;var r=ti(n);if(!r)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(r)){var i=mi(n);(i===Ae||111551&i.flags)&&ub(r.moduleReference)}}}function Ei(n,t){return 79===n.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),79===n.kind||159===n.parent.kind?Si(n,1920,!1,t):(e.Debug.assert(263===n.parent.kind),Si(n,901119,!1,t))}function Ti(e,n){return e.parent?Ti(e.parent,n)+"."+va(e):va(e,n,void 0,20)}function Si(n,t,r,i,a){if(!e.nodeIsMissing(n)){var o,s=1920|(e.isInJSFile(n)?111551&t:0);if(79===n.kind){var c=t===s||e.nodeIsSynthesized(n)?e.Diagnostics.Cannot_find_namespace_0:Ym(e.getFirstIdentifier(n)),l=e.isInJSFile(n)&&!e.nodeIsSynthesized(n)?function(n,t){if(Fl(n.parent)){var r=function(n){if(!e.findAncestor(n,(function(n){return e.isJSDocNode(n)||4194304&n.flags?e.isJSDocTypeAlias(n):"quit"}))){var t=e.getJSDocHost(n);if(t&&e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&3===e.getAssignmentDeclarationKind(t.expression)&&(r=Ui(t.expression.left)))return xi(r);if(t&&(e.isObjectLiteralMethod(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)&&(r=Ui(t.parent.parent.left)))return xi(r);var r,i=e.getEffectiveJSDocHost(n);if(i&&e.isFunctionLike(i))return(r=Ui(i))&&r.valueDeclaration}}(n.parent);if(r)return Wr(r,n.escapedText,t,void 0,n,!0)}}(n,t):void 0;if(!(o=Bi(Wr(a||n,n.escapedText,t,r||l?void 0:c,n,!0))))return Bi(l)}else{if(159!==n.kind&&204!==n.kind)throw e.Debug.assertNever(n,"Unknown entity name kind.");var u=159===n.kind?n.left:n.expression,d=159===n.kind?n.right:n.name,p=Si(u,s,r,!1,a);if(!p||e.nodeIsMissing(d))return;if(p===Ae)return p;if(p.valueDeclaration&&e.isInJSFile(p.valueDeclaration)&&e.isVariableDeclaration(p.valueDeclaration)&&p.valueDeclaration.initializer&&sv(p.valueDeclaration.initializer)){var f=p.valueDeclaration.initializer.arguments[0],m=Li(f,f);if(m){var _=Ii(m);_&&(p=_)}}if(!(o=Bi(jr(wi(p),d.escapedText,t)))){if(!r){var g=Ti(p),y=e.declarationNameToString(d),h=rh(d,p);h?xr(d,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,g,y,va(h)):xr(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,g,y)}return}}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(n)&&e.isEntityName(n)&&(2097152&o.flags||269===n.parent.kind)&&gi(e.getAliasDeclarationFromName(n),o,void 0,!0),o.flags&t||i?o:_i(o)}}function xi(n){var t=n.parent.valueDeclaration;if(t)return(e.isAssignmentDeclaration(t)?e.getAssignedExpandoInitializer(t):e.hasOnlyExpressionInitializer(t)?e.getDeclaredExpandoInitializer(t):void 0)||t}function Li(n,t,r){var i=e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Classic?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 Di(n,t,r?void 0:i)}function Di(n,t,r,i){return void 0===i&&(i=!1),e.isStringLiteralLike(t)?Ai(n,t.text,r,t,i):void 0}function Ai(t,r,i,a,o){void 0===o&&(o=!1),e.startsWith(r,"@types/")&&xr(a,g=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(r,"@types/"),r);var s=Uc(r,!0);if(s)return s;var c=e.getSourceFileOfNode(t),l=e.getResolvedModule(c,r),u=l&&e.getResolutionDiagnostic(V,l),d=l&&!u&&n.getSourceFile(l.resolvedFileName);if(d)return d.symbol?(l.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(l.extension)&&Ci(!1,a,l,r),Bi(d.symbol)):void(i&&xr(a,e.Diagnostics.File_0_is_not_a_module,d.fileName));if(Ln){var p=e.findBestPatternMatch(Ln,(function(e){return e.pattern}),r);if(p){var f=Dn&&Dn.get(r);return Bi(f||p.symbol)}}if(l&&!e.resolutionExtensionIsTSOrJson(l.extension)&&void 0===u||u===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?xr(a,g=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,r,l.resolvedFileName):Ci(Y&&!!i,a,l,r);else if(i){if(l){var m=n.getProjectReferenceRedirect(l.resolvedFileName);if(m)return void xr(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,m,l.resolvedFileName)}if(u)xr(a,u,r,l.resolvedFileName);else{var _=e.tryExtractTSExtension(r);if(_){var g=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,y=e.removeExtension(r,_);e.getEmitModuleKind(V)>=e.ModuleKind.ES2015&&(y+=".js"),xr(a,g,_,y)}else!V.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(V)?xr(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r):xr(a,i,r)}}}function Ci(n,t,r,i){var a,o=r.packageId,s=r.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,m().has(e.getTypesPackageName(a))?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,o.name,e.mangleScopedPackageName(o.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,i,e.mangleScopedPackageName(o.name))):void 0;Dr(n,t,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function Ii(n,t){if(null==n?void 0:n.exports){var r=function(n,t){if(!n||n===Ae||n===t||1===t.exports.size||2097152&n.flags)return n;var r=Br(n);if(r.cjsExportMerged)return r.cjsExportMerged;var i=33554432&n.flags?n:Or(n);return i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable()),t.exports.forEach((function(e,n){"export="!==n&&i.exports.set(n,i.exports.has(n)?Pr(i.exports.get(n),e):e)})),Br(i).cjsExportMerged=i,r.cjsExportMerged=i}(Bi(mi(n.exports.get("export="),t)),Bi(n));return Bi(r)||n}}function Ni(n,t,r,i){var a=Ii(n,r);if(!r&&a){if(!(i||1539&a.flags||e.getDeclarationOfKind(a,300))){var o=K>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return xr(t,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,o),a}if(V.esModuleInterop){var s=t.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=Ao(a),l=Lc(c,0);if(l&&l.length||(l=Lc(c,1)),l&&l.length){var u=ov(c,a,n),d=Nr(a.flags,a.escapedName);d.declarations=a.declarations?a.declarations.slice():[],d.parent=a.parent,d.target=a,d.originatingImport=s,a.valueDeclaration&&(d.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),a.members&&(d.members=new e.Map(a.members)),a.exports&&(d.exports=new e.Map(a.exports));var p=Qs(u);return d.type=ra(d,p.members,e.emptyArray,e.emptyArray,p.indexInfos),d}}}}return a}function ki(e){return void 0!==e.exports.get("export=")}function Ri(e){return Gc(Mi(e))}function Oi(e,n){var t=Mi(n);if(t)return t.get(e)}function Pi(n){return!(131068&n.flags||1&e.getObjectFlags(n)||Ef(n)||Uf(n))}function wi(e){return 6256&e.flags?hs(e,"resolvedExports"):1536&e.flags?Mi(e):e.exports||D}function Mi(e){var n=Br(e);return n.resolvedExports||(n.resolvedExports=Gi(e))}function Fi(n,t,r,i){t&&t.forEach((function(t,a){if("default"!==a){var o=n.get(a);if(o){if(r&&i&&o&&mi(o)!==mi(t)){var s=r.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else n.set(a,t),r&&i&&r.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}}))}function Gi(n){var t=[];return function n(r){if(r&&r.exports&&e.pushIfUnique(t,r)){var i=new e.Map(r.exports),a=r.exports.get("__export");if(a){var o=e.createSymbolTable(),s=new e.Map;if(a.declarations)for(var c=0,l=a.declarations;c<l.length;c++){var u=l[c];Fi(o,n(Li(u,u.moduleSpecifier)),s,u)}s.forEach((function(n,t){var r=n.exportsWithDuplicate;if("export="!==t&&r&&r.length&&!i.has(t))for(var a=0,o=r;a<o.length;a++){var c=o[a];ur.add(e.createDiagnosticForNode(c,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(t).specifierText,e.unescapeLeadingUnderscores(t)))}})),Fi(i,o)}return i}}(n=Ii(n))||D}function Bi(e){var n;return e&&e.mergeId&&(n=qt[e.mergeId])?n:e}function Ui(e){return Bi(e.symbol&&bs(e.symbol))}function Vi(e){return Bi(e.parent&&bs(e.parent))}function ji(t,r,a){var o=Vi(t);if(o&&!(262144&t.flags)){var s=e.mapDefined(o.declarations,(function(e){return o&&Ki(e,o)})),c=r&&function(t,r){var i,a=e.getSourceFileOfNode(r),o=O(a),s=Br(t);if(s.extendedContainersByFile&&(i=s.extendedContainersByFile.get(o)))return i;if(a&&a.imports){for(var c=0,l=a.imports;c<l.length;c++){var u=l[c];if(!e.nodeIsSynthesized(u)){var d=Li(r,u,!0);d&&Hi(d,t)&&(i=e.append(i,d))}}if(e.length(i))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,i),i}if(s.extendedContainers)return s.extendedContainers;for(var p=0,f=n.getSourceFiles();p<f.length;p++){var m=f[p];if(e.isExternalModule(m)){var _=Ui(m);Hi(_,t)&&(i=e.append(i,_))}}return s.extendedContainers=i||e.emptyArray}(t,r),l=function(n,t){var r=!!e.length(n.declarations)&&e.first(n.declarations);if(111551&t&&r&&r.parent&&e.isVariableDeclaration(r.parent)&&(e.isObjectLiteralExpression(r)&&r===r.parent.initializer||e.isTypeLiteralNode(r)&&r===r.parent.type))return Ui(r.parent)}(o,a);if(r&&o.flags&aa(a)&&oa(o,r,1920,!1))return e.append(e.concatenate(e.concatenate([o],s),c),l);var u=!(o.flags&aa(a))&&788968&o.flags&&524288&ns(o).flags&&111551===a?ia(r,(function(n){return e.forEachEntry(n,(function(e){if(e.flags&aa(a)&&Ao(e)===ns(o))return e}))})):void 0,d=i(i(u?[u]:[],s,!0),[o],!1);return d=e.append(d,l),e.addRange(d,c)}var p=e.mapDefined(t.declarations,(function(n){return!e.isAmbientModule(n)&&n.parent&&ga(n.parent)?Ui(n.parent):e.isClassExpression(n)&&e.isBinaryExpression(n.parent)&&63===n.parent.operatorToken.kind&&e.isAccessExpression(n.parent.left)&&e.isEntityNameExpression(n.parent.left.expression)?e.isModuleExportsAccessExpression(n.parent.left)||e.isExportsIdentifier(n.parent.left.expression)?Ui(e.getSourceFileOfNode(n)):(ub(n.parent.left.expression),Ur(n.parent.left.expression).resolvedSymbol):void 0}));if(e.length(p))return e.mapDefined(p,(function(e){return Hi(e,t)?e:void 0}))}function Ki(e,n){var t=ma(e),r=t&&t.exports&&t.exports.get("export=");return r&&Wi(r,n)?t:void 0}function Hi(n,t){if(n===Vi(t))return t;var r=n.exports&&n.exports.get("export=");if(r&&Wi(r,t))return n;var i=wi(n),a=i.get(t.escapedName);return a&&Wi(a,t)?a:e.forEachEntry(i,(function(e){if(Wi(e,t))return e}))}function Wi(e,n){if(Bi(mi(Bi(e)))===Bi(mi(Bi(n))))return e}function zi(e){return Bi(e&&0!=(1048576&e.flags)?e.exportSymbol:e)}function Ji(e){return!!(111551&e.flags||2097152&e.flags&&111551&_i(e).flags&&!hi(e))}function qi(n){for(var t=0,r=n.members;t<r.length;t++){var i=r[t];if(169===i.kind&&e.nodeIsPresent(i.body))return i}}function Xi(n){var r=new g(de,n);return h++,r.id=h,t&&(null===e.tracing||void 0===e.tracing||e.tracing.recordType(r)),r}function Yi(e){return new g(de,e)}function Qi(e,n,t){void 0===t&&(t=0);var r=Xi(e);return r.intrinsicName=n,r.objectFlags=t,r}function Zi(e,n){var t=Xi(524288);return t.objectFlags=e,t.symbol=n,t.members=void 0,t.properties=void 0,t.callSignatures=void 0,t.constructSignatures=void 0,t.indexInfos=void 0,t}function $i(e){var n=Xi(262144);return e&&(n.symbol=e),n}function ea(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function na(n){var t;return n.forEach((function(e,n){!ea(n)&&Ji(e)&&(t||(t=[])).push(e)})),t||e.emptyArray}function ta(n,t,r,i,a){var o=n;return o.members=t,o.properties=e.emptyArray,o.callSignatures=r,o.constructSignatures=i,o.indexInfos=a,t!==D&&(o.properties=na(t)),o}function ra(e,n,t,r,i){return ta(Zi(16,e),n,t,r,i)}function ia(n,t){for(var r,i=function(n){if(n.locals&&!Vr(n)&&(r=t(n.locals,void 0,!0,n)))return{value:r};switch(n.kind){case 300:if(!e.isExternalOrCommonJsModule(n))break;case 259:var i=Ui(n);if(r=t((null==i?void 0:i.exports)||D,void 0,!0,n))return{value:r};break;case 255:case 224:case 256:var a;if((Ui(n).members||D).forEach((function(n,t){788968&n.flags&&(a||(a=e.createSymbolTable())).set(t,n)})),a&&(r=t(a,void 0,!1,n)))return{value:r}}},a=n;a;a=a.parent){var o=i(a);if("object"==typeof o)return o.value}return t(ae,void 0,!0)}function aa(e){return 111551===e?111551:1920}function oa(n,t,r,i,a){if(void 0===a&&(a=new e.Map),n&&!function(e){if(e.declarations&&e.declarations.length){for(var n=0,t=e.declarations;n<t.length;n++)switch(t[n].kind){case 165:case 167:case 170:case 171:continue;default:return!1}return!0}return!1}(n)){var o=Br(n),s=o.accessibleChainCache||(o.accessibleChainCache=new e.Map),c=ia(t,(function(e,n,t,r){return r})),l=(i?0:1)+"|"+(c&&O(c))+"|"+r;if(s.has(l))return s.get(l);var u=P(n),d=a.get(u);d||a.set(u,d=[]);var p=ia(t,f);return s.set(l,p),p}function f(r,a,o){if(e.pushIfUnique(d,r)){var s=function(r,a,o){return _(r.get(n.escapedName),void 0,a)?[n]:e.forEachEntry(r,(function(r){if(2097152&r.flags&&"export="!==r.escapedName&&"default"!==r.escapedName&&!(e.isUMDExportSymbol(r)&&t&&e.isExternalModule(e.getSourceFileOfNode(t)))&&(!i||e.some(r.declarations,e.isExternalModuleImportEqualsDeclaration))&&(!o||!e.some(r.declarations,e.isNamespaceReexportDeclaration))&&(a||!e.getDeclarationOfKind(r,273))){var s=g(r,_i(r),a);if(s)return s}if(r.escapedName===n.escapedName&&r.exportSymbol&&_(Bi(r.exportSymbol),void 0,a))return[n]}))||(r===ae?g(se,se,a):void 0)}(r,a,o);return d.pop(),s}}function m(e,n){return!sa(e,t,n)||!!oa(e.parent,t,aa(n),i,a)}function _(t,i,a){return(n===(i||t)||Bi(n)===Bi(i||t))&&!e.some(t.declarations,ga)&&(a||m(Bi(t),r))}function g(e,n,t){if(_(e,n,t))return[e];var i=wi(n),a=i&&f(i,!0);return a&&m(e,aa(r))?[e].concat(a):void 0}}function sa(n,t,r){var i=!1;return ia(t,(function(t){var a=Bi(t.get(n.escapedName));return!!a&&(a===n||!!((a=2097152&a.flags&&!e.getDeclarationOfKind(a,273)?_i(a):a).flags&r)&&(i=!0,!0))})),i}function ca(e,n){return 0===fa(e,n,788968,!1,!0).accessibility}function la(e,n){return 0===fa(e,n,111551,!1,!0).accessibility}function ua(e,n,t){return 0===fa(e,n,t,!1,!1).accessibility}function da(n,t,r,i,a,o){if(e.length(n)){for(var s,c=!1,l=0,u=n;l<u.length;l++){var d=u[l],p=oa(d,t,i,!1);if(p){s=d;var f=ya(p[0],a);if(f)return f}if(o&&e.some(d.declarations,ga)){if(a){c=!0;continue}return{accessibility:0}}var m=da(ji(d,t,i),t,r,r===d?aa(i):i,a,o);if(m)return m}return c?{accessibility:0}:s?{accessibility:1,errorSymbolName:va(r,t,i),errorModuleName:s!==r?va(s,t,1920):void 0}:void 0}}function pa(e,n,t,r){return fa(e,n,t,r,!0)}function fa(n,t,r,i,a){if(n&&t){var o=da([n],t,n,r,i,a);if(o)return o;var s=e.forEach(n.declarations,ma);return s&&s!==ma(t)?{accessibility:2,errorSymbolName:va(n,t,r),errorModuleName:va(s),errorNode:e.isInJSFile(t)?t:void 0}:{accessibility:1,errorSymbolName:va(n,t,r)}}return{accessibility:0}}function ma(n){var t=e.findAncestor(n,_a);return t&&Ui(t)}function _a(n){return e.isAmbientModule(n)||300===n.kind&&e.isExternalOrCommonJsModule(n)}function ga(n){return e.isModuleWithStringLiteralName(n)||300===n.kind&&e.isExternalOrCommonJsModule(n)}function ya(n,t){var r;if(e.every(e.filter(n.declarations,(function(e){return 79!==e.kind})),(function(t){var r,a;if(!Oa(t)){var o=ni(t);return o&&!e.hasSyntacticModifier(o,1)&&Oa(o.parent)?i(t,o):e.isVariableDeclaration(t)&&e.isVariableStatement(t.parent.parent)&&!e.hasSyntacticModifier(t.parent.parent,1)&&Oa(t.parent.parent.parent)?i(t,t.parent.parent):e.isLateVisibilityPaintedStatement(t)&&!e.hasSyntacticModifier(t,1)&&Oa(t.parent)?i(t,t):!!(2097152&n.flags&&e.isBindingElement(t)&&e.isInJSFile(t)&&(null===(r=t.parent)||void 0===r?void 0:r.parent)&&e.isVariableDeclaration(t.parent.parent)&&(null===(a=t.parent.parent.parent)||void 0===a?void 0:a.parent)&&e.isVariableStatement(t.parent.parent.parent.parent)&&!e.hasSyntacticModifier(t.parent.parent.parent.parent,1)&&t.parent.parent.parent.parent.parent&&Oa(t.parent.parent.parent.parent.parent))&&i(t,t.parent.parent.parent.parent)}return!0})))return{accessibility:0,aliasesToMakeVisible:r};function i(n,i){return t&&(Ur(n).isVisible=!0,r=e.appendIfUnique(r,i)),!0}}function ha(n,t){var r;r=179===n.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)||160===n.parent.kind?1160127:159===n.kind||204===n.kind||263===n.parent.kind?1920:788968;var i=e.getFirstIdentifier(n),a=Wr(t,i.escapedText,r,void 0,void 0,!1);return a&&262144&a.flags&&788968&r?{accessibility:0}:a&&ya(a,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function va(n,t,r,i,a){void 0===i&&(i=4);var o=70221824;2&i&&(o|=128),1&i&&(o|=512),8&i&&(o|=16384),16&i&&(o|=134217728);var s=4&i?ie.symbolToExpression:ie.symbolToEntityName;return a?c(a).getText():e.usingSingleLineStringWriter(c);function c(i){var a=s(n,r,t,o),c=300===(null==t?void 0:t.kind)?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),l=t&&e.getSourceFileOfNode(t);return c.writeNode(4,a,l,i),i}}function ba(n,t,r,i,a){return void 0===r&&(r=0),a?o(a).getText():e.usingSingleLineStringWriter(o);function o(a){var o;o=262144&r?1===i?178:177:1===i?173:172;var s=ie.signatureToSignatureDeclaration(n,o,t,70222336|La(r)),c=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),l=t&&e.getSourceFileOfNode(t);return c.writeNode(4,s,l,e.getTrailingSemicolonDeferringWriter(a)),a}}function Ea(n,t,r,i){void 0===r&&(r=1064960),void 0===i&&(i=e.createTextWriter(""));var a=V.noErrorTruncation||1&r,o=ie.typeToTypeNode(n,t,70221824|La(r)|(a?1:0),i);if(void 0===o)return e.Debug.fail("should always get typenode");var s=e.createPrinter({removeComments:!0}),c=t&&e.getSourceFileOfNode(t);s.writeNode(4,o,c,i);var l=i.getText(),u=a?2*e.noTruncationMaximumTruncationLength:2*e.defaultMaximumTruncationLength;return u&&l&&l.length>=u?l.substr(0,u-3)+"...":l}function Ta(e,n){var t=xa(e.symbol)?Ea(e,e.symbol.valueDeclaration):Ea(e),r=xa(n.symbol)?Ea(n,n.symbol.valueDeclaration):Ea(n);return t===r&&(t=Sa(e),r=Sa(n)),[t,r]}function Sa(e){return Ea(e,void 0,64)}function xa(n){return n&&!!n.valueDeclaration&&e.isExpression(n.valueDeclaration)&&!hp(n.valueDeclaration)}function La(e){return void 0===e&&(e=0),814775659&e}function Da(n){return!!(n.symbol&&32&n.symbol.flags&&(n===zo(n.symbol)||524288&n.flags&&16777216&e.getObjectFlags(n)))}function Aa(n,t,r,i){return void 0===r&&(r=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===n.kind||3===n.kind?e.factory.createToken(128):void 0,1===n.kind||3===n.kind?e.factory.createIdentifier(n.parameterName):e.factory.createThisTypeNode(),n.type&&ie.typeToTypeNode(n.type,t,70222336|La(r))),o=e.createPrinter({removeComments:!0}),s=t&&e.getSourceFileOfNode(t);return o.writeNode(4,a,s,i),i}}function Ca(e){return 8===e?"private":16===e?"protected":"public"}function Ia(n){return n&&n.parent&&260===n.parent.kind&&e.isExternalModuleAugmentation(n.parent.parent)}function Na(n){return 300===n.kind||e.isAmbientModule(n)}function ka(n,t){var r=Br(n).nameType;if(r){if(384&r.flags){var i=""+r.value;return e.isIdentifierText(i,V.target)||ty(i)?ty(i)&&e.startsWith(i,"-")?"["+i+"]":i:'"'+e.escapeString(i,34)+'"'}if(8192&r.flags)return"["+Ra(r.symbol,t)+"]"}}function Ra(n,t){if(t&&"default"===n.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!n.declarations||t.enclosingDeclaration&&e.findAncestor(n.declarations[0],Na)!==e.findAncestor(t.enclosingDeclaration,Na)))return"default";if(n.declarations&&n.declarations.length){var r=e.firstDefined(n.declarations,(function(n){return e.getNameOfDeclaration(n)?n:void 0})),i=r&&e.getNameOfDeclaration(r);if(r&&i){if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r))return e.symbolName(n);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(n))){var a=Br(n).nameType;if(a&&384&a.flags){var o=ka(n,t);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(r||(r=n.declarations[0]),r.parent&&252===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(r.kind){case 224:case 211:case 212:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),224===r.kind?"(Anonymous class)":"(Anonymous function)"}}var s=ka(n,t);return void 0!==s?s:e.symbolName(n)}function Oa(n){if(n){var t=Ur(n);return void 0===t.isVisible&&(t.isVisible=!!function(){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 Oa(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 t=Ba(n);return 1&e.getCombinedModifierFlags(n)||263!==n.kind&&300!==t.kind&&8388608&t.flags?Oa(t):Vr(t);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 Oa(n.parent);case 265:case 266:case 268:return!1;case 161:case 300:case 262:return!0;default:return!1}}()),t.isVisible}return!1}function Pa(n,t){var r,i,a;return n.parent&&269===n.parent.kind?r=Wr(n,n.escapedText,2998271,void 0,n,!1):273===n.parent.kind&&(r=ui(n.parent,2998271)),r&&((a=new e.Set).add(P(r)),function n(r){e.forEach(r,(function(r){var o=ni(r)||r;if(t?Ur(r).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(r)){var s=r.moduleReference,c=Wr(r,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,P(c))&&n(c.declarations)}}))}(r.declarations)),i}function wa(e,n){var t=Ma(e,n);if(t>=0){for(var r=Kt.length,i=t;i<r;i++)Ht[i]=!1;return!1}return Kt.push(e),Ht.push(!0),Wt.push(n),!0}function Ma(e,n){for(var t=Kt.length-1;t>=0;t--){if(Fa(Kt[t],Wt[t]))return-1;if(Kt[t]===e&&Wt[t]===n)return t}return-1}function Fa(n,t){switch(t){case 0:return!!Br(n).type;case 5:return!!Ur(n).resolvedEnumType;case 2:return!!Br(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(t)}function Ga(){return Kt.pop(),Wt.pop(),Ht.pop()}function Ba(n){return e.findAncestor(e.getRootDeclaration(n),(function(e){switch(e.kind){case 252:case 253:case 268:case 267:case 266:case 265:return!1;default:return!0}})).parent}function Ua(e,n){var t=xc(e,n);return t?Ao(t):void 0}function Va(e){return e&&0!=(1&e.flags)}function ja(e){var n=Ui(e);return n&&Br(n).type||eo(e,!1)}function Ka(n,t,r){if(131072&(n=w_(n,(function(e){return!(98304&e.flags)}))).flags)return pn;if(1048576&n.flags)return G_(n,(function(e){return Ka(e,t,r)}));var i=xu(e.map(t,Mu));if(Qu(n)||Zu(i)){if(131072&i.flags)return n;var a=ut||(ut=zl("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return a?Cl(a,[n,i]):Re}for(var o=e.createSymbolTable(),s=0,c=nc(n);s<c.length;s++){var l=c[s];Ap(Fu(l,8576),i)||24&e.getDeclarationModifierFlagsFromSymbol(l)||!Cd(l)||o.set(l.escapedName,Id(l,!1))}var u=ra(r,o,e.emptyArray,e.emptyArray,kc(n));return u.objectFlags|=8388608,u}function Ha(e){return!!(465829888&e.flags)&&Xv(cc(e)||we,32768)}function Wa(e){return __(O_(e,Ha)?G_(e,(function(e){return 465829888&e.flags?lc(e):e})):e,524288)}function za(e,n){var t=Ja(e);return t?og(t,n):n}function Ja(n){var t=function(e){var n=e.parent.parent;switch(n.kind){case 201:case 291:return Ja(n);case 202:return Ja(e.parent);case 252:return n.initializer;case 219:return n.right}}(n);if(t&&t.flowNode){var r=qa(n);if(r){var i=e.setTextRange(e.parseNodeFactory.createStringLiteral(r),n),a=e.isLeftHandSideExpression(t)?t:e.parseNodeFactory.createParenthesizedExpression(t),o=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(a,i),n);return e.setParent(i,o),e.setParent(o,n),a!==t&&e.setParent(a,o),o.flowNode=t.flowNode,o}}}function qa(e){var n=e.parent;return 201===e.kind&&199===n.kind?Xa(e.propertyName||e.name):291===e.kind||292===e.kind?Xa(e.name):""+n.elements.indexOf(e)}function Xa(e){var n=Mu(e);return 384&n.flags?""+n.value:void 0}function Ya(n){var t,r=n.parent,i=ja(r.parent);if(!i||Va(i))return i;if(z&&8388608&n.flags&&e.isParameterDeclaration(n)?i=Zf(i):!z||!r.parent.initializer||65536&m_(x_(r.parent.initializer))||(i=__(i,524288)),199===r.kind)if(n.dotDotDotToken){if(2&(i=vc(i)).flags||!sy(i))return xr(n,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),Re;for(var a=[],o=0,s=r.elements;o<s.length;o++){var c=s[o];c.dotDotDotToken||a.push(c.propertyName||c.name)}t=Ka(i,a,n.symbol)}else{var l=n.propertyName||n.name;t=za(n,ad(i,Mu(l),32,l))}else{var u=GE(65|(n.dotDotDotToken?0:128),i,Me,r),d=r.elements.indexOf(n);t=n.dotDotDotToken?P_(i,Uf)?G_(i,(function(e){return fu(e,d)})):ru(u):Lf(i)?za(n,sd(i,wd(d),32|(Zg(n)?16:0),n.name)||Re):u}return n.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(n))?!z||32768&Jf(db(n))?t:Wa(t):pb(n,xu([Wa(t),db(n)],2)):t}function Qa(n){var t=e.getJSDocType(n);if(t)return jd(t)}function Za(n){var t=e.skipParentheses(n);return 202===t.kind&&0===t.elements.length}function $a(e,n,t){return void 0===n&&(n=!1),void 0===t&&(t=!0),z&&t?Qf(e,n):e}function eo(n,t){if(e.isVariableDeclaration(n)&&241===n.parent.parent.kind){var r=Gu(Py(Ab(n.parent.parent.expression)));return 4456448&r.flags?Bu(r):je}if(e.isVariableDeclaration(n)&&242===n.parent.parent.kind)return FE(n.parent.parent)||Ie;if(e.isBindingPattern(n.parent))return Ya(n);var i,a,o=e.isPropertyDeclaration(n)||e.isPropertySignature(n),s=t&&(o&&!!n.questionToken||e.isParameter(n)&&(!!n.questionToken||Bc(n))||jc(n)),c=yo(n);if(c)return $a(c,o,s);if((Y||e.isInJSFile(n))&&e.isVariableDeclaration(n)&&!e.isBindingPattern(n.name)&&!(1&e.getCombinedModifierFlags(n))&&!(8388608&n.flags)){if(!(2&e.getCombinedNodeFlags(n)||n.initializer&&(i=n.initializer,a=e.skipParentheses(i),104!==a.kind&&(79!==a.kind||Qm(a)!==oe))))return Ne;if(n.initializer&&Za(n.initializer))return Bn}if(e.isParameter(n)){var l=n.parent;if(171===l.kind&&_s(l)){var u=e.getDeclarationOfKind(Ui(n.parent),170);if(u){var d=zc(u),p=nx(l);return p&&n===p?(e.Debug.assert(!p.type),Ao(d.thisParameter)):el(d)}}if(e.isInJSFile(n)){var f=e.getJSDocType(l);if(f&&e.isFunctionTypeNode(f)){var m=zc(f),_=l.parameters.indexOf(n);return n.dotDotDotToken?bv(m,_):hv(m,_)}}if(h="this"===n.symbol.escapedName?Dg(l):Ag(n))return $a(h,!1,s)}if(e.hasOnlyExpressionInitializer(n)&&n.initializer){if(e.isInJSFile(n)&&!e.isParameter(n)){var g=so(n,Ui(n),e.getDeclaredExpandoInitializer(n));if(g)return g}return $a(h=pb(n,db(n)),o,s)}if(e.isPropertyDeclaration(n)&&(Y||e.isInJSFile(n))){if(e.hasStaticModifier(n)){var y=e.filter(n.parent.members,e.isClassStaticBlockDeclaration);return h=y.length?function(n,t){for(var r=e.startsWith(n.escapedName,"__#")?e.factory.createPrivateIdentifier(n.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(n.escapedName),i=0,a=t;i<a.length;i++){var o=a[i],s=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(s.expression,s),e.setParent(s,o),s.flowNode=o.returnFlowNode;var c=ao(s,n);if(!Y||c!==Ne&&c!==Bn||xr(n.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,va(n),Ea(c)),!P_(c,Oy))return AE(c)}}(n.symbol,y):2&e.getEffectiveModifierFlags(n)?mf(n.symbol):void 0,h&&$a(h,!0,s)}var h,v=qi(n.parent);return(h=v?io(n.symbol,v):2&e.getEffectiveModifierFlags(n)?mf(n.symbol):void 0)&&$a(h,!0,s)}return e.isJsxAttribute(n)?Je:e.isBindingPattern(n.name)?fo(n.name,!1,!0):void 0}function no(n){if(n.valueDeclaration&&e.isBinaryExpression(n.valueDeclaration)){var t=Br(n);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!ro(n)&&e.every(n.declarations,(function(t){return e.isBinaryExpression(t)&&Pg(t)&&(205!==t.left.kind||e.isStringOrNumericLiteralLike(t.left.argumentExpression))&&!co(void 0,t,n,t)}))),t.isConstructorDeclaredProperty}return!1}function to(n){var t=n.valueDeclaration;return t&&e.isPropertyDeclaration(t)&&!e.getEffectiveTypeAnnotationNode(t)&&!t.initializer&&(Y||e.isInJSFile(t))}function ro(n){if(n.declarations)for(var t=0,r=n.declarations;t<r.length;t++){var i=r[t],a=e.getThisContainer(i,!1);if(a&&(169===a.kind||ev(a)))return a}}function io(n,t){var r=e.startsWith(n.escapedName,"__#")?e.factory.createPrivateIdentifier(n.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(n.escapedName),i=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(i.expression,i),e.setParent(i,t),i.flowNode=t.returnFlowNode;var a=ao(i,n);return!Y||a!==Ne&&a!==Bn||xr(n.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,va(n),Ea(a)),P_(a,Oy)?void 0:AE(a)}function ao(n,t){var r=(null==t?void 0:t.valueDeclaration)&&(!to(t)||2&e.getEffectiveModifierFlags(t.valueDeclaration))&&mf(t)||Me;return og(n,Ne,r)}function oo(n,t){var r,i=e.getAssignedExpandoInitializer(n.valueDeclaration);if(i){var a=e.getJSDocTypeTag(i);return a&&a.typeExpression?jd(a.typeExpression):n.valueDeclaration&&so(n.valueDeclaration,n,i)||Mf(ub(i))}var o=!1,s=!1;if(no(n)&&(r=io(n,ro(n))),!r){var c=void 0;if(n.declarations){for(var l=void 0,u=0,d=n.declarations;u<d.length;u++){var p=d[u],f=e.isBinaryExpression(p)||e.isCallExpression(p)?p:e.isAccessExpression(p)?e.isBinaryExpression(p.parent)?p.parent:p:void 0;if(f){var m=e.isAccessExpression(f)?e.getAssignmentDeclarationPropertyAccessKind(f):e.getAssignmentDeclarationKind(f);(4===m||e.isBinaryExpression(f)&&Pg(f,m))&&(uo(f)?o=!0:s=!0),e.isCallExpression(f)||(l=co(l,f,n,p)),l||(c||(c=[])).push(e.isBinaryExpression(f)||e.isCallExpression(f)?lo(n,t,f,m):Ze)}}r=l}if(!r){if(!e.length(c))return Re;var _=o&&n.declarations?function(n,t){return e.Debug.assert(n.length===t.length),n.filter((function(n,r){var i=t[r],a=e.isBinaryExpression(i)?i:e.isBinaryExpression(i.parent)?i.parent:void 0;return a&&uo(a)}))}(c,n.declarations):void 0;if(s){var g=mf(n);g&&((_||(_=[])).push(g),o=!0)}r=xu(e.some(_,(function(e){return!!(-98305&e.flags)}))?_:c,2)}}var y=mm($a(r,!1,s&&!o));return n.valueDeclaration&&w_(y,(function(e){return!!(-98305&e.flags)}))===Ze?(ym(n.valueDeclaration,Ie),Ie):y}function so(n,t,r){var i,a;if(e.isInJSFile(n)&&r&&e.isObjectLiteralExpression(r)&&!r.properties.length){for(var o=e.createSymbolTable();e.isBinaryExpression(n)||e.isPropertyAccessExpression(n);){var s=Ui(n);(null===(i=null==s?void 0:s.exports)||void 0===i?void 0:i.size)&&Fr(o,s.exports),n=e.isBinaryExpression(n)?n.parent:n.parent.parent}var c=Ui(n);(null===(a=null==c?void 0:c.exports)||void 0===a?void 0:a.size)&&Fr(o,c.exports);var l=ra(t,o,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=8192,l}}function co(n,t,r,i){var a,o=e.getEffectiveTypeAnnotationNode(t.parent);if(o){var s=mm(jd(o));if(!n)return s;n===Re||s===Re||Tp(n,s)||IE(void 0,n,i,s)}if(null===(a=r.parent)||void 0===a?void 0:a.valueDeclaration){var c=e.getEffectiveTypeAnnotationNode(r.parent.valueDeclaration);if(c){var l=xc(jd(c),r.escapedName);if(l)return Co(l)}}return n}function lo(n,t,r,i){if(e.isCallExpression(r)){if(t)return Ao(t);var a=ub(r.arguments[2]),o=Ua(a,"value");if(o)return o;var s=Ua(a,"get");if(s){var c=bh(s);if(c)return el(c)}var l=Ua(a,"set");if(l){var u=bh(l);if(u)return Dv(u)}return Ie}if(function(n,t){return e.isPropertyAccessExpression(n)&&108===n.expression.kind&&e.forEachChildRecursively(t,(function(e){return e_(n,e)}))}(r.left,r.right))return Ie;var d=t?Ao(t):Mf(ub(r.right));if(524288&d.flags&&2===i&&"export="===n.escapedName){var p=Qs(d),f=e.createSymbolTable();e.copyEntries(p.members,f);var m=f.size;t&&!t.exports&&(t.exports=e.createSymbolTable()),(t||n).exports.forEach((function(n,t){var r,i=f.get(t);if(i&&i!==n)if(111551&n.flags&&111551&i.flags){if(n.valueDeclaration&&i.valueDeclaration&&e.getSourceFileOfNode(n.valueDeclaration)!==e.getSourceFileOfNode(i.valueDeclaration)){var a=e.unescapeLeadingUnderscores(n.escapedName),o=(null===(r=e.tryCast(i.valueDeclaration,e.isNamedDeclaration))||void 0===r?void 0:r.name)||i.valueDeclaration;e.addRelatedInfo(xr(n.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(o,e.Diagnostics._0_was_also_declared_here,a)),e.addRelatedInfo(xr(o,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(n.valueDeclaration,e.Diagnostics._0_was_also_declared_here,a))}var s=Nr(n.flags|i.flags,t);s.type=xu([Ao(n),Ao(i)]),s.valueDeclaration=i.valueDeclaration,s.declarations=e.concatenate(i.declarations,n.declarations),f.set(t,s)}else f.set(t,Pr(n,i));else f.set(t,n)}));var _=ra(m!==f.size?void 0:p.symbol,f,p.callSignatures,p.constructSignatures,p.indexInfos);return _.objectFlags|=8192&e.getObjectFlags(d),_.symbol&&32&_.symbol.flags&&d===zo(_.symbol)&&(_.objectFlags|=16777216),_}return Cf(d)?(ym(r,Gn),Gn):d}function uo(n){var t=e.getThisContainer(n,!1);return 169===t.kind||254===t.kind||211===t.kind&&!e.isPrototypePropertyAssignment(t.parent)}function po(n,t,r){return n.initializer?$a(pb(n,db(n,e.isBindingPattern(n.name)?fo(n.name,!0,!1):we))):e.isBindingPattern(n.name)?fo(n.name,t,r):(r&&!go(n)&&ym(n,Ie),t?Oe:Ie)}function fo(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),199===n.kind?function(n,t,r){var i,a=e.createSymbolTable(),o=262272;e.forEach(n.elements,(function(e){var n=e.propertyName||e.name;if(e.dotDotDotToken)i=pl(je,Ie,!1);else{var s=Mu(n);if(ds(s)){var c=gs(s),l=Nr(4|(e.initializer?16777216:0),c);l.type=po(e,t,r),l.bindingElement=e,a.set(l.escapedName,l)}else o|=512}}));var s=ra(void 0,a,e.emptyArray,e.emptyArray,i?[i]:e.emptyArray);return s.objectFlags|=o,t&&(s.pattern=n,s.objectFlags|=262144),s}(n,t,r):function(n,t,r){var i,a=n.elements,o=e.lastOrUndefined(a),s=o&&201===o.kind&&o.dotDotDotToken?o:void 0;if(0===a.length||1===a.length&&s)return j>=2?(i=Ie,nu($l(!0),[i])):Gn;var c=e.map(a,(function(n){return e.isOmittedExpression(n)?Ie:po(n,t,r)})),l=e.findLastIndex(a,(function(n){return!(n===s||e.isOmittedExpression(n)||Zg(n))}),a.length-1)+1,u=lu(c,e.map(a,(function(e,n){return e===s?4:n>=l?2:1})));return t&&((u=Sl(u)).pattern=n,u.objectFlags|=262144),u}(n,t,r)}function mo(e,n){return _o(eo(e,!0),e,n)}function _o(n,t,r){return n?(4096&n.flags&&(i=t.parent,a=Ui(i),(o=Kn||(Kn=Wl("SymbolConstructor",!1)))&&a&&a===o)&&(n=Gd(t)),r&&hm(t,n),8192&n.flags&&(e.isBindingElement(t)||!t.type)&&n.symbol!==Ui(t)&&(n=Ye),mm(n)):(n=e.isParameter(t)&&t.dotDotDotToken?Gn:Ie,r&&(go(t)||ym(t,n)),n);var i,a,o}function go(n){var t=e.getRootDeclaration(n);return jb(162===t.kind?t.parent:t)}function yo(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return jd(t)}function ho(n){if(n)return 170===n.kind?e.getEffectiveReturnTypeNode(n):e.getEffectiveSetAccessorTypeAnnotationNode(n)}function vo(e){var n=ho(e);return n&&jd(n)}function bo(n){var t=Br(n);return t.type||(t.type=Eo(n)||e.Debug.fail("Read type of accessor must always produce a type"))}function Eo(n,t){if(void 0===t&&(t=!1),!wa(n,0))return Re;var r=To(n,t);return Ga()||(r=Ie,Y&&xr(e.getDeclarationOfKind(n,170),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,va(n))),r}function To(n,t){void 0===t&&(t=!1);var r=e.getDeclarationOfKind(n,170),i=e.getDeclarationOfKind(n,171),a=vo(i);if(t&&a)return c(a,n);if(r&&e.isInJSFile(r)){var o=Qa(r);if(o)return c(o,n)}var s=vo(r);return s?c(s,n):a||(r&&r.body?c(Pv(r),n):i?(jb(i)||Dr(Y,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,va(n)),Ie):r?(e.Debug.assert(!!r,"there must exist a getter as we are current checking either setter or getter in this function"),jb(r)||Dr(Y,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,va(n)),Ie):void 0);function c(n,t){return 1&e.getCheckFlags(t)?fp(n,Br(t).mapper):n}}function So(n){var t=Vo(zo(n));return 8650752&t.flags?t:2097152&t.flags?e.find(t.types,(function(e){return!!(8650752&e.flags)})):void 0}function xo(n){var t=Br(n),r=t;if(!t.type){var i=n.valueDeclaration&&tv(n.valueDeclaration,!1);if(i){var a=nv(n,i);a&&(n=t=a)}r.type=t.type=function(n){var t=n.valueDeclaration;if(1536&n.flags&&e.isShorthandAmbientModuleSymbol(n))return Ie;if(t&&(219===t.kind||e.isAccessExpression(t)&&219===t.parent.kind))return oo(n);if(512&n.flags&&t&&e.isSourceFile(t)&&t.commonJsModuleIndicator){var r=Ii(n);if(r!==n){if(!wa(n,0))return Re;var i=Bi(n.exports.get("export=")),a=oo(i,i===r?void 0:r);return Ga()?a:Do(n)}}var o=Zi(16,n);if(32&n.flags){var s=So(n);return s?ku([o,s]):o}return z&&16777216&n.flags?Qf(o):o}(n)}return t.type}function Lo(e){var n=Br(e);return n.type||(n.type=$o(e))}function Do(n){var t=n.valueDeclaration;return e.getEffectiveTypeAnnotationNode(t)?(xr(n.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,va(n)),Re):(Y&&(162!==t.kind||t.initializer)&&xr(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,va(n)),Ie)}function Ao(n){var t=e.getCheckFlags(n);return 65536&t?function(n){var t=Br(n);return t.type||(e.Debug.assertIsDefined(t.deferralParent),e.Debug.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?xu(t.deferralConstituents):ku(t.deferralConstituents)),t.type}(n):1&t?function(e){var n=Br(e);if(!n.type){if(!wa(e,0))return n.type=Re;var t=fp(Ao(n.target),n.mapper);Ga()||(t=Do(e)),n.type=t}return n.type}(n):262144&t?function(n){if(!n.type){var t=n.mappedType;if(!wa(n,0))return t.containsError=!0,Re;var r=fp(Ks(t.target||t),tp(t.mapper,Us(t),n.keyType)),i=z&&16777216&n.flags&&!Xv(r,49152)?Qf(r,!0):524288&n.checkFlags?am(r):r;Ga()||(xr(d,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,va(n),Ea(t)),i=Re),n.type=i}return n.type}(n):8192&t?function(e){var n=Br(e);return n.type||(n.type=Om(e.propertyType,e.mappedType,e.constraintType)),n.type}(n):7&n.flags?function(n){var t=Br(n);if(!t.type){var r=function(n){if(4194304&n.flags)return(t=ns(Vi(n))).typeParameters?Tl(t,e.map(t.typeParameters,(function(e){return Ie}))):t;var t;if(n===ue)return Ie;if(134217728&n.flags&&n.valueDeclaration){var r=Ui(e.getSourceFileOfNode(n.valueDeclaration)),i=Nr(r.flags,"exports");i.declarations=r.declarations?r.declarations.slice():[],i.parent=n,i.target=r,r.valueDeclaration&&(i.valueDeclaration=r.valueDeclaration),r.members&&(i.members=new e.Map(r.members)),r.exports&&(i.exports=new e.Map(r.exports));var a=e.createSymbolTable();return a.set("exports",i),ra(n,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(n.valueDeclaration);var o,s=n.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(void 0===c)return Z?we:Ie;var l=ZT(c);return Va(l)||l===we?l:Re}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?mm(Mf(Ab(s.statements[0].expression))):pn;if(!wa(n,0))return 512&n.flags&&!(67108864&n.flags)?xo(n):Do(n);if(269===s.kind)o=_o(ub(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))o=oo(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(9136&n.flags)return xo(n);o=e.isBinaryExpression(s.parent)?oo(n):yo(s)||Ie}else if(e.isPropertyAssignment(s))o=yo(s)||gb(s);else if(e.isJsxAttribute(s))o=yo(s)||uy(s);else if(e.isShorthandPropertyAssignment(s))o=yo(s)||_b(s.name,0);else if(e.isObjectLiteralMethod(s))o=yo(s)||yb(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=mo(s,!0);else if(e.isEnumDeclaration(s))o=xo(n);else if(e.isEnumMember(s))o=Lo(n);else{if(!e.isAccessor(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(n));o=To(n)||e.Debug.fail("Non-write accessor resolution must always produce a type")}return Ga()?o:512&n.flags&&!(67108864&n.flags)?xo(n):Do(n)}(n);t.type||(t.type=r)}return t.type}(n):9136&n.flags?xo(n):8&n.flags?Lo(n):98304&n.flags?bo(n):2097152&n.flags?function(n){var t=Br(n);if(!t.type){var r=_i(n),i=n.declarations&&pi(ti(n),!0);t.type=(null==i?void 0:i.declarations)&&PT(i.declarations)&&n.declarations.length?function(n){var t=e.getSourceFileOfNode(n.declarations[0]),r=e.unescapeLeadingUnderscores(n.escapedName),i=n.declarations.every((function(n){return e.isInJSFile(n)&&e.isAccessExpression(n)&&e.isModuleExportsAccessExpression(n.expression)})),a=i?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),r):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),r);return i&&e.setParent(a.expression.expression,a.expression),e.setParent(a.expression,a),e.setParent(a,t),a.flowNode=t.endFlowNode,og(a,Ne,Me)}(i):PT(n.declarations)?Ne:111551&r.flags?Ao(r):Re}return t.type}(n):Re}function Co(e){return rm(Ao(e),!!(16777216&e.flags))}function Io(n,t){return void 0!==n&&void 0!==t&&0!=(4&e.getObjectFlags(n))&&n.target===t}function No(n){return 4&e.getObjectFlags(n)?n.target:n}function ko(n,t){return function n(r){if(7&e.getObjectFlags(r)){var i=No(r);return i===t||e.some(Ko(i),n)}return!!(2097152&r.flags)&&e.some(r.types,n)}(n)}function Ro(n,t){for(var r=0,i=t;r<i.length;r++){var a=i[r];n=e.appendIfUnique(n,es(Ui(a)))}return n}function Oo(n,t){for(;;){if((n=n.parent)&&e.isBinaryExpression(n)){var r=e.getAssignmentDeclarationKind(n);if(6===r||3===r){var i=Ui(n.left);i&&i.parent&&!e.findAncestor(i.parent.valueDeclaration,(function(e){return n===e}))&&(n=i.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 a=Oo(n,t);if(193===n.kind)return e.append(a,es(Ui(n.typeParameter)));if(187===n.kind)return e.concatenate(a,yd(n));var o=Ro(a,e.getEffectiveTypeParameterDeclarations(n)),s=t&&(255===n.kind||224===n.kind||256===n.kind||ev(n))&&zo(Ui(n)).thisType;return s?e.append(o,s):o;case 335:var c=e.getParameterSymbolFromJSDoc(n);c&&(n=c.valueDeclaration);break;case 315:return a=Oo(n,t),n.tags?Ro(a,e.flatMap(n.tags,(function(n){return e.isJSDocTemplateTag(n)?n.typeParameters:void 0}))):a}}}function Po(n){var t=32&n.flags?n.valueDeclaration:e.getDeclarationOfKind(n,256);return e.Debug.assert(!!t,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Oo(t)}function wo(n){if(n.declarations){for(var t,r=0,i=n.declarations;r<i.length;r++){var a=i[r];if(256===a.kind||255===a.kind||224===a.kind||ev(a)||e.isTypeAlias(a)){var o=a;t=Ro(t,e.getEffectiveTypeParameterDeclarations(o))}}return t}}function Mo(e){var n=Dc(e,1);if(1===n.length){var t=n[0];if(!t.typeParameters&&1===t.parameters.length&&B(t)){var r=pv(t.parameters[0]);return Va(r)||xf(r)===Ie}}return!1}function Fo(e){if(Dc(e,1).length>0)return!0;if(8650752&e.flags){var n=cc(e);return!!n&&Mo(n)}return!1}function Go(n){return e.getEffectiveBaseTypeNode(n.symbol.valueDeclaration)}function Bo(n,t,r){var i=e.length(t),a=e.isInJSFile(r);return e.filter(Dc(n,1),(function(n){return(a||i>=Hc(n.typeParameters))&&i<=e.length(n.typeParameters)}))}function Uo(n,t,r){var i=Bo(n,t,r),a=e.map(t,jd);return e.sameMap(i,(function(n){return e.some(n.typeParameters)?il(n,a,e.isInJSFile(r)):n}))}function Vo(n){if(!n.resolvedBaseConstructorType){var t=n.symbol.valueDeclaration,r=e.getEffectiveBaseTypeNode(t),i=Go(n);if(!i)return n.resolvedBaseConstructorType=Me;if(!wa(n,1))return Re;var a=Ab(i.expression);if(r&&i!==r&&(e.Debug.assert(!r.typeArguments),Ab(r.expression)),2621440&a.flags&&Qs(a),!Ga())return xr(n.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,va(n.symbol)),n.resolvedBaseConstructorType=Re;if(!(1&a.flags||a===Ve||Fo(a))){var o=xr(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Ea(a));if(262144&a.flags){var s=yl(a),c=we;if(s){var l=Dc(s,1);l[0]&&(c=el(l[0]))}a.symbol.declarations&&e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,va(a.symbol),Ea(c)))}return n.resolvedBaseConstructorType=Re}n.resolvedBaseConstructorType=a}return n.resolvedBaseConstructorType}function jo(n,t){xr(n,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ea(t,void 0,2))}function Ko(n){if(!n.baseTypesResolved){if(wa(n,7)&&(8&n.objectFlags?n.resolvedBaseTypes=[Ho(n)]:96&n.symbol.flags?(32&n.symbol.flags&&function(n){n.resolvedBaseTypes=e.resolvingEmptyArray;var t=mc(Vo(n));if(!(2621441&t.flags))return n.resolvedBaseTypes=e.emptyArray;var r,i=Go(n),a=t.symbol?ns(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){var n=e.outerTypeParameters;if(n){var t=n.length-1,r=Ll(e);return n[t].symbol!==r[t].symbol}return!0}(a))r=Al(i,t.symbol);else if(1&t.flags)r=t;else{var o=Uo(t,i.typeArguments,i);if(!o.length)return xr(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=e.emptyArray;r=el(o[0])}if(r===Re)return n.resolvedBaseTypes=e.emptyArray;var s=vc(r);if(!Wo(s)){var c=Sc(void 0,r),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Ea(s));return ur.add(e.createDiagnosticForNodeFromMessageChain(i.expression,l)),n.resolvedBaseTypes=e.emptyArray}if(n===s||ko(s,n))return xr(n.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ea(n,void 0,2)),n.resolvedBaseTypes=e.emptyArray;n.resolvedBaseTypes===e.resolvingEmptyArray&&(n.members=void 0),n.resolvedBaseTypes=[s]}(n),64&n.symbol.flags&&function(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||e.emptyArray,n.symbol.declarations)for(var t=0,r=n.symbol.declarations;t<r.length;t++){var i=r[t];if(256===i.kind&&e.getInterfaceBaseTypeNodes(i))for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a],c=vc(jd(s));c!==Re&&(Wo(c)?n===c||ko(c,n)?jo(i,n):n.resolvedBaseTypes===e.emptyArray?n.resolvedBaseTypes=[c]:n.resolvedBaseTypes.push(c):xr(s,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}(n)):e.Debug.fail("type must be class or interface"),!Ga()&&n.symbol.declarations))for(var t=0,r=n.symbol.declarations;t<r.length;t++){var i=r[t];255!==i.kind&&256!==i.kind||jo(i,n)}n.baseTypesResolved=!0}return n.resolvedBaseTypes}function Ho(n){return ru(xu(e.sameMap(n.typeParameters,(function(e,t){return 8&n.elementFlags[t]?ad(e,Ke):e}))||e.emptyArray),n.readonly)}function Wo(n){if(262144&n.flags){var t=cc(n);if(t)return Wo(t)}return!!(67633153&n.flags&&!Ys(n)||2097152&n.flags&&e.every(n.types,Wo))}function zo(n){var t,r,i,a,o,s=Br(n),c=s;if(!s.declaredType){var l=32&n.flags?1:2,u=nv(n,n.valueDeclaration&&((o=(null==(a=null===(r=null==(i=(t=n.valueDeclaration)&&tv(t,!0))?void 0:i.exports)||void 0===r?void 0:r.get("prototype"))?void 0:a.valueDeclaration)&&function(n){if(!n.parent)return!1;for(var t=n.parent;t&&204===t.kind;)t=t.parent;if(t&&e.isBinaryExpression(t)&&e.isPrototypeAccess(t.left)&&63===t.operatorToken.kind){var r=e.getInitializerOfBinaryExpression(t);return e.isObjectLiteralExpression(r)&&r}}(a.valueDeclaration))?Ui(o):void 0));u&&(n=s=u);var d=c.declaredType=s.declaredType=Zi(l,n),p=Po(n),f=wo(n);(p||f||1===l||!function(n){if(!n.declarations)return!0;for(var t=0,r=n.declarations;t<r.length;t++){var i=r[t];if(256===i.kind){if(128&i.flags)return!1;var a=e.getInterfaceBaseTypeNodes(i);if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];if(e.isEntityNameExpression(c.expression)){var l=Si(c.expression,788968,!0);if(!l||!(64&l.flags)||zo(l).thisType)return!1}}}}return!0}(n))&&(d.objectFlags|=4,d.typeParameters=e.concatenate(p,f),d.outerTypeParameters=p,d.localTypeParameters=f,d.instantiations=new e.Map,d.instantiations.set(vl(d.typeParameters),d),d.target=d,d.resolvedTypeArguments=d.typeParameters,d.thisType=$i(n),d.thisType.isThisType=!0,d.thisType.constraint=d)}return s.declaredType}function Jo(n){var t,r=Br(n);if(!r.declaredType){if(!wa(n,2))return Re;var i=e.Debug.checkDefined(null===(t=n.declarations)||void 0===t?void 0:t.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),a=e.isJSDocTypeAlias(i)?i.typeExpression:i.type,o=a?jd(a):Re;if(Ga()){var s=wo(n);s&&(r.typeParameters=s,r.instantiations=new e.Map,r.instantiations.set(vl(s),o))}else o=Re,334===i.kind?xr(i.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,va(n)):xr(e.isNamedDeclaration(i)?i.name:i||i,e.Diagnostics.Type_alias_0_circularly_references_itself,va(n));r.declaredType=o}return r.declaredType}function qo(n){return!!e.isStringLiteralLike(n)||219===n.kind&&qo(n.left)&&qo(n.right)}function Xo(n){var t=n.initializer;if(!t)return!(8388608&n.flags);switch(t.kind){case 10:case 8:case 14:return!0;case 217:return 40===t.operator&&8===t.operand.kind;case 79:return e.nodeIsMissing(t)||!!Ui(n.parent).exports.get(t.escapedText);case 219:return qo(t);default:return!1}}function Yo(n){var t=Br(n);if(void 0!==t.enumKind)return t.enumKind;var r=!1;if(n.declarations)for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i];if(258===o.kind)for(var s=0,c=o.members;s<c.length;s++){var l=c[s];if(l.initializer&&e.isStringLiteralLike(l.initializer))return t.enumKind=1;Xo(l)||(r=!0)}}return t.enumKind=r?0:1}function Qo(e){return 1024&e.flags&&!(1048576&e.flags)?ns(Vi(e.symbol)):e}function Zo(e){var n=Br(e);if(n.declaredType)return n.declaredType;if(1===Yo(e)){b++;var t=[];if(e.declarations)for(var r=0,i=e.declarations;r<i.length;r++){var a=i[r];if(258===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],l=SS(c),u=kd(Fd(void 0!==l?l:0,b,Ui(c)));Br(Ui(c)).declaredType=u,t.push(Rd(u))}}if(t.length){var d=xu(t,1,e,void 0);return 1048576&d.flags&&(d.flags|=1024,d.symbol=e),n.declaredType=d}}var p=Xi(32);return p.symbol=e,n.declaredType=p}function $o(e){var n=Br(e);if(!n.declaredType){var t=Zo(Vi(e));n.declaredType||(n.declaredType=t)}return n.declaredType}function es(e){var n=Br(e);return n.declaredType||(n.declaredType=$i(e))}function ns(e){return ts(e)||Re}function ts(e){return 96&e.flags?zo(e):524288&e.flags?Jo(e):262144&e.flags?es(e):384&e.flags?Zo(e):8&e.flags?$o(e):2097152&e.flags?function(e){var n=Br(e);return n.declaredType||(n.declaredType=ns(_i(e)))}(e):void 0}function rs(e){switch(e.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 rs(e.elementType);case 176:return!e.typeArguments||e.typeArguments.every(rs)}return!1}function is(n){var t=e.getEffectiveConstraintOfTypeParameter(n);return!t||rs(t)}function as(n){var t=e.getEffectiveTypeAnnotationNode(n);return t?rs(t):!e.hasInitializer(n)}function os(n){if(n.declarations&&1===n.declarations.length){var t=n.declarations[0];if(t)switch(t.kind){case 165:case 164:return as(t);case 167:case 166:case 169:case 170:case 171:return r=t,i=e.getEffectiveReturnTypeNode(r),a=e.getEffectiveTypeParameterDeclarations(r),(169===r.kind||!!i&&rs(i))&&r.parameters.every(as)&&a.every(is)}}var r,i,a;return!1}function ss(n,t,r){for(var i=e.createSymbolTable(),a=0,o=n;a<o.length;a++){var s=o[a];i.set(s.escapedName,r&&os(s)?s:ap(s,t))}return i}function cs(e,n){for(var t=0,r=n;t<r.length;t++){var i=r[t];e.has(i.escapedName)||ls(i)||e.set(i.escapedName,i)}}function ls(n){return!!n.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(n.valueDeclaration)&&e.isStatic(n.valueDeclaration)}function us(n){if(!n.declaredProperties){var t=n.symbol,r=vs(t);n.declaredProperties=na(r),n.declaredCallSignatures=e.emptyArray,n.declaredConstructSignatures=e.emptyArray,n.declaredIndexInfos=e.emptyArray,n.declaredCallSignatures=Xc(r.get("__call")),n.declaredConstructSignatures=Xc(r.get("__new")),n.declaredIndexInfos=fl(t)}return n}function ds(e){return!!(8576&e.flags)}function ps(n){if(!e.isComputedPropertyName(n)&&!e.isElementAccessExpression(n))return!1;var t=e.isComputedPropertyName(n)?n.expression:n.argumentExpression;return e.isEntityNameExpression(t)&&ds(e.isComputedPropertyName(n)?ry(n):ub(t))}function fs(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function ms(n){var t=e.getNameOfDeclaration(n);return!!t&&ps(t)}function _s(n){return!e.hasDynamicName(n)||ms(n)}function gs(n){return 8192&n.flags?n.escapedName:384&n.flags?e.escapeLeadingUnderscores(""+n.value):e.Debug.fail()}function ys(n,t,r,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=Ur(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=e.isBinaryExpression(i)?i.left:i.name,s=e.isElementAccessExpression(o)?ub(o.argumentExpression):ry(o);if(ds(s)){var c=gs(s),l=i.symbol.flags,u=r.get(c);u||r.set(c,u=Nr(0,c,4096));var d=t&&t.get(c);if(u.flags&kr(l)||d){var p=d?e.concatenate(d.declarations,u.declarations):u.declarations,f=!(8192&s.flags)&&e.unescapeLeadingUnderscores(c)||e.declarationNameToString(o);e.forEach(p,(function(n){return xr(e.getNameOfDeclaration(n)||n,e.Diagnostics.Property_0_was_also_declared_here,f)})),xr(o||i,e.Diagnostics.Duplicate_property_0,f),u=Nr(0,c,4096)}return u.nameType=s,function(n,t,r){e.Debug.assert(!!(4096&e.getCheckFlags(n)),"Expected a late-bound symbol."),n.flags|=r,Br(t.symbol).lateSymbol=n,n.declarations?t.symbol.isReplaceableByMethod||n.declarations.push(t):n.declarations=[t],111551&r&&(n.valueDeclaration&&n.valueDeclaration.kind===t.kind||(n.valueDeclaration=t))}(u,i,l),u.parent?e.Debug.assert(u.parent===n,"Existing symbol parent should match new one"):u.parent=n,a.resolvedSymbol=u}}return a.resolvedSymbol}function hs(n,t){var r=Br(n);if(!r[t]){var i="resolvedExports"===t,a=i?1536&n.flags?Gi(n):n.exports:n.members;r[t]=a||D;for(var o=e.createSymbolTable(),s=0,c=n.declarations||e.emptyArray;s<c.length;s++){var l=c[s],u=e.getMembersOfDeclaration(l);if(u)for(var d=0,p=u;d<p.length;d++){var f=p[d];i===e.hasStaticModifier(f)&&ms(f)&&ys(n,a,o,f)}}var m=n.assignmentDeclarationMembers;if(m)for(var _=0,g=e.arrayFrom(m.values());_<g.length;_++){f=g[_];var y=e.getAssignmentDeclarationKind(f);i===!(3===y||e.isBinaryExpression(f)&&Pg(f,y)||9===y||6===y)&&ms(f)&&ys(n,a,o,f)}r[t]=function(n,t){if(!(null==n?void 0:n.size))return t;if(!(null==t?void 0:t.size))return n;var r=e.createSymbolTable();return Fr(r,n),Fr(r,t),r}(a,o)||D}return r[t]}function vs(e){return 6256&e.flags?hs(e,"resolvedMembers"):e.members||D}function bs(n){if(106500&n.flags&&"__computed"===n.escapedName){var t=Br(n);if(!t.lateSymbol&&e.some(n.declarations,ms)){var r=Bi(n.parent);e.some(n.declarations,e.hasStaticModifier)?wi(r):vs(r)}return t.lateSymbol||(t.lateSymbol=n)}return n}function Es(n,t,r){if(4&e.getObjectFlags(n)){var i=n.target,a=Ll(n);if(e.length(i.typeParameters)===e.length(a)){var o=Tl(i,e.concatenate(a,[t||i.thisType]));return r?mc(o):o}}else if(2097152&n.flags){var s=e.sameMap(n.types,(function(e){return Es(e,t,r)}));return s!==n.types?ku(s):n}return r?mc(n):n}function Ts(n,t,r,i){var a,o,s,c,l;e.rangeEquals(r,i,0,r.length)?(o=t.symbol?vs(t.symbol):e.createSymbolTable(t.declaredProperties),s=t.declaredCallSignatures,c=t.declaredConstructSignatures,l=t.declaredIndexInfos):(a=qd(r,i),o=ss(t.declaredProperties,a,1===r.length),s=zd(t.declaredCallSignatures,a),c=zd(t.declaredConstructSignatures,a),l=Jd(t.declaredIndexInfos,a));var u=Ko(t);if(u.length){t.symbol&&o===vs(t.symbol)&&(o=e.createSymbolTable(t.declaredProperties)),ta(n,o,s,c,l);for(var d=e.lastOrUndefined(i),p=0,f=u;p<f.length;p++){var m=f[p],_=d?Es(fp(m,a),d):m;cs(o,nc(_)),s=e.concatenate(s,Dc(_,0)),c=e.concatenate(c,Dc(_,1));var g=_!==Ie?kc(_):[pl(je,Ie,!1)];l=e.concatenate(l,e.filter(g,(function(e){return!Ac(l,e.keyType)})))}}ta(n,o,s,c,l)}function Ss(e,n,t,r,i,a,o,s){var c=new y(de,s);return c.declaration=e,c.typeParameters=n,c.parameters=r,c.thisParameter=t,c.resolvedReturnType=i,c.resolvedTypePredicate=a,c.minArgumentCount=o,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function xs(e){var n=Ss(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,39&e.flags);return n.target=e.target,n.mapper=e.mapper,n.compositeSignatures=e.compositeSignatures,n.compositeKind=e.compositeKind,n}function Ls(e,n){var t=xs(e);return t.compositeSignatures=n,t.compositeKind=1048576,t.target=void 0,t.mapper=void 0,t}function Ds(n,t){if((24&n.flags)===t)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});var r=8===t?"inner":"outer";return n.optionalCallSignatureCache[r]||(n.optionalCallSignatureCache[r]=function(n,t){e.Debug.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var r=xs(n);return r.flags|=t,r}(n,t))}function As(n,t){if(B(n)){var r=n.parameters.length-1,i=Ao(n.parameters[r]);if(Uf(i))return[a(i,r)];if(!t&&1048576&i.flags&&e.every(i.types,Uf))return e.map(i.types,(function(e){return a(e,r)}))}return[n.parameters];function a(t,r){var i=Ll(t),a=t.target.labeledElementDeclarations,o=e.map(i,(function(e,i){var o=!!a&&fv(a[i])||mv(n,r+i,t),s=t.target.elementFlags[i],c=Nr(1,o,12&s?32768:2&s?16384:0);return c.type=4&s?ru(e):e,c}));return e.concatenate(n.parameters.slice(0,r),o)}}function Cs(e,n,t,r,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(vf(s,n,t,r,i,t?Lp:Sp))return s}}function Is(n,t,r){if(t.typeParameters){if(r>0)return;for(var i=1;i<n.length;i++)if(!Cs(n[i],t,!1,!1,!1))return;return[t]}var a;for(i=0;i<n.length;i++){var o=i===r?t:Cs(n[i],t,!0,!1,!0);if(!o)return;a=e.appendIfUnique(a,o)}return a}function Ns(n){for(var t,r,i=0;i<n.length;i++){if(0===n[i].length)return e.emptyArray;n[i].length>1&&(r=void 0===r?i:-1);for(var a=0,o=n[i];a<o.length;a++){var s=o[a];if(!t||!Cs(t,s,!1,!1,!0)){var c=Is(n,s,i);if(c){var l=s;if(c.length>1){var u=s.thisParameter,d=e.forEach(c,(function(e){return e.thisParameter}));d&&(u=sm(d,ku(e.mapDefined(c,(function(e){return e.thisParameter&&Ao(e.thisParameter)}))))),(l=Ls(s,c)).thisParameter=u}(t||(t=[])).push(l)}}}}if(!e.length(t)&&-1!==r){for(var p=n[void 0!==r?r:0],f=p.slice(),m=function(n){if(n!==p){var t=n[0];if(e.Debug.assert(!!t,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),f=t.typeParameters&&e.some(f,(function(e){return!!e.typeParameters&&!ks(t.typeParameters,e.typeParameters)}))?void 0:e.map(f,(function(n){return function(n,t){var r,i=n.typeParameters||t.typeParameters;n.typeParameters&&t.typeParameters&&(r=qd(t.typeParameters,n.typeParameters));var a=n.declaration,o=function(e,n,t){for(var r=Ev(e),i=Ev(n),a=r>=i?e:n,o=a===e?n:e,s=a===e?r:i,c=Sv(e)||Sv(n),l=c&&!Sv(a),u=new Array(s+(l?1:0)),d=0;d<s;d++){var p=vv(a,d);a===n&&(p=fp(p,t));var f=vv(o,d)||we;o===n&&(f=fp(f,t));var m=ku([p,f]),_=c&&!l&&d===s-1,g=d>=Tv(a)&&d>=Tv(o),y=d>=r?void 0:mv(e,d),h=d>=i?void 0:mv(n,d),v=Nr(1|(g&&!_?16777216:0),(y===h?y:y?h?void 0:y:h)||"arg"+d);v.type=_?ru(m):m,u[d]=v}if(l){var b=Nr(1,"args");b.type=ru(hv(o,s)),o===n&&(b.type=fp(b.type,t)),u[s]=b}return u}(n,t,r),s=function(e,n,t){return e&&n?sm(e,ku([Ao(e),fp(Ao(n),t)])):e||n}(n.thisParameter,t.thisParameter,r),c=Ss(a,i,s,o,void 0,void 0,Math.max(n.minArgumentCount,t.minArgumentCount),39&(n.flags|t.flags));return c.compositeKind=1048576,c.compositeSignatures=e.concatenate(2097152!==n.compositeKind&&n.compositeSignatures||[n],[t]),r&&(c.mapper=2097152!==n.compositeKind&&n.mapper&&n.compositeSignatures?ep(n.mapper,r):r),c}(n,t)})),!f)return"break"}},_=0,g=n;_<g.length&&"break"!==m(g[_]);_++);t=f}return t||e.emptyArray}function ks(n,t){if(e.length(n)!==e.length(t))return!1;if(!n||!t)return!0;for(var r=qd(t,n),i=0;i<n.length;i++){var a=n[i],o=t[i];if(a!==o&&!Tp(yl(a)||we,fp(yl(o)||we,r)))return!1}return!0}function Rs(n){var t=kc(n[0]);if(t){for(var r=[],i=function(t){var i=t.keyType;e.every(n,(function(e){return!!Rc(e,i)}))&&r.push(pl(i,xu(e.map(n,(function(e){return Oc(e,i)}))),e.some(n,(function(e){return Rc(e,i).isReadonly}))))},a=0,o=t;a<o.length;a++)i(o[a]);return r}return e.emptyArray}function Os(e,n){return e?n?ku([e,n]):e:n}function Ps(n){var t=e.countWhere(n,(function(e){return Dc(e,1).length>0})),r=e.map(n,Mo);if(t>0&&t===e.countWhere(r,(function(e){return e}))){var i=r.indexOf(!0);r[i]=!1}return r}function ws(n,t){for(var r=function(t){n&&!e.every(n,(function(e){return!vf(e,t,!1,!1,!1,Sp)}))||(n=e.append(n,t))},i=0,a=t;i<a.length;i++)r(a[i]);return n}function Ms(n,t,r){if(n)for(var i=0;i<n.length;i++){var a=n[i];if(a.keyType===t.keyType)return n[i]=pl(a.keyType,r?xu([a.type,t.type]):ku([a.type,t.type]),r?a.isReadonly||t.isReadonly:a.isReadonly&&t.isReadonly),n}return e.append(n,t)}function Fs(e,n,t){return fp(e,qd([n.indexType,n.objectType],[wd(0),lu([t])]))}function Gs(n){if(4194304&n.flags){var t=mc(n.type);return Vf(t)?mu(t):Gu(t)}if(16777216&n.flags){if(n.root.isDistributive){var r=n.checkType,i=Gs(r);if(i!==r)return pp(n,np(n.root.checkType,i,n.mapper))}return n}return 1048576&n.flags?G_(n,Gs):2097152&n.flags?ku(e.sameMap(n.types,Gs)):n}function Bs(n){return 4096&e.getCheckFlags(n)}function Us(e){return e.typeParameter||(e.typeParameter=es(Ui(e.declaration.typeParameter)))}function Vs(e){return e.constraintType||(e.constraintType=rc(Us(e))||Re)}function js(e){return e.declaration.nameType?e.nameType||(e.nameType=fp(jd(e.declaration.nameType),e.mapper)):void 0}function Ks(e){return e.templateType||(e.templateType=e.declaration.type?fp($a(jd(e.declaration.type),!0,!!(4&Js(e))),e.mapper):Re)}function Hs(n){return e.getEffectiveConstraintOfTypeParameter(n.declaration.typeParameter)}function Ws(e){var n=Hs(e);return 191===n.kind&&139===n.operator}function zs(e){if(!e.modifiersType)if(Ws(e))e.modifiersType=fp(jd(Hs(e).type),e.mapper);else{var n=Vs(ld(e.declaration)),t=n&&262144&n.flags?rc(n):n;e.modifiersType=t&&4194304&t.flags?fp(t.type,e.mapper):we}return e.modifiersType}function Js(e){var n=e.declaration;return(n.readonlyToken?40===n.readonlyToken.kind?2:1:0)|(n.questionToken?40===n.questionToken.kind?8:4:0)}function qs(e){var n=Js(e);return 8&n?-1:4&n?1:0}function Xs(e){var n=qs(e),t=zs(e);return n||(Ys(t)?qs(t):0)}function Ys(n){return!!(32&e.getObjectFlags(n))&&Zu(Vs(n))}function Qs(n){return n.members||(524288&n.flags?4&n.objectFlags?function(n){var t=us(n.target),r=e.concatenate(t.typeParameters,[t.thisType]),i=Ll(n);Ts(n,t,r,i.length===r.length?i:e.concatenate(i,[n]))}(n):3&n.objectFlags?function(n){Ts(n,us(n),e.emptyArray,e.emptyArray)}(n):1024&n.objectFlags?function(n){for(var t=Rc(n.source,je),r=Js(n.mappedType),i=!(1&r),a=4&r?0:16777216,o=t?[pl(je,Om(t.type,n.mappedType,n.constraintType),i&&t.isReadonly)]:e.emptyArray,s=e.createSymbolTable(),c=0,l=nc(n.source);c<l.length;c++){var u=l[c],d=8192|(i&&Wv(u)?8:0),p=Nr(4|u.flags&a,u.escapedName,d);if(p.declarations=u.declarations,p.nameType=Br(u).nameType,p.propertyType=Ao(u),8388608&n.constraintType.type.flags&&262144&n.constraintType.type.objectType.flags&&262144&n.constraintType.type.indexType.flags){var f=n.constraintType.type.objectType,m=Fs(n.mappedType,n.constraintType.type,f);p.mappedType=m,p.constraintType=Gu(f)}else p.mappedType=n.mappedType,p.constraintType=n.constraintType;s.set(u.escapedName,p)}ta(n,s,e.emptyArray,e.emptyArray,o)}(n):16&n.objectFlags?function(n){var t=Bi(n.symbol);if(n.target)ta(n,D,e.emptyArray,e.emptyArray,e.emptyArray),ta(n,a=ss(Zs(n.target),n.mapper,!1),r=zd(Dc(n.target,0),n.mapper),i=zd(Dc(n.target,1),n.mapper),o=Jd(kc(n.target),n.mapper));else if(2048&t.flags){ta(n,D,e.emptyArray,e.emptyArray,e.emptyArray);var r=Xc((a=vs(t)).get("__call")),i=Xc(a.get("__new"));ta(n,a,r,i,o=fl(t))}else{var a=D,o=void 0;if(t.exports&&(a=wi(t),t===se)){var s=new e.Map;a.forEach((function(e){418&e.flags||s.set(e.escapedName,e)})),a=s}var c=void 0;if(ta(n,a,e.emptyArray,e.emptyArray,e.emptyArray),32&t.flags){var l=Vo(zo(t));11272192&l.flags?cs(a=e.createSymbolTable(function(n){var t=na(n),r=dl(n);return r?e.concatenate(t,[r]):t}(a)),nc(l)):l===Ie&&(c=pl(je,Ie,!1))}var u=dl(a);if(u?o=ml(u):(c&&(o=e.append(o,c)),384&t.flags&&(32&ns(t).flags||e.some(n.properties,(function(e){return!!(296&Ao(e).flags)})))&&(o=e.append(o,xt))),ta(n,a,e.emptyArray,e.emptyArray,o||e.emptyArray),8208&t.flags&&(n.callSignatures=Xc(t)),32&t.flags){var d=zo(t);i=t.members?Xc(t.members.get("__constructor")):e.emptyArray,16&t.flags&&(i=e.addRange(i.slice(),e.mapDefined(n.callSignatures,(function(e){return ev(e.declaration)?Ss(e.declaration,e.typeParameters,e.thisParameter,e.parameters,d,void 0,e.minArgumentCount,39&e.flags):void 0})))),i.length||(i=function(n){var t=Dc(Vo(n),1),r=e.getClassLikeDeclarationOfSymbol(n.symbol),i=!!r&&e.hasSyntacticModifier(r,128);if(0===t.length)return[Ss(void 0,n.localTypeParameters,void 0,e.emptyArray,n,void 0,0,i?4:0)];for(var a=Go(n),o=e.isInJSFile(a),s=Vl(a),c=e.length(s),l=[],u=0,d=t;u<d.length;u++){var p=d[u],f=Hc(p.typeParameters),m=e.length(p.typeParameters);if(o||c>=f&&c<=m){var _=m?ol(p,Wc(s,p.typeParameters,f,o)):xs(p);_.typeParameters=n.localTypeParameters,_.resolvedReturnType=n,_.flags=i?4|_.flags:-5&_.flags,l.push(_)}}return l}(d)),n.constructSignatures=i}}}(n):32&n.objectFlags&&function(n){var t,r=e.createSymbolTable();ta(n,D,e.emptyArray,e.emptyArray,e.emptyArray);var i=Us(n),a=Vs(n),o=js(n.target||n),s=Ks(n.target||n),c=mc(zs(n)),l=Js(n),u=$?128:8576;if(Ws(n)){for(var d=0,p=nc(c);d<p.length;d++)g(Fu(p[d],u));if(1&c.flags)g(je);else for(var f=0,m=kc(c);f<m.length;f++){var _=m[f];(!$||134217732&_.keyType.flags)&&g(_.keyType)}}else R_(Gs(a),g);function g(e){R_(o?fp(o,tp(n.mapper,i,e)):e,(function(a){return function(e,a){if(ds(a)){var u=gs(a),d=r.get(u);if(d)d.nameType=xu([d.nameType,a]),d.keyType=xu([d.keyType,e]);else{var p=ds(e)?xc(c,gs(e)):void 0,f=!!(4&l||!(8&l)&&p&&16777216&p.flags),m=!!(1&l||!(2&l)&&p&&Wv(p)),_=z&&!f&&p&&16777216&p.flags,g=Nr(4|(f?16777216:0),u,262144|(p?Bs(p):0)|(m?8:0)|(_?524288:0));g.mappedType=n,g.nameType=a,g.keyType=e,p&&(g.syntheticOrigin=p,g.declarations=o?void 0:p.declarations),r.set(u,g)}}else if(_l(a)||33&a.flags){var y=pl(5&a.flags?je:40&a.flags?Ke:a,fp(s,tp(n.mapper,i,e)),!!(1&l));t=Ms(t,y,!0)}}(e,a)}))}ta(n,r,e.emptyArray,e.emptyArray,t||e.emptyArray)}(n):1048576&n.flags?function(n){var t=Ns(e.map(n.types,(function(e){return e===Cn?[Et]:Dc(e,0)}))),r=Ns(e.map(n.types,(function(e){return Dc(e,1)}))),i=Rs(n.types);ta(n,D,t,r,i)}(n):2097152&n.flags&&function(n){for(var t,r,i,a=n.types,o=Ps(a),s=e.countWhere(o,(function(e){return e})),c=function(c){var l=n.types[c];if(!o[c]){var u=Dc(l,1);u.length&&s>0&&(u=e.map(u,(function(e){var n=xs(e);return n.resolvedReturnType=function(e,n,t,r){for(var i=[],a=0;a<n.length;a++)a===r?i.push(e):t[a]&&i.push(el(Dc(n[a],1)[0]));return ku(i)}(el(e),a,o,c),n}))),r=ws(r,u)}t=ws(t,Dc(l,0)),i=e.reduceLeft(kc(l),(function(e,n){return Ms(e,n,!1)}),i)},l=0;l<a.length;l++)c(l);ta(n,D,t||e.emptyArray,r||e.emptyArray,i||e.emptyArray)}(n)),n}function Zs(n){return 524288&n.flags?Qs(n).properties:e.emptyArray}function $s(e,n){if(524288&e.flags){var t=Qs(e).members.get(n);if(t&&Ji(t))return t}}function ec(n){if(!n.resolvedProperties){for(var t=e.createSymbolTable(),r=0,i=n.types;r<i.length;r++){for(var a=i[r],o=0,s=nc(a);o<s.length;o++){var c=s[o];if(!t.has(c.escapedName)){var l=hc(n,c.escapedName);l&&t.set(c.escapedName,l)}}if(1048576&n.flags&&0===kc(a).length)break}n.resolvedProperties=na(t)}return n.resolvedProperties}function nc(e){return 3145728&(e=_c(e)).flags?ec(e):Zs(e)}function tc(e){return 262144&e.flags?rc(e):8388608&e.flags?function(e){return uc(e)?function(e){var n=ic(e.indexType);if(n&&n!==e.indexType){var t=sd(e.objectType,n,e.accessFlags);if(t)return t}var r=ic(e.objectType);if(r&&r!==e.objectType)return sd(r,e.indexType,e.accessFlags)}(e):void 0}(e):16777216&e.flags?function(e){return uc(e)?sc(e):void 0}(e):cc(e)}function rc(e){return uc(e)?yl(e):void 0}function ic(e){var n=nd(e,!1);return n!==e?n:tc(e)}function ac(e){if(!e.resolvedDefaultConstraint){var n=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?fp(jd(e.root.node.trueType),e.combinedMapper):_d(e))}(e),t=gd(e);e.resolvedDefaultConstraint=Va(n)?t:Va(t)?n:xu([n,t])}return e.resolvedDefaultConstraint}function oc(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var n=nd(e.checkType,!1),t=n===e.checkType?tc(n):n;if(t&&t!==e.checkType){var r=pp(e,np(e.root.checkType,t,e.mapper));if(!(131072&r.flags))return r}}}function sc(e){return oc(e)||ac(e)}function cc(e){if(464781312&e.flags){var n=dc(e);return n!==hn&&n!==vn?n:void 0}return 4194304&e.flags?sn:void 0}function lc(e){return cc(e)||e}function uc(e){return dc(e)!==vn}function dc(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;var t=[];return n.resolvedBaseConstraint=Es(r(n),n);function r(n){if(!n.immediateBaseConstraint){if(!wa(n,4))return vn;var r=void 0;if((t.length<10||t.length<50&&!_f(n,t,t.length))&&(t.push(n),r=function(n){if(262144&n.flags){var t=yl(n);return n.isThisType||!t?t:i(t)}if(3145728&n.flags){for(var r=[],a=!1,o=0,s=u=n.types;o<s.length;o++){var c=s[o],l=i(c);l?(l!==c&&(a=!0),r.push(l)):a=!0}return a?1048576&n.flags&&r.length===u.length?xu(r):2097152&n.flags&&r.length?ku(r):void 0:n}if(4194304&n.flags)return sn;if(134217728&n.flags){var u=n.types,d=e.mapDefined(u,i);return d.length===u.length?Uu(n.texts,d):je}if(268435456&n.flags)return(t=i(n.type))?ju(n.symbol,t):je;if(8388608&n.flags){var p=i(n.objectType),f=i(n.indexType),m=p&&f&&sd(p,f,n.accessFlags);return m&&i(m)}return 16777216&n.flags?(t=sc(n))&&i(t):33554432&n.flags?i(n.substitute):n}(nd(n,!1)),t.pop()),!Ga()){if(262144&n.flags){var a=gl(n);if(a){var o=xr(a,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Ea(n));!d||e.isNodeDescendantOf(a,d)||e.isNodeDescendantOf(d,a)||e.addRelatedInfo(o,e.createDiagnosticForNode(d,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}r=vn}n.immediateBaseConstraint=r||hn}return n.immediateBaseConstraint}function i(e){var n=r(e);return n!==hn&&n!==vn?n:void 0}}function pc(n){if(n.default)n.default===bn&&(n.default=vn);else if(n.target){var t=pc(n.target);n.default=t?fp(t,n.mapper):hn}else{n.default=bn;var r=n.symbol&&e.forEach(n.symbol.declarations,(function(n){return e.isTypeParameterDeclaration(n)&&n.default})),i=r?jd(r):hn;n.default===bn&&(n.default=i)}return n.default}function fc(e){var n=pc(e);return n!==hn&&n!==vn?n:void 0}function mc(n){var t=465829888&n.flags?cc(n)||we:n;return 32&e.getObjectFlags(t)?function(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var n=sp(e);if(n&&!e.declaration.nameType){var t=rc(n);if(t&&(Ef(t)||Uf(t)))return fp(e,np(n,t,e.mapper))}return e}(e))}(t):2097152&t.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=Es(e,e,!0))}(t):402653316&t.flags?On:296&t.flags?Pn:2112&t.flags?dt||(dt=Jl("BigInt",0,j>=7))||pn:528&t.flags?wn:12288&t.flags?Yl(j>=2):67108864&t.flags?pn:4194304&t.flags?sn:2&t.flags&&!z?pn:t}function _c(e){return vc(mc(vc(e)))}function gc(n,t,r){for(var i,a,o,s,c,l=1048576&n.flags,u=l?0:16777216,d=4,p=0,f=!1,m=0,_=n.types;m<_.length;m++)if(!((I=mc(_[m]))===Re||131072&I.flags)){var g=(C=xc(I,t,r))?e.getDeclarationModifierFlagsFromSymbol(C):0;if(C){if(l?u|=16777216&C.flags:u&=C.flags,o){if(C!==o)if((hT(C)||C)===(hT(o)||o)&&-1===hf(o,C,(function(e,n){return e===n?-1:0})))f=!!o.parent&&!!e.length(wo(o.parent));else{s||(s=new e.Map).set(P(o),o);var y=P(C);s.has(y)||s.set(y,C)}}else o=C;p|=(Wv(C)?8:0)|(24&g?0:256)|(16&g?512:0)|(8&g?1024:0)|(32&g?2048:0),Iy(C)||(d=2)}else if(l){var h=!fs(t)&&Mc(I,t);h?(p|=32|(h.isReadonly?8:0),c=e.append(c,Uf(I)?Kf(I)||Me:h.type)):!Wm(I)||4194304&e.getObjectFlags(I)?p|=16:(p|=32,c=e.append(c,Me))}}if(o&&!(l&&(s||48&p)&&1536&p)){if(!(s||16&p||c)){if(f){var v=sm(o,o.type);return v.parent=null===(a=null===(i=o.valueDeclaration)||void 0===i?void 0:i.symbol)||void 0===a?void 0:a.parent,v.containingType=n,v.mapper=o.mapper,v}return o}for(var b,E,T,S,x=[],L=!1,D=0,A=s?e.arrayFrom(s.values()):[o];D<A.length;D++){var C=A[D];S?C.valueDeclaration&&C.valueDeclaration!==S&&(L=!0):S=C.valueDeclaration,b=e.addRange(b,C.declarations);var I=Ao(C);E?I!==E&&(p|=64):(E=I,T=Br(C).nameType),Pf(I)&&(p|=128),131072&I.flags&&(p|=131072),x.push(I)}e.addRange(x,c);var N=Nr(4|u,t,d|p);return N.containingType=n,!L&&S&&(N.valueDeclaration=S,S.symbol.parent&&(N.parent=S.symbol.parent)),N.declarations=b,N.nameType=T,x.length>2?(N.checkFlags|=65536,N.deferralParent=n,N.deferralConstituents=x):N.type=l?xu(x):ku(x),N}}function yc(n,t,r){var i,a,o=(null===(i=n.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(t))||!r?null===(a=n.propertyCache)||void 0===a?void 0:a.get(t):void 0;return o||(o=gc(n,t,r))&&(r?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):n.propertyCache||(n.propertyCache=e.createSymbolTable())).set(t,o),o}function hc(n,t,r){var i=yc(n,t,r);return!i||16&e.getCheckFlags(i)?void 0:i}function vc(n){return 1048576&n.flags&&33554432&n.objectFlags?n.resolvedReducedType||(n.resolvedReducedType=function(n){var t=e.sameMap(n.types,vc);if(t===n.types)return n;var r=xu(t);return 1048576&r.flags&&(r.resolvedReducedType=r),r}(n)):2097152&n.flags?(33554432&n.objectFlags||(n.objectFlags|=33554432|(e.some(ec(n),bc)?67108864:0)),67108864&n.objectFlags?Ze:n):n}function bc(e){return Ec(e)||Tc(e)}function Ec(n){return!(16777216&n.flags||192!=(131264&e.getCheckFlags(n))||!(131072&Ao(n).flags))}function Tc(n){return!n.valueDeclaration&&!!(1024&e.getCheckFlags(n))}function Sc(n,t){if(2097152&t.flags&&67108864&e.getObjectFlags(t)){var r=e.find(ec(t),Ec);if(r)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Ea(t,void 0,536870912),va(r));var i=e.find(ec(t),Tc);if(i)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,Ea(t,void 0,536870912),va(i))}return n}function xc(e,n,t){if(524288&(e=_c(e)).flags){var r=Qs(e),i=r.members.get(n);if(i&&Ji(i))return i;if(t)return;var a=r===yn?Cn:r.callSignatures.length?In:r.constructSignatures.length?Nn:void 0;if(a){var o=$s(a,n);if(o)return o}return $s(An,n)}if(3145728&e.flags)return hc(e,n,t)}function Lc(n,t){if(3670016&n.flags){var r=Qs(n);return 0===t?r.callSignatures:r.constructSignatures}return e.emptyArray}function Dc(e,n){return Lc(_c(e),n)}function Ac(n,t){return e.find(n,(function(e){return e.keyType===t}))}function Cc(n,t){for(var r,i,a,o=0,s=n;o<s.length;o++){var c=s[o];c.keyType===je?r=c:Ic(t,c.keyType)&&(i?(a||(a=[i])).push(c):i=c)}return a?pl(we,ku(e.map(a,(function(e){return e.type}))),e.reduceLeft(a,(function(e,n){return e&&n.isReadonly}),!0)):i||(r&&Ic(t,je)?r:void 0)}function Ic(e,n){return Ap(e,n)||n===je&&Ap(e,Ke)||n===Ke&&!!(128&e.flags)&&ty(e.value)}function Nc(n){return 3670016&n.flags?Qs(n).indexInfos:e.emptyArray}function kc(e){return Nc(_c(e))}function Rc(e,n){return Ac(kc(e),n)}function Oc(e,n){var t;return null===(t=Rc(e,n))||void 0===t?void 0:t.type}function Pc(e,n){return kc(e).filter((function(e){return Ic(n,e.keyType)}))}function wc(e,n){return Cc(kc(e),n)}function Mc(n,t){return wc(n,fs(t)?Ye:Pd(e.unescapeLeadingUnderscores(t)))}function Fc(n){for(var t,r=0,i=e.getEffectiveTypeParameterDeclarations(n);r<i.length;r++){var a=i[r];t=e.appendIfUnique(t,es(a.symbol))}return t}function Gc(e){var n=[];return e.forEach((function(e,t){ea(t)||n.push(e)})),n}function Bc(n){return e.isInJSFile(n)&&(n.type&&311===n.type.kind||e.getJSDocParameterTags(n).some((function(e){var n=e.isBracketed,t=e.typeExpression;return n||!!t&&311===t.type.kind})))}function Uc(n,t){if(!e.isExternalModuleNameRelative(n)){var r=jr(ae,'"'+n+'"',512);return r&&t?Bi(r):r}}function Vc(n){if(e.hasQuestionToken(n)||jc(n)||Bc(n))return!0;if(n.initializer){var t=zc(n.parent),r=n.parent.parameters.indexOf(n);return e.Debug.assert(r>=0),r>=Tv(t,3)}var i=e.getImmediatelyInvokedFunctionExpression(n.parent);return!!i&&!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=i.arguments.length}function jc(n){if(!e.isJSDocPropertyLikeTag(n))return!1;var t=n.isBracketed,r=n.typeExpression;return t||!!r&&311===r.type.kind}function Kc(e,n,t,r){return{kind:e,parameterName:n,parameterIndex:t,type:r}}function Hc(n){var t,r=0;if(n)for(var i=0;i<n.length;i++)(t=n[i]).symbol&&e.forEach(t.symbol.declarations,(function(n){return e.isTypeParameterDeclaration(n)&&n.default}))||(r=i+1);return r}function Wc(n,t,r,i){var a=e.length(t);if(!a)return[];var o=e.length(n);if(i||o>=r&&o<=a){for(var s=n?n.slice():[],c=o;c<a;c++)s[c]=Re;var l=qm(i);for(c=o;c<a;c++){var u=fc(t[c]);i&&u&&(Tp(u,we)||Tp(u,pn))&&(u=Ie),s[c]=u?fp(u,qd(t,s)):l}return s.length=t.length,s}return n&&n.slice()}function zc(n){var t,r=Ur(n);if(!r.resolvedSignature){var i=[],a=0,o=0,s=void 0,c=!1,l=e.getImmediatelyInvokedFunctionExpression(n),u=e.isJSDocConstructSignature(n);!l&&e.isInJSFile(n)&&e.isValueSignatureDeclaration(n)&&!e.hasJSDocParameterTags(n)&&!e.getJSDocType(n)&&(a|=32);for(var d=u?1:0;d<n.parameters.length;d++){var p=n.parameters[d],f=p.symbol,m=e.isJSDocParameterTag(p)?p.typeExpression&&p.typeExpression.type:p.type;f&&4&f.flags&&!e.isBindingPattern(p.name)&&(f=Wr(p,f.escapedName,111551,void 0,void 0,!1)),0===d&&"this"===f.escapedName?(c=!0,s=p.symbol):i.push(f),m&&194===m.kind&&(a|=2),jc(p)||p.initializer||p.questionToken||e.isRestParameter(p)||l&&i.length>l.arguments.length&&!m||Bc(p)||(o=i.length)}if((170===n.kind||171===n.kind)&&_s(n)&&(!c||!s)){var _=170===n.kind?171:170,g=e.getDeclarationOfKind(Ui(n),_);g&&(s=(t=nx(g))&&t.symbol)}var y=169===n.kind?zo(Bi(n.parent.symbol)):void 0,h=y?y.localTypeParameters:Fc(n);(e.hasRestParameter(n)||e.isInJSFile(n)&&function(n,t){if(e.isJSDocSignature(n)||!qc(n))return!1;var r=e.lastOrUndefined(n.parameters),i=r?e.getJSDocParameterTags(r):e.getJSDocTags(n).filter(e.isJSDocParameterTag),a=e.firstDefined(i,(function(n){return n.typeExpression&&e.isJSDocVariadicType(n.typeExpression.type)?n.typeExpression.type:void 0})),o=Nr(3,"args",32768);return o.type=a?ru(jd(a.type)):Gn,a&&t.pop(),t.push(o),!0}(n,i))&&(a|=1),(e.isConstructorTypeNode(n)&&e.hasSyntacticModifier(n,128)||e.isConstructorDeclaration(n)&&e.hasSyntacticModifier(n.parent,128))&&(a|=4),r.resolvedSignature=Ss(n,h,s,i,void 0,void 0,o,a)}return r.resolvedSignature}function Jc(n){if(e.isInJSFile(n)&&e.isFunctionLikeDeclaration(n)){var t=e.getJSDocTypeTag(n);return(null==t?void 0:t.typeExpression)&&bh(jd(t.typeExpression))}}function qc(n){var t=Ur(n);return void 0===t.containsArgumentsReference&&(8192&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function n(t){if(!t)return!1;switch(t.kind){case 79:return t.escapedText===le.escapedName&&Qm(t)===le;case 165:case 167:case 170:case 171:return 160===t.name.kind&&n(t.name);case 204:case 205:return n(t.expression);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&!!e.forEachChild(t,n)}}(n.body)),t.containsArgumentsReference}function Xc(n){if(!n||!n.declarations)return e.emptyArray;for(var t=[],r=0;r<n.declarations.length;r++){var i=n.declarations[r];if(e.isFunctionLike(i)){if(r>0&&i.body){var a=n.declarations[r-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}t.push(zc(i))}}return t}function Yc(e){var n=Li(e,e);if(n){var t=Ii(n);if(t)return Ao(t)}return Ie}function Qc(e){if(e.thisParameter)return Ao(e.thisParameter)}function Zc(n){if(!n.resolvedTypePredicate){if(n.target){var t=Zc(n.target);n.resolvedTypePredicate=t?(o=t,s=n.mapper,Kc(o.kind,o.parameterName,o.parameterIndex,fp(o.type,s))):vt}else if(n.compositeSignatures)n.resolvedTypePredicate=function(e,n){for(var t,r=[],i=0,a=e;i<a.length;i++){var o=Zc(a[i]);if(!o||2===o.kind||3===o.kind){if(2097152!==n)continue;return}if(t){if(!Lu(t,o))return}else t=o;r.push(o.type)}if(t){var s=$c(r,n);return Kc(t.kind,t.parameterName,t.parameterIndex,s)}}(n.compositeSignatures,n.compositeKind)||vt;else{var r=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration),i=void 0;if(!r&&e.isInJSFile(n.declaration)){var a=Jc(n.declaration);a&&n!==a&&(i=Zc(a))}n.resolvedTypePredicate=r&&e.isTypePredicateNode(r)?function(n,t){var r=n.parameterName,i=n.type&&jd(n.type);return 190===r.kind?Kc(n.assertsModifier?2:0,void 0,void 0,i):Kc(n.assertsModifier?3:1,r.escapedText,e.findIndex(t.parameters,(function(e){return e.escapedName===r.escapedText})),i)}(r,n):i||vt}e.Debug.assert(!!n.resolvedTypePredicate)}var o,s;return n.resolvedTypePredicate===vt?void 0:n.resolvedTypePredicate}function $c(e,n,t){return 2097152!==n?xu(e,t):ku(e)}function el(n){if(!n.resolvedReturnType){if(!wa(n,3))return Re;var t=n.target?fp(el(n.target),n.mapper):n.compositeSignatures?fp($c(e.map(n.compositeSignatures,el),n.compositeKind,2),n.mapper):nl(n.declaration)||(e.nodeIsMissing(n.declaration.body)?Ie:Pv(n.declaration));if(8&n.flags?t=$f(t):16&n.flags&&(t=Qf(t)),!Ga()){if(n.declaration){var r=e.getEffectiveReturnTypeNode(n.declaration);if(r)xr(r,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(Y){var i=n.declaration,a=e.getNameOfDeclaration(i);a?xr(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,e.declarationNameToString(a)):xr(i,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}t=Ie}n.resolvedReturnType=t}return n.resolvedReturnType}function nl(n){if(169===n.kind)return zo(Bi(n.parent.symbol));if(e.isJSDocConstructSignature(n))return jd(n.parameters[0].type);var t,r=e.getEffectiveReturnTypeNode(n);if(r)return jd(r);if(170===n.kind&&_s(n)){var i=e.isInJSFile(n)&&Qa(n);if(i)return i;var a=vo(e.getDeclarationOfKind(Ui(n),171));if(a)return a}return(t=Jc(n))&&el(t)}function tl(e){return!e.resolvedReturnType&&Ma(e,3)>=0}function rl(e){if(B(e)){var n=Ao(e.parameters[e.parameters.length-1]),t=Uf(n)?Kf(n):n;return t&&Oc(t,Ke)}}function il(e,n,t,r){var i=al(e,Wc(n,e.typeParameters,Hc(e.typeParameters),t));if(r){var a=Eh(el(i));if(a){var o=xs(a);o.typeParameters=r;var s=xs(i);return s.resolvedReturnType=ll(o),s}}return i}function al(n,t){var r=n.instantiations||(n.instantiations=new e.Map),i=vl(t),a=r.get(i);return a||r.set(i,a=ol(n,t)),a}function ol(e,n){return ip(e,function(e,n){return qd(e.typeParameters,n)}(e,n),!0)}function sl(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return ip(e,$d(e.typeParameters),!0)}(e)):e}function cl(n){var t=n.typeParameters;if(t){if(n.baseSignatureCache)return n.baseSignatureCache;for(var r=$d(t),i=qd(t,e.map(t,(function(e){return rc(e)||we}))),a=e.map(t,(function(e){return fp(e,i)||we})),o=0;o<t.length-1;o++)a=Wd(a,i);return a=Wd(a,r),n.baseSignatureCache=ip(n,qd(t,a),!0)}return n}function ll(n){if(!n.isolatedSignatureType){var t=n.declaration?n.declaration.kind:0,r=169===t||173===t||178===t,i=Zi(16);i.members=D,i.properties=e.emptyArray,i.callSignatures=r?e.emptyArray:[n],i.constructSignatures=r?[n]:e.emptyArray,i.indexInfos=e.emptyArray,n.isolatedSignatureType=i}return n.isolatedSignatureType}function ul(e){return e.members?dl(e.members):void 0}function dl(e){return e.get("__index")}function pl(e,n,t,r){return{keyType:e,type:n,isReadonly:t,declaration:r}}function fl(n){var t=ul(n);return t?ml(t):e.emptyArray}function ml(n){if(n.declarations){for(var t=[],r=function(n){if(1===n.parameters.length){var r=n.parameters[0];r.type&&R_(jd(r.type),(function(r){_l(r)&&!Ac(t,r)&&t.push(pl(r,n.type?jd(n.type):Ie,e.hasEffectiveModifier(n,64),n))}))}},i=0,a=n.declarations;i<a.length;i++)r(a[i]);return t}return e.emptyArray}function _l(n){return!!(4108&n.flags)||Xu(n)||!!(2097152&n.flags)&&!Zu(n)&&!Qu(n)&&e.some(n.types,_l)}function gl(n){return e.mapDefined(e.filter(n.symbol&&n.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function yl(n){if(!n.constraint)if(n.target){var t=rc(n.target);n.constraint=t?fp(t,n.mapper):hn}else{var r=gl(n);if(r){var i=jd(r);1&i.flags&&i!==Re&&(i=193===r.parent.parent.kind?sn:we),n.constraint=i}else n.constraint=function(n){var t,r;if(null===(t=n.symbol)||void 0===t?void 0:t.declarations)for(var i=0,a=n.symbol.declarations;i<a.length;i++){var o=a[i];if(188===o.parent.kind){var s=e.walkUpParenthesizedTypesAndGetParentAndChild(o.parent.parent),c=s[0],l=void 0===c?o.parent:c,u=s[1];if(176===u.kind){var d=u,p=Bb(d);if(p){var f=d.typeArguments.indexOf(l);if(f<p.length){var m=rc(p[f]);if(m){var _=fp(m,qd(p,Fb(d,p)));_!==n&&(r=e.append(r,_))}}}}else if(162===u.kind&&u.dotDotDotToken||184===u.kind||195===u.kind&&u.dotDotDotToken)r=e.append(r,ru(we));else if(197===u.kind)r=e.append(r,je);else if(161===u.kind&&193===u.parent.kind)r=e.append(r,sn);else if(193===u.kind&&u.type&&e.skipParentheses(u.type)===o.parent&&187===u.parent.kind&&u.parent.extendsType===u&&193===u.parent.checkType.kind&&u.parent.checkType.type){var g=u.parent.checkType,y=jd(g.type);r=e.append(r,fp(y,Yd(es(Ui(g.typeParameter)),g.typeParameter.constraint?jd(g.typeParameter.constraint):sn)))}}}return r&&ku(r)}(n)||hn}return n.constraint===hn?void 0:n.constraint}function hl(n){var t=e.getDeclarationOfKind(n.symbol,161),r=e.isJSDocTemplateTag(t.parent)?e.getHostSignatureFromJSDoc(t.parent):t.parent;return r&&Ui(r)}function vl(e){var n="";if(e)for(var t=e.length,r=0;r<t;){for(var i=e[r].id,a=1;r+a<t&&e[r+a].id===i+a;)a++;n.length&&(n+=","),n+=i,a>1&&(n+=":"+a),r+=a}return n}function bl(e,n){return e?"@"+P(e)+(n?":"+vl(n):""):""}function El(n,t){for(var r=0,i=0,a=n;i<a.length;i++){var o=a[i];o.flags&t||(r|=e.getObjectFlags(o))}return 917504&r}function Tl(e,n){var t=vl(n),r=e.instantiations.get(t);return r||(r=Zi(4,e.symbol),e.instantiations.set(t,r),r.objectFlags|=n?El(n,0):0,r.target=e,r.resolvedTypeArguments=n),r}function Sl(e){var n=Xi(e.flags);return n.symbol=e.symbol,n.objectFlags=e.objectFlags,n.target=e.target,n.resolvedTypeArguments=e.resolvedTypeArguments,n}function xl(e,n,t,r,i){if(!r){var a=Sd(r=Td(n));i=t?Wd(a,t):a}var o=Zi(4,e.symbol);return o.target=e,o.node=n,o.mapper=t,o.aliasSymbol=r,o.aliasTypeArguments=i,o}function Ll(n){var t,r;if(!n.resolvedTypeArguments){if(!wa(n,6))return(null===(t=n.target.localTypeParameters)||void 0===t?void 0:t.map((function(){return Re})))||e.emptyArray;var i=n.node,a=i?176===i.kind?e.concatenate(n.target.outerTypeParameters,Fb(i,n.target.localTypeParameters)):181===i.kind?[jd(i.elementType)]:e.map(i.elements,jd):e.emptyArray;Ga()?n.resolvedTypeArguments=n.mapper?Wd(a,n.mapper):a:(n.resolvedTypeArguments=(null===(r=n.target.localTypeParameters)||void 0===r?void 0:r.map((function(){return Re})))||e.emptyArray,xr(n.node||d,n.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&va(n.target.symbol)))}return n.resolvedTypeArguments}function Dl(n){return e.length(n.target.typeParameters)}function Al(n,t){var r=ns(Bi(t)),i=r.localTypeParameters;if(i){var a=e.length(n.typeArguments),o=Hc(i),s=e.isInJSFile(n);if((Y||!s)&&(a<o||a>i.length)){var c=s&&e.isExpressionWithTypeArguments(n)&&!e.isJSDocAugmentsTag(n.parent);if(xr(n,o===i.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?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,Ea(r,void 0,2),o,i.length),!s)return Re}return 176===n.kind&&ou(n,e.length(n.typeArguments)!==i.length)?xl(r,n,void 0):Tl(r,e.concatenate(r.outerTypeParameters,Wc(Vl(n),i,o,s)))}return Gl(n,t)?r:Re}function Cl(n,t,r,i){var a=ns(n);if(a===Pe&&N.has(n.escapedName)&&t&&1===t.length)return ju(n,t[0]);var o=Br(n),s=o.typeParameters,c=vl(t)+bl(r,i),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=mp(a,qd(s,Wc(t,s,Hc(s),e.isInJSFile(n.valueDeclaration))),r,i)),l}function Il(n){var t,r=null===(t=n.declarations)||void 0===t?void 0:t.find(e.isTypeAlias);return!(!r||!e.getContainingFunction(r))}function Nl(n){switch(n.kind){case 176:return n.typeName;case 226:var t=n.expression;if(e.isEntityNameExpression(t))return t}}function kl(e,n,t){return e&&Si(e,n,t)||Ae}function Rl(n,t){if(t===Ae)return Re;if(96&(t=function(n){var t=n.valueDeclaration;if(t&&e.isInJSFile(t)&&!(524288&n.flags)&&!e.getExpandoInitializer(t,!1)){var r=e.isVariableDeclaration(t)?e.getDeclaredExpandoInitializer(t):e.getAssignedExpandoInitializer(t);if(r){var i=Ui(r);if(i)return nv(i,n)}}}(t)||t).flags)return Al(n,t);if(524288&t.flags)return function(n,t){var r=ns(t),i=Br(t).typeParameters;if(i){var a=e.length(n.typeArguments),o=Hc(i);if(a<o||a>i.length)return xr(n,o===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,va(t),o,i.length),Re;var s=Td(n),c=!s||!Il(t)&&Il(s)?void 0:s;return Cl(t,Vl(n),c,Sd(c))}return Gl(n,t)?r:Re}(n,t);var r=ts(t);if(r)return Gl(n,t)?Rd(r):Re;if(111551&t.flags&&Fl(n)){var i=function(e,n){var t=Ur(e);if(!t.resolvedJSDocType){var r=Ao(n),i=r;if(n.valueDeclaration){var a=198===e.kind&&e.qualifier;r.symbol&&r.symbol!==n&&a&&(i=Rl(e,r.symbol))}t.resolvedJSDocType=i}return t.resolvedJSDocType}(n,t);return i||(kl(Nl(n),788968),Ao(t))}return Re}function Ol(e,n){if(3&n.flags||n===e)return e;var t=yu(e)+">"+yu(n),r=Se.get(t);if(r)return r;var i=Xi(33554432);return i.baseType=e,i.substitute=n,Se.set(t,i),i}function Pl(e){return 182===e.kind&&1===e.elements.length}function wl(e,n,t){return Pl(n)&&Pl(t)?wl(e,n.elements[0],t.elements[0]):ud(jd(n))===e?jd(t):void 0}function Ml(n,t){for(var r,i=!0;t&&!e.isStatement(t)&&315!==t.kind;){var a=t.parent;if(162===a.kind&&(i=!i),(i||8650752&n.flags)&&187===a.kind&&t===a.trueType){var o=wl(n,a.checkType,a.extendsType);o&&(r=e.append(r,o))}t=a}return r?Ol(n,ku(e.append(r,n))):n}function Fl(e){return!!(4194304&e.flags)&&(176===e.kind||198===e.kind)}function Gl(n,t){return!n.typeArguments||(xr(n,e.Diagnostics.Type_0_is_not_generic,t?va(t):n.typeName?e.declarationNameToString(n.typeName):l),!1)}function Bl(n){if(e.isIdentifier(n.typeName)){var t=n.typeArguments;switch(n.typeName.escapedText){case"String":return Gl(n),je;case"Number":return Gl(n),Ke;case"Boolean":return Gl(n),Xe;case"Void":return Gl(n),Qe;case"Undefined":return Gl(n),Me;case"Null":return Gl(n),Ue;case"Function":case"function":return Gl(n),Cn;case"array":return t&&t.length||Y?void 0:Gn;case"promise":return t&&t.length||Y?void 0:kv(Ie);case"Object":if(t&&2===t.length){if(e.isJSDocIndexSignature(n)){var r=jd(t[0]),i=jd(t[1]),a=r===je||r===Ke?[pl(r,i,!1)]:e.emptyArray;return ra(void 0,D,e.emptyArray,e.emptyArray,a)}return Ie}return Gl(n),Y?void 0:Ie}}}function Ul(n){var t=Ur(n);if(!t.resolvedType){if(e.isConstTypeReference(n)&&e.isAssertionExpression(n.parent))return t.resolvedSymbol=Ae,t.resolvedType=ub(n.parent.expression);var r=void 0,i=void 0,a=788968;Fl(n)&&((i=Bl(n))||((r=kl(Nl(n),a,!0))===Ae?r=kl(Nl(n),900095):kl(Nl(n),a),i=Rl(n,r))),i||(i=Rl(n,r=kl(Nl(n),a))),t.resolvedSymbol=r,t.resolvedType=i}return t.resolvedType}function Vl(n){return e.map(n.typeArguments,jd)}function jl(n){var t=Ur(n);if(!t.resolvedType){var r=e.isThisIdentifier(n.exprName)?bg(n.exprName):Ab(n.exprName);t.resolvedType=Rd(mm(r))}return t.resolvedType}function Kl(n,t){function r(e){var n=e.declarations;if(n)for(var t=0,r=n;t<r.length;t++){var i=r[t];switch(i.kind){case 255:case 256:case 258:return i}}}if(!n)return t?gn:pn;var i=ns(n);return 524288&i.flags?e.length(i.typeParameters)!==t?(xr(r(n),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(n),t),t?gn:pn):i:(xr(r(n),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(n)),t?gn:pn)}function Hl(n,t){return zl(n,111551,t?e.Diagnostics.Cannot_find_global_value_0:void 0)}function Wl(n,t){return zl(n,788968,t?e.Diagnostics.Cannot_find_global_type_0:void 0)}function zl(e,n,t){return Wr(void 0,e,n,t,e,!1)}function Jl(e,n,t){var r=Wl(e,t);return r||t?Kl(r,n):void 0}function ql(){return st||(st=Jl("ImportMeta",0,!0))||pn}function Xl(e){return jn||(jn=Hl("Symbol",e))}function Yl(e){return Hn||(Hn=Jl("Symbol",0,e))||pn}function Ql(e){return zn||(zn=Jl("Promise",1,e))||gn}function Zl(e){return qn||(qn=Hl("Promise",e))}function $l(e){return Yn||(Yn=Jl("Iterable",1,e))||gn}function eu(e,n){void 0===n&&(n=0);var t=zl(e,788968,void 0);return t&&Kl(t,n)}function nu(e,n){return e!==gn?Tl(e,n):pn}function tu(e){return nu(Wn||(Wn=Jl("TypedPropertyDescriptor",1,!0))||gn,[e])}function ru(e,n){return nu(n?Rn:kn,[e])}function iu(e){switch(e.kind){case 183:return 2;case 184:return au(e);case 195:return e.questionToken?2:e.dotDotDotToken?au(e):1;default:return 1}}function au(e){return Vd(e.type)?4:8}function ou(n,t){return!!Td(n)||su(n)&&(181===n.kind?cu(n.elementType):182===n.kind?e.some(n.elements,cu):t||e.some(n.typeArguments,cu))}function su(e){var n=e.parent;switch(n.kind){case 189:case 195:case 176:case 185:case 186:case 192:case 187:case 191:case 181:case 182:return su(n);case 257:return!0}return!1}function cu(n){switch(n.kind){case 176:return Fl(n)||!!(524288&kl(n.typeName,788968).flags);case 179:return!0;case 191:return 152!==n.operator&&cu(n.type);case 189:case 183:case 195:case 311:case 309:case 310:case 304:return cu(n.type);case 184:return 181!==n.type.kind||cu(n.type.elementType);case 185:case 186:return e.some(n.types,cu);case 192:return cu(n.objectType)||cu(n.indexType);case 187:return cu(n.checkType)||cu(n.extendsType)||cu(n.trueType)||cu(n.falseType)}return!1}function lu(n,t,r,i){void 0===r&&(r=!1);var a=uu(t||e.map(n,(function(e){return 1})),r,i);return a===gn?pn:n.length?du(a,n):a}function uu(n,t,r){if(1===n.length&&4&n[0])return t?Rn:kn;var i=e.map(n,(function(e){return 1&e?"#":2&e?"?":4&e?".":"*"})).join()+(t?"R":"")+(r&&r.length?","+e.map(r,O).join(","):""),a=fe.get(i);return a||fe.set(i,a=function(n,t,r){var i,a=n.length,o=e.countWhere(n,(function(e){return!!(9&e)})),s=[],c=0;if(a){i=new Array(a);for(var l=0;l<a;l++){var u=i[l]=$i(),d=n[l];if(!(12&(c|=d))){var p=Nr(4|(2&d?16777216:0),""+l,t?8:0);p.tupleLabelDeclaration=null==r?void 0:r[l],p.type=u,s.push(p)}}}var f=s.length,m=Nr(4,"length");if(12&c)m.type=Ke;else{var _=[];for(l=o;l<=a;l++)_.push(wd(l));m.type=xu(_)}s.push(m);var g=Zi(12);return g.typeParameters=i,g.outerTypeParameters=void 0,g.localTypeParameters=i,g.instantiations=new e.Map,g.instantiations.set(vl(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=$i(),g.thisType.isThisType=!0,g.thisType.constraint=g,g.declaredProperties=s,g.declaredCallSignatures=e.emptyArray,g.declaredConstructSignatures=e.emptyArray,g.declaredIndexInfos=e.emptyArray,g.elementFlags=n,g.minLength=o,g.fixedLength=f,g.hasRestElement=!!(12&c),g.combinedFlags=c,g.readonly=t,g.labeledElementDeclarations=r,g}(n,t,r)),a}function du(e,n){return 8&e.objectFlags?pu(e,n):Tl(e,n)}function pu(n,t){var r,i,a;if(!(14&n.combinedFlags))return Tl(n,t);if(8&n.combinedFlags){var o=e.findIndex(t,(function(e,t){return!!(8&n.elementFlags[t]&&1179648&e.flags)}));if(o>=0)return Ou(e.map(t,(function(e,t){return 8&n.elementFlags[t]?e:we})))?G_(t[o],(function(r){return pu(n,e.replaceElement(t,o,r))})):Re}for(var s=[],c=[],l=[],u=-1,p=-1,f=-1,m=function(o){var c=t[o],l=n.elementFlags[o];if(8&l)if(58982400&c.flags||Ys(c))h(c,8,null===(r=n.labeledElementDeclarations)||void 0===r?void 0:r[o]);else if(Uf(c)){var u=Ll(c);if(u.length+s.length>=1e4)return xr(d,e.isPartOfTypeNode(d)?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:Re};e.forEach(u,(function(e,n){var t;return h(e,c.target.elementFlags[n],null===(t=c.target.labeledElementDeclarations)||void 0===t?void 0:t[n])}))}else h(Lf(c)&&Oc(c,Ke)||Re,4,null===(i=n.labeledElementDeclarations)||void 0===i?void 0:i[o]);else h(c,l,null===(a=n.labeledElementDeclarations)||void 0===a?void 0:a[o])},_=0;_<t.length;_++){var g=m(_);if("object"==typeof g)return g.value}for(_=0;_<u;_++)2&c[_]&&(c[_]=1);p>=0&&p<f&&(s[p]=xu(e.sameMap(s.slice(p,f+1),(function(e,n){return 8&c[p+n]?ad(e,Ke):e}))),s.splice(p+1,f-p),c.splice(p+1,f-p),null==l||l.splice(p+1,f-p));var y=uu(c,n.readonly,l);return y===gn?pn:c.length?Tl(y,s):y;function h(e,n,t){1&n&&(u=c.length),4&n&&p<0&&(p=c.length),6&n&&(f=c.length),s.push(e),c.push(n),l&&t?l.push(t):l=void 0}}function fu(n,t,r){void 0===r&&(r=0);var i=n.target,a=Dl(n)-r;return t>i.fixedLength?function(e){var n=Kf(e);return n&&ru(n)}(n)||lu(e.emptyArray):lu(Ll(n).slice(t,a),i.elementFlags.slice(t,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(t,a))}function mu(n){return xu(e.append(e.arrayOf(n.target.fixedLength,(function(e){return Pd(""+e)})),Gu(n.target.readonly?Rn:kn)))}function _u(n,t){var r=e.findIndex(n.elementFlags,(function(e){return!(e&t)}));return r>=0?r:n.elementFlags.length}function gu(n,t){return n.elementFlags.length-e.findLastIndex(n.elementFlags,(function(e){return!(e&t)}))-1}function yu(e){return e.id}function hu(n,t){return e.binarySearch(n,t,yu,e.compareValues)>=0}function vu(n,t){var r=e.binarySearch(n,t,yu,e.compareValues);return r<0&&(n.splice(~r,0,t),!0)}function bu(n,t,r){var i=r.flags;if(1048576&i)return Eu(n,t|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(r)?1048576:0),r.types);if(!(131072&i))if(t|=205258751&i,469499904&i&&(t|=262144),r===ke&&(t|=8388608),!z&&98304&i)131072&e.getObjectFlags(r)||(t|=4194304);else{var a=n.length,o=a&&r.id>n[a-1].id?~a:e.binarySearch(n,r,yu,e.compareValues);o<0&&n.splice(~o,0,r)}return t}function Eu(e,n,t){for(var r=0,i=t;r<i.length;r++)n=bu(e,n,i[r]);return n}function Tu(n,t){for(var r=0,i=t;r<i.length;r++){var a=i[r];if(1048576&a.flags){var o=a.origin;a.aliasSymbol||o&&!(1048576&o.flags)?e.pushIfUnique(n,a):o&&1048576&o.flags&&Tu(n,o.types)}}}function Su(e,n){var t=Yi(e);return t.types=n,t}function xu(n,t,r,i,a){if(void 0===t&&(t=1),0===n.length)return Ze;if(1===n.length)return n[0];var o=[],s=Eu(o,0,n);if(0!==t){if(3&s)return 1&s?8388608&s?ke:Ie:we;if(ne&&32768&s){var c=e.binarySearch(o,Be,yu,e.compareValues);c>=0&&hu(o,Me)&&e.orderedRemoveItemAt(o,c)}if((402664320&s||16384&s&&32768&s)&&function(n,t,r){for(var i=n.length;i>0;){var a=n[--i],o=a.flags;(402653312&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||r&&32768&o&&16384&t||Od(a)&&hu(n,a.regularType))&&e.orderedRemoveItemAt(n,i)}}(o,s,!!(2&t)),128&s&&134217728&s&&function(n){var t=e.filter(n,Xu);if(t.length)for(var r=n.length,i=function(){r--;var i=n[r];128&i.flags&&e.some(t,(function(e){return Dp(i,e)}))&&e.orderedRemoveItemAt(n,r)};r>0;)i()}(o),2===t&&(o=function(n,t){var r=vl(n),i=xe.get(r);if(i)return i;for(var a=t&&e.some(n,(function(e){return!!(524288&e.flags)&&!Ys(e)&&Kp(Qs(e))})),o=n.length,s=o,c=0;s>0;){var l=n[--s];if(a||469499904&l.flags)for(var u=61603840&l.flags?e.find(nc(l),(function(e){return Rf(Ao(e))})):void 0,p=u&&Rd(Ao(u)),f=0,m=n;f<m.length;f++){var _=m[f];if(l!==_){if(1e5===c&&c/(o-s)*o>1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:n.map((function(e){return e.id}))}),void xr(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(c++,u&&61603840&_.flags){var g=Ua(_,u.escapedName);if(g&&Rf(g)&&Rd(g)!==p)continue}if(Xp(l,_,_r)&&(!(1&e.getObjectFlags(No(l)))||!(1&e.getObjectFlags(No(_)))||Cp(l,_))){e.orderedRemoveItemAt(n,s);break}}}}return xe.set(r,n),n}(o,!!(524288&s)),!o))return Re;if(0===o.length)return 65536&s?4194304&s?Ue:Ve:32768&s?4194304&s?Me:Fe:Ze}if(!a&&1048576&s){var l=[];Tu(l,n);for(var u=[],p=function(n){e.some(l,(function(e){return hu(e.types,n)}))||u.push(n)},f=0,m=o;f<m.length;f++)p(m[f]);if(!r&&1===l.length&&0===u.length)return l[0];if(e.reduceLeft(l,(function(e,n){return e+n.types.length}),0)+u.length===o.length){for(var _=0,g=l;_<g.length;_++)vu(u,g[_]);a=Su(1048576,u)}}return Du(o,(468598819&s?0:65536)|(2097152&s?33554432:0),r,i,a)}function Lu(e,n){return e.kind===n.kind&&e.parameterIndex===n.parameterIndex}function Du(e,n,t,r,i){if(0===e.length)return Ze;if(1===e.length)return e[0];var a=(i?1048576&i.flags?"|"+vl(i.types):2097152&i.flags?"&"+vl(i.types):"#"+i.type.id+"|"+vl(e):vl(e))+bl(t,r),o=me.get(a);return o||((o=Xi(1048576)).objectFlags=n|El(e,98304),o.types=e,o.origin=i,o.aliasSymbol=t,o.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(o.flags|=16,o.intrinsicName="boolean"),me.set(a,o)),o}function Au(e,n,t){var r=t.flags;return 2097152&r?Cu(e,n,t.types):(Wp(t)?16777216&n||(n|=16777216,e.set(t.id.toString(),t)):(3&r?t===ke&&(n|=8388608):!z&&98304&r||e.has(t.id.toString())||(109440&t.flags&&109440&n&&(n|=67108864),e.set(t.id.toString(),t)),n|=205258751&r),n)}function Cu(e,n,t){for(var r=0,i=t;r<i.length;r++)n=Au(e,n,Rd(i[r]));return n}function Iu(e,n){for(var t=0,r=e;t<r.length;t++){var i=r[t];if(!hu(i.types,n)){var a=128&n.flags?je:256&n.flags?Ke:2048&n.flags?He:8192&n.flags?Ye:void 0;if(!a||!hu(i.types,a))return!1}}return!0}function Nu(n,t){if(e.every(n,(function(n){return!!(1048576&n.flags)&&e.some(n.types,(function(e){return!!(e.flags&t)}))}))){for(var r=0;r<n.length;r++)n[r]=w_(n[r],(function(e){return!(e.flags&t)}));return!0}return!1}function ku(n,t,r){var i=new e.Map,a=Cu(i,0,n),o=e.arrayFrom(i.values());if(131072&a)return e.contains(o,$e)?$e:Ze;if(z&&98304&a&&84410368&a||67108864&a&&402783228&a||402653316&a&&67238776&a||296&a&&469891796&a||2112&a&&469889980&a||12288&a&&469879804&a||49152&a&&469842940&a)return Ze;if(134217728&a&&128&a&&function(n){for(var t=n.length,r=e.filter(n,(function(e){return!!(128&e.flags)}));t>0;){var i=n[--t];if(134217728&i.flags)for(var a=0,o=r;a<o.length;a++){if(Dp(o[a],i)){e.orderedRemoveItemAt(n,t);break}if(Xu(i))return!0}}return!1}(o))return Ze;if(1&a)return 8388608&a?ke:Ie;if(!z&&98304&a)return 32768&a?Me:Ue;if((4&a&&128&a||8&a&&256&a||64&a&&2048&a||4096&a&&8192&a)&&function(n,t){for(var r=n.length;r>0;){var i=n[--r];(4&i.flags&&128&t||8&i.flags&&256&t||64&i.flags&&2048&t||4096&i.flags&&8192&t)&&e.orderedRemoveItemAt(n,r)}}(o,a),16777216&a&&524288&a&&e.orderedRemoveItemAt(o,e.findIndex(o,Wp)),0===o.length)return we;if(1===o.length)return o[0];var s=vl(o)+bl(t,r),c=_e.get(s);if(!c){if(1048576&a)if(function(n){var t,r=e.findIndex(n,(function(n){return!!(65536&e.getObjectFlags(n))}));if(r<0)return!1;for(var i=r+1;i<n.length;){var a=n[i];65536&e.getObjectFlags(a)?((t||(t=[n[r]])).push(a),e.orderedRemoveItemAt(n,i)):i++}if(!t)return!1;for(var o=[],s=[],c=0,l=t;c<l.length;c++)for(var u=0,d=l[c].types;u<d.length;u++)vu(o,a=d[u])&&Iu(t,a)&&vu(s,a);return n[r]=Du(s,65536),!0}(o))c=ku(o,t,r);else if(Nu(o,32768))c=xu([ku(o),Me],1,t,r);else if(Nu(o,65536))c=xu([ku(o),Ue],1,t,r);else{if(!Ou(o))return Re;var l=function(e){for(var n=Ru(e),t=[],r=0;r<n;r++){for(var i=e.slice(),a=r,o=e.length-1;o>=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;i[o]=s[a%c],a=Math.floor(a/c)}var l=ku(i);131072&l.flags||t.push(l)}return t}(o);c=xu(l,1,t,r,e.some(l,(function(e){return!!(2097152&e.flags)}))?Su(2097152,o):void 0)}else c=function(e,n,t){var r=Xi(2097152);return r.objectFlags=El(e,98304),r.types=e,r.aliasSymbol=n,r.aliasTypeArguments=t,r}(o,t,r);_e.set(s,c)}return c}function Ru(n){return e.reduceLeft(n,(function(e,n){return 1048576&n.flags?e*n.types.length:131072&n.flags?0:e}),1)}function Ou(n){var t=Ru(n);return!(t>=1e5&&(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:n.map((function(e){return e.id})),size:t}),xr(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function Pu(e,n){var t=Xi(4194304);return t.type=e,t.stringsOnly=n,t}function wu(e,n,t){return fp(e,tp(n.mapper,Us(n),t))}function Mu(n){return e.isPrivateIdentifier(n)?Ze:e.isIdentifier(n)?Pd(e.unescapeLeadingUnderscores(n.escapedText)):Rd(e.isComputedPropertyName(n)?ry(n):Ab(n))}function Fu(n,t,r){if(r||!(24&e.getDeclarationModifierFlagsFromSymbol(n))){var i=Br(bs(n)).nameType;if(!i){var a=e.getNameOfDeclaration(n.valueDeclaration);i="default"===n.escapedName?Pd("default"):a&&Mu(a)||(e.isKnownSymbol(n)?void 0:Pd(e.symbolName(n)))}if(i&&i.flags&t)return i}return Ze}function Gu(n,t,r){return void 0===t&&(t=$),1048576&(n=vc(n)).flags?ku(e.map(n.types,(function(e){return Gu(e,t,r)}))):2097152&n.flags?xu(e.map(n.types,(function(e){return Gu(e,t,r)}))):58982400&n.flags||Vf(n)||Ys(n)&&(a=Us(i=n),!function n(t){return!!(68157439&t.flags)||(16777216&t.flags?t.root.isDistributive&&t.checkType===a:137363456&t.flags?e.every(t.types,n):8388608&t.flags?n(t.objectType)&&n(t.indexType):33554432&t.flags?n(t.substitute):!!(268435456&t.flags)&&n(t.type))}(js(i)||a))?function(e,n){return n?e.resolvedStringIndexType||(e.resolvedStringIndexType=Pu(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=Pu(e,!1))}(n,t):32&e.getObjectFlags(n)?function(n,t){var r=w_(Vs(n),(function(e){return!(t&&5&e.flags)})),i=n.declaration.nameType&&jd(n.declaration.nameType),a=i&&P_(r,(function(e){return!!(131084&e.flags)}))&&nc(mc(zs(n)));return i?xu([G_(r,(function(e){return wu(i,n,e)})),G_(xu(e.map(a||e.emptyArray,(function(e){return Fu(e,8576)}))),(function(e){return wu(i,n,e)}))]):r}(n,r):n===ke?ke:2&n.flags?Ze:131073&n.flags?sn:function(n,t,r){var i=r&&(7&e.getObjectFlags(n)||n.aliasSymbol)?function(e){var n=Yi(4194304);return n.type=e,n}(n):void 0,a=e.map(nc(n),(function(e){return Fu(e,t)})),o=e.map(kc(n),(function(e){return e!==xt&&e.keyType.flags&t?e.keyType===je&&8&t?an:e.keyType:Ze}));return xu(e.concatenate(a,o),1,void 0,void 0,i)}(n,(r?128:402653316)|(t?0:12584),t===$&&!r);var i,a}function Bu(n){if($)return n;var t=lt||(lt=zl("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return t?Cl(t,[n,je]):je}function Uu(n,t){var r=e.findIndex(t,(function(e){return!!(1179648&e.flags)}));if(r>=0)return Ou(t)?G_(t[r],(function(i){return Uu(n,e.replaceElement(t,r,i))})):Re;if(e.contains(t,ke))return ke;var i=[],a=[],o=n[0];if(!function e(n,t){for(var r=0;r<t.length;r++){var s=t[r];if(101248&s.flags)o+=Vu(s)||"",o+=n[r+1];else if(134217728&s.flags){if(o+=s.texts[0],!e(s.texts,s.types))return!1;o+=n[r+1]}else{if(!Zu(s)&&!qu(s))return!1;i.push(s),a.push(o),o=n[r+1]}}return!0}(n,t))return je;if(0===i.length)return Pd(o);if(a.push(o),e.every(a,(function(e){return""===e}))&&e.every(i,(function(e){return!!(4&e.flags)})))return je;var s=vl(i)+"|"+e.map(a,(function(e){return e.length})).join(",")+"|"+a.join(""),c=Ee.get(s);return c||Ee.set(s,c=function(e,n){var t=Xi(134217728);return t.texts=e,t.types=n,t}(a,i)),c}function Vu(n){return 128&n.flags?n.value:256&n.flags?""+n.value:2048&n.flags?e.pseudoBigIntToString(n.value):98816&n.flags?n.intrinsicName:void 0}function ju(e,n){return 1179648&n.flags?G_(n,(function(n){return ju(e,n)})):Zu(n)?function(e,n){var t=P(e)+","+yu(n),r=Te.get(t);return r||Te.set(t,r=function(e,n){var t=Xi(268435456);return t.symbol=e,t.type=n,t}(e,n)),r}(e,n):128&n.flags?Pd(function(e,n){switch(N.get(e.escapedName)){case 0:return n.toUpperCase();case 1:return n.toLowerCase();case 2:return n.charAt(0).toUpperCase()+n.slice(1);case 3:return n.charAt(0).toLowerCase()+n.slice(1)}return n}(e,n.value)):n}function Ku(n){if(Y)return!1;if(8192&e.getObjectFlags(n))return!0;if(1048576&n.flags)return e.every(n.types,Ku);if(2097152&n.flags)return e.some(n.types,Ku);if(465829888&n.flags){var t=dc(n);return t!==n&&Ku(t)}return!1}function Hu(n,t){return ds(n)?gs(n):t&&e.isPropertyName(t)?e.getPropertyNameForPropertyNameNode(t):void 0}function Wu(n,t){if(8208&t.flags){var r=e.findAncestor(n.parent,(function(n){return!e.isAccessExpression(n)}))||n.parent;return e.isCallLikeExpression(r)?e.isCallOrNewExpression(r)&&e.isIdentifier(n)&&d_(r,n):e.every(t.declarations,(function(n){return!e.isFunctionLike(n)||!!(134217728&e.getCombinedNodeFlags(n))}))}return!0}function zu(n,t,r,i,a,o){var s,c=a&&205===a.kind?a:void 0,l=a&&e.isPrivateIdentifier(a)?void 0:Hu(r,a);if(void 0!==l){if(256&o)return Mg(t,l)||Ie;var u=xc(t,l);if(u){if(64&o&&a&&u.declarations&&134217728&Cy(u)&&Wu(a,u)&&Ir(null!==(s=null==c?void 0:c.argumentExpression)&&void 0!==s?s:e.isIndexedAccessTypeNode(a)?a.indexType:a,u.declarations,l),c){if(ah(u,c,oh(c.expression,t.symbol)),zv(c,u,e.getAssignmentTargetKind(c)))return void xr(c.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,va(u));if(8&o&&(Ur(a).resolvedSymbol=u),Wy(c,u))return Ne}var d=Ao(u);return c&&1!==e.getAssignmentTargetKind(c)?og(c,d):d}if(P_(t,Uf)&&ty(l)&&+l>=0){if(a&&P_(t,(function(e){return!e.target.hasRestElement}))&&!(16&o)){var p=Ju(a);Uf(t)?xr(p,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Ea(t),Dl(t),e.unescapeLeadingUnderscores(l)):xr(p,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),Ea(t))}return b(Rc(t,Ke)),G_(t,(function(e){var n=Kf(e)||Me;return 1&o?xu([n,Me]):n}))}}if(!(98304&r.flags)&&Yv(r,402665900)){if(131073&t.flags)return t;var f=wc(t,r)||Rc(t,je);if(f)return 2&o&&f.keyType!==Ke?void(c&&xr(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Ea(r),Ea(n))):a&&f.keyType===je&&!Yv(r,12)?(xr(p=Ju(a),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Ea(r)),1&o?xu([f.type,Me]):f.type):(b(f),1&o?xu([f.type,Me]):f.type);if(131072&r.flags)return Ze;if(Ku(t))return Ie;if(c&&!Zv(t)){if(Wm(t)){if(Y&&384&r.flags)return ur.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,Ea(t))),Me;if(12&r.flags){var m=e.map(t.properties,(function(e){return Ao(e)}));return xu(e.append(m,Me))}}if(t.symbol===se&&void 0!==l&&se.exports.has(l)&&418&se.exports.get(l).flags)xr(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),Ea(t));else if(Y&&!V.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==l&&Qy(l,t)){var _=Ea(t);xr(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,_,_+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(Oc(t,Ke))xr(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var g=void 0;if(void 0!==l&&(g=nh(l,t)))void 0!==g&&xr(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,Ea(t),g);else{var y=function(n,t,r){var i=e.isAssignmentTarget(t)?"set":"get";if(function(e){var t=$s(n,e);if(t){var i=bh(Ao(t));return!!i&&Tv(i)>=1&&Ap(r,hv(i,0))}return!1}(i)){var a=e.tryGetPropertyAccessOrIdentifierToString(t.expression);return void 0===a?a=i:a+="."+i,a}}(t,c,r);if(void 0!==y)xr(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Ea(t),y);else{var h=void 0;if(1024&r.flags)h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Ea(r)+"]",Ea(t));else if(8192&r.flags){var v=Ti(r.symbol,c);h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+v+"]",Ea(t))}else 128&r.flags||256&r.flags?h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,Ea(t)):12&r.flags&&(h=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Ea(r),Ea(t)));h=e.chainDiagnosticMessages(h,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Ea(i),Ea(t)),ur.add(e.createDiagnosticForNodeFromMessageChain(c,h))}}}return}}return Ku(t)?Ie:(a&&(p=Ju(a),384&r.flags?xr(p,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,Ea(t)):12&r.flags?xr(p,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Ea(t),Ea(r)):xr(p,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Ea(r))),Va(r)?r:void 0);function b(n){n&&n.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&xr(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ea(t))}}function Ju(e){return 205===e.kind?e.argumentExpression:192===e.kind?e.indexType:160===e.kind?e.expression:e}function qu(e){return!!(77&e.flags)}function Xu(n){return!!(134217728&n.flags)&&e.every(n.types,qu)}function Yu(e){return!!$u(e)}function Qu(e){return!!(8388608&$u(e))}function Zu(e){return!!(16777216&$u(e))}function $u(n){return 3145728&n.flags?(4194304&n.objectFlags||(n.objectFlags|=4194304|e.reduceLeft(n.types,(function(e,n){return e|$u(n)}),0)),25165824&n.objectFlags):33554432&n.flags?(4194304&n.objectFlags||(n.objectFlags|=4194304|$u(n.substitute)|$u(n.baseType)),25165824&n.objectFlags):(58982400&n.flags||Ys(n)||Vf(n)?8388608:0)|(465829888&n.flags&&!Xu(n)?16777216:0)}function ed(e){return!!(262144&e.flags&&e.isThisType)}function nd(n,t){return 8388608&n.flags?function(n,t){var r=t?"simplifiedForWriting":"simplifiedForReading";if(n[r])return n[r]===vn?n:n[r];n[r]=vn;var i=nd(n.objectType,t),a=nd(n.indexType,t),o=function(n,t,r){if(1048576&t.flags){var i=e.map(t.types,(function(e){return nd(ad(n,e),r)}));return r?ku(i):xu(i)}}(i,a,t);if(o)return n[r]=o;if(!(465829888&a.flags)){var s=td(i,a,t);if(s)return n[r]=s}if(Vf(i)&&296&a.flags){var c=Hf(i,8&a.flags?0:i.target.fixedLength,0,t);if(c)return n[r]=c}return Ys(i)?n[r]=G_(id(i,n.indexType),(function(e){return nd(e,t)})):n[r]=n}(n,t):16777216&n.flags?function(e,n){var t=e.checkType,r=e.extendsType,i=_d(e),a=gd(e);if(131072&a.flags&&ud(i)===ud(t)){if(1&t.flags||Ap(gp(t),gp(r)))return nd(i,n);if(rd(t,r))return Ze}else if(131072&i.flags&&ud(a)===ud(t)){if(!(1&t.flags)&&Ap(gp(t),gp(r)))return Ze;if(1&t.flags||rd(t,r))return nd(a,n)}return e}(n,t):n}function td(n,t,r){if(3145728&n.flags){var i=e.map(n.types,(function(e){return nd(ad(e,t),r)}));return 2097152&n.flags||r?ku(i):xu(i)}}function rd(e,n){return!!(131072&xu([Os(e,n),Ze]).flags)}function id(e,n){var t=qd([Us(e)],[n]),r=ep(e.mapper,t);return fp(Ks(e),r)}function ad(e,n,t,r,i,a){return void 0===t&&(t=0),sd(e,n,t,r,i,a)||(r?Re:we)}function od(e,n){return P_(e,(function(e){if(384&e.flags){var t=gs(e);if(ty(t)){var r=+t;return r>=0&&r<n}}return!1}))}function sd(e,n,t,r,i,a){if(void 0===t&&(t=0),e===ke||n===ke)return ke;if(!zp(e)||98304&n.flags||!Yv(n,12)||(n=je),V.noUncheckedIndexedAccess&&32&t&&(t|=1),Zu(n)||(r&&192!==r.kind?Vf(e)&&!od(n,e.target.fixedLength):Qu(e)&&(!Uf(e)||!od(n,e.target.fixedLength)))){if(3&e.flags)return e;var o=1&t,s=e.id+","+n.id+","+o+bl(i,a),c=be.get(s);return c||be.set(s,c=function(e,n,t,r,i){var a=Xi(8388608);return a.objectType=e,a.indexType=n,a.accessFlags=t,a.aliasSymbol=r,a.aliasTypeArguments=i,a}(e,n,o,i,a)),c}var l=_c(e);if(1048576&n.flags&&!(16&n.flags)){for(var u=[],d=!1,p=0,f=n.types;p<f.length;p++){var m=zu(e,l,f[p],n,r,t|(d?128:0));if(m)u.push(m);else{if(!r)return;d=!0}}if(d)return;return 4&t?ku(u,i,a):xu(u,1,i,a)}return zu(e,l,n,n,r,72|t)}function cd(e){var n=Ur(e);if(!n.resolvedType){var t=jd(e.objectType),r=jd(e.indexType),i=Td(e),a=ad(t,r,0,e,i,Sd(i));n.resolvedType=8388608&a.flags&&a.objectType===t&&a.indexType===r?Ml(a,e):a}return n.resolvedType}function ld(e){var n=Ur(e);if(!n.resolvedType){var t=Zi(32,e.symbol);t.declaration=e,t.aliasSymbol=Td(e),t.aliasTypeArguments=Sd(t.aliasSymbol),n.resolvedType=t,Vs(t)}return n.resolvedType}function ud(e){return 33554432&e.flags?e.baseType:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?ad(ud(e.objectType),ud(e.indexType)):e}function dd(e){return!e.isDistributive&&pd(e.node.checkType)&&pd(e.node.extendsType)}function pd(n){return e.isTupleTypeNode(n)&&1===e.length(n.elements)&&!e.isOptionalTypeNode(n.elements[0])&&!e.isRestTypeNode(n.elements[0])}function fd(e,n){return dd(e)&&Uf(n)?Ll(n)[0]:n}function md(n,t,r,i){for(var a,o;;){var s=dd(n),c=fp(fd(n,ud(n.checkType)),t),l=Yu(c),u=fp(fd(n,n.extendsType),t);if(c===ke||u===ke)return ke;var d=void 0;if(n.inferTypeParameters){var p=Em(n.inferTypeParameters,void 0,0);l||jm(p.inferences,c,u,1536),d=t?ep(p.mapper,t):p.mapper}var f=d?fp(fd(n,n.extendsType),d):u;if(!l&&!Yu(f)){if(!(3&f.flags)&&(1&c.flags&&!s||!Ap(_p(c),_p(f)))){1&c.flags&&!s&&(o||(o=[])).push(fp(jd(n.node.trueType),d||t));var m=jd(n.node.falseType);if(16777216&m.flags){var _=m.root;if(_.node.parent===n.node&&(!_.isDistributive||_.checkType===n.checkType)){n=_;continue}}a=fp(m,t);break}if(3&f.flags||Ap(gp(c),gp(f))){a=fp(jd(n.node.trueType),d||t);break}}(a=Xi(16777216)).root=n,a.checkType=fp(n.checkType,t),a.extendsType=fp(n.extendsType,t),a.mapper=t,a.combinedMapper=d,a.aliasSymbol=r||n.aliasSymbol,a.aliasTypeArguments=r?i:Wd(n.aliasTypeArguments,t);break}return o?xu(e.append(o,a)):a}function _d(e){return e.resolvedTrueType||(e.resolvedTrueType=fp(jd(e.root.node.trueType),e.mapper))}function gd(e){return e.resolvedFalseType||(e.resolvedFalseType=fp(jd(e.root.node.falseType),e.mapper))}function yd(n){var t;return n.locals&&n.locals.forEach((function(n){262144&n.flags&&(t=e.append(t,ns(n)))})),t}function hd(n){return e.isIdentifier(n)?[n]:e.append(hd(n.left),n.right)}function vd(n){var t=Ur(n);if(!t.resolvedType){if(n.isTypeOf&&n.typeArguments)return xr(n,e.Diagnostics.Type_arguments_cannot_be_used_here),t.resolvedSymbol=Ae,t.resolvedType=Re;if(!e.isLiteralImportTypeNode(n))return xr(n.argument,e.Diagnostics.String_literal_expected),t.resolvedSymbol=Ae,t.resolvedType=Re;var r=n.isTypeOf?111551:4194304&n.flags?900095:788968,i=Li(n,n.argument.literal);if(!i)return t.resolvedSymbol=Ae,t.resolvedType=Re;var a=Ii(i,!1);if(e.nodeIsMissing(n.qualifier))a.flags&r?t.resolvedType=bd(n,t,a,r):(xr(n,111551===r?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,n.argument.literal.text),t.resolvedSymbol=Ae,t.resolvedType=Re);else{for(var o=hd(n.qualifier),s=a,c=void 0;c=o.shift();){var l=o.length?1920:r,u=Bi(mi(s)),d=n.isTypeOf?xc(Ao(u),c.escapedText):jr(wi(u),c.escapedText,l);if(!d)return xr(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,Ti(s),e.declarationNameToString(c)),t.resolvedType=Re;Ur(c).resolvedSymbol=d,Ur(c.parent).resolvedSymbol=d,s=d}t.resolvedType=bd(n,t,s,r)}}return t.resolvedType}function bd(e,n,t,r){var i=mi(t);return n.resolvedSymbol=i,111551===r?Ao(t):Rl(e,i)}function Ed(n){var t=Ur(n);if(!t.resolvedType){var r=Td(n);if(0!==vs(n.symbol).size||r){var i=Zi(16,n.symbol);i.aliasSymbol=r,i.aliasTypeArguments=Sd(r),e.isJSDocTypeLiteral(n)&&n.isArrayType&&(i=ru(i)),t.resolvedType=i}else t.resolvedType=_n}return t.resolvedType}function Td(n){for(var t=n.parent;e.isParenthesizedTypeNode(t)||e.isJSDocTypeExpression(t)||e.isTypeOperatorNode(t)&&143===t.operator;)t=t.parent;return e.isTypeAlias(t)?Ui(t):void 0}function Sd(e){return e?wo(e):void 0}function xd(e){return!!(524288&e.flags)&&!Ys(e)}function Ld(e){return Hp(e)||!!(474058748&e.flags)}function Dd(n,t){if(!(1048576&n.flags))return n;if(e.every(n.types,Ld))return e.find(n.types,Hp)||pn;var r=e.find(n.types,(function(e){return!Ld(e)}));return r?e.find(n.types,(function(e){return e!==r&&!Ld(e)}))?n:function(n){for(var r=e.createSymbolTable(),i=0,a=nc(n);i<a.length;i++){var o=a[i];if(24&e.getDeclarationModifierFlagsFromSymbol(o));else if(Cd(o)){var s=65536&o.flags&&!(32768&o.flags),c=Nr(16777220,o.escapedName,Bs(o)|(t?8:0));c.type=s?Me:$a(Ao(o),!0),c.declarations=o.declarations,c.nameType=Br(o).nameType,c.syntheticOrigin=o,r.set(o.escapedName,c)}}var l=ra(n.symbol,r,e.emptyArray,e.emptyArray,kc(n));return l.objectFlags|=262272,l}(r):n}function Ad(n,t,r,i,a){if(1&n.flags||1&t.flags)return Ie;if(2&n.flags||2&t.flags)return we;if(131072&n.flags)return t;if(131072&t.flags)return n;if(1048576&(n=Dd(n,a)).flags)return Ou([n,t])?G_(n,(function(e){return Ad(e,t,r,i,a)})):Re;if(1048576&(t=Dd(t,a)).flags)return Ou([n,t])?G_(t,(function(e){return Ad(n,e,r,i,a)})):Re;if(473960444&t.flags)return n;if(Qu(n)||Qu(t)){if(Hp(n))return t;if(2097152&n.flags){var o=n.types,s=o[o.length-1];if(xd(s)&&xd(t))return ku(e.concatenate(o.slice(0,o.length-1),[Ad(s,t,r,i,a)]))}return ku([n,t])}for(var c=e.createSymbolTable(),l=new e.Set,u=n===pn?kc(t):Rs([n,t]),d=0,p=nc(t);d<p.length;d++){var f=p[d];24&e.getDeclarationModifierFlagsFromSymbol(f)?l.add(f.escapedName):Cd(f)&&c.set(f.escapedName,Id(f,a))}for(var m=0,_=nc(n);m<_.length;m++){var g=_[m];if(!l.has(g.escapedName)&&Cd(g))if(c.has(g.escapedName)){var y=Ao(f=c.get(g.escapedName));if(16777216&f.flags){var h=e.concatenate(g.declarations,f.declarations),v=Nr(4|16777216&g.flags,g.escapedName);v.type=xu([Ao(g),am(y)]),v.leftSpread=g,v.rightSpread=f,v.declarations=h,v.nameType=Br(g).nameType,c.set(g.escapedName,v)}}else c.set(g.escapedName,Id(g,a))}var b=ra(r,c,e.emptyArray,e.emptyArray,e.sameMap(u,(function(e){return function(e,n){return e.isReadonly!==n?pl(e.keyType,e.type,n,e.declaration):e}(e,a)})));return b.objectFlags|=4456576|i,b}function Cd(n){var t;return!(e.some(n.declarations,e.isPrivateIdentifierClassElementDeclaration)||106496&n.flags&&(null===(t=n.declarations)||void 0===t?void 0:t.some((function(n){return e.isClassLike(n.parent)}))))}function Id(e,n){var t=65536&e.flags&&!(32768&e.flags);if(!t&&n===Wv(e))return e;var r=Nr(4|16777216&e.flags,e.escapedName,Bs(e)|(n?8:0));return r.type=t?Me:Ao(e),r.declarations=e.declarations,r.nameType=Br(e).nameType,r.syntheticOrigin=e,r}function Nd(e,n,t,r){var i=Xi(e);return i.symbol=t,i.value=n,i.regularType=r||i,i}function kd(e){if(2944&e.flags){if(!e.freshType){var n=Nd(e.flags,e.value,e.symbol,e);n.freshType=n,e.freshType=n}return e.freshType}return e}function Rd(e){return 2944&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=G_(e,Rd)):e}function Od(e){return!!(2944&e.flags)&&e.freshType===e}function Pd(e){var n;return ge.get(e)||(ge.set(e,n=Nd(128,e)),n)}function wd(e){var n;return ye.get(e)||(ye.set(e,n=Nd(256,e)),n)}function Md(n){var t,r=e.pseudoBigIntToString(n);return he.get(r)||(he.set(r,t=Nd(2048,n)),t)}function Fd(e,n,t){var r,i=n+("string"==typeof e?"@":"#")+e,a=1024|("string"==typeof e?128:256);return ve.get(i)||(ve.set(i,r=Nd(a,e,t)),r)}function Gd(n){if(e.isValidESSymbolDeclaration(n)){var t=Ui(n),r=Br(t);return r.uniqueESSymbolType||(r.uniqueESSymbolType=function(e){var n=Xi(8192);return n.symbol=e,n.escapedName="__@"+n.symbol.escapedName+"@"+P(n.symbol),n}(t))}return Ye}function Bd(n){var t=Ur(n);return t.resolvedType||(t.resolvedType=function(n){var t=e.getThisContainer(n,!1),r=t&&t.parent;if(r&&(e.isClassLike(r)||256===r.kind)&&!e.isStatic(t)&&(!e.isConstructorDeclaration(t)||e.isNodeDescendantOf(n,t.body)))return zo(Ui(r)).thisType;if(r&&e.isObjectLiteralExpression(r)&&e.isBinaryExpression(r.parent)&&6===e.getAssignmentDeclarationKind(r.parent))return zo(Ui(r.parent.left).parent).thisType;var i=4194304&n.flags?e.getHostSignatureFromJSDoc(n):void 0;return i&&e.isFunctionExpression(i)&&e.isBinaryExpression(i.parent)&&3===e.getAssignmentDeclarationKind(i.parent)?zo(Ui(i.parent.left).parent).thisType:ev(t)&&e.isNodeDescendantOf(n,t.body)?zo(Ui(t)).thisType:(xr(n,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Re)}(n)),t.resolvedType}function Ud(e){return jd(Vd(e.type)||e.type)}function Vd(e){switch(e.kind){case 189:return Vd(e.type);case 182:if(1===e.elements.length&&(184===(e=e.elements[0]).kind||195===e.kind&&e.dotDotDotToken))return Vd(e.type);break;case 181:return e.elementType}}function jd(e){return Ml(Kd(e),e)}function Kd(n){switch(n.kind){case 129:case 307:case 308:return Ie;case 153:return we;case 148:return je;case 145:return Ke;case 156:return He;case 132:return Xe;case 149:return Ye;case 114:return Qe;case 151:return Me;case 104:return Ue;case 142:return Ze;case 146:return 131072&n.flags&&!Y?Ie:rn;case 137:return Pe;case 190:case 108:return Bd(n);case 194:return function(e){if(104===e.literal.kind)return Ue;var n=Ur(e);return n.resolvedType||(n.resolvedType=Rd(Ab(e.literal))),n.resolvedType}(n);case 176:case 226:return Ul(n);case 175:return n.assertsModifier?Qe:Xe;case 179:return jl(n);case 181:case 182:return function(n){var t=Ur(n);if(!t.resolvedType){var r=function(n){var t=function(n){return e.isTypeOperatorNode(n)&&143===n.operator}(n.parent);return Vd(n)?t?Rn:kn:uu(e.map(n.elements,iu),t,e.some(n.elements,(function(e){return 195!==e.kind}))?void 0:n.elements)}(n);if(r===gn)t.resolvedType=pn;else if(182===n.kind&&e.some(n.elements,(function(e){return!!(8&iu(e))}))||!ou(n)){var i=181===n.kind?[jd(n.elementType)]:e.map(n.elements,jd);t.resolvedType=du(r,i)}else t.resolvedType=182===n.kind&&0===n.elements.length?r:xl(r,n,void 0)}return t.resolvedType}(n);case 183:return function(e){return $a(jd(e.type),!0)}(n);case 185:return function(n){var t=Ur(n);if(!t.resolvedType){var r=Td(n);t.resolvedType=xu(e.map(n.types,jd),1,r,Sd(r))}return t.resolvedType}(n);case 186:return function(n){var t=Ur(n);if(!t.resolvedType){var r=Td(n);t.resolvedType=ku(e.map(n.types,jd),r,Sd(r))}return t.resolvedType}(n);case 309:return function(e){var n=jd(e.type);return z?Yf(n,65536):n}(n);case 311:return $a(jd(n.type));case 195:return function(e){var n=Ur(e);return n.resolvedType||(n.resolvedType=e.dotDotDotToken?Ud(e):$a(jd(e.type),!0,!!e.questionToken))}(n);case 189:case 310:case 304:return jd(n.type);case 184:return Ud(n);case 313:return function(n){var t=jd(n.type),r=n.parent,i=n.parent.parent;if(e.isJSDocTypeExpression(n.parent)&&e.isJSDocParameterTag(i)){var a=e.getHostSignatureFromJSDoc(i),o=e.isJSDocCallbackTag(i.parent.parent);if(a||o){var s=o?e.lastOrUndefined(i.parent.parent.typeExpression.parameters):e.lastOrUndefined(a.parameters),c=e.getParameterSymbolFromJSDoc(i);if(!s||c&&s.symbol===c&&e.isRestParameter(s))return ru(t)}}return e.isParameter(r)&&e.isJSDocFunctionType(r.parent)?ru(t):$a(t)}(n);case 177:case 178:case 180:case 317:case 312:case 318:return Ed(n);case 191:return function(n){var t=Ur(n);if(!t.resolvedType)switch(n.operator){case 139:t.resolvedType=Gu(jd(n.type));break;case 152:t.resolvedType=149===n.type.kind?Gd(e.walkUpParenthesizedTypes(n.parent)):Re;break;case 143:t.resolvedType=jd(n.type);break;default:throw e.Debug.assertNever(n.operator)}return t.resolvedType}(n);case 192:return cd(n);case 193:return ld(n);case 187:return function(n){var t=Ur(n);if(!t.resolvedType){var r=jd(n.checkType),i=Td(n),a=Sd(i),o=Oo(n,!0),s=a?o:e.filter(o,(function(e){return op(e,n)})),c={node:n,checkType:r,extendsType:jd(n.extendsType),isDistributive:!!(262144&r.flags),inferTypeParameters:yd(n),outerTypeParameters:s,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:a};t.resolvedType=md(c,void 0),s&&(c.instantiations=new e.Map,c.instantiations.set(vl(s),t.resolvedType))}return t.resolvedType}(n);case 188:return function(e){var n=Ur(e);return n.resolvedType||(n.resolvedType=es(Ui(e.typeParameter))),n.resolvedType}(n);case 196:return function(n){var t=Ur(n);return t.resolvedType||(t.resolvedType=Uu(i([n.head.text],e.map(n.templateSpans,(function(e){return e.literal.text})),!0),e.map(n.templateSpans,(function(e){return jd(e.type)})))),t.resolvedType}(n);case 198:return vd(n);case 79:case 159:case 204:var t=QT(n);return t?ns(t):Re;default:return Re}}function Hd(e,n,t){if(e&&e.length)for(var r=0;r<e.length;r++){var i=e[r],a=t(i,n);if(i!==a){var o=0===r?[]:e.slice(0,r);for(o.push(a),r++;r<e.length;r++)o.push(t(e[r],n));return o}}return e}function Wd(e,n){return Hd(e,n,fp)}function zd(e,n){return Hd(e,n,ip)}function Jd(e,n){return Hd(e,n,yp)}function qd(e,n){return 1===e.length?Yd(e[0],n?n[0]:Ie):function(e,n){return{kind:1,sources:e,targets:n}}(e,n)}function Xd(e,n){switch(n.kind){case 0:return e===n.source?n.target:e;case 1:for(var t=n.sources,r=n.targets,i=0;i<t.length;i++)if(e===t[i])return r?r[i]:Ie;return e;case 2:return n.func(e);case 3:case 4:var a=Xd(e,n.mapper1);return a!==e&&3===n.kind?fp(a,n.mapper2):Xd(a,n.mapper2)}}function Yd(e,n){return{kind:0,source:e,target:n}}function Qd(e){return{kind:2,func:e}}function Zd(e,n,t){return{kind:e,mapper1:n,mapper2:t}}function $d(e){return qd(e,void 0)}function ep(e,n){return e?Zd(3,e,n):n}function np(e,n,t){return t?Zd(4,Yd(e,n),t):Yd(e,n)}function tp(e,n,t){return e?Zd(4,e,Yd(n,t)):Yd(n,t)}function rp(e){var n=$i(e.symbol);return n.target=e,n}function ip(n,t,r){var i;if(n.typeParameters&&!r){i=e.map(n.typeParameters,rp),t=ep(qd(n.typeParameters,i),t);for(var a=0,o=i;a<o.length;a++)o[a].mapper=t}var s=Ss(n.declaration,i,n.thisParameter&&ap(n.thisParameter,t),Hd(n.parameters,t,ap),void 0,void 0,n.minArgumentCount,39&n.flags);return s.target=n,s.mapper=t,s}function ap(n,t){var r=Br(n);if(r.type&&!Cm(r.type))return n;1&e.getCheckFlags(n)&&(n=r.target,t=ep(r.mapper,t));var i=Nr(n.flags,n.escapedName,1|53256&e.getCheckFlags(n));return i.declarations=n.declarations,i.parent=n.parent,i.target=n,i.mapper=t,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),r.nameType&&(i.nameType=r.nameType),i}function op(n,t){if(n.symbol&&n.symbol.declarations&&1===n.symbol.declarations.length){for(var r=n.symbol.declarations[0].parent,i=t;i!==r;i=i.parent)if(!i||233===i.kind||187===i.kind&&e.forEachChild(i.extendsType,a))return!0;return a(t)}return!0;function a(t){switch(t.kind){case 190:return!!n.isThisType;case 79:return!n.isThisType&&e.isPartOfTypeNode(t)&&function(e){return!(176===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||198===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(t)&&Kd(t)===n;case 179:return!0;case 167:case 166:return!t.type&&!!t.body||e.some(t.typeParameters,a)||e.some(t.parameters,a)||!!t.type&&a(t.type)}return!!e.forEachChild(t,a)}}function sp(e){var n=Vs(e);if(4194304&n.flags){var t=ud(n.type);if(262144&t.flags)return t}}function cp(n,t,r,i){var a=sp(n);if(a){var o=fp(a,t);if(a!==o)return B_(vc(o),(function(r){if(61603843&r.flags&&r!==ke&&r!==Re){if(!n.declaration.nameType){if(Ef(r))return function(e,n,t){var r=up(n,Ke,!0,t);return r===Re?Re:ru(r,lp(Tf(e),Js(n)))}(r,n,np(a,r,t));if(Vf(r))return function(n,t,r,i){var a=n.target.elementFlags,o=e.map(Ll(n),(function(e,n){var o=8&a[n]?e:4&a[n]?ru(e):lu([e],[a[n]]);return cp(t,np(r,o,i))})),s=lp(n.target.readonly,Js(t));return lu(o,e.map(o,(function(e){return 8})),s)}(r,n,a,t);if(Uf(r))return function(n,t,r){var i=n.target.elementFlags,a=e.map(Ll(n),(function(e,n){return up(t,Pd(""+n),!!(2&i[n]),r)})),o=Js(t),s=4&o?e.map(i,(function(e){return 1&e?2:e})):8&o?e.map(i,(function(e){return 2&e?1:e})):i,c=lp(n.target.readonly,o);return e.contains(a,Re)?Re:lu(a,s,c,n.target.labeledElementDeclarations)}(r,n,np(a,r,t))}return dp(n,np(a,r,t))}return r}),r,i)}return fp(Vs(n),t)===ke?ke:dp(n,t,r,i)}function lp(e,n){return!!(1&n)||!(2&n)&&e}function up(e,n,t,r){var i=tp(r,Us(e),n),a=fp(Ks(e.target||e),i),o=Js(e);return z&&4&o&&!Xv(a,49152)?Qf(a,!0):z&&8&o&&t?__(a,524288):a}function dp(e,n,t,r){var i=Zi(64|e.objectFlags,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;var a=Us(e),o=rp(a);i.typeParameter=o,n=ep(Yd(a,o),n),o.mapper=n}return i.target=e,i.mapper=n,i.aliasSymbol=t||e.aliasSymbol,i.aliasTypeArguments=t?r:Wd(e.aliasTypeArguments,n),i}function pp(n,t,r,i){var a=n.root;if(a.outerTypeParameters){var o=e.map(a.outerTypeParameters,(function(e){return Xd(e,t)})),s=vl(o)+bl(r,i),c=a.instantiations.get(s);return c||(c=function(e,n,t,r){if(e.isDistributive){var i=e.checkType,a=Xd(i,n);if(i!==a&&1179648&a.flags)return B_(a,(function(t){return md(e,np(i,t,n))}),t,r)}return md(e,n,t,r)}(a,qd(a.outerTypeParameters,o),r,i),a.instantiations.set(s,c)),c}return n}function fp(e,n){return e&&n?mp(e,n,void 0,void 0):e}function mp(n,t,r,i){if(!Cm(n))return n;if(50===L||x>=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:L,instantiationCount:x}),xr(d,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Re;E++,x++,L++;var a=function(n,t,r,i){var a=n.flags;if(262144&a)return Xd(n,t);if(524288&a){var o=n.objectFlags;if(52&o){if(4&o&&!n.node){var s=n.resolvedTypeArguments,c=Wd(s,t);return c!==s?du(n.target,c):n}return 1024&o?function(n,t){var r=fp(n.mappedType,t);if(!(32&e.getObjectFlags(r)))return n;var i=fp(n.constraintType,t);if(!(4194304&i.flags))return n;var a=km(fp(n.source,t),r,i);return a||n}(n,t):function(n,t,r,i){var a=4&n.objectFlags?n.node:n.symbol.declarations[0],o=Ur(a),s=4&n.objectFlags?o.resolvedType:64&n.objectFlags?n.target:n,c=o.outerTypeParameters;if(!c){var l=Oo(a,!0);if(ev(a)){var u=Fc(a);l=e.addRange(l,u)}c=l||e.emptyArray;var d=4&n.objectFlags?[a]:n.symbol.declarations;c=(4&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(function(n){return e.some(d,(function(e){return op(n,e)}))})):c,o.outerTypeParameters=c}if(c.length){var p=ep(n.mapper,t),f=e.map(c,(function(e){return Xd(e,p)})),m=r||n.aliasSymbol,_=r?i:Wd(n.aliasTypeArguments,t),g=vl(f)+bl(m,_);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(vl(c)+bl(s.aliasSymbol,s.aliasTypeArguments),s));var y=s.instantiations.get(g);if(!y){var h=qd(c,f);y=4&s.objectFlags?xl(n.target,n.node,h,m,_):32&s.objectFlags?cp(s,h,m,_):dp(s,h,m,_),s.instantiations.set(g,y)}return y}return n}(n,t,r,i)}return n}if(3145728&a){var l=1048576&n.flags?n.origin:void 0,u=l&&3145728&l.flags?l.types:n.types,d=Wd(u,t);if(d===u&&r===n.aliasSymbol)return n;var p=r||n.aliasSymbol,f=r?i:Wd(n.aliasTypeArguments,t);return 2097152&a||l&&2097152&l.flags?ku(d,p,f):xu(d,1,p,f)}if(4194304&a)return Gu(fp(n.type,t));if(134217728&a)return Uu(n.texts,Wd(n.types,t));if(268435456&a)return ju(n.symbol,fp(n.type,t));if(8388608&a)return p=r||n.aliasSymbol,f=r?i:Wd(n.aliasTypeArguments,t),ad(fp(n.objectType,t),fp(n.indexType,t),n.accessFlags,void 0,p,f);if(16777216&a)return pp(n,ep(n.mapper,t),r,i);if(33554432&a){var m=fp(n.baseType,t);if(8650752&m.flags)return Ol(m,fp(n.substitute,t));var _=fp(n.substitute,t);return 3&_.flags||Ap(gp(m),gp(_))?m:_}return n}(n,t,r,i);return L--,a}function _p(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=fp(e,dn))}function gp(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=fp(e,un),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function yp(e,n){return pl(e.keyType,fp(e.type,n),e.isReadonly,e.declaration)}function hp(n){switch(e.Debug.assert(167!==n.kind||e.isObjectLiteralMethod(n)),n.kind){case 211:case 212:case 167:case 254:return vp(n);case 203:return e.some(n.properties,hp);case 202:return e.some(n.elements,hp);case 220:return hp(n.whenTrue)||hp(n.whenFalse);case 219:return(56===n.operatorToken.kind||60===n.operatorToken.kind)&&(hp(n.left)||hp(n.right));case 291:return hp(n.initializer);case 210:return hp(n.expression);case 284:return e.some(n.properties,hp)||e.isJsxOpeningElement(n.parent)&&e.some(n.parent.parent.children,hp);case 283:var t=n.initializer;return!!t&&hp(t);case 286:var r=n.expression;return!!r&&hp(r)}return!1}function vp(n){return(!e.isFunctionDeclaration(n)||e.isInJSFile(n)&&!!Qa(n))&&(e.hasContextSensitiveParameters(n)||function(n){return!n.typeParameters&&!e.getEffectiveReturnTypeNode(n)&&!!n.body&&233!==n.body.kind&&hp(n.body)}(n))}function bp(n){return(e.isInJSFile(n)&&e.isFunctionDeclaration(n)||Xg(n)||e.isObjectLiteralMethod(n))&&vp(n)}function Ep(n){if(524288&n.flags){var t=Qs(n);if(t.constructSignatures.length||t.callSignatures.length){var r=Zi(16,n.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=e.emptyArray,r.constructSignatures=e.emptyArray,r.indexInfos=e.emptyArray,r}}else if(2097152&n.flags)return ku(e.map(n.types,Ep));return n}function Tp(e,n){return Xp(e,n,hr)}function Sp(e,n){return Xp(e,n,hr)?-1:0}function xp(e,n){return Xp(e,n,gr)?-1:0}function Lp(e,n){return Xp(e,n,mr)?-1:0}function Dp(e,n){return Xp(e,n,mr)}function Ap(e,n){return Xp(e,n,gr)}function Cp(n,t){return 1048576&n.flags?e.every(n.types,(function(e){return Cp(e,t)})):1048576&t.flags?e.some(t.types,(function(e){return Cp(n,e)})):58982400&n.flags?Cp(cc(n)||we,t):t===An?!!(67633152&n.flags):t===Cn?!!(524288&n.flags)&&f_(n):ko(n,No(t))||Ef(t)&&!Tf(t)&&Cp(n,Rn)}function Ip(e,n){return Xp(e,n,yr)}function Np(e,n){return Ip(e,n)||Ip(n,e)}function kp(e,n,t,r,i,a){return Zp(e,n,gr,t,r,i,a)}function Rp(e,n,t,r,i,a){return Op(e,n,gr,t,r,i,a,void 0)}function Op(e,n,t,r,i,a,o,s){return!!Xp(e,n,t)||(!r||!wp(i,e,n,t,a,o,s))&&Zp(e,n,t,r,a,o,s)}function Pp(n){return!!(16777216&n.flags||2097152&n.flags&&e.some(n.types,Pp))}function wp(n,t,r,i,o,c,l){if(!n||Pp(r))return!1;if(!Zp(t,r,i,void 0)&&function(n,t,r,i,a,o,s){for(var c=Dc(t,0),l=Dc(t,1),u=0,d=[l,c];u<d.length;u++){var p=d[u];if(e.some(p,(function(e){var n=el(e);return!(131073&n.flags)&&Zp(n,r,i,void 0)}))){var f=s||{};kp(t,r,n,a,o,f);var m=f.errors[f.errors.length-1];return e.addRelatedInfo(m,e.createDiagnosticForNode(n,p===l?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(n,t,r,i,o,c,l))return!0;switch(n.kind){case 286:case 210:return wp(n.expression,t,r,i,o,c,l);case 219:switch(n.operatorToken.kind){case 63:case 27:return wp(n.right,t,r,i,o,c,l)}break;case 203:return function(n,t,r,i,a,o){return!(131068&r.flags)&&Gp(function(n){var t,r,i,a;return s(this,(function(o){switch(o.label){case 0:if(!e.length(n.properties))return[2];t=0,r=n.properties,o.label=1;case 1:if(!(t<r.length))return[3,8];if(i=r[t],e.isSpreadAssignment(i))return[3,7];if(!(a=Fu(Ui(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 171:case 170:case 167:case 292:return[3,2];case 291:return[3,4]}return[3,6];case 2:return[4,{errorNode:i.name,innerExpression:void 0,nameType:a}];case 3:return o.sent(),[3,7];case 4:return[4,{errorNode:i.name,innerExpression:i.initializer,nameType:a,errorMessage:e.isComputedNonLiteralName(i.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return o.sent(),[3,7];case 6:e.Debug.assertNever(i),o.label=7;case 7:return t++,[3,1];case 8:return[2]}}))}(n),t,r,i,a,o)}(n,t,r,i,c,l);case 202:return function(e,n,t,r,i,a){if(131068&t.flags)return!1;if(If(n))return Gp(Up(e,t),n,t,r,i,a);var o=e.contextualType;e.contextualType=t;try{var s=$g(e,1,!0);return e.contextualType=o,!!If(s)&&Gp(Up(e,t),s,t,r,i,a)}finally{e.contextualType=o}}(n,t,r,i,c,l);case 284:return function(n,t,r,i,o,c){var l,u=Gp(function(n){var t,r,i;return s(this,(function(a){switch(a.label){case 0:if(!e.length(n.properties))return[2];t=0,r=n.properties,a.label=1;case 1:return t<r.length?(i=r[t],e.isJsxSpreadAttribute(i)||cy(e.idText(i.name))?[3,3]:[4,{errorNode:i.name,innerExpression:i.initializer,nameType:Pd(e.idText(i.name))}]):[3,4];case 2:a.sent(),a.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}(n),t,r,i,o,c);if(e.isJsxOpeningElement(n.parent)&&e.isJsxElement(n.parent.parent)){var d=n.parent.parent,p=hy(gy(n)),f=void 0===p?"children":e.unescapeLeadingUnderscores(p),m=Pd(f),_=ad(r,m),g=e.getSemanticJsxChildren(d.children);if(!e.length(g))return u;var y=e.length(g)>1,h=w_(_,Nf),v=w_(_,(function(e){return!Nf(e)}));if(y){if(h!==Ze){var b=lu(dy(d,0)),E=function(n,t){var r,i,a,o,c;return s(this,(function(s){switch(s.label){case 0:if(!e.length(n.children))return[2];r=0,i=0,s.label=1;case 1:return i<n.children.length?(a=n.children[i],o=wd(i-r),(c=Bp(a,o,t))?[4,c]:[3,3]):[3,5];case 2:return s.sent(),[3,4];case 3:r++,s.label=4;case 4:return i++,[3,1];case 5:return[2]}}))}(d,x);u=Gp(E,b,h,i,o,c)||u}else if(!Xp(ad(t,m),_,i)){u=!0;var T=xr(d.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,f,Ea(_));c&&c.skipLogging&&(c.errors||(c.errors=[])).push(T)}}else if(v!==Ze){var S=Bp(g[0],m,x);S&&(u=Gp(function(){return s(this,(function(e){switch(e.label){case 0:return[4,S];case 1:return e.sent(),[2]}}))}(),t,r,i,o,c)||u)}else Xp(ad(t,m),_,i)||(u=!0,T=xr(d.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,f,Ea(_)),c&&c.skipLogging&&(c.errors||(c.errors=[])).push(T))}return u;function x(){if(!l){var t=e.getTextOfNode(n.parent.tagName),i=hy(gy(n)),o=void 0===i?"children":e.unescapeLeadingUnderscores(i),s=ad(r,Pd(o)),c=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;l=a(a({},c),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,c,t,o,Ea(s))})}return l}}(n,t,r,i,c,l);case 212:return function(n,t,r,i,a,o){if(e.isBlock(n.body))return!1;if(e.some(n.parameters,e.hasType))return!1;var s=bh(t);if(!s)return!1;var c=Dc(r,0);if(!e.length(c))return!1;var l=n.body,u=el(s),d=xu(e.map(c,el));if(!Zp(u,d,i,void 0)){var p=l&&wp(l,u,d,i,void 0,a,o);if(p)return p;var f=o||{};if(Zp(u,d,i,l,void 0,a,f),f.errors)return r.symbol&&e.length(r.symbol.declarations)&&e.addRelatedInfo(f.errors[f.errors.length-1],e.createDiagnosticForNode(r.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&e.getFunctionFlags(n))&&!Ua(u,"then")&&Zp(kv(u),d,i,void 0)&&e.addRelatedInfo(f.errors[f.errors.length-1],e.createDiagnosticForNode(n,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(n,t,r,i,c,l)}return!1}function Mp(e,n,t){var r=sd(n,t);if(r)return r;if(1048576&n.flags){var i=ef(e,n);if(i)return sd(i,t)}}function Fp(e,n){e.contextualType=n;try{return _b(e,1,n)}finally{e.contextualType=void 0}}function Gp(n,t,r,i,a,o){for(var s=!1,c=n.next();!c.done;c=n.next()){var l=c.value,u=l.errorNode,d=l.innerExpression,p=l.nameType,f=l.errorMessage,m=Mp(t,r,p);if(m&&!(8388608&m.flags)){var _=sd(t,p);if(_){var g=Hu(p,void 0),y=!!(g&&16777216&(xc(r,g)||Ae).flags),h=!!(g&&16777216&(xc(t,g)||Ae).flags);if(m=rm(m,y),!Zp(_=rm(_,y&&h),m,i,void 0))if(d&&wp(d,_,m,i,void 0,a,o))s=!0;else{var v=o||{},b=d?Fp(d,_):_;if(Zp(b,m,i,u,f,a,v)&&b!==_&&Zp(_,m,i,u,f,a,v),v.errors){var E=v.errors[v.errors.length-1],T=ds(p)?gs(p):void 0,S=void 0!==T?xc(r,T):void 0,x=!1;if(!S){var L=wc(r,p);L&&L.declaration&&!e.getSourceFileOfNode(L.declaration).hasNoDefaultLib&&(x=!0,e.addRelatedInfo(E,e.createDiagnosticForNode(L.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!x&&(S&&e.length(S.declarations)||r.symbol&&e.length(r.symbol.declarations))){var D=S&&e.length(S.declarations)?S.declarations[0]:r.symbol.declarations[0];e.getSourceFileOfNode(D).hasNoDefaultLib||e.addRelatedInfo(E,e.createDiagnosticForNode(D,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!T||8192&p.flags?Ea(p):e.unescapeLeadingUnderscores(T),Ea(r)))}}s=!0}}}}return s}function Bp(n,t,r){switch(n.kind){case 286:return{errorNode:n,innerExpression:n.expression,nameType:t};case 11:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:t,errorMessage:r()};case 276:case 277:case 280:return{errorNode:n,innerExpression:n,nameType:t};default:return e.Debug.assertNever(n,"Found invalid jsx child")}}function Up(n,t){var r,i,a,o;return s(this,(function(s){switch(s.label){case 0:if(!(r=e.length(n.elements)))return[2];i=0,s.label=1;case 1:return i<r?If(t)&&!xc(t,""+i)?[3,3]:(a=n.elements[i],e.isOmittedExpression(a)?[3,3]:(o=wd(i),[4,{errorNode:a,innerExpression:a,nameType:o}])):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}function Vp(e,n,t,r,i){return Zp(e,n,yr,t,r,i)}function jp(n,t,r,i,a,o,s,c){if(n===t)return-1;if(!(l=t).typeParameters&&(!l.thisParameter||Va(pv(l.thisParameter)))&&1===l.parameters.length&&B(l)&&(pv(l.parameters[0])===Gn||Va(pv(l.parameters[0])))&&Va(el(l)))return-1;var l,u,d=Ev(t);if(!Sv(t)&&(8&r?Sv(n)||Ev(n)>d:Tv(n)>d))return 0;n.typeParameters&&n.typeParameters!==t.typeParameters&&(n=Sh(n,t=(u=t).typeParameters?u.canonicalSignatureCache||(u.canonicalSignatureCache=function(n){return il(n,e.map(n.typeParameters,(function(e){return e.target&&!rc(e.target)?e.target:e})),e.isInJSFile(n.declaration))}(u)):u,void 0,s));var p=Ev(n),f=Lv(n),m=Lv(t);if((f||m)&&fp(f||m,c),f&&m&&p!==d)return 0;var _=t.declaration?t.declaration.kind:0,g=!(3&r)&&J&&167!==_&&166!==_&&169!==_,y=-1,h=Qc(n);if(h&&h!==Qe){var v=Qc(t);if(v){if(!(L=!g&&s(h,v,!1)||s(v,h,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;y&=L}}for(var b=f||m?Math.min(p,d):Math.max(p,d),E=f||m?b-1:-1,T=0;T<b;T++){var S=T===E?bv(n,T):vv(n,T),x=T===E?bv(t,T):vv(t,T);if(S&&x){var L,D=3&r?void 0:bh(Zf(S)),A=3&r?void 0:bh(Zf(x));if((L=D&&A&&!Zc(D)&&!Zc(A)&&(98304&Jf(S))==(98304&Jf(x))?jp(A,D,8&r|(g?2:1),i,a,o,s,c):!(3&r)&&!g&&s(S,x,!1)||s(x,S,i))&&8&r&&T>=Tv(n)&&T<Tv(t)&&s(S,x,!1)&&(L=0),!L)return i&&a(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(mv(n,T)),e.unescapeLeadingUnderscores(mv(t,T))),0;y&=L}}if(!(4&r)){var C=tl(t)?Ie:t.declaration&&ev(t.declaration)?zo(Bi(t.declaration.symbol)):el(t);if(C===Qe)return y;var I=tl(n)?Ie:n.declaration&&ev(n.declaration)?zo(Bi(n.declaration.symbol)):el(n),N=Zc(t);if(N){var k=Zc(n);if(k)y&=function(n,t,r,i,a){if(n.kind!==t.kind)return r&&(i(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Aa(n),Aa(t))),0;if((1===n.kind||3===n.kind)&&n.parameterIndex!==t.parameterIndex)return r&&(i(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,t.parameterName),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Aa(n),Aa(t))),0;var o=n.type===t.type?-1:n.type&&t.type?a(n.type,t.type,r):0;return 0===o&&r&&i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Aa(n),Aa(t)),o}(k,N,i,a,s);else if(e.isIdentifierTypePredicate(N))return i&&a(e.Diagnostics.Signature_0_must_be_a_type_predicate,ba(n)),0}else!(y&=1&r&&s(C,I,!1)||s(I,C,i))&&i&&o&&o(I,C)}return y}function Kp(e){return e!==yn&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function Hp(n){return 524288&n.flags?!Ys(n)&&Kp(Qs(n)):!!(67108864&n.flags)||(1048576&n.flags?e.some(n.types,Hp):!!(2097152&n.flags)&&e.every(n.types,Hp))}function Wp(n){return!!(16&e.getObjectFlags(n)&&(n.members&&Kp(n)||n.symbol&&2048&n.symbol.flags&&0===vs(n.symbol).size))}function zp(n){return 524288&n.flags&&!Ys(n)&&0===nc(n).length&&1===kc(n).length&&!!Rc(n,je)||3145728&n.flags&&e.every(n.types,zp)||!1}function Jp(n,t,r){if(n===t)return!0;var i=P(n)+","+P(t),a=vr.get(i);if(void 0!==a&&(4&a||!(2&a)||!r))return!!(1&a);if(!(n.escapedName===t.escapedName&&256&n.flags&&256&t.flags))return vr.set(i,6),!1;for(var o=Ao(t),s=0,c=nc(Ao(n));s<c.length;s++){var l=c[s];if(8&l.flags){var u=xc(o,l.escapedName);if(!(u&&8&u.flags))return r?(r(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(l),Ea(ns(t),void 0,64)),vr.set(i,6)):vr.set(i,2),!1}}return vr.set(i,1),!0}function qp(e,n,t,r){var i=e.flags,a=n.flags;if(3&a||131072&i||e===ke)return!0;if(131072&a)return!1;if(402653316&i&&4&a)return!0;if(128&i&&1024&i&&128&a&&!(1024&a)&&e.value===n.value)return!0;if(296&i&&8&a)return!0;if(256&i&&1024&i&&256&a&&!(1024&a)&&e.value===n.value)return!0;if(2112&i&&64&a)return!0;if(528&i&&16&a)return!0;if(12288&i&&4096&a)return!0;if(32&i&&32&a&&Jp(e.symbol,n.symbol,r))return!0;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&Jp(e.symbol,n.symbol,r))return!0;if(2944&i&&2944&a&&e.value===n.value&&Jp(Vi(e.symbol),Vi(n.symbol),r))return!0}if(32768&i&&(!z||49152&a))return!0;if(65536&i&&(!z||65536&a))return!0;if(524288&i&&67108864&a)return!0;if(t===gr||t===yr){if(1&i)return!0;if(264&i&&!(1024&i)&&(32&a||t===gr&&256&a&&1024&a))return!0}return!1}function Xp(e,n,t){if(Od(e)&&(e=e.regularType),Od(n)&&(n=n.regularType),e===n)return!0;if(t!==hr){if(t===yr&&!(131072&n.flags)&&qp(n,e,t)||qp(e,n,t))return!0}else{if(e.flags!==n.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&n.flags){var r=t.get(df(e,n,0,t));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&n.flags)&&Zp(e,n,t,void 0)}function Yp(n,t){return 2048&e.getObjectFlags(n)&&cy(t.escapedName)}function Qp(n,t){for(;;){var r=Od(n)?n.regularType:4&e.getObjectFlags(n)&&n.node?Tl(n.target,Ll(n)):3145728&n.flags?vc(n):33554432&n.flags?t?n.baseType:n.substitute:25165824&n.flags?nd(n,t):n;if((r=Df(r)||r)===n)break;n=r}return n}function Zp(n,t,r,a,o,s,c){var u,p,f,m,_,g,y=0,h=0,v=0,b=!1,E=0,T=[],S=!1;e.Debug.assert(r!==hr||!a,"no error reporting in identity checking");var x=G(n,t,!!a,o);if(T.length&&P(),b){null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:t.id,depth:h});var L=xr(a||d,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Ea(n),Ea(t));c&&(c.errors||(c.errors=[])).push(L)}else if(u){if(s){var D=s();D&&(e.concatenateDiagnosticMessageChains(D,u),u=D)}var A=void 0;if(o&&a&&!x&&n.symbol){var C=Br(n.symbol);if(C.originatingImport&&!e.isImportCall(C.originatingImport)&&Zp(Ao(C.target),t,r,void 0)){var N=e.createDiagnosticForNode(C.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);A=e.append(A,N)}}L=e.createDiagnosticForNodeFromMessageChain(a,u,A),p&&e.addRelatedInfo.apply(void 0,i([L],p,!1)),c&&(c.errors||(c.errors=[])).push(L),c&&c.skipLogging||ur.add(L)}return a&&c&&c.skipLogging&&0===x&&e.Debug.assert(!!c.errors,"missed opportunity to interact with error."),0!==x;function k(e){u=e.errorInfo,g=e.lastSkippedInfo,T=e.incompatibleStack,E=e.overrideNextErrorInfo,p=e.relatedInfo}function R(){return{errorInfo:u,lastSkippedInfo:g,incompatibleStack:T.slice(),overrideNextErrorInfo:E,relatedInfo:p?p.slice():void 0}}function O(e,n,t,r,i){E++,g=void 0,T.push([e,n,t,r,i])}function P(){var n=T;T=[];var t=g;if(g=void 0,1===n.length)return w.apply(void 0,n[0]),void(t&&M.apply(void 0,i([void 0],t,!1)));for(var r="",a=[];n.length;){var o=n.pop(),s=o[0],c=o.slice(1);switch(s.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===r.indexOf("new ")&&(r="("+r+")");var l=""+c[0];r=0===r.length?""+l:e.isIdentifierText(l,V.target)?r+"."+l:"["===l[0]&&"]"===l[l.length-1]?""+r+l:r+"["+l+"]";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(0===r.length){var u=s;s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?u=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(u=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),a.unshift([u,c[0],c[1]])}else r=(s.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"")+r+"("+(s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...")+")";break;case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:a.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,c[0],c[1]]);break;case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:a.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,c[0],c[1],c[2]]);break;default:return e.Debug.fail("Unhandled Diagnostic: "+s.code)}}r?w(")"===r[r.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,r):a.shift();for(var d=0,p=a;d<p.length;d++){var f=p[d],m=(s=f[0],c=f.slice(1),s.elidedInCompatabilityPyramid);s.elidedInCompatabilityPyramid=!1,w.apply(void 0,i([s],c,!1)),s.elidedInCompatabilityPyramid=m}t&&M.apply(void 0,i([void 0],t,!1))}function w(n,t,r,i,o){e.Debug.assert(!!a),T.length&&P(),n.elidedInCompatabilityPyramid||(u=e.chainDiagnosticMessages(u,n,t,r,i,o))}function M(n,t,i){T.length&&P();var a=Ta(t,i),o=a[0],s=a[1],c=t,l=o;if(Pf(t)&&!$p(i)&&(c=wf(t),e.Debug.assert(!Ap(c,i),"generalized source shouldn't be assignable"),l=Sa(c)),262144&i.flags){var d=cc(i),p=void 0;d&&(Ap(c,d)||(p=Ap(t,d)))?w(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,p?o:l,s,Ea(d)):(u=void 0,w(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,s,l))}n||(n=r===yr?e.Diagnostics.Type_0_is_not_comparable_to_type_1:o===s?e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:e.Diagnostics.Type_0_is_not_assignable_to_type_1),w(n,l,s)}function F(n,t,r){return Uf(n)?n.target.readonly&&Sf(t)?(r&&w(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ea(n),Ea(t)),!1):Uf(t)||Ef(t):Tf(n)&&Sf(t)?(r&&w(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ea(n),Ea(t)),!1):!Uf(t)||Ef(n)}function G(n,t,i,o,s){if(void 0===i&&(i=!1),void 0===s&&(s=0),524288&n.flags&&131068&t.flags)return qp(n,t,r,i?w:void 0)?-1:(L(n,t,0,!!(2048&e.getObjectFlags(n))),0);var c=Qp(n,!1),l=Qp(t,!0);if(c===l)return-1;if(r===hr)return function(e,n){if(e.flags!==n.flags)return 0;if(67358815&e.flags)return-1;if(B(e,n),3145728&e.flags){var t=U(e,n);return t&&(t&=U(n,e)),t}return H(e,n,!1,0)}(c,l);if(262144&c.flags&&tc(c)===l)return-1;if(1048576&l.flags&&524288&c.flags&&l.types.length<=3&&Xv(l,98304)){var d=V_(l,-98305);if(1179648&d.flags||(l=Qp(d,!0)),c===d)return-1}if(r===yr&&!(131072&l.flags)&&qp(l,c,r)||qp(c,l,r,i?w:void 0))return-1;var p=!!(2048&e.getObjectFlags(c)),f=!(2&s)&&Wm(c)&&16384&e.getObjectFlags(c);if(f&&function(n,t,i){var o;if(!Ay(t)||!Y&&8192&e.getObjectFlags(t))return!1;var s=!!(2048&e.getObjectFlags(n));if((r===gr||r===yr)&&(k_(An,t)||!s&&Hp(t)))return!1;var c,l=t;1048576&t.flags&&(l=yx(n,t,G)||function(e){if(Xv(e,67108864)){var n=w_(e,(function(e){return!(131068&e.flags)}));if(!(131072&n.flags))return n}return e}(t),c=1048576&l.flags?l.types:[l]);for(var u=function(t){if(function(e,n){return e.valueDeclaration&&n.valueDeclaration&&e.valueDeclaration.parent===n.valueDeclaration}(t,n.symbol)&&!Yp(n,t)){if(!Dy(l,t.escapedName,s)){if(i){var r=w_(l,Ay);if(!a)return{value:e.Debug.fail()};if(e.isJsxAttributes(a)||e.isJsxOpeningLikeElement(a)||e.isJsxOpeningLikeElement(a.parent)){t.valueDeclaration&&e.isJsxAttribute(t.valueDeclaration)&&e.getSourceFileOfNode(a)===e.getSourceFileOfNode(t.valueDeclaration.name)&&(a=t.valueDeclaration.name);var u=va(t),d=eh(u,r);(f=d?va(d):void 0)?w(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,Ea(r),f):w(e.Diagnostics.Property_0_does_not_exist_on_type_1,u,Ea(r))}else{var p=(null===(o=n.symbol)||void 0===o?void 0:o.declarations)&&e.firstOrUndefined(n.symbol.declarations),f=void 0;if(t.valueDeclaration&&e.findAncestor(t.valueDeclaration,(function(e){return e===p}))&&e.getSourceFileOfNode(p)===e.getSourceFileOfNode(a)){var m=t.valueDeclaration;e.Debug.assertNode(m,e.isObjectLiteralElementLike),a=m;var _=m.name;e.isIdentifier(_)&&(f=nh(_,r))}void 0!==f?w(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,va(t),Ea(r),f):w(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,va(t),Ea(r))}}return{value:!0}}if(c&&!G(Ao(t),function(n,t){return xu(e.reduceLeft(n,(function(n,r){var i,a=3145728&(r=mc(r)).flags?hc(r,t):$s(r,t),o=a&&Ao(a)||(null===(i=Mc(r,t))||void 0===i?void 0:i.type)||Me;return e.append(n,o)}),void 0)||e.emptyArray)}(c,t.escapedName),i))return i&&O(e.Diagnostics.Types_of_property_0_are_incompatible,va(t)),{value:!0}}},d=0,p=nc(n);d<p.length;d++){var f=u(p[d]);if("object"==typeof f)return f.value}return!1}(c,l,i))return i&&M(o,c,t.aliasSymbol?t:l),0;var m=r!==yr&&!(2&s)&&2752508&c.flags&&c!==An&&2621440&l.flags&&tf(l)&&(nc(c).length>0||iS(c));if(m&&!function(e,n,t){for(var r=0,i=nc(e);r<i.length;r++)if(Dy(n,i[r].escapedName,t))return!0;return!1}(c,l,p)){if(i){var _=Ea(n.aliasSymbol?n:c),y=Ea(t.aliasSymbol?t:l),h=Dc(c,0),v=Dc(c,1);h.length>0&&G(el(h[0]),l,!1)||v.length>0&&G(el(v[0]),l,!1)?w(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,_,y):w(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,_,y)}return 0}B(c,l);var b=0,T=R();if((3145728&c.flags||3145728&l.flags)&&(b=U_(c)*U_(l)>=4?H(c,l,i,8|s):W(c,l,i,8|s)),b||1048576&c.flags||!(469499904&c.flags||469499904&l.flags)||(b=H(c,l,i,s))&&k(T),!b&&2359296&c.flags){var x=function(n,t){for(var r,i=!1,a=0,o=n;a<o.length;a++)if(465829888&(u=o[a]).flags){for(var s=tc(u);s&&21233664&s.flags;)s=tc(s);s&&(r=e.append(r,s),t&&(r=e.append(r,u)))}else 469892092&u.flags&&(i=!0);if(r&&(t||i)){if(i)for(var c=0,l=n;c<l.length;c++){var u;469892092&(u=l[c]).flags&&(r=e.append(r,u))}return ku(r)}}(2097152&c.flags?c.types:[c],!!(1048576&l.flags));x&&(2097152&c.flags||1048576&l.flags)&&P_(x,(function(e){return e!==c}))&&(b=G(x,l,!1,void 0,s))&&k(T)}return b&&!S&&(2097152&l.flags&&(f||m)||xd(l)&&!Ef(l)&&!Uf(l)&&2097152&c.flags&&3670016&mc(c).flags&&!e.some(c.types,(function(n){return!!(524288&e.getObjectFlags(n))})))&&(S=!0,b&=H(c,l,i,4),S=!1),L(c,l,b,p),b;function L(r,s,c,l){if(!c&&i){var d=!!Df(n),p=!!Df(t);r=n.aliasSymbol||d?n:r,s=t.aliasSymbol||p?t:s;var f=E>0;if(f&&E--,524288&r.flags&&524288&s.flags){var m=u;F(r,s,i),u!==m&&(f=!!u)}if(524288&r.flags&&131068&s.flags)!function(n,t){var r=xa(n.symbol)?Ea(n,n.symbol.valueDeclaration):Ea(n),i=xa(t.symbol)?Ea(t,t.symbol.valueDeclaration):Ea(t);(On===n&&je===t||Pn===n&&Ke===t||wn===n&&Xe===t||Yl(!1)===n&&Ye===t)&&w(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,r)}(r,s);else if(r.symbol&&524288&r.flags&&An===r)w(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(l&&2097152&s.flags){var _=s.types,y=fy(I.IntrinsicAttributes,a),h=fy(I.IntrinsicClassAttributes,a);if(y!==Re&&h!==Re&&(e.contains(_,y)||e.contains(_,h)))return c}else u=Sc(u,t);if(!o&&f)return g=[r,s],c;M(o,r,s)}}}function B(n,t){if(e.tracing&&3145728&n.flags&&3145728&t.flags){var r=n,i=t;if(r.objectFlags&i.objectFlags&65536)return;var o=r.types.length,s=i.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:n.id,sourceSize:o,targetId:t.id,targetSize:s,pos:null==a?void 0:a.pos,end:null==a?void 0:a.end})}}function U(e,n){for(var t=-1,r=0,i=e.types;r<i.length;r++){var a=j(i[r],n,!1);if(!a)return 0;t&=a}return t}function j(e,n,t){var r=n.types;if(1048576&n.flags){if(hu(r,e))return-1;var i=l_(n,e);if(i&&(s=G(e,i,!1)))return s}for(var a=0,o=r;a<o.length;a++){var s;if(s=G(e,o[a],!1))return s}return t&&G(e,ef(e,n,G)||r[r.length-1],!0),0}function K(e,n,t,r){var i=e.types;if(1048576&e.flags&&hu(i,n))return-1;for(var a=i.length,o=0;o<a;o++){var s=G(i[o],n,t&&o===a-1,void 0,r);if(s)return s}return 0}function H(n,t,i,a){if(b)return 0;var o=df(n,t,a|(S?16:0),r),s=r.get(o);if(void 0!==s&&(!(i&&2&s)||4&s)){if(yt){var c=24&s;8&c&&fp(n,Qd(J)),16&c&&fp(n,Qd(q))}return 1&s?-1:0}if(f){for(var l=o.split(",").map((function(n){return n.replace(/-\d+/g,(function(n,t){return"="+e.length(o.slice(0,t).match(/[-=]/g)||void 0)}))})).join(","),u=0;u<y;u++)if(o===f[u]||l===f[u])return 3;if(100===h)return b=!0,0}else f=[],m=[],_=[];var d=y;f[y]=o,y++,m[h]=n,_[h]=t,h++;var p,g=v;1&v||!_f(n,m,h)||(v|=1),2&v||!_f(t,_,h)||(v|=2);var E=0;yt&&(p=yt,yt=function(e){return E|=e?16:8,p(e)}),3===v&&(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:n.id,sourceIdStack:m.map((function(e){return e.id})),targetId:t.id,targetIdStack:_.map((function(e){return e.id})),depth:h}));var T=3!==v?W(n,t,i,a):3;if(yt&&(yt=p),v=g,h--,T){if(-1===T||0===h){if(-1===T||3===T)for(u=d;u<y;u++)r.set(f[u],1|E);y=d}}else r.set(o,2|(i?4:0)|E),y=d;return T}function W(n,t,i,a){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:n.id,targetId:t.id});var o=function(n,t,i,a){if(4&a)return Z(n,t,i,void 0,0);if(8&a){if(1048576&n.flags)return r===yr?K(n,t,i&&!(131068&n.flags),-9&a):function(e,n,t,r){for(var i=-1,a=e.types,o=function(e,n){return 1048576&e.flags&&1048576&n.flags&&!(32768&e.types[0].flags)&&32768&n.types[0].flags?V_(n,-32769):n}(e,n),s=0;s<a.length;s++){var c=a[s];if(1048576&o.flags&&a.length>=o.types.length&&a.length%o.types.length==0){var l=G(c,o.types[s%o.types.length],!1,void 0,r);if(l){i&=l;continue}}var u=G(c,n,t,void 0,r);if(!u)return 0;i&=u}return i}(n,t,i&&!(131068&n.flags),-9&a);if(1048576&t.flags)return j(cm(n),t,i&&!(131068&n.flags)&&!(131068&t.flags));if(2097152&t.flags)return function(e,n,t,r){for(var i=-1,a=0,o=n.types;a<o.length;a++){var s=G(e,o[a],t,void 0,2);if(!s)return 0;i&=s}return i}(cm(n),t,i);if(r===yr&&131068&t.flags){var o=e.sameMap(n.types,lc);if(o!==n.types&&!(2097152&(n=ku(o)).flags))return G(n,t,!1)}return K(n,t,!1,1)}var s,c,l=n.flags&t.flags;if(r===hr&&!(524288&l)){if(4194304&l)return G(n.type,t.type,!1);var d=0;return 8388608&l&&(d=G(n.objectType,t.objectType,!1))&&(d&=G(n.indexType,t.indexType,!1))||16777216&l&&n.root.isDistributive===t.root.isDistributive&&(d=G(n.checkType,t.checkType,!1))&&(d&=G(n.extendsType,t.extendsType,!1))&&(d&=G(_d(n),_d(t),!1))&&(d&=G(gd(n),gd(t),!1))?d:33554432&l?G(n.substitute,t.substitute,!1):0}var p,f,m,_,g=!1,y=R();if(17301504&n.flags&&n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===t.aliasSymbol&&!n.aliasTypeArgumentsContainsMarker&&!t.aliasTypeArgumentsContainsMarker){if((ce=af(n.aliasSymbol))===e.emptyArray)return 1;if(void 0!==(le=me(n.aliasTypeArguments,t.aliasTypeArguments,ce,a)))return le}if(jf(n)&&!n.target.readonly&&(s=G(Ll(n)[0],t))||jf(t)&&(t.target.readonly||Sf(cc(n)||n))&&(s=G(n,Ll(t)[0])))return s;if(262144&t.flags){if(32&e.getObjectFlags(n)&&!n.declaration.nameType&&G(Gu(t),Vs(n))&&!(4&Js(n))){var h=Ks(n),v=ad(t,Us(n));if(s=G(h,v,i))return s}}else if(4194304&t.flags){var b=t.type;if(4194304&n.flags&&(s=G(b,n.type,!1)))return s;if(Uf(b)){if(s=G(n,mu(b),i))return s}else if((Y=ic(b))&&-1===G(n,Gu(Y,t.stringsOnly),i))return-1}else if(8388608&t.flags){if(8388608&n.flags){if((s=G(n.objectType,t.objectType,i))&&(s&=G(n.indexType,t.indexType,i)),s)return k(y),s;i&&(c=u)}if(r===gr||r===yr){var E=t.objectType,T=t.indexType,S=cc(E)||E,x=cc(T)||T;if(!Qu(S)&&!Zu(x)&&(Y=sd(S,x,4|(S!==E?2:0)))){if(i&&c&&k(y),s=G(n,Y,i))return s;i&&c&&u&&(u=fe([c])<=fe([u])?c:u)}}i&&(c=void 0)}else if(Ys(t)&&!t.declaration.nameType){var L=Ks(t),D=Js(t);if(!(8&D)){if(8388608&L.flags&&L.objectType===n&&L.indexType===Us(t))return-1;if(!Ys(n)){var A=Vs(t),C=Gu(n,void 0,!0),I=4&D,N=I?Os(A,C):void 0;if(I?!(131072&N.flags):G(A,C)){h=Ks(t);var O=Us(t),P=V_(h,-98305);if(8388608&P.flags&&P.indexType===O){if(s=G(n,P.objectType,i))return s}else if(v=ad(n,N?ku([N,O]):O),s=G(v,h,i))return s}c=u,k(y)}}}else if(16777216&t.flags){var w=t,M=!Ap(_p(w.checkType),_p(w.extendsType)),F=!M&&(f=(p=w).root.inferTypeParameters&&qd(p.root.inferTypeParameters,e.map(p.root.inferTypeParameters,(function(){return ke}))),m=p.checkType,_=p.extendsType,Ap(gp(m),gp(fp(_,f)))),B=void 0,U=ud(w.root.checkType);if(w.root.isDistributive&&262144&U.flags){var V=rp(U);B=np(U,V,w.mapper),V.mapper=B}var H=void 0;if((M||(H=G(n,B?fp(jd(w.root.node.trueType),B):_d(w),!1)))&&(F||(H=(H||3)&G(n,B?fp(jd(w.root.node.falseType),B):gd(w),!1))),H)return k(y),H}else if(134217728&t.flags){134217728&n.flags&&fp(n,Qd(q));var W=Bm(n,t);if(W&&e.every(W,(function(n,r){return function(n,t){if(n===t||5&t.flags)return!0;if(128&n.flags){var r=n.value;return!!(8&t.flags&&""!==r&&isFinite(+r)||64&t.flags&&""!==r&&function(n){var t=e.createScanner(99,!1),r=!0;t.setOnError((function(){return r=!1})),t.setText(n+"n");var i=t.scan();40===i&&(i=t.scan());var a=t.getTokenFlags();return r&&9===i&&t.getTextPos()===n.length+1&&!(512&a)}(r)||98816&t.flags&&r===t.intrinsicName)}if(134217728&n.flags){var i=n.texts;return 2===i.length&&""===i[0]&&""===i[1]&&Ap(n.types[0],t)}return Ap(n,t)}(n,t.types[r])})))return-1}if(8650752&n.flags){if(!(8388608&n.flags&&8388608&t.flags))if(!(Y=tc(n))||262144&n.flags&&1&Y.flags){if(s=G(pn,V_(t,-67108865)))return k(y),s}else{if(s=G(Y,t,!1,void 0,a))return k(y),s;if(s=G(Es(Y,n),t,i&&!(t.flags&n.flags&262144),void 0,a))return k(y),s}}else if(4194304&n.flags){if(s=G(sn,t,i))return k(y),s}else if(134217728&n.flags){if(!(134217728&t.flags)){var X=cc(n);if(s=G(Y=X&&X!==n?X:je,t,i))return k(y),s}}else if(268435456&n.flags){var Y;if(268435456&t.flags&&n.symbol===t.symbol){if(s=G(n.type,t.type,i))return k(y),s}else if((Y=cc(n))&&(s=G(Y,t,i)))return k(y),s}else if(16777216&n.flags){if(16777216&t.flags){var ee=n.root.inferTypeParameters,ne=n.extendsType,te=void 0;if(ee){var re=Em(ee,void 0,0,G);jm(re.inferences,t.extendsType,ne,1536),ne=fp(ne,re.mapper),te=re.mapper}if(Tp(ne,t.extendsType)&&(G(n.checkType,t.checkType)||G(t.checkType,n.checkType))&&((s=G(fp(_d(n),te),_d(t),i))&&(s&=G(gd(n),gd(t),i)),s))return k(y),s}else{var ie=oc(n);if(ie&&(s=G(ie,t,i)))return k(y),s}var oe=ac(n);if(oe&&(s=G(oe,t,i)))return k(y),s}else{if(r!==mr&&r!==_r&&function(n){return!!(32&e.getObjectFlags(n)&&4&Js(n))}(t)&&Hp(n))return-1;if(Ys(t))return Ys(n)&&(s=function(e,n,t){var i;if((r===yr||(r===hr?Js(e)===Js(n):Xs(e)<=Xs(n)))&&(i=G(Vs(n),fp(Vs(e),Qd(Xs(e)<0?J:q)),t))){var a=qd([Us(e)],[Us(n)]);if(fp(js(e),a)===fp(js(n),a))return i&G(fp(Ks(e),a),Ks(n),t)}return 0}(n,t,i))?(k(y),s):0;var se=!!(131068&n.flags);if(r!==hr)n=mc(n);else if(Ys(n))return 0;if(4&e.getObjectFlags(n)&&4&e.getObjectFlags(t)&&n.target===t.target&&!Uf(n)&&!(4096&e.getObjectFlags(n)||4096&e.getObjectFlags(t))){var ce,le;if((ce=sf(n.target))===e.emptyArray)return 1;if(void 0!==(le=me(Ll(n),Ll(t),ce,a)))return le}else{if(Tf(t)?Ef(n)||Uf(n):Ef(t)&&Uf(n)&&!n.target.readonly)return r!==hr?G(Oc(n,Ke)||Ie,Oc(t,Ke)||Ie,i):0;if((r===mr||r===_r)&&Hp(t)&&16384&e.getObjectFlags(t)&&!Hp(n))return 0}if(2621440&n.flags&&524288&t.flags){var ue=i&&u===y.errorInfo&&!se;if((s=Z(n,t,ue,void 0,a))&&(s&=$(n,t,0,ue))&&(s&=$(n,t,1,ue))&&(s&=ae(n,t,se,ue,a)),g&&s)u=c||u||y.errorInfo;else if(s)return s}if(2621440&n.flags&&1048576&t.flags){var de=V_(t,36175872);if(1048576&de.flags){var pe=function(n,t){var i=o_(nc(n),t);if(!i)return 0;for(var a=1,o=0,s=i;o<s.length;o++)if((a*=F_(Co(d=s[o])))>25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:n.id,targetId:t.id,numCombinations:a}),0;for(var c=new Array(i.length),l=new e.Set,u=0;u<i.length;u++){var d,p=Co(d=i[u]);c[u]=1048576&p.flags?p.types:[p],l.add(d.escapedName)}for(var f=e.cartesianProduct(c),m=[],_=function(a){var o=!1;e:for(var s=0,c=t.types;s<c.length;s++){for(var l=c[s],u=function(e){var o=i[e],s=xc(l,o.escapedName);return s?o===s?"continue":Q(n,t,o,s,(function(n){return a[e]}),!1,0,z||r===yr)?void 0:"continue-outer":"continue-outer"},d=0;d<i.length;d++)if("continue-outer"===u(d))continue e;e.pushIfUnique(m,l,e.equateValues),o=!0}if(!o)return{value:0}},g=0,y=f;g<y.length;g++){var h=_(y[g]);if("object"==typeof h)return h.value}for(var v=-1,b=0,E=m;b<E.length;b++){var T=E[b];if((v&=Z(n,T,!1,l,0))&&(v&=$(n,T,0,!1))&&(!(v&=$(n,T,1,!1))||Uf(n)&&Uf(T)||(v&=ae(n,T,!1,!1,0))),!v)return v}return v}(n,de);if(pe)return pe}}}return 0;function fe(n){return n?e.reduceLeft(n,(function(e,n){return e+1+fe(n.next)}),0):0}function me(n,t,a,o){if(s=function(n,t,i,a,o){if(void 0===n&&(n=e.emptyArray),void 0===t&&(t=e.emptyArray),void 0===i&&(i=e.emptyArray),n.length!==t.length&&r===hr)return 0;for(var s=n.length<=t.length?n.length:t.length,c=-1,l=0;l<s;l++){var u=l<i.length?i[l]:1,d=7&u;if(4!==d){var p=n[l],f=t[l],m=-1;if(8&u?m=r===hr?G(p,f,!1):Sp(p,f):1===d?m=G(p,f,a,void 0,o):2===d?m=G(f,p,a,void 0,o):3===d?(m=G(f,p,!1))||(m=G(p,f,a,void 0,o)):(m=G(p,f,a,void 0,o))&&(m&=G(f,p,a,void 0,o)),!m)return 0;c&=m}}return c}(n,t,a,i,o))return s;if(e.some(a,(function(e){return!!(24&e)})))return c=void 0,void k(y);var l=t&&function(e,n){for(var t=0;t<n.length;t++)if(1==(7&n[t])&&16384&e[t].flags)return!0;return!1}(t,a);if(g=!l,a!==e.emptyArray&&!l){if(g&&(!i||!e.some(a,(function(e){return 0==(7&e)}))))return 0;c=u,k(y)}}}(n,t,i,a);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function J(e){return!yt||e!==En&&e!==Tn&&e!==ht||yt(!1),e}function q(e){return!yt||e!==En&&e!==Tn&&e!==ht||yt(!0),e}function X(e,n){if(!n||0===e.length)return e;for(var t,r=0;r<e.length;r++)n.has(e[r].escapedName)?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t||e}function Q(n,t,r,i,a,o,s,c){var l=e.getDeclarationModifierFlagsFromSymbol(r),u=e.getDeclarationModifierFlagsFromSymbol(i);if(8&l||8&u){if(r.valueDeclaration!==i.valueDeclaration)return o&&(8&l&&8&u?w(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,va(i)):w(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,va(i),Ea(8&l?n:t),Ea(8&l?t:n))),0}else if(16&u){if(!function(n,t){return!pf(t,(function(t){return!!(16&e.getDeclarationModifierFlagsFromSymbol(t))&&(r=n,i=ff(t),!pf(r,(function(e){var n=ff(e);return!!n&&ko(n,i)})));var r,i}))}(r,i))return o&&w(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,va(i),Ea(ff(r)||n),Ea(ff(i)||t)),0}else if(16&l)return o&&w(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,va(i),Ea(n),Ea(t)),0;var d=function(n,t,r,i,a){var o=z&&!!(48&e.getCheckFlags(t)),s=$a(Co(t),!1,o);return G(r(n),s,i,void 0,a)}(r,i,a,o,s);return d?c||!(16777216&r.flags)||16777216&i.flags?d:(o&&w(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,va(i),Ea(n),Ea(t)),0):(o&&O(e.Diagnostics.Types_of_property_0_are_incompatible,va(i)),0)}function Z(n,t,a,s,c){if(r===hr)return function(e,n,t){if(!(524288&e.flags&&524288&n.flags))return 0;var r=X(Zs(e),t),i=X(Zs(n),t);if(r.length!==i.length)return 0;for(var a=-1,o=0,s=r;o<s.length;o++){var c=s[o],l=$s(n,c.escapedName);if(!l)return 0;var u=hf(c,l,G);if(!u)return 0;a&=u}return a}(n,t,s);var d=-1;if(Uf(t)){if(Ef(n)||Uf(n)){if(!t.target.readonly&&(Tf(n)||Uf(n)&&n.target.readonly))return 0;var f=Dl(n),m=Dl(t),_=Uf(n)?4&n.target.combinedFlags:4,g=4&t.target.combinedFlags,y=Uf(n)?n.target.minLength:0,h=t.target.minLength;if(!_&&f<h)return a&&w(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,f,h),0;if(!g&&m<y)return a&&w(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,y,m),0;if(!g&&(_||m<f))return a&&(y<h?w(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,h):w(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,m)),0;for(var v=Ll(n),b=Ll(t),T=Math.min(Uf(n)?_u(n.target,11):0,_u(t.target,11)),S=Math.min(Uf(n)?gu(n.target,11):0,g?gu(t.target,11):0),x=!!s,L=0;L<m;L++){var D=L<m-S?L:L+f-m,A=Uf(n)&&(L<T||L>=m-S)?n.target.elementFlags[D]:4,C=t.target.elementFlags[L];if(8&C&&!(8&A))return a&&w(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,L),0;if(8&A&&!(12&C))return a&&w(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,D,L),0;if(1&C&&!(1&A))return a&&w(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,L),0;if(!(x&&((12&A||12&C)&&(x=!1),x&&(null==s?void 0:s.has(""+L))))){var I=Uf(n)?L<T||L>=m-S?rm(v[D],!!(A&C&2)):Hf(n,T,S)||Ze:v[0],N=b[L];if(!(z=G(I,8&A&&4&C?ru(N):rm(N,!!(2&C)),a,void 0,c)))return a&&(m>1||f>1)&&(L<T||L>=m-S||f-T-S==1?O(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,D,L):O(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,T,f-S-1,L)),0;d&=z}}return d}if(12&t.target.combinedFlags)return 0}var k=!(r!==mr&&r!==_r||Wm(n)||Cf(n)||Uf(n)),R=wm(n,t,k,!1);if(R)return a&&function(n,t,r,a){var s=!1;if(r.valueDeclaration&&e.isNamedDeclaration(r.valueDeclaration)&&e.isPrivateIdentifier(r.valueDeclaration.name)&&n.symbol&&32&n.symbol.flags){var c=r.valueDeclaration.name.escapedText,d=e.getSymbolNameForPrivateIdentifier(n.symbol,c);if(d&&xc(n,d)){var f=e.factory.getDeclarationName(n.symbol.valueDeclaration),m=e.factory.getDeclarationName(t.symbol.valueDeclaration);return void w(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Xr(c),Xr(""===f.escapedText?l:f),Xr(""===m.escapedText?l:m))}}var _,g=e.arrayFrom(Pm(n,t,a,!1));if((!o||o.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&o.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(s=!0),1===g.length){var y=va(r);w.apply(void 0,i([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,y],Ta(n,t),!1)),e.length(r.declarations)&&(_=e.createDiagnosticForNode(r.declarations[0],e.Diagnostics._0_is_declared_here,y),e.Debug.assert(!!u),p?p.push(_):p=[_]),s&&u&&E++}else F(n,t,!1)&&(g.length>5?w(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Ea(n),Ea(t),e.map(g.slice(0,4),(function(e){return va(e)})).join(", "),g.length-4):w(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Ea(n),Ea(t),e.map(g,(function(e){return va(e)})).join(", ")),s&&u&&E++)}(n,t,R,k),0;if(Wm(t))for(var P=0,M=X(nc(n),s);P<M.length;P++)if(!($s(t,(K=M[P]).escapedName)||32768&(I=Ao(K)).flags))return a&&w(e.Diagnostics.Property_0_does_not_exist_on_type_1,va(K),Ea(t)),0;for(var B=nc(t),U=Uf(n)&&Uf(t),V=0,j=X(B,s);V<j.length;V++){var K,H=j[V],W=H.escapedName;if(!(4194304&H.flags)&&(!U||ty(W)||"length"===W)&&(K=xc(n,W))&&K!==H){var z;if(!(z=Q(n,t,K,H,Co,a,c,r===yr)))return 0;d&=z}}return d}function $(n,t,i,a){var o,s;if(r===hr)return function(e,n,t){var r=Dc(e,t),i=Dc(n,t);if(r.length!==i.length)return 0;for(var a=-1,o=0;o<r.length;o++){var s=vf(r[o],i[o],!1,!1,!1,G);if(!s)return 0;a&=s}return a}(n,t,i);if(t===yn||n===yn)return-1;var c=n.symbol&&ev(n.symbol.valueDeclaration),l=t.symbol&&ev(t.symbol.valueDeclaration),u=Dc(n,c&&1===i?0:i),d=Dc(t,l&&1===i?0:i);if(1===i&&u.length&&d.length){var p=!!(4&u[0].flags),f=!!(4&d[0].flags);if(p&&!f)return a&&w(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(n,t,r){if(!n.declaration||!t.declaration)return!0;var i=e.getSelectedEffectiveModifierFlags(n.declaration,24),a=e.getSelectedEffectiveModifierFlags(t.declaration,24);return 8===a||(16===a&&8!==i||(16!==a&&!i||(r&&w(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Ca(i),Ca(a)),!1)))}(u[0],d[0],a))return 0}var m=-1,_=R(),g=1===i?te:ee,y=e.getObjectFlags(n),h=e.getObjectFlags(t);if(64&y&&64&h&&n.symbol===t.symbol)for(var v=0;v<d.length;v++){if(!(N=re(u[v],d[v],!0,a,g(u[v],d[v]))))return 0;m&=N}else if(1===u.length&&1===d.length){var b=r===yr||!!V.noStrictGenericChecks,E=e.first(u),T=e.first(d);if(!(m=re(E,T,b,a,g(E,T)))&&a&&1===i&&y&h&&(169===(null===(o=T.declaration)||void 0===o?void 0:o.kind)||169===(null===(s=E.declaration)||void 0===s?void 0:s.kind))){var S=function(e){return ba(e,void 0,262144,i)};return w(e.Diagnostics.Type_0_is_not_assignable_to_type_1,S(E),S(T)),w(e.Diagnostics.Types_of_construct_signatures_are_incompatible),m}}else e:for(var x=0,L=d;x<L.length;x++){for(var D=L[x],A=a,C=0,I=u;C<I.length;C++){var N,O=I[C];if(N=re(O,D,!0,A,g(O,D))){m&=N,k(_);continue e}A=!1}return A&&w(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Ea(n),ba(D,void 0,void 0,i)),0}return m}function ee(n,t){return 0===n.parameters.length&&0===t.parameters.length?function(n,t){return O(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ea(n),Ea(t))}:function(n,t){return O(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,Ea(n),Ea(t))}}function te(n,t){return 0===n.parameters.length&&0===t.parameters.length?function(n,t){return O(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ea(n),Ea(t))}:function(n,t){return O(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,Ea(n),Ea(t))}}function re(e,n,t,i,a){return jp(t?sl(e):e,t?sl(n):n,r===_r?8:0,i,w,a,G,Qd(q))}function ie(n,t,r){var i=G(n.type,t.type,r);return!i&&r&&(n.keyType===t.keyType?w(e.Diagnostics._0_index_signatures_are_incompatible,Ea(n.keyType)):w(e.Diagnostics._0_and_1_index_signatures_are_incompatible,Ea(n.keyType),Ea(t.keyType))),i}function ae(n,t,i,a,o){if(r===hr)return function(e,n){var t=kc(e),r=kc(n);if(t.length!==r.length)return 0;for(var i=0,a=r;i<a.length;i++){var o=a[i],s=Rc(e,o.keyType);if(!s||!G(s.type,o.type)||s.isReadonly!==o.isReadonly)return 0}return-1}(n,t);for(var s=kc(t),c=e.some(s,(function(e){return e.keyType===je})),l=-1,u=0,d=s;u<d.length;u++){var p=d[u],f=!i&&c&&1&p.type.flags?-1:Ys(n)&&c?G(Ks(n),p.type,a):oe(n,p,a,o);if(!f)return 0;l&=f}return l}function oe(n,t,r,i){var a=wc(n,t.keyType);return a?ie(a,t,r):1&i||!om(n)?(r&&w(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,Ea(t.keyType),Ea(n)),0):function(n,t,r){for(var i=-1,a=t.keyType,o=0,s=2097152&n.flags?ec(n):Zs(n);o<s.length;o++){var c=s[o];if(!Yp(n,c)&&Ic(Fu(c,8576),a)){var l=Co(c);if(!(f=G(ne||32768&l.flags||a===Ke||!(16777216&c.flags)?l:__(l,524288),t.type,r)))return r&&w(e.Diagnostics.Property_0_is_incompatible_with_index_signature,va(c)),0;i&=f}}for(var u=0,d=kc(n);u<d.length;u++){var p=d[u];if(Ic(p.keyType,a)){var f;if(!(f=ie(p,t,r)))return 0;i&=f}}return i}(n,t,r)}}function $p(n){if(16&n.flags)return!1;if(3145728&n.flags)return!!e.forEach(n.types,$p);if(465829888&n.flags){var t=tc(n);if(t&&t!==n)return $p(t)}return Rf(n)||!!(134217728&n.flags)}function ef(n,t,r){return void 0===r&&(r=xp),yx(n,t,r,!0)||function(n,t){var r=e.getObjectFlags(n);if(20&r&&1048576&t.flags)return e.find(t.types,(function(t){if(524288&t.flags){var i=r&e.getObjectFlags(t);if(4&i)return n.target===t.target;if(16&i)return!!n.aliasSymbol&&n.aliasSymbol===t.aliasSymbol}return!1}))}(n,t)||function(n,t){if(128&e.getObjectFlags(n)&&O_(t,Lf))return e.find(t.types,(function(e){return!Lf(e)}))}(n,t)||function(n,t){var r=0;if(Dc(n,r).length>0||Dc(n,r=1).length>0)return e.find(t.types,(function(e){return Dc(e,r).length>0}))}(n,t)||function(n,t){for(var r,i=0,a=0,o=t.types;a<o.length;a++){var s=o[a],c=ku([Gu(n),Gu(s)]);if(4194304&c.flags)r=s,i=1/0;else if(1048576&c.flags){var l=e.length(e.filter(c.types,Rf));l>=i&&(r=s,i=l)}else Rf(c)&&1>=i&&(r=s,i=1)}return r}(n,t)}function nf(n,t,r,i,a){for(var o=n.types.map((function(e){})),s=0,c=t;s<c.length;s++){var l=c[s],u=l[0],d=l[1],p=yc(n,d);if(!(a&&p&&16&e.getCheckFlags(p)))for(var f=0,m=0,_=n.types;m<_.length;m++){var g=Ua(_[m],d);g&&r(u(),g)?o[f]=void 0===o[f]||o[f]:o[f]=!1,f++}}var y=o.indexOf(!0);if(-1===y)return i;for(var h=o.indexOf(!0,y+1);-1!==h;){if(!Tp(n.types[y],n.types[h]))return i;h=o.indexOf(!0,h+1)}return n.types[y]}function tf(n){if(524288&n.flags){var t=Qs(n);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&t.properties.length>0&&e.every(t.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&n.flags)&&e.every(n.types,tf)}function rf(n,t,r){var i=Tl(n,e.map(n.typeParameters,(function(e){return e===t?r:e})));return i.objectFlags|=4096,i}function af(e){var n=Br(e);return of(n.typeParameters,n,(function(t,r,i){var a=Cl(e,Wd(n.typeParameters,Yd(r,i)));return a.aliasTypeArgumentsContainsMarker=!0,a}))}function of(n,t,r){var i,a,o;void 0===n&&(n=e.emptyArray);var s=t.variances;if(!s){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:n.length,id:null!==(o=null!==(i=t.id)&&void 0!==i?i:null===(a=t.declaredType)||void 0===a?void 0:a.id)&&void 0!==o?o:-1}),t.variances=e.emptyArray,s=[];for(var c=function(e){var n=!1,i=!1,a=yt;yt=function(e){return e?i=!0:n=!0};var o=r(t,e,En),c=r(t,e,Tn),l=(Ap(c,o)?1:0)|(Ap(o,c)?2:0);3===l&&Ap(r(t,e,ht),o)&&(l=4),yt=a,(n||i)&&(n&&(l|=8),i&&(l|=16)),s.push(l)},l=0,u=n;l<u.length;l++)c(u[l]);t.variances=s,null===e.tracing||void 0===e.tracing||e.tracing.pop()}return s}function sf(e){return e===kn||e===Rn||8&e.objectFlags?A:of(e.typeParameters,e,rf)}function cf(e){return 262144&e.flags&&!rc(e)}function lf(n){return function(n){return!!(4&e.getObjectFlags(n))&&!n.node}(n)&&e.some(Ll(n),(function(e){return!!(262144&e.flags)||lf(e)}))}function uf(e,n,t){void 0===t&&(t=0);for(var r=""+e.target.id,i=0,a=Ll(e);i<a.length;i++){var o=a[i];if(cf(o)){var s=n.indexOf(o);s<0&&(s=n.length,n.push(o)),r+="="+s}else t<4&&lf(o)?r+="<"+uf(o,n,t+1)+">":r+="-"+o.id}return r}function df(e,n,t,r){if(r===hr&&e.id>n.id){var i=e;e=n,n=i}var a=t?":"+t:"";if(lf(e)&&lf(n)){var o=[];return uf(e,o)+","+uf(n,o)+a}return e.id+","+n.id+a}function pf(n,t){if(!(6&e.getCheckFlags(n)))return t(n);for(var r=0,i=n.containingType.types;r<i.length;r++){var a=xc(i[r],n.escapedName),o=a&&pf(a,t);if(o)return o}}function ff(e){return e.parent&&32&e.parent.flags?ns(Vi(e)):void 0}function mf(e){var n=ff(e),t=n&&Ko(n)[0];return t&&Ua(t,e.escapedName)}function _f(e,n,t){if(t>=5)for(var r=gf(e),i=0,a=0;a<t;a++)if(gf(n[a])===r&&++i>=5)return!0;return!1}function gf(n){if(524288&n.flags&&!zm(n)){if(e.getObjectFlags(n)&&n.node)return n.node;if(n.symbol&&!(16&e.getObjectFlags(n)&&32&n.symbol.flags))return n.symbol;if(Uf(n))return n.target}if(262144&n.flags)return n.symbol;if(8388608&n.flags){do{n=n.objectType}while(8388608&n.flags);return n}return 16777216&n.flags?n.root:n}function yf(e,n){return 0!==hf(e,n,Sp)}function hf(n,t,r){if(n===t)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(n);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(t)))return 0;if(i){if(hT(n)!==hT(t))return 0}else if((16777216&n.flags)!=(16777216&t.flags))return 0;return Wv(n)!==Wv(t)?0:r(Ao(n),Ao(t))}function vf(n,t,r,i,a,o){if(n===t)return-1;if(!function(e,n,t){var r=Ev(e),i=Ev(n),a=Tv(e),o=Tv(n),s=Sv(e),c=Sv(n);return r===i&&a===o&&s===c||!!(t&&a<=o)}(n,t,r))return 0;if(e.length(n.typeParameters)!==e.length(t.typeParameters))return 0;if(t.typeParameters){for(var s=qd(n.typeParameters,t.typeParameters),c=0;c<t.typeParameters.length;c++)if(!((_=n.typeParameters[c])===(f=t.typeParameters[c])||o(fp(yl(_),s)||we,yl(f)||we)&&o(fp(fc(_),s)||we,fc(f)||we)))return 0;n=ip(n,s,!0)}var l=-1;if(!i){var u=Qc(n);if(u){var d=Qc(t);if(d){if(!(m=o(u,d)))return 0;l&=m}}}var p=Ev(t);for(c=0;c<p;c++){var f,m,_=hv(n,c);if(!(m=o(f=hv(t,c),_)))return 0;l&=m}if(!a){var g=Zc(n),y=Zc(t);l&=g||y?function(e,n,t){return e&&n&&Lu(e,n)?e.type===n.type?-1:e.type&&n.type?t(e.type,n.type):0:0}(g,y,o):o(el(n),el(t))}return l}function bf(n){return 1===n.length?n[0]:function(e){for(var n,t=0,r=e;t<r.length;t++){var i=r[t],a=wf(i);if(n||(n=a),a===i||a!==n)return!1}return!0}(n)?xu(n):e.reduceLeft(n,(function(e,n){return Dp(e,n)?n:e}))}function Ef(n){return!!(4&e.getObjectFlags(n))&&(n.target===kn||n.target===Rn)}function Tf(n){return!!(4&e.getObjectFlags(n))&&n.target===Rn}function Sf(e){return Ef(e)&&!Tf(e)||Uf(e)&&!e.target.readonly}function xf(e){return Ef(e)?Ll(e)[0]:void 0}function Lf(e){return Ef(e)||!(98304&e.flags)&&Ap(e,Un)}function Df(n){if(4&e.getObjectFlags(n)&&3&e.getObjectFlags(n.target)){if(33554432&e.getObjectFlags(n))return 67108864&e.getObjectFlags(n)?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;var t=n.target;if(1&e.getObjectFlags(t)){var r=Go(t);if(r&&79!==r.expression.kind&&204!==r.expression.kind)return}var i=Ko(t);if(1===i.length&&!vs(n.symbol).size){var a=e.length(t.typeParameters)?fp(i[0],qd(t.typeParameters,Ll(n).slice(0,t.typeParameters.length))):i[0];return e.length(Ll(n))>e.length(t.typeParameters)&&(a=Es(a,e.last(Ll(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=a}}}function Af(e){return z?e===nn:e===Fe}function Cf(e){var n=xf(e);return!!n&&Af(n)}function If(e){return Uf(e)||!!xc(e,"0")}function Nf(e){return Lf(e)||If(e)}function kf(e){return!(240512&e.flags)}function Rf(e){return!!(109440&e.flags)}function Of(n){return 2097152&n.flags?e.some(n.types,Rf):!!(109440&n.flags)}function Pf(n){return!!(16&n.flags)||(1048576&n.flags?!!(1024&n.flags)||e.every(n.types,Rf):Rf(n))}function wf(e){return 1024&e.flags?Qo(e):128&e.flags?je:256&e.flags?Ke:2048&e.flags?He:512&e.flags?Xe:1048576&e.flags?G_(e,wf):e}function Mf(e){return 1024&e.flags&&Od(e)?Qo(e):128&e.flags&&Od(e)?je:256&e.flags&&Od(e)?Ke:2048&e.flags&&Od(e)?He:512&e.flags&&Od(e)?Xe:1048576&e.flags?G_(e,Mf):e}function Ff(e){return 8192&e.flags?Ye:1048576&e.flags?G_(e,Ff):e}function Gf(e,n){return fb(e,n)||(e=Ff(Mf(e))),e}function Bf(e,n,t,r){return e&&Rf(e)&&(e=Gf(e,n?oT(t,n,r):void 0)),e}function Uf(n){return!!(4&e.getObjectFlags(n)&&8&n.target.objectFlags)}function Vf(e){return Uf(e)&&!!(8&e.target.combinedFlags)}function jf(e){return Vf(e)&&1===e.target.elementFlags.length}function Kf(e){return Hf(e,e.target.fixedLength)}function Hf(e,n,t,r){void 0===t&&(t=0),void 0===r&&(r=!1);var i=Dl(e)-t;if(n<i){for(var a=Ll(e),o=[],s=n;s<i;s++){var c=a[s];o.push(8&e.target.elementFlags[s]?ad(c,Ke):c)}return r?ku(o):xu(o)}}function Wf(e){return"0"===e.value.base10Value}function zf(e){for(var n=0,t=0,r=e;t<r.length;t++)n|=Jf(r[t]);return n}function Jf(e){return 1048576&e.flags?zf(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?Wf(e)?2048:0:512&e.flags?e===We||e===ze?512:0:117724&e.flags}function qf(e){return 117632&Jf(e)?w_(e,(function(e){return!(117632&Jf(e))})):e}function Xf(e){return 4&e.flags?Ut:8&e.flags?Vt:64&e.flags?jt:e===ze||e===We||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&Wf(e)?e:Ze}function Yf(e,n){var t=n&~e.flags&98304;return 0===t?e:xu(32768===t?[e,Me]:65536===t?[e,Ue]:[e,Me,Ue])}function Qf(n,t){return void 0===t&&(t=!1),e.Debug.assert(z),32768&n.flags?n:xu([n,t?Be:Me])}function Zf(e){return z?function(e){var n=__(e,2097152);return Vn||(Vn=zl("NonNullable",524288,void 0)||Ae),Vn!==Ae?Cl(Vn,[n]):n}(e):e}function $f(e){return z?xu([e,Ge]):e}function em(e){return z?M_(e,Ge):e}function nm(n,t,r){return r?e.isOutermostOptionalChain(t)?Qf(n):$f(n):n}function tm(n,t){return e.isExpressionOfOptionalChainRoot(t)?Zf(n):e.isOptionalChain(t)?em(n):n}function rm(e,n){return ne&&n?M_(e,Be):e}function im(e){return ne&&(e===Be||1048576&e.flags&&hu(e.types,Be))}function am(e){return ne?M_(e,Be):__(e,524288)}function om(n){return 2097152&n.flags?e.every(n.types,om):!(!n.symbol||0==(7040&n.symbol.flags)||iS(n))||!!(1024&e.getObjectFlags(n)&&om(n.source))}function sm(n,t){var r=Nr(n.flags,n.escapedName,8&e.getCheckFlags(n));r.declarations=n.declarations,r.parent=n.parent,r.type=t,r.target=n,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration);var i=Br(n).nameType;return i&&(r.nameType=i),r}function cm(n){if(!(Wm(n)&&16384&e.getObjectFlags(n)))return n;var t=n.regularType;if(t)return t;var r=n,i=function(n,t){for(var r=e.createSymbolTable(),i=0,a=Zs(n);i<a.length;i++){var o=a[i],s=Ao(o),c=t(s);r.set(o.escapedName,c===s?o:sm(o,c))}return r}(n,cm),a=ra(r.symbol,i,r.callSignatures,r.constructSignatures,r.indexInfos);return a.flags=r.flags,a.objectFlags|=-16385&r.objectFlags,n.regularType=a,a}function lm(e,n,t){return{parent:e,propertyName:n,siblings:t,resolvedProperties:void 0}}function um(e){if(!e.siblings){for(var n=[],t=0,r=um(e.parent);t<r.length;t++){var i=r[t];if(Wm(i)){var a=$s(i,e.propertyName);a&&R_(Ao(a),(function(e){n.push(e)}))}}e.siblings=n}return e.siblings}function dm(n){if(!n.resolvedProperties){for(var t=new e.Map,r=0,i=um(n);r<i.length;r++){var a=i[r];if(Wm(a)&&!(4194304&e.getObjectFlags(a)))for(var o=0,s=nc(a);o<s.length;o++){var c=s[o];t.set(c.escapedName,c)}}n.resolvedProperties=e.arrayFrom(t.values())}return n.resolvedProperties}function pm(e,n){if(!(4&e.flags))return e;var t=Ao(e),r=_m(t,n&&lm(n,e.escapedName,void 0));return r===t?e:sm(e,r)}function fm(e){var n=De.get(e.escapedName);if(n)return n;var t=sm(e,Be);return t.flags|=16777216,De.set(e.escapedName,t),t}function mm(e){return _m(e,void 0)}function _m(n,t){if(393216&e.getObjectFlags(n)){if(void 0===t&&n.widened)return n.widened;var r=void 0;if(98305&n.flags)r=Ie;else if(Wm(n))r=function(n,t){for(var r=e.createSymbolTable(),i=0,a=Zs(n);i<a.length;i++){var o=a[i];r.set(o.escapedName,pm(o,t))}if(t)for(var s=0,c=dm(t);s<c.length;s++)o=c[s],r.has(o.escapedName)||r.set(o.escapedName,fm(o));var l=ra(n.symbol,r,e.emptyArray,e.emptyArray,e.sameMap(kc(n),(function(e){return pl(e.keyType,mm(e.type),e.isReadonly)})));return l.objectFlags|=532480&e.getObjectFlags(n),l}(n,t);else if(1048576&n.flags){var i=t||lm(void 0,void 0,n.types),a=e.sameMap(n.types,(function(e){return 98304&e.flags?e:_m(e,i)}));r=xu(a,e.some(a,Hp)?2:1)}else 2097152&n.flags?r=ku(e.sameMap(n.types,mm)):(Ef(n)||Uf(n))&&(r=Tl(n.target,e.sameMap(Ll(n),mm)));return r&&void 0===t&&(n.widened=r),r||n}return n}function gm(n){var t=!1;if(131072&e.getObjectFlags(n)){if(1048576&n.flags)if(e.some(n.types,Hp))t=!0;else for(var r=0,i=n.types;r<i.length;r++)gm(u=i[r])&&(t=!0);if(Ef(n)||Uf(n))for(var a=0,o=Ll(n);a<o.length;a++)gm(u=o[a])&&(t=!0);if(Wm(n))for(var s=0,c=Zs(n);s<c.length;s++){var l=c[s],u=Ao(l);131072&e.getObjectFlags(u)&&(gm(u)||xr(l.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,va(l),Ea(mm(u))),t=!0)}}return t}function ym(n,t,r){var i=Ea(mm(t));if(!e.isInJSFile(n)||e.isCheckJsEnabledForFile(e.getSourceFileOfNode(n),V)){var a;switch(n.kind){case 219:case 165:case 164:a=Y?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 o=n;if(e.isIdentifier(o.name)&&(e.isCallSignatureDeclaration(o.parent)||e.isMethodSignature(o.parent)||e.isFunctionTypeNode(o.parent))&&o.parent.parameters.indexOf(o)>-1&&(Wr(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o);return void Dr(Y,n,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}a=n.dotDotDotToken?Y?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:Y?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(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Y)return;break;case 312:return void xr(n,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 254:case 167:case 166:case 170:case 171:case 211:case 212:if(Y&&!n.name)return void xr(n,3===r?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=Y?3===r?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:return void(Y&&xr(n,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=Y?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}Dr(Y,n,a,e.declarationNameToString(e.getNameOfDeclaration(n)),i)}}function hm(n,r,i){!(t&&Y&&131072&e.getObjectFlags(r))||i&&Yg(n)||gm(r)||ym(n,r,i)}function vm(e,n,t){var r=Ev(e),i=Ev(n),a=xv(e),o=xv(n),s=o?i-1:i,c=a?s:Math.min(r,s),l=Qc(e);if(l){var u=Qc(n);u&&t(l,u)}for(var d=0;d<c;d++)t(hv(e,d),hv(n,d));o&&t(bv(e,c),o)}function bm(e,n,t){var r=Zc(e),i=Zc(n);r&&i&&Lu(r,i)&&r.type&&i.type?t(r.type,i.type):t(el(e),el(n))}function Em(e,n,t,r){return Tm(e.map(Lm),n,t,r||xp)}function Tm(e,n,t,r){var i={inferences:e,signature:n,flags:t,compareTypes:r,mapper:Qd((function(e){return Sm(i,e,!0)})),nonFixingMapper:Qd((function(e){return Sm(i,e,!1)}))};return i}function Sm(e,n,t){for(var r=e.inferences,i=0;i<r.length;i++){var a=r[i];if(n===a.typeParameter)return t&&!a.isFixed&&(xm(r),a.isFixed=!0),Jm(e,i)}return n}function xm(e){for(var n=0,t=e;n<t.length;n++){var r=t[n];r.isFixed||(r.inferredType=void 0)}}function Lm(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Dm(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function Am(e){return e&&e.mapper}function Cm(n){var t=e.getObjectFlags(n);if(1048576&t)return!!(2097152&t);var r=!!(465829888&n.flags||524288&n.flags&&!Im(n)&&(4&t&&(n.node||e.forEach(Ll(n),Cm))||16&t&&n.symbol&&14384&n.symbol.flags&&n.symbol.declarations||8389664&t)||3145728&n.flags&&!(1024&n.flags)&&!Im(n)&&e.some(n.types,Cm));return 3899393&n.flags&&(n.objectFlags|=1048576|(r?2097152:0)),r}function Im(n){if(n.aliasSymbol&&!n.aliasTypeArguments){var t=e.getDeclarationOfKind(n.aliasSymbol,257);return!(!t||!e.findAncestor(t.parent,(function(e){return 300===e.kind||259!==e.kind&&"quit"})))}return!1}function Nm(n,t){return!!(n===t||3145728&n.flags&&e.some(n.types,(function(e){return Nm(e,t)}))||16777216&n.flags&&(_d(n)===t||gd(n)===t))}function km(n,t,r){if(!Ot){var i=n.id+","+t.id+","+r.id;if(Rt.has(i))return Rt.get(i);Ot=!0;var a=function(n,t,r){if(Rc(n,je)||0!==nc(n).length&&Rm(n)){if(Ef(n))return ru(Om(Ll(n)[0],t,r),Tf(n));if(Uf(n))return lu(e.map(Ll(n),(function(e){return Om(e,t,r)})),4&Js(t)?e.sameMap(n.target.elementFlags,(function(e){return 2&e?1:e})):n.target.elementFlags,n.target.readonly,n.target.labeledElementDeclarations);var i=Zi(1040,void 0);return i.source=n,i.mappedType=t,i.constraintType=r,i}}(n,t,r);return Ot=!1,Rt.set(i,a),a}}function Rm(n){return!(524288&e.getObjectFlags(n))||Wm(n)&&e.some(nc(n),(function(e){return Rm(Ao(e))}))||Uf(n)&&e.some(Ll(n),Rm)}function Om(e,n,t){var r=ad(t.type,Us(n)),i=Ks(n),a=Lm(r);return jm([a],e,i),Mm(a)||we}function Pm(n,t,r,i){var a,o,c,l,u,d,p;return s(this,(function(s){switch(s.label){case 0:a=nc(t),o=0,c=a,s.label=1;case 1:return o<c.length?ls(l=c[o])||!r&&(16777216&l.flags||48&e.getCheckFlags(l))?[3,5]:(u=xc(n,l.escapedName))?[3,3]:[4,l]:[3,6];case 2:return s.sent(),[3,5];case 3:return i&&109440&(d=Ao(l)).flags?1&(p=Ao(u)).flags||Rd(p)===Rd(d)?[3,5]:[4,l]:[3,5];case 4:s.sent(),s.label=5;case 5:return o++,[3,1];case 6:return[2]}}))}function wm(e,n,t,r){var i=Pm(e,n,t,r).next();if(!i.done)return i.value}function Mm(e){return e.candidates?xu(e.candidates,2):e.contraCandidates?ku(e.contraCandidates):void 0}function Fm(e){return!!Ur(e).skipDirectInference}function Gm(n){return!(!n.symbol||!e.some(n.symbol.declarations,Fm))}function Bm(n,t){return 128&n.flags?Vm([n.value],e.emptyArray,t):134217728&n.flags?e.arraysEqual(n.texts,t.texts)?e.map(n.types,Um):Vm(n.texts,n.types,t):void 0}function Um(e){return 402653317&e.flags?e:Uu(["",""],[e])}function Vm(e,n,t){var r=e.length-1,a=e[0],o=e[r],s=t.texts,c=s.length-1,l=s[0],u=s[c];if(!(0===r&&a.length<l.length+u.length)&&a.startsWith(l)&&o.endsWith(u)){for(var d=o.slice(0,o.length-u.length),p=[],f=0,m=l.length,_=1;_<c;_++){var g=s[_];if(g.length>0){for(var y=f,h=m;!((h=v(y).indexOf(g,h))>=0);){if(++y===e.length)return;h=0}b(y,h),m+=g.length}else if(m<v(f).length)b(f,m+1);else{if(!(f<r))return;b(f+1,0)}}return b(r,v(r).length),p}function v(n){return n<r?e[n]:d}function b(t,r){var a=t===f?Pd(v(t).slice(m,r)):Uu(i(i([e[f].slice(m)],e.slice(f+1,t),!0),[v(t).slice(0,r)],!1),n.slice(f,t));p.push(a),f=t,m=r}}function jm(n,t,r,i,a){void 0===i&&(i=0),void 0===a&&(a=!1);var o,s,c,l,u=!1,d=2048,p=!0,f=0;function m(t,s){if(Cm(s)){if(t===ke){var c=o;return o=t,m(s,s),void(o=c)}if(t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===s.aliasSymbol)h(t.aliasTypeArguments,s.aliasTypeArguments,af(t.aliasSymbol));else if(t===s&&3145728&t.flags)for(var l=0,f=t.types;l<f.length;l++){var v=f[l];m(v,v)}else{if(1048576&s.flags){var T=y(1048576&t.flags?t.types:[t],s.types,Km),L=y(T[0],T[1],Hm),D=L[0];if(0===(C=L[1]).length)return;if(s=xu(C),0===D.length)return void _(t,s,1);t=xu(D)}else if(2097152&s.flags&&e.some(s.types,(function(e){return!!b(e)||Ys(e)&&!!b(sp(e)||Ze)}))){if(!(1048576&t.flags)){var A=y(2097152&t.flags?t.types:[t],s.types,Tp),C=(D=A[0],A[1]);if(0===D.length||0===C.length)return;t=ku(D),s=ku(C)}}else 41943040&s.flags&&(s=ud(s));if(8650752&s.flags){if(524288&e.getObjectFlags(t)||t===Oe||t===$e||128&i&&(t===Ne||t===Bn)||Gm(t))return;var I=b(s);if(I){if(!I.isFixed){if((void 0===I.priority||i<I.priority)&&(I.candidates=void 0,I.contraCandidates=void 0,I.topLevel=!0,I.priority=i),i===I.priority){var N=o||t;a&&!u?e.contains(I.contraCandidates,N)||(I.contraCandidates=e.append(I.contraCandidates,N),xm(n)):e.contains(I.candidates,N)||(I.candidates=e.append(I.candidates,N),xm(n))}!(128&i)&&262144&s.flags&&I.topLevel&&!Nm(r,s)&&(I.topLevel=!1,xm(n))}return void(d=Math.min(d,i))}var k=nd(s,!1);if(k!==s)g(t,k,m);else if(8388608&s.flags){var R=nd(s.indexType,!1);if(465829888&R.flags){var O=td(nd(s.objectType,!1),R,!1);O&&O!==s&&g(t,O,m)}}}if(!(4&e.getObjectFlags(t)&&4&e.getObjectFlags(s)&&(t.target===s.target||Ef(t)&&Ef(s)))||t.node&&s.node)if(4194304&t.flags&&4194304&s.flags)a=!a,m(t.type,s.type),a=!a;else if((Pf(t)||4&t.flags)&&4194304&s.flags){var P=function(n){var t=e.createSymbolTable();R_(n,(function(n){if(128&n.flags){var r=e.escapeLeadingUnderscores(n.value),i=Nr(4,r);i.type=Ie,n.symbol&&(i.declarations=n.symbol.declarations,i.valueDeclaration=n.symbol.valueDeclaration),t.set(r,i)}}));var r=4&n.flags?[pl(je,pn,!1)]:e.emptyArray;return ra(void 0,t,e.emptyArray,e.emptyArray,r)}(t);a=!a,_(P,s.type,256),a=!a}else if(8388608&t.flags&&8388608&s.flags)m(t.objectType,s.objectType),m(t.indexType,s.indexType);else if(268435456&t.flags&&268435456&s.flags)t.symbol===s.symbol&&m(t.type,s.type);else if(33554432&t.flags){m(t.baseType,s);var w=i;i|=4,m(t.substitute,s),i=w}else if(16777216&s.flags)g(t,s,S);else if(3145728&s.flags)E(t,s.types,s.flags);else if(1048576&t.flags)for(var M=0,F=t.types;M<F.length;M++)m(F[M],s);else if(134217728&s.flags)!function(e,n){for(var t=Bm(e,n),r=n.types,i=0;i<r.length;i++)m(t?t[i]:Ze,r[i])}(t,s);else{if(t=vc(t),!(512&i&&467927040&t.flags)){var G=mc(t);if(G!==t&&p&&!(2621440&G.flags))return p=!1,m(G,s);t=G}2621440&t.flags&&g(t,s,x)}else h(Ll(t),Ll(s),sf(t.target))}}}function _(e,n,t){var r=i;i|=t,m(e,n),i=r}function g(n,t,r){var i=n.id+","+t.id,a=s&&s.get(i);if(void 0===a){(s||(s=new e.Map)).set(i,-1);var o=d;d=2048;var u=f,p=gf(n),m=gf(t);e.contains(c,p)&&(f|=1),e.contains(l,m)&&(f|=2),3!==f?((c||(c=[])).push(p),(l||(l=[])).push(m),r(n,t),l.pop(),c.pop()):d=-1,f=u,s.set(i,d),d=Math.min(d,o)}else d=Math.min(d,a)}function y(n,t,r){for(var i,a,o=0,s=t;o<s.length;o++)for(var c=s[o],l=0,u=n;l<u.length;l++){var d=u[l];r(d,c)&&(m(d,c),i=e.appendIfUnique(i,d),a=e.appendIfUnique(a,c))}return[i?e.filter(n,(function(n){return!e.contains(i,n)})):n,a?e.filter(t,(function(n){return!e.contains(a,n)})):t]}function h(e,n,t){for(var r=e.length<n.length?e.length:n.length,i=0;i<r;i++)i<t.length&&2==(7&t[i])?v(e[i],n[i]):m(e[i],n[i])}function v(e,n){J||1024&i?(a=!a,m(e,n),a=!a):m(e,n)}function b(e){if(8650752&e.flags)for(var t=0,r=n;t<r.length;t++){var i=r[t];if(e===i.typeParameter)return i}}function E(n,t,r){var a=0;if(1048576&r){for(var o=void 0,s=1048576&n.flags?n.types:[n],c=new Array(s.length),l=!1,u=0,p=t;u<p.length;u++)if(b(x=p[u]))o=x,a++;else for(var f=0;f<s.length;f++){var g=d;d=2048,m(s[f],x),d===i&&(c[f]=!0),l=l||-1===d,d=Math.min(d,g)}if(0===a){var y=function(n){for(var t,r=0,i=n;r<i.length;r++){var a=i[r],o=2097152&a.flags&&e.find(a.types,(function(e){return!!b(e)}));if(!o||t&&o!==t)return;t=o}return t}(t);return void(y&&_(n,y,1))}if(1===a&&!l){var h=e.flatMap(s,(function(e,n){return c[n]?void 0:e}));if(h.length)return void m(xu(h),o)}}else for(var v=0,E=t;v<E.length;v++)b(x=E[v])?a++:m(n,x);if(2097152&r?1===a:a>0)for(var T=0,S=t;T<S.length;T++){var x;b(x=S[T])&&_(n,x,1)}}function T(n,t,r){if(1048576&r.flags){for(var i=!1,a=0,o=r.types;a<o.length;a++)i=T(n,t,o[a])||i;return i}if(4194304&r.flags){var s=b(r.type);if(s&&!s.isFixed&&!Gm(n)){var c=km(n,t,r);c&&_(c,s.typeParameter,524288&e.getObjectFlags(n)?16:8)}return!0}if(262144&r.flags){_(Gu(n),r,32);var l=tc(r);if(l&&T(n,t,l))return!0;var u=e.map(nc(n),Ao),d=e.map(kc(n),(function(e){return e!==xt?e.type:Ze}));return m(xu(e.concatenate(u,d)),Ks(t)),!0}return!1}function S(e,n){if(16777216&e.flags)m(e.checkType,n.checkType),m(e.extendsType,n.extendsType),m(_d(e),_d(n)),m(gd(e),gd(n));else{var t=i;i|=a?64:0,E(e,[_d(n),gd(n)],n.flags),i=t}}function x(n,t){if(4&e.getObjectFlags(n)&&4&e.getObjectFlags(t)&&(n.target===t.target||Ef(n)&&Ef(t)))h(Ll(n),Ll(t),sf(n.target));else{if(Ys(n)&&Ys(t)){m(Vs(n),Vs(t)),m(Ks(n),Ks(t));var r=js(n),i=js(t);r&&i&&m(r,i)}var a,o;if(32&e.getObjectFlags(t)&&!t.declaration.nameType&&T(n,t,Vs(t)))return;if(!function(e,n){return Uf(e)&&Uf(n)?function(e,n){return!(8&n.target.combinedFlags)&&n.target.minLength>e.target.minLength||!n.target.hasRestElement&&(e.target.hasRestElement||n.target.fixedLength<e.target.fixedLength)}(e,n):!!wm(e,n,!1,!0)&&!!wm(n,e,!1,!1)}(n,t)){if(Ef(n)||Uf(n)){if(Uf(t)){var s=Dl(n),c=Dl(t),l=Ll(t),u=t.target.elementFlags;if(Uf(n)&&(o=t,Dl(a=n)===Dl(o)&&e.every(a.target.elementFlags,(function(e,n){return(12&e)==(12&o.target.elementFlags[n])})))){for(var d=0;d<c;d++)m(Ll(n)[d],l[d]);return}var p=Uf(n)?Math.min(n.target.fixedLength,t.target.fixedLength):0,f=Math.min(Uf(n)?gu(n.target,3):0,t.target.hasRestElement?gu(t.target,3):0);for(d=0;d<p;d++)m(Ll(n)[d],l[d]);if(!Uf(n)||s-p-f==1&&4&n.target.elementFlags[p]){var g=Ll(n)[p];for(d=p;d<c-f;d++)m(8&u[d]?ru(g):g,l[d])}else{var y=c-p-f;if(2===y&&u[p]&u[p+1]&8&&Uf(n)){var v=b(l[p]);v&&void 0!==v.impliedArity&&(m(fu(n,p,f+s-v.impliedArity),l[p]),m(fu(n,p+v.impliedArity,f),l[p+1]))}else if(1===y&&8&u[p]){var E=2&t.target.elementFlags[c-1];_(Uf(n)?fu(n,p,f):ru(Ll(n)[0]),l[p],E?2:0)}else 1===y&&4&u[p]&&(g=Uf(n)?Hf(n,p,f):Ll(n)[0])&&m(g,l[p])}for(d=0;d<f;d++)m(Ll(n)[s-d-1],l[c-d-1]);return}if(Ef(t))return void A(n,t)}!function(e,n){for(var t=0,r=Zs(n);t<r.length;t++){var i=r[t],a=xc(e,i.escapedName);a&&m(Ao(a),Ao(i))}}(n,t),L(n,t,0),L(n,t,1),A(n,t)}}}function L(n,t,r){for(var i=Dc(n,r),a=Dc(t,r),o=i.length,s=a.length,c=o<s?o:s,l=!!(524288&e.getObjectFlags(n)),u=0;u<c;u++)D(cl(i[o-c+u]),sl(a[s-c+u]),l)}function D(e,n,t){if(!t){var r=u,i=n.declaration?n.declaration.kind:0;u=u||167===i||166===i||169===i,vm(e,n,v),u=r}bm(e,n,m)}function A(n,t){var r=e.getObjectFlags(n)&e.getObjectFlags(t)&32?8:0,i=kc(t);if(om(n))for(var a=0,o=i;a<o.length;a++){for(var s=o[a],c=[],l=0,u=nc(n);l<u.length;l++){var d=u[l];if(Ic(Fu(d,8576),s.keyType)){var p=Ao(d);c.push(16777216&d.flags?am(p):p)}}for(var f=0,m=kc(n);f<m.length;f++){var g=m[f];Ic(g.keyType,s.keyType)&&c.push(g.type)}c.length&&_(xu(c),s.type,r)}for(var y=0,h=i;y<h.length;y++){var v=wc(n,(s=h[y]).keyType);v&&_(v.type,s.type,r)}}m(t,r)}function Km(e,n){return ne&&n===Be?e===n:Tp(e,n)||!!(4&n.flags&&128&e.flags||8&n.flags&&256&e.flags)}function Hm(e,n){return!!(524288&e.flags&&524288&n.flags&&e.symbol&&e.symbol===n.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===n.aliasSymbol)}function Wm(n){return!!(128&e.getObjectFlags(n))}function zm(n){return!!(32896&e.getObjectFlags(n))}function Jm(n,t){var r,i,a=n.inferences[t];if(!a.inferredType){var o=void 0,s=n.signature;if(s){var c=a.candidates?function(n,t){var r,i=function(n){if(n.length>1){var t=e.filter(n,zm);if(t.length){var r=xu(t,2);return e.concatenate(e.filter(n,(function(e){return!zm(e)})),[r])}}return n}(n.candidates),a=!!(r=rc(n.typeParameter))&&Xv(16777216&r.flags?ac(r):r,406978556),o=!a&&n.topLevel&&(n.isFixed||!Nm(el(t),n.typeParameter)),s=a?e.sameMap(i,Rd):o?e.sameMap(i,Mf):i;return mm(416&n.priority?xu(s,2):function(n){if(!z)return bf(n);var t=e.filter(n,(function(e){return!(98304&e.flags)}));return t.length?Yf(bf(t),98304&zf(n)):xu(n,2)}(s))}(a,s):void 0;if(a.contraCandidates){var l=function(n){return 416&n.priority?ku(n.contraCandidates):(t=n.contraCandidates,e.reduceLeft(t,(function(e,n){return Dp(n,e)?n:e})));var t}(a);o=!c||131072&c.flags||!Dp(c,l)?l:c}else if(c)o=c;else if(1&n.flags)o=$e;else{var u=fc(a.typeParameter);u&&(o=fp(u,(r=function(n,t){return Qd((function(r){return e.findIndex(n.inferences,(function(e){return e.typeParameter===r}))>=t?we:r}))}(n,t),i=n.nonFixingMapper,r?Zd(4,r,i):i)))}}else o=Mm(a);a.inferredType=o||qm(!!(2&n.flags));var d=rc(a.typeParameter);if(d){var p=fp(d,n.nonFixingMapper);o&&n.compareTypes(o,Es(p,o))||(a.inferredType=o=p)}}return a.inferredType}function qm(e){return e?Ie:we}function Xm(e){for(var n=[],t=0;t<e.inferences.length;t++)n.push(Jm(e,t));return n}function Ym(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 V.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 V.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 V.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 292===n.parent.kind?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 Qm(n){var t=Ur(n);return t.resolvedSymbol||(t.resolvedSymbol=!e.nodeIsMissing(n)&&Wr(n,n.escapedText,1160127,Ym(n),n,!e.isWriteOnlyAccess(n),!1,!0)||Ae),t.resolvedSymbol}function Zm(n){return!!e.findAncestor(n,(function(e){return 179===e.kind||79!==e.kind&&159!==e.kind&&"quit"}))}function $m(e,n,t,r){switch(e.kind){case 79:var i=Qm(e);return i!==Ae?(r?O(r):"-1")+"|"+yu(n)+"|"+yu(t)+"|"+P(i):void 0;case 108:return"0|"+(r?O(r):"-1")+"|"+yu(n)+"|"+yu(t);case 228:case 210:return $m(e.expression,n,t,r);case 159:var a=$m(e.left,n,t,r);return a&&a+"."+e.right.escapedText;case 204:case 205:var o=t_(e);if(void 0!==o){var s=$m(e.expression,n,t,r);return s&&s+"."+o}}}function e_(n,t){switch(t.kind){case 210:case 228:return e_(n,t.expression);case 219:return e.isAssignmentExpression(t)&&e_(n,t.left)||e.isBinaryExpression(t)&&27===t.operatorToken.kind&&e_(n,t.right)}switch(n.kind){case 229:return 229===t.kind&&n.keywordToken===t.keywordToken&&n.name.escapedText===t.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(n)?108===t.kind:79===t.kind&&Qm(n)===Qm(t)||(252===t.kind||201===t.kind)&&zi(Qm(n))===Ui(t);case 108:return 108===t.kind;case 106:return 106===t.kind;case 228:case 210:return e_(n.expression,t);case 204:case 205:return e.isAccessExpression(t)&&t_(n)===t_(t)&&e_(n.expression,t.expression);case 159:return e.isAccessExpression(t)&&n.right.escapedText===t_(t)&&e_(n.left,t.expression);case 219:return e.isBinaryExpression(n)&&27===n.operatorToken.kind&&e_(n.right,t)}return!1}function n_(e,n){return e_(e,n)||219===n.kind&&55===n.operatorToken.kind&&(n_(e,n.left)||n_(e,n.right))}function t_(n){var t;return 204===n.kind?n.name.escapedText:205===n.kind&&e.isStringOrNumericLiteralLike(n.argumentExpression)?e.escapeLeadingUnderscores(n.argumentExpression.text):201===n.kind&&(t=qa(n))?e.escapeLeadingUnderscores(t):void 0}function r_(n,t){for(;e.isAccessExpression(n);)if(e_(n=n.expression,t))return!0;return!1}function i_(n,t){for(;e.isOptionalChain(n);)if(e_(n=n.expression,t))return!0;return!1}function a_(n,t){if(n&&1048576&n.flags){var r=yc(n,t);if(r&&2&e.getCheckFlags(r))return void 0===r.isDiscriminantProperty&&(r.isDiscriminantProperty=192==(192&r.checkFlags)&&!Xv(Ao(r),331612160)),!!r.isDiscriminantProperty}return!1}function o_(e,n){for(var t,r=0,i=e;r<i.length;r++){var a=i[r];if(a_(n,a.escapedName)){if(t){t.push(a);continue}t=[a]}}return t}function s_(n){var t=n.types;if(!(t.length<10||65536&e.getObjectFlags(n))){if(void 0===n.keyPropertyName){var r=e.forEach(t,(function(n){return 59506688&n.flags?e.forEach(nc(n),(function(e){return Rf(Ao(e))?e.escapedName:void 0})):void 0})),i=r&&function(n,t){for(var r=new e.Map,i=0,a=function(e){if(61603840&e.flags){var n=Ua(e,t);if(n){if(!Pf(n))return{value:void 0};var a=!1;R_(n,(function(n){var t=yu(Rd(n)),i=r.get(t);i?i!==we&&(r.set(t,we),a=!0):r.set(t,e)})),a||i++}}},o=0,s=n;o<s.length;o++){var c=a(s[o]);if("object"==typeof c)return c.value}return i>=10&&2*i>=n.length?r:void 0}(t,r);n.keyPropertyName=i?r:"",n.constituentMap=i}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function c_(e,n){var t,r=null===(t=e.constituentMap)||void 0===t?void 0:t.get(yu(Rd(n)));return r!==we?r:void 0}function l_(e,n){var t=s_(e),r=t&&Ua(n,t);return r&&c_(e,r)}function u_(e,n){return e_(e,n)||r_(e,n)}function d_(e,n){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++)if(u_(n,r[t]))return!0;return!(204!==e.expression.kind||!u_(n,e.expression.expression))}function p_(e){return(!e.id||e.id<0)&&(e.id=f,f++),e.id}function f_(e){var n=Qs(e);return!!(n.callSignatures.length||n.constructSignatures.length||n.members.get("bind")&&Dp(e,Cn))}function m_(n,t){void 0===t&&(t=!1);var r=n.flags;if(4&r)return z?16317953:16776705;if(128&r){var i=""===n.value;return z?i?12123649:7929345:i?12582401:16776705}if(40&r)return z?16317698:16776450;if(256&r){var a=0===n.value;return z?a?12123394:7929090:a?12582146:16776450}return 64&r?z?16317188:16775940:2048&r?(a=Wf(n),z?a?12122884:7928580:a?12581636:16775940):16&r?z?16316168:16774920:528&r?z?n===We||n===ze?12121864:7927560:n===We||n===ze?12580616:16774920:524288&r&&!t?16&e.getObjectFlags(n)&&Hp(n)?z?16318463:16777215:f_(n)?z?7880640:16728e3:z?7888800:16736160:49152&r?9830144:65536&r?9363232:12288&r?z?7925520:16772880:67108864&r?z?7888800:16736160:131072&r?0:465829888&r?Xu(n)?z?7929345:16776705:m_(cc(n)||we,t):1048576&r?e.reduceLeft(n.types,(function(e,n){return e|m_(n,t)}),0):2097152&r?(t||(t=Xv(n,131068)),e.reduceLeft(n.types,(function(e,n){return e&m_(n,t)}),16777215)):16777215}function __(e,n){return w_(e,(function(e){return 0!=(m_(e)&n)}))}function g_(e,n){return n?xu([Wa(e),xb(n)]):e}function y_(e,n){var t,r=Mu(n);if(!ds(r))return Re;var i=gs(r);return Ua(e,i)||v_(null===(t=Mc(e,i))||void 0===t?void 0:t.type)||Re}function h_(e,n){return P_(e,If)&&function(e,n){return Ua(e,""+n)||(P_(e,Uf)?G_(e,(function(e){return Kf(e)||Me})):void 0)}(e,n)||v_(GE(65,e,Me,void 0))||Re}function v_(e){return e&&V.noUncheckedIndexedAccess?xu([e,Me]):e}function b_(e){return ru(GE(65,e,Me,void 0)||Re)}function E_(e){return 219===e.parent.kind&&e.parent.left===e||242===e.parent.kind&&e.parent.initializer===e}function T_(e){return y_(S_(e.parent),e.name)}function S_(e){var n=e.parent;switch(n.kind){case 241:return je;case 242:return FE(n)||Re;case 219:return function(e){return 202===e.parent.kind&&E_(e.parent)||291===e.parent.kind&&E_(e.parent.parent)?g_(S_(e),e.right):xb(e.right)}(n);case 213:return Me;case 202:return function(e,n){return h_(S_(e),e.elements.indexOf(n))}(n,e);case 223:return function(e){return b_(S_(e.parent))}(n);case 291:return T_(n);case 292:return function(e){return g_(T_(e),e.objectAssignmentInitializer)}(n)}return Re}function x_(e){return Ur(e).resolvedType||xb(e)}function L_(e){return 252===e.kind?function(e){return e.initializer?x_(e.initializer):241===e.parent.parent.kind?je:242===e.parent.parent.kind&&FE(e.parent.parent)||Re}(e):function(e){var n=e.parent,t=L_(n.parent);return g_(199===n.kind?y_(t,e.propertyName||e.name):e.dotDotDotToken?b_(t):h_(t,n.elements.indexOf(e)),e.initializer)}(e)}function D_(e){switch(e.kind){case 210:return D_(e.expression);case 219:switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return D_(e.left);case 27:return D_(e.right)}}return e}function A_(e){var n=e.parent;return 210===n.kind||219===n.kind&&63===n.operatorToken.kind&&n.left===e||219===n.kind&&27===n.operatorToken.kind&&n.right===e?A_(n):e}function C_(e){return 287===e.kind?Rd(xb(e.expression)):Ze}function I_(e){var n=Ur(e);if(!n.switchTypes){n.switchTypes=[];for(var t=0,r=e.caseBlock.clauses;t<r.length;t++){var i=r[t];n.switchTypes.push(C_(i))}}return n.switchTypes}function N_(n,t){for(var r=[],i=0,a=n.caseBlock.clauses;i<a.length;i++){var o=a[i];if(287===o.kind){if(e.isStringLiteralLike(o.expression)){r.push(o.expression.text);continue}return e.emptyArray}t&&r.push(void 0)}return r}function k_(e,n){return e===n||1048576&n.flags&&function(e,n){if(1048576&e.flags){for(var t=0,r=e.types;t<r.length;t++){var i=r[t];if(!hu(n.types,i))return!1}return!0}return!!(1024&e.flags&&Qo(e)===n)||hu(n.types,e)}(e,n)}function R_(n,t){return 1048576&n.flags?e.forEach(n.types,t):t(n)}function O_(n,t){return 1048576&n.flags?e.some(n.types,t):t(n)}function P_(n,t){return 1048576&n.flags?e.every(n.types,t):t(n)}function w_(n,t){if(1048576&n.flags){var r=n.types,i=e.filter(r,t);if(i===r)return n;var a=n.origin,o=void 0;if(a&&1048576&a.flags){var s=a.types,c=e.filter(s,(function(e){return!!(1048576&e.flags)||t(e)}));if(s.length-c.length==r.length-i.length){if(1===c.length)return c[0];o=Su(1048576,c)}}return Du(i,n.objectFlags,void 0,void 0,o)}return 131072&n.flags||t(n)?n:Ze}function M_(e,n){return w_(e,(function(e){return e!==n}))}function F_(e){return 1048576&e.flags?e.types.length:1}function G_(e,n,t){if(131072&e.flags)return e;if(!(1048576&e.flags))return n(e);for(var r,i=e.origin,a=!1,o=0,s=i&&1048576&i.flags?i.types:e.types;o<s.length;o++){var c=s[o],l=1048576&c.flags?G_(c,n,t):n(c);a||(a=c!==l),l&&(r?r.push(l):r=[l])}return a?r&&xu(r,t?0:1):e}function B_(n,t,r,i){return 1048576&n.flags&&r?xu(e.map(n.types,t),1,r,i):G_(n,t)}function U_(e){return 3145728&e.flags?e.types.length:1}function V_(e,n){return w_(e,(function(e){return 0!=(e.flags&n)}))}function j_(e,n){return k_(je,e)&&Xv(n,128)||k_(Ke,e)&&Xv(n,256)||k_(He,e)&&Xv(n,2048)?G_(e,(function(e){return 4&e.flags?V_(n,132):8&e.flags?V_(n,264):64&e.flags?V_(n,2112):e})):e}function K_(e){return 0===e.flags}function H_(e){return 0===e.flags?e.type:e}function W_(e,n){return n?{flags:0,type:131072&e.flags?$e:e}:e}function z_(e){return Le[e.id]||(Le[e.id]=function(e){var n=Zi(256);return n.elementType=e,n}(e))}function J_(e,n){var t=cm(wf(Db(n)));return k_(t,e.elementType)?e:z_(xu([e.elementType,t]))}function q_(n){return 256&e.getObjectFlags(n)?(t=n).finalArrayType||(t.finalArrayType=131072&(r=t.elementType).flags?Bn:ru(1048576&r.flags?xu(r.types,2):r)):n;var t,r}function X_(n){return 256&e.getObjectFlags(n)?n.elementType:Ze}function Y_(n){var t=A_(n),r=t.parent,i=e.isPropertyAccessExpression(r)&&("length"===r.name.escapedText||206===r.parent.kind&&e.isIdentifier(r.name)&&e.isPushOrUnshiftIdentifier(r.name)),a=205===r.kind&&r.expression===t&&219===r.parent.kind&&63===r.parent.operatorToken.kind&&r.parent.left===r&&!e.isAssignmentTarget(r.parent)&&Yv(xb(r.argumentExpression),296);return i||a}function Q_(n,t){if(8752&n.flags)return Ao(n);if(7&n.flags){if(262144&e.getCheckFlags(n)){var r=n.syntheticOrigin;if(r&&Q_(r))return Ao(n)}var i=n.valueDeclaration;if(i){if(function(n){return(252===n.kind||162===n.kind||165===n.kind||164===n.kind)&&!!e.getEffectiveTypeAnnotationNode(n)}(i))return Ao(n);if(e.isVariableDeclaration(i)&&242===i.parent.parent.kind){var a=i.parent.parent,o=Z_(a.expression,void 0);if(o)return GE(a.awaitModifier?15:13,o,Me,void 0)}t&&e.addRelatedInfo(t,e.createDiagnosticForNode(i,e.Diagnostics._0_needs_an_explicit_type_annotation,va(n)))}}}function Z_(n,t){if(!(16777216&n.flags))switch(n.kind){case 79:var r=zi(Qm(n));return Q_(2097152&r.flags?_i(r):r,t);case 108:return function(n){var t=e.getThisContainer(n,!1);if(e.isFunctionLike(t)){var r=zc(t);if(r.thisParameter)return Q_(r.thisParameter)}if(e.isClassLike(t.parent)){var i=Ui(t.parent);return e.isStatic(t)?Ao(i):ns(i).thisType}}(n);case 106:return Sg(n);case 204:var i=Z_(n.expression,t);if(i){var a=n.name,o=void 0;if(e.isPrivateIdentifier(a)){if(!i.symbol)return;o=xc(i,e.getSymbolNameForPrivateIdentifier(i.symbol,a.escapedText))}else o=xc(i,a.escapedText);return o&&Q_(o,t)}return;case 210:return Z_(n.expression,t)}}function $_(n){var t=Ur(n),r=t.effectsSignature;if(void 0===r){var i=void 0;236===n.parent.kind?i=Z_(n.expression,void 0):106!==n.expression.kind&&(i=e.isOptionalChain(n)?Gy(tm(Ab(n.expression),n.expression),n.expression):Ry(n.expression));var a=Dc(i&&mc(i)||we,0),o=1!==a.length||a[0].typeParameters?e.some(a,eg)?$h(n):void 0:a[0];r=t.effectsSignature=o&&eg(o)?o:Et}return r===Et?void 0:r}function eg(e){return!!(Zc(e)||e.declaration&&131072&(nl(e.declaration)||we).flags)}function ng(e){var n=rg(e,!1);return pt=e,ft=n,n}function tg(n){var t=e.skipParentheses(n);return 95===t.kind||219===t.kind&&(55===t.operatorToken.kind&&(tg(t.left)||tg(t.right))||56===t.operatorToken.kind&&tg(t.left)&&tg(t.right))}function rg(n,t){for(;;){if(n===pt)return ft;var r=n.flags;if(4096&r){if(!t){var i=p_(n),a=rr[i];return void 0!==a?a:rr[i]=rg(n,!0)}t=!1}if(368&r)n=n.antecedent;else if(512&r){var o=$_(n.node);if(o){var s=Zc(o);if(s&&3===s.kind&&!s.type){var c=n.node.arguments[s.parameterIndex];if(c&&tg(c))return!1}if(131072&el(o).flags)return!1}n=n.antecedent}else{if(4&r)return e.some(n.antecedents,(function(e){return rg(e,!1)}));if(8&r){var l=n.antecedents;if(void 0===l||0===l.length)return!1;n=l[0]}else{if(!(128&r)){if(1024&r){pt=void 0;var u=n.target,d=u.antecedents;u.antecedents=n.antecedents;var p=rg(n.antecedent,!1);return u.antecedents=d,p}return!(1&r)}if(n.clauseStart===n.clauseEnd&&Gv(n.switchStatement))return!1;n=n.antecedent}}}}function ig(n,t){for(;;){var r=n.flags;if(4096&r){if(!t){var i=p_(n),a=ir[i];return void 0!==a?a:ir[i]=ig(n,!0)}t=!1}if(496&r)n=n.antecedent;else if(512&r){if(106===n.node.expression.kind)return!0;n=n.antecedent}else{if(4&r)return e.every(n.antecedents,(function(e){return ig(e,!1)}));if(!(8&r)){if(1024&r){var o=n.target,s=o.antecedents;o.antecedents=n.antecedents;var c=ig(n.antecedent,!1);return o.antecedents=s,c}return!!(1&r)}n=n.antecedents[0]}}}function ag(n){switch(n.kind){case 79:var t=Qm(n);return ug(t)||!!t.valueDeclaration&&162===e.getRootDeclaration(t.valueDeclaration).kind&&!cg(t);case 204:case 205:return ag(n.expression)&&Wv(Ur(n).resolvedSymbol||Ae)}return!1}function og(n,t,r,i){var a;void 0===r&&(r=t);var o=!1,s=0,c=0;if(Gt)return Re;if(!n.flowNode)return t;Bt++;var l=Ft,u=H_(f(n.flowNode));Ft=l;var d=256&e.getObjectFlags(u)&&Y_(n)?Bn:q_(u);return d===tn||n.parent&&228===n.parent.kind&&!(131072&d.flags)&&131072&__(d,2097152).flags?t:d;function p(){return o?a:(o=!0,a=$m(n,t,r,i))}function f(a){if(2e3===s)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:a.id}),Gt=!0,o=n,c=e.findAncestor(o,e.isFunctionOrModuleBlock),u=e.getSourceFileOfNode(o),d=e.getSpanOfTokenAtPosition(u,c.statements.pos),ur.add(e.createFileDiagnostic(u,d.start,d.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),Re;var o,c,u,d,p;for(s++;;){var m=a.flags;if(4096&m){for(var g=l;g<Ft;g++)if(nr[g]===a)return s--,tr[g];p=a}var T=void 0;if(16&m){if(!(T=_(a))){a=a.antecedent;continue}}else if(512&m){if(!(T=y(a))){a=a.antecedent;continue}}else if(96&m)T=v(a);else if(128&m)T=b(a);else if(12&m){if(1===a.antecedents.length){a=a.antecedents[0];continue}T=4&m?E(a):x(a)}else if(256&m){if(!(T=h(a))){a=a.antecedent;continue}}else if(1024&m){var S=a.target,L=S.antecedents;S.antecedents=a.antecedents,T=f(a.antecedent),S.antecedents=L}else if(2&m){var D=a.node;if(D&&D!==i&&204!==n.kind&&205!==n.kind&&108!==n.kind){a=D.flowNode;continue}T=r}else T=AE(t);return p&&(nr[Ft]=p,tr[Ft]=T,Ft++),s--,T}}function m(e){var t=e.node;return pg(252===t.kind||201===t.kind?L_(t):S_(t),n)}function _(r){var i=r.node;if(e_(n,i)){if(!ng(r))return tn;if(2===e.getAssignmentTargetKind(i)){var a=f(r.antecedent);return W_(wf(H_(a)),K_(a))}if(t===Ne||t===Bn){if(function(e){return 252===e.kind&&e.initializer&&Za(e.initializer)||201!==e.kind&&219===e.parent.kind&&Za(e.parent.right)}(i))return z_(Ze);var o=Mf(m(r));return Ap(o,t)?o:Gn}return 1048576&t.flags?function(e,n){if(e!==n){if(131072&n.flags)return n;var t=w_(e,(function(e){return function(e,n){if(!(1048576&e.flags))return Ap(e,n);for(var t=0,r=e.types;t<r.length;t++)if(Ap(r[t],n))return!0;return!1}(n,e)}));if(512&n.flags&&Od(n)&&(t=G_(t,kd)),Ap(n,t))return t}return e}(t,m(r)):t}if(r_(n,i)){if(!ng(r))return tn;if(e.isVariableDeclaration(i)&&(e.isInJSFile(i)||e.isVarConst(i))){var s=e.getDeclaredExpandoInitializer(i);if(s&&(211===s.kind||212===s.kind))return f(r.antecedent)}return t}if(e.isVariableDeclaration(i)&&241===i.parent.parent.kind&&e_(n,i.parent.parent.expression))return Py(H_(f(r.antecedent)))}function g(n,t){var r=e.skipParentheses(t);if(95===r.kind)return tn;if(219===r.kind){if(55===r.operatorToken.kind)return g(g(n,r.left),r.right);if(56===r.operatorToken.kind)return xu([g(n,r.left),g(n,r.right)])}return j(n,r,!0)}function y(e){var n=$_(e.node);if(n){var t=Zc(n);if(t&&(2===t.kind||3===t.kind)){var r=f(e.antecedent),i=q_(H_(r)),a=t.type?V(i,t,e.node,!0):3===t.kind&&t.parameterIndex>=0&&t.parameterIndex<e.node.arguments.length?g(i,e.node.arguments[t.parameterIndex]):i;return a===i?r:W_(a,K_(r))}if(131072&el(n).flags)return tn}}function h(r){if(t===Ne||t===Bn){var i=r.node,a=206===i.kind?i.expression.expression:i.left.expression;if(e_(n,D_(a))){var o=f(r.antecedent),s=H_(o);if(256&e.getObjectFlags(s)){var c=s;if(206===i.kind)for(var l=0,u=i.arguments;l<u.length;l++)c=J_(c,u[l]);else Yv(Db(i.left.argumentExpression),296)&&(c=J_(c,i.right));return c===s?o:W_(c,K_(o))}return o}}}function v(e){var n=f(e.antecedent),t=H_(n);if(131072&t.flags)return n;var r=0!=(32&e.flags),i=q_(t),a=j(i,e.node,r);return a===i?n:W_(a,K_(n))}function b(t){var r=t.switchStatement.expression,i=f(t.antecedent),a=H_(i);if(e_(n,r))a=w(a,t.switchStatement,t.clauseStart,t.clauseEnd);else if(214===r.kind&&e_(n,r.expression))a=function(n,t,r,i){var a=N_(t,!0);if(!a.length)return n;var o,s,c=e.findIndex(a,(function(e){return void 0===e})),l=r===i||c>=r&&c<i;if(c>-1){var u=a.filter((function(e){return void 0!==e})),d=c<r?r-1:r,p=c<i?i-1:i;o=u.slice(d,p),s=Fv(d,p,u,l)}else o=a.slice(r,i),s=Fv(r,i,a,l);if(l)return w_(n,(function(e){return(m_(e)&s)===s}));var f=__(xu(o.map((function(e){return M(n,e)||n}))),s);return __(G_(n,F(f)),s)}(a,t.switchStatement,t.clauseStart,t.clauseEnd);else{z&&(i_(r,n)?a=P(a,t.switchStatement,t.clauseStart,t.clauseEnd,(function(e){return!(163840&e.flags)})):214===r.kind&&i_(r.expression,n)&&(a=P(a,t.switchStatement,t.clauseStart,t.clauseEnd,(function(e){return!(131072&e.flags||128&e.flags&&"undefined"===e.value)}))));var o=D(r,a);o&&(a=function(n,t,r,i,a){if(i<a&&1048576&n.flags&&s_(n)===t_(t)){var o=I_(r).slice(i,a),s=xu(e.map(o,(function(e){return c_(n,e)||we})));if(s!==we)return s}return A(n,t,(function(e){return w(e,r,i,a)}))}(a,o,t.switchStatement,t.clauseStart,t.clauseEnd))}return W_(a,K_(i))}function E(n){for(var i,a=[],o=!1,s=!1,c=0,l=n.antecedents;c<l.length;c++){var u=l[c];if(!i&&128&u.flags&&u.clauseStart===u.clauseEnd)i=u;else{if((p=H_(d=f(u)))===t&&t===r)return p;e.pushIfUnique(a,p),k_(p,t)||(o=!0),K_(d)&&(s=!0)}}if(i){var d,p=H_(d=f(i));if(!e.contains(a,p)&&!Gv(i.switchStatement)){if(p===t&&t===r)return p;a.push(p),k_(p,t)||(o=!0),K_(d)&&(s=!0)}}return W_(L(a,o?2:1),s)}function x(n){var r=p_(n),i=Qt[r]||(Qt[r]=new e.Map),a=p();if(!a)return t;var o=i.get(a);if(o)return o;for(var s=wt;s<Mt;s++)if(Zt[s]===n&&$t[s]===a&&er[s].length)return W_(L(er[s],1),!0);for(var c,l=[],u=!1,d=0,m=n.antecedents;d<m.length;d++){var _=m[d],g=void 0;if(c){Zt[Mt]=n,$t[Mt]=a,er[Mt]=l,Mt++;var y=mt;mt=void 0,g=f(_),mt=y,Mt--;var h=i.get(a);if(h)return h}else g=c=f(_);var v=H_(g);if(e.pushIfUnique(l,v),k_(v,t)||(u=!0),v===t)break}var b=L(l,u?2:1);return K_(c)?W_(b,!0):(i.set(a,b),b)}function L(n,r){if(function(n){for(var t=!1,r=0,i=n;r<i.length;r++){var a=i[r];if(!(131072&a.flags)){if(!(256&e.getObjectFlags(a)))return!1;t=!0}}return t}(n))return z_(xu(e.map(n,X_)));var i=xu(e.sameMap(n,q_),r);return i!==t&&i.flags&t.flags&1048576&&e.arraysEqual(i.types,t.types)?t:i}function D(r,i){var a,o,s=1048576&t.flags?t:i;return 1048576&s.flags&&(a=function(n){if(e.isAccessExpression(n))return n;if(e.isIdentifier(n)){var t=Qm(n);if(ug(t)){var r=t.valueDeclaration;if(e.isVariableDeclaration(r)&&!r.type&&r.initializer&&e.isAccessExpression(r.initializer))return r.initializer;if(e.isBindingElement(r)&&!r.initializer){var i=r.parent.parent;if(e.isVariableDeclaration(i)&&!i.type&&i.initializer&&(e.isIdentifier(i.initializer)||e.isAccessExpression(i.initializer)))return r}}}}(r))&&(o=t_(a))&&e_(n,e.isAccessExpression(a)?a.expression:a.parent.parent.initializer)&&a_(s,o)?a:void 0}function A(n,t,r){var i=t_(t);if(void 0===i)return n;var a=z&&e.isOptionalChain(t)&&Xv(n,98304),o=Ua(a?__(n,2097152):n,i);if(!o)return n;var s=r(o=a?Qf(o):o);return w_(n,(function(e){var n=function(e,n){var t;return Ua(e,n)||(null===(t=Mc(e,n))||void 0===t?void 0:t.type)||we}(e,i);return!(131072&n.flags)&&Ip(n,s)}))}function C(e,n,t,r,i){if((36===t||37===t)&&1048576&e.flags){var a=s_(e);if(a&&a===t_(n)){var o=c_(e,xb(r));if(o)return t===(i?36:37)?o:Rf(Ua(o,a)||we)?M_(e,o):e}}return A(e,n,(function(e){return R(e,t,r,i)}))}function I(e,t,r){if(e_(n,t))return __(e,r?4194304:8388608);z&&r&&i_(t,n)&&(e=__(e,2097152));var i=D(t,e);return i?A(e,i,(function(e){return __(e,r?4194304:8388608)})):e}function N(r,i,a){switch(i.operatorToken.kind){case 63:case 75:case 76:case 77:return I(j(r,i.right,a),i.left,a);case 34:case 35:case 36:case 37:var o=i.operatorToken.kind,s=D_(i.left),c=D_(i.right);if(214===s.kind&&e.isStringLiteralLike(c))return O(r,s,o,c,a);if(214===c.kind&&e.isStringLiteralLike(s))return O(r,c,o,s,a);if(e_(n,s))return R(r,o,c,a);if(e_(n,c))return R(r,o,s,a);z&&(i_(s,n)?r=k(r,o,c,a):i_(c,n)&&(r=k(r,o,s,a)));var l=D(s,r);if(l)return C(r,l,o,c,a);var u=D(c,r);if(u)return C(r,u,o,s,a);if(G(s))return B(r,o,c,a);if(G(c))return B(r,o,s,a);break;case 102:return function(t,r,i){var a=D_(r.left);if(!e_(n,a))return i&&z&&i_(a,n)?__(t,2097152):t;var o,s=xb(r.right);if(!Cp(s,Cn))return t;var c=xc(s,"prototype");if(c){var l=Ao(c);Va(l)||(o=l)}if(Va(t)&&(o===An||o===Cn))return t;if(!o){var u=Dc(s,1);o=u.length?xu(e.map(u,(function(e){return el(sl(e))}))):pn}return!i&&1048576&s.flags&&!e.find(s.types,(function(e){return!Fo(e)}))?t:U(t,o,i,Cp)}(r,i,a);case 101:var d=D_(i.right),p=ZT(i.left);if(128&p.flags){var f=e.escapeLeadingUnderscores(p.value);if(im(r)&&e.isAccessExpression(n)&&e_(n.expression,d)&&t_(n)===f)return __(r,a?524288:65536);if(e_(n,d))return function(n,r,i){return 1048576&n.flags||524288&n.flags&&t!==n||ed(n)||2097152&n.flags&&e.every(n.types,(function(e){return e.symbol!==se}))?w_(n,(function(e){return function(e,n,t){var r=xc(e,n);return r?!!(16777216&r.flags)||t:!!Mc(e,n)||!t}(e,r,i)})):n}(r,f,a)}break;case 27:return j(r,i.right,a);case 55:return a?j(j(r,i.left,!0),i.right,!0):xu([j(r,i.left,!1),j(r,i.right,!1)]);case 56:return a?xu([j(r,i.left,!0),j(r,i.right,!0)]):j(j(r,i.left,!1),i.right,!1)}return r}function k(e,n,t,r){var i=34===n||36===n,a=34===n||35===n?98304:32768,o=xb(t);return i!==r&&P_(o,(function(e){return!!(e.flags&a)}))||i===r&&P_(o,(function(e){return!(e.flags&(3|a))}))?__(e,2097152):e}function R(e,n,t,r){if(1&e.flags)return e;35!==n&&37!==n||(r=!r);var i=xb(t);return 2&e.flags&&r&&(36===n||37===n)?67239932&i.flags?i:524288&i.flags?rn:e:98304&i.flags?z?__(e,34===n||35===n?r?262144:2097152:65536&i.flags?r?131072:1048576:r?65536:524288):e:r?j_(w_(e,34===n?function(e){return Np(e,i)||(n=i,0!=(524&e.flags)&&0!=(28&n.flags));var n}:function(e){return Np(e,i)}),i):Rf(i)?w_(e,(function(e){return!(Of(e)&&Np(e,i))})):e}function O(e,t,r,i,a){35!==r&&37!==r||(a=!a);var o=D_(t.expression);if(!e_(n,o))return z&&i_(o,n)&&a===("undefined"!==i.text)?__(e,2097152):e;if(1&e.flags&&"function"===i.text)return e;if(a&&2&e.flags&&"object"===i.text){if(219===t.parent.parent.kind){var s=t.parent.parent;if(55===s.operatorToken.kind&&s.right===t.parent&&n_(n,s.left))return rn}return xu([rn,Ue])}var c=a?T.get(i.text)||128:S.get(i.text)||32768,l=M(e,i.text);return __(a&&l?G_(e,F(l)):e,c)}function P(n,t,r,i,a){return r!==i&&e.every(I_(t).slice(r,i),a)?__(n,2097152):n}function w(n,t,r,i){var a=I_(t);if(!a.length)return n;var o=a.slice(r,i),s=r===i||e.contains(o,Ze);if(2&n.flags&&!s){for(var c=void 0,l=0;l<o.length;l+=1){var u=o[l];if(67239932&u.flags)void 0!==c&&c.push(u);else{if(!(524288&u.flags))return n;void 0===c&&(c=o.slice(0,l)),c.push(rn)}}return xu(void 0===c?o:c)}var d=xu(o),p=131072&d.flags?Ze:j_(w_(n,(function(e){return Np(d,e)})),d);if(!s)return p;var f=w_(n,(function(n){return!(Of(n)&&e.contains(a,Rd(function(n){return 2097152&n.flags&&e.find(n.types,Rf)||n}(n))))}));return 131072&p.flags?f:xu([p,f])}function M(e,n){switch(n){case"function":return 1&e.flags?e:Cn;case"object":return 2&e.flags?xu([rn,Ue]):e;default:return pr.get(n)}}function F(e){return function(n){if(Dp(n,e))return n;if(Dp(e,n))return e;if(465829888&n.flags){var t=cc(n)||Ie;if(Dp(e,t))return ku([n,e])}return n}}function G(t){return(e.isPropertyAccessExpression(t)&&"constructor"===e.idText(t.name)||e.isElementAccessExpression(t)&&e.isStringLiteralLike(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&e_(n,t.expression)}function B(n,t,r,i){if(i?34!==t&&36!==t:35!==t&&37!==t)return n;var a=xb(r);if(!DS(a)&&!Fo(a))return n;var o=xc(a,"prototype");if(!o)return n;var s=Ao(o),c=Va(s)?void 0:s;return c&&c!==An&&c!==Cn?Va(n)?c:w_(n,(function(n){return r=c,524288&(t=n).flags&&1&e.getObjectFlags(t)||524288&r.flags&&1&e.getObjectFlags(r)?t.symbol===r.symbol:Dp(t,r);var t,r})):n}function U(e,n,t,r){if(!t)return w_(e,(function(e){if(!r(e,n))return!0;var t=cc(e);return!(!t||t===e||r(t,n))}));if(1048576&e.flags){var i=w_(e,(function(e){return r(e,n)}));if(!(131072&i.flags))return i}return Dp(n,e)?n:Ap(e,n)?e:Ap(n,e)?n:ku([e,n])}function V(t,r,i,a){if(r.type&&(!Va(t)||r.type!==An&&r.type!==Cn)){var o=function(n,t){if(1===n.kind||3===n.kind)return t.arguments[n.parameterIndex];var r=e.skipParentheses(t.expression);return e.isAccessExpression(r)?e.skipParentheses(r.expression):void 0}(r,i);if(o){if(e_(n,o))return U(t,r.type,a,Dp);z&&a&&i_(o,n)&&!(65536&m_(r.type))&&(t=__(t,2097152));var s=D(o,t);if(s)return A(t,s,(function(e){return U(e,r.type,a,Dp)}))}}return t}function j(t,r,i){if(e.isExpressionOfOptionalChainRoot(r)||e.isBinaryExpression(r.parent)&&60===r.parent.operatorToken.kind&&r.parent.left===r)return function(e,t,r){if(e_(n,t))return __(e,r?2097152:262144);var i=D(t,e);return i?A(e,i,(function(e){return __(e,r?2097152:262144)})):e}(t,r,i);switch(r.kind){case 79:if(!e_(n,r)&&c<5){var a=Qm(r);if(ug(a)){var o=a.valueDeclaration;if(o&&e.isVariableDeclaration(o)&&!o.type&&o.initializer&&ag(n)){c++;var s=j(t,o.initializer,i);return c--,s}}}case 108:case 106:case 204:case 205:return I(t,r,i);case 206:return function(t,r,i){if(d_(r,n)){var a=i||!e.isCallChain(r)?$_(r):void 0,o=a&&Zc(a);if(o&&(0===o.kind||1===o.kind))return V(t,o,r,i)}if(im(t)&&e.isAccessExpression(n)&&e.isPropertyAccessExpression(r.expression)){var s=r.expression;if(e_(n.expression,D_(s.expression))&&e.isIdentifier(s.name)&&"hasOwnProperty"===s.name.escapedText&&1===r.arguments.length){var c=r.arguments[0];if(e.isStringLiteralLike(c)&&t_(n)===e.escapeLeadingUnderscores(c.text))return __(t,i?524288:65536)}}return t}(t,r,i);case 210:case 228:return j(t,r.expression,i);case 219:return N(t,r,i);case 217:if(53===r.operator)return j(t,r.operand,!i)}return t}}function sg(n){return e.findAncestor(n.parent,(function(n){return e.isFunctionLike(n)&&!e.getImmediatelyInvokedFunctionExpression(n)||260===n.kind||300===n.kind||165===n.kind}))}function cg(n){if(!n.valueDeclaration)return!1;var t,r=e.getRootDeclaration(n.valueDeclaration).parent,i=Ur(r);return 8388608&i.flags||(i.flags|=8388608,t=r,e.findAncestor(t.parent,(function(n){return e.isFunctionLike(n)&&!!(8388608&Ur(n).flags)}))||lg(r)),n.isAssigned||!1}function lg(n){if(79===n.kind){if(e.isAssignmentTarget(n)){var t=Qm(n);t.valueDeclaration&&162===e.getRootDeclaration(t.valueDeclaration).kind&&(t.isAssigned=!0)}}else e.forEachChild(n,lg)}function ug(e){return 3&e.flags&&0!=(2&Cy(e))}function dg(e){return!!(465829888&e.flags&&1146880&lc(e).flags)}function pg(n,t,r){var i,a;return r&&2&r||!O_(n,dg)||!function(e,n){var t=n.parent;return 204===t.kind||206===t.kind&&t.expression===n||205===t.kind&&t.expression===n&&!(function(e){return!(!(465829888&e.flags)||Xv(lc(e),98304))}(e)&&Zu(xb(t.argumentExpression)))}(n,t)&&(i=t,!(a=(e.isIdentifier(i)||e.isPropertyAccessExpression(i)||e.isElementAccessExpression(i))&&!((e.isJsxOpeningElement(i.parent)||e.isJsxSelfClosingElement(i.parent))&&i.parent.tagName===i)&&Hg(i,8))||Yu(a))?n:G_(n,(function(e){return 465829888&e.flags?lc(e):e}))}function fg(n){return!!e.findAncestor(n,(function(n){return n.parent&&e.isExportAssignment(n.parent)&&n.parent.expression===n&&e.isEntityNameExpression(n)}))}function mg(n,t){if(fi(n,111551)&&!Zm(t)&&!hi(n)){var r=_i(n);111551&r.flags&&(V.isolatedModules||e.shouldPreserveConstEnums(V)&&fg(t)||!_S(r)?bi(n):function(e){var n=Br(e);n.constEnumReferenced||(n.constEnumReferenced=!0)}(n))}}function _g(n){return e.findAncestor(n,(function(n){return!n||e.nodeStartsNewLexicalEnvironment(n)?"quit":e.isIterationStatement(n,!1)}))}function gg(e,n){Ur(e).flags|=2,165===n.kind||169===n.kind?Ur(n.parent).flags|=4:Ur(n).flags|=4}function yg(n){return e.isSuperCall(n)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,yg)}function hg(e){return Vo(ns(Ui(e)))===Ve}function vg(n,t,r){var i=t.parent;e.getClassExtendsHeritageElement(i)&&!hg(i)&&n.flowNode&&!ig(n.flowNode,!1)&&xr(n,r)}function bg(n){var t=Zm(n),r=e.getThisContainer(n,!0),i=!1;switch(169===r.kind&&vg(n,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),212===r.kind&&(r=e.getThisContainer(r,!1),i=!0),function(n,t){e.isPropertyDeclaration(t)&&e.hasStaticModifier(t)&&t.initializer&&e.textRangeContainsPositionInclusive(t.initializer,n.pos)&&e.length(t.parent.decorators)&&xr(n,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(n,r),r.kind){case 259:xr(n,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 258:xr(n,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 169:Tg(n,r)&&xr(n,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 160:xr(n,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}!t&&i&&j<2&&gg(n,r);var a=Eg(n,!0,r);if(Q){var o=Ao(se);if(a===o&&i)xr(n,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var s=xr(n,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(r)){var c=Eg(r);c&&c!==o&&e.addRelatedInfo(s,e.createDiagnosticForNode(r,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||Ie}function Eg(n,t,r){void 0===t&&(t=!0),void 0===r&&(r=e.getThisContainer(n,!1));var i=e.isInJSFile(n);if(e.isFunctionLike(r)&&(!Ig(n)||e.getThisParameter(r))){var a=Qc(zc(r))||i&&function(n){var t=e.getJSDocType(n);if(t&&312===t.kind){var r=t;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return jd(r.parameters[0].type)}var i=e.getJSDocThisTag(n);if(i&&i.typeExpression)return jd(i.typeExpression)}(r);if(!a){var o=function(n){return 211===n.kind&&e.isBinaryExpression(n.parent)&&3===e.getAssignmentDeclarationKind(n.parent)?n.parent.left.expression.expression:167===n.kind&&203===n.parent.kind&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent)?n.parent.parent.left.expression:211===n.kind&&291===n.parent.kind&&203===n.parent.parent.kind&&e.isBinaryExpression(n.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent.parent)?n.parent.parent.parent.left.expression:211===n.kind&&e.isPropertyAssignment(n.parent)&&e.isIdentifier(n.parent.name)&&("value"===n.parent.name.escapedText||"get"===n.parent.name.escapedText||"set"===n.parent.name.escapedText)&&e.isObjectLiteralExpression(n.parent.parent)&&e.isCallExpression(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&9===e.getAssignmentDeclarationKind(n.parent.parent.parent)?n.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(n)&&e.isIdentifier(n.name)&&("value"===n.name.escapedText||"get"===n.name.escapedText||"set"===n.name.escapedText)&&e.isObjectLiteralExpression(n.parent)&&e.isCallExpression(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&9===e.getAssignmentDeclarationKind(n.parent.parent)?n.parent.parent.arguments[0].expression:void 0}(r);if(i&&o){var s=Ab(o).symbol;s&&s.members&&16&s.flags&&(a=ns(s).thisType)}else ev(r)&&(a=ns(Bi(r.symbol)).thisType);a||(a=Dg(r))}if(a)return og(n,a)}if(e.isClassLike(r.parent)){var c=Ui(r.parent);return og(n,e.isStatic(r)?Ao(c):ns(c).thisType)}if(e.isSourceFile(r)){if(r.commonJsModuleIndicator){var l=Ui(r);return l&&Ao(l)}if(r.externalModuleIndicator)return Me;if(t)return Ao(se)}}function Tg(n,t){return!!e.findAncestor(n,(function(n){return e.isFunctionLikeDeclaration(n)?"quit":162===n.kind&&n.parent===t}))}function Sg(n){var t=206===n.parent.kind&&n.parent.expression===n,r=e.getSuperContainer(n,!0),i=r,a=!1;if(!t)for(;i&&212===i.kind;)i=e.getSuperContainer(i,!0),a=j<2;var o=function(n){return!!n&&(t?169===n.kind:!(!e.isClassLike(n.parent)&&203!==n.parent.kind)&&(e.isStatic(n)?167===n.kind||166===n.kind||170===n.kind||171===n.kind||165===n.kind||168===n.kind:167===n.kind||166===n.kind||170===n.kind||171===n.kind||165===n.kind||164===n.kind||169===n.kind))}(i),s=0;if(!o){var c=e.findAncestor(n,(function(e){return e===i?"quit":160===e.kind}));return c&&160===c.kind?xr(n,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?xr(n,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||203===i.parent.kind)?xr(n,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):xr(n,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Re}if(t||169!==r.kind||vg(n,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||t?(s=512,!t&&j>=2&&j<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(n.parent,(function(n){e.isSourceFile(n)&&!e.isExternalOrCommonJsModule(n)||(Ur(n).flags|=134217728)}))):s=256,Ur(n).flags|=s,167===i.kind&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(n.parent)&&e.isAssignmentTarget(n.parent)?Ur(i).flags|=4096:Ur(i).flags|=2048),a&&gg(n.parent,i),203===i.parent.kind)return j<2?(xr(n,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Re):Ie;var l=i.parent;if(!e.getClassExtendsHeritageElement(l))return xr(n,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Re;var u=ns(Ui(l)),d=u&&Ko(u)[0];return d?169===i.kind&&Tg(n,i)?(xr(n,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Re):512===s?Vo(u):Es(d,u.thisType):Re}function xg(n){return 4&e.getObjectFlags(n)&&n.target===Fn?Ll(n)[0]:void 0}function Lg(n){return G_(n,(function(n){return 2097152&n.flags?e.forEach(n.types,xg):xg(n)}))}function Dg(n){if(212!==n.kind){if(bp(n)){var t=Qg(n);if(t){var r=t.thisParameter;if(r)return Ao(r)}}var i=e.isInJSFile(n);if(Q||i){var a=function(e){return 167!==e.kind&&170!==e.kind&&171!==e.kind||203!==e.parent.kind?211===e.kind&&291===e.parent.kind?e.parent.parent:void 0:e.parent}(n);if(a){for(var o=Vg(a),s=a,c=o;c;){var l=Lg(c);if(l)return fp(l,Am(Wg(a)));if(291!==s.parent.kind)break;c=Vg(s=s.parent.parent)}return mm(o?Zf(o):ub(a))}var u=e.walkUpParenthesizedExpressions(n.parent);if(219===u.kind&&63===u.operatorToken.kind){var d=u.left;if(e.isAccessExpression(d)){var p=d.expression;if(i&&e.isIdentifier(p)){var f=e.getSourceFileOfNode(u);if(f.commonJsModuleIndicator&&Qm(p)===f.symbol)return}return mm(ub(p))}}}}}function Ag(n){var t=n.parent;if(bp(t)){var r=e.getImmediatelyInvokedFunctionExpression(t);if(r&&r.arguments){var i=Oh(r),a=t.parameters.indexOf(n);if(n.dotDotDotToken)return Ah(i,a,i.length,Ie,void 0,0);var o=Ur(r),s=o.resolvedSignature;o.resolvedSignature=bt;var c=a<i.length?Mf(Ab(i[a])):n.initializer?void 0:Fe;return o.resolvedSignature=s,c}var l=Qg(t);if(l){var u=t.parameters.indexOf(n)-(e.getThisParameter(t)?1:0);return n.dotDotDotToken&&e.lastOrUndefined(t.parameters)===n?bv(l,u):vv(l,u)}}}function Cg(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return jd(t);switch(n.kind){case 162:return Ag(n);case 201:return function(n){var t=n.parent.parent,r=n.propertyName||n.name,i=Cg(t)||201!==t.kind&&t.initializer&&db(t);if(i&&!e.isBindingPattern(r)&&!e.isComputedNonLiteralName(r)){if(200===t.name.kind){var a=e.indexOfNode(n.parent.elements,n);if(a<0)return;return Gg(i,a)}var o=Mu(r);return ds(o)?Ua(i,gs(o)):void 0}}(n);case 165:if(e.isStatic(n))return function(n){var t=e.isExpression(n.parent)&&Hg(n.parent);return t?Mg(t,Ui(n).escapedName):void 0}(n)}}function Ig(n){for(var t=!1;n.parent&&!e.isFunctionLike(n.parent);){if(e.isParameter(n.parent)&&(t||n.parent.initializer===n))return!0;e.isBindingElement(n.parent)&&n.parent.initializer===n&&(t=!0),n=n.parent}return!1}function Ng(n,t){var r=!!(2&e.getFunctionFlags(t)),i=kg(t);if(i)return oT(n,i,r)||void 0}function kg(e){var n=nl(e);if(n)return n;var t=Yg(e);return t&&!tl(t)?el(t):void 0}function Rg(e,n){var t=Oh(e).indexOf(n);return-1===t?void 0:Og(e,t)}function Og(n,t){var r=Ur(n).resolvedSignature===Tt?Tt:$h(n);if(e.isJsxOpeningLikeElement(n)&&0===t)return zg(r,n);var i=r.parameters.length-1;return B(r)&&t>=i?ad(Ao(r.parameters[i]),wd(t-i),256):hv(r,t)}function Pg(n,t){if(void 0===t&&(t=e.getAssignmentDeclarationKind(n)),4===t)return!0;if(!e.isInJSFile(n)||5!==t||!e.isIdentifier(n.left.expression))return!1;var r=n.left.expression.escapedText,i=Wr(n.left,r,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function wg(n){if(!n.symbol)return xb(n.left);if(n.symbol.valueDeclaration){var t=e.getEffectiveTypeAnnotationNode(n.symbol.valueDeclaration);if(t){var r=jd(t);if(r)return r}}var i=e.cast(n.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=bg(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&Mg(a,o)||void 0}}function Mg(n,t){return G_(n,(function(n){var r,i;if(Ys(n)){var a=Vs(n),o=cc(a)||a,s=Pd(e.unescapeLeadingUnderscores(t));if(Ap(s,o))return id(n,s)}else if(3670016&n.flags){var c=xc(n,t);if(c)return i=c,262144&e.getCheckFlags(i)&&!i.type&&Ma(i,0)>=0?void 0:Ao(c);if(Uf(n)){var l=Kf(n);if(l&&ty(t)&&+t>=0)return l}return null===(r=Cc(Nc(n),Pd(e.unescapeLeadingUnderscores(t))))||void 0===r?void 0:r.type}}),!0)}function Fg(n,t){var r=n.parent,i=e.isPropertyAssignment(n)&&Cg(n);if(i)return i;var a=Vg(r,t);if(a){if(_s(n))return Mg(a,Ui(n).escapedName);if(n.name){var o=Mu(n.name);return G_(a,(function(e){var n;return null===(n=Cc(Nc(e),o))||void 0===n?void 0:n.type}),!0)}}}function Gg(e,n){return e&&(Mg(e,""+n)||G_(e,(function(e){return BE(1,e,Me,void 0,!1)}),!0))}function Bg(n){if(e.isJsxAttribute(n)){var t=Vg(n.parent);if(!t||Va(t))return;return Mg(t,n.name.escapedText)}return Hg(n.parent)}function Ug(e){switch(e.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 Ug(e.expression);case 286:return!e.expression||Ug(e.expression)}return!1}function Vg(n,t){var r=jg(e.isObjectLiteralMethod(n)?function(n,t){if(e.Debug.assert(e.isObjectLiteralMethod(n)),!(16777216&n.flags))return Fg(n,t)}(n,t):Hg(n,t),n,t);if(r&&!(t&&2&t&&8650752&r.flags)){var i=G_(r,mc,!0);return 1048576&i.flags&&e.isObjectLiteralExpression(n)?function(n,t){return function(n,t){var r=s_(n),i=r&&e.find(t.properties,(function(e){return e.symbol&&291===e.kind&&e.symbol.escapedName===r&&Ug(e.initializer)})),a=i&&xb(i.initializer);return a&&c_(n,a)}(t,n)||nf(t,e.concatenate(e.map(e.filter(n.properties,(function(e){return!!e.symbol&&291===e.kind&&Ug(e.initializer)&&a_(t,e.symbol.escapedName)})),(function(e){return[function(){return Db(e.initializer)},e.symbol.escapedName]})),e.map(e.filter(nc(t),(function(e){var r;return!!(16777216&e.flags)&&!!(null===(r=null==n?void 0:n.symbol)||void 0===r?void 0:r.members)&&!n.symbol.members.has(e.escapedName)&&a_(t,e.escapedName)})),(function(e){return[function(){return Me},e.escapedName]}))),Ap,t)}(n,i):1048576&i.flags&&e.isJsxAttributes(n)?function(n,t){return nf(t,e.concatenate(e.map(e.filter(n.properties,(function(e){return!!e.symbol&&283===e.kind&&a_(t,e.symbol.escapedName)&&(!e.initializer||Ug(e.initializer))})),(function(e){return[e.initializer?function(){return Ab(e.initializer)}:function(){return Je},e.symbol.escapedName]})),e.map(e.filter(nc(t),(function(e){var r;return!!(16777216&e.flags)&&!!(null===(r=null==n?void 0:n.symbol)||void 0===r?void 0:r.members)&&!n.symbol.members.has(e.escapedName)&&a_(t,e.escapedName)})),(function(e){return[function(){return Me},e.escapedName]}))),Ap,t)}(n,i):i}}function jg(n,t,r){if(n&&Xv(n,465829888)){var i=Wg(t);if(i&&e.some(i.inferences,bb)){if(r&&1&r)return Kg(n,i.nonFixingMapper);if(i.returnMapper)return Kg(n,i.returnMapper)}}return n}function Kg(n,t){return 465829888&n.flags?fp(n,t):1048576&n.flags?xu(e.map(n.types,(function(e){return Kg(e,t)})),0):2097152&n.flags?ku(e.map(n.types,(function(e){return Kg(e,t)}))):n}function Hg(n,t){if(16777216&n.flags);else{if(n.contextualType)return n.contextualType;var r=n.parent;switch(r.kind){case 252:case 162:case 165:case 164:case 201:return function(n,t){var r=n.parent;if(e.hasInitializer(r)&&n===r.initializer){var i=Cg(r);if(i)return i;if(!(8&t)&&e.isBindingPattern(r.name))return fo(r.name,!0,!1)}}(n,t);case 212:case 245:return function(n){var t=e.getContainingFunction(n);if(t){var r=kg(t);if(r){var i=e.getFunctionFlags(t);if(1&i){var a=WE(r,2&i?2:1,void 0);if(!a)return;r=a.returnType}if(2&i){var o=G_(r,Xb);return o&&xu([o,Rv(o)])}return r}}}(n);case 222:return function(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t),i=kg(t);if(i)return n.asteriskToken?i:oT(0,i,0!=(2&r))}}(r);case 216:return function(e,n){var t=Hg(e,n);if(t){var r=Xb(t);return r&&xu([r,Rv(r)])}}(r,t);case 206:if(100===r.expression.kind)return je;case 207:return Rg(r,n);case 209:case 227:return e.isConstTypeReference(r.type)?function(e){return Hg(e)}(r):jd(r.type);case 219:return function(n,t){var r=n.parent,i=r.left,a=r.operatorToken,o=r.right;switch(a.kind){case 63:case 76:case 75:case 77:return n===o?function(n){var t,r,i=e.getAssignmentDeclarationKind(n);switch(i){case 0:case 4:var a=function(n){if(n.symbol)return n.symbol;if(e.isIdentifier(n))return Qm(n);if(e.isPropertyAccessExpression(n)){var t=xb(n.expression);return e.isPrivateIdentifier(n.name)?function(e,n){var t=Ky(n.escapedText,n);return t&&Hy(e,t)}(t,n.name):xc(t,n.name.escapedText)}}(n.left),o=a&&a.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&fp(jd(c),Br(a).mapper)||o.initializer&&xb(n.left):0===i?xb(n.left):wg(n);case 5:if(Pg(n,i))return wg(n);if(n.left.symbol){var s=n.left.symbol.valueDeclaration;if(!s)return;var c,l=e.cast(n.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return jd(c);if(e.isIdentifier(l.expression)){var u=l.expression,d=Wr(u,u.escapedText,111551,void 0,u.escapedText,!0);if(d){var p=d.valueDeclaration&&e.getEffectiveTypeAnnotationNode(d.valueDeclaration);if(p){var f=e.getElementOrPropertyAccessName(l);if(void 0!==f)return Mg(jd(p),f)}return}}return e.isInJSFile(s)?void 0:xb(n.left)}return xb(n.left);case 1:case 6:case 3:var m=null===(t=n.left.symbol)||void 0===t?void 0:t.valueDeclaration;case 2:m||(m=null===(r=n.symbol)||void 0===r?void 0:r.valueDeclaration);var _=m&&e.getEffectiveTypeAnnotationNode(m);return _?jd(_):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}}(r):void 0;case 56:case 60:var s=Hg(r,t);return n===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(r))?xb(i):s;case 55:case 27:return n===o?Hg(r,t):void 0;default:return}}(n,t);case 291:case 292:return Fg(r,t);case 293:return Hg(r.parent,t);case 202:var i=r;return Gg(Vg(i,t),e.indexOfNode(i.elements,n));case 220:return function(e,n){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?Hg(t,n):void 0}(n,t);case 231:return e.Debug.assert(221===r.parent.kind),function(e,n){if(208===e.parent.kind)return Rg(e.parent,n)}(r.parent,n);case 210:var a=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return a?jd(a.typeExpression.type):Hg(r,t);case 228:return Hg(r,t);case 286:return function(n){var t=n.parent;return e.isJsxAttributeLike(t)?Hg(n):e.isJsxElement(t)?function(n,t){var r=Vg(n.openingElement.tagName),i=hy(gy(n));if(r&&!Va(r)&&i&&""!==i){var a=e.getSemanticJsxChildren(n.children),o=a.indexOf(t),s=Mg(r,i);return s&&(1===a.length?s:G_(s,(function(e){return Lf(e)?ad(e,wd(o)):e}),!0))}}(t,n):void 0}(r);case 283:case 285:return Bg(r);case 278:case 277:return function(n,t){return e.isJsxOpeningElement(n)&&n.parent.contextualType&&4!==t?n.parent.contextualType:Og(n,0)}(r,t)}}}function Wg(n){var t=e.findAncestor(n,(function(e){return!!e.inferenceContext}));return t&&t.inferenceContext}function zg(n,t){return 0!==Ih(t)?function(e,n){var t=Av(e,we);t=Jg(n,gy(n),t);var r=fy(I.IntrinsicAttributes,n);return r!==Re&&(t=Os(r,t)),t}(n,t):function(n,t){var r,i=gy(t),a=(r=i,yy(I.ElementAttributesPropertyNameContainer,r)),o=void 0===a?Av(n,we):""===a?el(n):function(e,n){if(e.compositeSignatures){for(var t=[],r=0,i=e.compositeSignatures;r<i.length;r++){var a=el(i[r]);if(Va(a))return a;var o=Ua(a,n);if(!o)return;t.push(o)}return ku(t)}var s=el(e);return Va(s)?s:Ua(s,n)}(n,a);if(!o)return a&&e.length(t.attributes.properties)&&xr(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(a)),we;if(Va(o=Jg(t,i,o)))return o;var s=o,c=fy(I.IntrinsicClassAttributes,t);if(c!==Re){var l=wo(c.symbol),u=el(n);s=Os(l?Tl(c,Wc([u],l,Hc(l),e.isInJSFile(t))):c,s)}var d=fy(I.IntrinsicAttributes,t);return d!==Re&&(s=Os(d,s)),s}(n,t)}function Jg(n,t,r){var i,a=(i=t)&&jr(i.exports,I.LibraryManagedAttributes,788968);if(a){var o=ns(a),s=function(e){if(ly(e.tagName))return ll(Yh(e,n=Ey(e)));var n,t=ub(e.tagName);return 128&t.flags?(n=by(t,e))?ll(Yh(e,n)):Re:t}(n);if(524288&a.flags){var c=Br(a).typeParameters;if(e.length(c)>=2)return Cl(a,Wc([s,r],c,2,e.isInJSFile(n)))}if(e.length(o.typeParameters)>=2)return Tl(o,Wc([s,r],o.typeParameters,2,e.isInJSFile(n)))}return r}function qg(n,t){var r=Dc(n,0),i=e.filter(r,(function(n){return!function(n,t){for(var r=0;r<t.parameters.length;r++){var i=t.parameters[r];if(i.initializer||i.questionToken||i.dotDotDotToken||Bc(i))break}return t.parameters.length&&e.parameterIsThisKeyword(t.parameters[0])&&r--,!Sv(n)&&Ev(n)<r}(n,t)}));return 1===i.length?i[0]:function(n){return e.getStrictOptionValue(V,"noImplicitAny")?e.reduceLeft(n,(function(n,t){return n!==t&&n?ks(n.typeParameters,t.typeParameters)?function(n,t){var r,i=n.typeParameters||t.typeParameters;n.typeParameters&&t.typeParameters&&(r=qd(t.typeParameters,n.typeParameters));var a=n.declaration,o=function(e,n,t){for(var r=Ev(e),i=Ev(n),a=r>=i?e:n,o=a===e?n:e,s=a===e?r:i,c=Sv(e)||Sv(n),l=c&&!Sv(a),u=new Array(s+(l?1:0)),d=0;d<s;d++){var p=vv(a,d);a===n&&(p=fp(p,t));var f=vv(o,d)||we;o===n&&(f=fp(f,t));var m=xu([p,f]),_=c&&!l&&d===s-1,g=d>=Tv(a)&&d>=Tv(o),y=d>=r?void 0:mv(e,d),h=d>=i?void 0:mv(n,d),v=Nr(1|(g&&!_?16777216:0),(y===h?y:y?h?void 0:y:h)||"arg"+d);v.type=_?ru(m):m,u[d]=v}if(l){var b=Nr(1,"args");b.type=ru(hv(o,s)),o===n&&(b.type=fp(b.type,t)),u[s]=b}return u}(n,t,r),s=function(e,n,t){return e&&n?sm(e,xu([Ao(e),fp(Ao(n),t)])):e||n}(n.thisParameter,t.thisParameter,r),c=Ss(a,i,s,o,void 0,void 0,Math.max(n.minArgumentCount,t.minArgumentCount),39&(n.flags|t.flags));return c.compositeKind=2097152,c.compositeSignatures=e.concatenate(2097152===n.compositeKind&&n.compositeSignatures||[n],[t]),r&&(c.mapper=2097152===n.compositeKind&&n.mapper&&n.compositeSignatures?ep(n.mapper,r):r),c}(n,t):void 0:n})):void 0}(i)}function Xg(e){return 211===e.kind||212===e.kind}function Yg(n){return Xg(n)||e.isObjectLiteralMethod(n)?Qg(n):void 0}function Qg(n){e.Debug.assert(167!==n.kind||e.isObjectLiteralMethod(n));var t=Jc(n);if(t)return t;var r=Vg(n,1);if(r){if(!(1048576&r.flags))return qg(r,n);for(var i,a=0,o=r.types;a<o.length;a++){var s=qg(o[a],n);if(s)if(i){if(!vf(i[0],s,!1,!0,!0,Sp))return;i.push(s)}else i=[s]}return i?1===i.length?i[0]:Ls(i[0],i):void 0}}function Zg(e){return 201===e.kind&&!!e.initializer||219===e.kind&&63===e.operatorToken.kind}function $g(n,t,r){for(var i=n.elements,a=i.length,o=[],s=[],c=Vg(n),l=e.isAssignmentTarget(n),u=mb(n),d=!1,p=0;p<a;p++){var f=i[p];if(223===f.kind){j<2&&BS(f,V.downlevelIteration?1536:1024);var m=Ab(f.expression,t,r);if(Lf(m))o.push(m),s.push(8);else if(l){var _=Oc(m,Ke)||BE(65,m,Me,void 0,!1)||we;o.push(_),s.push(4)}else o.push(GE(33,m,Me,f.expression)),s.push(4)}else if(ne&&225===f.kind)d=!0,o.push(Be),s.push(2);else{var g=_b(f,t,Gg(c,o.length),r);o.push($a(g,!0,d)),s.push(d?2:1)}}return l?lu(o,s):r||u||c&&O_(c,If)?ey(lu(o,s,u)):ey(ru(o.length?xu(e.sameMap(o,(function(e,n){return 8&s[n]?sd(e,Ke)||Ie:e})),2):z?nn:Fe,u))}function ey(n){if(!(4&e.getObjectFlags(n)))return n;var t=n.literalType;return t||((t=n.literalType=Sl(n)).objectFlags|=294912),t}function ny(e){switch(e.kind){case 160:return function(e){return Yv(ry(e),296)}(e);case 79:return ty(e.escapedText);case 8:case 10:return ty(e.text);default:return!1}}function ty(e){return(+e).toString()===e}function ry(n){var t=Ur(n.expression);if(!t.resolvedType){if(t.resolvedType=Ab(n.expression),e.isPropertyDeclaration(n.parent)&&!e.hasStaticModifier(n.parent)&&e.isClassExpression(n.parent.parent)){var r=_g(e.getEnclosingBlockScopeContainer(n.parent.parent));r&&(Ur(r).flags|=65536,Ur(n).flags|=524288,Ur(n.parent.parent).flags|=524288)}(98304&t.resolvedType.flags||!Yv(t.resolvedType,402665900)&&!Ap(t.resolvedType,on))&&xr(n,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function iy(n){var t,r=null===(t=n.declarations)||void 0===t?void 0:t[0];return e.isKnownSymbol(n)||r&&e.isNamedDeclaration(r)&&e.isComputedPropertyName(r.name)&&Yv(ry(r.name),4096)}function ay(n,t,r,i){for(var a,o,s,c=[],l=t;l<r.length;l++){var u=r[l];(i===je&&!iy(u)||i===Ke&&(void 0,void 0,s=null===(o=(a=u).declarations)||void 0===o?void 0:o[0],ty(a.escapedName)||s&&e.isNamedDeclaration(s)&&ny(s.name))||i===Ye&&iy(u))&&c.push(Ao(r[l]))}return pl(i,c.length?xu(c,2):Me,mb(n))}function oy(n){e.Debug.assert(0!=(2097152&n.flags),"Should only get Alias here.");var t=Br(n);if(!t.immediateTarget){var r=ti(n);if(!r)return e.Debug.fail();t.immediateTarget=pi(r,!0)}return t.immediateTarget}function sy(n){if(465829888&n.flags){var t=cc(n);if(void 0!==t)return sy(t)}return!!(126615553&n.flags||117632&Jf(n)&&sy(qf(n))||3145728&n.flags&&e.every(n.types,sy))}function cy(n){return e.stringContains(n,"-")}function ly(n){return 79===n.kind&&e.isIntrinsicJsxName(n.escapedText)}function uy(e,n){return e.initializer?_b(e.initializer,n):Je}function dy(e,n){for(var t=[],r=0,i=e.children;r<i.length;r++){var a=i[r];if(11===a.kind)a.containsOnlyTriviaWhiteSpaces||t.push(je);else{if(286===a.kind&&!a.expression)continue;t.push(_b(a,n))}}return t}function py(n,t,r){for(var i=0,a=nc(n);i<a.length;i++){var o=a[i];if(!(16777216&o.flags)){var s=t.get(o.escapedName);if(s){var c=xr(s.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(s.escapedName));e.addRelatedInfo(c,e.createDiagnosticForNode(r,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function fy(e,n){var t=gy(n),r=t&&wi(t),i=r&&jr(r,e,788968);return i?ns(i):Re}function my(n){var t=Ur(n);if(!t.resolvedSymbol){var r=fy(I.IntrinsicElements,n);if(r!==Re){if(!e.isIdentifier(n.tagName))return e.Debug.fail();var i=xc(r,n.tagName.escapedText);return i?(t.jsxFlags|=1,t.resolvedSymbol=i):Oc(r,je)?(t.jsxFlags|=2,t.resolvedSymbol=r.symbol):(xr(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(n.tagName),"JSX."+I.IntrinsicElements),t.resolvedSymbol=Ae)}return Y&&xr(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(I.IntrinsicElements)),t.resolvedSymbol=Ae}return t.resolvedSymbol}function _y(n){var t=n&&e.getSourceFileOfNode(n),r=t&&Ur(t);if(!r||!1!==r.jsxImplicitImportContainer){if(r&&r.jsxImplicitImportContainer)return r.jsxImplicitImportContainer;var i=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(V,t),V);if(i){var a=Ai(n,i,e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,n),o=a&&a!==Ae?Bi(mi(a)):void 0;return r&&(r.jsxImplicitImportContainer=o||!1),o}}}function gy(e){var n=e&&Ur(e);if(n&&n.jsxNamespace)return n.jsxNamespace;if(!n||!1!==n.jsxNamespace){var t=_y(e);if(!t||t===Ae){var r=Er(e);t=Wr(e,r,1920,void 0,r,!1)}if(t){var i=mi(jr(wi(mi(t)),I.JSX,1920));if(i&&i!==Ae)return n&&(n.jsxNamespace=i),i}n&&(n.jsxNamespace=!1)}var a=mi(zl(I.JSX,1920,void 0));return a!==Ae?a:void 0}function yy(n,t){var r=t&&jr(t.exports,n,788968),i=r&&ns(r),a=i&&nc(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&r.declarations&&xr(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(n))}}function hy(e){return yy(I.ElementChildrenAttributeNameContainer,e)}function vy(n,t){if(4&n.flags)return[bt];if(128&n.flags){var r=by(n,t);return r?[Yh(t,r)]:(xr(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,"JSX."+I.IntrinsicElements),e.emptyArray)}var i=mc(n),a=Dc(i,1);return 0===a.length&&(a=Dc(i,0)),0===a.length&&1048576&i.flags&&(a=Ns(e.map(i.types,(function(e){return vy(e,t)})))),a}function by(n,t){var r=fy(I.IntrinsicElements,t);if(r!==Re){var i=n.value,a=xc(r,e.escapeLeadingUnderscores(i));return a?Ao(a):Oc(r,je)||void 0}return Ie}function Ey(n){e.Debug.assert(ly(n.tagName));var t=Ur(n);if(!t.resolvedJsxElementAttributesType){var r=my(n);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=Ao(r)||Re:2&t.jsxFlags?t.resolvedJsxElementAttributesType=Oc(fy(I.IntrinsicElements,n),je)||Re:t.resolvedJsxElementAttributesType=Re}return t.resolvedJsxElementAttributesType}function Ty(e){var n=fy(I.ElementClass,e);if(n!==Re)return n}function Sy(e){return fy(I.Element,e)}function xy(e){var n=Sy(e);if(n)return xu([n,Ue])}function Ly(n){var t,r=e.isJsxOpeningLikeElement(n);if(r&&function(n){(function(n){if(e.isPropertyAccessExpression(n)){var t=n;do{var r=a(t.name);if(r)return r;t=t.expression}while(e.isPropertyAccessExpression(t));var i=a(t);if(i)return i}function a(n){if(e.isIdentifier(n)&&-1!==e.idText(n).indexOf(":"))return fx(n,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(n.tagName),zS(n,n.typeArguments);for(var t=new e.Map,r=0,i=n.attributes.properties;r<i.length;r++){var a=i[r];if(285!==a.kind){var o=a.name,s=a.initializer;if(t.get(o.escapedText))return fx(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(o.escapedText,!0),s&&286===s.kind&&!s.expression)return fx(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(n),t=n,0===(V.jsx||0)&&xr(t,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===Sy(t)&&Y&&xr(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),!_y(n)){var i=ur&&2===V.jsx?e.Diagnostics.Cannot_find_name_0:void 0,a=Er(n),o=r?n.tagName:n,s=void 0;e.isJsxOpeningFragment(n)&&"null"===a||(s=Wr(o,a,111551,i,a,!0)),s&&(s.isReferenced=67108863,2097152&s.flags&&!hi(s)&&bi(s))}if(r){var c=n,l=$h(c);rv(l,n),function(n,t,r){if(1===n)(i=xy(r))&&Zp(t,i,gr,r.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,o);else if(0===n)(a=Ty(r))&&Zp(t,a,gr,r.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,o);else{var i=xy(r),a=Ty(r);if(!i||!a)return;Zp(t,xu([i,a]),gr,r.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,o)}function o(){var n=e.getTextOfNode(r.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,n)}}(Ih(c),el(l),c)}}function Dy(e,n,t){if(524288&e.flags){if($s(e,n)||Mc(e,n)||fs(n)&&Rc(e,je)||t&&cy(n))return!0}else if(3145728&e.flags&&Ay(e))for(var r=0,i=e.types;r<i.length;r++)if(Dy(i[r],n,t))return!0;return!1}function Ay(n){return!!(524288&n.flags&&!(512&e.getObjectFlags(n))||67108864&n.flags||1048576&n.flags&&e.some(n.types,Ay)||2097152&n.flags&&e.every(n.types,Ay))}function Cy(n){return n.valueDeclaration?e.getCombinedNodeFlags(n.valueDeclaration):0}function Iy(n){if(8192&n.flags||4&e.getCheckFlags(n))return!0;if(e.isInJSFile(n.valueDeclaration)){var t=n.valueDeclaration.parent;return t&&e.isBinaryExpression(t)&&3===e.getAssignmentDeclarationKind(t)}}function Ny(n,t,r,i,a,o){void 0===o&&(o=!0);var s,c=e.getDeclarationModifierFlagsFromSymbol(a,r),l=159===n.kind?n.right:198===n.kind?n:201===n.kind&&n.propertyName?n.propertyName:n.name;if(t){if(j<2&&ky(a))return o&&xr(l,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&c)return o&&xr(l,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,va(a),Ea(ff(a))),!1}if(128&c&&ky(a)&&(e.isThisProperty(n)||e.isThisInitializedObjectBindingExpression(n)||e.isObjectBindingPattern(n.parent)&&e.isThisInitializedDeclaration(n.parent.parent))&&(s=e.getClassLikeDeclarationOfSymbol(Vi(a)))&&function(n){return!!e.findAncestor(n,(function(n){return!!(e.isConstructorDeclaration(n)&&e.nodeIsPresent(n.body)||e.isPropertyDeclaration(n))||!(!e.isClassLike(n)&&!e.isFunctionLikeDeclaration(n))&&"quit"}))}(n))return o&&xr(l,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,va(a),e.getTextOfIdentifierOrLiteral(s.name)),!1;if(!(24&c))return!0;if(8&c)return!!JT(n,s=e.getClassLikeDeclarationOfSymbol(Vi(a)))||(o&&xr(l,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,va(a),Ea(ff(a))),!1);if(t)return!0;var u=zT(n,(function(n){var t=ns(Ui(n));return function(n,t,r){return pf(t,(function(t){return!!(16&e.getDeclarationModifierFlagsFromSymbol(t,r))&&!ko(n,ff(t))}))?void 0:n}(t,a,r)?t:void 0}));if(!u){var d=void 0;if(32&c||!(d=function(n){var t=e.getThisContainer(n,!1);return t&&e.isFunctionLike(t)?e.getThisParameter(t):void 0}(n))||!d.type)return o&&xr(l,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,va(a),Ea(ff(a)||i)),!1;var p=jd(d.type);u=(262144&p.flags?rc(p):p).target}return!!(32&c)||(262144&i.flags&&(i=i.isThisType?rc(i):cc(i)),!(!i||!ko(i,u))||(o&&xr(l,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,va(a),Ea(u),Ea(i)),!1))}function ky(e){return!!pf(e,(function(e){return!(8192&e.flags)}))}function Ry(e){return Gy(Ab(e),e)}function Oy(e){return!!(98304&(z?Jf(e):e.flags))}function Py(e){return Oy(e)?Zf(e):e}function wy(n,t){xr(n,32768&t?65536&t?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function My(n,t){xr(n,32768&t?65536&t?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 Fy(n,t,r){if(z&&2&n.flags)return xr(t,e.Diagnostics.Object_is_of_type_unknown),Re;var i=98304&(z?Jf(n):n.flags);if(i){r(t,i);var a=Zf(n);return 229376&a.flags?Re:a}return n}function Gy(e,n){return Fy(e,n,wy)}function By(n,t){var r=Gy(n,t);return r!==Re&&16384&r.flags&&xr(t,e.Diagnostics.Object_is_possibly_undefined),r}function Uy(e,n){return 32&e.flags?function(e,n){var t=Ab(e.expression),r=tm(t,e.expression);return nm(zy(e,e.expression,Gy(r,e.expression),e.name,n),e,r!==t)}(e,n):zy(e,e.expression,Ry(e.expression),e.name,n)}function Vy(n,t){var r=e.isPartOfTypeQuery(n)&&e.isThisIdentifier(n.left)?Gy(bg(n.left),n.left):Ry(n.left);return zy(n,n.left,r,n.right,t)}function jy(n){for(;210===n.parent.kind;)n=n.parent;return e.isCallOrNewExpression(n.parent)&&n.parent.expression===n}function Ky(n,t){for(var r=e.getContainingClass(t);r;r=e.getContainingClass(r)){var i=r.symbol,a=e.getSymbolNameForPrivateIdentifier(i,n),o=i.members&&i.members.get(a)||i.exports&&i.exports.get(a);if(o)return o}}function Hy(e,n){return xc(e,n.escapedName)}function Wy(n,t){return(no(t)||e.isThisProperty(n)&&to(t))&&e.getThisContainer(n,!0)===ro(t)}function zy(n,t,r,i,a){var o,s,c=Ur(t).resolvedSymbol,u=e.getAssignmentTargetKind(n),d=mc(0!==u||jy(n)?mm(r):r),p=Va(d)||d===$e;if(e.isPrivateIdentifier(i)){j<99&&(0!==u&&BS(n,1048576),1!==u&&BS(n,524288));var f=Ky(i.escapedText,i);if(u&&f&&f.valueDeclaration&&e.isMethodDeclaration(f.valueDeclaration)&&fx(i,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(i)),(null==f?void 0:f.valueDeclaration)&&99===V.target&&!H){var m=e.getContainingClass(f.valueDeclaration),_=e.findAncestor(n,(function(n){return n===m?"quit":!(!e.isPropertyDeclaration(n.parent)||!e.hasStaticModifier(n.parent)||n.parent.initializer!==n||n.parent.parent!==m)}));if(_){var g=Ui(_.parent);e.Debug.assert(g,"Initializer without declaration symbol");var y=xr(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(f));e.addRelatedInfo(y,e.createDiagnosticForNode(_.parent,e.Diagnostics.Initializer_for_property_0,e.symbolName(g)))}}if(p){if(f)return d;if(!e.getContainingClass(i))return fx(i,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ie}if(!(o=f?Hy(r,f):void 0)&&function(n,t,r){var i,a=nc(n);a&&e.forEach(a,(function(n){var r=n.valueDeclaration;if(r&&e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name)&&r.name.escapedText===t.escapedText)return i=n,!0}));var o=Xr(t);if(i){var s=e.Debug.checkDefined(i.valueDeclaration),c=e.Debug.checkDefined(e.getContainingClass(s));if(null==r?void 0:r.valueDeclaration){var u=r.valueDeclaration,d=e.getContainingClass(u);if(e.Debug.assert(!!d),e.findAncestor(d,(function(e){return c===e}))){var p=xr(t,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,Ea(n));return e.addRelatedInfo(p,e.createDiagnosticForNode(u,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,o),e.createDiagnosticForNode(s,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}}return xr(t,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,Xr(c.name||l)),!0}return!1}(r,i,f))return Re;o&&65536&o.flags&&!(32768&o.flags)&&1!==u&&xr(n,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(p)return e.isIdentifier(t)&&c&&mg(c,n),d;o=xc(d,i.escapedText)}if(e.isIdentifier(t)&&c&&(V.isolatedModules||!o||!_S(o)||e.shouldPreserveConstEnums(V)&&fg(n))&&mg(c,n),o){o.declarations&&134217728&Cy(o)&&Wu(n,o)&&Ir(i,o.declarations,i.escapedText),function(n,t,r){var i,a=n.valueDeclaration;if(a&&!e.getSourceFileOfNode(t).isDeclarationFile){var o=e.idText(r);!Xy(t)||function(n){return e.isPropertyDeclaration(n)&&n.questionToken}(a)||e.isAccessExpression(t)&&e.isAccessExpression(t.expression)||Kr(a,r)||!V.useDefineForClassFields&&function(e){if(!(32&e.parent.flags))return!1;for(var n=Ao(e.parent);;){if(!(n=n.symbol&&Yy(n)))return!1;var t=xc(n,e.escapedName);if(t&&t.valueDeclaration)return!0}}(n)?255!==a.kind||176===t.parent.kind||8388608&a.flags||Kr(a,r)||(i=xr(r,e.Diagnostics.Class_0_used_before_its_declaration,o)):i=xr(r,e.Diagnostics.Property_0_is_used_before_its_initialization,o),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,o))}}(o,n,i),ah(o,n,oh(t,c)),Ur(n).resolvedSymbol=o;var h=e.isWriteAccess(n);if(Ny(n,106===t.kind,h,d,o),zv(n,o,u))return xr(i,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(i)),Re;s=Wy(n,o)?Ne:h?function(e){if(98304&e.flags){var n=function(e){var n=Br(e);return n.writeType||(n.writeType=Eo(e,!0))}(e);if(n)return n}return Ao(e)}(o):Ao(o)}else{var v=e.isPrivateIdentifier(i)||0!==u&&Qu(r)&&!ed(r)?void 0:Mc(d,i.escapedText);if(!v||!v.type){var b=Jy(n,r.symbol,!0);return!b&&Ku(r)?Ie:r.symbol===se?(se.exports.has(i.escapedText)&&418&se.exports.get(i.escapedText).flags?xr(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(i.escapedText),Ea(r)):Y&&xr(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Ea(r)),Ie):(i.escapedText&&!Qr(n)&&function(n,t,r){var i,a;if(!e.isPrivateIdentifier(n)&&1048576&t.flags&&!(131068&t.flags))for(var o=0,s=t.types;o<s.length;o++){var c=s[o];if(!xc(c,n.escapedText)&&!Mc(c,n.escapedText)){i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),Ea(c));break}}if(Qy(n.escapedText,t)){var l=e.declarationNameToString(n),u=Ea(t);i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,u,u+"."+l)}else{var d=Jb(t);if(d&&xc(d,n.escapedText))i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),Ea(t)),a=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);else{var p=e.declarationNameToString(n),f=Ea(t),m=function(n,t){var r=mc(t).symbol;if(r)for(var i=e.getScriptTargetFeatures(),a=0,o=e.getOwnKeys(i);a<o.length;a++){var s=o[a],c=i[s][e.symbolName(r)];if(void 0!==c&&e.contains(c,n))return s}}(p,t);if(void 0!==m)i=e.chainDiagnosticMessages(i,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,p,f,m);else{var _=$y(n,t);if(void 0!==_){var g=e.symbolName(_),y=r?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;i=e.chainDiagnosticMessages(i,y,p,f,g),a=_.valueDeclaration&&e.createDiagnosticForNode(_.valueDeclaration,e.Diagnostics._0_is_declared_here,g)}else{var h=function(n){return V.lib&&!V.lib.includes("dom")&&(r=function(n){return n.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(n.symbol.escapedName))},3145728&(t=n).flags?e.every(t.types,r):r(t))&&Hp(n);var t,r}(t)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;i=e.chainDiagnosticMessages(Sc(i,t),h,p,f)}}}}var v=e.createDiagnosticForNodeFromMessageChain(n,i);a&&e.addRelatedInfo(v,a),Lr(!r,v)}(i,ed(r)?d:r,b),Re)}v.isReadonly&&(e.isAssignmentTarget(n)||e.isDeleteTarget(n))&&xr(n,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ea(d)),s=V.noUncheckedIndexedAccess&&!e.isAssignmentTarget(n)?xu([v.type,Me]):v.type,V.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(n)&&xr(i,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(i.escapedText))}return qy(n,o,s,i,a)}function Jy(n,t,r){var i=e.getSourceFileOfNode(n);if(i&&void 0===V.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){var a=e.forEach(null==t?void 0:t.declarations,e.getSourceFileOfNode);return!(i!==a&&a&&Vr(a)||r&&t&&32&t.flags||n&&r&&e.isPropertyAccessExpression(n)&&108===n.expression.kind)}return!1}function qy(n,t,r,i,a){var o=e.getAssignmentTargetKind(n);if(1===o)return rm(r,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&r.flags)&&!PT(t.declarations))return r;if(r===Ne)return ao(n,t);r=pg(r,n,a);var s=!1;if(z&&X&&e.isAccessExpression(n)&&108===n.expression.kind){var c=t&&t.valueDeclaration;if(c&&vT(c)&&!e.isStatic(c)){var l=sg(n);169!==l.kind||l.parent!==c.parent||8388608&c.flags||(s=!0)}}else z&&t&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(t.valueDeclaration)&&sg(n)===sg(t.valueDeclaration)&&(s=!0);var u=og(n,r,s?Qf(r):r);return s&&!(32768&Jf(r))&&32768&Jf(u)?(xr(i,e.Diagnostics.Property_0_is_used_before_being_assigned,va(t)),r):o?wf(u):u}function Xy(n){return!!e.findAncestor(n,(function(n){switch(n.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(n.parent)||!e.isClassStaticBlockDeclaration(n.parent.parent))||"quit";default:return!e.isExpressionNode(n)&&"quit"}}))}function Yy(e){var n=Ko(e);if(0!==n.length)return ku(n)}function Qy(n,t){var r=t.symbol&&xc(Ao(t.symbol),n);return void 0!==r&&!!r.valueDeclaration&&e.isStatic(r.valueDeclaration)}function Zy(e,n){return ih(e,nc(n),106500)}function $y(n,t){var r=nc(t);if("string"!=typeof n){var i=n.parent;e.isPropertyAccessExpression(i)&&(r=e.filter(r,(function(e){return sh(i,t,e)}))),n=e.idText(n)}return ih(n,r,111551)}function eh(n,t){var r=e.isString(n)?n:e.idText(n),i=nc(t),a="for"===r?e.find(i,(function(n){return"htmlFor"===e.symbolName(n)})):"class"===r?e.find(i,(function(n){return"className"===e.symbolName(n)})):void 0;return null!=a?a:ih(r,i,111551)}function nh(n,t){var r=$y(n,t);return r&&e.symbolName(r)}function th(n,t,r){e.Debug.assert(void 0!==t,"outername should always be defined");var i=zr(n,t,r,void 0,t,!1,!1,(function(n,r,i){return e.Debug.assertEqual(t,r,"name should equal outerName"),jr(n,r,i)||ih(e.unescapeLeadingUnderscores(r),e.arrayFrom(n.values()),i)}));return i}function rh(n,t){return t.exports&&ih(e.idText(n),Ri(t),2623475)}function ih(n,t,r){return e.getSpellingSuggestion(n,t,(function(n){var t=e.symbolName(n);if(!e.startsWith(t,'"')){if(n.flags&r)return t;if(2097152&n.flags){var i=function(e){if(Br(e).target!==Ce)return _i(e)}(n);if(i&&i.flags&r)return t}}}))}function ah(n,t,r){var i=n&&106500&n.flags&&n.valueDeclaration;if(i){var a=e.hasEffectiveModifier(i,8),o=n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name);if((a||o)&&(!t||!e.isWriteOnlyAccess(t)||65536&n.flags)){if(r){var s=e.findAncestor(t,e.isFunctionLikeDeclaration);if(s&&s.symbol===n)return}(1&e.getCheckFlags(n)?Br(n).target:n).isReferenced=67108863}}}function oh(n,t){return 108===n.kind||!!t&&e.isEntityNameExpression(n)&&t===Qm(e.getFirstIdentifier(n))}function sh(e,n,t){return ch(e,204===e.kind&&106===e.expression.kind,t.escapedName,n)}function ch(n,t,r,i){if(i===Re||Va(i))return!0;var a=xc(i,r);if(a){if(a.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(a.valueDeclaration)){var o=e.getContainingClass(a.valueDeclaration);return!e.isOptionalChain(n)&&!!e.findAncestor(n,(function(e){return e===o}))}return Ny(n,t,!1,i,a,!1)}return e.isInJSFile(n)&&0!=(1048576&i.flags)&&i.types.some((function(e){return ch(n,t,r,e)}))}function lh(n){var t=n.initializer;if(253===t.kind){var r=t.declarations[0];if(r&&!e.isBindingPattern(r.name))return Ui(r)}else if(79===t.kind)return Qm(t)}function uh(n,t,r){var i=0!==e.getAssignmentTargetKind(n)||jy(n)?mm(t):t,a=n.argumentExpression,o=Ab(a);if(i===Re||i===$e)return i;if(Zv(i)&&!e.isStringLiteralLike(a))return xr(a,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Re;var s=function(n){var t,r=e.skipParentheses(n);if(79===r.kind){var i=Qm(r);if(3&i.flags)for(var a=n,o=n.parent;o;){if(241===o.kind&&a===o.statement&&lh(o)===i&&1===kc(t=xb(o.expression)).length&&Rc(t,Ke))return!0;a=o,o=o.parent}}return!1}(a)?Ke:o,c=sd(i,s,e.isAssignmentTarget(n)?4|(Qu(i)&&!ed(i)?2:0):32,n)||Re;return Vb(qy(n,Ur(n).resolvedSymbol,c,a,r),n)}function dh(n){return e.isCallOrNewExpression(n)||e.isTaggedTemplateExpression(n)||e.isJsxOpeningLikeElement(n)}function ph(n){return dh(n)&&e.forEach(n.typeArguments,wT),208===n.kind?Ab(n.template):e.isJsxOpeningLikeElement(n)?Ab(n.attributes):163!==n.kind&&e.forEach(n.arguments,(function(e){Ab(e)})),bt}function fh(e){return ph(e),Et}function mh(e){return!!e&&(223===e.kind||230===e.kind&&e.isSpread)}function _h(n){return e.findIndex(n,mh)}function gh(e){return!!(16384&e.flags)}function yh(e){return!!(49155&e.flags)}function hh(n,t,r,i){var a;void 0===i&&(i=!1);var o=!1,s=Ev(r),c=Tv(r);if(208===n.kind)if(a=t.length,221===n.template.kind){var l=e.last(n.template.templateSpans);o=e.nodeIsMissing(l.literal)||!!l.literal.isUnterminated}else{var u=n.template;e.Debug.assert(14===u.kind),o=!!u.isUnterminated}else if(163===n.kind)a=Ph(n,r);else if(e.isJsxOpeningLikeElement(n)){if(o=n.attributes.end===n.end)return!0;a=0===c?t.length:1,s=0===t.length?s:1,c=Math.min(c,1)}else{if(!n.arguments)return e.Debug.assert(207===n.kind),0===Tv(r);a=i?t.length+1:t.length,o=n.arguments.end===n.end;var d=_h(t);if(d>=0)return d>=Tv(r)&&(Sv(r)||d<Ev(r))}if(!Sv(r)&&a>s)return!1;if(o||a>=c)return!0;for(var p=a;p<c;p++)if(131072&w_(hv(r,p),e.isInJSFile(n)&&!z?yh:gh).flags)return!1;return!0}function vh(n,t){var r=e.length(n.typeParameters),i=Hc(n.typeParameters);return!e.some(t)||t.length>=i&&t.length<=r}function bh(e){return Th(e,0,!1)}function Eh(e){return Th(e,0,!1)||Th(e,1,!1)}function Th(e,n,t){if(524288&e.flags){var r=Qs(e);if(t||0===r.properties.length&&0===r.indexInfos.length){if(0===n&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===n&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function Sh(n,t,r,i){var a=Em(n.typeParameters,n,0,i),o=xv(t),s=r&&(o&&262144&o.flags?r.nonFixingMapper:r.mapper);return vm(s?ip(t,s):t,n,(function(e,n){jm(a.inferences,e,n)})),r||bm(t,n,(function(e,n){jm(a.inferences,e,n,128)})),il(n,Xm(a),e.isInJSFile(t.declaration))}function xh(n){if(!n)return Qe;var t=Ab(n);return e.isOptionalChainRoot(n.parent)?Zf(t):e.isOptionalChain(n.parent)?em(t):t}function Lh(n,t,r,i,a){if(e.isJsxOpeningLikeElement(n))return function(e,n,t,r){var i=zg(n,e),a=lb(e.attributes,i,r,t);return jm(r.inferences,a,i),Xm(r)}(n,t,i,a);if(163!==n.kind){var o=Hg(n,e.every(t.typeParameters,(function(e){return!!fc(e)}))?8:0);if(o){var s=Wg(n),c=Am(function(n,t){return void 0===t&&(t=0),n&&Tm(e.map(n.inferences,Dm),n.signature,n.flags|t,n.compareTypes)}(s,1)),l=fp(o,c),u=bh(l),d=u&&u.typeParameters?ll(al(u,u.typeParameters)):l,p=el(t);jm(a.inferences,d,p,128);var f=Em(t.typeParameters,t,a.flags),m=fp(o,s&&s.returnMapper);jm(f.inferences,m,p),a.returnMapper=e.some(f.inferences,bb)?Am(function(n){var t=e.filter(n.inferences,bb);return t.length?Tm(e.map(t,Dm),n.signature,n.flags,n.compareTypes):void 0}(f)):void 0}}var _=Lv(t),g=_?Math.min(Ev(t)-1,r.length):r.length;if(_&&262144&_.flags){var y=e.find(a.inferences,(function(e){return e.typeParameter===_}));y&&(y.impliedArity=e.findIndex(r,mh,g)<0?r.length-g:void 0)}var h=Qc(t);if(h){var v=kh(n);jm(a.inferences,xh(v),h)}for(var b=0;b<g;b++){var E=r[b];if(225!==E.kind){var T=hv(t,b),S=lb(E,T,a,i);jm(a.inferences,S,T)}}if(_){var x=Ah(r,g,r.length,_,a,i);jm(a.inferences,x,_)}return Xm(a)}function Dh(e){return 1048576&e.flags?G_(e,Dh):1&e.flags||Sf(cc(e)||e)?e:Uf(e)?lu(Ll(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):lu([e],[8])}function Ah(n,t,r,i,a,o){if(t>=r-1&&mh(d=n[r-1]))return Dh(230===d.kind?d.type:lb(d.expression,i,a,o));for(var s=[],c=[],l=[],u=t;u<r;u++){var d;if(mh(d=n[u])){var p=230===d.kind?d.type:Ab(d.expression);Lf(p)?(s.push(p),c.push(8)):(s.push(GE(33,p,Me,223===d.kind?d.expression:d)),c.push(4))}else{var f=ad(i,wd(u-t),256),m=lb(d,f,a,o),_=Xv(f,406978556);s.push(_?Rd(m):Mf(m)),c.push(1)}230===d.kind&&d.tupleNameSource&&l.push(d.tupleNameSource)}return lu(s,c,!1,e.length(l)===e.length(s)?l:void 0)}function Ch(n,t,r,i){for(var a,o=e.isInJSFile(n.declaration),s=n.typeParameters,c=Wc(e.map(t,jd),s,Hc(s),o),l=0;l<t.length;l++){e.Debug.assert(void 0!==s[l],"Should not call checkTypeArguments with too many type arguments");var u=rc(s[l]);if(u){var d=r&&i?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,p=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a||(a=qd(s,c));var f=c[l];if(!kp(f,Es(fp(u,a),f),r?t[l]:void 0,p,d))return}}return c}function Ih(n){if(ly(n.tagName))return 2;var t=mc(Ab(n.tagName));return e.length(Dc(t,1))?0:e.length(Dc(t,0))?1:2}function Nh(n,t,r,i,a,o,s){var c={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(n))return function(n,t,r,i,a,o,s){var c=zg(t,n),l=lb(n.attributes,c,void 0,i);return function(){var t;if(_y(n))return!0;var r=e.isJsxOpeningElement(n)||e.isJsxSelfClosingElement(n)&&!ly(n.tagName)?Ab(n.tagName):void 0;if(!r)return!0;var i=Dc(r,0);if(!e.length(i))return!0;var o=MS(n);if(!o)return!0;var c=Si(o,111551,!0,!1,n);if(!c)return!0;var l=Dc(Ao(c),0);if(!e.length(l))return!0;for(var u=!1,d=0,p=0,f=l;p<f.length;p++){var m=Dc(hv(f[p],0),0);if(e.length(m))for(var _=0,g=m;_<g.length;_++){var y=g[_];if(u=!0,Sv(y))return!0;var h=Ev(y);h>d&&(d=h)}}if(!u)return!0;for(var v=1/0,b=0,E=i;b<E.length;b++){var T=Tv(E[b]);T<v&&(v=T)}if(v<=d)return!0;if(a){var S=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),v,e.entityNameToString(o),d),x=null===(t=QT(n.tagName))||void 0===t?void 0:t.valueDeclaration;x&&e.addRelatedInfo(S,e.createDiagnosticForNode(x,e.Diagnostics._0_is_declared_here,e.entityNameToString(n.tagName))),s&&s.skipLogging&&(s.errors||(s.errors=[])).push(S),s.skipLogging||ur.add(S)}return!1}()&&Op(l,c,r,a?n.tagName:void 0,n.attributes,void 0,o,s)}(n,r,i,a,o,s,c)?void 0:(e.Debug.assert(!o||!!c.errors,"jsx should have errors when reporting errors"),c.errors||e.emptyArray);var l=Qc(r);if(l&&l!==Qe&&207!==n.kind){var u=kh(n),d=xh(u),p=o?u||n:void 0,f=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Zp(d,l,i,p,f,s,c))return e.Debug.assert(!o||!!c.errors,"this parameter should have errors when reporting errors"),c.errors||e.emptyArray}for(var m=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,_=Lv(r),g=_?Math.min(Ev(r)-1,t.length):t.length,y=0;y<g;y++){var h=t[y];if(225!==h.kind){var v=hv(r,y),b=lb(h,v,void 0,a),E=4&a?cm(b):b;if(!Op(E,v,i,o?h:void 0,h,m,s,c))return e.Debug.assert(!o||!!c.errors,"parameter should have errors when reporting errors"),x(h,E,v),c.errors||e.emptyArray}}if(_){var T=Ah(t,g,t.length,_,void 0,a),S=t.length-g;if(p=o?0===S?n:1===S?t[g]:e.setTextRangePosEnd(Rh(n,T),t[g].pos,t[t.length-1].end):void 0,!Zp(T,_,i,p,m,void 0,c))return e.Debug.assert(!o||!!c.errors,"rest parameter should have errors when reporting errors"),x(p,T,_),c.errors||e.emptyArray}return;function x(n,t,r){if(n&&o&&c.errors&&c.errors.length){if(zb(r))return;var a=zb(t);a&&Xp(a,r,i)&&e.addRelatedInfo(c.errors[0],e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await))}}}function kh(n){var t=206===n.kind?n.expression:208===n.kind?n.tag:void 0;if(t){var r=e.skipOuterExpressions(t);if(e.isAccessExpression(r))return r.expression}}function Rh(n,t,r,i){var a=e.parseNodeFactory.createSyntheticExpression(t,r,i);return e.setTextRange(a,n),e.setParent(a,n),a}function Oh(n){if(208===n.kind){var t=n.template,r=[Rh(t,ot||(ot=Jl("TemplateStringsArray",0,!0))||pn)];return 221===t.kind&&e.forEach(t.templateSpans,(function(e){r.push(e.expression)})),r}if(163===n.kind)return function(n){var t=n.parent,r=n.expression;switch(t.kind){case 255:case 224:return[Rh(r,Ao(Ui(t)))];case 162:var i=t.parent;return[Rh(r,169===t.parent.kind?Ao(Ui(i)):Re),Rh(r,Ie),Rh(r,Ke)];case 165:case 167:case 170:case 171:var a=165!==t.kind&&0!==j;return[Rh(r,nS(t)),Rh(r,tS(t)),Rh(r,a?tu(ZT(t)):Ie)]}return e.Debug.fail()}(n);if(e.isJsxOpeningLikeElement(n))return n.attributes.properties.length>0||e.isJsxOpeningElement(n)&&n.parent.children.length>0?[n.attributes]:e.emptyArray;var i=n.arguments||e.emptyArray,a=_h(i);if(a>=0){for(var o=i.slice(0,a),s=function(n){var t=i[n],r=223===t.kind&&(Mt?Ab(t.expression):ub(t.expression));r&&Uf(r)?e.forEach(Ll(r),(function(e,n){var i,a=r.target.elementFlags[n],s=Rh(t,4&a?ru(e):e,!!(12&a),null===(i=r.target.labeledElementDeclarations)||void 0===i?void 0:i[n]);o.push(s)})):o.push(t)},c=a;c<i.length;c++)s(c);return o}return i}function Ph(n,t){switch(n.parent.kind){case 255:case 224:return 1;case 165:return 2;case 167:case 170:case 171:return 0===j||t.parameters.length<=2?2:3;case 162:return 3;default:return e.Debug.fail()}}function wh(n,t){var r,i,a=e.getSourceFileOfNode(n);if(e.isPropertyAccessExpression(n.expression)){var o=e.getErrorSpanForNode(a,n.expression.name);r=o.start,i=t?o.length:n.end-r}else{var s=e.getErrorSpanForNode(a,n.expression);r=s.start,i=t?s.length:n.end-r}return{start:r,length:i,sourceFile:a}}function Mh(n,t,r,i,a,o){if(e.isCallExpression(n)){var s=wh(n),c=s.sourceFile,l=s.start,u=s.length;return e.createFileDiagnostic(c,l,u,t,r,i,a,o)}return e.createDiagnosticForNode(n,t,r,i,a,o)}function Fh(n,t,r){var i,a=_h(r);if(a>-1)return e.createDiagnosticForNode(r[a],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,d=0,p=t;d<p.length;d++){var f=p[d],m=Tv(f),_=Ev(f);m<s&&(s=m,o=f),c=Math.max(c,_),m<r.length&&m>l&&(l=m),r.length<_&&_<u&&(u=_)}var g=e.some(t,Sv),y=g?s:s<c?s+"-"+c:s,h=g?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:1===y&&0===r.length&&function(n){if(!e.isCallExpression(n)||!e.isIdentifier(n.expression))return!1;var t=Wr(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),r=null==t?void 0:t.valueDeclaration;if(!(r&&e.isParameter(r)&&Xg(r.parent)&&e.isNewExpression(r.parent.parent)&&e.isIdentifier(r.parent.parent.expression)))return!1;var i=Zl(!1);return!!i&&QT(r.parent.parent.expression,!0)===i}(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(s<r.length&&r.length<c)return Mh(n,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,r.length,l,u);if(r.length<s){var v=Mh(n,h,y,r.length),b=null===(i=null==o?void 0:o.declaration)||void 0===i?void 0:i.parameters[o.thisParameter?r.length+1:r.length];if(b){var E=e.createDiagnosticForNode(b,e.isBindingPattern(b.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(b)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,b.name?e.isBindingPattern(b.name)?void 0:e.idText(e.getFirstIdentifier(b.name)):r.length);return e.addRelatedInfo(v,E)}return v}var T=e.factory.createNodeArray(r.slice(c)),S=e.first(T).pos,x=e.last(T).end;return x===S&&x++,e.setTextRangePosEnd(T,S,x),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),T,h,y,r.length)}function Gh(n,r,a,o,s,c){var l,u=208===n.kind,d=163===n.kind,p=e.isJsxOpeningLikeElement(n),f=!a&&t;d||(l=n.typeArguments,(u||p||106!==n.expression.kind)&&e.forEach(l,wT));var m=a||[];if(function(n,t,r){var i,a,o,s,c=0,l=-1;e.Debug.assert(!t.length);for(var u=0,d=n;u<d.length;u++){var p=d[u],f=p.declaration&&Ui(p.declaration),m=p.declaration&&p.declaration.parent;a&&f!==a?(o=c=t.length,i=m):i&&m===i?o+=1:(i=m,o=c),a=f,U(p)?(s=++l,c++):s=o,t.splice(s,0,r?Ds(p,r):p)}}(r,m,s),!m.length)return f&&ur.add(Mh(n,e.Diagnostics.Call_target_does_not_contain_any_signatures)),fh(n);var _,g,y,h,v=Oh(n),b=1===m.length&&!m[0].typeParameters,E=d||b||!e.some(v,hp)?0:4,T=!!(16&o)&&206===n.kind&&n.arguments.hasTrailingComma;if(m.length>1&&(h=z(m,mr,b,T)),h||(h=z(m,gr,b,T)),h)return h;if(f)if(_)if(1===_.length||_.length>3){var S,x=_[_.length-1];_.length>3&&(S=e.chainDiagnosticMessages(S,e.Diagnostics.The_last_overload_gave_the_following_error),S=e.chainDiagnosticMessages(S,e.Diagnostics.No_overload_matches_this_call));var L=Nh(n,v,x,gr,0,!0,(function(){return S}));if(L)for(var D=0,A=L;D<A.length;D++){var C=A[D];x.declaration&&_.length>3&&e.addRelatedInfo(C,e.createDiagnosticForNode(x.declaration,e.Diagnostics.The_last_overload_is_declared_here)),W(x,C),ur.add(C)}else e.Debug.fail("No error for last overload signature")}else{for(var I=[],N=0,k=Number.MAX_VALUE,R=0,O=0,P=function(t){var r=Nh(n,v,t,gr,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,O+1,m.length,ba(t))}));r?(r.length<=k&&(k=r.length,R=O),N=Math.max(N,r.length),I.push(r)):e.Debug.fail("No error for 3 or fewer overload signatures"),O++},w=0,M=_;w<M.length;w++)P(M[w]);var F=N>1?I[R]:e.flatten(I);e.Debug.assert(F.length>0,"No errors reported for 3 or fewer overload signatures");var G=e.chainDiagnosticMessages(e.map(F,(function(e){return"string"==typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),V=i([],e.flatMap(F,(function(e){return e.relatedInformation})),!0),j=void 0;if(e.every(F,(function(e){return e.start===F[0].start&&e.length===F[0].length&&e.file===F[0].file}))){var K=F[0];j={file:K.file,start:K.start,length:K.length,code:G.code,category:G.category,messageText:G,relatedInformation:V}}else j=e.createDiagnosticForNodeFromMessageChain(n,G,V);W(_[0],j),ur.add(j)}else if(g)ur.add(Fh(n,[g],v));else if(y)Ch(y,n.typeArguments,!0,c);else{var H=e.filter(r,(function(e){return vh(e,l)}));0===H.length?ur.add(function(n,t,r){var i=r.length;if(1===t.length){var a=Hc((d=t[0]).typeParameters),o=e.length(d.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,a<o?a+"-"+o:a,i)}for(var s=-1/0,c=1/0,l=0,u=t;l<u.length;l++){var d,p=Hc((d=u[l]).typeParameters);o=e.length(d.typeParameters),p>i?c=Math.min(c,p):o<i&&(s=Math.max(s,o))}return s!==-1/0&&c!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,s,c):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,s===-1/0?c:s,i)}(n,r,l)):d?c&&ur.add(Mh(n,c)):ur.add(Fh(n,H,v))}return function(n,t,r,i){return e.Debug.assert(t.length>0),FT(n),i||1===t.length||t.some((function(e){return!!e.typeParameters}))?function(n,t,r){var i=function(e,n){for(var t=-1,r=-1,i=0;i<e.length;i++){var a=e[i],o=Ev(a);if(Sv(a)||o>=n)return i;o>r&&(r=o,t=i)}return t}(t,void 0===ce?r.length:ce),a=t[i],o=a.typeParameters;if(!o)return a;var s=dh(n)?n.typeArguments:void 0,c=s?ol(a,function(e,n,t){for(var r=e.map(ZT);r.length>n.length;)r.pop();for(;r.length<n.length;)r.push(rc(n[r.length])||qm(t));return r}(s,o,e.isInJSFile(n))):function(n,t,r,i){return ol(r,Lh(n,r,i,12,Em(t,r,e.isInJSFile(n)?2:0)))}(n,o,a,r);return t[i]=c,c}(n,t,r):function(n){var t,r=e.mapDefined(n,(function(e){return e.thisParameter}));r.length&&(t=Uh(r,r.map(pv)));for(var i=e.minAndMax(n,Bh),a=i.min,o=i.max,s=[],c=function(t){var r=e.mapDefined(n,(function(n){return B(n)?t<n.parameters.length-1?n.parameters[t]:e.last(n.parameters):t<n.parameters.length?n.parameters[t]:void 0}));e.Debug.assert(0!==r.length),s.push(Uh(r,e.mapDefined(n,(function(e){return vv(e,t)}))))},l=0;l<o;l++)c(l);var u=e.mapDefined(n,(function(n){return B(n)?e.last(n.parameters):void 0})),d=0;if(0!==u.length){var p=ru(xu(e.mapDefined(n,rl),2));s.push(Vh(u,p)),d|=1}return n.some(U)&&(d|=2),Ss(n[0].declaration,void 0,t,s,ku(n.map(el)),void 0,a,d)}(t)}(n,m,v,!!a);function W(n,t){var r,i,a=_,o=g,s=y,c=(null===(i=null===(r=n.declaration)||void 0===r?void 0:r.symbol)||void 0===i?void 0:i.declarations)||e.emptyArray,l=c.length>1?e.find(c,(function(n){return e.isFunctionLikeDeclaration(n)&&e.nodeIsPresent(n.body)})):void 0;if(l){var u=zc(l),d=!u.typeParameters;z([u],gr,d)&&e.addRelatedInfo(t,e.createDiagnosticForNode(l,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}_=a,g=o,y=s}function z(t,r,i,a){if(void 0===a&&(a=!1),_=void 0,g=void 0,y=void 0,i){var o=t[0];if(e.some(l)||!hh(n,v,o,a))return;return Nh(n,v,o,r,0,!1,void 0)?void(_=[o]):o}for(var s=0;s<t.length;s++)if(vh(o=t[s],l)&&hh(n,v,o,a)){var c=void 0,u=void 0;if(o.typeParameters){var d=void 0;if(e.some(l)){if(!(d=Ch(o,l,!1))){y=o;continue}}else u=Em(o.typeParameters,o,e.isInJSFile(n)?2:0),d=Lh(n,o,v,8|E,u),E|=4&u.flags?8:0;if(c=il(o,d,e.isInJSFile(o.declaration),u&&u.inferredTypeParameters),Lv(o)&&!hh(n,v,c,a)){g=c;continue}}else c=o;if(!Nh(n,v,c,r,E,!1,void 0)){if(E){if(E=0,u&&(c=il(o,d=Lh(n,o,v,E,u),e.isInJSFile(o.declaration),u&&u.inferredTypeParameters),Lv(o)&&!hh(n,v,c,a))){g=c;continue}if(Nh(n,v,c,r,E,!1,void 0)){(_||(_=[])).push(c);continue}}return t[s]=c,c}(_||(_=[])).push(c)}}}function Bh(e){var n=e.parameters.length;return B(e)?n-1:n}function Uh(e,n){return Vh(e,xu(n,2))}function Vh(n,t){return sm(e.first(n),t)}function jh(e){return!(!e.typeParameters||!DS(el(e)))}function Kh(e,n,t,r){return Va(e)||Va(n)&&!!(262144&e.flags)||!t&&!r&&!(1048576&n.flags)&&!(131072&vc(n).flags)&&Ap(e,Cn)}function Hh(n,t,r){if(n.arguments&&j<1){var i=_h(n.arguments);i>=0&&xr(n.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=Ry(n.expression);if(a===$e)return St;if((a=mc(a))===Re)return fh(n);if(Va(a))return n.typeArguments&&xr(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),ph(n);var o=Dc(a,1);if(o.length){if(!function(n,t){if(!t||!t.declaration)return!0;var r=t.declaration,i=e.getSelectedEffectiveModifierFlags(r,24);if(!i||169!==r.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),o=ns(r.parent.symbol);if(!JT(n,a)){var s=e.getContainingClass(n);if(s&&16&i){var c=ZT(s);if(Wh(r.parent.symbol,c))return!0}return 8&i&&xr(n,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Ea(o)),16&i&&xr(n,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Ea(o)),!1}return!0}(n,o[0]))return fh(n);if(o.some((function(e){return 4&e.flags})))return xr(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),fh(n);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(xr(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),fh(n)):Gh(n,o,t,r,0)}var c=Dc(a,0);if(c.length){var l=Gh(n,c,t,r,0);return Y||(l.declaration&&!ev(l.declaration)&&el(l)!==Qe&&xr(n,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Qc(l)===Qe&&xr(n,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return Jh(n.expression,a,1),fh(n)}function Wh(n,t){var r=Ko(t);if(!e.length(r))return!1;var i=r[0];if(2097152&i.flags){for(var a=Ps(i.types),o=0,s=0,c=i.types;s<c.length;s++){var l=c[s];if(!a[o]&&3&e.getObjectFlags(l)){if(l.symbol===n)return!0;if(Wh(n,l))return!0}o++}return!1}return i.symbol===n||Wh(n,i)}function zh(n,t,r){var i,a=0===r,o=Xb(t),s=o&&Dc(o,r).length>0;if(1048576&t.flags){for(var c=!1,l=0,u=t.types;l<u.length;l++){var d=u[l];if(0!==Dc(d,r).length){if(c=!0,i)break}else if(i||(i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Ea(d)),i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,Ea(t))),c)break}c||(i=e.chainDiagnosticMessages(void 0,a?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,Ea(t))),i||(i=e.chainDiagnosticMessages(i,a?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,Ea(t)))}else i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Ea(t));var p=a?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(n.parent)&&0===n.parent.arguments.length){var f=Ur(n).resolvedSymbol;f&&32768&f.flags&&(p=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(i,p),relatedMessage:s?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function Jh(n,t,r,i){var a=zh(n,t,r),o=a.messageChain,s=a.relatedMessage,c=e.createDiagnosticForNodeFromMessageChain(n,o);if(s&&e.addRelatedInfo(c,e.createDiagnosticForNode(n,s)),e.isCallExpression(n.parent)){var l=wh(n.parent,!0),u=l.start,d=l.length;c.start=u,c.length=d}ur.add(c),qh(t,r,i?e.addRelatedInfo(c,i):c)}function qh(n,t,r){if(n.symbol){var i=Br(n.symbol).originatingImport;if(i&&!e.isImportCall(i)){var a=Dc(Ao(Br(n.symbol).target),t);if(!a||!a.length)return;e.addRelatedInfo(r,e.createDiagnosticForNode(i,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}function Xh(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 Yh(n,t){var r=gy(n),i=r&&wi(r),a=i&&jr(i,I.Element,788968),o=a&&ie.symbolToEntityName(a,788968,n),s=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,ie.typeToTypeNode(t,n))],o?e.factory.createTypeReferenceNode(o,void 0):e.factory.createKeywordTypeNode(129)),c=Nr(1,"props");return c.type=t,Ss(s,void 0,void 0,[c],a?ns(a):Re,void 0,1,0)}function Qh(n,t,r){if(ly(n.tagName)){var i=Ey(n),a=Yh(n,i);return Rp(lb(n.attributes,zg(a,n),void 0,0),i,n.tagName,n.attributes),e.length(n.typeArguments)&&(e.forEach(n.typeArguments,wT),ur.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),n.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(n.typeArguments)))),a}var o=Ab(n.tagName),s=mc(o);if(s===Re)return fh(n);var c=vy(o,n);return Kh(o,s,c.length,0)?ph(n):0===c.length?(xr(n.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(n.tagName)),fh(n)):Gh(n,c,t,r,0)}function Zh(n,t,r){switch(n.kind){case 206:return function(n,t,r){if(106===n.expression.kind){var i=Sg(n.expression);if(Va(i)){for(var a=0,o=n.arguments;a<o.length;a++)Ab(o[a]);return bt}if(i!==Re){var s=e.getEffectiveBaseTypeNode(e.getContainingClass(n));if(s)return Gh(n,Uo(i,s.typeArguments,s),t,r,0)}return ph(n)}var c,l=Ab(n.expression);if(e.isCallChain(n)){var u=tm(l,n.expression);c=u===l?0:e.isOutermostOptionalChain(n)?16:8,l=u}else c=0;if((l=Fy(l,n.expression,My))===$e)return St;var d=mc(l);if(d===Re)return fh(n);var p=Dc(d,0),f=Dc(d,1).length;if(Kh(l,d,p.length,f))return l!==Re&&n.typeArguments&&xr(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),ph(n);if(!p.length){if(f)xr(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ea(l));else{var m=void 0;if(1===n.arguments.length){var _=e.getSourceFileOfNode(n).text;e.isLineBreak(_.charCodeAt(e.skipTrivia(_,n.expression.end,!0)-1))&&(m=e.createDiagnosticForNode(n.expression,e.Diagnostics.Are_you_missing_a_semicolon))}Jh(n.expression,d,0,m)}return fh(n)}return 8&r&&!n.typeArguments&&p.some(jh)?(vb(n,r),Tt):p.some((function(n){return e.isInJSFile(n.declaration)&&!!e.getJSDocClassTag(n.declaration)}))?(xr(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ea(l)),fh(n)):Gh(n,p,t,r,c)}(n,t,r);case 207:return Hh(n,t,r);case 208:return function(n,t,r){var i=Ab(n.tag),a=mc(i);if(a===Re)return fh(n);var o=Dc(a,0),s=Dc(a,1).length;if(Kh(i,a,o.length,s))return ph(n);if(!o.length){if(e.isArrayLiteralExpression(n.parent)){var c=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 ur.add(c),fh(n)}return Jh(n.tag,a,0),fh(n)}return Gh(n,o,t,r,0)}(n,t,r);case 163:return function(n,t,r){var i=Ab(n.expression),a=mc(i);if(a===Re)return fh(n);var o,s,c=Dc(a,0),l=Dc(a,1).length;if(Kh(i,a,c.length,l))return ph(n);if(o=n,(s=c).length&&e.every(s,(function(e){return 0===e.minArgumentCount&&!B(e)&&e.parameters.length<Ph(o,e)}))){var u=e.getTextOfNode(n.expression,!1);return xr(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,u),fh(n)}var d=Xh(n);if(!c.length){var p=zh(n.expression,a,0),f=e.chainDiagnosticMessages(p.messageChain,d),m=e.createDiagnosticForNodeFromMessageChain(n.expression,f);return p.relatedMessage&&e.addRelatedInfo(m,e.createDiagnosticForNode(n.expression,p.relatedMessage)),ur.add(m),qh(a,0,m),fh(n)}return Gh(n,c,t,r,0,d)}(n,t,r);case 278:case 277:return Qh(n,t,r)}throw e.Debug.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function $h(e,n,t){var r=Ur(e),i=r.resolvedSignature;if(i&&i!==Tt&&!n)return i;r.resolvedSignature=Tt;var a=Zh(e,n,t||0);return a!==Tt&&(r.resolvedSignature=wt===Mt?a:i),a}function ev(n){var t;if(!n||!e.isInJSFile(n))return!1;var r=e.isFunctionDeclaration(n)||e.isFunctionExpression(n)?n:e.isVariableDeclaration(n)&&n.initializer&&e.isFunctionExpression(n.initializer)?n.initializer:void 0;if(r){if(e.getJSDocClassTag(n))return!0;var i=Ui(r);return!!(null===(t=null==i?void 0:i.members)||void 0===t?void 0:t.size)}return!1}function nv(n,t){var r,i;if(t){var a=Br(t);if(!a.inferredClassSymbol||!a.inferredClassSymbol.has(P(n))){var o=e.isTransientSymbol(n)?n:Or(n);return o.exports=o.exports||e.createSymbolTable(),o.members=o.members||e.createSymbolTable(),o.flags|=32&t.flags,(null===(r=t.exports)||void 0===r?void 0:r.size)&&Fr(o.exports,t.exports),(null===(i=t.members)||void 0===i?void 0:i.size)&&Fr(o.members,t.members),(a.inferredClassSymbol||(a.inferredClassSymbol=new e.Map)).set(P(o),o),o}return a.inferredClassSymbol.get(P(n))}}function tv(n,t){if(n.parent){var r,i;if(e.isVariableDeclaration(n.parent)&&n.parent.initializer===n){if(!(e.isInJSFile(n)||e.isVarConst(n.parent)&&e.isFunctionLikeDeclaration(n)))return;r=n.parent.name,i=n.parent}else if(e.isBinaryExpression(n.parent)){var a=n.parent,o=n.parent.operatorToken.kind;if(63!==o||!t&&a.right!==n){if(!(56!==o&&60!==o||(e.isVariableDeclaration(a.parent)&&a.parent.initializer===a?(r=a.parent.name,i=a.parent):e.isBinaryExpression(a.parent)&&63===a.parent.operatorToken.kind&&(t||a.parent.right===a)&&(i=r=a.parent.left),r&&e.isBindableStaticNameExpression(r)&&e.isSameEntityName(r,a.left))))return}else i=r=a.left}else t&&e.isFunctionDeclaration(n)&&(r=n.name,i=n);if(i&&r&&(t||e.getExpandoInitializer(n,e.isPrototypeAccess(r))))return Ui(i)}}function rv(n,t){if(n.declaration&&134217728&n.declaration.flags){var r=iv(t),i=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(t));a=r,o=n.declaration,s=i,c=ba(n),Cr(o,s?e.createDiagnosticForNode(a,e.Diagnostics.The_signature_0_of_1_is_deprecated,c,s):e.createDiagnosticForNode(a,e.Diagnostics._0_is_deprecated,c))}var a,o,s,c}function iv(n){switch((n=e.skipParentheses(n)).kind){case 206:case 163:case 207:return iv(n.expression);case 208:return iv(n.tag);case 278:case 277:return iv(n.tagName);case 205:return n.argumentExpression;case 204:return n.name;case 176:var t=n;return e.isQualifiedName(t.typeName)?t.typeName.right:t;default:return n}}function av(n){if(!e.isCallExpression(n))return!1;var t=n.expression;if(e.isPropertyAccessExpression(t)&&"for"===t.name.escapedText&&(t=t.expression),!e.isIdentifier(t)||"Symbol"!==t.escapedText)return!1;var r=Xl(!1);return!!r&&r===Wr(t,"Symbol",111551,void 0,void 0,!1)}function ov(n,t,r){var i;if(W&&n&&n!==Re){var a=n;if(!a.syntheticType)if(si(null===(i=r.declarations)||void 0===i?void 0:i.find(e.isSourceFile),r,!1)){var o=e.createSymbolTable(),s=Nr(2097152,"default");s.parent=r,s.nameType=Pd("default"),s.target=mi(t),o.set("default",s);var c=Nr(2048,"__type"),l=ra(c,o,e.emptyArray,e.emptyArray,e.emptyArray);c.type=l,a.syntheticType=sy(n)?Ad(n,l,c,0,!1):l}else a.syntheticType=n;return a.syntheticType}return n}function sv(n){if(!e.isRequireCall(n,!0))return!1;if(!e.isIdentifier(n.expression))return e.Debug.fail();var t=Wr(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(t===ue)return!0;if(2097152&t.flags)return!1;var r=16&t.flags?254:3&t.flags?252:0;if(0!==r){var i=e.getDeclarationOfKind(t,r);return!!i&&!!(8388608&i.flags)}return!1}function cv(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 cv(n.expression);case 217:var t=n.operator,r=n.operand;return 40===t&&(8===r.kind||9===r.kind)||39===t&&8===r.kind;case 204:case 205:var i=n.expression;if(e.isIdentifier(i)){var a=QT(i);return a&&2097152&a.flags&&(a=_i(a)),!!(a&&384&a.flags&&1===Yo(a))}}return!1}function lv(n,r,i,a){var o=Ab(i,a);if(e.isConstTypeReference(r))return cv(i)||xr(i,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Rd(o);wT(r),o=cm(wf(o));var s=jd(r);return t&&s!==Re&&(Ip(s,mm(o))||Vp(o,s,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)),s}function uv(n){switch(n.keywordToken){case 100:return function(){if(!ct){var n=Nr(0,"ImportMetaExpression"),t=ql(),r=Nr(4,"meta",8);r.parent=n,r.type=t;var i=e.createSymbolTable([r]);n.members=i,ct=ra(n,i,e.emptyArray,e.emptyArray,e.emptyArray)}return ct}();case 103:var t=dv(n);return t===Re?Re:function(n){var t=Nr(0,"NewTargetExpression"),r=Nr(4,"target",8);r.parent=t,r.type=n;var i=e.createSymbolTable([r]);return t.members=i,ra(t,i,e.emptyArray,e.emptyArray,e.emptyArray)}(t);default:e.Debug.assertNever(n.keywordToken)}}function dv(n){var t=e.getNewTargetContainer(n);return t?169===t.kind?Ao(Ui(t.parent)):Ao(Ui(t)):(xr(n,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Re)}function pv(n){var t=Ao(n);if(z){var r=n.valueDeclaration;if(r&&e.hasInitializer(r))return Qf(t)}return t}function fv(n){return e.Debug.assert(e.isIdentifier(n.name)),n.name.escapedText}function mv(e,n,t){var r=e.parameters.length-(B(e)?1:0);if(n<r)return e.parameters[n].escapedName;var i=e.parameters[r]||Ae,a=t||Ao(i);if(Uf(a)){var o=a.target.labeledElementDeclarations,s=n-r;return o&&fv(o[s])||i.escapedName+"_"+s}return i.escapedName}function _v(n){return n.valueDeclaration&&e.isParameter(n.valueDeclaration)&&e.isIdentifier(n.valueDeclaration.name)}function gv(n){return 195===n.kind||e.isParameter(n)&&n.name&&e.isIdentifier(n.name)}function yv(e,n){var t=e.parameters.length-(B(e)?1:0);if(n<t){var r=e.parameters[n].valueDeclaration;return r&&gv(r)?r:void 0}var i=e.parameters[t]||Ae,a=Ao(i);if(Uf(a)){var o=a.target.labeledElementDeclarations;return o&&o[n-t]}return i.valueDeclaration&&gv(i.valueDeclaration)?i.valueDeclaration:void 0}function hv(e,n){return vv(e,n)||Ie}function vv(e,n){var t=e.parameters.length-(B(e)?1:0);if(n<t)return pv(e.parameters[n]);if(B(e)){var r=Ao(e.parameters[t]),i=n-t;if(!Uf(r)||r.target.hasRestElement||i<r.target.fixedLength)return ad(r,wd(i))}}function bv(n,t){var r=Ev(n),i=Tv(n),a=xv(n);if(a&&t>=r-1)return t===r-1?a:ru(ad(a,Ke));for(var o=[],s=[],c=[],l=t;l<r;l++){!a||l<r-1?(o.push(hv(n,l)),s.push(l<i?1:2)):(o.push(a),s.push(8));var u=yv(n,l);u&&c.push(u)}return lu(o,s,!1,e.length(c)===e.length(o)?c:void 0)}function Ev(e){var n=e.parameters.length;if(B(e)){var t=Ao(e.parameters[n-1]);if(Uf(t))return n+t.target.fixedLength-(t.target.hasRestElement?0:1)}return n}function Tv(n,t){var r=1&t,i=2&t;if(i||void 0===n.resolvedMinArgumentCount){var a=void 0;if(B(n)){var o=Ao(n.parameters[n.parameters.length-1]);if(Uf(o)){var s=e.findIndex(o.target.elementFlags,(function(e){return!(1&e)})),c=s<0?o.target.fixedLength:s;c>0&&(a=n.parameters.length-1+c)}}if(void 0===a){if(!r&&32&n.flags)return 0;a=n.minArgumentCount}if(i)return a;for(var l=a-1;l>=0&&!(131072&w_(hv(n,l),gh).flags);l--)a=l;n.resolvedMinArgumentCount=a}return n.resolvedMinArgumentCount}function Sv(e){if(B(e)){var n=Ao(e.parameters[e.parameters.length-1]);return!Uf(n)||n.target.hasRestElement}return!1}function xv(e){if(B(e)){var n=Ao(e.parameters[e.parameters.length-1]);if(!Uf(n))return n;if(n.target.hasRestElement)return fu(n,n.target.fixedLength)}}function Lv(e){var n=xv(e);return!n||Ef(n)||Va(n)||0!=(131072&vc(n).flags)?void 0:n}function Dv(e){return Av(e,Ze)}function Av(e,n){return e.parameters.length>0?hv(e,0):n}function Cv(n,t){if(t.typeParameters){if(n.typeParameters)return;n.typeParameters=t.typeParameters}t.thisParameter&&(!(a=n.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(n.thisParameter=sm(t.thisParameter,void 0)),Iv(n.thisParameter,Ao(t.thisParameter)));for(var r=n.parameters.length-(B(n)?1:0),i=0;i<r;i++){var a=n.parameters[i];e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||Iv(a,vv(t,i))}B(n)&&(a=e.last(n.parameters),!e.isTransientSymbol(a)&&e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||Iv(a,bv(t,r)))}function Iv(e,n){var t=Br(e);if(!t.type){var r=e.valueDeclaration;t.type=n||mo(r,!0),79!==r.name.kind&&(t.type===we&&(t.type=fo(r.name)),Nv(r.name))}}function Nv(n){for(var t=0,r=n.elements;t<r.length;t++){var i=r[t];e.isOmittedExpression(i)||(79===i.name.kind?Br(Ui(i)).type=Ya(i):Nv(i.name))}}function kv(e){var n=Ql(!0);return n!==gn?Tl(n,[e=Xb(e)||we]):we}function Rv(e){var n=(!0,Jn||(Jn=Jl("PromiseLike",1,true))||gn);return n!==gn?Tl(n,[e=Xb(e)||we]):we}function Ov(n,t){var r=kv(t);return r===we?(xr(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),Re):(Zl(!0)||xr(n,e.isImportCall(n)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),r)}function Pv(n,t){if(!n.body)return Re;var r,i,a,o=e.getFunctionFlags(n),s=0!=(2&o),c=0!=(1&o),l=Qe;if(233!==n.body.kind)r=ub(n.body,t&&-9&t),s&&(r=qb(r,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else if(c){var u=Uv(n,t);u?u.length>0&&(r=xu(u,2)):l=Ze;var d=function(n,t){var r=[],i=[],a=0!=(2&e.getFunctionFlags(n));return e.forEachYieldExpression(n.body,(function(n){var o,s=n.expression?Ab(n.expression,t):Fe;if(e.pushIfUnique(r,Mv(n,s,Ie,a)),n.asteriskToken){var c=WE(s,a?19:17,n.expression);o=c&&c.nextType}else o=Hg(n);o&&e.pushIfUnique(i,o)})),{yieldTypes:r,nextTypes:i}}(n,t),p=d.yieldTypes,f=d.nextTypes;i=e.some(p)?xu(p,2):void 0,a=e.some(f)?ku(f):void 0}else{var m=Uv(n,t);if(!m)return 2&o?Ov(n,Ze):Ze;if(0===m.length)return 2&o?Ov(n,Qe):Qe;r=xu(m,2)}if(r||i||a){if(i&&hm(n,i,3),r&&hm(n,r,1),a&&hm(n,a,2),r&&Rf(r)||i&&Rf(i)||a&&Rf(a)){var _=Yg(n),g=_?_===zc(n)?c?void 0:r:jg(el(_),n):void 0;c?(i=Bf(i,g,0,s),r=Bf(r,g,1,s),a=Bf(a,g,2,s)):r=function(e,n,t){return e&&Rf(e)&&(e=Gf(e,n?t?Jb(n):n:void 0)),e}(r,g,s)}i&&(i=mm(i)),r&&(r=mm(r)),a&&(a=mm(a))}return c?wv(i||Ze,r||l,a||Ng(2,n)||we,s):s?kv(r||l):r||l}function wv(e,n,t,r){var i=r?Nt:kt,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||we,n=i.resolveIterationType(n,void 0)||we,t=i.resolveIterationType(t,void 0)||we,a===gn){var o=i.getGlobalIterableIteratorType(!1),s=o!==gn?XE(o,i):void 0,c=s?s.returnType:Ie,l=s?s.nextType:Me;return Ap(n,c)&&Ap(l,t)?o!==gn?nu(o,[e]):(i.getGlobalIterableIteratorType(!0),pn):(i.getGlobalGeneratorType(!0),pn)}return nu(a,[e,n,t])}function Mv(n,t,r,i){var a=n.expression||n,o=n.asteriskToken?GE(i?19:17,t,r,a):t;return i?Xb(o,a,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):o}function Fv(e,n,t,r){var i=0;if(r){for(var a=n;a<t.length;a++)i|=S.get(t[a])||32768;for(a=e;a<n;a++)i&=~(S.get(t[a])||0);for(a=0;a<e;a++)i|=S.get(t[a])||32768}else{for(a=e;a<n;a++)i|=T.get(t[a])||128;for(a=0;a<e;a++)i&=~(T.get(t[a])||0)}return i}function Gv(n){var t=Ur(n);return void 0!==t.isExhaustive?t.isExhaustive:t.isExhaustive=function(n){if(214===n.expression.kind){var t=xb(n.expression.expression),r=Fv(0,0,N_(n,!1),!0),i=cc(t)||t;return 3&i.flags?556800==(556800&r):!!(131072&w_(i,(function(e){return(m_(e)&r)===r})).flags)}var a=xb(n.expression);if(!Pf(a))return!1;var o,s,c=I_(n);return!(!c.length||e.some(c,kf))&&(o=G_(a,Rd),s=c,1048576&o.flags?!e.forEach(o.types,(function(n){return!e.contains(s,n)})):e.contains(s,o))}(n)}function Bv(e){return e.endFlowNode&&ng(e.endFlowNode)}function Uv(n,t){var r=e.getFunctionFlags(n),i=[],a=Bv(n),o=!1;if(e.forEachReturnStatement(n.body,(function(s){var c=s.expression;if(c){var l=ub(c,t&&-9&t);2&r&&(l=qb(l,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),131072&l.flags&&(o=!0),e.pushIfUnique(i,l)}else a=!0})),0!==i.length||a||!o&&!function(e){switch(e.kind){case 211:case 212:return!0;case 167:return 203===e.parent.kind;default:return!1}}(n))return!(z&&i.length&&a)||ev(n)&&i.some((function(e){return e.symbol===n.symbol}))||e.pushIfUnique(i,Me),i}function Vv(n,r){if(t){var i=e.getFunctionFlags(n),a=r&&cT(r,i);if((!a||!Xv(a,16385))&&166!==n.kind&&!e.nodeIsMissing(n.body)&&233===n.body.kind&&Bv(n)){var o=512&n.flags,s=e.getEffectiveReturnTypeNode(n)||n;if(a&&131072&a.flags)xr(s,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(a&&!o)xr(s,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(a&&z&&!Ap(Me,a))xr(s,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(V.noImplicitReturns){if(!a){if(!o)return;if(lT(n,el(zc(n))))return}xr(s,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function jv(n,t){if(e.Debug.assert(167!==n.kind||e.isObjectLiteralMethod(n)),FT(n),e.isFunctionExpression(n)&&DE(n,n.name),t&&4&t&&hp(n)){if(!e.getEffectiveReturnTypeNode(n)&&!e.hasContextSensitiveParameters(n)){var r=Qg(n);if(r&&Cm(el(r))){var i=Ur(n);if(i.contextFreeType)return i.contextFreeType;var a=Pv(n,t),o=Ss(void 0,void 0,void 0,e.emptyArray,a,void 0,0,0),s=ra(n.symbol,D,[o],e.emptyArray,e.emptyArray);return s.objectFlags|=524288,i.contextFreeType=s}}return yn}return WS(n)||211!==n.kind||QS(n),function(n,t){var r=Ur(n);if(!(1024&r.flags)){var i=Qg(n);if(!(1024&r.flags)){r.flags|=1024;var a=e.firstOrUndefined(Dc(Ao(Ui(n)),0));if(!a)return;if(hp(n))if(i){var o=Wg(n);t&&2&t&&function(n,t,r){for(var i=n.parameters.length-(B(n)?1:0),a=0;a<i;a++){var o=n.parameters[a].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&jm(r.inferences,jd(s),hv(t,a))}}var c=xv(t);if(c&&262144&c.flags){Cv(n,ip(t,r.nonFixingMapper));var l=Ev(t)-1;jm(r.inferences,bv(n,l),c)}}(a,i,o),Cv(a,o?ip(i,o.mapper):i)}else!function(e){e.thisParameter&&Iv(e.thisParameter);for(var n=0,t=e.parameters;n<t.length;n++)Iv(t[n])}(a);if(i&&!nl(n)&&!a.resolvedReturnType){var s=Pv(n,t);a.resolvedReturnType||(a.resolvedReturnType=s)}kb(n)}}}(n,t),Ao(Ui(n))}function Kv(e,n,t,r){if(void 0===r&&(r=!1),!Ap(n,cn)){var i=r&&zb(n);return Ar(e,!!i&&Ap(i,cn),t),!1}return!0}function Hv(n){if(!e.isCallExpression(n))return!1;if(!e.isBindableObjectDefinePropertyCall(n))return!1;var t=ub(n.arguments[2]);if(Ua(t,"value")){var r=xc(t,"writable"),i=r&&Ao(r);if(!i||i===We||i===ze)return!0;if(r&&r.valueDeclaration&&e.isPropertyAssignment(r.valueDeclaration)){var a=Ab(r.valueDeclaration.initializer);if(a===We||a===ze)return!0}return!1}return!xc(t,"set")}function Wv(n){return!!(8&e.getCheckFlags(n)||4&n.flags&&64&e.getDeclarationModifierFlagsFromSymbol(n)||3&n.flags&&2&Cy(n)||98304&n.flags&&!(65536&n.flags)||8&n.flags||e.some(n.declarations,Hv))}function zv(n,t,r){var i,a;if(0===r)return!1;if(Wv(t)){if(4&t.flags&&e.isAccessExpression(n)&&108===n.expression.kind){var o=e.getContainingFunction(n);if(!o||169!==o.kind&&!ev(o))return!0;if(t.valueDeclaration){var s=e.isBinaryExpression(t.valueDeclaration),c=o.parent===t.valueDeclaration.parent,l=o===t.valueDeclaration.parent,u=s&&(null===(i=t.parent)||void 0===i?void 0:i.valueDeclaration)===o.parent,d=s&&(null===(a=t.parent)||void 0===a?void 0:a.valueDeclaration)===o;return!(c||l||u||d)}}return!0}if(e.isAccessExpression(n)){var p=e.skipParentheses(n.expression);if(79===p.kind){var f=Ur(p).resolvedSymbol;if(2097152&f.flags){var m=ti(f);return!!m&&266===m.kind}}}return!1}function Jv(n,t,r){var i=e.skipOuterExpressions(n,7);return 79===i.kind||e.isAccessExpression(i)?!(32&i.flags&&(xr(n,r),1)):(xr(n,t),!1)}function qv(e){return Xv(e,2112)?Yv(e,3)||Xv(e,296)?cn:He:Ke}function Xv(e,n){if(e.flags&n)return!0;if(3145728&e.flags)for(var t=0,r=e.types;t<r.length;t++)if(Xv(r[t],n))return!0;return!1}function Yv(e,n,t){return!!(e.flags&n)||!(t&&114691&e.flags)&&(!!(296&n)&&Ap(e,Ke)||!!(2112&n)&&Ap(e,He)||!!(402653316&n)&&Ap(e,je)||!!(528&n)&&Ap(e,Xe)||!!(16384&n)&&Ap(e,Qe)||!!(131072&n)&&Ap(e,Ze)||!!(65536&n)&&Ap(e,Ue)||!!(32768&n)&&Ap(e,Me)||!!(4096&n)&&Ap(e,Ye)||!!(67108864&n)&&Ap(e,rn))}function Qv(n,t,r){return 1048576&n.flags?e.every(n.types,(function(e){return Qv(e,t,r)})):Yv(n,t,r)}function Zv(n){return!!(16&e.getObjectFlags(n))&&!!n.symbol&&$v(n.symbol)}function $v(e){return 0!=(128&e.flags)}function eb(n,t,r,i,a){void 0===a&&(a=!1);var o=n.properties,s=o[r];if(291===s.kind||292===s.kind){var c=s.name,l=Mu(c);if(ds(l)){var u=xc(t,gs(l));u&&(ah(u,s,a),Ny(s,!1,!0,t,u))}var d=za(s,ad(t,l,32,c));return tb(292===s.kind?s:s.initializer,d)}if(293===s.kind){if(!(r<o.length-1)){j<99&&BS(s,4);var p=[];if(i)for(var f=0,m=i;f<m.length;f++){var _=m[f];e.isSpreadAssignment(_)||p.push(_.name)}return d=Ka(t,p,t.symbol),KS(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),tb(s.expression,d)}xr(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else xr(s,e.Diagnostics.Property_assignment_expected)}function nb(n,t,r,i,a){var o=n.elements,s=o[r];if(225!==s.kind){if(223!==s.kind){var c=wd(r);if(Lf(t)){var l=sd(t,c,32|(Zg(s)?16:0),Rh(s,c))||Re;return tb(s,za(s,Zg(s)?__(l,524288):l),a)}return tb(s,i,a)}if(r<o.length-1)xr(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var u=s.expression;if(219!==u.kind||63!==u.operatorToken.kind)return KS(n.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),tb(u,P_(t,Uf)?G_(t,(function(e){return fu(e,r)})):ru(i),a);xr(u.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function tb(n,t,r,i){var a;if(292===n.kind){var o=n;o.objectAssignmentInitializer&&(!z||32768&Jf(Ab(o.objectAssignmentInitializer))||(t=__(t,524288)),function(e,n,t,r,i){var a=n.kind;if(63===a&&(203===e.kind||202===e.kind))return tb(e,Ab(t,r),r,108===t.kind);ab(e,n,t,55===a||56===a||60===a?wE(e,r):Ab(e,r),Ab(t,r),void 0)}(o.name,o.equalsToken,o.objectAssignmentInitializer,r)),a=n.name}else a=n;return 219===a.kind&&63===a.operatorToken.kind&&(te(a,r),a=a.left),203===a.kind?function(e,n,t){var r=e.properties;if(z&&0===r.length)return Gy(n,e);for(var i=0;i<r.length;i++)eb(e,n,i,r,t);return n}(a,t,i):202===a.kind?function(e,n,t){var r=e.elements;j<2&&V.downlevelIteration&&BS(e,512);for(var i=GE(193,n,Me,e)||Re,a=V.noUncheckedIndexedAccess?void 0:i,o=0;o<r.length;o++){var s=i;223===e.elements[o].kind&&(s=a=null!=a?a:GE(65,n,Me,e)||Re),nb(e,n,o,s,t)}return n}(a,t,r):function(n,t,r){var i=Ab(n,r);return Jv(n,293===n.parent.kind?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,293===n.parent.kind?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)&&Rp(t,i,n,n),e.isPrivateIdentifierPropertyAccessExpression(n)&&BS(n.parent,1048576),t}(a,t,r)}function rb(n){switch((n=e.skipParentheses(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 rb(n.whenTrue)&&rb(n.whenFalse);case 219:return!e.isAssignmentOperator(n.operatorToken.kind)&&rb(n.left)&&rb(n.right);case 217:case 218:switch(n.operator){case 53:case 39:case 40:case 54:return!0}return!1;default:return!1}}function ib(e,n){return 0!=(98304&n.flags)||Ip(e,n)}function ab(n,r,i,a,o,s){var c,l,u=r.kind;switch(u){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===$e||o===$e)return $e;a=Gy(a,n),o=Gy(o,i);var d=void 0;if(528&a.flags&&528&o.flags&&void 0!==(d=function(e){switch(e){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}(r.kind)))return xr(s||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(d)),Ke;var p,f=Kv(n,a,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),m=Kv(i,o,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(Yv(a,3)&&Yv(o,3)||!Xv(a,2112)&&!Xv(o,2112))p=Ke;else if(x(a,o)){switch(u){case 49:case 72:C();break;case 42:case 67:j<3&&xr(s,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}p=He}else C(x),p=Re;return f&&m&&D(p),p;case 39:case 64:if(a===$e||o===$e)return $e;Yv(a,402653316)||Yv(o,402653316)||(a=Gy(a,n),o=Gy(o,i));var _=void 0;if(Yv(a,296,!0)&&Yv(o,296,!0)?_=Ke:Yv(a,2112,!0)&&Yv(o,2112,!0)?_=He:Yv(a,402653316,!0)||Yv(o,402653316,!0)?_=je:(Va(a)||Va(o))&&(_=a===Re||o===Re?Re:Ie),_&&!L(u))return _;if(!_){var g=402655727;return C((function(e,n){return Yv(e,g)&&Yv(n,g)})),Ie}return 64===u&&D(_),_;case 29:case 31:case 32:case 33:return L(u)&&(a=wf(Gy(a,n)),o=wf(Gy(o,i)),A((function(e,n){return Ip(e,n)||Ip(n,e)||Ap(e,cn)&&Ap(n,cn)}))),Xe;case 34:case 35:case 36:case 37:return A((function(e,n){return ib(e,n)||ib(n,e)})),Xe;case 102:return function(n,t,r,i){return r===$e||i===$e?$e:(!Va(r)&&Qv(r,131068)&&xr(n,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Va(i)||iS(i)||Dp(i,Cn)||xr(t,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Xe)}(n,i,a,o);case 101:return function(n,t,r,i){if(r===$e||i===$e)return $e;r=Gy(r,n),i=Gy(i,t),Qv(r,402665900)||Yv(r,407109632)||xr(n,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol);var a=tc(i);return(!Qv(i,126091264)||a&&(Yv(i,3145728)&&!Qv(a,126091264)||!Xv(a,126615552)))&&xr(t,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),Xe}(n,i,a,o);case 55:case 76:var y=4194304&m_(a)?xu([(l=z?a:wf(o),G_(l,Xf)),o]):a;return 76===u&&D(o),y;case 56:case 75:var h=8388608&m_(a)?xu([qf(a),o],2):a;return 75===u&&D(o),h;case 60:case 77:var v=262144&m_(a)?xu([Zf(a),o],2):a;return 77===u&&D(o),v;case 63:var b=e.isBinaryExpression(n.parent)?e.getAssignmentDeclarationKind(n.parent):0;return function(n,t){if(2===n)for(var r=0,i=Zs(t);r<i.length;r++){var a=i[r],o=Ao(a);if(o.symbol&&32&o.symbol.flags){var s=a.escapedName,c=Wr(a.valueDeclaration,s,788968,void 0,s,!1);(null==c?void 0:c.declarations)&&c.declarations.some(e.isJSDocTypedefTag)&&(wr(c,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),a),wr(a,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),c))}}}(b,o),function(t){var r;switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var a=Ui(n),o=e.getAssignedExpandoInitializer(i);return!!o&&e.isObjectLiteralExpression(o)&&!!(null===(r=null==a?void 0:a.exports)||void 0===r?void 0:r.size);default:return!1}}(b)?(524288&o.flags&&(2===b||6===b||Hp(o)||f_(o)||1&e.getObjectFlags(o))||D(o),a):(D(o),cm(o));case 27:if(!V.allowUnreachableCode&&rb(n)&&(79!==(c=i).kind||"eval"!==c.escapedText)){var E=e.getSourceFileOfNode(n),T=E.text,S=e.skipTrivia(T,n.pos);E.parseDiagnostics.some((function(n){return n.code===e.Diagnostics.JSX_expressions_must_have_one_parent_element.code&&e.textSpanContainsPosition(n,S)}))||xr(n,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return o;default:return e.Debug.fail()}function x(e,n){return Yv(e,2112)&&Yv(n,2112)}function L(t){var r=Xv(a,12288)?n:Xv(o,12288)?i:void 0;return!r||(xr(r,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t)),!1)}function D(r){t&&e.isAssignmentOperator(u)&&(!Jv(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)&&"exports"===e.unescapeLeadingUnderscores(n.escapedText)||Rp(r,a,n,i))}function A(e){return!e(a,o)&&(C(e),!0)}function C(n){var t,i=!1,c=s||r;if(n){var l=Xb(a),u=Xb(o);i=!(l===a&&u===o)&&!(!l||!u)&&n(l,u)}var d=a,p=o;!i&&n&&(t=function(e,n,t){var r=e,i=n,a=wf(e),o=wf(n);return t(a,o)||(r=a,i=o),[r,i]}(a,o,n),d=t[0],p=t[1]);var f=Ta(d,p),m=f[0],_=f[1];(function(n,t,i,a){var o;switch(r.kind){case 36:case 34:o="false";break;case 37:case 35:o="true"}if(o)return Ar(n,t,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,o,i,a)})(c,i,m,_)||Ar(c,i,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),m,_)}}function ob(n){var t=n.parent;return e.isParenthesizedExpression(t)&&ob(t)||e.isElementAccessExpression(t)&&t.argumentExpression===n}function sb(n){for(var t=[n.head.text],r=[],i=0,a=n.templateSpans;i<a.length;i++){var o=a[i],s=Ab(o.expression);Xv(s,12288)&&xr(o.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(o.literal.text),r.push(Ap(s,ln)?s:je)}return mb(n)||ob(n)||O_(Hg(n)||we,cb)?Uu(t,r):je}function cb(e){return!!(134217856&e.flags||58982400&e.flags&&Xv(cc(e)||we,402653316))}function lb(n,t,r,i){var a=function(n){return 284!==n.kind||e.isJsxSelfClosingElement(n.parent)?n:n.parent.parent}(n),o=a.contextualType,s=a.inferenceContext;try{a.contextualType=t,a.inferenceContext=r;var c=Ab(n,1|i|(r?2:0));return Xv(c,2944)&&fb(c,jg(t,n))?Rd(c):c}finally{a.contextualType=o,a.inferenceContext=s}}function ub(e,n){var t=Ur(e);if(!t.resolvedType){if(n&&0!==n)return Ab(e,n);var r=wt,i=mt;wt=Mt,mt=void 0,t.resolvedType=Ab(e,n),mt=i,wt=r}return t.resolvedType}function db(n,t){var r=e.getEffectiveInitializer(n),i=Lb(r)||(t?lb(r,t,void 0,0):ub(r));return e.isParameter(n)&&200===n.name.kind&&Uf(i)&&!i.target.hasRestElement&&Dl(i)<n.name.elements.length?function(n,t){for(var r=t.elements,i=Ll(n).slice(),a=n.target.elementFlags.slice(),o=Dl(n);o<r.length;o++){var s=r[o];(o<r.length-1||201!==s.kind||!s.dotDotDotToken)&&(i.push(!e.isOmittedExpression(s)&&Zg(s)?po(s,!1,!1):Ie),a.push(2),e.isOmittedExpression(s)||Zg(s)||ym(s,Ie))}return lu(i,a,n.target.readonly)}(i,n.name):i}function pb(n,t){var r=2&e.getCombinedNodeFlags(n)||e.isDeclarationReadonly(n)?t:Mf(t);if(e.isInJSFile(n)){if(Af(r))return ym(n,Ie),Ie;if(Cf(r))return ym(n,Gn),Gn}return r}function fb(n,t){if(t){if(3145728&t.flags){var r=t.types;return e.some(r,(function(e){return fb(n,e)}))}if(58982400&t.flags){var i=cc(t)||we;return Xv(i,4)&&Xv(n,128)||Xv(i,8)&&Xv(n,256)||Xv(i,64)&&Xv(n,2048)||Xv(i,4096)&&Xv(n,8192)||fb(n,i)}return!!(406847616&t.flags&&Xv(n,128)||256&t.flags&&Xv(n,256)||2048&t.flags&&Xv(n,2048)||512&t.flags&&Xv(n,512)||8192&t.flags&&Xv(n,8192))}return!1}function mb(n){var t=n.parent;return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||(e.isParenthesizedExpression(t)||e.isArrayLiteralExpression(t)||e.isSpreadElement(t))&&mb(t)||(e.isPropertyAssignment(t)||e.isShorthandPropertyAssignment(t)||e.isTemplateSpan(t))&&mb(t.parent)}function _b(n,t,r,i){var a=Ab(n,t,i);return mb(n)?Rd(a):function(n){return 209===(n=e.skipParentheses(n)).kind||227===n.kind}(n)?a:Gf(a,jg(2===arguments.length?Hg(n):r,n))}function gb(e,n){return 160===e.name.kind&&ry(e.name),_b(e.initializer,n)}function yb(e,n){return rx(e),160===e.name.kind&&ry(e.name),hb(e,jv(e,n),n)}function hb(n,t,r){if(r&&10&r){var i=Th(t,0,!0),a=Th(t,1,!0),o=i||a;if(o&&o.typeParameters){var s=Vg(n,2);if(s){var c=Th(Zf(s),i?0:1,!1);if(c&&!c.typeParameters){if(8&r)return vb(n,r),yn;var l=Wg(n),u=l.signature&&el(l.signature),d=u&&Eh(u);if(d&&!d.typeParameters&&!e.every(l.inferences,bb)){var p=function(n,t){for(var r,i,a=[],o=0,s=t;o<s.length;o++){var c=(f=s[o]).symbol.escapedName;if(Eb(n.inferredTypeParameters,c)||Eb(a,c)){var l=$i(Nr(262144,Tb(e.concatenate(n.inferredTypeParameters,a),c)));l.target=f,r=e.append(r,f),i=e.append(i,l),a.push(l)}else a.push(f)}if(i)for(var u=qd(r,i),d=0,p=i;d<p.length;d++){var f;(f=p[d]).mapper=u}return a}(l,o.typeParameters),f=al(o,p),m=e.map(l.inferences,(function(e){return Lm(e.typeParameter)}));if(vm(f,c,(function(e,n){jm(m,e,n,0,!0)})),e.some(m,bb)&&(bm(f,c,(function(e,n){jm(m,e,n)})),!function(e,n){for(var t=0;t<e.length;t++)if(bb(e[t])&&bb(n[t]))return!0;return!1}(l.inferences,m)))return function(e,n){for(var t=0;t<e.length;t++)!bb(e[t])&&bb(n[t])&&(e[t]=n[t])}(l.inferences,m),l.inferredTypeParameters=e.concatenate(l.inferredTypeParameters,p),ll(f)}return ll(Sh(o,c,l))}}}}return t}function vb(e,n){2&n&&(Wg(e).flags|=4)}function bb(e){return!(!e.candidates&&!e.contraCandidates)}function Eb(n,t){return e.some(n,(function(e){return e.symbol.escapedName===t}))}function Tb(e,n){for(var t=n.length;t>1&&n.charCodeAt(t-1)>=48&&n.charCodeAt(t-1)<=57;)t--;for(var r=n.slice(0,t),i=1;;i++){var a=r+i;if(!Eb(e,a))return a}}function Sb(e){var n=bh(e);if(n&&!n.typeParameters)return el(n)}function xb(n){var t=Lb(n);if(t)return t;if(67108864&n.flags&&mt){var r=mt[O(n)];if(r)return r}var i=Bt,a=Ab(n);return Bt!==i&&((mt||(mt=[]))[O(n)]=a,e.setNodeFlags(n,67108864|n.flags)),a}function Lb(n){var t=e.skipParentheses(n);if(!e.isCallExpression(t)||106===t.expression.kind||e.isRequireCall(t,!0)||av(t)){if(e.isAssertionExpression(t)&&!e.isConstTypeReference(t.type))return jd(t.type);if(8===n.kind||10===n.kind||110===n.kind||95===n.kind)return Ab(n)}else{var r=e.isCallChain(t)?function(e){var n=Ab(e.expression),t=tm(n,e.expression),r=Sb(n);return r&&nm(r,e,t!==n)}(t):Sb(Ry(t.expression));if(r)return r}}function Db(e){var n=Ur(e);if(n.contextFreeType)return n.contextFreeType;var t=e.contextualType;e.contextualType=Ie;try{return n.contextFreeType=Ab(e,4)}finally{e.contextualType=t}}function Ab(n,i,a){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:n.kind,pos:n.pos,end:n.end});var o=d;d=n,x=0;var s=function(n,i,a){var o=n.kind;if(r)switch(o){case 224:case 211:case 212:r.throwIfCancellationRequested()}switch(o){case 79:return function(n,t){var r=Qm(n);if(r===Ae)return Re;if(r===le){if(Xy(n))return xr(n,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),Re;var i=e.getContainingFunction(n);return j<2&&(212===i.kind?xr(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(i,256)&&xr(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)),Ur(i).flags|=8192,Ao(r)}n.parent&&e.isPropertyAccessExpression(n.parent)&&n.parent.expression===n||mg(r,n);var a=zi(r),o=2097152&a.flags?_i(a):a;o.declarations&&134217728&Cy(o)&&Wu(n,o)&&Ir(n,o.declarations,n.escapedText);var s=a.valueDeclaration;if(s&&32&a.flags)if(255===s.kind&&e.nodeIsDecorated(s))for(i=e.getContainingClass(n);void 0!==i;){if(i===s&&i.name!==n){Ur(s).flags|=16777216,Ur(n).flags|=33554432;break}i=e.getContainingClass(i)}else if(224===s.kind)for(i=e.getThisContainer(n,!1);300!==i.kind;){if(i.parent===s){(e.isPropertyDeclaration(i)&&e.isStatic(i)||e.isClassStaticBlockDeclaration(i))&&(Ur(s).flags|=16777216,Ur(n).flags|=33554432);break}i=e.getThisContainer(i,!1)}!function(n,t){if(!(j>=2||0==(34&t.flags)||!t.valueDeclaration||e.isSourceFile(t.valueDeclaration)||290===t.valueDeclaration.parent.kind)){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration),i=function(n,t){return!!e.findAncestor(n,(function(n){return n===t?"quit":e.isFunctionLike(n)||n.parent&&e.isPropertyDeclaration(n.parent)&&!e.hasStaticModifier(n.parent)&&n.parent.initializer===n}))}(n,r),a=_g(r);if(a){if(i){var o=!0;if(e.isForStatement(r)&&(u=e.getAncestor(t.valueDeclaration,253))&&u.parent===r){var s=function(n,t){return e.findAncestor(n,(function(e){return e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement}))}(n.parent,r);if(s){var c=Ur(s);c.flags|=131072;var l=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(l,t),s===r.initializer&&(o=!1)}}o&&(Ur(a).flags|=65536)}var u;e.isForStatement(r)&&(u=e.getAncestor(t.valueDeclaration,253))&&u.parent===r&&function(n,t){for(var r=n;210===r.parent.kind;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(217===r.parent.kind||218===r.parent.kind){var a=r.parent;i=45===a.operator||46===a.operator}return!!i&&!!e.findAncestor(r,(function(e){return e===t?"quit":e===t.statement}))}(n,r)&&(Ur(t.valueDeclaration).flags|=4194304),Ur(t.valueDeclaration).flags|=524288}i&&(Ur(t.valueDeclaration).flags|=262144)}}(n,r);var c=Ao(a),l=e.getAssignmentTargetKind(n);if(l){if(!(3&a.flags||e.isInJSFile(n)&&512&a.flags))return xr(n,384&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,va(r)),Re;if(Wv(a))return 3&a.flags?xr(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,va(r)):xr(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,va(r)),Re}var u=2097152&a.flags;if(3&a.flags){if(1===l)return c}else{if(!u)return c;s=ti(r)}if(!s)return c;c=pg(c,n,t);for(var d=162===e.getRootDeclaration(s).kind,p=sg(s),f=sg(n),m=f!==p,_=n.parent&&n.parent.parent&&e.isSpreadAssignment(n.parent)&&E_(n.parent.parent),g=134217728&r.flags;f!==p&&(211===f.kind||212===f.kind||e.isObjectLiteralOrClassExpressionMethod(f))&&(ug(a)&&c!==Bn||d&&!cg(a));)f=sg(f);var y=d||u||m||_||g||e.isBindingElement(s)||c!==Ne&&c!==Bn&&(!z||0!=(16387&c.flags)||Zm(n)||273===n.parent.kind)||228===n.parent.kind||252===s.kind&&s.exclamationToken||8388608&s.flags,h=y?d?function(e,n){if(wa(n.symbol,2)){var t=z&&162===n.kind&&n.initializer&&32768&Jf(e)&&!(32768&Jf(Ab(n.initializer)));return Ga(),t?__(e,524288):e}return Do(n.symbol),e}(c,s):c:c===Ne||c===Bn?Me:Qf(c),v=og(n,c,h,f);if(Y_(n)||c!==Ne&&c!==Bn){if(!y&&!(32768&Jf(c))&&32768&Jf(v))return xr(n,e.Diagnostics.Variable_0_is_used_before_being_assigned,va(r)),c}else if(v===Ne||v===Bn)return Y&&(xr(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,va(r),Ea(v)),xr(n,e.Diagnostics.Variable_0_implicitly_has_an_1_type,va(r),Ea(v))),AE(v);return l?wf(v):v}(n,i);case 108:return bg(n);case 106:return Sg(n);case 104:return Ve;case 14:case 10:return kd(Pd(n.text));case 8:return gx(n),kd(wd(+n.text));case 9:return function(n){if(!(e.isLiteralTypeNode(n.parent)||e.isPrefixUnaryExpression(n.parent)&&e.isLiteralTypeNode(n.parent.parent))&&j<7&&fx(n,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020));}(n),kd(Md({negative:!1,base10Value:e.parsePseudoBigInt(n.text)}));case 110:return Je;case 95:return We;case 221:return sb(n);case 13:return Mn;case 202:return $g(n,i,a);case 203:return function(n,t){var r=e.isAssignmentTarget(n);!function(n,t){for(var r=new e.Map,i=0,a=n.properties;i<a.length;i++){var o=a[i];if(293!==o.kind){var s=o.name;if(160===s.kind&&YS(s),292===o.kind&&!t&&o.objectAssignmentInitializer)return fx(o.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(80===s.kind&&fx(s,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),o.modifiers)for(var c=0,l=o.modifiers;c<l.length;c++){var u=l[c];130===u.kind&&167===o.kind||fx(u,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(u))}var d=void 0;switch(o.kind){case 292:$S(o.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 291:ZS(o.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===s.kind&&gx(s),d=4;break;case 167:d=8;break;case 170:d=1;break;case 171:d=2;break;default:throw e.Debug.assertNever(o,"Unexpected syntax kind:"+o.kind)}if(!t){var p=e.getPropertyNameForPropertyNameNode(s);if(void 0===p)continue;var f=r.get(p);if(f)if(12&d&&12&f)fx(s,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(s));else{if(!(3&d&&3&f))return fx(s,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===f||d===f)return fx(s,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);r.set(p,d|f)}else r.set(p,d)}}else if(t){var m=e.skipParentheses(o.expression);if(e.isArrayLiteralExpression(m)||e.isObjectLiteralExpression(m))return fx(o.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}}(n,r);for(var i=z?e.createSymbolTable():void 0,a=e.createSymbolTable(),o=[],s=pn,c=Vg(n),l=c&&c.pattern&&(199===c.pattern.kind||203===c.pattern.kind),u=mb(n),d=u?8:0,p=e.isInJSFile(n)&&!e.isInJsonFile(n),f=e.getJSDocEnumTag(n),m=!c&&p&&!f,_=ee,g=!1,y=!1,h=!1,v=!1,b=0,E=n.properties;b<E.length;b++){var T=E[b];T.name&&e.isComputedPropertyName(T.name)&&ry(T.name)}for(var S=0,x=0,L=n.properties;x<L.length;x++){var D=L[x],A=Ui(D),C=D.name&&160===D.name.kind?ry(D.name):void 0;if(291===D.kind||292===D.kind||e.isObjectLiteralMethod(D)){var I=291===D.kind?gb(D,t):292===D.kind?_b(!r&&D.objectAssignmentInitializer?D.objectAssignmentInitializer:D.name,t):yb(D,t);if(p){var N=Qa(D);N?(kp(I,N,D),I=N):f&&f.typeExpression&&kp(I,jd(f.typeExpression),D)}_|=917504&e.getObjectFlags(I);var k=C&&ds(C)?C:void 0,R=k?Nr(4|A.flags,gs(k),4096|d):Nr(4|A.flags,A.escapedName,d);if(k&&(R.nameType=k),r)(291===D.kind&&Zg(D.initializer)||292===D.kind&&D.objectAssignmentInitializer)&&(R.flags|=16777216);else if(l&&!(512&e.getObjectFlags(c))){var O=xc(c,A.escapedName);O?R.flags|=16777216&O.flags:V.suppressExcessPropertyErrors||Rc(c,je)||xr(D.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,va(A),Ea(c))}R.declarations=A.declarations,R.parent=A.parent,A.valueDeclaration&&(R.valueDeclaration=A.valueDeclaration),R.type=I,R.target=A,A=R,null==i||i.set(R.escapedName,R)}else{if(293===D.kind){if(j<2&&BS(D,2),o.length>0&&(s=Ad(s,F(),n.symbol,_,u),o=[],a=e.createSymbolTable(),y=!1,h=!1,v=!1),sy(I=vc(Ab(D.expression)))){var P=Dd(I,u);if(i&&py(P,i,D),S=o.length,s===Re)continue;s=Ad(s,P,n.symbol,_,u)}else xr(D,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=Re;continue}e.Debug.assert(170===D.kind||171===D.kind),FT(D)}!C||8576&C.flags?a.set(A.escapedName,A):Ap(C,on)&&(Ap(C,Ke)?h=!0:Ap(C,Ye)?v=!0:y=!0,r&&(g=!0)),o.push(A)}if(l&&293!==n.parent.kind)for(var w=0,M=nc(c);w<M.length;w++)R=M[w],a.get(R.escapedName)||xc(s,R.escapedName)||(16777216&R.flags||xr(R.valueDeclaration||R.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.set(R.escapedName,R),o.push(R));return s===Re?Re:s!==pn?(o.length>0&&(s=Ad(s,F(),n.symbol,_,u),o=[],a=e.createSymbolTable(),y=!1,h=!1),G_(s,(function(e){return e===pn?F():e}))):F();function F(){var t=[];y&&t.push(ay(n,S,o,je)),h&&t.push(ay(n,S,o,Ke)),v&&t.push(ay(n,S,o,Ye));var i=ra(n.symbol,a,e.emptyArray,e.emptyArray,t);return i.objectFlags|=262272|_,m&&(i.objectFlags|=8192),g&&(i.objectFlags|=512),r&&(i.pattern=n),i}}(n,i);case 204:return Uy(n,i);case 159:return Vy(n,i);case 205:return function(e,n){return 32&e.flags?function(e,n){var t=Ab(e.expression),r=tm(t,e.expression);return nm(uh(e,Gy(r,e.expression),n),e,r!==t)}(e,n):uh(e,Ry(e.expression),n)}(n,i);case 206:if(100===n.expression.kind)return function(n){if(JS(n.arguments)||function(n){if(K===e.ModuleKind.ES2015)return fx(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 fx(n,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=n.arguments;1!==t.length?fx(n,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(KS(t),e.isSpreadElement(t[0])&&fx(t[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element))}(n),0===n.arguments.length)return Ov(n,Ie);for(var t=n.arguments[0],r=ub(t),i=1;i<n.arguments.length;++i)ub(n.arguments[i]);(32768&r.flags||65536&r.flags||!Ap(r,je))&&xr(t,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Ea(r));var a=Li(n,t);if(a){var o=Ni(a,t,!0,!1);if(o)return Ov(n,ov(Ao(o),o,a))}return Ov(n,Ie)}(n);case 207:return function(n,t){var r;zS(n,n.typeArguments)||JS(n.arguments);var i=$h(n,void 0,t);if(i===Tt)return en;if(rv(i,n),106===n.expression.kind)return Qe;if(207===n.kind){var a=i.declaration;if(a&&169!==a.kind&&173!==a.kind&&178!==a.kind&&!e.isJSDocConstructSignature(a)&&!ev(a))return Y&&xr(n,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Ie}if(e.isInJSFile(n)&&sv(n))return Yc(n.arguments[0]);var o=el(i);if(12288&o.flags&&av(n))return Gd(e.walkUpParenthesizedExpressions(n.parent));if(206===n.kind&&!n.questionDotToken&&236===n.parent.kind&&16384&o.flags&&Zc(i))if(e.isDottedName(n.expression)){if(!$_(n)){var s=xr(n.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);Z_(n.expression,s)}}else xr(n.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(e.isInJSFile(n)){var c=tv(n,!1);if(null===(r=null==c?void 0:c.exports)||void 0===r?void 0:r.size){var l=ra(c,c.exports,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=8192,ku([o,l])}}return o}(n,i);case 208:return function(n){(function(n){return!!(n.questionDotToken||32&n.flags)&&fx(n.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain)})(n)||zS(n,n.typeArguments),j<2&&BS(n,262144);var t=$h(n);return rv(t,n),el(t)}(n);case 210:return function(n,t){var r=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return r?lv(r.typeExpression.type,r.typeExpression.type,n.expression,t):Ab(n.expression,t)}(n,i);case 224:return function(e){return gT(e),FT(e),Ao(Ui(e))}(n);case 211:case 212:return jv(n,i);case 214:return function(e){return Ab(e.expression),fr}(n);case 209:case 227:return function(e){return lv(e,e.type,e.expression)}(n);case 228:return function(e){return 32&e.flags?function(e){var n=Ab(e.expression),t=tm(n,e.expression);return nm(Zf(t),e,t!==n)}(e):Zf(Ab(e.expression))}(n);case 229:return function(n){return function(n){var t=n.name.escapedText;switch(n.keywordToken){case 103:if("target"!==t)return fx(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:"meta"!==t&&fx(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")}}(n),103===n.keywordToken?dv(n):100===n.keywordToken?function(n){K!==e.ModuleKind.ES2020&&K!==e.ModuleKind.ESNext&&K!==e.ModuleKind.System&&xr(n,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system);var t=e.getSourceFileOfNode(n);return e.Debug.assert(!!(2097152&t.flags),"Containing file is missing import meta node flag."),"meta"===n.name.escapedText?ql():Re}(n):e.Debug.assertNever(n.keywordToken)}(n);case 213:return function(n){Ab(n.expression);var t=e.skipParentheses(n.expression);if(!e.isAccessExpression(t))return xr(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Xe;e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)&&xr(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var r=zi(Ur(t).resolvedSymbol);return r&&(Wv(r)&&xr(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),function(n,t){var r=Ao(t);!z||131075&r.flags||(ne?16777216&t.flags:32768&Jf(r))||xr(n,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}(t,r)),Xe}(n);case 215:return function(e){return Ab(e.expression),Fe}(n);case 216:return function(n){if(t){var r=e.getContainingFunctionOrClassStaticBlock(n);if(r&&e.isClassStaticBlockDeclaration(r))xr(n,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(32768&n.flags)){var i;if(e.isInTopLevelContext(n)){if(!ux(i=e.getSourceFileOfNode(n))){var a=void 0;if(!e.isEffectiveExternalModule(i,V)){a||(a=e.getSpanOfTokenAtPosition(i,n.pos));var o=e.createFileDiagnostic(i,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);ur.add(o)}(K!==e.ModuleKind.ESNext&&K!==e.ModuleKind.System||j<4)&&(a=e.getSpanOfTokenAtPosition(i,n.pos),o=e.createFileDiagnostic(i,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),ur.add(o))}}else if(!ux(i=e.getSourceFileOfNode(n))){if(a=e.getSpanOfTokenAtPosition(i,n.pos),o=e.createFileDiagnostic(i,a.start,a.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),r&&169!==r.kind&&0==(2&e.getFunctionFlags(r))){var s=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(o,s)}ur.add(o)}}Ig(n)&&xr(n,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var c=Ab(n.expression),l=qb(c,n,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l!==c||l===Re||3&c.flags||Lr(!1,e.createDiagnosticForNode(n,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),l}(n);case 217:return function(n){var t=Ab(n.operand);if(t===$e)return $e;switch(n.operand.kind){case 8:switch(n.operator){case 40:return kd(wd(-n.operand.text));case 39:return kd(wd(+n.operand.text))}break;case 9:if(40===n.operator)return kd(Md({negative:!0,base10Value:e.parsePseudoBigInt(n.operand.text)}))}switch(n.operator){case 39:case 40:case 54:return Gy(t,n.operand),Xv(t,12288)&&xr(n.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(n.operator)),39===n.operator?(Xv(t,2112)&&xr(n.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(n.operator),Ea(wf(t))),Ke):qv(t);case 53:wE(n.operand);var r=12582912&m_(t);return 4194304===r?We:8388608===r?Je:Xe;case 45:case 46:return Kv(n.operand,Gy(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Jv(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),qv(t)}return Re}(n);case 218:return function(n){var t=Ab(n.operand);return t===$e?$e:(Kv(n.operand,Gy(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Jv(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),qv(t))}(n);case 219:return te(n,i);case 220:return function(e,n){var t=wE(e.condition);return OE(e.condition,t,e.whenTrue),xu([Ab(e.whenTrue,n),Ab(e.whenFalse,n)],2)}(n,i);case 223:return function(e,n){return j<2&&BS(e,V.downlevelIteration?1536:1024),GE(33,Ab(e.expression,n),Me,e.expression)}(n,i);case 225:return Fe;case 222:return function(n){t&&(8192&n.flags||dx(n,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Ig(n)&&xr(n,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var r=e.getContainingFunction(n);if(!r)return Ie;var i=e.getFunctionFlags(r);if(!(1&i))return Ie;var a=0!=(2&i);n.asteriskToken&&(a&&j<99&&BS(n,26624),!a&&j<2&&V.downlevelIteration&&BS(n,256));var o=nl(r),s=o&&sT(o,a),c=s&&s.yieldType||Ie,l=s&&s.nextType||Ie,u=a?Xb(l)||Ie:l,d=n.expression?Ab(n.expression):Fe,p=Mv(n,d,u,a);if(o&&p&&Rp(p,c,n.expression||n,n.expression),n.asteriskToken)return UE(a?19:17,1,d,n.expression)||Ie;if(o)return oT(2,o,a)||Ie;var f=Ng(2,r);if(!f&&(f=Ie,t&&Y&&!e.expressionResultIsUnused(n))){var m=Hg(n);m&&!Va(m)||xr(n,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return f}(n);case 230:return function(e){return e.isSpread?ad(e.type,Ke):e.type}(n);case 286:return function(n,t){if(function(n){n.expression&&e.isCommaSequence(n.expression)&&fx(n.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(n),n.expression){var r=Ab(n.expression,t);return n.dotDotDotToken&&r!==Ie&&!Ef(r)&&xr(n,e.Diagnostics.JSX_spread_child_must_be_an_array_type),r}return Re}(n,i);case 276:case 277:return function(e,n){return FT(e),Sy(e)||Ie}(n);case 280:return function(n){Ly(n.openingFragment);var t=e.getSourceFileOfNode(n);return!e.getJSXTransformEnabled(V)||!V.jsxFactory&&!t.pragmas.has("jsx")||V.jsxFragmentFactory||t.pragmas.has("jsxfrag")||xr(n,V.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),dy(n),Sy(n)||Ie}(n);case 284:return function(n,t){return function(n,t){for(var r,i=n.attributes,a=z?e.createSymbolTable():void 0,o=e.createSymbolTable(),s=fn,c=!1,l=!1,u=2048,d=hy(gy(n)),p=0,f=i.properties;p<f.length;p++){var m=f[p],_=m.symbol;if(e.isJsxAttribute(m)){var g=uy(m,t);u|=917504&e.getObjectFlags(g);var y=Nr(4|_.flags,_.escapedName);y.declarations=_.declarations,y.parent=_.parent,_.valueDeclaration&&(y.valueDeclaration=_.valueDeclaration),y.type=g,y.target=_,o.set(y.escapedName,y),null==a||a.set(y.escapedName,y),m.name.escapedText===d&&(l=!0)}else e.Debug.assert(285===m.kind),o.size>0&&(s=Ad(s,x(),i.symbol,u,!1),o=e.createSymbolTable()),Va(g=vc(ub(m.expression,t)))&&(c=!0),sy(g)?(s=Ad(s,g,i.symbol,u,!1),a&&py(g,a,m)):r=r?ku([r,g]):g}c||o.size>0&&(s=Ad(s,x(),i.symbol,u,!1));var h=276===n.parent.kind?n.parent:void 0;if(h&&h.openingElement===n&&h.children.length>0){var v=dy(h,t);if(!c&&d&&""!==d){l&&xr(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(d));var b=Vg(n.attributes),E=b&&Mg(b,d),T=Nr(4,d);T.type=1===v.length?v[0]:E&&O_(E,If)?lu(v):ru(xu(v)),T.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(d),void 0,void 0),e.setParent(T.valueDeclaration,i),T.valueDeclaration.symbol=T;var S=e.createSymbolTable();S.set(d,T),s=Ad(s,ra(i.symbol,S,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,u,!1)}}return c?Ie:r&&s!==fn?ku([r,s]):r||(s===fn?x():s);function x(){u|=ee;var n=ra(i.symbol,o,e.emptyArray,e.emptyArray,e.emptyArray);return n.objectFlags|=262272|u,n}}(n.parent,t)}(n,i);case 278:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Re}(n,i,a),c=hb(n,s,i);return Zv(c)&&function(n,t){204===n.parent.kind&&n.parent.expression===n||205===n.parent.kind&&n.parent.expression===n||(79===n.kind||159===n.kind)&&qT(n)||179===n.parent.kind&&n.parent.exprName===n||273===n.parent.kind||xr(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),V.isolatedModules&&(e.Debug.assert(!!(128&t.symbol.flags)),8388608&t.symbol.valueDeclaration.flags&&xr(n,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))}(n,c),d=o,null===e.tracing||void 0===e.tracing||e.tracing.pop(),c}function Cb(n){n.expression&&dx(n.expression,e.Diagnostics.Type_expected),wT(n.constraint),wT(n.default);var r=es(Ui(n));cc(r),function(e){return pc(e)!==vn}(r)||xr(n.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Ea(r));var i=rc(r),a=fc(r);i&&a&&kp(a,Es(fp(i,Yd(r,a)),a),n.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),t&&fT(n.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function Ib(n){VS(n),CE(n);var t=e.getContainingFunction(n);e.hasSyntacticModifier(n,16476)&&(169===t.kind&&e.nodeIsPresent(t.body)||xr(n,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),169===t.kind&&e.isIdentifier(n.name)&&"constructor"===n.name.escapedText&&xr(n.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),n.questionToken&&e.isBindingPattern(n.name)&&t.body&&xr(n,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&e.isIdentifier(n.name)&&("this"===n.name.escapedText||"new"===n.name.escapedText)&&(0!==t.parameters.indexOf(n)&&xr(n,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),169!==t.kind&&173!==t.kind&&178!==t.kind||xr(n,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),212===t.kind&&xr(n,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),170!==t.kind&&171!==t.kind||xr(n,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!n.dotDotDotToken||e.isBindingPattern(n.name)||Ap(vc(Ao(n.symbol)),Un)||xr(n,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Nb(n,t,r){for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){var s=o.name;if(79===s.kind&&s.escapedText===r)return xr(t,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,r),!0;if((200===s.kind||199===s.kind)&&Nb(s,t,r))return!0}}}function kb(n){174===n.kind?function(n){VS(n)||function(n){var t=n.parameters[0];if(1!==n.parameters.length)return fx(t?t.name:n,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(KS(n.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return fx(t.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(t))return fx(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return fx(t.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return fx(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return fx(t.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var r=jd(t.type);O_(r,(function(e){return!!(8576&e.flags)}))||Yu(r)?fx(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):P_(r,_l)?n.type||fx(n,e.Diagnostics.An_index_signature_must_have_a_type_annotation):fx(t.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}(n)}(n):177!==n.kind&&254!==n.kind&&178!==n.kind&&172!==n.kind&&169!==n.kind&&173!==n.kind||WS(n);var r=e.getFunctionFlags(n);if(4&r||(3==(3&r)&&j<99&&BS(n,6144),2==(3&r)&&j<4&&BS(n,64),0!=(3&r)&&j<2&&BS(n,128)),mT(n.typeParameters),e.forEach(n.parameters,Ib),n.type&&wT(n.type),t){!function(n){j>=2||!e.hasRestParameter(n)||8388608&n.flags||e.nodeIsMissing(n.body)||e.forEach(n.parameters,(function(n){n.name&&!e.isBindingPattern(n.name)&&n.name.escapedText===le.escapedName&&Tr("noEmit",n,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(n);var i=e.getEffectiveReturnTypeNode(n);if(Y&&!i)switch(n.kind){case 173:xr(n,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 172:xr(n,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(i){var a=e.getFunctionFlags(n);if(1==(5&a)){var o=jd(i);if(o===Qe)xr(i,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=oT(0,o,0!=(2&a))||Ie;kp(wv(s,oT(1,o,0!=(2&a))||s,oT(2,o,0!=(2&a))||we,!!(2&a)),o,i)}}else 2==(3&a)&&function(n,t){var r=jd(t);if(j>=2){if(r===Re)return;var i=Ql(!0);if(i!==gn&&!Io(r,i))return void xr(t,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Ea(Xb(r)||Qe))}else{if(function(n){Zb(n&&e.getEntityNameFromTypeNode(n))}(t),r===Re)return;var a=e.getEntityNameFromTypeNode(t);if(void 0===a)return void xr(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Ea(r));var o=Si(a,111551,!0),s=o?Ao(o):Re;if(s===Re)return void(79===a.kind&&"Promise"===a.escapedText&&No(r)===Ql(!1)?xr(t,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):xr(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)));var c=(!0,Xn||(Xn=Jl("PromiseConstructorLike",0,true))||pn);if(c===pn)return void xr(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));if(!kp(s,c,t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var l=a&&e.getFirstIdentifier(a),u=jr(n.locals,l.escapedText,111551);if(u)return void xr(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(a))}qb(r,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(n,i)}174!==n.kind&&312!==n.kind&&oE(n)}}function Rb(n){for(var t=new e.Map,r=0,i=n.members;r<i.length;r++){var a=i[r];if(164===a.kind){var o=void 0,s=a.name;switch(s.kind){case 10:case 8:o=s.text;break;case 79:o=e.idText(s);break;default:continue}t.get(o)?(xr(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),xr(a.name,e.Diagnostics.Duplicate_identifier_0,o)):t.set(o,!0)}}}function Ob(n){if(256===n.kind){var t=Ui(n);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==n)return}var r=ul(Ui(n));if(null==r?void 0:r.declarations){for(var i=new e.Map,a=function(e){1===e.parameters.length&&e.parameters[0].type&&R_(jd(e.parameters[0].type),(function(n){var t=i.get(yu(n));t?t.declarations.push(e):i.set(yu(n),{type:n,declarations:[e]})}))},o=0,s=r.declarations;o<s.length;o++)a(s[o]);i.forEach((function(n){if(n.declarations.length>1)for(var t=0,r=n.declarations;t<r.length;t++)xr(r[t],e.Diagnostics.Duplicate_index_signature_for_type_0,Ea(n.type))}))}}function Pb(n){VS(n)||function(n){if(e.isClassLike(n.parent)){if(e.isStringLiteral(n.name)&&"constructor"===n.name.text)return fx(n.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(tx(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(j<2&&e.isPrivateIdentifier(n.name))return fx(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(256===n.parent.kind){if(tx(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 fx(n.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(180===n.parent.kind){if(tx(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 fx(n.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(8388608&n.flags&&ax(n),e.isPropertyDeclaration(n)&&n.exclamationToken&&(!e.isClassLike(n.parent)||!n.type||n.initializer||8388608&n.flags||e.isStatic(n)||e.hasAbstractModifier(n))){var t=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 fx(n.exclamationToken,t)}}(n)||YS(n.name),CE(n),wb(n),e.isPrivateIdentifier(n.name)&&e.hasStaticModifier(n)&&n.initializer&&99===j&&!V.useDefineForClassFields&&xr(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)&&165===n.kind&&n.initializer&&xr(n,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(n.name))}function wb(n){if(e.isPrivateIdentifier(n.name)&&j<99){for(var t=e.getEnclosingBlockScopeContainer(n);t;t=e.getEnclosingBlockScopeContainer(t))Ur(t).flags|=67108864;if(e.isClassExpression(n.parent)){var r=_g(n.parent);r&&(Ur(n.name).flags|=524288,Ur(r).flags|=65536)}}}function Mb(n){if(t){if(WS(n)||function(n){if(!(8388608&n.flags)&&180!==n.parent.kind&&256!==n.parent.kind){if(j<1)return fx(n.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(j<2&&e.isPrivateIdentifier(n.name))return fx(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===n.body&&!e.hasSyntacticModifier(n,128))return px(n,n.end-1,1,e.Diagnostics._0_expected,"{")}if(n.body){if(e.hasSyntacticModifier(n,128))return fx(n,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(180===n.parent.kind||256===n.parent.kind)return fx(n.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return fx(n.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return nx(e)||e.parameters.length===(170===e.kind?0:1)}(n))return fx(n.name,170===n.kind?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(171===n.kind){if(n.type)return fx(n.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var t=e.Debug.checkDefined(e.getSetAccessorValueParameter(n),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return fx(t.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return fx(t.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return fx(n.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(n)||YS(n.name),rE(n),kb(n),170===n.kind&&!(8388608&n.flags)&&e.nodeIsPresent(n.body)&&256&n.flags&&(512&n.flags||xr(n.name,e.Diagnostics.A_get_accessor_must_return_a_value)),160===n.name.kind&&ry(n.name),_s(n)){var r=Ui(n),i=e.getDeclarationOfKind(r,170),a=e.getDeclarationOfKind(r,171);if(i&&a&&!(1&TS(i))){Ur(i).flags|=1;var o=e.getEffectiveModifierFlags(i),s=e.getEffectiveModifierFlags(a);(128&o)!=(128&s)&&(xr(i.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),xr(a.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(16&o&&!(24&s)||8&o&&!(8&s))&&(xr(i.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),xr(a.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var c=vo(i),l=vo(a);c&&l&&kp(c,l,i,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var u=bo(Ui(n));170===n.kind&&Vv(n,u)}wT(n.body),wb(n)}function Fb(n,t){return Wc(e.map(n.typeArguments,jd),t,Hc(t),e.isInJSFile(n))}function Gb(n,t){for(var r,i,a=!0,o=0;o<t.length;o++){var s=rc(t[o]);s&&(r||(i=qd(t,r=Fb(n,t))),a=a&&kp(r[o],fp(s,i),n.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function Bb(n){var t=Ul(n);if(t!==Re){var r=Ur(n).resolvedSymbol;if(r)return 524288&r.flags&&Br(r).typeParameters||(4&e.getObjectFlags(t)?t.target.localTypeParameters:void 0)}}function Ub(n){zS(n,n.typeArguments),176!==n.kind||void 0===n.typeName.jsdocDotPos||e.isInJSFile(n)||e.isInJSDoc(n)||px(n,n.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(n.typeArguments,wT);var r=Ul(n);if(r!==Re){if(n.typeArguments&&t){var i=Bb(n);i&&Gb(n,i)}var a=Ur(n).resolvedSymbol;a&&(e.some(a.declarations,(function(e){return HT(e)&&!!(134217728&e.flags)}))&&Ir(iv(n),a.declarations,a.escapedName),32&r.flags&&8&a.flags&&xr(n,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Ea(r)))}}function Vb(n,t){if(!(8388608&n.flags))return n;var r=n.objectType,i=n.indexType;if(Ap(i,Gu(r,!1)))return 205===t.kind&&e.isAssignmentTarget(t)&&32&e.getObjectFlags(r)&&1&Js(r)&&xr(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ea(r)),n;var a=mc(r);if(Rc(a,Ke)&&Yv(i,296))return n;if(Qu(r)){var o=Hu(i,t);if(o){var s=R_(a,(function(e){return xc(e,o)}));if(s&&24&e.getDeclarationModifierFlagsFromSymbol(s))return xr(t,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(o)),Re}}return xr(t,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Ea(i),Ea(r)),Re}function jb(n){return(e.hasEffectiveModifier(n,8)||e.isPrivateIdentifierClassElementDeclaration(n))&&!!(8388608&n.flags)}function Kb(n,t){var r=e.getCombinedModifierFlags(n);return 256!==n.parent.kind&&255!==n.parent.kind&&224!==n.parent.kind&&8388608&n.flags&&(2&r||e.isModuleBlock(n.parent)&&e.isModuleDeclaration(n.parent.parent)&&e.isGlobalScopeAugmentation(n.parent.parent)||(r|=1),r|=2),r&t}function Hb(n){if(t){var r,a,o,s=0,c=155,l=!1,u=!0,d=!1,p=n.declarations,f=0!=(16384&n.flags),m=!1,_=!1,g=!1,y=[];if(p)for(var h=0,v=p;h<v.length;h++){var b=v[h],E=8388608&b.flags,T=b.parent&&(256===b.parent.kind||180===b.parent.kind)||E;if(T&&(o=void 0),255!==b.kind&&224!==b.kind||E||(g=!0),254===b.kind||167===b.kind||166===b.kind||169===b.kind){y.push(b);var S=Kb(b,155);s|=S,c&=S,l=l||e.hasQuestionToken(b),u=u&&e.hasQuestionToken(b);var x=e.nodeIsPresent(b.body);x&&r?f?_=!0:m=!0:(null==o?void 0:o.parent)===b.parent&&o.end!==b.pos&&F(o),x?r||(r=b):d=!0,o=b,T||(a=b)}}if(_&&e.forEach(y,(function(n){xr(n,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)})),m&&e.forEach(y,(function(n){xr(e.getNameOfDeclaration(n)||n,e.Diagnostics.Duplicate_function_implementation)})),g&&!f&&16&n.flags&&p){var L=e.filter(p,(function(e){return 255===e.kind})).map((function(n){return e.createDiagnosticForNode(n,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)}));e.forEach(p,(function(t){var r=255===t.kind?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:254===t.kind?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&e.addRelatedInfo.apply(void 0,i([xr(e.getNameOfDeclaration(t)||t,r,e.symbolName(n))],L,!1))}))}if(!a||a.body||e.hasSyntacticModifier(a,128)||a.questionToken||F(a),d&&(p&&(function(n,t,r,i,a){if(0!=(i^a)){var o=Kb(M(n,t),155);e.forEach(n,(function(n){var t=Kb(n,155)^o;1&t?xr(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&t?xr(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&t?xr(e.getNameOfDeclaration(n)||n,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&t&&xr(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}}(p,r,0,s,c),function(n,t,r,i){if(r!==i){var a=e.hasQuestionToken(M(n,t));e.forEach(n,(function(n){e.hasQuestionToken(n)!==a&&xr(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)}))}}(p,r,l,u)),r))for(var D=Xc(n),A=zc(r),C=0,I=D;C<I.length;C++){var N=I[C];if(k=N,R=void 0,O=void 0,P=void 0,w=void 0,R=sl(A),O=sl(k),P=el(R),(w=el(O))!==Qe&&!Xp(w,P,gr)&&!Xp(P,w,gr)||0===jp(R,O,4,!1,void 0,void 0,xp,void 0)){e.addRelatedInfo(xr(N.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(r,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}var k,R,O,P,w;function M(e,n){return void 0!==n&&n.parent===e[0].parent?n:e[0]}function F(n){if(!n.name||!e.nodeIsMissing(n.name)){var t=!1,r=e.forEachChild(n.parent,(function(e){if(t)return e;t=e===n}));if(r&&r.pos===n.end&&r.kind===n.kind){var i=r.name||r,a=r.name;if(n.name&&a&&(e.isPrivateIdentifier(n.name)&&e.isPrivateIdentifier(a)&&n.name.escapedText===a.escapedText||e.isComputedPropertyName(n.name)&&e.isComputedPropertyName(a)||e.isPropertyNameLiteral(n.name)&&e.isPropertyNameLiteral(a)&&e.getEscapedTextOfIdentifierOrLiteral(n.name)===e.getEscapedTextOfIdentifierOrLiteral(a)))return void(167!==n.kind&&166!==n.kind||e.isStatic(n)===e.isStatic(r)||xr(i,e.isStatic(n)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static));if(e.nodeIsPresent(r.body))return void xr(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(n.name))}var o=n.name||n;f?xr(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(n,128)?xr(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):xr(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function Wb(n){if(t){var r=n.localSymbol;if((r||(r=Ui(n)).exportSymbol)&&e.getDeclarationOfKind(r,n.kind)===n){for(var i=0,a=0,o=0,s=0,c=r.declarations;s<c.length;s++){var l=y(_=c[s]),u=Kb(_,513);1&u?512&u?o|=l:i|=l:a|=l}var d=i&a,p=o&(i|a);if(d||p)for(var f=0,m=r.declarations;f<m.length;f++){l=y(_=m[f]);var _,g=e.getNameOfDeclaration(_);l&p?xr(g,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(g)):l&d&&xr(g,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(g))}}}function y(n){var t=n;switch(t.kind){case 256:case 257:case 340:case 333:case 334:return 2;case 259:return e.isAmbientModule(t)||0!==e.getModuleInstanceState(t)?5:4;case 255:case 258:case 294:return 3;case 300:return 7;case 269:case 219:var r=t,i=e.isExportAssignment(r)?r.expression:r.right;if(!e.isEntityNameExpression(i))return 1;t=i;case 263:case 266:case 265:var a=0,o=_i(Ui(t));return e.forEach(o.declarations,(function(e){a|=y(e)})),a;case 252:case 201:case 254:case 268:case 79:return 1;default:return e.Debug.failBadSyntaxKind(t)}}}function zb(e,n,t,r){var i=Jb(e,n);return i&&Xb(i,n,t,r)}function Jb(n,t){if(!Va(n)){var r=n;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(Io(n,Ql(!1)))return r.promisedTypeOfPromise=Ll(n)[0];var i=Ua(n,"then");if(!Va(i)){var a=i?Dc(i,0):e.emptyArray;if(0!==a.length){var o=__(xu(e.map(a,Dv)),2097152);if(!Va(o)){var s=Dc(o,0);if(0!==s.length)return r.promisedTypeOfPromise=xu(e.map(s,Dv),2);t&&xr(t,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else t&&xr(t,e.Diagnostics.A_promise_must_have_a_then_method)}}}function qb(e,n,t,r){return Xb(e,n,t,r)||Re}function Xb(e,n,t,r){if(Va(e))return e;var i=e;return i.awaitedTypeOfType?i.awaitedTypeOfType:i.awaitedTypeOfType=G_(e,n?function(e){return Yb(e,n,t,r)}:Yb)}function Yb(n,t,r,i){var a=n;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;var o=Jb(n);if(o){if(n.id===o.id||lr.lastIndexOf(o.id)>=0)return void(t&&xr(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));lr.push(n.id);var s=Xb(o,t,r,i);if(lr.pop(),!s)return;return a.awaitedTypeOfType=s}if(!function(e){var n=Ua(e,"then");return!!n&&Dc(__(n,2097152),0).length>0}(n))return a.awaitedTypeOfType=n;if(t){if(!r)return e.Debug.fail();xr(t,r,i)}}function Qb(n){var t=$h(n);rv(t,n);var r=el(t);if(!(1&r.flags)){var i,a,o=Xh(n);switch(n.parent.kind){case 255:i=xu([Ao(Ui(n.parent)),Qe]);break;case 162:i=Qe,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 165:i=Qe,a=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:i=xu([tu(ZT(n.parent)),Qe]);break;default:return e.Debug.fail()}kp(r,i,n,o,(function(){return a}))}}function Zb(n){if(n){var t=e.getFirstIdentifier(n),r=2097152|(79===n.kind?788968:1920),i=Wr(t,t.escapedText,r,void 0,void 0,!0);i&&2097152&i.flags&&Ji(i)&&!_S(_i(i))&&!hi(i)&&bi(i)}}function $b(n){var t=eE(n);t&&e.isEntityName(t)&&Zb(t)}function eE(e){if(e)switch(e.kind){case 186:case 185:return nE(e.types);case 187:return nE([e.trueType,e.falseType]);case 189:case 195:return eE(e.type);case 176:return e.typeName}}function nE(n){for(var t,r=0,i=n;r<i.length;r++){for(var a=i[r];189===a.kind||195===a.kind;)a=a.type;if(142!==a.kind&&(z||(194!==a.kind||104!==a.literal.kind)&&151!==a.kind)){var o=eE(a);if(!o)return;if(t){if(!e.isIdentifier(t)||!e.isIdentifier(o)||t.escapedText!==o.escapedText)return}else t=o}}return t}function tE(n){var t=e.getEffectiveTypeAnnotationNode(n);return e.isRestParameter(n)?e.getRestParameterElementType(t):t}function rE(n){if(n.decorators&&e.nodeCanBeDecorated(n,n.parent,n.parent.parent)){V.experimentalDecorators||xr(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var t=n.decorators[0];if(BS(t,8),162===n.kind&&BS(t,32),V.emitDecoratorMetadata)switch(BS(t,16),n.kind){case 255:var r=e.getFirstConstructorWithBody(n);if(r)for(var i=0,a=r.parameters;i<a.length;i++)$b(tE(a[i]));break;case 170:case 171:var o=170===n.kind?171:170,s=e.getDeclarationOfKind(Ui(n),o);$b(ho(n)||s&&ho(s));break;case 167:for(var c=0,l=n.parameters;c<l.length;c++)$b(tE(l[c]));$b(e.getEffectiveReturnTypeNode(n));break;case 165:$b(e.getEffectiveTypeAnnotationNode(n));break;case 162:$b(tE(n));for(var u=0,d=n.parent.parameters;u<d.length;u++)$b(tE(d[u]))}e.forEach(n.decorators,Qb)}}function iE(e){switch(e.kind){case 79:return e;case 204:return e.name;default:return}}function aE(n){var r;rE(n),kb(n);var i=e.getFunctionFlags(n);if(n.name&&160===n.name.kind&&ry(n.name),_s(n)){var a=Ui(n),o=n.localSymbol||a,s=null===(r=o.declarations)||void 0===r?void 0:r.find((function(e){return e.kind===n.kind&&!(131072&e.flags)}));n===s&&Hb(o),a.parent&&Hb(a)}var c=166===n.kind?void 0:n.body;if(wT(c),Vv(n,nl(n)),t&&!e.getEffectiveReturnTypeNode(n)&&(e.nodeIsMissing(c)&&!jb(n)&&ym(n,Ie),1&i&&e.nodeIsPresent(c)&&el(zc(n))),e.isInJSFile(n)){var l=e.getJSDocTypeTag(n);l&&l.typeExpression&&!qg(jd(l.typeExpression),n)&&xr(l.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function oE(n){if(t){var r=e.getSourceFileOfNode(n),i=Pt.get(r.path);i||(i=[],Pt.set(r.path,i)),i.push(n)}}function sE(n,t){for(var r=0,i=n;r<i.length;r++){var a=i[r];switch(a.kind){case 255:case 224:uE(a,t),pE(a,t);break;case 300:case 259:case 233:case 261:case 240:case 241:case 242:yE(a,t);break;case 169:case 211:case 254:case 212:case 167:case 170:case 171:a.body&&yE(a,t),pE(a,t);break;case 166:case 172:case 173:case 177:case 178:case 257:case 256:pE(a,t);break;case 188:dE(a,t);break;default:e.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function cE(n,t,r){var i=e.getNameOfDeclaration(n)||n,a=HT(n)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;r(n,0,e.createDiagnosticForNode(i,a,t))}function lE(n){return e.isIdentifier(n)&&95===e.idText(n).charCodeAt(0)}function uE(n,t){for(var r=0,i=n.members;r<i.length;r++){var a=i[r];switch(a.kind){case 167:case 165:case 170:case 171:if(171===a.kind&&32768&a.symbol.flags)break;var o=Ui(a);o.isReferenced||!(e.hasEffectiveModifier(a,8)||e.isNamedDeclaration(a)&&e.isPrivateIdentifier(a.name))||8388608&a.flags||t(a,0,e.createDiagnosticForNode(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,va(o)));break;case 169:for(var s=0,c=a.parameters;s<c.length;s++){var l=c[s];!l.symbol.isReferenced&&e.hasSyntacticModifier(l,8)&&t(l,0,e.createDiagnosticForNode(l.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(l.symbol)))}break;case 174:case 232:case 168:break;default:e.Debug.fail("Unexpected class member")}}}function dE(n,t){var r=n.typeParameter;fE(r)&&t(n,1,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(r.name)))}function pE(n,t){var r=Ui(n).declarations;if(r&&e.last(r)===n)for(var i=e.getEffectiveTypeParameterDeclarations(n),a=new e.Set,o=0,s=i;o<s.length;o++){var c=s[o];if(fE(c)){var l=e.idText(c.name),u=c.parent;if(188!==u.kind&&u.typeParameters.every(fE)){if(e.tryAddToSet(a,u)){var d=e.getSourceFileOfNode(u),p=e.isJSDocTemplateTag(u)?e.rangeOfNode(u):e.rangeOfTypeParameters(d,u.typeParameters),f=1===u.typeParameters.length,m=f?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,_=f?l:void 0;t(c,1,e.createFileDiagnostic(d,p.pos,p.end-p.pos,m,_))}}else t(c,1,e.createDiagnosticForNode(c,e.Diagnostics._0_is_declared_but_its_value_is_never_read,l))}}}function fE(e){return!(262144&Bi(e.symbol).isReferenced||lE(e.name))}function mE(e,n,t,r){var i=String(r(n)),a=e.get(i);a?a[1].push(t):e.set(i,[n,[t]])}function _E(n){return e.tryCast(e.getRootDeclaration(n),e.isParameter)}function gE(n){return e.isBindingElement(n)?e.isObjectBindingPattern(n.parent)?!(!n.propertyName||!lE(n.name)):lE(n.name):e.isAmbientModule(n)||(e.isVariableDeclaration(n)&&e.isForInOrOfStatement(n.parent.parent)||vE(n))&&lE(n.name)}function yE(n,t){var r=new e.Map,i=new e.Map,a=new e.Map;n.locals.forEach((function(n){var o;if(!(262144&n.flags?!(3&n.flags)||3&n.isReferenced:n.isReferenced||n.exportSymbol)&&n.declarations)for(var s=0,c=n.declarations;s<c.length;s++){var l=c[s];if(!gE(l))if(vE(l))mE(r,265===(o=l).kind?o:266===o.kind?o.parent:o.parent.parent,l,O);else if(e.isBindingElement(l)&&e.isObjectBindingPattern(l.parent))l!==e.last(l.parent.elements)&&e.last(l.parent.elements).dotDotDotToken||mE(i,l.parent,l,O);else if(e.isVariableDeclaration(l))mE(a,l.parent,l,O);else{var u=n.valueDeclaration&&_E(n.valueDeclaration),d=n.valueDeclaration&&e.getNameOfDeclaration(n.valueDeclaration);u&&d?e.isParameterPropertyDeclaration(u,u.parent)||e.parameterIsThisKeyword(u)||lE(d)||(e.isBindingElement(l)&&e.isArrayBindingPattern(l.parent)?mE(i,l.parent,l,O):t(u,1,e.createDiagnosticForNode(d,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(n)))):cE(l,e.symbolName(n),t)}}})),r.forEach((function(n){var r=n[0],i=n[1],a=r.parent;if((r.name?1:0)+(r.namedBindings?266===r.namedBindings.kind?1:r.namedBindings.elements.length:0)===i.length)t(a,0,1===i.length?e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(i).name)):e.createDiagnosticForNode(a,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var o=0,s=i;o<s.length;o++){var c=s[o];cE(c,e.idText(c.name),t)}})),i.forEach((function(n){var r=n[0],i=n[1],o=_E(r.parent)?1:0;if(r.elements.length===i.length)1===i.length&&252===r.parent.kind&&253===r.parent.parent.kind?mE(a,r.parent.parent,r.parent,O):t(r,o,1===i.length?e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,hE(e.first(i).name)):e.createDiagnosticForNode(r,e.Diagnostics.All_destructured_elements_are_unused));else for(var s=0,c=i;s<c.length;s++){var l=c[s];t(l,o,e.createDiagnosticForNode(l,e.Diagnostics._0_is_declared_but_its_value_is_never_read,hE(l.name)))}})),a.forEach((function(n){var r=n[0],i=n[1];if(r.declarations.length===i.length)t(r,0,1===i.length?e.createDiagnosticForNode(e.first(i).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,hE(e.first(i).name)):e.createDiagnosticForNode(235===r.parent.kind?r.parent:r,e.Diagnostics.All_variables_are_unused));else for(var a=0,o=i;a<o.length;a++){var s=o[a];t(s,0,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,hE(s.name)))}}))}function hE(n){switch(n.kind){case 79:return e.idText(n);case 200:case 199:return hE(e.cast(e.first(n.elements),e.isBindingElement).name);default:return e.Debug.assertNever(n)}}function vE(e){return 265===e.kind||268===e.kind||266===e.kind}function bE(n){if(233===n.kind&&_x(n),e.isFunctionOrModuleBlock(n)){var t=Gt;e.forEach(n.statements,wT),Gt=t}else e.forEach(n.statements,wT);n.locals&&oE(n)}function EE(n,t,r){if((null==t?void 0:t.escapedText)!==r)return!1;if(165===n.kind||164===n.kind||167===n.kind||166===n.kind||170===n.kind||171===n.kind||291===n.kind)return!1;if(8388608&n.flags)return!1;if((e.isImportClause(n)||e.isImportEqualsDeclaration(n)||e.isImportSpecifier(n))&&e.isTypeOnlyImportOrExportDeclaration(n))return!1;var i=e.getRootDeclaration(n);return!e.isParameter(i)||!e.nodeIsMissing(i.parent.body)}function TE(n){e.findAncestor(n,(function(t){return!!(4&TS(t))&&(79!==n.kind?xr(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):xr(n,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)}))}function SE(n){e.findAncestor(n,(function(t){return!!(8&TS(t))&&(79!==n.kind?xr(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):xr(n,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)}))}function xE(n){67108864&TS(e.getEnclosingBlockScopeContainer(n))&&(e.Debug.assert(e.isNamedDeclaration(n)&&e.isIdentifier(n.name)&&"string"==typeof n.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Tr("noEmit",n,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function LE(n){var t=!1;if(e.isClassExpression(n)){for(var r=0,i=n.members;r<i.length;r++)if(134217728&TS(i[r])){t=!0;break}}else if(e.isFunctionExpression(n))134217728&TS(n)&&(t=!0);else{var a=e.getEnclosingBlockScopeContainer(n);a&&134217728&TS(a)&&(t=!0)}t&&(e.Debug.assert(e.isNamedDeclaration(n)&&e.isIdentifier(n.name),"The target of a Reflect collision check should be an identifier"),Tr("noEmit",n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(n.name),"Reflect"))}function DE(n,t){t&&(function(n,t){if(!(K>=e.ModuleKind.ES2015)&&t&&(EE(n,t,"require")||EE(n,t,"exports"))&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=Ba(n);300===r.kind&&e.isExternalOrCommonJsModule(r)&&Tr("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(t),e.declarationNameToString(t))}}(n,t),function(n,t){if(t&&!(j>=4)&&EE(n,t,"Promise")&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=Ba(n);300===r.kind&&e.isExternalOrCommonJsModule(r)&&2048&r.flags&&Tr("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(t),e.declarationNameToString(t))}}(n,t),function(e,n){j<=8&&(EE(e,n,"WeakMap")||EE(e,n,"WeakSet"))&&sr.push(e)}(n,t),function(e,n){n&&j>=2&&j<=8&&EE(e,n,"Reflect")&&cr.push(e)}(n,t),e.isClassLike(n)?(fT(t,e.Diagnostics.Class_name_cannot_be_0),8388608&n.flags||function(n){1===j&&"Object"===n.escapedText&&K<e.ModuleKind.ES2015&&xr(n,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[K])}(t)):e.isEnumDeclaration(n)&&fT(t,e.Diagnostics.Enum_name_cannot_be_0))}function AE(e){return e===Ne?Ie:e===Bn?Gn:e}function CE(n){var t;if(rE(n),e.isBindingElement(n)||wT(n.type),n.name){if(160===n.name.kind&&(ry(n.name),n.initializer&&ub(n.initializer)),e.isBindingElement(n)){e.isObjectBindingPattern(n.parent)&&n.dotDotDotToken&&j<5&&BS(n,4),n.propertyName&&160===n.propertyName.kind&&ry(n.propertyName);var r=n.parent.parent,i=ja(r),a=n.propertyName||n.name;if(i&&!e.isBindingPattern(a)){var o=Mu(a);if(ds(o)){var s=xc(i,gs(o));s&&(ah(s,void 0,!1),Ny(n,!!r.initializer&&106===r.initializer.kind,!1,i,s))}}}if(e.isBindingPattern(n.name)&&(200===n.name.kind&&j<2&&V.downlevelIteration&&BS(n,512),e.forEach(n.name.elements,wT)),n.initializer&&e.isParameterDeclaration(n)&&e.nodeIsMissing(e.getContainingFunction(n).body))xr(n,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(n.name)){var c=n.initializer&&241!==n.parent.parent.kind,l=0===n.name.elements.length;if(c||l){var u=mo(n);if(c){var d=ub(n.initializer);z&&l?By(d,n):Rp(d,mo(n),n,n.initializer)}l&&(e.isArrayBindingPattern(n.name)?GE(65,u,Me,n):z&&By(u,n))}}else{var p=Ui(n);if(2097152&p.flags&&e.isRequireVariableDeclaration(n))AT(n);else{var f=AE(Ao(p));if(n===p.valueDeclaration){var m=e.getEffectiveInitializer(n);m&&(e.isInJSFile(n)&&e.isObjectLiteralExpression(m)&&(0===m.properties.length||e.isPrototypeAccess(n.name))&&(null===(t=p.exports)||void 0===t?void 0:t.size)||241===n.parent.parent.kind||Rp(ub(m),f,n,m,void 0)),p.declarations&&p.declarations.length>1&&e.some(p.declarations,(function(t){return t!==n&&e.isVariableLike(t)&&!NE(t,n)}))&&xr(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}else{var _=AE(mo(n));f===Re||_===Re||Tp(f,_)||67108864&p.flags||IE(p.valueDeclaration,f,n,_),n.initializer&&Rp(ub(n.initializer),_,n,n.initializer,void 0),p.valueDeclaration&&!NE(n,p.valueDeclaration)&&xr(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}165!==n.kind&&164!==n.kind&&(Wb(n),252!==n.kind&&201!==n.kind||function(n){if(0==(3&e.getCombinedNodeFlags(n))&&!e.isParameterDeclaration(n)&&(252!==n.kind||n.initializer)){var t=Ui(n);if(1&t.flags){if(!e.isIdentifier(n.name))return e.Debug.fail();var r=Wr(n,n.name.escapedText,3,void 0,void 0,!1);if(r&&r!==t&&2&r.flags&&3&Cy(r)){var i=e.getAncestor(r.valueDeclaration,253),a=235===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(233===a.kind&&e.isFunctionLike(a.parent)||260===a.kind||259===a.kind||300===a.kind)){var o=va(r);xr(n,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(n),DE(n,n.name))}}}}function IE(n,t,r,i){var a=e.getNameOfDeclaration(r),o=165===r.kind||164===r.kind?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(a),c=xr(a,o,s,Ea(t),Ea(i));n&&e.addRelatedInfo(c,e.createDiagnosticForNode(n,e.Diagnostics._0_was_also_declared_here,s))}function NE(n,t){return 162===n.kind&&252===t.kind||252===n.kind&&162===t.kind||e.hasQuestionToken(n)===e.hasQuestionToken(t)&&e.getSelectedEffectiveModifierFlags(n,504)===e.getSelectedEffectiveModifierFlags(t,504)}function kE(n){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end}),function(n){if(241!==n.parent.parent.kind&&242!==n.parent.parent.kind)if(8388608&n.flags)ax(n);else if(!n.initializer){if(e.isBindingPattern(n.name)&&!e.isBindingPattern(n.parent))return fx(n,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(n))return fx(n,e.Diagnostics.const_declarations_must_be_initialized)}if(n.exclamationToken&&(235!==n.parent.parent.kind||!n.type||n.initializer||8388608&n.flags)){var t=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 fx(n.exclamationToken,t)}var r=e.getEmitModuleKind(V);r<e.ModuleKind.ES2015&&r!==e.ModuleKind.System&&!(8388608&n.parent.parent.flags)&&e.hasSyntacticModifier(n.parent.parent,1)&&ox(n.name),(e.isLet(n)||e.isVarConst(n))&&sx(n.name)}(n),CE(n),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function RE(n){VS(n)||cx(n.declarationList)||function(n){if(!lx(n.parent)){if(e.isLet(n.declarationList))return fx(n,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);e.isVarConst(n.declarationList)&&fx(n,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(n),e.forEach(n.declarationList.declarations,wT)}function OE(n,t,r){if(z&&!Jf(t)){var i=e.isBinaryExpression(n)?n.right:n;if(!e.isPropertyAccessExpression(i)||!e.isAssertionExpression(e.skipParentheses(i.expression))){var a=e.isIdentifier(i)?i:e.isPropertyAccessExpression(i)?i.name:e.isBinaryExpression(i)&&e.isIdentifier(i.right)?i.right:void 0,o=Dc(t,0),s=!!zb(t);if(0!==o.length||s){var c=a&&QT(a);if(c||s){var l=c&&e.isBinaryExpression(n.parent)&&function(n,t){for(;e.isBinaryExpression(n)&&55===n.operatorToken.kind;){if(e.forEachChild(n.right,(function n(r){if(e.isIdentifier(r)){var i=QT(r);if(i&&i===t)return!0}return e.forEachChild(r,n)})))return!0;n=n.parent}return!1}(n.parent,c)||c&&r&&function(n,t,r,i){return!!e.forEachChild(t,(function t(a){if(e.isIdentifier(a)){var o=QT(a);if(o&&o===i){if(e.isIdentifier(n))return!0;for(var s=r.parent,c=a.parent;s&&c;){if(e.isIdentifier(s)&&e.isIdentifier(c)||108===s.kind&&108===c.kind)return QT(s)===QT(c);if(e.isPropertyAccessExpression(s)&&e.isPropertyAccessExpression(c)){if(QT(s.name)!==QT(c.name))return!1;c=c.expression,s=s.expression}else{if(!e.isCallExpression(s)||!e.isCallExpression(c))return!1;c=c.expression,s=s.expression}}}}return e.forEachChild(a,t)}))}(n,r,a,c);l||(s?Ar(i,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,Sa(t)):xr(i,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}function PE(n,t){return 16384&n.flags&&xr(t,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function wE(e,n){return PE(Ab(e,n),e)}function ME(e){var n=e.initializer;n.declarations.length>=1&&kE(n.declarations[0])}function FE(e){return GE(e.awaitModifier?15:13,Ry(e.expression),Me,e.expression)}function GE(e,n,t,r){return Va(n)?n:BE(e,n,t,r,!0)||Ie}function BE(n,t,r,i,a){var o=0!=(2&n);if(t!==Ze){var s=j>=2,c=!s&&V.downlevelIteration,l=V.noUncheckedIndexedAccess&&!!(128&n);if(s||c||o){var u=WE(t,n,s?i:void 0);if(a&&u){var d=8&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&n?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;d&&kp(r,u.nextType,i,d)}if(u||s)return l?v_(u&&u.yieldType):u&&u.yieldType}var p=t,f=!1,m=!1;if(4&n){if(1048576&p.flags){var _=t.types,g=e.filter(_,(function(e){return!(402653316&e.flags)}));g!==_&&(p=xu(g,2))}else 402653316&p.flags&&(p=Ze);if((m=p!==t)&&(j<1&&i&&(xr(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),f=!0),131072&p.flags))return l?v_(je):je}if(!Lf(p)){if(i&&!f){var y=function(r,i){var a;return i?r?[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]:UE(n,0,t,void 0)?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null===(a=t.symbol)||void 0===a?void 0:a.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:r?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}(!!(4&n)&&!m,c),h=y[0];Ar(i,y[1]&&!!zb(p),h,Ea(p))}return m?l?v_(je):je:void 0}var v=Oc(p,Ke);return m&&v?402653316&v.flags&&!V.noUncheckedIndexedAccess?je:xu(l?[v,je,Me]:[v,je],2):128&n?v_(v):v}ZE(i,t,o)}function UE(e,n,t,r){if(!Va(t)){var i=WE(t,e,r);return i&&i[G(n)]}}function VE(e,n,t){if(void 0===e&&(e=Ze),void 0===n&&(n=Ze),void 0===t&&(t=we),67359327&e.flags&&180227&n.flags&&180227&t.flags){var r=vl([e,n,t]),i=Lt.get(r);return i||(i={yieldType:e,returnType:n,nextType:t},Lt.set(r,i)),i}return{yieldType:e,returnType:n,nextType:t}}function jE(n){for(var t,r,i,a=0,o=n;a<o.length;a++){var s=o[a];if(void 0!==s&&s!==Dt){if(s===At)return At;t=e.append(t,s.yieldType),r=e.append(r,s.returnType),i=e.append(i,s.nextType)}}return t||r||i?VE(t&&xu(t),r&&xu(r),i&&ku(i)):Dt}function KE(e,n){return e[n]}function HE(e,n,t){return e[n]=t}function WE(n,t,r){if(Va(n))return At;if(!(1048576&n.flags)){var i=JE(n,t,r);return i===Dt?void(r&&ZE(r,n,!!(2&t))):i}var a,o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",s=KE(n,o);if(s)return s===Dt?void 0:s;for(var c=0,l=n.types;c<l.length;c++){var u=JE(l[c],t,r);if(u===Dt)return r&&ZE(r,n,!!(2&t)),void HE(n,o,Dt);a=e.append(a,u)}var d=a?jE(a):Dt;return HE(n,o,d),d===Dt?void 0:d}function zE(e,n){if(e===Dt)return Dt;if(e===At)return At;var t=e.yieldType,r=e.returnType,i=e.nextType;return VE(Xb(t,n)||Ie,Xb(r,n)||Ie,i)}function JE(e,n,t){if(Va(e))return At;var r;if(2&n&&(r=qE(e,Nt)||YE(e,Nt)))return r;if(1&n&&(r=qE(e,kt)||YE(e,kt))){if(!(2&n))return r;if(r!==Dt)return HE(e,"iterationTypesOfAsyncIterable",zE(r,t))}return 2&n&&(r=QE(e,Nt,t))!==Dt?r:1&n&&(r=QE(e,kt,t))!==Dt?2&n?HE(e,"iterationTypesOfAsyncIterable",r?zE(r,t):Dt):r:Dt}function qE(e,n){return KE(e,n.iterableCacheKey)}function XE(e,n){var t=qE(e,n)||QE(e,n,void 0);return t===Dt?It:t}function YE(e,n){var t;if(Io(e,t=n.getGlobalIterableType(!1))||Io(e,t=n.getGlobalIterableIteratorType(!1))){var r=Ll(e)[0],i=XE(t,n),a=i.returnType,o=i.nextType;return HE(e,n.iterableCacheKey,VE(r,a,o))}if(Io(e,n.getGlobalGeneratorType(!1))){var s=Ll(e);return r=s[0],a=s[1],o=s[2],HE(e,n.iterableCacheKey,VE(r,a,o))}}function QE(n,t,r){var i,a,o,s,c=xc(n,(a=t.iteratorSymbolName,(s=(o=Xl(!1))&&Ua(Ao(o),e.escapeLeadingUnderscores(a)))&&ds(s)?gs(s):"__@"+a)),l=!c||16777216&c.flags?void 0:Ao(c);if(Va(l))return HE(n,t.iterableCacheKey,At);var u=l?Dc(l,0):void 0;if(!e.some(u))return HE(n,t.iterableCacheKey,Dt);var d=null!==(i=$E(ku(e.map(u,el)),t,r))&&void 0!==i?i:Dt;return HE(n,t.iterableCacheKey,d)}function ZE(n,t,r){var i=r?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;Ar(n,!!zb(t),i,Ea(t))}function $E(e,n,t){if(Va(e))return At;var r=eT(e,n)||function(e,n){var t=n.getGlobalIterableIteratorType(!1);if(Io(e,t)){var r=Ll(e)[0],i=eT(t,n)||aT(t,n,void 0),a=i===Dt?It:i,o=a.returnType,s=a.nextType;return HE(e,n.iteratorCacheKey,VE(r,o,s))}if(Io(e,n.getGlobalIteratorType(!1))||Io(e,n.getGlobalGeneratorType(!1))){var c=Ll(e);return r=c[0],o=c[1],s=c[2],HE(e,n.iteratorCacheKey,VE(r,o,s))}}(e,n)||aT(e,n,t);return r===Dt?void 0:r}function eT(e,n){return KE(e,n.iteratorCacheKey)}function nT(e,n){var t=Ua(e,"done")||We;return Ap(0===n?We:Je,t)}function tT(e){return nT(e,0)}function rT(e){return nT(e,1)}function iT(n,t,r,i){var a,o,s,c,l=xc(n,r);if(l||"next"===r){var u=!l||"next"===r&&16777216&l.flags?void 0:"next"===r?Ao(l):__(Ao(l),2097152);if(Va(u))return"next"===r?At:Ct;var d,p,f,m,_,g=u?Dc(u,0):e.emptyArray;if(0===g.length)return i&&xr(i,"next"===r?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic,r),"next"===r?At:void 0;if((null==u?void 0:u.symbol)&&1===g.length){var y=t.getGlobalGeneratorType(!1),h=t.getGlobalIteratorType(!1),v=(null===(o=null===(a=y.symbol)||void 0===a?void 0:a.members)||void 0===o?void 0:o.get(r))===u.symbol,b=!v&&(null===(c=null===(s=h.symbol)||void 0===s?void 0:s.members)||void 0===c?void 0:c.get(r))===u.symbol;if(v||b){var E=v?y:h,T=u.mapper;return VE(Xd(E.typeParameters[0],T),Xd(E.typeParameters[1],T),"next"===r?Xd(E.typeParameters[2],T):void 0)}}for(var S=0,x=g;S<x.length;S++){var L=x[S];"throw"!==r&&e.some(L.parameters)&&(d=e.append(d,hv(L,0))),p=e.append(p,el(L))}if("throw"!==r){var D=d?xu(d):we;if("next"===r)m=D;else if("return"===r){var A=t.resolveIterationType(D,i)||Ie;f=e.append(f,A)}}var C=p?ku(p):Ze,I=function(e){if(Va(e))return At;var n=KE(e,"iterationTypesOfIteratorResult");if(n)return n;if(Io(e,et||(et=Jl("IteratorYieldResult",1,!1))||gn))return HE(e,"iterationTypesOfIteratorResult",VE(Ll(e)[0],void 0,void 0));if(Io(e,nt||(nt=Jl("IteratorReturnResult",1,!1))||gn))return HE(e,"iterationTypesOfIteratorResult",VE(void 0,Ll(e)[0],void 0));var t=w_(e,tT),r=t!==Ze?Ua(t,"value"):void 0,i=w_(e,rT),a=i!==Ze?Ua(i,"value"):void 0;return HE(e,"iterationTypesOfIteratorResult",r||a?VE(r,a||Qe,void 0):Dt)}(t.resolveIterationType(C,i)||Ie);return I===Dt?(i&&xr(i,t.mustHaveAValueDiagnostic,r),_=Ie,f=e.append(f,Ie)):(_=I.yieldType,f=e.append(f,I.returnType)),VE(_,xu(f),m)}}function aT(e,n,t){var r=jE([iT(e,n,"next",t),iT(e,n,"return",t),iT(e,n,"throw",t)]);return HE(e,n.iteratorCacheKey,r)}function oT(e,n,t){if(!Va(n)){var r=sT(n,t);return r&&r[G(e)]}}function sT(e,n){if(Va(e))return At;var t=n?Nt:kt;return WE(e,n?2:1,void 0)||$E(e,t,void 0)}function cT(e,n){var t,r,i=!!(2&n);return 1&n?null!==(t=oT(1,e,i))&&void 0!==t?t:Re:i?null!==(r=Xb(e))&&void 0!==r?r:Re:e}function lT(n,t){var r=cT(t,e.getFunctionFlags(n));return!!r&&Xv(r,16387)}function uT(n,t){var r=kc(n);if(0!==r.length){for(var i=0,a=Zs(n);i<a.length;i++){var o=a[i];t&&4194304&o.flags||dT(n,o,Fu(o,8576,!0),Co(o))}var s=n.symbol.valueDeclaration;if(s&&e.isClassLike(s))for(var c=0,l=s.members;c<l.length;c++){var u=l[c];if(!e.isStatic(u)&&!_s(u)){var d=Ui(u);dT(n,d,xb(u.name.expression),Co(d))}}if(r.length>1)for(var p=0,f=r;p<f.length;p++)pT(n,f[p])}}function dT(n,t,r,i){var a=t.valueDeclaration,o=e.getNameOfDeclaration(a);if(!o||!e.isPrivateIdentifier(o))for(var s=Pc(n,r),c=2&e.getObjectFlags(n)?e.getDeclarationOfKind(n.symbol,256):void 0,l=a&&219===a.kind||o&&160===o.kind||Vi(t)===n.symbol?a:void 0,u=function(r){var a=r.declaration&&Vi(Ui(r.declaration))===n.symbol?r.declaration:void 0,o=l||a||(c&&!e.some(Ko(n),(function(e){return!!$s(e,t.escapedName)&&!!Oc(e,r.keyType)}))?c:void 0);o&&!Ap(i,r.type)&&xr(o,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,va(t),Ea(i),Ea(r.keyType),Ea(r.type))},d=0,p=s;d<p.length;d++)u(p[d])}function pT(n,t){for(var r=t.declaration,i=Pc(n,t.keyType),a=2&e.getObjectFlags(n)?e.getDeclarationOfKind(n.symbol,256):void 0,o=r&&Vi(Ui(r))===n.symbol?r:void 0,s=function(r){if(r===t)return"continue";var i=r.declaration&&Vi(Ui(r.declaration))===n.symbol?r.declaration:void 0,s=o||i||(a&&!e.some(Ko(n),(function(e){return!!Rc(e,t.keyType)&&!!Oc(e,r.keyType)}))?a:void 0);s&&!Ap(t.type,r.type)&&xr(s,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,Ea(t.keyType),Ea(t.type),Ea(r.keyType),Ea(r.type))},c=0,l=i;c<l.length;c++)s(l[c])}function fT(e,n){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":xr(e,n,e.escapedText)}}function mT(n){if(n)for(var r=!1,i=0;i<n.length;i++){var a=n[i];if(Cb(a),t){a.default?(r=!0,s=a.default,c=n,l=i,function n(t){if(176===t.kind){var r=Ul(t);if(262144&r.flags)for(var i=l;i<c.length;i++)r.symbol===Ui(c[i])&&xr(t,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(t,n)}(s)):r&&xr(a,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var o=0;o<i;o++)n[o].symbol===a.symbol&&xr(a.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(a.name))}}var s,c,l}function _T(n){if(!n.declarations||1!==n.declarations.length){var t=Br(n);if(!t.typeParametersChecked){t.typeParametersChecked=!0;var r=function(n){return e.filter(n.declarations,(function(e){return 255===e.kind||256===e.kind}))}(n);if(!r||r.length<=1)return;if(!function(n,t){for(var r=e.length(t),i=Hc(t),a=0,o=n;a<o.length;a++){var s=o[a],c=e.getEffectiveTypeParameterDeclarations(s),l=c.length;if(l<i||l>r)return!1;for(var u=0;u<l;u++){var d=c[u],p=t[u];if(d.name.escapedText!==p.symbol.escapedName)return!1;var f=e.getEffectiveConstraintOfTypeParameter(d),m=f&&jd(f),_=rc(p);if(m&&_&&!Tp(m,_))return!1;var g=d.default&&jd(d.default),y=fc(p);if(g&&y&&!Tp(g,y))return!1}}return!0}(r,ns(n).localTypeParameters))for(var i=va(n),a=0,o=r;a<o.length;a++)xr(o[a].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}function gT(n){!function(n){var t=e.getSourceFileOfNode(n);(function(n){var t=!1,r=!1;if(!VS(n)&&n.heritageClauses)for(var i=0,a=n.heritageClauses;i<a.length;i++){var o=a[i];if(94===o.token){if(t)return dx(o,e.Diagnostics.extends_clause_already_seen);if(r)return dx(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return dx(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(117===o.token),r)return dx(o,e.Diagnostics.implements_clause_already_seen);r=!0}qS(o)}})(n)||HS(n.typeParameters,t)}(n),rE(n),DE(n,n.name),mT(e.getEffectiveTypeParameterDeclarations(n)),Wb(n);var r=Ui(n),i=ns(r),a=Es(i),o=Ao(r);_T(r),Hb(r),function(n){for(var t=new e.Map,r=new e.Map,i=new e.Map,a=0,o=n.members;a<o.length;a++){var s=o[a];if(169===s.kind)for(var c=0,l=s.parameters;c<l.length;c++){var u=l[c];e.isParameterPropertyDeclaration(u,s)&&!e.isBindingPattern(u.name)&&y(t,u.name,u.name.escapedText,3)}else{var d=e.isStatic(s),p=s.name;if(!p)continue;var f=e.isPrivateIdentifier(p),m=f&&d?16:0,_=f?i:d?r:t,g=p&&e.getPropertyNameForPropertyNameNode(p);if(g)switch(s.kind){case 170:y(_,p,g,1|m);break;case 171:y(_,p,g,2|m);break;case 165:y(_,p,g,3|m);break;case 167:y(_,p,g,8|m)}}}function y(n,t,r,i){var a=n.get(r);if(a)if((16&a)!=(16&i))xr(t,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(t));else{var o=!!(8&a),s=!!(8&i);o||s?o!==s&&xr(t,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(t)):a&i&-17?xr(t,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(t)):n.set(r,a|i)}else n.set(r,i)}}(n),8388608&n.flags||function(n){for(var t=0,r=n.members;t<r.length;t++){var i=r[t],a=i.name;if(e.isStatic(i)&&a){var o=e.getPropertyNameForPropertyNameNode(a);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":xr(a,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,Ra(Ui(n)))}}}}(n);var s=e.getEffectiveBaseTypeNode(n);if(s){e.forEach(s.typeArguments,wT),j<2&&BS(s.parent,1);var c=e.getClassExtendsHeritageElement(n);c&&c!==s&&Ab(c.expression);var l=Ko(i);if(l.length&&t){var u=l[0],d=Vo(i),p=mc(d);if(function(n,t){var r=Dc(n,1);if(r.length){var i=r[0].declaration;i&&e.hasEffectiveModifier(i,8)&&(JT(t,e.getClassLikeDeclarationOfSymbol(n.symbol))||xr(t,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Ti(n.symbol)))}}(p,s),wT(s.expression),e.some(s.typeArguments)){e.forEach(s.typeArguments,wT);for(var f=0,m=Bo(p,s.typeArguments,s);f<m.length&&Gb(s,m[f].typeParameters);f++);}if(kp(a,E=Es(u,i.thisType),void 0)?kp(o,Ep(p),n.name||n,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):yT(n,a,E,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&d.flags&&(Mo(o)?Dc(d,1).some((function(e){return 4&e.flags}))&&!e.hasSyntacticModifier(n,128)&&xr(n.name||n,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):xr(n.name||n,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(p.symbol&&32&p.symbol.flags||8650752&d.flags)){var _=Uo(p,s.typeArguments,s);e.forEach(_,(function(e){return!ev(e.declaration)&&!Tp(el(e),u)}))&&xr(s.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(n,t){var r,i;e:for(var a=0,o=nc(t);a<o.length;a++){var s=o[a],c=hT(s);if(!(4194304&c.flags)){var l=$s(n,c.escapedName);if(l){var u=hT(l),d=e.getDeclarationModifierFlagsFromSymbol(c);if(e.Debug.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===c){var p=e.getClassLikeDeclarationOfSymbol(n.symbol);if(128&d&&(!p||!e.hasSyntacticModifier(p,128))){for(var f=0,m=Ko(n);f<m.length;f++){var _=m[f];if(_!==t){var g=$s(_,c.escapedName),y=g&&hT(g);if(y&&y!==c)continue e}}224===p.kind?xr(p,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,va(s),Ea(t)):xr(p,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Ea(n),va(s),Ea(t))}}else{var h=e.getDeclarationModifierFlagsFromSymbol(u);if(8&d||8&h)continue;var v=void 0,b=98308&c.flags,E=98308&u.flags;if(b&&E){if(128&d&&!(c.valueDeclaration&&e.isPropertyDeclaration(c.valueDeclaration)&&c.valueDeclaration.initializer)||c.valueDeclaration&&256===c.valueDeclaration.parent.kind||u.valueDeclaration&&e.isBinaryExpression(u.valueDeclaration))continue;var T=4!==b&&4===E;if(T||4===b&&4!==E){var S=T?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;xr(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,S,va(c),Ea(t),Ea(n))}else if(H){var x=null===(r=u.declarations)||void 0===r?void 0:r.find((function(e){return 165===e.kind&&!e.initializer}));if(x&&!(33554432&u.flags)&&!(128&d)&&!(128&h)&&!(null===(i=u.declarations)||void 0===i?void 0:i.some((function(e){return!!(8388608&e.flags)})))){var L=qi(e.getClassLikeDeclarationOfSymbol(n.symbol)),D=x.name;if(x.exclamationToken||!L||!e.isIdentifier(D)||!z||!bT(D,n,L)){var A=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;xr(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,A,va(c),Ea(t))}}}continue}if(Iy(c)){if(Iy(u)||4&u.flags)continue;e.Debug.assert(!!(98304&u.flags)),v=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else v=98304&c.flags?e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;xr(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,v,Ea(t),va(c),Ea(n))}}}}}(i,u)}}!function(n,t,r,i){for(var a=!!(8388608&n.flags),o=e.getEffectiveBaseTypeNode(n)&&Ko(t),s=(null==o?void 0:o.length)?Es(e.first(o),t.thisType):void 0,c=Vo(t),l=function(n){if(e.hasAmbientModifier(n))return"continue";e.isConstructorDeclaration(n)&&e.forEach(n.parameters,(function(t){e.isParameterPropertyDeclaration(t,n)&&p(t,!0)})),p(n)},u=0,d=n.members;u<d.length;u++)l(d[u]);function p(n,o){var l=e.hasOverrideModifier(n),u=e.isStatic(n);if(s&&(l||V.noImplicitOverride)){var d=n.name&&QT(n.name)||QT(n);if(!d)return;var p=u?c:s,f=xc(u?i:r,d.escapedName),m=xc(p,d.escapedName),_=Ea(s);if(f&&!m&&l){var g=Zy(e.symbolName(d),p);g?xr(n,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,_,va(g)):xr(n,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,_)}else if(f&&(null==m?void 0:m.declarations)&&V.noImplicitOverride&&!a){var y=e.some(m.declarations,(function(n){return e.hasAbstractModifier(n)}));if(l)return;y?e.hasAbstractModifier(n)&&y&&xr(n,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,_):xr(n,o?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,_)}}else if(l){var h=Ea(t);xr(n,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,h)}}}(n,i,a,o);var g=e.getEffectiveImplementsTypeNodes(n);if(g)for(var y=0,h=g;y<h.length;y++){var v=h[y];if(e.isEntityNameExpression(v.expression)&&!e.isOptionalChain(v.expression)||xr(v.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Ub(v),t){var b=vc(jd(v));if(b!==Re)if(Wo(b)){var E,T=b.symbol&&32&b.symbol.flags?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;kp(a,E=Es(b,i.thisType),void 0)||yT(n,a,E,T)}else xr(v,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}t&&(uT(i),uT(o,!0),Ob(n),function(n){if(z&&X&&!(8388608&n.flags))for(var t=qi(n),r=0,i=n.members;r<i.length;r++){var a=i[r];if(!(2&e.getEffectiveModifierFlags(a))&&!e.isStatic(a)&&vT(a)){var o=a.name;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)){var s=Ao(Ui(a));3&s.flags||32768&Jf(s)||t&&bT(o,s,t)||xr(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}(n))}function yT(n,t,r,i){for(var a=!1,o=function(n){if(e.isStatic(n))return"continue";var i=n.name&&QT(n.name)||QT(n);if(i){var o=xc(t,i.escapedName),s=xc(r,i.escapedName);o&&s&&(kp(Ao(o),Ao(s),n.name||n,void 0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,va(i),Ea(t),Ea(r))}))||(a=!0))}},s=0,c=n.members;s<c.length;s++)o(c[s]);a||kp(t,r,n.name||n,i)}function hT(n){return 1&e.getCheckFlags(n)?n.target:n}function vT(n){return 165===n.kind&&!e.hasAbstractModifier(n)&&!n.exclamationToken&&!n.initializer}function bT(n,t,r){var i=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);return e.setParent(i.expression,i),e.setParent(i,r),i.flowNode=r.returnFlowNode,!(32768&Jf(og(i,t,Qf(t))))}function ET(e){var n=Ur(e);if(!(16384&n.flags)){n.flags|=16384;for(var t=0,r=0,i=e.members;r<i.length;r++){var a=i[r],o=TT(a,t);Ur(a).enumMemberValue=o,t="number"==typeof o?o+1:void 0}}}function TT(n,t){if(e.isComputedNonLiteralName(n.name))xr(n.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var r=e.getTextOfPropertyName(n.name);ty(r)&&!e.isInfinityOrNaNString(r)&&xr(n.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return n.initializer?function(n){var t=Yo(Ui(n.parent)),r=e.isEnumConst(n.parent),i=n.initializer,a=1!==t||Xo(n)?function t(r){switch(r.kind){case 217:var i=t(r.operand);if("number"==typeof i)switch(r.operator){case 39:return i;case 40:return-i;case 54:return~i}break;case 219:var a=t(r.left),o=t(r.right);if("number"==typeof a&&"number"==typeof o)switch(r.operatorToken.kind){case 51:return a|o;case 50:return a&o;case 48:return a>>o;case 49:return a>>>o;case 47:return a<<o;case 52:return a^o;case 41:return a*o;case 43:return a/o;case 39:return a+o;case 40:return a-o;case 44:return a%o;case 42:return Math.pow(a,o)}else if("string"==typeof a&&"string"==typeof o&&39===r.operatorToken.kind)return a+o;break;case 10:case 14:return r.text;case 8:return gx(r),+r.text;case 210:return t(r.expression);case 79:var c=r;return e.isInfinityOrNaNString(c.escapedText)?+c.escapedText:e.nodeIsMissing(r)?0:s(r,Ui(n.parent),c.escapedText);case 205:case 204:var l=r;if(ST(l)){var u=xb(l.expression);if(u.symbol&&384&u.symbol.flags){var d;return d=204===l.kind?l.name.escapedText:e.escapeLeadingUnderscores(e.cast(l.argumentExpression,e.isLiteralExpression).text),s(r,u.symbol,d)}}}}(i):void 0;if(void 0!==a)r&&"number"==typeof a&&!isFinite(a)&&xr(i,isNaN(a)?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(1===t)return xr(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(r)xr(i,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(8388608&n.parent.flags)xr(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var o=Ab(i);Yv(o,296)?kp(o,ns(Ui(n.parent)),i,void 0):xr(i,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,Ea(o))}}return a;function s(t,r,i){var a=r.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==n)return o&&Kr(o,n)?SS(o):(xr(t,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);xr(t,e.Diagnostics.Property_0_is_used_before_being_assigned,va(a))}}}(n):8388608&n.parent.flags&&!e.isEnumConst(n.parent)&&0===Yo(Ui(n.parent))?void 0:void 0!==t?t:void xr(n.name,e.Diagnostics.Enum_member_must_have_initializer)}function ST(n){return 79===n.kind||204===n.kind&&ST(n.expression)||205===n.kind&&ST(n.expression)&&e.isStringLiteralLike(n.argumentExpression)}function xT(n){e.isPrivateIdentifier(n.name)&&xr(n,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function LT(n,t){var r;switch(n.kind){case 235:for(var i=0,a=n.declarationList.declarations;i<a.length;i++)LT(a[i],t);break;case 269:case 270:dx(n,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 263:case 264:dx(n,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 201:case 252:var o=n.name;if(e.isBindingPattern(o)){for(var s=0,c=o.elements;s<c.length;s++)LT(c[s],t);break}case 255:case 258:case 254:case 256:case 259:case 257:if(t)return;var l=Ui(n);if(l){var u=!(33554432&l.flags);u||(u=!!(null===(r=l.parent)||void 0===r?void 0:r.declarations)&&e.isExternalModuleAugmentation(l.parent.declarations[0]))}}}function DT(n){var t=e.getExternalModuleName(n);if(!t||e.nodeIsMissing(t))return!1;if(!e.isStringLiteral(t))return xr(t,e.Diagnostics.String_literal_expected),!1;var r=260===n.parent.kind&&e.isAmbientModule(n.parent.parent);return 300===n.parent.kind||r?!(r&&e.isExternalModuleNameRelative(t.text)&&!Ia(n)&&(xr(n,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),1)):(xr(t,270===n.kind?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1)}function AT(n){var t,r=Ui(n),i=_i(r);if(i!==Ae){var a=(1160127&(r=Bi(r.exportSymbol||r)).flags?111551:0)|(788968&r.flags?788968:0)|(1920&r.flags?1920:0);i.flags&a&&xr(n,273===n.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,va(r)),!V.isolatedModules||273!==n.kind||n.parent.parent.isTypeOnly||111551&i.flags||8388608&n.flags||xr(n,e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type),e.isImportSpecifier(n)&&(null===(t=i.declarations)||void 0===t?void 0:t.every((function(n){return!!(134217728&e.getCombinedNodeFlags(n))})))&&Ir(n.name,i.declarations,r.escapedName)}}function CT(n){DE(n,n.name),AT(n),268===n.kind&&"default"===e.idText(n.propertyName||n.name)&&V.esModuleInterop&&K!==e.ModuleKind.System&&K<e.ModuleKind.ES2015&&BS(n,131072)}function IT(e,n){var t=300===e.parent.kind||260===e.parent.kind||259===e.parent.kind;return t||dx(e,n),!t}function NT(n){return e.isImportDeclaration(n)&&n.importClause&&!n.importClause.isTypeOnly&&(t=n.importClause,e.forEachImportClauseDeclaration(t,(function(e){return!!Ui(e).isReferenced})))&&!gS(n.importClause,!0)&&!function(n){return e.forEachImportClauseDeclaration(n,(function(e){return!!Br(Ui(e)).constEnumReferenced}))}(n.importClause);var t}function kT(n){return e.isImportEqualsDeclaration(n)&&e.isExternalModuleReference(n.moduleReference)&&!n.isTypeOnly&&Ui(n).isReferenced&&!gS(n,!1)&&!Br(Ui(n)).constEnumReferenced}function RT(n){if(AT(n),e.getEmitDeclarations(V)&&Pa(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)V.esModuleInterop&&K!==e.ModuleKind.System&&K<e.ModuleKind.ES2015&&"default"===e.idText(n.propertyName||n.name)&&BS(n,131072);else{var t=n.propertyName||n.name,r=Wr(t,t.escapedText,2998271,void 0,void 0,!0);if(r&&(r===oe||r===se||r.declarations&&Vr(Ba(r.declarations[0]))))xr(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(t));else{vi(n);var i=r&&(2097152&r.flags?_i(r):r);(!i||i===Ae||111551&i.flags)&&ub(n.propertyName||n.name)}}}function OT(n){var t=Ui(n),r=Br(t);if(!r.exportsChecked){var i=t.exports.get("export=");if(i&&function(n){return e.forEachEntry(n.exports,(function(e,n){return"export="!==n}))}(t)){var a=ti(i)||i.valueDeclaration;!a||Ia(a)||e.isInJSFile(a)||xr(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=Mi(t);o&&o.forEach((function(n,t){var r=n.declarations,i=n.flags;if("__export"!==t&&!(1984&i)){var a=e.countWhere(r,C);if(!(524288&i&&a<=2)&&a>1&&!PT(r))for(var o=0,s=r;o<s.length;o++){var c=s[o];M(c)&&ur.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(t)))}}})),r.exportsChecked=!0}}function PT(n){return n&&n.length>1&&n.every((function(n){return e.isInJSFile(n)&&e.isAccessExpression(n)&&(e.isExportsIdentifier(n.expression)||e.isModuleExportsAccessExpression(n.expression))}))}function wT(n){if(n){var i=d;d=n,x=0,function(n){e.isInJSFile(n)&&e.forEach(n.jsDoc,(function(n){var t=n.tags;return e.forEach(t,wT)}));var i=n.kind;if(r)switch(i){case 259:case 255:case 256:case 254:r.throwIfCancellationRequested()}switch(i>=235&&i<=251&&n.flowNode&&!ng(n.flowNode)&&Dr(!1===V.allowUnreachableCode,n,e.Diagnostics.Unreachable_code_detected),i){case 161:return Cb(n);case 162:return Ib(n);case 165:return Pb(n);case 164:return function(n){return e.isPrivateIdentifier(n.name)&&xr(n,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Pb(n)}(n);case 178:case 177:case 172:case 173:case 174:return kb(n);case 167:case 166:return function(n){rx(n)||YS(n.name),aE(n),e.hasSyntacticModifier(n,128)&&167===n.kind&&n.body&&xr(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)&&xr(n,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),wb(n)}(n);case 168:return function(n){VS(n),e.forEachChild(n,wT)}(n);case 169:return function(n){kb(n),function(n){var t=e.isInJSFile(n)?e.getJSDocTypeParameterDeclarations(n):void 0,r=n.typeParameters||t&&e.firstOrUndefined(t);if(r){var i=r.pos===r.end?r.pos:e.skipTrivia(e.getSourceFileOfNode(n).text,r.pos);return px(n,i,r.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(n)||function(n){var t=e.getEffectiveReturnTypeNode(n);t&&fx(t,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(n),wT(n.body);var r=Ui(n);if(n===e.getDeclarationOfKind(r,n.kind)&&Hb(r),!e.nodeIsMissing(n.body)&&t){var i=n.parent;if(e.getClassExtendsHeritageElement(i)){gg(n.parent,i);var a=hg(i),o=yg(n.body);if(o){if(a&&xr(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==V.target||!H)&&(e.some(n.parent.members,(function(n){return!!e.isPrivateIdentifierClassElementDeclaration(n)||165===n.kind&&!e.isStatic(n)&&!!n.initializer}))||e.some(n.parameters,(function(n){return e.hasSyntacticModifier(n,16476)})))){for(var s=void 0,c=0,l=n.body.statements;c<l.length;c++){var u=l[c];if(236===u.kind&&e.isSuperCall(u.expression)){s=u;break}if(!e.isPrologueDirective(u))break}s||xr(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 a||xr(n,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}(n);case 170:case 171:return Mb(n);case 176:return Ub(n);case 175:return function(n){var t=function(e){switch(e.parent.kind){case 212:case 172:case 254:case 211:case 177:case 167:case 166:var n=e.parent;if(e===n.type)return n}}(n);if(t){var r=zc(t),i=Zc(r);if(i){wT(n.type);var a=n.parameterName;if(0===i.kind||2===i.kind)Bd(a);else if(i.parameterIndex>=0)B(r)&&i.parameterIndex===r.parameters.length-1?xr(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&kp(i.type,Ao(r.parameters[i.parameterIndex]),n.type,void 0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)}));else if(a){for(var o=!1,s=0,c=t.parameters;s<c.length;s++){var l=c[s].name;if(e.isBindingPattern(l)&&Nb(l,a,i.parameterName)){o=!0;break}}o||xr(n.parameterName,e.Diagnostics.Cannot_find_parameter_0,i.parameterName)}}}else xr(n,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(n);case 179:return function(e){jl(e)}(n);case 180:return function(n){e.forEach(n.members,wT),t&&(uT(Ed(n)),Ob(n),Rb(n))}(n);case 181:return function(e){wT(e.elementType)}(n);case 182:return function(n){for(var t=n.elements,r=!1,i=!1,a=e.some(t,e.isNamedTupleMember),o=0,s=t;o<s.length;o++){var c=s[o];if(195!==c.kind&&a){fx(c,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var l=iu(c);if(8&l){var u=jd(c.type);if(!Lf(u)){xr(c,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(Ef(u)||Uf(u)&&4&u.target.combinedFlags)&&(i=!0)}else if(4&l){if(i){fx(c,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}i=!0}else if(2&l){if(i){fx(c,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}r=!0}else if(r){fx(c,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(n.elements,wT),jd(n)}(n);case 185:case 186:return function(n){e.forEach(n.types,wT),jd(n)}(n);case 189:case 183:case 184:return wT(n.type);case 190:return function(e){Bd(e)}(n);case 191:return function(n){!function(n){if(152===n.operator){if(149!==n.type.kind)return fx(n.type,e.Diagnostics._0_expected,e.tokenToString(149));var t=e.walkUpParenthesizedTypes(n.parent);switch(e.isInJSFile(t)&&e.isJSDocTypeExpression(t)&&(t=t.parent,e.isJSDocTypeTag(t)&&(t=t.parent.parent)),t.kind){case 252:var r=t;if(79!==r.name.kind)return fx(n,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(r))return fx(n,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&r.parent.flags))return fx(t.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 165:if(!e.isStatic(t)||!e.hasEffectiveReadonlyModifier(t))return fx(t.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(t,64))return fx(t.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:fx(n,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else 143===n.operator&&181!==n.type.kind&&182!==n.type.kind&&dx(n,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(149))}(n),wT(n.type)}(n);case 187:return function(n){e.forEachChild(n,wT)}(n);case 188:return function(n){e.findAncestor(n,(function(e){return e.parent&&187===e.parent.kind&&e.parent.extendsType===e}))||fx(n,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),wT(n.typeParameter),oE(n)}(n);case 196:return function(e){for(var n=0,t=e.templateSpans;n<t.length;n++){var r=t[n];wT(r.type),kp(jd(r.type),ln,r.type)}jd(e)}(n);case 198:return function(e){wT(e.argument),jd(e)}(n);case 195:return function(n){n.dotDotDotToken&&n.questionToken&&fx(n,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),183===n.type.kind&&fx(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),184===n.type.kind&&fx(n.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),wT(n.type),jd(n)}(n);case 323:return function(n){var t=e.getEffectiveJSDocHost(n);if(t&&(e.isClassDeclaration(t)||e.isClassExpression(t))){var r=e.getJSDocTags(t).filter(e.isJSDocAugmentsTag);e.Debug.assert(r.length>0),r.length>1&&xr(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=iE(n.class.expression),a=e.getClassExtendsHeritageElement(t);if(a){var o=iE(a.expression);o&&i.escapedText!==o.escapedText&&xr(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(n.tagName),e.idText(i),e.idText(o))}}else xr(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}(n);case 324:return function(n){var t=e.getEffectiveJSDocHost(n);t&&(e.isClassDeclaration(t)||e.isClassExpression(t))||xr(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}(n);case 340:case 333:case 334:return function(n){n.typeExpression||xr(n.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&fT(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),wT(n.typeExpression)}(n);case 339:return function(e){wT(e.constraint);for(var n=0,t=e.typeParameters;n<t.length;n++)wT(t[n])}(n);case 338:return function(e){wT(e.typeExpression)}(n);case 335:return function(n){if(wT(n.typeExpression),!e.getParameterSymbolFromJSDoc(n)){var t=e.getHostSignatureFromJSDoc(n);if(t){var r=e.getJSDocTags(t).filter(e.isJSDocParameterTag).indexOf(n);if(r>-1&&r<t.parameters.length&&e.isBindingPattern(t.parameters[r].name))return;qc(t)?e.findLast(e.getJSDocTags(t),e.isJSDocParameterTag)===n&&n.typeExpression&&n.typeExpression.type&&!Ef(jd(n.typeExpression.type))&&xr(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(159===n.name.kind?n.name.right:n.name)):e.isQualifiedName(n.name)?xr(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)):xr(n.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(n.name))}}}(n);case 342:return function(e){wT(e.typeExpression)}(n);case 312:!function(n){!t||n.type||e.isJSDocConstructSignature(n)||ym(n,Ie),kb(n)}(n);case 310:case 309:case 307:case 308:case 317:return MT(n),void e.forEachChild(n,wT);case 313:return void function(n){MT(n),wT(n.type);var t=n.parent;if(e.isParameter(t)&&e.isJSDocFunctionType(t.parent))e.last(t.parent.parameters)!==t&&xr(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);else{e.isJSDocTypeExpression(t)||xr(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=n.parent.parent;if(e.isJSDocParameterTag(r)){var i=e.getParameterSymbolFromJSDoc(r);if(i){var a=e.getHostSignatureFromJSDoc(r);a&&e.last(a.parameters).symbol===i||xr(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}else xr(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}}(n);case 304:return wT(n.type);case 192:return function(e){wT(e.objectType),wT(e.indexType),Vb(cd(e),e)}(n);case 193:return function(n){wT(n.typeParameter),wT(n.nameType),wT(n.type),n.type||ym(n,Ie);var t=ld(n),r=js(t);r?kp(r,sn,n.nameType):kp(Vs(t),sn,e.getEffectiveConstraintOfTypeParameter(n.typeParameter))}(n);case 254:return function(e){t&&(aE(e),QS(e),DE(e,e.name))}(n);case 233:case 260:return bE(n);case 235:return RE(n);case 236:return function(e){_x(e),Ab(e.expression)}(n);case 237:return function(n){_x(n);var t=wE(n.expression);OE(n.expression,t,n.thenStatement),wT(n.thenStatement),234===n.thenStatement.kind&&xr(n.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),wT(n.elseStatement)}(n);case 238:return function(e){_x(e),wT(e.statement),wE(e.expression)}(n);case 239:return function(e){_x(e),wE(e.expression),wT(e.statement)}(n);case 240:return function(n){_x(n)||n.initializer&&253===n.initializer.kind&&cx(n.initializer),n.initializer&&(253===n.initializer.kind?e.forEach(n.initializer.declarations,kE):Ab(n.initializer)),n.condition&&wE(n.condition),n.incrementor&&Ab(n.incrementor),wT(n.statement),n.locals&&oE(n)}(n);case 241:return function(n){ex(n);var t,r=Py(Ab(n.expression));if(253===n.initializer.kind){var i=n.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&xr(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),ME(n)}else{var a=n.initializer,o=Ab(a);202===a.kind||203===a.kind?xr(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Ap(131072&(t=Bu(Gu(r))).flags?je:t,o)?Jv(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):xr(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}r!==Ze&&Yv(r,126091264)||xr(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,Ea(r)),wT(n.statement),n.locals&&oE(n)}(n);case 242:return function(n){ex(n);var t=e.getContainingFunctionOrClassStaticBlock(n);if(n.awaitModifier?t&&e.isClassStaticBlockDeclaration(t)?fx(n.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block):2==(6&e.getFunctionFlags(t))&&j<99&&BS(n,16384):V.downlevelIteration&&j<2&&BS(n,256),253===n.initializer.kind)ME(n);else{var r=n.initializer,i=FE(n);if(202===r.kind||203===r.kind)tb(r,i||Re);else{var a=Ab(r);Jv(r,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),i&&Rp(i,a,r,n.expression)}}wT(n.statement),n.locals&&oE(n)}(n);case 243:case 244:return function(n){_x(n)||function(n){for(var t=n;t;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(t))return fx(n,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 248:if(n.label&&t.label.escapedText===n.label.escapedText)return!(243!==n.kind||e.isIterationStatement(t.statement,!0))&&fx(n,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 247:if(244===n.kind&&!n.label)return!1;break;default:if(e.isIterationStatement(t,!1)&&!n.label)return!1}t=t.parent}n.label?fx(n,244===n.kind?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):fx(n,244===n.kind?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)}(n)}(n);case 245:return function(n){var t;if(!_x(n)){var r=e.getContainingFunctionOrClassStaticBlock(n);if(r&&e.isClassStaticBlockDeclaration(r))dx(n,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);else if(r){var i=el(zc(r)),a=e.getFunctionFlags(r);if(z||n.expression||131072&i.flags){var o=n.expression?ub(n.expression):Me;if(171===r.kind)n.expression&&xr(n,e.Diagnostics.Setters_cannot_return_a_value);else if(169===r.kind)n.expression&&!Rp(o,i,n,n.expression)&&xr(n,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(nl(r)){var s=null!==(t=cT(i,a))&&void 0!==t?t:i,c=2&a?qb(o,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o;s&&Rp(c,s,n,n.expression)}}else 169!==r.kind&&V.noImplicitReturns&&!lT(r,i)&&xr(n,e.Diagnostics.Not_all_code_paths_return_a_value)}else dx(n,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(n);case 246:return function(n){_x(n)||32768&n.flags&&dx(n,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),Ab(n.expression);var t=e.getSourceFileOfNode(n);if(!ux(t)){var r=e.getSpanOfTokenAtPosition(t,n.pos).start;px(t,r,n.statement.pos-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(n);case 247:return function(n){var r;_x(n);var i=!1,a=Ab(n.expression),o=Pf(a);e.forEach(n.caseBlock.clauses,(function(n){if(288!==n.kind||i||(void 0===r?r=n:(fx(n,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),i=!0)),t&&287===n.kind){var s=Ab(n.expression),c=Pf(s),l=a;c&&o||(s=c?wf(s):s,l=wf(a)),ib(l,s)||Vp(s,l,n.expression,void 0)}e.forEach(n.statements,wT),V.noFallthroughCasesInSwitch&&n.fallthroughFlowNode&&ng(n.fallthroughFlowNode)&&xr(n,e.Diagnostics.Fallthrough_case_in_switch)})),n.caseBlock.locals&&oE(n.caseBlock)}(n);case 248:return function(n){_x(n)||e.findAncestor(n.parent,(function(t){return e.isFunctionLike(t)?"quit":248===t.kind&&t.label.escapedText===n.label.escapedText&&(fx(n.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(n.label)),!0)})),wT(n.statement)}(n);case 249:return function(n){_x(n)||e.isIdentifier(n.expression)&&!n.expression.escapedText&&function(n,t,r,i,a){var o=e.getSourceFileOfNode(n);if(!ux(o)){var s=e.getSpanOfTokenAtPosition(o,n.pos);ur.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,t,void 0,void 0,void 0))}}(n,e.Diagnostics.Line_break_not_permitted_here),n.expression&&Ab(n.expression)}(n);case 250:return function(n){_x(n),bE(n.tryBlock);var t=n.catchClause;if(t){if(t.variableDeclaration){var r=t.variableDeclaration,i=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(r));if(i){var a=eo(r,!1);!a||3&a.flags||dx(i,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(r.initializer)dx(r.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var o=t.block.locals;o&&e.forEachKey(t.locals,(function(n){var t=o.get(n);(null==t?void 0:t.valueDeclaration)&&0!=(2&t.flags)&&fx(t.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,n)}))}}bE(t.block)}n.finallyBlock&&bE(n.finallyBlock)}(n);case 252:return kE(n);case 201:return function(n){return function(n){if(n.dotDotDotToken){var t=n.parent.elements;if(n!==e.last(t))return fx(n,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(KS(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return fx(n.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}n.dotDotDotToken&&n.initializer&&px(n,n.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}(n),CE(n)}(n);case 255:return function(n){e.some(n.decorators)&&e.some(n.members,(function(n){return e.hasStaticModifier(n)&&e.isPrivateIdentifierClassElementDeclaration(n)}))&&fx(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)||dx(n,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),gT(n),e.forEach(n.members,wT),oE(n)}(n);case 256:return function(n){if(VS(n)||function(n){var t=!1;if(n.heritageClauses)for(var r=0,i=n.heritageClauses;r<i.length;r++){var a=i[r];if(94!==a.token)return e.Debug.assert(117===a.token),dx(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(t)return dx(a,e.Diagnostics.extends_clause_already_seen);t=!0,qS(a)}}(n),mT(n.typeParameters),t){fT(n.name,e.Diagnostics.Interface_name_cannot_be_0),Wb(n);var r=Ui(n);if(_T(r),n===e.getDeclarationOfKind(r,256)){var i=ns(r),a=Es(i);if(function(n,t){var r=Ko(n);if(r.length<2)return!0;var i=new e.Map;e.forEach(us(n).declaredProperties,(function(e){i.set(e.escapedName,{prop:e,containingType:n})}));for(var a=!0,o=0,s=r;o<s.length;o++)for(var c=s[o],l=0,u=nc(Es(c,n.thisType));l<u.length;l++){var d=u[l],p=i.get(d.escapedName);if(p){if(p.containingType!==n&&!yf(p.prop,d)){a=!1;var f=Ea(p.containingType),m=Ea(c),_=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,va(d),f,m);_=e.chainDiagnosticMessages(_,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Ea(n),f,m),ur.add(e.createDiagnosticForNodeFromMessageChain(t,_))}}else i.set(d.escapedName,{prop:d,containingType:c})}return a}(i,n.name)){for(var o=0,s=Ko(i);o<s.length;o++)kp(a,Es(s[o],i.thisType),n.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1);uT(i)}}Rb(n)}e.forEach(e.getInterfaceBaseTypeNodes(n),(function(n){e.isEntityNameExpression(n.expression)&&!e.isOptionalChain(n.expression)||xr(n.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Ub(n)})),e.forEach(n.members,wT),t&&(Ob(n),oE(n))}(n);case 257:return function(n){VS(n),fT(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),Wb(n),mT(n.typeParameters),137===n.type.kind?N.has(n.name.escapedText)&&1===e.length(n.typeParameters)||xr(n.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(wT(n.type),oE(n))}(n);case 258:return function(n){if(t){VS(n),DE(n,n.name),Wb(n),n.members.forEach(xT),ET(n);var r=Ui(n);if(n===e.getDeclarationOfKind(r,n.kind)){if(r.declarations&&r.declarations.length>1){var i=e.isEnumConst(n);e.forEach(r.declarations,(function(n){e.isEnumDeclaration(n)&&e.isEnumConst(n)!==i&&xr(e.getNameOfDeclaration(n),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var a=!1;e.forEach(r.declarations,(function(n){if(258!==n.kind)return!1;var t=n;if(!t.members.length)return!1;var r=t.members[0];r.initializer||(a?xr(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)}))}}}(n);case 259:return function(n){if(t){var r=e.isGlobalScopeAugmentation(n),i=8388608&n.flags;r&&!i&&xr(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);if(IT(n,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))return;VS(n)||i||10!==n.name.kind||fx(n.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(n.name)&&DE(n,n.name),Wb(n);var o=Ui(n);if(512&o.flags&&!i&&o.declarations&&o.declarations.length>1&&w(n,e.shouldPreserveConstEnums(V))){var s=function(n){var t=n.declarations;if(t)for(var r=0,i=t;r<i.length;r++){var a=i[r];if((255===a.kind||254===a.kind&&e.nodeIsPresent(a.body))&&!(8388608&a.flags))return a}}(o);s&&(e.getSourceFileOfNode(n)!==e.getSourceFileOfNode(s)?xr(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&&xr(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var c=e.getDeclarationOfKind(o,255);c&&(d=n,p=c,f=e.getEnclosingBlockScopeContainer(d),m=e.getEnclosingBlockScopeContainer(p),Vr(f)?Vr(m):!Vr(m)&&f===m)&&(Ur(n).flags|=32768)}if(a)if(e.isExternalModuleAugmentation(n)){if((r||33554432&Ui(n).flags)&&n.body)for(var l=0,u=n.body.statements;l<u.length;l++)LT(u[l],r)}else Vr(n.parent)?r?xr(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))&&xr(n.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):xr(n.name,r?e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}var d,p,f,m;n.body&&(wT(n.body),e.isGlobalScopeAugmentation(n)||oE(n))}(n);case 264:return function(n){if(!IT(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!VS(n)&&e.hasEffectiveModifiers(n)&&dx(n,e.Diagnostics.An_import_declaration_cannot_have_modifiers),DT(n))){var t=n.importClause;t&&!function(n){return!!(n.isTypeOnly&&n.name&&n.namedBindings)&&fx(n,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both)}(t)&&(t.name&&CT(t),t.namedBindings&&(266===t.namedBindings.kind?(CT(t.namedBindings),K!==e.ModuleKind.System&&K<e.ModuleKind.ES2015&&V.esModuleInterop&&BS(n,65536)):Li(n,n.moduleSpecifier)&&e.forEach(t.namedBindings.elements,CT)))}}(n);case 263:return function(n){if(!IT(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(VS(n),e.isInternalModuleImportEqualsDeclaration(n)||DT(n)))if(CT(n),e.hasSyntacticModifier(n,1)&&vi(n),275!==n.moduleReference.kind){var t=_i(Ui(n));if(t!==Ae){if(111551&t.flags){var r=e.getFirstIdentifier(n.moduleReference);1920&Si(r,112575).flags||xr(r,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(r))}788968&t.flags&&fT(n.name,e.Diagnostics.Import_name_cannot_be_0)}n.isTypeOnly&&fx(n,e.Diagnostics.An_import_alias_cannot_use_import_type)}else!(K>=e.ModuleKind.ES2015)||n.isTypeOnly||8388608&n.flags||fx(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)}(n);case 270:return function(n){if(!IT(n,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!VS(n)&&e.hasEffectiveModifiers(n)&&dx(n,e.Diagnostics.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&e.isNamedExports(n.exportClause)&&e.length(n.exportClause.elements)&&0===j&&BS(n,2097152),function(n){var t;n.isTypeOnly&&271!==(null===(t=n.exportClause)||void 0===t?void 0:t.kind)&&fx(n,e.Diagnostics.Only_named_exports_may_use_export_type)}(n),!n.moduleSpecifier||DT(n)))if(n.exportClause&&!e.isNamespaceExport(n.exportClause)){e.forEach(n.exportClause.elements,RT);var t=260===n.parent.kind&&e.isAmbientModule(n.parent.parent),r=!t&&260===n.parent.kind&&!n.moduleSpecifier&&8388608&n.flags;300===n.parent.kind||t||r||xr(n,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=Li(n,n.moduleSpecifier);i&&ki(i)?xr(n.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,va(i)):n.exportClause&&AT(n.exportClause),K!==e.ModuleKind.System&&K<e.ModuleKind.ES2015&&(n.exportClause?V.esModuleInterop&&BS(n,65536):BS(n,32768))}}(n);case 269:return function(n){if(!IT(n,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)){var t=300===n.parent.kind?n.parent:n.parent.parent;if(259!==t.kind||e.isAmbientModule(t)){if(!VS(n)&&e.hasEffectiveModifiers(n)&&dx(n,e.Diagnostics.An_export_assignment_cannot_have_modifiers),79===n.expression.kind){var r=n.expression,i=Si(r,67108863,!0,!0,n);if(i){mg(i,r);var a=2097152&i.flags?_i(i):i;(a===Ae||111551&a.flags)&&ub(n.expression)}else ub(n.expression);e.getEmitDeclarations(V)&&Pa(n.expression,!0)}else ub(n.expression);OT(t),8388608&n.flags&&!e.isEntityNameExpression(n.expression)&&fx(n.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!n.isExportEquals||8388608&n.flags||(K>=e.ModuleKind.ES2015?fx(n,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):K===e.ModuleKind.System&&fx(n,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else n.isExportEquals?xr(n,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):xr(n,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(n);case 234:case 251:return void _x(n);case 274:!function(e){rE(e)}(n)}}(n),d=i}}function MT(n){e.isInJSFile(n)||fx(n,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function FT(n){var t=Ur(e.getSourceFileOfNode(n));if(!(1&t.flags)){t.deferredNodes=t.deferredNodes||new e.Map;var r=O(n);t.deferredNodes.set(r,n)}}function GT(n){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end});var t=d;switch(d=n,x=0,n.kind){case 206:case 207:case 208:case 163:case 278:ph(n);break;case 211:case 212:case 167:case 166:!function(n){e.Debug.assert(167!==n.kind||e.isObjectLiteralMethod(n));var t=e.getFunctionFlags(n),r=nl(n);if(Vv(n,r),n.body)if(e.getEffectiveReturnTypeNode(n)||el(zc(n)),233===n.body.kind)wT(n.body);else{var i=Ab(n.body),a=r&&cT(r,t);a&&Rp(2==(3&t)?qb(i,n.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,a,n.body,n.body)}}(n);break;case 170:case 171:Mb(n);break;case 224:!function(n){e.forEach(n.members,wT),oE(n)}(n);break;case 277:!function(e){Ly(e)}(n);break;case 276:!function(e){Ly(e.openingElement),ly(e.closingElement.tagName)?my(e.closingElement):Ab(e.closingElement.tagName),dy(e)}(n)}d=t,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function BT(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:t.path},!0),e.performance.mark("beforeCheck"),function(t){var r=Ur(t);if(!(1&r.flags)){if(e.skipTypeChecking(t,V,n))return;!function(n){8388608&n.flags&&function(n){for(var t=0,r=n.statements;t<r.length;t++){var i=r[t];if((e.isDeclaration(i)||235===i.kind)&&mx(i))return!0}}(n)}(t),e.clear(ar),e.clear(or),e.clear(sr),e.clear(cr),e.forEach(t.statements,wT),wT(t.endOfFileToken),function(e){var n=Ur(e);n.deferredNodes&&n.deferredNodes.forEach(GT)}(t),e.isExternalOrCommonJsModule(t)&&oE(t),t.isDeclarationFile||!V.noUnusedLocals&&!V.noUnusedParameters||sE(VT(t),(function(n,t,r){!e.containsParseError(n)&&UT(t,!!(8388608&n.flags))&&ur.add(r)})),2===V.importsNotUsedAsValues&&!t.isDeclarationFile&&e.isExternalModule(t)&&function(n){for(var t=0,r=n.statements;t<r.length;t++){var i=r[t];(NT(i)||kT(i))&&xr(i,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}(t),e.isExternalOrCommonJsModule(t)&&OT(t),ar.length&&(e.forEach(ar,TE),e.clear(ar)),or.length&&(e.forEach(or,SE),e.clear(or)),sr.length&&(e.forEach(sr,xE),e.clear(sr)),cr.length&&(e.forEach(cr,LE),e.clear(cr)),r.flags|=1}}(t),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function UT(n,t){if(t)return!1;switch(n){case 0:return!!V.noUnusedLocals;case 1:return!!V.noUnusedParameters;default:return e.Debug.assertNever(n)}}function VT(n){return Pt.get(n.path)||e.emptyArray}function jT(t,i){try{return r=i,function(t){if(KT(),t){var r=ur.getGlobalDiagnostics(),i=r.length;BT(t);var a=ur.getDiagnostics(t.fileName),o=ur.getGlobalDiagnostics();if(o!==r){var s=e.relativeComplement(r,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(n.getSourceFiles(),BT),ur.getDiagnostics()}(t)}finally{r=void 0}}function KT(){if(!t)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function HT(e){switch(e.kind){case 161:case 255:case 256:case 257:case 258:case 340:case 333:case 334:return!0;case 265:return e.isTypeOnly;case 268:case 273:return e.parent.parent.isTypeOnly;default:return!1}}function WT(e){for(;159===e.parent.kind;)e=e.parent;return 176===e.parent.kind}function zT(n,t){for(var r;(n=e.getContainingClass(n))&&!(r=t(n)););return r}function JT(e,n){return!!zT(e,(function(e){return e===n}))}function qT(e){return void 0!==function(e){for(;159===e.parent.kind;)e=e.parent;return 263===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:269===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function XT(n){if(e.isDeclarationName(n))return Ui(n.parent);if(e.isInJSFile(n)&&204===n.parent.kind&&n.parent===n.parent.parent.left&&!e.isPrivateIdentifier(n)&&!e.isJSDocMemberName(n)){var t=function(n){switch(e.getAssignmentDeclarationKind(n.parent.parent)){case 1:case 3:return Ui(n.parent);case 4:case 2:case 5:return Ui(n.parent.parent)}}(n);if(t)return t}if(269===n.parent.kind&&e.isEntityNameExpression(n)){var r=Si(n,2998271,!0);if(r&&r!==Ae)return r}else if(e.isEntityName(n)&&qT(n)){var i=e.getAncestor(n,263);return e.Debug.assert(void 0!==i),Ei(n,!0)}if(e.isEntityName(n)){var a=function(n){for(var t=n.parent;e.isQualifiedName(t);)n=t,t=t.parent;if(t&&198===t.kind&&t.qualifier===n)return t}(n);if(a){jd(a);var o=Ur(n).resolvedSymbol;return o===Ae?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(n);)n=n.parent;if(function(e){for(;204===e.parent.kind;)e=e.parent;return 226===e.parent.kind}(n)){var s=0;226===n.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(n)?Si(n,s):void 0;if(c)return c}if(335===n.parent.kind)return e.getParameterSymbolFromJSDoc(n.parent);if(161===n.parent.kind&&339===n.parent.parent.kind){e.Debug.assert(!e.isInJSFile(n));var l=e.getTypeParameterFromJsDoc(n.parent);return l&&l.symbol}if(e.isExpressionNode(n)){if(e.nodeIsMissing(n))return;var u=e.findAncestor(n,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName));if(s=u?901119:111551,79===n.kind){if(e.isJSXTagName(n)&&ly(n)){var d=my(n.parent);return d===Ae?void 0:d}var p=Si(n,s,!1,!u,e.getHostSignatureFromJSDoc(n));if(!p&&u){var f=e.findAncestor(n,e.or(e.isClassLike,e.isInterfaceDeclaration));if(f)return YT(n,Ui(f))}return p}if(204===n.kind||159===n.kind){var m=Ur(n);return m.resolvedSymbol?m.resolvedSymbol:(204===n.kind?Uy(n,0):Vy(n,0),!m.resolvedSymbol&&u&&e.isQualifiedName(n)?YT(n):m.resolvedSymbol)}if(e.isJSDocMemberName(n))return YT(n)}else if(WT(n))return Si(n,s=176===n.parent.kind?788968:1920,!1,!0);return 175===n.parent.kind?Si(n,1):void 0}function YT(n,t){if(e.isEntityName(n)){var r=901119,i=Si(n,r,!1,!0,e.getHostSignatureFromJSDoc(n));if(!i&&e.isIdentifier(n)&&t&&(i=Bi(jr(wi(t),n.escapedText,r))),i)return i}var a=e.isIdentifier(n)?t:YT(n.left),o=e.isIdentifier(n)?n.escapedText:n.right.escapedText;if(a){var s=111551&a.flags&&xc(Ao(a),"prototype");return xc(s?Ao(s):ns(a),o)}}function QT(n,t){if(300===n.kind)return e.isExternalModule(n)?Bi(n.symbol):void 0;var r=n.parent,i=r.parent;if(!(16777216&n.flags)){if(F(n)){var a=Ui(r);return e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n?oy(a):a}if(e.isLiteralComputedPropertyDeclarationName(n))return Ui(r.parent);if(79===n.kind){if(qT(n))return XT(n);if(201===r.kind&&199===i.kind&&n===r.propertyName){if(o=xc(ZT(i),n.escapedText))return o}else if(e.isMetaProperty(r)){var o;if(o=xc(ZT(r),n.escapedText))return o;if(103===r.keywordToken)return dv(r).symbol}}switch(n.kind){case 79:case 80:case 204:case 159:return XT(n);case 108:var s=e.getThisContainer(n,!1);if(e.isFunctionLike(s)){var c=zc(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(n))return Ab(n).symbol;case 190:return Bd(n).symbol;case 106:return Ab(n).symbol;case 133:var l=n.parent;return l&&169===l.kind?l.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n||(264===n.parent.kind||270===n.parent.kind)&&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 Li(n,n,t);if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===n)return Ui(r);case 8:var u=e.isElementAccessExpression(r)?r.argumentExpression===n?xb(r.expression):void 0:e.isLiteralTypeNode(r)&&e.isIndexedAccessTypeNode(i)?jd(i.objectType):void 0;return u&&xc(u,e.escapeLeadingUnderscores(n.text));case 88:case 98:case 38:case 84:return Ui(n.parent);case 198:return e.isLiteralImportTypeNode(n)?QT(n.argument.literal,t):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)?uv(n.parent).symbol:void 0;case 229:return Ab(n).symbol;default:return}}}function ZT(n){if(e.isSourceFile(n)&&!e.isExternalModule(n))return Re;if(16777216&n.flags)return Re;var t,r,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(n),a=i&&zo(Ui(i.class));if(e.isPartOfTypeNode(n)){var o=jd(n);return a?Es(o,a.thisType):o}if(e.isExpressionNode(n))return eS(n);if(a&&!i.isImplements){var s=e.firstOrUndefined(Ko(a));return s?Es(s,a.thisType):Re}if(HT(n))return ns(r=Ui(n));if(79===(t=n).kind&&HT(t.parent)&&e.getNameOfDeclaration(t.parent)===t)return(r=QT(n))?ns(r):Re;if(e.isDeclaration(n))return Ao(r=Ui(n));if(F(n))return(r=QT(n))?Ao(r):Re;if(e.isBindingPattern(n))return eo(n.parent,!0)||Re;if(qT(n)&&(r=QT(n))){var c=ns(r);return c!==Re?c:Ao(r)}return e.isMetaProperty(n.parent)&&n.parent.keywordToken===n.kind?uv(n.parent):Re}function $T(n){if(e.Debug.assert(203===n.kind||202===n.kind),242===n.parent.kind)return tb(n,FE(n.parent)||Re);if(219===n.parent.kind)return tb(n,xb(n.parent.right)||Re);if(291===n.parent.kind){var t=e.cast(n.parent.parent,e.isObjectLiteralExpression);return eb(t,$T(t)||Re,e.indexOfNode(t.properties,n.parent))}var r=e.cast(n.parent,e.isArrayLiteralExpression),i=$T(r)||Re,a=GE(65,i,Me,n.parent)||Re;return nb(r,i,r.elements.indexOf(n),a)}function eS(n){return e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),Rd(xb(n))}function nS(n){var t=Ui(n.parent);return e.isStatic(n)?Ao(t):ns(t)}function tS(n){var t=n.name;switch(t.kind){case 79:return Pd(e.idText(t));case 8:case 10:return Pd(t.text);case 160:var r=ry(t);return Yv(r,12288)?r:je;default:return e.Debug.fail("Unsupported property name.")}}function rS(n){n=mc(n);var t=e.createSymbolTable(nc(n)),r=Dc(n,0).length?In:Dc(n,1).length?Nn:void 0;return r&&e.forEach(nc(r),(function(e){t.has(e.escapedName)||t.set(e.escapedName,e)})),na(t)}function iS(n){return e.typeHasCallOrConstructSignatures(n,de)}function aS(n){if(e.isGeneratedIdentifier(n))return!1;var t=e.getParseTreeNode(n,e.isIdentifier);if(!t)return!1;var r=t.parent;return!(!r||(e.isPropertyAccessExpression(r)||e.isPropertyAssignment(r))&&r.name===t||RS(t)!==le)}function oS(n){var t=Li(n.parent,n);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var r=ki(t),i=Br(t=Ii(t));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=r?!!(111551&t.flags):e.forEachEntry(Mi(t),(function(e){return(e=mi(e))&&!!(111551&e.flags)}))),i.exportsSomeValue}function sS(n,t){var r,i=e.getParseTreeNode(n,e.isIdentifier);if(i){var a=RS(i,function(n){return e.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name}(i));if(a){if(1048576&a.flags){var o=Bi(a.exportSymbol);if(!t&&944&o.flags&&!(3&o.flags))return;a=o}var s=Vi(a);if(s){if(512&s.flags&&300===(null===(r=s.valueDeclaration)||void 0===r?void 0:r.kind)){var c=s.valueDeclaration;return c!==e.getSourceFileOfNode(i)?void 0:c}return e.findAncestor(i.parent,(function(n){return e.isModuleOrEnumDeclaration(n)&&Ui(n)===s}))}}}}function cS(n){if(n.generatedImportReference)return n.generatedImportReference;var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=RS(t);if(fi(r,111551)&&!hi(r))return ti(r)}}function lS(n){if(418&n.flags&&n.valueDeclaration&&!e.isSourceFile(n.valueDeclaration)){var t=Br(n);if(void 0===t.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration);if(e.isStatementWithLocals(r)||function(n){return n.valueDeclaration&&e.isBindingElement(n.valueDeclaration)&&290===e.walkUpBindingElementsAndPatterns(n.valueDeclaration).parent.kind}(n)){var i=Ur(n.valueDeclaration);if(Wr(r.parent,n.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(r,!1),s=233===r.kind&&e.isIterationStatement(r.parent,!1);t.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||a&&(o||s))}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function uS(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=RS(t);if(r&&lS(r))return r.valueDeclaration}}}function dS(n){var t=e.getParseTreeNode(n,e.isDeclaration);if(t){var r=Ui(t);if(r)return lS(r)}return!1}function pS(n){switch(n.kind){case 263:return mS(Ui(n)||Ae);case 265:case 266:case 268:case 273:var t=Ui(n)||Ae;return mS(t)&&!hi(t);case 270:var r=n.exportClause;return!!r&&(e.isNamespaceExport(r)||e.some(r.elements,pS));case 269:return!n.expression||79!==n.expression.kind||mS(Ui(n)||Ae)}return!1}function fS(n){var t=e.getParseTreeNode(n,e.isImportEqualsDeclaration);return!(void 0===t||300!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&mS(Ui(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function mS(n){var t=_i(n);return t===Ae||!!(111551&t.flags)&&(e.shouldPreserveConstEnums(V)||!_S(t))}function _S(e){return $v(e)||!!e.constEnumOnlyModule}function gS(n,t){if(ri(n)){var r=Ui(n),i=r&&Br(r);if(null==i?void 0:i.referenced)return!0;var a=Br(r).target;if(a&&1&e.getEffectiveModifierFlags(n)&&111551&a.flags&&(e.shouldPreserveConstEnums(V)||!_S(a)))return!0}return!!t&&!!e.forEachChild(n,(function(e){return gS(e,t)}))}function yS(n){if(e.nodeIsPresent(n.body)){if(e.isGetAccessor(n)||e.isSetAccessor(n))return!1;var t=Xc(Ui(n));return t.length>1||1===t.length&&t[0].declaration!==n}return!1}function hS(n){return!(!z||Vc(n)||e.isJSDocParameterTag(n)||!n.initializer||e.hasSyntacticModifier(n,16476))}function vS(n){return z&&Vc(n)&&!n.initializer&&e.hasSyntacticModifier(n,16476)}function bS(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return!1;var r=Ui(t);return!!(r&&16&r.flags)&&!!e.forEachEntry(wi(r),(function(n){return 111551&n.flags&&n.valueDeclaration&&e.isPropertyAccessExpression(n.valueDeclaration)}))}function ES(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return e.emptyArray;var r=Ui(t);return r&&nc(Ao(r))||e.emptyArray}function TS(e){var n,t=e.id||0;return t<0||t>=Yt.length?0:(null===(n=Yt[t])||void 0===n?void 0:n.flags)||0}function SS(e){return ET(e.parent),Ur(e).enumMemberValue}function xS(e){switch(e.kind){case 294:case 204:case 205:return!0}return!1}function LS(n){if(294===n.kind)return SS(n);var t=Ur(n).resolvedSymbol;if(t&&8&t.flags){var r=t.valueDeclaration;if(e.isEnumConst(r.parent))return SS(r)}}function DS(e){return!!(524288&e.flags)&&Dc(e,0).length>0}function AS(n,t){var r,i,a=e.getParseTreeNode(n,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(t&&!(t=e.getParseTreeNode(t)))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(a)){var s=Si(e.getFirstIdentifier(a),111551,!0,!0,t);o=!!(null===(r=null==s?void 0:s.declarations)||void 0===r?void 0:r.every(e.isTypeOnlyImportOrExportDeclaration))}var c=Si(a,111551,!0,!0,t),l=c&&2097152&c.flags?_i(c):c;o||(o=!!(null===(i=null==c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var u=Si(a,788968,!0,!1,t);if(l&&l===u){var d=Zl(!1);if(d&&l===d)return e.TypeReferenceSerializationKind.Promise;var p=Ao(l);if(p&&Fo(p))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!u)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var f=ns(u);return f===Re?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&f.flags?e.TypeReferenceSerializationKind.ObjectType:Yv(f,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Yv(f,528)?e.TypeReferenceSerializationKind.BooleanType:Yv(f,296)?e.TypeReferenceSerializationKind.NumberLikeType:Yv(f,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:Yv(f,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Uf(f)?e.TypeReferenceSerializationKind.ArrayLikeType:Yv(f,12288)?e.TypeReferenceSerializationKind.ESSymbolType:DS(f)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Ef(f)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function CS(n,t,r,i,a){var o=e.getParseTreeNode(n,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(129);var s=Ui(o),c=!s||133120&s.flags?Re:Mf(Ao(s));return 8192&c.flags&&c.symbol===s&&(r|=1048576),a&&(c=Qf(c)),ie.typeToTypeNode(c,t,1024|r,i)}function IS(n,t,r,i){var a=e.getParseTreeNode(n,e.isFunctionLike);if(!a)return e.factory.createToken(129);var o=zc(a);return ie.typeToTypeNode(el(o),t,1024|r,i)}function NS(n,t,r,i){var a=e.getParseTreeNode(n,e.isExpression);if(!a)return e.factory.createToken(129);var o=mm(eS(a));return ie.typeToTypeNode(o,t,1024|r,i)}function kS(n){return ae.has(e.escapeLeadingUnderscores(n))}function RS(n,t){var r=Ur(n).resolvedSymbol;if(r)return r;var i=n;if(t){var a=n.parent;e.isDeclaration(a)&&n===a.name&&(i=Ba(a))}return Wr(i,n.escapedText,3257279,void 0,void 0,!0)}function OS(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=RS(t);if(r)return zi(r).valueDeclaration}}}function PS(n){return!!(e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n))&&Od(Ao(Ui(n)))}function wS(n,t){return function(n,t,r){var i=1024&n.flags?ie.symbolToExpression(n.symbol,111551,t,void 0,r):n===Je?e.factory.createTrue():n===We&&e.factory.createFalse();if(i)return i;var a=n.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}(Ao(Ui(n)),n,t)}function MS(n){return n?(Er(n),e.getSourceFileOfNode(n).localJsxFactory||gt):gt}function FS(n){if(n){var t=e.getSourceFileOfNode(n);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;var r=t.pragmas.get("jsxfrag"),i=e.isArray(r)?r[0]:r;if(i)return t.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,j),t.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return e.parseIsolatedEntityName(V.jsxFragmentFactory,j)}function GS(n){var t=259===n.kind?e.tryCast(n.name,e.isStringLiteral):e.getExternalModuleName(n),r=Di(t,t,void 0);if(r)return e.getDeclarationOfKind(r,300)}function BS(n,t){if((o&t)!==t&&V.importHelpers){var r=e.getSourceFileOfNode(n);if(e.isEffectiveExternalModule(r,V)&&!(8388608&n.flags)){var i=(d=r,p=n,u||(u=Ai(d,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,p)||Ae),u);if(i!==Ae)for(var a=t&~o,s=1;s<=2097152;s<<=1)if(a&s){var c=US(s),l=jr(i.exports,e.escapeLeadingUnderscores(c),111551);l?524288&s?e.some(Xc(l),(function(e){return Ev(e)>3}))||xr(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,c,4):1048576&s?e.some(Xc(l),(function(e){return Ev(e)>4}))||xr(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,c,5):1024&s&&(e.some(Xc(l),(function(e){return Ev(e)>2}))||xr(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,c,3)):xr(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,c)}o|=t}}var d,p}function US(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 VS(n){return function(n){if(!n.decorators)return!1;if(!e.nodeCanBeDecorated(n,n.parent,n.parent.parent))return 167!==n.kind||e.nodeIsPresent(n.body)?dx(n,e.Diagnostics.Decorators_are_not_valid_here):dx(n,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(170===n.kind||171===n.kind){var t=e.getAllAccessorDeclarations(n.parent.members,n);if(t.firstAccessor.decorators&&n===t.secondAccessor)return dx(n,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(n)||function(n){var t,r,i,a,o,s=function(n){return!!n.modifiers&&(function(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(260===n.parent.kind||300===n.parent.kind)return!1;switch(n.kind){case 254:return jS(n,130);case 255:case 178:return jS(n,126);case 256:case 235:case 257:case 168:return!0;case 258:return jS(n,85);default:e.Debug.fail()}}}(n)?dx(n,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(n);if(void 0!==s)return s;for(var c=0,l=0,u=n.modifiers;l<u.length;l++){var d=u[l];if(143!==d.kind){if(164===n.kind||166===n.kind)return fx(d,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(d.kind));if(174===n.kind&&(124!==d.kind||!e.isClassLike(n.parent)))return fx(d,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(d.kind))}switch(d.kind){case 85:if(258!==n.kind)return fx(n,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 157:if(16384&c)return fx(d,e.Diagnostics._0_modifier_already_seen,"override");if(2&c)return fx(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(64&c)return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(256&c)return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");c|=16384,o=d;break;case 123:case 122:case 121:var p=Ca(e.modifierToFlag(d.kind));if(28&c)return fx(d,e.Diagnostics.Accessibility_modifier_already_seen);if(16384&c)return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"override");if(32&c)return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"static");if(64&c)return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"readonly");if(256&c)return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"async");if(260===n.parent.kind||300===n.parent.kind)return fx(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,p);if(128&c)return 121===d.kind?fx(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,p,"abstract"):fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(n))return fx(d,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);c|=e.modifierToFlag(d.kind);break;case 124:if(32&c)return fx(d,e.Diagnostics._0_modifier_already_seen,"static");if(64&c)return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&c)return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(260===n.parent.kind||300===n.parent.kind)return fx(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(162===n.kind)return fx(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&c)return fx(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16384&c)return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");c|=32,t=d;break;case 143:if(64&c)return fx(d,e.Diagnostics._0_modifier_already_seen,"readonly");if(165!==n.kind&&164!==n.kind&&174!==n.kind&&162!==n.kind)return fx(d,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);c|=64,a=d;break;case 93:if(1&c)return fx(d,e.Diagnostics._0_modifier_already_seen,"export");if(2&c)return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&c)return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&c)return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(n.parent))return fx(d,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(162===n.kind)return fx(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");c|=1;break;case 88:var f=300===n.parent.kind?n.parent:n.parent.parent;if(259===f.kind&&!e.isAmbientModule(f))return fx(d,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(1&c))return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");c|=512;break;case 134:if(2&c)return fx(d,e.Diagnostics._0_modifier_already_seen,"declare");if(256&c)return fx(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16384&c)return fx(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(n.parent)&&!e.isPropertyDeclaration(n))return fx(d,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(162===n.kind)return fx(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(8388608&n.parent.flags&&260===n.parent.kind)return fx(d,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(n))return fx(d,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");c|=2,r=d;break;case 126:if(128&c)return fx(d,e.Diagnostics._0_modifier_already_seen,"abstract");if(255!==n.kind&&178!==n.kind){if(167!==n.kind&&165!==n.kind&&170!==n.kind&&171!==n.kind)return fx(d,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(255!==n.parent.kind||!e.hasSyntacticModifier(n.parent,128))return fx(d,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&c)return fx(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&c)return fx(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(256&c&&i)return fx(i,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16384&c)return fx(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(n)&&80===n.name.kind)return fx(d,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");c|=128;break;case 130:if(256&c)return fx(d,e.Diagnostics._0_modifier_already_seen,"async");if(2&c||8388608&n.parent.flags)return fx(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(162===n.kind)return fx(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(128&c)return fx(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");c|=256,i=d}}return 169===n.kind?32&c?fx(t,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&c?fx(t,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):16384&c?fx(o,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):256&c?fx(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&c)&&fx(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):(264===n.kind||263===n.kind)&&2&c?fx(r,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):162===n.kind&&16476&c&&e.isBindingPattern(n.name)?fx(n,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):162===n.kind&&16476&c&&n.dotDotDotToken?fx(n,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(256&c)&&function(n,t){switch(n.kind){case 167:case 254:case 211:case 212:return!1}return fx(t,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}(n,i)}(n)}function jS(e,n){return e.modifiers.length>1||e.modifiers[0].kind!==n}function KS(n,t){return void 0===t&&(t=e.Diagnostics.Trailing_comma_not_allowed),!(!n||!n.hasTrailingComma)&&px(n[0],n.end-1,1,t)}function HS(n,t){if(n&&0===n.length){var r=n.pos-1;return px(t,r,e.skipTrivia(t.text,n.end)+1-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function WS(n){var t=e.getSourceFileOfNode(n);return VS(n)||HS(n.typeParameters,t)||function(n){for(var t=!1,r=n.length,i=0;i<r;i++){var a=n[i];if(a.dotDotDotToken){if(i!==r-1)return fx(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(8388608&a.flags||KS(n,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),a.questionToken)return fx(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return fx(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(Vc(a)){if(t=!0,a.questionToken&&a.initializer)return fx(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!a.initializer)return fx(a.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(n.parameters)||function(n,t){if(!e.isArrowFunction(n))return!1;var r=n.equalsGreaterThanToken;return e.getLineAndCharacterOfPosition(t,r.pos).line!==e.getLineAndCharacterOfPosition(t,r.end).line&&fx(r,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(n,t)||e.isFunctionLikeDeclaration(n)&&function(n){if(j>=3){var t=n.body&&e.isBlock(n.body)&&e.findUseStrictPrologue(n.body.statements);if(t){var r=(o=n.parameters,e.filter(o,(function(n){return!!n.initializer||e.isBindingPattern(n.name)||e.isRestParameter(n)})));if(e.length(r)){e.forEach(r,(function(n){e.addRelatedInfo(xr(n,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(t,e.Diagnostics.use_strict_directive_used_here))}));var a=r.map((function(n,t){return 0===t?e.createDiagnosticForNode(n,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(n,e.Diagnostics.and_here)}));return e.addRelatedInfo.apply(void 0,i([xr(t,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a,!1)),!0}}}var o;return!1}(n)}function zS(n,t){return KS(t)||function(n,t){if(t&&0===t.length){var r=e.getSourceFileOfNode(n),i=t.pos-1;return px(r,i,e.skipTrivia(r.text,t.end)+1-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(n,t)}function JS(n){return function(n){if(n)for(var t=0,r=n;t<r.length;t++){var i=r[t];if(225===i.kind)return px(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}(n)}function qS(n){var t=n.types;if(KS(t))return!0;if(t&&0===t.length){var r=e.tokenToString(n.token);return px(n,t.pos,0,e.Diagnostics._0_list_cannot_be_empty,r)}return e.some(t,XS)}function XS(e){return zS(e,e.typeArguments)}function YS(n){if(160!==n.kind)return!1;var t=n;return 219===t.expression.kind&&27===t.expression.operatorToken.kind&&fx(t.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function QS(n){if(n.asteriskToken){if(e.Debug.assert(254===n.kind||211===n.kind||167===n.kind),8388608&n.flags)return fx(n.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return fx(n.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function ZS(e,n){return!!e&&fx(e,n)}function $S(e,n){return!!e&&fx(e,n)}function ex(n){if(_x(n))return!0;if(242===n.kind&&n.awaitModifier&&!(32768&n.flags)){var t=e.getSourceFileOfNode(n);if(e.isInTopLevelContext(n))ux(t)||(e.isEffectiveExternalModule(t,V)||ur.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)),(K!==e.ModuleKind.ESNext&&K!==e.ModuleKind.System||j<4)&&ur.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(!ux(t)){var r=e.createDiagnosticForNode(n.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),i=e.getContainingFunction(n);if(i&&169!==i.kind){e.Debug.assert(0==(2&e.getFunctionFlags(i)),"Enclosing function should never be an async function.");var a=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(r,a)}return ur.add(r),!0}return!1}if(e.isForOfStatement(n)&&!(32768&n.flags)&&e.isIdentifier(n.initializer)&&"async"===n.initializer.escapedText)return fx(n.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(253===n.initializer.kind){var o=n.initializer;if(!cx(o)){var s=o.declarations;if(!s.length)return!1;if(s.length>1)return r=241===n.kind?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,dx(o.declarations[1],r);var c=s[0];if(c.initializer){r=241===n.kind?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 fx(c.name,r)}if(c.type)return fx(c,r=241===n.kind?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!1}function nx(n){if(n.parameters.length===(170===n.kind?1:2))return e.getThisParameter(n)}function tx(n,t){if(function(n){return e.isDynamicName(n)&&!ps(n)}(n))return fx(n,t)}function rx(n){if(WS(n))return!0;if(167===n.kind){if(203===n.parent.kind){if(n.modifiers&&(1!==n.modifiers.length||130!==e.first(n.modifiers).kind))return dx(n,e.Diagnostics.Modifiers_cannot_appear_here);if(ZS(n.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if($S(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===n.body)return px(n,n.end-1,1,e.Diagnostics._0_expected,"{")}if(QS(n))return!0}if(e.isClassLike(n.parent)){if(j<2&&e.isPrivateIdentifier(n.name))return fx(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(8388608&n.flags)return tx(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(167===n.kind&&!n.body)return tx(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(256===n.parent.kind)return tx(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(180===n.parent.kind)return tx(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 ix(n){return e.isStringOrNumericLiteralLike(n)||217===n.kind&&40===n.operator&&8===n.operand.kind}function ax(n){var t,r=n.initializer;if(r){var i=!(ix(r)||function(n){if((e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)&&ix(n.argumentExpression))&&e.isEntityNameExpression(n.expression))return!!(1024&ub(n).flags)}(r)||110===r.kind||95===r.kind||(t=r,9===t.kind||217===t.kind&&40===t.operator&&9===t.operand.kind)),a=e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n);if(!a||n.type)return fx(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return fx(r,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!a||i)return fx(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function ox(n){if(79===n.kind){if("__esModule"===e.idText(n))return a=n,o=e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules,!ux(e.getSourceFileOfNode(a))&&(Tr("noEmit",a,o,void 0,void 0,void 0),!0)}else for(var t=0,r=n.elements;t<r.length;t++){var i=r[t];if(!e.isOmittedExpression(i))return ox(i.name)}var a,o;return!1}function sx(n){if(79===n.kind){if(119===n.originalKeywordKind)return fx(n,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var t=0,r=n.elements;t<r.length;t++){var i=r[t];e.isOmittedExpression(i)||sx(i.name)}return!1}function cx(n){var t=n.declarations;return!!KS(n.declarations)||!n.declarations.length&&px(n,t.pos,t.end-t.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function lx(e){switch(e.kind){case 237:case 238:case 239:case 246:case 240:case 241:case 242:return!1;case 248:return lx(e.parent)}return!0}function ux(e){return e.parseDiagnostics.length>0}function dx(n,t,r,i,a){var o=e.getSourceFileOfNode(n);if(!ux(o)){var s=e.getSpanOfTokenAtPosition(o,n.pos);return ur.add(e.createFileDiagnostic(o,s.start,s.length,t,r,i,a)),!0}return!1}function px(n,t,r,i,a,o,s){var c=e.getSourceFileOfNode(n);return!ux(c)&&(ur.add(e.createFileDiagnostic(c,t,r,i,a,o,s)),!0)}function fx(n,t,r,i,a){return!ux(e.getSourceFileOfNode(n))&&(ur.add(e.createDiagnosticForNode(n,t,r,i,a)),!0)}function mx(n){return 256!==n.kind&&257!==n.kind&&264!==n.kind&&263!==n.kind&&270!==n.kind&&269!==n.kind&&262!==n.kind&&!e.hasSyntacticModifier(n,515)&&dx(n,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function _x(n){if(8388608&n.flags){if(!Ur(n).hasReportedStatementInAmbientContext&&(e.isFunctionLike(n.parent)||e.isAccessor(n.parent)))return Ur(n).hasReportedStatementInAmbientContext=dx(n,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(233===n.parent.kind||260===n.parent.kind||300===n.parent.kind){var t=Ur(n.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=dx(n,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function gx(n){if(32&n.numericLiteralFlags){var t=void 0;if(j>=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(n,194)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(n,294)&&(t=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var r=e.isPrefixUnaryExpression(n.parent)&&40===n.parent.operator,i=(r?"-":"")+"0o"+n.text;return fx(r?n.parent:n,t,i)}}return function(n){if(!(16&n.numericLiteralFlags||n.text.length<=15||-1!==n.text.indexOf("."))){var t=+e.getTextOfNode(n);t<=Math.pow(2,53)-1&&t+1>t||Lr(!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))}}(n),!1}function yx(n,t,r,i){if(1048576&t.flags&&2621440&n.flags){var a=l_(t,n);if(a)return a;var o=nc(n);if(o){var s=o_(o,t);if(s)return nf(t,e.map(s,(function(e){return[function(){return Ao(e)},e.escapedName]})),r,void 0,i)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(I||(I={})),e.signatureHasRestParameter=B,e.signatureHasLiteralTypes=U}(u||(u={})),function(e){function n(n,t,r,i){if(void 0===n||void 0===t)return n;var a,o=t(n);return o===n?n:void 0!==o?(a=e.isArray(o)?(i||c)(o):o,e.Debug.assertNode(a,r),a):void 0}function t(n,t,r,i,a){if(void 0===n||void 0===t)return n;var o,s,c=n.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>c-i)&&(a=c-i);var l=-1,u=-1;(i>0||a<c)&&(o=[],s=n.hasTrailingComma&&i+a===c);for(var d=0;d<a;d++){var p=n[d+i],f=void 0!==p?t(p):void 0;if((void 0!==o||void 0===f||f!==p)&&(void 0===o&&(o=n.slice(0,d),s=n.hasTrailingComma,l=n.pos,u=n.end),f))if(e.isArray(f))for(var m=0,_=f;m<_.length;m++){var g=_[m];e.Debug.assertNode(g,r),o.push(g)}else e.Debug.assertNode(f,r),o.push(f)}if(o){var y=e.factory.createNodeArray(o,s);return e.setTextRangePosEnd(y,l,u),y}return n}function r(n,r,i,a,o,s){return void 0===s&&(s=t),i.startLexicalEnvironment(),n=s(n,r,e.isStatement,a),o&&(n=i.factory.ensureUseStrict(n)),e.factory.mergeLexicalEnvironment(n,i.endLexicalEnvironment())}function i(n,r,i,o){var s;return void 0===o&&(o=t),i.startLexicalEnvironment(),n&&(i.setLexicalEnvironmentFlags(1,!0),s=o(n,r,e.isParameterDeclaration),2&i.getLexicalEnvironmentFlags()&&e.getEmitScriptTarget(i.getCompilerOptions())>=2&&(s=function(n,t){for(var r,i=0;i<n.length;i++){var o=n[i],s=a(o,t);(r||s!==o)&&(r||(r=n.slice(0,i)),r[i]=s)}return r?e.setTextRange(t.factory.createNodeArray(r,n.hasTrailingComma),n):n}(s,i)),i.setLexicalEnvironmentFlags(1,!1)),i.suspendLexicalEnvironment(),s}function a(n,t){return n.dotDotDotToken?n:e.isBindingPattern(n.name)?function(e,n){var t=n.factory;return n.addInitializationStatement(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e.name,void 0,e.type,e.initializer?t.createConditionalExpression(t.createStrictEquality(t.getGeneratedNameForNode(e),t.createVoidZero()),void 0,e.initializer,void 0,t.getGeneratedNameForNode(e)):t.getGeneratedNameForNode(e))]))),t.updateParameterDeclaration(e,e.decorators,e.modifiers,e.dotDotDotToken,t.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(n,t):n.initializer?function(n,t,r,i){var a=i.factory;return i.addInitializationStatement(a.createIfStatement(a.createTypeCheck(a.cloneNode(t),"undefined"),e.setEmitFlags(e.setTextRange(a.createBlock([a.createExpressionStatement(e.setEmitFlags(e.setTextRange(a.createAssignment(e.setEmitFlags(a.cloneNode(t),48),e.setEmitFlags(r,1584|e.getEmitFlags(r))),n),1536))]),n),1953))),a.updateParameterDeclaration(n,n.decorators,n.modifiers,n.dotDotDotToken,n.name,n.questionToken,n.type,void 0)}(n,n.name,n.initializer,t):n}function o(t,r,i,a){void 0===a&&(a=n),i.resumeLexicalEnvironment();var o=a(t,r,e.isConciseBody),s=i.endLexicalEnvironment();if(e.some(s)){if(!o)return i.factory.createBlock(s);var c=i.factory.converters.convertToFunctionBlock(o),l=e.factory.mergeLexicalEnvironment(c.statements,s);return i.factory.updateBlock(c,l)}return o}function s(t,r,i){i.startBlockScope();var a=n(t,r,e.isStatement,i.factory.liftToBlock),o=i.endBlockScope();return e.some(o)?e.isBlock(a)?(o.push.apply(o,a.statements),i.factory.updateBlock(a,o)):(o.push(a),i.factory.createBlock(o)):a}function c(n){return e.Debug.assert(n.length<=1,"Too many nodes written to output."),e.singleOrUndefined(n)}e.visitNode=n,e.visitNodes=t,e.visitLexicalEnvironment=r,e.visitParameterList=i,e.visitFunctionBody=o,e.visitIterationBody=s,e.visitEachChild=function(a,c,l,u,d,p){if(void 0===u&&(u=t),void 0===p&&(p=n),void 0!==a){var f=a.kind;if(f>0&&f<=158||190===f)return a;var m=l.factory;switch(f){case 79:return e.Debug.type(a),m.updateIdentifier(a,u(a.typeArguments,c,e.isTypeNodeOrTypeParameterDeclaration));case 159:return e.Debug.type(a),m.updateQualifiedName(a,p(a.left,c,e.isEntityName),p(a.right,c,e.isIdentifier));case 160:return e.Debug.type(a),m.updateComputedPropertyName(a,p(a.expression,c,e.isExpression));case 161:return e.Debug.type(a),m.updateTypeParameterDeclaration(a,p(a.name,c,e.isIdentifier),p(a.constraint,c,e.isTypeNode),p(a.default,c,e.isTypeNode));case 162:return e.Debug.type(a),m.updateParameterDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.dotDotDotToken,d,e.isDotDotDotToken),p(a.name,c,e.isBindingName),p(a.questionToken,d,e.isQuestionToken),p(a.type,c,e.isTypeNode),p(a.initializer,c,e.isExpression));case 163:return e.Debug.type(a),m.updateDecorator(a,p(a.expression,c,e.isExpression));case 164:return e.Debug.type(a),m.updatePropertySignature(a,u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),p(a.questionToken,d,e.isToken),p(a.type,c,e.isTypeNode));case 165:return e.Debug.type(a),m.updatePropertyDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),p(a.questionToken||a.exclamationToken,d,e.isQuestionOrExclamationToken),p(a.type,c,e.isTypeNode),p(a.initializer,c,e.isExpression));case 166:return e.Debug.type(a),m.updateMethodSignature(a,u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),p(a.questionToken,d,e.isQuestionToken),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 167:return e.Debug.type(a),m.updateMethodDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,c,e.isPropertyName),p(a.questionToken,d,e.isQuestionToken),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 169:return e.Debug.type(a),m.updateConstructorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),i(a.parameters,c,l,u),o(a.body,c,l,p));case 170:return e.Debug.type(a),m.updateGetAccessorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 171:return e.Debug.type(a),m.updateSetAccessorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),i(a.parameters,c,l,u),o(a.body,c,l,p));case 168:return e.Debug.type(a),l.startLexicalEnvironment(),l.suspendLexicalEnvironment(),m.updateClassStaticBlockDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),o(a.body,c,l,p));case 172:return e.Debug.type(a),m.updateCallSignature(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 173:return e.Debug.type(a),m.updateConstructSignature(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 174:return e.Debug.type(a),m.updateIndexSignature(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 175:return e.Debug.type(a),m.updateTypePredicateNode(a,p(a.assertsModifier,c,e.isAssertsKeyword),p(a.parameterName,c,e.isIdentifierOrThisTypeNode),p(a.type,c,e.isTypeNode));case 176:return e.Debug.type(a),m.updateTypeReferenceNode(a,p(a.typeName,c,e.isEntityName),u(a.typeArguments,c,e.isTypeNode));case 177:return e.Debug.type(a),m.updateFunctionTypeNode(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 178:return e.Debug.type(a),m.updateConstructorTypeNode(a,u(a.modifiers,c,e.isModifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 179:return e.Debug.type(a),m.updateTypeQueryNode(a,p(a.exprName,c,e.isEntityName));case 180:return e.Debug.type(a),m.updateTypeLiteralNode(a,u(a.members,c,e.isTypeElement));case 181:return e.Debug.type(a),m.updateArrayTypeNode(a,p(a.elementType,c,e.isTypeNode));case 182:return e.Debug.type(a),m.updateTupleTypeNode(a,u(a.elements,c,e.isTypeNode));case 183:return e.Debug.type(a),m.updateOptionalTypeNode(a,p(a.type,c,e.isTypeNode));case 184:return e.Debug.type(a),m.updateRestTypeNode(a,p(a.type,c,e.isTypeNode));case 185:return e.Debug.type(a),m.updateUnionTypeNode(a,u(a.types,c,e.isTypeNode));case 186:return e.Debug.type(a),m.updateIntersectionTypeNode(a,u(a.types,c,e.isTypeNode));case 187:return e.Debug.type(a),m.updateConditionalTypeNode(a,p(a.checkType,c,e.isTypeNode),p(a.extendsType,c,e.isTypeNode),p(a.trueType,c,e.isTypeNode),p(a.falseType,c,e.isTypeNode));case 188:return e.Debug.type(a),m.updateInferTypeNode(a,p(a.typeParameter,c,e.isTypeParameterDeclaration));case 198:return e.Debug.type(a),m.updateImportTypeNode(a,p(a.argument,c,e.isTypeNode),p(a.qualifier,c,e.isEntityName),t(a.typeArguments,c,e.isTypeNode),a.isTypeOf);case 195:return e.Debug.type(a),m.updateNamedTupleMember(a,n(a.dotDotDotToken,c,e.isDotDotDotToken),n(a.name,c,e.isIdentifier),n(a.questionToken,c,e.isQuestionToken),n(a.type,c,e.isTypeNode));case 189:return e.Debug.type(a),m.updateParenthesizedType(a,p(a.type,c,e.isTypeNode));case 191:return e.Debug.type(a),m.updateTypeOperatorNode(a,p(a.type,c,e.isTypeNode));case 192:return e.Debug.type(a),m.updateIndexedAccessTypeNode(a,p(a.objectType,c,e.isTypeNode),p(a.indexType,c,e.isTypeNode));case 193:return e.Debug.type(a),m.updateMappedTypeNode(a,p(a.readonlyToken,d,e.isReadonlyKeywordOrPlusOrMinusToken),p(a.typeParameter,c,e.isTypeParameterDeclaration),p(a.nameType,c,e.isTypeNode),p(a.questionToken,d,e.isQuestionOrPlusOrMinusToken),p(a.type,c,e.isTypeNode));case 194:return e.Debug.type(a),m.updateLiteralTypeNode(a,p(a.literal,c,e.isExpression));case 196:return e.Debug.type(a),m.updateTemplateLiteralType(a,p(a.head,c,e.isTemplateHead),u(a.templateSpans,c,e.isTemplateLiteralTypeSpan));case 197:return e.Debug.type(a),m.updateTemplateLiteralTypeSpan(a,p(a.type,c,e.isTypeNode),p(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 199:return e.Debug.type(a),m.updateObjectBindingPattern(a,u(a.elements,c,e.isBindingElement));case 200:return e.Debug.type(a),m.updateArrayBindingPattern(a,u(a.elements,c,e.isArrayBindingElement));case 201:return e.Debug.type(a),m.updateBindingElement(a,p(a.dotDotDotToken,d,e.isDotDotDotToken),p(a.propertyName,c,e.isPropertyName),p(a.name,c,e.isBindingName),p(a.initializer,c,e.isExpression));case 202:return e.Debug.type(a),m.updateArrayLiteralExpression(a,u(a.elements,c,e.isExpression));case 203:return e.Debug.type(a),m.updateObjectLiteralExpression(a,u(a.properties,c,e.isObjectLiteralElementLike));case 204:return 32&a.flags?(e.Debug.type(a),m.updatePropertyAccessChain(a,p(a.expression,c,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),p(a.name,c,e.isMemberName))):(e.Debug.type(a),m.updatePropertyAccessExpression(a,p(a.expression,c,e.isExpression),p(a.name,c,e.isMemberName)));case 205:return 32&a.flags?(e.Debug.type(a),m.updateElementAccessChain(a,p(a.expression,c,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),p(a.argumentExpression,c,e.isExpression))):(e.Debug.type(a),m.updateElementAccessExpression(a,p(a.expression,c,e.isExpression),p(a.argumentExpression,c,e.isExpression)));case 206:return 32&a.flags?(e.Debug.type(a),m.updateCallChain(a,p(a.expression,c,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression))):(e.Debug.type(a),m.updateCallExpression(a,p(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression)));case 207:return e.Debug.type(a),m.updateNewExpression(a,p(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression));case 208:return e.Debug.type(a),m.updateTaggedTemplateExpression(a,p(a.tag,c,e.isExpression),t(a.typeArguments,c,e.isTypeNode),p(a.template,c,e.isTemplateLiteral));case 209:return e.Debug.type(a),m.updateTypeAssertion(a,p(a.type,c,e.isTypeNode),p(a.expression,c,e.isExpression));case 210:return e.Debug.type(a),m.updateParenthesizedExpression(a,p(a.expression,c,e.isExpression));case 211:return e.Debug.type(a),m.updateFunctionExpression(a,u(a.modifiers,c,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 212:return e.Debug.type(a),m.updateArrowFunction(a,u(a.modifiers,c,e.isModifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),p(a.equalsGreaterThanToken,d,e.isEqualsGreaterThanToken),o(a.body,c,l,p));case 213:return e.Debug.type(a),m.updateDeleteExpression(a,p(a.expression,c,e.isExpression));case 214:return e.Debug.type(a),m.updateTypeOfExpression(a,p(a.expression,c,e.isExpression));case 215:return e.Debug.type(a),m.updateVoidExpression(a,p(a.expression,c,e.isExpression));case 216:return e.Debug.type(a),m.updateAwaitExpression(a,p(a.expression,c,e.isExpression));case 217:return e.Debug.type(a),m.updatePrefixUnaryExpression(a,p(a.operand,c,e.isExpression));case 218:return e.Debug.type(a),m.updatePostfixUnaryExpression(a,p(a.operand,c,e.isExpression));case 219:return e.Debug.type(a),m.updateBinaryExpression(a,p(a.left,c,e.isExpression),p(a.operatorToken,d,e.isBinaryOperatorToken),p(a.right,c,e.isExpression));case 220:return e.Debug.type(a),m.updateConditionalExpression(a,p(a.condition,c,e.isExpression),p(a.questionToken,d,e.isQuestionToken),p(a.whenTrue,c,e.isExpression),p(a.colonToken,d,e.isColonToken),p(a.whenFalse,c,e.isExpression));case 221:return e.Debug.type(a),m.updateTemplateExpression(a,p(a.head,c,e.isTemplateHead),u(a.templateSpans,c,e.isTemplateSpan));case 222:return e.Debug.type(a),m.updateYieldExpression(a,p(a.asteriskToken,d,e.isAsteriskToken),p(a.expression,c,e.isExpression));case 223:return e.Debug.type(a),m.updateSpreadElement(a,p(a.expression,c,e.isExpression));case 224:return e.Debug.type(a),m.updateClassExpression(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isClassElement));case 226:return e.Debug.type(a),m.updateExpressionWithTypeArguments(a,p(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode));case 227:return e.Debug.type(a),m.updateAsExpression(a,p(a.expression,c,e.isExpression),p(a.type,c,e.isTypeNode));case 228:return 32&a.flags?(e.Debug.type(a),m.updateNonNullChain(a,p(a.expression,c,e.isExpression))):(e.Debug.type(a),m.updateNonNullExpression(a,p(a.expression,c,e.isExpression)));case 229:return e.Debug.type(a),m.updateMetaProperty(a,p(a.name,c,e.isIdentifier));case 231:return e.Debug.type(a),m.updateTemplateSpan(a,p(a.expression,c,e.isExpression),p(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 233:return e.Debug.type(a),m.updateBlock(a,u(a.statements,c,e.isStatement));case 235:return e.Debug.type(a),m.updateVariableStatement(a,u(a.modifiers,c,e.isModifier),p(a.declarationList,c,e.isVariableDeclarationList));case 236:return e.Debug.type(a),m.updateExpressionStatement(a,p(a.expression,c,e.isExpression));case 237:return e.Debug.type(a),m.updateIfStatement(a,p(a.expression,c,e.isExpression),p(a.thenStatement,c,e.isStatement,m.liftToBlock),p(a.elseStatement,c,e.isStatement,m.liftToBlock));case 238:return e.Debug.type(a),m.updateDoStatement(a,s(a.statement,c,l),p(a.expression,c,e.isExpression));case 239:return e.Debug.type(a),m.updateWhileStatement(a,p(a.expression,c,e.isExpression),s(a.statement,c,l));case 240:return e.Debug.type(a),m.updateForStatement(a,p(a.initializer,c,e.isForInitializer),p(a.condition,c,e.isExpression),p(a.incrementor,c,e.isExpression),s(a.statement,c,l));case 241:return e.Debug.type(a),m.updateForInStatement(a,p(a.initializer,c,e.isForInitializer),p(a.expression,c,e.isExpression),s(a.statement,c,l));case 242:return e.Debug.type(a),m.updateForOfStatement(a,p(a.awaitModifier,d,e.isAwaitKeyword),p(a.initializer,c,e.isForInitializer),p(a.expression,c,e.isExpression),s(a.statement,c,l));case 243:return e.Debug.type(a),m.updateContinueStatement(a,p(a.label,c,e.isIdentifier));case 244:return e.Debug.type(a),m.updateBreakStatement(a,p(a.label,c,e.isIdentifier));case 245:return e.Debug.type(a),m.updateReturnStatement(a,p(a.expression,c,e.isExpression));case 246:return e.Debug.type(a),m.updateWithStatement(a,p(a.expression,c,e.isExpression),p(a.statement,c,e.isStatement,m.liftToBlock));case 247:return e.Debug.type(a),m.updateSwitchStatement(a,p(a.expression,c,e.isExpression),p(a.caseBlock,c,e.isCaseBlock));case 248:return e.Debug.type(a),m.updateLabeledStatement(a,p(a.label,c,e.isIdentifier),p(a.statement,c,e.isStatement,m.liftToBlock));case 249:return e.Debug.type(a),m.updateThrowStatement(a,p(a.expression,c,e.isExpression));case 250:return e.Debug.type(a),m.updateTryStatement(a,p(a.tryBlock,c,e.isBlock),p(a.catchClause,c,e.isCatchClause),p(a.finallyBlock,c,e.isBlock));case 252:return e.Debug.type(a),m.updateVariableDeclaration(a,p(a.name,c,e.isBindingName),p(a.exclamationToken,d,e.isExclamationToken),p(a.type,c,e.isTypeNode),p(a.initializer,c,e.isExpression));case 253:return e.Debug.type(a),m.updateVariableDeclarationList(a,u(a.declarations,c,e.isVariableDeclaration));case 254:return e.Debug.type(a),m.updateFunctionDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 255:return e.Debug.type(a),m.updateClassDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isClassElement));case 256:return e.Debug.type(a),m.updateInterfaceDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isTypeElement));case 257:return e.Debug.type(a),m.updateTypeAliasDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),p(a.type,c,e.isTypeNode));case 258:return e.Debug.type(a),m.updateEnumDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.members,c,e.isEnumMember));case 259:return e.Debug.type(a),m.updateModuleDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isModuleName),p(a.body,c,e.isModuleBody));case 260:return e.Debug.type(a),m.updateModuleBlock(a,u(a.statements,c,e.isStatement));case 261:return e.Debug.type(a),m.updateCaseBlock(a,u(a.clauses,c,e.isCaseOrDefaultClause));case 262:return e.Debug.type(a),m.updateNamespaceExportDeclaration(a,p(a.name,c,e.isIdentifier));case 263:return e.Debug.type(a),m.updateImportEqualsDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),a.isTypeOnly,p(a.name,c,e.isIdentifier),p(a.moduleReference,c,e.isModuleReference));case 264:return e.Debug.type(a),m.updateImportDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.importClause,c,e.isImportClause),p(a.moduleSpecifier,c,e.isExpression));case 265:return e.Debug.type(a),m.updateImportClause(a,a.isTypeOnly,p(a.name,c,e.isIdentifier),p(a.namedBindings,c,e.isNamedImportBindings));case 266:return e.Debug.type(a),m.updateNamespaceImport(a,p(a.name,c,e.isIdentifier));case 272:return e.Debug.type(a),m.updateNamespaceExport(a,p(a.name,c,e.isIdentifier));case 267:return e.Debug.type(a),m.updateNamedImports(a,u(a.elements,c,e.isImportSpecifier));case 268:return e.Debug.type(a),m.updateImportSpecifier(a,p(a.propertyName,c,e.isIdentifier),p(a.name,c,e.isIdentifier));case 269:return e.Debug.type(a),m.updateExportAssignment(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.expression,c,e.isExpression));case 270:return e.Debug.type(a),m.updateExportDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),a.isTypeOnly,p(a.exportClause,c,e.isNamedExportBindings),p(a.moduleSpecifier,c,e.isExpression));case 271:return e.Debug.type(a),m.updateNamedExports(a,u(a.elements,c,e.isExportSpecifier));case 273:return e.Debug.type(a),m.updateExportSpecifier(a,p(a.propertyName,c,e.isIdentifier),p(a.name,c,e.isIdentifier));case 275:return e.Debug.type(a),m.updateExternalModuleReference(a,p(a.expression,c,e.isExpression));case 276:return e.Debug.type(a),m.updateJsxElement(a,p(a.openingElement,c,e.isJsxOpeningElement),u(a.children,c,e.isJsxChild),p(a.closingElement,c,e.isJsxClosingElement));case 277:return e.Debug.type(a),m.updateJsxSelfClosingElement(a,p(a.tagName,c,e.isJsxTagNameExpression),u(a.typeArguments,c,e.isTypeNode),p(a.attributes,c,e.isJsxAttributes));case 278:return e.Debug.type(a),m.updateJsxOpeningElement(a,p(a.tagName,c,e.isJsxTagNameExpression),u(a.typeArguments,c,e.isTypeNode),p(a.attributes,c,e.isJsxAttributes));case 279:return e.Debug.type(a),m.updateJsxClosingElement(a,p(a.tagName,c,e.isJsxTagNameExpression));case 280:return e.Debug.type(a),m.updateJsxFragment(a,p(a.openingFragment,c,e.isJsxOpeningFragment),u(a.children,c,e.isJsxChild),p(a.closingFragment,c,e.isJsxClosingFragment));case 283:return e.Debug.type(a),m.updateJsxAttribute(a,p(a.name,c,e.isIdentifier),p(a.initializer,c,e.isStringLiteralOrJsxExpression));case 284:return e.Debug.type(a),m.updateJsxAttributes(a,u(a.properties,c,e.isJsxAttributeLike));case 285:return e.Debug.type(a),m.updateJsxSpreadAttribute(a,p(a.expression,c,e.isExpression));case 286:return e.Debug.type(a),m.updateJsxExpression(a,p(a.expression,c,e.isExpression));case 287:return e.Debug.type(a),m.updateCaseClause(a,p(a.expression,c,e.isExpression),u(a.statements,c,e.isStatement));case 288:return e.Debug.type(a),m.updateDefaultClause(a,u(a.statements,c,e.isStatement));case 289:return e.Debug.type(a),m.updateHeritageClause(a,u(a.types,c,e.isExpressionWithTypeArguments));case 290:return e.Debug.type(a),m.updateCatchClause(a,p(a.variableDeclaration,c,e.isVariableDeclaration),p(a.block,c,e.isBlock));case 291:return e.Debug.type(a),m.updatePropertyAssignment(a,p(a.name,c,e.isPropertyName),p(a.initializer,c,e.isExpression));case 292:return e.Debug.type(a),m.updateShorthandPropertyAssignment(a,p(a.name,c,e.isIdentifier),p(a.objectAssignmentInitializer,c,e.isExpression));case 293:return e.Debug.type(a),m.updateSpreadAssignment(a,p(a.expression,c,e.isExpression));case 294:return e.Debug.type(a),m.updateEnumMember(a,p(a.name,c,e.isPropertyName),p(a.initializer,c,e.isExpression));case 300:return e.Debug.type(a),m.updateSourceFile(a,r(a.statements,c,l));case 345:return e.Debug.type(a),m.updatePartiallyEmittedExpression(a,p(a.expression,c,e.isExpression));case 346:return e.Debug.type(a),m.updateCommaListExpression(a,u(a.elements,c,e.isExpression));default:return a}}}}(u||(u={})),function(e){e.createSourceMapGenerator=function(n,t,r,i,o){var s,c,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,u=l.enter,d=l.exit,p=[],f=[],m=new e.Map,_=[],g=[],y="",h=0,v=0,b=0,E=0,T=0,S=0,x=!1,L=0,D=0,A=0,C=0,I=0,N=0,k=!1,R=!1,O=!1;return{getSources:function(){return p},addSource:P,setSourceContent:w,addName:M,addMapping:F,appendSourceMap:function(n,t,r,i,o,s){e.Debug.assert(n>=L,"generatedLine cannot backtrack"),e.Debug.assert(t>=0,"generatedCharacter cannot be negative"),u();for(var c,l=[],p=a(r.mappings),f=p.next();!f.done;f=p.next()){var m=f.value;if(s&&(m.generatedLine>s.line||m.generatedLine===s.line&&m.generatedCharacter>s.character))break;if(!o||!(m.generatedLine<o.line||o.line===m.generatedLine&&m.generatedCharacter<o.character)){var _=void 0,g=void 0,y=void 0,h=void 0;if(void 0!==m.sourceIndex){if(void 0===(_=l[m.sourceIndex])){var v=r.sources[m.sourceIndex],b=r.sourceRoot?e.combinePaths(r.sourceRoot,v):v,E=e.combinePaths(e.getDirectoryPath(i),b);l[m.sourceIndex]=_=P(E),r.sourcesContent&&"string"==typeof r.sourcesContent[m.sourceIndex]&&w(_,r.sourcesContent[m.sourceIndex])}g=m.sourceLine,y=m.sourceCharacter,r.names&&void 0!==m.nameIndex&&(c||(c=[]),void 0===(h=c[m.nameIndex])&&(c[m.nameIndex]=h=M(r.names[m.nameIndex])))}var T=m.generatedLine-(o?o.line:0),S=T+n,x=o&&o.line===m.generatedLine?m.generatedCharacter-o.character:m.generatedCharacter;F(S,0===T?x+t:x,_,g,y,h)}}d()},toJSON:V,toString:function(){return JSON.stringify(V())}};function P(t){u();var r=e.getRelativePathToDirectoryOrUrl(i,t,n.getCurrentDirectory(),n.getCanonicalFileName,!0),a=m.get(r);return void 0===a&&(a=f.length,f.push(r),p.push(t),m.set(r,a)),d(),a}function w(e,n){if(u(),null!==n){for(s||(s=[]);s.length<e;)s.push(null);s[e]=n}d()}function M(n){u(),c||(c=new e.Map);var t=c.get(n);return void 0===t&&(t=_.length,_.push(n),c.set(n,t)),d(),t}function F(n,t,r,i,a,o){e.Debug.assert(n>=L,"generatedLine cannot backtrack"),e.Debug.assert(t>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===r||r>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),u(),(function(e,n){return!k||L!==e||D!==n}(n,t)||function(e,n,t){return void 0!==e&&void 0!==n&&void 0!==t&&A===e&&(C>n||C===n&&I>t)}(r,i,a))&&(B(),L=n,D=t,R=!1,O=!1,k=!0),void 0!==r&&void 0!==i&&void 0!==a&&(A=r,C=i,I=a,R=!0,void 0!==o&&(N=o,O=!0)),d()}function G(e){g.push(e),g.length>=1024&&U()}function B(){if(k&&(!x||h!==L||v!==D||b!==A||E!==C||T!==I||S!==N)){if(u(),h<L){do{G(59),h++}while(h<L);v=0}else e.Debug.assertEqual(h,L,"generatedLine cannot backtrack"),x&&G(44);j(D-v),v=D,R&&(j(A-b),b=A,j(C-E),E=C,j(I-T),T=I,O&&(j(N-S),S=N)),x=!0,d()}}function U(){g.length>0&&(y+=String.fromCharCode.apply(void 0,g),g.length=0)}function V(){return B(),U(),{version:3,file:t,sourceRoot:r,sources:f,names:_,mappings:y,sourcesContent:s}}function j(n){n<0?n=1+(-n<<1):n<<=1;do{var t=31&n;(n>>=5)>0&&(t|=32),G((r=t)>=0&&r<26?65+r:r>=26&&r<52?97+r-26:r>=52&&r<62?48+r-52:62===r?43:63===r?47:e.Debug.fail(r+": not a base64 value"))}while(n>0);var r}};var n=/^\/\/[@#] source[M]appingURL=(.+)$/,t=/^\s*(\/\/[@#] .*)?$/;function r(e){return"string"==typeof e||null===e}function i(n){return null!==n&&"object"==typeof n&&3===n.version&&"string"==typeof n.file&&"string"==typeof n.mappings&&e.isArray(n.sources)&&e.every(n.sources,e.isString)&&(void 0===n.sourceRoot||null===n.sourceRoot||"string"==typeof n.sourceRoot)&&(void 0===n.sourcesContent||null===n.sourcesContent||e.isArray(n.sourcesContent)&&e.every(n.sourcesContent,r))&&(void 0===n.names||null===n.names||e.isArray(n.names)&&e.every(n.names,e.isString))}function a(e){var n,t=!1,r=0,i=0,a=0,o=0,s=0,c=0,l=0;return{get pos(){return r},get error(){return n},get state(){return u(!0,!0)},next:function(){for(;!t&&r<e.length;){var n=e.charCodeAt(r);if(59!==n){if(44!==n){var p=!1,y=!1;if(a+=g(),m())return d();if(a<0)return f("Invalid generatedCharacter found");if(!_()){if(p=!0,o+=g(),m())return d();if(o<0)return f("Invalid sourceIndex found");if(_())return f("Unsupported Format: No entries after sourceIndex");if(s+=g(),m())return d();if(s<0)return f("Invalid sourceLine found");if(_())return f("Unsupported Format: No entries after sourceLine");if(c+=g(),m())return d();if(c<0)return f("Invalid sourceCharacter found");if(!_()){if(y=!0,l+=g(),m())return d();if(l<0)return f("Invalid nameIndex found");if(!_())return f("Unsupported Error Format: Entries after nameIndex")}}return{value:u(p,y),done:t}}r++}else i++,a=0,r++}return d()}};function u(e,n){return{generatedLine:i,generatedCharacter:a,sourceIndex:e?o:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:n?l:void 0}}function d(){return t=!0,{value:void 0,done:!0}}function p(e){void 0===n&&(n=e)}function f(e){return p(e),d()}function m(){return void 0!==n}function _(){return r===e.length||44===e.charCodeAt(r)||59===e.charCodeAt(r)}function g(){for(var n,t=!0,i=0,a=0;t;r++){if(r>=e.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(n=e.charCodeAt(r))>=65&&n<=90?n-65:n>=97&&n<=122?n-97+26:n>=48&&n<=57?n-48+52:43===n?62:47===n?63:-1;if(-1===o)return p("Invalid character in VLQ"),-1;t=0!=(32&o),a|=(31&o)<<i,i+=5}return 0==(1&a)?a>>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function c(e,n){return e.generatedPosition===n.generatedPosition&&e.sourceIndex===n.sourceIndex&&e.sourcePosition===n.sourcePosition}function l(n,t){return e.Debug.assert(n.sourceIndex===t.sourceIndex),e.compareValues(n.sourcePosition,t.sourcePosition)}function u(n,t){return e.compareValues(n.generatedPosition,t.generatedPosition)}function d(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=function(e,n){return{getLineCount:function(){return n.length},getLineText:function(t){return e.substring(n[t],n[t+1])}}},e.tryGetSourceMappingURL=function(r){for(var i=r.getLineCount()-1;i>=0;i--){var a=r.getLineText(i),o=n.exec(a);if(o)return e.trimStringEnd(o[1]);if(!a.match(t))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var n=JSON.parse(e);if(i(n))return n}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,n){return e===n||e.generatedLine===n.generatedLine&&e.generatedCharacter===n.generatedCharacter&&e.sourceIndex===n.sourceIndex&&e.sourceLine===n.sourceLine&&e.sourceCharacter===n.sourceCharacter&&e.nameIndex===n.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(n,t,r){var i,f,m,_=e.getDirectoryPath(r),g=t.sourceRoot?e.getNormalizedAbsolutePath(t.sourceRoot,_):_,y=e.getNormalizedAbsolutePath(t.file,_),h=n.getSourceFileLike(y),v=t.sources.map((function(n){return e.getNormalizedAbsolutePath(n,g)})),b=new e.Map(v.map((function(e,t){return[n.getCanonicalFileName(e),t]})));return{getSourcePosition:function(n){var t=x();if(!e.some(t))return n;var r=e.binarySearchKey(t,n.pos,p,e.compareValues);r<0&&(r=~r);var i=t[r];return void 0!==i&&s(i)?{fileName:v[i.sourceIndex],pos:i.sourcePosition}:n},getGeneratedPosition:function(t){var r=b.get(n.getCanonicalFileName(t.fileName));if(void 0===r)return t;var i=S(r);if(!e.some(i))return t;var a=e.binarySearchKey(i,t.pos,d,e.compareValues);a<0&&(a=~a);var o=i[a];return void 0===o||o.sourceIndex!==r?t:{fileName:y,pos:o.generatedPosition}}};function E(r){var i,a,s=void 0!==h?e.getPositionOfLineAndCharacter(h,r.generatedLine,r.generatedCharacter,!0):-1;if(o(r)){var c=n.getSourceFileLike(v[r.sourceIndex]);i=t.sources[r.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,r.sourceLine,r.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:r.sourceIndex,sourcePosition:a,nameIndex:r.nameIndex}}function T(){if(void 0===i){var r=a(t.mappings),o=e.arrayFrom(r,E);void 0!==r.error?(n.log&&n.log("Encountered error while decoding sourcemap: "+r.error),i=e.emptyArray):i=o}return i}function S(n){if(void 0===m){for(var t=[],r=0,i=T();r<i.length;r++){var a=i[r];if(s(a)){var o=t[a.sourceIndex];o||(t[a.sourceIndex]=o=[]),o.push(a)}}m=t.map((function(n){return e.sortAndDeduplicate(n,l,c)}))}return m[n]}function x(){if(void 0===f){for(var n=[],t=0,r=T();t<r.length;t++){var i=r[t];n.push(i)}f=e.sortAndDeduplicate(n,u,c)}return f}},e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}}(u||(u={})),function(e){function n(n){return(n=e.getOriginalNode(n))?e.getNodeId(n):0}function t(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function r(n){if(e.getNamespaceDeclarationNode(n))return!0;var r=n.importClause&&n.importClause.namedBindings;if(!r)return!1;if(!e.isNamedImports(r))return!1;for(var i=0,a=0,o=r.elements;a<o.length;a++)t(o[a])&&i++;return i>0&&i!==r.elements.length||!!(r.elements.length-i)&&e.isDefaultImport(n)}function i(n){return!r(n)&&(e.isDefaultImport(n)||!!n.importClause&&e.isNamedImports(n.importClause.namedBindings)&&function(n){return!!n&&!!e.isNamedImports(n)&&e.some(n.elements,t)}(n.importClause.namedBindings))}function a(n,t,r){if(e.isBindingPattern(n.name))for(var i=0,o=n.name.elements;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||(r=a(s,t,r))}else if(!e.isGeneratedIdentifier(n.name)){var c=e.idText(n.name);t.get(c)||(t.set(c,!0),r=e.append(r,n.name))}return r}function o(e,n,t){var r=e[n];return r?r.push(t):e[n]=r=[t],r}function s(n){return e.isStringLiteralLike(n)||8===n.kind||e.isKeyword(n.kind)||e.isIdentifier(n)}function c(n){return t=n,e.isPropertyDeclaration(t)&&e.hasStaticModifier(t)||e.isClassStaticBlockDeclaration(n);var t}e.getOriginalNodeId=n,e.chainBundle=function(n,t){return function(r){return 300===r.kind?t(r):function(r){return n.factory.createBundle(e.map(r.sourceFiles,t),r.prepends)}(r)}},e.getExportNeedsImportStarHelper=function(n){return!!e.getNamespaceDeclarationNode(n)},e.getImportNeedsImportStarHelper=r,e.getImportNeedsImportDefaultHelper=i,e.collectExternalModuleInfo=function(t,s,c,l){for(var u,d,p=[],f=e.createMultiMap(),m=[],_=new e.Map,g=!1,y=!1,h=!1,v=!1,b=0,E=s.statements;b<E.length;b++){var T=E[b];switch(T.kind){case 264:p.push(T),!h&&r(T)&&(h=!0),!v&&i(T)&&(v=!0);break;case 263:275===T.moduleReference.kind&&p.push(T);break;case 270:if(T.moduleSpecifier)if(T.exportClause)if(p.push(T),e.isNamedExports(T.exportClause))C(T);else{var S=T.exportClause.name;_.get(e.idText(S))||(o(m,n(T),S),_.set(e.idText(S),!0),u=e.append(u,S)),h=!0}else p.push(T),y=!0;else C(T);break;case 269:T.isExportEquals&&!d&&(d=T);break;case 235:if(e.hasSyntacticModifier(T,1))for(var x=0,L=T.declarationList.declarations;x<L.length;x++){var D=L[x];u=a(D,_,u)}break;case 254:e.hasSyntacticModifier(T,1)&&(e.hasSyntacticModifier(T,512)?g||(o(m,n(T),t.factory.getDeclarationName(T)),g=!0):(S=T.name,_.get(e.idText(S))||(o(m,n(T),S),_.set(e.idText(S),!0),u=e.append(u,S))));break;case 255:e.hasSyntacticModifier(T,1)&&(e.hasSyntacticModifier(T,512)?g||(o(m,n(T),t.factory.getDeclarationName(T)),g=!0):(S=T.name)&&!_.get(e.idText(S))&&(o(m,n(T),S),_.set(e.idText(S),!0),u=e.append(u,S)))}}var A=e.createExternalHelpersImportDeclarationIfNeeded(t.factory,t.getEmitHelperFactory(),s,l,y,h,v);return A&&p.unshift(A),{externalImports:p,exportSpecifiers:f,exportEquals:d,hasExportStarsToExportValues:y,exportedBindings:m,exportedNames:u,externalHelpersImportDeclaration:A};function C(t){for(var r=0,i=e.cast(t.exportClause,e.isNamedExports).elements;r<i.length;r++){var a=i[r];if(!_.get(e.idText(a.name))){var s=a.propertyName||a.name;t.moduleSpecifier||f.add(e.idText(s),a);var l=c.getReferencedImportDeclaration(s)||c.getReferencedValueDeclaration(s);l&&o(m,n(l),a.name),_.set(e.idText(a.name),!0),u=e.append(u,a.name)}}}},e.isSimpleCopiableExpression=s,e.isSimpleInlineableExpression=function(n){return!e.isIdentifier(n)&&s(n)},e.isCompoundAssignment=function(e){return e>=64&&e<=78},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){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.addPrologueDirectivesAndInitialSuperCall=function(n,t,r,i){if(t.body){var a=t.body.statements,o=n.copyPrologue(a,r,!1,i);if(o===a.length)return o;var s=e.findIndex(a,(function(n){return e.isExpressionStatement(n)&&e.isSuperCall(n.expression)}),o);if(s>-1){for(var c=o;c<=s;c++)r.push(e.visitNode(a[c],i,e.isStatement));return s+1}return o}return 0},e.getProperties=function(n,t,r){return e.filter(n.members,(function(n){return function(n,t,r){return e.isPropertyDeclaration(n)&&(!!n.initializer||!t)&&e.hasStaticModifier(n)===r}(n,t,r)}))},e.getStaticPropertiesAndClassStaticBlock=function(n){return e.filter(n.members,c)},e.isInitializedProperty=function(e){return 165===e.kind&&void 0!==e.initializer},e.isNonStaticMethodOrAccessorWithPrivateName=function(n){return!e.isStatic(n)&&e.isMethodOrAccessor(n)&&e.isPrivateIdentifier(n.name)}}(u||(u={})),function(e){function n(t,r){var i=e.getTargetOfBindingOrAssignmentElement(t);return e.isBindingOrAssignmentPattern(i)?function(t,r){for(var i=0,a=e.getElementsOfBindingOrAssignmentPattern(t);i<a.length;i++)if(n(a[i],r))return!0;return!1}(i,r):!!e.isIdentifier(i)&&i.escapedText===r}function t(n){var r=e.tryGetPropertyNameOfBindingOrAssignmentElement(n);if(r&&e.isComputedPropertyName(r)&&!e.isLiteralExpression(r.expression))return!0;var i,a=e.getTargetOfBindingOrAssignmentElement(n);return!!a&&e.isBindingOrAssignmentPattern(a)&&(i=a,!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(i),t))}function r(n,t,s,c,l){var u=e.getTargetOfBindingOrAssignmentElement(t);if(!l){var d=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(t),n.visitor,e.isExpression);d?s?(s=function(e,n,t,r){return n=o(e,n,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(n,"undefined"),void 0,t,void 0,n)}(n,s,d,c),!e.isSimpleInlineableExpression(d)&&e.isBindingOrAssignmentPattern(u)&&(s=o(n,s,!0,c))):s=d:s||(s=n.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(u)?function(n,t,i,s,c){var l,u,d=e.getElementsOfBindingOrAssignmentPattern(i),p=d.length;1!==p&&(s=o(n,s,!e.isDeclarationBindingElement(t)||0!==p,c));for(var f=0;f<p;f++){var m=d[f];if(e.getRestIndicatorOfBindingOrAssignmentElement(m))f===p-1&&(l&&(n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0),g=n.context.getEmitHelperFactory().createRestHelper(s,d,u,i),r(n,m,g,m));else{var _=e.getPropertyNameOfBindingOrAssignmentElement(m);if(!(n.level>=1)||49152&m.transformFlags||49152&e.getTargetOfBindingOrAssignmentElement(m).transformFlags||e.isComputedPropertyName(_)){l&&(n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0);var g=a(n,s,_);e.isComputedPropertyName(_)&&(u=e.append(u,g.argumentExpression)),r(n,m,g,m)}else l=e.append(l,e.visitNode(m,n.visitor))}}l&&n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(l),s,c,i)}(n,t,u,s,c):e.isArrayBindingOrAssignmentPattern(u)?function(n,t,a,s,c){var l,u,d=e.getElementsOfBindingOrAssignmentPattern(a),p=d.length;n.level<1&&n.downlevelIteration?s=o(n,e.setTextRange(n.context.getEmitHelperFactory().createReadHelper(s,p>0&&e.getRestIndicatorOfBindingOrAssignmentElement(d[p-1])?void 0:p),c),!1,c):(1!==p&&(n.level<1||0===p)||e.every(d,e.isOmittedExpression))&&(s=o(n,s,!e.isDeclarationBindingElement(t)||0!==p,c));for(var f=0;f<p;f++){var m=d[f];if(n.level>=1)if(32768&m.transformFlags||n.hasTransformedPriorElement&&!i(m)){n.hasTransformedPriorElement=!0;var _=n.context.factory.createTempVariable(void 0);n.hoistTempVariables&&n.context.hoistVariableDeclaration(_),u=e.append(u,[_,m]),l=e.append(l,n.createArrayBindingOrAssignmentElement(_))}else l=e.append(l,m);else{if(e.isOmittedExpression(m))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(m))f===p-1&&(g=n.context.factory.createArraySliceCall(s,f),r(n,m,g,m));else{var g=n.context.factory.createElementAccessExpression(s,f);r(n,m,g,m)}}}if(l&&n.emitBindingOrAssignment(n.createArrayBindingOrAssignmentPattern(l),s,c,a),u)for(var y=0,h=u;y<h.length;y++){var v=h[y],b=v[0];r(n,m=v[1],b,m)}}(n,t,u,s,c):n.emitBindingOrAssignment(u,s,c,t)}function i(n){var t=e.getTargetOfBindingOrAssignmentElement(n);if(!t||e.isOmittedExpression(t))return!0;var r=e.tryGetPropertyNameOfBindingOrAssignmentElement(n);if(r&&!e.isPropertyNameLiteral(r))return!1;var a=e.getInitializerOfBindingOrAssignmentElement(n);return!(a&&!e.isSimpleInlineableExpression(a))&&(e.isBindingOrAssignmentPattern(t)?e.every(e.getElementsOfBindingOrAssignmentPattern(t),i):e.isIdentifier(t))}function a(n,t,r){if(e.isComputedPropertyName(r)){var i=o(n,e.visitNode(r.expression,n.visitor),!1,r);return n.context.factory.createElementAccessExpression(t,i)}if(e.isStringOrNumericLiteralLike(r))return i=e.factory.cloneNode(r),n.context.factory.createElementAccessExpression(t,i);var a=n.context.factory.createIdentifier(e.idText(r));return n.context.factory.createPropertyAccessExpression(t,a)}function o(n,t,r,i){if(e.isIdentifier(t)&&r)return t;var a=n.context.factory.createTempVariable(void 0);return n.hoistTempVariables?(n.context.hoistVariableDeclaration(a),n.emitExpression(e.setTextRange(n.context.factory.createAssignment(a,t),i))):n.emitBindingOrAssignment(a,t,i,void 0),a}function s(e){return e}var c;(c=e.FlattenLevel||(e.FlattenLevel={}))[c.All=0]="All",c[c.ObjectRest=1]="ObjectRest",e.flattenDestructuringAssignment=function(i,a,c,l,u,d){var p,f,m=i;if(e.isDestructuringAssignment(i))for(p=i.right;e.isEmptyArrayLiteral(i.left)||e.isEmptyObjectLiteral(i.left);){if(!e.isDestructuringAssignment(p))return e.visitNode(p,a,e.isExpression);m=i=p,p=i.right}var _={context:c,level:l,downlevelIteration:!!c.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:g,emitBindingOrAssignment:function(n,t,r,i){e.Debug.assertNode(n,d?e.isIdentifier:e.isExpression);var o=d?d(n,t,r):e.setTextRange(c.factory.createAssignment(e.visitNode(n,a,e.isExpression),t),r);o.original=i,g(o)},createArrayBindingOrAssignmentPattern:function(n){return function(n,t){return n.createArrayLiteralExpression(e.map(t,n.converters.convertToArrayAssignmentElement))}(c.factory,n)},createObjectBindingOrAssignmentPattern:function(n){return function(n,t){return n.createObjectLiteralExpression(e.map(t,n.converters.convertToObjectAssignmentElement))}(c.factory,n)},createArrayBindingOrAssignmentElement:s,visitor:a};if(p&&(p=e.visitNode(p,a,e.isExpression),e.isIdentifier(p)&&n(i,p.escapedText)||t(i)?p=o(_,p,!1,m):u?p=o(_,p,!0,m):e.nodeIsSynthesized(i)&&(m=p)),r(_,i,p,m,e.isDestructuringAssignment(i)),p&&u){if(!e.some(f))return p;f.push(p)}return c.factory.inlineExpressions(f)||c.factory.createOmittedExpression();function g(n){f=e.append(f,n)}},e.flattenDestructuringBinding=function(i,a,s,c,l,u,d){var p;void 0===u&&(u=!1);var f=[],m=[],_={context:s,level:c,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:u,emitExpression:function(n){p=e.append(p,n)},emitBindingOrAssignment:C,createArrayBindingOrAssignmentPattern:function(n){return function(n,t){return e.Debug.assertEachNode(t,e.isArrayBindingElement),n.createArrayBindingPattern(t)}(s.factory,n)},createObjectBindingOrAssignmentPattern:function(n){return function(n,t){return e.Debug.assertEachNode(t,e.isBindingElement),n.createObjectBindingPattern(t)}(s.factory,n)},createArrayBindingOrAssignmentElement:function(e){return function(e,n){return e.createBindingElement(void 0,void 0,n)}(s.factory,e)},visitor:a};if(e.isVariableDeclaration(i)){var g=e.getInitializerOfBindingOrAssignmentElement(i);g&&(e.isIdentifier(g)&&n(i,g.escapedText)||t(i))&&(g=o(_,e.visitNode(g,_.visitor),!1,g),i=s.factory.updateVariableDeclaration(i,i.name,void 0,void 0,g))}if(r(_,i,l,i,d),p){var y=s.factory.createTempVariable(void 0);if(u){var h=s.factory.inlineExpressions(p);p=void 0,C(y,h,void 0,void 0)}else{s.hoistVariableDeclaration(y);var v=e.last(f);v.pendingExpressions=e.append(v.pendingExpressions,s.factory.createAssignment(y,v.value)),e.addRange(v.pendingExpressions,p),v.value=y}}for(var b=0,E=f;b<E.length;b++){var T=E[b],S=T.pendingExpressions,x=T.name,L=(h=T.value,T.location),D=T.original,A=s.factory.createVariableDeclaration(x,void 0,void 0,S?s.factory.inlineExpressions(e.append(S,h)):h);A.original=D,e.setTextRange(A,L),m.push(A)}return m;function C(n,t,r,i){e.Debug.assertNode(n,e.isBindingName),p&&(t=s.factory.inlineExpressions(e.append(p,t)),p=void 0),f.push({pendingExpressions:p,name:n,value:t,location:r,original:i})}}}(u||(u={})),function(e){var n;function t(n){return n.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(n.text)}function r(n,t){var r=n.rawText;if(void 0===r){e.Debug.assertIsDefined(t,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=e.getSourceTextOfNodeFromSourceFile(t,n);var i=14===n.kind||17===n.kind;r=r.substring(1,r.length-(i?1:2))}return r=r.replace(/\r\n?/g,"\n"),e.setTextRange(e.factory.createStringLiteral(r),n)}!function(e){e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All"}(n=e.ProcessLevel||(e.ProcessLevel={})),e.processTaggedTemplateExpression=function(i,a,o,s,c,l){var u=e.visitNode(a.tag,o,e.isExpression),d=[void 0],p=[],f=[],m=a.template;if(l===n.LiftRestriction&&!e.hasInvalidEscape(m))return e.visitEachChild(a,o,i);if(e.isNoSubstitutionTemplateLiteral(m))p.push(t(m)),f.push(r(m,s));else{p.push(t(m.head)),f.push(r(m.head,s));for(var _=0,g=m.templateSpans;_<g.length;_++){var y=g[_];p.push(t(y.literal)),f.push(r(y.literal,s)),d.push(e.visitNode(y.expression,o,e.isExpression))}}var h=i.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(p),e.factory.createArrayLiteralExpression(f));if(e.isExternalModule(s)){var v=e.factory.createUniqueName("templateObject");c(v),d[0]=e.factory.createLogicalOr(v,e.factory.createAssignment(v,h))}else d[0]=h;return e.factory.createCallExpression(u,void 0,d)}}(u||(u={})),function(e){var n,t;!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"}(n||(n={})),function(e){e[e.None=0]="None",e[e.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",e[e.HasConstructorDecorators=2]="HasConstructorDecorators",e[e.HasMemberDecorators=4]="HasMemberDecorators",e[e.IsExportOfNamespace=8]="IsExportOfNamespace",e[e.IsNamedExternalExport=16]="IsNamedExternalExport",e[e.IsDefaultExternalExport=32]="IsDefaultExternalExport",e[e.IsDerivedClass=64]="IsDerivedClass",e[e.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",e[e.HasAnyDecorators=6]="HasAnyDecorators",e[e.NeedsName=5]="NeedsName",e[e.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",e[e.IsExported=56]="IsExported"}(t||(t={})),e.transformTypeScript=function(n){var t,r,i,a,o,s,c,l,u,d,p=n.factory,f=n.getEmitHelperFactory,m=n.startLexicalEnvironment,_=n.resumeLexicalEnvironment,g=n.endLexicalEnvironment,y=n.hoistVariableDeclaration,h=n.getEmitResolver(),v=n.getCompilerOptions(),b=e.getStrictOptionValue(v,"strictNullChecks"),E=e.getEmitScriptTarget(v),T=e.getEmitModuleKind(v),S=n.onEmitNode,x=n.onSubstituteNode;return n.onEmitNode=function(n,r,i){var a=d,o=t;e.isSourceFile(r)&&(t=r),2&l&&function(n){return 259===e.getOriginalNode(n).kind}(r)&&(d|=2),8&l&&function(n){return 258===e.getOriginalNode(n).kind}(r)&&(d|=8),S(n,r,i),d=a,t=o},n.onSubstituteNode=function(n,t){return t=x(n,t),1===n?function(n){switch(n.kind){case 79:return function(n){return function(n){if(1&l&&33554432&h.getNodeCheckFlags(n)){var t=h.getReferencedValueDeclaration(n);if(t){var r=u[t.id];if(r){var i=p.cloneNode(r);return e.setSourceMapRange(i,n),e.setCommentRange(i,n),i}}}}(n)||Re(n)||n}(n);case 204:case 205:return function(n){return function(n){var t=function(n){if(!v.isolatedModules)return e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)?h.getConstantValue(n):void 0}(n);if(void 0!==t){e.setConstantValue(n,t);var r="string"==typeof t?p.createStringLiteral(t):p.createNumericLiteral(t);if(!v.removeComments){var i=e.getOriginalNode(n,e.isAccessExpression),a=e.isPropertyAccessExpression(i)?e.declarationNameToString(i.name):e.getTextOfNode(i.argumentExpression);e.addSyntheticTrailingComment(r,3," "+a+" ")}return r}return n}(n)}(n)}return n}(t):e.isShorthandPropertyAssignment(t)?function(n){if(2&l){var t=n.name,r=Re(t);if(r){if(n.objectAssignmentInitializer){var i=p.createAssignment(r,n.objectAssignmentInitializer);return e.setTextRange(p.createPropertyAssignment(t,i),n)}return e.setTextRange(p.createPropertyAssignment(t,r),n)}}return n}(t):t},n.enableSubstitution(204),n.enableSubstitution(205),function(n){return 301===n.kind?function(n){return p.createBundle(n.sourceFiles.map(L),e.mapDefined(n.prepends,(function(n){return 303===n.kind?e.createUnparsedSourceFile(n,"js"):n})))}(n):L(n)};function L(r){if(r.isDeclarationFile)return r;t=r;var i=D(r,F);return e.addEmitHelpers(i,n.readEmitHelpers()),t=void 0,i}function D(n,t){var r=a,i=o,l=s,u=c;!function(n){switch(n.kind){case 300:case 261:case 260:case 233:a=n,o=void 0,s=void 0;break;case 255:case 254:if(e.hasSyntacticModifier(n,2))break;n.name?pe(n):e.Debug.assert(255===n.kind||e.hasSyntacticModifier(n,512)),e.isClassDeclaration(n)&&(o=n)}}(n);var d=t(n);return a!==r&&(s=l),a=r,o=i,c=u,d}function A(e){return D(e,C)}function C(e){return 1&e.transformFlags?M(e):e}function I(e){return D(e,N)}function N(t){switch(t.kind){case 264:case 263:case 269:case 270:return function(t){if(e.getParseTreeNode(t)!==t)return 1&t.transformFlags?e.visitEachChild(t,A,n):t;switch(t.kind){case 264:return function(n){if(!n.importClause)return n;if(!n.importClause.isTypeOnly){var t=e.visitNode(n.importClause,ye,e.isImportClause);return t||1===v.importsNotUsedAsValues||2===v.importsNotUsedAsValues?p.updateImportDeclaration(n,void 0,void 0,t,n.moduleSpecifier):void 0}}(t);case 263:return Te(t);case 269:return function(t){return h.isValueAliasDeclaration(t)?e.visitEachChild(t,A,n):void 0}(t);case 270:return function(n){if(!n.isTypeOnly){if(!n.exportClause||e.isNamespaceExport(n.exportClause))return n;if(h.isValueAliasDeclaration(n)){var t=e.visitNode(n.exportClause,be,e.isNamedExportBindings);return t?p.updateExportDeclaration(n,void 0,void 0,n.isTypeOnly,t,n.moduleSpecifier):void 0}}}(t);default:e.Debug.fail("Unhandled ellided statement")}}(t);default:return C(t)}}function k(e){return D(e,R)}function R(n){if(270!==n.kind&&264!==n.kind&&265!==n.kind&&(263!==n.kind||275!==n.moduleReference.kind))return 1&n.transformFlags||e.hasSyntacticModifier(n,1)?M(n):n}function O(e){return D(e,P)}function P(n){switch(n.kind){case 169:return oe(n);case 165:return ae(n);case 174:case 170:case 171:case 167:case 168:return C(n);case 232:return n;default:return e.Debug.failBadSyntaxKind(n)}}function w(n){if(!(18654&e.modifierToFlag(n.kind)||r&&93===n.kind))return n}function M(o){if(e.isStatement(o)&&e.hasSyntacticModifier(o,2))return p.createNotEmittedStatement(o);switch(o.kind){case 93:case 88:return r?void 0:o;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:case 262:return;case 257:case 256:return p.createNotEmittedStatement(o);case 165:return ae(o);case 169:return oe(o);case 255:return function(i){if(!(B(i)||r&&e.hasSyntacticModifier(i,1)))return e.visitEachChild(i,A,n);var a=function(n,t){var r=0;e.some(t)&&(r|=1);var i=e.getEffectiveBaseTypeNode(n);return i&&104!==e.skipOuterExpressions(i.expression).kind&&(r|=64),e.classOrConstructorParameterIsDecorated(n)&&(r|=2),e.childIsDecorated(n)&&(r|=4),Se(n)?r|=8:function(n){return xe(n)&&e.hasSyntacticModifier(n,512)}(n)?r|=32:Le(n)&&(r|=16),E<=1&&7&r&&(r|=128),r}(i,e.getProperties(i,!0,!0));128&a&&n.startLexicalEnvironment();var o=i.name||(5&a?p.getGeneratedNameForNode(i):void 0),s=2&a?function(t,r){var i=e.moveRangePastDecorators(t),a=function(t){if(16777216&h.getNodeCheckFlags(t)){0==(1&l)&&(l|=1,n.enableSubstitution(79),u=[]);var r=p.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");return u[e.getOriginalNodeId(t)]=r,y(r),r}}(t),o=E<=2?p.getInternalName(t,!1,!0):p.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,A,e.isHeritageClause),c=U(t),d=p.createClassExpression(void 0,void 0,r,void 0,s,c);e.setOriginalNode(d,t),e.setTextRange(d,i);var f=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(o,void 0,void 0,a?p.createAssignment(a,d):d)],1));return e.setOriginalNode(f,t),e.setTextRange(f,i),e.setCommentRange(f,t),f}(i,o):function(n,t,r){var i=128&r?void 0:e.visitNodes(n.modifiers,w,e.isModifier),a=p.createClassDeclaration(void 0,i,t,void 0,e.visitNodes(n.heritageClauses,A,e.isHeritageClause),U(n)),o=e.getEmitFlags(n);return 1&r&&(o|=32),e.setTextRange(a,n),e.setOriginalNode(a,n),e.setEmitFlags(a,o),a}(i,o,a),c=[s];if(H(c,i,!1),H(c,i,!0),function(n,t){var r=function(n){var t=function(n){var t=n.decorators,r=j(e.getFirstConstructorWithBody(n));if(t||r)return{decorators:t,parameters:r}}(n),r=K(n,n,t);if(r){var i=u&&u[e.getOriginalNodeId(n)],a=E<=2?p.getInternalName(n,!1,!0):p.getLocalName(n,!1,!0),o=f().createDecorateHelper(r,a),s=p.createAssignment(a,i?p.createAssignment(i,o):o);return e.setEmitFlags(s,1536),e.setSourceMapRange(s,e.moveRangePastDecorators(n)),s}}(t);r&&n.push(e.setOriginalNode(p.createExpressionStatement(r),t))}(c,i),128&a){var d=e.createTokenRange(e.skipTrivia(t.text,i.members.end),19),m=p.getInternalName(i),_=p.createPartiallyEmittedExpression(m);e.setTextRangeEnd(_,d.end),e.setEmitFlags(_,1536);var g=p.createReturnStatement(_);e.setTextRangePos(g,d.pos),e.setEmitFlags(g,1920),c.push(g),e.insertStatementsAfterStandardPrologue(c,n.endLexicalEnvironment());var v=p.createImmediatelyInvokedArrowFunction(c);e.setEmitFlags(v,33554432);var b=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.getLocalName(i,!1,!1),void 0,void 0,v)]));e.setOriginalNode(b,i),e.setCommentRange(b,i),e.setSourceMapRange(b,e.moveRangePastDecorators(i)),e.startOnNewLine(b),c=[b]}return 8&a?Ae(c,i):(128&a||2&a)&&(32&a?c.push(p.createExportDefault(p.getLocalName(i,!1,!0))):16&a&&c.push(p.createExternalModuleExport(p.getLocalName(i,!1,!0)))),c.length>1&&(c.push(p.createEndOfDeclarationMarker(i)),e.setEmitFlags(s,4194304|e.getEmitFlags(s))),e.singleOrMany(c)}(o);case 224:return function(t){if(!B(t))return e.visitEachChild(t,A,n);var r=p.createClassExpression(void 0,void 0,t.name,void 0,e.visitNodes(t.heritageClauses,A,e.isHeritageClause),U(t));return e.setOriginalNode(r,t),e.setTextRange(r,t),r}(o);case 289:return function(t){if(117!==t.token)return e.visitEachChild(t,A,n)}(o);case 226:return function(n){return p.updateExpressionWithTypeArguments(n,e.visitNode(n.expression,A,e.isLeftHandSideExpression),void 0)}(o);case 167:return function(t){if(ie(t)){var r=p.updateMethodDeclaration(t,void 0,e.visitNodes(t.modifiers,w,e.isModifier),t.asteriskToken,re(t),void 0,void 0,e.visitParameterList(t.parameters,A,n),void 0,e.visitFunctionBody(t.body,A,n));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}(o);case 170:return function(t){if(ce(t)){var r=p.updateGetAccessorDeclaration(t,void 0,e.visitNodes(t.modifiers,w,e.isModifier),re(t),e.visitParameterList(t.parameters,A,n),void 0,e.visitFunctionBody(t.body,A,n)||p.createBlock([]));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}(o);case 171:return function(t){if(ce(t)){var r=p.updateSetAccessorDeclaration(t,void 0,e.visitNodes(t.modifiers,w,e.isModifier),re(t),e.visitParameterList(t.parameters,A,n),e.visitFunctionBody(t.body,A,n)||p.createBlock([]));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}(o);case 254:return function(t){if(!ie(t))return p.createNotEmittedStatement(t);var r=p.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,w,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,A,n),void 0,e.visitFunctionBody(t.body,A,n)||p.createBlock([]));if(Se(t)){var i=[r];return Ae(i,t),i}return r}(o);case 211:return function(t){return ie(t)?p.updateFunctionExpression(t,e.visitNodes(t.modifiers,w,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,A,n),void 0,e.visitFunctionBody(t.body,A,n)||p.createBlock([])):p.createOmittedExpression()}(o);case 212:return function(t){return p.updateArrowFunction(t,e.visitNodes(t.modifiers,w,e.isModifier),void 0,e.visitParameterList(t.parameters,A,n),void 0,t.equalsGreaterThanToken,e.visitFunctionBody(t.body,A,n))}(o);case 162:return function(n){if(!e.parameterIsThisKeyword(n)){var t=p.updateParameterDeclaration(n,void 0,void 0,n.dotDotDotToken,e.visitNode(n.name,A,e.isBindingName),void 0,void 0,e.visitNode(n.initializer,A,e.isExpression));return t!==n&&(e.setCommentRange(t,n),e.setTextRange(t,e.moveRangePastModifiers(n)),e.setSourceMapRange(t,e.moveRangePastModifiers(n)),e.setEmitFlags(t.name,32)),t}}(o);case 210:return function(r){var i=e.skipOuterExpressions(r.expression,-7);if(e.isAssertionExpression(i)){var a=e.visitNode(r.expression,A,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(a,t))?p.updateParenthesizedExpression(r,a):p.createPartiallyEmittedExpression(a,r)}return e.visitEachChild(r,A,n)}(o);case 209:case 227:return function(n){var t=e.visitNode(n.expression,A,e.isExpression);return p.createPartiallyEmittedExpression(t,n)}(o);case 206:return function(n){return p.updateCallExpression(n,e.visitNode(n.expression,A,e.isExpression),void 0,e.visitNodes(n.arguments,A,e.isExpression))}(o);case 207:return function(n){return p.updateNewExpression(n,e.visitNode(n.expression,A,e.isExpression),void 0,e.visitNodes(n.arguments,A,e.isExpression))}(o);case 208:return function(n){return p.updateTaggedTemplateExpression(n,e.visitNode(n.tag,A,e.isExpression),void 0,e.visitNode(n.template,A,e.isExpression))}(o);case 228:return function(n){var t=e.visitNode(n.expression,A,e.isLeftHandSideExpression);return p.createPartiallyEmittedExpression(t,n)}(o);case 258:return function(n){if(!function(n){return!e.isEnumConst(n)||e.shouldPreserveConstEnums(v)}(n))return p.createNotEmittedStatement(n);var r=[],o=2,s=me(r,n);s&&(T===e.ModuleKind.System&&a===t||(o|=512));var c=Ne(n),l=ke(n),u=e.hasSyntacticModifier(n,1)?p.getExternalModuleOrNamespaceExportName(i,n,!1,!0):p.getLocalName(n,!1,!0),d=p.createLogicalOr(u,p.createAssignment(u,p.createObjectLiteralExpression()));if(de(n)){var f=p.getLocalName(n,!1,!0);d=p.createAssignment(f,d)}var _=p.createExpressionStatement(p.createCallExpression(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,function(n,t){var r=i;i=t;var a=[];m();var o=e.map(n.members,ue);return e.insertStatementsAfterStandardPrologue(a,g()),e.addRange(a,o),i=r,p.createBlock(e.setTextRange(p.createNodeArray(a),n.members),!0)}(n,l)),void 0,[d]));return e.setOriginalNode(_,n),s&&(e.setSyntheticLeadingComments(_,void 0),e.setSyntheticTrailingComments(_,void 0)),e.setTextRange(_,n),e.addEmitFlags(_,o),r.push(_),r.push(p.createEndOfDeclarationMarker(n)),r}(o);case 235:return function(t){if(Se(t)){var r=e.getInitializedVariables(t.declarationList);if(0===r.length)return;return e.setTextRange(p.createExpressionStatement(p.inlineExpressions(e.map(r,le))),t)}return e.visitEachChild(t,A,n)}(o);case 252:return function(n){return p.updateVariableDeclaration(n,e.visitNode(n.name,A,e.isBindingName),void 0,void 0,e.visitNode(n.initializer,A,e.isExpression))}(o);case 259:return _e(o);case 263:return Te(o);case 277:return function(n){return p.updateJsxSelfClosingElement(n,e.visitNode(n.tagName,A,e.isJsxTagNameExpression),void 0,e.visitNode(n.attributes,A,e.isJsxAttributes))}(o);case 278:return function(n){return p.updateJsxOpeningElement(n,e.visitNode(n.tagName,A,e.isJsxTagNameExpression),void 0,e.visitNode(n.attributes,A,e.isJsxAttributes))}(o);default:return e.visitEachChild(o,A,n)}}function F(t){var r=e.getStrictOptionValue(v,"alwaysStrict")&&!(e.isExternalModule(t)&&T>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(t);return p.updateSourceFile(t,e.visitLexicalEnvironment(t.statements,I,n,0,r))}function G(e){return!!(4096&e.transformFlags)}function B(n){return e.some(n.decorators)||e.some(n.typeParameters)||e.some(n.heritageClauses,G)||e.some(n.members,G)}function U(n){var t=[],r=e.getFirstConstructorWithBody(n),i=r&&e.filter(r.parameters,(function(n){return e.isParameterPropertyDeclaration(n,r)}));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];e.isIdentifier(s.name)&&t.push(e.setOriginalNode(p.createPropertyDeclaration(void 0,void 0,s.name,void 0,void 0,void 0),s))}return e.addRange(t,e.visitNodes(n.members,O,e.isClassElement)),e.setTextRange(p.createNodeArray(t),n.members)}function V(n,t,r){return e.nodeOrChildIsDecorated(n,r)&&t===e.isStatic(n)}function j(n){var t;if(n)for(var r=n.parameters,i=r.length>0&&e.parameterIsThisKeyword(r[0]),a=i?1:0,o=i?r.length-1:r.length,s=0;s<o;s++){var c=r[s+a];(t||c.decorators)&&(t||(t=new Array(o)),t[s]=c.decorators)}return t}function K(n,t,r){if(r){var i=[];return e.addRange(i,e.map(r.decorators,z)),e.addRange(i,e.flatMap(r.parameters,J)),function(n,t,r){!function(n,t,r){v.emitDecoratorMetadata&&(function(e){var n=e.kind;return 167===n||170===n||171===n||165===n}(n)&&r.push(f().createMetadataHelper("design:type",q(n))),function(n){switch(n.kind){case 255:case 224:return void 0!==e.getFirstConstructorWithBody(n);case 167:case 170:case 171:return!0}return!1}(n)&&r.push(f().createMetadataHelper("design:paramtypes",function(n,t){var r=e.isClassLike(n)?e.getFirstConstructorWithBody(n):e.isFunctionLike(n)&&e.nodeIsPresent(n.body)?n:void 0,i=[];if(r)for(var a=function(n,t){if(t&&170===n.kind){var r=e.getAllAccessorDeclarations(t.members,n).setAccessor;if(r)return r.parameters}return n.parameters}(r,t),o=a.length,s=0;s<o;s++){var c=a[s];0===s&&e.isIdentifier(c.name)&&"this"===c.name.escapedText||(c.dotDotDotToken?i.push(X(e.getRestParameterElementType(c.type))):i.push(q(c)))}return p.createArrayLiteralExpression(i)}(n,t))),function(e){return 167===e.kind}(n)&&r.push(f().createMetadataHelper("design:returntype",function(n){return e.isFunctionLike(n)&&n.type?X(n.type):e.isAsyncFunction(n)?p.createIdentifier("Promise"):p.createVoidZero()}(n))))}(n,t,r)}(n,t,i),i}}function H(n,t,r){e.addRange(n,e.map(function(n,t){for(var r,i=function(n,t){return e.filter(n.members,t?function(e){return V(e,!0,n)}:function(e){return V(e,!1,n)})}(n,t),a=0,o=i;a<o.length;a++){var s=W(n,o[a]);s&&(r?r.push(s):r=[s])}return r}(t,r),De))}function W(n,t){var r=K(t,n,function(n,t){switch(t.kind){case 170:case 171:return function(n,t){if(t.body){var r=e.getAllAccessorDeclarations(n.members,t),i=r.firstAccessor,a=r.secondAccessor,o=r.setAccessor,s=i.decorators?i:a&&a.decorators?a:void 0;if(s&&t===s){var c=s.decorators,l=j(o);if(c||l)return{decorators:c,parameters:l}}}}(n,t);case 167:return function(e){if(e.body){var n=e.decorators,t=j(e);if(n||t)return{decorators:n,parameters:t}}}(t);case 165:return function(e){var n=e.decorators;if(n)return{decorators:n}}(t);default:return}}(n,t));if(r){var i=function(n,t){return e.isStatic(t)?p.getDeclarationName(n):function(e){return p.createPropertyAccessExpression(p.getDeclarationName(e),"prototype")}(n)}(n,t),a=te(t,!0),o=E>0?165===t.kind?p.createVoidZero():p.createNull():void 0,s=f().createDecorateHelper(r,i,a,o);return e.setTextRange(s,e.moveRangePastDecorators(t)),e.setEmitFlags(s,1536),s}}function z(n){return e.visitNode(n.expression,A,e.isExpression)}function J(n,t){var r;if(n){r=[];for(var i=0,a=n;i<a.length;i++){var o=a[i],s=f().createParamHelper(z(o),t);e.setTextRange(s,o.expression),e.setEmitFlags(s,1536),r.push(s)}}return r}function q(n){switch(n.kind){case 165:case 162:return X(n.type);case 171:case 170:return X(function(n){var t=h.getAllAccessorDeclarations(n);return t.setAccessor&&e.getSetAccessorTypeAnnotationNode(t.setAccessor)||t.getAccessor&&e.getEffectiveReturnTypeNode(t.getAccessor)}(n));case 255:case 224:case 167:return p.createIdentifier("Function");default:return p.createVoidZero()}}function X(n){if(void 0===n)return p.createIdentifier("Object");switch(n.kind){case 114:case 151:case 142:return p.createVoidZero();case 189:return X(n.type);case 177:case 178:return p.createIdentifier("Function");case 181:case 182:return p.createIdentifier("Array");case 175:case 132:return p.createIdentifier("Boolean");case 148:return p.createIdentifier("String");case 146:return p.createIdentifier("Object");case 194:switch(n.literal.kind){case 10:case 14:return p.createIdentifier("String");case 217:case 8:return p.createIdentifier("Number");case 9:return ne();case 110:case 95:return p.createIdentifier("Boolean");case 104:return p.createVoidZero();default:return e.Debug.failBadSyntaxKind(n.literal)}case 145:return p.createIdentifier("Number");case 156:return ne();case 149:return E<2?ee():p.createIdentifier("Symbol");case 176:return function(n){var t=h.getTypeReferenceSerializationKind(n.typeName,o||a);switch(t){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(n,(function(n){return n.parent&&e.isConditionalTypeNode(n.parent)&&(n.parent.trueType===n||n.parent.falseType===n)})))return p.createIdentifier("Object");var r=Z(n.typeName),i=p.createTempVariable(y);return p.createConditionalExpression(p.createTypeCheck(p.createAssignment(i,r),"function"),void 0,i,void 0,p.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return $(n.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return p.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return ne();case e.TypeReferenceSerializationKind.BooleanType:return p.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return p.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return p.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return p.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return E<2?ee():p.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return p.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return p.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return p.createIdentifier("Object");default:return e.Debug.assertNever(t)}}(n);case 186:case 185:return Y(n.types);case 187:return Y([n.trueType,n.falseType]);case 191:if(143===n.operator)return X(n.type);break;case 179:case 192:case 193:case 180:case 129:case 153:case 190:case 198:case 307:case 308:case 312:case 313:case 314:break;case 309:case 310:case 311:return X(n.type);default:return e.Debug.failBadSyntaxKind(n)}return p.createIdentifier("Object")}function Y(n){for(var t,r=0,i=n;r<i.length;r++){for(var a=i[r];189===a.kind;)a=a.type;if(142!==a.kind&&(b||(194!==a.kind||104!==a.literal.kind)&&151!==a.kind)){var o=X(a);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(t){if(!e.isIdentifier(t)||!e.isIdentifier(o)||t.escapedText!==o.escapedText)return p.createIdentifier("Object")}else t=o}}return t||p.createVoidZero()}function Q(e,n){return p.createLogicalAnd(p.createStrictInequality(p.createTypeOfExpression(e),p.createStringLiteral("undefined")),n)}function Z(e){if(79===e.kind){var n=$(e);return Q(n,n)}if(79===e.left.kind)return Q($(e.left),$(e));var t=Z(e.left),r=p.createTempVariable(y);return p.createLogicalAnd(p.createLogicalAnd(t.left,p.createStrictInequality(p.createAssignment(r,t.right),p.createVoidZero())),p.createPropertyAccessExpression(r,e.right))}function $(n){switch(n.kind){case 79:var t=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(n),n),n.parent);return t.original=void 0,e.setParent(t,e.getParseTreeNode(a)),t;case 159:return function(e){return p.createPropertyAccessExpression($(e.left),e.right)}(n)}}function ee(){return p.createConditionalExpression(p.createTypeCheck(p.createIdentifier("Symbol"),"function"),void 0,p.createIdentifier("Symbol"),void 0,p.createIdentifier("Object"))}function ne(){return E<99?p.createConditionalExpression(p.createTypeCheck(p.createIdentifier("BigInt"),"function"),void 0,p.createIdentifier("BigInt"),void 0,p.createIdentifier("Object")):p.createIdentifier("BigInt")}function te(n,t){var r=n.name;return e.isPrivateIdentifier(r)?p.createIdentifier(""):e.isComputedPropertyName(r)?t&&!e.isSimpleInlineableExpression(r.expression)?p.getGeneratedNameForNode(r):r.expression:e.isIdentifier(r)?p.createStringLiteral(e.idText(r)):p.cloneNode(r)}function re(n){var t=n.name;if(e.isComputedPropertyName(t)&&(!e.hasStaticModifier(n)&&c||e.some(n.decorators))){var r=e.visitNode(t.expression,A,e.isExpression),i=e.skipPartiallyEmittedExpressions(r);if(!e.isSimpleInlineableExpression(i)){var a=p.getGeneratedNameForNode(t);return y(a),p.updateComputedPropertyName(t,p.createAssignment(a,r))}}return e.visitNode(t,A,e.isPropertyName)}function ie(n){return!e.nodeIsMissing(n.body)}function ae(n){if(!(8388608&n.flags||e.hasSyntacticModifier(n,128))){var t=p.updatePropertyDeclaration(n,void 0,e.visitNodes(n.modifiers,A,e.isModifier),re(n),void 0,void 0,e.visitNode(n.initializer,A));return t!==n&&(e.setCommentRange(t,n),e.setSourceMapRange(t,e.moveRangePastDecorators(n))),t}}function oe(t){if(ie(t))return p.updateConstructorDeclaration(t,void 0,void 0,e.visitParameterList(t.parameters,A,n),function(t,r){var i=r&&e.filter(r.parameters,(function(n){return e.isParameterPropertyDeclaration(n,r)}));if(!e.some(i))return e.visitFunctionBody(t,A,n);var a,o=[];_(),a=e.addPrologueDirectivesAndInitialSuperCall(p,r,o,A),e.addRange(o,e.map(i,se)),e.addRange(o,e.visitNodes(t.statements,A,e.isStatement,a)),o=p.mergeLexicalEnvironment(o,g());var s=p.createBlock(e.setTextRange(p.createNodeArray(o),t.statements),!0);return e.setTextRange(s,t),e.setOriginalNode(s,t),s}(t.body,t))}function se(n){var t=n.name;if(e.isIdentifier(t)){var r=e.setParent(e.setTextRange(p.cloneNode(t),t),t.parent);e.setEmitFlags(r,1584);var i=e.setParent(e.setTextRange(p.cloneNode(t),t),t.parent);return e.setEmitFlags(i,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(p.createExpressionStatement(p.createAssignment(e.setTextRange(p.createPropertyAccessExpression(p.createThis(),r),n.name),i)),n),e.moveRangePos(n,-1))))}}function ce(n){return!(e.nodeIsMissing(n.body)&&e.hasSyntacticModifier(n,128))}function le(t){var r=t.name;return e.isBindingPattern(r)?e.flattenDestructuringAssignment(t,A,n,0,!1,Ce):e.setTextRange(p.createAssignment(Ie(r),e.visitNode(t.initializer,A,e.isExpression)),t)}function ue(t){var r=te(t,!1),a=function(t){var r=h.getConstantValue(t);return void 0!==r?"string"==typeof r?p.createStringLiteral(r):p.createNumericLiteral(r):(0==(8&l)&&(l|=8,n.enableSubstitution(79)),t.initializer?e.visitNode(t.initializer,A,e.isExpression):p.createVoidZero())}(t),o=p.createAssignment(p.createElementAccessExpression(i,r),a),s=10===a.kind?o:p.createAssignment(p.createElementAccessExpression(i,o),r);return e.setTextRange(p.createExpressionStatement(e.setTextRange(s,t)),t)}function de(n){return Se(n)||xe(n)&&T!==e.ModuleKind.ES2015&&T!==e.ModuleKind.ES2020&&T!==e.ModuleKind.ESNext&&T!==e.ModuleKind.System}function pe(n){s||(s=new e.Map);var t=fe(n);s.has(t)||s.set(t,n)}function fe(n){return e.Debug.assertNode(n.name,e.isIdentifier),n.name.escapedText}function me(n,t){var r=p.createVariableStatement(e.visitNodes(t.modifiers,w,e.isModifier),p.createVariableDeclarationList([p.createVariableDeclaration(p.getLocalName(t,!1,!0))],300===a.kind?0:1));if(e.setOriginalNode(r,t),pe(t),function(e){if(s){var n=fe(e);return s.get(n)===e}return!0}(t))return 258===t.kind?e.setSourceMapRange(r.declarationList,t):e.setSourceMapRange(r,t),e.setCommentRange(r,t),e.addEmitFlags(r,4195328),n.push(r),!0;var i=p.createMergeDeclarationMarker(r);return e.setEmitFlags(i,4195840),n.push(i),!1}function _e(o){if(!function(n){var t=e.getParseTreeNode(n,e.isModuleDeclaration);return!t||e.isInstantiatedModule(t,e.shouldPreserveConstEnums(v))}(o))return p.createNotEmittedStatement(o);e.Debug.assertNode(o.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&l)&&(l|=2,n.enableSubstitution(79),n.enableSubstitution(292),n.enableEmitNotification(259));var c=[],u=2,d=me(c,o);d&&(T===e.ModuleKind.System&&a===t||(u|=512));var f=Ne(o),_=ke(o),y=e.hasSyntacticModifier(o,1)?p.getExternalModuleOrNamespaceExportName(i,o,!1,!0):p.getLocalName(o,!1,!0),h=p.createLogicalOr(y,p.createAssignment(y,p.createObjectLiteralExpression()));if(de(o)){var b=p.getLocalName(o,!1,!0);h=p.createAssignment(b,h)}var E=p.createExpressionStatement(p.createCallExpression(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,f)],void 0,function(n,t){var a=i,o=r,c=s;i=t,r=n,s=void 0;var l,u,d=[];if(m(),n.body)if(260===n.body.kind)D(n.body,(function(n){return e.addRange(d,e.visitNodes(n.statements,k,e.isStatement))})),l=n.body.statements,u=n.body;else{var f=_e(n.body);f&&(e.isArray(f)?e.addRange(d,f):d.push(f));var _=ge(n).body;l=e.moveRangePos(_.statements,-1)}e.insertStatementsAfterStandardPrologue(d,g()),i=a,r=o,s=c;var y=p.createBlock(e.setTextRange(p.createNodeArray(d),l),!0);return e.setTextRange(y,u),n.body&&260===n.body.kind||e.setEmitFlags(y,1536|e.getEmitFlags(y)),y}(o,_)),void 0,[h]));return e.setOriginalNode(E,o),d&&(e.setSyntheticLeadingComments(E,void 0),e.setSyntheticTrailingComments(E,void 0)),e.setTextRange(E,o),e.addEmitFlags(E,u),c.push(E),c.push(p.createEndOfDeclarationMarker(o)),c}function ge(e){if(259===e.body.kind)return ge(e.body)||e.body}function ye(n){if(!n.isTypeOnly){var t=h.isReferencedAliasDeclaration(n)?n.name:void 0,r=e.visitNode(n.namedBindings,he,e.isNamedImportBindings);return t||r?p.updateImportClause(n,!1,t,r):void 0}}function he(n){if(266===n.kind)return h.isReferencedAliasDeclaration(n)?n:void 0;var t=e.visitNodes(n.elements,ve,e.isImportSpecifier);return e.some(t)?p.updateNamedImports(n,t):void 0}function ve(e){return h.isReferencedAliasDeclaration(e)?e:void 0}function be(n){return e.isNamespaceExport(n)?function(n){return p.updateNamespaceExport(n,e.visitNode(n.name,A,e.isIdentifier))}(n):function(n){var t=e.visitNodes(n.elements,Ee,e.isExportSpecifier);return e.some(t)?p.updateNamedExports(n,t):void 0}(n)}function Ee(e){return h.isValueAliasDeclaration(e)?e:void 0}function Te(r){if(!r.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(r)){var a=h.isReferencedAliasDeclaration(r);return a||1!==v.importsNotUsedAsValues?a?e.visitEachChild(r,A,n):void 0:e.setOriginalNode(e.setTextRange(p.createImportDeclaration(void 0,void 0,void 0,r.moduleReference.expression),r),r)}if(function(n){return h.isReferencedAliasDeclaration(n)||!e.isExternalModule(t)&&h.isTopLevelValueImportEqualsWithEntityName(n)}(r)){var o,s,c,l=e.createExpressionFromEntityName(p,r.moduleReference);return e.setEmitFlags(l,3584),Le(r)||!Se(r)?e.setOriginalNode(e.setTextRange(p.createVariableStatement(e.visitNodes(r.modifiers,w,e.isModifier),p.createVariableDeclarationList([e.setOriginalNode(p.createVariableDeclaration(r.name,void 0,void 0,l),r)])),r),r):e.setOriginalNode((o=r.name,s=l,c=r,e.setTextRange(p.createExpressionStatement(p.createAssignment(p.getNamespaceMemberName(i,o,!1,!0),s)),c)),r)}}}function Se(n){return void 0!==r&&e.hasSyntacticModifier(n,1)}function xe(n){return void 0===r&&e.hasSyntacticModifier(n,1)}function Le(n){return xe(n)&&!e.hasSyntacticModifier(n,512)}function De(e){return p.createExpressionStatement(e)}function Ae(n,t){var r=p.createAssignment(p.getExternalModuleOrNamespaceExportName(i,t,!1,!0),p.getLocalName(t));e.setSourceMapRange(r,e.createRange(t.name?t.name.pos:t.pos,t.end));var a=p.createExpressionStatement(r);e.setSourceMapRange(a,e.createRange(-1,t.end)),n.push(a)}function Ce(n,t,r){return e.setTextRange(p.createAssignment(Ie(n),t),r)}function Ie(e){return p.getNamespaceMemberName(i,e,!1,!0)}function Ne(n){var t=p.getGeneratedNameForNode(n);return e.setSourceMapRange(t,n.name),t}function ke(e){return p.getGeneratedNameForNode(e)}function Re(n){if(l&d&&!e.isGeneratedIdentifier(n)&&!e.isLocalName(n)){var t=h.getReferencedExportContainer(n,!1);if(t&&300!==t.kind&&(2&d&&259===t.kind||8&d&&258===t.kind))return e.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(t),n),n)}}}}(u||(u={})),function(e){var n,t,r;!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"}(n||(n={})),(r=e.PrivateIdentifierKind||(e.PrivateIdentifierKind={})).Field="f",r.Method="m",r.Accessor="a",function(e){e[e.None=0]="None",e[e.ClassWasDecorated=1]="ClassWasDecorated",e[e.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",e[e.NeedsClassSuperReference=4]="NeedsClassSuperReference",e[e.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"}(t||(t={})),e.transformClassFields=function(n){var t=n.factory,r=n.hoistVariableDeclaration,a=n.endLexicalEnvironment,o=n.startLexicalEnvironment,s=n.resumeLexicalEnvironment,c=n.addBlockScopedVariable,l=n.getEmitResolver(),u=n.getCompilerOptions(),d=e.getEmitScriptTarget(u),p=e.getUseDefineForClassFields(u),f=d<99,m=(d<=8||!p)&&d>=2,_=d<=8||!p,g=n.onSubstituteNode;n.onSubstituteNode=function(n,r){return r=g(n,r),1===n?function(n){switch(n.kind){case 79:return function(n){return function(n){if(1&y&&33554432&l.getNodeCheckFlags(n)){var r=l.getReferencedValueDeclaration(n);if(r){var i=h[r.id];if(i){var a=t.cloneNode(i);return e.setSourceMapRange(a,n),e.setCommentRange(a,n),a}}}}(n)||n}(n);case 108:return function(n){if(2&y&&T){var r=T.facts,i=T.classConstructor;if(1&r)return t.createParenthesizedExpression(t.createVoidZero());if(i)return e.setTextRange(e.setOriginalNode(t.cloneNode(i),n),n)}return n}(n)}return n}(r):r};var y,h,v,b,E=n.onEmitNode;n.onEmitNode=function(n,t,r){var i=e.getOriginalNode(t);if(i.id){var a=D.get(i.id);if(a){var o=T,s=S;return T=a,S=a,E(n,t,r),T=o,void(S=s)}}switch(t.kind){case 211:if(e.isArrowFunction(i)||262144&e.getEmitFlags(t))break;case 254:case 169:return o=T,s=S,T=void 0,S=void 0,E(n,t,r),T=o,void(S=s);case 170:case 171:case 167:case 165:return o=T,s=S,S=T,T=void 0,E(n,t,r),T=o,void(S=s);case 160:return o=T,s=S,T=S,S=void 0,E(n,t,r),T=o,void(S=s)}E(n,t,r)};var T,S,x,L=[],D=new e.Map;return e.chainBundle(n,(function(t){var r=n.getCompilerOptions();if(t.isDeclarationFile||p&&99===r.target)return t;var i=e.visitEachChild(t,I,n);return e.addEmitHelpers(i,n.readEmitHelpers()),i}));function A(a,o){if(8388608&a.transformFlags)switch(a.kind){case 224:case 255:return function(i){if(!e.forEach(i.members,B))return e.visitEachChild(i,I,n);var a=v;if(v=void 0,L.push(T),T=void 0,f){var o=e.getNameOfDeclaration(i);o&&e.isIdentifier(o)&&(X().className=e.idText(o));var s=U(i);e.some(s)&&(X().weakSetName=Z("instances",s[0].name))}var u=e.isClassDeclaration(i)?function(n){var i=V(n);i&&(q().facts=i),8&i&&z();var a,o=e.getStaticPropertiesAndClassStaticBlock(n);if(2&i){var s=t.createTempVariable(r,!0);q().classConstructor=t.cloneNode(s),a=t.createAssignment(s,t.getInternalName(n))}var c=e.getEffectiveBaseTypeNode(n),l=!(!c||104===e.skipOuterExpressions(c.expression).kind),u=[t.updateClassDeclaration(n,void 0,n.modifiers,n.name,void 0,e.visitNodes(n.heritageClauses,N,e.isHeritageClause),j(n,l))];return a&&Y().unshift(a),e.some(v)&&u.push(t.createExpressionStatement(t.inlineExpressions(v))),e.some(o)&&H(u,o,t.getInternalName(n)),u}(i):function(i){var a=V(i);a&&(q().facts=a),8&a&&z();var o,s=!!(1&a),u=e.getStaticPropertiesAndClassStaticBlock(i),d=e.getEffectiveBaseTypeNode(i),p=!(!d||104===e.skipOuterExpressions(d.expression).kind),m=16777216&l.getNodeCheckFlags(i);function _(){var e=l.getNodeCheckFlags(i),n=16777216&e,a=524288&e;return t.createTempVariable(a?c:r,!!n)}2&a&&(o=_(),q().classConstructor=t.cloneNode(o));var g=t.updateClassExpression(i,e.visitNodes(i.decorators,I,e.isDecorator),i.modifiers,i.name,void 0,e.visitNodes(i.heritageClauses,N,e.isHeritageClause),j(i,p));if(e.some(u,(function(n){return e.isClassStaticBlockDeclaration(n)||!!n.initializer||f&&e.isPrivateIdentifier(n.name)}))||e.some(v)){if(s)return e.Debug.assertIsDefined(b,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),b&&v&&e.some(v)&&b.push(t.createExpressionStatement(t.inlineExpressions(v))),b&&e.some(u)&&H(b,u,t.getInternalName(i)),o?t.inlineExpressions([t.createAssignment(o,g),o]):g;var E=[];if(o||(o=_()),m){0==(1&y)&&(y|=1,n.enableSubstitution(79),h=[]);var T=t.cloneNode(o);T.autoGenerateFlags&=-9,h[e.getOriginalNodeId(i)]=T}return e.setEmitFlags(g,65536|e.getEmitFlags(g)),E.push(e.startOnNewLine(t.createAssignment(o,g))),e.addRange(E,e.map(v,e.startOnNewLine)),e.addRange(E,function(n,t){for(var r=[],i=0,a=n;i<a.length;i++){var o=a[i],s=e.isClassStaticBlockDeclaration(o)?F(o):W(o,t);s&&(e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),r.push(s))}return r}(u,o)),E.push(e.startOnNewLine(o)),t.inlineExpressions(E)}return g}(i);return T=L.pop(),v=a,u}(a);case 165:return O(a);case 235:return function(t){var r=b;b=[];var a=e.visitEachChild(t,I,n),o=e.some(b)?i([a],b,!0):a;return b=r,o}(a);case 80:return function(n){return f?e.setOriginalNode(t.createIdentifier(""),n):n}(a);case 168:return function(t){if(!f)return e.visitEachChild(t,R,n)}(a)}if(8388608&a.transformFlags||33554432&a.transformFlags&&m&&x&&T)switch(a.kind){case 217:case 218:return function(i,a){if(45===i.operator||46===i.operator)if(f&&e.isPrivateIdentifierPropertyAccessExpression(i.operand)){var o;if(o=ee(i.operand.name)){var s=M(e.visitNode(i.operand.expression,I,e.isExpression)),c=s.readExpression,l=s.initializeExpression,u=P(o,c),d=e.isPrefixUnaryExpression(i)||a?void 0:t.createTempVariable(r);return u=G(o,l||c,u=e.expandPreOrPostfixIncrementOrDecrementExpression(t,i,u,r,d),63),e.setOriginalNode(u,i),e.setTextRange(u,i),d&&(u=t.createComma(u,d),e.setTextRange(u,i)),u}}else if(m&&e.isSuperProperty(i.operand)&&x&&T){var p=T.classConstructor,_=T.superClassReference;if(1&T.facts){var g=J(i.operand);return e.isPrefixUnaryExpression(i)?t.updatePrefixUnaryExpression(i,g):t.updatePostfixUnaryExpression(i,g)}if(p&&_){var y=void 0,h=void 0;if(e.isPropertyAccessExpression(i.operand)?e.isIdentifier(i.operand.name)&&(h=y=t.createStringLiteralFromNode(i.operand.name)):e.isSimpleInlineableExpression(i.operand.argumentExpression)?h=y=i.operand.argumentExpression:(h=t.createTempVariable(r),y=t.createAssignment(h,e.visitNode(i.operand.argumentExpression,I,e.isExpression))),y&&h)return u=t.createReflectGetCall(_,h,p),e.setTextRange(u,i.operand),d=a?void 0:t.createTempVariable(r),u=e.expandPreOrPostfixIncrementOrDecrementExpression(t,i,u,r,d),u=t.createReflectSetCall(_,y,u,p),e.setOriginalNode(u,i),e.setTextRange(u,i),d&&(u=t.createComma(u,d),e.setTextRange(u,i)),u}}return e.visitEachChild(i,I,n)}(a,o);case 219:return function(a,o){if(e.isDestructuringAssignment(a)){var s=v;v=void 0,a=t.updateBinaryExpression(a,e.visitNode(a.left,k),a.operatorToken,e.visitNode(a.right,I));var c=e.some(v)?t.inlineExpressions(e.compact(i(i([],v,!0),[a],!1))):a;return v=s,c}if(e.isAssignmentExpression(a))if(f&&e.isPrivateIdentifierPropertyAccessExpression(a.left)){var l=ee(a.left.name);if(l)return e.setTextRange(e.setOriginalNode(G(l,a.left.expression,a.right,a.operatorToken.kind),a),a)}else if(m&&e.isSuperProperty(a.left)&&x&&T){var u=T.classConstructor,d=T.superClassReference;if(1&T.facts)return t.updateBinaryExpression(a,J(a.left),a.operatorToken,e.visitNode(a.right,I,e.isExpression));if(u&&d){var p=e.isElementAccessExpression(a.left)?e.visitNode(a.left.argumentExpression,I,e.isExpression):e.isIdentifier(a.left.name)?t.createStringLiteralFromNode(a.left.name):void 0;if(p){var _=e.visitNode(a.right,I,e.isExpression);if(e.isCompoundAssignment(a.operatorToken.kind)){var g=p;e.isSimpleInlineableExpression(p)||(g=t.createTempVariable(r),p=t.createAssignment(g,p));var y=t.createReflectGetCall(d,g,u);e.setOriginalNode(y,a.left),e.setTextRange(y,a.left),_=t.createBinaryExpression(y,e.getNonAssignmentOperatorForCompoundAssignment(a.operatorToken.kind),_),e.setTextRange(_,a)}var h=o?void 0:t.createTempVariable(r);return h&&(_=t.createAssignment(h,_),e.setTextRange(h,a)),_=t.createReflectSetCall(d,p,_,u),e.setOriginalNode(_,a),e.setTextRange(_,a),h&&(_=t.createComma(_,h),e.setTextRange(_,a)),_}}}return e.visitEachChild(a,I,n)}(a,o);case 206:return function(a){if(f&&e.isPrivateIdentifierPropertyAccessExpression(a.expression)){var o=t.createCallBinding(a.expression,r,d),s=o.thisArg,c=o.target;return e.isCallChain(a)?t.updateCallChain(a,t.createPropertyAccessChain(e.visitNode(c,I),a.questionDotToken,"call"),void 0,void 0,i([e.visitNode(s,I,e.isExpression)],e.visitNodes(a.arguments,I,e.isExpression),!0)):t.updateCallExpression(a,t.createPropertyAccessExpression(e.visitNode(c,I),"call"),void 0,i([e.visitNode(s,I,e.isExpression)],e.visitNodes(a.arguments,I,e.isExpression),!0))}if(m&&e.isSuperProperty(a.expression)&&x&&(null==T?void 0:T.classConstructor)){var l=t.createFunctionCallCall(e.visitNode(a.expression,I,e.isExpression),T.classConstructor,e.visitNodes(a.arguments,I,e.isExpression));return e.setOriginalNode(l,a),e.setTextRange(l,a),l}return e.visitEachChild(a,I,n)}(a);case 208:return function(i){if(f&&e.isPrivateIdentifierPropertyAccessExpression(i.tag)){var a=t.createCallBinding(i.tag,r,d),o=a.thisArg,s=a.target;return t.updateTaggedTemplateExpression(i,t.createCallExpression(t.createPropertyAccessExpression(e.visitNode(s,I),"bind"),void 0,[e.visitNode(o,I,e.isExpression)]),void 0,e.visitNode(i.template,I,e.isTemplateLiteral))}if(m&&e.isSuperProperty(i.tag)&&x&&(null==T?void 0:T.classConstructor)){var c=t.createFunctionBindCall(e.visitNode(i.tag,I,e.isExpression),T.classConstructor,[]);return e.setOriginalNode(c,i),e.setTextRange(c,i),t.updateTaggedTemplateExpression(i,c,void 0,e.visitNode(i.template,I,e.isTemplateLiteral))}return e.visitEachChild(i,I,n)}(a);case 204:return function(r){if(f&&e.isPrivateIdentifier(r.name)){var i=ee(r.name);if(i)return e.setTextRange(e.setOriginalNode(P(i,r.expression),r),r)}if(m&&e.isSuperProperty(r)&&e.isIdentifier(r.name)&&x&&T){var a=T.classConstructor,o=T.superClassReference;if(1&T.facts)return J(r);if(a&&o){var s=t.createReflectGetCall(o,t.createStringLiteralFromNode(r.name),a);return e.setOriginalNode(s,r.expression),e.setTextRange(s,r.expression),s}}return e.visitEachChild(r,I,n)}(a);case 205:return function(r){if(m&&e.isSuperProperty(r)&&x&&T){var i=T.classConstructor,a=T.superClassReference;if(1&T.facts)return J(r);if(i&&a){var o=t.createReflectGetCall(a,e.visitNode(r.argumentExpression,I,e.isExpression),i);return e.setOriginalNode(o,r.expression),e.setTextRange(o,r.expression),o}}return e.visitEachChild(r,I,n)}(a);case 236:return function(n){return t.updateExpressionStatement(n,e.visitNode(n.expression,C,e.isExpression))}(a);case 240:return function(r){return t.updateForStatement(r,e.visitNode(r.initializer,C,e.isForInitializer),e.visitNode(r.condition,I,e.isExpression),e.visitNode(r.incrementor,C,e.isExpression),e.visitIterationBody(r.statement,I,n))}(a);case 254:case 211:case 169:case 167:case 170:case 171:var s=x;x=void 0;var u=e.visitEachChild(a,I,n);return x=s,u}return e.visitEachChild(a,I,n)}function C(e){return A(e,!0)}function I(e){return A(e,!1)}function N(i){switch(i.kind){case 289:return e.visitEachChild(i,N,n);case 226:return function(i){if(4&((null==T?void 0:T.facts)||0)){var a=t.createTempVariable(r,!0);return q().superClassReference=a,t.updateExpressionWithTypeArguments(i,t.createAssignment(a,e.visitNode(i.expression,I,e.isExpression)),void 0)}return e.visitEachChild(i,I,n)}(i)}return I(i)}function k(n){switch(n.kind){case 203:case 202:return function(n){return e.isArrayLiteralExpression(n)?t.updateArrayLiteralExpression(n,e.visitNodes(n.elements,te,e.isExpression)):t.updateObjectLiteralExpression(n,e.visitNodes(n.properties,re,e.isObjectLiteralElementLike))}(n);default:return I(n)}}function R(r){switch(r.kind){case 169:return;case 170:case 171:case 167:return function(r){if(e.Debug.assert(!e.some(r.decorators)),!f||!e.isPrivateIdentifier(r.name))return e.visitEachChild(r,R,n);var i=ee(r.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return r;var a=function(n){e.Debug.assert(e.isPrivateIdentifier(n.name));var t=ee(n.name);if(e.Debug.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if(e.isGetAccessor(n))return t.getterName;if(e.isSetAccessor(n))return t.setterName}}(r);a&&Y().push(t.createAssignment(a,t.createFunctionExpression(e.filter(r.modifiers,(function(n){return!e.isStaticModifier(n)})),r.asteriskToken,a,void 0,e.visitParameterList(r.parameters,R,n),void 0,e.visitFunctionBody(r.body,R,n))))}(r);case 165:return O(r);case 160:return function(r){var i=e.visitEachChild(r,I,n);if(e.some(v)){var a=v;a.push(i.expression),v=[],i=t.updateComputedPropertyName(i,t.inlineExpressions(a))}return i}(r);case 232:return r;default:return I(r)}}function O(n){if(e.Debug.assert(!e.some(n.decorators)),e.isPrivateIdentifier(n.name)){if(!f)return t.updatePropertyDeclaration(n,void 0,e.visitNodes(n.modifiers,I,e.isModifier),n.name,void 0,void 0,void 0);var i=ee(n.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return n}var a=function(n,i){if(e.isComputedPropertyName(n)){var a=e.visitNode(n.expression,I,e.isExpression),o=e.skipPartiallyEmittedExpressions(a),s=e.isSimpleInlineableExpression(o);if((!e.isAssignmentExpression(o)||!e.isGeneratedIdentifier(o.left))&&!s&&i){var u=t.getGeneratedNameForNode(n);return 524288&l.getNodeCheckFlags(n)?c(u):r(u),t.createAssignment(u,a)}return s||e.isIdentifier(o)?void 0:a}}(n.name,!!n.initializer||p);a&&!e.isSimpleInlineableExpression(a)&&Y().push(a)}function P(n,t){return w(n,e.visitNode(t,I,e.isExpression))}function w(t,r){switch(e.setCommentRange(r,e.moveRangePos(r,-1)),t.kind){case"a":return n.getEmitHelperFactory().createClassPrivateFieldGetHelper(r,t.brandCheckIdentifier,t.kind,t.getterName);case"m":return n.getEmitHelperFactory().createClassPrivateFieldGetHelper(r,t.brandCheckIdentifier,t.kind,t.methodName);case"f":return n.getEmitHelperFactory().createClassPrivateFieldGetHelper(r,t.brandCheckIdentifier,t.kind,t.variableName);default:e.Debug.assertNever(t,"Unknown private element type")}}function M(n){var i=e.nodeIsSynthesized(n)?n:t.cloneNode(n);if(e.isSimpleInlineableExpression(n))return{readExpression:i,initializeExpression:void 0};var a=t.createTempVariable(r);return{readExpression:a,initializeExpression:t.createAssignment(a,i)}}function F(n){if(f){T&&D.set(e.getOriginalNodeId(n),T),o();var r=x;x=n;var i=e.visitNodes(n.body.statements,I,e.isStatement);i=t.mergeLexicalEnvironment(i,a()),x=r;var s=t.createImmediatelyInvokedArrowFunction(i);return e.setOriginalNode(s,n),e.setTextRange(s,n),e.addEmitFlags(s,2),s}}function G(r,i,a,o){if(i=e.visitNode(i,I,e.isExpression),a=e.visitNode(a,I,e.isExpression),e.isCompoundAssignment(o)){var s=M(i),c=s.readExpression;i=s.initializeExpression||c,a=t.createBinaryExpression(w(r,c),e.getNonAssignmentOperatorForCompoundAssignment(o),a)}switch(e.setCommentRange(i,e.moveRangePos(i,-1)),r.kind){case"a":return n.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,r.brandCheckIdentifier,a,r.kind,r.setterName);case"m":return n.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,r.brandCheckIdentifier,a,r.kind,void 0);case"f":return n.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,r.brandCheckIdentifier,a,r.kind,r.variableName);default:e.Debug.assertNever(r,"Unknown private element type")}}function B(n){return e.isPropertyDeclaration(n)||e.isClassStaticBlockDeclaration(n)||f&&n.name&&e.isPrivateIdentifier(n.name)}function U(n){return e.filter(n.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function V(n){var t=0,r=e.getOriginalNode(n);e.isClassDeclaration(r)&&e.classOrConstructorParameterIsDecorated(r)&&(t|=1);for(var i=0,a=n.members;i<a.length;i++){var o=a[i];e.isStatic(o)&&(o.name&&e.isPrivateIdentifier(o.name)&&f&&(t|=2),(e.isPropertyDeclaration(o)||e.isClassStaticBlockDeclaration(o))&&(_&&8192&o.transformFlags&&(1&(t|=8)||(t|=2)),m&&33554432&o.transformFlags&&(1&t||(t|=6))))}return t}function j(r,i){if(f){for(var o=0,c=r.members;o<c.length;o++){var l=c[o];e.isPrivateIdentifierClassElementDeclaration(l)&&Q(l)}e.some(U(r))&&(u=X().weakSetName,e.Debug.assert(u,"weakSetName should be set in private identifier environment"),Y().push(t.createAssignment(u,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[]))))}var u,d=[],m=function(r,i){var o=e.visitNode(e.getFirstConstructorWithBody(r),I,e.isConstructorDeclaration),c=r.members.filter(K);if(!e.some(c))return o;var l=e.visitParameterList(o?o.parameters:void 0,I,n),u=function(r,i,o){var c=e.getProperties(r,!1,!1);p||(c=e.filter(c,(function(n){return!!n.initializer||e.isPrivateIdentifier(n.name)})));var l=U(r),u=e.some(c)||e.some(l);if(!i&&!u)return e.visitFunctionBody(void 0,I,n);s();var d=0,m=[];if(!i&&o&&m.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),i&&(d=e.addPrologueDirectivesAndInitialSuperCall(t,i,m,I)),null==i?void 0:i.body){var _=e.findIndex(i.body.statements,(function(n){return!e.isParameterPropertyDeclaration(e.getOriginalNode(n),i)}),d);-1===_&&(_=i.body.statements.length),_>d&&(p||e.addRange(m,e.visitNodes(i.body.statements,I,e.isStatement,d,_-d)),d=_)}var g=t.createThis();return function(n,r,i){if(f&&e.some(r)){var a=X().weakSetName;e.Debug.assert(a,"weakSetName should be set in private identifier environment"),n.push(t.createExpressionStatement(function(n,t){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(t,"add"),void 0,[n])}(i,a)))}}(m,l,g),H(m,c,g),i&&e.addRange(m,e.visitNodes(i.body.statements,I,e.isStatement,d)),m=t.mergeLexicalEnvironment(m,a()),e.setTextRange(t.createBlock(e.setTextRange(t.createNodeArray(m),i?i.body.statements:r.members),!0),i?i.body:void 0)}(r,o,i);return u?e.startOnNewLine(e.setOriginalNode(e.setTextRange(t.createConstructorDeclaration(void 0,void 0,null!=l?l:[],u),o||r),o)):void 0}(r,i);return m&&d.push(m),e.addRange(d,e.visitNodes(r.members,R,e.isClassElement)),e.setTextRange(t.createNodeArray(d),r.members)}function K(n){return!e.isStatic(n)&&!e.hasSyntacticModifier(e.getOriginalNode(n),128)&&(p?d<99:e.isInitializedProperty(n)||f&&e.isPrivateIdentifierClassElementDeclaration(n))}function H(n,r,i){for(var a=0,o=r;a<o.length;a++){var s=o[a],c=e.isClassStaticBlockDeclaration(s)?F(s):W(s,i);if(c){var l=t.createExpressionStatement(c);e.setSourceMapRange(l,e.moveRangePastModifiers(s)),e.setCommentRange(l,s),e.setOriginalNode(l,s),n.push(l)}}}function W(n,r){var i=x,a=function(n,r){var i,a=!p,o=e.isComputedPropertyName(n.name)&&!e.isSimpleInlineableExpression(n.name.expression)?t.updateComputedPropertyName(n.name,t.getGeneratedNameForNode(n.name)):n.name;if(e.hasStaticModifier(n)&&(x=n),f&&e.isPrivateIdentifier(o)){var s=ee(o);if(s)return"f"===s.kind?s.isStatic?function(n,t){return e.factory.createAssignment(n,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",t||e.factory.createVoidZero())]))}(s.variableName,e.visitNode(n.initializer,I,e.isExpression)):function(n,t,r){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"set"),void 0,[n,t||e.factory.createVoidZero()])}(r,e.visitNode(n.initializer,I,e.isExpression),s.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!e.isPrivateIdentifier(o)&&!e.hasStaticModifier(n)||n.initializer){var c=e.getOriginalNode(n);if(!e.hasSyntacticModifier(c,128)){var l=n.initializer||a?null!==(i=e.visitNode(n.initializer,I,e.isExpression))&&void 0!==i?i:t.createVoidZero():e.isParameterPropertyDeclaration(c,c.parent)&&e.isIdentifier(o)?o:t.createVoidZero();if(a||e.isPrivateIdentifier(o)){var u=e.createMemberAccessForPropertyName(t,r,o,o);return t.createAssignment(u,l)}var d=e.isComputedPropertyName(o)?o.expression:e.isIdentifier(o)?t.createStringLiteral(e.unescapeLeadingUnderscores(o.escapedText)):o,m=t.createPropertyDescriptor({value:l,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(r,d,m)}}}(n,r);return a&&e.hasStaticModifier(n)&&(null==T?void 0:T.facts)&&(e.setOriginalNode(a,n),e.addEmitFlags(a,2),D.set(e.getOriginalNodeId(a),T)),x=i,a}function z(){0==(2&y)&&(y|=2,n.enableSubstitution(108),n.enableEmitNotification(254),n.enableEmitNotification(211),n.enableEmitNotification(169),n.enableEmitNotification(170),n.enableEmitNotification(171),n.enableEmitNotification(167),n.enableEmitNotification(165),n.enableEmitNotification(160))}function J(n){return e.isPropertyAccessExpression(n)?t.updatePropertyAccessExpression(n,t.createVoidZero(),n.name):t.updateElementAccessExpression(n,t.createVoidZero(),e.visitNode(n.argumentExpression,I,e.isExpression))}function q(){return T||(T={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function X(){var n=q();return n.privateIdentifierEnvironment||(n.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),n.privateIdentifierEnvironment}function Y(){return v||(v=[])}function Q(n){var r,i=e.getTextOfPropertyName(n.name),a=q().classConstructor,o=X(),s=o.weakSetName,c=[],l=n.name.escapedText,u=o.identifiers.get(l),d=!function(e){return"#constructor"===e.escapedText}(n.name)&&void 0===u;if(e.hasStaticModifier(n))if(e.Debug.assert(a,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration(n)){var p=$(i,n);o.identifiers.set(l,{kind:"f",variableName:p,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else if(e.isMethodDeclaration(n)){var f=$(i,n);o.identifiers.set(l,{kind:"m",methodName:f,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else if(e.isGetAccessorDeclaration(n)){var m=$(i+"_get",n);"a"===(null==u?void 0:u.kind)&&u.isStatic&&!u.getterName?u.getterName=m:o.identifiers.set(l,{kind:"a",getterName:m,setterName:void 0,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else if(e.isSetAccessorDeclaration(n)){var _=$(i+"_set",n);"a"===(null==u?void 0:u.kind)&&u.isStatic&&!u.setterName?u.setterName=_:o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:_,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else e.Debug.assertNever(n,"Unknown class element type.");else if(e.isPropertyDeclaration(n)){var g=$(i,n);o.identifiers.set(l,{kind:"f",brandCheckIdentifier:g,isStatic:!1,variableName:void 0,isValid:d}),c.push(t.createAssignment(g,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}else e.isMethodDeclaration(n)?(e.Debug.assert(s,"weakSetName should be set in private identifier environment"),o.identifiers.set(l,{kind:"m",methodName:$(i,n),brandCheckIdentifier:s,isStatic:!1,isValid:d})):e.isAccessor(n)?(e.Debug.assert(s,"weakSetName should be set in private identifier environment"),e.isGetAccessor(n)?(m=$(i+"_get",n),"a"!==(null==u?void 0:u.kind)||u.isStatic||u.getterName?o.identifiers.set(l,{kind:"a",getterName:m,setterName:void 0,brandCheckIdentifier:s,isStatic:!1,isValid:d}):u.getterName=m):(_=$(i+"_set",n),"a"!==(null==u?void 0:u.kind)||u.isStatic||u.setterName?o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:_,brandCheckIdentifier:s,isStatic:!1,isValid:d}):u.setterName=_)):e.Debug.assertNever(n,"Unknown class element type.");(r=Y()).push.apply(r,c)}function Z(e,n){var i=X().className,a=i?"_"+i:"",o=t.createUniqueName(a+"_"+e,16);return 524288&l.getNodeCheckFlags(n)?c(o):r(o),o}function $(e,n){return Z(e.substring(1),n.name)}function ee(e){var n;if((null==T?void 0:T.privateIdentifierEnvironment)&&(r=T.privateIdentifierEnvironment.identifiers.get(e.escapedText)))return r;for(var t=L.length-1;t>=0;--t){var r,i=L[t];if(i&&(r=null===(n=i.privateIdentifierEnvironment)||void 0===n?void 0:n.identifiers.get(e.escapedText)))return r}}function ne(i){var a=t.getGeneratedNameForNode(i),o=ee(i.name);if(!o)return e.visitEachChild(i,I,n);var s=i.expression;return(e.isThisProperty(i)||e.isSuperProperty(i)||!e.isSimpleCopiableExpression(i.expression))&&(s=t.createTempVariable(r,!0),Y().push(t.createBinaryExpression(s,63,e.visitNode(i.expression,I,e.isExpression)))),t.createAssignmentTargetWrapper(a,G(o,s,a,63))}function te(n){var r=e.getTargetOfBindingOrAssignmentElement(n);if(r){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(r))i=ne(r);else if(m&&e.isSuperProperty(r)&&x&&T){var a=T.classConstructor,o=T.superClassReference;if(1&T.facts)i=J(r);else if(a&&o){var s=e.isElementAccessExpression(r)?e.visitNode(r.argumentExpression,I,e.isExpression):e.isIdentifier(r.name)?t.createStringLiteralFromNode(r.name):void 0;if(s){var c=t.createTempVariable(void 0);i=t.createAssignmentTargetWrapper(c,t.createReflectSetCall(o,s,c,a))}}}if(i)return e.isAssignmentExpression(n)?t.updateBinaryExpression(n,i,n.operatorToken,e.visitNode(n.right,I,e.isExpression)):e.isSpreadElement(n)?t.updateSpreadElement(n,i):i}return e.visitNode(n,k)}function re(n){if(e.isObjectBindingOrAssignmentElement(n)&&!e.isShorthandPropertyAssignment(n)){var r=e.getTargetOfBindingOrAssignmentElement(n),i=void 0;if(r)if(e.isPrivateIdentifierPropertyAccessExpression(r))i=ne(r);else if(m&&e.isSuperProperty(r)&&x&&T){var a=T.classConstructor,o=T.superClassReference;if(1&T.facts)i=J(r);else if(a&&o){var s=e.isElementAccessExpression(r)?e.visitNode(r.argumentExpression,I,e.isExpression):e.isIdentifier(r.name)?t.createStringLiteralFromNode(r.name):void 0;if(s){var c=t.createTempVariable(void 0);i=t.createAssignmentTargetWrapper(c,t.createReflectSetCall(o,s,c,a))}}}if(e.isPropertyAssignment(n)){var l=e.getInitializerOfBindingOrAssignmentElement(n);return t.updatePropertyAssignment(n,e.visitNode(n.name,I,e.isPropertyName),i?l?t.createAssignment(i,e.visitNode(l,I)):i:e.visitNode(n.initializer,k,e.isExpression))}if(e.isSpreadAssignment(n))return t.updateSpreadAssignment(n,i||e.visitNode(n.expression,k,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(n,I)}}}(u||(u={})),function(e){var n,t;function r(n,t,r,i){var a=0!=(4096&t.getNodeCheckFlags(r)),o=[];return i.forEach((function(t,r){var i=e.unescapeLeadingUnderscores(r),s=[];s.push(n.createPropertyAssignment("get",n.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(n.createPropertyAccessExpression(e.setEmitFlags(n.createSuper(),4),i),4)))),a&&s.push(n.createPropertyAssignment("set",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,n.createAssignment(e.setEmitFlags(n.createPropertyAccessExpression(e.setEmitFlags(n.createSuper(),4),i),4),n.createIdentifier("v"))))),o.push(n.createPropertyAssignment(i,n.createObjectLiteralExpression(s)))})),n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_super",48),void 0,void 0,n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"create"),void 0,[n.createNull(),n.createObjectLiteralExpression(o,!0)]))],2))}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),function(e){e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"}(t||(t={})),e.transformES2017=function(n){var t,a,o,s,c=n.factory,l=n.getEmitHelperFactory,u=n.resumeLexicalEnvironment,d=n.endLexicalEnvironment,p=n.hoistVariableDeclaration,f=n.getEmitResolver(),m=n.getCompilerOptions(),_=e.getEmitScriptTarget(m),g=0,y=[],h=0,v=n.onEmitNode,b=n.onSubstituteNode;return n.onEmitNode=function(n,r,i){if(1&t&&function(e){var n=e.kind;return 255===n||169===n||167===n||170===n||171===n}(r)){var a=6144&f.getNodeCheckFlags(r);if(a!==g){var o=g;return g=a,v(n,r,i),void(g=o)}}else if(t&&y[e.getNodeId(r)])return o=g,g=0,v(n,r,i),void(g=o);v(n,r,i)},n.onSubstituteNode=function(n,t){return t=b(n,t),1===n&&g?function(n){switch(n.kind){case 204:return U(n);case 205:return V(n);case 206:return function(n){var t=n.expression;if(e.isSuperProperty(t)){var r=e.isPropertyAccessExpression(t)?U(t):V(t);return c.createCallExpression(c.createPropertyAccessExpression(r,"call"),void 0,i([c.createThis()],n.arguments,!0))}return n}(n)}return n}(t):t},e.chainBundle(n,(function(t){if(t.isDeclarationFile)return t;E(1,!1),E(2,!e.isEffectiveStrictModeSourceFile(t,m));var r=e.visitEachChild(t,D,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}));function E(e,n){h=n?h|e:h&~e}function T(e){return 0!=(h&e)}function S(){return T(2)}function x(e,n,t){var r=e&~h;if(r){E(r,!0);var i=n(t);return E(r,!1),i}return n(t)}function L(t){return e.visitEachChild(t,D,n)}function D(t){if(0==(128&t.transformFlags))return t;switch(t.kind){case 130:return;case 216:return function(t){return T(1)?e.setOriginalNode(e.setTextRange(c.createYieldExpression(void 0,e.visitNode(t.expression,D,e.isExpression)),t),t):e.visitEachChild(t,D,n)}(t);case 167:return x(3,C,t);case 254:return x(3,I,t);case 211:return x(3,N,t);case 212:return x(1,k,t);case 204:return o&&e.isPropertyAccessExpression(t)&&106===t.expression.kind&&o.add(t.name.escapedText),e.visitEachChild(t,D,n);case 205:return o&&106===t.expression.kind&&(s=!0),e.visitEachChild(t,D,n);case 170:case 171:case 169:case 255:case 224:return x(3,L,t);default:return e.visitEachChild(t,D,n)}}function A(t){if(e.isNodeWithPossibleHoistedDeclaration(t))switch(t.kind){case 235:return function(t){if(O(t.declarationList)){var r=P(t.declarationList,!1);return r?c.createExpressionStatement(r):void 0}return e.visitEachChild(t,D,n)}(t);case 240:return function(t){var r=t.initializer;return c.updateForStatement(t,O(r)?P(r,!1):e.visitNode(t.initializer,D,e.isForInitializer),e.visitNode(t.condition,D,e.isExpression),e.visitNode(t.incrementor,D,e.isExpression),e.visitIterationBody(t.statement,A,n))}(t);case 241:return function(t){return c.updateForInStatement(t,O(t.initializer)?P(t.initializer,!0):e.visitNode(t.initializer,D,e.isForInitializer),e.visitNode(t.expression,D,e.isExpression),e.visitIterationBody(t.statement,A,n))}(t);case 242:return function(t){return c.updateForOfStatement(t,e.visitNode(t.awaitModifier,D,e.isToken),O(t.initializer)?P(t.initializer,!0):e.visitNode(t.initializer,D,e.isForInitializer),e.visitNode(t.expression,D,e.isExpression),e.visitIterationBody(t.statement,A,n))}(t);case 290:return function(t){var r,i=new e.Set;if(R(t.variableDeclaration,i),i.forEach((function(n,t){a.has(t)&&(r||(r=new e.Set(a)),r.delete(t))})),r){var o=a;a=r;var s=e.visitEachChild(t,A,n);return a=o,s}return e.visitEachChild(t,A,n)}(t);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(t,A,n);default:return e.Debug.assertNever(t,"Unhandled node.")}return D(t)}function C(t){return c.updateMethodDeclaration(t,void 0,e.visitNodes(t.modifiers,D,e.isModifier),t.asteriskToken,t.name,void 0,void 0,e.visitParameterList(t.parameters,D,n),void 0,2&e.getFunctionFlags(t)?G(t):e.visitFunctionBody(t.body,D,n))}function I(t){return c.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,D,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,D,n),void 0,2&e.getFunctionFlags(t)?G(t):e.visitFunctionBody(t.body,D,n))}function N(t){return c.updateFunctionExpression(t,e.visitNodes(t.modifiers,D,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,D,n),void 0,2&e.getFunctionFlags(t)?G(t):e.visitFunctionBody(t.body,D,n))}function k(t){return c.updateArrowFunction(t,e.visitNodes(t.modifiers,D,e.isModifier),void 0,e.visitParameterList(t.parameters,D,n),void 0,t.equalsGreaterThanToken,2&e.getFunctionFlags(t)?G(t):e.visitFunctionBody(t.body,D,n))}function R(n,t){var r=n.name;if(e.isIdentifier(r))t.add(r.escapedText);else for(var i=0,a=r.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||R(o,t)}}function O(n){return!!n&&e.isVariableDeclarationList(n)&&!(3&n.flags)&&n.declarations.some(F)}function P(n,t){!function(n){e.forEach(n.declarations,w)}(n);var r=e.getInitializedVariables(n);return 0===r.length?t?e.visitNode(c.converters.convertToAssignmentElementTarget(n.declarations[0].name),D,e.isExpression):void 0:c.inlineExpressions(e.map(r,M))}function w(n){var t=n.name;if(e.isIdentifier(t))p(t);else for(var r=0,i=t.elements;r<i.length;r++){var a=i[r];e.isOmittedExpression(a)||w(a)}}function M(n){var t=e.setSourceMapRange(c.createAssignment(c.converters.convertToAssignmentElementTarget(n.name),n.initializer),n);return e.visitNode(t,D,e.isExpression)}function F(n){var t=n.name;if(e.isIdentifier(t))return a.has(t.escapedText);for(var r=0,i=t.elements;r<i.length;r++){var o=i[r];if(!e.isOmittedExpression(o)&&F(o))return!0}return!1}function G(i){u();var p=e.getOriginalNode(i,e.isFunctionLike).type,m=_<2?function(n){var t=n&&e.getEntityNameFromTypeNode(n);if(t&&e.isEntityName(t)){var r=f.getTypeReferenceSerializationKind(t);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return t}}(p):void 0,g=212===i.kind,h=0!=(8192&f.getNodeCheckFlags(i)),v=a;a=new e.Set;for(var b=0,E=i.parameters;b<E.length;b++)R(E[b],a);var T,x=o,L=s;if(g||(o=new e.Set,s=!1),g){var A=l().createAwaiterHelper(S(),h,m,B(i.body)),C=d();e.some(C)?(P=c.converters.convertToFunctionBlock(A),T=c.updateBlock(P,e.setTextRange(c.createNodeArray(e.concatenate(C,P.statements)),P.statements))):T=A}else{var I=[],N=c.copyPrologue(i.body.statements,I,!1,D);I.push(c.createReturnStatement(l().createAwaiterHelper(S(),h,m,B(i.body,N)))),e.insertStatementsAfterStandardPrologue(I,d());var k=_>=2&&6144&f.getNodeCheckFlags(i);if(k&&(0==(1&t)&&(t|=1,n.enableSubstitution(206),n.enableSubstitution(204),n.enableSubstitution(205),n.enableEmitNotification(255),n.enableEmitNotification(167),n.enableEmitNotification(170),n.enableEmitNotification(171),n.enableEmitNotification(169),n.enableEmitNotification(235)),o.size)){var O=r(c,f,i,o);y[e.getNodeId(O)]=!0,e.insertStatementsAfterStandardPrologue(I,[O])}var P=c.createBlock(I,!0);e.setTextRange(P,i.body),k&&s&&(4096&f.getNodeCheckFlags(i)?e.addEmitHelper(P,e.advancedAsyncSuperHelper):2048&f.getNodeCheckFlags(i)&&e.addEmitHelper(P,e.asyncSuperHelper)),T=P}return a=v,g||(o=x,s=L),T}function B(n,t){return e.isBlock(n)?c.updateBlock(n,e.visitNodes(n.statements,A,e.isStatement,t)):c.converters.convertToFunctionBlock(e.visitNode(n,A,e.isConciseBody))}function U(n){return 106===n.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),n.name),n):n}function V(n){return 106===n.expression.kind?(t=n.argumentExpression,r=n,4096&g?e.setTextRange(c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[t]),"value"),r):e.setTextRange(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[t]),r)):n;var t,r}},e.createSuperAccessVariableStatement=r}(u||(u={})),function(e){var n,t;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),function(e){e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"}(t||(t={})),e.transformES2018=function(n){var t=n.factory,r=n.getEmitHelperFactory,a=n.resumeLexicalEnvironment,o=n.endLexicalEnvironment,s=n.hoistVariableDeclaration,c=n.getEmitResolver(),l=n.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=n.onEmitNode;n.onEmitNode=function(n,t,r){if(1&f&&function(e){var n=e.kind;return 255===n||169===n||167===n||170===n||171===n}(t)){var i=6144&c.getNodeCheckFlags(t);if(i!==b){var a=b;return b=i,d(n,t,r),void(b=a)}}else if(f&&T[e.getNodeId(t)])return a=b,b=0,d(n,t,r),void(b=a);d(n,t,r)};var p=n.onSubstituteNode;n.onSubstituteNode=function(n,r){return r=p(n,r),1===n&&b?function(n){switch(n.kind){case 204:return z(n);case 205:return J(n);case 206:return function(n){var r=n.expression;if(e.isSuperProperty(r)){var a=e.isPropertyAccessExpression(r)?z(r):J(r);return t.createCallExpression(t.createPropertyAccessExpression(a,"call"),void 0,i([t.createThis()],n.arguments,!0))}return n}(n)}return n}(r):r};var f,m,_,g,y,h,v=!1,b=0,E=0,T=[];return e.chainBundle(n,(function(r){if(r.isDeclarationFile)return r;_=r;var i=function(r){var i=S(2,e.isEffectiveStrictModeSourceFile(r,l)?0:1);v=!1;var a=e.visitEachChild(r,D,n),o=e.concatenate(a.statements,g&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(g))]),s=t.updateSourceFile(a,e.setTextRange(t.createNodeArray(o),r.statements));return x(i),s}(r);return e.addEmitHelpers(i,n.readEmitHelpers()),_=void 0,g=void 0,i}));function S(e,n){var t=E;return E=3&(E&~e|n),t}function x(e){E=e}function L(n){g=e.append(g,t.createVariableDeclaration(n))}function D(e){return k(e,!1)}function A(e){return k(e,!0)}function C(e){if(130!==e.kind)return e}function I(e,n,t,r){if(function(e,n){return E!==(E&~e|n)}(t,r)){var i=S(t,r),a=e(n);return x(i),a}return e(n)}function N(t){return e.visitEachChild(t,D,n)}function k(a,o){if(0==(64&a.transformFlags))return a;switch(a.kind){case 216:return function(i){return 2&m&&1&m?e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,r().createAwaitHelper(e.visitNode(i.expression,D,e.isExpression))),i),i):e.visitEachChild(i,D,n)}(a);case 222:return function(i){if(2&m&&1&m){if(i.asteriskToken){var a=e.visitNode(e.Debug.assertDefined(i.expression),D,e.isExpression);return e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(i,i.asteriskToken,e.setTextRange(r().createAsyncDelegatorHelper(e.setTextRange(r().createAsyncValuesHelper(a),a)),a)))),i),i)}return e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,w(i.expression?e.visitNode(i.expression,D,e.isExpression):t.createVoidZero())),i),i)}return e.visitEachChild(i,D,n)}(a);case 245:return function(r){return 2&m&&1&m?t.updateReturnStatement(r,w(r.expression?e.visitNode(r.expression,D,e.isExpression):t.createVoidZero())):e.visitEachChild(r,D,n)}(a);case 248:return function(r){if(2&m){var i=e.unwrapInnermostStatementOfLabel(r);return 242===i.kind&&i.awaitModifier?P(i,r):t.restoreEnclosingLabel(e.visitNode(i,D,e.isStatement,t.liftToBlock),r)}return e.visitEachChild(r,D,n)}(a);case 203:return function(i){if(32768&i.transformFlags){var a=function(n){for(var r,i=[],a=0,o=n;a<o.length;a++){var s=o[a];if(293===s.kind){r&&(i.push(t.createObjectLiteralExpression(r)),r=void 0);var c=s.expression;i.push(e.visitNode(c,D,e.isExpression))}else r=e.append(r,291===s.kind?t.createPropertyAssignment(s.name,e.visitNode(s.initializer,D,e.isExpression)):e.visitNode(s,D,e.isObjectLiteralElementLike))}return r&&i.push(t.createObjectLiteralExpression(r)),i}(i.properties);a.length&&203!==a[0].kind&&a.unshift(t.createObjectLiteralExpression());var o=a[0];if(a.length>1){for(var s=1;s<a.length;s++)o=r().createAssignHelper([o,a[s]]);return o}return r().createAssignHelper(a)}return e.visitEachChild(i,D,n)}(a);case 219:return function(r,i){return e.isDestructuringAssignment(r)&&32768&r.left.transformFlags?e.flattenDestructuringAssignment(r,D,n,1,!i):27===r.operatorToken.kind?t.updateBinaryExpression(r,e.visitNode(r.left,A,e.isExpression),r.operatorToken,e.visitNode(r.right,i?A:D,e.isExpression)):e.visitEachChild(r,D,n)}(a,o);case 346:return function(r,i){if(i)return e.visitEachChild(r,A,n);for(var a,o=0;o<r.elements.length;o++){var s=r.elements[o],c=e.visitNode(s,o<r.elements.length-1?A:D,e.isExpression);(a||c!==s)&&(a||(a=r.elements.slice(0,o)),a.push(c))}var l=a?e.setTextRange(t.createNodeArray(a),r.elements):r.elements;return t.updateCommaListExpression(r,l)}(a,o);case 290:return function(r){if(r.variableDeclaration&&e.isBindingPattern(r.variableDeclaration.name)&&32768&r.variableDeclaration.name.transformFlags){var a=t.getGeneratedNameForNode(r.variableDeclaration.name),o=t.updateVariableDeclaration(r.variableDeclaration,r.variableDeclaration.name,void 0,void 0,a),s=e.flattenDestructuringBinding(o,D,n,1),c=e.visitNode(r.block,D,e.isBlock);return e.some(s)&&(c=t.updateBlock(c,i([t.createVariableStatement(void 0,s)],c.statements,!0))),t.updateCatchClause(r,t.updateVariableDeclaration(r.variableDeclaration,a,void 0,void 0,void 0),c)}return e.visitEachChild(r,D,n)}(a);case 235:return function(t){if(e.hasSyntacticModifier(t,1)){var r=v;v=!0;var i=e.visitEachChild(t,D,n);return v=r,i}return e.visitEachChild(t,D,n)}(a);case 252:return function(e){if(v){var n=v;v=!1;var t=R(e,!0);return v=n,t}return R(e,!1)}(a);case 238:case 239:case 241:return I(N,a,0,2);case 242:return P(a,void 0);case 240:return I(O,a,0,2);case 215:case 236:return function(t){return e.visitEachChild(t,A,n)}(a);case 169:return I(M,a,2,1);case 167:return I(B,a,2,1);case 170:return I(F,a,2,1);case 171:return I(G,a,2,1);case 254:return I(U,a,2,1);case 211:return I(j,a,2,1);case 212:return I(V,a,2,0);case 162:return function(r){return 32768&r.transformFlags?t.updateParameterDeclaration(r,void 0,void 0,r.dotDotDotToken,t.getGeneratedNameForNode(r),void 0,void 0,e.visitNode(r.initializer,D,e.isExpression)):e.visitEachChild(r,D,n)}(a);case 210:return function(t,r){return e.visitEachChild(t,r?A:D,n)}(a,o);case 208:return function(t){return e.processTaggedTemplateExpression(n,t,D,_,L,e.ProcessLevel.LiftRestriction)}(a);case 204:return y&&e.isPropertyAccessExpression(a)&&106===a.expression.kind&&y.add(a.name.escapedText),e.visitEachChild(a,D,n);case 205:return y&&106===a.expression.kind&&(h=!0),e.visitEachChild(a,D,n);case 255:case 224:return I(N,a,2,1);default:return e.visitEachChild(a,D,n)}}function R(t,r){return e.isBindingPattern(t.name)&&32768&t.name.transformFlags?e.flattenDestructuringBinding(t,D,n,1,void 0,r):e.visitEachChild(t,D,n)}function O(r){return t.updateForStatement(r,e.visitNode(r.initializer,A,e.isForInitializer),e.visitNode(r.condition,D,e.isExpression),e.visitNode(r.incrementor,A,e.isExpression),e.visitIterationBody(r.statement,D,n))}function P(i,a){var o=S(0,2);32768&i.initializer.transformFlags&&(i=function(n){var r=e.skipParentheses(n.initializer);if(e.isVariableDeclarationList(r)||e.isAssignmentPattern(r)){var i=void 0,a=void 0,o=t.createTempVariable(void 0),s=[e.createForOfBindingStatement(t,r,o)];return e.isBlock(n.statement)?(e.addRange(s,n.statement.statements),i=n.statement,a=n.statement.statements):n.statement&&(e.append(s,n.statement),i=n.statement,a=n.statement),t.updateForOfStatement(n,n.awaitModifier,e.setTextRange(t.createVariableDeclarationList([e.setTextRange(t.createVariableDeclaration(o),n.initializer)],1),n.initializer),n.expression,e.setTextRange(t.createBlock(e.setTextRange(t.createNodeArray(s),a),!0),i))}return n}(i));var c=i.awaitModifier?function(i,a,o){var c=e.visitNode(i.expression,D,e.isExpression),l=e.isIdentifier(c)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),u=e.isIdentifier(c)?t.getGeneratedNameForNode(l):t.createTempVariable(void 0),d=t.createUniqueName("e"),p=t.getGeneratedNameForNode(d),f=t.createTempVariable(void 0),m=e.setTextRange(r().createAsyncValuesHelper(c),i.expression),_=t.createCallExpression(t.createPropertyAccessExpression(l,"next"),void 0,[]),g=t.createPropertyAccessExpression(u,"done"),y=t.createPropertyAccessExpression(u,"value"),h=t.createFunctionCallCall(f,l,[]);s(d),s(f);var v=2&o?t.inlineExpressions([t.createAssignment(d,t.createVoidZero()),m]):m,b=e.setEmitFlags(e.setTextRange(t.createForStatement(e.setEmitFlags(e.setTextRange(t.createVariableDeclarationList([e.setTextRange(t.createVariableDeclaration(l,void 0,void 0,v),i.expression),t.createVariableDeclaration(u)]),i.expression),2097152),t.createComma(t.createAssignment(u,w(_)),t.createLogicalNot(g)),void 0,function(r,i){var a,o,s=e.createForOfBindingStatement(t,r.initializer,i),c=[e.visitNode(s,D,e.isStatement)],l=e.visitIterationBody(r.statement,D,n);return e.isBlock(l)?(e.addRange(c,l.statements),a=l,o=l.statements):c.push(l),e.setEmitFlags(e.setTextRange(t.createBlock(e.setTextRange(t.createNodeArray(c),o),!0),a),432)}(i,y)),i),256);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(b,a)]),t.createCatchClause(t.createVariableDeclaration(p),e.setEmitFlags(t.createBlock([t.createExpressionStatement(t.createAssignment(d,t.createObjectLiteralExpression([t.createPropertyAssignment("error",p)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([e.setEmitFlags(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(u,t.createLogicalNot(g)),t.createAssignment(f,t.createPropertyAccessExpression(l,"return"))),t.createExpressionStatement(w(h))),1)]),void 0,e.setEmitFlags(t.createBlock([e.setEmitFlags(t.createIfStatement(d,t.createThrowStatement(t.createPropertyAccessExpression(d,"error"))),1)]),1))]))}(i,a,o):t.restoreEnclosingLabel(e.visitEachChild(i,D,n),a);return x(o),c}function w(e){return 1&m?t.createYieldExpression(void 0,r().createAwaitHelper(e)):t.createAwaitExpression(e)}function M(r){var i=m;m=0;var a=t.updateConstructorDeclaration(r,void 0,r.modifiers,e.visitParameterList(r.parameters,D,n),H(r));return m=i,a}function F(r){var i=m;m=0;var a=t.updateGetAccessorDeclaration(r,void 0,r.modifiers,e.visitNode(r.name,D,e.isPropertyName),e.visitParameterList(r.parameters,D,n),void 0,H(r));return m=i,a}function G(r){var i=m;m=0;var a=t.updateSetAccessorDeclaration(r,void 0,r.modifiers,e.visitNode(r.name,D,e.isPropertyName),e.visitParameterList(r.parameters,D,n),H(r));return m=i,a}function B(r){var i=m;m=e.getFunctionFlags(r);var a=t.updateMethodDeclaration(r,void 0,1&m?e.visitNodes(r.modifiers,C,e.isModifier):r.modifiers,2&m?void 0:r.asteriskToken,e.visitNode(r.name,D,e.isPropertyName),e.visitNode(void 0,D,e.isToken),void 0,e.visitParameterList(r.parameters,D,n),void 0,2&m&&1&m?K(r):H(r));return m=i,a}function U(r){var i=m;m=e.getFunctionFlags(r);var a=t.updateFunctionDeclaration(r,void 0,1&m?e.visitNodes(r.modifiers,C,e.isModifier):r.modifiers,2&m?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,D,n),void 0,2&m&&1&m?K(r):H(r));return m=i,a}function V(r){var i=m;m=e.getFunctionFlags(r);var a=t.updateArrowFunction(r,r.modifiers,void 0,e.visitParameterList(r.parameters,D,n),void 0,r.equalsGreaterThanToken,H(r));return m=i,a}function j(r){var i=m;m=e.getFunctionFlags(r);var a=t.updateFunctionExpression(r,1&m?e.visitNodes(r.modifiers,C,e.isModifier):r.modifiers,2&m?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,D,n),void 0,2&m&&1&m?K(r):H(r));return m=i,a}function K(i){a();var s=[],l=t.copyPrologue(i.body.statements,s,!1,D);W(s,i);var d=y,p=h;y=new e.Set,h=!1;var m=t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(41),i.name&&t.getGeneratedNameForNode(i.name),void 0,[],void 0,t.updateBlock(i.body,e.visitLexicalEnvironment(i.body.statements,D,n,l))),!!(1&E))),_=u>=2&&6144&c.getNodeCheckFlags(i);if(_){0==(1&f)&&(f|=1,n.enableSubstitution(206),n.enableSubstitution(204),n.enableSubstitution(205),n.enableEmitNotification(255),n.enableEmitNotification(167),n.enableEmitNotification(170),n.enableEmitNotification(171),n.enableEmitNotification(169),n.enableEmitNotification(235));var g=e.createSuperAccessVariableStatement(t,c,i,y);T[e.getNodeId(g)]=!0,e.insertStatementsAfterStandardPrologue(s,[g])}s.push(m),e.insertStatementsAfterStandardPrologue(s,o());var v=t.updateBlock(i.body,s);return _&&h&&(4096&c.getNodeCheckFlags(i)?e.addEmitHelper(v,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(i)&&e.addEmitHelper(v,e.asyncSuperHelper)),y=d,h=p,v}function H(n){var r;a();var i=0,s=[],c=null!==(r=e.visitNode(n.body,D,e.isConciseBody))&&void 0!==r?r:t.createBlock([]);e.isBlock(c)&&(i=t.copyPrologue(c.statements,s,!1,D)),e.addRange(s,W(void 0,n));var l=o();if(i>0||e.some(s)||e.some(l)){var u=t.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,u.statements.slice(i)),t.updateBlock(u,e.setTextRange(t.createNodeArray(s),u.statements))}return c}function W(r,i){for(var a=0,o=i.parameters;a<o.length;a++){var s=o[a];if(32768&s.transformFlags){var c=t.getGeneratedNameForNode(s),l=e.flattenDestructuringBinding(s,D,n,1,c,!1,!0);if(e.some(l)){var u=t.createVariableStatement(void 0,t.createVariableDeclarationList(l));e.setEmitFlags(u,1048576),r=e.append(r,u)}}}return r}function z(n){return 106===n.expression.kind?e.setTextRange(t.createPropertyAccessExpression(t.createUniqueName("_super",48),n.name),n):n}function J(n){return 106===n.expression.kind?(r=n.argumentExpression,i=n,4096&b?e.setTextRange(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[r]),"value"),i):e.setTextRange(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[r]),i)):n;var r,i}}}(u||(u={})),function(e){e.transformES2019=function(n){var t=n.factory;return e.chainBundle(n,(function(t){return t.isDeclarationFile?t:e.visitEachChild(t,r,n)}));function r(i){return 0==(32&i.transformFlags)?i:290===i.kind?function(i){return i.variableDeclaration?e.visitEachChild(i,r,n):t.updateCatchClause(i,t.createVariableDeclaration(t.createTempVariable(void 0)),e.visitNode(i.block,r,e.isBlock))}(i):e.visitEachChild(i,r,n)}}}(u||(u={})),function(e){e.transformES2020=function(n){var t=n.factory,r=n.hoistVariableDeclaration;return e.chainBundle(n,(function(t){return t.isDeclarationFile?t:e.visitEachChild(t,i,n)}));function i(a){if(0==(16&a.transformFlags))return a;switch(a.kind){case 206:var u=o(a,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u;case 204:case 205:return e.isOptionalChain(a)?(u=c(a,!1,!1),e.Debug.assertNotNode(u,e.isSyntheticReference),u):e.visitEachChild(a,i,n);case 219:return 60===a.operatorToken.kind?function(n){var a=e.visitNode(n.left,i,e.isExpression),o=a;return e.isSimpleCopiableExpression(a)||(o=t.createTempVariable(r),a=t.createAssignment(o,a)),e.setTextRange(t.createConditionalExpression(l(a,o),void 0,o,void 0,e.visitNode(n.right,i,e.isExpression)),n)}(a):e.visitEachChild(a,i,n);case 213:return function(n){return e.isOptionalChain(e.skipParentheses(n.expression))?e.setOriginalNode(s(n.expression,!1,!0),n):t.updateDeleteExpression(n,e.visitNode(n.expression,i,e.isExpression))}(a);default:return e.visitEachChild(a,i,n)}}function a(n,r,i){var a=s(n.expression,r,i);return e.isSyntheticReference(a)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(n,a.expression),a.thisArg):t.updateParenthesizedExpression(n,a)}function o(r,o){if(e.isOptionalChain(r))return c(r,o,!1);if(e.isParenthesizedExpression(r.expression)&&e.isOptionalChain(e.skipParentheses(r.expression))){var s=a(r.expression,!0,!1),l=e.visitNodes(r.arguments,i,e.isExpression);return e.isSyntheticReference(s)?e.setTextRange(t.createFunctionCallCall(s.expression,s.thisArg,l),r):t.updateCallExpression(r,s,void 0,l)}return e.visitEachChild(r,i,n)}function s(n,s,l){switch(n.kind){case 210:return a(n,s,l);case 204:case 205:return function(n,a,o){if(e.isOptionalChain(n))return c(n,a,o);var s,l=e.visitNode(n.expression,i,e.isExpression);return e.Debug.assertNotNode(l,e.isSyntheticReference),a&&(e.isSimpleCopiableExpression(l)?s=l:(s=t.createTempVariable(r),l=t.createAssignment(s,l))),l=204===n.kind?t.updatePropertyAccessExpression(n,l,e.visitNode(n.name,i,e.isIdentifier)):t.updateElementAccessExpression(n,l,e.visitNode(n.argumentExpression,i,e.isExpression)),s?t.createSyntheticReferenceExpression(l,s):l}(n,s,l);case 206:return o(n,s);default:return e.visitNode(n,i,e.isExpression)}}function c(n,a,o){var c=function(n){e.Debug.assertNotNode(n,e.isNonNullChain);for(var t=[n];!n.questionDotToken&&!e.isTaggedTemplateExpression(n);)n=e.cast(e.skipPartiallyEmittedExpressions(n.expression),e.isOptionalChain),e.Debug.assertNotNode(n,e.isNonNullChain),t.unshift(n);return{expression:n.expression,chain:t}}(n),u=c.expression,d=c.chain,p=s(u,e.isCallChain(d[0]),!1),f=e.isSyntheticReference(p)?p.thisArg:void 0,m=e.isSyntheticReference(p)?p.expression:p,_=m;e.isSimpleCopiableExpression(m)||(_=t.createTempVariable(r),m=t.createAssignment(_,m));for(var g,y=_,h=0;h<d.length;h++){var v=d[h];switch(v.kind){case 204:case 205:h===d.length-1&&a&&(e.isSimpleCopiableExpression(y)?g=y:(g=t.createTempVariable(r),y=t.createAssignment(g,y))),y=204===v.kind?t.createPropertyAccessExpression(y,e.visitNode(v.name,i,e.isIdentifier)):t.createElementAccessExpression(y,e.visitNode(v.argumentExpression,i,e.isExpression));break;case 206:y=0===h&&f?t.createFunctionCallCall(y,106===f.kind?t.createThis():f,e.visitNodes(v.arguments,i,e.isExpression)):t.createCallExpression(y,void 0,e.visitNodes(v.arguments,i,e.isExpression))}e.setOriginalNode(y,v)}var b=o?t.createConditionalExpression(l(m,_,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(y)):t.createConditionalExpression(l(m,_,!0),void 0,t.createVoidZero(),void 0,y);return e.setTextRange(b,n),g?t.createSyntheticReferenceExpression(b,g):b}function l(e,n,r){return t.createBinaryExpression(t.createBinaryExpression(e,t.createToken(r?36:37),t.createNull()),t.createToken(r?56:55),t.createBinaryExpression(n,t.createToken(r?36:37),t.createVoidZero()))}}}(u||(u={})),function(e){e.transformES2021=function(n){var t=n.hoistVariableDeclaration,r=n.factory;return e.chainBundle(n,(function(t){return t.isDeclarationFile?t:e.visitEachChild(t,i,n)}));function i(a){if(0==(8&a.transformFlags))return a;if(219===a.kind){var o=a;if(e.isLogicalOrCoalescingAssignmentExpression(o))return function(n){var a=n.operatorToken,o=e.getNonAssignmentOperatorForCompoundAssignment(a.kind),s=e.skipParentheses(e.visitNode(n.left,i,e.isLeftHandSideExpression)),c=s,l=e.skipParentheses(e.visitNode(n.right,i,e.isExpression));if(e.isAccessExpression(s)){var u=e.isSimpleCopiableExpression(s.expression),d=u?s.expression:r.createTempVariable(t),p=u?s.expression:r.createAssignment(d,s.expression);if(e.isPropertyAccessExpression(s))c=r.createPropertyAccessExpression(d,s.name),s=r.createPropertyAccessExpression(p,s.name);else{var f=e.isSimpleCopiableExpression(s.argumentExpression),m=f?s.argumentExpression:r.createTempVariable(t);c=r.createElementAccessExpression(d,m),s=r.createElementAccessExpression(p,f?s.argumentExpression:r.createAssignment(m,s.argumentExpression))}}return r.createBinaryExpression(s,o,r.createParenthesizedExpression(r.createAssignment(c,l)))}(o)}return e.visitEachChild(a,i,n)}}}(u||(u={})),function(e){e.transformESNext=function(n){return e.chainBundle(n,(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,t,n)}));function t(r){return 0==(4&r.transformFlags)?r:(r.kind,e.visitEachChild(r,t,n))}}}(u||(u={})),function(e){e.transformJsx=function(t){var r,i,a=t.factory,o=t.getEmitHelperFactory,s=t.getCompilerOptions();return e.chainBundle(t,(function(n){if(n.isDeclarationFile)return n;r=n,(i={}).importSpecifier=e.getJSXImplicitImportBase(s,n);var o=e.visitEachChild(n,u,t);e.addEmitHelpers(o,t.readEmitHelpers());var c=o.statements;if(i.filenameDeclaration&&(c=e.insertStatementAfterCustomPrologue(c.slice(),a.createVariableStatement(void 0,a.createVariableDeclarationList([i.filenameDeclaration],2)))),i.utilizedImplicitRuntimeImports)for(var l=0,d=e.arrayFrom(i.utilizedImplicitRuntimeImports.entries());l<d.length;l++){var p=d[l],f=p[0],m=p[1];if(e.isExternalModule(n)){var _=a.createImportDeclaration(void 0,void 0,a.createImportClause(!1,void 0,a.createNamedImports(e.arrayFrom(m.values()))),a.createStringLiteral(f));e.setParentRecursive(_,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),_)}else if(e.isExternalOrCommonJsModule(n)){var g=a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.createObjectBindingPattern(e.map(e.arrayFrom(m.values()),(function(e){return a.createBindingElement(void 0,e.propertyName,e.name)}))),void 0,void 0,a.createCallExpression(a.createIdentifier("require"),void 0,[a.createStringLiteral(f)]))],2));e.setParentRecursive(g,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),g)}}return c!==o.statements&&(o=a.updateSourceFile(o,c)),i=void 0,o}));function c(){if(i.filenameDeclaration)return i.filenameDeclaration.name;var e=a.createVariableDeclaration(a.createUniqueName("_jsxFileName",48),void 0,void 0,a.createStringLiteral(r.fileName));return i.filenameDeclaration=e,i.filenameDeclaration.name}function l(n){var t,r,o="createElement"===n?i.importSpecifier:e.getJSXRuntimeImport(i.importSpecifier,s),c=null===(r=null===(t=i.utilizedImplicitRuntimeImports)||void 0===t?void 0:t.get(o))||void 0===r?void 0:r.get(n);if(c)return c.name;i.utilizedImplicitRuntimeImports||(i.utilizedImplicitRuntimeImports=e.createMap());var l=i.utilizedImplicitRuntimeImports.get(o);l||(l=e.createMap(),i.utilizedImplicitRuntimeImports.set(o,l));var u=a.createUniqueName("_"+n,112),d=a.createImportSpecifier(a.createIdentifier(n),u);return u.generatedImportReference=d,l.set(n,d),u}function u(n){return 2&n.transformFlags?function(n){switch(n.kind){case 276:return f(n,!1);case 277:return m(n,!1);case 280:return _(n,!1);case 286:return I(n);default:return e.visitEachChild(n,u,t)}}(n):n}function d(n){switch(n.kind){case 11:return function(n){var t=function(n){for(var t,r=0,i=-1,a=0;a<n.length;a++){var o=n.charCodeAt(a);e.isLineBreak(o)?(-1!==r&&-1!==i&&(t=D(t,n.substr(r,i-r+1))),r=-1):e.isWhiteSpaceSingleLine(o)||(i=a,-1===r&&(r=a))}return-1!==r?D(t,n.substr(r)):t}(n.text);return void 0===t?void 0:a.createStringLiteral(t)}(n);case 286:return I(n);case 276:return f(n,!0);case 277:return m(n,!0);case 280:return _(n,!0);default:return e.Debug.failBadSyntaxKind(n)}}function p(n){return void 0===i.importSpecifier||function(n){for(var t=!1,r=0,i=n.attributes.properties;r<i.length;r++){var a=i[r];if(e.isJsxSpreadAttribute(a))t=!0;else if(t&&e.isJsxAttribute(a)&&"key"===a.name.escapedText)return!0}return!1}(n)}function f(e,n){return(p(e.openingElement)?v:y)(e.openingElement,e.children,n,e)}function m(e,n){return(p(e)?v:y)(e,void 0,n,e)}function _(e,n){return(void 0===i.importSpecifier?E:b)(e.openingFragment,e.children,n,e)}function g(n){var t=e.getSemanticJsxChildren(n);if(1===e.length(t)){var r=d(t[0]);return r&&a.createObjectLiteralExpression([a.createPropertyAssignment("children",r)])}var i=e.mapDefined(n,d);return i.length?a.createObjectLiteralExpression([a.createPropertyAssignment("children",a.createArrayLiteralExpression(i))]):void 0}function y(n,t,r,i){var s=C(n),c=e.find(n.attributes.properties,(function(n){return!!n.name&&e.isIdentifier(n.name)&&"key"===n.name.escapedText})),l=c?e.filter(n.attributes.properties,(function(e){return e!==c})):n.attributes.properties,u=[];if(l.length&&(u=e.flatten(e.spanMap(l,e.isJsxSpreadAttribute,(function(n,t){return t?e.map(n,S):a.createObjectLiteralExpression(e.map(n,x))}))),e.isJsxSpreadAttribute(l[0])&&u.unshift(a.createObjectLiteralExpression())),t&&t.length){var d=g(t);d&&u.push(d)}return h(s,0===u.length?a.createObjectLiteralExpression([]):e.singleOrUndefined(u)||o().createAssignHelper(u),c,e.length(e.getSemanticJsxChildren(t||e.emptyArray)),r,i)}function h(n,t,i,o,u,d){var p=[n,t,i?L(i.initializer):a.createVoidZero()];if(5===s.jsx){var f=e.getOriginalNode(r);if(f&&e.isSourceFile(f)){p.push(o>1?a.createTrue():a.createFalse());var m=e.getLineAndCharacterOfPosition(f,d.pos);p.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(m.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(m.character+1))])),p.push(a.createThis())}}var _=e.setTextRange(a.createCallExpression(function(e){var n=function(e){return 5===s.jsx?"jsxDEV":e>1?"jsxs":"jsx"}(e);return l(n)}(o),void 0,p),d);return u&&e.startOnNewLine(_),_}function v(n,c,u,p){var f,m=C(n),_=n.attributes.properties;if(0===_.length)f=a.createNull();else{var g=s.target;if(g&&g>=5)f=a.createObjectLiteralExpression(e.flatten(e.spanMap(_,e.isJsxSpreadAttribute,(function(n,t){return t?e.map(n,T):e.map(n,x)}))));else{var y=e.flatten(e.spanMap(_,e.isJsxSpreadAttribute,(function(n,t){return t?e.map(n,S):a.createObjectLiteralExpression(e.map(n,x))})));e.isJsxSpreadAttribute(_[0])&&y.unshift(a.createObjectLiteralExpression()),(f=e.singleOrUndefined(y))||(f=o().createAssignHelper(y))}}var h=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,t.getEmitResolver().getJsxFactoryEntity(r),s.reactNamespace,n):l("createElement"),v=e.createExpressionForJsxElement(a,h,m,f,e.mapDefined(c,d),p);return u&&e.startOnNewLine(v),v}function b(n,t,r,i){var o;if(t&&t.length){var s=g(t);s&&(o=s)}return h(l("Fragment"),o||a.createObjectLiteralExpression([]),void 0,e.length(e.getSemanticJsxChildren(t)),r,i)}function E(n,i,o,c){var l=e.createExpressionForJsxFragment(a,t.getEmitResolver().getJsxFactoryEntity(r),t.getEmitResolver().getJsxFragmentFactoryEntity(r),s.reactNamespace,e.mapDefined(i,d),n,c);return o&&e.startOnNewLine(l),l}function T(n){return a.createSpreadAssignment(e.visitNode(n.expression,u,e.isExpression))}function S(n){return e.visitNode(n.expression,u,e.isExpression)}function x(n){var t=function(n){var t=n.name,r=e.idText(t);return/^[A-Za-z_]\w*$/.test(r)?t:a.createStringLiteral(r)}(n),r=L(n.initializer);return a.createPropertyAssignment(t,r)}function L(n){if(void 0===n)return a.createTrue();if(10===n.kind){var t=void 0!==n.singleQuote?n.singleQuote:!e.isStringDoubleQuoted(n,r),i=a.createStringLiteral(((s=A(o=n.text))===o?void 0:s)||n.text,t);return e.setTextRange(i,n)}return 286===n.kind?void 0===n.expression?a.createTrue():e.visitNode(n.expression,u,e.isExpression):e.Debug.failBadSyntaxKind(n);var o,s}function D(e,n){var t=A(n);return void 0===e?t:e+" "+t}function A(t){return t.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(function(t,r,i,a,o,s,c){if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var l=n.get(c);return l?e.utf16EncodeAsString(l):t}))}function C(n){if(276===n.kind)return C(n.openingElement);var t=n.tagName;return e.isIdentifier(t)&&e.isIntrinsicJsxName(t.escapedText)?a.createStringLiteral(e.idText(t)):e.createExpressionFromEntityName(a,t)}function I(n){return e.visitNode(n.expression,u,e.isExpression)}};var n=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}))}(u||(u={})),function(e){e.transformES2016=function(n){var t=n.factory,r=n.hoistVariableDeclaration;return e.chainBundle(n,(function(t){return t.isDeclarationFile?t:e.visitEachChild(t,i,n)}));function i(a){return 0==(256&a.transformFlags)?a:219===a.kind?function(a){switch(a.operatorToken.kind){case 67:return function(n){var a,o,s=e.visitNode(n.left,i,e.isExpression),c=e.visitNode(n.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var l=t.createTempVariable(r),u=t.createTempVariable(r);a=e.setTextRange(t.createElementAccessExpression(e.setTextRange(t.createAssignment(l,s.expression),s.expression),e.setTextRange(t.createAssignment(u,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(t.createElementAccessExpression(l,u),s)}else e.isPropertyAccessExpression(s)?(l=t.createTempVariable(r),a=e.setTextRange(t.createPropertyAccessExpression(e.setTextRange(t.createAssignment(l,s.expression),s.expression),s.name),s),o=e.setTextRange(t.createPropertyAccessExpression(l,s.name),s)):(a=s,o=s);return e.setTextRange(t.createAssignment(a,e.setTextRange(t.createGlobalMethodCall("Math","pow",[o,c]),n)),n)}(a);case 42:return function(n){var r=e.visitNode(n.left,i,e.isExpression),a=e.visitNode(n.right,i,e.isExpression);return e.setTextRange(t.createGlobalMethodCall("Math","pow",[r,a]),n)}(a);default:return e.visitEachChild(a,i,n)}}(a):e.visitEachChild(a,i,n)}}}(u||(u={})),function(e){var n,t,r,a,o,s;function c(e,n){return{kind:e,expression:n}}!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(n||(n={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(t||(t={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(r||(r={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.StaticInitializer=16384]="StaticInitializer",e[e.AncestorFactsMask=32767]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=32670]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=32662]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.StaticInitializerIncludes=16449]="StaticInitializerIncludes",e[e.StaticInitializerExcludes=32670]="StaticInitializerExcludes",e[e.NewTarget=32768]="NewTarget",e[e.CapturedLexicalThis=65536]="CapturedLexicalThis",e[e.SubtreeFactsMask=-32768]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"}(o||(o={})),function(e){e[e.None=0]="None",e[e.UnpackedSpread=1]="UnpackedSpread",e[e.PackedSpread=2]="PackedSpread"}(s||(s={})),e.transformES2015=function(n){var t,r,a,o,s,l,u=n.factory,d=n.getEmitHelperFactory,p=n.startLexicalEnvironment,f=n.resumeLexicalEnvironment,m=n.endLexicalEnvironment,_=n.hoistVariableDeclaration,g=n.getCompilerOptions(),y=n.getEmitResolver(),h=n.onSubstituteNode,v=n.onEmitNode;function b(n){o=e.append(o,u.createVariableDeclaration(n))}return n.onEmitNode=function(n,t,r){if(1&l&&e.isFunctionLike(t)){var i=E(32670,8&e.getEmitFlags(t)?81:65);return v(n,t,r),void T(i,0,0)}v(n,t,r)},n.onSubstituteNode=function(n,t){return t=h(n,t),1===n?function(n){switch(n.kind){case 79:return function(n){if(2&l&&!e.isInternalName(n)){var t=y.getReferencedDeclarationWithCollidingName(n);if(t&&(!e.isClassLike(t)||!function(n,t){var r=e.getParseTreeNode(t);if(!r||r===n||r.end<=n.pos||r.pos>=n.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(n);r;){if(r===i||r===n)return!1;if(e.isClassElement(r)&&r.parent===n)return!0;r=r.parent}return!1}(t,n)))return e.setTextRange(u.getGeneratedNameForNode(e.getNameOfDeclaration(t)),n)}return n}(n);case 108:return function(n){return 1&l&&16&a?e.setTextRange(u.createUniqueName("_this",48),n):n}(n)}return n}(t):e.isIdentifier(t)?function(n){if(2&l&&!e.isInternalName(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t&&function(e){switch(e.parent.kind){case 201:case 255:case 258:case 252:return e.parent.name===e&&y.isDeclarationWithCollidingName(e.parent)}return!1}(t))return e.setTextRange(u.getGeneratedNameForNode(t),n)}return n}(t):t},e.chainBundle(n,(function(i){if(i.isDeclarationFile)return i;t=i,r=i.text;var s=function(n){var t=E(8064,64),r=[],i=[];p();var a=u.copyPrologue(n.statements,r,!1,L);return e.addRange(i,e.visitNodes(n.statements,L,e.isStatement,a)),o&&i.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(o))),u.mergeLexicalEnvironment(r,m()),V(r,n),T(t,0,0),u.updateSourceFile(n,e.setTextRange(u.createNodeArray(e.concatenate(r,i)),n.statements))}(i);return e.addEmitHelpers(s,n.readEmitHelpers()),t=void 0,r=void 0,o=void 0,a=0,s}));function E(e,n){var t=a;return a=32767&(a&~e|n),t}function T(e,n,t){a=-32768&(a&~n|t)|e}function S(e){return 0!=(8192&a)&&245===e.kind&&!e.expression}function x(n){return 0!=(512&n.transformFlags)||void 0!==s||8192&a&&function(n){return 2097152&n.transformFlags&&(e.isReturnStatement(n)||e.isIfStatement(n)||e.isWithStatement(n)||e.isSwitchStatement(n)||e.isCaseBlock(n)||e.isCaseClause(n)||e.isDefaultClause(n)||e.isTryStatement(n)||e.isCatchClause(n)||e.isLabeledStatement(n)||e.isIterationStatement(n,!1)||e.isBlock(n))}(n)||e.isIterationStatement(n,!1)&&fe(n)||0!=(33554432&e.getEmitFlags(n))}function L(e){return x(e)?I(e,!1):e}function D(e){return x(e)?I(e,!0):e}function A(n){if(x(n)){var t=e.getOriginalNode(n);if(e.isPropertyDeclaration(t)&&e.hasStaticModifier(t)){var r=E(32670,16449),i=I(n,!1);return T(r,98304,0),i}return I(n,!1)}return n}function C(e){return 106===e.kind?Re(!0):L(e)}function I(r,o){switch(r.kind){case 124:return;case 255:return function(n){var t=u.createVariableDeclaration(u.getLocalName(n,!0),void 0,void 0,R(n));e.setOriginalNode(t,n);var r=[],i=u.createVariableStatement(void 0,u.createVariableDeclarationList([t]));if(e.setOriginalNode(i,n),e.setTextRange(i,n),e.startOnNewLine(i),r.push(i),e.hasSyntacticModifier(n,1)){var a=e.hasSyntacticModifier(n,512)?u.createExportDefault(u.getLocalName(n)):u.createExternalModuleExport(u.getLocalName(n));e.setOriginalNode(a,i),r.push(a)}var o=e.getEmitFlags(n);return 0==(4194304&o)&&(r.push(u.createEndOfDeclarationMarker(n)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(r)}(r);case 224:return function(e){return R(e)}(r);case 162:return function(n){return n.dotDotDotToken?void 0:e.isBindingPattern(n.name)?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,u.getGeneratedNameForNode(n),void 0,void 0,void 0),n),n):n.initializer?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,n.name,void 0,void 0,void 0),n),n):n}(r);case 254:return function(t){var r=s;s=void 0;var i=E(32670,65),o=e.visitParameterList(t.parameters,L,n),c=X(t),l=32768&a?u.getLocalName(t):t.name;return T(i,98304,0),s=r,u.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,L,e.isModifier),t.asteriskToken,l,void 0,o,void 0,c)}(r);case 212:return function(t){8192&t.transformFlags&&!(16384&a)&&(a|=65536);var r=s;s=void 0;var i=E(15232,66),o=u.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(t.parameters,L,n),void 0,X(t));return e.setTextRange(o,t),e.setOriginalNode(o,t),e.setEmitFlags(o,8),T(i,0,0),s=r,o}(r);case 211:return function(t){var r=262144&e.getEmitFlags(t)?E(32662,69):E(32670,65),i=s;s=void 0;var o=e.visitParameterList(t.parameters,L,n),c=X(t),l=32768&a?u.getLocalName(t):t.name;return T(r,98304,0),s=i,u.updateFunctionExpression(t,void 0,t.asteriskToken,l,void 0,o,void 0,c)}(r);case 252:return Z(r);case 79:return k(r);case 253:return function(t){if(3&t.flags||262144&t.transformFlags){3&t.flags&&Oe();var r=e.flatMap(t.declarations,1&t.flags?Q:Z),i=u.createVariableDeclarationList(r);return e.setOriginalNode(i,t),e.setTextRange(i,t),e.setCommentRange(i,t),262144&t.transformFlags&&(e.isBindingPattern(t.declarations[0].name)||e.isBindingPattern(e.last(t.declarations).name))&&e.setSourceMapRange(i,function(n){for(var t=-1,r=-1,i=0,a=n;i<a.length;i++){var o=a[i];t=-1===t?o.pos:-1===o.pos?t:Math.min(t,o.pos),r=Math.max(r,o.end)}return e.createRange(t,r)}(r)),i}return e.visitEachChild(t,L,n)}(r);case 247:return function(t){if(void 0!==s){var r=s.allowedNonLabeledJumps;s.allowedNonLabeledJumps|=2;var i=e.visitEachChild(t,L,n);return s.allowedNonLabeledJumps=r,i}return e.visitEachChild(t,L,n)}(r);case 261:return function(t){var r=E(7104,0),i=e.visitEachChild(t,L,n);return T(r,0,0),i}(r);case 233:return function(t,r){var i=256&a?E(7104,512):E(6976,128),o=e.visitEachChild(t,L,n);return T(i,0,0),o}(r);case 244:case 243:return function(t){if(s){var r=244===t.kind?2:4;if(!(t.label&&s.labels&&s.labels.get(e.idText(t.label))||!t.label&&s.allowedNonLabeledJumps&r)){var i=void 0,a=t.label;a?244===t.kind?(i="break-"+a.escapedText,be(s,!0,e.idText(a),i)):(i="continue-"+a.escapedText,be(s,!1,e.idText(a),i)):244===t.kind?(s.nonLocalJumps|=2,i="break"):(s.nonLocalJumps|=4,i="continue");var o=u.createStringLiteral(i);if(s.loopOutParameters.length){for(var c=s.loopOutParameters,l=void 0,d=0;d<c.length;d++){var p=he(c[d],1);l=0===d?p:u.createBinaryExpression(l,27,p)}o=u.createBinaryExpression(l,27,o)}return u.createReturnStatement(o)}}return e.visitEachChild(t,L,n)}(r);case 248:return function(n){s&&!s.labels&&(s.labels=new e.Map);var t=e.unwrapInnermostStatementOfLabel(n,s&&$);return e.isIterationStatement(t,!1)?function(e,n){switch(e.kind){case 238:case 239:return te(e,n);case 240:return re(e,n);case 241:return ie(e,n);case 242:return ae(e,n)}}(t,n):u.restoreEnclosingLabel(e.visitNode(t,L,e.isStatement,u.liftToBlock),n,s&&ee)}(r);case 238:case 239:return te(r,void 0);case 240:return re(r,void 0);case 241:return ie(r,void 0);case 242:return ae(r,void 0);case 236:case 215:return function(t){return e.visitEachChild(t,D,n)}(r);case 203:return function(t){for(var r=t.properties,i=-1,o=!1,s=0;s<r.length;s++){var c=r[s];if(524288&c.transformFlags&&4&a||(o=160===e.Debug.checkDefined(c.name).kind)){i=s;break}}if(i<0)return e.visitEachChild(t,L,n);var l=u.createTempVariable(_),d=[],p=u.createAssignment(l,e.setEmitFlags(u.createObjectLiteralExpression(e.visitNodes(r,L,e.isObjectLiteralElementLike,0,i),t.multiLine),o?65536:0));return t.multiLine&&e.startOnNewLine(p),d.push(p),function(n,t,r,i){for(var a=t.properties,o=a.length,s=i;s<o;s++){var c=a[s];switch(c.kind){case 170:case 171:var l=e.getAllAccessorDeclarations(t.properties,c);c===l.firstAccessor&&n.push(J(r,l,t,!!t.multiLine));break;case 167:n.push(Le(c,r,t,t.multiLine));break;case 291:n.push(Se(c,r,t.multiLine));break;case 292:n.push(xe(c,r,t.multiLine));break;default:e.Debug.failBadSyntaxKind(t)}}}(d,t,l,i),d.push(t.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(u.cloneNode(l),l),l.parent)):l),u.inlineExpressions(d)}(r);case 290:return function(t){var r,a,o,s,c=E(7104,0);if(e.Debug.assert(!!t.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(t.variableDeclaration.name)){var l=u.createTempVariable(void 0),d=u.createVariableDeclaration(l);e.setTextRange(d,t.variableDeclaration);var p=e.flattenDestructuringBinding(t.variableDeclaration,L,n,0,l),f=u.createVariableDeclarationList(p);e.setTextRange(f,t.variableDeclaration);var m=u.createVariableStatement(void 0,f);r=u.updateCatchClause(t,d,(a=t.block,o=m,s=e.visitNodes(a.statements,L,e.isStatement),u.updateBlock(a,i([o],s,!0))))}else r=e.visitEachChild(t,L,n);return T(c,0,0),r}(r);case 292:return function(n){return e.setTextRange(u.createPropertyAssignment(n.name,k(u.cloneNode(n.name))),n)}(r);case 160:case 222:return function(t){return e.visitEachChild(t,L,n)}(r);case 202:return function(t){return e.some(t.elements,e.isSpreadElement)?Ae(t.elements,!1,!!t.multiLine,!!t.elements.hasTrailingComma):e.visitEachChild(t,L,n)}(r);case 206:return function(n){if(33554432&e.getEmitFlags(n))return function(n){var t=e.cast(e.cast(e.skipOuterExpressions(n.expression),e.isArrowFunction).body,e.isBlock),r=function(n){return e.isVariableStatement(n)&&!!e.first(n.declarationList.declarations).initializer},i=s;s=void 0;var a=e.visitNodes(t.statements,A,e.isStatement);s=i;var o=e.filter(a,r),c=e.filter(a,(function(e){return!r(e)})),l=e.cast(e.first(o),e.isVariableStatement).declarationList.declarations[0],d=e.skipOuterExpressions(l.initializer),p=e.tryCast(d,e.isAssignmentExpression);!p&&e.isBinaryExpression(d)&&27===d.operatorToken.kind&&(p=e.tryCast(d.left,e.isAssignmentExpression));var f=e.cast(p?e.skipOuterExpressions(p.right):d,e.isCallExpression),m=e.cast(e.skipOuterExpressions(f.expression),e.isFunctionExpression),_=m.body.statements,g=0,y=-1,h=[];if(p){var v=e.tryCast(_[g],e.isExpressionStatement);v&&(h.push(v),g++),h.push(_[g]),g++,h.push(u.createExpressionStatement(u.createAssignment(p.left,e.cast(l.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(_,y));)y--;return e.addRange(h,_,g,y),y<-1&&e.addRange(h,_,y+1),e.addRange(h,c),e.addRange(h,o,1),u.restoreOuterExpressions(n.expression,u.restoreOuterExpressions(l.initializer,u.restoreOuterExpressions(p&&p.right,u.updateCallExpression(f,u.restoreOuterExpressions(f.expression,u.updateFunctionExpression(m,void 0,void 0,void 0,void 0,m.parameters,void 0,u.updateBlock(m.body,h))),void 0,f.arguments))))}(n);var t=e.skipOuterExpressions(n.expression);return 106===t.kind||e.isSuperProperty(t)||e.some(n.arguments,e.isSpreadElement)?De(n,!0):u.updateCallExpression(n,e.visitNode(n.expression,C,e.isExpression),void 0,e.visitNodes(n.arguments,L,e.isExpression))}(r);case 207:return function(t){if(e.some(t.arguments,e.isSpreadElement)){var r=u.createCallBinding(u.createPropertyAccessExpression(t.expression,"bind"),_),a=r.target,o=r.thisArg;return u.createNewExpression(u.createFunctionApplyCall(e.visitNode(a,L,e.isExpression),o,Ae(u.createNodeArray(i([u.createVoidZero()],t.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(t,L,n)}(r);case 210:return function(t,r){return e.visitEachChild(t,r?D:L,n)}(r,o);case 219:return Y(r,o);case 346:return function(t,r){if(r)return e.visitEachChild(t,D,n);for(var i,a=0;a<t.elements.length;a++){var o=t.elements[a],s=e.visitNode(o,a<t.elements.length-1?D:L,e.isExpression);(i||s!==o)&&(i||(i=t.elements.slice(0,a)),i.push(s))}var c=i?e.setTextRange(u.createNodeArray(i),t.elements):t.elements;return u.updateCommaListExpression(t,c)}(r,o);case 14:case 15:case 16:case 17:return function(n){return e.setTextRange(u.createStringLiteral(n.text),n)}(r);case 10:return function(n){return n.hasExtendedUnicodeEscape?e.setTextRange(u.createStringLiteral(n.text),n):n}(r);case 8:return function(n){return 384&n.numericLiteralFlags?e.setTextRange(u.createNumericLiteral(n.text),n):n}(r);case 208:return function(r){return e.processTaggedTemplateExpression(n,r,L,t,b,e.ProcessLevel.All)}(r);case 221:return function(n){var t=[];(function(n,t){(function(n){return e.Debug.assert(0!==n.templateSpans.length),0!==n.head.text.length||0===n.templateSpans[0].literal.text.length})(t)&&n.push(u.createStringLiteral(t.head.text))})(t,n),function(n,t){for(var r=0,i=t.templateSpans;r<i.length;r++){var a=i[r];n.push(e.visitNode(a.expression,L,e.isExpression)),0!==a.literal.text.length&&n.push(u.createStringLiteral(a.literal.text))}}(t,n);var r=e.reduceLeft(t,u.createAdd);return e.nodeIsSynthesized(r)&&e.setTextRange(r,n),r}(r);case 223:return function(n){return e.visitNode(n.expression,L,e.isExpression)}(r);case 106:return Re(!1);case 108:return function(e){return 2&a&&!(16384&a)&&(a|=65536),s?2&a?(s.containsLexicalThis=!0,e):s.thisName||(s.thisName=u.createUniqueName("this")):e}(r);case 229:return function(e){return 103===e.keywordToken&&"target"===e.name.escapedText?(a|=32768,u.createUniqueName("_newTarget",48)):e}(r);case 167:return function(n){e.Debug.assert(!e.isComputedPropertyName(n.name));var t=q(n,e.moveRangePos(n,-1),void 0,void 0);return e.setEmitFlags(t,512|e.getEmitFlags(t)),e.setTextRange(u.createPropertyAssignment(n.name,t),n)}(r);case 170:case 171:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=s;s=void 0;var i,a=E(32670,65),o=e.visitParameterList(t.parameters,L,n),c=X(t);return i=170===t.kind?u.updateGetAccessorDeclaration(t,t.decorators,t.modifiers,t.name,o,t.type,c):u.updateSetAccessorDeclaration(t,t.decorators,t.modifiers,t.name,o,c),T(a,98304,0),s=r,i}(r);case 235:return function(t){var r,i=E(0,e.hasSyntacticModifier(t,1)?32:0);if(s&&0==(3&t.declarationList.flags)&&!function(n){return 1===n.declarationList.declarations.length&&!!n.declarationList.declarations[0].initializer&&!!(33554432&e.getEmitFlags(n.declarationList.declarations[0].initializer))}(t)){for(var a=void 0,o=0,c=t.declarationList.declarations;o<c.length;o++){var l=c[o];if(_e(s,l),l.initializer){var d=void 0;e.isBindingPattern(l.name)?d=e.flattenDestructuringAssignment(l,L,n,0):(d=u.createBinaryExpression(l.name,63,e.visitNode(l.initializer,L,e.isExpression)),e.setTextRange(d,l)),a=e.append(a,d)}}r=a?e.setTextRange(u.createExpressionStatement(u.inlineExpressions(a)),t):void 0}else r=e.visitEachChild(t,L,n);return T(i,0,0),r}(r);case 245:return function(t){return s?(s.nonLocalJumps|=8,S(t)&&(t=N(t)),u.createReturnStatement(u.createObjectLiteralExpression([u.createPropertyAssignment(u.createIdentifier("value"),t.expression?e.visitNode(t.expression,L,e.isExpression):u.createVoidZero())]))):S(t)?N(t):e.visitEachChild(t,L,n)}(r);default:return e.visitEachChild(r,L,n)}}function N(n){return e.setOriginalNode(u.createReturnStatement(u.createUniqueName("_this",48)),n)}function k(e){return s&&y.isArgumentsLocalBinding(e)?s.argumentsName||(s.argumentsName=u.createUniqueName("arguments")):e}function R(i){i.name&&Oe();var o=e.getClassExtendsHeritageElement(i),c=u.createFunctionExpression(void 0,void 0,void 0,void 0,o?[u.createParameterDeclaration(void 0,void 0,void 0,u.createUniqueName("_super",48))]:[],void 0,function(i,o){var c=[],l=u.getInternalName(i),_=e.isIdentifierANonContextualKeyword(l)?u.getGeneratedNameForNode(l):l;p(),function(n,t,r){r&&n.push(e.setTextRange(u.createExpressionStatement(d().createExtendsHelper(u.getInternalName(t))),r))}(c,i,o),function(t,r,i,o){var c=s;s=void 0;var l=E(32662,73),d=e.getFirstConstructorWithBody(r),p=function(n,t){if(!n||!t)return!1;if(e.some(n.parameters))return!1;var r=e.firstOrUndefined(n.body.statements);if(!r||!e.nodeIsSynthesized(r)||236!==r.kind)return!1;var i=r.expression;if(!e.nodeIsSynthesized(i)||206!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||106!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||223!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}(d,void 0!==o),_=u.createFunctionDeclaration(void 0,void 0,void 0,i,void 0,function(t,r){return e.visitParameterList(t&&!r?t.parameters:void 0,L,n)||[]}(d,p),void 0,function(n,t,r,i){var o=!!r&&104!==e.skipOuterExpressions(r.expression).kind;if(!n)return function(n,t){var r=[];f(),u.mergeLexicalEnvironment(r,m()),t&&r.push(u.createReturnStatement(w()));var i=u.createNodeArray(r);e.setTextRange(i,n.members);var a=u.createBlock(i,!0);return e.setTextRange(a,n),e.setEmitFlags(a,1536),a}(t,o);var s=[],c=[];f();var l,d=0;if(i||(d=u.copyStandardPrologue(n.body.statements,s,!1)),F(c,n),U(c,n,i),i||(d=u.copyCustomPrologue(n.body.statements,c,d,L)),i)l=w();else if(o&&d<n.body.statements.length){var p=n.body.statements[d];e.isExpressionStatement(p)&&e.isSuperCall(p.expression)&&(l=function(e){return De(e,!1)}(p.expression))}if(l&&(a|=8192,d++),e.addRange(c,e.visitNodes(n.body.statements,L,e.isStatement,d)),u.mergeLexicalEnvironment(s,m()),K(s,n,!1),o)if(!l||d!==n.body.statements.length||8192&n.body.transformFlags)j(c,n,l||P()),O(n.body)||c.push(u.createReturnStatement(u.createUniqueName("_this",48)));else{var _=e.cast(e.cast(l,e.isBinaryExpression).left,e.isCallExpression),g=u.createReturnStatement(l);e.setCommentRange(g,e.getCommentRange(_)),e.setEmitFlags(_,1536),c.push(g)}else V(s,n);var y=u.createBlock(e.setTextRange(u.createNodeArray(e.concatenate(s,c)),n.body.statements),!0);return e.setTextRange(y,n.body),y}(d,r,o,p));e.setTextRange(_,d||r),o&&e.setEmitFlags(_,8),t.push(_),T(l,98304,0),s=c}(c,i,_,o),function(n,r){for(var i=0,a=r.members;i<a.length;i++){var o=a[i];switch(o.kind){case 232:n.push(H(o));break;case 167:n.push(W(Pe(r,o),o,r));break;case 170:case 171:var s=e.getAllAccessorDeclarations(r.members,o);o===s.firstAccessor&&n.push(z(Pe(r,o),s,r));break;case 169:case 168:break;default:e.Debug.failBadSyntaxKind(o,t&&t.fileName)}}}(c,i);var g=e.createTokenRange(e.skipTrivia(r,i.members.end),19),y=u.createPartiallyEmittedExpression(_);e.setTextRangeEnd(y,g.end),e.setEmitFlags(y,1536);var h=u.createReturnStatement(y);e.setTextRangePos(h,g.pos),e.setEmitFlags(h,1920),c.push(h),e.insertStatementsAfterStandardPrologue(c,m());var v=u.createBlock(e.setTextRange(u.createNodeArray(c),i.members),!0);return e.setEmitFlags(v,1536),v}(i,o));e.setEmitFlags(c,65536&e.getEmitFlags(i)|524288);var l=u.createPartiallyEmittedExpression(c);e.setTextRangeEnd(l,i.end),e.setEmitFlags(l,1536);var _=u.createPartiallyEmittedExpression(l);e.setTextRangeEnd(_,e.skipTrivia(r,i.pos)),e.setEmitFlags(_,1536);var g=u.createParenthesizedExpression(u.createCallExpression(_,void 0,o?[e.visitNode(o.expression,L,e.isExpression)]:[]));return e.addSyntheticLeadingComment(g,3,"* @class "),g}function O(n){if(245===n.kind)return!0;if(237===n.kind){var t=n;if(t.elseStatement)return O(t.thenStatement)&&O(t.elseStatement)}else if(233===n.kind){var r=e.lastOrUndefined(n.statements);if(r&&O(r))return!0}return!1}function P(){return e.setEmitFlags(u.createThis(),4)}function w(){return u.createLogicalOr(u.createLogicalAnd(u.createStrictInequality(u.createUniqueName("_super",48),u.createNull()),u.createFunctionApplyCall(u.createUniqueName("_super",48),P(),u.createIdentifier("arguments"))),P())}function M(n){return void 0!==n.initializer||e.isBindingPattern(n.name)}function F(n,t){if(!e.some(t.parameters,M))return!1;for(var r=!1,i=0,a=t.parameters;i<a.length;i++){var o=a[i],s=o.name,c=o.initializer;o.dotDotDotToken||(e.isBindingPattern(s)?r=G(n,o,s,c)||r:c&&(B(n,o,s,c),r=!0))}return r}function G(t,r,i,a){return i.elements.length>0?(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(r,L,n,0,u.getGeneratedNameForNode(r)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(r),e.visitNode(a,L,e.isExpression))),1048576)),!0)}function B(n,t,r,i){i=e.visitNode(i,L,e.isExpression);var a=u.createIfStatement(u.createTypeCheck(u.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(u.createBlock([u.createExpressionStatement(e.setEmitFlags(e.setTextRange(u.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(u.cloneNode(r),r),r.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),t),1536))]),t),1953));e.startOnNewLine(a),e.setTextRange(a,t),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(n,a)}function U(t,r,i){var a=[],o=e.lastOrUndefined(r.parameters);if(!function(e,n){return!(!e||!e.dotDotDotToken||n)}(o,i))return!1;var s=79===o.name.kind?e.setParent(e.setTextRange(u.cloneNode(o.name),o.name),o.name.parent):u.createTempVariable(void 0);e.setEmitFlags(s,48);var c=79===o.name.kind?u.cloneNode(o.name):s,l=r.parameters.length-1,d=u.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(s,void 0,void 0,u.createArrayLiteralExpression([]))])),o),1048576));var p=u.createForStatement(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(d,void 0,void 0,u.createNumericLiteral(l))]),o),e.setTextRange(u.createLessThan(d,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),o),e.setTextRange(u.createPostfixIncrement(d),o),u.createBlock([e.startOnNewLine(e.setTextRange(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(c,0===l?d:u.createSubtract(d,u.createNumericLiteral(l))),u.createElementAccessExpression(u.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(p,1048576),e.startOnNewLine(p),a.push(p),79!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(o,L,n,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(t,a),!0}function V(e,n){return!!(65536&a&&212!==n.kind)&&(j(e,n,u.createThis()),!0)}function j(t,r,i){0==(1&l)&&(l|=1,n.enableSubstitution(108),n.enableEmitNotification(169),n.enableEmitNotification(167),n.enableEmitNotification(170),n.enableEmitNotification(171),n.enableEmitNotification(212),n.enableEmitNotification(211),n.enableEmitNotification(254));var a=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_this",48),void 0,void 0,i)]));e.setEmitFlags(a,1050112),e.setSourceMapRange(a,r),e.insertStatementAfterCustomPrologue(t,a)}function K(n,t,r){if(32768&a){var i=void 0;switch(t.kind){case 212:return n;case 167:case 170:case 171:i=u.createVoidZero();break;case 169:i=u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor");break;case 254:case 211:i=u.createConditionalExpression(u.createLogicalAnd(e.setEmitFlags(u.createThis(),4),u.createBinaryExpression(e.setEmitFlags(u.createThis(),4),102,u.getLocalName(t))),void 0,u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor"),void 0,u.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(t)}var o=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),r&&(n=n.slice()),e.insertStatementAfterCustomPrologue(n,o)}return n}function H(n){return e.setTextRange(u.createEmptyStatement(),n)}function W(t,r,i){var a,o=e.getCommentRange(r),s=e.getSourceMapRange(r),c=q(r,r,void 0,i),l=e.visitNode(r.name,L,e.isPropertyName);if(!e.isPrivateIdentifier(l)&&e.getUseDefineForClassFields(n.getCompilerOptions())){var d=e.isComputedPropertyName(l)?l.expression:e.isIdentifier(l)?u.createStringLiteral(e.unescapeLeadingUnderscores(l.escapedText)):l;a=u.createObjectDefinePropertyCall(t,d,u.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var p=e.createMemberAccessForPropertyName(u,t,l,r.name);a=u.createAssignment(p,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var f=e.setTextRange(u.createExpressionStatement(a),r);return e.setOriginalNode(f,r),e.setCommentRange(f,o),e.setEmitFlags(f,48),f}function z(n,t,r){var i=u.createExpressionStatement(J(n,t,r,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(t.firstAccessor)),i}function J(n,t,r,i){var a=t.firstAccessor,o=t.getAccessor,s=t.setAccessor,c=e.setParent(e.setTextRange(u.cloneNode(n),n),n.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var l=e.visitNode(a.name,L,e.isPropertyName);if(e.isPrivateIdentifier(l))return e.Debug.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");var d=e.createExpressionForPropertyName(u,l);e.setEmitFlags(d,1552),e.setSourceMapRange(d,a.name);var p=[];if(o){var f=q(o,void 0,void 0,r);e.setSourceMapRange(f,e.getSourceMapRange(o)),e.setEmitFlags(f,512);var m=u.createPropertyAssignment("get",f);e.setCommentRange(m,e.getCommentRange(o)),p.push(m)}if(s){var _=q(s,void 0,void 0,r);e.setSourceMapRange(_,e.getSourceMapRange(s)),e.setEmitFlags(_,512);var g=u.createPropertyAssignment("set",_);e.setCommentRange(g,e.getCommentRange(s)),p.push(g)}p.push(u.createPropertyAssignment("enumerable",o||s?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));var y=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[c,d,u.createObjectLiteralExpression(p,!0)]);return i&&e.startOnNewLine(y),y}function q(t,r,i,o){var c=s;s=void 0;var l=o&&e.isClassLike(o)&&!e.isStatic(t)?E(32670,73):E(32670,65),d=e.visitParameterList(t.parameters,L,n),p=X(t);return 32768&a&&!i&&(254===t.kind||211===t.kind)&&(i=u.getGeneratedNameForNode(t)),T(l,98304,0),s=c,e.setOriginalNode(e.setTextRange(u.createFunctionExpression(void 0,t.asteriskToken,i,void 0,d,void 0,p),r),t)}function X(n){var r,i,a,o=!1,s=!1,c=[],l=[],d=n.body;if(f(),e.isBlock(d)&&(a=u.copyStandardPrologue(d.statements,c,!1),a=u.copyCustomPrologue(d.statements,l,a,L,e.isHoistedFunction),a=u.copyCustomPrologue(d.statements,l,a,L,e.isHoistedVariableStatement)),o=F(l,n)||o,o=U(l,n,!1)||o,e.isBlock(d))a=u.copyCustomPrologue(d.statements,l,a,L),r=d.statements,e.addRange(l,e.visitNodes(d.statements,L,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(212===n.kind),r=e.moveRangeEnd(d,-1);var p=n.equalsGreaterThanToken;e.nodeIsSynthesized(p)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(p,d,t)?s=!0:o=!0);var _=e.visitNode(d,L,e.isExpression),g=u.createReturnStatement(_);e.setTextRange(g,d),e.moveSyntheticComments(g,d),e.setEmitFlags(g,1440),l.push(g),i=d}if(u.mergeLexicalEnvironment(c,m()),K(c,n,!1),V(c,n),e.some(c)&&(o=!0),l.unshift.apply(l,c),e.isBlock(d)&&e.arrayIsEqualTo(l,d.statements))return d;var y=u.createBlock(e.setTextRange(u.createNodeArray(l),r),o);return e.setTextRange(y,n.body),!o&&s&&e.setEmitFlags(y,1),i&&e.setTokenSourceMapRange(y,19,i),e.setOriginalNode(y,n.body),y}function Y(t,r){return e.isDestructuringAssignment(t)?e.flattenDestructuringAssignment(t,L,n,0,!r):27===t.operatorToken.kind?u.updateBinaryExpression(t,e.visitNode(t.left,D,e.isExpression),t.operatorToken,e.visitNode(t.right,r?D:L,e.isExpression)):e.visitEachChild(t,L,n)}function Q(t){var r=t.name;return e.isBindingPattern(r)?Z(t):!t.initializer&&function(e){var n=y.getNodeCheckFlags(e),t=262144&n,r=524288&n;return!(0!=(64&a)||t&&r&&0!=(512&a))&&0==(4096&a)&&(!y.isDeclarationWithCollidingName(e)||r&&!t&&0==(6144&a))}(t)?u.updateVariableDeclaration(t,t.name,void 0,void 0,u.createVoidZero()):e.visitEachChild(t,L,n)}function Z(t){var r,i=E(32,0);return r=e.isBindingPattern(t.name)?e.flattenDestructuringBinding(t,L,n,0,void 0,0!=(32&i)):e.visitEachChild(t,L,n),T(i,0,0),r}function $(n){s.labels.set(e.idText(n.label),!0)}function ee(n){s.labels.set(e.idText(n.label),!1)}function ne(t,r,i,o,c){var l=E(t,r),d=function(t,r,i,o){if(!fe(t)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(t,r,void 0,i):u.restoreEnclosingLabel(e.isForStatement(t)?function(n){return u.updateForStatement(n,e.visitNode(n.initializer,D,e.isForInitializer),e.visitNode(n.condition,L,e.isExpression),e.visitNode(n.incrementor,D,e.isExpression),e.visitNode(n.statement,L,e.isStatement,u.liftToBlock))}(t):e.visitEachChild(t,L,n),r,s&&ee);return s&&(s.allowedNonLabeledJumps=c),l}var d=function(n){var t;switch(n.kind){case 240:case 241:case 242:var r=n.initializer;r&&253===r.kind&&(t=r)}var i=[],a=[];if(t&&3&e.getCombinedNodeFlags(t))for(var o=de(n),c=0,l=t.declarations;c<l.length;c++)Te(n,l[c],i,a,o);var u={loopParameters:i,loopOutParameters:a};return s&&(s.argumentsName&&(u.argumentsName=s.argumentsName),s.thisName&&(u.thisName=s.thisName),s.hoistedLocalVariables&&(u.hoistedLocalVariables=s.hoistedLocalVariables)),u}(t),f=[],_=s;s=d;var g,y,h,v,b,E=de(t)?function(n,t){var r=u.createUniqueName("_loop_init"),i=0!=(524288&n.initializer.transformFlags),o=0;t.containsLexicalThis&&(o|=8),i&&4&a&&(o|=262144);var s=[];return s.push(u.createVariableStatement(void 0,n.initializer)),ve(t.loopOutParameters,2,1,s),{functionName:r,containsYield:i,functionDeclaration:u.createVariableStatement(void 0,e.setEmitFlags(u.createVariableDeclarationList([u.createVariableDeclaration(r,void 0,void 0,e.setEmitFlags(u.createFunctionExpression(void 0,i?u.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(u.createBlock(s,!0),L,e.isBlock)),o))]),2097152)),part:u.createVariableDeclarationList(e.map(t.loopOutParameters,ye))}}(t,d):void 0,T=me(t)?function(n,t,r){var i=u.createUniqueName("_loop");p();var o=e.visitNode(n.statement,L,e.isStatement,u.liftToBlock),s=m(),c=[];(pe(n)||function(n){return e.isForStatement(n)&&!!n.incrementor&&ue(n.incrementor)}(n))&&(t.conditionVariable=u.createUniqueName("inc"),n.incrementor?c.push(u.createIfStatement(t.conditionVariable,u.createExpressionStatement(e.visitNode(n.incrementor,L,e.isExpression)),u.createExpressionStatement(u.createAssignment(t.conditionVariable,u.createTrue())))):c.push(u.createIfStatement(u.createLogicalNot(t.conditionVariable),u.createExpressionStatement(u.createAssignment(t.conditionVariable,u.createTrue())))),pe(n)&&c.push(u.createIfStatement(u.createPrefixUnaryExpression(53,e.visitNode(n.condition,L,e.isExpression)),e.visitNode(u.createBreakStatement(),L,e.isStatement)))),e.isBlock(o)?e.addRange(c,o.statements):c.push(o),ve(t.loopOutParameters,1,1,c),e.insertStatementsAfterStandardPrologue(c,s);var l=u.createBlock(c,!0);e.isBlock(o)&&e.setOriginalNode(l,o);var d=0!=(524288&n.statement.transformFlags),f=524288;t.containsLexicalThis&&(f|=8),d&&0!=(4&a)&&(f|=262144);var _=u.createVariableStatement(void 0,e.setEmitFlags(u.createVariableDeclarationList([u.createVariableDeclaration(i,void 0,void 0,e.setEmitFlags(u.createFunctionExpression(void 0,d?u.createToken(41):void 0,void 0,void 0,t.loopParameters,void 0,l),f))]),2097152)),g=function(n,t,r,i){var a=[],o=!(-5&t.nonLocalJumps||t.labeledNonLocalBreaks||t.labeledNonLocalContinues),s=u.createCallExpression(n,void 0,e.map(t.loopParameters,(function(e){return e.name}))),c=i?u.createYieldExpression(u.createToken(41),e.setEmitFlags(s,8388608)):s;if(o)a.push(u.createExpressionStatement(c)),ve(t.loopOutParameters,1,0,a);else{var l=u.createUniqueName("state"),d=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(l,void 0,void 0,c)]));if(a.push(d),ve(t.loopOutParameters,1,0,a),8&t.nonLocalJumps){var p=void 0;r?(r.nonLocalJumps|=8,p=u.createReturnStatement(l)):p=u.createReturnStatement(u.createPropertyAccessExpression(l,"value")),a.push(u.createIfStatement(u.createTypeCheck(l,"object"),p))}if(2&t.nonLocalJumps&&a.push(u.createIfStatement(u.createStrictEquality(l,u.createStringLiteral("break")),u.createBreakStatement())),t.labeledNonLocalBreaks||t.labeledNonLocalContinues){var f=[];Ee(t.labeledNonLocalBreaks,!0,l,r,f),Ee(t.labeledNonLocalContinues,!1,l,r,f),a.push(u.createSwitchStatement(l,u.createCaseBlock(f)))}}return a}(i,t,r,d);return{functionName:i,containsYield:d,functionDeclaration:_,part:g}}(t,d,_):void 0;if(s=_,E&&f.push(E.functionDeclaration),T&&f.push(T.functionDeclaration),function(e,n,t){var r;if(n.argumentsName&&(t?t.argumentsName=n.argumentsName:(r||(r=[])).push(u.createVariableDeclaration(n.argumentsName,void 0,void 0,u.createIdentifier("arguments")))),n.thisName&&(t?t.thisName=n.thisName:(r||(r=[])).push(u.createVariableDeclaration(n.thisName,void 0,void 0,u.createIdentifier("this")))),n.hoistedLocalVariables)if(t)t.hoistedLocalVariables=n.hoistedLocalVariables;else{r||(r=[]);for(var i=0,a=n.hoistedLocalVariables;i<a.length;i++){var o=a[i];r.push(u.createVariableDeclaration(o))}}if(n.loopOutParameters.length){r||(r=[]);for(var s=0,c=n.loopOutParameters;s<c.length;s++){var l=c[s];r.push(u.createVariableDeclaration(l.outParamName))}}n.conditionVariable&&(r||(r=[]),r.push(u.createVariableDeclaration(n.conditionVariable,void 0,void 0,u.createFalse()))),r&&e.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(r)))}(f,d,_),E&&f.push((y=E.functionName,h=E.containsYield,v=u.createCallExpression(y,void 0,[]),b=h?u.createYieldExpression(u.createToken(41),e.setEmitFlags(v,8388608)):v,u.createExpressionStatement(b))),T)if(o)g=o(t,r,T.part,i);else{var S=ge(t,E,u.createBlock(T.part,!0));g=u.restoreEnclosingLabel(S,r,s&&ee)}else{var x=ge(t,E,e.visitNode(t.statement,L,e.isStatement,u.liftToBlock));g=u.restoreEnclosingLabel(x,r,s&&ee)}return f.push(g),f}(i,o,l,c);return T(l,0,0),d}function te(e,n){return ne(0,1280,e,n)}function re(e,n){return ne(5056,3328,e,n)}function ie(e,n){return ne(3008,5376,e,n)}function ae(e,n){return ne(3008,5376,e,n,g.downlevelIteration?le:ce)}function oe(t,r,i){var a=[],o=t.initializer;if(e.isVariableDeclarationList(o)){3&t.initializer.flags&&Oe();var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var c=e.flattenDestructuringBinding(s,L,n,0,r),l=e.setTextRange(u.createVariableDeclarationList(c),t.initializer);e.setOriginalNode(l,t.initializer),e.setSourceMapRange(l,e.createRange(c[0].pos,e.last(c).end)),a.push(u.createVariableStatement(void 0,l))}else a.push(e.setTextRange(u.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(s?s.name:u.createTempVariable(void 0),void 0,void 0,r)]),e.moveRangePos(o,-1)),o)),e.moveRangeEnd(o,-1)))}else{var d=u.createAssignment(o,r);e.isDestructuringAssignment(d)?a.push(u.createExpressionStatement(Y(d,!0))):(e.setTextRangeEnd(d,o.end),a.push(e.setTextRange(u.createExpressionStatement(e.visitNode(d,L,e.isExpression)),e.moveRangeEnd(o,-1))))}if(i)return se(e.addRange(a,i));var p=e.visitNode(t.statement,L,e.isStatement,u.liftToBlock);return e.isBlock(p)?u.updateBlock(p,e.setTextRange(u.createNodeArray(e.concatenate(a,p.statements)),p.statements)):(a.push(p),se(a))}function se(n){return e.setEmitFlags(u.createBlock(u.createNodeArray(n),!0),432)}function ce(n,t,r){var i=e.visitNode(n.expression,L,e.isExpression),a=u.createLoopVariable(),o=e.isIdentifier(i)?u.getGeneratedNameForNode(i):u.createTempVariable(void 0);e.setEmitFlags(i,48|e.getEmitFlags(i));var c=e.setTextRange(u.createForStatement(e.setEmitFlags(e.setTextRange(u.createVariableDeclarationList([e.setTextRange(u.createVariableDeclaration(a,void 0,void 0,u.createNumericLiteral(0)),e.moveRangePos(n.expression,-1)),e.setTextRange(u.createVariableDeclaration(o,void 0,void 0,i),n.expression)]),n.expression),2097152),e.setTextRange(u.createLessThan(a,u.createPropertyAccessExpression(o,"length")),n.expression),e.setTextRange(u.createPostfixIncrement(a),n.expression),oe(n,u.createElementAccessExpression(o,a),r)),n);return e.setEmitFlags(c,256),e.setTextRange(c,n),u.restoreEnclosingLabel(c,t,s&&ee)}function le(n,t,r,i){var a=e.visitNode(n.expression,L,e.isExpression),o=e.isIdentifier(a)?u.getGeneratedNameForNode(a):u.createTempVariable(void 0),c=e.isIdentifier(a)?u.getGeneratedNameForNode(o):u.createTempVariable(void 0),l=u.createUniqueName("e"),p=u.getGeneratedNameForNode(l),f=u.createTempVariable(void 0),m=e.setTextRange(d().createValuesHelper(a),n.expression),g=u.createCallExpression(u.createPropertyAccessExpression(o,"next"),void 0,[]);_(l),_(f);var y=1024&i?u.inlineExpressions([u.createAssignment(l,u.createVoidZero()),m]):m,h=e.setEmitFlags(e.setTextRange(u.createForStatement(e.setEmitFlags(e.setTextRange(u.createVariableDeclarationList([e.setTextRange(u.createVariableDeclaration(o,void 0,void 0,y),n.expression),u.createVariableDeclaration(c,void 0,void 0,g)]),n.expression),2097152),u.createLogicalNot(u.createPropertyAccessExpression(c,"done")),u.createAssignment(c,g),oe(n,u.createPropertyAccessExpression(c,"value"),r)),n),256);return u.createTryStatement(u.createBlock([u.restoreEnclosingLabel(h,t,s&&ee)]),u.createCatchClause(u.createVariableDeclaration(p),e.setEmitFlags(u.createBlock([u.createExpressionStatement(u.createAssignment(l,u.createObjectLiteralExpression([u.createPropertyAssignment("error",p)])))]),1)),u.createBlock([u.createTryStatement(u.createBlock([e.setEmitFlags(u.createIfStatement(u.createLogicalAnd(u.createLogicalAnd(c,u.createLogicalNot(u.createPropertyAccessExpression(c,"done"))),u.createAssignment(f,u.createPropertyAccessExpression(o,"return"))),u.createExpressionStatement(u.createFunctionCallCall(f,o,[]))),1)]),void 0,e.setEmitFlags(u.createBlock([e.setEmitFlags(u.createIfStatement(l,u.createThrowStatement(u.createPropertyAccessExpression(l,"error"))),1)]),1))]))}function ue(e){return 0!=(131072&y.getNodeCheckFlags(e))}function de(n){return e.isForStatement(n)&&!!n.initializer&&ue(n.initializer)}function pe(n){return e.isForStatement(n)&&!!n.condition&&ue(n.condition)}function fe(e){return me(e)||de(e)}function me(e){return 0!=(65536&y.getNodeCheckFlags(e))}function _e(n,t){n.hoistedLocalVariables||(n.hoistedLocalVariables=[]),function t(r){if(79===r.kind)n.hoistedLocalVariables.push(r);else for(var i=0,a=r.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||t(o.name)}}(t.name)}function ge(n,t,r){switch(n.kind){case 240:return function(n,t,r){var i=n.condition&&ue(n.condition),a=i||n.incrementor&&ue(n.incrementor);return u.updateForStatement(n,e.visitNode(t?t.part:n.initializer,D,e.isForInitializer),e.visitNode(i?void 0:n.condition,L,e.isExpression),e.visitNode(a?void 0:n.incrementor,D,e.isExpression),r)}(n,t,r);case 241:return function(n,t){return u.updateForInStatement(n,e.visitNode(n.initializer,L,e.isForInitializer),e.visitNode(n.expression,L,e.isExpression),t)}(n,r);case 242:return function(n,t){return u.updateForOfStatement(n,void 0,e.visitNode(n.initializer,L,e.isForInitializer),e.visitNode(n.expression,L,e.isExpression),t)}(n,r);case 238:return function(n,t){return u.updateDoStatement(n,t,e.visitNode(n.expression,L,e.isExpression))}(n,r);case 239:return function(n,t){return u.updateWhileStatement(n,e.visitNode(n.expression,L,e.isExpression),t)}(n,r);default:return e.Debug.failBadSyntaxKind(n,"IterationStatement expected")}}function ye(e){return u.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function he(e,n){var t=0===n?e.outParamName:e.originalName,r=0===n?e.originalName:e.outParamName;return u.createBinaryExpression(r,63,t)}function ve(e,n,t,r){for(var i=0,a=e;i<a.length;i++){var o=a[i];o.flags&n&&r.push(u.createExpressionStatement(he(o,t)))}}function be(n,t,r,i){t?(n.labeledNonLocalBreaks||(n.labeledNonLocalBreaks=new e.Map),n.labeledNonLocalBreaks.set(r,i)):(n.labeledNonLocalContinues||(n.labeledNonLocalContinues=new e.Map),n.labeledNonLocalContinues.set(r,i))}function Ee(e,n,t,r,i){e&&e.forEach((function(e,a){var o=[];if(!r||r.labels&&r.labels.get(a)){var s=u.createIdentifier(a);o.push(n?u.createBreakStatement(s):u.createContinueStatement(s))}else be(r,n,a,e),o.push(u.createReturnStatement(t));i.push(u.createCaseClause(u.createStringLiteral(e),o))}))}function Te(n,t,r,i,a){var o=t.name;if(e.isBindingPattern(o))for(var s=0,c=o.elements;s<c.length;s++){var l=c[s];e.isOmittedExpression(l)||Te(n,l,r,i,a)}else{r.push(u.createParameterDeclaration(void 0,void 0,void 0,o));var d=y.getNodeCheckFlags(t);if(4194304&d||a){var p=u.createUniqueName("out_"+e.idText(o)),f=0;4194304&d&&(f|=1),e.isForStatement(n)&&n.initializer&&y.isBindingCapturedByNode(n.initializer,t)&&(f|=2),i.push({flags:f,originalName:o,outParamName:p})}}}function Se(n,t,r){var i=u.createAssignment(e.createMemberAccessForPropertyName(u,t,e.visitNode(n.name,L,e.isPropertyName)),e.visitNode(n.initializer,L,e.isExpression));return e.setTextRange(i,n),r&&e.startOnNewLine(i),i}function xe(n,t,r){var i=u.createAssignment(e.createMemberAccessForPropertyName(u,t,e.visitNode(n.name,L,e.isPropertyName)),u.cloneNode(n.name));return e.setTextRange(i,n),r&&e.startOnNewLine(i),i}function Le(n,t,r,i){var a=u.createAssignment(e.createMemberAccessForPropertyName(u,t,e.visitNode(n.name,L,e.isPropertyName)),q(n,n,void 0,r));return e.setTextRange(a,n),i&&e.startOnNewLine(a),a}function De(t,r){if(16384&t.transformFlags||106===t.expression.kind||e.isSuperProperty(e.skipOuterExpressions(t.expression))){var i=u.createCallBinding(t.expression,_),a=i.target,o=i.thisArg;106===t.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=16384&t.transformFlags?u.createFunctionApplyCall(e.visitNode(a,C,e.isExpression),106===t.expression.kind?o:e.visitNode(o,L,e.isExpression),Ae(t.arguments,!0,!1,!1)):e.setTextRange(u.createFunctionCallCall(e.visitNode(a,C,e.isExpression),106===t.expression.kind?o:e.visitNode(o,L,e.isExpression),e.visitNodes(t.arguments,L,e.isExpression)),t),106===t.expression.kind){var c=u.createLogicalOr(s,P());s=r?u.createAssignment(u.createUniqueName("_this",48),c):c}return e.setOriginalNode(s,t)}return e.visitEachChild(t,L,n)}function Ae(n,t,r,i){var a=n.length,o=e.flatten(e.spanMap(n,Ce,(function(e,n,t,o){return n(e,r,i&&o===a)})));if(1===o.length){var s=o[0];if(t&&!g.downlevelIteration||e.isPackedArrayLiteral(s.expression)||e.isCallToHelper(s.expression,"___spreadArray"))return s.expression}for(var c=d(),l=0!==o[0].kind,p=l?u.createArrayLiteralExpression():o[0].expression,f=l?0:1;f<o.length;f++){var m=o[f];p=c.createSpreadArrayHelper(p,m.expression,1===m.kind&&!t)}return p}function Ce(n){return e.isSpreadElement(n)?Ie:ke}function Ie(n){return e.map(n,Ne)}function Ne(n){var t=e.visitNode(n.expression,L,e.isExpression),r=e.isCallToHelper(t,"___read"),i=r||e.isPackedArrayLiteral(t)?2:1;return!g.downlevelIteration||1!==i||e.isArrayLiteralExpression(t)||r||(t=d().createReadHelper(t,void 0),i=2),c(i,t)}function ke(n,t,r){return c(0,u.createArrayLiteralExpression(e.visitNodes(u.createNodeArray(n,r),L,e.isExpression),t))}function Re(e){return 8&a&&!e?u.createPropertyAccessExpression(u.createUniqueName("_super",48),"prototype"):u.createUniqueName("_super",48)}function Oe(){0==(2&l)&&(l|=2,n.enableSubstitution(79))}function Pe(n,t){return e.isStatic(t)?u.getInternalName(n):u.createPropertyAccessExpression(u.getInternalName(n),"prototype")}}}(u||(u={})),function(e){e.transformES5=function(n){var t,r,i=n.factory,a=n.getCompilerOptions();1!==a.jsx&&3!==a.jsx||(t=n.onEmitNode,n.onEmitNode=function(n,i,a){switch(i.kind){case 278:case 279:case 277:var o=i.tagName;r[e.getOriginalNodeId(o)]=!0}t(n,i,a)},n.enableEmitNotification(278),n.enableEmitNotification(279),n.enableEmitNotification(277),r=[]);var o=n.onSubstituteNode;return n.onSubstituteNode=function(n,t){return t.id&&r&&r[t.id]?o(n,t):(t=o(n,t),e.isPropertyAccessExpression(t)?function(n){if(e.isPrivateIdentifier(n.name))return n;var t=s(n.name);return t?e.setTextRange(i.createElementAccessExpression(n.expression,t),n):n}(t):e.isPropertyAssignment(t)?function(n){var t=e.isIdentifier(n.name)&&s(n.name);return t?i.updatePropertyAssignment(n,t,n.initializer):n}(t):t)},n.enableSubstitution(204),n.enableSubstitution(291),e.chainBundle(n,(function(e){return e}));function s(n){var t=n.originalKeywordKind||(e.nodeIsSynthesized(n)?e.stringToToken(e.idText(n)):void 0);if(void 0!==t&&t>=81&&t<=116)return e.setTextRange(i.createStringLiteralFromNode(n),n)}}}(u||(u={})),function(e){var n,t,r,a,o;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(n||(n={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(t||(t={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(r||(r={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(a||(a={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(o||(o={})),e.transformGenerators=function(n){var t,r,a,o,s,c,l,u,d,p,f=n.factory,m=n.getEmitHelperFactory,_=n.resumeLexicalEnvironment,g=n.endLexicalEnvironment,y=n.hoistFunctionDeclaration,h=n.hoistVariableDeclaration,v=n.getCompilerOptions(),b=e.getEmitScriptTarget(v),E=n.getEmitResolver(),T=n.onSubstituteNode;n.onSubstituteNode=function(n,i){return i=T(n,i),1===n?function(n){return e.isIdentifier(n)?function(n){if(!e.isGeneratedIdentifier(n)&&t&&t.has(e.idText(n))){var i=e.getOriginalNode(n);if(e.isIdentifier(i)&&i.parent){var a=E.getReferencedValueDeclaration(i);if(a){var o=r[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(f.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,n),e.setCommentRange(s,n),s}}}}return n}(n):n}(i):i};var S,x,L,D,A,C,I,N,k,R,O,P,w=1,M=0,F=0;return e.chainBundle(n,(function(t){if(t.isDeclarationFile||0==(1024&t.transformFlags))return t;var r=e.visitEachChild(t,G,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}));function G(t){var r=t.transformFlags;return o?function(t){switch(t.kind){case 238:case 239:return function(t){return o?(oe(),t=e.visitEachChild(t,G,n),ce(),t):e.visitEachChild(t,G,n)}(t);case 247:return function(t){return o&&te({kind:2,isScript:!0,breakLabel:-1}),t=e.visitEachChild(t,G,n),o&&le(),t}(t);case 248:return function(t){return o&&te({kind:4,isScript:!0,labelText:e.idText(t.label),breakLabel:-1}),t=e.visitEachChild(t,G,n),o&&ue(),t}(t);default:return B(t)}}(t):a?B(t):e.isFunctionLikeDeclaration(t)&&t.asteriskToken?function(n){switch(n.kind){case 254:return U(n);case 211:return V(n);default:return e.Debug.failBadSyntaxKind(n)}}(t):1024&r?e.visitEachChild(t,G,n):t}function B(t){switch(t.kind){case 254:return U(t);case 211:return V(t);case 170:case 171:return function(t){var r=a,i=o;return a=!1,o=!1,t=e.visitEachChild(t,G,n),a=r,o=i,t}(t);case 235:return function(n){if(524288&n.transformFlags)q(n.declarationList);else{if(1048576&e.getEmitFlags(n))return n;for(var t=0,r=n.declarationList.declarations;t<r.length;t++){var i=r[t];h(i.name)}var a=e.getInitializedVariables(n.declarationList);if(0!==a.length)return e.setSourceMapRange(f.createExpressionStatement(f.inlineExpressions(e.map(a,X))),n)}}(t);case 240:return function(t){o&&oe();var r=t.initializer;if(r&&e.isVariableDeclarationList(r)){for(var i=0,a=r.declarations;i<a.length;i++){var s=a[i];h(s.name)}var c=e.getInitializedVariables(r);t=f.updateForStatement(t,c.length>0?f.inlineExpressions(e.map(c,X)):void 0,e.visitNode(t.condition,G,e.isExpression),e.visitNode(t.incrementor,G,e.isExpression),e.visitIterationBody(t.statement,G,n))}else t=e.visitEachChild(t,G,n);return o&&ce(),t}(t);case 241:return function(t){o&&oe();var r=t.initializer;if(e.isVariableDeclarationList(r)){for(var i=0,a=r.declarations;i<a.length;i++){var s=a[i];h(s.name)}t=f.updateForInStatement(t,r.declarations[0].name,e.visitNode(t.expression,G,e.isExpression),e.visitNode(t.statement,G,e.isStatement,f.liftToBlock))}else t=e.visitEachChild(t,G,n);return o&&ce(),t}(t);case 244:return function(t){if(o){var r=_e(t.label&&e.idText(t.label));if(r>0)return ve(r,t)}return e.visitEachChild(t,G,n)}(t);case 243:return function(t){if(o){var r=ge(t.label&&e.idText(t.label));if(r>0)return ve(r,t)}return e.visitEachChild(t,G,n)}(t);case 245:return function(n){return t=e.visitNode(n.expression,G,e.isExpression),r=n,e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression(t?[he(2),t]:[he(2)])),r);var t,r}(t);default:return 524288&t.transformFlags?function(t){switch(t.kind){case 219:return function(t){var r=e.getExpressionAssociativity(t);switch(r){case 0:return function(t){return Y(t.right)?e.isLogicalOperator(t.operatorToken.kind)?function(n){var t=ee(),r=$();return Te(r,e.visitNode(n.left,G,e.isExpression),n.left),55===n.operatorToken.kind?Le(t,r,n.left):xe(t,r,n.left),Te(r,e.visitNode(n.right,G,e.isExpression),n.right),ne(t),r}(t):27===t.operatorToken.kind?K(t):f.updateBinaryExpression(t,Z(e.visitNode(t.left,G,e.isExpression)),t.operatorToken,e.visitNode(t.right,G,e.isExpression)):e.visitEachChild(t,G,n)}(t);case 1:return function(t){var r=t.left,i=t.right;if(Y(i)){var a=void 0;switch(r.kind){case 204:a=f.updatePropertyAccessExpression(r,Z(e.visitNode(r.expression,G,e.isLeftHandSideExpression)),r.name);break;case 205:a=f.updateElementAccessExpression(r,Z(e.visitNode(r.expression,G,e.isLeftHandSideExpression)),Z(e.visitNode(r.argumentExpression,G,e.isExpression)));break;default:a=e.visitNode(r,G,e.isExpression)}var o=t.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(f.createAssignment(a,e.setTextRange(f.createBinaryExpression(Z(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,G,e.isExpression)),t)),t):f.updateBinaryExpression(t,a,t.operatorToken,e.visitNode(i,G,e.isExpression))}return e.visitEachChild(t,G,n)}(t);default:return e.Debug.assertNever(r)}}(t);case 346:return function(n){for(var t=[],r=0,i=n.elements;r<i.length;r++){var a=i[r];e.isBinaryExpression(a)&&27===a.operatorToken.kind?t.push(K(a)):(Y(a)&&t.length>0&&(De(1,[f.createExpressionStatement(f.inlineExpressions(t))]),t=[]),t.push(e.visitNode(a,G,e.isExpression)))}return f.inlineExpressions(t)}(t);case 220:return function(t){if(Y(t.whenTrue)||Y(t.whenFalse)){var r=ee(),i=ee(),a=$();return Le(r,e.visitNode(t.condition,G,e.isExpression),t.condition),Te(a,e.visitNode(t.whenTrue,G,e.isExpression),t.whenTrue),Se(i),ne(r),Te(a,e.visitNode(t.whenFalse,G,e.isExpression),t.whenFalse),ne(i),a}return e.visitEachChild(t,G,n)}(t);case 222:return function(n){var t,r=ee(),i=e.visitNode(n.expression,G,e.isExpression);return n.asteriskToken?function(e,n){De(7,[e],n)}(0==(8388608&e.getEmitFlags(n.expression))?e.setTextRange(m().createValuesHelper(i),n):i,n):function(e,n){De(6,[e],n)}(i,n),ne(r),t=n,e.setTextRange(f.createCallExpression(f.createPropertyAccessExpression(D,"sent"),void 0,[]),t)}(t);case 202:return function(e){return H(e.elements,void 0,void 0,e.multiLine)}(t);case 203:return function(n){var t=n.properties,r=n.multiLine,i=Q(t),a=$();Te(a,f.createObjectLiteralExpression(e.visitNodes(t,G,e.isObjectLiteralElementLike,0,i),r));var o=e.reduceLeft(t,(function(t,i){Y(i)&&t.length>0&&(Ee(f.createExpressionStatement(f.inlineExpressions(t))),t=[]);var o=e.createExpressionForObjectLiteralElementLike(f,n,i,a),s=e.visitNode(o,G,e.isExpression);return s&&(r&&e.startOnNewLine(s),t.push(s)),t}),[],i);return o.push(r?e.startOnNewLine(e.setParent(e.setTextRange(f.cloneNode(a),a),a.parent)):a),f.inlineExpressions(o)}(t);case 205:return function(t){return Y(t.argumentExpression)?f.updateElementAccessExpression(t,Z(e.visitNode(t.expression,G,e.isLeftHandSideExpression)),e.visitNode(t.argumentExpression,G,e.isExpression)):e.visitEachChild(t,G,n)}(t);case 206:return function(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,Y)){var r=f.createCallBinding(t.expression,h,b,!0),i=r.target,a=r.thisArg;return e.setOriginalNode(e.setTextRange(f.createFunctionApplyCall(Z(e.visitNode(i,G,e.isLeftHandSideExpression)),a,H(t.arguments)),t),t)}return e.visitEachChild(t,G,n)}(t);case 207:return function(t){if(e.forEach(t.arguments,Y)){var r=f.createCallBinding(f.createPropertyAccessExpression(t.expression,"bind"),h),i=r.target,a=r.thisArg;return e.setOriginalNode(e.setTextRange(f.createNewExpression(f.createFunctionApplyCall(Z(e.visitNode(i,G,e.isExpression)),a,H(t.arguments,f.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,G,n)}(t);default:return e.visitEachChild(t,G,n)}}(t):2098176&t.transformFlags?e.visitEachChild(t,G,n):t}}function U(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(f.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,G,n),void 0,j(t.body)),t),t);else{var r=a,i=o;a=!1,o=!1,t=e.visitEachChild(t,G,n),a=r,o=i}return a?void y(t):t}function V(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(f.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,G,n),void 0,j(t.body)),t),t);else{var r=a,i=o;a=!1,o=!1,t=e.visitEachChild(t,G,n),a=r,o=i}return t}function j(n){var t=[],r=a,i=o,m=s,y=c,h=l,v=u,b=d,E=p,T=w,A=S,C=x,I=L,N=D;a=!0,o=!1,s=void 0,c=void 0,l=void 0,u=void 0,d=void 0,p=void 0,w=1,S=void 0,x=void 0,L=void 0,D=f.createTempVariable(void 0),_();var k=f.copyPrologue(n.statements,t,!1,G);W(n.statements,k);var R=Ae();return e.insertStatementsAfterStandardPrologue(t,g()),t.push(f.createReturnStatement(R)),a=r,o=i,s=m,c=y,l=h,u=v,d=b,p=E,w=T,S=A,x=C,L=I,D=N,e.setTextRange(f.createBlock(t,n.multiLine),n)}function K(n){var t=[];return r(n.left),r(n.right),f.inlineExpressions(t);function r(n){e.isBinaryExpression(n)&&27===n.operatorToken.kind?(r(n.left),r(n.right)):(Y(n)&&t.length>0&&(De(1,[f.createExpressionStatement(f.inlineExpressions(t))]),t=[]),t.push(e.visitNode(n,G,e.isExpression)))}}function H(n,t,r,a){var o,s=Q(n);if(s>0){o=$();var c=e.visitNodes(n,G,e.isExpression,0,s);Te(o,f.createArrayLiteralExpression(t?i([t],c,!0):c)),t=void 0}var l=e.reduceLeft(n,(function(n,r){if(Y(r)&&n.length>0){var s=void 0!==o;o||(o=$()),Te(o,s?f.createArrayConcatCall(o,[f.createArrayLiteralExpression(n,a)]):f.createArrayLiteralExpression(t?i([t],n,!0):n,a)),t=void 0,n=[]}return n.push(e.visitNode(r,G,e.isExpression)),n}),[],s);return o?f.createArrayConcatCall(o,[f.createArrayLiteralExpression(l,a)]):e.setTextRange(f.createArrayLiteralExpression(t?i([t],l,!0):l,a),r)}function W(e,n){void 0===n&&(n=0);for(var t=e.length,r=n;r<t;r++)J(e[r])}function z(n){e.isBlock(n)?W(n.statements):J(n)}function J(i){var a=o;o||(o=Y(i)),function(i){switch(i.kind){case 233:return function(n){Y(n)?W(n.statements):Ee(e.visitNode(n,G,e.isStatement))}(i);case 236:return function(n){Ee(e.visitNode(n,G,e.isStatement))}(i);case 237:return function(n){if(Y(n))if(Y(n.thenStatement)||Y(n.elseStatement)){var t=ee(),r=n.elseStatement?ee():void 0;Le(n.elseStatement?r:t,e.visitNode(n.expression,G,e.isExpression),n.expression),z(n.thenStatement),n.elseStatement&&(Se(t),ne(r),z(n.elseStatement)),ne(t)}else Ee(e.visitNode(n,G,e.isStatement));else Ee(e.visitNode(n,G,e.isStatement))}(i);case 238:return function(n){if(Y(n)){var t=ee(),r=ee();se(t),ne(r),z(n.statement),ne(t),xe(r,e.visitNode(n.expression,G,e.isExpression)),ce()}else Ee(e.visitNode(n,G,e.isStatement))}(i);case 239:return function(n){if(Y(n)){var t=ee(),r=se(t);ne(t),Le(r,e.visitNode(n.expression,G,e.isExpression)),z(n.statement),Se(t),ce()}else Ee(e.visitNode(n,G,e.isStatement))}(i);case 240:return function(n){if(Y(n)){var t=ee(),r=ee(),i=se(r);if(n.initializer){var a=n.initializer;e.isVariableDeclarationList(a)?q(a):Ee(e.setTextRange(f.createExpressionStatement(e.visitNode(a,G,e.isExpression)),a))}ne(t),n.condition&&Le(i,e.visitNode(n.condition,G,e.isExpression)),z(n.statement),ne(r),n.incrementor&&Ee(e.setTextRange(f.createExpressionStatement(e.visitNode(n.incrementor,G,e.isExpression)),n.incrementor)),Se(t),ce()}else Ee(e.visitNode(n,G,e.isStatement))}(i);case 241:return function(n){if(Y(n)){var t=$(),r=$(),i=f.createLoopVariable(),a=n.initializer;h(i),Te(t,f.createArrayLiteralExpression()),Ee(f.createForInStatement(r,e.visitNode(n.expression,G,e.isExpression),f.createExpressionStatement(f.createCallExpression(f.createPropertyAccessExpression(t,"push"),void 0,[r])))),Te(i,f.createNumericLiteral(0));var o=ee(),s=ee(),c=se(s);ne(o),Le(c,f.createLessThan(i,f.createPropertyAccessExpression(t,"length")));var l=void 0;if(e.isVariableDeclarationList(a)){for(var u=0,d=a.declarations;u<d.length;u++){var p=d[u];h(p.name)}l=f.cloneNode(a.declarations[0].name)}else l=e.visitNode(a,G,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(l));Te(l,f.createElementAccessExpression(t,i)),z(n.statement),ne(s),Ee(f.createExpressionStatement(f.createPostfixIncrement(i))),Se(o),ce()}else Ee(e.visitNode(n,G,e.isStatement))}(i);case 243:return function(n){var t=ge(n.label?e.idText(n.label):void 0);t>0?Se(t,n):Ee(n)}(i);case 244:return function(n){var t=_e(n.label?e.idText(n.label):void 0);t>0?Se(t,n):Ee(n)}(i);case 245:return function(n){De(8,[e.visitNode(n.expression,G,e.isExpression)],n)}(i);case 246:return function(n){var t,r,i;Y(n)?(t=Z(e.visitNode(n.expression,G,e.isExpression)),r=ee(),i=ee(),ne(r),te({kind:1,expression:t,startLabel:r,endLabel:i}),z(n.statement),e.Debug.assert(1===ae()),ne(re().endLabel)):Ee(e.visitNode(n,G,e.isStatement))}(i);case 247:return function(n){if(Y(n.caseBlock)){for(var t=n.caseBlock,r=t.clauses.length,i=(te({kind:2,isScript:!1,breakLabel:m=ee()}),m),a=Z(e.visitNode(n.expression,G,e.isExpression)),o=[],s=-1,c=0;c<r;c++){var l=t.clauses[c];o.push(ee()),288===l.kind&&-1===s&&(s=c)}for(var u=0,d=[];u<r;){var p=0;for(c=u;c<r;c++)if(287===(l=t.clauses[c]).kind){if(Y(l.expression)&&d.length>0)break;d.push(f.createCaseClause(e.visitNode(l.expression,G,e.isExpression),[ve(o[c],l.expression)]))}else p++;d.length&&(Ee(f.createSwitchStatement(a,f.createCaseBlock(d))),u+=d.length,d=[]),p>0&&(u+=p,p=0)}for(Se(s>=0?o[s]:i),c=0;c<r;c++)ne(o[c]),W(t.clauses[c].statements);le()}else Ee(e.visitNode(n,G,e.isStatement));var m}(i);case 248:return function(n){Y(n)?(te({kind:4,isScript:!1,labelText:e.idText(n.label),breakLabel:ee()}),z(n.statement),ue()):Ee(e.visitNode(n,G,e.isStatement))}(i);case 249:return function(n){var t;De(9,[e.visitNode(null!==(t=n.expression)&&void 0!==t?t:f.createVoidZero(),G,e.isExpression)],n)}(i);case 250:return function(i){var a,o;Y(i)?(a=ee(),o=ee(),ne(a),te({kind:0,state:0,startLabel:a,endLabel:o}),be(),z(i.tryBlock),i.catchClause&&(function(i){var a;if(e.Debug.assert(0===ae()),e.isGeneratedIdentifier(i.name))a=i.name,h(i.name);else{var o=e.idText(i.name);a=$(o),t||(t=new e.Map,r=[],n.enableSubstitution(79)),t.set(o,!0),r[e.getOriginalNodeId(i)]=a}var s=ie();e.Debug.assert(s.state<1),Se(s.endLabel);var c=ee();ne(c),s.state=1,s.catchVariable=a,s.catchLabel=c,Te(a,f.createCallExpression(f.createPropertyAccessExpression(D,"sent"),void 0,[])),be()}(i.catchClause.variableDeclaration),z(i.catchClause.block)),i.finallyBlock&&(function(){e.Debug.assert(0===ae());var n=ie();e.Debug.assert(n.state<2),Se(n.endLabel);var t=ee();ne(t),n.state=2,n.finallyLabel=t}(),z(i.finallyBlock)),function(){e.Debug.assert(0===ae());var n=re();n.state<2?Se(n.endLabel):De(10),ne(n.endLabel),be(),n.state=3}()):Ee(e.visitEachChild(i,G,n))}(i);default:Ee(e.visitNode(i,G,e.isStatement))}}(i),o=a}function q(n){for(var t=0,r=n.declarations;t<r.length;t++){var i=r[t],a=f.cloneNode(i.name);e.setCommentRange(a,i.name),h(a)}for(var o=e.getInitializedVariables(n),s=o.length,c=0,l=[];c<s;){for(var u=c;u<s&&!(Y((i=o[u]).initializer)&&l.length>0);u++)l.push(X(i));l.length&&(Ee(f.createExpressionStatement(f.inlineExpressions(l))),c+=l.length,l=[])}}function X(n){return e.setSourceMapRange(f.createAssignment(e.setSourceMapRange(f.cloneNode(n.name),n.name),e.visitNode(n.initializer,G,e.isExpression)),n)}function Y(e){return!!e&&0!=(524288&e.transformFlags)}function Q(e){for(var n=e.length,t=0;t<n;t++)if(Y(e[t]))return t;return-1}function Z(n){if(e.isGeneratedIdentifier(n)||4096&e.getEmitFlags(n))return n;var t=f.createTempVariable(h);return Te(t,n,n),t}function $(e){var n=e?f.createUniqueName(e):f.createTempVariable(void 0);return h(n),n}function ee(){d||(d=[]);var e=w;return w++,d[e]=-1,e}function ne(n){e.Debug.assert(void 0!==d,"No labels were defined."),d[n]=S?S.length:0}function te(e){s||(s=[],l=[],c=[],u=[]);var n=l.length;return l[n]=0,c[n]=S?S.length:0,s[n]=e,u.push(e),n}function re(){var n=ie();if(void 0===n)return e.Debug.fail("beginBlock was never called.");var t=l.length;return l[t]=1,c[t]=S?S.length:0,s[t]=n,u.pop(),n}function ie(){return e.lastOrUndefined(u)}function ae(){var e=ie();return e&&e.kind}function oe(){te({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function se(e){var n=ee();return te({kind:3,isScript:!1,breakLabel:n,continueLabel:e}),n}function ce(){e.Debug.assert(3===ae());var n=re(),t=n.breakLabel;n.isScript||ne(t)}function le(){e.Debug.assert(2===ae());var n=re(),t=n.breakLabel;n.isScript||ne(t)}function ue(){e.Debug.assert(4===ae());var n=re();n.isScript||ne(n.breakLabel)}function de(e){return 2===e.kind||3===e.kind}function pe(e){return 4===e.kind}function fe(e){return 3===e.kind}function me(e,n){for(var t=n;t>=0;t--){var r=u[t];if(!pe(r))break;if(r.labelText===e)return!0}return!1}function _e(e){if(u)if(e)for(var n=u.length-1;n>=0;n--){if(pe(t=u[n])&&t.labelText===e)return t.breakLabel;if(de(t)&&me(e,n-1))return t.breakLabel}else for(n=u.length-1;n>=0;n--){var t;if(de(t=u[n]))return t.breakLabel}return 0}function ge(e){if(u)if(e){for(var n=u.length-1;n>=0;n--)if(fe(t=u[n])&&me(e,n-1))return t.continueLabel}else for(n=u.length-1;n>=0;n--){var t;if(fe(t=u[n]))return t.continueLabel}return 0}function ye(e){if(void 0!==e&&e>0){void 0===p&&(p=[]);var n=f.createNumericLiteral(-1);return void 0===p[e]?p[e]=[n]:p[e].push(n),n}return f.createOmittedExpression()}function he(n){var t=f.createNumericLiteral(n);return e.addSyntheticTrailingComment(t,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(n)),t}function ve(n,t){return e.Debug.assertLessThan(0,n,"Invalid label"),e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression([he(3),ye(n)])),t)}function be(){De(0)}function Ee(e){e?De(1,[e]):be()}function Te(e,n,t){De(2,[e,n],t)}function Se(e,n){De(3,[e],n)}function xe(e,n,t){De(4,[e,n],t)}function Le(e,n,t){De(5,[e,n],t)}function De(e,n,t){void 0===S&&(S=[],x=[],L=[]),void 0===d&&ne(ee());var r=S.length;S[r]=e,x[r]=n,L[r]=t}function Ae(){M=0,F=0,A=void 0,C=!1,I=!1,N=void 0,k=void 0,R=void 0,O=void 0,P=void 0;var n=function(){if(S){for(var n=0;n<S.length;n++)ke(n);Ce(S.length)}else Ce(0);if(N){var t=f.createPropertyAccessExpression(D,"label"),r=f.createSwitchStatement(t,f.createCaseBlock(N));return[e.startOnNewLine(r)]}return k||[]}();return m().createGeneratorHelper(e.setEmitFlags(f.createFunctionExpression(void 0,void 0,void 0,void 0,[f.createParameterDeclaration(void 0,void 0,void 0,D)],void 0,f.createBlock(n,n.length>0)),524288))}function Ce(e){(function(e){if(!I)return!0;if(!d||!p)return!1;for(var n=0;n<d.length;n++)if(d[n]===e&&p[n])return!0;return!1})(e)&&(Ne(e),P=void 0,Oe(void 0,void 0)),k&&N&&Ie(!1),function(){if(void 0!==p&&void 0!==A)for(var e=0;e<A.length;e++){var n=A[e];if(void 0!==n)for(var t=0,r=n;t<r.length;t++){var i=r[t],a=p[i];if(void 0!==a)for(var o=0,s=a;o<s.length;o++)s[o].text=String(e)}}}()}function Ie(e){if(N||(N=[]),k){if(P)for(var n=P.length-1;n>=0;n--){var t=P[n];k=[f.createWithStatement(t.expression,f.createBlock(k))]}if(O){var r=O.startLabel,i=O.catchLabel,a=O.finallyLabel,o=O.endLabel;k.unshift(f.createExpressionStatement(f.createCallExpression(f.createPropertyAccessExpression(f.createPropertyAccessExpression(D,"trys"),"push"),void 0,[f.createArrayLiteralExpression([ye(r),ye(i),ye(a),ye(o)])]))),O=void 0}e&&k.push(f.createExpressionStatement(f.createAssignment(f.createPropertyAccessExpression(D,"label"),f.createNumericLiteral(F+1))))}N.push(f.createCaseClause(f.createNumericLiteral(F),k||[])),k=void 0}function Ne(e){if(d)for(var n=0;n<d.length;n++)d[n]===e&&(k&&(Ie(!C),C=!1,I=!1,F++),void 0===A&&(A=[]),void 0===A[F]?A[F]=[n]:A[F].push(n))}function ke(n){if(Ne(n),function(e){if(s)for(;M<l.length&&c[M]<=e;M++){var n=s[M],t=l[M];switch(n.kind){case 0:0===t?(R||(R=[]),k||(k=[]),R.push(O),O=n):1===t&&(O=R.pop());break;case 1:0===t?(P||(P=[]),P.push(n)):1===t&&P.pop()}}}(n),!C){C=!1,I=!1;var t=S[n];if(0!==t){if(10===t)return C=!0,void Re(f.createReturnStatement(f.createArrayLiteralExpression([he(7)])));var r=x[n];if(1===t)return Re(r[0]);var i,a,o,u=L[n];switch(t){case 2:return i=r[0],a=r[1],o=u,void Re(e.setTextRange(f.createExpressionStatement(f.createAssignment(i,a)),o));case 3:return function(n,t){C=!0,Re(e.setEmitFlags(e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression([he(3),ye(n)])),t),384))}(r[0],u);case 4:return function(n,t,r){Re(e.setEmitFlags(f.createIfStatement(t,e.setEmitFlags(e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression([he(3),ye(n)])),r),384)),1))}(r[0],r[1],u);case 5:return function(n,t,r){Re(e.setEmitFlags(f.createIfStatement(f.createLogicalNot(t),e.setEmitFlags(e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression([he(3),ye(n)])),r),384)),1))}(r[0],r[1],u);case 6:return function(n,t){C=!0,Re(e.setEmitFlags(e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression(n?[he(4),n]:[he(4)])),t),384))}(r[0],u);case 7:return function(n,t){C=!0,Re(e.setEmitFlags(e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression([he(5),n])),t),384))}(r[0],u);case 8:return Oe(r[0],u);case 9:return function(n,t){C=!0,I=!0,Re(e.setTextRange(f.createThrowStatement(n),t))}(r[0],u)}}}}function Re(e){e&&(k?k.push(e):k=[e])}function Oe(n,t){C=!0,I=!0,Re(e.setEmitFlags(e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression(n?[he(2),n]:[he(2)])),t),384))}}}(u||(u={})),function(e){e.transformModule=function(t){var r=t.factory,a=t.getEmitHelperFactory,o=t.startLexicalEnvironment,s=t.endLexicalEnvironment,c=t.hoistVariableDeclaration,l=t.getCompilerOptions(),u=t.getEmitResolver(),d=t.getEmitHost(),p=e.getEmitScriptTarget(l),f=e.getEmitModuleKind(l),m=t.onSubstituteNode,_=t.onEmitNode;t.onSubstituteNode=function(n,t){return(t=m(n,t)).id&&E[t.id]?t:1===n?function(n){switch(n.kind){case 79:return Z(n);case 206:return function(n){if(e.isIdentifier(n.expression)){var t=Z(n.expression);if(E[e.getNodeId(t)]=!0,!e.isIdentifier(t))return e.addEmitFlags(r.updateCallExpression(n,t,void 0,n.arguments),536870912)}return n}(n);case 208:return function(n){if(e.isIdentifier(n.tag)){var t=Z(n.tag);if(E[e.getNodeId(t)]=!0,!e.isIdentifier(t))return e.addEmitFlags(r.updateTaggedTemplateExpression(n,t,void 0,n.template),536870912)}return n}(n);case 219:return function(n){if(e.isAssignmentOperator(n.operatorToken.kind)&&e.isIdentifier(n.left)&&!e.isGeneratedIdentifier(n.left)&&!e.isLocalName(n.left)&&!e.isDeclarationNameOfEnumOrNamespace(n.left)){var t=$(n.left);if(t){for(var r=n,i=0,a=t;i<a.length;i++){var o=a[i];E[e.getNodeId(r)]=!0,r=Y(o,r,n)}return r}}return n}(n)}return n}(t):e.isShorthandPropertyAssignment(t)?function(n){var t=n.name,i=Z(t);if(i!==t){if(n.objectAssignmentInitializer){var a=r.createAssignment(i,n.objectAssignmentInitializer);return e.setTextRange(r.createPropertyAssignment(t,a),n)}return e.setTextRange(r.createPropertyAssignment(t,i),n)}return n}(t):t},t.onEmitNode=function(n,t,r){300===t.kind?(g=t,y=v[e.getOriginalNodeId(g)],_(n,t,r),g=void 0,y=void 0):_(n,t,r)},t.enableSubstitution(206),t.enableSubstitution(208),t.enableSubstitution(79),t.enableSubstitution(219),t.enableSubstitution(292),t.enableEmitNotification(300);var g,y,h,v=[],b=[],E=[];return e.chainBundle(t,(function(n){if(n.isDeclarationFile||!(e.isEffectiveExternalModule(n,l)||4194304&n.transformFlags||e.isJsonSourceFile(n)&&e.hasJsonModuleEmitEnabled(l)&&e.outFile(l)))return n;g=n,y=e.collectExternalModuleInfo(t,n,u,l),v[e.getOriginalNodeId(n)]=y;var r=function(n){switch(n){case e.ModuleKind.AMD:return x;case e.ModuleKind.UMD:return L;default:return S}}(f),i=r(n);return g=void 0,y=void 0,h=!1,i}));function T(){return!(y.exportEquals||!e.isExternalModule(g))}function S(n){o();var i=[],a=e.getStrictOptionValue(l,"alwaysStrict")||!l.noImplicitUseStrict&&e.isExternalModule(g),c=r.copyPrologue(n.statements,i,a&&!e.isJsonSourceFile(n),N);if(T()&&e.append(i,X()),e.length(y.exportedNames))for(var u=0;u<y.exportedNames.length;u+=50)e.append(i,r.createExpressionStatement(e.reduceLeft(y.exportedNames.slice(u,u+50),(function(n,t){return r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(e.idText(t))),n)}),r.createVoidZero())));e.append(i,e.visitNode(y.externalHelpersImportDeclaration,N,e.isStatement)),e.addRange(i,e.visitNodes(n.statements,N,e.isStatement,c)),I(i,!1),e.insertStatementsAfterStandardPrologue(i,s());var d=r.updateSourceFile(n,e.setTextRange(r.createNodeArray(i),n.statements));return e.addEmitHelpers(d,t.readEmitHelpers()),d}function x(n){var a=r.createIdentifier("define"),o=e.tryGetModuleNameFromFile(r,n,d,l),s=e.isJsonSourceFile(n)&&n,c=D(n,!0),u=c.aliasedModuleNames,p=c.unaliasedModuleNames,f=c.importAliasNames,m=r.updateSourceFile(n,e.setTextRange(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(a,void 0,i(i([],o?[o]:[],!0),[r.createArrayLiteralExpression(s?e.emptyArray:i(i([r.createStringLiteral("require"),r.createStringLiteral("exports")],u,!0),p,!0)),s?s.statements.length?s.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,i([r.createParameterDeclaration(void 0,void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,void 0,"exports")],f,!0),void 0,C(n))],!1)))]),n.statements));return e.addEmitHelpers(m,t.readEmitHelpers()),m}function L(n){var a=D(n,!1),o=a.aliasedModuleNames,s=a.unaliasedModuleNames,c=a.importAliasNames,u=e.tryGetModuleNameFromFile(r,n,d,l),p=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),e.setEmitFlags(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,i(i([],u?[u]:[],!0),[r.createArrayLiteralExpression(i(i([r.createStringLiteral("require"),r.createStringLiteral("exports")],o,!0),s,!0)),r.createIdentifier("factory")],!1)))])))],!0),void 0)),f=r.updateSourceFile(n,e.setTextRange(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(p,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,i([r.createParameterDeclaration(void 0,void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,void 0,"exports")],c,!0),void 0,C(n))]))]),n.statements));return e.addEmitHelpers(f,t.readEmitHelpers()),f}function D(n,t){for(var i=[],a=[],o=[],s=0,c=n.amdDependencies;s<c.length;s++){var p=c[s];p.name?(i.push(r.createStringLiteral(p.path)),o.push(r.createParameterDeclaration(void 0,void 0,void 0,p.name))):a.push(r.createStringLiteral(p.path))}for(var f=0,m=y.externalImports;f<m.length;f++){var _=m[f],h=e.getExternalModuleNameLiteral(r,_,g,d,u,l),v=e.getLocalNameForExternalImport(r,_,g);h&&(t&&v?(e.setEmitFlags(v,4),i.push(h),o.push(r.createParameterDeclaration(void 0,void 0,void 0,v))):a.push(h))}return{aliasedModuleNames:i,unaliasedModuleNames:a,importAliasNames:o}}function A(n){if(!e.isImportEqualsDeclaration(n)&&!e.isExportDeclaration(n)&&e.getExternalModuleNameLiteral(r,n,g,d,u,l)){var t=e.getLocalNameForExternalImport(r,n,g),i=F(n,t);if(i!==t)return r.createExpressionStatement(r.createAssignment(t,i))}}function C(t){o();var i=[],a=r.copyPrologue(t.statements,i,!l.noImplicitUseStrict,N);T()&&e.append(i,X()),e.length(y.exportedNames)&&e.append(i,r.createExpressionStatement(e.reduceLeft(y.exportedNames,(function(n,t){return r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(e.idText(t))),n)}),r.createVoidZero()))),e.append(i,e.visitNode(y.externalHelpersImportDeclaration,N,e.isStatement)),f===e.ModuleKind.AMD&&e.addRange(i,e.mapDefined(y.externalImports,A)),e.addRange(i,e.visitNodes(t.statements,N,e.isStatement,a)),I(i,!0),e.insertStatementsAfterStandardPrologue(i,s());var c=r.createBlock(i,!0);return h&&e.addEmitHelper(c,n),c}function I(n,t){if(y.exportEquals){var i=e.visitNode(y.exportEquals.expression,R);if(i)if(t){var a=r.createReturnStatement(i);e.setTextRange(a,y.exportEquals),e.setEmitFlags(a,1920),n.push(a)}else a=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),i)),e.setTextRange(a,y.exportEquals),e.setEmitFlags(a,1536),n.push(a)}}function N(n){switch(n.kind){case 264:return function(n){var t,i=e.getNamespaceDeclarationNode(n);if(f!==e.ModuleKind.AMD){if(!n.importClause)return e.setOriginalNode(e.setTextRange(r.createExpressionStatement(G(n)),n),n);var a=[];i&&!e.isDefaultImport(n)?a.push(r.createVariableDeclaration(r.cloneNode(i.name),void 0,void 0,F(n,G(n)))):(a.push(r.createVariableDeclaration(r.getGeneratedNameForNode(n),void 0,void 0,F(n,G(n)))),i&&e.isDefaultImport(n)&&a.push(r.createVariableDeclaration(r.cloneNode(i.name),void 0,void 0,r.getGeneratedNameForNode(n)))),t=e.append(t,e.setOriginalNode(e.setTextRange(r.createVariableStatement(void 0,r.createVariableDeclarationList(a,p>=2?2:0)),n),n))}else i&&e.isDefaultImport(n)&&(t=e.append(t,r.createVariableStatement(void 0,r.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(r.createVariableDeclaration(r.cloneNode(i.name),void 0,void 0,r.getGeneratedNameForNode(n)),n),n)],p>=2?2:0))));if(V(n)){var o=e.getOriginalNodeId(n);b[o]=j(b[o],n)}else t=j(t,n);return e.singleOrMany(t)}(n);case 263:return function(n){var t;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(n),"import= for internal module references should be handled in an earlier transformer."),f!==e.ModuleKind.AMD?t=e.hasSyntacticModifier(n,1)?e.append(t,e.setOriginalNode(e.setTextRange(r.createExpressionStatement(Y(n.name,G(n))),n),n)):e.append(t,e.setOriginalNode(e.setTextRange(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(n.name),void 0,void 0,G(n))],p>=2?2:0)),n),n)):e.hasSyntacticModifier(n,1)&&(t=e.append(t,e.setOriginalNode(e.setTextRange(r.createExpressionStatement(Y(r.getExportName(n),r.getLocalName(n))),n),n))),V(n)){var i=e.getOriginalNodeId(n);b[i]=K(b[i],n)}else t=K(t,n);return e.singleOrMany(t)}(n);case 270:return function(n){if(n.moduleSpecifier){var t=r.getGeneratedNameForNode(n);if(n.exportClause&&e.isNamedExports(n.exportClause)){var i=[];f!==e.ModuleKind.AMD&&i.push(e.setOriginalNode(e.setTextRange(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(t,void 0,void 0,G(n))])),n),n));for(var o=0,s=n.exportClause.elements;o<s.length;o++){var c=s[o];if(0===p)i.push(e.setOriginalNode(e.setTextRange(r.createExpressionStatement(a().createCreateBindingHelper(t,r.createStringLiteralFromNode(c.propertyName||c.name),c.propertyName?r.createStringLiteralFromNode(c.name):void 0)),c),c));else{var u=!(!l.esModuleInterop||67108864&e.getEmitFlags(n)||"default"!==e.idText(c.propertyName||c.name)),d=r.createPropertyAccessExpression(u?a().createImportDefaultHelper(t):t,c.propertyName||c.name);i.push(e.setOriginalNode(e.setTextRange(r.createExpressionStatement(Y(r.getExportName(c),d,void 0,!0)),c),c))}}return e.singleOrMany(i)}return n.exportClause?((i=[]).push(e.setOriginalNode(e.setTextRange(r.createExpressionStatement(Y(r.cloneNode(n.exportClause.name),function(n,t){return!l.esModuleInterop||67108864&e.getEmitFlags(n)?t:e.getExportNeedsImportStarHelper(n)?a().createImportStarHelper(t):t}(n,f!==e.ModuleKind.AMD?G(n):e.isExportNamespaceAsDefaultDeclaration(n)?t:r.createIdentifier(e.idText(n.exportClause.name))))),n),n)),e.singleOrMany(i)):e.setOriginalNode(e.setTextRange(r.createExpressionStatement(a().createExportStarHelper(f!==e.ModuleKind.AMD?G(n):t)),n),n)}}(n);case 269:return function(n){if(!n.isExportEquals){var t,i=n.original;if(i&&V(i)){var a=e.getOriginalNodeId(n);b[a]=q(b[a],r.createIdentifier("default"),e.visitNode(n.expression,R),n,!0)}else t=q(t,r.createIdentifier("default"),e.visitNode(n.expression,R),n,!0);return e.singleOrMany(t)}}(n);case 235:return function(n){var i,a,o;if(e.hasSyntacticModifier(n,1)){for(var s=void 0,c=!1,l=0,u=n.declarationList.declarations;l<u.length;l++){var d=u[l];if(e.isIdentifier(d.name)&&e.isLocalName(d.name))s||(s=e.visitNodes(n.modifiers,Q,e.isModifier)),a=e.append(a,d);else if(d.initializer)if(!e.isBindingPattern(d.name)&&(e.isArrowFunction(d.initializer)||e.isFunctionExpression(d.initializer)||e.isClassExpression(d.initializer))){var p=r.createAssignment(e.setTextRange(r.createPropertyAccessExpression(r.createIdentifier("exports"),d.name),d.name),r.createIdentifier(e.getTextOfIdentifierOrLiteral(d.name))),f=r.createVariableDeclaration(d.name,d.exclamationToken,d.type,e.visitNode(d.initializer,R));a=e.append(a,f),o=e.append(o,p),c=!0}else o=e.append(o,U(d))}if(a&&(i=e.append(i,r.updateVariableStatement(n,s,r.updateVariableDeclarationList(n.declarationList,a)))),o){var m=e.setOriginalNode(e.setTextRange(r.createExpressionStatement(r.inlineExpressions(o)),n),n);c&&e.removeAllComments(m),i=e.append(i,m)}}else i=e.append(i,e.visitEachChild(n,R,t));if(V(n)){var _=e.getOriginalNodeId(n);b[_]=H(b[_],n)}else i=H(i,n);return e.singleOrMany(i)}(n);case 254:return function(n){var i;if(i=e.hasSyntacticModifier(n,1)?e.append(i,e.setOriginalNode(e.setTextRange(r.createFunctionDeclaration(void 0,e.visitNodes(n.modifiers,Q,e.isModifier),n.asteriskToken,r.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.parameters,R),void 0,e.visitEachChild(n.body,R,t)),n),n)):e.append(i,e.visitEachChild(n,R,t)),V(n)){var a=e.getOriginalNodeId(n);b[a]=z(b[a],n)}else i=z(i,n);return e.singleOrMany(i)}(n);case 255:return function(n){var i;if(i=e.hasSyntacticModifier(n,1)?e.append(i,e.setOriginalNode(e.setTextRange(r.createClassDeclaration(void 0,e.visitNodes(n.modifiers,Q,e.isModifier),r.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.heritageClauses,R),e.visitNodes(n.members,R)),n),n)):e.append(i,e.visitEachChild(n,R,t)),V(n)){var a=e.getOriginalNodeId(n);b[a]=z(b[a],n)}else i=z(i,n);return e.singleOrMany(i)}(n);case 347:return function(n){if(V(n)&&235===n.original.kind){var t=e.getOriginalNodeId(n);b[t]=H(b[t],n.original)}return n}(n);case 348:return function(n){var t=e.getOriginalNodeId(n),r=b[t];return r?(delete b[t],e.append(r,n)):n}(n);default:return R(n)}}function k(n,i){if(!(71305216&n.transformFlags))return n;switch(n.kind){case 240:return function(n){return r.updateForStatement(n,e.visitNode(n.initializer,O,e.isForInitializer),e.visitNode(n.condition,R,e.isExpression),e.visitNode(n.incrementor,O,e.isExpression),e.visitIterationBody(n.statement,R,t))}(n);case 236:return function(n){return r.updateExpressionStatement(n,e.visitNode(n.expression,O,e.isExpression))}(n);case 210:return function(n,t){return r.updateParenthesizedExpression(n,e.visitNode(n.expression,t?O:R,e.isExpression))}(n,i);case 345:return function(n,t){return r.updatePartiallyEmittedExpression(n,e.visitNode(n.expression,t?O:R,e.isExpression))}(n,i);case 206:if(e.isImportCall(n))return function(n){var t=e.getExternalModuleNameLiteral(r,n,g,d,u,l),i=e.visitNode(e.firstOrUndefined(n.arguments),R),a=!t||i&&e.isStringLiteral(i)&&i.text===t.text?i:t,o=!!(8192&n.transformFlags);switch(l.module){case e.ModuleKind.AMD:return w(a,o);case e.ModuleKind.UMD:return function(n,t){if(h=!0,e.isSimpleCopiableExpression(n)){var i=e.isGeneratedIdentifier(n)?n:e.isStringLiteral(n)?r.createStringLiteralFromNode(n):e.setEmitFlags(e.setTextRange(r.cloneNode(n),n),1536);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,M(n,t),void 0,w(i,t))}var a=r.createTempVariable(c);return r.createComma(r.createAssignment(a,n),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,M(a,t),void 0,w(a,t)))}(null!=a?a:r.createVoidZero(),o);case e.ModuleKind.CommonJS:default:return M(a,o)}}(n);break;case 219:if(e.isDestructuringAssignment(n))return function(n,r){return P(n.left)?e.flattenDestructuringAssignment(n,R,t,0,!r,B):e.visitEachChild(n,R,t)}(n,i);break;case 217:case 218:return function(n,i){if((45===n.operator||46===n.operator)&&e.isIdentifier(n.operand)&&!e.isGeneratedIdentifier(n.operand)&&!e.isLocalName(n.operand)&&!e.isDeclarationNameOfEnumOrNamespace(n.operand)){var a=$(n.operand);if(a){var o=void 0,s=e.visitNode(n.operand,R,e.isExpression);e.isPrefixUnaryExpression(n)?s=r.updatePrefixUnaryExpression(n,s):(s=r.updatePostfixUnaryExpression(n,s),i||(o=r.createTempVariable(c),s=r.createAssignment(o,s),e.setTextRange(s,n)),s=r.createComma(s,r.cloneNode(n.operand)),e.setTextRange(s,n));for(var l=0,u=a;l<u.length;l++){var d=u[l];E[e.getNodeId(s)]=!0,s=Y(d,s),e.setTextRange(s,n)}return o&&(E[e.getNodeId(s)]=!0,s=r.createComma(s,o),e.setTextRange(s,n)),s}}return e.visitEachChild(n,R,t)}(n,i)}return e.visitEachChild(n,R,t)}function R(e){return k(e,!1)}function O(e){return k(e,!0)}function P(n){if(e.isObjectLiteralExpression(n))for(var t=0,r=n.properties;t<r.length;t++)switch((o=r[t]).kind){case 291:if(P(o.initializer))return!0;break;case 292:if(P(o.name))return!0;break;case 293:if(P(o.expression))return!0;break;case 167:case 170:case 171:return!1;default:e.Debug.assertNever(o,"Unhandled object member kind")}else if(e.isArrayLiteralExpression(n))for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];if(e.isSpreadElement(o)){if(P(o.expression))return!0}else if(P(o))return!0}else if(e.isIdentifier(n))return e.length($(n))>(e.isExportName(n)?1:0);return!1}function w(n,t){var i,o=r.createUniqueName("resolve"),s=r.createUniqueName("reject"),c=[r.createParameterDeclaration(void 0,void 0,void 0,o),r.createParameterDeclaration(void 0,void 0,void 0,s)],u=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([n||r.createOmittedExpression()]),o,s]))]);p>=2?i=r.createArrowFunction(void 0,void 0,c,void 0,void 0,u):(i=r.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,u),t&&e.setEmitFlags(i,8));var d=r.createNewExpression(r.createIdentifier("Promise"),void 0,[i]);return l.esModuleInterop?r.createCallExpression(r.createPropertyAccessExpression(d,r.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):d}function M(n,t){var i,o=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,[]),s=r.createCallExpression(r.createIdentifier("require"),void 0,n?[n]:[]);return l.esModuleInterop&&(s=a().createImportStarHelper(s)),p>=2?i=r.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(s)])),t&&e.setEmitFlags(i,8)),r.createCallExpression(r.createPropertyAccessExpression(o,"then"),void 0,[i])}function F(n,t){return!l.esModuleInterop||67108864&e.getEmitFlags(n)?t:e.getImportNeedsImportStarHelper(n)?a().createImportStarHelper(t):e.getImportNeedsImportDefaultHelper(n)?a().createImportDefaultHelper(t):t}function G(n){var t=e.getExternalModuleNameLiteral(r,n,g,d,u,l),i=[];return t&&i.push(t),r.createCallExpression(r.createIdentifier("require"),void 0,i)}function B(n,t,i){var a=$(n);if(a){for(var o=e.isExportName(n)?t:r.createAssignment(n,t),s=0,c=a;s<c.length;s++){var l=c[s];e.setEmitFlags(o,4),o=Y(l,o,i)}return o}return r.createAssignment(n,t)}function U(n){return e.isBindingPattern(n.name)?e.flattenDestructuringAssignment(e.visitNode(n,R),void 0,t,0,!1,B):r.createAssignment(e.setTextRange(r.createPropertyAccessExpression(r.createIdentifier("exports"),n.name),n.name),n.initializer?e.visitNode(n.initializer,R):r.createVoidZero())}function V(n){return 0!=(4194304&e.getEmitFlags(n))}function j(e,n){if(y.exportEquals)return e;var t=n.importClause;if(!t)return e;t.name&&(e=J(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 266:e=J(e,r);break;case 267:for(var i=0,a=r.elements;i<a.length;i++)e=J(e,a[i],!0)}return e}function K(e,n){return y.exportEquals?e:J(e,n)}function H(e,n){if(y.exportEquals)return e;for(var t=0,r=n.declarationList.declarations;t<r.length;t++)e=W(e,r[t]);return e}function W(n,t){if(y.exportEquals)return n;if(e.isBindingPattern(t.name))for(var r=0,i=t.name.elements;r<i.length;r++){var a=i[r];e.isOmittedExpression(a)||(n=W(n,a))}else e.isGeneratedIdentifier(t.name)||(n=J(n,t));return n}function z(n,t){return y.exportEquals||(e.hasSyntacticModifier(t,1)&&(n=q(n,e.hasSyntacticModifier(t,512)?r.createIdentifier("default"):r.getDeclarationName(t),r.getLocalName(t),t)),t.name&&(n=J(n,t))),n}function J(n,t,i){var a=r.getDeclarationName(t),o=y.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];n=q(n,l.name,a,l.name,void 0,i)}return n}function q(n,t,i,a,o,s){return n=e.append(n,function(n,t,i,a,o){var s=e.setTextRange(r.createExpressionStatement(Y(n,t,void 0,o)),i);return e.startOnNewLine(s),a||e.setEmitFlags(s,1536),s}(t,i,a,o,s)),n}function X(){var n;return n=0===p?r.createExpressionStatement(Y(r.createIdentifier("__esModule"),r.createTrue())):r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),e.setEmitFlags(n,1048576),n}function Y(n,t,i,a){return e.setTextRange(a&&0!==p?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(n),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(t)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(n)),t),i)}function Q(e){switch(e.kind){case 93:case 88:return}return e}function Z(n){var t,i;if(4096&e.getEmitFlags(n)){var a=e.getExternalHelpersModuleName(g);return a?r.createPropertyAccessExpression(a,n):n}if((!e.isGeneratedIdentifier(n)||64&n.autoGenerateFlags)&&!e.isLocalName(n)){var o=u.getReferencedExportContainer(n,e.isExportName(n));if(o&&300===o.kind)return e.setTextRange(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(n)),n);var s=u.getReferencedImportDeclaration(n);if(s){if(e.isImportClause(s))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode(s.parent),r.createIdentifier("default")),n);if(e.isImportSpecifier(s)){var c=s.propertyName||s.name;return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(i=null===(t=s.parent)||void 0===t?void 0:t.parent)||void 0===i?void 0:i.parent)||s),r.cloneNode(c)),n)}}}return n}function $(n){if(!e.isGeneratedIdentifier(n)){var t=u.getReferencedImportDeclaration(n)||u.getReferencedValueDeclaration(n);if(t)return y&&y.exportedBindings[e.getOriginalNodeId(t)]}}};var n={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}(u||(u={})),function(e){e.transformSystemModule=function(n){var t=n.factory,r=n.startLexicalEnvironment,i=n.endLexicalEnvironment,a=n.hoistVariableDeclaration,o=n.getCompilerOptions(),s=n.getEmitResolver(),c=n.getEmitHost(),l=n.onSubstituteNode,u=n.onEmitNode;n.onSubstituteNode=function(n,r){return function(e){return y&&e.id&&y[e.id]}(r=l(n,r))?r:1===n?function(n){switch(n.kind){case 79:return function(n){var r,i;if(4096&e.getEmitFlags(n)){var a=e.getExternalHelpersModuleName(d);return a?t.createPropertyAccessExpression(a,n):n}if(!e.isGeneratedIdentifier(n)&&!e.isLocalName(n)){var o=s.getReferencedImportDeclaration(n);if(o){if(e.isImportClause(o))return e.setTextRange(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),n);if(e.isImportSpecifier(o))return e.setTextRange(t.createPropertyAccessExpression(t.getGeneratedNameForNode((null===(i=null===(r=o.parent)||void 0===r?void 0:r.parent)||void 0===i?void 0:i.parent)||o),t.cloneNode(o.propertyName||o.name)),n)}}return n}(n);case 219:return function(n){if(e.isAssignmentOperator(n.operatorToken.kind)&&e.isIdentifier(n.left)&&!e.isGeneratedIdentifier(n.left)&&!e.isLocalName(n.left)&&!e.isDeclarationNameOfEnumOrNamespace(n.left)){var t=Y(n.left);if(t){for(var r=n,i=0,a=t;i<a.length;i++)r=V(a[i],Q(r));return r}}return n}(n);case 229:return function(n){return e.isImportMeta(n)?t.createPropertyAccessExpression(m,t.createIdentifier("meta")):n}(n)}return n}(r):4===n?function(n){return 292===n.kind?function(n){var r,i,a=n.name;if(!e.isGeneratedIdentifier(a)&&!e.isLocalName(a)){var o=s.getReferencedImportDeclaration(a);if(o){if(e.isImportClause(o))return e.setTextRange(t.createPropertyAssignment(t.cloneNode(a),t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default"))),n);if(e.isImportSpecifier(o))return e.setTextRange(t.createPropertyAssignment(t.cloneNode(a),t.createPropertyAccessExpression(t.getGeneratedNameForNode((null===(i=null===(r=o.parent)||void 0===r?void 0:r.parent)||void 0===i?void 0:i.parent)||o),t.cloneNode(o.propertyName||o.name))),n)}}return n}(n):n}(r):r},n.onEmitNode=function(n,t,r){if(300===t.kind){var i=e.getOriginalNodeId(t);d=t,p=h[i],f=b[i],y=E[i],m=T[i],y&&delete E[i],u(n,t,r),d=void 0,p=void 0,f=void 0,m=void 0,y=void 0}else u(n,t,r)},n.enableSubstitution(79),n.enableSubstitution(292),n.enableSubstitution(219),n.enableSubstitution(229),n.enableEmitNotification(300);var d,p,f,m,_,g,y,h=[],v=[],b=[],E=[],T=[];return e.chainBundle(n,(function(a){if(a.isDeclarationFile||!(e.isEffectiveExternalModule(a,o)||4194304&a.transformFlags))return a;var l=e.getOriginalNodeId(a);d=a,g=a,p=h[l]=e.collectExternalModuleInfo(n,a,s,o),f=t.createUniqueName("exports"),b[l]=f,m=T[l]=t.createUniqueName("context");var u=function(n){for(var r=new e.Map,i=[],a=0,l=n;a<l.length;a++){var u=l[a],p=e.getExternalModuleNameLiteral(t,u,d,c,s,o);if(p){var f=p.text,m=r.get(f);void 0!==m?i[m].externalImports.push(u):(r.set(f,i.length),i.push({name:p,externalImports:[u]}))}}return i}(p.externalImports),v=function(n,a){var s=[];r();var c=e.getStrictOptionValue(o,"alwaysStrict")||!o.noImplicitUseStrict&&e.isExternalModule(d),l=t.copyPrologue(n.statements,s,c,L);s.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(m,t.createPropertyAccessExpression(m,"id")))]))),e.visitNode(p.externalHelpersImportDeclaration,L,e.isStatement);var u=e.visitNodes(n.statements,L,e.isStatement,l);e.addRange(s,_),e.insertStatementsAfterStandardPrologue(s,i());var f=function(e){if(p.hasExportStarsToExportValues){if(!p.exportedNames&&0===p.exportSpecifiers.size){for(var n=!1,r=0,i=p.externalImports;r<i.length;r++){var a=i[r];if(270===a.kind&&a.exportClause){n=!0;break}}if(!n){var o=S(void 0);return e.push(o),o.name}}var s=[];if(p.exportedNames)for(var c=0,l=p.exportedNames;c<l.length;c++){var u=l[c];"default"!==u.escapedText&&s.push(t.createPropertyAssignment(t.createStringLiteralFromNode(u),t.createTrue()))}var d=t.createUniqueName("exportedNames");e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(d,void 0,void 0,t.createObjectLiteralExpression(s,!0))])));var f=S(d);return e.push(f),f.name}}(s),g=1048576&n.transformFlags?t.createModifiersFromModifierFlags(256):void 0,y=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",x(f,a)),t.createPropertyAssignment("execute",t.createFunctionExpression(g,void 0,void 0,void 0,[],void 0,t.createBlock(u,!0)))],!0);return s.push(t.createReturnStatement(y)),t.createBlock(s,!0)}(a,u),D=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,f),t.createParameterDeclaration(void 0,void 0,void 0,m)],void 0,v),A=e.tryGetModuleNameFromFile(t,a,c,o),C=t.createArrayLiteralExpression(e.map(u,(function(e){return e.name}))),I=e.setEmitFlags(t.updateSourceFile(a,e.setTextRange(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,A?[A,C,D]:[C,D]))]),a.statements)),1024);return e.outFile(o)||e.moveEmitHelpers(I,v,(function(e){return!e.scoped})),y&&(E[l]=y,y=void 0),d=void 0,p=void 0,f=void 0,m=void 0,_=void 0,g=void 0,I}));function S(n){var r=t.createUniqueName("exportStar"),i=t.createIdentifier("m"),a=t.createIdentifier("n"),o=t.createIdentifier("exports"),s=t.createStrictInequality(a,t.createStringLiteral("default"));return n&&(s=t.createLogicalAnd(s,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(n,"hasOwnProperty"),void 0,[a])))),t.createFunctionDeclaration(void 0,void 0,void 0,r,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,i)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(o,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(a)]),i,t.createBlock([e.setEmitFlags(t.createIfStatement(s,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(o,a),t.createElementAccessExpression(i,a)))),1)])),t.createExpressionStatement(t.createCallExpression(f,void 0,[o]))],!0))}function x(n,r){for(var i=[],a=0,o=r;a<o.length;a++){for(var s=o[a],c=e.forEach(s.externalImports,(function(n){return e.getLocalNameForExternalImport(t,n,d)})),l=c?t.getGeneratedNameForNode(c):t.createUniqueName(""),u=[],p=0,m=s.externalImports;p<m.length;p++){var _=m[p],g=e.getLocalNameForExternalImport(t,_,d);switch(_.kind){case 264:if(!_.importClause)break;case 263:e.Debug.assert(void 0!==g),u.push(t.createExpressionStatement(t.createAssignment(g,l)));break;case 270:if(e.Debug.assert(void 0!==g),_.exportClause)if(e.isNamedExports(_.exportClause)){for(var y=[],h=0,v=_.exportClause.elements;h<v.length;h++){var b=v[h];y.push(t.createPropertyAssignment(t.createStringLiteral(e.idText(b.name)),t.createElementAccessExpression(l,t.createStringLiteral(e.idText(b.propertyName||b.name)))))}u.push(t.createExpressionStatement(t.createCallExpression(f,void 0,[t.createObjectLiteralExpression(y,!0)])))}else u.push(t.createExpressionStatement(t.createCallExpression(f,void 0,[t.createStringLiteral(e.idText(_.exportClause.name)),l])));else u.push(t.createExpressionStatement(t.createCallExpression(n,void 0,[l])))}}i.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,l)],void 0,t.createBlock(u,!0)))}return t.createArrayLiteralExpression(i,!0)}function L(n){switch(n.kind){case 264:return function(n){var r;if(n.importClause&&a(e.getLocalNameForExternalImport(t,n,d)),R(n)){var i=e.getOriginalNodeId(n);v[i]=O(v[i],n)}else r=O(r,n);return e.singleOrMany(r)}(n);case 263:return function(n){var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(n),"import= for internal module references should be handled in an earlier transformer."),a(e.getLocalNameForExternalImport(t,n,d)),R(n)){var i=e.getOriginalNodeId(n);v[i]=P(v[i],n)}else r=P(r,n);return e.singleOrMany(r)}(n);case 270:return function(n){e.Debug.assertIsDefined(n)}(n);case 269:return function(n){if(!n.isExportEquals){var r=e.visitNode(n.expression,z,e.isExpression),i=n.original;if(!i||!R(i))return U(t.createIdentifier("default"),r,!0);var a=e.getOriginalNodeId(n);v[a]=B(v[a],t.createIdentifier("default"),r,!0)}}(n);default:return j(n)}}function D(n){if(e.isBindingPattern(n.name))for(var r=0,i=n.name.elements;r<i.length;r++){var o=i[r];e.isOmittedExpression(o)||D(o)}else a(t.cloneNode(n.name))}function A(n){return 0==(2097152&e.getEmitFlags(n))&&(300===g.kind||0==(3&e.getOriginalNode(n).flags))}function C(t,r){var i=r?I:N;return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(t,z,n,0,!1,i):t.initializer?i(t.name,e.visitNode(t.initializer,z,e.isExpression)):t.name}function I(e,n,t){return k(e,n,t,!0)}function N(e,n,t){return k(e,n,t,!1)}function k(n,r,i,o){return a(t.cloneNode(n)),o?V(n,Q(e.setTextRange(t.createAssignment(n,r),i))):Q(e.setTextRange(t.createAssignment(n,r),i))}function R(n){return 0!=(4194304&e.getEmitFlags(n))}function O(e,n){if(p.exportEquals)return e;var t=n.importClause;if(!t)return e;t.name&&(e=G(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 266:e=G(e,r);break;case 267:for(var i=0,a=r.elements;i<a.length;i++)e=G(e,a[i])}return e}function P(e,n){return p.exportEquals?e:G(e,n)}function w(e,n,t){if(p.exportEquals)return e;for(var r=0,i=n.declarationList.declarations;r<i.length;r++){var a=i[r];(a.initializer||t)&&(e=M(e,a,t))}return e}function M(n,r,i){if(p.exportEquals)return n;if(e.isBindingPattern(r.name))for(var a=0,o=r.name.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(n=M(n,s,i))}else if(!e.isGeneratedIdentifier(r.name)){var c=void 0;i&&(n=B(n,r.name,t.getLocalName(r)),c=e.idText(r.name)),n=G(n,r,c)}return n}function F(n,r){if(p.exportEquals)return n;var i;if(e.hasSyntacticModifier(r,1)){var a=e.hasSyntacticModifier(r,512)?t.createStringLiteral("default"):r.name;n=B(n,a,t.getLocalName(r)),i=e.getTextOfIdentifierOrLiteral(a)}return r.name&&(n=G(n,r,i)),n}function G(n,r,i){if(p.exportEquals)return n;var a=t.getDeclarationName(r),o=p.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];l.name.escapedText!==i&&(n=B(n,l.name,a))}return n}function B(n,t,r,i){return e.append(n,U(t,r,i))}function U(n,r,i){var a=t.createExpressionStatement(V(n,r));return e.startOnNewLine(a),i||e.setEmitFlags(a,1536),a}function V(n,r){var i=e.isIdentifier(n)?t.createStringLiteralFromNode(n):n;return e.setEmitFlags(r,1536|e.getEmitFlags(r)),e.setCommentRange(t.createCallExpression(f,void 0,[i,r]),r)}function j(r){switch(r.kind){case 235:return function(n){if(!A(n.declarationList))return e.visitNode(n,z,e.isStatement);for(var r,i,a=e.hasSyntacticModifier(n,1),o=R(n),s=0,c=n.declarationList.declarations;s<c.length;s++){var l=c[s];l.initializer?r=e.append(r,C(l,a&&!o)):D(l)}if(r&&(i=e.append(i,e.setTextRange(t.createExpressionStatement(t.inlineExpressions(r)),n))),o){var u=e.getOriginalNodeId(n);v[u]=w(v[u],n,a)}else i=w(i,n,!1);return e.singleOrMany(i)}(r);case 254:return function(r){if(_=e.hasSyntacticModifier(r,1)?e.append(_,t.updateFunctionDeclaration(r,r.decorators,e.visitNodes(r.modifiers,X,e.isModifier),r.asteriskToken,t.getDeclarationName(r,!0,!0),void 0,e.visitNodes(r.parameters,z,e.isParameterDeclaration),void 0,e.visitNode(r.body,z,e.isBlock))):e.append(_,e.visitEachChild(r,z,n)),R(r)){var i=e.getOriginalNodeId(r);v[i]=F(v[i],r)}else _=F(_,r)}(r);case 255:return function(n){var r,i=t.getLocalName(n);if(a(i),r=e.append(r,e.setTextRange(t.createExpressionStatement(t.createAssignment(i,e.setTextRange(t.createClassExpression(e.visitNodes(n.decorators,z,e.isDecorator),void 0,n.name,void 0,e.visitNodes(n.heritageClauses,z,e.isHeritageClause),e.visitNodes(n.members,z,e.isClassElement)),n))),n)),R(n)){var o=e.getOriginalNodeId(n);v[o]=F(v[o],n)}else r=F(r,n);return e.singleOrMany(r)}(r);case 240:return K(r,!0);case 241:return function(r){var i=g;return g=r,r=t.updateForInStatement(r,H(r.initializer),e.visitNode(r.expression,z,e.isExpression),e.visitIterationBody(r.statement,j,n)),g=i,r}(r);case 242:return function(r){var i=g;return g=r,r=t.updateForOfStatement(r,r.awaitModifier,H(r.initializer),e.visitNode(r.expression,z,e.isExpression),e.visitIterationBody(r.statement,j,n)),g=i,r}(r);case 238:return function(r){return t.updateDoStatement(r,e.visitIterationBody(r.statement,j,n),e.visitNode(r.expression,z,e.isExpression))}(r);case 239:return function(r){return t.updateWhileStatement(r,e.visitNode(r.expression,z,e.isExpression),e.visitIterationBody(r.statement,j,n))}(r);case 248:return function(n){return t.updateLabeledStatement(n,n.label,e.visitNode(n.statement,j,e.isStatement,t.liftToBlock))}(r);case 246:return function(n){return t.updateWithStatement(n,e.visitNode(n.expression,z,e.isExpression),e.visitNode(n.statement,j,e.isStatement,t.liftToBlock))}(r);case 247:return function(n){return t.updateSwitchStatement(n,e.visitNode(n.expression,z,e.isExpression),e.visitNode(n.caseBlock,j,e.isCaseBlock))}(r);case 261:return function(n){var r=g;return g=n,n=t.updateCaseBlock(n,e.visitNodes(n.clauses,j,e.isCaseOrDefaultClause)),g=r,n}(r);case 287:return function(n){return t.updateCaseClause(n,e.visitNode(n.expression,z,e.isExpression),e.visitNodes(n.statements,j,e.isStatement))}(r);case 288:case 250:return function(t){return e.visitEachChild(t,j,n)}(r);case 290:return function(n){var r=g;return g=n,n=t.updateCatchClause(n,n.variableDeclaration,e.visitNode(n.block,j,e.isBlock)),g=r,n}(r);case 233:return function(t){var r=g;return g=t,t=e.visitEachChild(t,j,n),g=r,t}(r);case 347:return function(n){if(R(n)&&235===n.original.kind){var t=e.getOriginalNodeId(n),r=e.hasSyntacticModifier(n.original,1);v[t]=w(v[t],n.original,r)}return n}(r);case 348:return function(n){var t=e.getOriginalNodeId(n),r=v[t];if(r)return delete v[t],e.append(r,n);var i=e.getOriginalNode(n);return e.isModuleOrEnumDeclaration(i)?e.append(G(r,i),n):n}(r);default:return z(r)}}function K(r,i){var a=g;return g=r,r=t.updateForStatement(r,e.visitNode(r.initializer,i?H:J,e.isForInitializer),e.visitNode(r.condition,z,e.isExpression),e.visitNode(r.incrementor,J,e.isExpression),e.visitIterationBody(r.statement,i?j:z,n)),g=a,r}function H(n){if(function(n){return e.isVariableDeclarationList(n)&&A(n)}(n)){for(var r=void 0,i=0,a=n.declarations;i<a.length;i++){var o=a[i];r=e.append(r,C(o,!1)),o.initializer||D(o)}return r?t.inlineExpressions(r):t.createOmittedExpression()}return e.visitNode(n,J,e.isExpression)}function W(r,i){if(!(71305216&r.transformFlags))return r;switch(r.kind){case 240:return K(r,!1);case 236:return function(n){return t.updateExpressionStatement(n,e.visitNode(n.expression,J,e.isExpression))}(r);case 210:return function(n,r){return t.updateParenthesizedExpression(n,e.visitNode(n.expression,r?J:z,e.isExpression))}(r,i);case 345:return function(n,r){return t.updatePartiallyEmittedExpression(n,e.visitNode(n.expression,r?J:z,e.isExpression))}(r,i);case 219:if(e.isDestructuringAssignment(r))return function(t,r){return q(t.left)?e.flattenDestructuringAssignment(t,z,n,0,!r):e.visitEachChild(t,z,n)}(r,i);break;case 206:if(e.isImportCall(r))return function(n){var r=e.getExternalModuleNameLiteral(t,n,d,c,s,o),i=e.visitNode(e.firstOrUndefined(n.arguments),z),a=!r||i&&e.isStringLiteral(i)&&i.text===r.text?i:r;return t.createCallExpression(t.createPropertyAccessExpression(m,t.createIdentifier("import")),void 0,a?[a]:[])}(r);break;case 217:case 218:return function(r,i){if((45===r.operator||46===r.operator)&&e.isIdentifier(r.operand)&&!e.isGeneratedIdentifier(r.operand)&&!e.isLocalName(r.operand)&&!e.isDeclarationNameOfEnumOrNamespace(r.operand)){var o=Y(r.operand);if(o){var s=void 0,c=e.visitNode(r.operand,z,e.isExpression);e.isPrefixUnaryExpression(r)?c=t.updatePrefixUnaryExpression(r,c):(c=t.updatePostfixUnaryExpression(r,c),i||(s=t.createTempVariable(a),c=t.createAssignment(s,c),e.setTextRange(c,r)),c=t.createComma(c,t.cloneNode(r.operand)),e.setTextRange(c,r));for(var l=0,u=o;l<u.length;l++)c=V(u[l],Q(c));return s&&(c=t.createComma(c,s),e.setTextRange(c,r)),c}}return e.visitEachChild(r,z,n)}(r,i)}return e.visitEachChild(r,z,n)}function z(e){return W(e,!1)}function J(e){return W(e,!0)}function q(n){if(e.isAssignmentExpression(n,!0))return q(n.left);if(e.isSpreadElement(n))return q(n.expression);if(e.isObjectLiteralExpression(n))return e.some(n.properties,q);if(e.isArrayLiteralExpression(n))return e.some(n.elements,q);if(e.isShorthandPropertyAssignment(n))return q(n.name);if(e.isPropertyAssignment(n))return q(n.initializer);if(e.isIdentifier(n)){var t=s.getReferencedExportContainer(n);return void 0!==t&&300===t.kind}return!1}function X(e){switch(e.kind){case 93:case 88:return}return e}function Y(n){var r;if(!e.isGeneratedIdentifier(n)){var i=s.getReferencedImportDeclaration(n)||s.getReferencedValueDeclaration(n);if(i){var a=s.getReferencedExportContainer(n,!1);a&&300===a.kind&&(r=e.append(r,t.getDeclarationName(i))),r=e.addRange(r,p&&p.exportedBindings[e.getOriginalNodeId(i)])}}return r}function Q(n){return void 0===y&&(y=[]),y[e.getNodeId(n)]=!0,n}}}(u||(u={})),function(e){e.transformECMAScriptModule=function(n){var t,r=n.factory,a=n.getEmitHelperFactory,o=n.getCompilerOptions(),s=n.onEmitNode,c=n.onSubstituteNode;return n.onEmitNode=function(n,r,i){e.isSourceFile(r)?((e.isExternalModule(r)||o.isolatedModules)&&o.importHelpers&&(t=new e.Map),s(n,r,i),t=void 0):s(n,r,i)},n.onSubstituteNode=function(n,i){return i=c(n,i),t&&e.isIdentifier(i)&&4096&e.getEmitFlags(i)?function(n){var i=e.idText(n),a=t.get(i);return a||t.set(i,a=r.createUniqueName(i,48)),a}(i):i},n.enableEmitNotification(300),n.enableSubstitution(79),e.chainBundle(n,(function(t){if(t.isDeclarationFile)return t;if(e.isExternalModule(t)||o.isolatedModules){var s=function(t){var i=e.createExternalHelpersImportDeclarationIfNeeded(r,a(),t,o);if(i){var s=[],c=r.copyPrologue(t.statements,s);return e.append(s,i),e.addRange(s,e.visitNodes(t.statements,l,e.isStatement,c)),r.updateSourceFile(t,e.setTextRange(r.createNodeArray(s),t.statements))}return e.visitEachChild(t,l,n)}(t);return!e.isExternalModule(t)||e.some(s.statements,e.isExternalModuleIndicator)?s:r.updateSourceFile(s,e.setTextRange(r.createNodeArray(i(i([],s.statements,!0),[e.createEmptyExports(r)],!1)),s.statements))}return t}));function l(n){switch(n.kind){case 263:return;case 269:return function(e){return e.isExportEquals?void 0:e}(n);case 270:return function(n){if(void 0!==o.module&&o.module>e.ModuleKind.ES2015)return n;if(!n.exportClause||!e.isNamespaceExport(n.exportClause)||!n.moduleSpecifier)return n;var t=n.exportClause.name,i=r.getGeneratedNameForNode(t),a=r.createImportDeclaration(void 0,void 0,r.createImportClause(!1,void 0,r.createNamespaceImport(i)),n.moduleSpecifier);e.setOriginalNode(a,n.exportClause);var s=e.isExportNamespaceAsDefaultDeclaration(n)?r.createExportDefault(i):r.createExportDeclaration(void 0,void 0,!1,r.createNamedExports([r.createExportSpecifier(i,t)]));return e.setOriginalNode(s,n),[a,s]}(n)}return n}}}(u||(u={})),function(e){function n(n){return e.isVariableDeclaration(n)||e.isPropertyDeclaration(n)||e.isPropertySignature(n)||e.isPropertyAccessExpression(n)||e.isBindingElement(n)||e.isConstructorDeclaration(n)?t:e.isSetAccessor(n)||e.isGetAccessor(n)?function(t){return{diagnosticMessage:171===n.kind?e.isStatic(n)?t.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:t.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(n)?t.errorModuleName?2===t.accessibility?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:t.errorModuleName?2===t.accessibility?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,errorNode:n.name,typeName:n.name}}:e.isConstructSignatureDeclaration(n)||e.isCallSignatureDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isFunctionDeclaration(n)||e.isIndexSignatureDeclaration(n)?function(t){var r;switch(n.kind){case 173:r=t.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:r=t.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:r=t.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:r=e.isStatic(n)?t.errorModuleName?2===t.accessibility?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:255===n.parent.kind?t.errorModuleName?2===t.accessibility?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:t.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:r=t.errorModuleName?2===t.accessibility?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: "+n.kind)}return{diagnosticMessage:r,errorNode:n.name||n}}:e.isParameter(n)?e.isParameterPropertyDeclaration(n,n.parent)&&e.hasSyntacticModifier(n.parent,8)?t:function(t){var r=function(t){switch(n.parent.kind){case 169:return t.errorModuleName?2===t.accessibility?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 t.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 t.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 t.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(n.parent)?t.errorModuleName?2===t.accessibility?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:255===n.parent.parent.kind?t.errorModuleName?2===t.accessibility?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:t.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 t.errorModuleName?2===t.accessibility?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 t.errorModuleName?2===t.accessibility?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[n.parent.kind])}}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}:e.isTypeParameterDeclaration(n)?function(){var t;switch(n.parent.kind){case 255:t=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 256:t=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 193:t=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 178:case 173:t=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 172:t=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 167:case 166:t=e.isStatic(n.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:255===n.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 177:case 254:t=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 257:t=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: "+n.parent.kind)}return{diagnosticMessage:t,errorNode:n,typeName:n.name}}:e.isExpressionWithTypeArguments(n)?function(){return{diagnosticMessage:e.isClassDeclaration(n.parent.parent)?e.isHeritageClause(n.parent)&&117===n.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:n.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,errorNode:n,typeName:e.getNameOfDeclaration(n.parent.parent)}}:e.isImportEqualsDeclaration(n)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:n,typeName:n.name}}:e.isTypeAliasDeclaration(n)||e.isJSDocTypeAlias(n)?function(t){return{diagnosticMessage:t.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(n)?e.Debug.checkDefined(n.typeExpression):n.type,typeName:e.isJSDocTypeAlias(n)?e.getNameOfDeclaration(n):n.name}}:e.Debug.assertNever(n,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[n.kind]);function t(t){var r=function(t){return 252===n.kind||201===n.kind?t.errorModuleName?2===t.accessibility?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:165===n.kind||204===n.kind||164===n.kind||162===n.kind&&e.hasSyntacticModifier(n.parent,8)?e.isStatic(n)?t.errorModuleName?2===t.accessibility?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:255===n.parent.kind||162===n.kind?t.errorModuleName?2===t.accessibility?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:t.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:void 0}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}}e.canProduceDiagnostics=function(n){return e.isVariableDeclaration(n)||e.isPropertyDeclaration(n)||e.isPropertySignature(n)||e.isBindingElement(n)||e.isSetAccessor(n)||e.isGetAccessor(n)||e.isConstructSignatureDeclaration(n)||e.isCallSignatureDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isFunctionDeclaration(n)||e.isParameter(n)||e.isTypeParameterDeclaration(n)||e.isExpressionWithTypeArguments(n)||e.isImportEqualsDeclaration(n)||e.isTypeAliasDeclaration(n)||e.isConstructorDeclaration(n)||e.isIndexSignatureDeclaration(n)||e.isPropertyAccessExpression(n)||e.isJSDocTypeAlias(n)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(t){return e.isSetAccessor(t)||e.isGetAccessor(t)?function(n){var r=function(n){return e.isStatic(t)?n.errorModuleName?2===n.accessibility?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:255===t.parent.kind?n.errorModuleName?2===n.accessibility?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:n.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}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}:e.isMethodSignature(t)||e.isMethodDeclaration(t)?function(n){var r=function(n){return e.isStatic(t)?n.errorModuleName?2===n.accessibility?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:255===t.parent.kind?n.errorModuleName?2===n.accessibility?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:n.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}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}:n(t)},e.createGetSymbolAccessibilityDiagnosticForNode=n}(u||(u={})),function(e){function n(n,t){var r=t.text.substring(n.pos,n.end);return e.stringContains(r,"@internal")}function t(t,r){var i=e.getParseTreeNode(t);if(i&&162===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=r.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,t.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,t.pos,!1,!0));return c&&c.length&&n(e.last(c),r)}var l=i&&e.getLeadingCommentRangesOfNode(i,r);return!!e.forEach(l,(function(e){return n(e,r)}))}e.getDeclarationDiagnostics=function(n,t,r){var i=n.getCompilerOptions();return e.transformNodes(t,n,e.factory,i,r?[r]:e.filter(n.getSourceFiles(),e.isSourceFileNotJson),[a],!1).diagnostics},e.isInternalDeclaration=t;var r=531469;function a(n){var a,c,l,u,d,p,f,m,_,g,y,h,v=function(){return e.Debug.fail("Diagnostic emitted without context")},b=v,E=!0,T=!1,S=!1,x=!1,L=!1,D=n.factory,A=n.getEmitHost(),C={trackSymbol:function(e,n,t){if(262144&e.flags)return!1;var r=P(I.isSymbolAccessible(e,n,t,!0));return O(I.getTypeReferenceDirectivesForSymbol(e,t)),r},reportInaccessibleThisError:function(){(f||m)&&n.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,w(),"this"))},reportInaccessibleUniqueSymbolError:function(){(f||m)&&n.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,w(),"unique symbol"))},reportCyclicStructureError:function(){(f||m)&&n.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,w()))},reportPrivateInBaseOfClassExpression:function(t){(f||m)&&n.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))},reportLikelyUnsafeImportRequiredError:function(t){(f||m)&&n.addDiagnostic(e.createDiagnosticForNode(f||m,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,w(),t))},reportTruncationError:function(){(f||m)&&n.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:A,trackReferencedAmbientModule:function(n,t){var r=I.getTypeReferenceDirectivesForSymbol(t,67108863);if(e.length(r))return O(r);var i=e.getSourceFileOfNode(n);g.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){T||(p||(p=[])).push(e)},reportNonlocalAugmentation:function(t,r,i){var a,o=null===(a=r.declarations)||void 0===a?void 0:a.find((function(n){return e.getSourceFileOfNode(n)===t})),s=e.filter(i.declarations,(function(n){return e.getSourceFileOfNode(n)!==t}));if(s)for(var c=0,l=s;c<l.length;c++){var u=l[c];n.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(u,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(o,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}},reportNonSerializableProperty:function(t){(f||m)&&n.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))}},I=n.getEmitResolver(),N=n.getCompilerOptions(),k=N.noResolve,R=N.stripInternal;return function(t){if(300===t.kind&&t.isDeclarationFile)return t;if(301===t.kind){T=!0,g=new e.Map,y=new e.Map;var r=!1,o=D.createBundle(e.map(t.sourceFiles,(function(t){if(!t.isDeclarationFile){if(r=r||t.hasNoDefaultLib,_=t,a=t,l=void 0,d=!1,u=new e.Map,b=v,x=!1,L=!1,F(t,g),G(t,y),e.isExternalOrCommonJsModule(t)||e.isJsonSourceFile(t)){S=!1,E=!1;var i=e.isSourceFileJS(t)?D.createNodeArray(M(t,!0)):e.visitNodes(t.statements,ne);return D.updateSourceFile(t,[D.createModuleDeclaration([],[D.createModifier(134)],D.createStringLiteral(e.getResolvedExternalModuleName(n.getEmitHost(),t)),D.createModuleBlock(e.setTextRange(D.createNodeArray($(i)),t.statements)))],!0,[],[],!1,[])}E=!0;var o=e.isSourceFileJS(t)?D.createNodeArray(M(t)):e.visitNodes(t.statements,ne);return D.updateSourceFile(t,$(o),!0,[],[],!1,[])}})),e.mapDefined(t.prepends,(function(n){if(303===n.kind){var t=e.createUnparsedSourceFile(n,"dts",R);return r=r||!!t.hasNoDefaultLib,F(t,g),O(t.typeReferenceDirectives),G(t,y),t}return n})));o.syntheticFileReferences=[],o.syntheticTypeReferences=B(),o.syntheticLibReferences=w(),o.hasNoDefaultLib=r;var s=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,A,!0).declarationFilePath)),f=V(o.syntheticFileReferences,s);return g.forEach(f),o}E=!0,x=!1,L=!1,a=t,_=t,b=v,T=!1,S=!1,d=!1,l=void 0,u=new e.Map,c=void 0,g=F(_,new e.Map),y=G(_,new e.Map);var m,C=[],I=V(C,e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,A,!0).declarationFilePath)));if(e.isSourceFileJS(_))m=D.createNodeArray(M(t)),g.forEach(I),h=e.filter(m,e.isAnyImportSyntax);else{var k=e.visitNodes(t.statements,ne);m=e.setTextRange(D.createNodeArray($(k)),t.statements),g.forEach(I),h=e.filter(m,e.isAnyImportSyntax),e.isExternalModule(t)&&(!S||x&&!L)&&(m=e.setTextRange(D.createNodeArray(i(i([],m,!0),[e.createEmptyExports(D)],!1)),m))}var P=D.updateSourceFile(t,m,!0,C,B(),t.hasNoDefaultLib,w());return P.exportedModulesFromDeclarationEmit=p,P;function w(){return e.map(e.arrayFrom(y.keys()),(function(e){return{fileName:e,pos:-1,end:-1}}))}function B(){return c?e.mapDefined(e.arrayFrom(c.keys()),U):[]}function U(n){if(h)for(var t=0,r=h;t<r.length;t++){var i=r[t];if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference)){var a=i.moduleReference.expression;if(e.isStringLiteralLike(a)&&a.text===n)return}else if(e.isImportDeclaration(i)&&e.isStringLiteral(i.moduleSpecifier)&&i.moduleSpecifier.text===n)return}return{fileName:n,pos:-1,end:-1}}function V(n,r){return function(i){var a;if(i.isDeclarationFile)a=i.fileName;else{if(T&&e.contains(t.sourceFiles,i))return;var o=e.getOutputPathsFor(i,A,!0);a=o.declarationFilePath||o.jsFilePath||i.fileName}if(a){var s=e.moduleSpecifiers.getModuleSpecifier(N,_,e.toPath(r,A.getCurrentDirectory(),A.getCanonicalFileName),e.toPath(a,A.getCurrentDirectory(),A.getCanonicalFileName),A);if(!e.pathIsRelative(s))return void O([s]);var c=e.getRelativePathToDirectoryOrUrl(r,a,A.getCurrentDirectory(),A.getCanonicalFileName,!1);if(e.startsWith(c,"./")&&e.hasExtension(c)&&(c=c.substring(2)),e.startsWith(c,"node_modules/")||e.pathContainsNodeModules(c))return;n.push({pos:-1,end:-1,fileName:c})}}}};function O(n){if(n){c=c||new e.Set;for(var t=0,r=n;t<r.length;t++){var i=r[t];c.add(i)}}}function P(t){if(0===t.accessibility){if(t&&t.aliasesToMakeVisible)if(l)for(var r=0,i=t.aliasesToMakeVisible;r<i.length;r++){var a=i[r];e.pushIfUnique(l,a)}else l=t.aliasesToMakeVisible}else{var o=b(t);if(o)return o.typeName?n.addDiagnostic(e.createDiagnosticForNode(t.errorNode||o.errorNode,o.diagnosticMessage,e.getTextOfNode(o.typeName),t.errorSymbolName,t.errorModuleName)):n.addDiagnostic(e.createDiagnosticForNode(t.errorNode||o.errorNode,o.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function w(){return f?e.declarationNameToString(f):m&&e.getNameOfDeclaration(m)?e.declarationNameToString(e.getNameOfDeclaration(m)):m&&e.isExportAssignment(m)?m.isExportEquals?"export=":"default":"(Missing)"}function M(n,t){var i=b;b=function(t){return t.errorNode&&e.canProduceDiagnostics(t.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(t.errorNode)(t):{diagnosticMessage:t.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:t.errorNode||n}};var a=I.getDeclarationStatementsForSourceFile(n,r,C,t);return b=i,a}function F(n,t){return k||!e.isUnparsedSource(n)&&e.isSourceFileJS(n)||e.forEach(n.referencedFiles,(function(r){var i=A.getSourceFileFromReference(n,r);i&&t.set(e.getOriginalNodeId(i),i)})),t}function G(n,t){return e.forEach(n.libReferenceDirectives,(function(n){A.getLibFileFromReference(n)&&t.set(e.toFileNameLowerCase(n.fileName),!0)})),t}function B(n){return 79===n.kind?n:200===n.kind?D.updateArrayBindingPattern(n,e.visitNodes(n.elements,t)):D.updateObjectBindingPattern(n,e.visitNodes(n.elements,t));function t(e){return 225===e.kind?e:D.updateBindingElement(e,e.dotDotDotToken,e.propertyName,B(e.name),V(e)?e.initializer:void 0)}}function U(n,t,r){var i;d||(i=b,b=e.createGetSymbolAccessibilityDiagnosticForNode(n));var a=D.updateParameterDeclaration(n,void 0,function(n,t,r){return e.factory.createModifiersFromModifierFlags(o(n,t,void 0))}(n,t),n.dotDotDotToken,B(n.name),I.isOptionalParameter(n)?n.questionToken||D.createToken(57):void 0,K(n,r||n.type,!0),j(n));return d||(b=i),a}function V(n){return function(n){switch(n.kind){case 165:case 164:return!e.hasEffectiveModifier(n,8);case 162:case 252:return!0}return!1}(n)&&I.isLiteralConstDeclaration(e.getParseTreeNode(n))}function j(n){if(V(n))return I.createLiteralConstValue(e.getParseTreeNode(n),C)}function K(n,t,i){if((i||!e.hasEffectiveModifier(n,8))&&!V(n)){var o,s=162===n.kind&&(I.isRequiredInitializedParameter(n)||I.isOptionalUninitializedParameterProperty(n));return t&&!s?e.visitNode(t,ee):e.getParseTreeNode(n)?171===n.kind?D.createKeywordTypeNode(129):(f=n.name,d||(o=b,b=e.createGetSymbolAccessibilityDiagnosticForNode(n)),252===n.kind||201===n.kind?c(I.createTypeOfDeclaration(n,a,r,C)):162===n.kind||165===n.kind||164===n.kind?n.initializer?c(I.createTypeOfDeclaration(n,a,r,C,s)||I.createTypeOfExpression(n.initializer,a,r,C)):c(I.createTypeOfDeclaration(n,a,r,C,s)):c(I.createReturnTypeOfSignatureDeclaration(n,a,r,C))):t?e.visitNode(t,ee):D.createKeywordTypeNode(129)}function c(e){return f=void 0,d||(b=o),e||D.createKeywordTypeNode(129)}}function H(n){switch((n=e.getParseTreeNode(n)).kind){case 254:case 259:case 256:case 255:case 257:case 258:return!I.isDeclarationVisible(n);case 252:return!W(n);case 263:case 264:case 270:case 269:return!1;case 168:return!0}return!1}function W(n){return!e.isOmittedExpression(n)&&(e.isBindingPattern(n.name)?e.some(n.name.elements,W):I.isDeclarationVisible(n))}function z(n,t,r){if(!e.hasEffectiveModifier(n,8)){var i=e.map(t,(function(e){return U(e,r)}));if(i)return D.createNodeArray(i,t.hasTrailingComma)}}function J(n,t){var r;if(!t){var i=e.getThisParameter(n);i&&(r=[U(i)])}if(e.isSetAccessorDeclaration(n)){var a=void 0;if(!t){var o=e.getSetAccessorValueParameter(n);o&&(a=U(o,void 0,ce(n,I.getAllAccessorDeclarations(n))))}a||(a=D.createParameterDeclaration(void 0,void 0,void 0,"value")),r=e.append(r,a)}return D.createNodeArray(r||e.emptyArray)}function q(n,t){return e.hasEffectiveModifier(n,8)?void 0:e.visitNodes(t,ee)}function X(n){return e.isSourceFile(n)||e.isTypeAliasDeclaration(n)||e.isModuleDeclaration(n)||e.isClassDeclaration(n)||e.isInterfaceDeclaration(n)||e.isFunctionLike(n)||e.isIndexSignatureDeclaration(n)||e.isMappedTypeNode(n)}function Y(e,n){P(I.isEntityNameVisible(e,n)),O(I.getTypeReferenceDirectivesForEntityName(e))}function Q(n,t){return e.hasJSDocNodes(n)&&e.hasJSDocNodes(t)&&(n.jsDoc=t.jsDoc),e.setCommentRange(n,e.getCommentRange(t))}function Z(t,r){if(r){if(S=S||259!==t.kind&&198!==t.kind,e.isStringLiteralLike(r))if(T){var i=e.getExternalModuleNameFromDeclaration(n.getEmitHost(),I,t);if(i)return D.createStringLiteral(i)}else{var a=I.getSymbolOfExternalModuleSpecifier(r);a&&(p||(p=[])).push(a)}return r}}function $(n){for(;e.length(l);){var t=l.shift();if(!e.isLateVisibilityPaintedStatement(t))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(e.SyntaxKind?e.SyntaxKind[t.kind]:t.kind));var r=E;E=t.parent&&e.isSourceFile(t.parent)&&!(e.isExternalModule(t.parent)&&T);var i=re(t);E=r,u.set(e.getOriginalNodeId(t),i)}return e.visitNodes(n,(function(n){if(e.isLateVisibilityPaintedStatement(n)){var t=e.getOriginalNodeId(n);if(u.has(t)){var r=u.get(t);return u.delete(t),r&&((e.isArray(r)?e.some(r,e.needsScopeMarker):e.needsScopeMarker(r))&&(x=!0),e.isSourceFile(n.parent)&&(e.isArray(r)?e.some(r,e.isExternalModuleIndicator):e.isExternalModuleIndicator(r))&&(S=!0)),r}}return n}))}function ee(t){if(!ae(t)){if(e.isDeclaration(t)){if(H(t))return;if(e.hasDynamicName(t)&&!I.isLateBound(e.getParseTreeNode(t)))return}if(!(e.isFunctionLike(t)&&I.isImplementationOfOverload(t)||e.isSemicolonClassElement(t))){var r;X(t)&&(r=a,a=t);var i=b,o=e.canProduceDiagnostics(t),s=d,c=(180===t.kind||193===t.kind)&&257!==t.parent.kind;if((e.isMethodDeclaration(t)||e.isMethodSignature(t))&&e.hasEffectiveModifier(t,8)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return v(D.createPropertyDeclaration(void 0,se(t),t.name,void 0,void 0,void 0))}if(o&&!d&&(b=e.createGetSymbolAccessibilityDiagnosticForNode(t)),e.isTypeQueryNode(t)&&Y(t.exprName,a),c&&(d=!0),function(e){switch(e.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}(t))switch(t.kind){case 226:(e.isEntityName(t.expression)||e.isEntityNameExpression(t.expression))&&Y(t.expression,a);var l=e.visitEachChild(t,ee,n);return v(D.updateExpressionWithTypeArguments(l,l.expression,l.typeArguments));case 176:return Y(t.typeName,a),l=e.visitEachChild(t,ee,n),v(D.updateTypeReferenceNode(l,l.typeName,l.typeArguments));case 173:return v(D.updateConstructSignature(t,q(t,t.typeParameters),z(t,t.parameters),K(t,t.type)));case 169:return v(D.createConstructorDeclaration(void 0,se(t),z(t,t.parameters,0),void 0));case 167:return e.isPrivateIdentifier(t.name)?v(void 0):v(D.createMethodDeclaration(void 0,se(t),void 0,t.name,t.questionToken,q(t,t.typeParameters),z(t,t.parameters),K(t,t.type),void 0));case 170:if(e.isPrivateIdentifier(t.name))return v(void 0);var u=ce(t,I.getAllAccessorDeclarations(t));return v(D.updateGetAccessorDeclaration(t,void 0,se(t),t.name,J(t,e.hasEffectiveModifier(t,8)),K(t,u),void 0));case 171:return e.isPrivateIdentifier(t.name)?v(void 0):v(D.updateSetAccessorDeclaration(t,void 0,se(t),t.name,J(t,e.hasEffectiveModifier(t,8)),void 0));case 165:return e.isPrivateIdentifier(t.name)?v(void 0):v(D.updatePropertyDeclaration(t,void 0,se(t),t.name,t.questionToken,K(t,t.type),j(t)));case 164:return e.isPrivateIdentifier(t.name)?v(void 0):v(D.updatePropertySignature(t,se(t),t.name,t.questionToken,K(t,t.type)));case 166:return e.isPrivateIdentifier(t.name)?v(void 0):v(D.updateMethodSignature(t,se(t),t.name,t.questionToken,q(t,t.typeParameters),z(t,t.parameters),K(t,t.type)));case 172:return v(D.updateCallSignature(t,q(t,t.typeParameters),z(t,t.parameters),K(t,t.type)));case 174:return v(D.updateIndexSignature(t,void 0,se(t),z(t,t.parameters),e.visitNode(t.type,ee)||D.createKeywordTypeNode(129)));case 252:return e.isBindingPattern(t.name)?ie(t.name):(c=!0,d=!0,v(D.updateVariableDeclaration(t,t.name,void 0,K(t,t.type),j(t))));case 161:return function(n){return 167===n.parent.kind&&e.hasEffectiveModifier(n.parent,8)}(t)&&(t.default||t.constraint)?v(D.updateTypeParameterDeclaration(t,t.name,void 0,void 0)):v(e.visitEachChild(t,ee,n));case 187:var p=e.visitNode(t.checkType,ee),m=e.visitNode(t.extendsType,ee),g=a;a=t.trueType;var y=e.visitNode(t.trueType,ee);a=g;var h=e.visitNode(t.falseType,ee);return v(D.updateConditionalTypeNode(t,p,m,y,h));case 177:return v(D.updateFunctionTypeNode(t,e.visitNodes(t.typeParameters,ee),z(t,t.parameters),e.visitNode(t.type,ee)));case 178:return v(D.updateConstructorTypeNode(t,se(t),e.visitNodes(t.typeParameters,ee),z(t,t.parameters),e.visitNode(t.type,ee)));case 198:return e.isLiteralImportTypeNode(t)?v(D.updateImportTypeNode(t,D.updateLiteralTypeNode(t.argument,Z(t,t.argument.literal)),t.qualifier,e.visitNodes(t.typeArguments,ee,e.isTypeNode),t.isTypeOf)):v(t);default:e.Debug.assertNever(t,"Attempted to process unhandled node kind: "+e.SyntaxKind[t.kind])}return e.isTupleTypeNode(t)&&e.getLineAndCharacterOfPosition(_,t.pos).line===e.getLineAndCharacterOfPosition(_,t.end).line&&e.setEmitFlags(t,1),v(e.visitEachChild(t,ee,n))}}function v(n){return n&&o&&e.hasDynamicName(t)&&function(n){var t;d||(t=b,b=e.createGetSymbolAccessibilityDiagnosticForNodeName(n)),f=n.name,e.Debug.assert(I.isLateBound(e.getParseTreeNode(n))),Y(n.name.expression,a),d||(b=t),f=void 0}(t),X(t)&&(a=r),o&&!d&&(b=i),c&&(d=s),n===t?n:n&&e.setOriginalNode(Q(n,t),t)}}function ne(n){if(function(e){switch(e.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}(n)&&!ae(n)){switch(n.kind){case 270:return e.isSourceFile(n.parent)&&(S=!0),L=!0,D.updateExportDeclaration(n,void 0,n.modifiers,n.isTypeOnly,n.exportClause,Z(n,n.moduleSpecifier));case 269:if(e.isSourceFile(n.parent)&&(S=!0),L=!0,79===n.expression.kind)return n;var t=D.createUniqueName("_default",16);b=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:n}},m=n;var i=D.createVariableDeclaration(t,void 0,I.createTypeOfExpression(n.expression,n,r,C),void 0);return m=void 0,[D.createVariableStatement(E?[D.createModifier(134)]:[],D.createVariableDeclarationList([i],2)),D.updateExportAssignment(n,n.decorators,n.modifiers,t)]}var a=re(n);return u.set(e.getOriginalNodeId(n),a),n}}function te(n){if(e.isImportEqualsDeclaration(n)||e.hasEffectiveModifier(n,512)||!e.canHaveModifiers(n))return n;var t=D.createModifiersFromModifierFlags(27646&e.getEffectiveModifierFlags(n));return D.updateModifiers(n,t)}function re(n){if(!ae(n)){switch(n.kind){case 263:return function(n){if(I.isDeclarationVisible(n)){if(275===n.moduleReference.kind){var t=e.getExternalModuleImportEqualsDeclarationExpression(n);return D.updateImportEqualsDeclaration(n,void 0,n.modifiers,n.isTypeOnly,n.name,D.updateExternalModuleReference(n.moduleReference,Z(n,t)))}var r=b;return b=e.createGetSymbolAccessibilityDiagnosticForNode(n),Y(n.moduleReference,a),b=r,n}}(n);case 264:return function(n){if(!n.importClause)return D.updateImportDeclaration(n,void 0,n.modifiers,n.importClause,Z(n,n.moduleSpecifier));var t=n.importClause&&n.importClause.name&&I.isDeclarationVisible(n.importClause)?n.importClause.name:void 0;if(!n.importClause.namedBindings)return t&&D.updateImportDeclaration(n,void 0,n.modifiers,D.updateImportClause(n.importClause,n.importClause.isTypeOnly,t,void 0),Z(n,n.moduleSpecifier));if(266===n.importClause.namedBindings.kind){var r=I.isDeclarationVisible(n.importClause.namedBindings)?n.importClause.namedBindings:void 0;return t||r?D.updateImportDeclaration(n,void 0,n.modifiers,D.updateImportClause(n.importClause,n.importClause.isTypeOnly,t,r),Z(n,n.moduleSpecifier)):void 0}var i=e.mapDefined(n.importClause.namedBindings.elements,(function(e){return I.isDeclarationVisible(e)?e:void 0}));return i&&i.length||t?D.updateImportDeclaration(n,void 0,n.modifiers,D.updateImportClause(n.importClause,n.importClause.isTypeOnly,t,i&&i.length?D.updateNamedImports(n.importClause.namedBindings,i):void 0),Z(n,n.moduleSpecifier)):I.isImportRequiredByAugmentation(n)?D.updateImportDeclaration(n,void 0,n.modifiers,void 0,Z(n,n.moduleSpecifier)):void 0}(n)}if(!(e.isDeclaration(n)&&H(n)||e.isFunctionLike(n)&&I.isImplementationOfOverload(n))){var t;X(n)&&(t=a,a=n);var o=e.canProduceDiagnostics(n),s=b;o&&(b=e.createGetSymbolAccessibilityDiagnosticForNode(n));var c=E;switch(n.kind){case 257:return _e(D.updateTypeAliasDeclaration(n,void 0,se(n),n.name,e.visitNodes(n.typeParameters,ee,e.isTypeParameterDeclaration),e.visitNode(n.type,ee,e.isTypeNode)));case 256:return _e(D.updateInterfaceDeclaration(n,void 0,se(n),n.name,q(n,n.typeParameters),le(n.heritageClauses),e.visitNodes(n.members,ee)));case 254:var l=_e(D.updateFunctionDeclaration(n,void 0,se(n),void 0,n.name,q(n,n.typeParameters),z(n,n.parameters),K(n,n.type),void 0));if(l&&I.isExpandoFunctionDeclaration(n)&&function(n){var t;if(n.body)return!0;var r=null===(t=n.symbol.declarations)||void 0===t?void 0:t.filter((function(n){return e.isFunctionDeclaration(n)&&!n.body}));return!r||r.indexOf(n)===r.length-1}(n)){var d=I.getPropertiesOfContainerFunction(n),p=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,l.name||D.createIdentifier("_default"),D.createModuleBlock([]),16);e.setParent(p,a),p.locals=e.createSymbolTable(d),p.symbol=d[0].parent;var _=[],g=e.mapDefined(d,(function(n){if(n.valueDeclaration&&e.isPropertyAccessExpression(n.valueDeclaration)){b=e.createGetSymbolAccessibilityDiagnosticForNode(n.valueDeclaration);var t=I.createTypeOfDeclaration(n.valueDeclaration,p,r,C);b=s;var i=e.unescapeLeadingUnderscores(n.escapedName),a=e.isStringANonContextualKeyword(i),o=a?D.getGeneratedNameForNode(n.valueDeclaration):D.createIdentifier(i);a&&_.push([o,i]);var c=D.createVariableDeclaration(o,void 0,t,void 0);return D.createVariableStatement(a?void 0:[D.createToken(93)],D.createVariableDeclarationList([c]))}}));_.length?g.push(D.createExportDeclaration(void 0,void 0,!1,D.createNamedExports(e.map(_,(function(e){var n=e[0],t=e[1];return D.createExportSpecifier(n,t)}))))):g=e.mapDefined(g,(function(e){return D.updateModifiers(e,0)}));var y=D.createModuleDeclaration(void 0,se(n),n.name,D.createModuleBlock(g),16);if(!e.hasEffectiveModifier(l,512))return[l,y];var h=D.createModifiersFromModifierFlags(-514&e.getEffectiveModifierFlags(l)|2),v=D.updateFunctionDeclaration(l,void 0,h,void 0,l.name,l.typeParameters,l.parameters,l.type,void 0),T=D.updateModuleDeclaration(y,void 0,h,y.name,y.body),A=D.createExportAssignment(void 0,void 0,!1,y.name);return e.isSourceFile(n.parent)&&(S=!0),L=!0,[v,T,A]}return l;case 259:E=!1;var N=n.body;if(N&&260===N.kind){var k=x,R=L;L=!1,x=!1;var O=$(e.visitNodes(N.statements,ne));8388608&n.flags&&(x=!1),e.isGlobalScopeAugmentation(n)||(me=O,e.some(me,oe))||L||(O=x?D.createNodeArray(i(i([],O,!0),[e.createEmptyExports(D)],!1)):e.visitNodes(O,te));var P=D.updateModuleBlock(N,O);E=c,x=k,L=R;var w=se(n);return _e(D.updateModuleDeclaration(n,void 0,w,e.isExternalModuleAugmentation(n)?Z(n,n.name):n.name,P))}E=c,w=se(n),E=!1,e.visitNode(N,ne);var M=e.getOriginalNodeId(N);return P=u.get(M),u.delete(M),_e(D.updateModuleDeclaration(n,void 0,w,n.name,P));case 255:f=n.name,m=n,h=D.createNodeArray(se(n));var F=q(n,n.typeParameters),G=e.getFirstConstructorWithBody(n),B=void 0;if(G){var U=b;B=e.compact(e.flatMap(G.parameters,(function(n){if(e.hasSyntacticModifier(n,16476)&&!ae(n))return b=e.createGetSymbolAccessibilityDiagnosticForNode(n),79===n.name.kind?Q(D.createPropertyDeclaration(void 0,se(n),n.name,n.questionToken,K(n,n.type),j(n)),n):function t(r){for(var i,a=0,o=r.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(e.isBindingPattern(s.name)&&(i=e.concatenate(i,t(s.name))),(i=i||[]).push(D.createPropertyDeclaration(void 0,se(n),s.name,void 0,K(s,void 0),void 0)))}return i}(n.name)}))),b=U}var V=e.some(n.members,(function(n){return!!n.name&&e.isPrivateIdentifier(n.name)}))?[D.createPropertyDeclaration(void 0,void 0,D.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,J=e.concatenate(e.concatenate(V,B),e.visitNodes(n.members,ee)),re=D.createNodeArray(J),ie=e.getEffectiveBaseTypeNode(n);if(ie&&!e.isEntityNameExpression(ie.expression)&&104!==ie.expression.kind){var ce=n.name?e.unescapeLeadingUnderscores(n.name.escapedText):"default",ue=D.createUniqueName(ce+"_base",16);b=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:ie,typeName:n.name}};var de=D.createVariableDeclaration(ue,void 0,I.createTypeOfExpression(ie.expression,n,r,C),void 0),pe=D.createVariableStatement(E?[D.createModifier(134)]:[],D.createVariableDeclarationList([de],2)),fe=D.createNodeArray(e.map(n.heritageClauses,(function(n){if(94===n.token){var t=b;b=e.createGetSymbolAccessibilityDiagnosticForNode(n.types[0]);var r=D.updateHeritageClause(n,e.map(n.types,(function(n){return D.updateExpressionWithTypeArguments(n,ue,e.visitNodes(n.typeArguments,ee))})));return b=t,r}return D.updateHeritageClause(n,e.visitNodes(D.createNodeArray(e.filter(n.types,(function(n){return e.isEntityNameExpression(n.expression)||104===n.expression.kind}))),ee))})));return[pe,_e(D.updateClassDeclaration(n,void 0,h,n.name,F,fe,re))]}return fe=le(n.heritageClauses),_e(D.updateClassDeclaration(n,void 0,h,n.name,F,fe,re));case 235:return _e(function(n){if(e.forEach(n.declarationList.declarations,W)){var t=e.visitNodes(n.declarationList.declarations,ee);if(e.length(t))return D.updateVariableStatement(n,D.createNodeArray(se(n)),D.updateVariableDeclarationList(n.declarationList,t))}}(n));case 258:return _e(D.updateEnumDeclaration(n,void 0,D.createNodeArray(se(n)),n.name,D.createNodeArray(e.mapDefined(n.members,(function(e){if(!ae(e)){var n=I.getConstantValue(e);return Q(D.updateEnumMember(e,e.name,void 0!==n?"string"==typeof n?D.createStringLiteral(n):D.createNumericLiteral(n):void 0),e)}})))))}return e.Debug.assertNever(n,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[n.kind])}}var me;function _e(r){return X(n)&&(a=t),o&&(b=s),259===n.kind&&(E=c),r===n?r:(m=void 0,f=void 0,r&&e.setOriginalNode(Q(r,n),n))}}function ie(n){return e.flatten(e.mapDefined(n.elements,(function(n){return function(n){if(225!==n.kind&&n.name){if(!W(n))return;return e.isBindingPattern(n.name)?ie(n.name):D.createVariableDeclaration(n.name,void 0,K(n,void 0),void 0)}}(n)})))}function ae(e){return!!R&&!!e&&t(e,_)}function oe(n){return e.isExportAssignment(n)||e.isExportDeclaration(n)}function se(n){var t=e.getEffectiveModifierFlags(n),r=function(n){var t=11003,r=E&&!function(e){return 256===e.kind}(n)?2:0,i=300===n.parent.kind;return(!i||T&&i&&e.isExternalModule(n.parent))&&(t^=2,r=0),o(n,t,r)}(n);return t===r?n.modifiers:D.createModifiersFromModifierFlags(r)}function ce(n,t){var r=s(n);return r||n===t.firstAccessor||(r=s(t.firstAccessor),b=e.createGetSymbolAccessibilityDiagnosticForNode(t.firstAccessor)),!r&&t.secondAccessor&&n!==t.secondAccessor&&(r=s(t.secondAccessor),b=e.createGetSymbolAccessibilityDiagnosticForNode(t.secondAccessor)),r}function le(n){return D.createNodeArray(e.filter(e.map(n,(function(n){return D.updateHeritageClause(n,e.visitNodes(D.createNodeArray(e.filter(n.types,(function(t){return e.isEntityNameExpression(t.expression)||94===n.token&&104===t.expression.kind}))),ee))})),(function(e){return e.types&&!!e.types.length})))}}function o(n,t,r){void 0===t&&(t=27643),void 0===r&&(r=0);var i=e.getEffectiveModifierFlags(n)&t|r;return 512&i&&!(1&i)&&(i^=1),512&i&&2&i&&(i^=2),i}function s(e){if(e)return 170===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=a}(u||(u={})),function(e){var n,t;function r(n,t,r){if(r)return e.emptyArray;var i=e.getEmitScriptTarget(n),a=e.getEmitModuleKind(n),o=[];return e.addRange(o,t&&e.map(t.before,s)),o.push(e.transformTypeScript),o.push(e.transformClassFields),e.getJSXTransformEnabled(n)&&o.push(e.transformJsx),i<99&&o.push(e.transformESNext),i<8&&o.push(e.transformES2021),i<7&&o.push(e.transformES2020),i<6&&o.push(e.transformES2019),i<5&&o.push(e.transformES2018),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(n){switch(n){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}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,t&&e.map(t.after,s)),o}function a(n){var t=[];return t.push(e.transformDeclarations),e.addRange(t,n&&e.map(n.afterDeclarations,c)),t}function o(n,t){return function(r){var i=n(r);return"function"==typeof i?t(r,i):function(n){return function(t){return e.isBundle(t)?n.transformBundle(t):n.transformSourceFile(t)}}(i)}}function s(n){return o(n,e.chainBundle)}function c(e){return o(e,(function(e,n){return n}))}function l(e,n){return n}function u(e,n,t){t(e,n)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(n||(n={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(t||(t={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,n,t){return{scriptTransformers:r(e,n,t),declarationTransformers:a(n)}},e.noEmitSubstitution=l,e.noEmitNotification=u,e.transformNodes=function(n,t,r,a,o,s,c){for(var d,p,f,m,_,g=new Array(350),y=0,h=[],v=[],b=[],E=[],T=0,S=!1,x=[],L=0,D=l,A=u,C=0,I=[],N={factory:r,getCompilerOptions:function(){return a},getEmitResolver:function(){return n},getEmitHost:function(){return t},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(N)})),startLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),h[T]=d,v[T]=p,b[T]=f,E[T]=y,T++,d=void 0,p=void 0,f=void 0,y=0},suspendLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is already suspended."),S=!0},resumeLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(S,"Lexical environment is not suspended."),S=!1},endLexicalEnvironment:function(){var n;if(e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),d||p||f){if(p&&(n=i([],p,!0)),d){var t=r.createVariableStatement(void 0,r.createVariableDeclarationList(d));e.setEmitFlags(t,1048576),n?n.push(t):n=[t]}f&&(n=i(n?i([],n,!0):[],f,!0))}return T--,d=h[T],p=v[T],f=b[T],y=E[T],0===T&&(h=[],v=[],b=[],E=[]),n},setLexicalEnvironmentFlags:function(e,n){y=n?y|e:y&~e},getLexicalEnvironmentFlags:function(){return y},hoistVariableDeclaration:function(n){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed.");var t=e.setEmitFlags(r.createVariableDeclaration(n),64);d?d.push(t):d=[t],1&y&&(y|=2)},hoistFunctionDeclaration:function(n){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(n,1048576),p?p.push(n):p=[n]},addInitializationStatement:function(n){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(n,1048576),f?f.push(n):f=[n]},startBlockScope:function(){e.Debug.assert(C>0,"Cannot start a block scope during initialization."),e.Debug.assert(C<2,"Cannot start a block scope after transformation has completed."),x[L]=m,L++,m=void 0},endBlockScope:function(){e.Debug.assert(C>0,"Cannot end a block scope during initialization."),e.Debug.assert(C<2,"Cannot end a block scope after transformation has completed.");var n=e.some(m)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(m.map((function(e){return r.createVariableDeclaration(e)})),1))]:void 0;return L--,m=x[L],0===L&&(x=[]),n},addBlockScopedVariable:function(n){e.Debug.assert(L>0,"Cannot add a block scoped variable outside of an iteration body."),(m||(m=[])).push(n)},requestEmitHelper:function n(t){if(e.Debug.assert(C>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(var r=0,i=t.dependencies;r<i.length;r++){n(i[r])}_=e.append(_,t)},readEmitHelpers:function(){e.Debug.assert(C>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed.");var n=_;return _=void 0,n},enableSubstitution:function(n){e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),g[n]|=1},enableEmitNotification:function(n){e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),g[n]|=2},isSubstitutionEnabled:U,isEmitNotificationEnabled:V,get onSubstituteNode(){return D},set onSubstituteNode(n){e.Debug.assert(C<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),D=n},get onEmitNode(){return A},set onEmitNode(n){e.Debug.assert(C<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),A=n},addDiagnostic:function(e){I.push(e)}},k=0,R=o;k<R.length;k++){var O=R[k];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(O)))}e.performance.mark("beforeTransform");var P=s.map((function(e){return e(N)})),w=function(e){for(var n=0,t=P;n<t.length;n++)e=(0,t[n])(e);return e};C=1;for(var M=[],F=0,G=o;F<G.length;F++)O=G[F],null===e.tracing||void 0===e.tracing||e.tracing.push("emit","transformNodes",300===O.kind?{path:O.path}:{kind:O.kind,pos:O.pos,end:O.end}),M.push((c?w:B)(O)),null===e.tracing||void 0===e.tracing||e.tracing.pop();return C=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:M,substituteNode:function(n,t){return e.Debug.assert(C<3,"Cannot substitute a node after the result is disposed."),t&&U(t)&&D(n,t)||t},emitNodeWithNotification:function(n,t,r){e.Debug.assert(C<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(V(t)?A(n,t,r):r(n,t))},isEmitNotificationEnabled:V,dispose:function(){if(C<3){for(var n=0,t=o;n<t.length;n++){var r=t[n];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(r)))}d=void 0,h=void 0,p=void 0,v=void 0,D=void 0,A=void 0,_=void 0,C=3}},diagnostics:I};function B(n){return!n||e.isSourceFile(n)&&n.isDeclarationFile?n:w(n)}function U(n){return 0!=(1&g[n.kind])&&0==(4&e.getEmitFlags(n))}function V(n){return 0!=(2&g[n.kind])||0!=(2&e.getEmitFlags(n))}},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:l,onEmitNode:u,addDiagnostic:e.noop}}(u||(u={})),function(e){var n,t,r=function(){var e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}();function a(n,t,r,i,a,s){void 0===i&&(i=!1);var l=e.isArray(r)?r:e.getSourceFilesToEmit(n,r,i),u=n.getCompilerOptions();if(e.outFile(u)){var d=n.getPrependNodes();if(l.length||d.length){var p=e.factory.createBundle(l,d);if(_=t(c(p,n,i),p))return _}}else{if(!a)for(var f=0,m=l;f<m.length;f++){var _,g=m[f];if(_=t(c(g,n,i),g))return _}if(s){var y=o(u);if(y)return t({buildInfoPath:y},void 0)}}}function o(n){var t=n.configFilePath;if(e.isIncrementalCompilation(n)){if(n.tsBuildInfoFile)return n.tsBuildInfoFile;var r,i=e.outFile(n);if(i)r=e.removeFileExtension(i);else{if(!t)return;var a=e.removeFileExtension(t);r=n.outDir?n.rootDir?e.resolvePath(n.outDir,e.getRelativePathFromDirectory(n.rootDir,a,!0)):e.combinePaths(n.outDir,e.getBaseFileName(a)):a}return r+".tsbuildinfo"}}function s(n,t){var r=e.outFile(n),i=n.emitDeclarationOnly?void 0:r,a=i&&l(i,n),s=t||e.getEmitDeclarations(n)?e.removeFileExtension(r)+".d.ts":void 0;return{jsFilePath:i,sourceMapFilePath:a,declarationFilePath:s,declarationMapPath:s&&e.getAreDeclarationMapsEnabled(n)?s+".map":void 0,buildInfoPath:o(n)}}function c(n,t,r){var i=t.getCompilerOptions();if(301===n.kind)return s(i,r);var a=e.getOwnEmitOutputFilePath(n.fileName,t,u(n,i)),o=e.isJsonSourceFile(n),c=o&&0===e.comparePaths(n.fileName,a,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),d=i.emitDeclarationOnly||c?void 0:a,p=!d||e.isJsonSourceFile(n)?void 0:l(d,i),f=r||e.getEmitDeclarations(i)&&!o?e.getDeclarationEmitOutputFilePath(n.fileName,t):void 0;return{jsFilePath:d,sourceMapFilePath:p,declarationFilePath:f,declarationMapPath:f&&e.getAreDeclarationMapsEnabled(i)?f+".map":void 0,buildInfoPath:void 0}}function l(e,n){return n.sourceMap&&!n.inlineSourceMap?e+".map":void 0}function u(n,t){if(e.isJsonSourceFile(n))return".json";if(1===t.jsx)if(e.isSourceFileJS(n)){if(e.fileExtensionIs(n.fileName,".jsx"))return".jsx"}else if(1===n.languageVariant)return".jsx";return".js"}function d(n,t,r,i,a){return i?e.resolvePath(i,e.getRelativePathFromDirectory(a?a():h(t,r),n,r)):n}function p(n,t,r,i){return e.Debug.assert(!e.fileExtensionIs(n,".d.ts")&&!e.fileExtensionIs(n,".json")),e.changeExtension(d(n,t,r,t.options.declarationDir||t.options.outDir,i),".d.ts")}function f(n,t,r,i){if(!t.options.emitDeclarationOnly){var a=e.fileExtensionIs(n,".json"),o=e.changeExtension(d(n,t,r,t.options.outDir,i),a?".json":1===t.options.jsx&&(e.fileExtensionIs(n,".tsx")||e.fileExtensionIs(n,".jsx"))?".jsx":".js");return a&&0===e.comparePaths(n,o,e.Debug.checkDefined(t.options.configFilePath),r)?void 0:o}}function m(){var n;return{addOutput:function(e){e&&(n||(n=[])).push(e)},getOutputs:function(){return n||e.emptyArray}}}function _(e,n){var t=s(e.options,!1),r=t.jsFilePath,i=t.sourceMapFilePath,a=t.declarationFilePath,o=t.declarationMapPath,c=t.buildInfoPath;n(r),n(i),n(a),n(o),n(c)}function g(n,t,r,i,a){if(!e.fileExtensionIs(t,".d.ts")){var o=f(t,n,r,a);if(i(o),!e.fileExtensionIs(t,".json")&&(o&&n.options.sourceMap&&i(o+".map"),e.getEmitDeclarations(n.options))){var s=p(t,n,r,a);i(s),n.options.declarationMap&&i(s+".map")}}}function y(n,t,r,i,a){var o;return n.rootDir?(o=e.getNormalizedAbsolutePath(n.rootDir,r),null==a||a(n.rootDir)):n.composite&&n.configFilePath?(o=e.getDirectoryPath(e.normalizeSlashes(n.configFilePath)),null==a||a(o)):o=e.computeCommonSourceDirectoryOfFilenames(t(),r,i),o&&o[o.length-1]!==e.directorySeparator&&(o+=e.directorySeparator),o}function h(n,t){var r=n.options,i=n.fileNames;return y(r,(function(){return e.filter(i,(function(n){return!(r.noEmitForJsFiles&&e.fileExtensionIsOneOf(n,e.supportedJSExtensions)||e.fileExtensionIs(n,".d.ts"))}))}),e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(r.configFilePath))),e.createGetCanonicalFileName(!t))}function v(n,t,r,i,o,s,c){var l,u,d=i.scriptTransformers,p=i.declarationTransformers,f=t.getCompilerOptions(),m=f.sourceMap||f.inlineSourceMap||e.getAreDeclarationMapsEnabled(f)?[]:void 0,_=f.listEmittedFiles?[]:void 0,g=e.createDiagnosticCollection(),y=e.getNewLineCharacter(f,(function(){return t.getNewLine()})),h=e.createTextWriter(y),v=e.performance.createTimer("printTime","beforePrint","afterPrint"),E=v.enter,S=v.exit,x=!1;return E(),a(t,(function(i,a){var s,m=i.jsFilePath,y=i.sourceMapFilePath,h=i.declarationFilePath,v=i.declarationMapPath,E=i.buildInfoPath;function S(n){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,n,t.getCanonicalFileName))}E&&a&&e.isBundle(a)&&(s=e.getDirectoryPath(e.getNormalizedAbsolutePath(E,t.getCurrentDirectory())),l={commonSourceDirectory:S(t.getCommonSourceDirectory()),sourceFiles:a.sourceFiles.map((function(n){return S(e.getNormalizedAbsolutePath(n.fileName,t.getCurrentDirectory()))}))}),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:m}),function(r,i,a,s){if(r&&!o&&i)if(i&&t.isEmitBlocked(i)||f.noEmit)x=!0;else{var c=e.transformNodes(n,t,e.factory,f,[r],d,!1),u=T({removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:f.noEmitHelpers,module:f.module,target:f.target,sourceMap:f.sourceMap,inlineSourceMap:f.inlineSourceMap,inlineSources:f.inlineSources,extendedDiagnostics:f.extendedDiagnostics,writeBundleFileInfo:!!l,relativeToBuildInfo:s},{hasGlobalName:n.hasGlobalName,onEmitNode:c.emitNodeWithNotification,isEmitNotificationEnabled:c.isEmitNotificationEnabled,substituteNode:c.substituteNode});e.Debug.assert(1===c.transformed.length,"Should only see one output from the transform"),D(i,a,c.transformed[0],u,f),c.dispose(),l&&(l.js=u.bundleFileInfo)}}(a,m,y,S),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:h}),function(r,i,a,s){if(r)if(i){var d=e.isSourceFile(r)?[r]:r.sourceFiles,m=c?d:e.filter(d,e.isSourceFileNotJson),_=e.outFile(f)?[e.factory.createBundle(m,e.isSourceFile(r)?void 0:r.prepends)]:m;o&&!e.getEmitDeclarations(f)&&m.forEach(L);var y=e.transformNodes(n,t,e.factory,f,_,p,!1);if(e.length(y.diagnostics))for(var h=0,v=y.diagnostics;h<v.length;h++){var b=v[h];g.add(b)}var E=T({removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:!0,module:f.module,target:f.target,sourceMap:f.sourceMap,inlineSourceMap:f.inlineSourceMap,extendedDiagnostics:f.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!l,recordInternalSection:!!l,relativeToBuildInfo:s},{hasGlobalName:n.hasGlobalName,onEmitNode:y.emitNodeWithNotification,isEmitNotificationEnabled:y.isEmitNotificationEnabled,substituteNode:y.substituteNode}),S=!!y.diagnostics&&!!y.diagnostics.length||!!t.isEmitBlocked(i)||!!f.noEmit;if(x=x||S,(!S||c)&&(e.Debug.assert(1===y.transformed.length,"Should only see one output from the decl transform"),D(i,a,y.transformed[0],E,{sourceMap:!c&&f.declarationMap,sourceRoot:f.sourceRoot,mapRoot:f.mapRoot,extendedDiagnostics:f.extendedDiagnostics}),c&&300===y.transformed[0].kind)){var A=y.transformed[0];u=A.exportedModulesFromDeclarationEmit}y.dispose(),l&&(l.dts=E.bundleFileInfo)}else(o||f.emitDeclarationOnly)&&(x=!0)}(a,h,v,S),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:E}),function(n,i){if(i&&!r&&!x){var a=t.getProgramBuildInfo();if(t.isEmitBlocked(i))x=!0;else{var o=e.version;e.writeFile(t,g,i,b({bundle:n,program:a,version:o}),!1)}}}(l,E),null===e.tracing||void 0===e.tracing||e.tracing.pop(),!x&&_&&(o||(m&&_.push(m),y&&_.push(y),E&&_.push(E)),h&&_.push(h),v&&_.push(v))}),e.getSourceFilesToEmit(t,r,c),c,s,!r),S(),{emitSkipped:x,diagnostics:g.getDiagnostics(),emittedFiles:_,sourceMaps:m,exportedModulesFromDeclarationEmit:u};function L(t){e.isExportAssignment(t)?79===t.expression.kind&&n.collectLinkedAliases(t.expression,!0):e.isExportSpecifier(t)?n.collectLinkedAliases(t.propertyName||t.name,!0):e.forEachChild(t,L)}function D(n,r,i,a,o){var s,c=301===i.kind?i:void 0,l=300===i.kind?i:void 0,u=c?c.sourceFiles:[l];if(function(n,t){return(n.sourceMap||n.inlineSourceMap)&&(300!==t.kind||!e.fileExtensionIs(t.fileName,".json"))}(o,i)&&(s=e.createSourceMapGenerator(t,e.getBaseFileName(e.normalizeSlashes(n)),function(n){var t=e.normalizeSlashes(n.sourceRoot||"");return t?e.ensureTrailingDirectorySeparator(t):t}(o),function(n,r,i){if(n.sourceRoot)return t.getCommonSourceDirectory();if(n.mapRoot){var a=e.normalizeSlashes(n.mapRoot);return i&&(a=e.getDirectoryPath(e.getSourceFilePathInNewDir(i.fileName,t,a))),0===e.getRootLength(a)&&(a=e.combinePaths(t.getCommonSourceDirectory(),a)),a}return e.getDirectoryPath(e.normalizePath(r))}(o,n,l),o)),c?a.writeBundle(c,h,s):a.writeFile(l,h,s),s){m&&m.push({inputSourceFileNames:s.getSources(),sourceMap:s.toJSON()});var d=function(n,r,i,a,o){if(n.inlineSourceMap){var s=r.toString();return"data:application/json;base64,"+e.base64encode(e.sys,s)}var c=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(a)));if(n.mapRoot){var l=e.normalizeSlashes(n.mapRoot);return o&&(l=e.getDirectoryPath(e.getSourceFilePathInNewDir(o.fileName,t,l))),0===e.getRootLength(l)?(l=e.combinePaths(t.getCommonSourceDirectory(),l),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(i)),e.combinePaths(l,c),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(e.combinePaths(l,c))}return encodeURI(c)}(o,s,n,r,l);if(d&&(h.isAtStartOfLine()||h.rawWrite(y),h.writeComment("//# sourceMappingURL="+d)),r){var p=s.toString();e.writeFile(t,g,r,p,!1,u)}}else h.writeLine();e.writeFile(t,g,n,h.getText(),!!f.emitBOM,u),h.clear()}}function b(e){return JSON.stringify(e)}function E(e){return JSON.parse(e)}function T(n,t){void 0===n&&(n={}),void 0===t&&(t={});var i,a,o,s,c,l,u,d,p,f,m,_,g,y,h,v,b,E,T,S=t.hasGlobalName,x=t.onEmitNode,L=void 0===x?e.noEmitNotification:x,D=t.isEmitNotificationEnabled,A=t.substituteNode,C=void 0===A?e.noEmitSubstitution:A,I=t.onBeforeEmitNode,N=t.onAfterEmitNode,k=t.onBeforeEmitNodeArray,R=t.onAfterEmitNodeArray,O=t.onBeforeEmitToken,P=t.onAfterEmitToken,w=!!n.extendedDiagnostics,M=e.getNewLineCharacter(n),F=e.getEmitModuleKind(n),G=new e.Map,B=n.preserveSourceNewlines,U=function(e){f.write(e)},V=n.writeBundleFileInfo?{sections:[]}:void 0,j=V?e.Debug.checkDefined(n.relativeToBuildInfo):void 0,K=n.recordInternalSection,H=0,W="text",z=!0,J=-1,q=-1,X=-1,Y=-1,Q=-1,Z=!1,$=!!n.removeComments,ee=e.performance.createTimerIf(w,"commentTime","beforeComment","afterComment"),ne=ee.enter,te=ee.exit,re=e.factory.parenthesizer,ie=function(){return e.createBinaryExpressionTrampoline((function(e,n){if(n){n.stackIndex++,n.preserveSourceNewlinesStack[n.stackIndex]=B,n.containerPosStack[n.stackIndex]=X,n.containerEndStack[n.stackIndex]=Y,n.declarationListContainerEndStack[n.stackIndex]=Q;var t=n.shouldEmitCommentsStack[n.stackIndex]=Ne(e),r=n.shouldEmitSourceMapsStack[n.stackIndex]=ke(e);null==I||I(e),t&&Lt(e),r&&zt(e),Ae(e)}else n={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return n}),(function(e,t,r){return n(e,r,"left")}),(function(e,n,t){var r=27!==e.kind,i=ot(t,t.left,e),a=ot(t,e,t.right);Qn(i,r),Mt(e.pos),Jn(e,101===e.kind?Fn:Gn),Gt(e.end,!0),Qn(a,!0)}),(function(e,t,r){return n(e,r,"right")}),(function(e,n){if(Zn(ot(e,e.left,e.operatorToken),ot(e,e.operatorToken,e.right)),n.stackIndex>0){var t=n.preserveSourceNewlinesStack[n.stackIndex],r=n.containerPosStack[n.stackIndex],i=n.containerEndStack[n.stackIndex],a=n.declarationListContainerEndStack[n.stackIndex],o=n.shouldEmitCommentsStack[n.stackIndex],s=n.shouldEmitSourceMapsStack[n.stackIndex];Ce(t),s&&Jt(e),o&&Dt(e,r,i,a),null==N||N(e),n.stackIndex--}}),void 0);function n(n,t,r){var i="left"===r?re.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):re.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind),a=Re(0,1,n);if(a===Fe&&(e.Debug.assertIsDefined(E),a=Oe(1,1,n=i(e.cast(E,e.isExpression))),E=void 0),(a===xt||a===Wt||a===we)&&e.isBinaryExpression(n))return n;T=i,a(1,n)}}();return Ee(),{printNode:function(n,t,r){switch(n){case 0:e.Debug.assert(e.isSourceFile(t),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(t),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(t),"Expected an Expression node.")}switch(t.kind){case 300:return oe(t);case 301:return ae(t);case 302:return i=t,a=ge(),o=f,be(a,void 0),he(4,i,void 0),Ee(),f=o,ye()}var i,a,o;return se(n,t,r,ge()),ye()},printList:function(e,n,t){return ce(e,n,t,ge()),ye()},printFile:oe,printBundle:ae,writeNode:se,writeList:ce,writeFile:_e,writeBundle:me,bundleFileInfo:V};function ae(e){return me(e,ge(),void 0),ye()}function oe(e){return _e(e,ge(),void 0),ye()}function se(e,n,t,r){var i=f;be(r,void 0),he(e,n,t),Ee(),f=i}function ce(e,n,t,r){var i=f;be(r,void 0),t&&ve(t),Nn(void 0,n,e),Ee(),f=i}function le(){return f.getTextPosWithWriteLine?f.getTextPosWithWriteLine():f.getTextPos()}function ue(n,t,r){var i=e.lastOrUndefined(V.sections);i&&i.kind===r?i.end=t:V.sections.push({pos:n,end:t,kind:r})}function de(n){if(K&&V&&i&&(e.isDeclaration(n)||e.isVariableStatement(n))&&e.isInternalDeclaration(n,i)&&"internal"!==W){var t=W;return fe(f.getTextPos()),H=le(),W="internal",t}}function pe(e){e&&(fe(f.getTextPos()),H=le(),W=e)}function fe(e){return H<e&&(ue(H,e,W),!0)}function me(t,r,i){var a;_=!1;var o=f;be(r,i),gn(t),_n(t),Ge(t),function(n){dn(!!n.hasNoDefaultLib,n.syntheticFileReferences||[],n.syntheticTypeReferences||[],n.syntheticLibReferences||[]);for(var t=0,r=n.prepends;t<r.length;t++){var i=r[t];if(e.isUnparsedSource(i)&&i.syntheticReferences)for(var a=0,o=i.syntheticReferences;a<o.length;a++)Se(o[a]),Kn()}}(t);for(var s=0,c=t.prepends;s<c.length;s++){var l=c[s];Kn();var u=f.getTextPos(),d=V&&V.sections;if(d&&(V.sections=[]),he(4,l,void 0),V){var p=V.sections;V.sections=d,l.oldFileOfCurrentEmit?(a=V.sections).push.apply(a,p):(p.forEach((function(n){return e.Debug.assert(e.isBundleFileTextLike(n))})),V.sections.push({pos:u,end:f.getTextPos(),kind:"prepend",data:j(l.fileName),texts:p}))}}H=le();for(var m=0,g=t.sourceFiles;m<g.length;m++){var y=g[m];he(0,y,y)}if(V&&t.sourceFiles.length&&fe(f.getTextPos())){var h=function(n){for(var t,r=new e.Set,i=0;i<n.sourceFiles.length;i++){for(var a=n.sourceFiles[i],o=void 0,s=0,c=0,l=a.statements;c<l.length;c++){var u=l[c];if(!e.isPrologueDirective(u))break;r.has(u.expression.text)||(r.add(u.expression.text),(o||(o=[])).push({pos:u.pos,end:u.end,expression:{pos:u.expression.pos,end:u.expression.end,text:u.expression.text}}),s=s<u.end?u.end:s)}o&&(t||(t=[])).push({file:i,text:a.text.substring(0,s),directives:o})}return t}(t);h&&(V.sources||(V.sources={}),V.sources.prologues=h);var v=function(t){var r;if(F!==e.ModuleKind.None&&!n.noEmitHelpers){for(var i=new e.Map,a=0,o=t.sourceFiles;a<o.length;a++){var s=o[a],c=void 0!==e.getExternalHelpersModuleName(s),l=Be(s);if(l)for(var u=0,d=l;u<d.length;u++){var p=d[u];p.scoped||c||i.get(p.name)||(i.set(p.name,!0),(r||(r=[])).push(p.name))}}return r}}(t);v&&(V.sources||(V.sources={}),V.sources.helpers=v)}Ee(),f=o}function _e(e,n,t){_=!0;var r=f;be(n,t),gn(e),_n(e),he(0,e,e),Ee(),f=r}function ge(){return m||(m=e.createTextWriter(M))}function ye(){var e=m.getText();return m.clear(),e}function he(e,n,t){t&&ve(t),Ie(e,n,void 0)}function ve(e){i=e,v=void 0,b=void 0,e&&Qt(e)}function be(t,r){t&&n.omitTrailingSemicolon&&(t=e.getTrailingSemicolonDeferringWriter(t)),g=r,z=!(f=t)||!g}function Ee(){a=[],o=[],s=new e.Set,c=[],l=0,u=[],i=void 0,v=void 0,b=void 0,be(void 0,void 0)}function Te(){return v||(v=e.getLineStarts(i))}function Se(e,n){if(void 0!==e){var t=de(e);Ie(4,e,n),pe(t)}}function xe(e){void 0!==e&&Ie(2,e,void 0)}function Le(e,n){void 0!==e&&Ie(1,e,n)}function De(n){Ie(e.isStringLiteral(n)?6:4,n)}function Ae(n){B&&134217728&e.getEmitFlags(n)&&(B=!1)}function Ce(e){B=e}function Ie(e,n,t){T=t,Re(0,e,n)(e,n),T=void 0}function Ne(n){return!$&&!e.isSourceFile(n)}function ke(n){return!(z||e.isSourceFile(n)||e.isInJsonFile(n)||e.isUnparsedSource(n)||e.isUnparsedPrepend(n))}function Re(n,t,r){switch(n){case 0:if(L!==e.noEmitNotification&&(!D||D(r)))return Pe;case 1:if(C!==e.noEmitSubstitution&&(E=C(t,r)||r)!==r)return T&&(E=T(E)),Fe;case 2:if(Ne(r))return xt;case 3:if(ke(r))return Wt;case 4:return we;default:return e.Debug.assertNever(n)}}function Oe(e,n,t){return Re(e+1,n,t)}function Pe(e,n){var t=Oe(0,e,n);L(e,n,t)}function we(e,n){if(null==I||I(n),B){var t=B;Ae(n),Me(e,n),Ce(t)}else Me(e,n);null==N||N(n),T=void 0}function Me(n,t){if(0===n)return un(e.cast(t,e.isSourceFile));if(2===n)return je(e.cast(t,e.isIdentifier));if(6===n)return Ue(e.cast(t,e.isStringLiteral),!0);if(3===n)return function(e){Se(e.name),Vn(),Fn("in"),Vn(),Se(e.constraint)}(e.cast(t,e.isTypeParameterDeclaration));if(5===n)return e.Debug.assertNode(t,e.isEmptyStatement),We(!0);if(4===n){switch(t.kind){case 15:case 16:case 17:return Ue(t,!1);case 79:return je(t);case 80:return function(e){(e.symbol?Pn:U)(lt(e,!1),e.symbol)}(t);case 159:return function(e){(function(e){79===e.kind?Le(e):Se(e)})(e.left),wn("."),Se(e.right)}(t);case 160:return function(e){wn("["),Le(e.expression,re.parenthesizeExpressionOfComputedPropertyName),wn("]")}(t);case 161:return function(e){Se(e.name),e.constraint&&(Vn(),Fn("extends"),Vn(),Se(e.constraint)),e.default&&(Vn(),Gn("="),Vn(),Se(e.default))}(t);case 162:return function(e){xn(e,e.decorators),hn(e,e.modifiers),Se(e.dotDotDotToken),yn(e.name,Bn),Se(e.questionToken),e.parent&&312===e.parent.kind&&!e.name?Se(e.type):vn(e.type),bn(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.decorators?e.decorators.end:e.pos,e,re.parenthesizeExpressionForDisallowedComma)}(t);case 163:return l=t,wn("@"),void Le(l.expression,re.parenthesizeLeftSideOfAccess);case 164:return function(e){xn(e,e.decorators),hn(e,e.modifiers),yn(e.name,jn),Se(e.questionToken),vn(e.type),Mn()}(t);case 165:return function(e){xn(e,e.decorators),hn(e,e.modifiers),Se(e.name),Se(e.questionToken),Se(e.exclamationToken),vn(e.type),bn(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Mn()}(t);case 166:return function(e){dt(e),xn(e,e.decorators),hn(e,e.modifiers),Se(e.name),Se(e.questionToken),Dn(e,e.typeParameters),An(e,e.parameters),vn(e.type),Mn(),pt(e)}(t);case 167:return function(e){xn(e,e.decorators),hn(e,e.modifiers),Se(e.asteriskToken),Se(e.name),Se(e.questionToken),Ye(e,Qe)}(t);case 168:return function(e){xn(e,e.decorators),hn(e,e.modifiers),Fn("static"),Ze(e.body)}(t);case 169:return function(e){hn(e,e.modifiers),Fn("constructor"),Ye(e,Qe)}(t);case 170:case 171:return function(e){xn(e,e.decorators),hn(e,e.modifiers),Fn(170===e.kind?"get":"set"),Vn(),Se(e.name),Ye(e,Qe)}(t);case 172:return function(e){dt(e),xn(e,e.decorators),hn(e,e.modifiers),Dn(e,e.typeParameters),An(e,e.parameters),vn(e.type),Mn(),pt(e)}(t);case 173:return function(e){dt(e),xn(e,e.decorators),hn(e,e.modifiers),Fn("new"),Vn(),Dn(e,e.typeParameters),An(e,e.parameters),vn(e.type),Mn(),pt(e)}(t);case 174:return function(e){xn(e,e.decorators),hn(e,e.modifiers),Nn(e,e.parameters,8848),vn(e.type),Mn()}(t);case 175:return function(e){e.assertsModifier&&(Se(e.assertsModifier),Vn()),Se(e.parameterName),e.type&&(Vn(),Fn("is"),Vn(),Se(e.type))}(t);case 176:return function(e){Se(e.typeName),Ln(e,e.typeArguments)}(t);case 177:return function(e){dt(e),Dn(e,e.typeParameters),Cn(e,e.parameters),Vn(),wn("=>"),Vn(),Se(e.type),pt(e)}(t);case 178:return function(e){dt(e),hn(e,e.modifiers),Fn("new"),Vn(),Dn(e,e.typeParameters),An(e,e.parameters),Vn(),wn("=>"),Vn(),Se(e.type),pt(e)}(t);case 179:return function(e){Fn("typeof"),Vn(),Se(e.exprName)}(t);case 180:return function(n){wn("{");var t=1&e.getEmitFlags(n)?768:32897;Nn(n,n.members,524288|t),wn("}")}(t);case 181:return function(e){Se(e.elementType,re.parenthesizeElementTypeOfArrayType),wn("["),wn("]")}(t);case 182:return function(n){qe(22,n.pos,wn,n);var t=1&e.getEmitFlags(n)?528:657;Nn(n,n.elements,524288|t),qe(23,n.elements.end,wn,n)}(t);case 183:return function(e){Se(e.type,re.parenthesizeElementTypeOfArrayType),wn("?")}(t);case 185:return function(e){Nn(e,e.types,516,re.parenthesizeMemberOfElementType)}(t);case 186:return function(e){Nn(e,e.types,520,re.parenthesizeMemberOfElementType)}(t);case 187:return function(e){Se(e.checkType,re.parenthesizeMemberOfConditionalType),Vn(),Fn("extends"),Vn(),Se(e.extendsType,re.parenthesizeMemberOfConditionalType),Vn(),wn("?"),Vn(),Se(e.trueType),Vn(),wn(":"),Vn(),Se(e.falseType)}(t);case 188:return function(e){Fn("infer"),Vn(),Se(e.typeParameter)}(t);case 189:return function(e){wn("("),Se(e.type),wn(")")}(t);case 226:return function(e){Le(e.expression,re.parenthesizeLeftSideOfAccess),Ln(e,e.typeArguments)}(t);case 190:return void Fn("this");case 191:return function(e){qn(e.operator,Fn),Vn(),Se(e.type,re.parenthesizeMemberOfElementType)}(t);case 192:return function(e){Se(e.objectType,re.parenthesizeMemberOfElementType),wn("["),Se(e.indexType),wn("]")}(t);case 193:return function(n){var t=e.getEmitFlags(n);wn("{"),1&t?Vn():(Kn(),Hn()),n.readonlyToken&&(Se(n.readonlyToken),143!==n.readonlyToken.kind&&Fn("readonly"),Vn()),wn("["),Ie(3,n.typeParameter),n.nameType&&(Vn(),Fn("as"),Vn(),Se(n.nameType)),wn("]"),n.questionToken&&(Se(n.questionToken),57!==n.questionToken.kind&&wn("?")),wn(":"),Vn(),Se(n.type),Mn(),1&t?Vn():(Kn(),Wn()),wn("}")}(t);case 194:return function(e){Le(e.literal)}(t);case 195:return function(e){Se(e.dotDotDotToken),Se(e.name),Se(e.questionToken),qe(58,e.name.end,wn,e),Vn(),Se(e.type)}(t);case 196:return function(e){Se(e.head),Nn(e,e.templateSpans,262144)}(t);case 197:return function(e){Se(e.type),Se(e.literal)}(t);case 198:return function(e){e.isTypeOf&&(Fn("typeof"),Vn()),Fn("import"),wn("("),Se(e.argument),wn(")"),e.qualifier&&(wn("."),Se(e.qualifier)),Ln(e,e.typeArguments)}(t);case 199:return function(e){wn("{"),Nn(e,e.elements,525136),wn("}")}(t);case 200:return function(e){wn("["),Nn(e,e.elements,524880),wn("]")}(t);case 201:return function(e){Se(e.dotDotDotToken),e.propertyName&&(Se(e.propertyName),wn(":"),Vn()),Se(e.name),bn(e.initializer,e.name.end,e,re.parenthesizeExpressionForDisallowedComma)}(t);case 231:return function(e){Le(e.expression),Se(e.literal)}(t);case 232:return void Mn();case 233:return function(e){He(e,!e.multiLine&&st(e))}(t);case 235:return function(e){hn(e,e.modifiers),Se(e.declarationList),Mn()}(t);case 234:return We(!1);case 236:return function(n){Le(n.expression,re.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(i)||e.nodeIsSynthesized(n.expression))&&Mn()}(t);case 237:return function(e){var n=qe(99,e.pos,Fn,e);Vn(),qe(20,n,wn,e),Le(e.expression),qe(21,e.expression.end,wn,e),Sn(e,e.thenStatement),e.elseStatement&&(Xn(e,e.thenStatement,e.elseStatement),qe(91,e.thenStatement.end,Fn,e),237===e.elseStatement.kind?(Vn(),Se(e.elseStatement)):Sn(e,e.elseStatement))}(t);case 238:return function(n){qe(90,n.pos,Fn,n),Sn(n,n.statement),e.isBlock(n.statement)&&!B?Vn():Xn(n,n.statement,n.expression),ze(n,n.statement.end),Mn()}(t);case 239:return function(e){ze(e,e.pos),Sn(e,e.statement)}(t);case 240:return function(e){var n=qe(97,e.pos,Fn,e);Vn();var t=qe(20,n,wn,e);Je(e.initializer),t=qe(26,e.initializer?e.initializer.end:t,wn,e),Tn(e.condition),t=qe(26,e.condition?e.condition.end:t,wn,e),Tn(e.incrementor),qe(21,e.incrementor?e.incrementor.end:t,wn,e),Sn(e,e.statement)}(t);case 241:return function(e){var n=qe(97,e.pos,Fn,e);Vn(),qe(20,n,wn,e),Je(e.initializer),Vn(),qe(101,e.initializer.end,Fn,e),Vn(),Le(e.expression),qe(21,e.expression.end,wn,e),Sn(e,e.statement)}(t);case 242:return function(e){var n=qe(97,e.pos,Fn,e);Vn(),function(e){e&&(Se(e),Vn())}(e.awaitModifier),qe(20,n,wn,e),Je(e.initializer),Vn(),qe(158,e.initializer.end,Fn,e),Vn(),Le(e.expression),qe(21,e.expression.end,wn,e),Sn(e,e.statement)}(t);case 243:return function(e){qe(86,e.pos,Fn,e),En(e.label),Mn()}(t);case 244:return function(e){qe(81,e.pos,Fn,e),En(e.label),Mn()}(t);case 245:return function(e){qe(105,e.pos,Fn,e),Tn(e.expression),Mn()}(t);case 246:return function(e){var n=qe(116,e.pos,Fn,e);Vn(),qe(20,n,wn,e),Le(e.expression),qe(21,e.expression.end,wn,e),Sn(e,e.statement)}(t);case 247:return function(e){var n=qe(107,e.pos,Fn,e);Vn(),qe(20,n,wn,e),Le(e.expression),qe(21,e.expression.end,wn,e),Vn(),Se(e.caseBlock)}(t);case 248:return function(e){Se(e.label),qe(58,e.label.end,wn,e),Vn(),Se(e.statement)}(t);case 249:return function(e){qe(109,e.pos,Fn,e),Tn(e.expression),Mn()}(t);case 250:return function(e){qe(111,e.pos,Fn,e),Vn(),Se(e.tryBlock),e.catchClause&&(Xn(e,e.tryBlock,e.catchClause),Se(e.catchClause)),e.finallyBlock&&(Xn(e,e.catchClause||e.tryBlock,e.finallyBlock),qe(96,(e.catchClause||e.tryBlock).end,Fn,e),Vn(),Se(e.finallyBlock))}(t);case 251:return function(e){zn(87,e.pos,Fn),Mn()}(t);case 252:return function(e){Se(e.name),Se(e.exclamationToken),vn(e.type),bn(e.initializer,e.type?e.type.end:e.name.end,e,re.parenthesizeExpressionForDisallowedComma)}(t);case 253:return function(n){Fn(e.isLet(n)?"let":e.isVarConst(n)?"const":"var"),Vn(),Nn(n,n.declarations,528)}(t);case 254:return function(e){Xe(e)}(t);case 255:return function(e){nn(e)}(t);case 256:return function(e){xn(e,e.decorators),hn(e,e.modifiers),Fn("interface"),Vn(),Se(e.name),Dn(e,e.typeParameters),Nn(e,e.heritageClauses,512),Vn(),wn("{"),Nn(e,e.members,129),wn("}")}(t);case 257:return function(e){xn(e,e.decorators),hn(e,e.modifiers),Fn("type"),Vn(),Se(e.name),Dn(e,e.typeParameters),Vn(),wn("="),Vn(),Se(e.type),Mn()}(t);case 258:return function(e){hn(e,e.modifiers),Fn("enum"),Vn(),Se(e.name),Vn(),wn("{"),Nn(e,e.members,145),wn("}")}(t);case 259:return function(n){hn(n,n.modifiers),1024&~n.flags&&(Fn(16&n.flags?"namespace":"module"),Vn()),Se(n.name);var t=n.body;if(!t)return Mn();for(;t&&e.isModuleDeclaration(t);)wn("."),Se(t.name),t=t.body;Vn(),Se(t)}(t);case 260:return function(n){dt(n),e.forEach(n.statements,mt),He(n,st(n)),pt(n)}(t);case 261:return function(e){qe(18,e.pos,wn,e),Nn(e,e.clauses,129),qe(19,e.clauses.end,wn,e,!0)}(t);case 262:return function(e){var n=qe(93,e.pos,Fn,e);Vn(),n=qe(127,n,Fn,e),Vn(),n=qe(141,n,Fn,e),Vn(),Se(e.name),Mn()}(t);case 263:return function(e){hn(e,e.modifiers),qe(100,e.modifiers?e.modifiers.end:e.pos,Fn,e),Vn(),e.isTypeOnly&&(qe(150,e.pos,Fn,e),Vn()),Se(e.name),Vn(),qe(63,e.name.end,wn,e),Vn(),function(e){79===e.kind?Le(e):Se(e)}(e.moduleReference),Mn()}(t);case 264:return function(e){hn(e,e.modifiers),qe(100,e.modifiers?e.modifiers.end:e.pos,Fn,e),Vn(),e.importClause&&(Se(e.importClause),Vn(),qe(154,e.importClause.end,Fn,e),Vn()),Le(e.moduleSpecifier),Mn()}(t);case 265:return function(e){e.isTypeOnly&&(qe(150,e.pos,Fn,e),Vn()),Se(e.name),e.name&&e.namedBindings&&(qe(27,e.name.end,wn,e),Vn()),Se(e.namedBindings)}(t);case 266:return function(e){var n=qe(41,e.pos,wn,e);Vn(),qe(127,n,Fn,e),Vn(),Se(e.name)}(t);case 272:return function(e){var n=qe(41,e.pos,wn,e);Vn(),qe(127,n,Fn,e),Vn(),Se(e.name)}(t);case 267:case 271:return function(e){!function(e){wn("{"),Nn(e,e.elements,525136),wn("}")}(e)}(t);case 268:case 273:return function(e){!function(e){e.propertyName&&(Se(e.propertyName),Vn(),qe(127,e.propertyName.end,Fn,e),Vn()),Se(e.name)}(e)}(t);case 269:return function(e){var n=qe(93,e.pos,Fn,e);Vn(),e.isExportEquals?qe(63,n,Gn,e):qe(88,n,Fn,e),Vn(),Le(e.expression,e.isExportEquals?re.getParenthesizeRightSideOfBinaryForOperator(63):re.parenthesizeExpressionOfExportDefault),Mn()}(t);case 270:return function(e){var n=qe(93,e.pos,Fn,e);Vn(),e.isTypeOnly&&(n=qe(150,n,Fn,e),Vn()),e.exportClause?Se(e.exportClause):n=qe(41,n,wn,e),e.moduleSpecifier&&(Vn(),qe(154,e.exportClause?e.exportClause.end:n,Fn,e),Vn(),Le(e.moduleSpecifier)),Mn()}(t);case 274:case 314:case 325:case 326:case 328:case 329:case 330:case 331:case 332:case 344:case 348:case 347:return;case 275:return function(e){Fn("require"),wn("("),Le(e.expression),wn(")")}(t);case 11:return function(e){f.writeLiteral(e.text)}(t);case 278:case 281:return function(n){if(wn("<"),e.isJsxOpeningElement(n)){var t=rt(n.tagName,n);tn(n.tagName),Ln(n,n.typeArguments),n.attributes.properties&&n.attributes.properties.length>0&&Vn(),Se(n.attributes),it(n.attributes,n),Zn(t)}wn(">")}(t);case 279:case 282:return function(n){wn("</"),e.isJsxClosingElement(n)&&tn(n.tagName),wn(">")}(t);case 283:return function(e){Se(e.name),function(e,n,t,r){t&&(n("="),r(t))}(0,wn,e.initializer,De)}(t);case 284:return function(e){Nn(e,e.properties,262656)}(t);case 285:return function(e){wn("{..."),Le(e.expression),wn("}")}(t);case 286:return function(n){var t,r;if(n.expression||!$&&!e.nodeIsSynthesized(n)&&(function(n){var t=!1;return e.forEachTrailingCommentRange((null==i?void 0:i.text)||"",n+1,(function(){return t=!0})),t}(r=n.pos)||function(n){var t=!1;return e.forEachLeadingCommentRange((null==i?void 0:i.text)||"",n+1,(function(){return t=!0})),t}(r))){var a=i&&!e.nodeIsSynthesized(n)&&e.getLineAndCharacterOfPosition(i,n.pos).line!==e.getLineAndCharacterOfPosition(i,n.end).line;a&&f.increaseIndent();var o=qe(18,n.pos,wn,n);Se(n.dotDotDotToken),Le(n.expression),qe(19,(null===(t=n.expression)||void 0===t?void 0:t.end)||o,wn,n),a&&f.decreaseIndent()}}(t);case 287:return function(e){qe(82,e.pos,Fn,e),Vn(),Le(e.expression,re.parenthesizeExpressionForDisallowedComma),rn(e,e.statements,e.expression.end)}(t);case 288:return function(e){var n=qe(88,e.pos,Fn,e);rn(e,e.statements,n)}(t);case 289:return function(e){Vn(),qn(e.token,Fn),Vn(),Nn(e,e.types,528)}(t);case 290:return function(e){var n=qe(83,e.pos,Fn,e);Vn(),e.variableDeclaration&&(qe(20,n,wn,e),Se(e.variableDeclaration),qe(21,e.variableDeclaration.end,wn,e),Vn()),Se(e.block)}(t);case 291:return function(n){Se(n.name),wn(":"),Vn();var t=n.initializer;0==(512&e.getEmitFlags(t))&&Gt(e.getCommentRange(t).pos),Le(t,re.parenthesizeExpressionForDisallowedComma)}(t);case 292:return function(e){Se(e.name),e.objectAssignmentInitializer&&(Vn(),wn("="),Vn(),Le(e.objectAssignmentInitializer,re.parenthesizeExpressionForDisallowedComma))}(t);case 293:return function(e){e.expression&&(qe(25,e.pos,wn,e),Le(e.expression,re.parenthesizeExpressionForDisallowedComma))}(t);case 294:return function(e){Se(e.name),bn(e.initializer,e.name.end,e,re.parenthesizeExpressionForDisallowedComma)}(t);case 295:return Ve(t);case 302:case 296:return function(e){for(var n=0,t=e.texts;n<t.length;n++){var r=t[n];Kn(),Se(r)}}(t);case 297:case 298:return s=t,c=le(),Ve(s),void(V&&ue(c,f.getTextPos(),297===s.kind?"text":"internal"));case 299:return function(n){var t=le();if(Ve(n),V){var r=e.clone(n.section);r.pos=t,r.end=f.getTextPos(),V.sections.push(r)}}(t);case 300:return un(t);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 ln(t);case 305:return function(e){Vn(),wn("{"),Se(e.name),wn("}")}(t);case 307:return wn("*");case 308:return wn("?");case 309:return function(e){wn("?"),Se(e.type)}(t);case 310:return function(e){wn("!"),Se(e.type)}(t);case 311:return function(e){Se(e.type),wn("=")}(t);case 312:return function(e){Fn("function"),An(e,e.parameters),wn(":"),Se(e.type)}(t);case 184:case 313:return function(e){wn("..."),Se(e.type)}(t);case 315:return function(n){if(U("/**"),n.comment){var t=e.getTextOfJSDocComment(n.comment);if(t)for(var r=0,i=t.split(/\r\n?|\n/g);r<i.length;r++){var a=i[r];Kn(),Vn(),wn("*"),Vn(),U(a)}}n.tags&&(1!==n.tags.length||338!==n.tags[0].kind||n.comment?Nn(n,n.tags,33):(Vn(),Se(n.tags[0]))),Vn(),U("*/")}(t);case 317:return an(t);case 318:return on(t);case 322:case 327:return sn((o=t).tagName),void cn(o.comment);case 323:case 324:return function(e){sn(e.tagName),Vn(),wn("{"),Se(e.class),wn("}"),cn(e.comment)}(t);case 333:return function(e){sn(e.tagName),e.name&&(Vn(),Se(e.name)),cn(e.comment),on(e.typeExpression)}(t);case 335:case 342:return sn((a=t).tagName),ln(a.typeExpression),Vn(),a.isBracketed&&wn("["),Se(a.name),a.isBracketed&&wn("]"),void cn(a.comment);case 334:case 336:case 337:case 338:return function(e){sn(e.tagName),ln(e.typeExpression),cn(e.comment)}(t);case 339:return function(e){sn(e.tagName),ln(e.constraint),Vn(),Nn(e,e.typeParameters,528),cn(e.comment)}(t);case 340:return function(e){sn(e.tagName),e.typeExpression&&(304===e.typeExpression.kind?ln(e.typeExpression):(Vn(),wn("{"),U("Object"),e.typeExpression.isArrayType&&(wn("["),wn("]")),wn("}"))),e.fullName&&(Vn(),Se(e.fullName)),cn(e.comment),e.typeExpression&&317===e.typeExpression.kind&&an(e.typeExpression)}(t);case 341:return function(e){sn(e.tagName),Se(e.name),cn(e.comment)}(t)}if(e.isExpression(t)&&(n=1,C!==e.noEmitSubstitution)){var r=C(n,t)||t;r!==t&&(t=r,T&&(t=T(t)))}}var a,o,s,c,l;if(1===n)switch(t.kind){case 8:case 9:return function(e){Ue(e,!1)}(t);case 10:case 13:case 14:return Ue(t,!1);case 79:return je(t);case 202:return function(e){kn(e,e.elements,8914|(e.multiLine?65536:0),re.parenthesizeExpressionForDisallowedComma)}(t);case 203:return function(n){e.forEach(n.properties,_t);var t=65536&e.getEmitFlags(n);t&&Hn();var r=n.multiLine?65536:0,a=i.languageVersion>=1&&!e.isJsonSourceFile(i)?64:0;Nn(n,n.properties,526226|a|r),t&&Wn()}(t);case 204:return function(n){Le(n.expression,re.parenthesizeLeftSideOfAccess);var t=n.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),n.expression.end,n.name.pos),r=ot(n,n.expression,t),i=ot(n,t,n.name);Qn(r,!1),28!==t.kind&&function(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var t=ut(n,!0,!1);return!n.numericLiteralFlags&&!e.stringContains(t,e.tokenToString(24))}if(e.isAccessExpression(n)){var r=e.getConstantValue(n);return"number"==typeof r&&isFinite(r)&&Math.floor(r)===r}}(n.expression)&&!f.hasTrailingComment()&&!f.hasTrailingWhitespace()&&wn("."),n.questionDotToken?Se(t):qe(t.kind,n.expression.end,wn,n),Qn(i,!1),Se(n.name),Zn(r,i)}(t);case 205:return function(e){Le(e.expression,re.parenthesizeLeftSideOfAccess),Se(e.questionDotToken),qe(22,e.expression.end,wn,e),Le(e.argumentExpression),qe(23,e.argumentExpression.end,wn,e)}(t);case 206:return function(n){var t=536870912&e.getEmitFlags(n);t&&(wn("("),On("0"),wn(","),Vn()),Le(n.expression,re.parenthesizeLeftSideOfAccess),t&&wn(")"),Se(n.questionDotToken),Ln(n,n.typeArguments),kn(n,n.arguments,2576,re.parenthesizeExpressionForDisallowedComma)}(t);case 207:return function(e){qe(103,e.pos,Fn,e),Vn(),Le(e.expression,re.parenthesizeExpressionOfNew),Ln(e,e.typeArguments),kn(e,e.arguments,18960,re.parenthesizeExpressionForDisallowedComma)}(t);case 208:return function(n){var t=536870912&e.getEmitFlags(n);t&&(wn("("),On("0"),wn(","),Vn()),Le(n.tag,re.parenthesizeLeftSideOfAccess),t&&wn(")"),Ln(n,n.typeArguments),Vn(),Le(n.template)}(t);case 209:return function(e){wn("<"),Se(e.type),wn(">"),Le(e.expression,re.parenthesizeOperandOfPrefixUnary)}(t);case 210:return function(e){var n=qe(20,e.pos,wn,e),t=rt(e.expression,e);Le(e.expression,void 0),it(e.expression,e),Zn(t),qe(21,e.expression?e.expression.end:n,wn,e)}(t);case 211:return function(e){gt(e.name),Xe(e)}(t);case 212:return function(e){xn(e,e.decorators),hn(e,e.modifiers),Ye(e,Ke)}(t);case 213:return function(e){qe(89,e.pos,Fn,e),Vn(),Le(e.expression,re.parenthesizeOperandOfPrefixUnary)}(t);case 214:return function(e){qe(112,e.pos,Fn,e),Vn(),Le(e.expression,re.parenthesizeOperandOfPrefixUnary)}(t);case 215:return function(e){qe(114,e.pos,Fn,e),Vn(),Le(e.expression,re.parenthesizeOperandOfPrefixUnary)}(t);case 216:return function(e){qe(131,e.pos,Fn,e),Vn(),Le(e.expression,re.parenthesizeOperandOfPrefixUnary)}(t);case 217:return function(e){qn(e.operator,Gn),function(e){var n=e.operand;return 217===n.kind&&(39===e.operator&&(39===n.operator||45===n.operator)||40===e.operator&&(40===n.operator||46===n.operator))}(e)&&Vn(),Le(e.operand,re.parenthesizeOperandOfPrefixUnary)}(t);case 218:return function(e){Le(e.operand,re.parenthesizeOperandOfPostfixUnary),qn(e.operator,Gn)}(t);case 219:return ie(t);case 220:return function(e){var n=ot(e,e.condition,e.questionToken),t=ot(e,e.questionToken,e.whenTrue),r=ot(e,e.whenTrue,e.colonToken),i=ot(e,e.colonToken,e.whenFalse);Le(e.condition,re.parenthesizeConditionOfConditionalExpression),Qn(n,!0),Se(e.questionToken),Qn(t,!0),Le(e.whenTrue,re.parenthesizeBranchOfConditionalExpression),Zn(n,t),Qn(r,!0),Se(e.colonToken),Qn(i,!0),Le(e.whenFalse,re.parenthesizeBranchOfConditionalExpression),Zn(r,i)}(t);case 221:return function(e){Se(e.head),Nn(e,e.templateSpans,262144)}(t);case 222:return function(e){qe(125,e.pos,Fn,e),Se(e.asteriskToken),Tn(e.expression,re.parenthesizeExpressionForDisallowedComma)}(t);case 223:return function(e){qe(25,e.pos,wn,e),Le(e.expression,re.parenthesizeExpressionForDisallowedComma)}(t);case 224:return function(e){gt(e.name),nn(e)}(t);case 225:case 344:case 347:case 348:return;case 227:return function(e){Le(e.expression,void 0),e.type&&(Vn(),Fn("as"),Vn(),Se(e.type))}(t);case 228:return function(e){Le(e.expression,re.parenthesizeLeftSideOfAccess),Gn("!")}(t);case 229:return function(e){zn(e.keywordToken,e.pos,wn),wn("."),Se(e.name)}(t);case 230:return e.Debug.fail("SyntheticExpression should never be printed.");case 276:return function(e){Se(e.openingElement),Nn(e,e.children,262144),Se(e.closingElement)}(t);case 277:return function(e){wn("<"),tn(e.tagName),Ln(e,e.typeArguments),Vn(),Se(e.attributes),wn("/>")}(t);case 280:return function(e){Se(e.openingFragment),Nn(e,e.children,262144),Se(e.closingFragment)}(t);case 343:return e.Debug.fail("SyntaxList should not be printed");case 345:return function(e){Le(e.expression)}(t);case 346:return function(e){kn(e,e.elements,528,void 0)}(t);case 349:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(t.kind)?Jn(t,Fn):e.isTokenKind(t.kind)?Jn(t,wn):void e.Debug.fail("Unhandled SyntaxKind: "+e.Debug.formatSyntaxKind(t.kind)+".")}function Fe(n,t){var r=Oe(1,n,t);e.Debug.assertIsDefined(E),t=E,E=void 0,r(n,t)}function Ge(t){var r=!1,a=301===t.kind?t:void 0;if(!a||F!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c<s;c++){var l=a?c<o?a.prepends[c]:a.sourceFiles[c-o]:t,u=e.isSourceFile(l)?l:e.isUnparsedSource(l)?void 0:i,d=n.noEmitHelpers||!!u&&e.hasRecordedExternalHelpers(u),p=(e.isSourceFile(l)||e.isUnparsedSource(l))&&!_,m=e.isUnparsedSource(l)?l.helpers:Be(l);if(m)for(var g=0,y=m;g<y.length;g++){var h=y[g];if(h.scoped){if(a)continue}else{if(d)continue;if(p){if(G.get(h.name))continue;G.set(h.name,!0)}}var v=le();"string"==typeof h.text?Yn(h.text):Yn(h.text(St)),V&&V.sections.push({pos:v,end:f.getTextPos(),kind:"emitHelpers",data:h.name}),r=!0}}return r}}function Be(n){var t=e.getEmitHelpers(n);return t&&e.stableSort(t,e.compareEmitHelpers)}function Ue(t,r){var i,a=ut(t,n.neverAsciiEscape,r);!n.sourceMap&&!n.inlineSourceMap||10!==t.kind&&!e.isTemplateLiteralKind(t.kind)?(i=a,f.writeStringLiteral(i)):On(a)}function Ve(e){f.rawWrite(e.parent.text.substring(e.pos,e.end))}function je(e){(e.symbol?Pn:U)(lt(e,!1),e.symbol),Nn(e,e.typeArguments,53776)}function Ke(e){Dn(e,e.typeParameters),Cn(e,e.parameters),vn(e.type),Vn(),Se(e.equalsGreaterThanToken)}function He(n,t){qe(18,n.pos,wn,n);var r=t||1&e.getEmitFlags(n)?768:129;Nn(n,n.statements,r),qe(19,n.statements.end,wn,n,!!(1&r))}function We(e){e?wn(";"):Mn()}function ze(e,n){var t=qe(115,n,Fn,e);Vn(),qe(20,t,wn,e),Le(e.expression),qe(21,e.expression.end,wn,e)}function Je(e){void 0!==e&&(253===e.kind?Se(e):Le(e))}function qe(n,t,r,a,o){var s=e.getParseTreeNode(a),c=s&&s.kind===a.kind,l=t;if(c&&i&&(t=e.skipTrivia(i.text,t)),c&&a.pos!==l){var u=o&&i&&!e.positionsAreOnSameLine(l,t,i);u&&Hn(),Mt(l),u&&Wn()}if(t=qn(n,r,t),c&&a.end!==t){var d=286===a.kind;Gt(t,!d,d)}return t}function Xe(e){xn(e,e.decorators),hn(e,e.modifiers),Fn("function"),Se(e.asteriskToken),Vn(),xe(e.name),Ye(e,Qe)}function Ye(n,t){var r=n.body;if(r)if(e.isBlock(r)){var i=65536&e.getEmitFlags(n);i&&Hn(),dt(n),e.forEach(n.parameters,mt),mt(n.body),t(n),Ze(r),pt(n),i&&Wn()}else t(n),Vn(),Le(r,re.parenthesizeConciseBodyOfArrowFunction);else t(n),Mn()}function Qe(e){Dn(e,e.typeParameters),An(e,e.parameters),vn(e.type)}function Ze(n){null==I||I(n),Vn(),wn("{"),Hn();var t=function(n){if(1&e.getEmitFlags(n))return!0;if(n.multiLine)return!1;if(!e.nodeIsSynthesized(n)&&!e.rangeIsOnSingleLine(n,i))return!1;if($n(n,n.statements,2)||nt(n,n.statements,2))return!1;for(var t,r=0,a=n.statements;r<a.length;r++){var o=a[r];if(et(t,o,2)>0)return!1;t=o}return!0}(n)?$e:en;Nt?Nt(n,n.statements,t):t(n),Wn(),zn(19,n.statements.end,wn,n),null==N||N(n)}function $e(e){en(e,!0)}function en(e,n){var t=fn(e.statements),r=f.getTextPos();Ge(e),0===t&&r===f.getTextPos()&&n?(Wn(),Nn(e,e.statements,768),Hn()):Nn(e,e.statements,1,void 0,t)}function nn(n){e.forEach(n.members,_t),xn(n,n.decorators),hn(n,n.modifiers),Fn("class"),n.name&&(Vn(),xe(n.name));var t=65536&e.getEmitFlags(n);t&&Hn(),Dn(n,n.typeParameters),Nn(n,n.heritageClauses,0),Vn(),wn("{"),Nn(n,n.members,129),wn("}"),t&&Wn()}function tn(e){79===e.kind?Le(e):Se(e)}function rn(n,t,r){var a=163969;1===t.length&&(e.nodeIsSynthesized(n)||e.nodeIsSynthesized(t[0])||e.rangeStartPositionsAreOnSameLine(n,t[0],i))?(zn(58,r,wn,n),Vn(),a&=-130):qe(58,r,wn,n),Nn(n,t,a)}function an(n){Nn(n,e.factory.createNodeArray(n.jsDocPropertyTags),33)}function on(n){n.typeParameters&&Nn(n,e.factory.createNodeArray(n.typeParameters),33),n.parameters&&Nn(n,e.factory.createNodeArray(n.parameters),33),n.type&&(Kn(),Vn(),wn("*"),Vn(),Se(n.type))}function sn(e){wn("@"),Se(e)}function cn(n){var t=e.getTextOfJSDocComment(n);t&&(Vn(),U(t))}function ln(e){e&&(Vn(),wn("{"),Se(e.type),wn("}"))}function un(n){Kn();var t=n.statements;!Nt||0!==t.length&&e.isPrologueDirective(t[0])&&!e.nodeIsSynthesized(t[0])?pn(n):Nt(n,t,pn)}function dn(e,n,t,r){if(e){var a=f.getTextPos();Un('/// <reference no-default-lib="true"/>'),V&&V.sections.push({pos:a,end:f.getTextPos(),kind:"no-default-lib"}),Kn()}if(i&&i.moduleName&&(Un('/// <amd-module name="'+i.moduleName+'" />'),Kn()),i&&i.amdDependencies)for(var o=0,s=i.amdDependencies;o<s.length;o++){var c=s[o];c.name?Un('/// <amd-dependency name="'+c.name+'" path="'+c.path+'" />'):Un('/// <amd-dependency path="'+c.path+'" />'),Kn()}for(var l=0,u=n;l<u.length;l++){var d=u[l];a=f.getTextPos(),Un('/// <reference path="'+d.fileName+'" />'),V&&V.sections.push({pos:a,end:f.getTextPos(),kind:"reference",data:d.fileName}),Kn()}for(var p=0,m=t;p<m.length;p++)d=m[p],a=f.getTextPos(),Un('/// <reference types="'+d.fileName+'" />'),V&&V.sections.push({pos:a,end:f.getTextPos(),kind:"type",data:d.fileName}),Kn();for(var _=0,g=r;_<g.length;_++)d=g[_],a=f.getTextPos(),Un('/// <reference lib="'+d.fileName+'" />'),V&&V.sections.push({pos:a,end:f.getTextPos(),kind:"lib",data:d.fileName}),Kn()}function pn(n){var t=n.statements;dt(n),e.forEach(n.statements,mt),Ge(n);var r=e.findIndex(t,(function(n){return!e.isPrologueDirective(n)}));!function(e){e.isDeclarationFile&&dn(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(n),Nn(n,t,1,void 0,-1===r?t.length:r),pt(n)}function fn(n,t,r,i){for(var a=!!t,o=0;o<n.length;o++){var s=n[o];if(!e.isPrologueDirective(s))return o;if(!r||!r.has(s.expression.text)){a&&(a=!1,ve(t)),Kn();var c=f.getTextPos();Se(s),i&&V&&V.sections.push({pos:c,end:f.getTextPos(),kind:"prologue",data:s.expression.text}),r&&r.add(s.expression.text)}}return n.length}function mn(e,n){for(var t=0,r=e;t<r.length;t++){var i=r[t];if(!n.has(i.data)){Kn();var a=f.getTextPos();Se(i),V&&V.sections.push({pos:a,end:f.getTextPos(),kind:"prologue",data:i.data}),n&&n.add(i.data)}}}function _n(n){if(e.isSourceFile(n))fn(n.statements,n);else{for(var t=new e.Set,r=0,i=n.prepends;r<i.length;r++)mn(i[r].prologues,t);for(var a=0,o=n.sourceFiles;a<o.length;a++){var s=o[a];fn(s.statements,s,t,!0)}ve(void 0)}}function gn(n){if(e.isSourceFile(n)||e.isUnparsedSource(n)){var t=e.getShebang(n.text);if(t)return Un(t),Kn(),!0}else{for(var r=0,i=n.prepends;r<i.length;r++){var a=i[r];if(e.Debug.assertNode(a,e.isUnparsedSource),gn(a))return!0}for(var o=0,s=n.sourceFiles;o<s.length;o++)if(gn(s[o]))return!0}}function yn(e,n){if(e){var t=U;U=n,Se(e),U=t}}function hn(e,n){n&&n.length&&(Nn(e,n,262656),Vn())}function vn(e){e&&(wn(":"),Vn(),Se(e))}function bn(e,n,t,r){e&&(Vn(),qe(63,n,Gn,t),Vn(),Le(e,r))}function En(e){e&&(Vn(),Se(e))}function Tn(e,n){e&&(Vn(),Le(e,n))}function Sn(n,t){e.isBlock(t)||1&e.getEmitFlags(n)?(Vn(),Se(t)):(Kn(),Hn(),e.isEmptyStatement(t)?Ie(5,t):Se(t),Wn())}function xn(e,n){Nn(e,n,2146305)}function Ln(e,n){Nn(e,n,53776,re.parenthesizeMemberOfElementType)}function Dn(n,t){if(e.isFunctionLike(n)&&n.typeArguments)return Ln(n,n.typeArguments);Nn(n,t,53776)}function An(e,n){Nn(e,n,2576)}function Cn(n,t){!function(n,t){var r=e.singleOrUndefined(t);return r&&r.pos===n.pos&&e.isArrowFunction(n)&&!n.type&&!e.some(n.decorators)&&!e.some(n.modifiers)&&!e.some(n.typeParameters)&&!e.some(r.decorators)&&!e.some(r.modifiers)&&!r.dotDotDotToken&&!r.questionToken&&!r.type&&!r.initializer&&e.isIdentifier(r.name)}(n,t)?An(n,t):Nn(n,t,528)}function In(e){switch(60&e){case 0:break;case 16:wn(",");break;case 4:Vn(),wn("|");break;case 32:Vn(),wn("*"),Vn();break;case 8:Vn(),wn("&")}}function Nn(e,n,t,r,i,a){Rn(Se,e,n,t,r,i,a)}function kn(e,n,t,r,i,a){Rn(Le,e,n,t,r,i,a)}function Rn(n,t,a,o,s,c,l){if(void 0===c&&(c=0),void 0===l&&(l=a?a.length-c:0),!(void 0===a&&16384&o)){var u=void 0===a||c>=a.length||0===l;if(u&&32768&o)return k&&k(a),void(R&&R(a));if(15360&o&&(wn(function(e){return r[15360&e][0]}(o)),u&&a&&Gt(a.pos,!0)),k&&k(a),u)1&o&&(!B||t&&!e.rangeIsOnSingleLine(t,i))?Kn():256&o&&!(524288&o)&&Vn();else{e.Debug.type(a);var d=0==(262144&o),f=d,m=$n(t,a,o);m?(Kn(m),f=!1):256&o&&Vn(),128&o&&Hn();for(var _=void 0,g=void 0,y=!1,h=0;h<l;h++){var v=a[c+h];if(32&o)Kn(),In(o);else if(_){60&o&&_.end!==(t?t.end:-1)&&Mt(_.end),In(o),pe(g);var b=et(_,v,o);b>0?(0==(131&o)&&(Hn(),y=!0),Kn(b),f=!1):_&&512&o&&Vn()}g=de(v),f?Gt&&Gt(e.getCommentRange(v).pos):f=d,p=v.pos,1===n.length?n(v):n(v,s),y&&(Wn(),y=!1),_=v}var E=_?e.getEmitFlags(_):0,T=$||!!(1024&E),S=(null==a?void 0:a.hasTrailingComma)&&64&o&&16&o;S&&(_&&!T?qe(27,_.end,wn,_):wn(",")),_&&(t?t.end:-1)!==_.end&&60&o&&!T&&Mt(S&&(null==a?void 0:a.end)?a.end:_.end),128&o&&Wn(),pe(g);var x=nt(t,a,o);x?Kn(x):2097408&o&&Vn()}R&&R(a),15360&o&&(u&&a&&Mt(a.end),wn(function(e){return r[15360&e][1]}(o)))}}function On(e){f.writeLiteral(e)}function Pn(e,n){f.writeSymbol(e,n)}function wn(e){f.writePunctuation(e)}function Mn(){f.writeTrailingSemicolon(";")}function Fn(e){f.writeKeyword(e)}function Gn(e){f.writeOperator(e)}function Bn(e){f.writeParameter(e)}function Un(e){f.writeComment(e)}function Vn(){f.writeSpace(" ")}function jn(e){f.writeProperty(e)}function Kn(e){void 0===e&&(e=1);for(var n=0;n<e;n++)f.writeLine(n>0)}function Hn(){f.increaseIndent()}function Wn(){f.decreaseIndent()}function zn(n,t,r,i){return z?qn(n,r,t):function(n,t,r,i,a){if(z||n&&e.isInJsonFile(n))return a(t,r,i);var o=n&&n.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],l=c&&c.source||y;return i=qt(l,c?c.pos:i),0==(128&s)&&i>=0&&Yt(l,i),i=a(t,r,i),c&&(i=c.end),0==(256&s)&&i>=0&&Yt(l,i),i}(i,n,r,t,qn)}function Jn(n,t){O&&O(n),t(e.tokenToString(n.kind)),P&&P(n)}function qn(n,t,r){var i=e.tokenToString(n);return t(i),r<0?r:r+i.length}function Xn(n,t,r){if(1&e.getEmitFlags(n))Vn();else if(B){var i=ot(n,t,r);i?Kn(i):Vn()}else Kn()}function Yn(n){for(var t=n.split(/\r\n?|\n/g),r=e.guessIndentation(t),i=0,a=t;i<a.length;i++){var o=a[i],s=r?o.slice(r):o;s.length&&(Kn(),U(s))}}function Qn(e,n){e?(Hn(),Kn(e)):n&&Vn()}function Zn(e,n){e&&Wn(),n&&Wn()}function $n(n,t,r){if(2&r||B){if(65536&r)return 1;var a=t[0];if(void 0===a)return!n||e.rangeIsOnSingleLine(n,i)?0:1;if(a.pos===p)return 0;if(11===a.kind)return 0;if(n&&!e.positionIsSynthesized(n.pos)&&!e.nodeIsSynthesized(a)&&(!a.parent||e.getOriginalNode(a.parent)===e.getOriginalNode(n)))return B?tt((function(t){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(a.pos,n.pos,i,t)})):e.rangeStartPositionsAreOnSameLine(n,a,i)?0:1;if(at(a,r))return 1}return 1&r?1:0}function et(n,t,r){if(2&r||B){if(void 0===n||void 0===t)return 0;if(11===t.kind)return 0;if(!e.nodeIsSynthesized(n)&&!e.nodeIsSynthesized(t))return B&&function(n,t){if(t.pos<n.end)return!1;n=e.getOriginalNode(n),t=e.getOriginalNode(t);var r=n.parent;if(!r||r!==t.parent)return!1;var i=e.getContainingNodeArray(n),a=null==i?void 0:i.indexOf(n);return void 0!==a&&a>-1&&i.indexOf(t)===a+1}(n,t)?tt((function(r){return e.getLinesBetweenRangeEndAndRangeStart(n,t,i,r)})):!B&&(a=n,o=t,(a=e.getOriginalNode(a)).parent&&a.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(n,t,i)?0:1:65536&r?1:0;if(at(n,r)||at(t,r))return 1}else if(e.getStartsOnNewLine(t))return 1;var a,o;return 1&r?1:0}function nt(n,t,r){if(2&r||B){if(65536&r)return 1;var a=e.lastOrUndefined(t);if(void 0===a)return!n||e.rangeIsOnSingleLine(n,i)?0:1;if(n&&!e.positionIsSynthesized(n.pos)&&!e.nodeIsSynthesized(a)&&(!a.parent||a.parent===n)){if(B){var o=e.isNodeArray(t)&&!e.positionIsSynthesized(t.end)?t.end:a.end;return tt((function(t){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,n.end,i,t)}))}return e.rangeEndPositionsAreOnSameLine(n,a,i)?0:1}if(at(a,r))return 1}return 1&r&&!(131072&r)?1:0}function tt(n){e.Debug.assert(!!B);var t=n(!0);return 0===t?n(!1):t}function rt(e,n){var t=B&&$n(n,[e],0);return t&&Qn(t,!1),!!t}function it(e,n){var t=B&&nt(n,[e],0);t&&Kn(t)}function at(n,t){if(e.nodeIsSynthesized(n)){var r=e.getStartsOnNewLine(n);return void 0===r?0!=(65536&t):r}return 0!=(65536&t)}function ot(n,t,r){return 131072&e.getEmitFlags(n)?0:(n=ct(n),t=ct(t),r=ct(r),e.getStartsOnNewLine(r)?1:e.nodeIsSynthesized(n)||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)?0:B?tt((function(n){return e.getLinesBetweenRangeEndAndRangeStart(t,r,i,n)})):e.rangeEndIsOnSameLineAsRangeStart(t,r,i)?0:1)}function st(n){return 0===n.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(n,n,i)}function ct(n){for(;210===n.kind&&e.nodeIsSynthesized(n);)n=n.expression;return n}function lt(n,t){return e.isGeneratedIdentifier(n)?yt(n):(e.isIdentifier(n)||e.isPrivateIdentifier(n))&&(e.nodeIsSynthesized(n)||!n.parent||!i||n.parent&&i&&e.getSourceFileOfNode(n)!==e.getOriginalNode(i))?e.idText(n):10===n.kind&&n.textSourceNode?lt(n.textSourceNode,t):!e.isLiteralExpression(n)||!e.nodeIsSynthesized(n)&&n.parent?e.getSourceTextOfNodeFromSourceFile(i,n,t):n.text}function ut(t,r,a){if(10===t.kind&&t.textSourceNode){var o=t.textSourceNode;if(e.isIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:lt(o);return a?'"'+e.escapeJsxAttributeString(s)+'"':r||16777216&e.getEmitFlags(t)?'"'+e.escapeString(s)+'"':'"'+e.escapeNonAsciiString(s)+'"'}return ut(o,r,a)}var c=(r?1:0)|(a?2:0)|(n.terminateUnterminatedLiterals?4:0)|(n.target&&99===n.target?8:0);return e.getLiteralText(t,i,c)}function dt(n){n&&524288&e.getEmitFlags(n)||(c.push(l),l=0,u.push(d))}function pt(n){n&&524288&e.getEmitFlags(n)||(l=c.pop(),d=u.pop())}function ft(n){d&&d!==e.lastOrUndefined(u)||(d=new e.Set),d.add(n)}function mt(n){if(n)switch(n.kind){case 233:case 287:case 288:e.forEach(n.statements,mt);break;case 248:case 246:case 238:case 239:mt(n.statement);break;case 237:mt(n.thenStatement),mt(n.elseStatement);break;case 240:case 242:case 241:mt(n.initializer),mt(n.statement);break;case 247:mt(n.caseBlock);break;case 261:e.forEach(n.clauses,mt);break;case 250:mt(n.tryBlock),mt(n.catchClause),mt(n.finallyBlock);break;case 290:mt(n.variableDeclaration),mt(n.block);break;case 235:mt(n.declarationList);break;case 253:e.forEach(n.declarations,mt);break;case 252:case 162:case 201:case 255:case 266:case 272:gt(n.name);break;case 254:gt(n.name),524288&e.getEmitFlags(n)&&(e.forEach(n.parameters,mt),mt(n.body));break;case 199:case 200:case 267:e.forEach(n.elements,mt);break;case 264:mt(n.importClause);break;case 265:gt(n.name),mt(n.namedBindings);break;case 268:gt(n.propertyName||n.name)}}function _t(e){if(e)switch(e.kind){case 291:case 292:case 165:case 167:case 170:case 171:gt(e.name)}}function gt(n){n&&(e.isGeneratedIdentifier(n)?yt(n):e.isBindingPattern(n)&&mt(n))}function yt(n){if(4==(7&n.autoGenerateFlags))return ht(function(n){for(var t=n.autoGenerateId,r=n,i=r.original;i&&(r=i,!(e.isIdentifier(r)&&4&r.autoGenerateFlags&&r.autoGenerateId!==t));)i=r.original;return r}(n),n.autoGenerateFlags);var t=n.autoGenerateId;return o[t]||(o[t]=function(n){switch(7&n.autoGenerateFlags){case 1:return Et(0,!!(8&n.autoGenerateFlags));case 2:return Et(268435456,!!(8&n.autoGenerateFlags));case 3:return Tt(e.idText(n),32&n.autoGenerateFlags?bt:vt,!!(16&n.autoGenerateFlags),!!(8&n.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(n))}function ht(n,t){var r=e.getNodeId(n);return a[r]||(a[r]=function(n,t){switch(n.kind){case 79:return Tt(lt(n),vt,!!(16&t),!!(8&t));case 259:case 258:return function(n){var t=lt(n.name);return function(n,t){for(var r=t;e.isNodeDescendantOf(r,t);r=r.nextContainer)if(r.locals){var i=r.locals.get(e.escapeLeadingUnderscores(n));if(i&&3257279&i.flags)return!1}return!0}(t,n)?t:Tt(t)}(n);case 264:case 270:return function(n){var t=e.getExternalModuleName(n);return Tt(e.isStringLiteral(t)?e.makeIdentifierFromModuleName(t.text):"module")}(n);case 254:case 255:case 269:return Tt("default");case 224:return Tt("class");case 167:case 170:case 171:return function(n){return e.isIdentifier(n.name)?ht(n.name):Et(0)}(n);case 160:return Et(0,!0);default:return Et(0)}}(n,t))}function vt(e){return bt(e)&&!s.has(e)&&!(d&&d.has(e))}function bt(n){return!i||e.isFileLevelUniqueName(i,n,S)}function Et(e,n){if(e&&!(l&e)&&vt(t=268435456===e?"_i":"_n"))return l|=e,n&&ft(t),t;for(;;){var t,r=268435455&l;if(l++,8!==r&&13!==r&&vt(t=r<26?"_"+String.fromCharCode(97+r):"_"+(r-26)))return n&&ft(t),t}}function Tt(e,n,t,r){if(void 0===n&&(n=vt),t&&n(e))return r?ft(e):s.add(e),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(n(a))return r?ft(a):s.add(a),a;i++}}function St(e){return Tt(e,bt,!0)}function xt(e,n){var t=Oe(2,e,n),r=X,i=Y,a=Q;Lt(n),t(e,n),Dt(n,r,i,a)}function Lt(n){var t=e.getEmitFlags(n),r=e.getCommentRange(n);!function(n,t,r,i){ne(),Z=!1;var a=r<0||0!=(512&t)||11===n.kind,o=i<0||0!=(1024&t)||11===n.kind;(r>0||i>0)&&r!==i&&(a||kt(r,344!==n.kind),(!a||r>=0&&0!=(512&t))&&(X=r),(!o||i>=0&&0!=(1024&t))&&(Y=i,253===n.kind&&(Q=i))),e.forEach(e.getSyntheticLeadingComments(n),At),te()}(n,t,r.pos,r.end),2048&t&&($=!0)}function Dt(n,t,r,i){var a=e.getEmitFlags(n),o=e.getCommentRange(n);2048&a&&($=!1),function(n,t,r,i,a,o,s){ne();var c=i<0||0!=(1024&t)||11===n.kind;e.forEach(e.getSyntheticTrailingComments(n),Ct),(r>0||i>0)&&r!==i&&(X=a,Y=o,Q=s,c||344===n.kind||function(e){jt(e,Ft)}(i)),te()}(n,a,o.pos,o.end,t,r,i)}function At(e){(e.hasLeadingNewline||2===e.kind)&&f.writeLine(),It(e),e.hasTrailingNewLine||2===e.kind?f.writeLine():f.writeSpace(" ")}function Ct(e){f.isAtStartOfLine()||f.writeSpace(" "),It(e),e.hasTrailingNewLine&&f.writeLine()}function It(n){var t=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(n),r=3===n.kind?e.computeLineStarts(t):void 0;e.writeCommentRange(t,r,f,0,t.length,M)}function Nt(n,t,r){ne();var a,o,s=t.pos,c=t.end,l=e.getEmitFlags(n),u=$||c<0||0!=(1024&l);s<0||0!=(512&l)||(a=t,(o=e.emitDetachedComments(i.text,Te(),f,Kt,a,M,$))&&(b?b.push(o):b=[o])),te(),2048&l&&!$?($=!0,r(n),$=!1):r(n),ne(),u||(kt(t.end,!0),Z&&!f.isAtStartOfLine()&&f.writeLine()),te()}function kt(e,n){Z=!1,n?0===e&&(null==i?void 0:i.isDeclarationFile)?Vt(e,Ot):Vt(e,wt):0===e&&Vt(e,Rt)}function Rt(e,n,t,r,i){Ht(e,n)&&wt(e,n,t,r,i)}function Ot(e,n,t,r,i){Ht(e,n)||wt(e,n,t,r,i)}function Pt(t,r){return!n.onlyPrintJsDocStyle||e.isJSDocLikeText(t,r)||e.isPinnedComment(t,r)}function wt(n,t,r,a,o){Pt(i.text,n)&&(Z||(e.emitNewLineBeforeLeadingCommentOfPosition(Te(),f,o,n),Z=!0),Xt(n),e.writeCommentRange(i.text,Te(),f,n,t,M),Xt(t),a?f.writeLine():3===r&&f.writeSpace(" "))}function Mt(e){$||-1===e||kt(e,!0)}function Ft(n,t,r,a){Pt(i.text,n)&&(f.isAtStartOfLine()||f.writeSpace(" "),Xt(n),e.writeCommentRange(i.text,Te(),f,n,t,M),Xt(t),a&&f.writeLine())}function Gt(e,n,t){$||(ne(),jt(e,n?Ft:t?Bt:Ut),te())}function Bt(n,t,r){Xt(n),e.writeCommentRange(i.text,Te(),f,n,t,M),Xt(t),2===r&&f.writeLine()}function Ut(n,t,r,a){Xt(n),e.writeCommentRange(i.text,Te(),f,n,t,M),Xt(t),a?f.writeLine():f.writeSpace(" ")}function Vt(n,t){!i||-1!==X&&n===X||(function(n){return void 0!==b&&e.last(b).nodePos===n}(n)?function(n){var t=e.last(b).detachedCommentEndPos;b.length-1?b.pop():b=void 0,e.forEachLeadingCommentRange(i.text,t,n,t)}(t):e.forEachLeadingCommentRange(i.text,n,t,n))}function jt(n,t){i&&(-1===Y||n!==Y&&n!==Q)&&e.forEachTrailingCommentRange(i.text,n,t)}function Kt(n,t,r,a,o,s){Pt(i.text,a)&&(Xt(a),e.writeCommentRange(n,t,r,a,o,s),Xt(o))}function Ht(n,t){return e.isRecognizedTripleSlashComment(i.text,n,t)}function Wt(e,n){var t=Oe(3,e,n);zt(n),t(e,n),Jt(n)}function zt(n){var t=e.getEmitFlags(n),r=e.getSourceMapRange(n);if(e.isUnparsedNode(n)){e.Debug.assertIsDefined(n.parent,"UnparsedNodes must have parent pointers");var i=function(n){return void 0===n.parsedSourceMap&&void 0!==n.sourceMapText&&(n.parsedSourceMap=e.tryParseRawSourceMap(n.sourceMapText)||!1),n.parsedSourceMap||void 0}(n.parent);i&&g&&g.appendSourceMap(f.getLine(),f.getColumn(),i,n.parent.sourceMapPath,n.parent.getLineAndCharacterOfPosition(n.pos),n.parent.getLineAndCharacterOfPosition(n.end))}else{var a=r.source||y;344!==n.kind&&0==(16&t)&&r.pos>=0&&Yt(r.source||y,qt(a,r.pos)),64&t&&(z=!0)}}function Jt(n){var t=e.getEmitFlags(n),r=e.getSourceMapRange(n);e.isUnparsedNode(n)||(64&t&&(z=!1),344!==n.kind&&0==(32&t)&&r.end>=0&&Yt(r.source||y,r.end))}function qt(n,t){return n.skipTrivia?n.skipTrivia(t):e.skipTrivia(n.text,t)}function Xt(n){if(!(z||e.positionIsSynthesized(n)||Zt(y))){var t=e.getLineAndCharacterOfPosition(y,n),r=t.line,i=t.character;g.addMapping(f.getLine(),f.getColumn(),J,r,i,void 0)}}function Yt(e,n){if(e!==y){var t=y,r=J;Qt(e),Xt(n),function(e,n){y=e,J=n}(t,r)}else Xt(n)}function Qt(e){z||(y=e,e!==h?Zt(e)||(J=g.addSource(e.fileName),n.inlineSources&&g.setSourceContent(J,e.text),h=e,q=J):J=q)}function Zt(n){return e.fileExtensionIs(n.fileName,".json")}}e.isBuildInfoFile=function(n){return e.fileExtensionIs(n,".tsbuildinfo")},e.forEachEmittedFile=a,e.getTsBuildInfoEmitOutputFilePath=o,e.getOutputPathsForBundle=s,e.getOutputPathsFor=c,e.getOutputExtension=u,e.getOutputDeclarationFileName=p,e.getCommonSourceDirectory=y,e.getCommonSourceDirectoryOfConfig=h,e.getAllProjectOutputs=function(n,t){var r=m(),i=r.addOutput,a=r.getOutputs;if(e.outFile(n.options))_(n,i);else{for(var s=e.memoize((function(){return h(n,t)})),c=0,l=n.fileNames;c<l.length;c++){var u=l[c];g(n,u,t,i,s)}i(o(n.options))}return a()},e.getOutputFileNames=function(n,t,r){t=e.normalizePath(t),e.Debug.assert(e.contains(n.fileNames,t),"Expected fileName to be present in command line");var i=m(),a=i.addOutput,o=i.getOutputs;return e.outFile(n.options)?_(n,a):g(n,t,r,a),o()},e.getFirstProjectOutput=function(n,t){if(e.outFile(n.options)){var r=s(n.options,!1).jsFilePath;return e.Debug.checkDefined(r,"project "+n.options.configFilePath+" expected to have at least one output")}for(var i=e.memoize((function(){return h(n,t)})),a=0,c=n.fileNames;a<c.length;a++){var l=c[a];if(!e.fileExtensionIs(l,".d.ts")){if(r=f(l,n,t,i))return r;if(!e.fileExtensionIs(l,".json")&&e.getEmitDeclarations(n.options))return p(l,n,t,i)}}return o(n.options)||e.Debug.fail("project "+n.options.configFilePath+" expected to have at least one output")},e.emitFiles=v,e.getBuildInfoText=b,e.getBuildInfo=E,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(e){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},e.emitUsingBuildInfo=function(n,t,r,a){var o=s(n.options,!1),c=o.buildInfoPath,l=o.jsFilePath,u=o.sourceMapFilePath,d=o.declarationFilePath,p=o.declarationMapPath,f=t.readFile(e.Debug.checkDefined(c));if(!f)return c;var m=t.readFile(e.Debug.checkDefined(l));if(!m)return l;var _=u&&t.readFile(u);if(u&&!_||n.options.inlineSourceMap)return u||"inline sourcemap decoding";var g=d&&t.readFile(d);if(d&&!g)return d;var y=p&&t.readFile(p);if(p&&!y||n.options.inlineSourceMap)return p||"inline sourcemap decoding";var h=E(f);if(!h.bundle||!h.bundle.js||g&&!h.bundle.dts)return c;var T=e.getDirectoryPath(e.getNormalizedAbsolutePath(c,t.getCurrentDirectory())),S=e.createInputFiles(m,g,u,_,p,y,l,d,c,h,!0),x=[],L=e.createPrependNodes(n.projectReferences,r,(function(e){return t.readFile(e)})),D=function(n,t,r){var i,a=e.Debug.checkDefined(n.js),o=(null===(i=a.sources)||void 0===i?void 0:i.prologues)&&e.arrayToMap(a.sources.prologues,(function(e){return e.file}));return n.sourceFiles.map((function(n,i){var a,s,c=null==o?void 0:o.get(i),l=null==c?void 0:c.directives.map((function(n){var t=e.setTextRange(e.factory.createStringLiteral(n.expression.text),n.expression),r=e.setTextRange(e.factory.createExpressionStatement(t),n);return e.setParent(t,r),r})),u=e.factory.createToken(1),d=e.factory.createSourceFile(null!=l?l:[],u,0);return d.fileName=e.getRelativePathFromDirectory(r.getCurrentDirectory(),e.getNormalizedAbsolutePath(n,t),!r.useCaseSensitiveFileNames()),d.text=null!==(a=null==c?void 0:c.text)&&void 0!==a?a:"",e.setTextRangePosWidth(d,0,null!==(s=null==c?void 0:c.text.length)&&void 0!==s?s:0),e.setEachParent(d.statements,d),e.setTextRangePosWidth(u,d.end,0),e.setParent(u,d),d}))}(h.bundle,T,t),A={getPrependNodes:e.memoize((function(){return i(i([],L,!0),[S],!1)})),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(h.bundle.commonSourceDirectory,T)},getCompilerOptions:function(){return n.options},getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return D},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(n,t,r){switch(n){case l:if(m===t)return;break;case u:if(_===t)return;break;case c:var i=E(t);i.program=h.program;var a=h.bundle,o=a.js,s=a.dts,f=a.sourceFiles;return i.bundle.js.sources=o.sources,s&&(i.bundle.dts.sources=s.sources),i.bundle.sourceFiles=f,void x.push({name:n,text:b(i),writeByteOrderMark:r});case d:if(g===t)return;break;case p:if(y===t)return;break;default:e.Debug.fail("Unexpected path: "+n)}x.push({name:n,text:t,writeByteOrderMark:r})},isEmitBlocked:e.returnFalse,readFile:function(e){return t.readFile(e)},fileExists:function(e){return t.fileExists(e)},useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return v(e.notImplementedResolver,A,void 0,e.getTransformers(n.options,a)),x},function(e){e[e.Notification=0]="Notification",e[e.Substitution=1]="Substitution",e[e.Comments=2]="Comments",e[e.SourceMaps=3]="SourceMaps",e[e.Emit=4]="Emit"}(n||(n={})),e.createPrinter=T,function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(t||(t={}))}(u||(u={})),function(e){var n,t;function r(e){e.watcher.close()}e.createCachedDirectoryStructureHost=function(n,t,r){if(n.getDirectories&&n.readDirectory){var i=new e.Map,a=e.createGetCanonicalFileName(r);return{useCaseSensitiveFileNames:r,fileExists:function(e){var t=c(o(e));return t&&p(t.files,l(e))||n.fileExists(e)},readFile:function(e,t){return n.readFile(e,t)},directoryExists:n.directoryExists&&m,getDirectories:function(e){var t=u(e,o(e));return t?t.directories.slice():n.getDirectories(e)},readDirectory:function(i,a,s,c,d){var p,f=o(i),g=u(i,f);return void 0!==g?e.matchFiles(i,a,s,c,r,t,d,(function(n){var t=o(n);if(t===f)return g||y(n,t);var r=u(n,t);return void 0!==r?r||y(n,t):e.emptyFileSystemEntries}),_,m):n.readDirectory(i,a,s,c,d);function y(t,r){if(p&&r===f)return p;var i={files:e.map(n.readDirectory(t,void 0,void 0,["*.*"]),l)||e.emptyArray,directories:n.getDirectories(t)||e.emptyArray};return r===f&&(p=i),i}},createDirectory:n.createDirectory&&function(e){var t=c(o(e)),r=l(e);t&&f(t.directories,r,!0),n.createDirectory(e)},writeFile:n.writeFile&&function(e,t,r){var i=c(o(e));return i&&g(i,l(e),!0),n.writeFile(e,t,r)},addOrDeleteFileOrDirectory:function(e,t){if(void 0===s(t)){var r=c(t);if(r){if(n.directoryExists){var i=l(e),a={fileExists:n.fileExists(t),directoryExists:n.directoryExists(t)};return a.directoryExists||p(r.directories,i)?y():g(r,i,a.fileExists),a}y()}}else y()},addOrDeleteFile:function(n,t,r){if(r!==e.FileWatcherEventKind.Changed){var i=c(t);i&&g(i,l(n),r===e.FileWatcherEventKind.Created)}},clearCache:y,realpath:n.realpath&&_}}function o(n){return e.toPath(n,t,a)}function s(n){return i.get(e.ensureTrailingDirectorySeparator(n))}function c(n){return s(e.getDirectoryPath(n))}function l(n){return e.getBaseFileName(e.normalizePath(n))}function u(t,r){var a=s(r=e.ensureTrailingDirectorySeparator(r));if(a)return a;try{return function(t,r){var a;if(!n.realpath||e.ensureTrailingDirectorySeparator(o(n.realpath(t)))===r){var s={files:e.map(n.readDirectory(t,void 0,void 0,["*.*"]),l)||[],directories:n.getDirectories(t)||[]};return i.set(e.ensureTrailingDirectorySeparator(r),s),s}if(null===(a=n.directoryExists)||void 0===a?void 0:a.call(n,t))return i.set(r,!1),!1}(t,r)}catch(n){return void e.Debug.assert(!i.has(e.ensureTrailingDirectorySeparator(r)))}}function d(e,n){return a(e)===a(n)}function p(n,t){return e.some(n,(function(e){return d(e,t)}))}function f(n,t,r){if(p(n,t)){if(!r)return e.filterMutate(n,(function(e){return!d(e,t)}))}else if(r)return n.push(t)}function m(t){var r=o(t);return i.has(e.ensureTrailingDirectorySeparator(r))||n.directoryExists(t)}function _(e){return n.realpath?n.realpath(e):e}function g(e,n,t){f(e.files,n,t)}function y(){i.clear()}},(t=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}))[t.None=0]="None",t[t.Partial=1]="Partial",t[t.Full=2]="Full",e.updateSharedExtendedConfigFileWatcher=function(n,t,r,i,a){var o,s=e.arrayToMap((null===(o=null==t?void 0:t.configFile)||void 0===o?void 0:o.extendedSourceFiles)||e.emptyArray,a);r.forEach((function(e,t){s.has(t)||(e.projects.delete(n),e.close())})),s.forEach((function(t,a){var o=r.get(a);o?o.projects.add(n):r.set(a,{projects:new e.Set([n]),watcher:i(t,a),close:function(){var e=r.get(a);e&&0===e.projects.size&&(e.watcher.close(),r.delete(a))}})}))},e.clearSharedExtendedConfigFileWatcher=function(e,n){n.forEach((function(n){n.projects.delete(e)&&n.close()}))},e.cleanExtendedConfigCache=function e(n,t,r){n.delete(t)&&n.forEach((function(i,a){var o;(null===(o=i.extendedResult.extendedSourceFiles)||void 0===o?void 0:o.some((function(e){return r(e)===t})))&&e(n,a,r)}))},e.updatePackageJsonWatch=function(n,t,r){var i=new e.Map(n);e.mutateMap(t,i,{createNewValue:r,onDeleteValue:e.closeFileWatcher})},e.updateMissingFilePathsWatch=function(n,t,r){var i=n.getMissingFilePaths(),a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(t,a,{createNewValue:r,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(n,t,i){function a(e,n){return{watcher:i(e,n),flags:n}}e.mutateMap(n,t,{createNewValue:a,onDeleteValue:r,onExistingValue:function(e,t,r){e.flags!==t&&(e.watcher.close(),n.set(r,a(r,t)))}})},e.isIgnoredFileFromWildCardWatching=function(n){var t=n.watchedDirPath,r=n.fileOrDirectory,i=n.fileOrDirectoryPath,a=n.configFileName,o=n.options,s=n.program,c=n.extraFileExtensions,l=n.currentDirectory,u=n.useCaseSensitiveFileNames,d=n.writeLog,p=n.toPath,f=e.removeIgnoredPath(i);if(!f)return d("Project: "+a+" Detected ignored path: "+r),!0;if((i=f)===t)return!1;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(r,o,c))return d("Project: "+a+" Detected file add/remove of non supported extension: "+r),!0;if(e.isExcludedFile(r,o.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),l),u,l))return d("Project: "+a+" Detected excluded file: "+r),!0;if(!s)return!1;if(e.outFile(o)||o.outDir)return!1;if(e.fileExtensionIs(i,".d.ts")){if(o.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(i,e.supportedJSExtensions))return!1;var m=e.removeFileExtension(i),_=e.isArray(s)?void 0:function(e){return!!e.getState}(s)?s.getProgramOrUndefined():s,g=_||e.isArray(s)?void 0:s;return!(!y(m+".ts")&&!y(m+".tsx")||(d("Project: "+a+" Detected output file: "+r),0));function y(n){return _?!!_.getSourceFileByPath(n):g?g.getState().fileInfos.has(n):!!e.find(s,(function(e){return p(e)===n}))}},e.isEmittedFileOfProgram=function(e,n){return!!e&&e.isEmittedFile(n)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(n=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(t,r,a,o){e.setSysLog(r===n.Verbose?a:e.noop);var s={watchFile:function(e,n,r,i){return t.watchFile(e,n,r,i)},watchDirectory:function(e,n,r,i){return t.watchDirectory(e,n,0!=(1&r),i)}},c=r!==n.None?{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")}:void 0,l=r===n.Verbose?{watchFile:function(e,n,t,r,i,s){a("FileWatcher:: Added:: "+f(e,t,r,i,s,o));var l=c.watchFile(e,n,t,r,i,s);return{close:function(){a("FileWatcher:: Close:: "+f(e,t,r,i,s,o)),l.close()}}},watchDirectory:function(n,t,r,i,s,l){var u="DirectoryWatcher:: Added:: "+f(n,r,i,s,l,o);a(u);var d=e.timestamp(),p=c.watchDirectory(n,t,r,i,s,l),m=e.timestamp()-d;return a("Elapsed:: "+m+"ms "+u),{close:function(){var t="DirectoryWatcher:: Close:: "+f(n,r,i,s,l,o);a(t);var c=e.timestamp();p.close();var u=e.timestamp()-c;a("Elapsed:: "+u+"ms "+t)}}}}:c||s,u=r===n.Verbose?function(e,n,t,r,i){return a("ExcludeWatcher:: Added:: "+f(e,n,t,r,i,o)),{close:function(){return a("ExcludeWatcher:: Close:: "+f(e,n,t,r,i,o))}}}:e.returnNoopFileWatcher;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(n){return function(r,i,a,o,s,c){var d;return e.matchesExclude(r,"watchFile"===n?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),(null===(d=t.getCurrentDirectory)||void 0===d?void 0:d.call(t))||"")?u(r,a,o,s,c):l[n].call(void 0,r,i,a,o,s,c)}}function p(n){return function(t,r,c,l,u,d){return s[n].call(void 0,t,(function(){for(var s=[],p=0;p<arguments.length;p++)s[p]=arguments[p];var m=("watchFile"===n?"FileWatcher":"DirectoryWatcher")+":: Triggered with "+s[0]+" "+(void 0!==s[1]?s[1]:"")+":: "+f(t,c,l,u,d,o);a(m);var _=e.timestamp();r.call.apply(r,i([void 0],s,!1));var g=e.timestamp()-_;a("Elapsed:: "+g+"ms "+m)}),c,l,u,d)}}function f(e,n,t,r,i,a){return"WatchInfo: "+e+" "+n+" "+JSON.stringify(t)+" "+(a?a(r,i):void 0===i?r:r+" "+i)}},e.getFallbackOptions=function(n){var t=null==n?void 0:n.fallbackPolling;return{watchFile:void 0!==t?t:e.WatchFileKind.PriorityPollingInterval}},e.closeFileWatcherOf=r}(u||(u={})),function(e){function n(n,t){var r=e.getDirectoryPath(t),i=e.isRootedDiskPath(n)?n:e.combinePaths(r,n);return e.normalizePath(i)}function t(e,n){return r(e,n)}function r(n,t,r){void 0===r&&(r=e.sys);var i,a=new e.Map,o=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),s=e.maybeBind(r,r.createHash)||e.generateDjb2Hash;function c(){return e.getDirectoryPath(e.normalizePath(r.getExecutingFilePath()))}var l=e.getNewLineCharacter(n,(function(){return r.newLine})),u=r.realpath&&function(e){return r.realpath(e)},d={getSourceFile:function(n,r,i){var a;try{e.performance.mark("beforeIORead"),a=d.readFile(n),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),a=""}return void 0!==a?e.createSourceFile(n,a,r,t):void 0},getDefaultLibLocation:c,getDefaultLibFileName:function(n){return e.combinePaths(c(),e.getDefaultLibFileName(n))},writeFile:function(t,o,c,l){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(t,o,c,(function(t,a,o){return function(t,a,o){if(e.isWatchSet(n)&&r.getModifiedTime){i||(i=new e.Map);var c=s(a),l=r.getModifiedTime(t);if(l){var u=i.get(t);if(u&&u.byteOrderMark===o&&u.hash===c&&u.mtime.getTime()===l.getTime())return}r.writeFile(t,a,o);var d=r.getModifiedTime(t)||e.missingFileModifiedTime;i.set(t,{hash:c,byteOrderMark:o,mtime:d})}else r.writeFile(t,a,o)}(t,a,o)}),(function(e){return(d.createDirectory||r.createDirectory)(e)}),(function(e){return n=e,!!a.has(n)||!!(d.directoryExists||r.directoryExists)(n)&&(a.set(n,!0),!0);var n})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){l&&l(e.message)}},getCurrentDirectory:e.memoize((function(){return r.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return r.useCaseSensitiveFileNames},getCanonicalFileName:o,getNewLine:function(){return l},fileExists:function(e){return r.fileExists(e)},readFile:function(e){return r.readFile(e)},trace:function(e){return r.write(e+l)},directoryExists:function(e){return r.directoryExists(e)},getEnvironmentVariable:function(e){return r.getEnvironmentVariable?r.getEnvironmentVariable(e):""},getDirectories:function(e){return r.getDirectories(e)},realpath:u,readDirectory:function(e,n,t,i,a){return r.readDirectory(e,n,t,i,a)},createDirectory:function(e){return r.createDirectory(e)},createHash:e.maybeBind(r,r.createHash)};return d}function a(n,t){var r=e.diagnosticCategoryName(n)+" TS"+n.code+": "+m(n.messageText,t.getNewLine())+t.getNewLine();if(n.file){var i=e.getLineAndCharacterOfPosition(n.file,n.start),a=i.line,o=i.character,s=n.file.fileName,c=e.convertToRelativePath(s,t.getCurrentDirectory(),(function(e){return t.getCanonicalFileName(e)}));return c+"("+(a+1)+","+(o+1)+"): "+r}return r}var o;e.findConfigFile=function(n,t,r){return void 0===r&&(r="tsconfig.json"),e.forEachAncestorDirectory(n,(function(n){var i=e.combinePaths(n,r);return t(i)?i:void 0}))},e.resolveTripleslashReference=n,e.computeCommonSourceDirectoryOfFilenames=function(n,t,r){var i;return e.forEach(n,(function(n){var a=e.getNormalizedPathComponents(n,t);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;s<o;s++)if(r(i[s])!==r(a[s])){if(0===s)return!0;i.length=s;break}a.length<i.length&&(i.length=a.length)}else i=a}))?"":i?e.getPathFromPathComponents(i):t},e.createCompilerHost=t,e.createCompilerHostWorker=r,e.changeCompilerHostLikeToUseCache=function(n,t,r){var i=n.readFile,a=n.fileExists,o=n.directoryExists,s=n.createDirectory,c=n.writeFile,l=new e.Map,u=new e.Map,d=new e.Map,p=new e.Map,f=function(e,t){var r=i.call(n,t);return l.set(e,void 0!==r&&r),r};n.readFile=function(r){var a=t(r),o=l.get(a);return void 0!==o?!1!==o?o:void 0:e.fileExtensionIs(r,".json")||e.isBuildInfoFile(r)?f(a,r):i.call(n,r)};var m=r?function(n,i,a,o){var s=t(n),c=p.get(s);if(c)return c;var l=r(n,i,a,o);return l&&(e.isDeclarationFileName(n)||e.fileExtensionIs(n,".json"))&&p.set(s,l),l}:void 0;return n.fileExists=function(e){var r=t(e),i=u.get(r);if(void 0!==i)return i;var o=a.call(n,e);return u.set(r,!!o),o},c&&(n.writeFile=function(e,r,i,a,o){var s=t(e);u.delete(s);var d=l.get(s);if(void 0!==d&&d!==r)l.delete(s),p.delete(s);else if(m){var f=p.get(s);f&&f.text!==r&&p.delete(s)}c.call(n,e,r,i,a,o)}),o&&s&&(n.directoryExists=function(e){var r=t(e),i=d.get(r);if(void 0!==i)return i;var a=o.call(n,e);return d.set(r,!!a),a},n.createDirectory=function(e){var r=t(e);d.delete(r),s.call(n,e)}),{originalReadFile:i,originalFileExists:a,originalDirectoryExists:o,originalCreateDirectory:s,originalWriteFile:c,getSourceFileWithCache:m,readFileWithCache:function(e){var n=t(e),r=l.get(n);return void 0!==r?!1!==r?r:void 0:f(n,e)}}},e.getPreEmitDiagnostics=function(n,t,r){var i;return i=e.addRange(i,n.getConfigFileParsingDiagnostics()),i=e.addRange(i,n.getOptionsDiagnostics(r)),i=e.addRange(i,n.getSyntacticDiagnostics(t,r)),i=e.addRange(i,n.getGlobalDiagnostics(r)),i=e.addRange(i,n.getSemanticDiagnostics(t,r)),e.getEmitDeclarations(n.getCompilerOptions())&&(i=e.addRange(i,n.getDeclarationDiagnostics(t,r))),e.sortAndDeduplicateDiagnostics(i||e.emptyArray)},e.formatDiagnostics=function(e,n){for(var t="",r=0,i=e;r<i.length;r++)t+=a(i[r],n);return t},e.formatDiagnostic=a,function(e){e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan=""}(o=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var s="",c="",l=" ";function u(n){switch(n){case e.DiagnosticCategory.Error:return o.Red;case e.DiagnosticCategory.Warning:return o.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return o.Blue}}function d(e,n){return n+e+c}function p(n,t,r,i,a,o){var l=e.getLineAndCharacterOfPosition(n,t),u=l.line,p=l.character,f=e.getLineAndCharacterOfPosition(n,t+r),m=f.line,_=f.character,g=e.getLineAndCharacterOfPosition(n,n.text.length).line,y=m-u>=4,h=(m+1+"").length;y&&(h=Math.max(3,h));for(var v="",b=u;b<=m;b++){v+=o.getNewLine(),y&&u+1<b&&b<m-1&&(v+=i+d(e.padLeft("...",h),s)+" "+o.getNewLine(),b=m-1);var E=e.getPositionOfLineAndCharacter(n,b,0),T=b<g?e.getPositionOfLineAndCharacter(n,b+1,0):n.text.length,S=n.text.slice(E,T);if(S=(S=e.trimStringEnd(S)).replace(/\t/g," "),v+=i+d(e.padLeft(b+1+"",h),s)+" ",v+=S+o.getNewLine(),v+=i+d(e.padLeft("",h),s)+" ",v+=a,b===u){var x=b===m?_:void 0;v+=S.slice(0,p).replace(/\S/g," "),v+=S.slice(p,x).replace(/./g,"~")}else v+=b===m?S.slice(0,_).replace(/./g,"~"):S.replace(/./g,"~");v+=c}return v}function f(n,t,r,i){void 0===i&&(i=d);var a=e.getLineAndCharacterOfPosition(n,t),s=a.line,c=a.character,l="";return l+=i(r?e.convertToRelativePath(n.fileName,r.getCurrentDirectory(),(function(e){return r.getCanonicalFileName(e)})):n.fileName,o.Cyan),l+=":",l+=i(""+(s+1),o.Yellow),(l+=":")+i(""+(c+1),o.Yellow)}function m(n,t,r){if(void 0===r&&(r=0),e.isString(n))return n;if(void 0===n)return"";var i="";if(r){i+=t;for(var a=0;a<r;a++)i+=" "}if(i+=n.messageText,r++,n.next)for(var o=0,s=n.next;o<s.length;o++)i+=m(s[o],t,r);return i}function _(n,t,r,i){if(0===n.length)return[];for(var a=[],o=new e.Map,s=0,c=n;s<c.length;s++){var l=c[s],u=void 0;o.has(l)?u=o.get(l):o.set(l,u=i(l,t,r)),a.push(u)}return a}function g(n,t,r,i){var a;return function n(t,o,s){if(i){var c=i(t,s);if(c)return c}return e.forEach(o,(function(t,i){if(!t||!(null==a?void 0:a.has(t.sourceFile.path))){var o=r(t,s,i);return o||!t?o:((a||(a=new e.Set)).add(t.sourceFile.path),n(t.commandLine.projectReferences,t.references,t))}}))}(n,t,void 0)}function y(n){switch(null==n?void 0:n.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}function h(e){return void 0!==e.pos}function v(n,t){var r,i,a,o,s,c,l,u,d,p,f=e.Debug.checkDefined(n(t.file)),m=t.kind,_=t.index;switch(m){case e.FileIncludeKind.Import:var g=A(f,_);if(p=null===(s=null===(o=f.resolvedModules)||void 0===o?void 0:o.get(g.text))||void 0===s?void 0:s.packageId,-1===g.pos)return{file:f,packageId:p,text:g.text};u=e.skipTrivia(f.text,g.pos),d=g.end;break;case e.FileIncludeKind.ReferenceFile:u=(r=f.referencedFiles[_]).pos,d=r.end;break;case e.FileIncludeKind.TypeReferenceDirective:u=(i=f.typeReferenceDirectives[_]).pos,d=i.end,p=null===(l=null===(c=f.resolvedTypeReferenceDirectiveNames)||void 0===c?void 0:c.get(e.toFileNameLowerCase(f.typeReferenceDirectives[_].fileName)))||void 0===l?void 0:l.packageId;break;case e.FileIncludeKind.LibReferenceDirective:u=(a=f.libReferenceDirectives[_]).pos,d=a.end;break;default:return e.Debug.assertNever(m)}return{file:f,pos:u,end:d,packageId:p}}function b(n,t,r,a){var o=n.getCompilerOptions();if(o.noEmit)return n.getSemanticDiagnostics(t,a),t||e.outFile(o)?e.emitSkippedWithNoDiagnostics:n.emitBuildInfo(r,a);if(o.noEmitOnError){var s=i(i(i(i([],n.getOptionsDiagnostics(a),!0),n.getSyntacticDiagnostics(t,a),!0),n.getGlobalDiagnostics(a),!0),n.getSemanticDiagnostics(t,a),!0);if(0===s.length&&e.getEmitDeclarations(n.getCompilerOptions())&&(s=n.getDeclarationDiagnostics(void 0,a)),s.length){var c;if(!t&&!e.outFile(o)){var l=n.emitBuildInfo(r,a);l.diagnostics&&(s=i(i([],s,!0),l.diagnostics,!0)),c=l.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}}}function E(n,t){return e.filter(n,(function(e){return!e.skippedOn||!t[e.skippedOn]}))}function T(n,t){return void 0===t&&(t=n),{fileExists:function(e){return t.fileExists(e)},readDirectory:function(n,r,i,a,o){return e.Debug.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(n,r,i,a,o)},readFile:function(e){return t.readFile(e)},useCaseSensitiveFileNames:n.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return n.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:n.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:n.trace?function(e){return n.trace(e)}:void 0}}function S(n,t,r){if(!n)return e.emptyArray;for(var i,a=0;a<n.length;a++){var o=n[a],s=t(o,a);if(o.prepend&&s&&s.options){if(!e.outFile(s.options))continue;var c=e.getOutputPathsForBundle(s.options,!0),l=c.jsFilePath,u=c.sourceMapFilePath,d=c.declarationFilePath,p=c.declarationMapPath,f=c.buildInfoPath,m=e.createInputFiles(r,l,u,d,p,f);(i||(i=[])).push(m)}}return i||e.emptyArray}function x(n,t){var r=t||n;return e.resolveConfigFileProjectName(r.path)}function L(n,t){switch(t.extension){case".ts":case".d.ts":return;case".tsx":return r();case".jsx":return r()||i();case".js":return i();case".json":return n.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function r(){return n.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return e.getAllowJSCompilerOption(n)||!e.getStrictOptionValue(n,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function D(e){for(var n=e.imports,t=e.moduleAugmentations,r=n.map((function(e){return e.text})),i=0,a=t;i<a.length;i++){var o=a[i];10===o.kind&&r.push(o.text)}return r}function A(n,t){var r=n.imports,i=n.moduleAugmentations;if(t<r.length)return r[t];for(var a=r.length,o=0,s=i;o<s.length;o++){var c=s[o];if(10===c.kind){if(t===a)return c;a++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.formatColorAndReset=d,e.formatLocation=f,e.formatDiagnosticsWithColorAndContext=function(n,t){for(var r="",i=0,a=n;i<a.length;i++){var s=a[i];if(s.file&&(r+=f(y=s.file,h=s.start,t),r+=" - "),r+=d(e.diagnosticCategoryName(s),u(s.category)),r+=d(" TS"+s.code+": ",o.Grey),r+=m(s.messageText,t.getNewLine()),s.file&&(r+=t.getNewLine(),r+=p(s.file,s.start,s.length,"",u(s.category),t)),s.relatedInformation){r+=t.getNewLine();for(var c=0,_=s.relatedInformation;c<_.length;c++){var g=_[c],y=g.file,h=g.start,v=g.length,b=g.messageText;y&&(r+=t.getNewLine(),r+=" "+f(y,h,t),r+=p(y,h,v,l,o.Cyan,t)),r+=t.getNewLine(),r+=l+m(b,t.getNewLine())}}r+=t.getNewLine()}return r},e.flattenDiagnosticMessageText=m,e.loadWithLocalCache=_,e.forEachResolvedProjectReference=function(e,n){return g(void 0,e,(function(e,t){return e&&n(e,t)}))},e.inferredTypesContainingFile="__inferred type names__.ts",e.isReferencedFile=y,e.isReferenceFileLocation=h,e.getReferencedFileLocation=v,e.isProgramUptoDate=function(n,t,r,i,a,o,s,c,l){if(!n||(null==s?void 0:s()))return!1;if(!e.arrayIsEqualTo(n.getRootFileNames(),t))return!1;var u;if(!e.arrayIsEqualTo(n.getProjectReferences(),l,(function(t,r,i){return e.projectReferenceIsEqualTo(t,r)&&p(n.getResolvedProjectReferences()[i],t)})))return!1;if(n.getSourceFiles().some((function(e){return!function(e){return e.version===i(e.resolvedPath,e.fileName)}(e)||o(e.path)})))return!1;if(n.getMissingFilePaths().some(a))return!1;var d=n.getCompilerOptions();return!(!e.compareDataObjects(d,r)||d.configFile&&r.configFile&&d.configFile.text!==r.configFile.text);function p(n,t){if(n){if(e.contains(u,n))return!0;var r=x(t),i=c(r);return!!i&&n.commandLine.options.configFile===i.options.configFile&&!!e.arrayIsEqualTo(n.commandLine.fileNames,i.fileNames)&&((u||(u=[])).push(n),!e.forEach(n.references,(function(e,t){return!p(e,n.commandLine.projectReferences[t])})))}var a=x(t);return!c(a)}},e.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?i(i([],e.options.configFile.parseDiagnostics,!0),e.errors,!0):e.errors},e.createProgram=function(r,a,o,s,c){var l,u,d,p,f,m,A,C,I,N,k,R,O=e.isArray(r)?function(e,n,t,r,i){return{rootNames:e,options:n,host:t,oldProgram:r,configFileParsingDiagnostics:i}}(r,a,o,s,c):r,P=O.rootNames,w=O.options,M=O.configFileParsingDiagnostics,F=O.projectReferences,G=O.oldProgram,B=new e.Map,U=e.createMultiMap(),V={},j={},K=new e.Map,H="number"==typeof w.maxNodeModuleJsDepth?w.maxNodeModuleJsDepth:0,W=0,z=new e.Map,J=new e.Map;null===e.tracing||void 0===e.tracing||e.tracing.push("program","createProgram",{configFilePath:w.configFilePath,rootDir:w.rootDir},!0),e.performance.mark("beforeProgram");var q,X,Y,Q,Z,$=O.host||t(w),ee=T($),ne=w.noLib,te=e.memoize((function(){return $.getDefaultLibFileName(w)})),re=$.getDefaultLibLocation?$.getDefaultLibLocation():e.getDirectoryPath(te()),ie=e.createDiagnosticCollection(),ae=$.getCurrentDirectory(),oe=e.getSupportedExtensions(w),se=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(w,oe),ce=new e.Map,le=$.hasInvalidatedResolution||e.returnFalse;if($.resolveModuleNames)Q=function(n,t,r,i){return $.resolveModuleNames(e.Debug.checkEachDefined(n),t,r,i,w).map((function(n){if(!n||void 0!==n.extension)return n;var t=e.clone(n);return t.extension=e.extensionFromPath(n.resolvedFileName),t}))};else{X=e.createModuleResolutionCache(ae,Un,w);var ue=function(n,t,r){return e.resolveModuleName(n,t,w,$,X,r).resolvedModule};Q=function(n,t,r,i){return _(e.Debug.checkEachDefined(n),t,i,ue)}}if($.resolveTypeReferenceDirectives)Z=function(n,t,r){return $.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(n),t,r,w)};else{Y=e.createTypeReferenceDirectiveResolutionCache(ae,Un,void 0,null==X?void 0:X.getPackageJsonInfoCache());var de=function(n,t,r){return e.resolveTypeReferenceDirective(n,t,w,$,r,Y).resolvedTypeReferenceDirective};Z=function(n,t,r){return _(e.Debug.checkEachDefined(n),t,r,de)}}var pe,fe,me,_e,ge,ye=new e.Map,he=new e.Map,ve=e.createMultiMap(),be=!1,Ee=new e.Map,Te=$.useCaseSensitiveFileNames()?new e.Map:void 0,Se=!!(null===(l=$.useSourceOfProjectReferenceRedirect)||void 0===l?void 0:l.call($))&&!w.disableSourceOfProjectReferenceRedirect,xe=function(n){var t,r,i=n.compilerHost.fileExists,a=n.compilerHost.directoryExists,o=n.compilerHost.getDirectories,s=n.compilerHost.realpath;return n.useSourceOfProjectReferenceRedirect?(n.compilerHost.fileExists=c,a&&(r=n.compilerHost.directoryExists=function(r){return a.call(n.compilerHost,r)?(function(t){var r;if(n.getResolvedProjectReferences()&&!e.containsIgnoredPath(t)&&s&&e.stringContains(t,e.nodeModulesPathPart)){var i=n.getSymlinkCache(),a=e.ensureTrailingDirectorySeparator(n.toPath(t));if(!(null===(r=i.getSymlinkedDirectories())||void 0===r?void 0:r.has(a))){var o,c=e.normalizePath(s.call(n.compilerHost,t));c!==t&&(o=e.ensureTrailingDirectorySeparator(n.toPath(c)))!==a?i.setSymlinkedDirectory(t,{real:e.ensureTrailingDirectorySeparator(c),realPath:o}):i.setSymlinkedDirectory(a,!1)}}}(r),!0):!!n.getResolvedProjectReferences()&&(t||(t=new e.Set,n.forEachResolvedProjectReference((function(r){var i=e.outFile(r.commandLine.options);if(i)t.add(e.getDirectoryPath(n.toPath(i)));else{var a=r.commandLine.options.declarationDir||r.commandLine.options.outDir;a&&t.add(n.toPath(a))}}))),l(r,!1))}),o&&(n.compilerHost.getDirectories=function(e){return!n.getResolvedProjectReferences()||a&&a.call(n.compilerHost,e)?o.call(n.compilerHost,e):[]}),s&&(n.compilerHost.realpath=function(e){var t;return(null===(t=n.getSymlinkCache().getSymlinkedFiles())||void 0===t?void 0:t.get(n.toPath(e)))||s.call(n.compilerHost,e)}),{onProgramCreateComplete:function(){n.compilerHost.fileExists=i,n.compilerHost.directoryExists=a,n.compilerHost.getDirectories=o},fileExists:c,directoryExists:r}):{onProgramCreateComplete:e.noop,fileExists:c};function c(t){return!!i.call(n.compilerHost,t)||!!n.getResolvedProjectReferences()&&!!e.isDeclarationFileName(t)&&l(t,!0)}function l(r,a){var o,s=a?function(t){return function(t){var r=n.getSourceOfProjectReferenceRedirect(t);return void 0!==r?!e.isString(r)||i.call(n.compilerHost,r):void 0}(t)}:function(r){return function(r){var i=n.toPath(r),a=""+i+e.directorySeparator;return e.forEachKey(t,(function(n){return i===n||e.startsWith(n,a)||e.startsWith(i,n+"/")}))}(r)},c=s(r);if(void 0!==c)return c;var l=n.getSymlinkCache(),u=l.getSymlinkedDirectories();if(!u)return!1;var d=n.toPath(r);return!!e.stringContains(d,e.nodeModulesPathPart)&&(!(!a||!(null===(o=l.getSymlinkedFiles())||void 0===o?void 0:o.has(d)))||e.firstDefinedIterator(u.entries(),(function(t){var i=t[0],o=t[1];if(o&&e.startsWith(d,i)){var c=s(d.replace(i,o.realPath));if(a&&c){var u=e.getNormalizedAbsolutePath(r,n.compilerHost.getCurrentDirectory());l.setSymlinkedFile(d,""+o.real+u.replace(new RegExp(i,"i"),""))}return c}}))||!1)}}({compilerHost:$,getSymlinkCache:at,useSourceOfProjectReferenceRedirect:Se,toPath:We,getResolvedProjectReferences:Xe,getSourceOfProjectReferenceRedirect:On,forEachResolvedProjectReference:Rn}),Le=xe.onProgramCreateComplete,De=xe.fileExists,Ae=xe.directoryExists;null===e.tracing||void 0===e.tracing||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!G});var Ce,Ie=function(n,t){return!!n&&e.optionsHaveChanges(n.getCompilerOptions(),t,e.sourceFileAffectingCompilerOptions)}(G,w);if(null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),Ce=function(){var n;if(!G)return 0;var t=G.getCompilerOptions();if(e.changesAffectModuleResolution(t,w))return 0;var r=G.getRootFileNames();if(!e.arrayIsEqualTo(r,P))return 0;if(g(G.getProjectReferences(),G.getResolvedProjectReferences(),(function(n,t,r){var i=jn((t?t.commandLine.projectReferences:F)[r]);return n?!i||i.sourceFile!==n.sourceFile||!e.arrayIsEqualTo(n.commandLine.fileNames,i.commandLine.fileNames):void 0!==i}),(function(n,t){var r=t?wn(t.sourceFile.path).commandLine.projectReferences:F;return!e.arrayIsEqualTo(n,r,e.projectReferenceIsEqualTo)})))return 0;F&&(fe=F.map(jn));var i=[],a=[];if(Ce=2,G.getMissingFilePaths().some((function(e){return $.fileExists(e)})))return 0;var o,s=G.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}(o||(o={}));for(var c=new e.Map,l=0,u=s;l<u.length;l++){var d=u[l];if(!(j=$.getSourceFileByPath?$.getSourceFileByPath(d.fileName,d.resolvedPath,w.target,void 0,Ie):$.getSourceFile(d.fileName,w.target,void 0,Ie)))return 0;e.Debug.assert(!j.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var p=void 0;if(d.redirectInfo){if(j!==d.redirectInfo.unredirected)return 0;p=!1,j=d}else if(G.redirectTargetsMap.has(d.path)){if(j!==d)return 0;p=!1}else p=j!==d;j.path=d.path,j.originalFileName=d.originalFileName,j.resolvedPath=d.resolvedPath,j.fileName=d.fileName;var f=G.sourceFileToPackageName.get(d.path);if(void 0!==f){var _=c.get(f),y=p?1:0;if(void 0!==_&&1===y||1===_)return 0;c.set(f,y)}p?(e.arrayIsEqualTo(d.libReferenceDirectives,j.libReferenceDirectives,yn)||(Ce=1),d.hasNoDefaultLib!==j.hasNoDefaultLib&&(Ce=1),e.arrayIsEqualTo(d.referencedFiles,j.referencedFiles,yn)||(Ce=1),bn(j),e.arrayIsEqualTo(d.imports,j.imports,hn)||(Ce=1),e.arrayIsEqualTo(d.moduleAugmentations,j.moduleAugmentations,hn)||(Ce=1),(3145728&d.flags)!=(3145728&j.flags)&&(Ce=1),e.arrayIsEqualTo(d.typeReferenceDirectives,j.typeReferenceDirectives,yn)||(Ce=1),a.push({oldFile:d,newFile:j})):le(d.path)&&(Ce=1,a.push({oldFile:d,newFile:j})),i.push(j)}if(2!==Ce)return Ce;for(var h=a.map((function(e){return e.oldFile})),v=0,b=s;v<b.length;v++){var E=b[v];if(!e.contains(h,E))for(var T=0,S=E.ambientModuleNames;T<S.length;T++){var x=S[T];B.set(x,E.fileName)}}for(var L=0,A=a;L<A.length;L++){var C=A[L],I=(d=C.oldFile,D(j=C.newFile)),N=Je(I,j);e.hasChangesInResolutions(I,N,d.resolvedModules,e.moduleResolutionIsEqualTo)?(Ce=1,j.resolvedModules=e.zipToMap(I,N)):j.resolvedModules=d.resolvedModules;var k=e.map(j.typeReferenceDirectives,(function(n){return e.toFileNameLowerCase(n.fileName)})),O=Ve(k,j);e.hasChangesInResolutions(k,O,d.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo)?(Ce=1,j.resolvedTypeReferenceDirectiveNames=e.zipToMap(k,O)):j.resolvedTypeReferenceDirectiveNames=d.resolvedTypeReferenceDirectiveNames}if(2!==Ce)return Ce;if(e.changesAffectingProgramStructure(t,w)||(null===(n=$.hasChangedAutomaticTypeDirectiveNames)||void 0===n?void 0:n.call($)))return 1;pe=G.getMissingFilePaths(),e.Debug.assert(i.length===G.getSourceFiles().length);for(var M=0,V=i;M<V.length;M++){var j=V[M];Ee.set(j.path,j)}return G.getFilesByNameMap().forEach((function(e,n){e?e.path!==n?Ee.set(n,Ee.get(e.path)):G.isSourceFileFromExternalLibrary(e)&&J.set(e.path,!0):Ee.set(n,e)})),m=i,U=G.getFileIncludeReasons(),R=G.getFileProcessingDiagnostics(),K=G.getResolvedTypeReferenceDirectives(),he=G.sourceFileToPackageName,ve=G.redirectTargetsMap,be=G.usesUriStyleNodeCoreModules,2}(),null===e.tracing||void 0===e.tracing||e.tracing.pop(),2!==Ce){p=[],f=[],F&&(fe||(fe=F.map(jn)),P.length&&(null==fe||fe.forEach((function(n,t){if(n){var r=e.outFile(n.commandLine.options);if(Se){if(r||e.getEmitModuleKind(n.commandLine.options)===e.ModuleKind.None)for(var i=0,a=n.commandLine.fileNames;i<a.length;i++)Sn(l=a[i],{kind:e.FileIncludeKind.SourceFromProjectReference,index:t})}else if(r)Sn(e.changeExtension(r,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:t});else if(e.getEmitModuleKind(n.commandLine.options)===e.ModuleKind.None)for(var o=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(n.commandLine,!$.useCaseSensitiveFileNames())})),s=0,c=n.commandLine.fileNames;s<c.length;s++){var l=c[s];e.fileExtensionIs(l,".d.ts")||e.fileExtensionIs(l,".json")||Sn(e.getOutputDeclarationFileName(l,n.commandLine,!$.useCaseSensitiveFileNames(),o),{kind:e.FileIncludeKind.OutputFromProjectReference,index:t})}}})))),null===e.tracing||void 0===e.tracing||e.tracing.push("program","processRootFiles",{count:P.length}),e.forEach(P,(function(n,t){return gn(n,!1,!1,{kind:e.FileIncludeKind.RootFile,index:t})})),null===e.tracing||void 0===e.tracing||e.tracing.pop();var Ne=P.length?e.getAutomaticTypeDirectiveNames(w,$):e.emptyArray;if(Ne.length){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferences",{count:Ne.length});for(var ke=w.configFilePath?e.getDirectoryPath(w.configFilePath):$.getCurrentDirectory(),Re=Ve(Ne,e.combinePaths(ke,e.inferredTypesContainingFile)),Oe=0;Oe<Ne.length;Oe++)Gn(Ne[Oe],Re[Oe],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:Ne[Oe],packageId:null===(u=Re[Oe])||void 0===u?void 0:u.packageId});null===e.tracing||void 0===e.tracing||e.tracing.pop()}if(P.length&&!ne){var Pe=te();!w.lib&&Pe?gn(Pe,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(w.lib,(function(n,t){gn(e.combinePaths(re,n),!0,!1,{kind:e.FileIncludeKind.LibFile,index:t})}))}pe=e.arrayFrom(e.mapDefinedIterator(Ee.entries(),(function(e){var n=e[0];return void 0===e[1]?n:void 0}))),m=e.stableSort(p,(function(n,t){return e.compareValues(He(n),He(t))})).concat(f),p=void 0,f=void 0}if(e.Debug.assert(!!pe),G&&$.onReleaseOldSourceFile){for(var we=0,Me=G.getSourceFiles();we<Me.length;we++){var Fe=Me[we],Ge=tn(Fe.resolvedPath);(Ie||!Ge||Fe.resolvedPath===Fe.path&&Ge.resolvedPath!==Fe.path)&&$.onReleaseOldSourceFile(Fe,G.getCompilerOptions(),!!tn(Fe.path))}$.getParsedCommandLine||G.forEachResolvedProjectReference((function(e){wn(e.sourceFile.path)||$.onReleaseOldSourceFile(e.sourceFile,G.getCompilerOptions(),!1)}))}G&&$.onReleaseParsedCommandLine&&g(G.getProjectReferences(),G.getResolvedProjectReferences(),(function(e,n,t){var r=x((null==n?void 0:n.commandLine.projectReferences[t])||G.getProjectReferences()[t]);(null==me?void 0:me.has(We(r)))||$.onReleaseParsedCommandLine(r,e,G.getCompilerOptions())})),Y=void 0,G=void 0;var Be={getRootFileNames:function(){return P},getSourceFile:nn,getSourceFileByPath:tn,getSourceFiles:function(){return m},getMissingFilePaths:function(){return pe},getModuleResolutionCache:function(){return X},getFilesByNameMap:function(){return Ee},getCompilerOptions:function(){return w},getSyntacticDiagnostics:function(e,n){return rn(e,on,n)},getOptionsDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(e.concatenate(ie.getGlobalDiagnostics(),function(){if(!w.configFile)return e.emptyArray;var n=ie.getDiagnostics(w.configFile.fileName);return Rn((function(t){n=e.concatenate(n,ie.getDiagnostics(t.sourceFile.fileName))})),n}()))},getGlobalDiagnostics:function(){return P.length?e.sortAndDeduplicateDiagnostics(Ze().getGlobalDiagnostics().slice()):e.emptyArray},getSemanticDiagnostics:function(e,n){return rn(e,cn,n)},getCachedSemanticDiagnostics:function(e){var n;return e?null===(n=V.perFile)||void 0===n?void 0:n.get(e.path):V.allDiagnostics},getSuggestionDiagnostics:function(e,n){return sn((function(){return Ze().getSuggestionDiagnostics(e,n)}))},getDeclarationDiagnostics:function(n,t){var r=Be.getCompilerOptions();return!n||e.outFile(r)?pn(n,t):rn(n,_n,t)},getBindAndCheckDiagnostics:function(e,n){return ln(e,n)},getProgramDiagnostics:an,getTypeChecker:$e,getClassifiableNames:function(){var n;if(!k){$e(),k=new e.Set;for(var t=0,r=m;t<r.length;t++)null===(n=r[t].classifiableNames)||void 0===n||n.forEach((function(e){return k.add(e)}))}return k},getDiagnosticsProducingTypeChecker:Ze,getCommonSourceDirectory:ze,emit:function(n,t,r,i,a,o){null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emit",{path:null==n?void 0:n.path},!0);var s=sn((function(){return function(n,t,r,i,a,o,s){if(!s){var c=b(n,t,r,i);if(c)return c}var l=Ze().getEmitResolver(e.outFile(w)?void 0:t,i);e.performance.mark("beforeEmit");var u=e.emitFiles(l,qe(r),t,e.getTransformers(w,o,a),a,!1,s);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),u}(Be,n,t,r,i,a,o)}));return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s},getCurrentDirectory:function(){return ae},getNodeCount:function(){return Ze().getNodeCount()},getIdentifierCount:function(){return Ze().getIdentifierCount()},getSymbolCount:function(){return Ze().getSymbolCount()},getTypeCount:function(){return Ze().getTypeCount()},getInstantiationCount:function(){return Ze().getInstantiationCount()},getRelationCacheSizes:function(){return Ze().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return R},getResolvedTypeReferenceDirectives:function(){return K},isSourceFileFromExternalLibrary:Qe,isSourceFileDefaultLibrary:function(n){if(n.hasNoDefaultLib)return!0;if(!w.noLib)return!1;var t=$.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return w.lib?e.some(w.lib,(function(r){return t(n.fileName,e.combinePaths(re,r))})):t(n.fileName,te())},dropDiagnosticsProducingTypeChecker:function(){I=void 0},getSourceFileFromReference:function(e,t){return En(n(t.fileName,e.fileName),nn)},getLibFileFromReference:function(n){var t=e.toFileNameLowerCase(n.fileName),r=e.libMap.get(t);if(r)return nn(e.combinePaths(re,r))},sourceFileToPackageName:he,redirectTargetsMap:ve,usesUriStyleNodeCoreModules:be,isEmittedFile:function(n){if(w.noEmit)return!1;var t=We(n);if(tn(t))return!1;var r=e.outFile(w);if(r)return it(t,r)||it(t,e.removeFileExtension(r)+".d.ts");if(w.declarationDir&&e.containsPath(w.declarationDir,t,ae,!$.useCaseSensitiveFileNames()))return!0;if(w.outDir)return e.containsPath(w.outDir,t,ae,!$.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(t,e.supportedJSExtensions)||e.fileExtensionIs(t,".d.ts")){var i=e.removeFileExtension(t);return!!tn(i+".ts")||!!tn(i+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return M||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(n,t){return X&&e.resolveModuleNameFromCache(n,t,X)},getProjectReferences:function(){return F},getResolvedProjectReferences:Xe,getProjectReferenceRedirect:Cn,getResolvedProjectReferenceToRedirect:kn,getResolvedProjectReferenceByPath:wn,forEachResolvedProjectReference:Rn,isSourceOfProjectReferenceRedirect:Pn,emitBuildInfo:function(n){e.Debug.assert(!e.outFile(w)),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var t=e.emitFiles(e.notImplementedResolver,qe(n),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),t},fileExists:De,directoryExists:Ae,getSymlinkCache:at,realpath:null===(d=$.realpath)||void 0===d?void 0:d.bind($),useCaseSensitiveFileNames:function(){return $.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return U},structureIsReused:Ce};return Le(),null==R||R.forEach((function(n){switch(n.kind){case 1:return ie.add(Kn(n.file&&tn(n.file),n.fileProcessingReason,n.diagnostic,n.args||e.emptyArray));case 0:var t=v(tn,n.reason),r=t.file,a=t.pos,o=t.end;return ie.add(e.createFileDiagnostic.apply(void 0,i([r,e.Debug.checkDefined(a),e.Debug.checkDefined(o)-a,n.diagnostic],n.args||e.emptyArray,!1)));default:e.Debug.assertNever(n)}})),function(){w.strictPropertyInitialization&&!e.getStrictOptionValue(w,"strictNullChecks")&&Qn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),w.exactOptionalPropertyTypes&&!e.getStrictOptionValue(w,"strictNullChecks")&&Qn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),w.isolatedModules&&(w.out&&Qn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),w.outFile&&Qn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),w.inlineSourceMap&&(w.sourceMap&&Qn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),w.mapRoot&&Qn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),w.composite&&(!1===w.declaration&&Qn(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===w.incremental&&Qn(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var n,t=e.outFile(w);if(w.tsBuildInfoFile?e.isIncrementalCompilation(w)||Qn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!w.incremental||t||w.configFilePath||ie.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),n=w.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(w),g(F,fe,(function(t,r,i){var a=(r?r.commandLine.projectReferences:F)[i],o=r&&r.sourceFile;if(t){var s=t.commandLine.options;if(s.composite&&!s.noEmit||(r?r.commandLine.fileNames:P).length&&(s.composite||$n(o,i,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,a.path),s.noEmit&&$n(o,i,e.Diagnostics.Referenced_project_0_may_not_disable_emit,a.path)),a.prepend){var c=e.outFile(s);c?$.fileExists(c)||$n(o,i,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,a.path):$n(o,i,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)}!r&&n&&n===e.getTsBuildInfoEmitOutputFilePath(s)&&($n(o,i,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,n,a.path),ce.set(We(n),!0))}else $n(o,i,e.Diagnostics.File_0_not_found,a.path)})),w.composite)for(var r=new e.Set(P.map(We)),i=0,a=m;i<a.length;i++){var o=a[i];e.sourceFileMayBeEmitted(o,Be)&&!r.has(o.path)&&Wn(o,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[o.fileName,w.configFilePath||""])}if(w.paths)for(var s in w.paths)if(e.hasProperty(w.paths,s))if(e.hasZeroOrOneAsteriskCharacter(s)||Jn(!0,s,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,s),e.isArray(w.paths[s])){var c=w.paths[s].length;0===c&&Jn(!1,s,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,s);for(var l=0;l<c;l++){var u=w.paths[s][l],d=typeof u;"string"===d?(e.hasZeroOrOneAsteriskCharacter(u)||zn(s,l,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,u,s),w.baseUrl||e.pathIsRelative(u)||e.pathIsAbsolute(u)||zn(s,l,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):zn(s,l,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,u,s,d)}}else Jn(!1,s,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,s);w.sourceMap||w.inlineSourceMap||(w.inlineSources&&Qn(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),w.sourceRoot&&Qn(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),w.out&&w.outFile&&Qn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),!w.mapRoot||w.sourceMap||w.declarationMap||Qn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),w.declarationDir&&(e.getEmitDeclarations(w)||Qn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),t&&Qn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",w.out?"out":"outFile")),w.declarationMap&&!e.getEmitDeclarations(w)&&Qn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),w.lib&&w.noLib&&Qn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),w.noImplicitUseStrict&&e.getStrictOptionValue(w,"alwaysStrict")&&Qn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var p=w.target||0,f=e.find(m,(function(n){return e.isExternalModule(n)&&!n.isDeclarationFile}));if(w.isolatedModules){w.module===e.ModuleKind.None&&p<2&&Qn(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===w.preserveConstEnums&&Qn(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var _=e.find(m,(function(n){return!e.isExternalModule(n)&&!e.isSourceFileJS(n)&&!n.isDeclarationFile&&6!==n.scriptKind}));if(_){var y=e.getErrorSpanForNode(_,_);ie.add(e.createFileDiagnostic(_,y.start,y.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(_.fileName)))}}else f&&p<2&&w.module===e.ModuleKind.None&&(y=e.getErrorSpanForNode(f,f.externalModuleIndicator),ie.add(e.createFileDiagnostic(f,y.start,y.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none)));if(t&&!w.emitDeclarationOnly&&(w.module&&w.module!==e.ModuleKind.AMD&&w.module!==e.ModuleKind.System?Qn(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,w.out?"out":"outFile","module"):void 0===w.module&&f&&(y=e.getErrorSpanForNode(f,f.externalModuleIndicator),ie.add(e.createFileDiagnostic(f,y.start,y.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,w.out?"out":"outFile")))),w.resolveJsonModule&&(e.getEmitModuleResolutionKind(w)!==e.ModuleResolutionKind.NodeJs?Qn(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(w)||Qn(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),w.outDir||w.rootDir||w.sourceRoot||w.mapRoot){var h=ze();w.outDir&&""===h&&m.some((function(n){return e.getRootLength(n.fileName)>1}))&&Qn(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(w.useDefineForClassFields&&0===p&&Qn(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),w.checkJs&&!e.getAllowJSCompilerOption(w)&&ie.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),w.emitDeclarationOnly&&(e.getEmitDeclarations(w)||Qn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),w.noEmit&&Qn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),w.emitDecoratorMetadata&&!w.experimentalDecorators&&Qn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),w.jsxFactory?(w.reactNamespace&&Qn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==w.jsx&&5!==w.jsx||Qn(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+w.jsx)),e.parseIsolatedEntityName(w.jsxFactory,p)||Zn("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,w.jsxFactory)):w.reactNamespace&&!e.isIdentifierText(w.reactNamespace,p)&&Zn("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,w.reactNamespace),w.jsxFragmentFactory&&(w.jsxFactory||Qn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==w.jsx&&5!==w.jsx||Qn(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+w.jsx)),e.parseIsolatedEntityName(w.jsxFragmentFactory,p)||Zn("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,w.jsxFragmentFactory)),w.reactNamespace&&(4!==w.jsx&&5!==w.jsx||Qn(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+w.jsx))),w.jsxImportSource&&2===w.jsx&&Qn(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+w.jsx)),!w.noEmit&&!w.suppressOutputPathCheck){var v=qe(),b=new e.Set;e.forEachEmittedFile(v,(function(e){w.emitDeclarationOnly||E(e.jsFilePath,b),E(e.declarationFilePath,b)}))}function E(n,t){if(n){var r=We(n);if(Ee.has(r)){var i=void 0;w.configFilePath||(i=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)),i=e.chainDiagnosticMessages(i,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,n),rt(n,e.createCompilerDiagnosticFromMessageChain(i))}var a=$.useCaseSensitiveFileNames()?r:e.toFileNameLowerCase(r);t.has(a)?rt(n,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,n)):t.add(a)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),Be;function Ue(n,t,r){if(!n.length)return e.emptyArray;var i=e.getNormalizedAbsolutePath(t.originalFileName,ae),a=je(t);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:i}),e.performance.mark("beforeResolveModule");var o=Q(n,i,r,a);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Ve(n,t){if(!n.length)return[];var r=e.isString(t)?t:e.getNormalizedAbsolutePath(t.originalFileName,ae),i=e.isString(t)?void 0:je(t);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:r}),e.performance.mark("beforeResolveTypeReference");var a=Z(n,r,i);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),a}function je(n){var t=kn(n.originalFileName);if(t||!e.fileExtensionIs(n.originalFileName,".d.ts"))return t;var r=Ke(n.originalFileName,n.path);if(r)return r;if($.realpath&&w.preserveSymlinks&&e.stringContains(n.originalFileName,e.nodeModulesPathPart)){var i=$.realpath(n.originalFileName),a=We(i);return a===n.path?void 0:Ke(i,a)}}function Ke(n,t){var r=On(n);return e.isString(r)?kn(r):r?Rn((function(n){var r=e.outFile(n.commandLine.options);if(r)return We(r)===t?n:void 0})):void 0}function He(n){if(e.containsPath(re,n.fileName,!1)){var t=e.getBaseFileName(n.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;var r=e.removeSuffix(e.removePrefix(t,"lib."),".d.ts"),i=e.libs.indexOf(r);if(-1!==i)return i+1}return e.libs.length+2}function We(n){return e.toPath(n,ae,Un)}function ze(){if(void 0===C){var n=e.filter(m,(function(n){return e.sourceFileMayBeEmitted(n,Be)}));C=e.getCommonSourceDirectory(w,(function(){return e.mapDefined(n,(function(e){return e.isDeclarationFile?void 0:e.fileName}))}),ae,Un,(function(t){return function(n,t){for(var r=!0,i=$.getCanonicalFileName(e.getNormalizedAbsolutePath(t,ae)),a=0,o=n;a<o.length;a++){var s=o[a];s.isDeclarationFile||0!==$.getCanonicalFileName(e.getNormalizedAbsolutePath(s.fileName,ae)).indexOf(i)&&(Wn(s,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[s.fileName,t]),r=!1)}return r}(n,t)}))}return C}function Je(n,t){if(0===Ce&&!t.ambientModuleNames.length)return Ue(n,t,void 0);var r,i,a,o=G&&G.getSourceFile(t.fileName);if(o!==t&&t.resolvedModules){for(var s=[],c=0,l=n;c<l.length;c++){var u=l[c],d=t.resolvedModules.get(u);s.push(d)}return s}for(var p={},f=0;f<n.length;f++){if(u=n[f],t===o&&!le(o.path)){var m=e.getResolvedModule(o,u);if(m){e.isTraceEnabled(w,$)&&e.trace($,m.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,u,e.getNormalizedAbsolutePath(t.originalFileName,ae),m.resolvedFileName,m.packageId&&e.packageIdToString(m.packageId)),(i||(i=new Array(n.length)))[f]=m,(a||(a=[])).push(u);continue}}var _=!1;e.contains(t.ambientModuleNames,u)?(_=!0,e.isTraceEnabled(w,$)&&e.trace($,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,u,e.getNormalizedAbsolutePath(t.originalFileName,ae))):_=h(u),_?(i||(i=new Array(n.length)))[f]=p:(r||(r=[])).push(u)}var g=r&&r.length?Ue(r,t,a):e.emptyArray;if(!i)return e.Debug.assert(g.length===n.length),g;var y=0;for(f=0;f<i.length;f++)i[f]?i[f]===p&&(i[f]=void 0):(i[f]=g[y],y++);return e.Debug.assert(y===g.length),i;function h(n){var t=e.getResolvedModule(o,n),r=t&&G.getSourceFile(t.resolvedFileName);if(t&&r)return!1;var i=B.get(n);return!!i&&(e.isTraceEnabled(w,$)&&e.trace($,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,n,i),!0)}}function qe(n){return{getPrependNodes:Ye,getCanonicalFileName:Un,getCommonSourceDirectory:Be.getCommonSourceDirectory,getCompilerOptions:Be.getCompilerOptions,getCurrentDirectory:function(){return ae},getNewLine:function(){return $.getNewLine()},getSourceFile:Be.getSourceFile,getSourceFileByPath:Be.getSourceFileByPath,getSourceFiles:Be.getSourceFiles,getLibFileFromReference:Be.getLibFileFromReference,isSourceFileFromExternalLibrary:Qe,getResolvedProjectReferenceToRedirect:kn,getProjectReferenceRedirect:Cn,isSourceOfProjectReferenceRedirect:Pn,getSymlinkCache:at,writeFile:n||function(e,n,t,r,i){return $.writeFile(e,n,t,r,i)},isEmitBlocked:en,readFile:function(e){return $.readFile(e)},fileExists:function(n){var t=We(n);return!!tn(t)||!e.contains(pe,t)&&$.fileExists(n)},useCaseSensitiveFileNames:function(){return $.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Be.getProgramBuildInfo&&Be.getProgramBuildInfo()},getSourceFileFromReference:function(e,n){return Be.getSourceFileFromReference(e,n)},redirectTargetsMap:ve,getFileIncludeReasons:Be.getFileIncludeReasons}}function Xe(){return fe}function Ye(){return S(F,(function(e,n){var t;return null===(t=fe[n])||void 0===t?void 0:t.commandLine}),(function(e){var n=We(e),t=tn(n);return t?t.text:Ee.has(n)?void 0:$.readFile(n)}))}function Qe(e){return!!J.get(e.path)}function Ze(){return I||(I=e.createTypeChecker(Be,!0))}function $e(){return N||(N=e.createTypeChecker(Be,!1))}function en(e){return ce.has(We(e))}function nn(e){return tn(We(e))}function tn(e){return Ee.get(e)||void 0}function rn(n,t,r){return n?t(n,r):e.sortAndDeduplicateDiagnostics(e.flatMap(Be.getSourceFiles(),(function(e){return r&&r.throwIfCancellationRequested(),t(e,r)})))}function an(n){var t;if(e.skipTypeChecking(n,w,Be))return e.emptyArray;var r=ie.getDiagnostics(n.fileName);return(null===(t=n.commentDirectives)||void 0===t?void 0:t.length)?dn(n,n.commentDirectives,r).diagnostics:r}function on(n){return e.isSourceFileJS(n)?(n.additionalSyntacticDiagnostics||(n.additionalSyntacticDiagnostics=function(n){return sn((function(){var t=[];return r(n,n),e.forEachChildRecursively(n,r,(function(n,r){switch(r.decorators!==n||w.experimentalDecorators||t.push(a(r,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),r.kind){case 255:case 224:case 167:case 169:case 170:case 171:case 211:case 254:case 212:if(n===r.typeParameters)return t.push(i(n,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 235:if(n===r.modifiers)return function(n,r){for(var i=0,o=n;i<o.length;i++){var s=o[i];switch(s.kind){case 85:if(r)continue;case 123:case 121:case 122:case 143:case 134:case 126:case 157:t.push(a(s,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(s.kind)))}}}(r.modifiers,235===r.kind),"skip";break;case 165:if(n===r.modifiers){for(var o=0,s=n;o<s.length;o++){var c=s[o];124!==c.kind&&t.push(a(c,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(c.kind)))}return"skip"}break;case 162:if(n===r.modifiers)return t.push(i(n,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(n===r.typeArguments)return t.push(i(n,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}})),t;function r(n,r){switch(r.kind){case 162:case 165:case 167:if(r.questionToken===n)return t.push(a(n,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(r.type===n)return t.push(a(n,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(n.kind){case 265:if(n.isTypeOnly)return t.push(a(r,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 270:if(n.isTypeOnly)return t.push(a(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 263:return t.push(a(n,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 269:if(n.isExportEquals)return t.push(a(n,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 289:if(117===n.token)return t.push(a(n,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 256:var i=e.tokenToString(118);return e.Debug.assertIsDefined(i),t.push(a(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 259:var o=16&n.flags?e.tokenToString(141):e.tokenToString(140);return e.Debug.assertIsDefined(o),t.push(a(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 257:return t.push(a(n,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 258:var s=e.Debug.checkDefined(e.tokenToString(92));return t.push(a(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,s)),"skip";case 228:return t.push(a(n,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 227:return t.push(a(n.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 209:e.Debug.fail()}}function i(t,r,i,a,o){var s=t.pos;return e.createFileDiagnostic(n,s,t.end-s,r,i,a,o)}function a(t,r,i,a,o){return e.createDiagnosticForNodeInSourceFile(n,t,r,i,a,o)}}))}(n)),e.concatenate(n.additionalSyntacticDiagnostics,n.parseDiagnostics)):n.parseDiagnostics}function sn(n){try{return n()}catch(n){throw n instanceof e.OperationCanceledException&&(N=void 0,I=void 0),n}}function cn(n,t){return e.concatenate(E(ln(n,t),w),an(n))}function ln(e,n){return mn(e,n,V,un)}function un(n,t){return sn((function(){if(e.skipTypeChecking(n,w,Be))return e.emptyArray;var r=Ze();e.Debug.assert(!!n.bindDiagnostics);var i=e.isCheckJsEnabledForFile(n,w),a=!(n.checkJsDirective&&!1===n.checkJsDirective.enabled)&&(3===n.scriptKind||4===n.scriptKind||5===n.scriptKind||i||7===n.scriptKind),o=a?n.bindDiagnostics:e.emptyArray,s=a?r.getDiagnostics(n,t):e.emptyArray;return function(n,t){for(var r,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var o=e.flatten(i);if(!t||!(null===(r=n.commentDirectives)||void 0===r?void 0:r.length))return o;for(var s=dn(n,n.commentDirectives,o),c=s.diagnostics,l=0,u=s.directives.getUnusedExpectations();l<u.length;l++){var d=u[l];c.push(e.createDiagnosticForRange(n,d.range,e.Diagnostics.Unused_ts_expect_error_directive))}return c}(n,a,o,s,i?n.jsDocDiagnostics:void 0)}))}function dn(n,t,r){var i=e.createCommentDirectivesMap(n,t),a=r.filter((function(n){return-1===function(n,t){var r=n.file,i=n.start;if(!r)return-1;for(var a=e.getLineStarts(r),o=e.computeLineAndCharacterOfPosition(a,i).line-1;o>=0;){if(t.markUsed(o))return o;var s=r.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(n,i)}));return{diagnostics:a,directives:i}}function pn(e,n){return mn(e,n,j,fn)}function fn(n,t){return sn((function(){var r=Ze().getEmitResolver(n,t);return e.getDeclarationDiagnostics(qe(e.noop),r,n)||e.emptyArray}))}function mn(n,t,r,i){var a,o=n?null===(a=r.perFile)||void 0===a?void 0:a.get(n.path):r.allDiagnostics;if(o)return o;var s=i(n,t);return n?(r.perFile||(r.perFile=new e.Map)).set(n.path,s):r.allDiagnostics=s,s}function _n(e,n){return e.isDeclarationFile?[]:pn(e,n)}function gn(n,t,r,i){Tn(e.normalizePath(n),t,r,void 0,i)}function yn(e,n){return e.fileName===n.fileName}function hn(e,n){return 79===e.kind?79===n.kind&&e.escapedText===n.escapedText:10===n.kind&&e.text===n.text}function vn(n,t){var r=e.factory.createStringLiteral(n),i=e.factory.createImportDeclaration(void 0,void 0,void 0,r);return e.addEmitFlags(i,67108864),e.setParent(r,i),e.setParent(i,t),r.flags&=-9,i.flags&=-9,r}function bn(n){if(!n.imports){var t,r,i,a=e.isSourceFileJS(n),o=e.isExternalModule(n);if((w.isolatedModules||o)&&!n.isDeclarationFile){w.importHelpers&&(t=[vn(e.externalHelpersModuleNameText,n)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(w,n),w);s&&(t||(t=[])).push(vn(s,n))}for(var c=0,l=n.statements;c<l.length;c++)u(l[c],!1);return(1048576&n.flags||a)&&function(n){for(var r=/import|require/g;null!==r.exec(n.text);){var i=d(n,r.lastIndex);a&&e.isRequireCall(i,!0)||e.isImportCall(i)&&1===i.arguments.length&&e.isStringLiteralLike(i.arguments[0])?t=e.append(t,i.arguments[0]):e.isLiteralImportTypeNode(i)&&(t=e.append(t,i.argument.literal))}}(n),n.imports=t||e.emptyArray,n.moduleAugmentations=r||e.emptyArray,void(n.ambientModuleNames=i||e.emptyArray)}function u(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(t=e.append(t,c),be||0!==W||n.isDeclarationFile||(be=e.startsWith(c.text,"node:")))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasSyntacticModifier(a,2)||n.isDeclarationFile)){var l=e.getTextOfIdentifierOrLiteral(a.name);if(o||s&&!e.isExternalModuleNameRelative(l))(r||(r=[])).push(a.name);else if(!s){n.isDeclarationFile&&(i||(i=[])).push(l);var d=a.body;if(d)for(var p=0,f=d.statements;p<f.length;p++)u(f[p],!0)}}}function d(n,t){for(var r=n,i=function(e){if(e.pos<=t&&(t<e.end||t===e.end&&1===e.kind))return e};;){var o=a&&e.hasJSDocNodes(r)&&e.forEach(r.jsDoc,i)||e.forEachChild(r,i);if(!o)return r;r=o}}}function En(n,t,r,i){if(e.hasExtension(n)){var a=$.getCanonicalFileName(n);if(!w.allowNonTsExtensions&&!e.forEach(se,(function(n){return e.fileExtensionIs(a,n)})))return void(r&&(e.hasJSFileExtension(a)?r(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,n):r(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,n,"'"+oe.join("', '")+"'")));var o=t(n);if(r)if(o)y(i)&&a===$.getCanonicalFileName(tn(i.file).fileName)&&r(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var s=Cn(n);s?r(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,s,n):r(e.Diagnostics.File_0_not_found,n)}return o}var c=w.allowNonTsExtensions&&t(n);if(c)return c;if(!r||!w.allowNonTsExtensions){var l=e.forEach(oe,(function(e){return t(n+e)}));return r&&!l&&r(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,n,"'"+oe.join("', '")+"'"),l}r(e.Diagnostics.File_0_not_found,n)}function Tn(e,n,t,r,i){En(e,(function(e){return Ln(e,We(e),n,t,i,r)}),(function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Hn(void 0,i,e,n)}),i)}function Sn(e,n){return Tn(e,!1,!1,void 0,n)}function xn(n,t,r){!y(r)&&e.some(U.get(t.path),y)?Hn(t,r,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,n]):Hn(t,r,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[n,t.fileName])}function Ln(n,t,r,i,a,o){null===e.tracing||void 0===e.tracing||e.tracing.push("program","findSourceFile",{fileName:n,isDefaultLib:r||void 0,fileIncludeKind:e.FileIncludeKind[a.kind]});var s=function(n,t,r,i,a,o){if(Se){var s=On(n);if(!s&&$.realpath&&w.preserveSymlinks&&e.isDeclarationFileName(n)&&e.stringContains(n,e.nodeModulesPathPart)){var c=$.realpath(n);c!==n&&(s=On(c))}if(s){var l=e.isString(s)?Ln(s,We(s),r,i,a,o):void 0;return l&&An(l,t,void 0),l}}var u,d=n;if(Ee.has(t)){var m=Ee.get(t);if(Dn(m||void 0,a),m&&w.forceConsistentCasingInFileNames){var _=m.fileName;We(_)!==We(n)&&(n=Cn(n)||n),e.getNormalizedAbsolutePathWithoutRoot(_,ae)!==e.getNormalizedAbsolutePathWithoutRoot(n,ae)&&xn(n,m,a)}return m&&J.get(m.path)&&0===W?(J.set(m.path,!1),w.noResolve||(Mn(m,r),Fn(m)),w.noLib||Bn(m),z.set(m.path,!1),Vn(m)):m&&z.get(m.path)&&W<H&&(z.set(m.path,!1),Vn(m)),m||void 0}if(y(a)&&!Se){var g=In(n);if(g){if(e.outFile(g.commandLine.options))return;var h=Nn(g,n);n=h,u=We(h)}}var v=$.getSourceFile(n,w.target,(function(t){return Hn(void 0,a,e.Diagnostics.Cannot_read_file_0_Colon_1,[n,t])}),Ie);if(o){var b=e.packageIdToString(o),E=ye.get(b);if(E){var T=function(e,n,t,r,i,a){var o=Object.create(e);return o.fileName=t,o.path=r,o.resolvedPath=i,o.originalFileName=a,o.redirectInfo={redirectTarget:e,unredirected:n},J.set(r,W>0),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(E,v,n,t,We(n),d);return ve.add(E.path,n),An(T,t,u),Dn(T,a),he.set(t,o.name),f.push(T),T}v&&(ye.set(b,v),he.set(t,o.name))}if(An(v,t,u),v){if(J.set(t,W>0),v.fileName=n,v.path=t,v.resolvedPath=We(n),v.originalFileName=d,Dn(v,a),$.useCaseSensitiveFileNames()){var S=e.toFileNameLowerCase(t),x=Te.get(S);x?xn(n,x,a):Te.set(S,v)}ne=ne||v.hasNoDefaultLib&&!i,w.noResolve||(Mn(v,r),Fn(v)),w.noLib||Bn(v),Vn(v),r?p.push(v):f.push(v)}return v}(n,t,r,i,a,o);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s}function Dn(e,n){e&&U.add(e.path,n)}function An(e,n,t){t?(Ee.set(t,e),Ee.set(n,e||!1)):Ee.set(n,e)}function Cn(e){var n=In(e);return n&&Nn(n,e)}function In(n){if(fe&&fe.length&&!e.fileExtensionIs(n,".d.ts")&&!e.fileExtensionIs(n,".json"))return kn(n)}function Nn(n,t){var r=e.outFile(n.commandLine.options);return r?e.changeExtension(r,".d.ts"):e.getOutputDeclarationFileName(t,n.commandLine,!$.useCaseSensitiveFileNames())}function kn(n){void 0===_e&&(_e=new e.Map,Rn((function(e){We(w.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(n){return _e.set(We(n),e.sourceFile.path)}))})));var t=_e.get(We(n));return t&&wn(t)}function Rn(n){return e.forEachResolvedProjectReference(fe,n)}function On(n){if(e.isDeclarationFileName(n))return void 0===ge&&(ge=new e.Map,Rn((function(n){var t=e.outFile(n.commandLine.options);if(t){var r=e.changeExtension(t,".d.ts");ge.set(We(r),!0)}else{var i=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(n.commandLine,!$.useCaseSensitiveFileNames())}));e.forEach(n.commandLine.fileNames,(function(t){if(!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json")){var r=e.getOutputDeclarationFileName(t,n.commandLine,!$.useCaseSensitiveFileNames(),i);ge.set(We(r),t)}}))}}))),ge.get(We(n))}function Pn(e){return Se&&!!kn(e)}function wn(e){if(me)return me.get(e)||void 0}function Mn(t,r){e.forEach(t.referencedFiles,(function(i,a){Tn(n(i.fileName,t.fileName),r,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:t.path,index:a})}))}function Fn(n){var t=e.map(n.typeReferenceDirectives,(function(n){return e.toFileNameLowerCase(n.fileName)}));if(t)for(var r=Ve(t,n),i=0;i<t.length;i++){var a=n.typeReferenceDirectives[i],o=r[i],s=e.toFileNameLowerCase(a.fileName);e.setResolvedTypeReferenceDirective(n,s,o),Gn(s,o,{kind:e.FileIncludeKind.TypeReferenceDirective,file:n.path,index:i})}}function Gn(n,t,r){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferenceDirective",{directive:n,hasResolved:!!Je,refKind:r.kind,refPath:y(r)?r.file:void 0}),function(n,t,r){var i=K.get(n);if(!i||!i.primary){var a=!0;if(t){if(t.isExternalLibraryImport&&W++,t.primary)Tn(t.resolvedFileName,!1,!1,t.packageId,r);else if(i){if(t.resolvedFileName!==i.resolvedFileName){var o=$.readFile(t.resolvedFileName),s=nn(i.resolvedFileName);o!==s.text&&Hn(s,r,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[n,t.resolvedFileName,i.resolvedFileName])}a=!1}else Tn(t.resolvedFileName,!1,!1,t.packageId,r);t.isExternalLibraryImport&&W--}else Hn(void 0,r,e.Diagnostics.Cannot_find_type_definition_file_for_0,[n]);a&&K.set(n,t)}}(n,t,r),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function Bn(n){e.forEach(n.libReferenceDirectives,(function(t,r){var i=e.toFileNameLowerCase(t.fileName),a=e.libMap.get(i);if(a)gn(e.combinePaths(re,a),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:n.path,index:r});else{var o=e.removeSuffix(e.removePrefix(i,"lib."),".d.ts"),s=e.getSpellingSuggestion(o,e.libs,e.identity),c=s?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(R||(R=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:n.path,index:r},diagnostic:c,args:[i,s]})}}))}function Un(e){return $.getCanonicalFileName(e)}function Vn(n){var t;if(bn(n),n.imports.length||n.moduleAugmentations.length){var r=D(n),i=Je(r,n);e.Debug.assert(i.length===r.length);for(var a=(Se?null===(t=je(n))||void 0===t?void 0:t.commandLine.options:void 0)||w,o=0;o<r.length;o++){var s=i[o];if(e.setResolvedModule(n,r[o],s),s){var c=s.isExternalLibraryImport,l=!e.resolutionExtensionIsTSOrJson(s.extension),u=c&&l,d=s.resolvedFileName;c&&W++;var p=u&&W>H,f=d&&!L(a,s)&&!a.noResolve&&o<n.imports.length&&!p&&!(l&&!e.getAllowJSCompilerOption(a))&&(e.isInJSFile(n.imports[o])||!(4194304&n.imports[o].flags));p?z.set(n.path,!0):f&&Ln(d,We(d),!1,!1,{kind:e.FileIncludeKind.Import,file:n.path,index:o},s.packageId),c&&W--}}}else n.resolvedModules=void 0}function jn(n){me||(me=new e.Map);var t,r,i=x(n),a=We(i),o=me.get(a);if(void 0!==o)return o||void 0;if($.getParsedCommandLine){if(!(t=$.getParsedCommandLine(i)))return An(void 0,a,void 0),void me.set(a,!1);r=e.Debug.checkDefined(t.options.configFile),e.Debug.assert(!r.path||r.path===a),An(r,a,void 0)}else{var s=e.getNormalizedAbsolutePath(e.getDirectoryPath(i),$.getCurrentDirectory());if(An(r=$.getSourceFile(i,100),a,void 0),void 0===r)return void me.set(a,!1);t=e.parseJsonSourceFileConfigFileContent(r,ee,s,void 0,i)}r.fileName=i,r.path=a,r.resolvedPath=a,r.originalFileName=i;var c={commandLine:t,sourceFile:r};return me.set(a,c),t.projectReferences&&(c.references=t.projectReferences.map(jn)),c}function Kn(n,t,r,a){var o,s,c,l=y(t)?t:void 0;n&&(null===(o=U.get(n.path))||void 0===o||o.forEach(m)),t&&m(t),l&&1===(null==s?void 0:s.length)&&(s=void 0);var u=l&&v(tn,l),d=s&&e.chainDiagnosticMessages(s,e.Diagnostics.The_file_is_in_the_program_because_Colon),p=n&&e.explainIfFileIsRedirect(n),f=e.chainDiagnosticMessages.apply(void 0,i([p?d?i([d],p,!0):p:d,r],a||e.emptyArray,!1));return u&&h(u)?e.createFileDiagnosticFromMessageChain(u.file,u.pos,u.end-u.pos,f,c):e.createCompilerDiagnosticFromMessageChain(f,c);function m(n){(s||(s=[])).push(e.fileIncludeReasonToDiagnostics(Be,n)),!l&&y(n)?l=n:l!==n&&(c=e.append(c,function(n){if(y(n)){var t,r=v(tn,n);switch(n.kind){case e.FileIncludeKind.Import:t=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:t=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:t=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:t=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(n)}return h(r)?e.createFileDiagnostic(r.file,r.pos,r.end-r.pos,t):void 0}if(w.configFile){var i,a,o,s;switch(n.kind){case e.FileIncludeKind.RootFile:if(!w.configFile.configFileSpecs)return;var c=e.getNormalizedAbsolutePath(P[n.index],ae),l=e.getMatchedFileSpec(Be,c);if(l){i=e.getTsConfigPropArrayElementValue(w.configFile,"files",l),a=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var u=e.getMatchedIncludeSpec(Be,c);if(!u)return;i=e.getTsConfigPropArrayElementValue(w.configFile,"include",u),a=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var d=e.Debug.checkDefined(null==fe?void 0:fe[n.index]),p=g(F,fe,(function(e,n,t){return e===d?{sourceFile:(null==n?void 0:n.sourceFile)||w.configFile,index:t}:void 0}));if(!p)return;var f=p.sourceFile,m=p.index,_=e.firstDefined(e.getTsConfigPropArray(f,"references"),(function(n){return e.isArrayLiteralExpression(n.initializer)?n.initializer:void 0}));return _&&_.elements.length>m?e.createDiagnosticForNodeInSourceFile(f,_.elements[m],n.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(!w.types)return;i=Yn("types",n.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==n.index){i=Yn("lib",w.lib[n.index]),a=e.Diagnostics.File_is_library_specified_here;break}var b=e.forEachEntry(e.targetOptionDeclaration.type,(function(e,n){return e===w.target?n:void 0}));i=b?(o=b,(s=qn("target"))&&e.firstDefined(s,(function(n){return e.isStringLiteral(n.initializer)&&n.initializer.text===o?n.initializer:void 0}))):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(n)}return i&&e.createDiagnosticForNodeInSourceFile(w.configFile,i,a)}}(n))),n===t&&(t=void 0)}}function Hn(e,n,t,r){(R||(R=[])).push({kind:1,file:e&&e.path,fileProcessingReason:n,diagnostic:t,args:r})}function Wn(e,n,t){ie.add(Kn(e,void 0,n,t))}function zn(n,t,r,i,a,o){for(var s=!0,c=0,l=Xn();c<l.length;c++){var u=l[c];if(e.isObjectLiteralExpression(u.initializer))for(var d=0,p=e.getPropertyAssignment(u.initializer,n);d<p.length;d++){var f=p[d].initializer;e.isArrayLiteralExpression(f)&&f.elements.length>t&&(ie.add(e.createDiagnosticForNodeInSourceFile(w.configFile,f.elements[t],r,i,a,o)),s=!1)}}s&&ie.add(e.createCompilerDiagnostic(r,i,a,o))}function Jn(n,t,r,i){for(var a=!0,o=0,s=Xn();o<s.length;o++){var c=s[o];e.isObjectLiteralExpression(c.initializer)&&tt(c.initializer,n,t,void 0,r,i)&&(a=!1)}a&&ie.add(e.createCompilerDiagnostic(r,i))}function qn(n){var t=nt();return t&&e.getPropertyAssignment(t,n)}function Xn(){return qn("paths")||e.emptyArray}function Yn(n,t){var r=nt();return r&&e.getPropertyArrayElementValue(r,n,t)}function Qn(e,n,t,r){et(!0,n,t,e,n,t,r)}function Zn(e,n,t){et(!1,e,void 0,n,t)}function $n(n,t,r,i,a){var o=e.firstDefined(e.getTsConfigPropArray(n||w.configFile,"references"),(function(n){return e.isArrayLiteralExpression(n.initializer)?n.initializer:void 0}));o&&o.elements.length>t?ie.add(e.createDiagnosticForNodeInSourceFile(n||w.configFile,o.elements[t],r,i,a)):ie.add(e.createCompilerDiagnostic(r,i,a))}function et(n,t,r,i,a,o,s){var c=nt();(!c||!tt(c,n,t,r,i,a,o,s))&&ie.add(e.createCompilerDiagnostic(i,a,o,s))}function nt(){if(void 0===q){q=!1;var n=e.getTsConfigObjectLiteralExpression(w.configFile);if(n)for(var t=0,r=e.getPropertyAssignment(n,"compilerOptions");t<r.length;t++){var i=r[t];if(e.isObjectLiteralExpression(i.initializer)){q=i.initializer;break}}}return q||void 0}function tt(n,t,r,i,a,o,s,c){for(var l=e.getPropertyAssignment(n,r,i),u=0,d=l;u<d.length;u++){var p=d[u];ie.add(e.createDiagnosticForNodeInSourceFile(w.configFile,t?p.name:p.initializer,a,o,s,c))}return!!l.length}function rt(e,n){ce.set(We(e),!0),ie.add(n)}function it(n,t){return 0===e.comparePaths(n,t,ae,!$.useCaseSensitiveFileNames())}function at(){return $.getSymlinkCache?$.getSymlinkCache():(A||(A=e.createSymlinkCache(ae,Un)),m&&K&&!A.hasProcessedResolutions()&&A.setSymlinksFromResolutions(m,K),A)}},e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0},e.handleNoEmitOptions=b,e.filterSemanticDiagnostics=E,e.parseConfigHostFromCompilerHostLike=T,e.createPrependNodes=S,e.resolveProjectReferencePath=x,e.getResolutionDiagnostic=L,e.getModuleNameStringLiteralAt=A}(u||(u={})),function(e){function n(e,n,t,r,i,a){var o=[],s=e.emit(n,(function(e,n,t){o.push({name:e,writeByteOrderMark:t,text:n})}),r,t,i,a),c=s.emitSkipped,l=s.diagnostics,u=s.exportedModulesFromDeclarationEmit;return{outputFiles:o,emitSkipped:c,diagnostics:l,exportedModulesFromDeclarationEmit:u}}e.getFileEmitOutput=n,function(t){var r=0;function i(){return function n(t,i,o){var s=0,c={id:r++,version:function(){return s},clone:function(){return n(new e.Map(t),new e.Map(i),o&&new e.Set(o))},forEach:function(e){return t.forEach(e)},getKeys:function(e){return i.get(e)},getValues:function(e){return t.get(e)},hasKey:function(e){return t.has(e)},keys:function(){return t.keys()},deletedKeys:function(){return o},deleteKey:function(n){(o||(o=new e.Set)).add(n);var r=t.get(n);return!!r&&(r.forEach((function(e){return a(i,e,n)})),t.delete(n),s++,!0)},set:function(n,r){var l=!!(null==o?void 0:o.delete(n)),u=t.get(n);return t.set(n,r),null==u||u.forEach((function(e){r.has(e)||(l=!0,a(i,e,n))})),r.forEach((function(t){(null==u?void 0:u.has(t))||(l=!0,function(n,t,r){var i=n.get(t);i||(i=new e.Set,n.set(t,i)),i.add(r)}(i,t,n))})),l&&s++,c}};return c}(new e.Map,new e.Map,void 0)}function a(e,n,t,r){void 0===r&&(r=!0);var i=e.get(n);return!!(null==i?void 0:i.delete(t))&&(r&&!i.size&&e.delete(n),!0)}function o(n){return e.mapDefined(n.declarations,(function(n){var t;return null===(t=e.getSourceFileOfNode(n))||void 0===t?void 0:t.resolvedPath}))}function s(e,n){var t=e.getSymbolAtLocation(n);return t&&o(t)}function c(n,t,r,i){return e.toPath(n.getProjectReferenceRedirect(t)||t,r,i)}function l(n,t,r){var i;if(t.imports&&t.imports.length>0)for(var a=n.getTypeChecker(),o=0,l=t.imports;o<l.length;o++){var u=s(a,l[o]);null==u||u.forEach(S)}var d=e.getDirectoryPath(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(var p=0,f=t.referencedFiles;p<f.length;p++){var m=f[p];S(c(n,m.fileName,d,r))}if(t.resolvedTypeReferenceDirectiveNames&&t.resolvedTypeReferenceDirectiveNames.forEach((function(e){if(e){var t=e.resolvedFileName;S(c(n,t,d,r))}})),t.moduleAugmentations.length){a=n.getTypeChecker();for(var _=0,g=t.moduleAugmentations;_<g.length;_++){var y=g[_];if(e.isStringLiteral(y)){var h=a.getSymbolAtLocation(y);h&&T(h)}}}for(var v=0,b=n.getTypeChecker().getAmbientModules();v<b.length;v++){var E=b[v];E.declarations&&E.declarations.length>1&&T(E)}return i;function T(n){if(n.declarations)for(var r=0,i=n.declarations;r<i.length;r++){var a=i[r],o=e.getSourceFileOfNode(a);o&&o!==t&&S(o.resolvedPath)}}function S(n){(i||(i=new e.Set)).add(n)}}function u(e,n){return n&&!n.referencedMap==!e}function d(e,n){n.forEach((function(n,t){return p(e,n,t)}))}function p(e,n,t){e.fileInfos.get(t).signature=n,e.hasCalledUpdateShapeSignature.add(t)}function f(t,r,i,a,s,c,l,u){if(void 0===u&&(u=t.useFileVersionAsSignature),e.Debug.assert(!!i),e.Debug.assert(!l||!!t.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),t.hasCalledUpdateShapeSignature.has(i.resolvedPath)||a.has(i.resolvedPath))return!1;var d=t.fileInfos.get(i.resolvedPath);if(!d)return e.Debug.fail();var p,f=d.signature;if(!i.isDeclarationFile&&!u){var m=n(r,i,!0,s,void 0,!0),_=e.firstOrUndefined(m.outputFiles);_&&(e.Debug.assert(e.fileExtensionIs(_.name,".d.ts"),"File extension for signature expected to be dts",(function(){return"Found: "+e.getAnyExtensionFromPath(_.name)+" for "+_.name+":: All output files: "+JSON.stringify(m.outputFiles.map((function(e){return e.name})))})),p=(c||e.generateDjb2Hash)(_.text),l&&p!==f&&function(n,t,r){var i;t?(t.forEach((function(n){var t;(null==(t=o(n))?void 0:t.length)&&(i||(i=new e.Set),t.forEach((function(e){return i.add(e)})))})),i?r.set(n.resolvedPath,i):r.deleteKey(n.resolvedPath)):r.deleteKey(n.resolvedPath)}(i,m.exportedModulesFromDeclarationEmit,l))}if(void 0===p&&(p=i.version,l&&p!==f)){var g=t.referencedMap?t.referencedMap.getValues(i.resolvedPath):void 0;g?l.set(i.resolvedPath,g):l.deleteKey(i.resolvedPath)}return a.set(i.resolvedPath,p),p!==f}function m(n,t){if(!n.allFileNames){var r=t.getSourceFiles();n.allFileNames=r===e.emptyArray?e.emptyArray:r.map((function(e){return e.fileName}))}return n.allFileNames}function _(n,t){var r=n.referencedMap.getKeys(t);return r?e.arrayFrom(r.keys()):[]}function g(n){return function(n){return e.some(n.moduleAugmentations,(function(n){return e.isGlobalScopeAugmentation(n.parent)}))}(n)||!e.isExternalOrCommonJsModule(n)&&!e.isJsonSourceFile(n)&&!function(n){for(var t=0,r=n.statements;t<r.length;t++){var i=r[t];if(!e.isModuleWithStringLiteralName(i))return!1}return!0}(n)}function y(n,t,r){if(n.allFilesExcludingDefaultLibraryFile)return n.allFilesExcludingDefaultLibraryFile;var i;r&&c(r);for(var a=0,o=t.getSourceFiles();a<o.length;a++){var s=o[a];s!==r&&c(s)}return n.allFilesExcludingDefaultLibraryFile=i||e.emptyArray,n.allFilesExcludingDefaultLibraryFile;function c(e){t.isSourceFileDefaultLibrary(e)||(i||(i=[])).push(e)}}function h(n,t,r){var i=t.getCompilerOptions();return i&&e.outFile(i)?[r]:y(n,t,r)}function v(n,t,r,i,a,o,s){if(g(r))return y(n,t,r);var c=t.getCompilerOptions();if(c&&(c.isolatedModules||e.outFile(c)))return[r];var l=new e.Map;l.set(r.resolvedPath,r);for(var u=_(n,r.resolvedPath);u.length>0;){var d=u.pop();if(!l.has(d)){var p=t.getSourceFileByPath(d);l.set(d,p),p&&f(n,t,p,i,a,o,s)&&u.push.apply(u,_(n,p.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),(function(e){return e})))}t.createManyToManyPathMap=i,t.canReuseOldState=u,t.create=function(n,t,r,a){var o=new e.Map,s=n.getCompilerOptions().module!==e.ModuleKind.None?i():void 0,c=s?i():void 0,d=new e.Set,p=u(s,r);n.getTypeChecker();for(var f=0,m=n.getSourceFiles();f<m.length;f++){var _=m[f],y=e.Debug.checkDefined(_.version,"Program intended to be used with Builder should have source files with versions set"),h=p?r.fileInfos.get(_.resolvedPath):void 0;if(s){var v=l(n,_,t);if(v&&s.set(_.resolvedPath,v),p){var b=r.exportedModulesMap.getValues(_.resolvedPath);b&&c.set(_.resolvedPath,b)}}o.set(_.resolvedPath,{version:y,signature:h&&h.signature,affectsGlobalScope:g(_)||void 0})}return{fileInfos:o,referencedMap:s,exportedModulesMap:c,hasCalledUpdateShapeSignature:d,useFileVersionAsSignature:!a&&!p}},t.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},t.clone=function(n){var t,r;return{fileInfos:new e.Map(n.fileInfos),referencedMap:null===(t=n.referencedMap)||void 0===t?void 0:t.clone(),exportedModulesMap:null===(r=n.exportedModulesMap)||void 0===r?void 0:r.clone(),hasCalledUpdateShapeSignature:new e.Set(n.hasCalledUpdateShapeSignature),useFileVersionAsSignature:n.useFileVersionAsSignature}},t.getFilesAffectedBy=function(n,t,r,i,a,o,s){var c=o||new e.Map,l=t.getSourceFileByPath(r);if(!l)return e.emptyArray;if(!f(n,t,l,c,i,a,s))return[l];var u=(n.referencedMap?v:h)(n,t,l,c,i,a,s);return o||d(n,c),u},t.updateSignaturesFromCache=d,t.updateSignatureOfFile=p,t.updateShapeSignature=f,t.updateExportedFilesMapFromCache=function(n,t){var r;if(t){e.Debug.assert(!!n.exportedModulesMap);var i=t.id,a=t.version();if(n.previousCache){if(n.previousCache.id===i&&n.previousCache.version===a)return;n.previousCache.id=i,n.previousCache.version=a}else n.previousCache={id:i,version:a};null===(r=t.deletedKeys())||void 0===r||r.forEach((function(e){return n.exportedModulesMap.deleteKey(e)})),t.forEach((function(e,t){return n.exportedModulesMap.set(t,e)}))}},t.getAllDependencies=function(n,t,r){var i=t.getCompilerOptions();if(e.outFile(i))return m(n,t);if(!n.referencedMap||g(r))return m(n,t);for(var a=new e.Set,o=[r.resolvedPath];o.length;){var s=o.pop();if(!a.has(s)){a.add(s);var c=n.referencedMap.getValues(s);if(c)for(var l=c.keys(),u=l.next();!u.done;u=l.next())o.push(u.value)}}return e.arrayFrom(e.mapDefinedIterator(a.keys(),(function(e){var n,r;return null!==(r=null===(n=t.getSourceFileByPath(e))||void 0===n?void 0:n.fileName)&&void 0!==r?r:e})))},t.getReferencedByPaths=_,t.getAllFilesExcludingDefaultLibraryFile=y}(e.BuilderState||(e.BuilderState={}))}(u||(u={})),function(e){var n,t;function r(e,n,t){var r=e.file;return a(a({},e),{file:r?n.getSourceFileByPath(t(r)):void 0})}function i(n,t){e.Debug.assert(!t||!n.affectedFiles||n.affectedFiles[n.affectedFilesIndex-1]!==t||!n.semanticDiagnosticsPerFile.has(t.resolvedPath))}function o(n,t,r){for(;;){var i=n.affectedFiles;if(i){for(var a=n.seenAffectedFiles,o=n.affectedFilesIndex;o<i.length;){var c=i[o];if(!a.has(c.resolvedPath))return n.affectedFilesIndex=o,s(n,c,t,r),c;o++}n.changedFilesSet.delete(n.currentChangedFilePath),n.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(n,n.currentAffectedFilesSignatures),n.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(n,n.currentAffectedFilesExportedModulesMap),n.affectedFiles=void 0}var l=n.changedFilesSet.keys().next();if(l.done)return;var u=e.Debug.checkDefined(n.program),d=u.getCompilerOptions();if(e.outFile(d))return e.Debug.assert(!n.semanticDiagnosticsPerFile),u;n.currentAffectedFilesSignatures||(n.currentAffectedFilesSignatures=new e.Map),n.exportedModulesMap&&(n.currentAffectedFilesExportedModulesMap||(n.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),n.affectedFiles=e.BuilderState.getFilesAffectedBy(n,u,l.value,t,r,n.currentAffectedFilesSignatures,n.currentAffectedFilesExportedModulesMap),n.currentChangedFilePath=l.value,n.affectedFilesIndex=0,n.seenAffectedFiles||(n.seenAffectedFiles=new e.Set)}}function s(n,t,r,i){var a;if(c(n,t.resolvedPath),n.allFilesExcludingDefaultLibraryFile!==n.affectedFiles)e.Debug.assert(n.hasCalledUpdateShapeSignature.has(t.resolvedPath)||(null===(a=n.currentAffectedFilesSignatures)||void 0===a?void 0:a.has(t.resolvedPath)),"Signature not updated for affected file: "+t.fileName),n.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(n,t,r){var i,a;if(n.exportedModulesMap&&n.changedFilesSet.has(t.resolvedPath)&&l(n,t.resolvedPath)){if(n.compilerOptions.isolatedModules){var o=new e.Map;o.set(t.resolvedPath,!0);for(var s=e.BuilderState.getReferencedByPaths(n,t.resolvedPath);s.length>0;){var c=s.pop();if(!o.has(c)&&(o.set(c,!0),r(n,c),l(n,c))){var d=e.Debug.checkDefined(n.program).getSourceFileByPath(c);s.push.apply(s,e.BuilderState.getReferencedByPaths(n,d.resolvedPath))}}}e.Debug.assert(!!n.currentAffectedFilesExportedModulesMap);var p=new e.Set;null===(i=n.currentAffectedFilesExportedModulesMap.getKeys(t.resolvedPath))||void 0===i||i.forEach((function(e){return u(n,e,p,r)})),null===(a=n.exportedModulesMap.getKeys(t.resolvedPath))||void 0===a||a.forEach((function(e){var t;return!n.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(t=n.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===t?void 0:t.has(e))&&u(n,e,p,r)}))}}(n,t,(function(n,t){return function(n,t,r,i){if(c(n,t),!n.changedFilesSet.has(t)){var a=e.Debug.checkDefined(n.program),o=a.getSourceFileByPath(t);o&&(e.BuilderState.updateShapeSignature(n,a,o,e.Debug.checkDefined(n.currentAffectedFilesSignatures),r,i,n.currentAffectedFilesExportedModulesMap,!0),e.getEmitDeclarations(n.compilerOptions)&&b(n,t,0))}}(n,t,r,i)}));else{if(!n.cleanedDiagnosticsOfLibFiles){n.cleanedDiagnosticsOfLibFiles=!0;var o=e.Debug.checkDefined(n.program),s=o.getCompilerOptions();e.forEach(o.getSourceFiles(),(function(t){return o.isSourceFileDefaultLibrary(t)&&!e.skipTypeChecking(t,s,o)&&c(n,t.resolvedPath)}))}e.BuilderState.updateShapeSignature(n,e.Debug.checkDefined(n.program),t,e.Debug.checkDefined(n.currentAffectedFilesSignatures),r,i,n.currentAffectedFilesExportedModulesMap)}}function c(e,n){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(n),e.semanticDiagnosticsPerFile.delete(n),!e.semanticDiagnosticsFromOldState.size)}function l(n,t){return e.Debug.checkDefined(n.currentAffectedFilesSignatures).get(t)!==e.Debug.checkDefined(n.fileInfos.get(t)).signature}function u(e,n,t,r){var i;null===(i=e.referencedMap.getKeys(n))||void 0===i||i.forEach((function(n){return d(e,n,t,r)}))}function d(n,t,r,i){var a,o,s;e.tryAddToSet(r,t)&&(i(n,t),e.Debug.assert(!!n.currentAffectedFilesExportedModulesMap),null===(a=n.currentAffectedFilesExportedModulesMap.getKeys(t))||void 0===a||a.forEach((function(e){return d(n,e,r,i)})),null===(o=n.exportedModulesMap.getKeys(t))||void 0===o||o.forEach((function(e){var t;return!n.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(t=n.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===t?void 0:t.has(e))&&d(n,e,r,i)})),null===(s=n.referencedMap.getKeys(t))||void 0===s||s.forEach((function(e){return!r.has(e)&&i(n,e)})))}function p(n,t,r,i,a){a?n.buildInfoEmitPending=!1:t===n.program?(n.changedFilesSet.clear(),n.programEmitComplete=!0):(n.seenAffectedFiles.add(t.resolvedPath),void 0!==r&&(n.seenEmittedFiles||(n.seenEmittedFiles=new e.Map)).set(t.resolvedPath,r),i?(n.affectedFilesPendingEmitIndex++,n.buildInfoEmitPending=!0):n.affectedFilesIndex++)}function f(e,n,t){return p(e,t),{result:n,affected:t}}function m(e,n,t,r,i,a){return p(e,t,r,i,a),{result:n,affected:t}}function _(n,t,r){return e.concatenate(function(n,t,r){var i=t.resolvedPath;if(n.semanticDiagnosticsPerFile){var a=n.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnostics(a,n.compilerOptions)}var o=e.Debug.checkDefined(n.program).getBindAndCheckDiagnostics(t,r);return n.semanticDiagnosticsPerFile&&n.semanticDiagnosticsPerFile.set(i,o),e.filterSemanticDiagnostics(o,n.compilerOptions)}(n,t,r),e.Debug.checkDefined(n.program).getProgramDiagnostics(t))}function g(n,t){for(var r,i=e.getOptionsNameMap().optionsNameMap,a=0,o=e.getOwnKeys(n).sort(e.compareStringsCaseSensitive);a<o.length;a++){var s=o[a],c=s.toLowerCase(),l=i.get(c);((null==l?void 0:l.affectsEmit)||(null==l?void 0:l.affectsSemanticDiagnostics)||"strict"===c||"skiplibcheck"===c||"skipdefaultlibcheck"===c)&&((r||(r={}))[s]=y(l,n[s],t))}return r}function y(e,n,t){if(e)if("list"===e.type){var r=n;if(e.element.isFilePath&&r.length)return r.map(t)}else if(e.isFilePath)return t(n);return n}function h(n,t){return e.Debug.assert(!!n.length),n.map((function(e){var n=v(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;var r=e.relatedInformation;return n.relatedInformation=r?r.length?r.map((function(e){return v(e,t)})):[]:void 0,n}))}function v(e,n){var t=e.file;return a(a({},e),{file:t?n(t.resolvedPath):void 0})}function b(n,t,r){n.affectedFilesPendingEmit||(n.affectedFilesPendingEmit=[]),n.affectedFilesPendingEmitKind||(n.affectedFilesPendingEmitKind=new e.Map);var i=n.affectedFilesPendingEmitKind.get(t);n.affectedFilesPendingEmit.push(t),n.affectedFilesPendingEmitKind.set(t,i||r),void 0===n.affectedFilesPendingEmitIndex&&(n.affectedFilesPendingEmitIndex=0)}function E(n){return e.isString(n)?{version:n,signature:n,affectsGlobalScope:void 0}:e.isString(n.signature)?n:{version:n.version,signature:!1===n.signature?void 0:n.version,affectsGlobalScope:n.affectsGlobalScope}}function T(n,t){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:r,getProgramOrUndefined:function(){return n().program},releaseProgram:function(){return n().program=void 0},getCompilerOptions:function(){return n().compilerOptions},getSourceFile:function(e){return r().getSourceFile(e)},getSourceFiles:function(){return r().getSourceFiles()},getOptionsDiagnostics:function(e){return r().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return r().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return t},getSyntacticDiagnostics:function(e,n){return r().getSyntacticDiagnostics(e,n)},getDeclarationDiagnostics:function(e,n){return r().getDeclarationDiagnostics(e,n)},getSemanticDiagnostics:function(e,n){return r().getSemanticDiagnostics(e,n)},emit:function(e,n,t,i,a){return r().emit(e,n,t,i,a)},emitBuildInfo:function(e,n){return r().emitBuildInfo(e,n)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return r().getCurrentDirectory()},close:e.noop};function r(){return e.Debug.checkDefined(n().program)}}(t=e.BuilderFileEmit||(e.BuilderFileEmit={}))[t.DtsOnly=0]="DtsOnly",t[t.Full=1]="Full",function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(n=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(n,t,r,i,a,o){var s,c,l;return void 0===n?(e.Debug.assert(void 0===t),s=r,l=i,e.Debug.assert(!!l),c=l.getProgram()):e.isArray(n)?(l=i,c=e.createProgram({rootNames:n,options:t,host:r,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=r):(c=n,s=t,l=r,a=i),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:a||e.emptyArray}},e.createBuilderProgram=function(t,a){var s=a.newProgram,c=a.host,l=a.oldProgram,u=a.configFileParsingDiagnostics,d=l&&l.getState();if(d&&s===d.program&&u===s.getConfigFileParsingDiagnostics())return s=void 0,d=void 0,l;var y,v=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),E=e.maybeBind(c,c.createHash),S=function(n,t,i,a){var o=e.BuilderState.create(n,t,i,a);o.program=n;var s=n.getCompilerOptions();o.compilerOptions=s,e.outFile(s)||(o.semanticDiagnosticsPerFile=new e.Map),o.changedFilesSet=new e.Set;var c=e.BuilderState.canReuseOldState(o.referencedMap,i),l=c?i.compilerOptions:void 0,u=c&&i.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(s,l);if(c){if(!i.currentChangedFilePath){var d=i.currentAffectedFilesSignatures;e.Debug.assert(!(i.affectedFiles||d&&d.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var p=i.changedFilesSet;u&&e.Debug.assert(!p||!e.forEachKey(p,(function(e){return i.semanticDiagnosticsPerFile.has(e)})),"Semantic diagnostics shouldnt be available for changed files"),null==p||p.forEach((function(e){return o.changedFilesSet.add(e)})),!e.outFile(s)&&i.affectedFilesPendingEmit&&(o.affectedFilesPendingEmit=i.affectedFilesPendingEmit.slice(),o.affectedFilesPendingEmitKind=i.affectedFilesPendingEmitKind&&new e.Map(i.affectedFilesPendingEmitKind),o.affectedFilesPendingEmitIndex=i.affectedFilesPendingEmitIndex,o.seenAffectedFiles=new e.Set)}var f=o.referencedMap,m=c?i.referencedMap:void 0,_=u&&!s.skipLibCheck==!l.skipLibCheck,g=_&&!s.skipDefaultLibCheck==!l.skipDefaultLibCheck;return o.fileInfos.forEach((function(a,s){var l,d,p,y;if(!c||!(l=i.fileInfos.get(s))||l.version!==a.version||(p=d=f&&f.getValues(s))!==(y=m&&m.getValues(s))&&(void 0===p||void 0===y||p.size!==y.size||e.forEachKey(p,(function(e){return!y.has(e)})))||d&&e.forEachKey(d,(function(e){return!o.fileInfos.has(e)&&i.fileInfos.has(e)})))o.changedFilesSet.add(s);else if(u){var h=n.getSourceFileByPath(s);if(h.isDeclarationFile&&!_)return;if(h.hasNoDefaultLib&&!g)return;var v=i.semanticDiagnosticsPerFile.get(s);v&&(o.semanticDiagnosticsPerFile.set(s,i.hasReusableDiagnostic?function(n,t,i){if(!n.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.getCompilerOptions()),t.getCurrentDirectory()));return n.map((function(e){var n=r(e,t,o);n.reportsUnnecessary=e.reportsUnnecessary,n.reportsDeprecated=e.reportDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;var i=e.relatedInformation;return n.relatedInformation=i?i.length?i.map((function(e){return r(e,t,o)})):[]:void 0,n}));function o(n){return e.toPath(n,a,i)}}(v,n,t):v),o.semanticDiagnosticsFromOldState||(o.semanticDiagnosticsFromOldState=new e.Set),o.semanticDiagnosticsFromOldState.add(s))}})),c&&e.forEachEntry(i.fileInfos,(function(e,n){return e.affectsGlobalScope&&!o.fileInfos.has(n)}))?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(o,n,void 0).forEach((function(e){return o.changedFilesSet.add(e.resolvedPath)})):l&&!e.outFile(s)&&e.compilerOptionsAffectEmit(s,l)&&(n.getSourceFiles().forEach((function(e){return b(o,e.resolvedPath,1)})),e.Debug.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new e.Set),o.buildInfoEmitPending=!!o.changedFilesSet.size,o}(s,v,d,c.disableUseFileVersionAsSignature);s.getProgramBuildInfo=function(){return function(n,t){if(!e.outFile(n.compilerOptions)){var r,i,a,o,s,c,l=e.Debug.checkDefined(n.program).getCurrentDirectory(),u=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(n.compilerOptions),l)),d=[],p=new e.Map,f=e.arrayFrom(n.fileInfos.entries(),(function(t){var r=t[0],i=t[1],a=L(r);e.Debug.assert(d[a-1]===x(r));var o=n.currentAffectedFilesSignatures&&n.currentAffectedFilesSignatures.get(r),s=null!=o?o:i.signature;return i.version===s?i.affectsGlobalScope?{version:i.version,signature:void 0,affectsGlobalScope:!0}:i.version:void 0!==s?void 0===o?i:{version:i.version,signature:o,affectsGlobalScope:i.affectsGlobalScope}:{version:i.version,signature:!1,affectsGlobalScope:i.affectsGlobalScope}}));if(n.referencedMap&&(a=e.arrayFrom(n.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map((function(e){return[L(e),D(n.referencedMap.getValues(e))]}))),n.exportedModulesMap&&(o=e.mapDefined(e.arrayFrom(n.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),(function(e){var t;if(n.currentAffectedFilesExportedModulesMap){if(null===(t=n.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===t?void 0:t.has(e))return;var r=n.currentAffectedFilesExportedModulesMap.getValues(e);if(r)return[L(e),D(r)]}return[L(e),D(n.exportedModulesMap.getValues(e))]}))),n.semanticDiagnosticsPerFile)for(var m=0,_=e.arrayFrom(n.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);m<_.length;m++){var y=_[m],v=n.semanticDiagnosticsPerFile.get(y);(s||(s=[])).push(v.length?[L(y),n.hasReusableDiagnostic?v:h(v,x)]:L(y))}if(n.affectedFilesPendingEmit)for(var b=new e.Set,E=0,T=n.affectedFilesPendingEmit.slice(n.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);E<T.length;E++){var S=T[E];e.tryAddToSet(b,S)&&(c||(c=[])).push([L(S),n.affectedFilesPendingEmitKind.get(S)])}return{fileNames:d,fileInfos:f,options:g(n.compilerOptions,(function(n){return x(e.getNormalizedAbsolutePath(n,l))})),fileIdsList:r,referencedMap:a,exportedModulesMap:o,semanticDiagnosticsPerFile:s,affectedFilesPendingEmit:c}}function x(n){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(u,n,t))}function L(e){var n=p.get(e);return void 0===n&&(d.push(x(e)),p.set(e,n=d.length)),n}function D(n){var t=e.arrayFrom(n.keys(),L).sort(e.compareValues),a=t.join(),o=null==i?void 0:i.get(a);return void 0===o&&((r||(r=[])).push(t),(i||(i=new e.Map)).set(a,o=r.length)),o}}(S,v)},s=void 0,l=void 0,d=void 0;var x=function(){return S},L=T(x,u);return L.getState=x,L.backupState=function(){e.Debug.assert(void 0===y),y=function(n){var t,r=e.BuilderState.clone(n);return r.semanticDiagnosticsPerFile=n.semanticDiagnosticsPerFile&&new e.Map(n.semanticDiagnosticsPerFile),r.changedFilesSet=new e.Set(n.changedFilesSet),r.affectedFiles=n.affectedFiles,r.affectedFilesIndex=n.affectedFilesIndex,r.currentChangedFilePath=n.currentChangedFilePath,r.currentAffectedFilesSignatures=n.currentAffectedFilesSignatures&&new e.Map(n.currentAffectedFilesSignatures),r.currentAffectedFilesExportedModulesMap=null===(t=n.currentAffectedFilesExportedModulesMap)||void 0===t?void 0:t.clone(),r.seenAffectedFiles=n.seenAffectedFiles&&new e.Set(n.seenAffectedFiles),r.cleanedDiagnosticsOfLibFiles=n.cleanedDiagnosticsOfLibFiles,r.semanticDiagnosticsFromOldState=n.semanticDiagnosticsFromOldState&&new e.Set(n.semanticDiagnosticsFromOldState),r.program=n.program,r.compilerOptions=n.compilerOptions,r.affectedFilesPendingEmit=n.affectedFilesPendingEmit&&n.affectedFilesPendingEmit.slice(),r.affectedFilesPendingEmitKind=n.affectedFilesPendingEmitKind&&new e.Map(n.affectedFilesPendingEmitKind),r.affectedFilesPendingEmitIndex=n.affectedFilesPendingEmitIndex,r.seenEmittedFiles=n.seenEmittedFiles&&new e.Map(n.seenEmittedFiles),r.programEmitComplete=n.programEmitComplete,r}(S)},L.restoreState=function(){S=e.Debug.checkDefined(y),y=void 0},L.getAllDependencies=function(n){return e.BuilderState.getAllDependencies(S,e.Debug.checkDefined(S.program),n)},L.getSemanticDiagnostics=function(n,t){i(S,n);var r,a=e.Debug.checkDefined(S.program).getCompilerOptions();if(e.outFile(a))return e.Debug.assert(!S.semanticDiagnosticsPerFile),e.Debug.checkDefined(S.program).getSemanticDiagnostics(n,t);if(n)return _(S,n,t);for(;A(t););for(var o=0,s=e.Debug.checkDefined(S.program).getSourceFiles();o<s.length;o++){var c=s[o];r=e.addRange(r,_(S,c,t))}return r||e.emptyArray},L.emit=function(r,a,o,s,l){var u,d,p,f=!1;t===n.EmitAndSemanticDiagnosticsBuilderProgram||r||e.outFile(S.compilerOptions)||S.compilerOptions.noEmit||!S.compilerOptions.noEmitOnError||(f=!0,u=S.affectedFilesPendingEmit&&S.affectedFilesPendingEmit.slice(),d=S.affectedFilesPendingEmitKind&&new e.Map(S.affectedFilesPendingEmitKind),p=S.affectedFilesPendingEmitIndex),t===n.EmitAndSemanticDiagnosticsBuilderProgram&&i(S,r);var m=e.handleNoEmitOptions(L,r,a,o);if(m)return m;if(f&&(S.affectedFilesPendingEmit=u,S.affectedFilesPendingEmitKind=d,S.affectedFilesPendingEmitIndex=p),!r&&t===n.EmitAndSemanticDiagnosticsBuilderProgram){for(var _=[],g=!1,y=void 0,h=[],v=void 0;v=D(a,o,s,l);)g=g||v.result.emitSkipped,y=e.addRange(y,v.result.diagnostics),h=e.addRange(h,v.result.emittedFiles),_=e.addRange(_,v.result.sourceMaps);return{emitSkipped:g,diagnostics:y||e.emptyArray,emittedFiles:h,sourceMaps:_}}return e.Debug.checkDefined(S.program).emit(r,a||e.maybeBind(c,c.writeFile),o,s,l)},L.releaseProgram=function(){!function(n){e.BuilderState.releaseCache(n),n.program=void 0}(S),y=void 0},t===n.SemanticDiagnosticsBuilderProgram?L.getSemanticDiagnosticsOfNextAffectedFile=A:t===n.EmitAndSemanticDiagnosticsBuilderProgram?(L.getSemanticDiagnosticsOfNextAffectedFile=A,L.emitNextAffectedFile=D,L.emitBuildInfo=function(n,t){if(S.buildInfoEmitPending){var r=e.Debug.checkDefined(S.program).emitBuildInfo(n||e.maybeBind(c,c.writeFile),t);return S.buildInfoEmitPending=!1,r}return e.emitSkippedWithNoDiagnostics}):e.notImplemented(),L;function D(n,t,r,i){var a=o(S,t,E),s=1,l=!1;if(!a)if(e.outFile(S.compilerOptions)){var u=e.Debug.checkDefined(S.program);if(S.programEmitComplete)return;a=u}else{var d=function(n){var t=n.affectedFilesPendingEmit;if(t){for(var r=n.seenEmittedFiles||(n.seenEmittedFiles=new e.Map),i=n.affectedFilesPendingEmitIndex;i<t.length;i++){var a=e.Debug.checkDefined(n.program).getSourceFileByPath(t[i]);if(a){var o=r.get(a.resolvedPath),s=e.Debug.checkDefined(e.Debug.checkDefined(n.affectedFilesPendingEmitKind).get(a.resolvedPath));if(void 0===o||o<s)return n.affectedFilesPendingEmitIndex=i,{affectedFile:a,emitKind:s}}}n.affectedFilesPendingEmit=void 0,n.affectedFilesPendingEmitKind=void 0,n.affectedFilesPendingEmitIndex=void 0}}(S);if(!d){if(!S.buildInfoEmitPending)return;var p=e.Debug.checkDefined(S.program);return m(S,p.emitBuildInfo(n||e.maybeBind(c,c.writeFile),t),p,1,!1,!0)}a=d.affectedFile,s=d.emitKind,l=!0}return m(S,e.Debug.checkDefined(S.program).emit(a===S.program?void 0:a,n||e.maybeBind(c,c.writeFile),t,r||0===s,i),a,s,l)}function A(e,r){for(;;){var i=o(S,e,E);if(!i)return;if(i===S.program)return f(S,S.program.getSemanticDiagnostics(void 0,e),i);if((t===n.EmitAndSemanticDiagnosticsBuilderProgram||S.compilerOptions.noEmit||S.compilerOptions.noEmitOnError)&&b(S,i.resolvedPath,1),!r||!r(i))return f(S,_(S,i,e),i);p(S,i)}}},e.toBuilderStateFileInfo=E,e.createBuildProgramUsingProgramBuildInfo=function(n,t,r){var i,a=e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r.getCurrentDirectory())),o=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames()),s=n.fileNames.map((function(n){return e.toPath(n,a,o)})),c=null===(i=n.fileIdsList)||void 0===i?void 0:i.map((function(n){return new e.Set(n.map(d))})),l=new e.Map;n.fileInfos.forEach((function(e,n){return l.set(d(n+1),E(e))}));var u={fileInfos:l,compilerOptions:n.options?e.convertToOptionsWithAbsolutePaths(n.options,(function(n){return e.getNormalizedAbsolutePath(n,a)})):{},referencedMap:p(n.referencedMap),exportedModulesMap:p(n.exportedModulesMap),semanticDiagnosticsPerFile:n.semanticDiagnosticsPerFile&&e.arrayToMap(n.semanticDiagnosticsPerFile,(function(n){return d(e.isNumber(n)?n:n[0])}),(function(n){return e.isNumber(n)?e.emptyArray:n[1]})),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(n.affectedFilesPendingEmit,(function(e){return d(e[0])})),affectedFilesPendingEmitKind:n.affectedFilesPendingEmit&&e.arrayToMap(n.affectedFilesPendingEmit,(function(e){return d(e[0])}),(function(e){return e[1]})),affectedFilesPendingEmitIndex:n.affectedFilesPendingEmit&&0};return{getState:function(){return u},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return u.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop};function d(e){return s[e-1]}function p(n){if(n){var t=e.BuilderState.createManyToManyPathMap();return n.forEach((function(e){var n=e[0],r=e[1];return t.set(d(n),c[r-1])})),t}}},e.createRedirectedBuilderProgram=T}(u||(u={})),function(e){e.createSemanticDiagnosticsBuilderProgram=function(n,t,r,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(n,t,r,i,a,o))},e.createEmitAndSemanticDiagnosticsBuilderProgram=function(n,t,r,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(n,t,r,i,a,o))},e.createAbstractBuilder=function(n,t,r,i,a,o){var s=e.getBuilderCreationParameters(n,t,r,i,a,o),c=s.newProgram,l=s.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram((function(){return{program:c,compilerOptions:c.getCompilerOptions()}}),l)}}(u||(u={})),function(e){function n(n){return e.endsWith(n,"/node_modules/.staging")?e.removeSuffix(n,"/.staging"):e.some(e.ignoredPaths,(function(t){return e.stringContains(n,t)}))?void 0:n}function t(n){var t=e.getRootLength(n);if(n.length===t)return!1;var r=n.indexOf(e.directorySeparator,t);if(-1===r)return!1;var i=n.substring(t,r+1),a=t>1||47!==n.charCodeAt(0);if(a&&0!==n.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-z]\$\//)){if(-1===(r=n.indexOf(e.directorySeparator,r+1)))return!1;i=n.substring(t+i.length,r+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=r+1,s=2;s>0;s--)if(0===(o=n.indexOf(e.directorySeparator,o)+1))return!1;return!0}e.removeIgnoredPath=n,e.canWatchDirectory=t,e.createResolutionCache=function(r,i,a){var o,s,c,l,u,d,p=e.createMultiMap(),f=[],m=e.createMultiMap(),_=!1,g=e.memoize((function(){return r.getCurrentDirectory()})),y=r.getCachedDirectoryStructureHost(),h=new e.Map,v=e.createCacheWithRedirects(),b=e.createCacheWithRedirects(),E=e.createModuleResolutionCache(g(),r.getCanonicalFileName,void 0,v,b),T=new e.Map,S=e.createCacheWithRedirects(),x=e.createTypeReferenceDirectiveResolutionCache(g(),r.getCanonicalFileName,void 0,E.getPackageJsonInfoCache(),S),L=[".ts",".tsx",".js",".jsx",".json"],D=new e.Map,A=new e.Map,C=i&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(i,g())),I=C&&r.toPath(C),N=void 0!==I?I.split(e.directorySeparator).length:0,k=new e.Map;return{getModuleResolutionCache:function(){return E},startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:M,finishCachingPerDirectoryResolution:function(){c=void 0,M(),A.forEach((function(e,n){0===e.refCount&&(A.delete(n),e.watcher.close())})),_=!1},resolveModuleNames:function(n,t,r,i){return B({names:n,containingFile:t,redirectedReference:i,cache:h,perDirectoryCacheWithRedirects:v,loader:F,getResolutionWithResolvedFileName:R,shouldRetryResolution:function(n){return!n.resolvedModule||!e.resolutionExtensionIsTSOrJson(n.resolvedModule.extension)},reusedNames:r,logChanges:a})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,n){var t=h.get(r.toPath(n));return t&&t.get(e)},resolveTypeReferenceDirectives:function(e,n,t){return B({names:e,containingFile:n,redirectedReference:t,cache:T,perDirectoryCacheWithRedirects:S,loader:G,getResolutionWithResolvedFileName:O,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(n){if(e.fileExtensionIs(n,".json")){var t=r.getCurrentProgram();if(t){var i=t.getResolvedProjectReferenceByPath(n);i&&i.commandLine.fileNames.forEach((function(e){return Z(r.toPath(e))}))}}},removeResolutionsOfFile:Z,hasChangedAutomaticTypeDirectiveNames:function(){return _},invalidateResolutionOfFile:function(n){Z(n);var t=_;$(m.get(n),e.returnTrue)&&_&&!t&&r.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:ne,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(n){e.Debug.assert(c===n||void 0===c),c=n},createHasInvalidatedResolution:function(n){if(ne(),n)return s=void 0,e.returnTrue;var t=s;return s=void 0,function(e){return!!t&&t.has(e)||w(e)}},isFileWithInvalidatedNonRelativeUnresolvedImports:w,updateTypeRootsWatch:function(){var n=r.getCompilationSettings();if(n.types)re();else{var t=e.getEffectiveTypeRoots(n,{directoryExists:ae,getCurrentDirectory:g});t?e.mutateMap(k,e.arrayToMap(t,(function(e){return r.toPath(e)})),{createNewValue:ie,onDeleteValue:e.closeFileWatcher}):re()}},closeTypeRootsWatch:re,clear:function(){e.clearMap(A,e.closeFileWatcherOf),D.clear(),p.clear(),re(),h.clear(),T.clear(),m.clear(),f.length=0,l=void 0,u=void 0,d=void 0,M(),_=!1}};function R(e){return e.resolvedModule}function O(e){return e.resolvedTypeReferenceDirective}function P(n,t){return!(void 0===n||t.length<=n.length)&&e.startsWith(t,n)&&t[n.length]===e.directorySeparator}function w(e){if(!c)return!1;var n=c.get(e);return!!n&&!!n.length}function M(){E.clear(),x.clear(),p.forEach(z),p.clear()}function F(n,t,i,a,o){var s,c=e.resolveModuleName(n,t,i,a,E,o);if(!r.getGlobalCache)return c;var l=r.getGlobalCache();if(!(void 0===l||e.isExternalModuleNameRelative(n)||c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var u=e.loadModuleFromGlobalCache(e.Debug.checkDefined(r.globalCacheResolutionModuleName)(n),r.projectName,i,a,l,E),d=u.resolvedModule,p=u.failedLookupLocations;if(d)return c.resolvedModule=d,(s=c.failedLookupLocations).push.apply(s,p),c}return c}function G(n,t,r,i,a){return e.resolveTypeReferenceDirective(n,t,r,i,a,x)}function B(n){var t,i,a,s=n.names,c=n.containingFile,l=n.redirectedReference,u=n.cache,d=n.perDirectoryCacheWithRedirects,p=n.loader,f=n.getResolutionWithResolvedFileName,m=n.shouldRetryResolution,_=n.reusedNames,g=n.logChanges,y=r.toPath(c),h=u.get(y)||u.set(y,new e.Map).get(y),v=e.getDirectoryPath(y),b=d.getOrCreateMapOfCacheRedirects(l),E=b.get(v);E||(E=new e.Map,b.set(v,E));for(var T=[],S=r.getCompilationSettings(),x=g&&w(y),L=r.getCurrentProgram(),D=L&&L.getResolvedProjectReferenceToRedirect(c),A=D?!l||l.sourceFile.path!==D.sourceFile.path:!!l,C=new e.Map,I=0,N=s;I<N.length;I++){var k=N[I],R=h.get(k);if(!C.has(k)&&A||!R||R.isInvalidated||x&&!e.isExternalModuleNameRelative(k)&&m(R)){var O=R,P=E.get(k);if(P){R=P;var M=(null===(t=r.getCompilerHost)||void 0===t?void 0:t.call(r))||r;if(e.isTraceEnabled(S,M)){var G=f(R);e.trace(M,p===F?(null==G?void 0:G.resolvedFileName)?G.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:(null==G?void 0:G.resolvedFileName)?G.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,k,c,e.getDirectoryPath(c),null==G?void 0:G.resolvedFileName,(null==G?void 0:G.packagetId)&&e.packageIdToString(G.packagetId))}}else R=p(k,c,S,(null===(i=r.getCompilerHost)||void 0===i?void 0:i.call(r))||r,l),E.set(k,R);h.set(k,R),H(k,R,y,f),O&&q(O,y,f),g&&o&&!B(O,R)&&(o.push(y),g=!1)}else M=(null===(a=r.getCompilerHost)||void 0===a?void 0:a.call(r))||r,e.isTraceEnabled(S,M)&&!C.has(k)&&(G=f(R),e.trace(M,p===F?(null==G?void 0:G.resolvedFileName)?G.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:(null==G?void 0:G.resolvedFileName)?G.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,k,c,null==G?void 0:G.resolvedFileName,(null==G?void 0:G.packagetId)&&e.packageIdToString(G.packagetId)));e.Debug.assert(void 0!==R&&!R.isInvalidated),C.set(k,!0),T.push(f(R))}return h.forEach((function(n,t){C.has(t)||e.contains(_,t)||(q(n,y,f),h.delete(t))})),T;function B(e,n){if(e===n)return!0;if(!e||!n)return!1;var t=f(e),r=f(n);return t===r||!(!t||!r)&&t.resolvedFileName===r.resolvedFileName}}function U(n){return e.endsWith(n,"/node_modules/@types")}function V(n,t){if(P(I,t)){n=e.isRootedDiskPath(n)?e.normalizePath(n):e.getNormalizedAbsolutePath(n,g());var r=t.split(e.directorySeparator),i=n.split(e.directorySeparator);return e.Debug.assert(i.length===r.length,"FailedLookup: "+n+" failedLookupLocationPath: "+t),r.length>N+1?{dir:i.slice(0,N+1).join(e.directorySeparator),dirPath:r.slice(0,N+1).join(e.directorySeparator)}:{dir:C,dirPath:I,nonRecursive:!1}}return j(e.getDirectoryPath(e.getNormalizedAbsolutePath(n,g())),e.getDirectoryPath(t))}function j(n,r){for(;e.pathContainsNodeModules(r);)n=e.getDirectoryPath(n),r=e.getDirectoryPath(r);if(e.isNodeModulesDirectory(r))return t(e.getDirectoryPath(r))?{dir:n,dirPath:r}:void 0;var i,a,o=!0;if(void 0!==I)for(;!P(r,I);){var s=e.getDirectoryPath(r);if(s===r)break;o=!1,i=r,a=n,r=s,n=e.getDirectoryPath(n)}return t(r)?{dir:a||n,dirPath:i||r,nonRecursive:o}:void 0}function K(n){return e.fileExtensionIsOneOf(n,L)}function H(n,t,i,a){if(t.refCount)t.refCount++,e.Debug.assertDefined(t.files);else{t.refCount=1,e.Debug.assert(0===e.length(t.files)),e.isExternalModuleNameRelative(n)?W(t):p.add(n,t);var o=a(t);o&&o.resolvedFileName&&m.add(r.toPath(o.resolvedFileName),t)}(t.files||(t.files=[])).push(i)}function W(n){e.Debug.assert(!!n.refCount);var t=n.failedLookupLocations;if(t.length){f.push(n);for(var i=!1,a=0,o=t;a<o.length;a++){var s=o[a],c=r.toPath(s),l=V(s,c);if(l){var u=l.dir,d=l.dirPath,p=l.nonRecursive;if(!K(c)){var m=D.get(c)||0;D.set(c,m+1)}d===I?(e.Debug.assert(!p),i=!0):J(u,d,p)}}i&&J(C,I,!0)}}function z(e,n){var t=r.getCurrentProgram();t&&t.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(n)||e.forEach(W)}function J(n,t,r){var i=A.get(t);i?(e.Debug.assert(!!r==!!i.nonRecursive),i.refCount++):A.set(t,{watcher:Y(n,t,r),refCount:1,nonRecursive:r})}function q(n,t,i){if(e.unorderedRemoveItem(e.Debug.assertDefined(n.files),t),n.refCount--,!n.refCount){var a=i(n);if(a&&a.resolvedFileName&&m.remove(r.toPath(a.resolvedFileName),n),e.unorderedRemoveItem(f,n)){for(var o=!1,s=0,c=n.failedLookupLocations;s<c.length;s++){var l=c[s],u=r.toPath(l),d=V(l,u);if(d){var p=d.dirPath,_=D.get(u);_&&(1===_?D.delete(u):(e.Debug.assert(_>1),D.set(u,_-1))),p===I?o=!0:X(p)}}o&&X(I)}}}function X(e){A.get(e).refCount--}function Y(e,n,t){return r.watchDirectoryOfFailedLookupLocation(e,(function(e){var t=r.toPath(e);y&&y.addOrDeleteFileOrDirectory(e,t),ee(t,n===t)}),t?0:1)}function Q(e,n,t){var r=e.get(n);r&&(r.forEach((function(e){return q(e,n,t)})),e.delete(n))}function Z(e){Q(h,e,R),Q(T,e,O)}function $(n,t){if(!n)return!1;for(var r=!1,i=0,a=n;i<a.length;i++){var o=a[i];if(!o.isInvalidated&&t(o)){o.isInvalidated=r=!0;for(var c=0,l=e.Debug.assertDefined(o.files);c<l.length;c++){var u=l[c];(s||(s=new e.Set)).add(u),_=_||e.endsWith(u,e.inferredTypesContainingFile)}}}return r}function ee(t,i){if(i)(d||(d=[])).push(t);else{var a=n(t);if(!a)return!1;if(t=a,r.fileIsOpen(t))return!1;var o=e.getDirectoryPath(t);if(U(t)||e.isNodeModulesDirectory(t)||U(o)||e.isNodeModulesDirectory(o))(l||(l=[])).push(t),(u||(u=new e.Set)).add(t);else{if(!K(t)&&!D.has(t))return!1;if(e.isEmittedFileOfProgram(r.getCurrentProgram(),t))return!1;(l||(l=[])).push(t);var s=e.parseNodeModuleFromPath(t);s&&(u||(u=new e.Set)).add(s)}}r.scheduleInvalidateResolutionsOfFailedLookupLocations()}function ne(){if(!l&&!u&&!d)return!1;var e=$(f,te);return l=void 0,u=void 0,d=void 0,e}function te(n){return n.failedLookupLocations.some((function(n){var t=r.toPath(n);return e.contains(l,t)||e.firstDefinedIterator((null==u?void 0:u.keys())||e.emptyIterator,(function(n){return!!e.startsWith(t,n)||void 0}))||(null==d?void 0:d.some((function(e){return P(e,t)})))}))}function re(){e.clearMap(k,e.closeFileWatcher)}function ie(e,n){return r.watchTypeRootsDirectory(n,(function(t){var i=r.toPath(t);y&&y.addOrDeleteFileOrDirectory(t,i),_=!0,r.onChangedAutomaticTypeDirectiveNames();var a=function(e,n){if(P(I,n))return I;var t=j(e,n);return t&&A.has(t.dirPath)?t.dirPath:void 0}(n,e);a&&ee(i,a===i)}),1)}function ae(n){var i=e.getDirectoryPath(e.getDirectoryPath(n)),a=r.toPath(i);return a===I||t(a)}}}(u||(u={})),function(e){!function(n){var t,r;function a(n,t,r){var i=n.importModuleSpecifierPreference,a=n.importModuleSpecifierEnding;return{relativePreference:"relative"===i?0:"non-relative"===i?1:"project-relative"===i?3:2,ending:function(){switch(a){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return function(n){var t=n.imports;return e.firstDefined(t,(function(n){var t=n.text;return e.pathIsRelative(t)?e.hasJSFileExtension(t):void 0}))||!1}(r)?2:e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs?1:0}}()}}function o(n,t,r,i,a,o){var s=l(t,i),c=_(t,r,i,o);return e.firstDefined(c,(function(e){return h(e,s,i,n)}))||u(r,s,n,i,a)}function s(n,t,r,i){var a,o=e.getSourceFileOfModule(n);if(!o)return e.emptyArray;var s=null===(a=r.getModuleSpecifierCache)||void 0===a?void 0:a.call(r),c=null==s?void 0:s.get(t.path,o.path,i);return[null==c?void 0:c.moduleSpecifiers,o,null==c?void 0:c.modulePaths,s]}function c(n,t,r,i,o,c){var d=!1,p=function(n,t){var r,i=null===(r=n.declarations)||void 0===r?void 0:r.find((function(n){return e.isNonGlobalAmbientModule(n)&&(!e.isExternalModuleAugmentation(n)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(n.name)))}));if(i)return i.name.text;var a=e.mapDefined(n.declarations,(function(n){var r,i,a,o;if(e.isModuleDeclaration(n)){var s=function(e){for(;4&e.flags;)e=e.parent;return e}(n);if((null===(r=null==s?void 0:s.parent)||void 0===r?void 0:r.parent)&&e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)&&e.isSourceFile(s.parent.parent.parent)){var c=null===(o=null===(a=null===(i=s.parent.parent.symbol.exports)||void 0===i?void 0:i.get("export="))||void 0===a?void 0:a.valueDeclaration)||void 0===o?void 0:o.expression;if(c){var l=t.getSymbolAtLocation(c);if(l&&(2097152&(null==l?void 0:l.flags)?t.getAliasedSymbol(l):l)===n.symbol)return s.parent.parent}}}})),o=a[0];return o?o.name.text:void 0}(n,t);if(p)return{moduleSpecifiers:[p],computedWithoutCache:d};var f=s(n,i,o,c),m=f[0],_=f[1],y=f[2],v=f[3];if(m)return{moduleSpecifiers:m,computedWithoutCache:d};if(!_)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:d};d=!0,y||(y=g(i.path,_.originalFileName,o));var b=function(n,t,r,i,o){var s=l(r.path,i),c=a(o,t,r),d=e.forEach(n,(function(n){return e.forEach(i.getFileIncludeReasons().get(e.toPath(n.path,i.getCurrentDirectory(),s.getCanonicalFileName)),(function(n){if(n.kind===e.FileIncludeKind.Import&&n.file===r.path){var t=e.getModuleNameStringLiteralAt(r,n.index).text;return 1===c.relativePreference&&e.pathIsRelative(t)?void 0:t}}))}));if(d)return[d];for(var p,f,m,_=e.some(n,(function(e){return e.isInNodeModules})),g=0,y=n;g<y.length;g++){var v=y[g],b=h(v,s,i,t);if(p=e.append(p,b),b&&v.isRedirect)return p;if(!b&&!v.isRedirect){var E=u(v.path,s,t,i,c);e.pathIsBareSpecifier(E)?f=e.append(f,E):_&&!v.isInNodeModules||(m=e.append(m,E))}}return(null==f?void 0:f.length)?f:(null==p?void 0:p.length)?p:e.Debug.checkDefined(m)}(y,r,i,o,c);return null==v||v.set(i.path,_.path,c,y,b),{moduleSpecifiers:b,computedWithoutCache:d}}function l(n,t){return{getCanonicalFileName:e.createGetCanonicalFileName(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),importingSourceFileName:n,sourceDirectory:e.getDirectoryPath(n)}}function u(n,t,r,i,a){var o=a.ending,s=a.relativePreference,c=r.baseUrl,l=r.paths,u=r.rootDirs,p=t.sourceDirectory,m=t.getCanonicalFileName,_=u&&function(n,t,r,i,a,o){var s=v(t,n,i);if(void 0!==s){var c=v(r,n,i),l=void 0!==c?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(c,s,i)):s;return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeJs?b(l,a,o):e.removeFileExtension(l)}}(u,n,p,m,o,r)||b(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(p,n,m)),o,r);if(!c&&!l||0===s)return _;var g=T(n,e.getNormalizedAbsolutePath(e.getPathsBasePath(r,i)||c,i.getCurrentDirectory()),m);if(!g)return _;var h=b(g,o,r),E=l&&y(e.removeFileExtension(g),h,l),x=void 0===E&&void 0!==c?h:E;if(!x)return _;if(1===s)return x;if(3===s){var L=r.configFilePath?e.toPath(e.getDirectoryPath(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),D=e.toPath(n,L,m),A=e.startsWith(p,L),C=e.startsWith(D,L);if(A&&!C||!A&&C)return x;var I=f(i,e.getDirectoryPath(D));return f(i,p)!==I?x:_}return 2!==s&&e.Debug.assertNever(s),S(x)||d(_)<d(x)?_:x}function d(n){for(var t=0,r=e.startsWith(n,"./")?2:0;r<n.length;r++)47===n.charCodeAt(r)&&t++;return t}function p(n,t){return e.compareBooleans(t.isRedirect,n.isRedirect)||e.compareNumberOfDirectorySeparators(n.path,t.path)}function f(n,t){return n.getNearestAncestorDirectoryWithPackageJson?n.getNearestAncestorDirectoryWithPackageJson(t):!!e.forEachAncestorDirectory(t,(function(t){return!!n.fileExists(e.combinePaths(t,"package.json"))||void 0}))}function m(n,t,r,a,o){var s,c=e.hostGetCanonicalFileName(r),l=r.getCurrentDirectory(),u=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,d=e.toPath(t,l,c),p=r.redirectTargetsMap.get(d)||e.emptyArray,f=i(i(i([],u?[u]:e.emptyArray,!0),[t],!1),p,!0).map((function(n){return e.getNormalizedAbsolutePath(n,l)})),m=!e.every(f,e.containsIgnoredPath);if(!a){var _=e.forEach(f,(function(n){return!(m&&e.containsIgnoredPath(n))&&o(n,u===n)}));if(_)return _}var g=null===(s=r.getSymlinkCache)||void 0===s?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),y=e.getNormalizedAbsolutePath(t,l);return g&&e.forEachAncestorDirectory(e.getDirectoryPath(y),(function(t){var r=g.get(e.ensureTrailingDirectorySeparator(e.toPath(t,l,c)));if(r)return!e.startsWithDirectory(n,t,c)&&e.forEach(f,(function(n){if(e.startsWithDirectory(n,t,c))for(var i=e.getRelativePathFromDirectory(t,n,c),a=0,s=r;a<s.length;a++){var l=s[a],d=e.resolvePath(l,i),p=o(d,n===u);if(m=!0,p)return p}}))}))||(a?e.forEach(f,(function(n){return m&&e.containsIgnoredPath(n)?void 0:o(n,n===u)})):void 0)}function _(n,t,r,i,a){var o;void 0===a&&(a=e.toPath(t,r.getCurrentDirectory(),e.hostGetCanonicalFileName(r)));var s=null===(o=r.getModuleSpecifierCache)||void 0===o?void 0:o.call(r);if(s){var c=s.get(n,a,i);if(null==c?void 0:c.modulePaths)return c.modulePaths}var l=g(n,t,r);return s&&s.setModulePaths(n,a,i,l),l}function g(n,t,r){var i=e.hostGetCanonicalFileName(r),a=new e.Map,o=!1;m(n,t,r,!0,(function(n,t){var r=e.pathContainsNodeModules(n);a.set(n,{path:i(n),isRedirect:t,isInNodeModules:r}),o=o||r}));for(var s,c=[],l=function(n){var t,r=e.ensureTrailingDirectorySeparator(n);a.forEach((function(n,i){var o=n.path,s=n.isRedirect,c=n.isInNodeModules;e.startsWith(o,r)&&((t||(t=[])).push({path:i,isRedirect:s,isInNodeModules:c}),a.delete(i))})),t&&(t.length>1&&t.sort(p),c.push.apply(c,t));var i=e.getDirectoryPath(n);if(i===n)return s=n,"break";s=n=i},u=e.getDirectoryPath(n);0!==a.size;){var d=l(u);if(u=s,"break"===d)break}if(a.size){var f=e.arrayFrom(a.values());f.length>1&&f.sort(p),c.push.apply(c,f)}return c}function y(n,t,r){for(var i in r)for(var a=0,o=r[i];a<o.length;a++){var s=o[a],c=e.removeFileExtension(e.normalizePath(s)),l=c.indexOf("*");if(-1!==l){var u=c.substr(0,l),d=c.substr(l+1);if(t.length>=u.length+d.length&&e.startsWith(t,u)&&e.endsWith(t,d)||!d&&t===e.removeTrailingDirectorySeparator(u)){var p=t.substr(u.length,t.length-d.length-u.length);return i.replace("*",p)}}else if(c===t||c===n)return i}}function h(n,t,r,i,a){var o=n.path,s=n.isRedirect,c=t.getCanonicalFileName,l=t.sourceDirectory;if(r.fileExists&&r.readFile){var u=function(n){var t,r=0,i=0,a=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(t||(t={}));for(var o=0,s=0,c=0;s>=0;)switch(o=s,s=n.indexOf("/",o+1),c){case 0:n.indexOf(e.nodeModulesPathPart,o)===o&&(r=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===n.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=n.indexOf(e.nodeModulesPathPart,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0}(o);if(u){var d=o,p=!1;if(!a)for(var f=u.packageRootIndex,m=void 0;;){var _=x(f),g=_.moduleFileToTry,h=_.packageRootPath;if(h){d=h,p=!0;break}if(m||(m=g),-1===(f=o.indexOf(e.directorySeparator,f+1))){d=L(m);break}}if(!s||p){var v=r.getGlobalTypingsCacheLocation&&r.getGlobalTypingsCacheLocation(),E=c(d.substring(0,u.topLevelNodeModulesIndex));if(e.startsWith(l,E)||v&&e.startsWith(c(v),E)){var T=d.substring(u.topLevelPackageNameIndex+1),S=e.getPackageNameFromTypesPackageName(T);return e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.NodeJs&&S===T?void 0:S}}}}function x(n){var t=o.substring(0,n),a=e.combinePaths(t,"package.json"),s=o;if(r.fileExists(a)){var l=JSON.parse(r.readFile(a)),u=l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(u){var d=o.slice(t.length+1),p=y(e.removeFileExtension(d),b(d,0,i),u.paths);void 0!==p&&(s=e.combinePaths(t,p))}var f=l.typings||l.types||l.main;if(e.isString(f)){var m=e.toPath(f,t,c);if(e.removeFileExtension(m)===e.removeFileExtension(c(s)))return{packageRootPath:t,moduleFileToTry:s}}}return{moduleFileToTry:s}}function L(n){var t=e.removeFileExtension(n);return"/index"!==c(t.substring(u.fileNameIndex))||function(n,t){if(n.fileExists)for(var r=0,i=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]);r<i.length;r++){var a=t+i[r];if(n.fileExists(a))return a}}(r,t.substring(0,u.fileNameIndex))?t:t.substring(0,u.fileNameIndex)}}function v(n,t,r){return e.firstDefined(t,(function(e){var t=T(n,e,r);return S(t)?void 0:t}))}function b(n,t,r){if(e.fileExtensionIs(n,".json"))return n;var i=e.removeFileExtension(n);switch(t){case 0:return e.removeSuffix(i,"/index");case 1:return i;case 2:return i+function(n,t){var r;return null!==(r=E(n,t))&&void 0!==r?r:e.Debug.fail("Extension "+e.extensionFromPath(n)+" is unsupported:: FileName:: "+n)}(n,r);default:return e.Debug.assertNever(t)}}function E(n,t){var r=e.tryGetExtensionFromPath(n);switch(r){case".ts":case".d.ts":return".js";case".tsx":return 1===t.jsx?".jsx":".js";case".js":case".jsx":case".json":return r;default:return}}function T(n,t,r){var i=e.getRelativePathToDirectoryOrUrl(t,n,t,r,!1);return e.isRootedDiskPath(i)?void 0:i}function S(n){return e.startsWith(n,"..")}!function(e){e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative"}(t||(t={})),function(e){e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension"}(r||(r={})),n.updateModuleSpecifier=function(n,t,r,i,a){var s=o(n,t,r,i,function(n,t){return{relativePreference:e.isExternalModuleNameRelative(t)?0:1,ending:e.hasJSFileExtension(t)?2:e.getEmitModuleResolutionKind(n)!==e.ModuleResolutionKind.NodeJs||e.endsWith(t,"index")?1:0}}(n,a),{});if(s!==a)return s},n.getModuleSpecifier=function(e,n,t,r,i){return o(e,t,r,i,a({},e,n),{})},n.getNodeModulesPackageName=function(n,t,r,i,a){var o=l(t,i),s=_(t,r,i,a);return e.firstDefined(s,(function(e){return h(e,o,i,n,!0)}))},n.tryGetModuleSpecifiersFromCache=function(e,n,t,r){return s(e,n,t,r)[0]},n.getModuleSpecifiers=function(e,n,t,r,i,a){return c(e,n,t,r,i,a).moduleSpecifiers},n.getModuleSpecifiersWithCacheInfo=c,n.countPathComponents=d,n.forEachFileNameOfModule=m,n.tryGetJSExtensionForFile=E}(e.moduleSpecifiers||(e.moduleSpecifiers={}))}(u||(u={})),function(e){var n=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function t(t,r){var i=t===e.sys&&n?n:{getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.newLine},getCanonicalFileName:e.createGetCanonicalFileName(t.useCaseSensitiveFileNames)};if(!r)return function(n){return t.write(e.formatDiagnostic(n,i))};var a=new Array(1);return function(n){a[0]=n,t.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function r(n,t,r){return!(!n.clearScreen||r.preserveWatchOutput||r.extendedDiagnostics||r.diagnostics||!e.contains(e.screenStartingMessageCodes,t.code)||(n.clearScreen(),0))}function a(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):(new Date).toLocaleTimeString()}function o(n,t){return t?function(t,i,o){r(n,t,o);var s="["+e.formatColorAndReset(a(n),e.ForegroundColorEscapeSequences.Grey)+"] ";s+=""+e.flattenDiagnosticMessageText(t.messageText,n.newLine)+(i+i),n.write(s)}:function(t,i,o){var s="";r(n,t,o)||(s+=i),s+=a(n)+" - ",s+=""+e.flattenDiagnosticMessageText(t.messageText,n.newLine)+function(n,t){return e.contains(e.screenStartingMessageCodes,n.code)?t+t:t}(t,i),n.write(s)}}function s(n){return e.countWhere(n,(function(n){return n.category===e.DiagnosticCategory.Error}))}function c(n){return 1===n?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}function l(n,t){if(0===n)return"";var r=e.createCompilerDiagnostic(1===n?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,n);return""+t+e.flattenDiagnosticMessageText(r.messageText,t)+t+t}function u(e){return!!e.getState}function d(n,t){var r=n.getCompilerOptions();r.explainFiles?p(u(n)?n.getProgram():n,t):(r.listFiles||r.listFilesOnly)&&e.forEach(n.getSourceFiles(),(function(e){t(e.fileName)}))}function p(n,t){for(var r,i,a=n.getFileIncludeReasons(),o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),s=function(t){return e.convertToRelativePath(t,n.getCurrentDirectory(),o)},c=0,l=n.getSourceFiles();c<l.length;c++){var u=l[c];t(""+y(u,s)),null===(r=a.get(u.path))||void 0===r||r.forEach((function(e){return t(" "+g(n,e,s).messageText)})),null===(i=f(u,s))||void 0===i||i.forEach((function(e){return t(" "+e.messageText)}))}}function f(n,t){var r;return n.path!==n.resolvedPath&&(r||(r=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,y(n.originalFileName,t))),n.redirectInfo&&(r||(r=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,y(n.redirectInfo.redirectTarget,t))),r}function m(n,t){var r,i=n.getCompilerOptions().configFile;if(null===(r=null==i?void 0:i.configFileSpecs)||void 0===r?void 0:r.validatedFilesSpec){var a=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),o=a(t),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(i.fileName,n.getCurrentDirectory()));return e.find(i.configFileSpecs.validatedFilesSpec,(function(n){return a(e.getNormalizedAbsolutePath(n,s))===o}))}}function _(n,t){var r,i,a=n.getCompilerOptions().configFile;if(null===(r=null==a?void 0:a.configFileSpecs)||void 0===r?void 0:r.validatedIncludeSpecs){var o=e.fileExtensionIs(t,".json"),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(a.fileName,n.getCurrentDirectory())),c=n.useCaseSensitiveFileNames();return e.find(null===(i=null==a?void 0:a.configFileSpecs)||void 0===i?void 0:i.validatedIncludeSpecs,(function(n){if(o&&!e.endsWith(n,".json"))return!1;var r=e.getPatternFromSpec(n,s,"files");return!!r&&e.getRegexFromPattern("("+r+")$",c).test(t)}))}}function g(n,t,r){var i,a,o=n.getCompilerOptions();if(e.isReferencedFile(t)){var s=e.getReferencedFileLocation((function(e){return n.getSourceFileByPath(e)}),t),c=e.isReferenceFileLocation(s)?s.file.text.substring(s.pos,s.end):'"'+s.text+'"',l=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(s)||t.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),t.kind){case e.FileIncludeKind.Import:l=e.isReferenceFileLocation(s)?s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:s.text===e.externalHelpersModuleNameText?s.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:s.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(!s.packageId),l=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:l=s.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(!s.packageId),l=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(t)}return e.chainDiagnosticMessages(void 0,l,c,y(s.file,r),s.packageId&&e.packageIdToString(s.packageId))}switch(t.kind){case e.FileIncludeKind.RootFile:if(!(null===(i=o.configFile)||void 0===i?void 0:i.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var u=e.getNormalizedAbsolutePath(n.getRootFileNames()[t.index],n.getCurrentDirectory());if(m(n,u))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var d=_(n,u);return d?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,d,y(o.configFile,r)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var p=t.kind===e.FileIncludeKind.OutputFromProjectReference,f=e.Debug.checkDefined(null===(a=n.getResolvedProjectReferences())||void 0===a?void 0:a[t.index]);return e.chainDiagnosticMessages(void 0,e.outFile(o)?p?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:p?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,y(f.sourceFile.fileName,r),o.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,o.types?t.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:t.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,t.typeReference,t.packageId&&e.packageIdToString(t.packageId));case e.FileIncludeKind.LibFile:if(void 0!==t.index)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,o.lib[t.index]);var g=e.forEachEntry(e.targetOptionDeclaration.type,(function(e,n){return e===o.target?n:void 0}));return e.chainDiagnosticMessages(void 0,g?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,g);default:e.Debug.assertNever(t)}}function y(n,t){var r=e.isString(n)?n:n.fileName;return t?t(r):r}function h(n,t,r,i,a,o,c,l){var u=!!n.getCompilerOptions().listFilesOnly,p=n.getConfigFileParsingDiagnostics().slice(),f=p.length;e.addRange(p,n.getSyntacticDiagnostics(void 0,o)),p.length===f&&(e.addRange(p,n.getOptionsDiagnostics(o)),u||(e.addRange(p,n.getGlobalDiagnostics(o)),p.length===f&&e.addRange(p,n.getSemanticDiagnostics(void 0,o))));var m=u?{emitSkipped:!0,diagnostics:e.emptyArray}:n.emit(void 0,a,o,c,l),_=m.emittedFiles,g=m.diagnostics;e.addRange(p,g);var y=e.sortAndDeduplicateDiagnostics(p);if(y.forEach(t),r){var h=n.getCurrentDirectory();e.forEach(_,(function(n){var t=e.getNormalizedAbsolutePath(n,h);r("TSFILE: "+t)})),d(n,r)}return i&&i(s(y)),{emitResult:m,diagnostics:y}}function v(n,t,r,i,a,o,s,c){var l=h(n,t,r,i,a,o,s,c),u=l.emitResult,d=l.diagnostics;return u.emitSkipped&&d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function b(n,t){return void 0===n&&(n=e.sys),{onWatchStatusChange:t||o(n),watchFile:e.maybeBind(n,n.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(n,n.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(n,n.setTimeout)||e.noop,clearTimeout:e.maybeBind(n,n.clearTimeout)||e.noop}}function E(n,t){var r=e.memoize((function(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}));return{useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getNewLine:function(){return n.newLine},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),getDefaultLibLocation:r,getDefaultLibFileName:function(n){return e.combinePaths(r(),e.getDefaultLibFileName(n))},fileExists:function(e){return n.fileExists(e)},readFile:function(e,t){return n.readFile(e,t)},directoryExists:function(e){return n.directoryExists(e)},getDirectories:function(e){return n.getDirectories(e)},readDirectory:function(e,t,r,i,a){return n.readDirectory(e,t,r,i,a)},realpath:e.maybeBind(n,n.realpath),getEnvironmentVariable:e.maybeBind(n,n.getEnvironmentVariable),trace:function(e){return n.write(e+n.newLine)},createDirectory:function(e){return n.createDirectory(e)},writeFile:function(e,t,r){return n.writeFile(e,t,r)},createHash:e.maybeBind(n,n.createHash),createProgram:t||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:n.disableUseFileVersionAsSignature}}function T(n,t,r,i){void 0===n&&(n=e.sys);var a=function(e){return n.write(e+n.newLine)},o=E(n,t);return e.copyProperties(o,b(n,i)),o.afterProgramCreate=function(t){var i=t.getCompilerOptions(),s=e.getNewLineCharacter(i,(function(){return n.newLine}));h(t,r,a,(function(n){return o.onWatchStatusChange(e.createCompilerDiagnostic(c(n),n),s,i,n)}))},o}function S(n,t,r){t(r),n.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=t,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=a,e.createWatchStatusReporter=o,e.parseConfigFileWithSystem=function(n,t,r,i,a,o){var s=a;s.onUnRecoverableConfigFileDiagnostic=function(e){return S(a,o,e)};var c=e.getParsedCommandLineOfConfigFile(n,t,s,r,i);return s.onUnRecoverableConfigFileDiagnostic=void 0,c},e.getErrorCountForSummary=s,e.getWatchErrorSummaryDiagnosticMessage=c,e.getErrorSummaryText=l,e.isBuilderProgram=u,e.listFiles=d,e.explainFiles=p,e.explainIfFileIsRedirect=f,e.getMatchedFileSpec=m,e.getMatchedIncludeSpec=_,e.fileIncludeReasonToDiagnostics=g,e.emitFilesAndReportErrors=h,e.emitFilesAndReportErrorsAndGetExitStatus=v,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},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"},e.createWatchFactory=function(n,t){var r=n.trace?t.extendedDiagnostics?e.WatchLogLevel.Verbose:t.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=r!==e.WatchLogLevel.None?function(e){return n.trace(e)}:e.noop,a=e.getWatchFactory(n,r,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=function(n,t,r){void 0===r&&(r=n);var i=n.useCaseSensitiveFileNames(),a=e.memoize((function(){return n.getNewLine()}));return{getSourceFile:function(r,i,a){var o;try{e.performance.mark("beforeIORead"),o=n.readFile(r,t().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(r,o,i):void 0},getDefaultLibLocation:e.maybeBind(n,n.getDefaultLibLocation),getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:function(t,r,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(t,r,i,(function(e,t,r){return n.writeFile(e,t,r)}),(function(e){return n.createDirectory(e)}),(function(e){return n.directoryExists(e)})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(t(),a)},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:e.maybeBind(n,n.trace),directoryExists:e.maybeBind(r,r.directoryExists),getDirectories:e.maybeBind(r,r.getDirectories),realpath:e.maybeBind(n,n.realpath),getEnvironmentVariable:e.maybeBind(n,n.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(n,n.createHash),readDirectory:e.maybeBind(n,n.readDirectory),disableUseFileVersionAsSignature:n.disableUseFileVersionAsSignature}},e.setGetSourceFileAsHashVersioned=function(n,t){var r=n.getSourceFile,a=e.maybeBind(t,t.createHash)||e.generateDjb2Hash;n.getSourceFile=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=r.call.apply(r,i([n],e,!1));return o&&(o.version=a(o.text)),o}},e.createProgramHost=E,e.createWatchCompilerHostOfConfigFile=function(e){var n=e.configFileName,r=e.optionsToExtend,i=e.watchOptionsToExtend,a=e.extraFileExtensions,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,u=c||t(o),d=T(o,s,u,l);return d.onUnRecoverableConfigFileDiagnostic=function(e){return S(o,u,e)},d.configFileName=n,d.optionsToExtend=r,d.watchOptionsToExtend=i,d.extraFileExtensions=a,d},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e){var n=e.rootFiles,r=e.options,i=e.watchOptions,a=e.projectReferences,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,u=T(o,s,c||t(o),l);return u.rootFiles=n,u.options=r,u.watchOptions=i,u.projectReferences=a,u},e.performIncrementalCompilation=function(n){var r=n.system||e.sys,i=n.host||(n.host=e.createIncrementalCompilerHost(n.options,r)),a=e.createIncrementalProgram(n),o=v(a,n.reportDiagnostic||t(r),(function(e){return i.trace&&i.trace(e)}),n.reportErrorSummary||n.options.pretty?function(e){return r.write(l(e,r.newLine))}:void 0);return n.afterProgramEmitAndDiagnostics&&n.afterProgramEmitAndDiagnostics(a),o}}(u||(u={})),function(e){function n(n,t){if(!e.outFile(n)){var r=e.getTsBuildInfoEmitOutputFilePath(n);if(r){var i=t.readFile(r);if(i){var a=e.getBuildInfo(i);if(a.version===e.version&&a.program)return e.createBuildProgramUsingProgramBuildInfo(a.program,r,t)}}}}function t(n,t){void 0===t&&(t=e.sys);var r=e.createCompilerHostWorker(n,void 0,t);return r.createHash=e.maybeBind(t,t.createHash),r.disableUseFileVersionAsSignature=t.disableUseFileVersionAsSignature,e.setGetSourceFileAsHashVersioned(r,t),e.changeCompilerHostLikeToUseCache(r,(function(n){return e.toPath(n,r.getCurrentDirectory(),r.getCanonicalFileName)})),r}e.readBuilderProgram=n,e.createIncrementalCompilerHost=t,e.createIncrementalProgram=function(r){var i=r.rootNames,a=r.options,o=r.configFileParsingDiagnostics,s=r.projectReferences,c=r.host,l=r.createProgram;return c=c||t(a),(l=l||e.createEmitAndSemanticDiagnosticsBuilderProgram)(i,a,c,n(a,c),o,s)},e.createWatchCompilerHost=function(n,t,r,i,a,o,s,c){return e.isArray(n)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:n,options:t,watchOptions:c,projectReferences:s,system:r,createProgram:i,reportDiagnostic:a,reportWatchStatus:o}):e.createWatchCompilerHostOfConfigFile({configFileName:n,optionsToExtend:t,watchOptionsToExtend:s,extraFileExtensions:c,system:r,createProgram:i,reportDiagnostic:a,reportWatchStatus:o})},e.createWatchProgram=function(t){var r,o,s,c,l,u,d,p,f,m,_,g,y=t.extendedConfigCache,h=!1,v=new e.Map,b=!1,E=t.useCaseSensitiveFileNames(),T=t.getCurrentDirectory(),S=t.configFileName,x=t.optionsToExtend,L=void 0===x?{}:x,D=t.watchOptionsToExtend,A=t.extraFileExtensions,C=t.createProgram,I=t.rootFiles,N=t.options,k=t.watchOptions,R=t.projectReferences,O=!1,P=!1,w=void 0===S?void 0:e.createCachedDirectoryStructureHost(t,T,E),M=w||t,F=e.parseConfigHostFromCompilerHostLike(t,M),G=$();S&&t.configFileParsingResult&&(me(t.configFileParsingResult),G=$()),oe(e.Diagnostics.Starting_compilation_in_watch_mode),S&&!t.configFileParsingResult&&(G=e.getNewLineCharacter(L,(function(){return t.getNewLine()})),e.Debug.assert(!I),fe(),G=$());var B,U=e.createWatchFactory(t,N),V=U.watchFile,j=U.watchDirectory,K=U.writeLog,H=e.createGetCanonicalFileName(E);K("Current directory: "+T+" CaseSensitiveFileNames: "+E),S&&(B=V(S,(function(){e.Debug.assert(!!S),o=e.ConfigFileProgramReloadLevel.Full,ue()}),e.PollingInterval.High,k,e.WatchType.ConfigFile));var W=e.createCompilerHostFromProgramHost(t,(function(){return N}),M);e.setGetSourceFileAsHashVersioned(W,t);var z=W.getSourceFile;W.getSourceFile=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return re.apply(void 0,i([e,ee(e)],n,!1))},W.getSourceFileByPath=re,W.getNewLine=function(){return G},W.fileExists=te,W.onReleaseOldSourceFile=function(e,n,t){var r=v.get(e.resolvedPath);void 0!==r&&(ne(r)?(m||(m=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),v.delete(e.resolvedPath),t||J.removeResolutionsOfFile(e.path)))},W.onReleaseParsedCommandLine=function(n){var t,r=ee(n),i=null==p?void 0:p.get(r);i&&(p.delete(r),i.watchedDirectories&&e.clearMap(i.watchedDirectories,e.closeFileWatcherOf),null===(t=i.watcher)||void 0===t||t.close(),e.clearSharedExtendedConfigFileWatcher(r,f))},W.toPath=ee,W.getCompilationSettings=function(){return N},W.useSourceOfProjectReferenceRedirect=e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),W.watchDirectoryOfFailedLookupLocation=function(n,t,r){return j(n,t,r,k,e.WatchType.FailedLookupLocations)},W.watchTypeRootsDirectory=function(n,t,r){return j(n,t,r,k,e.WatchType.TypeRoots)},W.getCachedDirectoryStructureHost=function(){return w},W.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!t.setTimeout||!t.clearTimeout)return J.invalidateResolutionsOfFailedLookupLocations();var e=ce();K("Scheduling invalidateFailedLookup"+(e?", Cancelled earlier one":"")),d=t.setTimeout(le,250)},W.onInvalidatedResolution=ue,W.onChangedAutomaticTypeDirectiveNames=ue,W.fileIsOpen=e.returnFalse,W.getCurrentProgram=Q,W.writeLog=K,W.getParsedCommandLine=_e;var J=e.createResolutionCache(W,S?e.getDirectoryPath(e.getNormalizedAbsolutePath(S,T)):T,!1);W.resolveModuleNames=t.resolveModuleNames?function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolveModuleNames.apply(t,e)}:function(e,n,t,r){return J.resolveModuleNames(e,n,t,r)},W.resolveTypeReferenceDirectives=t.resolveTypeReferenceDirectives?function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolveTypeReferenceDirectives.apply(t,e)}:function(e,n,t){return J.resolveTypeReferenceDirectives(e,n,t)};var q=!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives;return r=n(N,W),Z(),Se(),S&&Le(ee(S),N,k,e.WatchType.ExtendedConfigFile),S?{getCurrentProgram:Y,getProgram:pe,close:X}:{getCurrentProgram:Y,getProgram:pe,updateRootFileNames:function(n){e.Debug.assert(!S,"Cannot update root file names with config file watch mode"),I=n,ue()},close:X};function X(){ce(),J.clear(),e.clearMap(v,(function(e){e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),B&&(B.close(),B=void 0),null==y||y.clear(),y=void 0,f&&(e.clearMap(f,e.closeFileWatcherOf),f=void 0),l&&(e.clearMap(l,e.closeFileWatcherOf),l=void 0),s&&(e.clearMap(s,e.closeFileWatcher),s=void 0),p&&(e.clearMap(p,(function(n){var t;null===(t=n.watcher)||void 0===t||t.close(),n.watcher=void 0,n.watchedDirectories&&e.clearMap(n.watchedDirectories,e.closeFileWatcherOf),n.watchedDirectories=void 0})),p=void 0),c&&(e.clearMap(c,e.closeFileWatcher),c=void 0)}function Y(){return r}function Q(){return r&&r.getProgramOrUndefined()}function Z(){K("Synchronizing program"),ce();var n=Y();b&&(G=$(),n&&(h||e.changesAffectModuleResolution(n.getCompilerOptions(),N))&&J.clear());var i=J.createHasInvalidatedResolution(q||h);return e.isProgramUptoDate(Q(),I,N,ae,te,i,se,_e,R)?P&&(r=C(void 0,void 0,W,r,g,R),P=!1):function(n){K("CreatingProgramWith::"),K(" roots: "+JSON.stringify(I)),K(" options: "+JSON.stringify(N)),R&&K(" projectReferences: "+JSON.stringify(R));var t=b||!Q();b=!1,P=!1,J.startCachingPerDirectoryResolution(),W.hasInvalidatedResolution=n,W.hasChangedAutomaticTypeDirectiveNames=se,r=C(I,N,W,r,g,R);var i=e.map(J.getModuleResolutionCache().getPackageJsonInfoCache().entries(),(function(e){var n=e[0],t=e[1];return[W.realpath?ee(W.realpath(n)):n,t]}));if(J.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(r.getProgram(),s||(s=new e.Map),ve),e.updatePackageJsonWatch(i,c||(c=new e.Map),be),t&&J.updateTypeRootsWatch(),m){for(var a=0,o=m;a<o.length;a++){var l=o[a];s.has(l)||v.delete(l)}m=void 0}}(i),h=!1,t.afterProgramCreate&&n!==r&&t.afterProgramCreate(r),r}function $(){return e.getNewLineCharacter(N||L,(function(){return t.getNewLine()}))}function ee(n){return e.toPath(n,T,H)}function ne(e){return"boolean"==typeof e}function te(e){var n=ee(e);return!ne(v.get(n))&&M.fileExists(e)}function re(n,t,r,i,a){var o=v.get(t);if(!ne(o)){if(void 0===o||a||function(e){return"boolean"==typeof e.version}(o)){var s=z(n,r,i);if(o)s?(o.sourceFile=s,o.version=s.version,o.fileWatcher||(o.fileWatcher=ge(t,n,ye,e.PollingInterval.Low,k,e.WatchType.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),v.set(t,!1));else if(s){var c=ge(t,n,ye,e.PollingInterval.Low,k,e.WatchType.SourceFile);v.set(t,{sourceFile:s,version:s.version,fileWatcher:c})}else v.set(t,!1);return s}return o.sourceFile}}function ie(e){var n=v.get(e);void 0!==n&&(ne(n)?v.set(e,{version:!1}):n.version=!1)}function ae(e){var n=v.get(e);return n&&n.version?n.version:void 0}function oe(n){t.onWatchStatusChange&&t.onWatchStatusChange(e.createCompilerDiagnostic(n),G,N||L)}function se(){return J.hasChangedAutomaticTypeDirectiveNames()}function ce(){return!!d&&(t.clearTimeout(d),d=void 0,!0)}function le(){d=void 0,J.invalidateResolutionsOfFailedLookupLocations()&&ue()}function ue(){t.setTimeout&&t.clearTimeout&&(u&&t.clearTimeout(u),K("Scheduling update"),u=t.setTimeout(de,250))}function de(){u=void 0,oe(e.Diagnostics.File_change_detected_Starting_incremental_compilation),pe()}function pe(){switch(o){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),K("Reloading new file names and options"),I=e.getFileNamesFromConfigSpecs(N.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(S),T),N,F,A),e.updateErrorForNoInputFiles(I,e.getNormalizedAbsolutePath(S,T),N.configFile.configFileSpecs,g,O)&&(P=!0),Z();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),K("Reloading config file: "+S),o=e.ConfigFileProgramReloadLevel.None,w&&w.clearCache(),fe(),b=!0,Z(),Se(),Le(ee(S),N,k,e.WatchType.ExtendedConfigFile);break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),Z()}return e.perfLogger.logStopUpdateProgram("Done"),Y()}function fe(){me(e.getParsedCommandLineOfConfigFile(S,L,F,y||(y=new e.Map),D,A))}function me(n){I=n.fileNames,N=n.options,k=n.watchOptions,R=n.projectReferences,_=n.wildcardDirectories,g=e.getConfigFileParsingDiagnostics(n).slice(),O=e.canJsonReportNoInputFiles(n.raw),P=!0}function _e(n){var r=ee(n),i=null==p?void 0:p.get(r);if(i){if(!i.reloadLevel)return i.parsedCommandLine;if(i.parsedCommandLine&&i.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!t.getParsedCommandLine){K("Reloading new file names and options");var o=e.getFileNamesFromConfigSpecs(i.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(n),T),N,F);return i.parsedCommandLine=a(a({},i.parsedCommandLine),{fileNames:o}),i.reloadLevel=void 0,i.parsedCommandLine}}K("Loading config file: "+n);var s=t.getParsedCommandLine?t.getParsedCommandLine(n):function(n){var t=F.onUnRecoverableConfigFileDiagnostic;F.onUnRecoverableConfigFileDiagnostic=e.noop;var r=e.getParsedCommandLineOfConfigFile(n,void 0,F,y||(y=new e.Map),D);return F.onUnRecoverableConfigFileDiagnostic=t,r}(n);return i?(i.parsedCommandLine=s,i.reloadLevel=void 0):(p||(p=new e.Map)).set(r,i={parsedCommandLine:s}),function(n,t,r){var i,a,o,s,c;r.watcher||(r.watcher=V(n,(function(r,i){he(n,t,i);var a=null==p?void 0:p.get(t);a&&(a.reloadLevel=e.ConfigFileProgramReloadLevel.Full),J.removeResolutionsFromProjectReferenceRedirects(t),ue()}),e.PollingInterval.High,(null===(i=r.parsedCommandLine)||void 0===i?void 0:i.watchOptions)||k,e.WatchType.ConfigFileOfReferencedProject)),(null===(a=r.parsedCommandLine)||void 0===a?void 0:a.wildcardDirectories)?e.updateWatchingWildcardDirectories(r.watchedDirectories||(r.watchedDirectories=new e.Map),new e.Map(e.getEntries(null===(o=r.parsedCommandLine)||void 0===o?void 0:o.wildcardDirectories)),(function(i,a){var o;return j(i,(function(r){var a=ee(r);w&&w.addOrDeleteFileOrDirectory(r,a),ie(a);var o=null==p?void 0:p.get(t);(null==o?void 0:o.parsedCommandLine)&&(e.isIgnoredFileFromWildCardWatching({watchedDirPath:ee(i),fileOrDirectory:r,fileOrDirectoryPath:a,configFileName:n,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:T,useCaseSensitiveFileNames:E,writeLog:K,toPath:ee})||o.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(o.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,ue()))}),a,(null===(o=r.parsedCommandLine)||void 0===o?void 0:o.watchOptions)||k,e.WatchType.WildcardDirectoryOfReferencedProject)})):r.watchedDirectories&&(e.clearMap(r.watchedDirectories,e.closeFileWatcherOf),r.watchedDirectories=void 0),Le(t,null===(s=r.parsedCommandLine)||void 0===s?void 0:s.options,(null===(c=r.parsedCommandLine)||void 0===c?void 0:c.watchOptions)||k,e.WatchType.ExtendedConfigOfReferencedProject)}(n,r,i),s}function ge(e,n,t,r,i,a){return V(n,(function(n,r){return t(n,r,e)}),r,i,a)}function ye(n,t,r){he(n,r,t),t===e.FileWatcherEventKind.Deleted&&v.has(r)&&J.invalidateResolutionOfFile(r),ie(r),ue()}function he(e,n,t){w&&w.addOrDeleteFile(e,n,t)}function ve(n){return(null==p?void 0:p.has(n))?e.noopFileWatcher:ge(n,n,Te,e.PollingInterval.Medium,k,e.WatchType.MissingFile)}function be(n){return v.has(n)?e.noopFileWatcher:ge(n,n,Ee,e.PollingInterval.High,k,e.WatchType.PackageJson)}function Ee(n,t,r){he(n,r,t),o=e.ConfigFileProgramReloadLevel.Full,h=!0,ue()}function Te(n,t,r){he(n,r,t),t===e.FileWatcherEventKind.Created&&s.has(r)&&(s.get(r).close(),s.delete(r),ie(r),ue())}function Se(){_?e.updateWatchingWildcardDirectories(l||(l=new e.Map),new e.Map(e.getEntries(_)),xe):l&&e.clearMap(l,e.closeFileWatcherOf)}function xe(n,t){return j(n,(function(t){e.Debug.assert(!!S);var r=ee(t);w&&w.addOrDeleteFileOrDirectory(t,r),ie(r),e.isIgnoredFileFromWildCardWatching({watchedDirPath:ee(n),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:S,extraFileExtensions:A,options:N,program:Y()||I,currentDirectory:T,useCaseSensitiveFileNames:E,writeLog:K,toPath:ee})||o!==e.ConfigFileProgramReloadLevel.Full&&(o=e.ConfigFileProgramReloadLevel.Partial,ue())}),t,k,e.WatchType.WildcardDirectory)}function Le(n,t,r,i){e.updateSharedExtendedConfigFileWatcher(n,t,f||(f=new e.Map),(function(n,t){return V(n,(function(r,i){var a;he(n,t,i),y&&e.cleanExtendedConfigCache(y,t,ee);var s=null===(a=f.get(t))||void 0===a?void 0:a.projects;(null==s?void 0:s.size)&&s.forEach((function(n){if(ee(S)===n)o=e.ConfigFileProgramReloadLevel.Full;else{var t=null==p?void 0:p.get(n);t&&(t.reloadLevel=e.ConfigFileProgramReloadLevel.Full),J.removeResolutionsFromProjectReferenceRedirects(n)}ue()}))}),e.PollingInterval.High,r,i)}),ee)}}}(u||(u={})),function(e){var n;(n=e.UpToDateStatusType||(e.UpToDateStatusType={}))[n.Unbuildable=0]="Unbuildable",n[n.UpToDate=1]="UpToDate",n[n.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",n[n.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",n[n.OutputMissing=4]="OutputMissing",n[n.OutOfDateWithSelf=5]="OutOfDateWithSelf",n[n.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",n[n.UpstreamOutOfDate=7]="UpstreamOutOfDate",n[n.UpstreamBlocked=8]="UpstreamBlocked",n[n.ComputingUpstream=9]="ComputingUpstream",n[n.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",n[n.ContainerOnly=11]="ContainerOnly",e.resolveConfigFileProjectName=function(n){return e.fileExtensionIs(n,".json")?n:e.combinePaths(n,"tsconfig.json")}}(u||(u={})),function(e){var n,t,r,a=new Date(-864e13),o=new Date(864e13);function s(n,t){return function(n,t,r){var i,a=n.get(t);return a||(i=new e.Map,n.set(t,i)),a||i}(n,t)}function c(e,n){return n>e?n:e}function l(n){return e.fileExtensionIs(n,".d.ts")}function u(e){return!!e&&!!e.buildOrder}function d(e){return u(e)?e.buildOrder:e}function p(n,t){return function(r){var i=t?"["+e.formatColorAndReset(e.getLocaleTimeString(n),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(n)+" - ";i+=""+e.flattenDiagnosticMessageText(r.messageText,n.newLine)+(n.newLine+n.newLine),n.write(i)}}function f(n,t,r,i){var a=e.createProgramHost(n,t);return a.getModifiedTime=n.getModifiedTime?function(e){return n.getModifiedTime(e)}:e.returnUndefined,a.setModifiedTime=n.setModifiedTime?function(e,t){return n.setModifiedTime(e,t)}:e.noop,a.deleteFile=n.deleteFile?function(e){return n.deleteFile(e)}:e.noop,a.reportDiagnostic=r||e.createDiagnosticReporter(n),a.reportSolutionBuilderStatus=i||p(n),a.now=e.maybeBind(n,n.now),a}function m(n,t){return e.toPath(t,n.currentDirectory,n.getCanonicalFileName)}function _(e,n){var t=e.resolvedConfigFilePaths,r=t.get(n);if(void 0!==r)return r;var i=m(e,n);return t.set(n,i),i}function g(e){return!!e.options}function y(e,n){var t=e.configFileCache.get(n);return t&&g(t)?t:void 0}function h(n,t,r){var i,a=n.configFileCache,o=a.get(r);if(o)return g(o)?o:void 0;var s,c=n.parseConfigFileHost,l=n.baseCompilerOptions,u=n.baseWatchOptions,d=n.extendedConfigCache,p=n.host;return p.getParsedCommandLine?(s=p.getParsedCommandLine(t))||(i=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t)):(c.onUnRecoverableConfigFileDiagnostic=function(e){return i=e},s=e.getParsedCommandLineOfConfigFile(t,l,c,d,u),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(r,s||i),s}function v(n,t){return e.resolveConfigFileProjectName(e.resolvePath(n.currentDirectory,t))}function b(n,t){for(var r,i,a=new e.Map,o=new e.Map,s=[],c=0,l=t;c<l.length;c++)u(l[c]);return i?{buildOrder:r||e.emptyArray,circularDiagnostics:i}:r||e.emptyArray;function u(t,c){var l=_(n,t);if(!o.has(l))if(a.has(l))c||(i||(i=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join("\r\n")));else{a.set(l,!0),s.push(t);var d=h(n,t,l);if(d&&d.projectReferences)for(var p=0,f=d.projectReferences;p<f.length;p++){var m=f[p];u(v(n,m.path),c||m.circular)}s.pop(),o.set(l,!0),(r||(r=[])).push(t)}}}function E(n){return n.buildOrder||function(n){var t=b(n,n.rootNames.map((function(e){return v(n,e)})));n.resolvedConfigFilePaths.clear();var r=new e.Map(d(t).map((function(e){return[_(n,e),!0]}))),i={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(n.configFileCache,r,i),e.mutateMapSkippingNewValues(n.projectStatus,r,i),e.mutateMapSkippingNewValues(n.buildInfoChecked,r,i),e.mutateMapSkippingNewValues(n.builderPrograms,r,i),e.mutateMapSkippingNewValues(n.diagnostics,r,i),e.mutateMapSkippingNewValues(n.projectPendingBuild,r,i),e.mutateMapSkippingNewValues(n.projectErrorsReported,r,i),n.watch&&(e.mutateMapSkippingNewValues(n.allWatchedConfigFiles,r,{onDeleteValue:e.closeFileWatcher}),n.allWatchedExtendedConfigFiles.forEach((function(e){e.projects.forEach((function(n){r.has(n)||e.projects.delete(n)})),e.close()})),e.mutateMapSkippingNewValues(n.allWatchedWildcardDirectories,r,{onDeleteValue:function(n){return n.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(n.allWatchedInputFiles,r,{onDeleteValue:function(n){return n.forEach(e.closeFileWatcher)}}),e.mutateMapSkippingNewValues(n.allWatchedPackageJsonFiles,r,{onDeleteValue:function(n){return n.forEach(e.closeFileWatcher)}})),n.buildOrder=t}(n)}function T(n,t,r){var i=t&&v(n,t),a=E(n);if(u(a))return a;if(i){var o=_(n,i);if(-1===e.findIndex(a,(function(e){return _(n,e)===o})))return}var s=i?b(n,[i]):a;return e.Debug.assert(!u(s)),e.Debug.assert(!r||void 0!==i),e.Debug.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function S(n){n.cache&&x(n);var t=n.compilerHost,r=n.host,a=n.readFileWithCache,o=t.getSourceFile,s=e.changeCompilerHostLikeToUseCache(r,(function(e){return m(n,e)}),(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o.call.apply(o,i([t],e,!1))})),c=s.originalReadFile,l=s.originalFileExists,u=s.originalDirectoryExists,d=s.originalCreateDirectory,p=s.originalWriteFile,f=s.getSourceFileWithCache,_=s.readFileWithCache;n.readFileWithCache=_,t.getSourceFile=f,n.cache={originalReadFile:c,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:d,originalWriteFile:p,originalReadFileWithCache:a,originalGetSourceFile:o}}function x(e){if(e.cache){var n=e.cache,t=e.host,r=e.compilerHost,i=e.extendedConfigCache,a=e.moduleResolutionCache,o=e.typeReferenceDirectiveResolutionCache;t.readFile=n.originalReadFile,t.fileExists=n.originalFileExists,t.directoryExists=n.originalDirectoryExists,t.createDirectory=n.originalCreateDirectory,t.writeFile=n.originalWriteFile,r.getSourceFile=n.originalGetSourceFile,e.readFileWithCache=n.originalReadFileWithCache,i.clear(),null==a||a.clear(),null==o||o.clear(),e.cache=void 0}}function L(e,n){e.projectStatus.delete(n),e.diagnostics.delete(n)}function D(e,n,t){var r=e.projectPendingBuild,i=r.get(n);(void 0===i||i<t)&&r.set(n,t)}function A(n,t){n.allProjectBuildPending&&(n.allProjectBuildPending=!1,n.options.watch&&ne(n,e.Diagnostics.Starting_compilation_in_watch_mode),S(n),d(E(n)).forEach((function(t){return n.projectPendingBuild.set(_(n,t),e.ConfigFileProgramReloadLevel.None)})),t&&t.throwIfCancellationRequested())}function C(n,t){return n.projectPendingBuild.delete(t),n.currentInvalidatedProject=void 0,n.diagnostics.has(t)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function I(e,n,r,i,a){var o=!0;return{kind:t.UpdateOutputFileStamps,project:n,projectPath:r,buildOrder:a,getCompilerOptions:function(){return i.options},getCurrentDirectory:function(){return e.currentDirectory},updateOutputFileStatmps:function(){B(e,i,r),o=!1},done:function(){return o&&B(e,i,r),C(e,r)}}}function N(s,u,d,p,f,g,y){var b,E,T,S=s===t.Build?r.CreateProgram:r.EmitBundle;return s===t.Build?{kind:s,project:d,projectPath:p,buildOrder:y,getCompilerOptions:function(){return g.options},getCurrentDirectory:function(){return u.currentDirectory},getBuilderProgram:function(){return L(e.identity)},getProgram:function(){return L((function(e){return e.getProgramOrUndefined()}))},getSourceFile:function(e){return L((function(n){return n.getSourceFile(e)}))},getSourceFiles:function(){return D((function(e){return e.getSourceFiles()}))},getOptionsDiagnostics:function(e){return D((function(n){return n.getOptionsDiagnostics(e)}))},getGlobalDiagnostics:function(e){return D((function(n){return n.getGlobalDiagnostics(e)}))},getConfigFileParsingDiagnostics:function(){return D((function(e){return e.getConfigFileParsingDiagnostics()}))},getSyntacticDiagnostics:function(e,n){return D((function(t){return t.getSyntacticDiagnostics(e,n)}))},getAllDependencies:function(e){return D((function(n){return n.getAllDependencies(e)}))},getSemanticDiagnostics:function(e,n){return D((function(t){return t.getSemanticDiagnostics(e,n)}))},getSemanticDiagnosticsOfNextAffectedFile:function(e,n){return L((function(t){return t.getSemanticDiagnosticsOfNextAffectedFile&&t.getSemanticDiagnosticsOfNextAffectedFile(e,n)}))},emit:function(e,n,t,i,a){return e||i?L((function(r){var o,s;return r.emit(e,n,t,i,a||(null===(s=(o=u.host).getCustomTransformers)||void 0===s?void 0:s.call(o,d)))})):(j(r.SemanticDiagnostics,t),S===r.EmitBuildInfo?F(n,t):S===r.Emit?M(n,t,a):void 0)},done:x}:{kind:s,project:d,projectPath:p,buildOrder:y,getCompilerOptions:function(){return g.options},getCurrentDirectory:function(){return u.currentDirectory},emit:function(e,n){return S!==r.EmitBundle?T:V(e,n)},done:x};function x(e,n,t){return j(r.Done,e,n,t),C(u,p)}function L(e){return j(r.CreateProgram),b&&e(b)}function D(n){return L(n)||e.emptyArray}function A(){var t,i;if(e.Debug.assert(void 0===b),u.options.dry)return ee(u,e.Diagnostics.A_non_dry_build_would_build_project_0,d),E=n.Success,void(S=r.QueueReferencingProjects);if(u.options.verbose&&ee(u,e.Diagnostics.Building_project_0,d),0===g.fileNames.length)return re(u,p,e.getConfigFileParsingDiagnostics(g)),E=n.None,void(S=r.QueueReferencingProjects);var a=u.host,o=u.compilerHost;u.projectCompilerOptions=g.options,null===(t=u.moduleResolutionCache)||void 0===t||t.update(g.options),null===(i=u.typeReferenceDirectiveResolutionCache)||void 0===i||i.update(g.options),b=a.createProgram(g.fileNames,g.options,o,function(n,t,r){var i=n.options,a=n.builderPrograms,o=n.compilerHost;if(!i.force)return a.get(t)||e.readBuilderProgram(r.options,o)}(u,p,g),e.getConfigFileParsingDiagnostics(g),g.projectReferences),u.watch&&(u.lastCachedPackageJsonLookups.set(p,u.moduleResolutionCache&&e.map(u.moduleResolutionCache.getPackageJsonInfoCache().entries(),(function(e){var n=e[0],t=e[1];return[u.host.realpath&&t?m(u,u.host.realpath(n)):n,t]}))),u.builderPrograms.set(p,b)),S++}function I(e,n,t){var r;e.length?(r=w(u,p,b,g,e,n,t),E=r.buildResult,S=r.step):S++}function k(t){e.Debug.assertIsDefined(b),I(i(i(i(i([],b.getConfigFileParsingDiagnostics(),!0),b.getOptionsDiagnostics(t),!0),b.getGlobalDiagnostics(t),!0),b.getSyntacticDiagnostics(void 0,t),!0),n.SyntaxErrors,"Syntactic")}function R(t){I(e.Debug.checkDefined(b).getSemanticDiagnostics(void 0,t),n.TypeErrors,"Semantic")}function M(t,i,o){var s,f,_,y;e.Debug.assertIsDefined(b),e.Debug.assert(S===r.Emit),b.backupState();var h=[],v=e.emitFilesAndReportErrors(b,(function(e){return(y||(y=[])).push(e)}),void 0,void 0,(function(e,n,t){return h.push({name:e,text:n,writeByteOrderMark:t})}),i,!1,o||(null===(_=(f=u.host).getCustomTransformers)||void 0===_?void 0:_.call(f,d))).emitResult;if(y)return b.restoreState(),s=w(u,p,b,g,y,n.DeclarationEmitErrors,"Declaration file"),E=s.buildResult,S=s.step,{emitSkipped:!0,diagnostics:v.diagnostics};var T=u.host,x=u.compilerHost,L=n.DeclarationOutputUnchanged,D=a,A=!1,C=e.createDiagnosticCollection(),I=new e.Map;return h.forEach((function(r){var i,a=r.name,o=r.text,s=r.writeByteOrderMark;!A&&l(a)&&(T.fileExists(a)&&u.readFileWithCache(a)===o?i=T.getModifiedTime(a):(L&=~n.DeclarationOutputUnchanged,A=!0)),I.set(m(u,a),a),e.writeFile(t?{writeFile:t}:x,C,a,o,s),void 0!==i&&(D=c(i,D))})),B(C,I,D,A,h.length?h[0].name:e.getFirstProjectOutput(g,!T.useCaseSensitiveFileNames()),L),v}function F(t,a){e.Debug.assertIsDefined(b),e.Debug.assert(S===r.EmitBuildInfo);var o=b.emitBuildInfo(t,a);return o.diagnostics.length&&(te(u,o.diagnostics),u.diagnostics.set(p,i(i([],u.diagnostics.get(p),!0),o.diagnostics,!0)),E=n.EmitErrors&E),o.emittedFiles&&u.write&&o.emittedFiles.forEach((function(e){return O(u,g,e)})),P(u,b,g),S=r.QueueReferencingProjects,o}function B(t,i,a,s,c,l){var d,f=t.getDiagnostics();if(f.length)return d=w(u,p,b,g,f,n.EmitErrors,"Emit"),E=d.buildResult,S=d.step,f;u.write&&i.forEach((function(e){return O(u,g,e)}));var m=G(u,g,a,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,i);return u.diagnostics.delete(p),u.projectStatus.set(p,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:s?o:m,oldestOutputFileName:c}),P(u,b,g),S=r.QueueReferencingProjects,E=l,f}function V(i,o){var c,l;if(e.Debug.assert(s===t.UpdateBundle),u.options.dry)return ee(u,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,d),E=n.Success,void(S=r.QueueReferencingProjects);u.options.verbose&&ee(u,e.Diagnostics.Updating_output_of_project_0,d);var b=u.compilerHost;u.projectCompilerOptions=g.options;var x=e.emitUsingBuildInfo(g,b,(function(e){var n=v(u,e.path);return h(u,n,_(u,n))}),o||(null===(l=(c=u.host).getCustomTransformers)||void 0===l?void 0:l.call(c,d)));if(e.isString(x))return ee(u,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,d,$(u,x)),S=r.BuildInvalidatedProjectOfBundle,T=N(t.Build,u,d,p,f,g,y);e.Debug.assert(!!x.length);var L=e.createDiagnosticCollection(),D=new e.Map;return x.forEach((function(n){var t=n.name,r=n.text,a=n.writeByteOrderMark;D.set(m(u,t),t),e.writeFile(i?{writeFile:i}:b,L,t,r,a)})),{emitSkipped:!1,diagnostics:B(L,D,a,!1,x[0].name,n.DeclarationOutputUnchanged)}}function j(n,t,i,a){for(;S<=n&&S<r.Done;){var o=S;switch(S){case r.CreateProgram:A();break;case r.SyntaxDiagnostics:k(t);break;case r.SemanticDiagnostics:R(t);break;case r.Emit:M(i,t,a);break;case r.EmitBuildInfo:F(i,t);break;case r.EmitBundle:V(i,a);break;case r.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(T).done(t,i,a),S=r.Done;break;case r.QueueReferencingProjects:U(u,d,p,f,g,y,e.Debug.checkDefined(E)),S++;break;case r.Done:default:e.assertType(S)}e.Debug.assert(S>o)}}}function k(n,t,r){var i=n.options;return!(t.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force&&0!==r.fileNames.length&&!e.getConfigFileParsingDiagnostics(r).length&&e.isIncrementalCompilation(r.options))}function R(n,r,i){if(n.projectPendingBuild.size&&!u(r)){if(n.currentInvalidatedProject)return e.arrayIsEqualTo(n.currentInvalidatedProject.buildOrder,r)?n.currentInvalidatedProject:void 0;for(var a=n.options,o=n.projectPendingBuild,s=0;s<r.length;s++){var c=r[s],l=_(n,c),d=n.projectPendingBuild.get(l);if(void 0!==d){i&&(i=!1,oe(n,r));var p=h(n,c,l);if(p){d===e.ConfigFileProgramReloadLevel.Full?(J(n,c,l,p),q(n,l,p),X(n,c,l,p),Y(n,c,l,p),Q(n,c,l,p)):d===e.ConfigFileProgramReloadLevel.Partial&&(p.fileNames=e.getFileNamesFromConfigSpecs(p.options.configFile.configFileSpecs,e.getDirectoryPath(c),p.options,n.parseConfigFileHost),e.updateErrorForNoInputFiles(p.fileNames,c,p.options.configFile.configFileSpecs,p.errors,e.canJsonReportNoInputFiles(p.raw)),Y(n,c,l,p),Q(n,c,l,p));var f=F(n,p,l);if(se(n,c,f),!a.force){if(f.type===e.UpToDateStatusType.UpToDate){re(n,l,e.getConfigFileParsingDiagnostics(p)),o.delete(l),a.dry&&ee(n,e.Diagnostics.Project_0_is_up_to_date,c);continue}if(f.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return re(n,l,e.getConfigFileParsingDiagnostics(p)),I(n,c,l,p,r)}if(f.type!==e.UpToDateStatusType.UpstreamBlocked){if(f.type!==e.UpToDateStatusType.ContainerOnly)return N(k(n,f,p)?t.Build:t.UpdateBundle,n,c,l,s,p,r);re(n,l,e.getConfigFileParsingDiagnostics(p)),o.delete(l)}else re(n,l,e.getConfigFileParsingDiagnostics(p)),o.delete(l),a.verbose&&ee(n,f.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,c,f.upstreamProjectName)}else ie(n,l),o.delete(l)}}}}function O(e,n,t){var r=e.write;r&&n.options.listEmittedFiles&&r("TSFILE: "+t)}function P(n,t,r){t?(t&&n.write&&e.listFiles(t,n.write),n.host.afterProgramEmitAndDiagnostics&&n.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):n.host.afterEmitBundle&&n.host.afterEmitBundle(r),n.projectCompilerOptions=n.baseCompilerOptions}function w(t,i,a,o,s,c,l){var u=!(c&n.SyntaxErrors)&&a&&!e.outFile(a.getCompilerOptions());return re(t,i,s),t.projectStatus.set(i,{type:e.UpToDateStatusType.Unbuildable,reason:l+" errors"}),u?{buildResult:c,step:r.EmitBuildInfo}:(P(t,a,o),{buildResult:c,step:r.QueueReferencingProjects})}function M(n,t,r,i){if(r<e.getModifiedTime(n.host,t))return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:i,newerInputFileName:t}}function F(n,t,r){if(void 0===t)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var i=n.projectStatus.get(r);if(void 0!==i)return i;var s=function(n,t,r){for(var i=!!n.options.force,s=void 0,u=a,d=n.host,p=0,f=t.fileNames;p<f.length;p++){var m=f[p];if(!d.fileExists(m))return{type:e.UpToDateStatusType.Unbuildable,reason:m+" does not exist"};if(!i){var g=e.getModifiedTime(d,m);d.getModifiedTime(m),g>u&&(s=m,u=g)}}if(!t.fileNames.length&&!e.canJsonReportNoInputFiles(t.raw))return{type:e.UpToDateStatusType.ContainerOnly};var y,v=e.getAllProjectOutputs(t,!d.useCaseSensitiveFileNames()),b="(none)",E=o,T="(none)",S=a,x=a,L=!1;if(!i)for(var D=0,A=v;D<A.length;D++){var C=A[D];if(!d.fileExists(C)){y=C;break}var I=e.getModifiedTime(d,C);if(I<E&&(E=I,b=C),I<u){L=!0;break}I>S&&(S=I,T=C),l(C)&&(x=c(x,e.getModifiedTime(d,C)))}var N,k=!1,R=!1;if(t.projectReferences){n.projectStatus.set(r,{type:e.UpToDateStatusType.ComputingUpstream});for(var O=0,P=t.projectReferences;O<P.length;O++){var w=P[O];R=R||!!w.prepend;var G=e.resolveProjectReferencePath(w),B=_(n,G),U=F(n,h(n,G,B),B);if(U.type!==e.UpToDateStatusType.ComputingUpstream&&U.type!==e.UpToDateStatusType.ContainerOnly){if(U.type===e.UpToDateStatusType.Unbuildable||U.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:w.path,upstreamProjectBlocked:U.type===e.UpToDateStatusType.UpstreamBlocked};if(U.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:w.path};if(!i&&!y){if(U.newestInputFileTime&&U.newestInputFileTime<=E)continue;if(U.newestDeclarationFileContentChangedTime&&U.newestDeclarationFileContentChangedTime<=E){k=!0,N=w.path;continue}return e.Debug.assert(void 0!==b,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:b,newerProjectName:w.path}}}}}if(void 0!==y)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:y};if(L)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:b,newerInputFileName:s};var V=M(n,t.options.configFilePath,E,b);if(V)return V;var j=e.forEach(t.options.configFile.extendedSourceFiles||e.emptyArray,(function(e){return M(n,e,E,b)}));if(j)return j;var K=e.forEach(n.lastCachedPackageJsonLookups.get(r)||e.emptyArray,(function(e){var t=e[0];return M(n,t,E,b)}));if(K)return K;if(!i&&!n.buildInfoChecked.has(r)){n.buildInfoChecked.set(r,!0);var H=e.getTsBuildInfoEmitOutputFilePath(t.options);if(H){var W=n.readFileWithCache(H),z=W&&e.getBuildInfo(W);if(z&&(z.bundle||z.program)&&z.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:z.version}}}return R&&k?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:b,newerProjectName:N}:{type:k?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:x,newestInputFileTime:u,newestOutputFileTime:S,newestInputFileName:s,newestOutputFileName:T,oldestOutputFileName:b}}(n,t,r);return n.projectStatus.set(r,s),s}function G(n,t,r,i,a){if(t.options.noEmit)return r;var o=n.host,s=e.getAllProjectOutputs(t,!o.useCaseSensitiveFileNames());if(!a||s.length!==a.size)for(var u=!!n.options.verbose,d=o.now?o.now():new Date,p=0,f=s;p<f.length;p++){var _=f[p];a&&a.has(m(n,_))||(u&&(u=!1,ee(n,i,t.options.configFilePath)),l(_)&&(r=c(r,e.getModifiedTime(o,_))),o.setModifiedTime(_,d))}return r}function B(n,t,r){if(n.options.dry)return ee(n,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);var i=G(n,t,a,e.Diagnostics.Updating_output_timestamps_of_project_0);n.projectStatus.set(r,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:i,oldestOutputFileName:e.getFirstProjectOutput(t,!n.host.useCaseSensitiveFileNames())})}function U(t,r,i,a,o,s,c){if(!(c&n.AnyErrors)&&o.options.composite)for(var l=a+1;l<s.length;l++){var u=s[l],d=_(t,u);if(!t.projectPendingBuild.has(d)){var p=h(t,u,d);if(p&&p.projectReferences)for(var f=0,m=p.projectReferences;f<m.length;f++){var g=m[f];if(_(t,v(t,g.path))===i){var y=t.projectStatus.get(d);if(y)switch(y.type){case e.UpToDateStatusType.UpToDate:if(c&n.DeclarationOutputUnchanged){g.prepend?t.projectStatus.set(d,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:y.oldestOutputFileName,newerProjectName:r}):y.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:c&n.DeclarationOutputUnchanged||t.projectStatus.set(d,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:y.type===e.UpToDateStatusType.OutOfDateWithPrepend?y.outOfDateOutputFileName:y.oldestOutputFileName,newerProjectName:r});break;case e.UpToDateStatusType.UpstreamBlocked:_(t,v(t,y.upstreamProjectName))===i&&L(t,d)}D(t,d,e.ConfigFileProgramReloadLevel.None);break}}}}}function V(n,t,r,i,a,o){var s=T(n,t,o);if(!s)return e.ExitStatus.InvalidProject_OutputsSkipped;A(n,r);for(var c=!0,l=0;;){var p=R(n,s,c);if(!p)break;c=!1,p.done(r,i,null==a?void 0:a(p.project)),n.diagnostics.has(p.projectPath)||l++}return x(n),ae(n,s),function(e,n){if(e.watchAllProjectsPending){e.watchAllProjectsPending=!1;for(var t=0,r=d(n);t<r.length;t++){var i=r[t],a=_(e,i),o=h(e,i,a);J(e,i,a,o),q(e,a,o),o&&(X(e,i,a,o),Y(e,i,a,o),Q(e,i,a,o))}}}(n,s),u(s)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:s.some((function(e){return n.diagnostics.has(_(n,e))}))?l?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function j(n,t,r){var i=T(n,t,r);if(!i)return e.ExitStatus.InvalidProject_OutputsSkipped;if(u(i))return te(n,i.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var a=n.options,o=n.host,s=a.dry?[]:void 0,c=0,l=i;c<l.length;c++){var d=l[c],p=_(n,d),f=h(n,d,p);if(void 0!==f){var g=e.getAllProjectOutputs(f,!o.useCaseSensitiveFileNames());if(g.length)for(var y=new e.Set(f.fileNames.map((function(e){return m(n,e)}))),v=0,b=g;v<b.length;v++){var E=b[v];y.has(m(n,E))||o.fileExists(E)&&(s?s.push(E):(o.deleteFile(E),K(n,p,e.ConfigFileProgramReloadLevel.None)))}}else ie(n,p)}return s&&ee(n,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,s.map((function(e){return"\r\n * "+e})).join("")),e.ExitStatus.Success}function K(n,t,r){n.host.getParsedCommandLine&&r===e.ConfigFileProgramReloadLevel.Partial&&(r=e.ConfigFileProgramReloadLevel.Full),r===e.ConfigFileProgramReloadLevel.Full&&(n.configFileCache.delete(t),n.buildOrder=void 0),n.needsSummary=!0,L(n,t),D(n,t,r),S(n)}function H(e,n,t){e.reportFileChangeDetected=!0,K(e,n,t),W(e)}function W(e){var n=e.hostWithWatch;n.setTimeout&&n.clearTimeout&&(e.timerToBuildInvalidatedProject&&n.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=n.setTimeout(z,250,e))}function z(n){n.timerToBuildInvalidatedProject=void 0,n.reportFileChangeDetected&&(n.reportFileChangeDetected=!1,n.projectErrorsReported.clear(),ne(n,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var t=E(n),r=R(n,t,!1);r&&(r.done(),n.projectPendingBuild.size)?n.watch&&!n.timerToBuildInvalidatedProject&&W(n):(x(n),ae(n,t))}function J(n,t,r,i){n.watch&&!n.allWatchedConfigFiles.has(r)&&n.allWatchedConfigFiles.set(r,n.watchFile(t,(function(){H(n,r,e.ConfigFileProgramReloadLevel.Full)}),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.ConfigFile,t))}function q(n,t,r){e.updateSharedExtendedConfigFileWatcher(t,null==r?void 0:r.options,n.allWatchedExtendedConfigFiles,(function(t,i){return n.watchFile(t,(function(){var t;return null===(t=n.allWatchedExtendedConfigFiles.get(i))||void 0===t?void 0:t.projects.forEach((function(t){return H(n,t,e.ConfigFileProgramReloadLevel.Full)}))}),e.PollingInterval.High,null==r?void 0:r.watchOptions,e.WatchType.ExtendedConfigFile)}),(function(e){return m(n,e)}))}function X(n,t,r,i){n.watch&&e.updateWatchingWildcardDirectories(s(n.allWatchedWildcardDirectories,r),new e.Map(e.getEntries(i.wildcardDirectories)),(function(a,o){return n.watchDirectory(a,(function(o){var s;e.isIgnoredFileFromWildCardWatching({watchedDirPath:m(n,a),fileOrDirectory:o,fileOrDirectoryPath:m(n,o),configFileName:t,currentDirectory:n.currentDirectory,options:i.options,program:n.builderPrograms.get(r)||(null===(s=y(n,r))||void 0===s?void 0:s.fileNames),useCaseSensitiveFileNames:n.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(e){return n.writeLog(e)},toPath:function(e){return m(n,e)}})||H(n,r,e.ConfigFileProgramReloadLevel.Partial)}),o,null==i?void 0:i.watchOptions,e.WatchType.WildcardDirectory,t)}))}function Y(n,t,r,i){n.watch&&e.mutateMap(s(n.allWatchedInputFiles,r),e.arrayToMap(i.fileNames,(function(e){return m(n,e)})),{createNewValue:function(a,o){return n.watchFile(o,(function(){return H(n,r,e.ConfigFileProgramReloadLevel.None)}),e.PollingInterval.Low,null==i?void 0:i.watchOptions,e.WatchType.SourceFile,t)},onDeleteValue:e.closeFileWatcher})}function Q(n,t,r,i){n.watch&&n.lastCachedPackageJsonLookups&&e.mutateMap(s(n.allWatchedPackageJsonFiles,r),new e.Map(n.lastCachedPackageJsonLookups.get(r)),{createNewValue:function(a,o){return n.watchFile(a,(function(){return H(n,r,e.ConfigFileProgramReloadLevel.Full)}),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.PackageJson,t)},onDeleteValue:e.closeFileWatcher})}function Z(n,t,r,i,a){var o=function(n,t,r,i,a){var o,s,c=t,l=t,u=c.getCurrentDirectory(),d=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),p=(o=i,s={},e.commonOptionsWithBuild.forEach((function(n){e.hasProperty(o,n.name)&&(s[n.name]=o[n.name])})),s),f=e.createCompilerHostFromProgramHost(c,(function(){return x.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(f,c),f.getParsedCommandLine=function(e){return h(x,e,_(x,e))},f.resolveModuleNames=e.maybeBind(c,c.resolveModuleNames),f.resolveTypeReferenceDirectives=e.maybeBind(c,c.resolveTypeReferenceDirectives);var m=f.resolveModuleNames?void 0:e.createModuleResolutionCache(u,d),g=f.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(u,d,void 0,null==m?void 0:m.getPackageJsonInfoCache());if(!f.resolveModuleNames){var y=function(n,t,r){return e.resolveModuleName(n,t,x.projectCompilerOptions,f,m,r).resolvedModule};f.resolveModuleNames=function(n,t,r,i){return e.loadWithLocalCache(e.Debug.checkEachDefined(n),t,i,y)}}if(!f.resolveTypeReferenceDirectives){var v=function(n,t,r){return e.resolveTypeReferenceDirective(n,t,x.projectCompilerOptions,f,r,x.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};f.resolveTypeReferenceDirectives=function(n,t,r){return e.loadWithLocalCache(e.Debug.checkEachDefined(n),t,r,v)}}var b=e.createWatchFactory(l,i),E=b.watchFile,T=b.watchDirectory,S=b.writeLog,x={host:c,hostWithWatch:l,currentDirectory:u,getCanonicalFileName:d,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(c),write:e.maybeBind(c,c.trace),options:i,baseCompilerOptions:p,rootNames:r,baseWatchOptions:a,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:f,moduleResolutionCache:m,typeReferenceDirectiveResolutionCache:g,buildOrder:void 0,readFileWithCache:function(e){return c.readFile(e)},projectCompilerOptions:p,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:n,currentInvalidatedProject:void 0,watch:n,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:E,watchDirectory:T,writeLog:S};return x}(n,t,r,i,a);return{build:function(e,n,t,r){return V(o,e,n,t,r)},clean:function(e){return j(o,e)},buildReferences:function(e,n,t,r){return V(o,e,n,t,r,!0)},cleanReferences:function(e){return j(o,e,!0)},getNextInvalidatedProject:function(e){return A(o,e),R(o,E(o),!1)},getBuildOrder:function(){return E(o)},getUpToDateStatusOfProject:function(e){var n=v(o,e),t=_(o,n);return F(o,h(o,n,t),t)},invalidateProject:function(n,t){return K(o,n,t||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return z(o)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(o.configFileCache.values(),(function(e){return g(e)?e:void 0})))},close:function(){return function(n){e.clearMap(n.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(n.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(n.allWatchedWildcardDirectories,(function(n){return e.clearMap(n,e.closeFileWatcherOf)})),e.clearMap(n.allWatchedInputFiles,(function(n){return e.clearMap(n,e.closeFileWatcher)})),e.clearMap(n.allWatchedPackageJsonFiles,(function(n){return e.clearMap(n,e.closeFileWatcher)}))}(o)}}}function $(n,t){return e.convertToRelativePath(t,n.currentDirectory,(function(e){return n.getCanonicalFileName(e)}))}function ee(n,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];n.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,i([t],r,!1)))}function ne(n,t){for(var r,a,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];null===(a=(r=n.hostWithWatch).onWatchStatusChange)||void 0===a||a.call(r,e.createCompilerDiagnostic.apply(void 0,i([t],o,!1)),n.host.getNewLine(),n.baseCompilerOptions)}function te(e,n){var t=e.host;n.forEach((function(e){return t.reportDiagnostic(e)}))}function re(e,n,t){te(e,t),e.projectErrorsReported.set(n,!0),t.length&&e.diagnostics.set(n,t)}function ie(e,n){re(e,n,[e.configFileCache.get(n)])}function ae(n,t){if(n.needsSummary){n.needsSummary=!1;var r=n.watch||!!n.host.reportErrorSummary,i=n.diagnostics,a=0;u(t)?(oe(n,t.buildOrder),te(n,t.circularDiagnostics),r&&(a+=e.getErrorCountForSummary(t.circularDiagnostics))):(t.forEach((function(t){var r=_(n,t);n.projectErrorsReported.has(r)||te(n,i.get(r)||e.emptyArray)})),r&&i.forEach((function(n){return a+=e.getErrorCountForSummary(n)}))),n.watch?ne(n,e.getWatchErrorSummaryDiagnosticMessage(a),a):n.host.reportErrorSummary&&n.host.reportErrorSummary(a)}}function oe(n,t){n.options.verbose&&ee(n,e.Diagnostics.Projects_in_this_build_Colon_0,t.map((function(e){return"\r\n * "+$(n,e)})).join(""))}function se(n,t,r){n.options.verbose&&function(n,t,r){if(n.options.force&&(r.type===e.UpToDateStatusType.UpToDate||r.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes))return ee(n,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,$(n,t));switch(r.type){case e.UpToDateStatusType.OutOfDateWithSelf:return ee(n,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,$(n,t),$(n,r.outOfDateOutputFileName),$(n,r.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return ee(n,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,$(n,t),$(n,r.outOfDateOutputFileName),$(n,r.newerProjectName));case e.UpToDateStatusType.OutputMissing:return ee(n,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,$(n,t),$(n,r.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(void 0!==r.newestInputFileTime)return ee(n,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,$(n,t),$(n,r.newestInputFileName||""),$(n,r.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return ee(n,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,$(n,t),$(n,r.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return ee(n,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,$(n,t));case e.UpToDateStatusType.UpstreamOutOfDate:return ee(n,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,$(n,t),$(n,r.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return ee(n,r.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,$(n,t),$(n,r.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return ee(n,e.Diagnostics.Failed_to_parse_file_0_Colon_1,$(n,t),r.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return ee(n,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,$(n,t),r.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(r)}}(n,t,r)}!function(e){e[e.None=0]="None",e[e.Success=1]="Success",e[e.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",e[e.ConfigFileErrors=4]="ConfigFileErrors",e[e.SyntaxErrors=8]="SyntaxErrors",e[e.TypeErrors=16]="TypeErrors",e[e.DeclarationEmitErrors=32]="DeclarationEmitErrors",e[e.EmitErrors=64]="EmitErrors",e[e.AnyErrors=124]="AnyErrors"}(n||(n={})),e.isCircularBuildOrder=u,e.getBuildOrderFromAnyBuildOrder=d,e.createBuilderStatusReporter=p,e.createSolutionBuilderHost=function(n,t,r,i,a){void 0===n&&(n=e.sys);var o=f(n,t,r,i);return o.reportErrorSummary=a,o},e.createSolutionBuilderWithWatchHost=function(n,t,r,i,a){void 0===n&&(n=e.sys);var o=f(n,t,r,i),s=e.createWatchHost(n,a);return e.copyProperties(o,s),o},e.createSolutionBuilder=function(e,n,t){return Z(!1,e,n,t)},e.createSolutionBuilderWithWatch=function(e,n,t,r){return Z(!0,e,n,t,r)},function(e){e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"}(t=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={})),function(e){e[e.CreateProgram=0]="CreateProgram",e[e.SyntaxDiagnostics=1]="SyntaxDiagnostics",e[e.SemanticDiagnostics=2]="SemanticDiagnostics",e[e.Emit=3]="Emit",e[e.EmitBundle=4]="EmitBundle",e[e.EmitBuildInfo=5]="EmitBuildInfo",e[e.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",e[e.QueueReferencingProjects=7]="QueueReferencingProjects",e[e.Done=8]="Done"}(r||(r={}))}(u||(u={})),function(e){var n,t;(n=e.server||(e.server={})).ActionSet="action::set",n.ActionInvalidate="action::invalidate",n.ActionPackageInstalled="action::packageInstalled",n.EventTypesRegistry="event::typesRegistry",n.EventBeginInstallTypes="event::beginInstallTypes",n.EventEndInstallTypes="event::endInstallTypes",n.EventInitializationFailed="event::initializationFailed",(t=n.Arguments||(n.Arguments={})).GlobalCacheLocation="--globalTypingsCacheLocation",t.LogFile="--logFile",t.EnableTelemetry="--enableTelemetry",t.TypingSafeListLocation="--typingSafeListLocation",t.TypesMapLocation="--typesMapLocation",t.NpmLocation="--npmLocation",t.ValidateDefaultNpmLocation="--validateDefaultNpmLocation",n.hasArgument=function(n){return e.sys.args.indexOf(n)>=0},n.findArgument=function(n){var t=e.sys.args.indexOf(n);return t>=0&&t<e.sys.args.length-1?e.sys.args[t+1]:void 0},n.nowString=function(){var n=new Date;return e.padLeft(n.getHours().toString(),2,"0")+":"+e.padLeft(n.getMinutes().toString(),2,"0")+":"+e.padLeft(n.getSeconds().toString(),2,"0")+"."+e.padLeft(n.getMilliseconds().toString(),3,"0")}}(u||(u={})),function(e){!function(n){function t(n,t){return new e.Version(e.getProperty(t,"ts"+e.versionMajorMinor)||e.getProperty(t,"latest")).compareTo(n.version)<=0}n.isTypingUpToDate=t;var r,a=["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"];function o(e){return n.nodeCoreModules.has(e)?"node":e}n.prefixedNodeCoreModuleList=a.map((function(e){return"node:"+e})),n.nodeCoreModuleList=i(i([],a,!0),n.prefixedNodeCoreModuleList,!0),n.nodeCoreModules=new e.Set(n.nodeCoreModuleList),n.nonRelativeModuleNameForTypingCache=o,n.loadSafeList=function(n,t){var r=e.readConfigFile(t,(function(e){return n.readFile(e)}));return new e.Map(e.getEntries(r.config))},n.loadTypesMap=function(n,t){var r=e.readConfigFile(t,(function(e){return n.readFile(e)}));if(r.config)return new e.Map(e.getEntries(r.config.simpleMap))},n.discoverTypings=function(n,r,i,a,s,c,l,u,d){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var p=new e.Map;i=e.mapDefined(i,(function(n){var t=e.normalizePath(n);if(e.hasJSFileExtension(t))return t}));var f=[];l.include&&S(l.include,"Explicitly included types");var m=l.exclude||[],_=new e.Set(i.map(e.getDirectoryPath));_.add(a),_.forEach((function(n){x(e.combinePaths(n,"package.json"),f),x(e.combinePaths(n,"bower.json"),f),L(e.combinePaths(n,"bower_components"),f),L(e.combinePaths(n,"node_modules"),f)})),l.disableFilenameBasedTypeAcquisition||function(n){var t=e.mapDefined(n,(function(n){if(e.hasJSFileExtension(n)){var t=e.removeFileExtension(e.getBaseFileName(n.toLowerCase())),r=e.removeMinAndVersionNumbers(t);return s.get(r)}}));t.length&&S(t,"Inferred typings from file names"),e.some(n,(function(n){return e.fileExtensionIs(n,".jsx")}))&&(r&&r("Inferred 'react' typings due to presence of '.jsx' extension"),T("react"))}(i),u&&S(e.deduplicate(u.map(o),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach((function(e,n){var r=d.get(n);p.has(n)&&void 0===p.get(n)&&void 0!==r&&t(e,r)&&p.set(n,e.typingLocation)}));for(var g=0,y=m;g<y.length;g++){var h=y[g];p.delete(h)&&r&&r("Typing for "+h+" is in exclude list, will be ignored.")}var v=[],b=[];p.forEach((function(e,n){void 0!==e?b.push(e):v.push(n)}));var E={cachedTypingPaths:b,newTypingNames:v,filesToWatch:f};return r&&r("Result: "+JSON.stringify(E)),E;function T(e){p.has(e)||p.set(e,void 0)}function S(n,t){r&&r(t+": "+JSON.stringify(n)),e.forEach(n,T)}function x(t,r){if(n.fileExists(t)){r.push(t);var i=e.readConfigFile(t,(function(e){return n.readFile(e)})).config;S(e.flatMap([i.dependencies,i.devDependencies,i.optionalDependencies,i.peerDependencies],e.getOwnKeys),"Typing names in '"+t+"' dependencies")}}function L(t,i){if(i.push(t),n.directoryExists(t)){var a=n.readDirectory(t,[".json"],void 0,void 0,2);r&&r("Searching for typing names in "+t+"; all files: "+JSON.stringify(a));for(var o=[],s=0,c=a;s<c.length;s++){var l=c[s],u=e.normalizePath(l),d=e.getBaseFileName(u);if("package.json"===d||"bower.json"===d){var f=e.readConfigFile(u,(function(e){return n.readFile(e)})).config;if(("package.json"!==d||!f._requiredBy||0!==e.filter(f._requiredBy,(function(e){return"#"===e[0]||"/"===e})).length)&&f.name){var m=f.types||f.typings;if(m){var _=e.getNormalizedAbsolutePath(m,e.getDirectoryPath(u));r&&r(" Package '"+f.name+"' provides its own types."),p.set(f.name,_)}else o.push(f.name)}}}S(o," Found package names")}}},(r=n.NameValidationResult||(n.NameValidationResult={}))[r.Ok=0]="Ok",r[r.EmptyName=1]="EmptyName",r[r.NameTooLong=2]="NameTooLong",r[r.NameStartsWithDot=3]="NameStartsWithDot",r[r.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",r[r.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters";function s(e,n){if(!e)return 1;if(e.length>214)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(n){var t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){var r=s(t[1],!1);if(0!==r)return{name:t[1],isScopeName:!0,result:r};var i=s(t[2],!1);return 0!==i?{name:t[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function c(n,t,r,i){var a=i?"Scope":"Package";switch(t){case 1:return"'"+n+"':: "+a+" name '"+r+"' cannot be empty";case 2:return"'"+n+"':: "+a+" name '"+r+"' should be less than 214 characters";case 3:return"'"+n+"':: "+a+" name '"+r+"' cannot start with '.'";case 4:return"'"+n+"':: "+a+" name '"+r+"' cannot start with '_'";case 5:return"'"+n+"':: "+a+" name '"+r+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(t)}}n.validatePackageName=function(e){return s(e,!0)},n.renderPackageNameValidationFailure=function(e,n){return"object"==typeof e?c(n,e.result,e.name,e.isScopeName):c(n,e,n,!1)}}(e.JsTyping||(e.JsTyping={}))}(u||(u={})),function(e){var n,t,r,i,a,o,s,c,l,u,d,p,f,m,_,g,y,h,v,b;function E(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:n.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:t.Ignore,trimTrailingWhitespace:!0}}v=e.ScriptSnapshot||(e.ScriptSnapshot={}),b=function(){function e(e){this.text=e}return e.prototype.getText=function(e,n){return 0===e&&n===this.text.length?this.text:this.text.substring(e,n)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}(),v.fromString=function(e){return new b(e)},(h=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}))[h.Dependencies=1]="Dependencies",h[h.DevDependencies=2]="DevDependencies",h[h.PeerDependencies=4]="PeerDependencies",h[h.OptionalDependencies=8]="OptionalDependencies",h[h.All=15]="All",(y=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}))[y.Off=0]="Off",y[y.On=1]="On",y[y.Auto=2]="Auto",(g=e.LanguageServiceMode||(e.LanguageServiceMode={}))[g.Semantic=0]="Semantic",g[g.PartialSemantic=1]="PartialSemantic",g[g.Syntactic=2]="Syntactic",e.emptyOptions={},(_=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})).Original="original",_.TwentyTwenty="2020",(m=e.CompletionTriggerKind||(e.CompletionTriggerKind={}))[m.Invoked=1]="Invoked",m[m.TriggerCharacter=2]="TriggerCharacter",m[m.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",(f=e.InlayHintKind||(e.InlayHintKind={})).Type="Type",f.Parameter="Parameter",f.Enum="Enum",(p=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",p.definition="definition",p.reference="reference",p.writtenReference="writtenReference",function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(n=e.IndentStyle||(e.IndentStyle={})),function(e){e.Ignore="ignore",e.Insert="insert",e.Remove="remove"}(t=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=E,e.testFormatSettings=E("\n"),(d=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[d.aliasName=0]="aliasName",d[d.className=1]="className",d[d.enumName=2]="enumName",d[d.fieldName=3]="fieldName",d[d.interfaceName=4]="interfaceName",d[d.keyword=5]="keyword",d[d.lineBreak=6]="lineBreak",d[d.numericLiteral=7]="numericLiteral",d[d.stringLiteral=8]="stringLiteral",d[d.localName=9]="localName",d[d.methodName=10]="methodName",d[d.moduleName=11]="moduleName",d[d.operator=12]="operator",d[d.parameterName=13]="parameterName",d[d.propertyName=14]="propertyName",d[d.punctuation=15]="punctuation",d[d.space=16]="space",d[d.text=17]="text",d[d.typeParameterName=18]="typeParameterName",d[d.enumMemberName=19]="enumMemberName",d[d.functionName=20]="functionName",d[d.regularExpressionLiteral=21]="regularExpressionLiteral",d[d.link=22]="link",d[d.linkName=23]="linkName",d[d.linkText=24]="linkText",(u=e.OutliningSpanKind||(e.OutliningSpanKind={})).Comment="comment",u.Region="region",u.Code="code",u.Imports="imports",(l=e.OutputFileType||(e.OutputFileType={}))[l.JavaScript=0]="JavaScript",l[l.SourceMap=1]="SourceMap",l[l.Declaration=2]="Declaration",(c=e.EndOfLineState||(e.EndOfLineState={}))[c.None=0]="None",c[c.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",c[c.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",c[c.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",c[c.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",c[c.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",c[c.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(s=e.TokenClass||(e.TokenClass={}))[s.Punctuation=0]="Punctuation",s[s.Keyword=1]="Keyword",s[s.Operator=2]="Operator",s[s.Comment=3]="Comment",s[s.Whitespace=4]="Whitespace",s[s.Identifier=5]="Identifier",s[s.NumberLiteral=6]="NumberLiteral",s[s.BigIntLiteral=7]="BigIntLiteral",s[s.StringLiteral=8]="StringLiteral",s[s.RegExpLiteral=9]="RegExpLiteral",(o=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",o.warning="warning",o.keyword="keyword",o.scriptElement="script",o.moduleElement="module",o.classElement="class",o.localClassElement="local class",o.interfaceElement="interface",o.typeElement="type",o.enumElement="enum",o.enumMemberElement="enum member",o.variableElement="var",o.localVariableElement="local var",o.functionElement="function",o.localFunctionElement="local function",o.memberFunctionElement="method",o.memberGetAccessorElement="getter",o.memberSetAccessorElement="setter",o.memberVariableElement="property",o.constructorImplementationElement="constructor",o.callSignatureElement="call",o.indexSignatureElement="index",o.constructSignatureElement="construct",o.parameterElement="parameter",o.typeParameterElement="type parameter",o.primitiveType="primitive type",o.label="label",o.alias="alias",o.constElement="const",o.letElement="let",o.directory="directory",o.externalModuleName="external module name",o.jsxAttribute="JSX attribute",o.string="string",o.link="link",o.linkName="link name",o.linkText="link text",(a=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",a.publicMemberModifier="public",a.privateMemberModifier="private",a.protectedMemberModifier="protected",a.exportedModifier="export",a.ambientModifier="declare",a.staticModifier="static",a.abstractModifier="abstract",a.optionalModifier="optional",a.deprecatedModifier="deprecated",a.dtsModifier=".d.ts",a.tsModifier=".ts",a.tsxModifier=".tsx",a.jsModifier=".js",a.jsxModifier=".jsx",a.jsonModifier=".json",(i=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",i.identifier="identifier",i.keyword="keyword",i.numericLiteral="number",i.bigintLiteral="bigint",i.operator="operator",i.stringLiteral="string",i.whiteSpace="whitespace",i.text="text",i.punctuation="punctuation",i.className="class name",i.enumName="enum name",i.interfaceName="interface name",i.moduleName="module name",i.typeParameterName="type parameter name",i.typeAliasName="type alias name",i.parameterName="parameter name",i.docCommentTagName="doc comment tag name",i.jsxOpenTagName="jsx open tag name",i.jsxCloseTagName="jsx close tag name",i.jsxSelfClosingTagName="jsx self closing tag name",i.jsxAttribute="jsx attribute",i.jsxText="jsx text",i.jsxAttributeStringLiteralValue="jsx attribute string literal value",(r=e.ClassificationType||(e.ClassificationType={}))[r.comment=1]="comment",r[r.identifier=2]="identifier",r[r.keyword=3]="keyword",r[r.numericLiteral=4]="numericLiteral",r[r.operator=5]="operator",r[r.stringLiteral=6]="stringLiteral",r[r.regularExpressionLiteral=7]="regularExpressionLiteral",r[r.whiteSpace=8]="whiteSpace",r[r.text=9]="text",r[r.punctuation=10]="punctuation",r[r.className=11]="className",r[r.enumName=12]="enumName",r[r.interfaceName=13]="interfaceName",r[r.moduleName=14]="moduleName",r[r.typeParameterName=15]="typeParameterName",r[r.typeAliasName=16]="typeAliasName",r[r.parameterName=17]="parameterName",r[r.docCommentTagName=18]="docCommentTagName",r[r.jsxOpenTagName=19]="jsxOpenTagName",r[r.jsxCloseTagName=20]="jsxCloseTagName",r[r.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",r[r.jsxAttribute=22]="jsxAttribute",r[r.jsxText=23]="jsxText",r[r.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",r[r.bigintLiteral=25]="bigintLiteral"}(u||(u={})),function(e){function n(n){switch(n.kind){case 252:return e.isInJSFile(n)&&e.getJSDocEnumTag(n)?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 void 0===n.name?3:2;case 294:case 255:return 3;case 259:return e.isAmbientModule(n)||1===e.getModuleInstanceState(n)?5:4;case 258:case 267:case 268:case 263:case 264:case 269:case 270:return 7;case 300:return 5}return 7}function t(n){for(;159===n.parent.kind;)n=n.parent;return e.isInternalModuleImportEqualsDeclaration(n.parent)&&n.parent.moduleReference===n}function r(e){return e.expression}function i(e){return e.tag}function o(e){return e.tagName}function s(n,t,r,i,a){var o=i?l(n):c(n);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&t(o.parent)&&r(o.parent)===o}function c(e){return p(e)?e.parent:e}function l(e){return p(e)||f(e)?e.parent:e}function u(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isBreakOrContinueStatement))||void 0===t?void 0:t.label)===n}function d(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isLabeledStatement))||void 0===t?void 0:t.label)===n}function p(n){var t;return(null===(t=e.tryCast(n.parent,e.isPropertyAccessExpression))||void 0===t?void 0:t.name)===n}function f(n){var t;return(null===(t=e.tryCast(n.parent,e.isElementAccessExpression))||void 0===t?void 0:t.argumentExpression)===n}var m;e.scanner=e.createScanner(99,!0),(m=e.SemanticMeaning||(e.SemanticMeaning={}))[m.None=0]="None",m[m.Value=1]="Value",m[m.Type=2]="Type",m[m.Namespace=4]="Namespace",m[m.All=7]="All",e.getMeaningFromDeclaration=n,e.getMeaningFromLocation=function(r){var i=(r=R(r)).parent;if(300===r.kind)return 1;if(e.isExportAssignment(i)||e.isExportSpecifier(i)||e.isExternalModuleReference(i)||e.isImportSpecifier(i)||e.isImportClause(i)||e.isImportEqualsDeclaration(i)&&r===i.name){for(var a=i;a;){if(e.isImportEqualsDeclaration(a)||e.isImportClause(a)||e.isExportDeclaration(a))return a.isTypeOnly?2:7;a=a.parent}return 7}return t(r)?function(n){var t=159===n.kind?n:e.isQualifiedName(n.parent)&&n.parent.right===n?n.parent:void 0;return t&&263===t.parent.kind?7:4}(r):e.isDeclarationName(r)?n(i):e.isEntityName(r)&&e.findAncestor(r,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:function(n){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),n.kind){case 108:return!e.isExpressionNode(n);case 190:return!0}switch(n.parent.kind){case 176:return!0;case 198:return!n.parent.isTypeOf;case 226:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)}return!1}(r)?2:function(e){return function(e){var n=e,t=!0;if(159===n.parent.kind){for(;n.parent&&159===n.parent.kind;)n=n.parent;t=n.right===e}return 176===n.parent.kind&&!t}(e)||function(e){var n=e,t=!0;if(204===n.parent.kind){for(;n.parent&&204===n.parent.kind;)n=n.parent;t=n.name===e}if(!t&&226===n.parent.kind&&289===n.parent.parent.kind){var r=n.parent.parent.parent;return 255===r.kind&&117===n.parent.parent.token||256===r.kind&&94===n.parent.parent.token}return!1}(e)}(r)?4:e.isTypeParameterDeclaration(i)?(e.Debug.assert(e.isJSDocTemplateTag(i.parent)),2):e.isLiteralTypeNode(i)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=t,e.isCallExpressionTarget=function(n,t,i){return void 0===t&&(t=!1),void 0===i&&(i=!1),s(n,e.isCallExpression,r,t,i)},e.isNewExpressionTarget=function(n,t,i){return void 0===t&&(t=!1),void 0===i&&(i=!1),s(n,e.isNewExpression,r,t,i)},e.isCallOrNewExpressionTarget=function(n,t,i){return void 0===t&&(t=!1),void 0===i&&(i=!1),s(n,e.isCallOrNewExpression,r,t,i)},e.isTaggedTemplateTag=function(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(n,e.isTaggedTemplateExpression,i,t,r)},e.isDecoratorTarget=function(n,t,i){return void 0===t&&(t=!1),void 0===i&&(i=!1),s(n,e.isDecorator,r,t,i)},e.isJsxOpeningLikeElementTagName=function(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(n,e.isJsxOpeningLikeElement,o,t,r)},e.climbPastPropertyAccess=c,e.climbPastPropertyOrElementAccess=l,e.getTargetLabel=function(e,n){for(;e;){if(248===e.kind&&e.label.escapedText===n)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(n,t){return!!e.isPropertyAccessExpression(n.expression)&&n.expression.name.text===t},e.isJumpStatementTarget=u,e.isLabelOfLabeledStatement=d,e.isLabelName=function(e){return d(e)||u(e)},e.isTagName=function(n){var t;return(null===(t=e.tryCast(n.parent,e.isJSDocTag))||void 0===t?void 0:t.tagName)===n},e.isRightSideOfQualifiedName=function(n){var t;return(null===(t=e.tryCast(n.parent,e.isQualifiedName))||void 0===t?void 0:t.right)===n},e.isRightSideOfPropertyAccess=p,e.isArgumentExpressionOfElementAccess=f,e.isNameOfModuleDeclaration=function(n){var t;return(null===(t=e.tryCast(n.parent,e.isModuleDeclaration))||void 0===t?void 0:t.name)===n},e.isNameOfFunctionDeclaration=function(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isFunctionLike))||void 0===t?void 0:t.name)===n},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(n){switch(n.parent.kind){case 165:case 164:case 291:case 294:case 167:case 166:case 170:case 171:case 259:return e.getNameOfDeclaration(n.parent)===n;case 205:return n.parent.argumentExpression===n;case 160:return!0;case 194:return 192===n.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(n){return e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n},e.getContainerNode=function(n){for(e.isJSDocTypeAlias(n)&&(n=n.parent.parent);;){if(!(n=n.parent))return;switch(n.kind){case 300:case 167:case 166:case 254:case 211:case 170:case 171:case 255:case 256:case 258:case 259:return n}}},e.getNodeKind=function n(t){switch(t.kind){case 300:return e.isExternalModule(t)?"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 c(t);case 201:return c(e.getRootDeclaration(t));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 r=t.initializer;return e.isFunctionLike(r)?"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(t,16476)?"property":"parameter";case 263:case 268:case 273:case 266:case 272:return"alias";case 219:var i=e.getAssignmentDeclarationKind(t),a=t.right;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=n(a);return""===o?"const":o;case 3:case 5:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 6:return"local class";default:return e.assertType(i),""}case 79:return e.isImportClause(t.parent)?"alias":"";case 269:var s=n(t.expression);return""===s?"const":s;default:return""}function c(n){return e.isVarConst(n)?"const":e.isLet(n)?"let":"var"}},e.isThis=function(n){switch(n.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(n)&&162===n.parent.kind;default:return!1}};var _,g=/^\/\/\/\s*</;function y(e,n){return v(e.pos,e.end,n)}function h(e,n){return e.pos<n&&n<e.end}function v(e,n,t){return e<=t.pos&&n>=t.end}function b(e,n,t,r){return Math.max(e,t)<Math.min(n,r)}function E(n,t){if(void 0===n||e.nodeIsMissing(n))return!1;switch(n.kind){case 255:case 256:case 258:case 203:case 199:case 180:case 233:case 260:case 261:case 267:case 271:return T(n,19,t);case 290:return E(n.block,t);case 207:if(!n.arguments)return!0;case 206:case 210:case 189:return T(n,21,t);case 177:case 178:return E(n.type,t);case 169:case 170:case 171:case 254:case 211:case 167:case 166:case 173:case 172:case 212:return n.body?E(n.body,t):n.type?E(n.type,t):S(n,21,t);case 259:return!!n.body&&E(n.body,t);case 237:return n.elseStatement?E(n.elseStatement,t):E(n.thenStatement,t);case 236:return E(n.expression,t)||S(n,26,t);case 202:case 200:case 205:case 160:case 182:return T(n,23,t);case 174:return n.type?E(n.type,t):S(n,23,t);case 287:case 288:return!1;case 240:case 241:case 242:case 239:return E(n.statement,t);case 238:return S(n,115,t)?T(n,21,t):E(n.statement,t);case 179:return E(n.exprName,t);case 214:case 213:case 215:case 222:case 223:return E(n.expression,t);case 208:return E(n.template,t);case 221:return E(e.lastOrUndefined(n.templateSpans),t);case 231:return e.nodeIsPresent(n.literal);case 270:case 264:return e.nodeIsPresent(n.moduleSpecifier);case 217:return E(n.operand,t);case 219:return E(n.right,t);case 220:return E(n.whenFalse,t);default:return!0}}function T(n,t,r){var i=n.getChildren(r);if(i.length){var a=e.last(i);if(a.kind===t)return!0;if(26===a.kind&&1!==i.length)return i[i.length-2].kind===t}return!1}function S(e,n,t){return!!x(e,n,t)}function x(n,t,r){return e.find(n.getChildren(r),(function(e){return e.kind===t}))}function L(n){var t=e.find(n.parent.getChildren(),(function(t){return e.isSyntaxList(t)&&y(t,n)}));return e.Debug.assert(!t||e.contains(t.getChildren(),n)),t}function D(e){return 88===e.kind}function A(e){return 84===e.kind}function C(e){return 98===e.kind}function I(n,t){if(n.importClause){if(n.importClause.name&&n.importClause.namedBindings)return;if(n.importClause.name)return n.importClause.name;if(n.importClause.namedBindings){if(e.isNamedImports(n.importClause.namedBindings)){var r=e.singleOrUndefined(n.importClause.namedBindings.elements);if(!r)return;return r.name}if(e.isNamespaceImport(n.importClause.namedBindings))return n.importClause.namedBindings.name}}if(!t)return n.moduleSpecifier}function N(n,t){if(n.exportClause){if(e.isNamedExports(n.exportClause)){if(!e.singleOrUndefined(n.exportClause.elements))return;return n.exportClause.elements[0].name}if(e.isNamespaceExport(n.exportClause))return n.exportClause.name}if(!t)return n.moduleSpecifier}function k(n,t){var r=n.parent;if((e.isModifier(n)&&(t||88!==n.kind)?e.contains(r.modifiers,n):84===n.kind?e.isClassDeclaration(r)||e.isClassExpression(n):98===n.kind?e.isFunctionDeclaration(r)||e.isFunctionExpression(n):118===n.kind?e.isInterfaceDeclaration(r):92===n.kind?e.isEnumDeclaration(r):150===n.kind?e.isTypeAliasDeclaration(r):141===n.kind||140===n.kind?e.isModuleDeclaration(r):100===n.kind?e.isImportEqualsDeclaration(r):135===n.kind?e.isGetAccessorDeclaration(r):147===n.kind&&e.isSetAccessorDeclaration(r))&&(a=function(n,t){if(!t)switch(n.kind){case 255:case 224:return function(n){if(e.isNamedDeclaration(n))return n.name;if(e.isClassDeclaration(n)){var t=n.modifiers&&e.find(n.modifiers,D);if(t)return t}if(e.isClassExpression(n)){var r=e.find(n.getChildren(),A);if(r)return r}}(n);case 254:case 211:return function(n){if(e.isNamedDeclaration(n))return n.name;if(e.isFunctionDeclaration(n)){var t=e.find(n.modifiers,D);if(t)return t}if(e.isFunctionExpression(n)){var r=e.find(n.getChildren(),C);if(r)return r}}(n)}if(e.isNamedDeclaration(n))return n.name}(r,t)))return a;if((113===n.kind||85===n.kind||119===n.kind)&&e.isVariableDeclarationList(r)&&1===r.declarations.length){var i=r.declarations[0];if(e.isIdentifier(i.name))return i.name}if(150===n.kind){if(e.isImportClause(r)&&r.isTypeOnly&&(a=I(r.parent,t)))return a;if(e.isExportDeclaration(r)&&r.isTypeOnly&&(a=N(r,t)))return a}if(127===n.kind){if(e.isImportSpecifier(r)&&r.propertyName||e.isExportSpecifier(r)&&r.propertyName||e.isNamespaceImport(r)||e.isNamespaceExport(r))return r.name;if(e.isExportDeclaration(r)&&r.exportClause&&e.isNamespaceExport(r.exportClause))return r.exportClause.name}if(100===n.kind&&e.isImportDeclaration(r)&&(a=I(r,t)))return a;if(93===n.kind){if(e.isExportDeclaration(r)&&(a=N(r,t)))return a;if(e.isExportAssignment(r))return e.skipOuterExpressions(r.expression)}if(144===n.kind&&e.isExternalModuleReference(r))return r.expression;if(154===n.kind&&(e.isImportDeclaration(r)||e.isExportDeclaration(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((94===n.kind||117===n.kind)&&e.isHeritageClause(r)&&r.token===n.kind){var a=function(e){if(1===e.types.length)return e.types[0].expression}(r);if(a)return a}if(94===n.kind){if(e.isTypeParameterDeclaration(r)&&r.constraint&&e.isTypeReferenceNode(r.constraint))return r.constraint.typeName;if(e.isConditionalTypeNode(r)&&e.isTypeReferenceNode(r.extendsType))return r.extendsType.typeName}if(136===n.kind&&e.isInferTypeNode(r))return r.typeParameter.name;if(101===n.kind&&e.isTypeParameterDeclaration(r)&&e.isMappedTypeNode(r.parent))return r.name;if(139===n.kind&&e.isTypeOperatorNode(r)&&139===r.operator&&e.isTypeReferenceNode(r.type))return r.type.typeName;if(143===n.kind&&e.isTypeOperatorNode(r)&&143===r.operator&&e.isArrayTypeNode(r.type)&&e.isTypeReferenceNode(r.type.elementType))return r.type.elementType.typeName;if(!t){if((103===n.kind&&e.isNewExpression(r)||114===n.kind&&e.isVoidExpression(r)||112===n.kind&&e.isTypeOfExpression(r)||131===n.kind&&e.isAwaitExpression(r)||125===n.kind&&e.isYieldExpression(r)||89===n.kind&&e.isDeleteExpression(r))&&r.expression)return e.skipOuterExpressions(r.expression);if((101===n.kind||102===n.kind)&&e.isBinaryExpression(r)&&r.operatorToken===n)return e.skipOuterExpressions(r.right);if(127===n.kind&&e.isAsExpression(r)&&e.isTypeReferenceNode(r.type))return r.type.typeName;if(101===n.kind&&e.isForInStatement(r)||158===n.kind&&e.isForOfStatement(r))return e.skipOuterExpressions(r.expression)}return n}function R(e){return k(e,!1)}function O(e,n,t){return w(e,n,!1,t,!1)}function P(e,n){return w(e,n,!0,void 0,!1)}function w(e,n,t,r,i){var a=e;e:for(;;){for(var o=0,s=a.getChildren(e);o<s.length;o++){var c=s[o];if((t?c.getFullStart():c.getStart(e,!0))>n)break;var l=c.getEnd();if(n<l||n===l&&(1===c.kind||i)){a=c;continue e}if(r&&l===n){var u=F(n,e,c);if(u&&r(u))return u}}return a}}function M(n,t,r){return function t(i){return e.isToken(i)&&i.pos===n.end?i:e.firstDefined(i.getChildren(r),(function(e){return(e.pos<=n.pos&&e.end>n.end||e.pos===n.end)&&J(e,r)?t(e):void 0}))}(t)}function F(n,t,r,i){var a=function a(o){if(G(o)&&1!==o.kind)return o;var s=o.getChildren(t),c=e.binarySearchKey(s,n,(function(e,n){return n}),(function(e,t){return n<s[e].end?!s[e-1]||n>=s[e-1].end?0:1:-1}));if(c>=0&&s[c]){var l=s[c];if(n<l.end){if(l.getStart(t,!i)>=n||!J(l,t)||V(l)){var u=U(s,c,t);return u&&B(u,t)}return a(l)}}e.Debug.assert(void 0!==r||300===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=U(s,s.length,t);return d&&B(d,t)}(r||t);return e.Debug.assert(!(a&&V(a))),a}function G(n){return e.isToken(n)&&!V(n)}function B(e,n){if(G(e))return e;var t=e.getChildren(n);if(0===t.length)return e;var r=U(t,t.length,n);return r&&B(r,n)}function U(n,t,r){for(var i=t-1;i>=0;i--)if(V(n[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(J(n[i],r))return n[i]}function V(n){return e.isJsxText(n)&&n.containsOnlyTriviaWhiteSpaces}function j(n,t,r){var i=e.tokenToString(n.kind),a=e.tokenToString(t),o=n.getFullStart(),s=r.text.lastIndexOf(a,o);if(-1!==s){if(r.text.lastIndexOf(i,o-1)<s){var c=F(s+1,r);if(c&&c.kind===t)return c}for(var l=n.kind,u=0;;){var d=F(n.getFullStart(),r);if(!d)return;if((n=d).kind===t){if(0===u)return n;u--}else n.kind===l&&u++}}}function K(e,n,t){return n?e.getNonNullableType():t?e.getNonOptionalType():e}function H(n,t,r){var i=r.getTypeAtLocation(n);return e.isOptionalChain(n.parent)&&(i=K(i,e.isOptionalChainRoot(n.parent),!0)),(e.isNewExpression(n.parent)?i.getConstructSignatures():i.getCallSignatures()).filter((function(e){return!!e.typeParameters&&e.typeParameters.length>=t}))}function W(n,t){if(-1!==t.text.lastIndexOf("<",n?n.pos:t.text.length))for(var r=n,i=0,a=0;r;){switch(r.kind){case 29:if((r=F(r.getFullStart(),t))&&28===r.kind&&(r=F(r.getFullStart(),t)),!r||!e.isIdentifier(r))return;if(!i)return e.isDeclarationName(r)?void 0:{called:r,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(r=j(r,18,t)))return;break;case 21:if(!(r=j(r,20,t)))return;break;case 23:if(!(r=j(r,22,t)))return;break;case 27:a++;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(r))break;return}r=F(r.getFullStart(),t)}}function z(n,t,r){return e.formatting.getRangeOfEnclosingComment(n,t,void 0,r)}function J(e,n){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(n)}function q(e,n,t){var r=z(e,n,void 0);return!!r&&t===g.test(e.text.substring(r.pos,r.end))}function X(n,t,r){return e.createTextSpanFromBounds(n.getStart(t),(r||n).getEnd())}function Y(n){if(!n.isUnterminated)return e.createTextSpanFromBounds(n.getStart()+1,n.getEnd()-1)}function Q(e,n){return{span:e,newText:n}}function Z(e){return 150===e.kind}function $(n,t){return{fileExists:function(e){return n.fileExists(e)},getCurrentDirectory:function(){return t.getCurrentDirectory()},readFile:e.maybeBind(t,t.readFile),useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(t,t.getSymlinkCache)||n.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(t,t.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:n.redirectTargetsMap,getProjectReferenceRedirect:function(e){return n.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return n.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return n.getFileIncludeReasons()}}}function ee(e,n){return a(a({},$(e,n)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function ne(n,t,r,i,a){return e.factory.createImportDeclaration(void 0,void 0,n||t?e.factory.createImportClause(!!a,n,t&&t.length?e.factory.createNamedImports(t):void 0):void 0,"string"==typeof r?te(r,i):r)}function te(n,t){return e.factory.createStringLiteral(n,0===t)}function re(n,t){return e.isStringDoubleQuoted(n,t)?1:0}function ie(n,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;var r=n.imports&&e.find(n.imports,(function(n){return e.isStringLiteral(n)&&!e.nodeIsSynthesized(n.parent)}));return r?re(r,n):1}function ae(n){return"default"!==n.escapedName?n.escapedName:e.firstDefined(n.declarations,(function(n){var t=e.getNameOfDeclaration(n);return t&&79===t.kind?t.escapedText:void 0}))}function oe(n,t,r){return e.textSpanContainsPosition(n,t.getStart(r))&&t.getEnd()<=e.textSpanEnd(n)}function se(e,n){return!!e&&!!n&&e.start===n.start&&e.length===n.length}function ce(e){return e.declarations&&e.declarations.length>0&&162===e.declarations[0].kind}e.getLineStartPositionForPosition=function(n,t){return e.getLineStarts(t)[t.getLineAndCharacterOfPosition(n).line]},e.rangeContainsRange=y,e.rangeContainsRangeExclusive=function(e,n){return h(e,n.pos)&&h(e,n.end)},e.rangeContainsPosition=function(e,n){return e.pos<=n&&n<=e.end},e.rangeContainsPositionExclusive=h,e.startEndContainsRange=v,e.rangeContainsStartEnd=function(e,n,t){return e.pos<=n&&e.end>=t},e.rangeOverlapsWithStartEnd=function(e,n,t){return b(e.pos,e.end,n,t)},e.nodeOverlapsWithStartEnd=function(e,n,t,r){return b(e.getStart(n),e.end,t,r)},e.startEndOverlapsWithStartEnd=b,e.positionBelongsToNode=function(n,t,r){return e.Debug.assert(n.pos<=t),t<n.end||!E(n,r)},e.findListItemInfo=function(n){var t=L(n);if(t){var r=t.getChildren();return{listItemIndex:e.indexOfNode(r,n),list:t}}},e.hasChildOfKind=S,e.findChildOfKind=x,e.findContainingList=L,e.getContextualTypeOrAncestorTypeNodeType=function(n,t){var r=t.getContextualType(n);if(r)return r;var i=n.parent;if(i&&e.isBinaryExpression(i)&&Me(i.operatorToken.kind))return t.getTypeAtLocation(n===i.left?i.right:i.left);var a=function(n){var t;return e.findAncestor(n,(function(n){return e.isTypeNode(n)&&(t=n),!e.isQualifiedName(n.parent)&&!e.isTypeNode(n.parent)&&!e.isTypeElement(n.parent)})),t}(n);return a&&t.getTypeAtLocation(a)},e.getAdjustedReferenceLocation=R,e.getAdjustedRenameLocation=function(e){return k(e,!0)},e.getTouchingPropertyName=function(n,t){return O(n,t,(function(n){return e.isPropertyNameLiteral(n)||e.isKeyword(n.kind)||e.isPrivateIdentifier(n)}))},e.getTouchingToken=O,e.getTokenAtPosition=P,e.findFirstNonJsxWhitespaceToken=function(e,n){for(var t=P(e,n);V(t);){var r=M(t,t.parent,e);if(!r)return;t=r}return t},e.findTokenOnLeftOfPosition=function(n,t){var r=P(n,t);return e.isToken(r)&&t>r.getStart(n)&&t<r.getEnd()?r:F(t,n)},e.findNextToken=M,e.findPrecedingToken=F,e.isInString=function(n,t,r){if(void 0===r&&(r=F(t,n)),r&&e.isStringTextContainingNode(r)){var i=r.getStart(n),a=r.getEnd();if(i<t&&t<a)return!0;if(t===a)return!!r.isUnterminated}return!1},e.isInsideJsxElementOrAttribute=function(e,n){var t=P(e,n);return!!t&&(11===t.kind||29===t.kind&&11===t.parent.kind||29===t.kind&&286===t.parent.kind||!(!t||19!==t.kind||286!==t.parent.kind)||29===t.kind&&279===t.parent.kind)},e.isInTemplateString=function(n,t){var r=P(n,t);return e.isTemplateLiteralKind(r.kind)&&t>r.getStart(n)},e.isInJSXText=function(n,t){var r=P(n,t);return!!e.isJsxText(r)||!(18!==r.kind||!e.isJsxExpression(r.parent)||!e.isJsxElement(r.parent.parent))||!(29!==r.kind||!e.isJsxOpeningLikeElement(r.parent)||!e.isJsxElement(r.parent.parent))},e.isInsideJsxElement=function(e,n){return function(t){for(;t;)if(t.kind>=277&&t.kind<=286||11===t.kind||29===t.kind||31===t.kind||79===t.kind||19===t.kind||18===t.kind||43===t.kind)t=t.parent;else{if(276!==t.kind)return!1;if(n>t.getStart(e))return!0;t=t.parent}return!1}(P(e,n))},e.findPrecedingMatchingToken=j,e.removeOptionality=K,e.isPossiblyTypeArgumentPosition=function n(t,r,i){var a=W(t,r);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==H(a.called,a.nTypeArguments,i).length||n(a.called,r,i))},e.getPossibleGenericSignatures=H,e.getPossibleTypeArgumentsInfo=W,e.isInComment=z,e.hasDocComment=function(n,t){var r=P(n,t);return!!e.findAncestor(r,e.isJSDoc)},e.getNodeModifiers=function(n,t){void 0===t&&(t=0);var r=[],i=e.isDeclaration(n)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(n)&~t:0;return 8&i&&r.push("private"),16&i&&r.push("protected"),4&i&&r.push("public"),(32&i||e.isClassStaticBlockDeclaration(n))&&r.push("static"),128&i&&r.push("abstract"),1&i&&r.push("export"),8192&i&&r.push("deprecated"),8388608&n.flags&&r.push("declare"),269===n.kind&&r.push("export"),r.length>0?r.join(","):""},e.getTypeArgumentOrTypeParameterList=function(n){return 176===n.kind||206===n.kind?n.typeArguments:e.isFunctionLike(n)||255===n.kind||256===n.kind?n.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(n){return!(10!==n&&13!==n&&!e.isTemplateLiteralKind(n))},e.isPunctuation=function(e){return 18<=e&&e<=78},e.isInsideTemplateLiteral=function(n,t,r){return e.isTemplateLiteralKind(n.kind)&&n.getStart(r)<t&&t<n.end||!!n.isUnterminated&&t===n.end},e.isAccessibilityModifier=function(e){switch(e){case 123:case 121:case 122:return!0}return!1},e.cloneCompilerOptions=function(n){var t=e.clone(n);return e.setConfigFileInOptions(t,n&&n.configFile),t},e.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(n){if(202===n.kind||203===n.kind){if(219===n.parent.kind&&n.parent.left===n&&63===n.parent.operatorToken.kind)return!0;if(242===n.parent.kind&&n.parent.initializer===n)return!0;if(e(291===n.parent.kind?n.parent.parent:n.parent))return!0}return!1},e.isInReferenceComment=function(e,n){return q(e,n,!0)},e.isInNonReferenceComment=function(e,n){return q(e,n,!1)},e.getReplacementSpanForContextToken=function(e){if(e)switch(e.kind){case 10:case 14:return Y(e);default:return X(e)}},e.createTextSpanFromNode=X,e.createTextSpanFromStringLiteralLikeContent=Y,e.createTextRangeFromNode=function(n,t){return e.createRange(n.getStart(t),n.end)},e.createTextSpanFromRange=function(n){return e.createTextSpanFromBounds(n.pos,n.end)},e.createTextRangeFromSpan=function(n){return e.createRange(n.start,n.start+n.length)},e.createTextChangeFromStartLength=function(n,t,r){return Q(e.createTextSpan(n,t),r)},e.createTextChange=Q,e.typeKeywords=[129,128,156,132,95,136,139,142,104,145,146,143,148,149,110,114,151,152,153],e.isTypeKeyword=function(n){return e.contains(e.typeKeywords,n)},e.isTypeKeywordToken=Z,e.isExternalModuleSymbol=function(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)},e.nodeSeenTracker=function(){var n=[];return function(t){var r=e.getNodeId(t);return!n[r]&&(n[r]=!0)}},e.getSnapshotText=function(e){return e.getText(0,e.getLength())},e.repeatString=function(e,n){for(var t="",r=0;r<n;r++)t+=e;return t},e.skipConstraint=function(e){return e.isTypeParameter()&&e.getConstraint()||e},e.getNameFromPropertyName=function(n){return 160===n.kind?e.isStringOrNumericLiteralLike(n.expression)?n.expression.text:void 0:e.isPrivateIdentifier(n)?e.idText(n):e.getTextOfIdentifierOrLiteral(n)},e.programContainsModules=function(e){return e.getSourceFiles().some((function(n){return!(n.isDeclarationFile||e.isSourceFileFromExternalLibrary(n)||!n.externalModuleIndicator&&!n.commonJsModuleIndicator)}))},e.programContainsEs6Modules=function(e){return e.getSourceFiles().some((function(n){return!n.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(n)&&!!n.externalModuleIndicator}))},e.compilerOptionsIndicateEs6Modules=function(e){return!!e.module||e.target>=2||!!e.noEmit},e.createModuleSpecifierResolutionHost=$,e.getModuleSpecifierResolverHost=ee,e.makeImportIfNecessary=function(e,n,t,r){return e||n&&n.length?ne(e,n,t,r):void 0},e.makeImport=ne,e.makeStringLiteral=te,(_=e.QuotePreference||(e.QuotePreference={}))[_.Single=0]="Single",_[_.Double=1]="Double",e.quotePreferenceFromString=re,e.getQuotePreference=ie,e.getQuoteFromPreference=function(n){switch(n){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(n)}},e.symbolNameNoDefault=function(n){var t=ae(n);return void 0===t?void 0:e.unescapeLeadingUnderscores(t)},e.symbolEscapedNameNoDefault=ae,e.isModuleSpecifierLike=function(n){return e.isStringLiteralLike(n)&&(e.isExternalModuleReference(n.parent)||e.isImportDeclaration(n.parent)||e.isRequireCall(n.parent,!1)&&n.parent.arguments[0]===n||e.isImportCall(n.parent)&&n.parent.arguments[0]===n)},e.isObjectBindingElementWithoutPropertyName=function(n){return e.isBindingElement(n)&&e.isObjectBindingPattern(n.parent)&&e.isIdentifier(n.name)&&!n.propertyName},e.getPropertySymbolFromBindingElement=function(e,n){var t=e.getTypeAtLocation(n.parent);return t&&e.getPropertyOfType(t,n.name.text)},e.getParentNodeInSpan=function(n,t,r){if(n)for(;n.parent;){if(e.isSourceFile(n.parent)||!oe(r,n.parent,t))return n;n=n.parent}},e.findModifier=function(n,t){return n.modifiers&&e.find(n.modifiers,(function(e){return e.kind===t}))},e.insertImports=function(n,t,r,i){var a=235===(e.isArray(r)?r[0]:r).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(t.statements,a),s=e.isArray(r)?e.stableSort(r,e.OrganizeImports.compareImportsOrRequireStatements):[r];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,l=s;c<l.length;c++){var u=l[c],d=e.OrganizeImports.getImportDeclarationInsertionIndex(o,u);if(0===d){var p=o[0]===t.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};n.insertNodeBefore(t,o[0],u,!1,p)}else{var f=o[d-1];n.insertNodeAfter(t,f,u)}}else{var m=e.lastOrUndefined(o);m?n.insertNodesAfter(t,m,s):n.insertNodesAtTopOfFile(t,s,i)}else n.insertNodesAtTopOfFile(t,s,i)},e.getTypeKeywordOfTypeOnlyImport=function(n,t){return e.Debug.assert(n.isTypeOnly),e.cast(n.getChildAt(0,t),Z)},e.textSpansEqual=se,e.documentSpansEqual=function(e,n){return e.fileName===n.fileName&&se(e.textSpan,n.textSpan)},e.forEachUnique=function(e,n){if(e)for(var t=0;t<e.length;t++)if(e.indexOf(e[t])===t){var r=n(e[t],t);if(r)return r}},e.isTextWhiteSpaceLike=function(n,t,r){for(var i=t;i<r;i++)if(!e.isWhiteSpaceLike(n.charCodeAt(i)))return!1;return!0},e.isFirstDeclarationOfSymbolParameter=ce;var le=function(){var n,t,r,i,a=10*e.defaultMaximumTruncationLength;l();var o=function(n){return c(n,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var t=n.length&&n[n.length-1].text;return i>a&&t&&"..."!==t&&(e.isWhiteSpaceLike(t.charCodeAt(t.length-1))||n.push(de(" ",e.SymbolDisplayPartKind.space)),n.push(de("...",e.SymbolDisplayPartKind.punctuation))),n},writeKeyword:function(n){return c(n,e.SymbolDisplayPartKind.keyword)},writeOperator:function(n){return c(n,e.SymbolDisplayPartKind.operator)},writePunctuation:function(n){return c(n,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(n){return c(n,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(n){return c(n,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(n){return c(n,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(n){return c(n,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(n){return c(n,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(n){return c(n,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,t){i>a||(s(),i+=e.length,n.push(ue(e,t)))},writeLine:function(){i>a||(i+=1,n.push(ye()),t=!0)},write:o,writeComment:o,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 r},increaseIndent:function(){r++},decreaseIndent:function(){r--},clear:l,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&t){var o=e.getIndentString(r);o&&(i+=o.length,n.push(de(o,e.SymbolDisplayPartKind.space))),t=!1}}function c(e,t){i>a||(s(),i+=e.length,n.push(de(e,t)))}function l(){n=[],t=!0,r=0,i=0}}();function ue(n,t){return de(n,function(n){var t=n.flags;return 3&t?ce(n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&t||32768&t||65536&t?e.SymbolDisplayPartKind.propertyName:8&t?e.SymbolDisplayPartKind.enumMemberName:16&t?e.SymbolDisplayPartKind.functionName:32&t?e.SymbolDisplayPartKind.className:64&t?e.SymbolDisplayPartKind.interfaceName:384&t?e.SymbolDisplayPartKind.enumName:1536&t?e.SymbolDisplayPartKind.moduleName:8192&t?e.SymbolDisplayPartKind.methodName:262144&t?e.SymbolDisplayPartKind.typeParameterName:524288&t||2097152&t?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(t))}function de(n,t){return{text:n,kind:e.SymbolDisplayPartKind[t]}}function pe(n){return de(e.tokenToString(n),e.SymbolDisplayPartKind.keyword)}function fe(n){return de(n,e.SymbolDisplayPartKind.text)}function me(n){return de(n,e.SymbolDisplayPartKind.linkText)}function _e(n,t){return{text:e.getTextOfNode(n),kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(t).fileName,textSpan:X(t)}}}function ge(n){return de(n,e.SymbolDisplayPartKind.link)}function ye(){return de("\n",e.SymbolDisplayPartKind.lineBreak)}function he(e){try{return e(le),le.displayParts()}finally{le.clear()}}function ve(e){return 0!=(33554432&e.flags)}function be(e){return 0!=(2097152&e.flags)}function Ee(e,n){void 0===n&&(n=!0);var t=e&&Se(e);return t&&!n&&De(t),t}function Te(n,t,r){var i=r(n);return i?e.setOriginalNode(i,n):i=Se(n,r),i&&!t&&De(i),i}function Se(n,t){var r=t?function(e){return Te(e,!0,t)}:Ee,i=t?function(e){return e&&Le(e,!0,t)}:function(e){return e&&xe(e)},a=e.visitEachChild(n,r,e.nullTransformationContext,i,r);if(a===n){var o=e.isStringLiteral(n)?e.setOriginalNode(e.factory.createStringLiteralFromNode(n),n):e.isNumericLiteral(n)?e.setOriginalNode(e.factory.createNumericLiteral(n.text,n.numericLiteralFlags),n):e.factory.cloneNode(n);return e.setTextRange(o,n)}return a.parent=void 0,a}function xe(n,t){return void 0===t&&(t=!0),n&&e.factory.createNodeArray(n.map((function(e){return Ee(e,t)})),n.hasTrailingComma)}function Le(n,t,r){return e.factory.createNodeArray(n.map((function(e){return Te(e,t,r)})),n.hasTrailingComma)}function De(e){Ae(e),Ce(e)}function Ae(e){Ie(e,512,Ne)}function Ce(n){Ie(n,1024,e.getLastChild)}function Ie(n,t,r){e.addEmitFlags(n,t);var i=r(n);i&&Ie(i,t,r)}function Ne(e){return e.forEachChild((function(e){return e}))}function ke(n,t,r,i,a){e.forEachLeadingCommentRange(r.text,n.pos,Pe(t,r,i,a,e.addSyntheticLeadingComment))}function Re(n,t,r,i,a){e.forEachTrailingCommentRange(r.text,n.end,Pe(t,r,i,a,e.addSyntheticTrailingComment))}function Oe(n,t,r,i,a){e.forEachTrailingCommentRange(r.text,n.pos,Pe(t,r,i,a,e.addSyntheticLeadingComment))}function Pe(e,n,t,r,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,t||s,n.text.slice(a,o),void 0!==r?r:c)}}function we(n,t){if(e.startsWith(n,t))return 0;var r=n.indexOf(" "+t);return-1===r&&(r=n.indexOf("."+t)),-1===r&&(r=n.indexOf('"'+t)),-1===r?-1:r+1}function Me(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Fe(e,n){return n.getTypeAtLocation(e.parent.parent.expression)}function Ge(e){return 172===e||173===e||174===e||164===e||166===e}function Be(e){return 254===e||169===e||167===e||170===e||171===e}function Ue(e){return 259===e}function Ve(e){return 235===e||236===e||238===e||243===e||244===e||245===e||249===e||251===e||165===e||257===e||264===e||263===e||270===e||262===e||269===e}function je(e,n){return He(e,e.fileExists,n)}function Ke(e){try{return e()}catch(e){return}}function He(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return Ke((function(){return n&&n.apply(e,t)}))}function We(n,t){if(!t.fileExists)return[];var r=[];return e.forEachAncestorDirectory(e.getDirectoryPath(n),(function(n){var i=e.combinePaths(n,"package.json");if(t.fileExists(i)){var a=ze(i,t);a&&r.push(a)}})),r}function ze(n,t){if(t.readFile){var r=function(e){try{return JSON.parse(e)}catch(e){return}}(t.readFile(n)||""),i={};if(r)for(var o=0,s=["dependencies","devDependencies","optionalDependencies","peerDependencies"];o<s.length;o++){var c=s[o],l=r[c];if(l){var u=new e.Map;for(var d in l)u.set(d,l[d]);i[c]=u}}var p=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return a(a({},i),{parseable:!!r,fileName:n,get:f,has:function(e,n){return!!f(e,n)}})}function f(e,n){void 0===n&&(n=15);for(var t=0,r=p;t<r.length;t++){var i=r[t],a=i[0],o=i[1];if(o&&n&a){var s=o.get(e);if(void 0!==s)return s}}}}function Je(n){return e.some(n.imports,(function(n){var t=n.text;return e.JsTyping.nodeCoreModules.has(t)}))}function qe(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function Xe(n){var t=n.getSourceFile();return!(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)&&(e.isInJSFile(n)||!e.findAncestor(n,e.isGlobalScopeAugmentation))}e.symbolPart=ue,e.displayPart=de,e.spacePart=function(){return de(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=pe,e.punctuationPart=function(n){return de(e.tokenToString(n),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(n){return de(e.tokenToString(n),e.SymbolDisplayPartKind.operator)},e.parameterNamePart=function(n){return de(n,e.SymbolDisplayPartKind.parameterName)},e.propertyNamePart=function(n){return de(n,e.SymbolDisplayPartKind.propertyName)},e.textOrKeywordPart=function(n){var t=e.stringToToken(n);return void 0===t?fe(n):pe(t)},e.textPart=fe,e.typeAliasNamePart=function(n){return de(n,e.SymbolDisplayPartKind.aliasName)},e.typeParameterNamePart=function(n){return de(n,e.SymbolDisplayPartKind.typeParameterName)},e.linkTextPart=me,e.linkNamePart=_e,e.linkPart=ge,e.buildLinkParts=function(n,t){var r,i=[ge("{@"+(e.isJSDocLink(n)?"link":e.isJSDocLinkCode(n)?"linkcode":"linkplain")+" ")];if(n.name){var a=null==t?void 0:t.getSymbolAtLocation(n.name),o=(null==a?void 0:a.valueDeclaration)||(null===(r=null==a?void 0:a.declarations)||void 0===r?void 0:r[0]);o?(i.push(_e(n.name,o)),n.text&&i.push(me(n.text))):i.push(me(e.getTextOfNode(n.name)+" "+n.text))}else n.text&&i.push(me(n.text));return i.push(ge("}")),i},e.getNewLineOrDefaultFromHost=function(e,n){var t;return(null==n?void 0:n.newLineCharacter)||(null===(t=e.getNewLine)||void 0===t?void 0:t.call(e))||"\r\n"},e.lineBreakPart=ye,e.mapToDisplayParts=he,e.typeToDisplayParts=function(e,n,t,r){return void 0===r&&(r=0),he((function(i){e.writeType(n,t,17408|r,i)}))},e.symbolToDisplayParts=function(e,n,t,r,i){return void 0===i&&(i=0),he((function(a){e.writeSymbol(n,t,r,8|i,a)}))},e.signatureToDisplayParts=function(e,n,t,r){return void 0===r&&(r=0),r|=25632,he((function(i){e.writeSignature(n,t,r,void 0,i)}))},e.isImportOrExportSpecifierName=function(n){return!!n.parent&&e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n},e.getScriptKind=function(n,t){return e.ensureScriptKind(n,t.getScriptKind&&t.getScriptKind(n))},e.getSymbolTarget=function(n,t){for(var r=n;be(r)||ve(r)&&r.target;)r=ve(r)&&r.target?r.target:e.skipAlias(r,t);return r},e.getUniqueSymbolId=function(n,t){return e.getSymbolId(e.skipAlias(n,t))},e.getFirstNonSpaceCharacterPosition=function(n,t){for(;e.isWhiteSpaceLike(n.charCodeAt(t));)t+=1;return t},e.getPrecedingNonSpaceCharacterPosition=function(n,t){for(;t>-1&&e.isWhiteSpaceSingleLine(n.charCodeAt(t));)t-=1;return t+1},e.getSynthesizedDeepClone=Ee,e.getSynthesizedDeepCloneWithReplacements=Te,e.getSynthesizedDeepClones=xe,e.getSynthesizedDeepClonesWithReplacements=Le,e.suppressLeadingAndTrailingTrivia=De,e.suppressLeadingTrivia=Ae,e.suppressTrailingTrivia=Ce,e.copyComments=function(e,n){var t=e.getSourceFile();!function(e,n){for(var t=e.getFullStart(),r=e.getStart(),i=t;i<r;i++)if(10===n.charCodeAt(i))return!0;return!1}(e,t.text)?Oe(e,n,t):ke(e,n,t),Re(e,n,t)},e.getUniqueName=function(n,t){for(var r=n,i=1;!e.isFileLevelUniqueName(t,r);i++)r=n+"_"+i;return r},e.getRenameLocation=function(n,t,r,i){for(var a=0,o=-1,s=0,c=n;s<c.length;s++){var l=c[s],u=l.fileName,d=l.textChanges;e.Debug.assert(u===t);for(var p=0,f=d;p<f.length;p++){var m=f[p],_=m.span,g=m.newText,y=we(g,r);if(-1!==y&&(o=_.start+a+y,!i))return o;a+=g.length-_.length}}return e.Debug.assert(i),e.Debug.assert(o>=0),o},e.copyLeadingComments=ke,e.copyTrailingComments=Re,e.copyTrailingAsLeadingComments=Oe,e.needsParentheses=function(n){return e.isBinaryExpression(n)&&27===n.operatorToken.kind||e.isObjectLiteralExpression(n)||e.isAsExpression(n)&&e.isObjectLiteralExpression(n.expression)},e.getContextualTypeFromParent=function(e,n){var t=e.parent;switch(t.kind){case 207:return n.getContextualType(t);case 219:var r=t,i=r.left,a=r.operatorToken,o=r.right;return Me(a.kind)?n.getTypeAtLocation(e===o?i:o):n.getContextualType(e);case 287:return t.expression===e?Fe(t,n):void 0;default:return n.getContextualType(e)}},e.quote=function(n,t,r){var i=ie(n,t),a=JSON.stringify(r);return 0===i?"'"+e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"')+"'":a},e.isEqualityOperatorKind=Me,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 221:case 208:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=Fe,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,n,t,r){var i=t.getTypeChecker(),a=!0,o=function(){a=!1},s=i.typeToTypeNode(e,n,1,{trackSymbol:function(e,n,t){return!(a=a&&0===i.isSymbolAccessible(e,n,t,!1).accessibility)},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:ee(t,r)});return a?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Ge,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=Be,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Ue,e.syntaxRequiresTrailingSemicolonOrASI=Ve,e.syntaxMayBeASICandidate=e.or(Ge,Be,Ue,Ve),e.positionIsASICandidate=function(n,t,r){var i=e.findAncestor(t,(function(t){return t.end!==n?"quit":e.syntaxMayBeASICandidate(t.kind)}));return!!i&&function(n,t){var r=n.getLastToken(t);if(r&&26===r.kind)return!1;if(Ge(n.kind)){if(r&&27===r.kind)return!1}else if(Ue(n.kind)){if((i=e.last(n.getChildren(t)))&&e.isModuleBlock(i))return!1}else if(Be(n.kind)){var i;if((i=e.last(n.getChildren(t)))&&e.isFunctionBlock(i))return!1}else if(!Ve(n.kind))return!1;if(238===n.kind)return!0;var a=M(n,e.findAncestor(n,(function(e){return!e.parent})),t);return!a||19===a.kind||t.getLineAndCharacterOfPosition(n.getEnd()).line!==t.getLineAndCharacterOfPosition(a.getStart(t)).line}(i,r)},e.probablyUsesSemicolons=function(n){var t=0,r=0;return e.forEachChild(n,(function i(a){if(Ve(a.kind)){var o=a.getLastToken(n);o&&26===o.kind?t++:r++}return t+r>=5||e.forEachChild(a,i)})),0===t&&r<=1||t/r>.2},e.tryGetDirectories=function(e,n){return He(e,e.getDirectories,n)||[]},e.tryReadDirectory=function(n,t,r,i,a){return He(n,n.readDirectory,t,r,i,a)||e.emptyArray},e.tryFileExists=je,e.tryDirectoryExists=function(n,t){return Ke((function(){return e.directoryProbablyExists(t,n)}))||!1},e.tryAndIgnoreErrors=Ke,e.tryIOAndConsumeErrors=He,e.findPackageJsons=function(n,t,r){var i=[];return e.forEachAncestorDirectory(n,(function(n){if(n===r)return!0;var a=e.combinePaths(n,"package.json");je(t,a)&&i.push(a)})),i},e.findPackageJson=function(n,t){var r;return e.forEachAncestorDirectory(n,(function(n){return"node_modules"===n||!!(r=e.findConfigFile(n,(function(e){return je(t,e)}),"package.json"))||void 0})),r},e.getPackageJsonsVisibleToFile=We,e.createPackageJsonInfo=ze,e.createPackageJsonImportFilter=function(n,t,r){var i,a=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(n.fileName)||We(n.fileName,r)).filter((function(e){return e.parseable}));return{allowsImportingAmbientModule:function(n,t){if(!a.length||!n.valueDeclaration)return!0;var r=c(n.valueDeclaration.getSourceFile().fileName,t);if(void 0===r)return!0;var i=e.stripQuotes(n.getName());return!!s(i)||(o(r)||o(i))},allowsImportingSourceFile:function(e,n){if(!a.length)return!0;var t=c(e.fileName,n);return!t||o(t)},allowsImportingSpecifier:function(n){return!(a.length&&!s(n))||(!(!e.pathIsRelative(n)&&!e.isRootedDiskPath(n))||o(n))}};function o(n){for(var t=l(n),r=0,i=a;r<i.length;r++){var o=i[r];if(o.has(t)||o.has(e.getTypesPackageName(t)))return!0}return!1}function s(t){return!!(e.isSourceFileJS(n)&&e.JsTyping.nodeCoreModules.has(t)&&(void 0===i&&(i=Je(n)),i))}function c(i,a){if(e.stringContains(i,"node_modules")){var o=e.moduleSpecifiers.getNodeModulesPackageName(r.getCompilationSettings(),n.path,i,a,t);if(o)return e.pathIsRelative(o)||e.isRootedDiskPath(o)?void 0:l(o)}}function l(n){var t=e.getPathComponents(e.getPackageNameFromTypesPackageName(n)).slice(1);return e.startsWith(t[0],"@")?t[0]+"/"+t[1]:t[0]}},e.consumesNodeCoreModules=Je,e.isInsideNodeModules=function(n){return e.contains(e.getPathComponents(n),"node_modules")},e.isDiagnosticWithLocation=qe,e.findDiagnosticForNode=function(n,t){var r=X(n),i=e.binarySearchKey(t,r,e.identity,e.compareTextSpans);if(i>=0){var a=t[i];return e.Debug.assertEqual(a.file,n.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,qe)}},e.getDiagnosticsWithinSpan=function(n,t){var r,i=e.binarySearchKey(t,n.start,(function(e){return e.start}),e.compareValues);for(i<0&&(i=~i);(null===(r=t[i-1])||void 0===r?void 0:r.start)===n.start;)i--;for(var a=[],o=e.textSpanEnd(n);;){var s=e.tryCast(t[i],qe);if(!s||s.start>o)break;e.textSpanContainsTextSpan(n,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(n){var t=n.startPosition,r=n.endPosition;return e.createTextSpanFromBounds(t,void 0===r?t:r)},e.mapOneOrMany=function(n,t,r){return void 0===r&&(r=e.identity),n?e.isArray(n)?r(e.map(n,t)):t(n,0):void 0},e.firstOrOnly=function(n){return e.isArray(n)?e.first(n):n},e.getNameForExportedSymbol=function(n,t){return 33554432&n.flags||"export="!==n.escapedName&&"default"!==n.escapedName?n.name:e.firstDefined(n.declarations,(function(n){var t;return e.isExportAssignment(n)?null===(t=e.tryCast(e.skipOuterExpressions(n.expression),e.isIdentifier))||void 0===t?void 0:t.text:void 0}))||e.codefix.moduleSymbolToValidIdentifier(function(n){var t;return e.Debug.checkDefined(n.parent,"Symbol parent was undefined. Flags: "+e.Debug.formatSymbolFlags(n.flags)+". Declarations: "+(null===(t=n.declarations)||void 0===t?void 0:t.map((function(n){var t=e.Debug.formatSyntaxKind(n.kind),r=e.isInJSFile(n),i=n.expression;return(r?"[JS]":"")+t+(i?" (expression: "+e.Debug.formatSyntaxKind(i.kind)+")":"")})).join(", "))+".")}(n),t)},e.stringContainsAt=function(e,n,t){var r=n.length;if(r+t>e.length)return!1;for(var i=0;i<r;i++)if(n.charCodeAt(i)!==e.charCodeAt(i+t))return!1;return!0},e.startsWithUnderscore=function(e){return 95===e.charCodeAt(0)},e.isGlobalDeclaration=function(e){return!Xe(e)},e.isNonGlobalDeclaration=Xe,e.isDeprecatedDeclaration=function(n){return!!(8192&e.getCombinedNodeFlagsAlwaysIncludeJSDoc(n))},e.shouldUseUriStyleNodeCoreModules=function(n,t){var r=e.firstDefined(n.imports,(function(n){if(e.JsTyping.nodeCoreModules.has(n.text))return e.startsWith(n.text,"node:")}));return null!=r?r:t.usesUriStyleNodeCoreModules}}(u||(u={})),function(e){function n(n){var t,r=1,i=e.createMultiMap(),a=new e.Map,o={isUsableByFile:function(e){return e===t},isEmpty:function(){return!i.size},clear:function(){i.clear(),a.clear(),t=void 0},add:function(n,s,l,u,d,p,f,m,_){n!==t&&(o.clear(),t=n);var g=1===p&&e.getLocalSymbolForExportDefault(s)||s,y=e.isExternalModuleSymbol(g)?e.unescapeLeadingUnderscores(l):e.getNameForExportedSymbol(g,m),h=e.stripQuotes(u.name),v=r++,b=33554432&s.flags?void 0:s,E=33554432&u.flags?void 0:u;b&&E||a.set(v,[s,u]),i.add(c(y,s,h,_),{id:v,symbolTableKey:l,symbolName:y,moduleName:h,moduleFile:d,moduleFileName:null==d?void 0:d.fileName,exportKind:p,targetFlags:e.skipAlias(s,_).flags,isFromPackageJson:f,symbol:b,moduleSymbol:E})},get:function(e,n,r,a,o){if(e===t){var l=i.get(c(n,r,a,o));return null==l?void 0:l.map(s)}},forEach:function(e,n){e===t&&i.forEach((function(e,t){var r=function(e){var n=e.substring(0,e.indexOf("|")),t=e.substring(e.lastIndexOf("|")+1);return{symbolName:n,ambientModuleName:"/"===t?void 0:t}}(t),i=r.symbolName,a=r.ambientModuleName;n(e.map(s),i,!!a)}))},releaseSymbols:function(){a.clear()},onFileChanged:function(n,r,i){return!(l(n)&&l(r)||(t&&t!==r.path||i&&e.consumesNodeCoreModules(n)!==e.consumesNodeCoreModules(r)||!e.arrayIsEqualTo(n.moduleAugmentations,r.moduleAugmentations)||!function(n,t){if(!e.arrayIsEqualTo(n.ambientModuleNames,t.ambientModuleNames))return!1;for(var r=-1,i=-1,a=function(a){var o=function(n){return e.isNonGlobalAmbientModule(n)&&n.name.text===a};if(r=e.findIndex(n.statements,o,r+1),i=e.findIndex(t.statements,o,i+1),n.statements[r]!==t.statements[i])return{value:!1}},o=0,s=t.ambientModuleNames;o<s.length;o++){var c=a(s[o]);if("object"==typeof c)return c.value}return!0}(n,r)?(o.clear(),0):(t=r.path,1)))}};return e.Debug.isDebugging&&Object.defineProperty(o,"__cache",{get:function(){return i}}),o;function s(t){if(t.symbol&&t.moduleSymbol)return t;var r=t.id,i=t.exportKind,o=t.targetFlags,s=t.isFromPackageJson,c=t.moduleFileName,l=a.get(r)||e.emptyArray,u=l[0],d=l[1];if(u&&d)return{symbol:u,moduleSymbol:d,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s};var p=(s?n.getPackageJsonAutoImportProvider():n.getCurrentProgram()).getTypeChecker(),f=t.moduleSymbol||d||e.Debug.checkDefined(t.moduleFile?p.getMergedSymbol(t.moduleFile.symbol):p.tryFindAmbientModule(t.moduleName)),m=t.symbol||u||e.Debug.checkDefined(2===i?p.resolveExternalModuleSymbol(f):p.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(t.symbolTableKey),f),"Could not find symbol '"+t.symbolName+"' by key '"+t.symbolTableKey+"' in module "+f.name);return a.set(r,[m,f]),{symbol:m,moduleSymbol:f,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s}}function c(n,t,r,i){var a=e.stripQuotes(r),o=e.isExternalModuleNameRelative(a)?"/":a;return n+"|"+function(e){for(var n=e.name;e.parent;)n+=","+e.parent.name,e=e.parent;return n}(e.skipAlias(t,i))+"|"+o}function l(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function t(n,t,i,a){var o,s;r(n.getTypeChecker(),n.getSourceFiles(),(function(e,t){return a(e,t,n,!1)}));var c=i&&(null===(o=t.getPackageJsonAutoImportProvider)||void 0===o?void 0:o.call(t));if(c){var l=e.timestamp();r(c.getTypeChecker(),c.getSourceFiles(),(function(e,n){return a(e,n,c,!0)})),null===(s=t.log)||void 0===s||s.call(t,"forEachExternalModuleToImportFrom autoImportProvider: "+(e.timestamp()-l))}}function r(n,t,r){for(var i=0,a=n.getAmbientModules();i<a.length;i++){var o=a[i];e.stringContains(o.name,"*")||r(o,void 0)}for(var s=0,c=t;s<c.length;s++){var l=c[s];e.isExternalOrCommonJsModule(l)&&r(n.getMergedSymbol(l.symbol),l)}}function i(e,n,t){var r=function(e,n){var t=n.resolveExternalModuleSymbol(e);if(t!==e)return{symbol:t,exportKind:2};var r=n.tryGetMemberInModuleExports("default",e);return r?{symbol:r,exportKind:1}:void 0}(e,n);if(r){var i=r.symbol,o=r.exportKind,c=s(i,n,t);return c&&a({symbol:i,exportKind:o},c)}}function o(n,t){return!(t.isUndefinedSymbol(n)||t.isUnknownSymbol(n)||e.isKnownSymbol(n)||e.isPrivateIdentifierSymbol(n))}function s(n,t,r){var i=e.getLocalSymbolForExportDefault(n);if(i)return{symbolForMeaning:i,name:i.name};var a,o=(a=n).declarations&&e.firstDefined(a.declarations,(function(n){var t;return e.isExportAssignment(n)?null===(t=e.tryCast(e.skipOuterExpressions(n.expression),e.isIdentifier))||void 0===t?void 0:t.text:e.isExportSpecifier(n)?(e.Debug.assert("default"===n.name.text,"Expected the specifier to be a default export"),n.propertyName&&n.propertyName.text):void 0}));if(void 0!==o)return{symbolForMeaning:n,name:o};if(2097152&n.flags){var c=t.getImmediateAliasedSymbol(n);if(c&&c.parent)return s(c,t,r)}return"default"!==n.escapedName&&"export="!==n.escapedName?{symbolForMeaning:n,name:n.getName()}:{symbolForMeaning:n,name:e.getNameForExportedSymbol(n,r.target)}}var c,l;(l=e.ImportKind||(e.ImportKind={}))[l.Named=0]="Named",l[l.Default=1]="Default",l[l.Namespace=2]="Namespace",l[l.CommonJS=3]="CommonJS",(c=e.ExportKind||(e.ExportKind={}))[c.Named=0]="Named",c[c.Default=1]="Default",c[c.ExportEquals=2]="ExportEquals",c[c.UMD=3]="UMD",e.createCacheableExportInfoMap=n,e.isImportableFile=function(n,t,r,i,a,o,s){var c;if(t===r)return!1;var l=null==s?void 0:s.get(t.path,r.path,i);if(void 0!==(null==l?void 0:l.isAutoImportable))return l.isAutoImportable;var u=e.hostGetCanonicalFileName(o),d=null===(c=o.getGlobalTypingsCacheLocation)||void 0===c?void 0:c.call(o),p=!!e.moduleSpecifiers.forEachFileNameOfModule(t.fileName,r.fileName,o,!1,(function(i){var a=n.getSourceFile(i);return(a===r||!a)&&function(n,t,r,i){var a=e.forEachAncestorDirectory(t,(function(n){return"node_modules"===e.getBaseFileName(n)?n:void 0})),o=a&&e.getDirectoryPath(r(a));return void 0===o||e.startsWith(r(n),o)||!!i&&e.startsWith(r(i),o)}(t.fileName,i,u,d)}));if(a){var f=p&&a.allowsImportingSourceFile(r,o);return null==s||s.setIsAutoImportable(t.path,r.path,i,f),f}return p},e.forEachExternalModuleToImportFrom=t,e.getExportInfoMap=function(r,a,s,c){var l,u,d,p,f,m=e.timestamp();null===(l=a.getPackageJsonAutoImportProvider)||void 0===l||l.call(a);var _=(null===(u=a.getCachedExportInfoMap)||void 0===u?void 0:u.call(a))||n({getCurrentProgram:function(){return s},getPackageJsonAutoImportProvider:function(){var e;return null===(e=a.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(a)}});if(_.isUsableByFile(r.path))return null===(d=a.log)||void 0===d||d.call(a,"getExportInfoMap: cache hit"),_;null===(p=a.log)||void 0===p||p.call(a,"getExportInfoMap: cache miss or empty; calculating new results");var g=s.getCompilerOptions(),y=e.getEmitScriptTarget(g),h=0;return t(s,a,!0,(function(n,t,a,s){++h%100==0&&(null==c||c.throwIfCancellationRequested());var l=new e.Map,u=a.getTypeChecker(),d=i(n,u,g);d&&o(d.symbol,u)&&_.add(r.path,d.symbol,1===d.exportKind?"default":"export=",n,t,d.exportKind,s,y,u),u.forEachExportAndPropertyOfModule(n,(function(i,a){i!==(null==d?void 0:d.symbol)&&o(i,u)&&e.addToSeen(l,i)&&_.add(r.path,i,a,n,t,0,s,y,u)}))})),null===(f=a.log)||void 0===f||f.call(a,"getExportInfoMap: done in "+(e.timestamp()-m)+" ms"),_},e.getDefaultLikeExportInfo=i}(u||(u={})),function(e){e.createClassifier=function(){var o=e.createScanner(99,!1);function s(i,s,c){var l=0,u=0,d=[],p=function(n){switch(n){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(n)}}(s),f=p.prefix,m=p.pushTemplate;i=f+i;var _=f.length;m&&d.push(15),o.setText(i);var g=0,y=[],h=0;do{l=o.scan(),e.isTrivia(l)||(E(),u=l);var v=o.getTextPos();if(r(o.getTokenPos(),v,_,a(l),y),v>=i.length){var b=t(o,l,e.lastOrUndefined(d));void 0!==b&&(g=b)}}while(1!==l);function E(){switch(l){case 43:case 68:n[u]||13!==o.reScanSlashToken()||(l=13);break;case 29:79===u&&h++;break;case 31:h>0&&h--;break;case 129:case 148:case 145:case 132:case 149:h>0&&!c&&(l=79);break;case 15:d.push(l);break;case 18:d.length>0&&d.push(l);break;case 19:if(d.length>0){var t=e.lastOrUndefined(d);15===t?17===(l=o.reScanTemplateToken(!1))?d.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(t,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(l))break;(24===u||e.isKeyword(u)&&e.isKeyword(l)&&!function(n,t){if(!e.isAccessibilityModifier(n))return!0;switch(t){case 135:case 147:case 133:case 124:return!0;default:return!1}}(u,l))&&(l=79)}}return{endOfLineState:g,spans:y}}return{getClassificationsForLine:function(n,t,r){return function(n,t){for(var r=[],a=n.spans,o=0,s=0;s<a.length;s+=3){var c=a[s],l=a[s+1],u=a[s+2];if(o>=0){var d=c-o;d>0&&r.push({length:d,classification:e.TokenClass.Whitespace})}r.push({length:l,classification:i(u)}),o=c+l}var p=t.length-o;return p>0&&r.push({length:p,classification:e.TokenClass.Whitespace}),{entries:r,finalLexState:n.endOfLineState}}(s(n,t,r),n)},getEncodedLexicalClassifications:s}};var n=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],(function(e){return e}),(function(){return!0}));function t(n,t,r){switch(t){case 10:if(!n.isUnterminated())return;for(var i=n.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return n.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(t)){if(!n.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 15===r?6:void 0}}function r(e,n,t,r,i){if(8!==r){0===e&&t>0&&(e+=t);var a=n-e;a>0&&i.push(e-t,a,r)}}function i(n){switch(n){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 a(n){if(e.isKeyword(n))return 3;if(function(e){switch(e){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}}(n)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(n))return 5;if(n>=18&&n<=78)return 10;switch(n){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;default:return e.isTemplateLiteralKind(n)?6:2}}function o(e,n){switch(n){case 259:case 255:case 256:case 254:case 224:case 211:case 212:e.throwIfCancellationRequested()}}function s(n,t,r,i,a){var s=[];return r.forEachChild((function l(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(t,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var d=n.getSymbolAtLocation(u),p=d&&c(d,e.getMeaningFromLocation(u),n);p&&function(n,t,r){var i=t-n;e.Debug.assert(i>0,"Classification had non-positive length of "+i),s.push(n),s.push(i),s.push(r)}(u.getStart(r),u.getEnd(),p)}u.forEachChild(l)}})),{spans:s,endOfLineState:0}}function c(n,t,r){var i=n.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&t||1&t&&function(n){return e.some(n.declarations,(function(n){return e.isModuleDeclaration(n)&&1===e.getModuleInstanceState(n)}))}(n)?14:void 0:2097152&i?c(r.getAliasedSymbol(n),t,r):2&t?64&i?13:262144&i?15:void 0:void 0}function l(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(n){e.Debug.assert(n.spans.length%3==0);for(var t=n.spans,r=[],i=0;i<t.length;i+=3)r.push({textSpan:e.createTextSpan(t[i],t[i+1]),classificationType:l(t[i+2])});return r}function d(n,t,r){var i=r.start,a=r.length,s=e.createScanner(99,!1,t.languageVariant,t.text),c=e.createScanner(99,!1,t.languageVariant,t.text),l=[];return h(t),{spans:l,endOfLineState:0};function u(e,n,t){l.push(e),l.push(n),l.push(t)}function d(n,r,i,a){if(3===r){var o=e.parseIsolatedJSDocComment(t.text,i,a);if(o&&o.jsDoc)return e.setParent(o.jsDoc,n),void function(e){var n,t,r,i,a,o,s,c=e.pos;if(e.tags)for(var l=0,d=e.tags;l<d.length;l++){var m=d[l];m.pos!==c&&p(c,m.pos-c),u(m.pos,1,10),u(m.tagName.pos,m.tagName.end-m.tagName.pos,18),c=m.tagName.end;var _=m.tagName.end;switch(m.kind){case 335:var g=m;b(g),_=g.isNameFirst&&(null===(n=g.typeExpression)||void 0===n?void 0:n.end)||g.name.end;break;case 342:var y=m;_=y.isNameFirst&&(null===(t=y.typeExpression)||void 0===t?void 0:t.end)||y.name.end;break;case 339:f(m),c=m.end,_=m.typeParameters.end;break;case 340:var v=m;_=304===(null===(r=v.typeExpression)||void 0===r?void 0:r.kind)&&(null===(i=v.fullName)||void 0===i?void 0:i.end)||(null===(a=v.typeExpression)||void 0===a?void 0:a.end)||_;break;case 333:case 337:case 334:_=m.typeExpression.end;break;case 338:h(m.typeExpression),c=m.end,_=m.typeExpression.end;break;case 336:h(m.typeExpression),c=m.end,_=(null===(o=m.typeExpression)||void 0===o?void 0:o.end)||_;break;case 341:_=(null===(s=m.name)||void 0===s?void 0:s.end)||_;break;case 323:case 324:_=m.class.end}"object"==typeof m.comment?p(m.comment.pos,m.comment.end-m.comment.pos):"string"==typeof m.comment&&p(_,m.end-_)}return void(c!==e.end&&p(c,e.end-c));function b(e){e.isNameFirst&&(p(c,e.name.pos-c),u(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end),e.typeExpression&&(p(c,e.typeExpression.pos-c),h(e.typeExpression),c=e.typeExpression.end),e.isNameFirst||(p(c,e.name.pos-c),u(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end)}}(o.jsDoc)}else if(2===r&&function(n,r){var i=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,a=t.text.substr(n,r),o=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im.exec(a);if(!o)return!1;if(!o[3]||!(o[3]in e.commentPragmas))return!1;var s=n;p(s,o[1].length),u(s+=o[1].length,o[2].length,10),u(s+=o[2].length,o[3].length,21),s+=o[3].length;for(var c=o[4],l=s;;){var d=i.exec(c);if(!d)break;var f=s+d.index+d[1].length;f>l&&(p(l,f-l),l=f),u(l,d[2].length,22),l+=d[2].length,d[3].length&&(p(l,d[3].length),l+=d[3].length),u(l,d[4].length,5),l+=d[4].length,d[5].length&&(p(l,d[5].length),l+=d[5].length),u(l,d[6].length,24),l+=d[6].length}(s+=o[4].length)>l&&p(l,s-l),o[5]&&(u(s,o[5].length,10),s+=o[5].length);var m=n+r;return s<m&&p(s,m-s),!0}(i,a))return;p(i,a)}function p(e,n){u(e,n,1)}function f(e){for(var n=0,t=e.getChildren();n<t.length;n++)h(t[n])}function m(n,t,r){var i;for(i=t;i<r&&!e.isLineBreak(n.charCodeAt(i));i++);for(u(t,i-t,1),c.setTextPos(i);c.getTextPos()<r;)_()}function _(){var e=c.getTextPos(),n=c.scan(),t=c.getTextPos(),r=y(n);r&&u(e,t-e,r)}function g(n){if(e.isJSDoc(n))return!0;if(e.nodeIsMissing(n))return!0;var r=function(e){switch(e.parent&&e.parent.kind){case 278:if(e.parent.tagName===e)return 19;break;case 279:if(e.parent.tagName===e)return 20;break;case 277:if(e.parent.tagName===e)return 21;break;case 283:if(e.parent.name===e)return 22}}(n);if(!e.isToken(n)&&11!==n.kind&&void 0===r)return!1;var i=11===n.kind?n.pos:function(n){for(s.setTextPos(n.pos);;){var r=s.getTextPos();if(!e.couldStartTrivia(t.text,r))return r;var i=s.scan(),a=s.getTextPos(),o=a-r;if(!e.isTrivia(i))return r;switch(i){case 4:case 5:continue;case 2:case 3:d(n,i,r,o),s.setTextPos(a);continue;case 7:var c=t.text,l=c.charCodeAt(r);if(60===l||62===l){u(r,o,1);continue}e.Debug.assert(124===l||61===l),m(c,r,a);break;case 6:break;default:e.Debug.assertNever(i)}}}(n),a=n.end-i;if(e.Debug.assert(a>=0),a>0){var o=r||y(n.kind,n);o&&u(i,a,o)}return!0}function y(n,t){if(e.isKeyword(n))return 3;if((29===n||31===n)&&t&&e.getTypeArgumentOrTypeParameterList(t.parent))return 10;if(e.isPunctuation(n)){if(t){var r=t.parent;if(63===n&&(252===r.kind||165===r.kind||162===r.kind||283===r.kind))return 5;if(219===r.kind||217===r.kind||218===r.kind||220===r.kind)return 5}return 10}if(8===n)return 4;if(9===n)return 25;if(10===n)return t&&283===t.parent.kind?24:6;if(13===n)return 6;if(e.isTemplateLiteralKind(n))return 6;if(11===n)return 23;if(79===n){if(t)switch(t.parent.kind){case 255:return t.parent.name===t?11:void 0;case 161:return t.parent.name===t?15:void 0;case 256:return t.parent.name===t?13:void 0;case 258:return t.parent.name===t?12:void 0;case 259:return t.parent.name===t?14:void 0;case 162:return t.parent.name===t?e.isThisIdentifier(t)?3:17:void 0}return 2}}function h(r){if(r&&e.decodedTextSpanIntersectsWith(i,a,r.pos,r.getFullWidth())){o(n,r.kind);for(var s=0,c=r.getChildren(t);s<c.length;s++){var l=c[s];g(l)||h(l)}}}}e.getSemanticClassifications=function(e,n,t,r,i){return u(s(e,n,t,r,i))},e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=function(e,n,t){return u(d(e,n,t))},e.getEncodedSyntacticClassifications=d}(u||(u={})),function(e){var n;(function(n){function t(e,n,t,i){return{spans:r(e,t,i,n),endOfLineState:0}}function r(n,t,r,o){var s=[];return n&&t&&function(n,t,r,o,s){var c=n.getTypeChecker(),u=!1;!function d(p){switch(p.kind){case 259:case 255:case 256:case 254:case 224:case 211:case 212:s.throwIfCancellationRequested()}if(p&&e.textSpanIntersectsWith(r,p.pos,p.getFullWidth())&&0!==p.getFullWidth()){var f=u;if((e.isJsxElement(p)||e.isJsxSelfClosingElement(p))&&(u=!0),e.isJsxExpression(p)&&(u=!1),e.isIdentifier(p)&&!u&&!function(n){var t=n.parent;return t&&(e.isImportClause(t)||e.isImportSpecifier(t)||e.isNamespaceImport(t))}(p)&&!e.isInfinityOrNaNString(p.escapedText)){var m=c.getSymbolAtLocation(p);if(m){2097152&m.flags&&(m=c.getAliasedSymbol(m));var _=function(n,t){var r=n.getFlags();if(32&r)return 0;if(384&r)return 1;if(524288&r)return 5;if(64&r){if(2&t)return 2}else if(262144&r)return 4;var a=n.valueDeclaration||n.declarations&&n.declarations[0];return a&&e.isBindingElement(a)&&(a=i(a)),a&&l.get(a.kind)}(m,e.getMeaningFromLocation(p));if(void 0!==_){var g=0;p.parent&&(e.isBindingElement(p.parent)||l.get(p.parent.kind)===_)&&p.parent.name===p&&(g=1),6===_&&a(p)&&(_=9),_=function(n,t,r){if(7===r||9===r||6===r){var i=n.getTypeAtLocation(t);if(i){var o=function(e){return e(i)||i.isUnion()&&i.types.some(e)};if(6!==r&&o((function(e){return e.getConstructSignatures().length>0})))return 0;if(o((function(e){return e.getCallSignatures().length>0}))&&!o((function(e){return e.getProperties().length>0}))||function(n){for(;a(n);)n=n.parent;return e.isCallExpression(n.parent)&&n.parent.expression===n}(t))return 9===r?11:10}}return r}(c,p,_);var y=m.valueDeclaration;if(y){var h=e.getCombinedModifierFlags(y),v=e.getCombinedNodeFlags(y);32&h&&(g|=2),256&h&&(g|=4),0!==_&&2!==_&&(64&h||2&v||8&m.getFlags())&&(g|=8),7!==_&&10!==_||!function(n,t){return e.isBindingElement(n)&&(n=i(n)),e.isVariableDeclaration(n)?(!e.isSourceFile(n.parent.parent.parent)||e.isCatchClause(n.parent))&&n.getSourceFile()===t:!!e.isFunctionDeclaration(n)&&!e.isSourceFile(n.parent)&&n.getSourceFile()===t}(y,t)||(g|=32),n.isSourceFileDefaultLibrary(y.getSourceFile())&&(g|=16)}else m.declarations&&m.declarations.some((function(e){return n.isSourceFileDefaultLibrary(e.getSourceFile())}))&&(g|=16);o(p,_,g)}}}e.forEachChild(p,d),u=f}}(t)}(n,t,r,(function(e,n,r){s.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)}),o),s}function i(n){for(;;){if(!e.isBindingElement(n.parent.parent))return n.parent.parent;n=n.parent.parent}}function a(n){return e.isQualifiedName(n.parent)&&n.parent.right===n||e.isPropertyAccessExpression(n.parent)&&n.parent.name===n}var o,s,c;(c=n.TokenEncodingConsts||(n.TokenEncodingConsts={}))[c.typeOffset=8]="typeOffset",c[c.modifierMask=255]="modifierMask",(s=n.TokenType||(n.TokenType={}))[s.class=0]="class",s[s.enum=1]="enum",s[s.interface=2]="interface",s[s.namespace=3]="namespace",s[s.typeParameter=4]="typeParameter",s[s.type=5]="type",s[s.parameter=6]="parameter",s[s.variable=7]="variable",s[s.enumMember=8]="enumMember",s[s.property=9]="property",s[s.function=10]="function",s[s.member=11]="member",(o=n.TokenModifier||(n.TokenModifier={}))[o.declaration=0]="declaration",o[o.static=1]="static",o[o.async=2]="async",o[o.readonly=3]="readonly",o[o.defaultLibrary=4]="defaultLibrary",o[o.local=5]="local",n.getSemanticClassifications=function(n,r,i,a){var o=t(n,r,i,a);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],l=0;l<s.length;l+=3)c.push({textSpan:e.createTextSpan(s[l],s[l+1]),classificationType:s[l+2]});return c},n.getEncodedSemanticClassifications=t;var l=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]])})((n=e.classifier||(e.classifier={})).v2020||(n.v2020={}))}(u||(u={})),function(e){var n;(function(t){function r(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((function(e){var t=e.name,r=e.kind,i=e.span;return{name:t,kind:r,kindModifiers:a(e.extension),sortText:n.SortText.LocationPriority,replacementSpan:i}}))}}function a(n){switch(n){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(n)}}var o,s;function c(t,r,i,a,o,s,c){var p,f,m=l(r.parent);switch(m.kind){case 194:var g=l(m.parent);switch(g.kind){case 176:var y=g,h=e.findAncestor(m,(function(e){return e.parent===y}));return h?{kind:2,types:d(a.getTypeArgumentConstraint(h)),isNewIdentifier:!1}:void 0;case 192:var v=g,b=v.indexType,E=v.objectType;if(!e.rangeContainsPosition(b,i))return;return u(a.getTypeFromTypeNode(E));case 198:return{kind:0,paths:_(t,r,o,s,a,c)};case 185:if(!e.isTypeReferenceNode(g.parent))return;var T=(p=g,f=m,e.mapDefined(p.types,(function(n){return n!==f&&e.isLiteralTypeNode(n)&&e.isStringLiteral(n.literal)?n.literal.text:void 0})));return{kind:2,types:d(a.getTypeArgumentConstraint(g)).filter((function(n){return!e.contains(T,n.value)})),isNewIdentifier:!1};default:return}case 291:return e.isObjectLiteralExpression(m.parent)&&m.name===r?function(t,r){var i=t.getContextualType(r);if(i){var a=t.getContextualType(r,4);return{kind:1,symbols:n.getPropertiesForObjectExpression(i,a,r,t),hasIndexSignature:e.hasIndexSignature(i)}}}(a,m.parent):A();case 205:var S=m,x=S.expression,L=S.argumentExpression;return r===e.skipParentheses(L)?u(a.getTypeAtLocation(x)):void 0;case 206:case 207:if(!function(n){return e.isCallExpression(n.parent)&&e.firstOrUndefined(n.parent.arguments)===n&&e.isIdentifier(n.parent.expression)&&"require"===n.parent.expression.escapedText}(r)&&!e.isImportCall(m)){var D=e.SignatureHelp.getArgumentInfoForCompletions(r,i,t);return D?function(n,t){var r=!1,i=new e.Map,a=[];return t.getResolvedSignature(n.invocation,a,n.argumentCount),{kind:2,types:e.flatMap(a,(function(a){if(e.signatureHasRestParameter(a)||!(n.argumentCount>a.parameters.length)){var o=t.getParameterType(a,n.argumentIndex);return r=r||!!(4&o.flags),d(o,i)}})),isNewIdentifier:r}}(D,a):A()}case 264:case 270:case 275:return{kind:0,paths:_(t,r,o,s,a,c)};default:return A()}function A(){return{kind:2,types:d(e.getContextualTypeFromParent(r,a)),isNewIdentifier:!1}}}function l(n){switch(n.kind){case 189:return e.walkUpParenthesizedTypes(n);case 210:return e.walkUpParenthesizedExpressions(n);default:return n}}function u(n){return n&&{kind:1,symbols:e.filter(n.getApparentProperties(),(function(n){return!(n.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(n.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(n)}}function d(n,t){return void 0===t&&(t=new e.Map),n?(n=e.skipConstraint(n)).isUnion()?e.flatMap(n.types,(function(e){return d(e,t)})):!n.isStringLiteral()||1024&n.flags||!e.addToSeen(t,n.value)?e.emptyArray:[n]:e.emptyArray}function p(e,n,t){return{name:e,kind:n,extension:t}}function f(e){return p(e,"directory",void 0)}function m(n,t,r){var i=function(n,t){var r=Math.max(n.lastIndexOf(e.directorySeparator),n.lastIndexOf(e.altDirectorySeparator)),i=-1!==r?r+1:0,a=n.length-i;return 0===a||e.isIdentifierText(n.substr(i,a),99)?void 0:e.createTextSpan(t+i,a)}(n,t),a=0===n.length?void 0:e.createTextSpan(t,n.length);return r.map((function(n){var t=n.name,r=n.kind,o=n.extension;return-1!==Math.max(t.indexOf(e.directorySeparator),t.indexOf(e.altDirectorySeparator))?{name:t,kind:r,extension:o,span:a}:{name:t,kind:r,extension:o,span:i}}))}function _(n,t,r,a,o,s){return m(t.text,t.getStart(n)+1,function(n,t,r,a,o,s){var c=e.normalizeSlashes(t.text),l=n.path,u=e.getDirectoryPath(l);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var n=e.length>=3&&46===e.charCodeAt(1)?2:1,t=e.charCodeAt(n);return 47===t||92===t}return!1}(c)||!r.baseUrl&&(e.isRootedDiskPath(c)||e.isUrl(c))?function(n,t,r,a,o,s){var c=g(r,"js"===s.importModuleSpecifierEnding?2:0);return r.rootDirs?function(n,t,r,a,o,s,c){var l=function(n,t,r,a){n=n.map((function(n){return e.normalizePath(e.isRootedDiskPath(n)?n:e.combinePaths(t,n))}));var o=e.firstDefined(n,(function(n){return e.containsPath(n,r,t,a)?r.substr(n.length):void 0}));return e.deduplicate(i(i([],n.map((function(n){return e.combinePaths(n,o)})),!0),[r],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(n,o.project||s.getCurrentDirectory(),r,!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()));return e.flatMap(l,(function(e){return h(t,e,a,s,c)}))}(r.rootDirs,n,t,c,r,a,o):h(n,t,c,a,o)}(c,u,r,a,l,s):function(n,t,r,i,a){var o=r.baseUrl,s=r.paths,c=[],l=g(r);if(o){var u=r.project||i.getCurrentDirectory(),d=e.normalizePath(e.combinePaths(u,o));h(n,d,l,i,void 0,c),s&&v(c,n,d,l.extensions,s,i)}for(var f=b(n),m=0,_=function(n,t,r){var i=r.getAmbientModules().map((function(n){return e.stripQuotes(n.name)})).filter((function(t){return e.startsWith(t,n)}));if(void 0!==t){var a=e.ensureTrailingDirectorySeparator(t);return i.map((function(n){return e.removePrefix(n,a)}))}return i}(n,f,a);m<_.length;m++){var y=_[m];c.push(p(y,"external module name",void 0))}if(T(i,r,t,f,l,c),e.getEmitModuleResolutionKind(r)===e.ModuleResolutionKind.NodeJs){var E=!1;if(void 0===f)for(var S=function(e){c.some((function(n){return n.name===e}))||(E=!0,c.push(p(e,"external module name",void 0)))},L=0,D=function(n,t){if(!n.readFile||!n.fileExists)return e.emptyArray;for(var r=[],i=0,a=e.findPackageJsons(t,n);i<a.length;i++)for(var o=a[i],s=e.readJson(o,n),c=0,l=x;c<l.length;c++){var u=s[l[c]];if(u)for(var d in u)u.hasOwnProperty(d)&&!e.startsWith(d,"@types/")&&r.push(d)}return r}(i,t);L<D.length;L++)S(D[L]);E||e.forEachAncestorDirectory(t,(function(t){var r=e.combinePaths(t,"node_modules");e.tryDirectoryExists(i,r)&&h(n,r,l,i,void 0,c)}))}return c}(c,u,r,a,o)}(n,t,r,a,o,s))}function g(e,n){return void 0===n&&(n=0),{extensions:y(e),includeExtensionsOption:n}}function y(n){var t=e.getSupportedExtensions(n);return n.resolveJsonModule&&e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs?t.concat(".json"):t}function h(n,t,r,i,a,o){var s=r.extensions,c=r.includeExtensionsOption;void 0===o&&(o=[]),void 0===n&&(n=""),n=e.normalizeSlashes(n),e.hasTrailingDirectorySeparator(n)||(n=e.getDirectoryPath(n)),""===n&&(n="."+e.directorySeparator),n=e.ensureTrailingDirectorySeparator(n);var l=e.resolvePath(t,n),u=e.hasTrailingDirectorySeparator(l)?l:e.getDirectoryPath(l),d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(i,u))return o;var m=e.tryReadDirectory(i,u,s,void 0,["./*"]);if(m){for(var _=new e.Map,g=0,y=m;g<y.length;g++){var h=y[g];if(h=e.normalizePath(h),!a||0!==e.comparePaths(h,a,t,d)){var b=void 0,E=e.moduleSpecifiers.tryGetJSExtensionForFile(h,i.getCompilationSettings());0!==c||e.fileExtensionIs(h,".json")?2===c&&E?(b=e.changeExtension(e.getBaseFileName(h),E),_.set(b,E)):(b=e.getBaseFileName(h),_.set(b,e.tryGetExtensionFromPath(h))):(b=e.removeFileExtension(e.getBaseFileName(h)),_.set(b,e.tryGetExtensionFromPath(h)))}}_.forEach((function(e,n){o.push(p(n,"script",e))}))}var T=e.tryGetDirectories(i,u);if(T)for(var S=0,x=T;S<x.length;S++){var L=x[S],D=e.getBaseFileName(e.normalizePath(L));"@types"!==D&&o.push(f(D))}var A=e.findPackageJson(u,i);if(A){var C=e.readJson(A,i).typesVersions;if("object"==typeof C){var I=e.getPackageJsonTypesVersionsPaths(C),N=I&&I.paths,k=l.slice(e.ensureTrailingDirectorySeparator(u).length);N&&v(o,k,u,s,N,i)}}return o}function v(n,t,r,i,a,o){for(var s in a)if(e.hasProperty(a,s)){var c=a[s];if(c)for(var l=function(e,t,r){n.some((function(n){return n.name===e}))||n.push(p(e,t,r))},u=0,d=E(s,c,t,r,i,o);u<d.length;u++){var f=d[u];l(f.name,f.kind,f.extension)}}}function b(n){return L(n)?e.hasTrailingDirectorySeparator(n)?n:e.getDirectoryPath(n):void 0}function E(n,t,r,a,o,s){if(!e.endsWith(n,"*"))return e.stringContains(n,"*")?e.emptyArray:u(n);var c=n.slice(0,n.length-1),l=e.tryRemovePrefix(r,c);return void 0===l?u(c):e.flatMap(t,(function(n){return function(n,t,r,a,o){if(o.readDirectory){var s=e.tryParsePattern(r);if(void 0!==s&&!e.isString(s)){var c=e.resolvePath(s.prefix),l=e.hasTrailingDirectorySeparator(s.prefix)?c:e.getDirectoryPath(c),u=e.hasTrailingDirectorySeparator(s.prefix)?"":e.getBaseFileName(c),d=L(n),m=d?e.hasTrailingDirectorySeparator(n)?n:e.getDirectoryPath(n):void 0,_=d?e.combinePaths(l,u+m):l,g=e.normalizePath(s.suffix),y=e.normalizePath(e.combinePaths(t,_)),h=d?y:e.ensureTrailingDirectorySeparator(y)+u,v=g?"**/*":"./*",b=e.mapDefined(e.tryReadDirectory(o,y,a,void 0,[v]),(function(n){var t=e.tryGetExtensionFromPath(n),r=T(n);return void 0===r?void 0:p(e.removeFileExtension(r),"script",t)})),E=e.mapDefined(e.tryGetDirectories(o,y).map((function(n){return e.combinePaths(y,n)})),(function(e){var n=T(e);return void 0===n?void 0:f(n)}));return i(i([],b,!0),E,!0)}}function T(n){var t,r,i,a=(t=e.normalizePath(n),r=h,i=g,e.startsWith(t,r)&&e.endsWith(t,i)?t.slice(r.length,t.length-i.length):void 0);return void 0===a?void 0:function(n){return n[0]===e.directorySeparator?n.slice(1):n}(a)}}(l,a,n,o,s)}));function u(n){return e.startsWith(n,r)?[f(n)]:e.emptyArray}}function T(n,t,r,i,a,o){void 0===o&&(o=[]);for(var s=new e.Map,c=0,l=e.tryAndIgnoreErrors((function(){return e.getEffectiveTypeRoots(t,n)}))||e.emptyArray;c<l.length;c++)m(l[c]);for(var u=0,d=e.findPackageJsons(r,n);u<d.length;u++){var f=d[u];m(e.combinePaths(e.getDirectoryPath(f),"node_modules/@types"))}return o;function m(r){if(e.tryDirectoryExists(n,r))for(var c=0,l=e.tryGetDirectories(n,r);c<l.length;c++){var u=l[c],d=e.unmangleScopedPackageName(u);if(!t.types||e.contains(t.types,d))if(void 0===i)s.has(d)||(o.push(p(d,"external module name",void 0)),s.set(d,!0));else{var f=e.combinePaths(r,u),m=e.tryRemoveDirectoryPrefix(i,d,e.hostGetCanonicalFileName(n));void 0!==m&&h(m,f,a,n,void 0,o)}}}}t.getStringLiteralCompletions=function(t,i,a,o,s,l,u,d){if(e.isInReferenceComment(t,i)){var p=function(n,t,r,i){var a=e.getTokenAtPosition(n,t),o=e.getLeadingCommentRanges(n.text,a.pos),s=o&&e.find(o,(function(e){return t>=e.pos&&t<=e.end}));if(s){var c=n.text.slice(s.pos,t),l=S.exec(c);if(l){var u=l[1],d=l[2],p=l[3],f=e.getDirectoryPath(n.path),_="path"===d?h(p,f,g(r,1),i,n.path):"types"===d?T(i,r,f,b(p),g(r)):e.Debug.fail();return m(p,s.pos+u.length,_)}}}(t,i,s,l);return p&&r(p)}if(e.isInString(t,i,a)){if(!a||!e.isStringLiteralLike(a))return;return function(t,i,a,o,s,c,l){if(void 0!==t){var u=e.createTextSpanFromStringLiteralLikeContent(i);switch(t.kind){case 0:return r(t.paths);case 1:var d=[];return n.getCompletionEntriesFromSymbols(t.symbols,d,i,a,a,o,99,s,4,l,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:t.hasIndexSignature,optionalReplacementSpan:u,entries:d};case 2:return d=t.types.map((function(t){return{name:t.value,kindModifiers:"",kind:"string",sortText:n.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(i)}})),{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:u,entries:d};default:return e.Debug.assertNever(t)}}}(p=c(t,a,i,o,s,l,d),a,t,o,u,s,d)}},t.getStringLiteralCompletionDetails=function(t,r,i,o,s,l,u,d,p){if(o&&e.isStringLiteralLike(o)){var f=c(r,o,i,s,l,u,p);return f&&function(t,r,i,o,s,c){switch(i.kind){case 0:return(l=e.find(i.paths,(function(e){return e.name===t})))&&n.createCompletionDetails(t,a(l.extension),l.kind,[e.textPart(t)]);case 1:var l;return(l=e.find(i.symbols,(function(e){return e.name===t})))&&n.createCompletionDetailsForSymbol(l,s,o,r,c);case 2:return e.find(i.types,(function(e){return e.value===t}))?n.createCompletionDetails(t,"","type",[e.textPart(t)]):void 0;default:return e.Debug.assertNever(i)}}(t,o,f,r,s,d)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(o||(o={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include",e[e.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"}(s||(s={}));var S=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,x=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function L(n){return e.stringContains(n,e.directorySeparator)}})((n=e.Completions||(e.Completions={})).StringCompletions||(n.StringCompletions={}))}(u||(u={})),function(e){!function(n){var t,r,i,o,s,c,l,u;function d(e){return!!(e&&4&e.kind)}function p(e){return!(!e||32!==e.kind)}function f(e){return(d(e)||p(e))&&!!e.isFromPackageJson}function m(t,r,i,a,o,s,c){var l,u,d,p=e.timestamp(),f=!1,m=0,_=0,g=0,y=0,h=c({tryResolve:function(t,c){if(c){var l=e.codefix.getModuleSpecifierForBestExportInfo(t,a,i,r,o);return l&&m++,l}var u=s||o.allowIncompleteCompletions&&_<n.moduleSpecifierResolutionLimit,d=!u&&o.allowIncompleteCompletions&&y<n.moduleSpecifierResolutionCacheAttemptLimit,p=u||d?e.codefix.getModuleSpecifierForBestExportInfo(t,a,i,r,o,d):void 0;return(!u&&!d||d&&!p)&&(f=!0),_+=(null==p?void 0:p.computedWithoutCacheCount)||0,g+=t.length-_,d&&y++,p},resolutionLimitExceeded:function(){return f}}),v=y?" ("+(g/y*100).toFixed(1)+"% hit rate)":"";return null===(l=r.log)||void 0===l||l.call(r,t+": resolved "+_+" module specifiers, plus "+m+" ambient and "+g+" from cache"+v),null===(u=r.log)||void 0===u||u.call(r,t+": response is "+(f?"incomplete":"complete")),null===(d=r.log)||void 0===d||d.call(r,t+": "+(e.timestamp()-p)),h}function _(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function g(n){return 79===(null==n?void 0:n.kind)?e.createTextSpanFromNode(n):void 0}function y(n,t){return e.isSourceFileJS(n)&&!e.isCheckJsEnabledForFile(n,t)}function h(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function v(n,t,r){return"object"==typeof r?e.pseudoBigIntToString(r)+"n":e.isString(r)?e.quote(n,t,r):JSON.stringify(r)}function b(e,n,r){return{name:v(e,n,r),kind:"string",kindModifiers:"",sortText:t.LocationPriority}}function E(n,t,r,i,a,o,s,c,l,u,m,_,g,y,h,v){var b,E,D,A,C,I,N=e.getReplacementSpanForContextToken(r),k=l&&function(e){return!!(16&e.kind)}(l),R=l&&function(e){return!!(2&e.kind)}(l)||c;if(l&&function(e){return!!(1&e.kind)}(l))E=c?"this"+(k?"?.":"")+"["+S(a,v,s)+"]":"this"+(k?"?.":".")+s;else if((R||k)&&m){E=R?c?"["+S(a,v,s)+"]":"["+s+"]":s,(k||m.questionDotToken)&&(E="?."+E);var O=e.findChildOfKind(m,24,a)||e.findChildOfKind(m,28,a);if(!O)return;var P=e.startsWith(s,m.name.text)?m.name.end:O.end;N=e.createTextSpanFromBounds(O.getStart(a),P)}if(_&&(void 0===E&&(E=s),E="{"+E+"}","boolean"!=typeof _&&(N=e.createTextSpanFromNode(_,a))),l&&function(e){return!!(8&e.kind)}(l)&&m){void 0===E&&(E=s);var w=e.findPrecedingToken(m.pos,a),M="";w&&e.positionIsASICandidate(w.end,w.parent,a)&&(M=";"),M+="(await "+m.expression.getText()+")",E=c?""+M+E:M+(k?"?.":".")+E,N=e.createTextSpanFromBounds(m.getStart(a),m.end)}if(p(l)&&(C=[e.textPart(l.moduleSpecifier)],g&&(b=function(n,t,r,i,a,o){var s=t.getSourceFile(),c=e.createTextSpanFromNode(t,s),l=e.quote(s,o,r.moduleSpecifier),u=r.isDefaultExport?1:"export="===r.exportName?2:0,d=o.includeCompletionsWithSnippetText?"$1":"",p=i?";":"";switch(e.codefix.getImportKind(s,u,a,!0)){case 3:return{replacementSpan:c,insertText:"import "+n+d+" = require("+l+")"+p};case 1:return{replacementSpan:c,insertText:"import "+n+d+" from "+l+p};case 2:return{replacementSpan:c,insertText:"import * as "+n+" from "+l+p};case 0:return{replacementSpan:c,insertText:"import { "+n+d+" } from "+l+p}}}(s,g,l,y,h,v),E=b.insertText,N=b.replacementSpan,A=!!v.includeCompletionsWithSnippetText||void 0)),void 0===E||v.includeCompletionsWithInsertText)return(d(l)||p(l))&&(D=T(l),I=!g),{name:s,kind:e.SymbolDisplay.getSymbolKind(o,n,i),kindModifiers:e.SymbolDisplay.getSymbolModifiers(o,n),sortText:t,source:L(l),hasAction:!!I||void 0,isRecommended:x(n,u,o)||void 0,insertText:E,replacementSpan:N,sourceDisplay:C,isSnippet:A,isPackageJsonImport:f(l)||void 0,isImportStatementCompletion:!!g||void 0,data:D}}function T(n){return{exportName:n.exportName,fileName:n.fileName,ambientModuleName:n.fileName?void 0:e.stripQuotes(n.moduleSymbol.name),isPackageJsonImport:!!n.isFromPackageJson||void 0,moduleSpecifier:p(n)?n.moduleSpecifier:void 0}}function S(n,t,r){return/^\d+$/.test(r)?r:e.quote(n,t,r)}function x(e,n,t){return e===n||!!(1048576&e.flags)&&t.getExportSymbolOfSymbol(e)===n}function L(n){return d(n)?e.stripQuotes(n.moduleSymbol.name):p(n)?n.moduleSpecifier:1===(null==n?void 0:n.kind)?i.ThisProperty:void 0}function D(n,t,r,i,a,o,s,c,l,u,d,p,f,m,_,g,y,h,v){for(var b,T=e.timestamp(),S=(M=i,e.findAncestor(M,(function(n){return e.isFunctionBlock(n)||function(n){return n.parent&&e.isArrowFunction(n.parent)&&n.parent.body===n}(n)||e.isBindingPattern(n)?"quit":e.isVariableDeclaration(n)}))),x=e.probablyUsesSemicolons(a),L=new e.Map,D=0;D<n.length;D++){var A=n[D],C=null==h?void 0:h[D],I=w(A,s,C,l,!!m);if(I&&!L.get(I.name)&&(1!==l||!v||F(A,v))){var N=I.name,k=I.needsConvertPropertyAccess,R=null!==(b=null==v?void 0:v[e.getSymbolId(A)])&&void 0!==b?b:11,O=E(A,(Q(A,o)?8+R:R).toString(),r,i,a,o,N,k,C,y,f,_,g,x,d,u);if(O){var P=!(C||void 0===A.parent&&!e.some(A.declarations,(function(e){return e.getSourceFile()===i.getSourceFile()})));L.set(N,P),t.push(O)}}}var M;return c("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-T)),{has:function(e){return L.has(e)},add:function(e){return L.set(e,!0)}};function F(n,t){if(!e.isSourceFile(i)){if(e.isExportAssignment(i.parent))return!0;if(S&&n.valueDeclaration===S)return!1;var r=e.skipAlias(n,o);if(a.externalModuleIndicator&&!d.allowUmdGlobalAccess&&15===t[e.getSymbolId(n)]&&(16===t[e.getSymbolId(r)]||11===t[e.getSymbolId(r)]))return!1;if(n=r,e.isInRightSideOfInternalImportEqualsDeclaration(i))return!!(1920&n.flags);if(p)return Y(n,o)}return!!(111551&e.getCombinedLocalAndExportSymbolFlags(n))}}function A(n,t,r,i,a,o,s){if(a.data){var c=P(a.name,a.data,n,o);if(c)return{type:"symbol",symbol:c.symbol,location:e.getTouchingPropertyName(r,i),previousToken:e.findPrecedingToken(i,r,void 0),isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:c.origin}}var l=n.getCompilerOptions(),u=R(n,t,r,y(r,l),i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},a,o);if(!u)return{type:"none"};if(0!==u.kind)return{type:"request",request:u};var d=u.symbols,p=u.literals,f=u.location,m=u.completionKind,_=u.symbolToOriginInfoMap,g=u.previousToken,h=u.isJsxInitializer,b=u.isTypeOnlyLocation,E=e.find(p,(function(e){return v(r,s,e)===a.name}));return void 0!==E?{type:"literal",literal:E}:e.firstDefined(d,(function(e,n){var t=_[n],r=w(e,l.target,t,m,u.isJsxIdentifierExpected);return r&&r.name===a.name&&L(t)===a.source?{type:"symbol",symbol:e,location:f,origin:t,previousToken:g,isJsxInitializer:h,isTypeOnlyLocation:b}:void 0}))||{type:"none"}}function C(n,t,r){return N(n,"",t,[e.displayPart(n,r)])}function I(n,t,r,i,a,o,s){var c=t.runWithCancellationToken(a,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,n,r,i,i,7)})),l=c.displayParts,u=c.documentation,d=c.symbolKind,p=c.tags;return N(n.name,e.SymbolDisplay.getSymbolModifiers(t,n),d,l,u,p,o,s)}function N(e,n,t,r,i,a,o,s){return{name:e,kindModifiers:n,kind:t,displayParts:r,documentation:i,tags:a,codeActions:o,source:s,sourceDisplay:s}}function k(n,t,r){var i=r.getAccessibleSymbolChain(n,t,67108863,!1);return i?e.first(i):n.parent&&(function(e){var n;return!!(null===(n=e.declarations)||void 0===n?void 0:n.some((function(e){return 300===e.kind})))}(n.parent)?n:k(n.parent,t,r))}function R(n,t,r,i,a,o,s,c,l){var u=n.getTypeChecker(),d=e.timestamp(),p=e.getTokenAtPosition(r,a);t("getCompletionData: Get current token: "+(e.timestamp()-d)),d=e.timestamp();var f=e.isInComment(r,a,p);t("getCompletionData: Is inside comment: "+(e.timestamp()-d));var _=!1,g=!1;if(f){if(e.hasDocComment(r,a)){if(64===r.text.charCodeAt(a-1))return{kind:1};var y=e.getLineStartPositionForPosition(a,r);if(!/[^\*|\s(/)]/.test(r.text.substring(y,a)))return{kind:2}}var h=function(n,t){var r=e.findAncestor(n,e.isJSDoc);return r&&r.tags&&(e.rangeContainsPosition(r,t)?e.findLast(r.tags,(function(e){return e.pos<t})):void 0)}(p,a);if(h){if(h.tagName.pos<=a&&a<=h.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 335:case 342:case 336:case 338:case 340:return!0;default:return!1}}(h)&&h.typeExpression&&304===h.typeExpression.kind&&((p=e.getTokenAtPosition(r,a))&&(e.isDeclarationName(p)||342===p.parent.kind&&p.parent.name===p)||(_=Te(h.typeExpression))),!_&&e.isJSDocParameterTag(h)&&(e.nodeIsMissing(h.name)||h.name.pos<=a&&a<=h.name.end))return{kind:3,tag:h}}if(!_)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}d=e.timestamp();var v=O(a,r),b=v.previousToken,E=v.contextToken;t("getCompletionData: Get previous token: "+(e.timestamp()-d));var T,S,x=p,L=!1,D=!1,A=!1,C=!1,I=!1,N=!1,R=e.getTouchingPropertyName(r,a);if(E){var P=q(E);if(154===P)return{kind:4,keywords:[154]};if(P&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(S=P),!S&&function(n){var i=e.timestamp(),o=function(n){return(e.isRegularExpressionLiteral(n)||e.isStringTextContainingNode(n))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(n)),a)||a===n.end&&(!!n.isUnterminated||e.isRegularExpressionLiteral(n)))}(n)||function(n){var t=n.parent,i=t.kind;switch(n.kind){case 27:return 252===i||function(n){return 253===n.parent.kind&&!e.isPossiblyTypeArgumentPosition(n,r,u)}(n)||235===i||258===i||he(i)||256===i||200===i||257===i||e.isClassLike(t)&&!!t.typeParameters&&t.typeParameters.end>=n.pos;case 24:case 22:return 200===i;case 58:return 201===i;case 20:return 290===i||he(i);case 18:return 258===i;case 29:return 255===i||224===i||256===i||257===i||e.isFunctionLikeKind(i);case 124:return 165===i&&!e.isClassLike(t.parent);case 25:return 162===i||!!t.parent&&200===t.parent.kind;case 123:case 121:case 122:return 162===i&&!e.isConstructorDeclaration(t.parent);case 127:return 268===i||273===i||266===i;case 135:case 147:return!z(n);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(n.parent)&&!e.isMethodDeclaration(n.parent)}if(U(j(n))&&z(n))return!1;if(ge(n)&&(!e.isIdentifier(n)||e.isParameterPropertyModifier(j(n))||Te(n)))return!1;switch(j(n)){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(n.parent)}if(e.findAncestor(n.parent,e.isClassLike)&&n===b&&ye(n,a))return!1;var o=e.getAncestor(n.parent,165);if(o&&n!==b&&e.isClassLike(b.parent.parent)&&a<=b.end){if(ye(n,b.end))return!1;if(63!==n.kind&&(e.isInitializedProperty(o)||e.hasType(o)))return!0}return e.isDeclarationName(n)&&!e.isShorthandPropertyAssignment(n.parent)&&!e.isJsxAttribute(n.parent)&&!(e.isClassLike(n.parent)&&(n!==b||a>b.end))}(n)||function(e){if(8===e.kind){var n=e.getFullText();return"."===n.charAt(n.length-1)}return!1}(n)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(278===e.parent.kind)return 278!==R.parent.kind;if(279===e.parent.kind||277===e.parent.kind)return!!e.parent.parent&&276===e.parent.parent.kind}return!1}(n)||e.isBigIntLiteral(n);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-i)),o}(E))return void t("Returning an empty list because completion was requested in an invalid position.");var w=E.parent;if(24===E.kind||28===E.kind)switch(L=24===E.kind,D=28===E.kind,w.kind){case 204:x=(T=w).expression;var M=e.getLeftmostAccessExpression(T);if(e.nodeIsMissing(M)||(e.isCallExpression(x)||e.isFunctionLike(x))&&x.end===E.pos&&x.getChildCount(r)&&21!==e.last(x.getChildren(r)).kind)return;break;case 159:x=w.left;break;case 259:x=w.name;break;case 198:x=w;break;case 229:x=w.getFirstToken(r),e.Debug.assert(100===x.kind||103===x.kind);break;default:return}else if(!S&&1===r.languageVariant){if(w&&204===w.kind&&(E=w,w=w.parent),p.parent===R)switch(p.kind){case 31:276!==p.parent.kind&&278!==p.parent.kind||(R=p);break;case 43:277===p.parent.kind&&(R=p)}switch(w.kind){case 279:43===E.kind&&(C=!0,R=E);break;case 219:if(!J(w))break;case 277:case 276:case 278:N=!0,29===E.kind&&(A=!0,R=E);break;case 286:case 285:19===b.kind&&31===p.kind&&(N=!0);break;case 283:if(w.initializer===b&&b.end<a){N=!0;break}switch(b.kind){case 63:I=!0;break;case 79:N=!0,w!==b.parent&&!w.initializer&&e.findChildOfKind(w,63,r)&&(I=b)}}}}var F=e.timestamp(),G=5,V=!1,X=!1,Q=!1,$=0,ee=[],ne=[],te=[],re=new e.Map,ie=_||!function(n){return n&&(112===n.kind&&(179===n.parent.kind||e.isTypeOfExpression(n.parent))||128===n.kind&&175===n.parent.kind)}(E)&&(e.isPossiblyTypeArgumentPosition(E,r,u)||e.isPartOfTypeNode(R)||function(n){if(n){var t=n.parent.kind;switch(n.kind){case 58:return 165===t||164===t||162===t||252===t||e.isFunctionLikeKind(t);case 63:return 257===t;case 127:return 227===t;case 29:return 176===t||209===t;case 94:return 161===t}}return!1}(E)),ae=e.memoizeOne((function(t){return e.createModuleSpecifierResolutionHost(t?c.getPackageJsonAutoImportProvider():n,c)}));if(L||D)!function(){G=2;var n=e.isLiteralImportTypeNode(x),t=_||n&&!x.isTypeOf||e.isPartOfTypeNode(x.parent)||e.isPossiblyTypeArgumentPosition(E,r,u),i=e.isInRightSideOfInternalImportEqualsDeclaration(x);if(e.isEntityName(x)||n||e.isPropertyAccessExpression(x)){var a=e.isModuleDeclaration(x.parent);a&&(V=!0);var s=u.getSymbolAtLocation(x);if(s&&1920&(s=e.skipAlias(s,u)).flags){var c=u.getExportsOfModule(s);e.Debug.assertEachIsDefined(c,"getExportsOfModule() should all be defined");for(var l=function(e){return u.isValidPropertyAccess(n?x:x.parent,e.name)},d=function(e){return Y(e,u)},p=a?function(e){var n;return!!(1920&e.flags)&&!(null===(n=e.declarations)||void 0===n?void 0:n.every((function(e){return e.parent===x.parent})))}:i?function(e){return d(e)||l(e)}:t?d:l,f=0,m=c;f<m.length;f++){var g=m[f];p(g)&&ee.push(g)}if(!t&&s.declarations&&s.declarations.some((function(e){return 300!==e.kind&&259!==e.kind&&258!==e.kind}))){var y=!1;(h=u.getTypeOfSymbolAtLocation(s,x).getNonOptionalType()).isNullableType()&&((v=L&&!D&&!1!==o.includeAutomaticOptionalChainCompletions)||D)&&(h=h.getNonNullableType(),v&&(y=!0)),de(h,!!(32768&x.flags),y)}return}}if(!t){var h,v,b=e.getThisContainer(x,!1);!e.isSourceFile(b)&&b.parent&&u.getTypeAtLocation(b),y=!1,(h=u.getTypeAtLocation(x).getNonOptionalType()).isNullableType()&&((v=L&&!D&&!1!==o.includeAutomaticOptionalChainCompletions)||D)&&(h=h.getNonNullableType(),v&&(y=!0)),de(h,!!(32768&x.flags),y)}}();else if(A)ee=u.getJsxIntrinsicTagNamesAt(R),e.Debug.assertEachIsDefined(ee,"getJsxIntrinsicTagNames() should all be defined"),me(),G=1,$=0;else if(C){var oe=E.parent.parent.openingElement.tagName,se=u.getSymbolAtLocation(oe);se&&(ee=[se]),G=1,$=0}else if(!me())return;t("getCompletionData: Semantic work: "+(e.timestamp()-F));var ce=b&&function(n,t,r,i){var a=n.parent;switch(n.kind){case 79:return e.getContextualTypeFromParent(n,i);case 63:switch(a.kind){case 252:return i.getContextualType(a.initializer);case 219:return i.getTypeAtLocation(a.left);case 283:return i.getContextualTypeForJsxAttribute(a);default:return}case 103:return i.getContextualType(a);case 82:return e.getSwitchedType(e.cast(a,e.isCaseClause),i);case 18:return e.isJsxExpression(a)&&276!==a.parent.kind?i.getContextualTypeForJsxAttribute(a.parent):void 0;default:var o=e.SignatureHelp.getArgumentInfoForCompletions(n,t,r);return o?i.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(27===n.kind?1:0)):e.isEqualityOperatorKind(n.kind)&&e.isBinaryExpression(a)&&e.isEqualityOperatorKind(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(n)}}(b,a,r,u),le=e.mapDefined(ce&&(ce.isUnion()?ce.types:[ce]),(function(e){return e.isLiteral()?e.value:void 0})),ue=b&&ce&&function(n,t,r){return e.firstDefined(t&&(t.isUnion()?t.types:[t]),(function(t){var i=t&&t.symbol;return i&&424&i.flags&&!e.isAbstractConstructorSymbol(i)?k(i,n,r):void 0}))}(b,ce,u);return{kind:0,symbols:ee,completionKind:G,isInSnippetScope:g,propertyAccessToConvert:T,isNewIdentifierLocation:V,location:R,keywordFilters:$,literals:le,symbolToOriginInfoMap:ne,recommendedCompletion:ue,previousToken:b,isJsxInitializer:I,insideJsDocTagTypeExpression:_,symbolToSortTextIdMap:te,isTypeOnlyLocation:ie,isJsxIdentifierExpected:N,importCompletionNode:S,hasUnresolvedAutoImports:Q};function de(n,t,r){V=!!n.getStringIndexType(),D&&e.some(n.getCallSignatures())&&(V=!0);var a=198===x.kind?x:x.parent;if(i)ee.push.apply(ee,e.filter(H(n,u),(function(e){return u.isValidPropertyAccessForCompletions(a,n,e)})));else for(var s=0,c=n.getApparentProperties();s<c.length;s++){var l=c[s];u.isValidPropertyAccessForCompletions(a,n,l)&&pe(l,!1,r)}if(t&&o.includeCompletionsWithInsertText){var d=u.getPromisedTypeOfPromise(n);if(d)for(var p=0,f=d.getApparentProperties();p<f.length;p++)l=f[p],u.isValidPropertyAccessForCompletions(a,d,l)&&pe(l,!0,r)}}function pe(n,t,r){var i=e.firstDefined(n.declarations,(function(n){return e.tryCast(e.getNameOfDeclaration(n),e.isComputedPropertyName)}));if(i){var a=fe(i.expression),s=a&&u.getSymbolAtLocation(a),c=s&&k(s,E,u);if(c&&e.addToSeen(re,e.getSymbolId(c))){var l=ee.length;ee.push(c);var d=c.parent;if(d&&e.isExternalModuleSymbol(d)){var p={kind:_(6),moduleSymbol:d,isDefaultExport:!1,symbolName:c.name,exportName:c.name,fileName:e.isExternalModuleNameRelative(e.stripQuotes(d.name))?e.cast(d.valueDeclaration,e.isSourceFile).fileName:void 0};ne[l]=p}else ne[l]={kind:_(2)}}else o.includeCompletionsWithInsertText&&(m(n),f(n),ee.push(n))}else m(n),f(n),ee.push(n);function f(n){(function(n){return!!(n.valueDeclaration&&32&e.getEffectiveModifierFlags(n.valueDeclaration)&&e.isClassLike(n.valueDeclaration.parent))})(n)&&(te[e.getSymbolId(n)]=10)}function m(n){o.includeCompletionsWithInsertText&&(t&&e.addToSeen(re,e.getSymbolId(n))?ne[ee.length]={kind:_(8)}:r&&(ne[ee.length]={kind:16}))}function _(e){return r?16|e:e}}function fe(n){return e.isIdentifier(n)?n:e.isPropertyAccessExpression(n)?fe(n.expression):void 0}function me(){var n=function(){var n=function(n){if(n){var t=n.parent;switch(n.kind){case 18:if(e.isTypeLiteralNode(t))return t;break;case 26:case 27:case 79:if(164===t.kind&&e.isTypeLiteralNode(t.parent))return t.parent}}}(E);if(!n)return 0;var t=(e.isIntersectionTypeNode(n.parent)?n.parent:void 0)||n,r=W(t,u);if(!r)return 0;var i=u.getTypeFromTypeNode(t),a=H(r,u),o=H(i,u),s=new e.Set;return o.forEach((function(e){return s.add(e.escapedName)})),ee=e.concatenate(ee,e.filter(a,(function(e){return!s.has(e.escapedName)}))),G=0,V=!0,1}()||function(){var n,t,r=function(n){if(n){var t=n.parent;switch(n.kind){case 18:case 27:if(e.isObjectLiteralExpression(t)||e.isObjectBindingPattern(t))return t;break;case 41:return e.isMethodDeclaration(t)?e.tryCast(t.parent,e.isObjectLiteralExpression):void 0;case 79:return"async"===n.text&&e.isShorthandPropertyAssignment(n.parent)?n.parent.parent:void 0}}}(E);if(!r)return 0;if(G=0,203===r.kind){var i=function(n,t){var r=t.getContextualType(n);return r||(e.isBinaryExpression(n.parent)&&63===n.parent.operatorToken.kind&&n===n.parent.left?t.getTypeAtLocation(n.parent):void 0)}(r,u);if(void 0===i)return 16777216&r.flags?2:(X=!0,0);var a=u.getContextualType(r,4),o=(a||i).getStringIndexType(),s=(a||i).getNumberIndexType();if(V=!!o||!!s,n=K(i,a,r,u),t=r.properties,0===n.length&&!s)return X=!0,0}else{e.Debug.assert(199===r.kind),V=!1;var c=e.getRootDeclaration(r.parent);if(!e.isVariableLike(c))return e.Debug.fail("Root declaration is not variable-like.");var l=e.hasInitializer(c)||e.hasType(c)||242===c.parent.parent.kind;if(l||162!==c.kind||(e.isExpression(c.parent)?l=!!u.getContextualType(c.parent):167!==c.parent.kind&&171!==c.parent.kind||(l=e.isExpression(c.parent.parent)&&!!u.getContextualType(c.parent.parent))),l){var d=u.getTypeAtLocation(r);if(!d)return 2;var p=e.getContainingClass(r);n=u.getPropertiesOfType(d).filter((function(n){return!(24&e.getDeclarationModifierFlagsFromSymbol(n))||p&&e.contains(d.symbol.declarations,p)})),t=r.elements}}return n&&n.length>0&&(ee=e.concatenate(ee,function(n,t){if(0===t.length)return n;for(var r=new e.Set,i=new e.Set,a=0,o=t;a<o.length;a++){var s=o[a];if((291===s.kind||292===s.kind||201===s.kind||167===s.kind||170===s.kind||171===s.kind||293===s.kind)&&!Te(s)){var c=void 0;if(e.isSpreadAssignment(s))ve(s,r);else if(e.isBindingElement(s)&&s.propertyName)79===s.propertyName.kind&&(c=s.propertyName.escapedText);else{var l=e.getNameOfDeclaration(s);c=l&&e.isPropertyNameLiteral(l)?e.getEscapedTextOfIdentifierOrLiteral(l):void 0}void 0!==c&&i.add(c)}}var u=n.filter((function(e){return!i.has(e.escapedName)}));return Ee(r,u),u}(n,e.Debug.checkDefined(t)))),be(),1}()||(S?(V=!0,_e(),1):0)||function(){var n=!E||18!==E.kind&&27!==E.kind?void 0:e.tryCast(E.parent,e.isNamedImportsOrExports);if(!n)return 0;var t=(267===n.kind?n.parent.parent:n.parent).moduleSpecifier;if(!t)return 267===n.kind?2:0;var r=u.getSymbolAtLocation(t);if(!r)return 2;G=3,V=!1;var i=u.getExportsAndPropertiesOfModule(r),a=new e.Set(n.elements.filter((function(e){return!Te(e)})).map((function(e){return(e.propertyName||e.name).escapedText})));return ee=e.concatenate(ee,i.filter((function(e){return"default"!==e.escapedName&&!a.has(e.escapedName)}))),1}()||function(){var n,t=!E||18!==E.kind&&27!==E.kind?void 0:e.tryCast(E.parent,e.isNamedExports);if(!t)return 0;var r=e.findAncestor(t,e.or(e.isSourceFile,e.isModuleDeclaration));return G=5,V=!1,null===(n=r.locals)||void 0===n||n.forEach((function(n,t){var i,a;ee.push(n),(null===(a=null===(i=r.symbol)||void 0===i?void 0:i.exports)||void 0===a?void 0:a.has(t))&&(te[e.getSymbolId(n)]=12)})),1}()||(function(n){if(n){var t=n.parent;switch(n.kind){case 20:case 27:return e.isConstructorDeclaration(n.parent)?n.parent:void 0;default:if(ge(n))return t.parent}}}(E)?(G=5,V=!0,$=4,1):0)||function(){var n=function(n,t,r,i){switch(r.kind){case 343:return e.tryCast(r.parent,e.isObjectTypeDeclaration);case 1:var a=e.tryCast(e.lastOrUndefined(e.cast(r.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(a&&!e.findChildOfKind(a,19,n))return a;break;case 79:if(e.isPropertyDeclaration(r.parent)&&r.parent.initializer===r)return;if(z(r))return e.findAncestor(r,e.isObjectTypeDeclaration)}if(t){if(133===r.kind||e.isIdentifier(t)&&e.isPropertyDeclaration(t.parent)&&e.isClassLike(r))return e.findAncestor(t,e.isClassLike);switch(t.kind){case 63:return;case 26:case 19:return z(r)&&r.parent.name===r?r.parent.parent:e.tryCast(r,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(t.parent,e.isObjectTypeDeclaration);default:if(!z(t))return e.getLineAndCharacterOfPosition(n,t.getEnd()).line!==e.getLineAndCharacterOfPosition(n,i).line&&e.isObjectTypeDeclaration(r)?r:void 0;var o=e.isClassLike(t.parent.parent)?U:B;return o(t.kind)||41===t.kind||e.isIdentifier(t)&&o(e.stringToToken(t.text))?t.parent.parent:void 0}}}(r,E,R,a);if(!n)return 0;if(G=3,V=!0,$=41===E.kind?0:e.isClassLike(n)?2:3,!e.isClassLike(n))return 1;var t=26===E.kind?E.parent.parent:E.parent,i=e.isClassElement(t)?e.getEffectiveModifierFlags(t):0;if(79===E.kind&&!Te(E))switch(E.getText()){case"private":i|=8;break;case"static":i|=32;break;case"override":i|=16384}if(e.isClassStaticBlockDeclaration(t)&&(i|=32),!(8&i)){var o=e.isClassLike(n)&&16384&i?e.singleElementArray(e.getEffectiveBaseTypeNode(n)):e.getAllSuperTypeNodes(n),s=e.flatMap(o,(function(e){var t=u.getTypeAtLocation(e);return 32&i?(null==t?void 0:t.symbol)&&u.getPropertiesOfType(u.getTypeOfSymbolAtLocation(t.symbol,n)):t&&u.getPropertiesOfType(t)}));ee=e.concatenate(ee,function(n,t,r){for(var i=new e.Set,a=0,o=t;a<o.length;a++){var s=o[a];if(!(165!==s.kind&&167!==s.kind&&170!==s.kind&&171!==s.kind||Te(s)||e.hasEffectiveModifier(s,8)||e.isStatic(s)!==!!(32&r))){var c=e.getPropertyNameForPropertyNameNode(s.name);c&&i.add(c)}}return n.filter((function(n){return!(i.has(n.escapedName)||!n.declarations||8&e.getDeclarationModifierFlagsFromSymbol(n)||n.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(n.valueDeclaration))}))}(s,n.members,i))}return 1}()||function(){var n=function(n){if(n){var t=n.parent;switch(n.kind){case 31:case 30:case 43:case 79:case 204:case 284:case 283:case 285:if(t&&(277===t.kind||278===t.kind)){if(31===n.kind){var i=e.findPrecedingToken(n.pos,r,void 0);if(!t.typeArguments||i&&43===i.kind)break}return t}if(283===t.kind)return t.parent.parent;break;case 10:if(t&&(283===t.kind||285===t.kind))return t.parent.parent;break;case 19:if(t&&286===t.kind&&t.parent&&283===t.parent.kind)return t.parent.parent.parent;if(t&&285===t.kind)return t.parent.parent}}}(E),t=n&&u.getContextualType(n.attributes);if(!t)return 0;var i=n&&u.getContextualType(n.attributes,4);return ee=e.concatenate(ee,function(n,t){for(var r=new e.Set,i=new e.Set,a=0,o=t;a<o.length;a++){var s=o[a];Te(s)||(283===s.kind?r.add(s.name.escapedText):e.isJsxSpreadAttribute(s)&&ve(s,i))}var c=n.filter((function(e){return!r.has(e.escapedName)}));return Ee(i,c),c}(K(t,i,n.attributes,u),n.attributes.properties)),be(),G=3,V=!1,1}()||(function(){$=function(n){if(n){var t,r=e.findAncestor(n.parent,(function(n){return e.isClassLike(n)?"quit":!(!e.isFunctionLikeDeclaration(n)||t!==n.body)||(t=n,!1)}));return r&&r}}(E)?5:1,G=1,V=function(){if(E){var e=E.parent.kind;switch(j(E)){case 27:return 206===e||169===e||207===e||202===e||219===e||177===e||203===e;case 20:return 206===e||169===e||207===e||210===e||189===e;case 22:return 202===e||174===e||160===e;case 140:case 141:return!0;case 24:return 259===e;case 18:return 255===e||203===e;case 63:return 252===e||219===e;case 15:return 221===e;case 16:return 231===e;case 123:case 121:case 122:return 165===e}}return!1}(),b!==E&&e.Debug.assert(!!b,"Expected 'contextToken' to be defined when different from 'previousToken'.");var n=b!==E?b.getStart():a,t=function(n,t,r){for(var i=n;i&&!e.positionBelongsToNode(i,t,r);)i=i.parent;return i}(E,n,r)||r;g=function(n){switch(n.kind){case 300:case 221:case 286:case 233:return!0;default:return e.isStatement(n)}}(t);var i=2887656|(ie?0:111551);ee=e.concatenate(ee,u.getSymbolsInScope(t,i)),e.Debug.assertEachIsDefined(ee,"getSymbolsInScope() should all be defined");for(var s=0,c=ee;s<c.length;s++){var l=c[s];u.isArgumentsSymbol(l)||e.some(l.declarations,(function(e){return e.getSourceFile()===r}))||(te[e.getSymbolId(l)]=15)}if(o.includeCompletionsWithInsertText&&300!==t.kind){var d=u.tryGetThisTypeAt(t,!1);if(d&&!function(e,n,t){var r=t.resolveName("self",void 0,111551,!1);if(r&&t.getTypeOfSymbolAtLocation(r,n)===e)return!0;var i=t.resolveName("global",void 0,111551,!1);if(i&&t.getTypeOfSymbolAtLocation(i,n)===e)return!0;var a=t.resolveName("globalThis",void 0,111551,!1);return!(!a||t.getTypeOfSymbolAtLocation(a,n)!==e)}(d,r,u))for(var p=0,f=H(d,u);p<f.length;p++)l=f[p],ne[ee.length]={kind:1},ee.push(l),te[e.getSymbolId(l)]=14}_e(),ie&&($=E&&e.isAssertionExpression(E.parent)?6:7)}(),1);return 1===n}function _e(){var t,i;if((S||!X&&o.includeCompletionsForModuleExports&&(r.externalModuleIndicator||r.commonJsModuleIndicator||e.compilerOptionsIndicateEs6Modules(n.getCompilerOptions())||e.programContainsModules(n)))&&(e.Debug.assert(!(null==s?void 0:s.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),!s||s.source)){var a=null===(t=c.getModuleSpecifierCache)||void 0===t?void 0:t.call(c),u=b&&e.isIdentifier(b)?b.text.toLowerCase():"",d=e.getExportInfoMap(r,c,n,l),p=null===(i=c.getPackageJsonAutoImportProvider)||void 0===i?void 0:i.call(c),f=s?void 0:e.createPackageJsonImportFilter(r,o,c);m("collectAutoImports",c,n,r,o,!!S,(function(n){d.forEach(r.path,(function(t,r,i){if(e.isIdentifierText(r,e.getEmitScriptTarget(c.getCompilationSettings()))&&(s||!e.isStringANonContextualKeyword(r))&&(ie||S||111551&t[0].targetFlags)&&(!ie||790504&t[0].targetFlags)&&(s&&e.some(t,(function(n){return s.source===e.stripQuotes(n.moduleSymbol.name)}))||!s&&Z(r,u))){var a=e.find(t,_);if(!a)return;var o=n.tryResolve(t,i)||{},l=o.exportInfo,d=void 0===l?a:l,p=o.moduleSpecifier,f=1===d.exportKind;m=f&&e.getLocalSymbolForExportDefault(d.symbol)||d.symbol,g={kind:p?32:4,moduleSpecifier:p,symbolName:r,exportName:2===d.exportKind?"export=":d.symbol.name,fileName:d.moduleFileName,isDefaultExport:f,moduleSymbol:d.moduleSymbol,isFromPackageJson:d.isFromPackageJson},y=e.getSymbolId(m),15!==te[y]&&(ne[ee.length]=g,te[y]=S?11:16,ee.push(m))}var m,g,y})),Q=n.resolutionLimitExceeded()}))}function _(t){var i=e.tryCast(t.moduleSymbol.valueDeclaration,e.isSourceFile);if(!i){var s=e.stripQuotes(t.moduleSymbol.name);return(!e.JsTyping.nodeCoreModules.has(s)||e.startsWith(s,"node:")===e.shouldUseUriStyleNodeCoreModules(r,n))&&(!f||f.allowsImportingAmbientModule(t.moduleSymbol,ae(t.isFromPackageJson)))}return e.isImportableFile(t.isFromPackageJson?p:n,r,i,o,f,ae(t.isFromPackageJson),a)}}function ge(n){return!!n.parent&&e.isParameter(n.parent)&&e.isConstructorDeclaration(n.parent.parent)&&(e.isParameterPropertyModifier(n.kind)||e.isDeclarationName(n))}function ye(n,t){return 63!==n.kind&&(26===n.kind||!e.positionsAreOnSameLine(n.end,t,r))}function he(n){return e.isFunctionLikeKind(n)&&169!==n}function ve(e,n){var t=e.expression,r=u.getSymbolAtLocation(t),i=r&&u.getTypeOfSymbolAtLocation(r,t),a=i&&i.properties;a&&a.forEach((function(e){n.add(e.name)}))}function be(){ee.forEach((function(n){var t;if(16777216&n.flags){var r=e.getSymbolId(n);te[r]=null!==(t=te[r])&&void 0!==t?t:12}}))}function Ee(n,t){if(0!==n.size)for(var r=0,i=t;r<i.length;r++){var a=i[r];n.has(a.name)&&(te[e.getSymbolId(a)]=13)}}function Te(e){return e.getStart(r)<=a&&a<=e.getEnd()}}function O(n,t){var r=e.findPrecedingToken(n,t);return r&&n<=r.end&&(e.isMemberName(r)||e.isKeyword(r.kind))?{contextToken:e.findPrecedingToken(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function P(n,t,r,i){var a=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,o=a.getTypeChecker(),s=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(e.Debug.checkDefined(a.getSourceFile(t.fileName)).symbol):void 0;if(s){var c="export="===t.exportName?o.resolveExternalModuleSymbol(s):o.tryGetMemberInModuleExportsAndProperties(t.exportName,s);if(c){var l="default"===t.exportName;return{symbol:c=l&&e.getLocalSymbolForExportDefault(c)||c,origin:{kind:t.moduleSpecifier?32:4,moduleSymbol:s,symbolName:n,isDefaultExport:l,exportName:t.exportName,fileName:t.fileName,isFromPackageJson:!!t.isPackageJsonImport}}}}}function w(n,t,r,i,a){var o=function(e){return d(e)||p(e)}(r)?r.symbolName:n.name;if(!(void 0===o||1536&n.flags&&e.isSingleOrDoubleQuote(o.charCodeAt(0))||e.isKnownSymbol(n))){var s={name:o,needsConvertPropertyAccess:!1};if(e.isIdentifierText(o,t,a?1:0)||n.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(n.valueDeclaration))return s;switch(i){case 3:return;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return s;default:e.Debug.assertNever(i)}}}n.moduleSpecifierResolutionLimit=100,n.moduleSpecifierResolutionCacheAttemptLimit=1e3,function(e){e.LocalDeclarationPriority="10",e.LocationPriority="11",e.OptionalMember="12",e.MemberDeclaredBySpreadAssignment="13",e.SuggestedClassMembers="14",e.GlobalsOrKeywords="15",e.AutoImportSuggestions="16",e.JavascriptIdentifiers="17",e.DeprecatedLocalDeclarationPriority="18",e.DeprecatedLocationPriority="19",e.DeprecatedOptionalMember="20",e.DeprecatedMemberDeclaredBySpreadAssignment="21",e.DeprecatedSuggestedClassMembers="22",e.DeprecatedGlobalsOrKeywords="23",e.DeprecatedAutoImportSuggestions="24"}(t=n.SortText||(n.SortText={})),function(e){e[e.LocalDeclarationPriority=10]="LocalDeclarationPriority",e[e.LocationPriority=11]="LocationPriority",e[e.OptionalMember=12]="OptionalMember",e[e.MemberDeclaredBySpreadAssignment=13]="MemberDeclaredBySpreadAssignment",e[e.SuggestedClassMembers=14]="SuggestedClassMembers",e[e.GlobalsOrKeywords=15]="GlobalsOrKeywords",e[e.AutoImportSuggestions=16]="AutoImportSuggestions",e[e._JavaScriptIdentifiers=17]="_JavaScriptIdentifiers",e[e._DeprecatedStart=18]="_DeprecatedStart",e[e._First=10]="_First",e[e.DeprecatedOffset=8]="DeprecatedOffset"}(r||(r={})),function(e){e.ThisProperty="ThisProperty/"}(i=n.CompletionSource||(n.CompletionSource={})),function(e){e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport"}(o||(o={})),function(e){e[e.None=0]="None",e[e.All=1]="All",e[e.ClassElementKeywords=2]="ClassElementKeywords",e[e.InterfaceElementKeywords=3]="InterfaceElementKeywords",e[e.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",e[e.TypeAssertionKeywords=6]="TypeAssertionKeywords",e[e.TypeKeywords=7]="TypeKeywords",e[e.Last=7]="Last"}(s||(s={})),function(e){e[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail"}(c||(c={})),n.getCompletionsAtPosition=function(r,i,o,s,c,l,u,d,p){var f,v=O(c,s).previousToken;if(!u||e.isInString(s,c,v)||function(n,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&e.isStringLiteralOrTemplate(r)&&i===r.getStart(n)+1;case"#":return!!r&&e.isPrivateIdentifier(r)&&!!e.getContainingClass(r);case"<":return!!r&&29===r.kind&&(!e.isBinaryExpression(r.parent)||J(r.parent));case"/":return!!r&&(e.isStringLiteralLike(r)?!!e.tryGetImportFromModuleSpecifier(r):43===r.kind&&e.isJsxClosingElement(r.parent));case" ":return!!r&&e.isImportKeyword(r)&&300===r.parent.kind;default:return e.Debug.assertNever(t)}}(s,u,v,c)){if(" "===u)return l.includeCompletionsForImportStatements&&l.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var E=i.getTypeChecker(),S=i.getCompilerOptions(),x=l.allowIncompleteCompletions?null===(f=r.getIncompleteCompletionsCache)||void 0===f?void 0:f.call(r):void 0;if(x&&3===d&&v&&e.isIdentifier(v)){var A=function(n,t,r,i,o,s,c){var l,u=n.get();if(u){var d=r.text.toLowerCase(),p=e.getExportInfoMap(t,o,i,c),f=i.getTypeChecker(),_=null===(l=o.getPackageJsonAutoImportProvider)||void 0===l?void 0:l.call(o),g=null==_?void 0:_.getTypeChecker(),y=m("continuePreviousIncompleteResponse",o,i,t,s,!1,(function(n){var r=e.mapDefined(u.entries,(function(r){if(!r.hasAction||!r.source||!r.data||r.data.moduleSpecifier)return r;if(Z(r.name,d)){var s=e.Debug.checkDefined(P(r.name,r.data,i,o)),c=s.symbol,l=s.origin,u=p.get(t.path,r.name,c,l.moduleSymbol.name,l.isFromPackageJson?g:f),m=u&&n.tryResolve(u,!e.isExternalModuleNameRelative(e.stripQuotes(l.moduleSymbol.name)));if(!m)return r;var _=a(a({},l),{kind:32,moduleSpecifier:m.moduleSpecifier});return r.data=T(_),r.source=L(_),r.sourceDisplay=[e.textPart(_.moduleSpecifier)],r}}));return n.resolutionLimitExceeded()||(u.isIncomplete=void 0),r}));return u.entries=y,u}}(x,s,v,i,r,l,p);if(A)return A}else null==x||x.clear();var C=n.StringCompletions.getStringLiteralCompletions(s,c,v,E,S,r,o,l);if(C)return C;if(v&&e.isBreakOrContinueStatement(v.parent)&&(81===v.kind||86===v.kind||79===v.kind))return function(n){var r=function(n){for(var r=[],i=new e.Map,a=n;a&&!e.isFunctionLike(a);){if(e.isLabeledStatement(a)){var o=a.label.text;i.has(o)||(i.set(o,!0),r.push({name:o,kindModifiers:"",kind:"label",sortText:t.LocationPriority}))}a=a.parent}return r}(n);if(r.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:r}}(v.parent);var I=R(i,o,s,y(s,S),c,l,void 0,r,p);if(I)switch(I.kind){case 0:var N=function(n,r,i,a,o,s){var c=o.symbols,l=o.completionKind,u=o.isInSnippetScope,d=o.isNewIdentifierLocation,p=o.location,f=o.propertyAccessToConvert,m=o.keywordFilters,_=o.literals,v=o.symbolToOriginInfoMap,E=o.recommendedCompletion,T=o.isJsxInitializer,S=o.isTypeOnlyLocation,x=o.isJsxIdentifierExpected,L=o.importCompletionNode,A=o.insideJsDocTagTypeExpression,C=o.symbolToSortTextIdMap,I=o.hasUnresolvedAutoImports;if(1===e.getLanguageVariant(n.scriptKind)){var N=function(n,r){var i=e.findAncestor(n,(function(e){switch(e.kind){case 279:return!0;case 43:case 31:case 79:case 204:return!1;default:return"quit"}}));if(i){var a=!!e.findChildOfKind(i,31,r),o=i.parent.openingElement.tagName.getText(r)+(a?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:e.createTextSpanFromNode(i.tagName),entries:[{name:o,kind:"class",kindModifiers:void 0,sortText:t.LocationPriority}]}}}(p,n);if(N)return N}var k=[];if(y(n,i)){var R=D(c,k,void 0,p,n,r,i.target,a,l,s,i,S,f,x,T,L,E,v,C);!function(n,r,i,a,o){e.getNameTable(n).forEach((function(n,s){if(n!==r){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:t.JavascriptIdentifiers,isFromUncheckedFile:!0}))}}))}(n,p.pos,R,i.target,k)}else{if(!(d||c&&0!==c.length||0!==m))return;D(c,k,void 0,p,n,r,i.target,a,l,s,i,S,f,x,T,L,E,v,C)}if(0!==m)for(var O=new e.Set(k.map((function(e){return e.name}))),P=0,w=function(n,t){if(!t)return G(n);var r=n+7+1;return M[r]||(M[r]=G(n).filter((function(n){return!function(e){switch(e){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}}(e.stringToToken(n.name))})))}(m,!A&&e.isSourceFileJS(n));P<w.length;P++){var F=w[P];O.has(F.name)||k.push(F)}for(var B=0,U=_;B<U.length;B++){var V=U[B];k.push(b(n,s,V))}return{isGlobalCompletion:u,isIncomplete:!(!s.allowIncompleteCompletions||!I)||void 0,isMemberCompletion:h(l),isNewIdentifierLocation:d,optionalReplacementSpan:g(p),entries:k}}(s,E,S,o,I,l);return(null==N?void 0:N.isIncomplete)&&(null==x||x.set(N)),N;case 1:return _(e.JsDoc.getJSDocTagNameCompletions());case 2:return _(e.JsDoc.getJSDocTagCompletions());case 3:return _(e.JsDoc.getJSDocParameterNameCompletions(I.tag));case 4:return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:I.keywords.map((function(n){return{name:e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:t.GlobalsOrKeywords}}))};default:return e.Debug.assertNever(I)}}},n.getCompletionEntriesFromSymbols=D,n.getCompletionEntryDetails=function(t,r,i,a,o,s,c,l,u){var f=t.getTypeChecker(),m=t.getCompilerOptions(),_=o.name,g=e.findPrecedingToken(a,i);if(e.isInString(i,a,g))return n.StringCompletions.getStringLiteralCompletionDetails(_,i,a,g,f,m,s,u,l);var y=A(t,r,i,a,o,s,l);switch(y.type){case"request":var h=y.request;switch(h.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(_);case 2:return e.JsDoc.getJSDocTagCompletionDetails(_);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(_);case 4:return h.keywords.indexOf(e.stringToToken(_))>-1?C(_,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(h)}case"symbol":var b=y.symbol,E=y.location,T=function(n,t,r,i,a,o,s,c,l,u,f){if(null==f?void 0:f.moduleSpecifier){var m=O(s,o),_=m.contextToken,g=m.previousToken;if(g&&q(_||g))return{codeActions:void 0,sourceDisplay:[e.textPart(f.moduleSpecifier)]}}if(!n||!d(n)&&!p(n))return{codeActions:void 0,sourceDisplay:void 0};var y=n.isFromPackageJson?i.getPackageJsonAutoImportProvider().getTypeChecker():r.getTypeChecker(),h=n.moduleSymbol,v=y.getMergedSymbol(e.skipAlias(t.exportSymbol||t,y)),b=e.codefix.getImportCompletionAction(v,h,o,e.getNameForExportedSymbol(t,a.target),i,r,l,c&&e.isIdentifier(c)?c.getStart(o):s,u),E=b.moduleSpecifier,T=b.codeAction;return e.Debug.assert(!(null==f?void 0:f.moduleSpecifier)||E===f.moduleSpecifier),{sourceDisplay:[e.textPart(E)],codeActions:[T]}}(y.origin,b,t,s,m,i,a,y.previousToken,c,l,o.data);return I(b,f,i,E,u,T.codeActions,T.sourceDisplay);case"literal":var S=y.literal;return C(v(i,l,S),"string","string"==typeof S?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return F().some((function(e){return e.name===_}))?C(_,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(y)}},n.createCompletionDetailsForSymbol=I,n.createCompletionDetails=N,n.getCompletionEntrySymbol=function(e,n,t,r,i,a,o){var s=A(e,n,t,r,i,a,o);return"symbol"===s.type?s.symbol:void 0},function(e){e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName",e[e.Keywords=4]="Keywords"}(l||(l={})),(u=n.CompletionKind||(n.CompletionKind={}))[u.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",u[u.Global=1]="Global",u[u.PropertyAccess=2]="PropertyAccess",u[u.MemberLike=3]="MemberLike",u[u.String=4]="String",u[u.None=5]="None";var M=[],F=e.memoize((function(){for(var n=[],r=81;r<=158;r++)n.push({name:e.tokenToString(r),kind:"keyword",kindModifiers:"",sortText:t.GlobalsOrKeywords});return n}));function G(n){return M[n]||(M[n]=F().filter((function(t){var r=e.stringToToken(t.name);switch(n){case 0:return!1;case 1:return V(r)||134===r||140===r||150===r||141===r||e.isTypeKeyword(r)&&151!==r;case 5:return V(r);case 2:return U(r);case 3:return B(r);case 4:return e.isParameterPropertyModifier(r);case 6:return e.isTypeKeyword(r)||85===r;case 7:return e.isTypeKeyword(r);default:return e.Debug.assertNever(n)}})))}function B(e){return 143===e}function U(n){switch(n){case 126:case 133:case 135:case 147:case 130:case 134:case 157:return!0;default:return e.isClassMemberModifier(n)}}function V(n){return 130===n||131===n||127===n||!e.isContextualKeyword(n)&&!U(n)}function j(n){return e.isIdentifier(n)?n.originalKeywordKind||0:n.kind}function K(n,t,r,i){var a=t&&t!==n,o=!a||3&t.flags?n:i.getUnionType([n,t]),s=o.isUnion()?i.getAllPossiblePropertiesOfTypes(o.types.filter((function(n){return!(131068&n.flags||i.isArrayLikeType(n)||e.typeHasCallOrConstructSignatures(n,i)||i.isTypeInvalidDueToUnionDiscriminant(n,r))}))):o.getApparentProperties();return a?s.filter((function(n){return e.some(n.declarations,(function(e){return e.parent!==r}))})):s}function H(n,t){return n.isUnion()?e.Debug.checkEachDefined(t.getAllPossiblePropertiesOfTypes(n.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(n.getApparentProperties(),"getApparentProperties() should all be defined")}function W(n,t){if(n){if(e.isTypeNode(n)&&e.isTypeReferenceType(n.parent))return t.getTypeArgumentConstraint(n);var r=W(n.parent,t);if(r)switch(n.kind){case 164:return t.getTypeOfPropertyOfContextualType(r,n.symbol.escapedName);case 186:case 180:case 185:return r}}}function z(n){return n.parent&&e.isClassOrTypeElement(n.parent)&&e.isObjectTypeDeclaration(n.parent.parent)}function J(n){var t=n.left;return e.nodeIsMissing(t)}function q(n){var t,r=(t=n.parent,e.isImportEqualsDeclaration(t)?X(t.moduleReference)?t:void 0:e.isNamedImports(t)||e.isNamespaceImport(t)?X(t.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(t)||t.elements.length<2)&&!t.parent.name?19===n.kind||79===n.kind?154:t.parent.parent:void 0:e.isImportKeyword(n)&&e.isSourceFile(t)?n:e.isImportKeyword(n)&&e.isImportDeclaration(t)&&X(t.moduleSpecifier)?t:void 0);return 154===r||r&&e.rangeIsOnSingleLine(r,r.getSourceFile())?r:void 0}function X(n){var t;return!!e.nodeIsMissing(n)||!(null===(t=e.tryCast(e.isExternalModuleReference(n)?n.expression:n,e.isStringLiteralLike))||void 0===t?void 0:t.text)}function Y(n,t,r){void 0===r&&(r=new e.Map);var i=e.skipAlias(n.exportSymbol||n,t);return!!(788968&i.flags)||t.isUnknownSymbol(i)||!!(1536&i.flags)&&e.addToSeen(r,e.getSymbolId(i))&&t.getExportsOfModule(i).some((function(e){return Y(e,t,r)}))}function Q(n,t){var r=e.skipAlias(n,t).declarations;return!!e.length(r)&&e.every(r,e.isDeprecatedDeclaration)}function Z(e,n){if(0===n.length)return!0;for(var t,r=!1,i=0,a=e.length,o=0;o<a;o++){var s=e.charCodeAt(o),c=n.charCodeAt(i);if((s===c||s===(97<=(l=c)&&l<=122?l-32:l))&&(r||(r=void 0===t||97<=t&&t<=122&&65<=s&&s<=90||95===t&&95!==s),r&&i++,i===n.length))return!0;t=s}var l;return!1}n.getPropertiesForObjectExpression=K}(e.Completions||(e.Completions={}))}(u||(u={})),function(e){!function(n){function t(n,t){return{fileName:t.fileName,textSpan:e.createTextSpanFromNode(n,t),kind:"none"}}function r(n){return e.isThrowStatement(n)?[n]:e.isTryStatement(n)?e.concatenate(n.catchClause?r(n.catchClause):n.tryBlock&&r(n.tryBlock),n.finallyBlock&&r(n.finallyBlock)):e.isFunctionLike(n)?void 0:o(n,r)}function a(n){return e.isBreakOrContinueStatement(n)?[n]:e.isFunctionLike(n)?void 0:o(n,a)}function o(n,t){var r=[];return n.forEachChild((function(n){var i=t(n);void 0!==i&&r.push.apply(r,e.toArray(i))})),r}function s(e,n){var t=c(n);return!!t&&t===e}function c(n){return e.findAncestor(n,(function(t){switch(t.kind){case 247:if(243===n.kind)return!1;case 240:case 241:case 242:case 239:case 238:return!n.label||function(n,t){return!!e.findAncestor(n.parent,(function(n){return e.isLabeledStatement(n)?n.label.escapedText===t:"quit"}))}(t,n.label.escapedText);default:return e.isFunctionLike(t)&&"quit"}}))}function l(n,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return!(!t||!e.contains(r,t.kind)||(n.push(t),0))}function u(n){var t=[];if(l(t,n.getFirstToken(),97,115,90)&&238===n.kind)for(var r=n.getChildren(),i=r.length-1;i>=0&&!l(t,r[i],115);i--);return e.forEach(a(n.statement),(function(e){s(n,e)&&l(t,e.getFirstToken(),81,86)})),t}function d(e){var n=c(e);if(n)switch(n.kind){case 240:case 241:case 242:case 238:case 239:return u(n);case 247:return p(n)}}function p(n){var t=[];return l(t,n.getFirstToken(),107),e.forEach(n.caseBlock.clauses,(function(r){l(t,r.getFirstToken(),82,88),e.forEach(a(r),(function(e){s(n,e)&&l(t,e.getFirstToken(),81)}))})),t}function f(n,t){var r=[];return l(r,n.getFirstToken(),111),n.catchClause&&l(r,n.catchClause.getFirstToken(),83),n.finallyBlock&&l(r,e.findChildOfKind(n,96,t),96),r}function m(n,t){var i=function(n){for(var t=n;t.parent;){var r=t.parent;if(e.isFunctionBlock(r)||300===r.kind)return r;if(e.isTryStatement(r)&&r.tryBlock===t&&r.catchClause)return t;t=r}}(n);if(i){var a=[];return e.forEach(r(i),(function(n){a.push(e.findChildOfKind(n,109,t))})),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,(function(n){a.push(e.findChildOfKind(n,105,t))})),a}}function _(n,t){var i=e.getContainingFunction(n);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),(function(n){a.push(e.findChildOfKind(n,105,t))})),e.forEach(r(i.body),(function(n){a.push(e.findChildOfKind(n,109,t))})),a}}function g(n){var t=e.getContainingFunction(n);if(t){var r=[];return t.modifiers&&t.modifiers.forEach((function(e){l(r,e,130)})),e.forEachChild(t,(function(n){y(n,(function(n){e.isAwaitExpression(n)&&l(r,n.getFirstToken(),131)}))})),r}}function y(n,t){t(n),e.isFunctionLike(n)||e.isClassLike(n)||e.isInterfaceDeclaration(n)||e.isModuleDeclaration(n)||e.isTypeAliasDeclaration(n)||e.isTypeNode(n)||e.forEachChild(n,(function(e){return y(e,t)}))}n.getDocumentHighlights=function(n,r,a,o,s){var c=e.getTouchingPropertyName(a,o);if(c.parent&&(e.isJsxOpeningElement(c.parent)&&c.parent.tagName===c||e.isJsxClosingElement(c.parent))){var h=c.parent.parent,v=[h.openingElement,h.closingElement].map((function(e){return t(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:v}]}return function(n,t,r,i,a){var o=new e.Set(a.map((function(e){return e.fileName}))),s=e.FindAllReferences.getReferenceEntriesForNode(n,t,r,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(function(e){return e.fileName}),(function(e){return e.span})),l=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(c.entries()),(function(n){var t=n[0],i=n[1];if(!o.has(t)){if(!r.redirectTargetsMap.has(e.toPath(t,r.getCurrentDirectory(),l)))return;var s=r.getSourceFile(t);t=e.find(a,(function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s})).fileName,e.Debug.assert(o.has(t))}return{fileName:t,highlightSpans:i}}))}}(o,c,n,r,s)||function(n,r){var a=function(n,r){switch(n.kind){case 99:case 91:return e.isIfStatement(n.parent)?function(n,r){for(var i=function(n,t){for(var r=[];e.isIfStatement(n.parent)&&n.parent.elseStatement===n;)n=n.parent;for(;;){var i=n.getChildren(t);l(r,i[0],99);for(var a=i.length-1;a>=0&&!l(r,i[a],91);a--);if(!n.elseStatement||!e.isIfStatement(n.elseStatement))break;n=n.elseStatement}return r}(n,r),a=[],o=0;o<i.length;o++){if(91===i[o].kind&&o<i.length-1){for(var s=i[o],c=i[o+1],u=!0,d=c.getStart(r)-1;d>=s.end;d--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(d))){u=!1;break}if(u){a.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(t(i[o],r))}return a}(n.parent,r):void 0;case 105:return c(n.parent,e.isReturnStatement,_);case 109:return c(n.parent,e.isThrowStatement,m);case 111:case 83:case 96:return c(83===n.kind?n.parent.parent:n.parent,e.isTryStatement,f);case 107:return c(n.parent,e.isSwitchStatement,p);case 82:case 88:return e.isDefaultClause(n.parent)||e.isCaseClause(n.parent)?c(n.parent.parent.parent,e.isSwitchStatement,p):void 0;case 81:case 86:return c(n.parent,e.isBreakOrContinueStatement,d);case 97:case 115:case 90:return c(n.parent,(function(n){return e.isIterationStatement(n,!0)}),u);case 133:return s(e.isConstructorDeclaration,[133]);case 135:case 147:return s(e.isAccessor,[135,147]);case 131:return c(n.parent,e.isAwaitExpression,g);case 130:return h(g(n));case 125:return h(function(n){var t=e.getContainingFunction(n);if(t){var r=[];return e.forEachChild(t,(function(n){y(n,(function(n){e.isYieldExpression(n)&&l(r,n.getFirstToken(),125)}))})),r}}(n));default:return e.isModifierKind(n.kind)&&(e.isDeclaration(n.parent)||e.isVariableStatement(n.parent))?h((a=n.kind,o=n.parent,e.mapDefined(function(n,t){var r=n.parent;switch(r.kind){case 260:case 300:case 233:case 287:case 288:return 128&t&&e.isClassDeclaration(n)?i(i([],n.members,!0),[n],!1):r.statements;case 169:case 167:case 254:return i(i([],r.parameters,!0),e.isClassLike(r.parent)?r.parent.members:[],!0);case 255:case 224:case 256:case 180:var a=r.members;if(92&t){var o=e.find(r.members,e.isConstructorDeclaration);if(o)return i(i([],a,!0),o.parameters,!0)}else if(128&t)return i(i([],a,!0),[r],!1);return a;case 203:return;default:e.Debug.assertNever(r,"Invalid container kind.")}}(o,e.modifierToFlag(a)),(function(n){return e.findModifier(n,a)})))):void 0}var a,o;function s(t,i){return c(n.parent,t,(function(n){return e.mapDefined(n.symbol.declarations,(function(n){return t(n)?e.find(n.getChildren(r),(function(n){return e.contains(i,n.kind)})):void 0}))}))}function c(e,n,t){return n(e)?h(t(e,r)):void 0}function h(e){return e&&e.map((function(e){return t(e,r)}))}}(n,r);return a&&[{fileName:r.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(u||(u={})),function(e){function n(e){return!!e.sourceFile}function t(t,i,a){void 0===i&&(i="");var o=new e.Map,s=e.createGetCanonicalFileName(!!t);function c(e,n,t,r,i,a,o){return d(e,n,t,r,i,a,!0,o)}function l(e,n,t,r,i,a,o){return d(e,n,t,r,i,a,!1,o)}function u(t,r){var i=n(t)?t:t.get(e.Debug.checkDefined(r,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===r||!i||i.sourceFile.scriptKind===r,"Script kind should match provided ScriptKind:"+r+" and sourceFile.scriptKind: "+(null==i?void 0:i.sourceFile.scriptKind)+", !entry: "+!i),i}function d(t,r,i,s,c,l,d,p){var f=6===(p=e.ensureScriptKind(t,p))?100:i.target||1,m=e.getOrUpdate(o,s,(function(){return new e.Map})),_=m.get(r),g=_&&u(_,p);if(!g&&a&&(y=a.getDocument(s,r))&&(e.Debug.assert(d),g={sourceFile:y,languageServiceRefCount:0},h()),g)g.sourceFile.version!==l&&(g.sourceFile=e.updateLanguageServiceSourceFile(g.sourceFile,c,l,c.getChangeRange(g.sourceFile.scriptSnapshot)),a&&a.setDocument(s,r,g.sourceFile)),d&&g.languageServiceRefCount++;else{var y=e.createLanguageServiceSourceFile(t,c,f,l,!1,p);a&&a.setDocument(s,r,y),g={sourceFile:y,languageServiceRefCount:1},h()}return e.Debug.assert(0!==g.languageServiceRefCount),g.sourceFile;function h(){if(_)if(n(_)){var t=new e.Map;t.set(_.sourceFile.scriptKind,_),t.set(p,g),m.set(r,t)}else _.set(p,g);else m.set(r,g)}}function p(t,r,i){var a=e.Debug.checkDefined(o.get(r)),s=a.get(t),c=u(s,i);c.languageServiceRefCount--,e.Debug.assert(c.languageServiceRefCount>=0),0===c.languageServiceRefCount&&(n(s)?a.delete(t):(s.delete(i),1===s.size&&a.set(t,e.firstDefinedIterator(s.values(),e.identity))))}return{acquireDocument:function(n,t,a,o,l){return c(n,e.toPath(n,i,s),t,r(t),a,o,l)},acquireDocumentWithKey:c,updateDocument:function(n,t,a,o,c){return l(n,e.toPath(n,i,s),t,r(t),a,o,c)},updateDocumentWithKey:l,releaseDocument:function(n,t,a){return p(e.toPath(n,i,s),r(t),a)},releaseDocumentWithKey:p,getLanguageServiceRefCounts:function(n,t){return e.arrayFrom(o.entries(),(function(e){var r=e[0],i=e[1].get(n),a=i&&u(i,t);return[r,a&&a.languageServiceRefCount]}))},reportStats:function(){var t=e.arrayFrom(o.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var t=o.get(e),r=[];return t.forEach((function(e,t){n(e)?r.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((function(e,n){return r.push({name:t,scriptKind:n,refCount:e.languageServiceRefCount})}))})),r.sort((function(e,n){return n.refCount-e.refCount})),{bucket:e,sourceFiles:r}}));return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:r}}function r(n){return e.sourceFileAffectingCompilerOptions.map((function(t){return e.getCompilerOptionValue(n,t)})).join("|")}e.createDocumentRegistry=function(e,n){return t(e,n)},e.createDocumentRegistryInternal=t}(u||(u={})),function(e){!function(n){function t(n,t){return e.forEach(300===n.kind?n.statements:n.body.statements,(function(n){return t(n)||c(n)&&e.forEach(n.body&&n.body.statements,t)}))}function r(n,r){if(n.externalModuleIndicator||void 0!==n.imports)for(var i=0,a=n.imports;i<a.length;i++){var o=a[i];r(e.importFromModuleSpecifier(o),o)}else t(n,(function(n){switch(n.kind){case 270:case 264:(t=n).moduleSpecifier&&e.isStringLiteral(t.moduleSpecifier)&&r(t,t.moduleSpecifier);break;case 263:var t;l(t=n)&&r(t,t.moduleReference.expression)}}))}function i(n,t,r){var i=n.parent;if(i){var a=r.getMergedSymbol(i);return e.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:t}:void 0}}function o(e,n){return n.getMergedSymbol(s(e).symbol)}function s(n){if(206===n.kind)return n.getSourceFile();var t=n.parent;return 300===t.kind?t:(e.Debug.assert(260===t.kind),e.cast(t.parent,c))}function c(e){return 259===e.kind&&10===e.name.kind}function l(e){return 275===e.moduleReference.kind&&10===e.moduleReference.expression.kind}var u,d;n.createImportTracker=function(n,i,u,d){var p=function(n,t,i){for(var a=new e.Map,o=0,s=n;o<s.length;o++){var c=s[o];i&&i.throwIfCancellationRequested(),r(c,(function(n,r){var i=t.getSymbolAtLocation(r);if(i){var o=e.getSymbolId(i).toString(),s=a.get(o);s||a.set(o,s=[]),s.push(n)}}))}return a}(n,u,d);return function(r,f,m){var _=function(n,r,i,a,l,u){var d=a.exportingModuleSymbol,p=a.exportKind,f=e.nodeSeenTracker(),m=e.nodeSeenTracker(),_=[],g=!!d.globalExports,y=g?void 0:[];return function n(t){var r=E(t);if(r)for(var i=0,a=r;i<a.length;i++){var d=a[i];if(f(d))switch(u&&u.throwIfCancellationRequested(),d.kind){case 206:if(e.isImportCall(d)){S=d,b(e.findAncestor(S,c)||S.getSourceFile(),!!h(S,!0));break}if(!g){var m=d.parent;if(2===p&&252===m.kind){var y=m.name;if(79===y.kind){_.push(y);break}}}break;case 79:break;case 263:v(d,d.name,e.hasSyntacticModifier(d,1),!1);break;case 264:_.push(d);var T=d.importClause&&d.importClause.namedBindings;T&&266===T.kind?v(d,T.name,!1,!0):!g&&e.isDefaultImport(d)&&b(s(d));break;case 270:d.exportClause?272===d.exportClause.kind?b(s(d),!0):_.push(d):n(o(d,l));break;case 198:d.isTypeOf&&!d.qualifier&&h(d)&&b(d.getSourceFile(),!0),_.push(d);break;default:e.Debug.failBadSyntaxKind(d,"Unexpected import kind.")}}var S}(d),{directImports:_,indirectUsers:function(){if(g)return n;if(d.declarations)for(var t=0,i=d.declarations;t<i.length;t++){var a=i[t];e.isExternalModuleAugmentation(a)&&r.has(a.getSourceFile().fileName)&&b(a)}return y.map(e.getSourceFileOfNode)}()};function h(n,t){return void 0===t&&(t=!1),e.findAncestor(n,(function(n){return t&&c(n)?"quit":e.some(n.modifiers,(function(e){return 93===e.kind}))}))}function v(n,r,i,a){if(2===p)a||_.push(n);else if(!g){var o=s(n);e.Debug.assert(300===o.kind||259===o.kind),i||function(n,r,i){var a=i.getSymbolAtLocation(r);return!!t(n,(function(n){if(e.isExportDeclaration(n)){var t=n.exportClause;return!n.moduleSpecifier&&t&&e.isNamedExports(t)&&t.elements.some((function(e){return i.getExportSpecifierLocalTargetSymbol(e)===a}))}}))}(o,r,l)?b(o,!0):b(o)}}function b(n,t){if(void 0===t&&(t=!1),e.Debug.assert(!g),m(n)&&(y.push(n),t)){var r=l.getMergedSymbol(n.symbol);if(r){e.Debug.assert(!!(1536&r.flags));var i=E(r);if(i)for(var a=0,o=i;a<o.length;a++){var c=o[a];e.isImportTypeNode(c)||b(s(c),!0)}}}}function E(n){return i.get(e.getSymbolId(n).toString())}}(n,i,p,f,u,d),g=_.directImports,y=_.indirectUsers;return a({indirectUsers:y},function(n,t,r,i,a){var o=[],s=[];function c(e,n){o.push([e,n])}if(n)for(var u=0,d=n;u<d.length;u++)p(d[u]);return{importSearches:o,singleReferences:s};function p(n){if(263!==n.kind)if(79!==n.kind)if(198!==n.kind){if(10===n.moduleSpecifier.kind)if(270!==n.kind){var o=n.importClause||{name:void 0,namedBindings:void 0},u=o.name,d=o.namedBindings;if(d)switch(d.kind){case 266:f(d.name);break;case 267:0!==r&&1!==r||m(d);break;default:e.Debug.assertNever(d)}!u||1!==r&&2!==r||a&&u.escapedText!==e.symbolEscapedNameNoDefault(t)||c(u,i.getSymbolAtLocation(u))}else n.exportClause&&e.isNamedExports(n.exportClause)&&m(n.exportClause)}else if(n.qualifier){var p=e.getFirstIdentifier(n.qualifier);p.escapedText===e.symbolName(t)&&s.push(p)}else 2===r&&s.push(n.argument.literal);else f(n);else l(n)&&f(n.name)}function f(e){2!==r||a&&!_(e.escapedText)||c(e,i.getSymbolAtLocation(e))}function m(e){if(e)for(var n=0,r=e.elements;n<r.length;n++){var o=r[n],l=o.name,u=o.propertyName;_((u||l).escapedText)&&(u?(s.push(u),a&&l.escapedText!==t.escapedName||c(l,i.getSymbolAtLocation(l))):c(l,273===o.kind&&o.propertyName?i.getExportSpecifierLocalTargetSymbol(o):i.getSymbolAtLocation(l)))}}function _(e){return e===t.escapedName||0!==r&&"default"===e}}(g,r,f.exportKind,u,m))}},(d=n.ExportKind||(n.ExportKind={}))[d.Named=0]="Named",d[d.Default=1]="Default",d[d.ExportEquals=2]="ExportEquals",(u=n.ImportExport||(n.ImportExport={}))[u.Import=0]="Import",u[u.Export=1]="Export",n.findModuleReferences=function(e,n,t){for(var i=[],a=e.getTypeChecker(),o=0,s=n;o<s.length;o++){var c=s[o],l=t.valueDeclaration;if(300===(null==l?void 0:l.kind)){for(var u=0,d=c.referencedFiles;u<d.length;u++){var p=d[u];e.getSourceFileFromReference(c,p)===l&&i.push({kind:"reference",referencingFile:c,ref:p})}for(var f=0,m=c.typeReferenceDirectives;f<m.length;f++){p=m[f];var _=e.getResolvedTypeReferenceDirectives().get(p.fileName);void 0!==_&&_.resolvedFileName===l.fileName&&i.push({kind:"reference",referencingFile:c,ref:p})}}r(c,(function(e,n){a.getSymbolAtLocation(n)===t&&i.push({kind:"import",literal:n})}))}return i},n.getImportOrExportSymbol=function(n,t,r,a){return a?o():o()||function(){if(function(n){var t=n.parent;switch(t.kind){case 263:return t.name===n&&l(t);case 268:return!t.propertyName;case 265:case 266:return e.Debug.assert(t.name===n),!0;case 201:return e.isInJSFile(n)&&e.isRequireVariableDeclaration(t);default:return!1}}(n)){var i=r.getImmediateAliasedSymbol(t);if(i){i=function(n,t){if(n.declarations)for(var r=0,i=n.declarations;r<i.length;r++){var a=i[r];if(e.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(a);if(e.isPropertyAccessExpression(a)&&e.isModuleExportsAccessExpression(a.expression)&&!e.isPrivateIdentifier(a.name))return t.getSymbolAtLocation(a);if(e.isShorthandPropertyAssignment(a)&&e.isBinaryExpression(a.parent.parent)&&2===e.getAssignmentDeclarationKind(a.parent.parent))return t.getExportSpecifierLocalTargetSymbol(a.name)}return n}(i,r),"export="===i.escapedName&&(i=function(n,t){if(2097152&n.flags)return e.Debug.checkDefined(t.getImmediateAliasedSymbol(n));var r=e.Debug.checkDefined(n.valueDeclaration);return e.isExportAssignment(r)?e.Debug.checkDefined(r.expression.symbol):e.isBinaryExpression(r)?e.Debug.checkDefined(r.right.symbol):e.isSourceFile(r)?e.Debug.checkDefined(r.symbol):e.Debug.fail()}(i,r));var a=e.symbolEscapedNameNoDefault(i);return void 0===a||"default"===a||a===t.escapedName?{kind:0,symbol:i}:void 0}}}();function o(){var i,o=n.parent,l=o.parent;if(t.exportSymbol)return 204===o.kind?(null===(i=t.declarations)||void 0===i?void 0:i.some((function(e){return e===o})))&&e.isBinaryExpression(l)?p(l,!1):void 0:s(t.exportSymbol,c(o));var u=function(n,t){var r=e.isVariableDeclaration(n)?n:e.isBindingElement(n)?e.walkUpBindingElementsAndPatterns(n):void 0;return r?n.name!==t||e.isCatchClause(r.parent)?void 0:e.isVariableStatement(r.parent.parent)?r.parent.parent:void 0:n}(o,n);if(u&&e.hasSyntacticModifier(u,1)){if(e.isImportEqualsDeclaration(u)&&u.moduleReference===n){if(a)return;return{kind:0,symbol:r.getSymbolAtLocation(u.name)}}return s(t,c(u))}if(e.isNamespaceExport(o))return s(t,0);if(e.isExportAssignment(o))return d(o);if(e.isExportAssignment(l))return d(l);if(e.isBinaryExpression(o))return p(o,!0);if(e.isBinaryExpression(l))return p(l,!0);if(e.isJSDocTypedefTag(o))return s(t,0);function d(e){if(e.symbol.parent){var n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}}function p(n,i){var a;switch(e.getAssignmentDeclarationKind(n)){case 1:a=0;break;case 2:a=2;break;default:return}var o=i?r.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(n.left,e.isAccessExpression))):t;return o&&s(o,a)}}function s(e,n){var t=i(e,n,r);return t&&{kind:1,symbol:e,exportInfo:t}}function c(n){return e.hasSyntacticModifier(n,512)?1:0}},n.getExportInfo=i}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){!function(n){var t,r,o,s;function c(e,n){return void 0===n&&(n=1),{kind:n,node:e.name||e,context:u(e)}}function l(e){return e&&void 0===e.kind}function u(n){if(e.isDeclaration(n))return d(n);if(n.parent){if(!e.isDeclaration(n.parent)&&!e.isExportAssignment(n.parent)){if(e.isInJSFile(n)){var t=e.isBinaryExpression(n.parent)?n.parent:e.isAccessExpression(n.parent)&&e.isBinaryExpression(n.parent.parent)&&n.parent.parent.left===n.parent?n.parent.parent:void 0;if(t&&0!==e.getAssignmentDeclarationKind(t))return d(t)}if(e.isJsxOpeningElement(n.parent)||e.isJsxClosingElement(n.parent))return n.parent.parent;if(e.isJsxSelfClosingElement(n.parent)||e.isLabeledStatement(n.parent)||e.isBreakOrContinueStatement(n.parent))return n.parent;if(e.isStringLiteralLike(n)){var r=e.tryGetImportFromModuleSpecifier(n);if(r){var i=e.findAncestor(r,(function(n){return e.isDeclaration(n)||e.isStatement(n)||e.isJSDocTag(n)}));return e.isDeclaration(i)?d(i):i}}var a=e.findAncestor(n,e.isComputedPropertyName);return a?d(a.parent):void 0}return n.parent.name===n||e.isConstructorDeclaration(n.parent)||e.isExportAssignment(n.parent)||(e.isImportOrExportSpecifier(n.parent)||e.isBindingElement(n.parent))&&n.parent.propertyName===n||88===n.kind&&e.hasSyntacticModifier(n.parent,513)?d(n.parent):void 0}}function d(n){if(n)switch(n.kind){case 252:return e.isVariableDeclarationList(n.parent)&&1===n.parent.declarations.length?e.isVariableStatement(n.parent.parent)?n.parent.parent:e.isForInOrOfStatement(n.parent.parent)?d(n.parent.parent):n.parent:n;case 201:return d(n.parent.parent);case 268:return n.parent.parent.parent;case 273:case 266:return n.parent.parent;case 265:case 272:return n.parent;case 219:return e.isExpressionStatement(n.parent)?n.parent:n;case 242:case 241:return{start:n.initializer,end:n.expression};case 291:case 292:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)?d(e.findAncestor(n.parent,(function(n){return e.isBinaryExpression(n)||e.isForInOrOfStatement(n)}))):n;default:return n}}function p(e,n,t){if(t){var r=l(t)?b(t.start,n,t.end):b(t,n);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}}function f(n,r,i,a,o){if(300!==a.kind){var s=n.getTypeChecker();if(292===a.parent.kind){var l=[];return t.getReferenceEntriesForShorthandPropertyAssignment(a,s,(function(e){return l.push(c(e))})),l}if(106===a.kind||e.isSuperProperty(a.parent)){var u=s.getSymbolAtLocation(a);return u.valueDeclaration&&[c(u.valueDeclaration)]}return m(o,a,n,i,r,{implementations:!0,use:1})}}function m(n,r,i,a,o,s,c){return void 0===s&&(s={}),void 0===c&&(c=new e.Set(a.map((function(e){return e.fileName})))),_(t.getReferencedSymbolsForNode(n,r,i,a,o,s,c))}function _(n){return n&&e.flatMap(n,(function(e){return e.references}))}function g(n){var t=n.getSourceFile();return{sourceFile:t,textSpan:b(e.isComputedPropertyName(n)?n.expression:n,t)}}function y(n,r,i){var a=t.getIntersectingMeaningFromDeclarations(i,n),o=n.declarations&&e.firstOrUndefined(n.declarations)||i,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,n,o.getSourceFile(),o,o,a);return{displayParts:s.displayParts,kind:s.symbolKind}}function h(e){var n=v(e);if(0===e.kind)return a(a({},n),{isWriteAccess:!1,isDefinition:!1});var t=e.kind,r=e.node;return a(a({},n),{isWriteAccess:T(r),isDefinition:S(r),isInString:2===t||void 0})}function v(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var n=e.node.getSourceFile(),t=b(e.node,n);return a({textSpan:t,fileName:n.fileName},p(t,n,e.context))}function b(n,t,r){var i=n.getStart(t),a=(r||n).getEnd();return e.isStringLiteralLike(n)&&(e.Debug.assert(void 0===r),i+=1,a-=1),e.createTextSpanFromBounds(i,a)}function E(e){return 0===e.kind?e.textSpan:b(e.node,e.node.getSourceFile())}function T(n){var t=e.getDeclarationFromName(n);return!!t&&function(n){if(8388608&n.flags)return!0;switch(n.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(n.parent);case 254:case 211:case 169:case 167:case 170:case 171:return!!n.body;case 252:case 165:return!!n.initializer||e.isCatchClause(n.parent);case 166:case 164:case 342:case 335:return!1;default:return e.Debug.failBadSyntaxKind(n)}}(t)||88===n.kind||e.isWriteAccess(n)}function S(n){return 88===n.kind||!!e.getDeclarationFromName(n)||e.isLiteralComputedPropertyDeclarationName(n)||133===n.kind&&e.isConstructorDeclaration(n.parent)}(s=n.DefinitionKind||(n.DefinitionKind={}))[s.Symbol=0]="Symbol",s[s.Label=1]="Label",s[s.Keyword=2]="Keyword",s[s.This=3]="This",s[s.String=4]="String",s[s.TripleSlashReference=5]="TripleSlashReference",(o=n.EntryKind||(n.EntryKind={}))[o.Span=0]="Span",o[o.Node=1]="Node",o[o.StringLiteral=2]="StringLiteral",o[o.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",o[o.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",n.nodeEntry=c,n.isContextWithStartAndEndNode=l,n.getContextNode=d,n.toContextSpan=p,(r=n.FindReferencesUse||(n.FindReferencesUse={}))[r.Other=0]="Other",r[r.References=1]="References",r[r.Rename=2]="Rename",n.findReferencedSymbols=function(n,r,i,o,s){var c=e.getTouchingPropertyName(o,s),l=t.getReferencedSymbolsForNode(s,c,n,i,r,{use:1}),u=n.getTypeChecker();return l&&l.length?e.mapDefined(l,(function(n){var t=n.definition,i=n.references;return t&&{definition:u.runWithCancellationToken(r,(function(n){return function(n,t,r){var i=function(){switch(n.type){case 0:var i=y(f=n.symbol,t,r),o=i.displayParts,s=i.kind,c=o.map((function(e){return e.text})).join(""),l=f.declarations&&e.firstOrUndefined(f.declarations),u=l?e.getNameOfDeclaration(l)||l:r;return a(a({},g(u)),{name:c,kind:s,displayParts:o,context:d(l)});case 1:return u=n.node,a(a({},g(u)),{name:u.text,kind:"label",displayParts:[e.displayPart(u.text,e.SymbolDisplayPartKind.text)]});case 2:u=n.node;var p=e.tokenToString(u.kind);return a(a({},g(u)),{name:p,kind:"keyword",displayParts:[{text:p,kind:"keyword"}]});case 3:u=n.node;var f,m=(f=t.getSymbolAtLocation(u))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,f,u.getSourceFile(),e.getContainerNode(u),u).displayParts||[e.textPart("this")];return a(a({},g(u)),{name:"this",kind:"var",displayParts:m});case 4:return u=n.node,a(a({},g(u)),{name:u.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(u),e.SymbolDisplayPartKind.stringLiteral)]});case 5:return{textSpan:e.createTextSpanFromRange(n.reference),sourceFile:n.file,name:n.reference.fileName,kind:"string",displayParts:[e.displayPart('"'+n.reference.fileName+'"',e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(n)}}(),o=i.sourceFile,s=i.textSpan,c=i.name,l=i.kind,u=i.displayParts,f=i.context;return a({containerKind:"",containerName:"",fileName:o.fileName,kind:l,name:c,textSpan:s,displayParts:u},p(s,o,f))}(t,n,c)})),references:i.map(h)}})):void 0},n.getImplementationsAtPosition=function(n,t,r,o,s){var c,l=e.getTouchingPropertyName(o,s),u=f(n,t,r,l,s);if(204===l.parent.kind||201===l.parent.kind||205===l.parent.kind||106===l.kind)c=u&&i([],u,!0);else for(var d=u&&i([],u,!0),p=new e.Map;d&&d.length;){var m=d.shift();if(e.addToSeen(p,e.getNodeId(m.node))){c=e.append(c,m);var _=f(n,t,r,m.node,m.node.pos);_&&d.push.apply(d,_)}}var g=n.getTypeChecker();return e.map(c,(function(n){return function(n,t){var r=v(n);if(0!==n.kind){var i=n.node;return a(a({},r),function(n,t){var r=t.getSymbolAtLocation(e.isDeclaration(n)&&n.name?n.name:n);return r?y(r,t,n):203===n.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:224===n.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(n),displayParts:[]}}(i,t))}return a(a({},r),{kind:"",displayParts:[]})}(n,g)}))},n.findReferenceOrRenameEntries=function(n,r,i,a,o,s,c){return e.map(_(t.getReferencedSymbolsForNode(o,a,n,i,r,s)),(function(e){return c(e,a,n.getTypeChecker())}))},n.getReferenceEntriesForNode=m,n.toRenameLocation=function(n,t,r,i){return a(a({},v(n)),i&&function(n,t,r){if(0!==n.kind&&e.isIdentifier(t)){var i=n.node,a=n.kind,o=i.parent,s=t.text,c=e.isShorthandPropertyAssignment(o);if(c||e.isObjectBindingElementWithoutPropertyName(o)&&o.name===i&&void 0===o.dotDotDotToken){var l={prefixText:s+": "},u={suffixText:": "+s};if(3===a)return l;if(4===a)return u;if(c){var d=o.parent;return e.isObjectLiteralExpression(d)&&e.isBinaryExpression(d.parent)&&e.isModuleExportsAccessExpression(d.parent.left)?l:u}return l}if(e.isImportSpecifier(o)&&!o.propertyName){var p=e.isExportSpecifier(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return e.contains(p.declarations,o)?{prefixText:s+" as "}:e.emptyOptions}if(e.isExportSpecifier(o)&&!o.propertyName)return t===n.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(n.node)?{prefixText:s+" as "}:{suffixText:" as "+s}}return e.emptyOptions}(n,t,r))},n.toReferenceEntry=h,n.toHighlightSpan=function(e){var n=v(e);if(0===e.kind)return{fileName:n.fileName,span:{textSpan:n.textSpan,kind:"reference"}};var t=T(e.node),r=a({textSpan:n.textSpan,kind:t?"writtenReference":"reference",isInString:2===e.kind||void 0},n.contextSpan&&{contextSpan:n.contextSpan});return{fileName:n.fileName,span:r}},n.getTextSpanOfEntry=E,function(t){function r(n,t,r){for(var i,a=0,o=t.get(n.path)||e.emptyArray;a<o.length;a++){var s=o[a];if(e.isReferencedFile(s)){var c=r.getSourceFileByPath(s.file),l=e.getReferencedFileLocation(r.getSourceFileByPath,s);e.isReferenceFileLocation(l)&&(i=e.append(i,{kind:0,fileName:c.fileName,textSpan:e.createTextSpanFromRange(l)}))}}return i}function i(n,t,r){if(n.parent&&e.isNamespaceExportDeclaration(n.parent)){var i=r.getAliasedSymbol(t),a=r.getMergedSymbol(i);if(i!==a)return a}}function a(n,t,r,i,a,s){var c=1536&n.flags&&n.declarations&&e.find(n.declarations,e.isSourceFile);if(c){var u=n.exports.get("export="),p=l(t,n,!!u,r,s);if(!u||!s.has(c.fileName))return p;var f=t.getTypeChecker();return o(t,p,d(n=e.skipAlias(u,f),void 0,r,s,f,i,a))}}function o(n){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];for(var a=0,o=r;a<o.length;a++){var c=o[a];if(c&&c.length)if(t)for(var l=function(r){if(!r.definition||0!==r.definition.type)return t.push(r),"continue";var i=r.definition.symbol,a=e.findIndex(t,(function(e){return!!e.definition&&0===e.definition.type&&e.definition.symbol===i}));if(-1===a)return t.push(r),"continue";var o=t[a];t[a]={definition:o.definition,references:o.references.concat(r.references).sort((function(t,r){var i=s(n,t),a=s(n,r);if(i!==a)return e.compareValues(i,a);var o=E(t),c=E(r);return o.start!==c.start?e.compareValues(o.start,c.start):e.compareValues(o.length,c.length)}))}},u=0,d=c;u<d.length;u++)l(d[u]);else t=c}return t}function s(e,n){var t=0===n.kind?e.getSourceFile(n.fileName):n.node.getSourceFile();return e.getSourceFiles().indexOf(t)}function l(t,r,i,a,o){e.Debug.assert(!!r.valueDeclaration);var s=e.mapDefined(n.findModuleReferences(t,a,r),(function(n){if("import"===n.kind){var t=n.literal.parent;if(e.isLiteralTypeNode(t)){var r=e.cast(t.parent,e.isImportTypeNode);if(i&&!r.qualifier)return}return c(n.literal)}return{kind:0,fileName:n.referencingFile.fileName,textSpan:e.createTextSpanFromRange(n.ref)}}));if(r.declarations)for(var l=0,u=r.declarations;l<u.length;l++)switch((m=u[l]).kind){case 300:break;case 259:o.has(m.getSourceFile().fileName)&&s.push(c(m.name));break;default:e.Debug.assert(!!(33554432&r.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}var d=r.exports.get("export=");if(null==d?void 0:d.declarations)for(var p=0,f=d.declarations;p<f.length;p++){var m,_=(m=f[p]).getSourceFile();if(o.has(_.fileName)){var g=e.isBinaryExpression(m)&&e.isPropertyAccessExpression(m.left)?m.left.expression:e.isExportAssignment(m)?e.Debug.checkDefined(e.findChildOfKind(m,93,_)):e.getNameOfDeclaration(m)||m;s.push(c(g))}}return s.length?[{definition:{type:0,symbol:r},references:s}]:e.emptyArray}function u(n){return 143===n.kind&&e.isTypeOperatorNode(n.parent)&&143===n.parent.operator}function d(n,t,r,i,a,o,s){var c=t&&function(n,t,r,i){var a=t.parent;return e.isExportSpecifier(a)&&i?I(t,n,a,r):e.firstDefined(n.declarations,(function(i){if(!i.parent){if(33554432&n.flags)return;e.Debug.fail("Unexpected symbol at "+e.Debug.formatSyntaxKind(t.kind)+": "+e.Debug.formatSymbol(n))}return e.isTypeLiteralNode(i.parent)&&e.isUnionTypeNode(i.parent.parent)?r.getPropertyOfType(r.getTypeFromTypeNode(i.parent.parent),n.name):void 0}))}(n,t,a,!j(s))||n,l=t?B(t,c):7,u=[],d=new m(r,i,t?function(n){switch(n.kind){case 169:case 133:return 1;case 79:if(e.isClassLike(n.parent))return e.Debug.assert(n.parent.name===n),2;default:return 0}}(t):0,a,o,l,s,u),f=j(s)&&c.declarations?e.find(c.declarations,e.isExportSpecifier):void 0;if(f)C(f.name,c,f,d.createSearch(t,n,void 0),d,!0,!0);else if(t&&88===t.kind&&"default"===c.escapedName&&c.parent)N(t,c,d),_(t,c,{exportingModuleSymbol:c.parent,exportKind:1},d);else{var g=d.createSearch(t,c,void 0,{allSearchSymbols:t?M(c,t,a,2===s.use,!!s.providePrefixAndSuffixTextForRename,!!s.implementations):[c]});p(c,d,g)}return u}function p(n,t,r){var i=function(n){var t=n.declarations,r=n.flags,i=n.parent,a=n.valueDeclaration;if(a&&(211===a.kind||224===a.kind))return a;if(t){if(8196&r){var o=e.find(t,(function(n){return e.hasEffectiveModifier(n,8)||e.isPrivateIdentifierClassElementDeclaration(n)}));return o?e.getAncestor(o,255):void 0}if(!t.some(e.isObjectBindingElementWithoutPropertyName)){var s,c=i&&!(262144&n.flags);if(!c||e.isExternalModuleSymbol(i)&&!i.globalExports){for(var l=0,u=t;l<u.length;l++){var d=u[l],p=e.getContainerNode(d);if(s&&s!==p)return;if(!p||300===p.kind&&!e.isExternalOrCommonJsModule(p))return;if(s=p,e.isFunctionExpression(s))for(var f=void 0;f=e.getNextJSDocCommentLocation(s);)s=f}return c?s.getSourceFile():s}}}}(n);if(i)L(i,i.getSourceFile(),r,t,!(e.isSourceFile(i)&&!e.contains(t.sourceFiles,i)));else for(var a=0,o=t.sourceFiles;a<o.length;a++){var s=o[a];t.cancellationToken.throwIfCancellationRequested(),h(s,r,t)}}var f;t.getReferencedSymbolsForNode=function(n,t,s,p,f,m,_){var g,y;if(void 0===m&&(m={}),void 0===_&&(_=new e.Set(p.map((function(e){return e.fileName})))),1===m.use?t=e.getAdjustedReferenceLocation(t):2===m.use&&(t=e.getAdjustedRenameLocation(t)),e.isSourceFile(t)){var h=e.GoToDefinition.getReferenceAtPosition(t,n,s);if(!(null==h?void 0:h.file))return;var v=s.getTypeChecker().getMergedSymbol(h.file.symbol);if(v)return l(s,v,!1,p,_);if(!(C=s.getFileIncludeReasons()))return;return[{definition:{type:5,reference:h.reference,file:t},references:r(h.file,C,s)||e.emptyArray}]}if(!m.implementations){var E=function(n,t,r){if(e.isTypeKeyword(n.kind)){if(114===n.kind&&e.isVoidExpression(n.parent))return;if(143===n.kind&&!u(n))return;return function(n,t,r,i){var a=e.flatMap(n,(function(n){return r.throwIfCancellationRequested(),e.mapDefined(b(n,e.tokenToString(t),n),(function(e){if(e.kind===t&&(!i||i(e)))return c(e)}))}));return a.length?[{definition:{type:2,node:a[0].node},references:a}]:void 0}(t,n.kind,r,143===n.kind?u:void 0)}if(e.isStaticModifier(n)&&e.isClassStaticBlockDeclaration(n.parent))return[{definition:{type:2,node:n},references:[c(n)]}];if(e.isJumpStatementTarget(n)){var i=e.getTargetLabel(n.parent,n.text);return i&&S(i.parent,i)}return e.isLabelOfLabeledStatement(n)?S(n.parent,n):e.isThis(n)?function(n,t,r){var i=e.getThisContainer(n,!1),a=32;switch(i.kind){case 167:case 166:if(e.isObjectLiteralMethod(i)){a&=e.getSyntacticModifierFlags(i),i=i.parent;break}case 165:case 164:case 169:case 170:case 171:a&=e.getSyntacticModifierFlags(i),i=i.parent;break;case 300:if(e.isExternalModule(i)||w(n))return;case 254:case 211:break;default:return}var o=e.flatMap(300===i.kind?t:[i.getSourceFile()],(function(n){return r.throwIfCancellationRequested(),b(n,"this",e.isSourceFile(i)?n:i).filter((function(n){if(!e.isThis(n))return!1;var t=e.getThisContainer(n,!1);switch(i.kind){case 211:case 254:return i.symbol===t.symbol;case 167:case 166:return e.isObjectLiteralMethod(i)&&i.symbol===t.symbol;case 224:case 255:case 203:return t.parent&&i.symbol===t.parent.symbol&&e.isStatic(t)===!!a;case 300:return 300===t.kind&&!e.isExternalModule(t)&&!w(n)}}))})).map((function(e){return c(e)}));return[{definition:{type:3,node:e.firstDefined(o,(function(n){return e.isParameter(n.node.parent)?n.node:void 0}))||n},references:o}]}(n,t,r):106===n.kind?function(n){var t=e.getSuperContainer(n,!1);if(t){var r=32;switch(t.kind){case 165:case 164:case 167:case 166:case 169:case 170:case 171:r&=e.getSyntacticModifierFlags(t),t=t.parent;break;default:return}var i=t.getSourceFile(),a=e.mapDefined(b(i,"super",t),(function(n){if(106===n.kind){var i=e.getSuperContainer(n,!1);return i&&e.isStatic(i)===!!r&&i.parent.symbol===t.symbol?c(n):void 0}}));return[{definition:{type:0,symbol:t.symbol},references:a}]}}(n):void 0}(t,p,f);if(E)return E}var T=s.getTypeChecker(),x=T.getSymbolAtLocation(e.isConstructorDeclaration(t)&&t.parent.name||t);if(x){if("export="===x.escapedName)return l(s,x.parent,!1,p,_);var L=a(x,s,p,f,m,_);if(L&&!(33554432&x.flags))return L;var D=i(t,x,T),A=D&&a(D,s,p,f,m,_);return o(s,L,d(x,t,p,_,T,f,m),A)}if(!m.implementations&&e.isStringLiteralLike(t)){if(e.isModuleSpecifierLike(t)){var C=s.getFileIncludeReasons(),I=null===(y=null===(g=t.getSourceFile().resolvedModules)||void 0===g?void 0:g.get(t.text))||void 0===y?void 0:y.resolvedFileName,N=I?s.getSourceFile(I):void 0;if(N)return[{definition:{type:4,node:t},references:r(N,C,s)||e.emptyArray}]}return function(n,t,r,i){var a=e.getContextualTypeOrAncestorTypeNodeType(n,r),o=e.flatMap(t,(function(t){return i.throwIfCancellationRequested(),e.mapDefined(b(t,n.text),(function(t){if(e.isStringLiteralLike(t)&&t.text===n.text){if(!a)return c(t,2);var i=e.getContextualTypeOrAncestorTypeNodeType(t,r);if(a!==r.getStringType()&&a===i)return c(t,2)}}))}));return[{definition:{type:4,node:n},references:o}]}(t,p,T,f)}},t.getReferencesForFileName=function(n,t,i,a){var o,s;void 0===a&&(a=new e.Set(i.map((function(e){return e.fileName}))));var c=null===(o=t.getSourceFile(n))||void 0===o?void 0:o.symbol;if(c)return(null===(s=l(t,c,!1,i,a)[0])||void 0===s?void 0:s.references)||e.emptyArray;var u=t.getFileIncludeReasons(),d=t.getSourceFile(n);return d&&u&&r(d,u,t)||e.emptyArray},function(e){e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"}(f||(f={}));var m=function(){function t(n,t,r,i,a,o,s,c){this.sourceFiles=n,this.sourceFilesSet=t,this.specialSearchKind=r,this.checker=i,this.cancellationToken=a,this.searchMeaning=o,this.options=s,this.result=c,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return t.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},t.prototype.getImportSearches=function(e,t){return this.importTracker||(this.importTracker=n.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)},t.prototype.createSearch=function(n,t,r,i){void 0===i&&(i={});var a=i.text,o=void 0===a?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(t)||function(n){if(33555968&n.flags){var t=n.declarations&&e.find(n.declarations,(function(n){return!e.isSourceFile(n)&&!e.isModuleDeclaration(n)}));return t&&t.symbol}}(t)||t)):a,s=i.allSearchSymbols,c=void 0===s?[t]:s,l=e.escapeLeadingUnderscores(o),u=this.options.implementations&&n?function(n,t,r){var i=e.isRightSideOfPropertyAccess(n)?n.parent:void 0,a=i&&r.getTypeAtLocation(i.expression),o=e.mapDefined(a&&(a.isUnionOrIntersection()?a.types:a.symbol===t.parent?void 0:[a]),(function(e){return e.symbol&&96&e.symbol.flags?e.symbol:void 0}));return 0===o.length?void 0:o}(n,t,this.checker):void 0;return{symbol:t,comingFrom:r,text:o,escapedText:l,parents:u,allSearchSymbols:c,includes:function(n){return e.contains(c,n)}}},t.prototype.referenceAdder=function(n){var t=e.getSymbolId(n),r=this.symbolIdToReferences[t];return r||(r=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:n},references:r})),function(e,n){return r.push(c(e,n))}},t.prototype.addStringOrCommentReference=function(e,n){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:n}]})},t.prototype.markSearchedSymbols=function(n,t){for(var r=e.getNodeId(n),i=this.sourceFileToSeenSymbols[r]||(this.sourceFileToSeenSymbols[r]=new e.Set),a=!1,o=0,s=t;o<s.length;o++){var c=s[o];a=e.tryAddToSet(i,e.getSymbolId(c))||a}return a},t}();function _(e,n,t,r){var i=r.getImportSearches(n,t),a=i.importSearches,o=i.singleReferences,s=i.indirectUsers;if(o.length)for(var c=r.referenceAdder(n),l=0,u=o;l<u.length;l++){var d=u[l];g(d,r)&&c(d)}for(var p=0,f=a;p<f.length;p++){var m=f[p],_=m[0],y=m[1];x(_.getSourceFile(),r.createSearch(_,y,1),r)}if(s.length){var v=void 0;switch(t.exportKind){case 0:v=r.createSearch(e,n,1);break;case 1:v=2===r.options.use?void 0:r.createSearch(e,n,1,{text:"default"})}if(v)for(var b=0,E=s;b<E.length;b++)h(E[b],v,r)}}function g(n,t){return!(!D(n,t)||2===t.options.use&&(!e.isIdentifier(n)||e.isImportOrExportSpecifier(n.parent)&&"default"===n.escapedText))}function y(e,n){if(e.declarations)for(var t=0,r=e.declarations;t<r.length;t++){var i=r[t],a=i.getSourceFile();x(a,n.createSearch(i,e,0),n,n.includesSourceFile(a))}}function h(n,t,r){void 0!==e.getNameTable(n).get(t.escapedText)&&x(n,t,r)}function v(n,t,r,i,a){void 0===a&&(a=r);var o=e.isParameterPropertyDeclaration(n.parent,n.parent.parent)?e.first(t.getSymbolsOfParameterPropertyDeclaration(n.parent,n.text)):t.getSymbolAtLocation(n);if(o)for(var s=0,c=b(r,o.name,a);s<c.length;s++){var l=c[s];if(e.isIdentifier(l)&&l!==n&&l.escapedText===n.escapedText){var u=t.getSymbolAtLocation(l);if(u===o||t.getShorthandAssignmentValueSymbol(l.parent)===o||e.isExportSpecifier(l.parent)&&I(l,u,l.parent,t)===o){var d=i(l);if(d)return d}}}}function b(n,t,r){return void 0===r&&(r=n),T(n,t,r).map((function(t){return e.getTouchingPropertyName(n,t)}))}function T(n,t,r){void 0===r&&(r=n);var i=[];if(!t||!t.length)return i;for(var a=n.text,o=a.length,s=t.length,c=a.indexOf(t,r.pos);c>=0&&!(c>r.end);){var l=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(a.charCodeAt(l),99)||i.push(c),c=a.indexOf(t,c+s+1)}return i}function S(n,t){var r=n.getSourceFile(),i=t.text,a=e.mapDefined(b(r,i,n),(function(n){return n===t||e.isJumpStatementTarget(n)&&e.getTargetLabel(n,i)===t?c(n):void 0}));return[{definition:{type:1,node:t},references:a}]}function x(e,n,t,r){return void 0===r&&(r=!0),t.cancellationToken.throwIfCancellationRequested(),L(e,e,n,t,r)}function L(e,n,t,r,i){if(r.markSearchedSymbols(n,t.allSearchSymbols))for(var a=0,o=T(n,t.text,e);a<o.length;a++)A(n,o[a],t,r,i)}function D(n,t){return!!(e.getMeaningFromLocation(n)&t.searchMeaning)}function A(t,r,i,a,o){var s=e.getTouchingPropertyName(t,r);if(function(n,t){switch(n.kind){case 80:if(e.isJSDocMemberName(n.parent))return!0;case 79:return n.text.length===t.length;case 14:case 10:var r=n;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(r)||e.isNameOfModuleDeclaration(n)||e.isExpressionOfExternalModuleImportEqualsDeclaration(n)||e.isCallExpression(n.parent)&&e.isBindableObjectDefinePropertyCall(n.parent)&&n.parent.arguments[1]===n)&&r.text.length===t.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)&&n.text.length===t.length;case 88:return 7===t.length;default:return!1}}(s,i.text)){if(D(s,a)){var c=a.checker.getSymbolAtLocation(s);if(c){var l=s.parent;if(!e.isImportSpecifier(l)||l.propertyName!==s){if(e.isExportSpecifier(l))return e.Debug.assert(79===s.kind),void C(s,c,l,i,a,o);var u=function(n,t,r,i){var a=i.checker;return F(t,r,a,!1,2!==i.options.use||!!i.options.providePrefixAndSuffixTextForRename,(function(r,i,a,o){return a&&G(t)!==G(a)&&(a=void 0),n.includes(a||i||r)?{symbol:!i||6&e.getCheckFlags(r)?r:i,kind:o}:void 0}),(function(e){return!(n.parents&&!n.parents.some((function(n){return P(e.parent,n,i.inheritsFromCache,a)})))}))}(i,c,s,a);if(u){switch(a.specialSearchKind){case 0:o&&N(s,u,a);break;case 1:!function(n,t,r,i){e.isNewExpressionTarget(n)&&N(n,r.symbol,i);var a,o=function(){return i.referenceAdder(r.symbol)};if(e.isClassLike(n.parent))e.Debug.assert(88===n.kind||n.parent.name===n),function(n,t,r){var i=k(n);if(i&&i.declarations)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.findChildOfKind(s,133,t);e.Debug.assert(169===s.kind&&!!c),r(c)}n.exports&&n.exports.forEach((function(n){var t=n.valueDeclaration;if(t&&167===t.kind){var i=t.body;i&&V(i,108,(function(n){e.isNewExpressionTarget(n)&&r(n)}))}}))}(r.symbol,t,o());else{var s=(a=n,e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(a).parent));s&&(function(n,t){var r=k(n.symbol);if(r&&r.declarations)for(var i=0,a=r.declarations;i<a.length;i++){var o=a[i];e.Debug.assert(169===o.kind);var s=o.body;s&&V(s,106,(function(n){e.isCallExpressionTarget(n)&&t(n)}))}}(s,o()),function(e,n){if(!function(e){return!!k(e.symbol)}(e)){var t=e.symbol,r=n.createSearch(void 0,t,void 0);p(t,n,r)}}(s,i))}}(s,t,i,a);break;case 2:!function(n,t,r){N(n,t.symbol,r);var i=n.parent;if(2!==r.options.use&&e.isClassLike(i)){e.Debug.assert(i.name===n);for(var a=r.referenceAdder(t.symbol),o=0,s=i.members;o<s.length;o++){var c=s[o];e.isMethodOrAccessor(c)&&e.isStatic(c)&&c.body&&c.body.forEachChild((function n(t){108===t.kind?a(t):e.isFunctionLike(t)||e.isClassLike(t)||t.forEachChild(n)}))}}}(s,i,a);break;default:e.Debug.assertNever(a.specialSearchKind)}!function(e,t,r,i){var a=n.getImportOrExportSymbol(e,t,i.checker,1===r.comingFrom);if(a){var o=a.symbol;0===a.kind?j(i.options)||y(o,i):_(e,o,a.exportInfo,i)}}(s,c=e.isInJSFile(s)&&201===s.parent.kind&&e.isRequireVariableDeclaration(s.parent)?s.parent.symbol:c,i,a)}else!function(n,t,r){var i=n.flags,a=n.valueDeclaration,o=r.checker.getShorthandAssignmentValueSymbol(a),s=a&&e.getNameOfDeclaration(a);33554432&i||!s||!t.includes(o)||N(s,o,r)}(c,i,a)}}}}else!a.options.implementations&&(a.options.findInStrings&&e.isInString(t,r)||a.options.findInComments&&e.isInNonReferenceComment(t,r))&&a.addStringOrCommentReference(t.fileName,e.createTextSpan(r,i.text.length))}function C(t,r,i,a,o,s,c){e.Debug.assert(!c||!!o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var l=i.parent,u=i.propertyName,d=i.name,p=l.parent,f=I(t,r,i,o.checker);if(c||a.includes(f)){if(u?t===u?(p.moduleSpecifier||b(),s&&2!==o.options.use&&o.markSeenReExportRHS(d)&&N(d,e.Debug.checkDefined(i.symbol),o)):o.markSeenReExportRHS(t)&&b():2===o.options.use&&"default"===d.escapedText||b(),!j(o.options)||c){var m=88===t.originalKeywordKind||88===i.name.originalKeywordKind?1:0,g=e.Debug.checkDefined(i.symbol),h=n.getExportInfo(g,m,o.checker);h&&_(t,g,h,o)}if(1!==a.comingFrom&&p.moduleSpecifier&&!u&&!j(o.options)){var v=o.checker.getExportSpecifierLocalTargetSymbol(i);v&&y(v,o)}}function b(){s&&N(t,f,o)}}function I(n,t,r,i){return function(n,t){var r=t.parent,i=t.propertyName,a=t.name;return e.Debug.assert(i===n||a===n),i?i===n:!r.parent.moduleSpecifier}(n,r)&&i.getExportSpecifierLocalTargetSymbol(r)||t}function N(n,t,r){var i="kind"in t?t:{kind:void 0,symbol:t},a=i.kind,o=i.symbol,s=r.referenceAdder(o);r.options.implementations?function(n,t,r){var i;if(!e.isDeclarationName(n)||(8388608&(i=n.parent).flags?e.isInterfaceDeclaration(i)||e.isTypeAliasDeclaration(i):!(e.isVariableLike(i)?e.hasInitializer(i):e.isFunctionLikeDeclaration(i)?i.body:e.isClassLike(i)||e.isModuleOrEnumDeclaration(i)))){if(79===n.kind){292===n.parent.kind&&U(n,r.checker,t);var a=R(n);if(a)t(a);else{var o=e.findAncestor(n,(function(n){return!e.isQualifiedName(n.parent)&&!e.isTypeNode(n.parent)&&!e.isTypeElement(n.parent)})),s=o.parent;if(e.hasType(s)&&s.type===o&&r.markSeenContainingTypeReference(s))if(e.hasInitializer(s))l(s.initializer);else if(e.isFunctionLike(s)&&s.body){var c=s.body;233===c.kind?e.forEachReturnStatement(c,(function(e){e.expression&&l(e.expression)})):l(c)}else e.isAssertionExpression(s)&&l(s.expression)}}}else t(n);function l(e){O(e)&&t(e)}}(n,s,r):s(n,a)}function k(e){return e.members&&e.members.get("__constructor")}function R(n){return e.isIdentifier(n)||e.isPropertyAccessExpression(n)?R(n.parent):e.isExpressionWithTypeArguments(n)?e.tryCast(n.parent.parent,e.isClassLike):void 0}function O(e){switch(e.kind){case 210:return O(e.expression);case 212:case 211:case 203:case 224:case 202:return!0;default:return!1}}function P(n,t,r,i){if(n===t)return!0;var a=e.getSymbolId(n)+","+e.getSymbolId(t),o=r.get(a);if(void 0!==o)return o;r.set(a,!1);var s=!!n.declarations&&n.declarations.some((function(n){return e.getAllSuperTypeNodes(n).some((function(e){var n=i.getTypeAtLocation(e);return!!n&&!!n.symbol&&P(n.symbol,t,r,i)}))}));return r.set(a,s),s}function w(e){return 79===e.kind&&162===e.parent.kind&&e.parent.name===e}function M(e,n,t,r,i,a){var o=[];return F(e,n,t,r,!(r&&i),(function(n,t,r){r&&G(e)!==G(r)&&(r=void 0),o.push(r||t||n)}),(function(){return!a})),o}function F(n,t,r,a,o,s,c){var l=e.getContainingObjectLiteralElement(t);if(l){var u=r.getShorthandAssignmentValueSymbol(t.parent);if(u&&a)return s(u,void 0,void 0,3);var d=r.getContextualType(l.parent),p=d&&e.firstDefined(e.getPropertySymbolsFromContextualType(l,r,d,!0),(function(e){return x(e,4)}));if(p)return p;var f=function(n,t){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(n):void 0}(t,r),m=f&&s(f,void 0,void 0,4);if(m)return m;var _=u&&s(u,void 0,void 0,3);if(_)return _}var g=i(t,n,r);if(g){var y=s(g,void 0,void 0,1);if(y)return y}var h=x(n);if(h)return h;if(n.valueDeclaration&&e.isParameterPropertyDeclaration(n.valueDeclaration,n.valueDeclaration.parent)){var v=r.getSymbolsOfParameterPropertyDeclaration(e.cast(n.valueDeclaration,e.isParameter),n.name);return e.Debug.assert(2===v.length&&!!(1&v[0].flags)&&!!(4&v[1].flags)),x(1&n.flags?v[1]:v[0])}var b=e.getDeclarationOfKind(n,273);if(!a||b&&!b.propertyName){var E=b&&r.getExportSpecifierLocalTargetSymbol(b);if(E){var T=s(E,void 0,void 0,1);if(T)return T}}if(!a){var S=void 0;return(S=o?e.isObjectBindingElementWithoutPropertyName(t.parent)?e.getPropertySymbolFromBindingElement(r,t.parent):void 0:L(n,r))&&x(S,4)}if(e.Debug.assert(a),o)return(S=L(n,r))&&x(S,4);function x(n,t){return e.firstDefined(r.getRootSymbols(n),(function(i){return s(n,i,void 0,t)||(i.parent&&96&i.parent.flags&&c(i)?function(n,t,r,i){var a=new e.Map;return function n(o){if(96&o.flags&&e.addToSeen(a,e.getSymbolId(o)))return e.firstDefined(o.declarations,(function(a){return e.firstDefined(e.getAllSuperTypeNodes(a),(function(a){var o=r.getTypeAtLocation(a),s=o&&o.symbol&&r.getPropertyOfType(o,t);return o&&s&&(e.firstDefined(r.getRootSymbols(s),i)||n(o.symbol))}))}))}(n)}(i.parent,i.name,r,(function(e){return s(n,i,e,t)})):void 0)}))}function L(n,t){var r=e.getDeclarationOfKind(n,201);if(r&&e.isObjectBindingElementWithoutPropertyName(r))return e.getPropertySymbolFromBindingElement(t,r)}}function G(n){return!!n.valueDeclaration&&!!(32&e.getEffectiveModifierFlags(n.valueDeclaration))}function B(n,t){var r=e.getMeaningFromLocation(n),i=t.declarations;if(i){var a=void 0;do{a=r;for(var o=0,s=i;o<s.length;o++){var c=s[o],l=e.getMeaningFromDeclaration(c);l&r&&(r|=l)}}while(r!==a)}return r}function U(n,t,r){var i=t.getSymbolAtLocation(n),a=t.getShorthandAssignmentValueSymbol(i.valueDeclaration);if(a)for(var o=0,s=a.getDeclarations();o<s.length;o++){var c=s[o];1&e.getMeaningFromDeclaration(c)&&r(c)}}function V(n,t,r){e.forEachChild(n,(function(e){e.kind===t&&r(e),V(e,t,r)}))}function j(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}t.eachExportReference=function(t,r,i,a,o,s,c,l){for(var u=n.createImportTracker(t,new e.Set(t.map((function(e){return e.fileName}))),r,i)(a,{exportKind:c?1:0,exportingModuleSymbol:o},!1),d=u.importSearches,p=u.indirectUsers,f=0,m=d;f<m.length;f++)l(m[f][0]);for(var _=0,g=p;_<g.length;_++)for(var y=0,h=b(g[_],c?"default":s);y<h.length;y++){var v=h[y],E=r.getSymbolAtLocation(v),T=e.some(null==E?void 0:E.declarations,(function(n){return!!e.tryCast(n,e.isExportAssignment)}));!e.isIdentifier(v)||e.isImportOrExportSpecifier(v.parent)||E!==a&&!T||l(v)}},t.isSymbolReferencedInFile=function(e,n,t,r){return void 0===r&&(r=t),v(e,n,t,(function(){return!0}),r)||!1},t.eachSymbolReferenceInFile=v,t.someSignatureUsage=function(n,t,r,i){if(!n.name||!e.isIdentifier(n.name))return!1;for(var a=e.Debug.checkDefined(r.getSymbolAtLocation(n.name)),o=0,s=t;o<s.length;o++)for(var c=0,l=b(s[o],a.name);c<l.length;c++){var u=l[c];if(e.isIdentifier(u)&&u!==n.name&&u.escapedText===n.name.escapedText){var d=e.climbPastPropertyAccess(u),p=e.isCallExpression(d.parent)&&d.parent.expression===d?d.parent:void 0,f=r.getSymbolAtLocation(u);if(f&&r.getRootSymbols(f).some((function(e){return e===a}))&&i(u,p))return!0}}return!1},t.getIntersectingMeaningFromDeclarations=B,t.getReferenceEntriesForShorthandPropertyAssignment=U}(t=n.Core||(n.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){!function(n){function t(n){return(e.isFunctionExpression(n)||e.isArrowFunction(n)||e.isClassExpression(n))&&e.isVariableDeclaration(n.parent)&&n===n.parent.initializer&&e.isIdentifier(n.parent.name)&&!!(2&e.getCombinedNodeFlags(n.parent))}function r(n){return e.isSourceFile(n)||e.isModuleDeclaration(n)||e.isFunctionDeclaration(n)||e.isFunctionExpression(n)||e.isClassDeclaration(n)||e.isClassExpression(n)||e.isClassStaticBlockDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isGetAccessorDeclaration(n)||e.isSetAccessorDeclaration(n)}function i(n){return e.isSourceFile(n)||e.isModuleDeclaration(n)&&e.isIdentifier(n.name)||e.isFunctionDeclaration(n)||e.isClassDeclaration(n)||e.isClassStaticBlockDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isGetAccessorDeclaration(n)||e.isSetAccessorDeclaration(n)||function(n){return(e.isFunctionExpression(n)||e.isClassExpression(n))&&e.isNamedDeclaration(n)}(n)||t(n)}function a(n){return e.isSourceFile(n)?n:e.isNamedDeclaration(n)?n.name:t(n)?n.parent.name:e.Debug.checkDefined(n.modifiers&&e.find(n.modifiers,o))}function o(e){return 88===e.kind}function s(e,n){var t=a(n);return t&&e.getSymbolAtLocation(t)}function c(n,t){if(t.body)return t;if(e.isConstructorDeclaration(t))return e.getFirstConstructorWithBody(t.parent);if(e.isFunctionDeclaration(t)||e.isMethodDeclaration(t)){var r=s(n,t);return r&&r.valueDeclaration&&e.isFunctionLikeDeclaration(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function l(n,t){var r,a=s(n,t);if(a&&a.declarations){var o=e.indicesOf(a.declarations),c=e.map(a.declarations,(function(e){return{file:e.getSourceFile().fileName,pos:e.pos}}));o.sort((function(n,t){return e.compareStringsCaseSensitive(c[n].file,c[t].file)||c[n].pos-c[t].pos}));for(var l=void 0,u=0,d=e.map(o,(function(e){return a.declarations[e]}));u<d.length;u++){var p=d[u];i(p)&&(l&&l.parent===p.parent&&l.end===p.pos||(r=e.append(r,p)),l=p)}}return r}function u(n,t){var r,i,a;return e.isClassStaticBlockDeclaration(t)?t:e.isFunctionLikeDeclaration(t)?null!==(i=null!==(r=c(n,t))&&void 0!==r?r:l(n,t))&&void 0!==i?i:t:null!==(a=l(n,t))&&void 0!==a?a:t}function d(n,a){for(var o=n.getTypeChecker(),s=!1;;){if(i(a))return u(o,a);var c;if(r(a))return(c=e.findAncestor(a,i))&&u(o,c);if(e.isDeclarationName(a))return i(a.parent)?u(o,a.parent):r(a.parent)?(c=e.findAncestor(a.parent,i))&&u(o,c):e.isVariableDeclaration(a.parent)&&a.parent.initializer&&t(a.parent.initializer)?a.parent.initializer:void 0;if(e.isConstructorDeclaration(a))return i(a.parent)?a.parent:void 0;if(124!==a.kind||!e.isClassStaticBlockDeclaration(a.parent)){if(e.isVariableDeclaration(a)&&a.initializer&&t(a.initializer))return a.initializer;if(!s){var l=o.getSymbolAtLocation(a);if(l&&(2097152&l.flags&&(l=o.getAliasedSymbol(l)),l.valueDeclaration)){s=!0,a=l.valueDeclaration;continue}}return}a=a.parent}}function p(n,r){var i=r.getSourceFile(),a=function(n,r){if(e.isSourceFile(r))return{text:r.fileName,pos:0,end:0};if((e.isFunctionDeclaration(r)||e.isClassDeclaration(r))&&!e.isNamedDeclaration(r)){var i=r.modifiers&&e.find(r.modifiers,o);if(i)return{text:"default",pos:i.getStart(),end:i.getEnd()}}if(e.isClassStaticBlockDeclaration(r)){var a=r.getSourceFile(),s=e.skipTrivia(a.text,e.moveRangePastModifiers(r).pos),c=s+6;return{text:((u=(l=n.getTypeChecker()).getSymbolAtLocation(r.parent))?l.symbolToString(u,r.parent)+" ":"")+"static {}",pos:s,end:c}}var l,u,d=t(r)?r.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(r),"Expected call hierarchy item to have a name"),p=e.isIdentifier(d)?e.idText(d):e.isStringOrNumericLiteralLike(d)?d.text:e.isComputedPropertyName(d)&&e.isStringOrNumericLiteralLike(d.expression)?d.expression.text:void 0;if(void 0===p&&(u=(l=n.getTypeChecker()).getSymbolAtLocation(d))&&(p=l.symbolToString(u,r)),void 0===p){var f=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});p=e.usingSingleLineStringWriter((function(e){return f.writeNode(4,r,r.getSourceFile(),e)}))}return{text:p,pos:d.getStart(),end:d.getEnd()}}(n,r),s=function(n){var r,i;if(t(n))return e.isModuleBlock(n.parent.parent.parent.parent)&&e.isIdentifier(n.parent.parent.parent.parent.parent.name)?n.parent.parent.parent.parent.parent.name.getText():void 0;switch(n.kind){case 170:case 171:case 167:return 203===n.parent.kind?null===(r=e.getAssignedName(n.parent))||void 0===r?void 0:r.getText():null===(i=e.getNameOfDeclaration(n.parent))||void 0===i?void 0:i.getText();case 254:case 255:case 259:if(e.isModuleBlock(n.parent)&&e.isIdentifier(n.parent.parent.name))return n.parent.parent.name.getText()}}(r),c=e.getNodeKind(r),l=e.getNodeModifiers(r),u=e.createTextSpanFromBounds(e.skipTrivia(i.text,r.getFullStart(),!1,!0),r.getEnd()),d=e.createTextSpanFromBounds(a.pos,a.end);return{file:i.fileName,kind:c,kindModifiers:l,name:a.text,containerName:s,span:u,selectionSpan:d}}function f(e){return void 0!==e}function m(n){if(1===n.kind){var t=n.node;if(e.isCallOrNewExpressionTarget(t,!0,!0)||e.isTaggedTemplateTag(t,!0,!0)||e.isDecoratorTarget(t,!0,!0)||e.isJsxOpeningLikeElementTagName(t,!0,!0)||e.isRightSideOfPropertyAccess(t)||e.isArgumentExpressionOfElementAccess(t)){var r=t.getSourceFile();return{declaration:e.findAncestor(t,i)||r,range:e.createTextRangeFromNode(t,r)}}}}function _(n){return e.getNodeId(n.declaration)}n.resolveCallHierarchyDeclaration=d,n.createCallHierarchyItem=p,n.getIncomingCalls=function(n,t,r){if(e.isSourceFile(t)||e.isModuleDeclaration(t)||e.isClassStaticBlockDeclaration(t))return[];var i=a(t),o=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(n,r,n.getSourceFiles(),i,0,{use:1},m),f);return o?e.group(o,_,(function(t){return function(n,t){return{from:p(n,t[0].declaration),fromSpans:e.map(t,(function(n){return e.createTextSpanFromRange(n.range)}))}}(n,t)})):[]},n.getOutgoingCalls=function(n,t){return 8388608&t.flags||e.isMethodSignature(t)?[]:e.group(function(n,t){var r=[],a=function(n,t){function r(r){var i=e.isTaggedTemplateExpression(r)?r.tag:e.isJsxOpeningLikeElement(r)?r.tagName:e.isAccessExpression(r)||e.isClassStaticBlockDeclaration(r)?r:r.expression,a=d(n,i);if(a){var o=e.createTextRangeFromNode(i,r.getSourceFile());if(e.isArray(a))for(var s=0,c=a;s<c.length;s++){var l=c[s];t.push({declaration:l,range:o})}else t.push({declaration:a,range:o})}}return function n(t){if(t&&!(8388608&t.flags))if(i(t)){if(e.isClassLike(t))for(var a=0,o=t.members;a<o.length;a++){var s=o[a];s.name&&e.isComputedPropertyName(s.name)&&n(s.name.expression)}}else{switch(t.kind){case 79:case 263:case 264:case 270:case 256:case 257:return;case 168:return void r(t);case 209:case 227:return void n(t.expression);case 252:case 162:return n(t.name),void n(t.initializer);case 206:case 207:return r(t),n(t.expression),void e.forEach(t.arguments,n);case 208:return r(t),n(t.tag),void n(t.template);case 278:case 277:return r(t),n(t.tagName),void n(t.attributes);case 163:return r(t),void n(t.expression);case 204:case 205:r(t),e.forEachChild(t,n)}e.isPartOfTypeNode(t)||e.forEachChild(t,n)}}}(n,r);switch(t.kind){case 300:!function(n,t){e.forEach(n.statements,t)}(t,a);break;case 259:!function(n,t){!e.hasSyntacticModifier(n,2)&&n.body&&e.isModuleBlock(n.body)&&e.forEach(n.body.statements,t)}(t,a);break;case 254:case 211:case 212:case 167:case 170:case 171:!function(n,t,r){var i=c(n,t);i&&(e.forEach(i.parameters,r),r(i.body))}(n.getTypeChecker(),t,a);break;case 255:case 224:!function(n,t){e.forEach(n.decorators,t);var r=e.getClassExtendsHeritageElement(n);r&&t(r.expression);for(var i=0,a=n.members;i<a.length;i++){var o=a[i];e.forEach(o.decorators,t),e.isPropertyDeclaration(o)?t(o.initializer):e.isConstructorDeclaration(o)&&o.body?(e.forEach(o.parameters,t),t(o.body)):e.isClassStaticBlockDeclaration(o)&&t(o)}}(t,a);break;case 168:!function(e,n){n(e.body)}(t,a);break;default:e.Debug.assertNever(t)}return r}(n,t),_,(function(t){return function(n,t){return{to:p(n,t[0].declaration),fromSpans:e.map(t,(function(n){return e.createTextSpanFromRange(n.range)}))}}(n,t)}))}}(e.CallHierarchy||(e.CallHierarchy={}))}(u||(u={})),function(e){function n(n,r,i,a){var o=i(n);return function(n){var s=a&&a.tryGetSourcePosition({fileName:n,pos:0}),c=function(n){if(i(n)===o)return r;var t=e.tryRemoveDirectoryPrefix(n,o,i);return void 0===t?void 0:r+"/"+t}(s?s.fileName:n);return s?void 0===c?void 0:function(n,r,i,a){var o=e.getRelativePathFromFile(n,r,a);return t(e.getDirectoryPath(i),o)}(s.fileName,c,n,i):c}}function t(n,t){return e.ensurePathIsNonModuleName(function(n,t){return e.normalizePath(e.combinePaths(n,t))}(n,t))}function r(n,t,r,i){if(t){if(t.resolvedModule){var a=s(t.resolvedModule.resolvedFileName);if(a)return a}return e.forEach(t.failedLookupLocations,(function(n){var t=r(n);return t&&e.find(i,(function(e){return e.fileName===t}))?o(n):void 0}))||e.pathIsRelative(n.text)&&e.forEach(t.failedLookupLocations,o)||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1}}function o(n){return e.endsWith(n,"/package.json")?void 0:s(n)}function s(e){var n=r(e);return n&&{newFileName:n,updated:!0}}}function i(n,t){return e.createRange(n.getStart(t)+1,n.end-1)}function a(n,t){if(e.isObjectLiteralExpression(n))for(var r=0,i=n.properties;r<i.length;r++){var a=i[r];e.isPropertyAssignment(a)&&e.isStringLiteral(a.name)&&t(a,a.name.text)}}e.getEditsForFileRename=function(o,s,c,l,u,d,p){var f=e.hostUsesCaseSensitiveFileNames(l),m=e.createGetCanonicalFileName(f),_=n(s,c,m,p),g=n(c,s,m,p);return e.textChanges.ChangeTracker.with({host:l,formatContext:u,preferences:d},(function(n){!function(n,r,o,s,c,l,u){var d=n.getCompilerOptions().configFile;if(d){var p=e.getDirectoryPath(d.fileName),f=e.getTsConfigObjectLiteralExpression(d);f&&a(f,(function(n,t){switch(t){case"files":case"include":case"exclude":if(m(n)||"include"!==t||!e.isArrayLiteralExpression(n.initializer))return;var i=e.mapDefined(n.initializer.elements,(function(n){return e.isStringLiteral(n)?n.text:void 0}));if(0===i.length)return;var o=e.getFileMatcherPatterns(p,[],i,u,l);return void(e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),u).test(s)&&!e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),u).test(c)&&r.insertNodeAfter(d,e.last(n.initializer.elements),e.factory.createStringLiteral(g(c))));case"compilerOptions":return void a(n.initializer,(function(n,t){var r=e.getOptionFromName(t);r&&(r.isFilePath||"list"===r.type&&r.element.isFilePath)?m(n):"paths"===t&&a(n.initializer,(function(n){if(e.isArrayLiteralExpression(n.initializer))for(var t=0,r=n.initializer.elements;t<r.length;t++)_(r[t])}))}))}}))}function m(n){for(var t=!1,r=0,i=e.isArrayLiteralExpression(n.initializer)?n.initializer.elements:[n.initializer];r<i.length;r++)t=_(i[r])||t;return t}function _(n){if(!e.isStringLiteral(n))return!1;var a=t(p,n.text),s=o(a);return void 0!==s&&(r.replaceRangeWithText(d,i(n,d),g(s)),!0)}function g(n){return e.getRelativePathFromDirectory(p,n,!u)}}(o,n,_,s,c,l.getCurrentDirectory(),f),function(n,a,o,s,c,l){for(var u=n.getSourceFiles(),d=function(d){var p=o(d.fileName),f=null!=p?p:d.fileName,m=e.getDirectoryPath(f),_=s(d.fileName),g=_||d.fileName,y=e.getDirectoryPath(g),h=void 0!==p||void 0!==_;!function(n,t,r,a){for(var o=0,s=n.referencedFiles||e.emptyArray;o<s.length;o++){var c=s[o];void 0!==(d=r(c.fileName))&&d!==n.text.slice(c.pos,c.end)&&t.replaceRangeWithText(n,c,d)}for(var l=0,u=n.imports;l<u.length;l++){var d,p=u[l];void 0!==(d=a(p))&&d!==p.text&&t.replaceRangeWithText(n,i(p,n),d)}}(d,a,(function(n){if(e.pathIsRelative(n)){var r=t(y,n),i=o(r);return void 0===i?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(m,i,l))}}),(function(t){var i=n.getTypeChecker().getSymbolAtLocation(t);if(!(null==i?void 0:i.declarations)||!i.declarations.some((function(n){return e.isAmbientModule(n)}))){var a=void 0!==_?r(t,e.resolveModuleName(t.text,g,n.getCompilerOptions(),c),o,u):function(n,t,i,a,o,s){if(n){var c=e.find(n.declarations,e.isSourceFile).fileName,l=s(c);return void 0===l?{newFileName:c,updated:!1}:{newFileName:l,updated:!0}}return r(t,o.resolveModuleNames?o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,i.fileName):a.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,i.fileName),s,a.getSourceFiles())}(i,t,d,n,c,o);return void 0!==a&&(a.updated||h&&e.pathIsRelative(t.text))?e.moduleSpecifiers.updateModuleSpecifier(n.getCompilerOptions(),l(f),a.newFileName,e.createModuleSpecifierResolutionHost(n,c),t.text):void 0}}))},p=0,f=u;p<f.length;p++)d(f[p])}(o,n,_,g,l,m)}))},e.getPathUpdater=n}(u||(u={})),function(e){!function(n){function t(n,t,a){var s,p,m,_=o(t,a,n),g=_&&[(s=_.reference.fileName,p=_.fileName,m=_.unverified,{fileName:p,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:s,containerName:void 0,containerKind:void 0,unverified:m})]||e.emptyArray;if(null==_?void 0:_.file)return g;var y=e.getTouchingPropertyName(t,a);if(y!==t){var h=y.parent,v=n.getTypeChecker();if(157===y.kind||e.isJSDocOverrideTag(y)&&e.rangeContainsPosition(y.tagName,a))return function(n,t){var r=e.findAncestor(t,e.isClassElement);if(r&&r.name){var i=e.findAncestor(r,e.isClassLike);if(i){var a=e.getEffectiveBaseTypeNode(i),o=a?n.getTypeAtLocation(a):void 0;if(o){var s=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(r.name)),c=e.hasStaticModifier(r)?n.getPropertyOfType(n.getTypeOfSymbolAtLocation(o.symbol,i),s):n.getPropertyOfType(o,s);if(c)return l(n,c,t)}}}}(v,y)||e.emptyArray;if(e.isJumpStatementTarget(y)){var b=e.getTargetLabel(y.parent,y.text);return b?[d(v,b,"label",y.text,void 0)]:void 0}if(e.isStaticModifier(y)&&e.isClassStaticBlockDeclaration(y.parent)){var E=y.parent.parent,T=c(E,v),S=e.filter(E.members,e.isClassStaticBlockDeclaration),x=T?v.symbolToString(T,E):"",L=y.getSourceFile();return e.map(S,(function(n){var t=e.moveRangePastModifiers(n).pos;return t=e.skipTrivia(L.text,t),d(v,n,"constructor","static {}",x,{start:t,length:6})}))}var D=c(y,v);if(!D)return e.concatenate(g,function(n,t){return e.mapDefined(t.getIndexInfosAtLocation(n),(function(e){return e.declaration&&f(t,e.declaration)}))}(y,v));var A=function(n,t){var r=function(n){var t=e.findAncestor(n,(function(n){return!e.isRightSideOfPropertyAccess(n)})),r=null==t?void 0:t.parent;return r&&e.isCallLikeExpression(r)&&e.getInvokedExpression(r)===t?r:void 0}(t),i=r&&n.getResolvedSignature(r);return e.tryCast(i&&i.declaration,(function(n){return e.isFunctionLike(n)&&!e.isFunctionTypeNode(n)}))}(v,y);if(A&&(!e.isJsxOpeningLikeElement(y.parent)||!function(e){switch(e.kind){case 169:case 178:case 173:return!0;default:return!1}}(A))){var C=f(v,A);if(v.getRootSymbols(D).some((function(n){return function(n,t){return n===t.symbol||n===t.symbol.parent||e.isAssignmentExpression(t.parent)||!e.isCallLikeExpression(t.parent)&&n===t.parent.symbol}(n,A)})))return[C];var I=l(v,D,y,A)||e.emptyArray;return 106===y.kind?i([C],I,!0):i(i([],I,!0),[C],!1)}if(292===y.parent.kind){var N=v.getShorthandAssignmentValueSymbol(D.valueDeclaration),k=(null==N?void 0:N.declarations)?N.declarations.map((function(e){return u(e,v,N,y)})):e.emptyArray;return e.concatenate(k,r(v,y)||e.emptyArray)}if(e.isPropertyName(y)&&e.isBindingElement(h)&&e.isObjectBindingPattern(h.parent)&&y===(h.propertyName||h.name)){var R=e.getNameFromPropertyName(y),O=v.getTypeAtLocation(h.parent);return void 0===R?e.emptyArray:e.flatMap(O.isUnion()?O.types:[O],(function(e){var n=e.getProperty(R);return n&&l(v,n,y)}))}return e.concatenate(g,r(v,y)||l(v,D,y))}}function r(n,t){var r=e.getContainingObjectLiteralElement(t);if(r){var i=r&&n.getContextualType(r.parent);if(i)return e.flatMap(e.getPropertySymbolsFromContextualType(r,n,i,!1),(function(e){return l(n,e,t)}))}}function o(n,t,r){var i,a,o=m(n.referencedFiles,t);if(o)return(l=r.getSourceFileFromReference(n,o))&&{reference:o,fileName:l.fileName,file:l,unverified:!1};var s=m(n.typeReferenceDirectives,t);if(s){var c=r.getResolvedTypeReferenceDirectives().get(s.fileName);return(l=c&&r.getSourceFile(c.resolvedFileName))&&{reference:s,fileName:l.fileName,file:l,unverified:!1}}var l,u=m(n.libReferenceDirectives,t);if(u)return(l=r.getLibFileFromReference(u))&&{reference:u,fileName:l.fileName,file:l,unverified:!1};if(null===(i=n.resolvedModules)||void 0===i?void 0:i.size){var d=e.getTokenAtPosition(n,t);if(e.isModuleSpecifierLike(d)&&e.isExternalModuleNameRelative(d.text)&&n.resolvedModules.has(d.text)){var p=null===(a=n.resolvedModules.get(d.text))||void 0===a?void 0:a.resolvedFileName,f=p||e.resolvePath(e.getDirectoryPath(n.fileName),d.text);return{file:r.getSourceFile(f),fileName:f,reference:{pos:d.getStart(),end:d.getEnd(),fileName:d.text},unverified:!p}}}}function s(n,t,r){return e.flatMap(!n.isUnion()||32&n.flags?[n]:n.types,(function(e){return e.symbol&&l(t,e.symbol,r)}))}function c(n,t){var r=t.getSymbolAtLocation(n);if((null==r?void 0:r.declarations)&&2097152&r.flags&&function(n,t){if(79!==n.kind)return!1;if(n.parent===t)return!0;switch(t.kind){case 265:case 263:return!0;case 268:return 267===t.parent.kind;case 201:case 252:return e.isInJSFile(t)&&e.isRequireVariableDeclaration(t);default:return!1}}(n,r.declarations[0])){var i=t.getAliasedSymbol(r);if(i.declarations)return i}return r}function l(n,t,r,i){var a=e.filter(t.declarations,(function(n){return n!==i&&(!e.isAssignmentDeclaration(n)||n===t.valueDeclaration)}))||void 0;return function(){if(32&t.flags&&!(19&t.flags)&&(e.isNewExpressionTarget(r)||133===r.kind))return o((e.find(a,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)}()||(e.isCallOrNewExpressionTarget(r)||e.isNameOfFunctionDeclaration(r)?o(a,!1):void 0)||e.map(a,(function(e){return u(e,n,t,r)}));function o(i,a){if(i){var o=i.filter(a?e.isConstructorDeclaration:e.isFunctionLike),s=o.filter((function(e){return!!e.body}));return o.length?0!==s.length?s.map((function(e){return u(e,n,t,r)})):[u(e.last(o),n,t,r)]:void 0}}}function u(n,t,r,i){var a=t.symbolToString(r),o=e.SymbolDisplay.getSymbolKind(t,r,i),s=r.parent?t.symbolToString(r.parent,i):"";return d(t,n,o,a,s)}function d(n,t,r,i,o,s){var c=t.getSourceFile();if(!s){var l=e.getNameOfDeclaration(t)||t;s=e.createTextSpanFromNode(l,c)}return a(a({fileName:c.fileName,textSpan:s,kind:r,name:i,containerKind:void 0,containerName:o},e.FindAllReferences.toContextSpan(s,c,e.FindAllReferences.getContextNode(t))),{isLocal:!p(n,t)})}function p(n,t){if(n.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(e.hasInitializer(t.parent)&&t.parent.initializer===t)return p(n,t.parent);switch(t.kind){case 165:case 170:case 171:case 167:if(e.hasEffectiveModifier(t,8))return!1;case 169:case 291:case 292:case 203:case 224:case 212:case 211:return p(n,t.parent);default:return!1}}function f(e,n){return u(n,e,n.symbol,n)}function m(n,t){return e.find(n,(function(n){return e.textRangeContainsPositionInclusive(n,t)}))}n.getDefinitionAtPosition=t,n.getReferenceAtPosition=o,n.getTypeDefinitionAtPosition=function(n,t,r){var i=e.getTouchingPropertyName(t,r);if(i!==t){var a=n.getSymbolAtLocation(i);if(a){var o=n.getTypeOfSymbolAtLocation(a,i),c=function(n,t,r){if(t.symbol===n||n.valueDeclaration&&t.symbol&&e.isVariableDeclaration(n.valueDeclaration)&&n.valueDeclaration.initializer===t.symbol.valueDeclaration){var i=t.getCallSignatures();if(1===i.length)return r.getReturnTypeOfSignature(e.first(i))}}(a,o,n),l=c&&s(c,n,i);return l&&0!==l.length?l:s(o,n,i)}}},n.getDefinitionAndBoundSpan=function(n,r,i){var a=t(n,r,i);if(a&&0!==a.length){var o=m(r.referencedFiles,i)||m(r.typeReferenceDirectives,i)||m(r.libReferenceDirectives,i);if(o)return{definitions:a,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(r,i);return{definitions:a,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},n.findReferenceInPosition=m}(e.GoToDefinition||(e.GoToDefinition={}))}(u||(u={})),function(e){!function(n){var t,r,a=["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"];function o(n,t){return e.arraysEqual(n,t,(function(e,n){return e.kind===n.kind&&e.text===n.text}))}function s(n,t){return"string"==typeof n?[e.textPart(n)]:e.flatMap(n,(function(n){return 316===n.kind?[e.textPart(n.text)]:e.buildLinkParts(n,t)}))}function c(n,t){var r=n.comment,a=n.kind,o=function(n){switch(n){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}}(a);switch(a){case 324:case 323:return l(n.class);case 339:return u(n.typeParameters.map((function(e){return e.getText()})).join(", "));case 338:return l(n.typeExpression);case 340:case 333:case 342:case 335:case 341:var c=n.name;return c?l(c):void 0===r?void 0:s(r,t);default:return void 0===r?void 0:s(r,t)}function l(e){return u(e.getText())}function u(n){return r?n.match(/^https?$/)?i([e.textPart(n)],s(r,t),!0):i([o(n),e.spacePart()],s(r,t),!0):[e.textPart(n)]}}function l(n){return{name:n,kind:"",kindModifiers:"",displayParts:[e.textPart(n)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}function u(n,t){switch(n.kind){case 254:case 211:case 167:case 169:case 166:case 212:var r=n;return{commentOwner:n,parameters:r.parameters,hasReturn:d(r,t)};case 291:return u(n.initializer,t);case 255:case 256:case 164:case 258:case 294:case 257:return{commentOwner:n};case 235:var i=n.declarationList.declarations,a=1===i.length&&i[0].initializer?function(n){for(;210===n.kind;)n=n.expression;switch(n.kind){case 211:case 212:return n;case 224:return e.find(n.members,e.isConstructorDeclaration)}}(i[0].initializer):void 0;return a?{commentOwner:n,parameters:a.parameters,hasReturn:d(a,t)}:{commentOwner:n};case 300:return"quit";case 259:return 259===n.parent.kind?void 0:{commentOwner:n};case 236:return u(n.expression,t);case 219:var o=n;return 0===e.getAssignmentDeclarationKind(o)?"quit":e.isFunctionLike(o.right)?{commentOwner:n,parameters:o.right.parameters,hasReturn:d(o.right,t)}:{commentOwner:n};case 165:var s=n.initializer;if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s)))return{commentOwner:n,parameters:s.parameters,hasReturn:d(s,t)}}}function d(n,t){return!!(null==t?void 0:t.generateReturnInDocTemplate)&&(e.isArrowFunction(n)&&e.isExpression(n.body)||e.isFunctionLikeDeclaration(n)&&n.body&&e.isBlock(n.body)&&!!e.forEachReturnStatement(n.body,(function(e){return e})))}n.getJsDocCommentsFromDeclarations=function(n,t){var r=[];return e.forEachUnique(n,(function(n){for(var i=0,a=function(n){switch(n.kind){case 335:case 342:return[n];case 333:case 340:return[n,n.parent];default:return e.getJSDocCommentsAndTags(n)}}(n);i<a.length;i++){var c=a[i];if(!(void 0===c.comment||e.isJSDoc(c)&&340!==n.kind&&333!==n.kind&&c.tags&&c.tags.some((function(e){return 340===e.kind||333===e.kind}))&&!c.tags.some((function(e){return 335===e.kind||336===e.kind})))){var l=s(c.comment,t);e.contains(r,l,o)||r.push(l)}}})),e.flatten(e.intersperse(r,[e.lineBreakPart()]))},n.getJsDocTagsFromDeclarations=function(n,t){var r=[];return e.forEachUnique(n,(function(n){var i=e.getJSDocTags(n);if(!i.some((function(e){return 340===e.kind||333===e.kind}))||i.some((function(e){return 335===e.kind||336===e.kind})))for(var a=0,o=i;a<o.length;a++){var s=o[a];r.push({name:s.tagName.text,text:c(s,t)})}})),r},n.getJSDocTagNameCompletions=function(){return t||(t=e.map(a,(function(n){return{name:n,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}})))},n.getJSDocTagNameCompletionDetails=l,n.getJSDocTagCompletions=function(){return r||(r=e.map(a,(function(n){return{name:"@"+n,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}})))},n.getJSDocTagCompletionDetails=l,n.getJSDocParameterNameCompletions=function(n){if(!e.isIdentifier(n.name))return e.emptyArray;var t=n.name.text,r=n.parent,i=r.parent;return e.isFunctionLike(i)?e.mapDefined(i.parameters,(function(i){if(e.isIdentifier(i.name)){var a=i.name.text;if(!r.tags.some((function(t){return t!==n&&e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===a}))&&(void 0===t||e.startsWith(a,t)))return{name:a,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}})):[]},n.getJSDocParameterNameCompletionDetails=function(n){return{name:n,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(n)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}},n.getDocCommentTemplateAtPosition=function(n,t,r,i){var a=e.getTokenAtPosition(t,r),o=e.findAncestor(a,e.isJSDoc);if(!o||void 0===o.comment&&!e.length(o.tags)){var s=a.getStart(t);if(o||!(s<r)){var c=function(n,t){return e.forEachAncestor(n,(function(e){return u(e,t)}))}(a,i);if(c){var l=c.commentOwner,d=c.parameters,p=c.hasReturn;if(!(l.getStart(t)<r)){var f=function(n,t){for(var r=n.text,i=e.getLineStartPositionForPosition(t,n),a=i;a<=t&&e.isWhiteSpaceSingleLine(r.charCodeAt(a));a++);return r.slice(i,a)}(t,r),m=e.hasJSFileExtension(t.fileName),_=(d?function(e,n,t,r){return e.map((function(e,i){var a=e.name,o=e.dotDotDotToken,s=79===a.kind?a.text:"param"+i;return t+" * @param "+(n?o?"{...any} ":"{any} ":"")+s+r})).join("")}(d||[],m,f,n):"")+(p?function(e,n){return e+" * @returns"+n}(f,n):"");if(_){var g="/**"+n+f+" * ";return{newText:g+n+_+f+" */"+(s===r?n+f:""),caretOffset:g.length}}return{newText:"/** */",caretOffset:3}}}}}}}(e.JsDoc||(e.JsDoc={}))}(u||(u={})),function(e){!function(n){function t(e,n){switch(e.kind){case 265:case 268:case 263:var t=n.getSymbolAtLocation(e.name),r=n.getAliasedSymbol(t);return t.escapedName!==r.escapedName;default:return!0}}function r(n,t){var r=e.getNameOfDeclaration(n);return!!r&&(a(r,t)||160===r.kind&&i(r.expression,t))}function i(n,t){return a(n,t)||e.isPropertyAccessExpression(n)&&(t.push(n.name.text),!0)&&i(n.expression,t)}function a(n,t){return e.isPropertyNameLiteral(n)&&(t.push(e.getTextOfIdentifierOrLiteral(n)),!0)}function o(n){var t=[],a=e.getNameOfDeclaration(n);if(a&&160===a.kind&&!i(a.expression,t))return e.emptyArray;t.shift();for(var o=e.getContainerNode(n);o;){if(!r(o,t))return e.emptyArray;o=e.getContainerNode(o)}return t.reverse()}function s(n,t){return e.compareValues(n.matchKind,t.matchKind)||e.compareStringsCaseSensitiveUI(n.name,t.name)}function c(n){var t=n.declaration,r=e.getContainerNode(t),i=r&&e.getNameOfDeclaration(r);return{name:n.name,kind:e.getNodeKind(t),kindModifiers:e.getNodeModifiers(t),matchKind:e.PatternMatchKind[n.matchKind],isCaseSensitive:n.isCaseSensitive,fileName:n.fileName,textSpan:e.createTextSpanFromNode(t),containerName:i?i.text:"",containerKind:i?e.getNodeKind(r):""}}n.getNavigateToItems=function(n,r,i,a,l,u){var d=e.createPatternMatcher(a);if(!d)return e.emptyArray;for(var p=[],f=function(e){if(i.throwIfCancellationRequested(),u&&e.isDeclarationFile)return"continue";e.getNamedDeclarations().forEach((function(n,i){!function(e,n,r,i,a,s){var c=e.getMatchForLastSegmentOfPattern(n);if(c)for(var l=0,u=r;l<u.length;l++){var d=u[l];if(t(d,i))if(e.patternContainsDots){var p=e.getFullMatch(o(d),n);p&&s.push({name:n,fileName:a,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:d})}else s.push({name:n,fileName:a,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:d})}}(d,i,n,r,e.fileName,p)}))},m=0,_=n;m<_.length;m++)f(_[m]);return p.sort(s),(void 0===l?p:p.slice(0,l)).map(c)}}(e.NavigateTo||(e.NavigateTo={}))}(u||(u={})),function(e){!function(n){var t,r,i,o,s,c=/\s+/g,l=150,u=[],d=[],p=[];function f(){i=void 0,r=void 0,u=[],o=void 0,p=[]}function m(e){return Y(e.getText(i))}function _(e){return e.node.kind}function g(e,n){e.children?e.children.push(n):e.children=[n]}function y(n){e.Debug.assert(!u.length);var t={node:n,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};o=t;for(var r=0,i=n.statements;r<i.length;r++)C(i[r]);return x(),e.Debug.assert(!o&&!u.length),t}function h(e,n){g(o,v(e,n))}function v(n,t){return{node:n,name:t||(e.isDeclaration(n)||e.isExpression(n)?e.getNameOfDeclaration(n):void 0),additionalNodes:void 0,parent:o,children:void 0,indent:o.indent+1}}function b(n){s||(s=new e.Map),s.set(n,!0)}function E(e){for(var n=0;n<e;n++)x()}function T(n,t){for(var r=[];!e.isPropertyNameLiteral(t);){var i=e.getNameOrArgument(t),a=e.getElementOrPropertyAccessName(t);t=t.expression,"prototype"===a||e.isPrivateIdentifier(i)||r.push(i)}r.push(t);for(var o=r.length-1;o>0;o--)S(n,i=r[o]);return[r.length-1,r[0]]}function S(e,n){var t=v(e,n);g(o,t),u.push(o),d.push(s),s=void 0,o=t}function x(){o.children&&(I(o.children,o),w(o.children)),o=u.pop(),s=d.pop()}function L(e,n,t){S(e,t),C(n),x()}function D(n){n.initializer&&function(e){switch(e.kind){case 212:case 211:case 224:return!0;default:return!1}}(n.initializer)?(S(n),e.forEachChild(n.initializer,C),x()):L(n,n.initializer)}function A(n){return!e.hasDynamicName(n)||219!==n.kind&&e.isPropertyAccessExpression(n.name.expression)&&e.isIdentifier(n.name.expression.expression)&&"Symbol"===e.idText(n.name.expression.expression)}function C(n){var t;if(r.throwIfCancellationRequested(),n&&!e.isToken(n))switch(n.kind){case 169:var i=n;L(i,i.body);for(var a=0,o=i.parameters;a<o.length;a++){var c=o[a];e.isParameterPropertyDeclaration(c,i)&&h(c)}break;case 167:case 170:case 171:case 166:A(n)&&L(n,n.body);break;case 165:A(n)&&D(n);break;case 164:A(n)&&h(n);break;case 265:var l=n;l.name&&h(l.name);var u=l.namedBindings;if(u)if(266===u.kind)h(u);else for(var d=0,p=u.elements;d<p.length;d++)h(p[d]);break;case 292:L(n,n.name);break;case 293:var f=n.expression;e.isIdentifier(f)?h(n,f):h(n);break;case 201:case 291:case 252:var m=n;e.isBindingPattern(m.name)?C(m.name):D(m);break;case 254:var _=n.name;_&&e.isIdentifier(_)&&b(_.text),L(n,n.body);break;case 212:case 211:L(n,n.body);break;case 258:S(n);for(var g=0,y=n.members;g<y.length;g++)W(N=y[g])||h(N);x();break;case 255:case 224:case 256:S(n);for(var v=0,I=n.members;v<I.length;v++){var N;C(N=I[v])}x();break;case 259:L(n,H(n).body);break;case 269:var k=n.expression;(m=e.isObjectLiteralExpression(k)||e.isCallExpression(k)?k:e.isArrowFunction(k)||e.isFunctionExpression(k)?k.body:void 0)?(S(n),C(m),x()):h(n);break;case 273:case 263:case 174:case 172:case 173:case 257:h(n);break;case 206:case 219:var R=e.getAssignmentDeclarationKind(n);switch(R){case 1:case 2:return void L(n,n.right);case 6:case 3:var O=(U=n).left,P=3===R?O.expression:O,w=0,M=void 0;return e.isIdentifier(P.expression)?(b(P.expression.text),M=P.expression):(w=(t=T(U,P.expression))[0],M=t[1]),6===R?e.isObjectLiteralExpression(U.right)&&U.right.properties.length>0&&(S(U,M),e.forEachChild(U.right,C),x()):e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?L(n,U.right,M):(S(U,M),L(n,U.right,O.name),x()),void E(w);case 7:case 9:var F=n,G=(M=7===R?F.arguments[0]:F.arguments[0].expression,F.arguments[1]),B=T(n,M);return w=B[0],S(n,B[1]),S(n,e.setTextRange(e.factory.createIdentifier(G.text),G)),C(n.arguments[2]),x(),x(),void E(w);case 5:var U,V=(O=(U=n).left).expression;if(e.isIdentifier(V)&&"prototype"!==e.getElementOrPropertyAccessName(O)&&s&&s.has(V.text))return void(e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?L(n,U.right,V):e.isBindableStaticAccessExpression(O)&&(S(U,V),L(U.left,U.right,e.getNameOrArgument(O)),x()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(R)}default:e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,(function(n){e.forEach(n.tags,(function(n){e.isJSDocTypeAlias(n)&&h(n)}))})),e.forEachChild(n,C)}}function I(n,t){var r=new e.Map;e.filterMutate(n,(function(n,i){var a=n.name||e.getNameOfDeclaration(n.node),o=a&&m(a);if(!o)return!0;var s=r.get(o);if(!s)return r.set(o,n),!0;if(s instanceof Array){for(var c=0,l=s;c<l.length;c++){var u;if(k(u=l[c],n,i,t))return!1}return s.push(n),!0}return!k(u=s,n,i,t)&&(r.set(o,[u,n]),!0)}))}n.getNavigationBarItems=function(n,t){r=t,i=n;try{return e.map((a=y(n),o=[],function e(n){if(function(e){if(e.children)return!0;switch(_(e)){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 n(e);default:return!1}function n(e){if(!e.node.body)return!1;switch(_(e.parent)){case 260:case 300:case 167:case 169:return!0;default:return!1}}}(n)&&(o.push(n),n.children))for(var t=0,r=n.children;t<r.length;t++)e(r[t])}(a),o),U)}finally{f()}var a,o},n.getNavigationTree=function(e,n){r=n,i=e;try{return B(y(e))}finally{f()}};var N=((t={})[5]=!0,t[3]=!0,t[7]=!0,t[9]=!0,t[0]=!1,t[1]=!1,t[2]=!1,t[8]=!1,t[6]=!0,t[4]=!1,t);function k(n,t,r,i){return!!function(n,t,r,i){function o(n){return e.isFunctionExpression(n)||e.isFunctionDeclaration(n)||e.isVariableDeclaration(n)}var s=e.isBinaryExpression(t.node)||e.isCallExpression(t.node)?e.getAssignmentDeclarationKind(t.node):0,c=e.isBinaryExpression(n.node)||e.isCallExpression(n.node)?e.getAssignmentDeclarationKind(n.node):0;if(N[s]&&N[c]||o(n.node)&&N[s]||o(t.node)&&N[c]||e.isClassDeclaration(n.node)&&R(n.node)&&N[s]||e.isClassDeclaration(t.node)&&N[c]||e.isClassDeclaration(n.node)&&R(n.node)&&o(t.node)||e.isClassDeclaration(t.node)&&o(n.node)&&R(n.node)){var l=n.additionalNodes&&e.lastOrUndefined(n.additionalNodes)||n.node;if(!e.isClassDeclaration(n.node)&&!e.isClassDeclaration(t.node)||o(n.node)||o(t.node)){var u=o(n.node)?n.node:o(t.node)?t.node:void 0;if(void 0!==u){var d=v(e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),u));d.indent=n.indent+1,d.children=n.node===u?n.children:t.children,n.children=n.node===u?e.concatenate([d],t.children||[t]):e.concatenate(n.children||[a({},n)],[d])}else(n.children||t.children)&&(n.children=e.concatenate(n.children||[a({},n)],t.children||[t]),n.children&&(I(n.children,n),w(n.children)));l=n.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,n.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),n.node)}else n.children=e.concatenate(n.children,t.children),n.children&&I(n.children,n);var p=t.node;return i.children[r-1].node.end===l.end?e.setTextRange(l,{pos:l.pos,end:p.end}):(n.additionalNodes||(n.additionalNodes=[]),n.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,n.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return 0!==s}(n,t,r,i)||!!function(n,t,r){if(n.kind!==t.kind||n.parent!==t.parent&&(!O(n,r)||!O(t,r)))return!1;switch(n.kind){case 165:case 167:case 170:case 171:return e.isStatic(n)===e.isStatic(t);case 259:return P(n,t)&&K(n)===K(t);default:return!0}}(n.node,t.node,i)&&(function(n,t){var r;n.additionalNodes=n.additionalNodes||[],n.additionalNodes.push(t.node),t.additionalNodes&&(r=n.additionalNodes).push.apply(r,t.additionalNodes),n.children=e.concatenate(n.children,t.children),n.children&&(I(n.children,n),w(n.children))}(n,t),!0)}function R(e){return!!(8&e.flags)}function O(n,t){var r=e.isModuleBlock(n.parent)?n.parent.parent:n.parent;return r===t.node||e.contains(t.additionalNodes,r)}function P(e,n){return e.body.kind===n.body.kind&&(259!==e.body.kind||P(e.body,n.body))}function w(e){e.sort(M)}function M(n,t){return e.compareStringsCaseSensitiveUI(F(n.node),F(t.node))||e.compareValues(_(n),_(t))}function F(n){if(259===n.kind)return j(n);var t=e.getNameOfDeclaration(n);if(t&&e.isPropertyName(t)){var r=e.getPropertyNameForPropertyNameNode(t);return r&&e.unescapeLeadingUnderscores(r)}switch(n.kind){case 211:case 212:case 224:return q(n);default:return}}function G(n,t){if(259===n.kind)return Y(j(n));if(t){var r=e.isIdentifier(t)?t.text:e.isElementAccessExpression(t)?"["+m(t.argumentExpression)+"]":m(t);if(r.length>0)return Y(r)}switch(n.kind){case 300:var i=n;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"<global>";case 269:return e.isExportAssignment(n)&&n.isExportEquals?"export=":"default";case 212:case 254:case 211:case 255:case 224:return 512&e.getSyntacticModifierFlags(n)?"default":q(n);case 169:return"constructor";case 173:return"new()";case 172:return"()";case 174:return"[]";default:return"<unknown>"}}function B(n){return{text:G(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:J(n.node),spans:V(n),nameSpan:n.name&&z(n.name),childItems:e.map(n.children,B)}}function U(n){return{text:G(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:J(n.node),spans:V(n),childItems:e.map(n.children,(function(n){return{text:G(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:e.getNodeModifiers(n.node),spans:V(n),childItems:p,indent:0,bolded:!1,grayed:!1}}))||p,indent:n.indent,bolded:!1,grayed:!1}}function V(e){var n=[z(e.node)];if(e.additionalNodes)for(var t=0,r=e.additionalNodes;t<r.length;t++){var i=r[t];n.push(z(i))}return n}function j(n){return e.isAmbientModule(n)?e.getTextOfNode(n.name):K(n)}function K(n){for(var t=[e.getTextOfIdentifierOrLiteral(n.name)];n.body&&259===n.body.kind;)n=n.body,t.push(e.getTextOfIdentifierOrLiteral(n.name));return t.join(".")}function H(n){return n.body&&e.isModuleDeclaration(n.body)?H(n.body):n}function W(e){return!e.name||160===e.name.kind}function z(n){return 300===n.kind?e.createTextSpanFromRange(n):e.createTextSpanFromNode(n,i)}function J(n){return n.parent&&252===n.parent.kind&&(n=n.parent),e.getNodeModifiers(n)}function q(n){var t=n.parent;if(n.name&&e.getFullWidth(n.name)>0)return Y(e.declarationNameToString(n.name));if(e.isVariableDeclaration(t))return Y(e.declarationNameToString(t.name));if(e.isBinaryExpression(t)&&63===t.operatorToken.kind)return m(t.left).replace(c,"");if(e.isPropertyAssignment(t))return m(t.name);if(512&e.getSyntacticModifierFlags(n))return"default";if(e.isClassLike(n))return"<class>";if(e.isCallExpression(t)){var r=X(t.expression);if(void 0!==r)return(r=Y(r)).length>l?r+" callback":r+"("+Y(e.mapDefined(t.arguments,(function(n){return e.isStringLiteralLike(n)?n.getText(i):void 0})).join(", "))+") callback"}return"<function>"}function X(n){if(e.isIdentifier(n))return n.text;if(e.isPropertyAccessExpression(n)){var t=X(n.expression),r=n.name.text;return void 0===t?r:t+"."+r}}function Y(e){return(e=e.length>l?e.substring(0,l)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(u||(u={})),function(e){!function(n){function t(n,t){var r=e.isStringLiteral(t)&&t.text;return e.isString(r)&&e.some(n.moduleAugmentations,(function(n){return e.isStringLiteral(n)&&n.text===r}))}function r(n){return void 0!==n&&e.isStringLiteralLike(n)?n.text:void 0}function i(n){var t;if(0===n.length)return n;var r=function(n){for(var t,r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]},a=0,o=n;a<o.length;a++){var s=o[a];if(void 0!==s.importClause){var c=s.importClause.isTypeOnly?r:i,l=s.importClause,u=l.name,d=l.namedBindings;u&&c.defaultImports.push(s),d&&(e.isNamespaceImport(d)?c.namespaceImports.push(s):c.namedImports.push(s))}else t=t||s}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}(n),i=r.importWithoutClause,a=r.typeOnlyImports,c=r.regularImports,l=[];i&&l.push(i);for(var d=0,p=[c,a];d<p.length;d++){var f=p[d],m=f===a,_=f.defaultImports,g=f.namespaceImports,y=f.namedImports;if(m||1!==_.length||1!==g.length||0!==y.length){for(var h=0,v=e.stableSort(g,(function(e,n){return u(e.importClause.namedBindings.name,n.importClause.namedBindings.name)}));h<v.length;h++){var b=v[h];l.push(o(b,void 0,b.importClause.namedBindings))}if(0!==_.length||0!==y.length){var E=void 0,T=[];if(1===_.length)E=_[0].importClause.name;else for(var S=0,x=_;S<x.length;S++)C=x[S],T.push(e.factory.createImportSpecifier(e.factory.createIdentifier("default"),C.importClause.name));T.push.apply(T,e.flatMap(y,(function(e){return e.importClause.namedBindings.elements})));var L=s(T),D=_.length>0?_[0]:y[0],A=0===L.length?E?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(L):e.factory.updateNamedImports(y[0].importClause.namedBindings,L);m&&E&&A?(l.push(o(D,E,void 0)),l.push(o(null!==(t=y[0])&&void 0!==t?t:D,void 0,A))):l.push(o(D,E,A))}}else{var C=_[0];l.push(o(C,C.importClause.name,g[0].importClause.namedBindings))}}return l}function a(n){if(0===n.length)return n;var t=function(e){for(var n,t=[],r=[],i=0,a=e;i<a.length;i++){var o=a[i];void 0===o.exportClause?n=n||o:o.isTypeOnly?r.push(o):t.push(o)}return{exportWithoutClause:n,namedExports:t,typeOnlyExports:r}}(n),r=t.exportWithoutClause,i=t.namedExports,a=t.typeOnlyExports,o=[];r&&o.push(r);for(var c=0,l=[i,a];c<l.length;c++){var u=l[c];if(0!==u.length){var d=[];d.push.apply(d,e.flatMap(u,(function(n){return n.exportClause&&e.isNamedExports(n.exportClause)?n.exportClause.elements:e.emptyArray})));var p=s(d),f=u[0];o.push(e.factory.updateExportDeclaration(f,f.decorators,f.modifiers,f.isTypeOnly,f.exportClause&&(e.isNamedExports(f.exportClause)?e.factory.updateNamedExports(f.exportClause,p):e.factory.updateNamespaceExport(f.exportClause,f.exportClause.name)),f.moduleSpecifier))}}return o}function o(n,t,r){return e.factory.updateImportDeclaration(n,n.decorators,n.modifiers,e.factory.updateImportClause(n.importClause,n.importClause.isTypeOnly,t,r),n.moduleSpecifier)}function s(n){return e.stableSort(n,c)}function c(e,n){return u(e.propertyName||e.name,n.propertyName||n.name)||u(e.name,n.name)}function l(n,t){var i=void 0===n?void 0:r(n),a=void 0===t?void 0:r(t);return e.compareBooleans(void 0===i,void 0===a)||e.compareBooleans(e.isExternalModuleNameRelative(i),e.isExternalModuleNameRelative(a))||e.compareStringsCaseInsensitive(i,a)}function u(n,t){return e.compareStringsCaseInsensitive(n.text,t.text)}function d(n){var t;switch(n.kind){case 263:return null===(t=e.tryCast(n.moduleReference,e.isExternalModuleReference))||void 0===t?void 0:t.expression;case 264:return n.moduleSpecifier;case 235:return n.declarationList.declarations[0].initializer.arguments[0]}}function p(n,t){return l(d(n),d(t))||function(n,t){return e.compareValues(f(n),f(t))}(n,t)}function f(e){var n;switch(e.kind){case 264:return e.importClause?e.importClause.isTypeOnly?1:266===(null===(n=e.importClause.namedBindings)||void 0===n?void 0:n.kind)?2:e.importClause.name?3:4:0;case 263:return 5;case 235:return 6}}n.organizeImports=function(n,s,c,u,d,f){var m=e.textChanges.ChangeTracker.fromContext({host:c,formatContext:s,preferences:d}),_=function(r){return e.stableSort(i(function(n,r,i,a){if(a)return n;for(var s=i.getTypeChecker(),c=s.getJsxNamespace(r),l=s.getJsxFragmentFactory(r),u=!!(2&r.transformFlags),d=[],p=0,f=n;p<f.length;p++){var m=f[p],_=m.importClause,g=m.moduleSpecifier;if(_){var y=_.name,h=_.namedBindings;if(y&&!b(y)&&(y=void 0),h)if(e.isNamespaceImport(h))b(h.name)||(h=void 0);else{var v=h.elements.filter((function(e){return b(e.name)}));v.length<h.elements.length&&(h=v.length?e.factory.updateNamedImports(h,v):void 0)}y||h?d.push(o(m,y,h)):t(r,g)&&(r.isDeclarationFile?d.push(e.factory.createImportDeclaration(m.decorators,m.modifiers,void 0,g)):d.push(m))}else d.push(m)}return d;function b(n){return u&&(n.text===c||l&&n.text===l)||e.FindAllReferences.Core.isSymbolReferencedInFile(n,s,r)}}(r,n,u,f)),(function(e,n){return p(e,n)}))};v(n.statements.filter(e.isImportDeclaration),_),v(n.statements.filter(e.isExportDeclaration),a);for(var g=0,y=n.statements.filter(e.isAmbientModule);g<y.length;g++){var h=y[g];h.body&&(v(h.body.statements.filter(e.isImportDeclaration),_),v(h.body.statements.filter(e.isExportDeclaration),a))}return m.getChanges();function v(t,i){if(0!==e.length(t)){e.suppressLeadingTrivia(t[0]);var a=e.group(t,(function(e){return r(e.moduleSpecifier)})),o=e.stableSort(a,(function(e,n){return l(e[0].moduleSpecifier,n[0].moduleSpecifier)})),u=e.flatMap(o,(function(e){return r(e[0].moduleSpecifier)?i(e):e}));if(0===u.length)m.deleteNodes(n,t,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var d={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(c,s.options)};m.replaceNodeWithNodes(n,t[0],u,d);var p=m.nodeHasTrailingComment(n,t[0],d);m.deleteNodes(n,t.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},p)}}}},n.coalesceImports=i,n.coalesceExports=a,n.compareImportOrExportSpecifiers=c,n.compareModuleSpecifiers=l,n.importsAreSorted=function(n){return e.arrayIsSorted(n,p)},n.importSpecifiersAreSorted=function(n){return e.arrayIsSorted(n,c)},n.getImportDeclarationInsertionIndex=function(n,t){var r=e.binarySearch(n,t,e.identity,p);return r<0?~r:r},n.getImportSpecifierInsertionIndex=function(n,t){var r=e.binarySearch(n,t,e.identity,c);return r<0?~r:r},n.compareImportsOrRequireStatements=p}(e.OrganizeImports||(e.OrganizeImports={}))}(u||(u={})),function(e){!function(n){n.collectElements=function(n,t){var u=[];return function(n,t,r){for(var u=40,d=0,p=i(i([],n.statements,!0),[n.endOfFileToken],!1),f=p.length;d<f;){for(;d<f&&!e.isAnyImportSyntax(p[d]);)g(p[d]),d++;if(d===f)break;for(var m=d;d<f&&e.isAnyImportSyntax(p[d]);)o(p[d],n,t,r),d++;var _=d-1;_!==m&&r.push(s(e.findChildOfKind(p[m],100,n).getStart(n),p[_].getEnd(),"imports"))}function g(i){var d;if(0!==u){t.throwIfCancellationRequested(),(e.isDeclaration(i)||e.isVariableStatement(i)||e.isReturnStatement(i)||1===i.kind)&&o(i,n,t,r),e.isFunctionLike(i)&&e.isBinaryExpression(i.parent)&&e.isPropertyAccessExpression(i.parent.left)&&o(i.parent.left,n,t,r),(e.isBlock(i)||e.isModuleBlock(i))&&a(i.statements.end,n,t,r),(e.isClassLike(i)||e.isInterfaceDeclaration(i))&&a(i.members.end,n,t,r);var p=function(n,t){switch(n.kind){case 233:if(e.isFunctionLike(n.parent))return function(n,t,r){var i=function(n,t,r){if(e.isNodeArrayMultiLine(n.parameters,r)){var i=e.findChildOfKind(n,20,r);if(i)return i}return e.findChildOfKind(t,18,r)}(n,t,r),a=e.findChildOfKind(t,19,r);return i&&a&&c(i,a,n,r,212!==n.kind)}(n.parent,n,t);switch(n.parent.kind){case 238:case 241:case 242:case 240:case 237:case 239:case 246:case 290:return u(n.parent);case 250:var r=n.parent;if(r.tryBlock===n)return u(n.parent);if(r.finallyBlock===n){var i=e.findChildOfKind(r,96,t);if(i)return u(i)}default:return l(e.createTextSpanFromNode(n,t),"code")}case 260:return u(n.parent);case 255:case 224:case 256:case 258:case 261:case 180:case 199:return u(n);case 182:return u(n,!1,!e.isTupleTypeNode(n.parent),22);case 287:case 288:return(a=n.statements).length?l(e.createTextSpanFromRange(a),"code"):void 0;case 203:return o(n);case 202:return o(n,22);case 276:return function(n){var r=e.createTextSpanFromBounds(n.openingElement.getStart(t),n.closingElement.getEnd()),i=n.openingElement.tagName.getText(t);return l(r,"code",r,!1,"<"+i+">...</"+i+">")}(n);case 280:return function(n){var r=e.createTextSpanFromBounds(n.openingFragment.getStart(t),n.closingFragment.getEnd());return l(r,"code",r,!1,"<>...</>")}(n);case 277:case 278:return function(e){if(0!==e.properties.length)return s(e.getStart(t),e.getEnd(),"code")}(n.attributes);case 221:case 14:return function(e){if(14!==e.kind||0!==e.text.length)return s(e.getStart(t),e.getEnd(),"code")}(n);case 200:return u(n,!1,!e.isBindingElement(n.parent),22);case 212:return function(n){if(!e.isBlock(n.body)&&!e.positionsAreOnSameLine(n.body.getFullStart(),n.body.getEnd(),t))return l(e.createTextSpanFromBounds(n.body.getFullStart(),n.body.getEnd()),"code",e.createTextSpanFromNode(n))}(n);case 206:return function(n){if(n.arguments.length){var r=e.findChildOfKind(n,20,t),i=e.findChildOfKind(n,21,t);if(r&&i&&!e.positionsAreOnSameLine(r.pos,i.pos,t))return c(r,i,n,t,!1,!0)}}(n)}var a;function o(n,t){return void 0===t&&(t=18),u(n,!1,!e.isArrayLiteralExpression(n.parent)&&!e.isCallExpression(n.parent),t)}function u(r,i,a,o,s){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===s&&(s=18===o?19:23);var l=e.findChildOfKind(n,o,t),u=e.findChildOfKind(n,s,t);return l&&u&&c(l,u,r,t,i,a)}}(i,n);p&&r.push(p),u--,e.isCallExpression(i)?(u++,g(i.expression),u--,i.arguments.forEach(g),null===(d=i.typeArguments)||void 0===d||d.forEach(g)):e.isIfStatement(i)&&i.elseStatement&&e.isIfStatement(i.elseStatement)?(g(i.expression),g(i.thenStatement),u++,g(i.elseStatement),u--):i.forEachChild(g),u++}}}(n,t,u),function(n,t){for(var i=[],a=0,o=n.getLineStarts();a<o.length;a++){var s=o[a],c=n.getLineEndOfPosition(s),u=r(n.text.substring(s,c));if(u&&!e.isInComment(n,s))if(u[1]){var d=i.pop();d&&(d.textSpan.length=c-d.textSpan.start,d.hintSpan.length=c-d.textSpan.start,t.push(d))}else{var p=e.createTextSpanFromBounds(n.text.indexOf("//",s),c);i.push(l(p,"region",p,!1,u[2]||"#region"))}}}(n,u),u.sort((function(e,n){return e.textSpan.start-n.textSpan.start}))};var t=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function r(n){return n=e.trimStringStart(n),e.startsWith(n,"//")?(n=e.trimString(n.slice(2)),t.exec(n)):null}function a(n,t,i,a){var o=e.getLeadingCommentRanges(t.text,n);if(o){for(var c=-1,l=-1,u=0,d=t.getFullText(),p=0,f=o;p<f.length;p++){var m=f[p],_=m.kind,g=m.pos,y=m.end;switch(i.throwIfCancellationRequested(),_){case 2:if(r(d.slice(g,y))){h(),u=0;break}0===u&&(c=g),l=y,u++;break;case 3:h(),a.push(s(g,y,"comment")),u=0;break;default:e.Debug.assertNever(_)}}h()}function h(){u>1&&a.push(s(c,l,"comment"))}}function o(n,t,r,i){e.isJsxText(n)||a(n.pos,t,r,i)}function s(n,t,r){return l(e.createTextSpanFromBounds(n,t),r)}function c(n,t,r,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),l(e.createTextSpanFromBounds(o?n.getFullStart():n.getStart(i),t.getEnd()),"code",e.createTextSpanFromNode(r,i),a)}function l(e,n,t,r,i){return void 0===t&&(t=e),void 0===r&&(r=!1),void 0===i&&(i="..."),{textSpan:e,kind:n,hintSpan:t,bannerText:i,autoCollapse:r}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(u||(u={})),function(e){var n;function t(e,n){return{kind:e,isCaseSensitive:n}}function r(e,n){var t=n.get(e);return t||n.set(e,t=y(e)),t}function i(i,a,o){var s=function(e,n){for(var t=e.length-n.length,r=function(t){if(x(n,(function(n,r){return p(e.charCodeAt(r+t))===n})))return{value:t}},i=0;i<=t;i++){var a=r(i);if("object"==typeof a)return a.value}return-1}(i,a.textLowerCase);if(0===s)return t(a.text.length===i.length?n.exact:n.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var d=0,f=r(i,o);d<f.length;d++){var m=f[d];if(c(i,m,a.text,!0))return t(n.substring,c(i,m,a.text,!1))}if(a.text.length<i.length&&u(i.charCodeAt(s)))return t(n.substring,!1)}else{if(i.indexOf(a.text)>0)return t(n.substring,!0);if(a.characterSpans.length>0){var _=r(i,o),g=!!l(i,_,a,!1)||!l(i,_,a,!0)&&void 0;if(void 0!==g)return t(n.camelCase,g)}}}function a(e,n,t){if(x(n.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var r=i(e,n.totalTextChunk,t);if(r)return r}for(var a,s=0,c=n.subWordTextChunks;s<c.length;s++)a=o(a,i(e,c[s],t));return a}function o(n,t){return e.min(n,t,s)}function s(n,t){return void 0===n?1:void 0===t?-1:e.compareValues(n.kind,t.kind)||e.compareBooleans(!n.isCaseSensitive,!t.isCaseSensitive)}function c(e,n,t,r,i){return void 0===i&&(i={start:0,length:t.length}),i.length<=n.length&&S(0,i.length,(function(a){return function(e,n,t){return t?p(e)===p(n):e===n}(t.charCodeAt(i.start+a),e.charCodeAt(n.start+a),r)}))}function l(n,t,r,i){for(var a,o,s=r.characterSpans,l=0,d=0;;){if(d===s.length)return!0;if(l===t.length)return!1;for(var p=t[l],f=!1;d<s.length;d++){var m=s[d];if(f&&(!u(r.text.charCodeAt(s[d-1].start))||!u(r.text.charCodeAt(s[d].start))))break;if(!c(n,p,r.text,i,m))break;f=!0,a=void 0===a?l:a,o=void 0===o||o,p=e.createTextSpan(p.start+m.length,p.length-m.length)}f||void 0===o||(o=!1),l++}}function u(n){if(n>=65&&n<=90)return!0;if(n<127||!e.isUnicodeIdentifierStart(n,99))return!1;var t=String.fromCharCode(n);return t===t.toUpperCase()}function d(n){if(n>=97&&n<=122)return!0;if(n<127||!e.isUnicodeIdentifierStart(n,99))return!1;var t=String.fromCharCode(n);return t===t.toLowerCase()}function p(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function f(e){return e>=48&&e<=57}function m(e){for(var n=[],t=0,r=0,i=0;i<e.length;i++)u(a=e.charCodeAt(i))||d(a)||f(a)||95===a||36===a?(0===r&&(t=i),r++):r>0&&(n.push(_(e.substr(t,r))),r=0);var a;return r>0&&n.push(_(e.substr(t,r))),n}function _(e){var n=e.toLowerCase();return{text:e,textLowerCase:n,isLowerCase:e===n,characterSpans:g(e)}}function g(e){return h(e,!1)}function y(e){return h(e,!0)}function h(n,t){for(var r=[],i=0,a=1;a<n.length;a++){var o=f(n.charCodeAt(a-1)),s=f(n.charCodeAt(a)),c=T(n,t,a),l=t&&E(n,a,i);(v(n.charCodeAt(a-1))||v(n.charCodeAt(a))||o!==s||c||l)&&(b(n,i,a)||r.push(e.createTextSpan(i,a-i)),i=a)}return b(n,i,n.length)||r.push(e.createTextSpan(i,n.length-i)),r}function v(e){switch(e){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 b(e,n,t){return x(e,(function(e){return v(e)&&95!==e}),n,t)}function E(e,n,t){return n!==t&&n+1<e.length&&u(e.charCodeAt(n))&&d(e.charCodeAt(n+1))&&x(e,u,t,n)}function T(e,n,t){var r=u(e.charCodeAt(t-1));return u(e.charCodeAt(t))&&(!n||!r)}function S(e,n,t){for(var r=e;r<n;r++)if(!t(r))return!1;return!0}function x(e,n,t,r){return void 0===t&&(t=0),void 0===r&&(r=e.length),S(t,r,(function(t){return n(e.charCodeAt(t),t)}))}!function(e){e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"}(n=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=function(n){var t=new e.Map,r=n.trim().split(".").map((function(e){return{totalTextChunk:_(n=e.trim()),subWordTextChunks:m(n)};var n}));if(!r.some((function(e){return!e.subWordTextChunks.length})))return{getFullMatch:function(n,i){return function(n,t,r,i){var s;if(a(t,e.last(r),i)&&!(r.length-1>n.length)){for(var c=r.length-2,l=n.length-1;c>=0;c-=1,l-=1)s=o(s,a(n[l],r[c],i));return s}}(n,i,r,t)},getMatchForLastSegmentOfPattern:function(n){return a(n,e.last(r),t)},patternContainsDots:r.length>1}},e.breakIntoCharacterSpans=g,e.breakIntoWordSpans=y}(u||(u={})),function(e){e.preProcessFile=function(n,t,r){void 0===t&&(t=!0),void 0===r&&(r=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],l=0,u=!1;function d(){return a=o,18===(o=e.scanner.scan())?l++:19===o&&l--,o}function p(){var n=e.scanner.getTokenValue(),t=e.scanner.getTokenPos();return{fileName:n,pos:t,end:t+n.length}}function f(){c.push(p()),m()}function m(){0===l&&(u=!0)}function _(){if(24===a)return!1;var n=e.scanner.getToken();if(100===n){if(20===(n=d())){if(10===(n=d())||14===n)return f(),!0}else{if(10===n)return f(),!0;if(150===n){var t=e.scanner.lookAhead((function(){var n=e.scanner.scan();return 154!==n&&(41===n||18===n||79===n||e.isKeyword(n))}));t&&(n=d())}if(79===n||e.isKeyword(n))if(154===(n=d())){if(10===(n=d()))return f(),!0}else if(63===n){if(y(!0))return!0}else{if(27!==n)return!0;n=d()}if(18===n){for(n=d();19!==n&&1!==n;)n=d();19===n&&154===(n=d())&&10===(n=d())&&f()}else 41===n&&127===(n=d())&&(79===(n=d())||e.isKeyword(n))&&154===(n=d())&&10===(n=d())&&f()}return!0}return!1}function g(){var n=e.scanner.getToken();if(93===n){if(m(),150===(n=d())){var t=e.scanner.lookAhead((function(){var n=e.scanner.scan();return 41===n||18===n}));t&&(n=d())}if(18===n){for(n=d();19!==n&&1!==n;)n=d();19===n&&154===(n=d())&&10===(n=d())&&f()}else if(41===n)154===(n=d())&&10===(n=d())&&f();else if(100===n&&(150===(n=d())&&(t=e.scanner.lookAhead((function(){var n=e.scanner.scan();return 79===n||e.isKeyword(n)})),t&&(n=d())),(79===n||e.isKeyword(n))&&63===(n=d())&&y(!0)))return!0;return!0}return!1}function y(n,t){void 0===t&&(t=!1);var r=n?d():e.scanner.getToken();return 144===r&&(20===(r=d())&&(10===(r=d())||t&&14===r)&&f(),!0)}function h(){var n=e.scanner.getToken();if(79===n&&"define"===e.scanner.getTokenValue()){if(20!==(n=d()))return!0;if(10===(n=d())||14===n){if(27!==(n=d()))return!0;n=d()}if(22!==n)return!0;for(n=d();23!==n&&1!==n;)10!==n&&14!==n||f(),n=d();return!0}return!1}if(t&&function(){for(e.scanner.setText(n),d();1!==e.scanner.getToken();)void 0,134===e.scanner.getToken()&&(140===d()&&10===d()&&(i||(i=[]),i.push({ref:p(),depth:l})),1)||_()||g()||r&&(y(!1,!0)||h())||d();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,n),e.processPragmasIntoFields(s,e.noop),u){if(i)for(var v=0,b=i;v<b.length;v++){var E=b[v];c.push(E.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:void 0}}var T=void 0;if(i)for(var S=0,x=i;S<x.length;S++)0===(E=x[S]).depth?(T||(T=[]),T.push(E.ref.fileName)):c.push(E.ref);return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:T}}}(u||(u={})),function(e){!function(n){function t(e,n,t,r,a,o){return{canRename:!0,fileToRename:void 0,kind:t,displayName:e,fullDisplayName:n,kindModifiers:r,triggerSpan:i(a,o)}}function r(n){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(n)}}function i(n,t){var r=n.getStart(t),i=n.getWidth(t);return e.isStringLiteralLike(n)&&(r+=1,i-=2),e.createTextSpan(r,i)}n.getRenameInfo=function(n,i,a,o){var s=e.getAdjustedRenameLocation(e.getTouchingPropertyName(i,a));if(function(n){switch(n.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n);default:return!1}}(s)){var c=function(n,i,a,o,s){var c=i.getSymbolAtLocation(n);if(c){var l=c.declarations;if(l&&0!==l.length){if(l.some((function(n){return function(n,t){var r=t.getSourceFile();return n.isSourceFileDefaultLibrary(r)&&e.fileExtensionIs(r.fileName,".d.ts")}(o,n)})))return r(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(n)&&88===n.originalKeywordKind&&c.parent&&1536&c.parent.flags)){if(e.isStringLiteralLike(n)&&e.tryGetImportFromModuleSpecifier(n))return s&&s.allowRenameOfImportPath?function(n,t,i){if(!e.isExternalModuleNameRelative(n.text))return r(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var a=i.declarations&&e.find(i.declarations,e.isSourceFile);if(a){var o=e.endsWith(n.text,"/index")||e.endsWith(n.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(a.fileName),"/index"),s=void 0===o?a.fileName:o,c=void 0===o?"module":"directory",l=n.text.lastIndexOf("/")+1;return{canRename:!0,fileToRename:s,kind:c,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:e.createTextSpan(n.getStart(t)+1+l,n.text.length-l)}}}(n,a,c):void 0;var u=e.SymbolDisplay.getSymbolKind(i,c,n),d=e.isImportOrExportSpecifierName(n)||e.isStringOrNumericLiteralLike(n)&&160===n.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(n)):void 0;return t(d||i.symbolToString(c),d||i.getFullyQualifiedName(c),u,e.SymbolDisplay.getSymbolModifiers(i,c),n,a)}}}else if(e.isStringLiteralLike(n)){var p=e.getContextualTypeOrAncestorTypeNodeType(n,i);if(p&&(128&p.flags||1048576&p.flags&&e.every(p.types,(function(e){return!!(128&e.flags)}))))return t(n.text,n.text,"string","",n,a)}else if(e.isLabelName(n)){var f=e.getTextOfNode(n);return t(f,f,"label","",n,a)}}(s,n.getTypeChecker(),i,n,o);if(c)return c}return r(e.Diagnostics.You_cannot_rename_this_element)}}(e.Rename||(e.Rename={}))}(u||(u={})),function(e){!function(n){function t(n,t,r){return e.Debug.assert(r.pos<=t),t<r.end||r.getEnd()===t&&e.getTouchingPropertyName(n,t).pos<r.end}n.getSmartSelectionRange=function(n,r){var o,s,c,d={textSpan:e.createTextSpanFromBounds(r.getFullStart(),r.getEnd())},p=r;e:for(;;){var f=i(p);if(!f.length)break;for(var m=0;m<f.length;m++){var _=f[m-1],g=f[m],y=f[m+1];if(e.getTokenPosOfNode(g,r,!0)>n)break e;var h=e.singleOrUndefined(e.getTrailingCommentRanges(r.text,g.end));if(h&&2===h.kind&&S(h.pos,h.end),t(r,n,g)){if(e.isBlock(g)||e.isTemplateSpan(g)||e.isTemplateHead(g)||e.isTemplateTail(g)||_&&e.isTemplateHead(_)||e.isVariableDeclarationList(g)&&e.isVariableStatement(p)||e.isSyntaxList(g)&&e.isVariableDeclarationList(p)||e.isVariableDeclaration(g)&&e.isSyntaxList(p)&&1===f.length||e.isJSDocTypeExpression(g)||e.isJSDocSignature(g)||e.isJSDocTypeLiteral(g)){p=g;break}e.isTemplateSpan(p)&&y&&e.isTemplateMiddleOrTemplateTail(y)&&T(g.getFullStart()-2,y.getStart()+1);var v=e.isSyntaxList(g)&&(void 0,18===(c=(s=_)&&s.kind)||22===c||20===c||278===c)&&l(y)&&!e.positionsAreOnSameLine(_.getStart(),y.getStart(),r),b=v?_.getEnd():g.getStart(),E=v?y.getStart():u(r,g);e.hasJSDocNodes(g)&&(null===(o=g.jsDoc)||void 0===o?void 0:o.length)&&T(e.first(g.jsDoc).getStart(),E),T(b,E),(e.isStringLiteral(g)||e.isTemplateLiteral(g))&&T(b+1,E-1),p=g;break}if(m===f.length-1)break e}}return d;function T(t,r){if(t!==r){var i=e.createTextSpanFromBounds(t,r);(!d||!e.textSpansEqual(i,d.textSpan)&&e.textSpanIntersectsWithPosition(i,n))&&(d=a({textSpan:i},d&&{parent:d}))}}function S(e,n){T(e,n);for(var t=e;47===r.text.charCodeAt(t);)t++;T(t,n)}};var r=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function i(n){if(e.isSourceFile(n))return o(n.getChildAt(0).getChildren(),r);if(e.isMappedTypeNode(n)){var t=n.getChildren(),i=t[0],a=t.slice(1),l=e.Debug.checkDefined(a.pop());e.Debug.assertEqual(i.kind,18),e.Debug.assertEqual(l.kind,19);var u=o(a,(function(e){return e===n.readonlyToken||143===e.kind||e===n.questionToken||57===e.kind})),d=o(u,(function(e){var n=e.kind;return 22===n||161===n||23===n}));return[i,c(s(d,(function(e){return 58===e.kind}))),l]}if(e.isPropertySignature(n))return s(a=o(n.getChildren(),(function(t){return t===n.name||e.contains(n.modifiers,t)})),(function(e){return 58===e.kind}));if(e.isParameter(n)){var p=o(n.getChildren(),(function(e){return e===n.dotDotDotToken||e===n.name}));return s(o(p,(function(e){return e===p[0]||e===n.questionToken})),(function(e){return 63===e.kind}))}return e.isBindingElement(n)?s(n.getChildren(),(function(e){return 63===e.kind})):n.getChildren()}function o(e,n){for(var t,r=[],i=0,a=e;i<a.length;i++){var o=a[i];n(o)?(t=t||[]).push(o):(t&&(r.push(c(t)),t=void 0),r.push(o))}return t&&r.push(c(t)),r}function s(n,t,r){if(void 0===r&&(r=!0),n.length<2)return n;var i=e.findIndex(n,t);if(-1===i)return n;var a=n.slice(0,i),o=n[i],s=e.last(n),l=r&&26===s.kind,u=n.slice(i+1,l?n.length-1:void 0),d=e.compact([a.length?c(a):void 0,o,u.length?c(u):void 0]);return l?d.concat(s):d}function c(n){return e.Debug.assertGreaterThanOrEqual(n.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(n),n[0].pos,e.last(n).end)}function l(e){var n=e&&e.kind;return 19===n||23===n||21===n||279===n}function u(e,n){switch(n.kind){case 335:case 333:case 342:case 340:case 337:return e.getLineEndOfPosition(n.getStart());default:return n.getEnd()}}}(e.SmartSelectionRange||(e.SmartSelectionRange={}))}(u||(u={})),function(e){!function(n){var t,r;function a(n,t,r){for(var i=n.getFullStart(),a=n.parent;a;){var o=e.findPrecedingToken(i,t,a,!0);if(o)return e.rangeContainsRange(r,o);a=a.parent}return e.Debug.fail("Could not find preceding token")}function o(n,t){var r=function(n,t){if(29===n.kind||20===n.kind)return{list:f(n.parent,n,t),argumentIndex:0};var r=e.findContainingList(n);return r&&{list:r,argumentIndex:u(r,n)}}(n,t);if(r){var i=r.list,a=r.argumentIndex,o=function(n){var t=n.getChildren(),r=e.countWhere(t,(function(e){return 27!==e.kind}));return t.length>0&&27===e.last(t).kind&&r++,r}(i);0!==a&&e.Debug.assertLessThan(a,o);var s=function(n,t){var r=n.getFullStart(),i=e.skipTrivia(t.text,n.getEnd(),!1);return e.createTextSpan(r,i-r)}(i,t);return{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:s}}}function s(n,t,r){var i=n.parent;if(e.isCallOrNewExpression(i)){var a=i,s=o(n,r);if(!s)return;var c=s.list,l=s.argumentIndex,u=s.argumentCount,p=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:a},argumentsSpan:p,argumentIndex:l,argumentCount:u}}if(e.isNoSubstitutionTemplateLiteral(n)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(n,t,r)?d(i,0,r):void 0;if(e.isTemplateHead(n)&&208===i.parent.kind){var f=i,m=f.parent;return e.Debug.assert(221===f.kind),d(m,l=e.isInsideTemplateLiteral(n,t,r)?0:1,r)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var _=i;if(m=i.parent.parent,e.isTemplateTail(n)&&!e.isInsideTemplateLiteral(n,t,r))return;return l=function(n,t,r,i){return e.Debug.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(t)?e.isInsideTemplateLiteral(t,r,i)?0:n+2:n+1}(_.parent.templateSpans.indexOf(_),n,t,r),d(m,l,r)}if(e.isJsxOpeningLikeElement(i)){var g=i.attributes.pos,y=e.skipTrivia(r.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(g,y-g),argumentIndex:0,argumentCount:1}}var h=e.getPossibleTypeArgumentsInfo(n,r);if(h){var v=h.called,b=h.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:v},argumentsSpan:p=e.createTextSpanFromBounds(v.getStart(r),n.end),argumentIndex:b,argumentCount:b+1}}}function c(n){return e.isBinaryExpression(n.parent)?c(n.parent):n}function l(n){return e.isBinaryExpression(n.left)?l(n.left)+1:2}function u(e,n){for(var t=0,r=0,i=e.getChildren();r<i.length;r++){var a=i[r];if(a===n)break;27!==a.kind&&t++}return t}function d(n,t,r){var i=e.isNoSubstitutionTemplateLiteral(n.template)?1:n.template.templateSpans.length+1;return 0!==t&&e.Debug.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:n},argumentsSpan:p(n,r),argumentIndex:t,argumentCount:i}}function p(n,t){var r=n.template,i=r.getStart(),a=r.getEnd();return 221===r.kind&&0===e.last(r.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(t.text,a,!1)),e.createTextSpan(i,a-i)}function f(n,t,r){var i=n.getChildren(r),a=i.indexOf(t);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function m(n){return 0===n.kind?e.getInvokedExpression(n.node):n.called}function _(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(t||(t={})),n.getSignatureHelpItems=function(n,t,r,i,u){var d=n.getTypeChecker(),p=e.findTokenOnLeftOfPosition(t,r);if(p){var f=!!i&&"characterTyped"===i.kind;if(!f||!e.isInString(t,r,p)&&!e.isInComment(t,r)){var g=!!i&&"invoked"===i.kind,v=function(n,t,r,i,a){for(var u=function(n){e.Debug.assert(e.rangeContainsRange(n.parent,n),"Not a subspan",(function(){return"Child: "+e.Debug.formatSyntaxKind(n.kind)+", parent: "+e.Debug.formatSyntaxKind(n.parent.kind)}));var a=function(n,t,r,i){return function(n,t,r,i){var a=function(n,t,r){if(20===n.kind||27===n.kind){var i=n.parent;switch(i.kind){case 210:case 167:case 211:case 212:var a=o(n,t);if(!a)return;var s=a.argumentIndex,u=a.argumentCount,d=a.argumentsSpan,p=e.isMethodDeclaration(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return p&&{contextualType:p,argumentIndex:s,argumentCount:u,argumentsSpan:d};case 219:var f=c(i),m=r.getContextualType(f),_=20===n.kind?0:l(i)-1,g=l(f);return m&&{contextualType:m,argumentIndex:_,argumentCount:g,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}}(n,r,i);if(a){var s,u=a.contextualType,d=a.argumentIndex,p=a.argumentCount,f=a.argumentsSpan,m=u.getNonNullableType(),_=m.getCallSignatures();if(1===_.length)return{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(_),node:n,symbol:(s=m.symbol,"__type"===s.name&&e.firstDefined(s.declarations,(function(n){return e.isFunctionTypeNode(n)?n.parent.symbol:void 0}))||s)},argumentsSpan:f,argumentIndex:d,argumentCount:p}}}(n,0,r,i)||s(n,t,r)}(n,t,r,i);if(a)return{value:a}},d=n;!e.isSourceFile(d)&&(a||!e.isBlock(d));d=d.parent){var p=u(d);if("object"==typeof p)return p.value}}(p,r,t,d,g);if(v){u.throwIfCancellationRequested();var b=function(n,t,r,i,o){var s=n.invocation,c=n.argumentCount;switch(s.kind){case 0:if(o&&!function(n,t,r){if(!e.isCallOrNewExpression(t))return!1;var i=t.getChildren(r);switch(n.kind){case 20:return e.contains(i,n);case 27:var o=e.findContainingList(n);return!!o&&e.contains(i,o);case 29:return a(n,r,t.expression);default:return!1}}(i,s.node,r))return;var l=[],u=t.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var d=s.called;if(o&&!a(i,r,e.isIdentifier(d)?d.parent:d))return;if(0!==(l=e.getPossibleGenericSignatures(d,c,t)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var p=t.getSymbolAtLocation(d);return p&&{kind:1,symbol:p};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(v,d,t,p,f);return u.throwIfCancellationRequested(),b?d.runWithCancellationToken(u,(function(e){return 0===b.kind?y(b.candidates,b.resolvedSignature,v,t,e):function(e,n,t,r){var i=n.argumentCount,a=n.argumentsSpan,o=n.invocation,s=n.argumentIndex,c=r.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(c)return{items:[h(e,c,r,_(o),t)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}}(b.symbol,v,t,e)})):e.isSourceFileJS(t)?function(n,t,r){if(2!==n.invocation.kind){var i=m(n.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=t.getTypeChecker();return void 0===a?void 0:e.firstDefined(t.getSourceFiles(),(function(t){return e.firstDefined(t.getNamedDeclarations().get(a),(function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(r,(function(e){return y(a,a[0],n,t,e,!0)}))}))}))}}(v,n,u):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(r||(r={})),n.getArgumentInfoForCompletions=function(e,n,t){var r=s(e,n,t);return!r||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}};var g=70246400;function y(n,t,r,a,o,s){var c,l=r.isTypeParameterList,u=r.argumentCount,d=r.argumentsSpan,p=r.invocation,f=r.argumentIndex,g=_(p),y=2===p.kind?p.symbol:o.getSymbolAtLocation(m(p))||s&&(null===(c=t.declaration)||void 0===c?void 0:c.symbol),h=y?e.symbolToDisplayParts(o,y,s?a:void 0,void 0):e.emptyArray,T=e.map(n,(function(n){return function(n,t,r,a,o,s){var c=(r?b:E)(n,a,o,s);return e.map(c,(function(r){var s=r.isVariadic,c=r.parameters,l=r.prefix,u=r.suffix,d=i(i([],t,!0),l,!0),p=i(i([],u,!0),function(n,t,r){return e.mapToDisplayParts((function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=r.getTypePredicateOfSignature(n);i?r.writeTypePredicate(i,t,void 0,e):r.writeType(r.getReturnTypeOfSignature(n),t,void 0,e)}))}(n,o,a),!0),f=n.getDocumentationComment(a),m=n.getJsDocTags();return{isVariadic:s,prefixDisplayParts:d,suffixDisplayParts:p,separatorDisplayParts:v,parameters:c,documentation:f,tags:m}}))}(n,h,l,o,g,a)}));0!==f&&e.Debug.assertLessThan(f,u);for(var S=0,x=0,L=0;L<T.length;L++){var D=T[L];if(n[L]===t&&(S=x,D.length>1))for(var A=0,C=0,I=D;C<I.length;C++){var N=I[C];if(N.isVariadic||N.parameters.length>=u){S=x+A;break}A++}x+=D.length}e.Debug.assert(-1!==S);var k={items:e.flatMapToMutable(T,e.identity),applicableSpan:d,selectedItemIndex:S,argumentIndex:f,argumentCount:u},R=k.items[S];if(R.isVariadic){var O=e.findIndex(R.parameters,(function(e){return!!e.isRest}));-1<O&&O<R.parameters.length-1?k.argumentIndex=R.parameters.length:k.argumentIndex=Math.min(k.argumentIndex,R.parameters.length-1)}return k}function h(n,t,r,a,o){var s=e.symbolToDisplayParts(r,n),c=e.createPrinter({removeComments:!0}),l=t.map((function(e){return T(e,r,a,o,c)})),u=n.getDocumentationComment(r),d=n.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:i(i([],s,!0),[e.punctuationPart(29)],!1),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:v,parameters:l,documentation:u,tags:d}}var v=[e.punctuationPart(27),e.spacePart()];function b(n,t,r,a){var o=(n.target||n).typeParameters,s=e.createPrinter({removeComments:!0}),c=(o||e.emptyArray).map((function(e){return T(e,t,r,a,s)})),l=n.thisParameter?[t.symbolToParameterDeclaration(n.thisParameter,r,g)]:[];return t.getExpandedParameters(n).map((function(n){var o=e.factory.createNodeArray(i(i([],l,!0),e.map(n,(function(e){return t.symbolToParameterDeclaration(e,r,g)})),!0)),u=e.mapToDisplayParts((function(e){s.writeList(2576,o,a,e)}));return{isVariadic:!1,parameters:c,prefix:[e.punctuationPart(29)],suffix:i([e.punctuationPart(31)],u,!0)}}))}function E(n,t,r,a){var o=e.createPrinter({removeComments:!0}),s=e.mapToDisplayParts((function(i){if(n.typeParameters&&n.typeParameters.length){var s=e.factory.createNodeArray(n.typeParameters.map((function(e){return t.typeParameterToDeclaration(e,r,g)})));o.writeList(53776,s,a,i)}})),c=t.getExpandedParameters(n),l=t.hasEffectiveRestParameter(n)?1===c.length?function(e){return!0}:function(e){return!!(e.length&&32768&e[e.length-1].checkFlags)}:function(e){return!1};return c.map((function(n){return{isVariadic:l(n),parameters:n.map((function(n){return function(n,t,r,i,a){var o=e.mapToDisplayParts((function(e){var o=t.symbolToParameterDeclaration(n,r,g);a.writeNode(4,o,i,e)})),s=t.isOptionalParameter(n.valueDeclaration),c=!!(32768&n.checkFlags);return{name:n.name,documentation:n.getDocumentationComment(t),displayParts:o,isOptional:s,isRest:c}}(n,t,r,a,o)})),prefix:i(i([],s,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]}}))}function T(n,t,r,i,a){var o=e.mapToDisplayParts((function(e){var o=t.typeParameterToDeclaration(n,r,g);a.writeNode(4,o,i,e)}));return{name:n.symbol.name,documentation:n.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(u||(u={})),function(e){!function(n){function t(e){return"literals"===e.includeInlayParameterNameHints}n.provideInlayHints=function(n){var r=n.file,i=n.program,a=n.span,o=n.cancellationToken,s=n.preferences,c=r.text,l=i.getCompilerOptions(),u=i.getTypeChecker(),d=[];return function n(i){if(i&&0!==i.getFullWidth()){switch(i.kind){case 259:case 255:case 256:case 254:case 224:case 211:case 167:case 212:o.throwIfCancellationRequested()}if(e.textSpanIntersectsWith(a,i.pos,i.getFullWidth())&&!e.isTypeNode(i))return s.includeInlayVariableTypeHints&&e.isVariableDeclaration(i)||s.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(i)?function(n){if(n.initializer&&!e.isBindingPattern(n.name)&&!e.getEffectiveTypeAnnotationNode(n)){var t=u.getTypeAtLocation(n);if(!m(t)){var r=b(t);r&&f(r,n.name.end)}}}(i):s.includeInlayEnumMemberValueHints&&e.isEnumMember(i)?function(e){if(!e.initializer){var n,t,r=u.getConstantValue(e);void 0!==r&&(n=r.toString(),t=e.end,d.push({text:"= "+v(n,30),position:t,kind:"Enum",whitespaceBefore:!0}))}}(i):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(s)&&(e.isCallExpression(i)||e.isNewExpression(i))?function(n){var r=n.arguments;if(r&&r.length){var i=[],a=u.getResolvedSignatureForSignatureHelp(n,i);if(a&&i.length)for(var o=0;o<r.length;++o){var c=r[o],l=e.skipParentheses(c);if(!t(s)||y(l)){var d=u.getParameterIdentifierNameAtPosition(a,o);if(d){var f=d[0],m=d[1];if(!s.includeInlayParameterNameHintsWhenArgumentMatchesName&&_(l,f)&&!m)continue;var h=e.unescapeLeadingUnderscores(f);if(g(l,h))continue;p(h,c.getStart(),m)}}}}}(i):(s.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(i)&&e.hasContextSensitiveParameters(i)&&function(n){var t=u.getSignatureFromDeclaration(n);if(t)for(var r=0;r<n.parameters.length&&r<t.parameters.length;++r){var i=n.parameters[r];if(!e.getEffectiveTypeAnnotationNode(i)){var a=h(t.parameters[r]);a&&f(a,i.end)}}}(i),s.includeInlayFunctionLikeReturnTypeHints&&function(n){return e.isArrowFunction(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n)||e.isMethodDeclaration(n)||e.isGetAccessorDeclaration(n)}(i)&&function(n){if((!e.isArrowFunction(n)||e.findChildOfKind(n,20,r))&&!e.getEffectiveReturnTypeNode(n)&&n.body){var t=u.getSignatureFromDeclaration(n);if(t){var i=u.getReturnTypeOfSignature(t);if(!m(i)){var a=b(i);a&&f(a,function(n){var t=e.findChildOfKind(n,21,r);return t?t.end:n.parameters.end}(n))}}}}(i)),e.forEachChild(i,n)}}(r),d;function p(e,n,t){d.push({text:(t?"...":"")+v(e,30)+":",position:n,kind:"Parameter",whitespaceAfter:!0})}function f(e,n){d.push({text:": "+v(e,30),position:n,kind:"Type",whitespaceBefore:!0})}function m(e){return e.symbol&&1536&e.symbol.flags}function _(n,t){return e.isIdentifier(n)?n.text===t:!!e.isPropertyAccessExpression(n)&&n.name.text===t}function g(n,t){if(!e.isIdentifierText(t,l.target,e.getLanguageVariant(r.scriptKind)))return!1;var i=e.getLeadingCommentRanges(c,n.pos);if(!(null==i?void 0:i.length))return!1;var a=function(e){return new RegExp("^\\s?/\\*\\*?\\s?"+e+"\\s?\\*\\/\\s?$")}(t);return e.some(i,(function(e){return a.test(c.substring(e.pos,e.end))}))}function y(n){switch(n.kind){case 217:var t=n.operand;return e.isLiteralExpression(t)||e.isIdentifier(t)&&e.isInfinityOrNaNString(t.escapedText);case 110:case 95:case 104:return!0;case 79:var r=n.escapedText;return function(e){return"undefined"===e}(r)||e.isInfinityOrNaNString(r)}return e.isLiteralExpression(n)}function h(n){var t=n.valueDeclaration;if(t&&e.isParameter(t)){var r=u.getTypeOfSymbolAtLocation(n,t);if(!m(r))return b(r)}}function v(e,n){return e.length>n?e.substr(0,n-3)+"...":e}function b(n){var t=e.createPrinter({removeComments:!0});return e.usingSingleLineStringWriter((function(i){var a=u.typeToTypeNode(n,void 0,71286784,i);e.Debug.assertIsDefined(a,"should always get typenode"),t.writeNode(4,a,r,i)}))}}}(e.InlayHints||(e.InlayHints={}))}(u||(u={})),function(e){var n=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function t(n,t,r){var i=e.tryParseRawSourceMap(t);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(n,i,r)}e.getSourceMapper=function(n){var t=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),r=n.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function n(t){if(e.isDeclarationFileName(t.fileName)&&c(t.fileName)){var r=s(t.fileName).getSourcePosition(t);return r&&r!==t?n(r)||r:void 0}},tryGetGeneratedPosition:function(i){if(!e.isDeclarationFileName(i.fileName)){var a=c(i.fileName);if(a){var o=n.getProgram();if(!o.isSourceOfProjectReferenceRedirect(a.fileName)){var l=o.getCompilerOptions(),u=e.outFile(l),d=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),r,o.getCommonSourceDirectory(),t);if(void 0!==d){var p=s(d,i.fileName).getGeneratedPosition(i);return p===i?void 0:p}}}}},toLineColumnOffset:function(e,n){return l(e).getLineAndCharacterOfPosition(n)},clearCache:function(){i.clear(),a.clear()}};function o(n){return e.toPath(n,r,t)}function s(r,i){var s,c=o(r),u=a.get(c);if(u)return u;if(n.getDocumentPositionMapper)s=n.getDocumentPositionMapper(r,i);else if(n.readFile){var d=l(r);s=d&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:t,log:function(e){return n.log(e)}},r,e.getLineInfo(d.text,e.getLineStarts(d)),(function(e){return!n.fileExists||n.fileExists(e)?n.readFile(e):void 0}))}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var t=n.getProgram();if(t){var r=o(e),i=t.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}}function l(t){return n.getSourceFileLike?n.getSourceFileLike(t):c(t)||function(t){var r=o(t),a=i.get(r);if(void 0!==a)return a||void 0;if(n.readFile&&(!n.fileExists||n.fileExists(r))){var s=n.readFile(r),c=!!s&&function(n,t){return{text:n,lineMap:void 0,getLineAndCharacterOfPosition:function(n){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),n)}}}(s);return i.set(r,c),c||void 0}i.set(r,!1)}(t)}},e.getDocumentPositionMapper=function(r,i,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=n.exec(s);if(c){if(c[1]){var l=c[1];return t(r,e.base64decode(e.sys,l),i)}s=void 0}}var u=[];s&&u.push(s),u.push(i+".map");for(var d=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),p=0,f=u;p<f.length;p++){var m=f[p],_=e.getNormalizedAbsolutePath(m,e.getDirectoryPath(i)),g=o(_,d);if(e.isString(g))return t(r,g,_);if(void 0!==g)return g||void 0}}}(u||(u={})),function(e){var n=new e.Map;function t(n){return e.isPropertyAccessExpression(n)?t(n.expression):n}function r(n){switch(n.kind){case 264:var t=n.importClause,r=n.moduleSpecifier;return t&&!t.name&&t.namedBindings&&266===t.namedBindings.kind&&e.isStringLiteral(r)?t.namedBindings.name:void 0;case 263:return n.name;default:return}}function i(e,n){var t=n.getSignatureFromDeclaration(e),r=t?n.getReturnTypeOfSignature(t):void 0;return!!r&&!!n.getPromisedTypeOfPromise(r)}function a(n,t){return e.isReturnStatement(n)&&!!n.expression&&o(n.expression,t)}function o(n,t){if(!s(n)||!n.arguments.every((function(e){return c(e,t)})))return!1;for(var r=n.expression;s(r)||e.isPropertyAccessExpression(r);){if(e.isCallExpression(r)&&!r.arguments.every((function(e){return c(e,t)})))return!1;r=r.expression}return!0}function s(n){return e.isCallExpression(n)&&(e.hasPropertyAccessExpressionWithName(n,"then")&&function(n){return!(n.arguments.length>2)&&(n.arguments.length<2||e.some(n.arguments,(function(n){return 104===n.kind||e.isIdentifier(n)&&"undefined"===n.text})))}(n)||e.hasPropertyAccessExpressionWithName(n,"catch"))}function c(t,r){switch(t.kind){case 254:case 211:if(1&e.getFunctionFlags(t))return!1;case 212:n.set(l(t),!0);case 104:return!0;case 79:case 204:var i=r.getSymbolAtLocation(t);return!!i&&(r.isUndefinedSymbol(i)||e.some(e.skipAlias(i,r).declarations,(function(n){return e.isFunctionLike(n)||e.hasInitializer(n)&&!!n.initializer&&e.isFunctionLike(n.initializer)})));default:return!1}}function l(e){return e.pos.toString()+":"+e.end.toString()}function u(e){switch(e.kind){case 254:case 167:case 211:case 212:return!0;default:return!1}}e.computeSuggestionDiagnostics=function(o,s,c){s.getSemanticDiagnostics(o,c);var d,p=[],f=s.getTypeChecker();o.commonJsModuleIndicator&&(e.programContainsEs6Modules(s)||e.compilerOptionsIndicateEs6Modules(s.getCompilerOptions()))&&function(n){return n.statements.some((function(n){switch(n.kind){case 235:return n.declarationList.declarations.some((function(n){return!!n.initializer&&e.isRequireCall(t(n.initializer),!0)}));case 236:var r=n.expression;if(!e.isBinaryExpression(r))return e.isRequireCall(r,!0);var i=e.getAssignmentDeclarationKind(r);return 1===i||2===i;default:return!1}}))}(o)&&p.push(e.createDiagnosticForNode((d=o.commonJsModuleIndicator,e.isBinaryExpression(d)?d.left:d),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var m=e.isSourceFileJS(o);if(n.clear(),function t(r){if(m)(function(n,t){var r,i,a,o;if(211===n.kind){if(e.isVariableDeclaration(n.parent)&&(null===(r=n.symbol.members)||void 0===r?void 0:r.size))return!0;var s=t.getSymbolOfExpando(n,!1);return!(!s||!(null===(i=s.exports)||void 0===i?void 0:i.size)&&!(null===(a=s.members)||void 0===a?void 0:a.size))}return 254===n.kind&&!!(null===(o=n.symbol.members)||void 0===o?void 0:o.size)})(r,f)&&p.push(e.createDiagnosticForNode(e.isVariableDeclaration(r.parent)?r.parent.name:r,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(r)&&r.parent===o&&2&r.declarationList.flags&&1===r.declarationList.declarations.length){var s=r.declarationList.declarations[0].initializer;s&&e.isRequireCall(s,!0)&&p.push(e.createDiagnosticForNode(s,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(r)&&p.push(e.createDiagnosticForNode(r.name||r,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}u(r)&&function(t,r,o){(function(n,t){return!e.isAsyncFunction(n)&&n.body&&e.isBlock(n.body)&&function(n,t){return!!e.forEachReturnStatement(n,(function(e){return a(e,t)}))}(n.body,t)&&i(n,t)})(t,r)&&!n.has(l(t))&&o.push(e.createDiagnosticForNode(!t.name&&e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name)?t.parent.name:t,e.Diagnostics.This_may_be_converted_to_an_async_function))}(r,f,p),r.forEachChild(t)}(o),e.getAllowSyntheticDefaultImports(s.getCompilerOptions()))for(var _=0,g=o.imports;_<g.length;_++){var y=g[_],h=r(e.importFromModuleSpecifier(y));if(h){var v=e.getResolvedModule(o,y.text),b=v&&s.getSourceFile(v.resolvedFileName);b&&b.externalModuleIndicator&&e.isExportAssignment(b.externalModuleIndicator)&&b.externalModuleIndicator.isExportEquals&&p.push(e.createDiagnosticForNode(h,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(p,o.bindSuggestionDiagnostics),e.addRange(p,s.getSuggestionDiagnostics(o,c)),p.sort((function(e,n){return e.start-n.start}))},e.returnsPromise=i,e.isReturnStatementWithFixablePromiseHandler=a,e.isFixablePromiseHandler=o,e.canBeConvertedToAsync=u}(u||(u={})),function(e){!function(n){var t=70246400;function r(n,t,r){var a=i(n,t,r);if(""!==a)return a;var o=e.getCombinedLocalAndExportSymbolFlags(t);return 32&o?e.getDeclarationOfKind(t,224)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":a}function i(n,t,r){var i=n.getRootSymbols(t);if(1===i.length&&8192&e.first(i).flags&&0!==n.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length)return"method";if(n.isUndefinedSymbol(t))return"var";if(n.isArgumentsSymbol(t))return"local var";if(108===r.kind&&e.isExpression(r))return"parameter";var a=e.getCombinedLocalAndExportSymbolFlags(t);if(3&a)return e.isFirstDeclarationOfSymbolParameter(t)?"parameter":t.valueDeclaration&&e.isVarConst(t.valueDeclaration)?"const":e.forEach(t.declarations,e.isLet)?"let":o(t)?"local var":"var";if(16&a)return o(t)?"local function":"function";if(32768&a)return"getter";if(65536&a)return"setter";if(8192&a)return"method";if(16384&a)return"constructor";if(4&a){if(33554432&a&&6&t.checkFlags)return e.forEach(n.getRootSymbols(t),(function(e){if(98311&e.getFlags())return"property"}))||(n.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property");switch(r.parent&&r.parent.kind){case 278:case 276:case 277:return 79===r.kind?"property":"JSX attribute";case 283:return"JSX attribute";default:return"property"}}return""}function a(n){if(n.declarations&&n.declarations.length){var t=n.declarations,r=t[0],i=t.slice(1),a=e.length(i)&&e.isDeprecatedDeclaration(r)&&e.some(i,(function(n){return!e.isDeprecatedDeclaration(n)}))?8192:0,o=e.getNodeModifiers(r,a);if(o)return o.split(",")}return[]}function o(n){return!n.parent&&e.forEach(n.declarations,(function(n){if(211===n.kind)return!0;if(252!==n.kind&&254!==n.kind)return!1;for(var t=n.parent;!e.isFunctionBlock(t);t=t.parent)if(300===t.kind||260===t.kind)return!1;return!0}))}n.getSymbolKind=r,n.getSymbolModifiers=function(n,t){if(!t)return"";var r=new e.Set(a(t));if(2097152&t.flags){var i=n.getAliasedSymbol(t);i!==t&&e.forEach(a(i),(function(e){r.add(e)}))}return 16777216&t.flags&&r.add("optional"),r.size>0?e.arrayFrom(r.values()).join(","):""},n.getSymbolDisplayPartsDocumentationAndSymbolKind=function n(a,o,s,c,l,u,d){var p;void 0===u&&(u=e.getMeaningFromLocation(l));var f,m,_,g,y=[],h=[],v=[],b=e.getCombinedLocalAndExportSymbolFlags(o),E=1&u?i(a,o,l):"",T=!1,S=108===l.kind&&e.isInExpressionContext(l),x=!1;if(108===l.kind&&!S)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==E||32&b||2097152&b){"getter"!==E&&"setter"!==E||(E="property");var L=void 0;if(f=S?a.getTypeAtLocation(l):a.getTypeOfSymbolAtLocation(o,l),l.parent&&204===l.parent.kind){var D=l.parent.name;(D===l||D&&0===D.getFullWidth())&&(l=l.parent)}var A=void 0;if(e.isCallOrNewExpression(l)?A=l:(e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)||l.parent&&(e.isJsxOpeningLikeElement(l.parent)||e.isTaggedTemplateExpression(l.parent))&&e.isFunctionLike(o.valueDeclaration))&&(A=l.parent),A){L=a.getResolvedSignature(A);var C=207===A.kind||e.isCallExpression(A)&&106===A.expression.kind,I=C?f.getConstructSignatures():f.getCallSignatures();if(!L||e.contains(I,L.target)||e.contains(I,L)||(L=I.length?I[0]:void 0),L){switch(C&&32&b?(E="constructor",Z(f.symbol,E)):2097152&b?($(E="alias"),y.push(e.spacePart()),C&&(4&L.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),Q(o)):Z(o,E),E){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(e.punctuationPart(58)),y.push(e.spacePart()),16&e.getObjectFlags(f)||!f.symbol||(e.addRange(y,e.symbolToDisplayParts(a,f.symbol,c,void 0,5)),y.push(e.lineBreakPart())),C&&(4&L.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),ee(L,I,262144);break;default:ee(L,I)}T=!0,x=I.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&b)||133===l.kind&&169===l.parent.kind){var N=l.parent,k=o.declarations&&e.find(o.declarations,(function(e){return e===(133===l.kind?N.parent:N)}));k&&(I=169===N.kind?f.getNonNullableType().getConstructSignatures():f.getNonNullableType().getCallSignatures(),L=a.isImplementationOfOverload(N)?I[0]:a.getSignatureFromDeclaration(N),169===N.kind?(E="constructor",Z(f.symbol,E)):Z(172!==N.kind||2048&f.symbol.flags||4096&f.symbol.flags?o:f.symbol,E),L&&ee(L,I),T=!0,x=I.length>1)}}if(32&b&&!T&&!S&&(X(),e.getDeclarationOfKind(o,224)?$("local class"):y.push(e.keywordPart(84)),y.push(e.spacePart()),Q(o),ne(o,s)),64&b&&2&u&&(q(),y.push(e.keywordPart(118)),y.push(e.spacePart()),Q(o),ne(o,s)),524288&b&&2&u&&(q(),y.push(e.keywordPart(150)),y.push(e.spacePart()),Q(o),ne(o,s),y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(a,a.getDeclaredTypeOfSymbol(o),c,8388608))),384&b&&(q(),e.some(o.declarations,(function(n){return e.isEnumDeclaration(n)&&e.isEnumConst(n)}))&&(y.push(e.keywordPart(85)),y.push(e.spacePart())),y.push(e.keywordPart(92)),y.push(e.spacePart()),Q(o)),1536&b&&!S){q();var R=(W=e.getDeclarationOfKind(o,259))&&W.name&&79===W.name.kind;y.push(e.keywordPart(R?141:140)),y.push(e.spacePart()),Q(o)}if(262144&b&&2&u)if(q(),y.push(e.punctuationPart(20)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(21)),y.push(e.spacePart()),Q(o),o.parent)Y(),Q(o.parent,c),ne(o.parent,c);else{var O=e.getDeclarationOfKind(o,161);if(void 0===O)return e.Debug.fail();(W=O.parent)&&(e.isFunctionLikeKind(W.kind)?(Y(),L=a.getSignatureFromDeclaration(W),173===W.kind?(y.push(e.keywordPart(103)),y.push(e.spacePart())):172!==W.kind&&W.name&&Q(W.symbol),e.addRange(y,e.signatureToDisplayParts(a,L,s,32))):257===W.kind&&(Y(),y.push(e.keywordPart(150)),y.push(e.spacePart()),Q(W.symbol),ne(W.symbol,s)))}if(8&b&&(E="enum member",Z(o,"enum member"),294===(null==(W=null===(p=o.declarations)||void 0===p?void 0:p[0])?void 0:W.kind))){var P=a.getConstantValue(W);void 0!==P&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(P),"number"==typeof P?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(q(),!T){var w=a.getAliasedSymbol(o);if(w!==o&&w.declarations&&w.declarations.length>0){var M=w.declarations[0],F=e.getNameOfDeclaration(M);if(F){var G=e.isModuleWithStringLiteralName(M)&&e.hasSyntacticModifier(M,2),B="default"!==o.name&&!G,U=n(a,w,e.getSourceFileOfNode(M),M,F,u,B?o:w);y.push.apply(y,U.displayParts),y.push(e.lineBreakPart()),_=U.documentation,g=U.tags}else _=w.getContextualDocumentationComment(M,a),g=w.getJsDocTags(a)}}if(o.declarations)switch(o.declarations[0].kind){case 262:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(141));break;case 269:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(o.declarations[0].isExportEquals?63:88));break;case 273:y.push(e.keywordPart(93));break;default:y.push(e.keywordPart(100))}y.push(e.spacePart()),Q(o),e.forEach(o.declarations,(function(n){if(263===n.kind){var t=n;if(e.isExternalModuleImportEqualsDeclaration(t))y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.keywordPart(144)),y.push(e.punctuationPart(20)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(t)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(21));else{var r=a.getSymbolAtLocation(t.moduleReference);r&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),Q(r,c))}return!0}}))}if(!T)if(""!==E){if(f)if(S?(q(),y.push(e.keywordPart(108))):Z(o,E),"property"===E||"JSX attribute"===E||3&b||"local var"===E||S){if(y.push(e.punctuationPart(58)),y.push(e.spacePart()),f.symbol&&262144&f.symbol.flags){var V=e.mapToDisplayParts((function(n){var r=a.typeParameterToDeclaration(f,c,t);J().writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(c)),n)}));e.addRange(y,V)}else e.addRange(y,e.typeToDisplayParts(a,f,c));if(o.target&&o.target.tupleLabelDeclaration){var j=o.target.tupleLabelDeclaration;e.Debug.assertNode(j.name,e.isIdentifier),y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.textPart(e.idText(j.name))),y.push(e.punctuationPart(21))}}else(16&b||8192&b||16384&b||131072&b||98304&b||"method"===E)&&(I=f.getNonNullableType().getCallSignatures()).length&&(ee(I[0],I),x=I.length>1)}else E=r(a,o,l);if(0!==h.length||x||(h=o.getContextualDocumentationComment(c,a)),0===h.length&&4&b&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,(function(e){return 300===e.kind})))for(var K=0,H=o.declarations;K<H.length;K++){var W;if((W=H[K]).parent&&219===W.parent.kind){var z=a.getSymbolAtLocation(W.parent.right);if(z&&(h=z.getDocumentationComment(a),v=z.getJsDocTags(a),h.length>0))break}}return 0!==v.length||x||(v=o.getJsDocTags(a)),0===h.length&&_&&(h=_),0===v.length&&g&&(v=g),{displayParts:y,documentation:h,symbolKind:E,tags:0===v.length?void 0:v};function J(){return m||(m=e.createPrinter({removeComments:!0})),m}function q(){y.length&&y.push(e.lineBreakPart()),X()}function X(){d&&($("alias"),y.push(e.spacePart()))}function Y(){y.push(e.spacePart()),y.push(e.keywordPart(101)),y.push(e.spacePart())}function Q(n,t){d&&n===o&&(n=d);var r=e.symbolToDisplayParts(a,n,t||s,void 0,7);e.addRange(y,r),16777216&o.flags&&y.push(e.punctuationPart(57))}function Z(n,t){q(),t&&($(t),n&&!e.some(n.declarations,(function(n){return e.isArrowFunction(n)||(e.isFunctionExpression(n)||e.isClassExpression(n))&&!n.name}))&&(y.push(e.spacePart()),Q(n)))}function $(n){switch(n){case"var":case"function":case"let":case"const":case"constructor":return void y.push(e.textOrKeywordPart(n));default:return y.push(e.punctuationPart(20)),y.push(e.textOrKeywordPart(n)),void y.push(e.punctuationPart(21))}}function ee(n,t,r){void 0===r&&(r=0),e.addRange(y,e.signatureToDisplayParts(a,n,c,32|r)),t.length>1&&(y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.operatorPart(39)),y.push(e.displayPart((t.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),y.push(e.spacePart()),y.push(e.textPart(2===t.length?"overload":"overloads")),y.push(e.punctuationPart(21))),h=n.getDocumentationComment(a),v=n.getJsDocTags(),t.length>1&&0===h.length&&0===v.length&&(h=t[0].getDocumentationComment(a),v=t[0].getJsDocTags())}function ne(n,r){var i=e.mapToDisplayParts((function(i){var o=a.symbolToTypeParameterDeclarations(n,r,t);J().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(r)),i)}));e.addRange(y,i)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(u||(u={})),function(e){function n(n,t){var i=[],a=t.compilerOptions?r(t.compilerOptions,i):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===a[s]&&(a[s]=o[s]);for(var c=0,l=e.transpileOptionValueCompilerOptions;c<l.length;c++){var u=l[c];a[u.name]=u.transpileOptionValue}a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0;var d=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),p=e.createSourceFile(d,n,a.target);t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new e.Map(e.getEntries(t.renamedDependencies)));var f,m,_=e.getNewLineCharacter(a),g={getSourceFile:function(n){return n===e.normalizePath(d)?p:void 0},writeFile:function(n,t){e.fileExtensionIs(n,".map")?(e.Debug.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",n),m=t):(e.Debug.assertEqual(f,void 0,"Unexpected multiple outputs, file:",n),f=t)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return _},fileExists:function(e){return e===d},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},y=e.createProgram([d],a,g);return t.reportDiagnostics&&(e.addRange(i,y.getSyntacticDiagnostics(p)),e.addRange(i,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),void 0===f?e.Debug.fail("Output generation failed"):{outputText:f,diagnostics:i,sourceMapText:m}}var t;function r(n,r){t=t||e.filter(e.optionDeclarations,(function(n){return"object"==typeof n.type&&!e.forEachEntry(n.type,(function(e){return"number"!=typeof e}))})),n=e.cloneCompilerOptions(n);for(var i=function(t){if(!e.hasProperty(n,t.name))return"continue";var i=n[t.name];e.isString(i)?n[t.name]=e.parseCustomTypeOption(t,i,r):e.forEachEntry(t.type,(function(e){return e===i}))||r.push(e.createCompilerDiagnosticForInvalidCustomType(t))},a=0,o=t;a<o.length;a++)i(o[a]);return n}e.transpileModule=n,e.transpile=function(t,r,i,a,o){var s=n(t,{compilerOptions:r,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText},e.fixupCompilerOptions=r}(u||(u={})),function(e){!function(n){var t;(t=n.FormattingRequestKind||(n.FormattingRequestKind={}))[t.FormatDocument=0]="FormatDocument",t[t.FormatSelection=1]="FormatSelection",t[t.FormatOnEnter=2]="FormatOnEnter",t[t.FormatOnSemicolon=3]="FormatOnSemicolon",t[t.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",t[t.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace";var r=function(){function n(e,n,t){this.sourceFile=e,this.formattingRequestKind=n,this.options=t}return n.prototype.updateContext=function(n,t,r,i,a){this.currentTokenSpan=e.Debug.checkDefined(n),this.currentTokenParent=e.Debug.checkDefined(t),this.nextTokenSpan=e.Debug.checkDefined(r),this.nextTokenParent=e.Debug.checkDefined(i),this.contextNode=e.Debug.checkDefined(a),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},n.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},n.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},n.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,n=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===n}return this.tokensAreOnSameLine},n.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},n.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},n.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},n.prototype.BlockIsOnOneLine=function(n){var t=e.findChildOfKind(n,18,this.sourceFile),r=e.findChildOfKind(n,19,this.sourceFile);return!(!t||!r)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line},n}();n.FormattingContext=r}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){var n,t,r,i;n=e.formatting||(e.formatting={}),r=e.createScanner(99,!1,0),i=e.createScanner(99,!1,1),function(e){e[e.Scan=0]="Scan",e[e.RescanGreaterThanToken=1]="RescanGreaterThanToken",e[e.RescanSlashToken=2]="RescanSlashToken",e[e.RescanTemplateToken=3]="RescanTemplateToken",e[e.RescanJsxIdentifier=4]="RescanJsxIdentifier",e[e.RescanJsxText=5]="RescanJsxText",e[e.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"}(t||(t={})),n.getFormattingScanner=function(t,a,o,s,c){var l=1===a?i:r;l.setText(t),l.setTextPos(o);var u,d,p,f,m,_=!0,g=c({advance:function(){m=void 0,l.getStartPos()!==o?_=!!d&&4===e.last(d).kind:l.scan(),u=void 0,d=void 0;for(var n=l.getStartPos();n<s;){var t=l.getToken();if(!e.isTrivia(t))break;l.scan();var r={pos:n,end:l.getStartPos(),kind:t};n=l.getStartPos(),u=e.append(u,r)}p=l.getStartPos()},readTokenInfo:function(t){e.Debug.assert(y());var r,i=function(e){switch(e.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}(t)?1:13===t.kind?2:function(e){return 16===e.kind||17===e.kind}(t)?3:function(n){if(n.parent)switch(n.parent.kind){case 283:case 278:case 279:case 277:return e.isKeyword(n.kind)||79===n.kind}return!1}(t)?4:(r=t,e.isJsxText(r)?5:function(n){return n.parent&&e.isJsxAttribute(n.parent)&&n.parent.initializer===n}(t)?6:0);if(m&&i===f)return v(m,t);l.getStartPos()!==p&&(e.Debug.assert(void 0!==m),l.setTextPos(p),l.scan());var a=function(n,t){var r,i=l.getToken();switch(f=0,t){case 1:if(31===i){f=1;var a=l.reScanGreaterToken();return e.Debug.assert(n.kind===a),a}break;case 2:if(43===(r=i)||68===r)return f=2,a=l.reScanSlashToken(),e.Debug.assert(n.kind===a),a;break;case 3:if(19===i)return f=3,l.reScanTemplateToken(!1);break;case 4:return f=4,l.scanJsxIdentifier();case 5:return f=5,l.reScanJsxToken(!1);case 6:return f=6,l.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(t)}return i}(t,i),o=n.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),a);for(d&&(d=void 0);l.getStartPos()<s&&(a=l.scan(),e.isTrivia(a));){var c=n.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),a);if(d||(d=[]),d.push(c),4===a){l.scan();break}}return v(m={leadingTrivia:u,trailingTrivia:d,token:o},t)},readEOFTokenRange:function(){return e.Debug.assert(h()),n.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),1)},isOnToken:y,isOnEOF:h,getCurrentLeadingTrivia:function(){return u},lastTrailingTriviaWasNewLine:function(){return _},skipToEndOf:function(e){l.setTextPos(e.end),p=l.getStartPos(),f=void 0,m=void 0,_=!1,u=void 0,d=void 0},skipToStartOf:function(e){l.setTextPos(e.pos),p=l.getStartPos(),f=void 0,m=void 0,_=!1,u=void 0,d=void 0}});return m=void 0,l.setText(void 0),g;function y(){var n=m?m.token.kind:l.getToken();return(m?m.token.pos:l.getStartPos())<s&&1!==n&&!e.isTrivia(n)}function h(){return 1===(m?m.token.kind:l.getToken())}function v(n,t){return e.isToken(t)&&n.token.kind!==t.kind&&(n.token.kind=t.kind),n}}}(u||(u={})),function(e){var n,t,r;(n=e.formatting||(e.formatting={})).anyContext=e.emptyArray,(r=n.RuleAction||(n.RuleAction={}))[r.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",r[r.StopProcessingTokenActions=2]="StopProcessingTokenActions",r[r.InsertSpace=4]="InsertSpace",r[r.InsertNewLine=8]="InsertNewLine",r[r.DeleteSpace=16]="DeleteSpace",r[r.DeleteToken=32]="DeleteToken",r[r.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",r[r.StopAction=3]="StopAction",r[r.ModifySpaceAction=28]="ModifySpaceAction",r[r.ModifyTokenAction=96]="ModifyTokenAction",(t=n.RuleFlags||(n.RuleFlags={}))[t.None=0]="None",t[t.CanDeleteNewLines=1]="CanDeleteNewLines"}(u||(u={})),function(e){!function(n){function t(e,n,t,r,i,o){return void 0===o&&(o=0),{leftTokenRange:a(n),rightTokenRange:a(t),rule:{debugName:e,context:r,action:i,flags:o}}}function r(e){return{tokens:e,isSpecific:!0}}function a(n){return"number"==typeof n?r([n]):e.isArray(n)?r(n):n}function o(n,t,i){void 0===i&&(i=[]);for(var a=[],o=n;o<=t;o++)e.contains(i,o)||a.push(o);return r(a)}function s(e,n){return function(t){return t.options&&t.options[e]===n}}function c(e){return function(n){return n.options&&n.options.hasOwnProperty(e)&&!!n.options[e]}}function l(e){return function(n){return n.options&&n.options.hasOwnProperty(e)&&!n.options[e]}}function u(e){return function(n){return!n.options||!n.options.hasOwnProperty(e)||!n.options[e]}}function d(e){return function(n){return!n.options||!n.options.hasOwnProperty(e)||!n.options[e]||n.TokensAreOnSameLine()}}function p(e){return function(n){return!n.options||!n.options.hasOwnProperty(e)||!!n.options[e]}}function f(e){return 240===e.contextNode.kind}function m(e){return!f(e)}function _(e){switch(e.contextNode.kind){case 219:return 27!==e.contextNode.operatorToken.kind;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 63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 241:case 161:return 101===e.currentTokenSpan.kind||101===e.nextTokenSpan.kind||63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 242:return 158===e.currentTokenSpan.kind||158===e.nextTokenSpan.kind}return!1}function g(e){return!_(e)}function y(e){return!h(e)}function h(n){var t=n.contextNode.kind;return 165===t||164===t||162===t||252===t||e.isFunctionLikeKind(t)}function v(e){return 220===e.contextNode.kind||187===e.contextNode.kind}function b(e){return e.TokensAreOnSameLine()||L(e)}function E(e){return 199===e.contextNode.kind||193===e.contextNode.kind||function(e){return x(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function T(e){return L(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function S(e){return x(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function x(e){return D(e.contextNode)}function L(e){return D(e.nextTokenParent)}function D(e){if(k(e))return!0;switch(e.kind){case 233:case 261:case 203:case 260:return!0}return!1}function A(e){switch(e.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(e){return!A(e)}function I(e){return 254===e.contextNode.kind||211===e.contextNode.kind}function N(e){return k(e.contextNode)}function k(e){switch(e.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 R(e){switch(e.currentTokenParent.kind){case 255:case 259:case 258:case 290:case 260:case 247:return!0;case 233:var n=e.currentTokenParent.parent;if(!n||212!==n.kind&&211!==n.kind)return!0}return!1}function O(e){switch(e.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 P(e){return 203===e.contextNode.kind}function w(e){return function(e){return 206===e.contextNode.kind}(e)||function(e){return 207===e.contextNode.kind}(e)}function M(e){return 27!==e.currentTokenSpan.kind}function F(e){return 23!==e.nextTokenSpan.kind}function G(e){return 21!==e.nextTokenSpan.kind}function B(e){return 212===e.contextNode.kind}function U(e){return 198===e.contextNode.kind}function V(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function j(e){return 11!==e.contextNode.kind}function K(e){return 276!==e.contextNode.kind&&280!==e.contextNode.kind}function H(e){return 286===e.contextNode.kind||285===e.contextNode.kind}function W(e){return 283===e.nextTokenParent.kind}function z(e){return 283===e.contextNode.kind}function J(e){return 277===e.contextNode.kind}function q(e){return!A(e)&&!L(e)}function X(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&Y(e.currentTokenParent)&&!Y(e.nextTokenParent)}function Y(n){for(;e.isExpressionNode(n);)n=n.parent;return 163===n.kind}function Q(e){return 253===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Z(e){return 2!==e.formattingRequestKind}function $(e){return 259===e.contextNode.kind}function ee(e){return 180===e.contextNode.kind}function ne(e){return 173===e.contextNode.kind}function te(e,n){if(29!==e.kind&&31!==e.kind)return!1;switch(n.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 re(e){return te(e.currentTokenSpan,e.currentTokenParent)||te(e.nextTokenSpan,e.nextTokenParent)}function ie(e){return 209===e.contextNode.kind}function ae(e){return 114===e.currentTokenSpan.kind&&215===e.currentTokenParent.kind}function oe(e){return 222===e.contextNode.kind&&void 0!==e.contextNode.expression}function se(e){return 228===e.contextNode.kind}function ce(e){return!function(e){switch(e.contextNode.kind){case 237:case 240:case 241:case 242:case 238:case 239:return!0;default:return!1}}(e)}function le(n){var t=n.nextTokenSpan.kind,r=n.nextTokenSpan.pos;if(e.isTrivia(t)){var i=n.nextTokenParent===n.currentTokenParent?e.findNextToken(n.currentTokenParent,e.findAncestor(n.currentTokenParent,(function(e){return!e.parent})),n.sourceFile):n.nextTokenParent.getFirstToken(n.sourceFile);if(!i)return!0;t=i.kind,r=i.getStart(n.sourceFile)}return n.sourceFile.getLineAndCharacterOfPosition(n.currentTokenSpan.pos).line===n.sourceFile.getLineAndCharacterOfPosition(r).line?19===t||1===t:232!==t&&26!==t&&(256===n.contextNode.kind||257===n.contextNode.kind?!e.isPropertySignature(n.currentTokenParent)||!!n.currentTokenParent.type||20!==t:e.isPropertyDeclaration(n.currentTokenParent)?!n.currentTokenParent.initializer:240!==n.currentTokenParent.kind&&234!==n.currentTokenParent.kind&&232!==n.currentTokenParent.kind&&22!==t&&20!==t&&39!==t&&40!==t&&43!==t&&13!==t&&27!==t&&221!==t&&15!==t&&14!==t&&24!==t)}function ue(n){return e.positionIsASICandidate(n.currentTokenSpan.end,n.currentTokenParent,n.sourceFile)}n.getAllRules=function(){for(var a=[],x=0;x<=158;x++)1!==x&&a.push(x);function D(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return{tokens:a.filter((function(n){return!e.some((function(e){return e===n}))})),isSpecific:!1}}var k={tokens:a,isSpecific:!1},Y=r(i(i([],a,!0),[3],!1)),te=r(i(i([],a,!0),[1],!1)),de=o(81,158),pe=o(29,78),fe=[101,102,158,127,138],me=i([79],e.typeKeywords,!0),_e=Y,ge=r([79,3,84,93,100]),ye=r([21,3,90,111,96,91]),he=[t("IgnoreBeforeComment",k,[2,3],n.anyContext,1),t("IgnoreAfterLineComment",2,k,n.anyContext,1),t("NotSpaceBeforeColon",k,58,[V,g,y],16),t("SpaceAfterColon",58,k,[V,g],4),t("NoSpaceBeforeQuestionMark",k,57,[V,g,y],16),t("SpaceAfterQuestionMarkInConditionalOperator",57,k,[V,v],4),t("NoSpaceAfterQuestionMark",57,k,[V],16),t("NoSpaceBeforeDot",k,[24,28],[V],16),t("NoSpaceAfterDot",[24,28],k,[V],16),t("NoSpaceBetweenImportParenInImportType",100,20,[V,U],16),t("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,79,20,22,18,108,103],[V,g],16),t("NoSpaceAfterUnaryPreincrementOperator",45,[79,20,108,103],[V],16),t("NoSpaceAfterUnaryPredecrementOperator",46,[79,20,108,103],[V],16),t("NoSpaceBeforeUnaryPostincrementOperator",[79,21,23,103],45,[V,ce],16),t("NoSpaceBeforeUnaryPostdecrementOperator",[79,21,23,103],46,[V,ce],16),t("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[V,_],4),t("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[V,_],4),t("SpaceAfterAddWhenFollowedByPreincrement",39,45,[V,_],4),t("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[V,_],4),t("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[V,_],4),t("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[V,_],4),t("NoSpaceAfterCloseBrace",19,[27,26],[V],16),t("NewLineBeforeCloseBraceInBlockContext",Y,19,[S],8),t("SpaceAfterCloseBrace",19,D(21),[V,R],4),t("SpaceBetweenCloseBraceAndElse",19,91,[V],4),t("SpaceBetweenCloseBraceAndWhile",19,115,[V],4),t("NoSpaceBetweenEmptyBraceBrackets",18,19,[V,P],16),t("SpaceAfterConditionalClosingParen",21,22,[O],4),t("NoSpaceBetweenFunctionKeywordAndStar",98,41,[I],16),t("SpaceAfterStarInGeneratorDeclaration",41,79,[I],4),t("SpaceAfterFunctionInFuncDecl",98,k,[A],4),t("NewLineAfterOpenBraceInBlockContext",18,k,[S],8),t("SpaceAfterGetSetInMember",[135,147],79,[A],4),t("NoSpaceBetweenYieldKeywordAndStar",125,41,[V,oe],16),t("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],k,[V,oe],4),t("NoSpaceBetweenReturnAndSemicolon",105,26,[V],16),t("SpaceAfterCertainKeywords",[113,109,103,89,105,112,131],k,[V],4),t("SpaceAfterLetConstInVariableDeclaration",[119,85],k,[V,Q],4),t("NoSpaceBeforeOpenParenInFuncCall",k,20,[V,w,M],16),t("SpaceBeforeBinaryKeywordOperator",k,fe,[V,_],4),t("SpaceAfterBinaryKeywordOperator",fe,k,[V,_],4),t("SpaceAfterVoidOperator",114,k,[V,ae],4),t("SpaceBetweenAsyncAndOpenParen",130,20,[B,V],4),t("SpaceBetweenAsyncAndFunctionKeyword",130,[98,79],[V],4),t("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[V],16),t("SpaceBeforeJsxAttribute",k,79,[W,V],4),t("SpaceBeforeSlashInJsxOpeningElement",k,43,[J,V],4),t("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[J,V],16),t("NoSpaceBeforeEqualInJsxAttribute",k,63,[z,V],16),t("NoSpaceAfterEqualInJsxAttribute",63,k,[z,V],16),t("NoSpaceAfterModuleImport",[140,144],20,[V],16),t("SpaceAfterCertainTypeScriptKeywords",[126,84,134,88,92,93,94,135,117,100,118,140,141,121,123,122,143,147,124,150,154,139,136],k,[V],4),t("SpaceBeforeCertainTypeScriptKeywords",k,[94,117,154],[V],4),t("SpaceAfterModuleName",10,18,[$],4),t("SpaceBeforeArrow",k,38,[V],4),t("SpaceAfterArrow",38,k,[V],4),t("NoSpaceAfterEllipsis",25,79,[V],16),t("NoSpaceAfterOptionalParameters",57,[21,27],[V,g],16),t("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[V,ee],16),t("NoSpaceBeforeOpenAngularBracket",me,29,[V,re],16),t("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[V,re],16),t("NoSpaceAfterOpenAngularBracket",29,k,[V,re],16),t("NoSpaceBeforeCloseAngularBracket",k,31,[V,re],16),t("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[V,re,C],16),t("SpaceBeforeAt",[21,79],59,[V],4),t("NoSpaceAfterAt",59,k,[V],16),t("SpaceAfterDecorator",k,[126,79,93,88,84,124,123,121,122,135,147,22,41],[X],4),t("NoSpaceBeforeNonNullAssertionOperator",k,53,[V,se],16),t("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[V,ne],16),t("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[V],4)],ve=[t("SpaceAfterConstructor",133,20,[c("insertSpaceAfterConstructor"),V],4),t("NoSpaceAfterConstructor",133,20,[u("insertSpaceAfterConstructor"),V],16),t("SpaceAfterComma",27,k,[c("insertSpaceAfterCommaDelimiter"),V,K,F,G],4),t("NoSpaceAfterComma",27,k,[u("insertSpaceAfterCommaDelimiter"),V,K],16),t("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[c("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),A],4),t("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[u("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),A],16),t("SpaceAfterKeywordInControl",de,20,[c("insertSpaceAfterKeywordsInControlFlowStatements"),O],4),t("NoSpaceAfterKeywordInControl",de,20,[u("insertSpaceAfterKeywordsInControlFlowStatements"),O],16),t("SpaceAfterOpenParen",20,k,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),t("SpaceBeforeCloseParen",k,21,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),t("SpaceBetweenOpenParens",20,20,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),t("NoSpaceBetweenParens",20,21,[V],16),t("NoSpaceAfterOpenParen",20,k,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],16),t("NoSpaceBeforeCloseParen",k,21,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],16),t("SpaceAfterOpenBracket",22,k,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],4),t("SpaceBeforeCloseBracket",k,23,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],4),t("NoSpaceBetweenBrackets",22,23,[V],16),t("NoSpaceAfterOpenBracket",22,k,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],16),t("NoSpaceBeforeCloseBracket",k,23,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],16),t("SpaceAfterOpenBrace",18,k,[p("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),E],4),t("SpaceBeforeCloseBrace",k,19,[p("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),E],4),t("NoSpaceBetweenEmptyBraceBrackets",18,19,[V,P],16),t("NoSpaceAfterOpenBrace",18,k,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),V],16),t("NoSpaceBeforeCloseBrace",k,19,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),V],16),t("SpaceBetweenEmptyBraceBrackets",18,19,[c("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),t("NoSpaceBetweenEmptyBraceBrackets",18,19,[l("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),V],16),t("SpaceAfterTemplateHeadAndMiddle",[15,16],k,[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),j],4,1),t("SpaceBeforeTemplateMiddleAndTail",k,[16,17],[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],4),t("NoSpaceAfterTemplateHeadAndMiddle",[15,16],k,[u("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),j],16,1),t("NoSpaceBeforeTemplateMiddleAndTail",k,[16,17],[u("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],16),t("SpaceAfterOpenBraceInJsxExpression",18,k,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,H],4),t("SpaceBeforeCloseBraceInJsxExpression",k,19,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,H],4),t("NoSpaceAfterOpenBraceInJsxExpression",18,k,[u("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,H],16),t("NoSpaceBeforeCloseBraceInJsxExpression",k,19,[u("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,H],16),t("SpaceAfterSemicolonInFor",26,k,[c("insertSpaceAfterSemicolonInForStatements"),V,f],4),t("NoSpaceAfterSemicolonInFor",26,k,[u("insertSpaceAfterSemicolonInForStatements"),V,f],16),t("SpaceBeforeBinaryOperator",k,pe,[c("insertSpaceBeforeAndAfterBinaryOperators"),V,_],4),t("SpaceAfterBinaryOperator",pe,k,[c("insertSpaceBeforeAndAfterBinaryOperators"),V,_],4),t("NoSpaceBeforeBinaryOperator",k,pe,[u("insertSpaceBeforeAndAfterBinaryOperators"),V,_],16),t("NoSpaceAfterBinaryOperator",pe,k,[u("insertSpaceBeforeAndAfterBinaryOperators"),V,_],16),t("SpaceBeforeOpenParenInFuncDecl",k,20,[c("insertSpaceBeforeFunctionParenthesis"),V,A],4),t("NoSpaceBeforeOpenParenInFuncDecl",k,20,[u("insertSpaceBeforeFunctionParenthesis"),V,A],16),t("NewLineBeforeOpenBraceInControl",ye,18,[c("placeOpenBraceOnNewLineForControlBlocks"),O,T],8,1),t("NewLineBeforeOpenBraceInFunction",_e,18,[c("placeOpenBraceOnNewLineForFunctions"),A,T],8,1),t("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",ge,18,[c("placeOpenBraceOnNewLineForFunctions"),N,T],8,1),t("SpaceAfterTypeAssertion",31,k,[c("insertSpaceAfterTypeAssertion"),V,ie],4),t("NoSpaceAfterTypeAssertion",31,k,[u("insertSpaceAfterTypeAssertion"),V,ie],16),t("SpaceBeforeTypeAnnotation",k,[57,58],[c("insertSpaceBeforeTypeAnnotation"),V,h],4),t("NoSpaceBeforeTypeAnnotation",k,[57,58],[u("insertSpaceBeforeTypeAnnotation"),V,h],16),t("NoOptionalSemicolon",26,te,[s("semicolons",e.SemicolonPreference.Remove),le],32),t("OptionalSemicolon",k,te,[s("semicolons",e.SemicolonPreference.Insert),ue],64)],be=[t("NoSpaceBeforeSemicolon",k,26,[V],16),t("SpaceBeforeOpenBraceInControl",ye,18,[d("placeOpenBraceOnNewLineForControlBlocks"),O,Z,b],4,1),t("SpaceBeforeOpenBraceInFunction",_e,18,[d("placeOpenBraceOnNewLineForFunctions"),A,L,Z,b],4,1),t("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",ge,18,[d("placeOpenBraceOnNewLineForFunctions"),N,Z,b],4,1),t("NoSpaceBeforeComma",k,27,[V],16),t("NoSpaceBeforeOpenBracket",D(130,82),22,[V],16),t("NoSpaceAfterCloseBracket",23,k,[V,q],16),t("SpaceAfterSemicolon",26,k,[V],4),t("SpaceBetweenForAndAwaitKeyword",97,131,[V],4),t("SpaceBetweenStatements",[21,90,91,82],k,[V,K,m],4),t("SpaceAfterTryCatchFinally",[111,83,96],18,[V],4)];return i(i(i([],he,!0),ve,!0),be,!0)}}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){var t;function r(e){var n=0;return 1&e&&(n|=28),2&e&&(n|=96),28&e&&(n|=28),96&e&&(n|=96),n}function i(n,t){return e.Debug.assert(n<=158&&t<=158,"Must compute formatting context from tokens"),n*c+t}n.getFormatContext=function(a,o){return{options:a,getRules:(void 0===t&&(s=n.getAllRules(),u=function(e){for(var n=new Array(c*c),t=new Array(n.length),r=0,a=e;r<a.length;r++)for(var o=a[r],s=o.leftTokenRange.isSpecific&&o.rightTokenRange.isSpecific,u=0,d=o.leftTokenRange.tokens;u<d.length;u++)for(var p=d[u],f=0,m=o.rightTokenRange.tokens;f<m.length;f++){var _=i(p,m[f]),g=n[_];void 0===g&&(g=n[_]=[]),l(g,o.rule,s,t,_)}return n}(s),t=function(n){var t=u[i(n.currentTokenSpan.kind,n.nextTokenSpan.kind)];if(t){for(var a=[],o=0,s=0,c=t;s<c.length;s++){var l=c[s],d=~r(o);l.action&d&&e.every(l.context,(function(e){return e(n)}))&&(a.push(l),o|=l.action)}if(a.length)return a}}),t),host:o};var s,u};var a,o=5,s=31,c=159;function l(t,r,i,c,l){var u,d,p,f=3&r.action?i?a.StopRulesSpecific:a.StopRulesAny:r.context!==n.anyContext?i?a.ContextRulesSpecific:a.ContextRulesAny:i?a.NoContextRulesSpecific:a.NoContextRulesAny,m=c[l]||0;t.splice(function(e,n){for(var t=0,r=0;r<=n;r+=o)t+=e&s,e>>=o;return t}(m,f),0,r),c[l]=(p=1+((u=m)>>(d=f)&s),e.Debug.assert((p&s)===p,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),u&~(s<<d)|p<<d)}!function(e){e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=1*o]="StopRulesAny",e[e.ContextRulesSpecific=2*o]="ContextRulesSpecific",e[e.ContextRulesAny=3*o]="ContextRulesAny",e[e.NoContextRulesSpecific=4*o]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*o]="NoContextRulesAny"}(a||(a={}))}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(n){var t,r,i,a,o;function s(n,t,r){var i=e.findPrecedingToken(n,r);return i&&i.kind===t&&n===i.getEnd()?i:void 0}function c(e){for(var n=e;n&&n.parent&&n.parent.end===e.end&&!l(n.parent,n);)n=n.parent;return n}function l(n,t){switch(n.kind){case 255:case 256:return e.rangeContainsRange(n.members,t);case 259:var r=n.body;return!!r&&260===r.kind&&e.rangeContainsRange(r.statements,t);case 300:case 233:case 260:return e.rangeContainsRange(n.statements,t);case 290:return e.rangeContainsRange(n.block.statements,t)}return!1}function u(n,t,r,i){return n?d({pos:e.getLineStartPositionForPosition(n.getStart(t),t),end:n.end},t,r,i):[]}function d(t,r,i,a){var o=function(n,t){return function r(i){var a=e.forEachChild(i,(function(r){return e.startEndContainsRange(r.getStart(t),r.end,n)&&r}));if(a){var o=r(a);if(o)return o}return i}(t)}(t,r);return n.getFormattingScanner(r.text,r.languageVariant,function(n,t,r){var i=n.getStart(r);if(i===t.pos&&n.end===t.end)return i;var a=e.findPrecedingToken(t.pos,r);return a?a.end>=t.pos?n.pos:a.end:n.pos}(o,t,r),t.end,(function(s){return p(t,o,n.SmartIndenter.getIndentationForNode(o,t,r,i.options),function(e,t,r){for(var i,a=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==a&&o!==a)break;if(n.SmartIndenter.shouldIndentChildNode(t,e,i,r))return t.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,r),s,i,a,function(n,t){if(!n.length)return a;var r=n.filter((function(n){return e.rangeOverlapsWithStartEnd(t,n.start,n.start+n.length)})).sort((function(e,n){return e.start-n.start}));if(!r.length)return a;var i=0;return function(n){for(;;){if(i>=r.length)return!1;var t=r[i];if(n.end<=t.start)return!1;if(e.startEndOverlapsWithStartEnd(n.pos,n.end,t.start,t.start+t.length))return!0;i++}};function a(){return!1}}(r.parseDiagnostics,t),r)}))}function p(t,r,i,a,o,s,c,l,u){var d,p,m,_,g,y=s.options,h=s.getRules,v=s.host,b=new n.FormattingContext(u,c,y),E=-1,T=[];if(o.advance(),o.isOnToken()){var S=u.getLineAndCharacterOfPosition(r.getStart(u)).line,x=S;r.decorators&&(x=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,u)).line),function r(i,a,s,c,f,g){if(e.rangeOverlapsWithStartEnd(t,i.getStart(u),i.getEnd())){var h=A(i,s,f,g),v=a;for(e.forEachChild(i,(function(e){S(e,-1,i,h,s,c,!1)}),(function(t){!function(t,r,a,s){e.Debug.assert(e.isNodeArray(t));var c=function(e,n){switch(e.kind){case 169:case 254:case 211:case 167:case 166:case 212:if(e.typeParameters===n)return 29;if(e.parameters===n)return 20;break;case 206:case 207:if(e.typeArguments===n)return 29;if(e.arguments===n)return 20;break;case 176:if(e.typeArguments===n)return 29;break;case 180:return 18}return 0}(r,t),l=s,d=a;if(0!==c)for(;o.isOnToken()&&!((h=o.readTokenInfo(r)).token.end>t.pos);)if(h.token.kind===c){d=u.getLineAndCharacterOfPosition(h.token.pos).line,x(h,r,s,r);var p=void 0;if(-1!==E)p=E;else{var f=e.getLineStartPositionForPosition(h.token.pos,u);p=n.SmartIndenter.findFirstNonWhitespaceColumn(f,h.token.pos,u,y)}l=A(r,a,p,y.indentSize)}else x(h,r,s,r);for(var m=-1,_=0;_<t.length;_++)m=S(t[_],m,i,l,d,d,!0,0===_);var g=function(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}(c);if(0!==g&&o.isOnToken()){var h;27===(h=o.readTokenInfo(r)).token.kind&&e.isCallLikeExpression(r)&&d!==u.getLineAndCharacterOfPosition(h.token.pos).line&&(o.advance(),h=o.isOnToken()?o.readTokenInfo(r):void 0),h&&h.token.kind===g&&e.rangeContainsRange(r,h.token)&&x(h,r,l,r,!0)}}(t,i,s,h)}));o.isOnToken();){var b=o.readTokenInfo(i);if(b.token.end>i.end)break;x(b,i,h,i)}if(!i.parent&&o.isOnEOF()){var T=o.readEOFTokenRange();T.end<=i.end&&d&&k(T,u.getLineAndCharacterOfPosition(T.pos).line,i,d,m,p,a,h)}}function S(a,s,c,l,d,p,f,m){var g=a.getStart(u),h=u.getLineAndCharacterOfPosition(g).line,b=h;a.decorators&&(b=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,u)).line);var T=-1;if(f&&e.rangeContainsRange(t,c)&&(T=function(t,r,i,a,o){if(e.rangeOverlapsWithStartEnd(a,t,r)||e.rangeContainsStartEnd(a,t,r)){if(-1!==o)return o}else{var s=u.getLineAndCharacterOfPosition(t).line,c=e.getLineStartPositionForPosition(t,u),l=n.SmartIndenter.findFirstNonWhitespaceColumn(c,t,u,y);if(s!==i||t===l){var d=n.SmartIndenter.getBaseIndentation(y);return d>l?d:l}}return-1}(g,a.end,d,t,s),-1!==T&&(s=T)),!e.rangeOverlapsWithStartEnd(t,a.pos,a.end))return a.end<t.pos&&o.skipToEndOf(a),s;if(0===a.getFullWidth())return s;for(;o.isOnToken();){if((S=o.readTokenInfo(i)).token.end>g){S.token.pos>g&&o.skipToStartOf(a);break}x(S,i,l,i)}if(!o.isOnToken())return s;if(e.isToken(a)){var S=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(S.token.end===a.end,"Token end is child end"),x(S,i,l,a),s}var L=163===a.kind?h:p,D=function(e,t,r,i,a,o){var s=n.SmartIndenter.shouldIndentChildNode(y,e)?y.indentSize:0;return o===t?{indentation:t===_?E:a.getIndentation(),delta:Math.min(y.indentSize,a.getDelta(e)+s)}:-1===r?20===e.kind&&t===_?{indentation:E,delta:a.getDelta(e)}:n.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,t,u)||n.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,t,u)||n.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,t,u)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:r,delta:s}}(a,h,T,i,l,L);return r(a,v,h,b,D.indentation,D.delta),v=i,m&&202===c.kind&&-1===s&&(s=D.indentation),s}function x(n,r,i,a,s){e.Debug.assert(e.rangeContainsRange(r,n.token));var c=o.lastTrailingTriviaWasNewLine(),p=!1;n.leadingTrivia&&I(n.leadingTrivia,r,v,i);var f=0,m=e.rangeContainsRange(t,n.token),g=u.getLineAndCharacterOfPosition(n.token.pos);if(m){var y=l(n.token),h=d;if(f=N(n.token,g,r,v,i),!y)if(0===f){var b=h&&u.getLineAndCharacterOfPosition(h.end).line;p=c&&g.line!==b}else p=1===f}if(n.trailingTrivia&&I(n.trailingTrivia,r,v,i),p){var T=m&&!l(n.token)?i.getIndentationForToken(g.line,n.token.kind,a,!!s):-1,S=!0;if(n.leadingTrivia){var x=i.getIndentationForComment(n.token.kind,T,a);S=C(n.leadingTrivia,x,S,(function(e){return R(e.pos,x,!1)}))}-1!==T&&S&&(R(n.token.pos,T,1===f),_=g.line,E=T)}o.advance(),v=r}}(r,r,S,x,i,a)}if(!o.isOnToken()){var L=n.SmartIndenter.nodeWillIndentChild(y,r,void 0,u,!1)?i+y.indentSize:i,D=o.getCurrentLeadingTrivia();D&&C(D,L,!1,(function(e){return N(e,u.getLineAndCharacterOfPosition(e.pos),r,r,void 0)}))}return!1!==y.trimTrailingWhitespace&&(g=d?d.end:t.pos,P(u.getLineAndCharacterOfPosition(g).line,u.getLineAndCharacterOfPosition(t.end).line+1,d)),T;function A(t,r,i,a){return{getIndentationForComment:function(e,n,t){switch(e){case 19:case 23:case 21:return i+o(t)}return-1!==n?n:i},getIndentationForToken:function(n,a,s,c){return!c&&function(n,i,a){switch(i){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(a.kind){case 278:case 279:case 277:case 226:return!1}break;case 22:case 23:if(193!==a.kind)return!1}return r!==n&&!(t.decorators&&i===function(n){if(n.modifiers&&n.modifiers.length)return n.modifiers[0].kind;switch(n.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(n.asteriskToken)return 41;case 165:case 162:var t=e.getNameOfDeclaration(n);if(t)return t.kind}}(t))}(n,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e,r){n.SmartIndenter.shouldIndentChildNode(y,r,t,u)&&(i+=e?y.indentSize:-y.indentSize,a=n.SmartIndenter.shouldIndentChildNode(y,t)?y.indentSize:0)}};function o(e){return n.SmartIndenter.nodeWillIndentChild(y,t,e,u,!0)?a:0}}function C(n,r,i,a){for(var o=0,s=n;o<s.length;o++){var c=s[o],l=e.rangeContainsRange(t,c);switch(c.kind){case 3:l&&O(c,r,!i),i=!1;break;case 2:i&&l&&a(c),i=!1;break;case 4:i=!0}}return i}function I(n,r,i,a){for(var o=0,s=n;o<s.length;o++){var c=s[o];e.isComment(c.kind)&&e.rangeContainsRange(t,c)&&N(c,u.getLineAndCharacterOfPosition(c.pos),r,i,a)}}function N(e,n,r,i,a){var o=0;return l(e)||(d?o=k(e,n.line,r,d,m,p,i,a):P(u.getLineAndCharacterOfPosition(t.pos).line,n.line)),d=e,p=r,m=n.line,o}function k(n,t,r,i,a,o,s,c){b.updateContext(i,o,n,r,s);var l=h(b),d=!1!==b.options.trimTrailingWhitespace,p=0;return l?e.forEachRight(l,(function(o){switch(p=function(n,t,r,i,a){var o,s=a!==r;switch(n.action){case 1:return 0;case 16:if(t.end!==i.pos)return M(t.end,i.pos-t.end),s?2:0;break;case 32:M(t.pos,t.end-t.pos);break;case 8:if(1!==n.flags&&r!==a)return 0;if(1!=a-r)return F(t.end,i.pos-t.end,e.getNewLineOrDefaultFromHost(v,y)),s?0:1;break;case 4:if(1!==n.flags&&r!==a)return 0;if(1!=i.pos-t.end||32!==u.text.charCodeAt(t.end))return F(t.end,i.pos-t.end," "),s?2:0;break;case 64:o=t.end,";"&&T.push(e.createTextChangeFromStartLength(o,0,";"))}return 0}(o,i,a,n,t),p){case 2:r.getStart(u)===n.pos&&c.recomputeIndentation(!1,s);break;case 1:r.getStart(u)===n.pos&&c.recomputeIndentation(!0,s);break;default:e.Debug.assert(0===p)}d=d&&!(16&o.action)&&1!==o.flags})):d=d&&1!==n.kind,t!==a&&d&&P(a,t,i),p}function R(n,t,r){var i=f(t,y);if(r)F(n,0,i);else{var a=u.getLineAndCharacterOfPosition(n),o=e.getStartPositionOfLine(a.line,u);(t!==function(e,n){for(var t=0,r=0;r<n;r++)9===u.text.charCodeAt(e+r)?t+=y.tabSize-t%y.tabSize:t++;return t}(o,a.character)||function(e,n){return e!==u.text.substr(n,e.length)}(i,o))&&F(o,a.character,i)}}function O(t,r,i,a){void 0===a&&(a=!0);var o=u.getLineAndCharacterOfPosition(t.pos).line,s=u.getLineAndCharacterOfPosition(t.end).line;if(o!==s){for(var c=[],l=t.pos,d=o;d<s;d++){var p=e.getEndLinePosition(d,u);c.push({pos:l,end:p}),l=e.getStartPositionOfLine(d+1,u)}if(a&&c.push({pos:l,end:t.end}),0!==c.length){var m=e.getStartPositionOfLine(o,u),_=n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(m,c[0].pos,u,y),g=0;i&&(g=1,o++);for(var h=r-_.column,v=g;v<c.length;v++,o++){var b=e.getStartPositionOfLine(o,u),E=0===v?_:n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(c[v].pos,c[v].end,u,y),T=E.column+h;if(T>0){var S=f(T,y);F(b,E.character,S)}else M(b,E.character)}}}else i||R(t.pos,r,!1)}function P(n,t,r){for(var i=n;i<t;i++){var a=e.getStartPositionOfLine(i,u),o=e.getEndLinePosition(i,u);if(!(r&&(e.isComment(r.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(r.kind))&&r.pos<=o&&r.end>o)){var s=w(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),M(s,o+1-s))}}}function w(n,t){for(var r=t;r>=n&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(r));)r--;return r!==t?r+1:-1}function M(n,t){t&&T.push(e.createTextChangeFromStartLength(n,t,""))}function F(n,t,r){(t||r)&&T.push(e.createTextChangeFromStartLength(n,t,r))}}function f(n,t){if((!i||i.tabSize!==t.tabSize||i.indentSize!==t.indentSize)&&(i={tabSize:t.tabSize,indentSize:t.indentSize},a=o=void 0),t.convertTabsToSpaces){var r=void 0,s=Math.floor(n/t.indentSize),c=n%t.indentSize;return o||(o=[]),void 0===o[s]?(r=e.repeatString(" ",t.indentSize*s),o[s]=r):r=o[s],c?r+e.repeatString(" ",c):r}var l=Math.floor(n/t.tabSize),u=n-l*t.tabSize,d=void 0;return a||(a=[]),void 0===a[l]?a[l]=d=e.repeatString("\t",l):d=a[l],u?d+e.repeatString(" ",u):d}n.createTextRangeWithKind=function(n,t,r){var i={pos:n,end:t,kind:r};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(r)}}),i},function(e){e[e.Unknown=-1]="Unknown"}(t||(t={})),n.formatOnEnter=function(n,t,r){var i=t.getLineAndCharacterOfPosition(n).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,t);e.isWhiteSpaceSingleLine(t.text.charCodeAt(a));)a--;return e.isLineBreak(t.text.charCodeAt(a))&&a--,d({pos:e.getStartPositionOfLine(i-1,t),end:a+1},t,r,2)},n.formatOnSemicolon=function(e,n,t){return u(c(s(e,26,n)),n,t,3)},n.formatOnOpeningCurly=function(n,t,r){var i=s(n,18,t);if(!i)return[];var a=c(i.parent);return d({pos:e.getLineStartPositionForPosition(a.getStart(t),t),end:n},t,r,4)},n.formatOnClosingCurly=function(e,n,t){return u(c(s(e,19,n)),n,t,5)},n.formatDocument=function(e,n){return d({pos:0,end:e.text.length},e,n,0)},n.formatSelection=function(n,t,r,i){return d({pos:e.getLineStartPositionForPosition(n,r),end:t},r,i,1)},n.formatNodeGivenIndentation=function(e,t,r,i,a,o){var s={pos:0,end:t.text.length};return n.getFormattingScanner(t.text,r,s.pos,s.end,(function(n){return p(s,e,i,a,n,o,1,(function(e){return!1}),t)}))},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(r||(r={})),n.getRangeOfEnclosingComment=function(n,t,r,i){void 0===i&&(i=e.getTokenAtPosition(n,t));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(n)<=t&&t<i.getEnd())){var o=(r=null===r?void 0:void 0===r?e.findPrecedingToken(t,n):r)&&e.getTrailingCommentRanges(n.text,r.end),s=e.getLeadingCommentRangesOfNode(i,n),c=e.concatenate(o,s);return c&&e.find(c,(function(r){return e.rangeContainsPositionExclusive(r,t)||t===r.end&&(2===r.kind||t===n.getFullWidth())}))}},n.getIndentationString=f}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){var n;(function(t){var r,i;function a(e){return e.baseIndentSize||0}function o(e,n,t,r,i,o,l){for(var m,_=e.parent;_;){var y=!0;if(t){var h=e.getStart(i);y=h<t.pos||h>t.end}var v=s(_,e,i),b=v.line===n.line||p(_,e,n.line,i);if(y){var E=null===(m=f(e,i))||void 0===m?void 0:m[0],S=g(e,i,l,!!E&&u(E,i).line>v.line);if(-1!==S)return S+r;if(-1!==(S=c(e,_,n,b,i,l)))return S+r}T(l,_,e,i,o)&&!b&&(r+=l.indentSize);var x=d(_,e,n.line,i);_=(e=_).parent,n=x?i.getLineAndCharacterOfPosition(e.getStart(i)):v}return r+a(l)}function s(e,n,t){var r=f(n,t),i=r?r.pos:e.getStart(t);return t.getLineAndCharacterOfPosition(i)}function c(n,t,r,i,a,o){return!e.isDeclaration(n)&&!e.isStatementButNotDeclaration(n)||300!==t.kind&&i?-1:h(r,a,o)}function l(n,t,r,i){var a=e.findNextToken(n,t,i);return a?18===a.kind?1:19===a.kind&&r===u(a,i).line?2:0:0}function u(e,n){return n.getLineAndCharacterOfPosition(e.getStart(n))}function d(n,t,r,i){if(!e.isCallExpression(n)||!e.contains(n.arguments,t))return!1;var a=n.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===r}function p(n,t,r,i){if(237===n.kind&&n.elseStatement===t){var a=e.findChildOfKind(n,91,i);return e.Debug.assert(void 0!==a),u(a,i).line===r}return!1}function f(e,n){return e.parent&&m(e.getStart(n),e.getEnd(),e.parent,n)}function m(n,t,r,i){switch(r.kind){case 176:return a(r.typeArguments);case 203:return a(r.properties);case 202:case 267:case 271:case 199:case 200:return a(r.elements);case 180:return a(r.members);case 254:case 211:case 212:case 167:case 166:case 172:case 169:case 178:case 173:return a(r.typeParameters)||a(r.parameters);case 255:case 224:case 256:case 257:case 339:return a(r.typeParameters);case 207:case 206:return a(r.typeArguments)||a(r.arguments);case 253:return a(r.declarations)}function a(a){return a&&e.rangeContainsStartEnd(function(e,n,t){for(var r=e.getChildren(t),i=1;i<r.length-1;i++)if(r[i].pos===n.pos&&r[i].end===n.end)return{pos:r[i-1].end,end:r[i+1].getStart(t)};return n}(r,a,i),n,t)?a:void 0}}function _(e,n,t){return e?h(n.getLineAndCharacterOfPosition(e.pos),n,t):-1}function g(e,n,t,r){if(e.parent&&253===e.parent.kind)return-1;var i=f(e,n);if(i){var a=i.indexOf(e);if(-1!==a){var o=y(i,a,n,t);if(-1!==o)return o}return _(i,n,t)+(r?t.indentSize:0)}return-1}function y(n,t,r,i){e.Debug.assert(t>=0&&t<n.length);for(var a=u(n[t],r),o=t-1;o>=0;o--)if(27!==n[o].kind){if(r.getLineAndCharacterOfPosition(n[o].end).line!==a.line)return h(a,r,i);a=u(n[o],r)}return-1}function h(e,n,t){var r=n.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,n,t)}function v(n,t,r,i){for(var a=0,o=0,s=n;s<t;s++){var c=r.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(c))break;9===c?o+=i.tabSize+o%i.tabSize:o++,a++}return{column:o,character:a}}function b(e,n,t,r){return v(e,n,t,r).column}function E(e,n,t,r,i){var a=t?t.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(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&r&&203===a)return S(r,t);if(219!==n.kind)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 233!==a;case 212:return r&&210===a?S(r,t):233!==a;case 270:return 271!==a;case 264:return 265!==a||!!t.namedBindings&&267!==t.namedBindings.kind;case 276:return 279!==a;case 280:return 282!==a;case 186:case 185:if(180===a||182===a)return!1}return i}function T(e,n,t,r,i){return void 0===i&&(i=!1),E(e,n,t,r,!1)&&!(i&&t&&function(e,n){switch(e){case 245:case 249:case 243:case 244:return 233!==n.kind;default:return!1}}(t.kind,n))}function S(n,t){var r=e.skipTrivia(n.text,t.pos);return n.getLineAndCharacterOfPosition(r).line===n.getLineAndCharacterOfPosition(t.end).line}!function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.getIndentation=function(t,r,i,s){if(void 0===s&&(s=!1),t>r.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(t,r,void 0,!0),d=n.getRangeOfEnclosingComment(r,t,c||null);if(d&&3===d.kind)return function(n,t,r,i){var a=e.getLineAndCharacterOfPosition(n,t).line-1,o=e.getLineAndCharacterOfPosition(n,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,n),t,n,r);var s=e.getStartPositionOfLine(a,n),c=v(s,t,n,r),l=c.column,u=c.character;return 0===l?l:42===n.text.charCodeAt(s+u)?l-1:l}(r,t,i,d);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(r)<=t&&t<c.end)return 0;var p=r.getLineAndCharacterOfPosition(t).line;if(i.indentStyle===e.IndentStyle.Block)return function(n,t,r){for(var i=t;i>0;){var a=n.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,n),i,n,r)}(r,t,i);if(27===c.kind&&219!==c.parent.kind){var f=function(n,t,r){var i=e.findListItemInfo(n);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,t,r):-1}(c,r,i);if(-1!==f)return f}var h=function(e,n,t){return n&&m(e,e,n,t)}(t,c.parent,r);return h&&!e.rangeContainsRange(h,c)?_(h,r,i)+i.indentSize:function(n,t,r,i,s,c){for(var d,p=r;p;){if(e.positionBelongsToNode(p,t,n)&&T(c,p,d,n,!0)){var f=u(p,n),m=l(r,p,i,n);return o(p,f,void 0,0!==m?s&&2===m?c.indentSize:0:i!==f.line?c.indentSize:0,n,!0,c)}var _=g(p,n,c,!0);if(-1!==_)return _;d=p,p=p.parent}return a(c)}(r,t,c,p,s,i)},t.getIndentationForNode=function(e,n,t,r){var i=t.getLineAndCharacterOfPosition(e.getStart(t));return o(e,i,n,0,t,!1,r)},t.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),t.isArgumentAndStartLineOverlapsExpressionBeingCalled=d,t.childStartsOnTheSameLineWithElseInIfStatement=p,t.childIsUnindentedBranchOfConditionalExpression=function(n,t,r,i){if(e.isConditionalExpression(n)&&(t===n.whenTrue||t===n.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,n.condition.end).line;if(t===n.whenTrue)return r===a;var o=u(n.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,n.whenTrue.end).line;return a===o&&s===r}return!1},t.argumentStartsOnSameLineAsPreviousArgument=function(n,t,r,i){if(e.isCallOrNewExpression(n)){if(!n.arguments)return!1;var a=e.find(n.arguments,(function(e){return e.pos===t.pos}));if(!a)return!1;var o=n.arguments.indexOf(a);if(0===o)return!1;var s=n.arguments[o-1];if(r===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},t.getContainingList=f,t.findFirstNonWhitespaceCharacterAndColumn=v,t.findFirstNonWhitespaceColumn=b,t.nodeWillIndentChild=E,t.shouldIndentChildNode=T})((n=e.formatting||(e.formatting={})).SmartIndenter||(n.SmartIndenter={}))}(u||(u={})),function(e){!function(n){function t(n){var t=n.__pos;return e.Debug.assert("number"==typeof t),t}function r(n,t){e.Debug.assert("number"==typeof t),n.__pos=t}function o(n){var t=n.__end;return e.Debug.assert("number"==typeof t),t}function s(n,t){e.Debug.assert("number"==typeof t),n.__end=t}var c,l;function u(n,t){return e.skipTrivia(n,t,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(c=n.LeadingTriviaOption||(n.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"}(l=n.TrailingTriviaOption||(n.TrailingTriviaOption={}));var d,p={leadingTriviaOption:c.Exclude,trailingTriviaOption:l.Exclude};function f(e,n,t,r){return{pos:m(e,n,r),end:g(e,t,r)}}function m(n,t,r,i){var a,o;void 0===i&&(i=!1);var s=r.leadingTriviaOption;if(s===c.Exclude)return t.getStart(n);if(s===c.StartLine){var l=t.getStart(n),d=e.getLineStartPositionForPosition(l,n);return e.rangeContainsPosition(t,d)?d:l}if(s===c.JSDoc){var p=e.getJSDocCommentRanges(t,n.text);if(null==p?void 0:p.length)return e.getLineStartPositionForPosition(p[0].pos,n)}var f=t.getFullStart(),m=t.getStart(n);if(f===m)return m;var _=e.getLineStartPositionForPosition(f,n);if(e.getLineStartPositionForPosition(m,n)===_)return s===c.IncludeAll?f:m;if(i){var g=(null===(a=e.getLeadingCommentRanges(n.text,f))||void 0===a?void 0:a[0])||(null===(o=e.getTrailingCommentRanges(n.text,f))||void 0===o?void 0:o[0]);if(g)return e.skipTrivia(n.text,g.end,!0,!0)}var y=f>0?1:0,h=e.getStartPositionOfLine(e.getLineOfLocalPosition(n,_)+y,n);return h=u(n.text,h),e.getStartPositionOfLine(e.getLineOfLocalPosition(n,h),n)}function _(n,t,r){var i=t.end;if(r.trailingTriviaOption===l.Include){var a=e.getTrailingCommentRanges(n.text,i);if(a)for(var o=e.getLineOfLocalPosition(n,t.end),s=0,c=a;s<c.length;s++){var u=c[s];if(2===u.kind||e.getLineOfLocalPosition(n,u.pos)>o)break;if(e.getLineOfLocalPosition(n,u.end)>o)return e.skipTrivia(n.text,u.end,!0,!0)}}}function g(n,t,r){var i,a=t.end,o=r.trailingTriviaOption;if(o===l.Exclude)return a;if(o===l.ExcludeWhitespace){var s=e.concatenate(e.getTrailingCommentRanges(n.text,a),e.getLeadingCommentRanges(n.text,a));return(null===(i=null==s?void 0:s[s.length-1])||void 0===i?void 0:i.end)||a}var c=_(n,t,r);if(c)return c;var u=e.skipTrivia(n.text,a,!0);return u===a||o!==l.Include&&!e.isLineBreak(n.text.charCodeAt(u-1))?a:u}function y(e,n){return!!n&&!!e.parent&&(27===n.kind||26===n.kind&&203===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(d||(d={})),n.isThisTypeAnnotatable=function(n){return e.isFunctionExpression(n)||e.isFunctionDeclaration(n)};var h,v,b=function(){function n(n,t){this.newLineCharacter=n,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return n.fromContext=function(t){return new n(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)},n.with=function(e,t){var r=n.fromContext(e);return t(r),r.getChanges()},n.prototype.pushRaw=function(n,t){e.Debug.assertEqual(n.fileName,t.fileName);for(var r=0,i=t.textChanges;r<i.length;r++){var a=i[r];this.changes.push({kind:d.Text,sourceFile:n,text:a.newText,range:e.createTextRangeFromSpan(a.span)})}},n.prototype.deleteRange=function(e,n){this.changes.push({kind:d.Remove,sourceFile:e,range:n})},n.prototype.delete=function(e,n){this.deletedNodes.push({sourceFile:e,node:n})},n.prototype.deleteNode=function(e,n,t){void 0===t&&(t={leadingTriviaOption:c.IncludeAll}),this.deleteRange(e,f(e,n,n,t))},n.prototype.deleteNodes=function(e,n,t,r){void 0===t&&(t={leadingTriviaOption:c.IncludeAll});for(var i=0,a=n;i<a.length;i++){var o=a[i],s=m(e,o,t,r),l=g(e,o,t);this.deleteRange(e,{pos:s,end:l}),r=!!_(e,o,t)}},n.prototype.deleteModifier=function(n,t){this.deleteRange(n,{pos:t.getStart(n),end:e.skipTrivia(n.text,t.end,!0)})},n.prototype.deleteNodeRange=function(e,n,t,r){void 0===r&&(r={leadingTriviaOption:c.IncludeAll});var i=m(e,n,r),a=g(e,t,r);this.deleteRange(e,{pos:i,end:a})},n.prototype.deleteNodeRangeExcludingEnd=function(e,n,t,r){void 0===r&&(r={leadingTriviaOption:c.IncludeAll});var i=m(e,n,r),a=void 0===t?e.text.length:m(e,t,r);this.deleteRange(e,{pos:i,end:a})},n.prototype.replaceRange=function(e,n,t,r){void 0===r&&(r={}),this.changes.push({kind:d.ReplaceWithSingleNode,sourceFile:e,range:n,options:r,node:t})},n.prototype.replaceNode=function(e,n,t,r){void 0===r&&(r=p),this.replaceRange(e,f(e,n,n,r),t,r)},n.prototype.replaceNodeRange=function(e,n,t,r,i){void 0===i&&(i=p),this.replaceRange(e,f(e,n,t,i),r,i)},n.prototype.replaceRangeWithNodes=function(e,n,t,r){void 0===r&&(r={}),this.changes.push({kind:d.ReplaceWithMultipleNodes,sourceFile:e,range:n,options:r,nodes:t})},n.prototype.replaceNodeWithNodes=function(e,n,t,r){void 0===r&&(r=p),this.replaceRangeWithNodes(e,f(e,n,n,r),t,r)},n.prototype.replaceNodeWithText=function(e,n,t){this.replaceRangeWithText(e,f(e,n,n,p),t)},n.prototype.replaceNodeRangeWithNodes=function(e,n,t,r,i){void 0===i&&(i=p),this.replaceRangeWithNodes(e,f(e,n,t,i),r,i)},n.prototype.nodeHasTrailingComment=function(e,n,t){return void 0===t&&(t=p),!!_(e,n,t)},n.prototype.nextCommaToken=function(n,t){var r=e.findNextToken(t,t.parent,n);return r&&27===r.kind?r:void 0},n.prototype.replacePropertyAssignment=function(e,n,t){var r=this.nextCommaToken(e,n)?"":","+this.newLineCharacter;this.replaceNode(e,n,t,{suffix:r})},n.prototype.insertNodeAt=function(n,t,r,i){void 0===i&&(i={}),this.replaceRange(n,e.createRange(t),r,i)},n.prototype.insertNodesAt=function(n,t,r,i){void 0===i&&(i={}),this.replaceRangeWithNodes(n,e.createRange(t),r,i)},n.prototype.insertNodeAtTopOfFile=function(e,n,t){this.insertAtTopOfFile(e,n,t)},n.prototype.insertNodesAtTopOfFile=function(e,n,t){this.insertAtTopOfFile(e,n,t)},n.prototype.insertAtTopOfFile=function(n,t,r){var i=function(n){for(var t,r=0,i=n.statements;r<i.length;r++){var a=i[r];if(!e.isPrologueDirective(a))break;t=a}var o=0,s=n.text;if(t)return o=t.end,_(),o;var c=e.getShebang(s);void 0!==c&&(o=c.length,_());var l,u,d=e.getLeadingCommentRanges(s,o);if(!d)return o;for(var p=0,f=d;p<f.length;p++){var m=f[p];if(3===m.kind){if(e.isPinnedComment(s,m.pos)){l={range:m,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(s,m.pos,m.end)){l={range:m,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;if(n.getLineAndCharacterOfPosition(m.pos).line>=n.getLineAndCharacterOfPosition(l.range.end).line+2)break}if(n.statements.length&&(void 0===u&&(u=n.getLineAndCharacterOfPosition(n.statements[0].getStart()).line),u<n.getLineAndCharacterOfPosition(m.end).line+2))break;l={range:m,pinnedOrTripleSlash:!1}}return l&&(o=l.range.end,_()),o;function _(){if(o<s.length){var n=s.charCodeAt(o);e.isLineBreak(n)&&++o<s.length&&13===n&&10===s.charCodeAt(o)&&o++}}}(n),a={prefix:0===i?void 0:this.newLineCharacter,suffix:(e.isLineBreak(n.text.charCodeAt(i))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")};e.isArray(t)?this.insertNodesAt(n,i,t,a):this.insertNodeAt(n,i,t,a)},n.prototype.insertFirstParameter=function(n,t,r){var i=e.firstOrUndefined(t);i?this.insertNodeBefore(n,i,r):this.insertNodeAt(n,t.pos,r)},n.prototype.insertNodeBefore=function(e,n,t,r,i){void 0===r&&(r=!1),void 0===i&&(i={}),this.insertNodeAt(e,m(e,n,i),t,this.getOptionsForInsertNodeBefore(n,t,r))},n.prototype.insertModifierAt=function(n,t,r,i){void 0===i&&(i={}),this.insertNodeAt(n,t,e.factory.createToken(r),i)},n.prototype.insertModifierBefore=function(e,n,t){return this.insertModifierAt(e,t.getStart(e),n,{suffix:" "})},n.prototype.insertCommentBeforeLine=function(n,t,r,i){var a=e.getStartPositionOfLine(t,n),o=e.getFirstNonSpaceCharacterPosition(n.text,a),s=D(n,o),c=e.getTouchingToken(n,s?o:r),l=n.text.slice(a,o),u=(s?"":this.newLineCharacter)+"//"+i+this.newLineCharacter+l;this.insertText(n,c.getStart(n),u)},n.prototype.insertJsdocCommentBefore=function(n,t,r){var i=t.getStart(n);if(t.jsDoc)for(var a=0,o=t.jsDoc;a<o.length;a++){var s=o[a];this.deleteRange(n,{pos:e.getLineStartPositionForPosition(s.getStart(n),n),end:g(n,s,{})})}var c=e.getPrecedingNonSpaceCharacterPosition(n.text,i-1),l=n.text.slice(c,i);this.insertNodeAt(n,i,r,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+l})},n.prototype.replaceRangeWithText=function(e,n,t){this.changes.push({kind:d.Text,sourceFile:e,range:n,text:t})},n.prototype.insertText=function(n,t,r){this.replaceRangeWithText(n,e.createRange(t),r)},n.prototype.tryInsertTypeAnnotation=function(n,t,r){var i,a;if(e.isFunctionLike(t)){if(!(a=e.findChildOfKind(t,21,n))){if(!e.isArrowFunction(t))return!1;a=e.first(t.parameters)}}else a=null!==(i=252===t.kind?t.exclamationToken:t.questionToken)&&void 0!==i?i:t.name;return this.insertNodeAt(n,a.end,r,{prefix:": "}),!0},n.prototype.tryInsertThisTypeAnnotation=function(n,t,r){var i=e.findChildOfKind(t,20,n).getStart(n)+1,a=t.parameters.length?", ":"";this.insertNodeAt(n,i,r,{prefix:"this: ",suffix:a})},n.prototype.insertTypeParameters=function(n,t,r){var i=(e.findChildOfKind(t,20,n)||e.first(t.parameters)).getStart(n);this.insertNodesAt(n,i,r,{prefix:"<",suffix:">",joiner:", "})},n.prototype.getOptionsForInsertNodeBefore=function(n,t,r){return e.isStatement(n)||e.isClassElement(n)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(n)?{suffix:", "}:e.isParameter(n)?e.isParameter(t)?{suffix:", "}:{}:e.isStringLiteral(n)&&e.isImportDeclaration(n.parent)||e.isNamedImports(n)?{suffix:", "}:e.isImportSpecifier(n)?{suffix:","+(r?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(n)},n.prototype.insertNodeAtConstructorStart=function(n,t,r){var a=e.firstOrUndefined(t.body.statements);a&&t.body.multiLine?this.insertNodeBefore(n,a,r):this.replaceConstructorBody(n,t,i([r],t.body.statements,!0))},n.prototype.insertNodeAtConstructorStartAfterSuperCall=function(n,t,r){var a=e.find(t.body.statements,(function(n){return e.isExpressionStatement(n)&&e.isSuperCall(n.expression)}));a&&t.body.multiLine?this.insertNodeAfter(n,a,r):this.replaceConstructorBody(n,t,i(i([],t.body.statements,!0),[r],!1))},n.prototype.insertNodeAtConstructorEnd=function(n,t,r){var a=e.lastOrUndefined(t.body.statements);a&&t.body.multiLine?this.insertNodeAfter(n,a,r):this.replaceConstructorBody(n,t,i(i([],t.body.statements,!0),[r],!1))},n.prototype.replaceConstructorBody=function(n,t,r){this.replaceNode(n,t.body,e.factory.createBlock(r,!0))},n.prototype.insertNodeAtEndOfScope=function(n,t,r){var i=m(n,t.getLastToken(),{});this.insertNodeAt(n,i,r,{prefix:e.isLineBreak(n.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},n.prototype.insertNodeAtClassStart=function(e,n,t){this.insertNodeAtStartWorker(e,n,t)},n.prototype.insertNodeAtObjectStart=function(e,n,t){this.insertNodeAtStartWorker(e,n,t)},n.prototype.insertNodeAtStartWorker=function(e,n,t){var r,i=null!==(r=this.guessIndentationFromExistingMembers(e,n))&&void 0!==r?r:this.computeIndentationForNewMember(e,n);this.insertNodeAt(e,T(n).pos,t,this.getInsertNodeAtStartInsertOptions(e,n,i))},n.prototype.guessIndentationFromExistingMembers=function(n,t){for(var r,i=t,a=0,o=T(t);a<o.length;a++){var s=o[a];if(e.rangeStartPositionsAreOnSameLine(i,s,n))return;var c=s.getStart(n),l=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(c,n),c,n,this.formatContext.options);if(void 0===r)r=l;else if(l!==r)return;i=s}return r},n.prototype.computeIndentationForNewMember=function(n,t){var r,i=t.getStart(n);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(i,n),i,n,this.formatContext.options)+(null!==(r=this.formatContext.options.indentSize)&&void 0!==r?r:4)},n.prototype.getInsertNodeAtStartInsertOptions=function(n,t,r){var i=0===T(t).length,a=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(t),{node:t,sourceFile:n}),o=e.isObjectLiteralExpression(t)&&(!e.isJsonSourceFile(n)||!i);return{indentation:r,prefix:(e.isObjectLiteralExpression(t)&&e.isJsonSourceFile(n)&&i&&!a?",":"")+this.newLineCharacter,suffix:o?",":""}},n.prototype.insertNodeAfterComma=function(e,n,t){var r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,n)||n,t);this.insertNodeAt(e,r,t,this.getInsertNodeAfterOptions(e,n))},n.prototype.insertNodeAfter=function(e,n,t){var r=this.insertNodeAfterWorker(e,n,t);this.insertNodeAt(e,r,t,this.getInsertNodeAfterOptions(e,n))},n.prototype.insertNodeAtEndOfList=function(e,n,t){this.insertNodeAt(e,n.end,t,{prefix:", "})},n.prototype.insertNodesAfter=function(n,t,r){var i=this.insertNodeAfterWorker(n,t,e.first(r));this.insertNodesAt(n,i,r,this.getInsertNodeAfterOptions(n,t))},n.prototype.insertNodeAfterWorker=function(n,t,r){var i,a;return i=t,a=r,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&160===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==n.text.charCodeAt(t.end-1)&&this.replaceRange(n,e.createRange(t.end),e.factory.createToken(26)),g(n,t,{})},n.prototype.getInsertNodeAfterOptions=function(n,t){var r=this.getInsertNodeAfterOptionsWorker(t);return a(a({},r),{prefix:t.end===n.end&&e.isStatement(t)?r.prefix?"\n"+r.prefix:"\n":r.prefix})},n.prototype.getInsertNodeAfterOptionsWorker=function(n){switch(n.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(n)||e.isClassOrTypeElement(n)),{suffix:this.newLineCharacter}}},n.prototype.insertName=function(n,t,r){if(e.Debug.assert(!t.name),212===t.kind){var i=e.findChildOfKind(t,38,n),a=e.findChildOfKind(t,20,n);a?(this.insertNodesAt(n,a.getStart(n),[e.factory.createToken(98),e.factory.createIdentifier(r)],{joiner:" "}),A(this,n,i)):(this.insertText(n,e.first(t.parameters).getStart(n),"function "+r+"("),this.replaceRange(n,i,e.factory.createToken(21))),233!==t.body.kind&&(this.insertNodesAt(n,t.body.getStart(n),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(n,t.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(t,211===t.kind?98:84,n).end;this.insertNodeAt(n,o,e.factory.createIdentifier(r),{prefix:" "})}},n.prototype.insertExportModifier=function(e,n){this.insertText(e,n.getStart(e),"export ")},n.prototype.insertNodeInListAfter=function(n,t,r,i){if(void 0===i&&(i=e.formatting.SmartIndenter.getContainingList(t,n)),i){var a=e.indexOfNode(i,t);if(!(a<0)){var o=t.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(n,t.end);if(s&&y(t,s)){var c=i[a+1],l=u(n.text,c.getFullStart()),d=""+e.tokenToString(s.kind)+n.text.substring(s.end,l);this.insertNodesAt(n,l,[r],{suffix:d})}}else{var p=t.getStart(n),f=e.getLineStartPositionForPosition(p,n),m=void 0,_=!1;if(1===i.length)m=27;else{var g=e.findPrecedingToken(t.pos,n);m=y(t,g)?g.kind:27,_=e.getLineStartPositionForPosition(i[a-1].getStart(n),n)!==f}if(function(n,t){for(var r=t;r<n.length;){var i=n.charCodeAt(r);if(!e.isWhiteSpaceSingleLine(i))return 47===i;r++}return!1}(n.text,t.end)&&(_=!0),_){this.replaceRange(n,e.createRange(o),e.factory.createToken(m));for(var h=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(f,p,n,this.formatContext.options),v=e.skipTrivia(n.text,o,!0,!1);v!==o&&e.isLineBreak(n.text.charCodeAt(v-1));)v--;this.replaceRange(n,e.createRange(v),r,{indentation:h,prefix:this.newLineCharacter})}else this.replaceRange(n,e.createRange(o),r,{prefix:e.tokenToString(m)+" "})}}}else e.Debug.fail("node is not a list element")},n.prototype.parenthesizeExpression=function(n,t){this.replaceRange(n,e.rangeOfNode(t),e.factory.createParenthesizedExpression(t))},n.prototype.finishClassesWithNodesInsertedAtStart=function(){var n=this;this.classesWithNodesInsertedAtStart.forEach((function(t){var r=t.node,i=t.sourceFile,a=function(n,t){var r=e.findChildOfKind(n,18,t),i=e.findChildOfKind(n,19,t);return[null==r?void 0:r.end,null==i?void 0:i.end]}(r,i),o=a[0],s=a[1];if(void 0!==o&&void 0!==s){var c=0===T(r).length,l=e.positionsAreOnSameLine(o,s,i);c&&l&&o!==s-1&&n.deleteRange(i,e.createRange(o,s-1)),l&&n.insertText(i,s-1,n.newLineCharacter)}}))},n.prototype.finishDeleteDeclarations=function(){for(var n=this,t=new e.Set,r=function(n,r){i.deletedNodes.some((function(t){return t.sourceFile===n&&e.rangeContainsRangeExclusive(t.node,r)}))||(e.isArray(r)?i.deleteRange(n,e.rangeOfTypeParameters(n,r)):v.deleteDeclaration(i,t,n,r))},i=this,a=0,o=this.deletedNodes;a<o.length;a++){var s=o[a];r(s.sourceFile,s.node)}t.forEach((function(r){var i=r.getSourceFile(),a=e.formatting.SmartIndenter.getContainingList(r,i);if(r===e.last(a)){var o=e.findLastIndex(a,(function(e){return!t.has(e)}),a.length-2);-1!==o&&n.deleteRange(i,{pos:a[o].end,end:E(i,a[o+1])})}}))},n.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var n=h.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),t=0,r=this.newFiles;t<r.length;t++){var i=r[t],a=i.oldFile,o=i.fileName,s=i.statements;n.push(h.newFileChanges(a,o,s,this.newLineCharacter,this.formatContext))}return n},n.prototype.createNewFile=function(e,n,t){this.newFiles.push({oldFile:e,fileName:n,statements:t})},n}();function E(n,t){return e.skipTrivia(n.text,m(n,t,{leadingTriviaOption:c.IncludeAll}),!1,!0)}function T(n){return e.isObjectLiteralExpression(n)?n.properties:n.members}function S(n,t){for(var r=t.length-1;r>=0;r--){var i=t[r],a=i.span,o=i.newText;n=""+n.substring(0,a.start)+o+n.substring(e.textSpanEnd(a))}return n}function x(n){var r=e.visitEachChild(n,x,e.nullTransformationContext,L,x),i=e.nodeIsSynthesized(r)?r:Object.create(r);return e.setTextRangePosEnd(i,t(n),o(n)),i}function L(n,r,i,a,s){var c=e.visitNodes(n,r,i,a,s);if(!c)return c;var l=c===n?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,t(n),o(n)),l}function D(n,t){return!(e.isInComment(n,t)||e.isInString(n,t)||e.isInTemplateString(n,t)||e.isInJSXText(n,t))}function A(e,n,t,r){void 0===r&&(r={leadingTriviaOption:c.IncludeAll});var i=m(n,t,r),a=g(n,t,r);e.deleteRange(n,{pos:i,end:a})}function C(n,t,r,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,r)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!t.has(i),"Deleting a node twice"),t.add(i),n.deleteRange(r,{pos:E(r,i),end:o===a.length-1?g(r,i,{}):E(r,a[o+1])})):A(n,r,i)}n.ChangeTracker=b,n.getNewFileText=function(e,n,t,r){return h.newFileChangesWorker(void 0,n,e,t,r)},function(n){function t(n,t,r,a,o){var s=r.map((function(e){return 4===e?"":i(e,n,a).text})).join(a),c=e.createSourceFile("any file name",s,99,!0,t);return S(s,e.formatting.formatDocument(c,o))+a}function i(n,t,i){var a=function(n){var t=0,i=e.createTextWriter(n);function a(n,r){if(r||!function(n){return e.skipTrivia(n,0)===n.length}(n)){t=i.getTextPos();for(var a=0;e.isWhiteSpaceLike(n.charCodeAt(n.length-a-1));)a++;t-=a}}return{onBeforeEmitNode:function(e){e&&r(e,t)},onAfterEmitNode:function(e){e&&s(e,t)},onBeforeEmitNodeArray:function(e){e&&r(e,t)},onAfterEmitNodeArray:function(e){e&&s(e,t)},onBeforeEmitToken:function(e){e&&r(e,t)},onAfterEmitToken:function(e){e&&s(e,t)},write:function(e){i.write(e),a(e,!1)},writeComment:function(e){i.writeComment(e)},writeKeyword:function(e){i.writeKeyword(e),a(e,!1)},writeOperator:function(e){i.writeOperator(e),a(e,!1)},writePunctuation:function(e){i.writePunctuation(e),a(e,!1)},writeTrailingSemicolon:function(e){i.writeTrailingSemicolon(e),a(e,!1)},writeParameter:function(e){i.writeParameter(e),a(e,!1)},writeProperty:function(e){i.writeProperty(e),a(e,!1)},writeSpace:function(e){i.writeSpace(e),a(e,!1)},writeStringLiteral:function(e){i.writeStringLiteral(e),a(e,!1)},writeSymbol:function(e,n){i.writeSymbol(e,n),a(e,!1)},writeLine:function(e){i.writeLine(e)},increaseIndent:function(){i.increaseIndent()},decreaseIndent:function(){i.decreaseIndent()},getText:function(){return i.getText()},rawWrite:function(e){i.rawWrite(e),a(e,!1)},writeLiteral:function(e){i.writeLiteral(e),a(e,!0)},getTextPos:function(){return i.getTextPos()},getLine:function(){return i.getLine()},getColumn:function(){return i.getColumn()},getIndent:function(){return i.getIndent()},isAtStartOfLine:function(){return i.isAtStartOfLine()},hasTrailingComment:function(){return i.hasTrailingComment()},hasTrailingWhitespace:function(){return i.hasTrailingWhitespace()},clear:function(){i.clear(),t=0}}}(i),o="\n"===i?1:0;return e.createPrinter({newLine:o,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},a).writeNode(4,n,t,a),{text:a.getText(),node:x(n)}}n.getTextChangesFromChanges=function(n,t,r,o){return e.mapDefined(e.group(n,(function(e){return e.sourceFile.path})),(function(n){for(var s=n[0].sourceFile,c=e.stableSort(n,(function(e,n){return e.range.pos-n.range.pos||e.range.end-n.range.end})),l=function(n){e.Debug.assert(c[n].range.end<=c[n+1].range.pos,"Changes overlap",(function(){return JSON.stringify(c[n].range)+" and "+JSON.stringify(c[n+1].range)}))},u=0;u<c.length-1;u++)l(u);var p=e.mapDefined(c,(function(n){var c=e.createTextSpanFromRange(n.range),l=function(n,t,r,o,s){var c;if(n.kind===d.Remove)return"";if(n.kind===d.Text)return n.text;var l=n.options,u=void 0===l?{}:l,p=n.range.pos,f=function(n){return function(n,t,r,o,s,c,l){var u=o.indentation,d=o.prefix,p=o.delta,f=i(n,t,s),m=f.node,_=f.text;l&&l(m,_);var g=function(n,t){var r=n.options,i=!r.semicolons||r.semicolons===e.SemicolonPreference.Ignore,o=r.semicolons===e.SemicolonPreference.Remove||i&&!e.probablyUsesSemicolons(t);return a(a({},r),{semicolons:o?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}(c,t),y=void 0!==u?u:e.formatting.SmartIndenter.getIndentation(r,t,g,d===s||e.getLineStartPositionForPosition(r,t)===r);void 0===p&&(p=e.formatting.SmartIndenter.shouldIndentChildNode(g,n)&&g.indentSize||0);var h={text:_,getLineAndCharacterOfPosition:function(n){return e.getLineAndCharacterOfPosition(this,n)}};return S(_,e.formatting.formatNodeGivenIndentation(m,h,t.languageVariant,y,p,a(a({},c),{options:g})))}(n,t,p,u,r,o,s)},m=n.kind===d.ReplaceWithMultipleNodes?n.nodes.map((function(n){return e.removeSuffix(f(n),r)})).join((null===(c=n.options)||void 0===c?void 0:c.joiner)||r):f(n.node),_=u.preserveLeadingWhitespace||void 0!==u.indentation||e.getLineStartPositionForPosition(p,t)===p?m:m.replace(/^\s+/,"");return(u.prefix||"")+_+(!u.suffix||e.endsWith(_,u.suffix)?"":u.suffix)}(n,s,t,r,o);if(c.length!==l.length||!e.stringContainsAt(s.text,l,c.start))return e.createTextChange(c,l)}));return p.length>0?{fileName:s.fileName,textChanges:p}:void 0}))},n.newFileChanges=function(n,r,i,a,o){var s=t(n,e.getScriptKindFromFileName(r),i,a,o);return{fileName:r,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},n.newFileChangesWorker=t,n.getNonformattedText=i}(h||(h={})),n.applyChanges=S,n.isValidLocationToAddComment=D,function(n){function t(n,t,r){if(r.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(t,r.pos-1));n.deleteRange(t,{pos:i.getStart(t),end:r.end})}else A(n,t,e.getAncestor(r,264))}n.deleteDeclaration=function(n,r,i,a){switch(a.kind){case 162:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?n.replaceNodeWithText(i,a,"()"):C(n,r,i,a);break;case 264:case 263:A(n,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;case 201:var s=a.parent;200===s.kind&&a!==e.last(s.elements)?A(n,i,a):C(n,r,i,a);break;case 252:!function(n,t,r,i){var a=i.parent;if(290!==a.kind)if(1===a.declarations.length){var o=a.parent;switch(o.kind){case 242:case 241:n.replaceNode(r,i,e.factory.createObjectLiteralExpression());break;case 240:A(n,r,a);break;case 235:A(n,r,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}else C(n,t,r,i);else n.deleteNodeRange(r,e.findChildOfKind(a,20,r),e.findChildOfKind(a,21,r))}(n,r,i,a);break;case 161:C(n,r,i,a);break;case 268:var u=a.parent;1===u.elements.length?t(n,i,u):C(n,r,i,a);break;case 266:t(n,i,a);break;case 26:A(n,i,a,{trailingTriviaOption:l.Exclude});break;case 98:A(n,i,a,{leadingTriviaOption:c.Exclude});break;case 255:case 254:A(n,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;default:a.parent?e.isImportClause(a.parent)&&a.parent.name===a?function(n,t,r){if(r.namedBindings){var i=r.name.getStart(t),a=e.getTokenAtPosition(t,r.name.end);if(a&&27===a.kind){var o=e.skipTrivia(t.text,a.end,!1,!0);n.deleteRange(t,{pos:i,end:o})}else A(n,t,r.name)}else A(n,t,r.parent)}(n,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?C(n,r,i,a):A(n,i,a):A(n,i,a)}}}(v||(v={})),n.deleteNode=A}(e.textChanges||(e.textChanges={}))}(u||(u={})),function(e){!function(n){var t=e.createMultiMap(),r=new e.Map;function o(n){return e.isArray(n)?e.formatStringFromArgs(e.getLocaleSpecificMessage(n[0]),n.slice(1)):e.getLocaleSpecificMessage(n)}function s(e,n,t,r,i,a){return{fixName:e,description:n,changes:t,fixId:r,fixAllDescription:i,commands:a?[a]:void 0}}function l(e,n){return{changes:e,commands:n}}function u(n,t,r){for(var i=0,a=d(n);i<a.length;i++){var o=a[i];e.contains(t,o.code)&&r(o)}}function d(n){var t=n.program,r=n.sourceFile,a=n.cancellationToken;return i(i(i([],t.getSemanticDiagnostics(r,a),!0),t.getSyntacticDiagnostics(r,a),!0),e.computeSuggestionDiagnostics(r,t,a),!0)}n.createCodeFixActionWithoutFixAll=function(e,n,t){return s(e,o(t),n,void 0,void 0)},n.createCodeFixAction=function(e,n,t,r,i,a){return s(e,o(t),n,r,o(i),a)},n.createCodeFixActionMaybeFixAll=function(e,n,t,r,i,a){return s(e,o(t),n,r,i&&o(i),a)},n.registerCodeFix=function(n){for(var i=0,a=n.errorCodes;i<a.length;i++){var o=a[i];t.add(String(o),n)}if(n.fixIds)for(var s=0,c=n.fixIds;s<c.length;s++){var l=c[s];e.Debug.assert(!r.has(l)),r.set(l,n)}},n.getSupportedErrorCodes=function(){return e.arrayFrom(t.keys())},n.getFixes=function(n){var r=d(n),i=t.get(String(n.errorCode));return e.flatMap(i,(function(t){return e.map(t.getCodeActions(n),function(n,t){for(var r=n.errorCodes,i=0,o=0,s=t;o<s.length;o++){var l=s[o];if(e.contains(r,l.code)&&i++,i>1)break}var u=i<2;return function(e){var n=e.fixId,t=e.fixAllDescription,r=c(e,["fixId","fixAllDescription"]);return u?r:a(a({},r),{fixId:n,fixAllDescription:t})}}(t,r))}))},n.getAllFixes=function(n){return r.get(e.cast(n.fixId,e.isString)).getAllCodeActions(n)},n.createCombinedCodeActions=l,n.createFileTextChanges=function(e,n){return{fileName:e,textChanges:n}},n.codeFixAll=function(n,t,r){var i=[];return l(e.textChanges.ChangeTracker.with(n,(function(e){return u(n,t,(function(n){return r(e,n,i)}))})),0===i.length?void 0:i)},n.eachDiagnostic=u}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var n,t;n=e.refactor||(e.refactor={}),t=new e.Map,n.registerRefactor=function(e,n){t.set(e,n)},n.getApplicableRefactors=function(r){return e.arrayFrom(e.flatMapIterator(t.values(),(function(e){var t;return r.cancellationToken&&r.cancellationToken.isCancellationRequested()||!(null===(t=e.kinds)||void 0===t?void 0:t.some((function(e){return n.refactorKindBeginsWith(e,r.kind)})))?void 0:e.getAvailableActions(r)})))},n.getEditsForRefactor=function(e,n,r){var i=t.get(n);return i&&i.getEditsForAction(e,r)}}(u||(u={})),function(e){!function(n){var t="addConvertToUnknownForNonOverlappingTypes",r=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function i(n,t,r){var i=e.getTokenAtPosition(t,r),a=e.Debug.checkDefined(e.findAncestor(i,(function(n){return e.isAsExpression(n)||e.isTypeAssertionExpression(n)})),"Expected to find an assertion expression"),o=e.isAsExpression(a)?e.factory.createAsExpression(a.expression,e.factory.createKeywordTypeNode(153)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(153),a.expression);n.replaceNode(t,a.expression,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,a,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,t,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return i(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var n;(n=e.codefix||(e.codefix={})).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(t){var r=t.sourceFile,i=e.textChanges.ChangeTracker.with(t,(function(n){var t=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);n.insertNodeAtEndOfScope(r,r,t)}));return[n.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(u||(u={})),function(e){!function(n){var t="addMissingAsync",r=[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];function i(r,i,a,o){var s=a((function(n){return function(n,t,r,i){if(!i||!i.has(e.getNodeId(r))){null==i||i.add(e.getNodeId(r));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(r,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(r))));n.replaceNode(t,r,a)}}(n,r.sourceFile,i,o)}));return n.createCodeFixAction(t,s,e.Diagnostics.Add_async_modifier_to_containing_function,t,e.Diagnostics.Add_all_missing_async_modifiers)}function a(n,t){if(t){var r=e.getTokenAtPosition(n,t.start);return e.findAncestor(r,(function(r){return r.getStart(n)<t.start||r.getEnd()>e.textSpanEnd(t)?"quit":(e.isArrowFunction(r)||e.isMethodDeclaration(r)||e.isFunctionExpression(r)||e.isFunctionDeclaration(r))&&e.textSpansEqual(t,e.createTextSpanFromNode(r,n))}))}}n.registerCodeFix({fixIds:[t],errorCodes:r,getCodeActions:function(n){var t=n.sourceFile,r=n.errorCode,o=n.cancellationToken,s=n.program,c=n.span,l=e.find(s.getDiagnosticsProducingTypeChecker().getDiagnostics(t,o),function(n,t){return function(r){var i=r.start,a=r.length,o=r.relatedInformation,s=r.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&s===t&&!!o&&e.some(o,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,r)),u=a(t,l&&l.relatedInformation&&e.find(l.relatedInformation,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(u)return[i(n,u,(function(t){return e.textChanges.ChangeTracker.with(n,t)}))]},getAllCodeActions:function(t){var o=t.sourceFile,s=new e.Set;return n.codeFixAll(t,r,(function(n,r){var c=r.relatedInformation&&e.find(r.relatedInformation,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),l=a(o,c);if(l)return i(t,l,(function(e){return e(n),[]}),s)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="addMissingAwait",r=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],o=i([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,r],a,!0);function s(t,r,i,a,s,c){var l=t.sourceFile,p=t.program,f=t.cancellationToken,m=function(n,t,r,i,a){var s=function(n,t){if(e.isPropertyAccessExpression(n.parent)&&e.isIdentifier(n.parent.expression))return{identifiers:[n.parent.expression],isCompleteFix:!0};if(e.isIdentifier(n))return{identifiers:[n],isCompleteFix:!0};if(e.isBinaryExpression(n)){for(var r=void 0,i=!0,a=0,o=[n.left,n.right];a<o.length;a++){var s=o[a],c=t.getTypeAtLocation(s);if(t.getPromisedTypeOfPromise(c)){if(!e.isIdentifier(s)){i=!1;continue}(r||(r=[])).push(s)}}return r&&{identifiers:r,isCompleteFix:i}}}(n,a);if(s){for(var c,l=s.isCompleteFix,d=function(n){var s=a.getSymbolAtLocation(n);if(!s)return"continue";var d=e.tryCast(s.valueDeclaration,e.isVariableDeclaration),p=d&&e.tryCast(d.name,e.isIdentifier),f=e.getAncestor(d,235);if(!d||!f||d.type||!d.initializer||f.getSourceFile()!==t||e.hasSyntacticModifier(f,1)||!p||!u(d.initializer))return l=!1,"continue";var m=i.getSemanticDiagnostics(t,r),_=e.FindAllReferences.Core.eachSymbolReferenceInFile(p,a,t,(function(r){return n!==r&&!function(n,t,r,i){var a=e.isPropertyAccessExpression(n.parent)?n.parent.name:e.isBinaryExpression(n.parent)?n.parent:n,s=e.find(t,(function(e){return e.start===a.getStart(r)&&e.start+e.length===a.getEnd()}));return s&&e.contains(o,s.code)||1&i.getTypeAtLocation(a).flags}(r,m,t,a)}));if(_)return l=!1,"continue";(c||(c=[])).push({expression:d.initializer,declarationSymbol:s})},p=0,f=s.identifiers;p<f.length;p++)d(f[p]);return c&&{initializers:c,needsSecondPassForFixAll:!l}}}(r,l,f,p,a);if(m){var _=s((function(n){e.forEach(m.initializers,(function(e){var t=e.expression;return d(n,i,l,a,t,c)})),c&&m.needsSecondPassForFixAll&&d(n,i,l,a,r,c)}));return n.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",_,1===m.initializers.length?[e.Diagnostics.Add_await_to_initializer_for_0,m.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function c(r,i,a,o,s,c){var l=s((function(e){return d(e,a,r.sourceFile,o,i,c)}));return n.createCodeFixAction(t,l,e.Diagnostics.Add_await,t,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function l(n,t,r,i,a){var o=e.getTokenAtPosition(n,r.start),s=e.findAncestor(o,(function(t){return t.getStart(n)<r.start||t.getEnd()>e.textSpanEnd(r)?"quit":e.isExpression(t)&&e.textSpansEqual(r,e.createTextSpanFromNode(t,n))}));return s&&function(n,t,r,i,a){var o=a.getDiagnosticsProducingTypeChecker().getDiagnostics(n,i);return e.some(o,(function(n){var i=n.start,a=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},r)&&s===t&&!!o&&e.some(o,(function(n){return n.code===e.Diagnostics.Did_you_forget_to_use_await.code}))}))}(n,t,r,i,a)&&u(s)?s:void 0}function u(n){return 32768&n.kind||!!e.findAncestor(n,(function(n){return n.parent&&e.isArrowFunction(n.parent)&&n.parent.body===n||e.isBlock(n)&&(254===n.parent.kind||211===n.parent.kind||212===n.parent.kind||167===n.parent.kind)}))}function d(n,t,i,o,s,c){if(e.isBinaryExpression(s))for(var l=0,u=[s.left,s.right];l<u.length;l++){var d=u[l];if(!(c&&e.isIdentifier(d)&&(_=o.getSymbolAtLocation(d))&&c.has(e.getSymbolId(_)))){var f=o.getTypeAtLocation(d),m=o.getPromisedTypeOfPromise(f)?e.factory.createAwaitExpression(d):d;n.replaceNode(i,d,m)}}else if(t===r&&e.isPropertyAccessExpression(s.parent)){if(c&&e.isIdentifier(s.parent.expression)&&(_=o.getSymbolAtLocation(s.parent.expression))&&c.has(e.getSymbolId(_)))return;n.replaceNode(i,s.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s.parent.expression))),p(n,s.parent.expression,i)}else if(e.contains(a,t)&&e.isCallOrNewExpression(s.parent)){if(c&&e.isIdentifier(s)&&(_=o.getSymbolAtLocation(s))&&c.has(e.getSymbolId(_)))return;n.replaceNode(i,s,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s))),p(n,s,i)}else{var _;if(c&&e.isVariableDeclaration(s.parent)&&e.isIdentifier(s.parent.name)&&(_=o.getSymbolAtLocation(s.parent.name))&&!e.tryAddToSet(c,e.getSymbolId(_)))return;n.replaceNode(i,s,e.factory.createAwaitExpression(s))}}function p(n,t,r){var i=e.findPrecedingToken(t.pos,r);i&&e.positionIsASICandidate(i.end,i.parent,r)&&n.insertText(r,t.getStart(r),";")}n.registerCodeFix({fixIds:[t],errorCodes:o,getCodeActions:function(n){var t=n.sourceFile,r=n.errorCode,i=l(t,r,n.span,n.cancellationToken,n.program);if(i){var a=n.program.getTypeChecker(),o=function(t){return e.textChanges.ChangeTracker.with(n,t)};return e.compact([s(n,i,r,a,o),c(n,i,r,a,o)])}},getAllCodeActions:function(t){var r=t.sourceFile,i=t.program,a=t.cancellationToken,u=t.program.getTypeChecker(),d=new e.Set;return n.codeFixAll(t,o,(function(e,n){var o=l(r,n.code,n,a,i);if(o){var p=function(n){return n(e),[]};return s(t,o,n.code,u,p,d)||c(t,o,n.code,u,p,d)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="addMissingConst",r=[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];function i(n,t,r,i,s){var c=e.getTokenAtPosition(t,r),l=e.findAncestor(c,(function(n){return e.isForInOrOfStatement(n.parent)?n.parent.initializer===n:!function(e){switch(e.kind){case 79:case 202:case 203:case 291:case 292:return!0;default:return!1}}(n)&&"quit"}));if(l)return a(n,l,t,s);var u=c.parent;if(e.isBinaryExpression(u)&&63===u.operatorToken.kind&&e.isExpressionStatement(u.parent))return a(n,c,t,s);if(e.isArrayLiteralExpression(u)){var d=i.getTypeChecker();if(!e.every(u.elements,(function(n){return t=n,r=d,!!(i=e.isIdentifier(t)?t:e.isAssignmentExpression(t,!0)&&e.isIdentifier(t.left)?t.left:void 0)&&!r.getSymbolAtLocation(i);var t,r,i})))return;return a(n,u,t,s)}var p=e.findAncestor(c,(function(n){return!!e.isExpressionStatement(n.parent)||!function(e){switch(e.kind){case 79:case 219:case 27:return!0;default:return!1}}(n)&&"quit"}));if(p){if(!o(p,i.getTypeChecker()))return;return a(n,p,t,s)}}function a(n,t,r,i){i&&!e.tryAddToSet(i,t)||n.insertModifierBefore(r,85,t)}function o(n,t){return!!e.isBinaryExpression(n)&&(27===n.operatorToken.kind?e.every([n.left,n.right],(function(e){return o(e,t)})):63===n.operatorToken.kind&&e.isIdentifier(n.left)&&!t.getSymbolAtLocation(n.left))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span.start,r.program)}));if(a.length>0)return[n.createCodeFixAction(t,a,e.Diagnostics.Add_const_to_unresolved_variable,t,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[t],getAllCodeActions:function(t){var a=new e.Set;return n.codeFixAll(t,r,(function(e,n){return i(e,n.file,n.start,t.program,a)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="addMissingDeclareProperty",r=[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];function i(n,t,r,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)){var o=a.parent;165!==o.kind||i&&!e.tryAddToSet(i,o)||n.insertModifierBefore(t,134,o)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span.start)}));if(a.length>0)return[n.createCodeFixAction(t,a,e.Diagnostics.Prefix_with_declare,t,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[t],getAllCodeActions:function(t){var a=new e.Set;return n.codeFixAll(t,r,(function(e,n){return i(e,n.file,n.start,a)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="addMissingInvocationForDecorator",r=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(n,t,r){var i=e.getTokenAtPosition(t,r),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);n.replaceNode(t,a.expression,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,a,e.Diagnostics.Call_decorator_expression,t,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return i(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="addNameToNamelessParameter",r=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(n,t,r){var i=e.getTokenAtPosition(t,r);if(!e.isIdentifier(i))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(i.kind));var a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createParameterDeclaration(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,e.factory.createTypeReferenceNode(i,void 0),a.initializer);n.replaceNode(t,i,s)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,a,e.Diagnostics.Add_parameter_name,t,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return i(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="annotateWithTypeFromJSDoc",r=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(n,t){var r=e.getTokenAtPosition(n,t);return e.tryCast(e.isParameter(r.parent)?r.parent.parent:r.parent,a)}function a(n){return function(n){return e.isFunctionLikeDeclaration(n)||252===n.kind||164===n.kind||165===n.kind}(n)&&o(n)}function o(n){return e.isFunctionLikeDeclaration(n)?n.parameters.some(o)||!n.type&&!!e.getJSDocReturnType(n):!n.type&&!!e.getJSDocType(n)}function s(n,t,r){if(e.isFunctionLikeDeclaration(r)&&(e.getJSDocReturnType(r)||r.parameters.some((function(n){return!!e.getJSDocType(n)})))){if(!r.typeParameters){var i=e.getJSDocTypeParameterDeclarations(r);i.length&&n.insertTypeParameters(t,r,i)}var a=e.isArrowFunction(r)&&!e.findChildOfKind(r,20,t);a&&n.insertNodeBefore(t,e.first(r.parameters),e.factory.createToken(20));for(var o=0,s=r.parameters;o<s.length;o++){var l=s[o];if(!l.type){var u=e.getJSDocType(l);u&&n.tryInsertTypeAnnotation(t,l,c(u))}}if(a&&n.insertNodeAfter(t,e.last(r.parameters),e.factory.createToken(21)),!r.type){var d=e.getJSDocReturnType(r);d&&n.tryInsertTypeAnnotation(t,r,c(d))}}else{var p=e.Debug.checkDefined(e.getJSDocType(r),"A JSDocType for this declaration should exist");e.Debug.assert(!r.type,"The JSDocType decl should have a type"),n.tryInsertTypeAnnotation(t,r,c(p))}}function c(n){switch(n.kind){case 307:case 308:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 311:return function(n){return e.factory.createUnionTypeNode([e.visitNode(n.type,c),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}(n);case 310:return c(n.type);case 309:return function(n){return e.factory.createUnionTypeNode([e.visitNode(n.type,c),e.factory.createTypeReferenceNode("null",e.emptyArray)])}(n);case 313:return function(n){return e.factory.createArrayTypeNode(e.visitNode(n.type,c))}(n);case 312:return function(n){var t;return e.factory.createFunctionTypeNode(e.emptyArray,n.parameters.map(l),null!==(t=n.type)&&void 0!==t?t:e.factory.createKeywordTypeNode(129))}(n);case 176:return function(n){var t=n.typeName,r=n.typeArguments;if(e.isIdentifier(n.typeName)){if(e.isJSDocIndexSignature(n))return function(n){var t=e.factory.createParameterDeclaration(void 0,void 0,void 0,145===n.typeArguments[0].kind?"n":"s",void 0,e.factory.createTypeReferenceNode(145===n.typeArguments[0].kind?"number":"string",[]),void 0),r=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[t],n.typeArguments[1])]);return e.setEmitFlags(r,1),r}(n);var i=n.typeName.text;switch(n.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1)}t=e.factory.createIdentifier(i),r="Array"!==i&&"Promise"!==i||n.typeArguments?e.visitNodes(n.typeArguments,c):e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)])}return e.factory.createTypeReferenceNode(t,r)}(n);default:var t=e.visitEachChild(n,c,e.nullTransformationContext);return e.setEmitFlags(t,1),t}}function l(n){var t=n.parent.parameters.indexOf(n),r=313===n.type.kind&&t===n.parent.parameters.length-1,i=n.name||(r?"rest":"arg"+t),a=r?e.factory.createToken(25):n.dotDotDotToken;return e.factory.createParameterDeclaration(n.decorators,n.modifiers,a,i,n.questionToken,e.visitNode(n.type,c),n.initializer)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=i(r.sourceFile,r.span.start);if(a){var o=e.textChanges.ChangeTracker.with(r,(function(e){return s(e,r.sourceFile,a)}));return[n.createCodeFixAction(t,o,e.Diagnostics.Annotate_with_type_from_JSDoc,t,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=i(n.file,n.start);t&&s(e,n.file,t)}))}}),n.parameterShouldGetTypeFromJSDoc=a}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="convertFunctionToEs6Class",r=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function i(n,t,r,i,s,c){var l=i.getSymbolAtLocation(e.getTokenAtPosition(t,r));if(l&&l.valueDeclaration&&19&l.flags){var u=l.valueDeclaration;if(e.isFunctionDeclaration(u))n.replaceNode(t,u,function(n){var t=f(l);n.body&&t.unshift(e.factory.createConstructorDeclaration(void 0,void 0,n.parameters,n.body));var r=a(n,93);return e.factory.createClassDeclaration(void 0,r,n.name,void 0,void 0,t)}(u));else if(e.isVariableDeclaration(u)){var d=function(n){var t=n.initializer;if(t&&e.isFunctionExpression(t)&&e.isIdentifier(n.name)){var r=f(n.symbol);t.body&&r.unshift(e.factory.createConstructorDeclaration(void 0,void 0,t.parameters,t.body));var i=a(n.parent.parent,93);return e.factory.createClassDeclaration(void 0,i,n.name,void 0,void 0,r)}}(u);if(!d)return;var p=u.parent.parent;e.isVariableDeclarationList(u.parent)&&u.parent.declarations.length>1?(n.delete(t,u),n.insertNodeAfter(t,p,d)):n.replaceNode(t,p,d)}}function f(r){var i=[];return r.members&&r.members.forEach((function(e,r){if("constructor"===r&&e.valueDeclaration)n.delete(t,e.valueDeclaration.parent);else{var a=l(e,void 0);a&&i.push.apply(i,a)}})),r.exports&&r.exports.forEach((function(n){if("prototype"===n.name&&n.declarations){var t=n.declarations[0];1===n.declarations.length&&e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind&&e.isObjectLiteralExpression(t.parent.right)&&(r=l(t.parent.right.symbol,void 0))&&i.push.apply(i,r)}else{var r;(r=l(n,[e.factory.createToken(124)]))&&i.push.apply(i,r)}})),i;function l(r,i){var l=[];if(!(8192&r.flags||4096&r.flags))return l;var u,d,p=r.valueDeclaration,f=p.parent,m=f.right;if(u=p,d=m,!(e.isAccessExpression(u)?e.isPropertyAccessExpression(u)&&o(u)||e.isFunctionLike(d):e.every(u.properties,(function(n){return!!(e.isMethodDeclaration(n)||e.isGetOrSetAccessorDeclaration(n)||e.isPropertyAssignment(n)&&e.isFunctionExpression(n.initializer)&&n.name||o(n))}))))return l;var _=f.parent&&236===f.parent.kind?f.parent:f;if(n.delete(t,_),!m)return l.push(e.factory.createPropertyDeclaration([],i,r.name,void 0,void 0,void 0)),l;if(e.isAccessExpression(p)&&(e.isFunctionExpression(m)||e.isArrowFunction(m))){var g=e.getQuotePreference(t,s),y=function(n,t,r){if(e.isPropertyAccessExpression(n))return n.name;var i=n.argumentExpression;return e.isNumericLiteral(i)?i:e.isStringLiteralLike(i)?e.isIdentifierText(i.text,t.target)?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===r):i:void 0}(p,c,g);return y?v(l,m,y):l}if(e.isObjectLiteralExpression(m))return e.flatMap(m.properties,(function(n){return e.isMethodDeclaration(n)||e.isGetOrSetAccessorDeclaration(n)?l.concat(n):e.isPropertyAssignment(n)&&e.isFunctionExpression(n.initializer)?v(l,n.initializer,n.name):o(n)?l:[]}));if(e.isSourceFileJS(t))return l;if(!e.isPropertyAccessExpression(p))return l;var h=e.factory.createPropertyDeclaration(void 0,i,p.name,void 0,void 0,m);return e.copyLeadingComments(f.parent,h,t),l.push(h),l;function v(n,r,o){return e.isFunctionExpression(r)?function(n,r,o){var s=e.concatenate(i,a(r,130)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,r.parameters,void 0,r.body);return e.copyLeadingComments(f,c,t),n.concat(c)}(n,r,o):function(n,r,o){var s,c=r.body;s=233===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(i,a(r,130)),u=e.factory.createMethodDeclaration(void 0,l,void 0,o,void 0,void 0,r.parameters,void 0,s);return e.copyLeadingComments(f,u,t),n.concat(u)}(n,r,o)}}}}function a(n,t){return e.filter(n.modifiers,(function(e){return e.kind===t}))}function o(n){return!!n.name&&!(!e.isIdentifier(n.name)||"constructor"!==n.name.text)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span.start,r.program.getTypeChecker(),r.preferences,r.program.getCompilerOptions())}));return[n.createCodeFixAction(t,a,e.Diagnostics.Convert_function_to_an_ES2015_class,t,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return i(n,t.file,t.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t,r="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(n,t,r,i){var a,o=e.getTokenAtPosition(t,r);if(a=e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)?o.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(t,r)),e.canBeConvertedToAsync)){var s=new e.Map,d=e.isInJSFile(a),f=function(n,t){if(!n.body)return new e.Set;var r=new e.Set;return e.forEachChild(n.body,(function n(i){c(i,t,"then")?(r.add(e.getNodeId(i)),e.forEach(i.arguments,n)):c(i,t,"catch")?(r.add(e.getNodeId(i)),e.forEachChild(i,n)):l(i,t)?r.add(e.getNodeId(i)):e.forEachChild(i,n)})),r}(a,i),m=function(n,t,r){var i=new e.Map,a=e.createMultiMap();return e.forEachChild(n,(function n(o){if(e.isIdentifier(o)){var s=t.getSymbolAtLocation(o);if(s){var c=y(t.getTypeAtLocation(o),t),l=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||r.has(l)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var d=o.text,p=a.get(d);if(p&&p.some((function(e){return e!==s}))){var f=u(o,a);i.set(l,f.identifier),r.set(l,f),a.add(d,s)}else{var m=e.getSynthesizedDeepClone(o);r.set(l,T(m)),a.add(d,s)}}}else{var _=e.firstOrUndefined(c.parameters),g=(null==_?void 0:_.valueDeclaration)&&e.isParameter(_.valueDeclaration)&&e.tryCast(_.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),h=u(g,a);r.set(l,h),a.add(g.text,s)}}}else e.forEachChild(o,n)})),e.getSynthesizedDeepCloneWithReplacements(n,!0,(function(n){if(e.isBindingElement(n)&&e.isIdentifier(n.name)&&e.isObjectBindingPattern(n.parent)){if((a=(r=t.getSymbolAtLocation(n.name))&&i.get(String(e.getSymbolId(r))))&&a.text!==(n.name||n.propertyName).getText())return e.factory.createBindingElement(n.dotDotDotToken,n.propertyName||n.name,a,n.initializer)}else if(e.isIdentifier(n)){var r,a;if(a=(r=t.getSymbolAtLocation(n))&&i.get(String(e.getSymbolId(r))))return e.factory.createIdentifier(a.text)}}))}(a,i,s);if(e.returnsPromise(m,i)){var _=m.body&&e.isBlock(m.body)?function(n,t){var r=[];return e.forEachReturnStatement(n,(function(n){e.isReturnStatementWithFixablePromiseHandler(n,t)&&r.push(n)})),r}(m.body,i):e.emptyArray,g={checker:i,synthNamesMap:s,setOfExpressionsToReturn:f,isInJSFile:d};if(_.length){var h=a.modifiers?a.modifiers.end:a.decorators?e.skipTrivia(t.text,a.decorators.end):a.getStart(t),v=a.modifiers?{prefix:" "}:{suffix:" "};n.insertModifierAt(t,h,130,v);for(var b=function(r){e.forEachChild(r,(function i(a){if(e.isCallExpression(a)){var o=p(a,g);n.replaceNodeWithNodes(t,r,o)}else e.isFunctionLike(a)||e.forEachChild(a,i)}))},E=0,S=_;E<S.length;E++)b(S[E])}}}}function c(n,t,r){if(!e.isCallExpression(n))return!1;var i=e.hasPropertyAccessExpressionWithName(n,r)&&t.getTypeAtLocation(n);return!(!i||!t.getPromisedTypeOfPromise(i))}function l(n,t){return!!e.isExpression(n)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(n))}function u(n,t){var r=(t.get(n.text)||e.emptyArray).length;return T(0===r?n:e.factory.createIdentifier(n.text+"_"+r))}function d(){return o=!1,e.emptyArray}function p(n,t,r){if(c(n,t.checker,"then"))return 0===n.arguments.length?d():function(n,t,r){var i=n.arguments,a=i[0],o=i[1],s=v(a,t),c=_(a,r,s,n,t);if(o){var l=v(o,t),u=e.factory.createBlock(p(n.expression,t,s).concat(c)),d=_(o,r,l,n,t),f=l?S(l)?l.identifier.text:l.bindingPattern:"e",m=e.factory.createVariableDeclaration(f),g=e.factory.createCatchClause(m,e.factory.createBlock(d));return[e.factory.createTryStatement(u,g,void 0)]}return p(n.expression,t,s).concat(c)}(n,t,r);if(c(n,t.checker,"catch"))return function(n,t,r){var i,a=e.singleOrUndefined(n.arguments),o=a?v(a,t):void 0;r&&!x(n,t)&&(S(r)?(i=r,t.synthNamesMap.forEach((function(n,i){if(n.identifier.text===r.identifier.text){var a=function(n){return T(e.factory.createUniqueName(n.identifier.text,16))}(r);t.synthNamesMap.set(i,a)}}))):i=T(e.factory.createUniqueName("result",16),r.types),i.hasBeenDeclared=!0);var s,c,l=e.factory.createBlock(p(n.expression,t,i)),u=a?_(a,i,o,n,t):e.emptyArray,d=o?S(o)?o.identifier.text:o.bindingPattern:"e",f=e.factory.createVariableDeclaration(d),m=e.factory.createCatchClause(f,e.factory.createBlock(u));if(i&&!x(n,t)){c=e.getSynthesizedDeepClone(i.identifier);var g=i.types,y=t.checker.getUnionType(g,2),h=t.isInJSFile?void 0:t.checker.typeToTypeNode(y,void 0,void 0),b=[e.factory.createVariableDeclaration(c,void 0,h)];s=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(b,1))}var E=e.factory.createTryStatement(l,m,void 0),L=r&&c&&1===r.kind&&e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(r.bindingPattern),void 0,void 0,c)],2));return e.compact([s,E,L])}(n,t,r);if(e.isPropertyAccessExpression(n))return p(n.expression,t,r);var i=t.checker.getTypeAtLocation(n);return i&&t.checker.getPromisedTypeOfPromise(i)?(e.Debug.assertNode(n.original.parent,e.isPropertyAccessExpression),function(n,t,r){return x(n,t)?[e.factory.createReturnStatement(e.getSynthesizedDeepClone(n))]:f(r,e.factory.createAwaitExpression(n),void 0)}(n,t,r)):d()}function f(n,t,r){return!n||b(n)?[e.factory.createExpressionStatement(t)]:S(n)&&n.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(n.identifier),t))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(E(n)),void 0,r,t)],2))]}function m(n,t){if(t&&n){var r=e.factory.createUniqueName("result",16);return i(i([],f(T(r),n,t),!0),[e.factory.createReturnStatement(r)],!1)}return[e.factory.createReturnStatement(n)]}function _(n,t,r,i,a){var o,s,c,u,p;switch(n.kind){case 104:break;case 204:case 79:if(!r)break;var _=e.factory.createCallExpression(e.getSynthesizedDeepClone(n),void 0,S(r)?[r.identifier]:[]);if(x(i,a))return m(_,null===(o=i.typeArguments)||void 0===o?void 0:o[0]);var v=a.checker.getTypeAtLocation(n),b=a.checker.getSignaturesOfType(v,0);if(!b.length)return d();var T=b[0].getReturnType(),L=f(t,e.factory.createAwaitExpression(_),null===(s=i.typeArguments)||void 0===s?void 0:s[0]);return t&&t.types.push(T),L;case 211:case 212:var D=n.body,A=null===(c=y(a.checker.getTypeAtLocation(n),a.checker))||void 0===c?void 0:c.getReturnType();if(e.isBlock(D)){for(var C=[],I=!1,N=0,k=D.statements;N<k.length;N++){var R=k[N];if(e.isReturnStatement(R))if(I=!0,e.isReturnStatementWithFixablePromiseHandler(R,a.checker))C=C.concat(h(a,[R],t));else{var O=A&&R.expression?g(a.checker,A,R.expression):R.expression;C.push.apply(C,m(O,null===(u=i.typeArguments)||void 0===u?void 0:u[0]))}else C.push(R)}return x(i,a)?C.map((function(n){return e.getSynthesizedDeepClone(n)})):function(n,t,r,i){for(var a=[],o=0,s=n;o<s.length;o++){var c=s[o];if(e.isReturnStatement(c)){if(c.expression){var u=l(c.expression,r.checker)?e.factory.createAwaitExpression(c.expression):c.expression;void 0===t?a.push(e.factory.createExpressionStatement(u)):a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(E(t),void 0,void 0,u)],2)))}}else a.push(e.getSynthesizedDeepClone(c))}return i||void 0===t||a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(E(t),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),a}(C,t,a,I)}var P=h(a,e.isFixablePromiseHandler(D,a.checker)?[e.factory.createReturnStatement(D)]:e.emptyArray,t);if(P.length>0)return P;if(A){if(O=g(a.checker,A,D),x(i,a))return m(O,null===(p=i.typeArguments)||void 0===p?void 0:p[0]);var w=f(t,O,void 0);return t&&t.types.push(A),w}return d();default:return d()}return e.emptyArray}function g(n,t,r){var i=e.getSynthesizedDeepClone(r);return n.getPromisedTypeOfPromise(t)?e.factory.createAwaitExpression(i):i}function y(n,t){var r=t.getSignaturesOfType(n,0);return e.lastOrUndefined(r)}function h(n,t,r){for(var i=[],a=0,o=t;a<o.length;a++){var s=o[a];e.forEachChild(s,(function t(a){if(e.isCallExpression(a)){var o=p(a,n,r);if((i=i.concat(o)).length>0)return}else e.isFunctionLike(a)||e.forEachChild(a,t)}))}return i}function v(n,t){var r,i=[];if(e.isFunctionLikeDeclaration(n)?n.parameters.length>0&&(r=function n(t){return e.isIdentifier(t)?a(t):function(n,t,r){return void 0===t&&(t=e.emptyArray),void 0===r&&(r=[]),{kind:1,bindingPattern:n,elements:t,types:r}}(t,e.flatMap(t.elements,(function(t){return e.isOmittedExpression(t)?[]:[n(t.name)]})))}(n.parameters[0].name)):e.isIdentifier(n)?r=a(n):e.isPropertyAccessExpression(n)&&e.isIdentifier(n.name)&&(r=a(n.name)),r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function a(n){var r,a=function(e){return e.symbol?e.symbol:t.checker.getSymbolAtLocation(e)}((r=n).original?r.original:r);return a&&t.synthNamesMap.get(e.getSymbolId(a).toString())||T(n,i)}}function b(n){return!n||(S(n)?!n.identifier.text:e.every(n.elements,b))}function E(e){return S(e)?e.identifier:e.bindingPattern}function T(e,n){return void 0===n&&(n=[]),{kind:0,identifier:e,types:n,hasBeenDeclared:!1}}function S(e){return 0===e.kind}function x(n,t){return!!n.original&&t.setOfExpressionsToReturn.has(e.getNodeId(n.original))}n.registerCodeFix({errorCodes:a,getCodeActions:function(t){o=!0;var i=e.textChanges.ChangeTracker.with(t,(function(e){return s(e,t.sourceFile,t.span.start,t.program.getTypeChecker())}));return o?[n.createCodeFixAction(r,i,e.Diagnostics.Convert_to_async_function,r,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[r],getAllCodeActions:function(e){return n.codeFixAll(e,a,(function(n,t){return s(n,t.file,t.start,e.program.getTypeChecker())}))}}),function(e){e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"}(t||(t={}))}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){function t(n,t,r,i){for(var a=0,o=n.imports;a<o.length;a++){var s=o[a],c=e.getResolvedModule(n,s.text);if(c&&c.resolvedFileName===t.fileName){var l=e.importFromModuleSpecifier(s);switch(l.kind){case 263:r.replaceNode(n,l,e.makeImport(l.name,void 0,s,i));break;case 206:e.isRequireCall(l,!1)&&r.replaceNode(n,l,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(l),"default"))}}}}function r(n,t){n.forEachChild((function r(i){if(e.isPropertyAccessExpression(i)&&e.isExportsOrModuleExportsOrAlias(n,i.expression)&&e.isIdentifier(i.name)){var a=i.parent;t(i,e.isBinaryExpression(a)&&a.left===i&&63===a.operatorToken.kind)}i.forEachChild(r)}))}function i(n,t,r,i,l,u,d,f,m){switch(t.kind){case 235:return a(n,t,i,r,l,u,m),!1;case 236:var y=t.expression;switch(y.kind){case 206:return e.isRequireCall(y,!0)&&i.replaceNode(n,t,e.makeImport(void 0,void 0,y.arguments[0],m)),!1;case 219:return 63===y.operatorToken.kind&&function(n,t,r,i,a,l){var u=r.left,d=r.right;if(!e.isPropertyAccessExpression(u))return!1;if(e.isExportsOrModuleExportsOrAlias(n,u)){if(!e.isExportsOrModuleExportsOrAlias(n,d)){var f=e.isObjectLiteralExpression(d)?function(n,t){var r=e.mapAllOrFail(n.properties,(function(n){switch(n.kind){case 170:case 171:case 292:case 293:return;case 291:return e.isIdentifier(n.name)?function(n,t,r){var i=[e.factory.createToken(93)];switch(t.kind){case 211:var a=t.name;if(a&&a.text!==n)return o();case 212:return p(n,i,t,r);case 224:return function(n,t,r,i){return e.factory.createClassDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(t,e.getSynthesizedDeepClones(r.modifiers)),n,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.heritageClauses),c(r.members,i))}(n,i,t,r);default:return o()}function o(){return _(i,e.factory.createIdentifier(n),c(t,r))}}(n.name.text,n.initializer,t):void 0;case 167:return e.isIdentifier(n.name)?p(n.name.text,[e.factory.createToken(93)],n,t):void 0;default:e.Debug.assertNever(n,"Convert to ES6 got invalid prop kind "+n.kind)}}));return r&&[r,!1]}(d,l):e.isRequireCall(d,!0)?function(n,t){var r=n.text,i=t.getSymbolAtLocation(n),a=i?i.exports:e.emptyMap;return a.has("export=")?[[s(r)],!0]:a.has("default")?a.size>1?[[o(r),s(r)],!0]:[[s(r)],!0]:[[o(r)],!1]}(d.arguments[0],t):void 0;return f?(i.replaceNodeWithNodes(n,r.parent,f[0]),f[1]):(i.replaceRangeWithText(n,e.createRange(u.getStart(n),d.pos),"export default"),!0)}i.delete(n,r.parent)}else e.isExportsOrModuleExportsOrAlias(n,u.expression)&&function(n,t,r,i){var a=t.left.name.text,o=i.get(a);if(void 0!==o){var s=[_(void 0,o,t.right),g([e.factory.createExportSpecifier(o,a)])];r.replaceNodeWithNodes(n,t.parent,s)}else!function(n,t,r){var i=n.left,a=n.right,o=n.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)r.replaceNodeRangeWithNodes(t,i.expression,e.findChildOfKind(i,24,t),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "});else{r.replaceRange(t,{pos:i.getStart(t),end:a.getStart(t)},e.factory.createToken(93),{suffix:" "}),a.name||r.insertName(t,a,s);var c=e.findChildOfKind(o,26,t);c&&r.delete(t,c)}}(t,n,r)}(n,r,i,a);return!1}(n,r,y,i,d,f)}default:return!1}}function a(t,r,i,a,o,s,c){var u,d=r.declarationList,p=!1,g=e.map(d.declarations,(function(r){var i=r.name,u=r.initializer;if(u){if(e.isExportsOrModuleExportsOrAlias(t,u))return p=!0,y([]);if(e.isRequireCall(u,!0))return p=!0,function(t,r,i,a,o,s){switch(t.kind){case 199:var c=e.mapAllOrFail(t.elements,(function(n){return n.dotDotDotToken||n.initializer||n.propertyName&&!e.isIdentifier(n.propertyName)||!e.isIdentifier(n.name)?void 0:m(n.propertyName&&n.propertyName.text,n.name.text)}));if(c)return y([e.makeImport(void 0,c,r,s)]);case 200:var u=l(n.moduleSpecifierToValidIdentifier(r.text,o),a);return y([e.makeImport(e.factory.createIdentifier(u),void 0,r,s),_(void 0,e.getSynthesizedDeepClone(t),e.factory.createIdentifier(u))]);case 79:return function(n,t,r,i,a){for(var o,s=r.getSymbolAtLocation(n),c=new e.Map,u=!1,d=0,p=i.original.get(n.text);d<p.length;d++){var f=p[d];if(r.getSymbolAtLocation(f)===s&&f!==n){var m=f.parent;if(e.isPropertyAccessExpression(m)){var _=m.name.text;if("default"===_){u=!0;var g=f.getText();(null!=o?o:o=new e.Map).set(m,e.factory.createIdentifier(g))}else{e.Debug.assert(m.expression===f,"Didn't expect expression === use");var h=c.get(_);void 0===h&&(h=l(_,i),c.set(_,h)),(null!=o?o:o=new e.Map).set(m,e.factory.createIdentifier(h))}}else u=!0}}var v=0===c.size?void 0:e.arrayFrom(e.mapIterator(c.entries(),(function(n){var t=n[0],r=n[1];return e.factory.createImportSpecifier(t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))})));return v||(u=!0),y([e.makeImport(u?e.getSynthesizedDeepClone(n):void 0,v,t,a)],o)}(t,r,i,a,s);default:return e.Debug.assertNever(t,"Convert to ES6 module got invalid name kind "+t.kind)}}(i,u.arguments[0],a,o,s,c);if(e.isPropertyAccessExpression(u)&&e.isRequireCall(u.expression,!0))return p=!0,function(n,t,r,i,a){switch(n.kind){case 199:case 200:var o=l(t,i);return y([f(o,t,r,a),_(void 0,n,e.factory.createIdentifier(o))]);case 79:return y([f(n.text,t,r,a)]);default:return e.Debug.assertNever(n,"Convert to ES6 module got invalid syntax form "+n.kind)}}(i,u.name.text,u.expression.arguments[0],o,c)}return y([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([r],d.flags))])}));if(p)return i.replaceNodeWithNodes(t,r,e.flatMap(g,(function(e){return e.newImports}))),e.forEach(g,(function(n){n.useSitesToUnqualify&&e.copyEntries(n.useSitesToUnqualify,null!=u?u:u=new e.Map)})),u}function o(e){return g(void 0,e)}function s(n){return g([e.factory.createExportSpecifier(void 0,"default")],n)}function c(n,t){return t&&e.some(e.arrayFrom(t.keys()),(function(t){return e.rangeContainsRange(n,t)}))?e.isArray(n)?e.getSynthesizedDeepClonesWithReplacements(n,!0,r):e.getSynthesizedDeepCloneWithReplacements(n,!0,r):n;function r(e){if(204===e.kind){var n=t.get(e);return t.delete(e),n}}}function l(e,n){for(;n.original.has(e)||n.additional.has(e);)e="_"+e;return n.additional.add(e),e}function u(n){var t=e.createMultiMap();return d(n,(function(e){return t.add(e.text,e)})),t}function d(n,t){e.isIdentifier(n)&&function(e){var n=e.parent;switch(n.kind){case 204:return n.name!==e;case 201:case 268:return n.propertyName!==e;default:return!0}}(n)&&t(n),n.forEachChild((function(e){return d(e,t)}))}function p(n,t,r,i){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(t,e.getSynthesizedDeepClones(r.modifiers)),e.getSynthesizedDeepClone(r.asteriskToken),n,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.parameters),e.getSynthesizedDeepClone(r.type),e.factory.converters.convertToFunctionBlock(c(r.body,i)))}function f(n,t,r,i){return"default"===t?e.makeImport(e.factory.createIdentifier(n),void 0,r,i):e.makeImport(void 0,[m(t,n)],r,i)}function m(n,t){return e.factory.createImportSpecifier(void 0!==n&&n!==t?e.factory.createIdentifier(n):void 0,e.factory.createIdentifier(t))}function _(n,t,r){return e.factory.createVariableStatement(n,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(t,void 0,void 0,r)],2))}function g(n,t){return e.factory.createExportDeclaration(void 0,void 0,!1,n&&e.factory.createNamedExports(n),void 0===t?void 0:e.factory.createStringLiteral(t))}function y(e,n){return{newImports:e,useSitesToUnqualify:n}}n.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(o){var s=o.sourceFile,c=o.program,d=o.preferences,p=e.textChanges.ChangeTracker.with(o,(function(n){var o=function(n,t,o,s,c){var d={original:u(n),additional:new e.Set},p=function(n,t,i){var a=new e.Map;return r(n,(function(n){var r=n.name,o=r.text,s=r.originalKeywordKind;!a.has(o)&&(void 0!==s&&e.isNonContextualKeyword(s)||t.resolveName(o,n,111551,!0))&&a.set(o,l("_"+o,i))})),a}(n,t,d);!function(n,t,i){r(n,(function(r,a){if(!a){var o=r.name.text;i.replaceNode(n,r,e.factory.createIdentifier(t.get(o)||o))}}))}(n,p,o);for(var f,m=!1,_=0,g=e.filter(n.statements,e.isVariableStatement);_<g.length;_++){var y=g[_],h=a(n,y,o,t,d,s,c);h&&e.copyEntries(h,null!=f?f:f=new e.Map)}for(var v=0,b=e.filter(n.statements,(function(n){return!e.isVariableStatement(n)}));v<b.length;v++){y=b[v];var E=i(n,y,t,o,d,s,p,f,c);m=m||E}return null==f||f.forEach((function(e,t){o.replaceNode(n,t,e)})),m}(s,c.getTypeChecker(),n,c.getCompilerOptions().target,e.getQuotePreference(s,d));if(o)for(var p=0,f=c.getSourceFiles();p<f.length;p++){var m=f[p];t(m,s,n,e.getQuotePreference(m,d))}}));return[n.createCodeFixActionWithoutFixAll("convertToEs6Module",p,e.Diagnostics.Convert_to_ES6_module)]}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="correctQualifiedNameToIndexedAccessType",r=[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];function i(n,t){var r=e.findAncestor(e.getTokenAtPosition(n,t),e.isQualifiedName);return e.Debug.assert(!!r,"Expected position to be owned by a qualified name."),e.isIdentifier(r.left)?r:void 0}function a(n,t,r){var i=r.right.text,a=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(r.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(i)));n.replaceNode(t,r,a)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=i(r.sourceFile,r.span.start);if(o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,o)})),c=o.left.text+'["'+o.right.text+'"]';return[n.createCodeFixAction(t,s,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,c],t,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=i(n.file,n.start);t&&a(e,n.file,t)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],r="convertToTypeOnlyExport";function i(n,t){return e.tryCast(e.getTokenAtPosition(t,n.start).parent,e.isExportSpecifier)}function a(n,r,i){if(r){var a=r.parent,o=a.parent,s=function(n,r){var i=n.parent;if(1===i.elements.length)return i.elements;var a=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(i),r.program.getSemanticDiagnostics(r.sourceFile,r.cancellationToken));return e.filter(i.elements,(function(r){var i;return r===n||(null===(i=e.findDiagnosticForNode(r,a))||void 0===i?void 0:i.code)===t[0]}))}(r,i);if(s.length===a.elements.length)n.insertModifierBefore(i.sourceFile,150,a);else{var c=e.factory.updateExportDeclaration(o,o.decorators,o.modifiers,!1,e.factory.updateNamedExports(a,e.filter(a.elements,(function(n){return!e.contains(s,n)}))),o.moduleSpecifier),l=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(s),o.moduleSpecifier);n.replaceNode(i.sourceFile,o,c,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),n.insertNodeAfter(i.sourceFile,o,l)}}}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var o=e.textChanges.ChangeTracker.with(t,(function(e){return a(e,i(t.span,t.sourceFile),t)}));if(o.length)return[n.createCodeFixAction(r,o,e.Diagnostics.Convert_to_type_only_export,r,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[r],getAllCodeActions:function(r){var o=new e.Map;return n.codeFixAll(r,t,(function(n,t){var s=i(t,r.sourceFile);s&&e.addToSeen(o,e.getNodeId(s.parent.parent))&&a(n,s,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],r="convertToTypeOnlyImport";function i(n,t){return e.tryCast(e.getTokenAtPosition(t,n.start).parent,e.isImportDeclaration)}function a(n,t,r){if(null==t?void 0:t.importClause){var i=t.importClause;n.insertText(r.sourceFile,t.getStart()+6," type"),i.name&&i.namedBindings&&(n.deleteNodeRangeExcludingEnd(r.sourceFile,i.name,t.importClause.namedBindings),n.insertNodeBefore(r.sourceFile,t,e.factory.updateImportDeclaration(t,void 0,void 0,e.factory.createImportClause(!0,i.name,void 0),t.moduleSpecifier)))}}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var o=e.textChanges.ChangeTracker.with(t,(function(e){a(e,i(t.span,t.sourceFile),t)}));if(o.length)return[n.createCodeFixAction(r,o,e.Diagnostics.Convert_to_type_only_import,r,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[r],getAllCodeActions:function(e){return n.codeFixAll(e,t,(function(n,t){a(n,i(t,e.sourceFile),e)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="convertLiteralTypeToMappedType",r=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function i(n,t){var r=e.getTokenAtPosition(n,t);if(e.isIdentifier(r)){var i=e.cast(r.parent.parent,e.isPropertySignature),a=r.getText(n);return{container:e.cast(i.parent,e.isTypeLiteralNode),typeNode:i.type,constraint:a,name:"K"===a?"P":"K"}}}function a(n,t,r){var i=r.container,a=r.typeNode,o=r.constraint,s=r.name;n.replaceNode(t,i,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(s,e.factory.createTypeReferenceNode(o)),void 0,void 0,a))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=i(o,s.start);if(c){var l=c.name,u=c.constraint,d=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,c)}));return[n.createCodeFixAction(t,d,[e.Diagnostics.Convert_0_to_1_in_0,u,l],t,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=i(n.file,n.start);t&&a(e,n.file,t)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=[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],r="fixClassIncorrectlyImplementsInterface";function i(n,t){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(n,t)),"There should be a containing class")}function a(n){return!(n.valueDeclaration&&8&e.getEffectiveModifierFlags(n.valueDeclaration))}function o(t,r,i,o,s,c){var l=t.program.getTypeChecker(),u=function(n,t){var r=e.getEffectiveBaseTypeNode(n);if(!r)return e.createSymbolTable();var i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return e.createSymbolTable(o.filter(a))}(o,l),d=l.getTypeAtLocation(r),p=l.getPropertiesOfType(d).filter(e.and(a,(function(e){return!u.has(e.escapedName)}))),f=l.getTypeAtLocation(o),m=e.find(o.members,(function(n){return e.isConstructorDeclaration(n)}));f.getNumberIndexType()||g(d,1),f.getStringIndexType()||g(d,0);var _=n.createImportAdder(i,t.program,c,t.host);function g(e,r){var a=l.getIndexInfoOfType(e,r);a&&y(i,o,l.indexInfoToIndexSignatureDeclaration(a,o,void 0,n.getNoopSymbolTrackerWithResolver(t)))}function y(e,n,t){m?s.insertNodeAfter(e,m,t):s.insertNodeAtClassStart(e,n,t)}n.createMissingMemberNodes(o,p,i,t,c,_,(function(e){return y(i,o,e)})),_.writeFixes(s)}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var a=t.sourceFile,s=t.span,c=i(a,s.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(c),(function(i){var s=e.textChanges.ChangeTracker.with(t,(function(e){return o(t,i,a,c,e,t.preferences)}));return 0===s.length?void 0:n.createCodeFixAction(r,s,[e.Diagnostics.Implement_interface_0,i.getText(a)],r,e.Diagnostics.Implement_all_unimplemented_interfaces)}))},fixIds:[r],getAllCodeActions:function(r){var a=new e.Map;return n.codeFixAll(r,t,(function(n,t){var s=i(t.file,t.start);if(e.addToSeen(a,e.getNodeId(s)))for(var c=0,l=e.getEffectiveImplementsTypeNodes(s);c<l.length;c++){var u=l[c];o(r,u,t.file,s,n,r.preferences)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){n.importFixName="import";var t,r="fixMissingImport",o=[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];function s(n,t,r,i,a){var o=t.getCompilerOptions(),s=[],u=[],p=new e.Map,m=new e.Map;return{addImportFromDiagnostic:function(e,n){var t=_(n,e.code,e.start,r);t&&t.fixes.length&&g(t)},addImportFromExportedSymbol:function(s,c){var u=e.Debug.checkDefined(s.parent),p=e.getNameForExportedSymbol(s,e.getEmitScriptTarget(o)),m=t.getTypeChecker(),_=m.getMergedSymbol(e.skipAlias(s,m)),y=d(n,_,u,p,a,t,i,r),h=!!c&&2===o.importsNotUsedAsValues,v=f(n,t),b=l(n,y,u,p,t,void 0,h,v,a,i);b&&g({fixes:[b],symbolName:p})},writeFixes:function(t){for(var r,a=e.getQuotePreference(n,i),o=0,l=s;o<l.length;o++){var d=l[o];E(t,n,d)}for(var f=0,_=u;f<_.length;f++)d=_[f],T(t,n,d,a);p.forEach((function(e){var r=e.importClauseOrBindingPattern,i=e.defaultImport,a=e.namedImports,o=e.canUseTypeOnlyImport;b(t,n,r,i,a,o)})),m.forEach((function(n,t){var i=n.useRequire,o=c(n,["useRequire"]),s=i?L:x;r=e.combine(r,s(t,a,o))})),r&&e.insertImports(t,n,r,!0)}};function g(n){var t=n.fixes,r=n.symbolName,i=e.first(t);switch(i.kind){case 0:s.push(i);break;case 1:u.push(i);break;case 2:var a=i.importClauseOrBindingPattern,o=i.importKind,c=i.canUseTypeOnlyImport,l=String(e.getNodeId(a));(d=p.get(l))||p.set(l,d={importClauseOrBindingPattern:a,defaultImport:void 0,namedImports:[],canUseTypeOnlyImport:c}),0===o?e.pushIfUnique(d.namedImports,r):(e.Debug.assert(void 0===d.defaultImport||d.defaultImport===r,"(Add to Existing) Default import should be missing or match symbolName"),d.defaultImport=r);break;case 3:var d,f=i.moduleSpecifier,_=(o=i.importKind,i.useRequire),g=i.typeOnly;switch((d=m.get(f))?d.typeOnly=d.typeOnly&&g:m.set(f,d={namedImports:[],namespaceLikeImport:void 0,typeOnly:g,useRequire:_}),o){case 1:e.Debug.assert(void 0===d.defaultImport||d.defaultImport===r,"(Add new) Default import should be missing or match symbolName"),d.defaultImport=r;break;case 0:e.pushIfUnique(d.namedImports||(d.namedImports=[]),r);break;case 3:case 2:e.Debug.assert(void 0===d.namespaceLikeImport||d.namespaceLikeImport.name===r,"Namespacelike import shoudl be missing or match symbolName"),d.namespaceLikeImport={importKind:o,name:r}}break;default:e.Debug.assertNever(i,"fix wasn't never - got kind "+i.kind)}}}function l(n,t,r,i,a,o,s,c,l,u){return e.Debug.assert(t.some((function(e){return e.moduleSymbol===r||e.symbol.parent===r})),"Some exportInfo should match the specified moduleSymbol"),g(p(t,i,o,s,c,a,n,l,u),n,a,l,u)}function u(n,t,r,i){var a,o,s=r.getCompilerOptions(),c=u(r.getTypeChecker(),!1);if(c)return c;var l=null===(o=null===(a=i.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(i))||void 0===o?void 0:o.getTypeChecker();return e.Debug.checkDefined(l&&u(l,!0),"Could not find symbol in specified module for code actions");function u(r,i){var a=e.getDefaultLikeExportInfo(t,r,s);if(a&&e.skipAlias(a.symbol,r)===n)return{symbol:a.symbol,moduleSymbol:t,moduleFileName:void 0,exportKind:a.exportKind,targetFlags:e.skipAlias(n,r).flags,isFromPackageJson:i};var o=r.tryGetMemberInModuleExportsAndProperties(n.name,t);return o&&e.skipAlias(o,r)===n?{symbol:o,moduleSymbol:t,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(n,r).flags,isFromPackageJson:i}:void 0}}function d(n,t,r,i,a,o,s,c){var l=[],u=o.getCompilerOptions(),d=e.memoizeOne((function(n){return e.createModuleSpecifierResolutionHost(n?a.getPackageJsonAutoImportProvider():o,a)}));return e.forEachExternalModuleToImportFrom(o,a,c,(function(a,o,s,c){var d=s.getTypeChecker();if(!o||a===r||!e.startsWith(n.fileName,e.getDirectoryPath(o.fileName))){var f=e.getDefaultLikeExportInfo(a,d,u);f&&(f.name===i||C(a,u.target)===i)&&e.skipAlias(f.symbol,d)===t&&p(s,o,c)&&l.push({symbol:f.symbol,moduleSymbol:a,moduleFileName:null==o?void 0:o.fileName,exportKind:f.exportKind,targetFlags:e.skipAlias(f.symbol,d).flags,isFromPackageJson:c});for(var m=0,_=d.getExportsAndPropertiesOfModule(a);m<_.length;m++){var g=_[m];g.name===i&&e.skipAlias(g,d)===t&&p(s,o,c)&&l.push({symbol:g,moduleSymbol:a,moduleFileName:null==o?void 0:o.fileName,exportKind:0,targetFlags:e.skipAlias(g,d).flags,isFromPackageJson:c})}}})),l;function p(t,r,i){var o;return!r||e.isImportableFile(t,n,r,s,void 0,d(i),null===(o=a.getModuleSpecifierCache)||void 0===o?void 0:o.call(a))}}function p(n,t,r,a,o,s,c,l,u){var d=s.getTypeChecker(),p=e.flatMap(n,(function(n){return function(n,t,r,i){var a=n.moduleSymbol,o=n.exportKind;if(!(111551&n.targetFlags)&&e.isSourceFileJS(r))return e.emptyArray;var s=h(r,o,i);return e.mapDefined(r.imports,(function(n){var r=e.importFromModuleSpecifier(n);return e.isRequireVariableDeclaration(r.parent)?t.resolveExternalModuleName(n)===a?{declaration:r.parent,importKind:s}:void 0:264!==r.kind&&263!==r.kind||t.getSymbolAtLocation(n)!==a?void 0:{declaration:r,importKind:s}}))}(n,d,c,s.getCompilerOptions())})),f=void 0===r?void 0:function(n,t,r,i){return e.firstDefined(n,(function(n){var a=n.declaration,o=function(n){var t,r,i;switch(n.kind){case 252:return null===(t=e.tryCast(n.name,e.isIdentifier))||void 0===t?void 0:t.text;case 263:return n.name.text;case 264:return null===(i=e.tryCast(null===(r=n.importClause)||void 0===r?void 0:r.namedBindings,e.isNamespaceImport))||void 0===i?void 0:i.name.text;default:return e.Debug.assertNever(n)}}(a),s=e.tryGetModuleSpecifierFromDeclaration(a);if(o&&s){var c=function(n,t){var r;switch(n.kind){case 252:return t.resolveExternalModuleName(n.initializer.arguments[0]);case 263:return t.getAliasedSymbol(n.symbol);case 264:var i=e.tryCast(null===(r=n.importClause)||void 0===r?void 0:r.namedBindings,e.isNamespaceImport);return i&&t.getAliasedSymbol(i.symbol);default:return e.Debug.assertNever(n)}}(a,i);if(c&&c.exports.has(e.escapeLeadingUnderscores(t)))return{kind:0,namespacePrefix:o,position:r,moduleSpecifier:s}}}))}(p,t,r,d),_=function(n,t){return e.firstDefined(n,(function(n){var r=n.declaration,i=n.importKind;if(263!==r.kind){if(252===r.kind)return 0!==i&&1!==i||199!==r.name.kind?void 0:{kind:2,importClauseOrBindingPattern:r.name,importKind:i,moduleSpecifier:r.initializer.arguments[0].text,canUseTypeOnlyImport:!1};var a=r.importClause;if(a&&e.isStringLiteralLike(r.moduleSpecifier)){var o=a.name,s=a.namedBindings;if(!a.isTypeOnly||0===i&&s)return 1===i&&!o||0===i&&(!s||267===s.kind)?{kind:2,importClauseOrBindingPattern:a,importKind:i,moduleSpecifier:r.moduleSpecifier.text,canUseTypeOnlyImport:t}:void 0}}}))}(p,void 0!==r&&function(n,t){return e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(n,t))}(c,r)),g=_?[_]:function(n,t,r,i,a,o,s,c,l){var u=e.firstDefined(t,(function(n){return function(n,t,r){var i=n.declaration,a=n.importKind,o=e.tryGetModuleSpecifierFromDeclaration(i);return o?{kind:3,moduleSpecifier:o,importKind:a,typeOnly:t,useRequire:r}:void 0}(n,o,s)}));return u?[u]:m(r,i,a,o,s,n,c,l).fixes}(n,p,s,c,r,a,o,l,u);return i(i([],f?[f]:e.emptyArray,!0),g,!0)}function f(n,t){if(!e.isSourceFileJS(n))return!1;if(n.commonJsModuleIndicator&&!n.externalModuleIndicator)return!0;if(n.externalModuleIndicator&&!n.commonJsModuleIndicator)return!1;var r=t.getCompilerOptions();if(r.configFile)return e.getEmitModuleKind(r)<e.ModuleKind.ES2015;for(var i=0,a=t.getSourceFiles();i<a.length;i++){var o=a[i];if(o!==n&&e.isSourceFileJS(o)&&!t.isSourceFileFromExternalLibrary(o)){if(o.commonJsModuleIndicator&&!o.externalModuleIndicator)return!0;if(o.externalModuleIndicator&&!o.commonJsModuleIndicator)return!1}}return!0}function m(n,t,r,i,a,o,s,c,l){var u=e.isSourceFileJS(t),d=n.getCompilerOptions(),p=e.createModuleSpecifierResolutionHost(n,s),f=n.getTypeChecker(),m=l?function(n){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(n,t,p,c),computedWithoutCache:!1}}:function(n){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(n,f,d,t,p,c)},_=0,g=e.flatMap(o,(function(e){var n=m(e.moduleSymbol),o=n.computedWithoutCache,s=n.moduleSpecifiers;return _+=o?1:0,null==s?void 0:s.map((function(n){return 111551&e.targetFlags||!u||void 0===r?{kind:3,moduleSpecifier:n,importKind:h(t,e.exportKind,d),useRequire:a,typeOnly:i,exportInfo:e}:{kind:1,moduleSpecifier:n,position:r,exportInfo:e}}))}));return{computedWithoutCacheCount:_,fixes:g}}function _(n,t,r,i){var o,s,c,l,u,d,m=e.getTokenAtPosition(n.sourceFile,r),_=t===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(n,t){var r=n.sourceFile,i=n.program,a=n.host,o=n.preferences,s=i.getTypeChecker(),c=function(n,t){var r=e.isIdentifier(n)?t.getSymbolAtLocation(n):void 0;if(e.isUMDExportSymbol(r))return r;var i=n.parent;return e.isJsxOpeningLikeElement(i)&&i.tagName===n||e.isJsxOpeningFragment(i)?e.tryCast(t.resolveName(t.getJsxNamespace(i),e.isJsxOpeningLikeElement(i)?n:i,111551,!1),e.isUMDExportSymbol):void 0}(t,s);if(c){var l=s.getAliasedSymbol(c),u=c.name,d=[{symbol:c,moduleSymbol:l,moduleFileName:void 0,exportKind:3,targetFlags:l.flags,isFromPackageJson:!1}],m=f(r,i);return{fixes:p(d,u,e.isIdentifier(t)?t.getStart(r):void 0,!1,m,i,r,a,o),symbolName:u}}}(n,m):e.isIdentifier(m)?function(n,t,r){var i=n.sourceFile,a=n.program,o=n.cancellationToken,s=n.host,c=n.preferences,l=a.getTypeChecker(),u=a.getCompilerOptions(),d=function(n,t,r,i){var a=r.parent;if((e.isJsxOpeningLikeElement(a)||e.isJsxClosingElement(a))&&a.tagName===r&&4!==i.jsx&&5!==i.jsx){var o=t.getJsxNamespace(n);if(e.isIntrinsicJsxName(r.text)||!t.resolveName(o,a,111551,!0))return o}return r.text}(i,l,t,u);e.Debug.assert("default"!==d,"'default' isn't a legal identifier and couldn't occur here");var m=2===u.importsNotUsedAsValues&&e.isValidTypeOnlyAliasUseSite(t),_=f(i,a),g=function(n,t,r,i,a,o,s,c){var l,u=e.createMultiMap(),d=e.createPackageJsonImportFilter(i,c,s),p=null===(l=s.getModuleSpecifierCache)||void 0===l?void 0:l.call(s),f=e.memoizeOne((function(n){return e.createModuleSpecifierResolutionHost(n?s.getPackageJsonAutoImportProvider():a,s)}));function m(n,t,r,a,o,s){var l=f(s);if(t&&e.isImportableFile(o,i,t,c,d,l,p)||!t&&d.allowsImportingAmbientModule(n,l)){var m=o.getTypeChecker();u.add(e.getUniqueSymbolId(r,m).toString(),{symbol:r,moduleSymbol:n,moduleFileName:null==t?void 0:t.fileName,exportKind:a,targetFlags:e.skipAlias(r,m).flags,isFromPackageJson:s})}}return e.forEachExternalModuleToImportFrom(a,s,o,(function(i,a,o,s){var c=o.getTypeChecker();r.throwIfCancellationRequested();var l=o.getCompilerOptions(),u=e.getDefaultLikeExportInfo(i,c,l);u&&(u.name===n||C(i,l.target)===n)&&A(u.symbolForMeaning,t)&&m(i,a,u.symbol,u.exportKind,o,s);var d=c.tryGetMemberInModuleExportsAndProperties(n,i);d&&A(d,t)&&m(i,a,d,0,o,s)})),u}(d,e.getMeaningFromLocation(t),o,i,a,r,s,c),y=e.arrayFrom(e.flatMapIterator(g.entries(),(function(e){return e[0],p(e[1],d,t.getStart(i),m,_,a,i,s,c)})));return{fixes:y,symbolName:d}}(n,m,i):void 0;return _&&a(a({},_),{fixes:(o=_.fixes,s=n.sourceFile,c=n.program,l=n.host,u=n.preferences,d=e.createPackageJsonImportFilter(s,u,l).allowsImportingSpecifier,e.sort(o,(function(n,t){return e.compareValues(n.kind,t.kind)||y(n,t,s,c,d)})))})}function g(n,t,r,i,a){if(e.some(n)){if(0===n[0].kind||2===n[0].kind)return n[0];var o=e.createPackageJsonImportFilter(t,a,i).allowsImportingSpecifier;return n.reduce((function(e,n){return-1===y(n,e,t,r,o)?n:e}))}}function y(n,t,r,i,a){return 0!==n.kind&&0!==t.kind?e.compareBooleans(a(n.moduleSpecifier),a(t.moduleSpecifier))||function(n,t,r,i){return e.startsWith(n,"node:")&&!e.startsWith(t,"node:")?e.shouldUseUriStyleNodeCoreModules(r,i)?-1:1:e.startsWith(t,"node:")&&!e.startsWith(n,"node:")?e.shouldUseUriStyleNodeCoreModules(r,i)?1:-1:0}(n.moduleSpecifier,t.moduleSpecifier,r,i)||e.compareNumberOfDirectorySeparators(n.moduleSpecifier,t.moduleSpecifier):0}function h(n,t,r,i){switch(t){case 0:return 0;case 1:return 1;case 2:return function(n,t,r){var i=e.getAllowSyntheticDefaultImports(t),a=e.isInJSFile(n);if(!a&&e.getEmitModuleKind(t)>=e.ModuleKind.ES2015)return i?1:2;if(a)return e.isExternalModule(n)||r?i?1:2:3;for(var o=0,s=n.statements;o<s.length;o++){var c=s[o];if(e.isImportEqualsDeclaration(c)&&!e.nodeIsMissing(c.moduleReference))return 3}return i?1:3}(n,r,!!i);case 3:return function(n,t,r){if(e.getAllowSyntheticDefaultImports(t))return 1;var i=e.getEmitModuleKind(t);switch(i){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(n)&&(e.isExternalModule(n)||r)?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(i,"Unexpected moduleKind "+i)}}(n,r,!!i);default:return e.Debug.assertNever(t)}}function v(t,i,a,o,s){var c,l=e.textChanges.ChangeTracker.with(t,(function(n){c=function(n,t,r,i,a){switch(i.kind){case 0:return E(n,t,i),[e.Diagnostics.Change_0_to_1,r,i.namespacePrefix+"."+r];case 1:return T(n,t,i,a),[e.Diagnostics.Change_0_to_1,r,S(i.moduleSpecifier,a)+r];case 2:var o=i.importClauseOrBindingPattern,s=i.importKind,c=i.canUseTypeOnlyImport,l=i.moduleSpecifier;b(n,t,o,1===s?r:void 0,0===s?[r]:e.emptyArray,c);var u=e.stripQuotes(l);return[1===s?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,r,u];case 3:s=i.importKind,l=i.moduleSpecifier;var d=i.typeOnly,p=i.useRequire?L:x,f=1===s?{defaultImport:r,typeOnly:d}:0===s?{namedImports:[r],typeOnly:d}:{namespaceLikeImport:{importKind:s,name:r},typeOnly:d};return e.insertImports(n,t,p(l,a,f),!0),[1===s?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,r,l];default:return e.Debug.assertNever(i,"Unexpected fix kind "+i.kind)}}(n,i,a,o,s)}));return n.createCodeFixAction(n.importFixName,l,c,r,e.Diagnostics.Add_all_missing_imports)}function b(n,t,r,i,a,o){if(199!==r.kind){var s=!o&&r.isTypeOnly;if(i&&(e.Debug.assert(!r.name,"Cannot add a default import to an import clause that already has one"),n.insertNodeAt(t,r.getStart(t),e.factory.createIdentifier(i),{suffix:", "})),a.length){var c=r.namedBindings&&e.cast(r.namedBindings,e.isNamedImports).elements,l=e.stableSort(a.map((function(n){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(n))})),e.OrganizeImports.compareImportOrExportSpecifiers);if((null==c?void 0:c.length)&&e.OrganizeImports.importSpecifiersAreSorted(c))for(var u=0,d=l;u<d.length;u++){var p=d[u],f=e.OrganizeImports.getImportSpecifierInsertionIndex(c,p),m=r.namedBindings.elements[f-1];m?n.insertNodeInListAfter(t,m,p):n.insertNodeBefore(t,c[0],p,!e.positionsAreOnSameLine(c[0].getStart(),r.parent.getStart(),t))}else if(null==c?void 0:c.length)for(var _=0,g=l;_<g.length;_++)p=g[_],n.insertNodeInListAfter(t,e.last(c),p,c);else if(l.length){var y=e.factory.createNamedImports(l);r.namedBindings?n.replaceNode(t,r.namedBindings,y):n.insertNodeAfter(t,e.Debug.checkDefined(r.name,"Import clause must have either named imports or a default import"),y)}}s&&n.delete(t,e.getTypeKeywordOfTypeOnlyImport(r,t))}else{i&&b(r,i,"default");for(var h=0,v=a;h<v.length;h++)b(r,v[h],void 0)}function b(r,i,a){var o=e.factory.createBindingElement(void 0,a,i);r.elements.length?n.insertNodeInListAfter(t,e.last(r.elements),o):n.replaceNode(t,r,e.factory.createObjectBindingPattern([o]))}}function E(e,n,t){var r=t.namespacePrefix,i=t.position;e.insertText(n,i,r+".")}function T(e,n,t,r){var i=t.moduleSpecifier,a=t.position;e.insertText(n,a,S(i,r))}function S(n,t){var r=e.getQuoteFromPreference(t);return"import("+r+n+r+")."}function x(n,t,r){var i,a,o,s=e.makeStringLiteral(n,t);(void 0!==r.defaultImport||(null===(i=r.namedImports)||void 0===i?void 0:i.length))&&(o=e.combine(o,e.makeImport(void 0===r.defaultImport?void 0:e.factory.createIdentifier(r.defaultImport),null===(a=r.namedImports)||void 0===a?void 0:a.map((function(n){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(n))})),n,t,r.typeOnly)));var c=r.namespaceLikeImport,l=r.typeOnly;if(c){var u=3===c.importKind?e.factory.createImportEqualsDeclaration(void 0,void 0,l,e.factory.createIdentifier(c.name),e.factory.createExternalModuleReference(s)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(l,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(c.name))),s);o=e.combine(o,u)}return e.Debug.checkDefined(o)}function L(n,t,r){var i,a,o,s=e.makeStringLiteral(n,t);if(r.defaultImport||(null===(i=r.namedImports)||void 0===i?void 0:i.length)){var c=(null===(a=r.namedImports)||void 0===a?void 0:a.map((function(n){return e.factory.createBindingElement(void 0,void 0,n)})))||[];r.defaultImport&&c.unshift(e.factory.createBindingElement(void 0,"default",r.defaultImport));var l=D(e.factory.createObjectBindingPattern(c),s);o=e.combine(o,l)}return r.namespaceLikeImport&&(l=D(r.namespaceLikeImport.name,s),o=e.combine(o,l)),e.Debug.checkDefined(o)}function D(n,t){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration("string"==typeof n?e.factory.createIdentifier(n):n,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[t]))],2))}function A(n,t){var r=n.declarations;return e.some(r,(function(n){return!!(e.getMeaningFromDeclaration(n)&t)}))}function C(n,t){return I(e.removeFileExtension(e.stripQuotes(n.name)),t)}function I(n,t){var r=e.getBaseFileName(e.removeSuffix(n,"/index")),i="",a=!0,o=r.charCodeAt(0);e.isIdentifierStart(o,t)?i+=String.fromCharCode(o):a=!1;for(var s=1;s<r.length;s++){var c=r.charCodeAt(s),l=e.isIdentifierPart(c,t);if(l){var u=String.fromCharCode(c);a||(u=u.toUpperCase()),i+=u}a=l}return e.isStringANonContextualKeyword(i)?"_"+i:i||"_"}n.registerCodeFix({errorCodes:o,getCodeActions:function(n){var t=n.errorCode,r=n.preferences,i=n.sourceFile,a=n.span,o=_(n,t,a.start,!0);if(o){var s=o.fixes,c=o.symbolName,l=e.getQuotePreference(i,r);return s.map((function(e){return v(n,i,c,e,l)}))}},fixIds:[r],getAllCodeActions:function(t){var r=s(t.sourceFile,t.program,!0,t.preferences,t.host);return n.eachDiagnostic(t,o,(function(e){return r.addImportFromDiagnostic(e,t)})),n.createCombinedCodeActions(e.textChanges.ChangeTracker.with(t,r.writeFixes))}}),n.createImportAdder=function(e,n,t,r){return s(e,n,!1,t,r)},function(e){e[e.UseNamespace=0]="UseNamespace",e[e.ImportType=1]="ImportType",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew"}(t||(t={})),n.getImportCompletionAction=function(n,t,r,i,a,o,s,c,p){var m,_,g,y,h=o.getCompilerOptions(),b=e.pathIsBareSpecifier(e.stripQuotes(t.name))?[u(n,t,o,a)]:d(r,n,t,i,a,o,p,!0),E=f(r,o),T=2===h.importsNotUsedAsValues&&!e.isSourceFileJS(r)&&e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(r,c)),S=e.Debug.checkDefined(l(r,b,t,i,o,c,T,E,a,p));return{moduleSpecifier:S.moduleSpecifier,codeAction:(m=v({host:a,formatContext:s,preferences:p},r,i,S,e.getQuotePreference(r,p)),_=m.description,g=m.changes,y=m.commands,{description:_,changes:g,commands:y})}},n.getModuleSpecifierForBestExportInfo=function(e,n,t,r,i,o){var s=m(t,n,void 0,!1,!1,e,r,i,o),c=s.fixes,l=s.computedWithoutCacheCount,u=g(c,n,t,r,i);return u&&a(a({},u),{computedWithoutCacheCount:l})},n.getImportKind=h,n.moduleSymbolToValidIdentifier=C,n.moduleSpecifierToValidIdentifier=I}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t,r="fixOverrideModifier",i="fixAddOverrideModifier",a="fixRemoveOverrideModifier",o=[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],s=((t={})[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,i,e.Diagnostics.Add_all_missing_override_modifiers],t[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,a,e.Diagnostics.Remove_all_unnecessary_override_modifiers],t[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,i,e.Diagnostics.Add_all_missing_override_modifiers],t[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,i,e.Diagnostics.Remove_all_unnecessary_override_modifiers],t[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,a,e.Diagnostics.Remove_all_unnecessary_override_modifiers],t);function c(n,t,r,i){switch(r){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 function(n,t,r){var i=u(t,r),a=i.modifiers||e.emptyArray,o=e.find(a,e.isStaticModifier),s=e.find(a,e.isAbstractModifier),c=e.find(a,(function(n){return e.isAccessibilityModifier(n.kind)})),l=s?s.end:o?o.end:c?c.end:i.decorators?e.skipTrivia(t.text,i.decorators.end):i.getStart(t),d=c||o||s?{prefix:" "}:{suffix:" "};n.insertModifierAt(t,l,157,d)}(n,t.sourceFile,i);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 function(n,t,r){var i=u(t,r),a=i.modifiers&&e.find(i.modifiers,(function(e){return 157===e.kind}));e.Debug.assertIsDefined(a),n.deleteModifier(t,a)}(n,t.sourceFile,i);default:e.Debug.fail("Unexpected error code: "+r)}}function l(n){switch(n.kind){case 169:case 165:case 167:case 170:case 171:return!0;case 162:return e.isParameterPropertyDeclaration(n,n.parent);default:return!1}}function u(n,t){var r=e.getTokenAtPosition(n,t),i=e.findAncestor(r,(function(n){return e.isClassLike(n)?"quit":l(n)}));return e.Debug.assert(i&&l(i)),i}n.registerCodeFix({errorCodes:o,getCodeActions:function(t){var i=t.errorCode,a=t.span,o=t.sourceFile,l=s[i];if(!l)return e.emptyArray;var u=l[0],d=l[1],p=l[2];if(e.isSourceFileJS(o))return e.emptyArray;var f=e.textChanges.ChangeTracker.with(t,(function(e){return c(e,t,i,a.start)}));return[n.createCodeFixActionMaybeFixAll(r,f,u,d,p)]},fixIds:[r,i,a],getAllCodeActions:function(t){return n.codeFixAll(t,o,(function(n,r){var i=r.code,a=r.start,o=r.file,l=s[i];l&&l[1]===t.fixId&&!e.isSourceFileJS(o)&&c(n,t,i,a)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixNoPropertyAccessFromIndexSignature",r=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function i(n,t,r,i){var a=e.getQuotePreference(t,i),o=e.factory.createStringLiteral(r.name.text,0===a);n.replaceNode(t,r,e.isPropertyAccessChain(r)?e.factory.createElementAccessChain(r.expression,r.questionDotToken,o):e.factory.createElementAccessExpression(r.expression,o))}function a(n,t){return e.cast(e.getTokenAtPosition(n,t).parent,e.isPropertyAccessExpression)}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=r.preferences,l=a(o,s.start),u=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,l,c)}));return[n.createCodeFixAction(t,u,[e.Diagnostics.Use_element_access_for_0,l.name.text],t,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return i(n,t.file,a(t.file,t.start),e.preferences)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixImplicitThis",r=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function i(n,t,r,i){var a=e.getTokenAtPosition(t,r);e.Debug.assert(108===a.kind);var o=e.getThisContainer(a,!1);if((e.isFunctionDeclaration(o)||e.isFunctionExpression(o))&&!e.isSourceFile(e.getThisContainer(o,!1))){var s=e.Debug.assertDefined(e.findChildOfKind(o,98,t)),c=o.name,l=e.Debug.assertDefined(o.body);if(e.isFunctionExpression(o)){if(c&&e.FindAllReferences.Core.isSymbolReferencedInFile(c,i,t,l))return;return n.delete(t,s),c&&n.delete(t,c),n.insertText(t,l.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return n.replaceNode(t,s,e.factory.createToken(85)),n.insertText(t,c.end," = "),n.insertText(t,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a,o=r.sourceFile,s=r.program,c=r.span,l=e.textChanges.ChangeTracker.with(r,(function(e){a=i(e,o,c.start,s.getTypeChecker())}));return a?[n.createCodeFixAction(t,l,a,t,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){i(n,t.file,t.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var n,t,r;n=e.codefix||(e.codefix={}),t="fixIncorrectNamedTupleSyntax",r=[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],n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.sourceFile,a=r.span,o=function(n,t){var r=e.getTokenAtPosition(n,t);return e.findAncestor(r,(function(e){return 195===e.kind}))}(i,a.start),s=e.textChanges.ChangeTracker.with(r,(function(n){return function(n,t,r){if(r){for(var i=r.type,a=!1,o=!1;183===i.kind||184===i.kind||189===i.kind;)183===i.kind?a=!0:184===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(r,r.dotDotDotToken||(o?e.factory.createToken(25):void 0),r.name,r.questionToken||(a?e.factory.createToken(57):void 0),i);s!==r&&n.replaceNode(t,r,s)}}(n,i,o)}));return[n.createCodeFixAction(t,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,t,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[t]})}(u||(u={})),function(e){!function(n){var t="fixSpelling",r=[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];function i(n,t,r,i){var a=e.getTokenAtPosition(n,t),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=r.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isMemberName(a),"Expected an identifier for spelling (property access)");var l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(a,l)}else if(e.isQualifiedName(o)&&o.right===a){var u=c.getSymbolAtLocation(o.left);u&&1536&u.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,u))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var d=function(n,t,r){if(r&&e.isStringLiteralLike(r.moduleSpecifier)){var i=e.getResolvedModule(n,r.moduleSpecifier.text);return i?t.program.getSourceFile(i.resolvedFileName):void 0}}(n,r,e.findAncestor(a,e.isImportDeclaration));d&&d.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,d.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var p=e.findAncestor(a,e.isJsxOpeningLikeElement),f=c.getContextualTypeForArgumentAtIndex(p,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,f)}else if(e.hasSyntacticModifier(o,16384)&&e.isClassElement(o)&&o.name===a){var m=e.findAncestor(a,e.isClassLike),_=m?e.getEffectiveBaseTypeNode(m):void 0,g=_?c.getTypeAtLocation(_):void 0;g&&(s=c.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),g))}else{var y=e.getMeaningFromLocation(a),h=e.getTextOfNode(a);e.Debug.assert(void 0!==h,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,h,function(e){var n=0;return 4&e&&(n|=1920),2&e&&(n|=788968),1&e&&(n|=111551),n}(y))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(n,t,r,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(r.parent)){var s=i.valueDeclaration;s&&e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?n.replaceNode(t,r,e.factory.createIdentifier(o)):n.replaceNode(t,r.parent,e.factory.createElementAccessExpression(r.parent.expression,e.factory.createStringLiteral(o)))}else n.replaceNode(t,r,e.factory.createIdentifier(o))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.errorCode,c=i(o,r.span.start,r,s);if(c){var l=c.node,u=c.suggestedSymbol,d=r.host.getCompilationSettings().target,p=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,l,u,d)}));return[n.createCodeFixAction("spelling",p,[e.Diagnostics.Change_spelling_to_0,e.symbolName(u)],t,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=i(t.file,t.start,e,t.code),o=e.host.getCompilationSettings().target;r&&a(n,e.sourceFile,r.node,r.suggestedSymbol,o)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t,r="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",o="fixWrapTheBlockWithParen",s=[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];function c(n,t,r){var i=n.createSymbol(4,t.escapedText);i.type=n.getTypeAtLocation(r);var a=e.createSymbolTable([i]);return n.createAnonymousType(void 0,a,[],[],[])}function l(n,r,i,a){if(r.body&&e.isBlock(r.body)&&1===e.length(r.body.statements)){var o=e.first(r.body.statements);if(e.isExpressionStatement(o)&&u(n,r,n.getTypeAtLocation(o.expression),i,a))return{declaration:r,kind:t.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(u(n,r,c(n,o.label,o.statement.expression),i,a))return e.isArrowFunction(r)?{declaration:r,kind:t.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:r,kind:t.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var l=e.first(o.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)&&(s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]),u(n,r,c(n,l.label,l.statement.expression),i,a)))return{declaration:r,kind:t.MissingReturnStatement,expression:s,statement:o,commentSource:l}}}}function u(n,t,r,i,a){if(a){var o=n.getSignatureFromDeclaration(t);if(o){e.hasSyntacticModifier(t,256)&&(r=n.createPromiseType(r));var s=n.createSignature(t,o.typeParameters,o.thisParameter,o.parameters,r,void 0,o.minArgumentCount,o.flags);r=n.createAnonymousType(void 0,e.createSymbolTable(),[s],[],[])}else r=n.getAnyType()}return n.isTypeAssignableTo(r,i)}function d(n,t,r,i){var a=e.getTokenAtPosition(t,r);if(a.parent){var o=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&e.rangeContainsRange(o.type,a)))return;return l(n,o,n.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=n.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return l(n,o,c,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var u=function(n){switch(n.kind){case 252:case 162:case 201:case 165:case 291:return n.initializer;case 283:return n.initializer&&(e.isJsxExpression(n.initializer)?n.initializer.expression:void 0);case 292:case 164:case 294:case 342:case 335:return}}(a.parent);if(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return;return l(n,u,n.getTypeAtLocation(a.parent),!0)}}}function p(n,t,r,i){e.suppressLeadingAndTrailingTrivia(r);var a=e.probablyUsesSemicolons(t);n.replaceNode(t,i,e.factory.createReturnStatement(r),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function f(n,t,r,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),n.replaceNode(t,r.body,s)}function m(n,t,r,i){n.replaceNode(t,r.body,e.factory.createParenthesizedExpression(i))}function _(t,a,o){var s=e.textChanges.ChangeTracker.with(t,(function(e){return p(e,t.sourceFile,a,o)}));return n.createCodeFixAction(r,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function g(t,i,a){var s=e.textChanges.ChangeTracker.with(t,(function(e){return m(e,t.sourceFile,i,a)}));return n.createCodeFixAction(r,s,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,o,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!function(e){e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"}(t||(t={})),n.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions:function(i){var o=i.program,s=i.sourceFile,c=i.span.start,l=i.errorCode,u=d(o.getTypeChecker(),s,c,l);if(u)return u.kind===t.MissingReturnStatement?e.append([_(i,u.expression,u.statement)],e.isArrowFunction(u.declaration)?function(t,i,o,s){var c=e.textChanges.ChangeTracker.with(t,(function(e){return f(e,t.sourceFile,i,o,s,!1)}));return n.createCodeFixAction(r,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,u.declaration,u.expression,u.commentSource):void 0):[g(i,u.declaration,u.expression)]},getAllCodeActions:function(t){return n.codeFixAll(t,s,(function(n,r){var s=d(t.program.getTypeChecker(),r.file,r.start,r.code);if(s)switch(t.fixId){case i:p(n,r.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;f(n,r.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;m(n,r.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(t.fixId))}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t,r="fixMissingMember",a="fixMissingProperties",o="fixMissingAttributes",s="fixMissingFunctionDeclaration",c=[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];function l(n,t,r,i){var a=e.getTokenAtPosition(n,t);if(e.isIdentifier(a)||e.isPrivateIdentifier(a)){var o=a.parent;if(e.isIdentifier(a)&&e.hasInitializer(o)&&o.initializer&&e.isObjectLiteralExpression(o.initializer)){var s=e.arrayFrom(r.getUnmatchedProperties(r.getTypeAtLocation(o.initializer),r.getTypeAtLocation(a),!1,!1));if(e.length(s))return{kind:3,token:a,properties:s,parentDeclaration:o.initializer}}if(e.isIdentifier(a)&&e.isJsxOpeningLikeElement(a.parent)){var c=function(n,t){var r=n.getContextualType(t.attributes);if(void 0===r)return e.emptyArray;var i=r.getProperties();if(!e.length(i))return e.emptyArray;for(var a=new e.Set,o=0,s=t.attributes.properties;o<s.length;o++){var c=s[o];if(e.isJsxAttribute(c)&&a.add(c.name.escapedText),e.isJsxSpreadAttribute(c))for(var l=0,u=n.getTypeAtLocation(c.expression).getProperties();l<u.length;l++){var d=u[l];a.add(d.escapedName)}}return e.filter(i,(function(n){return!(16777216&n.flags||48&e.getCheckFlags(n)||a.has(n.escapedName))}))}(r,a.parent);if(e.length(c))return{kind:4,token:a,attributes:c,parentDeclaration:a.parent}}if(e.isIdentifier(a)&&e.isCallExpression(o))return{kind:2,token:a,call:o,sourceFile:n,modifierFlags:0,parentDeclaration:n};if(e.isPropertyAccessExpression(o)){var l=e.skipConstraint(r.getTypeAtLocation(o.expression)),d=l.symbol;if(d&&d.declarations){if(e.isIdentifier(a)&&e.isCallExpression(o.parent)){var p=e.find(d.declarations,e.isModuleDeclaration),f=null==p?void 0:p.getSourceFile();if(p&&f&&!u(i,f))return{kind:2,token:a,call:o.parent,sourceFile:n,modifierFlags:1,parentDeclaration:p};var m=e.find(d.declarations,e.isSourceFile);if(n.commonJsModuleIndicator)return;if(m&&!u(i,m))return{kind:2,token:a,call:o.parent,sourceFile:m,modifierFlags:1,parentDeclaration:m}}var _=e.find(d.declarations,e.isClassLike);if(_||!e.isPrivateIdentifier(a)){var g=_||e.find(d.declarations,e.isInterfaceDeclaration);if(g&&!u(i,g.getSourceFile())){var y=(l.target||l)!==r.getDeclaredTypeOfSymbol(d);if(y&&(e.isPrivateIdentifier(a)||e.isInterfaceDeclaration(g)))return;var h=g.getSourceFile(),v=(y?32:0)|(e.startsWithUnderscore(a.text)?8:0),b=e.isSourceFileJS(h);return{kind:1,token:a,call:e.tryCast(o.parent,e.isCallExpression),modifierFlags:v,parentDeclaration:g,declSourceFile:h,isJSFile:b}}var E=e.find(d.declarations,e.isEnumDeclaration);return!E||e.isPrivateIdentifier(a)||u(i,E.getSourceFile())?void 0:{kind:0,token:a,parentDeclaration:E}}}}}}function u(e,n){return e.isSourceFileFromExternalLibrary(n)||e.isSourceFileDefaultLibrary(n)}function d(n,t,r,i,a){var o=i.text;if(a){if(224===r.kind)return;var s=r.name.getText(),c=p(e.factory.createIdentifier(s),o);n.insertNodeAfter(t,r,c)}else if(e.isPrivateIdentifier(i)){var l=e.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),u=_(r);u?n.insertNodeAfter(t,u,l):n.insertNodeAtClassStart(t,r,l)}else{var d=e.getFirstConstructorWithBody(r);if(!d)return;var f=p(e.factory.createThis(),o);n.insertNodeAtConstructorEnd(t,d,f)}}function p(n,t){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(n,t),T()))}function f(n,t,r){var i;if(219===r.parent.parent.kind){var a=r.parent.parent,o=r.parent===a.left?a.right:a.left,s=n.getWidenedType(n.getBaseTypeOfLiteralType(n.getTypeAtLocation(o)));i=n.typeToTypeNode(s,t,1)}else{var c=n.getContextualType(r.parent);i=c?n.typeToTypeNode(c,void 0,1):void 0}return i||e.factory.createKeywordTypeNode(129)}function m(n,t,r,i,a,o){var s=e.factory.createPropertyDeclaration(void 0,o?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(o)):void 0,i,void 0,a,void 0),c=_(r);c?n.insertNodeAfter(t,c,s):n.insertNodeAtClassStart(t,r,s)}function _(n){for(var t,r=0,i=n.members;r<i.length;r++){var a=i[r];if(!e.isPropertyDeclaration(a))break;t=a}return t}function g(t,r,i,a,o,s,c){var l=n.createImportAdder(c,t.program,t.preferences,t.host),u=n.createSignatureDeclarationFromCallExpression(167,t,l,i,a,o,s),d=e.findAncestor(i,(function(n){return e.isMethodDeclaration(n)||e.isConstructorDeclaration(n)}));d&&d.parent===s?r.insertNodeAfter(c,d,u):r.insertNodeAtClassStart(c,s,u),l.writeFixes(r)}function y(n,t,r){var i=r.token,a=r.parentDeclaration,o=e.some(a.members,(function(e){var n=t.getTypeAtLocation(e);return!!(n&&402653316&n.flags)})),s=e.factory.createEnumMember(i,o?e.factory.createStringLiteral(i.text):void 0);n.replaceNode(a.getSourceFile(),a,e.factory.updateEnumDeclaration(a,a.decorators,a.modifiers,a.name,e.concatenate(a.members,e.singleElementArray(s))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function h(t,r,i){var a=n.createImportAdder(r.sourceFile,r.program,r.preferences,r.host),o=n.createSignatureDeclarationFromCallExpression(254,r,a,i.call,e.idText(i.token),i.modifierFlags,i.parentDeclaration);t.insertNodeAtEndOfScope(i.sourceFile,i.parentDeclaration,o)}function v(t,r,a){var o=n.createImportAdder(r.sourceFile,r.program,r.preferences,r.host),s=e.getQuotePreference(r.sourceFile,r.preferences),c=r.program.getTypeChecker(),l=a.parentDeclaration.attributes,u=e.some(l.properties,e.isJsxSpreadAttribute),d=e.map(a.attributes,(function(n){var t=n.valueDeclaration?E(r,c,o,s,c.getTypeAtLocation(n.valueDeclaration)):T();return e.factory.createJsxAttribute(e.factory.createIdentifier(n.name),e.factory.createJsxExpression(void 0,t))})),p=e.factory.createJsxAttributes(u?i(i([],d,!0),l.properties,!0):i(i([],l.properties,!0),d,!0)),f={prefix:l.pos===l.end?" ":void 0};t.replaceNode(r.sourceFile,l,p,f)}function b(t,r,a){var o=n.createImportAdder(r.sourceFile,r.program,r.preferences,r.host),s=e.getQuotePreference(r.sourceFile,r.preferences),c=r.program.getTypeChecker(),l=e.map(a.properties,(function(n){var t=n.valueDeclaration?E(r,c,o,s,c.getTypeAtLocation(n.valueDeclaration)):T();return e.factory.createPropertyAssignment(n.name,t)}));t.replaceNode(r.sourceFile,a.parentDeclaration,e.factory.createObjectLiteralExpression(i(i([],a.parentDeclaration.properties,!0),l,!0),!0))}function E(t,r,i,a,o){if(3&o.flags)return T();if(134217732&o.flags)return e.factory.createStringLiteral("",0===a);if(8&o.flags)return e.factory.createNumericLiteral(0);if(64&o.flags)return e.factory.createBigIntLiteral("0n");if(16&o.flags)return e.factory.createFalse();if(1056&o.flags){var s=o.symbol.exports?e.firstOrUndefined(e.arrayFrom(o.symbol.exports.values())):o.symbol,c=r.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,void 0);return void 0===s||void 0===c?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(c,r.symbolToString(s))}if(256&o.flags)return e.factory.createNumericLiteral(o.value);if(2048&o.flags)return e.factory.createBigIntLiteral(o.value);if(128&o.flags)return e.factory.createStringLiteral(o.value,0===a);if(512&o.flags)return o===r.getFalseType()||o===r.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(65536&o.flags)return e.factory.createNull();if(1048576&o.flags){var l=e.firstDefined(o.types,(function(e){return E(t,r,i,a,e)}));return null!=l?l:T()}if(r.isArrayLikeType(o))return e.factory.createArrayLiteralExpression();if(function(n){return 524288&n.flags&&(128&e.getObjectFlags(n)||n.symbol&&e.tryCast(e.singleOrUndefined(n.symbol.declarations),e.isTypeLiteralNode))}(o)){var u=e.map(r.getPropertiesOfType(o),(function(n){var o=n.valueDeclaration?E(t,r,i,a,r.getTypeAtLocation(n.valueDeclaration)):T();return e.factory.createPropertyAssignment(n.name,o)}));return e.factory.createObjectLiteralExpression(u,!0)}if(16&e.getObjectFlags(o)){if(void 0===e.find(o.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration)))return T();var d=r.getSignaturesOfType(o,0);if(void 0===d)return T();var p=n.createSignatureDeclarationFromSignature(211,t,a,d[0],n.createStubbedBody(e.Diagnostics.Function_not_implemented.message,a),void 0,void 0,void 0,void 0,i);return null!=p?p:T()}if(1&e.getObjectFlags(o)){var f=e.getClassLikeDeclarationOfSymbol(o.symbol);if(void 0===f||e.hasAbstractModifier(f))return T();var m=e.getFirstConstructorWithBody(f);return m&&e.length(m.parameters)?T():e.factory.createNewExpression(e.factory.createIdentifier(o.symbol.name),void 0,void 0)}return T()}function T(){return e.factory.createIdentifier("undefined")}n.registerCodeFix({errorCodes:c,getCodeActions:function(t){var i=t.program.getTypeChecker(),c=l(t.sourceFile,t.span.start,i,t.program);if(c){if(3===c.kind){var u=e.textChanges.ChangeTracker.with(t,(function(e){return b(e,t,c)}));return[n.createCodeFixAction(a,u,e.Diagnostics.Add_missing_properties,a,e.Diagnostics.Add_all_missing_properties)]}return 4===c.kind?(u=e.textChanges.ChangeTracker.with(t,(function(e){return v(e,t,c)})),[n.createCodeFixAction(o,u,e.Diagnostics.Add_missing_attributes,o,e.Diagnostics.Add_all_missing_attributes)]):2===c.kind?(u=e.textChanges.ChangeTracker.with(t,(function(e){return h(e,t,c)})),[n.createCodeFixAction(s,u,[e.Diagnostics.Add_missing_function_declaration_0,c.token.text],s,e.Diagnostics.Add_all_missing_function_declarations)]):0===c.kind?(u=e.textChanges.ChangeTracker.with(t,(function(e){return y(e,t.program.getTypeChecker(),c)})),[n.createCodeFixAction(r,u,[e.Diagnostics.Add_missing_enum_member_0,c.token.text],r,e.Diagnostics.Add_all_missing_members)]):e.concatenate(function(t,i){var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,l=i.call;if(void 0!==l&&!e.isPrivateIdentifier(c)){var u=c.text,d=function(n){return e.textChanges.ChangeTracker.with(t,(function(e){return g(t,e,l,c,n,a,o)}))},p=[n.createCodeFixAction(r,d(32&s),[32&s?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,u],r,e.Diagnostics.Add_all_missing_members)];return 8&s&&p.unshift(n.createCodeFixActionWithoutFixAll(r,d(8),[e.Diagnostics.Declare_private_method_0,u])),p}}(t,c),function(t,i){return i.isJSFile?e.singleElementArray(function(t,i){var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token;if(!e.isInterfaceDeclaration(a)){var l=e.textChanges.ChangeTracker.with(t,(function(e){return d(e,o,a,c,!!(32&s))}));if(0!==l.length){var u=32&s?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(c)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return n.createCodeFixAction(r,l,[u,c.text],r,e.Diagnostics.Add_all_missing_members)}}}(t,i)):function(t,i){var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,l=c.text,u=32&s,d=f(t.program.getTypeChecker(),a,c),p=function(n){return e.textChanges.ChangeTracker.with(t,(function(e){return m(e,o,a,l,d,n)}))},_=[n.createCodeFixAction(r,p(32&s),[u?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,l],r,e.Diagnostics.Add_all_missing_members)];return u||e.isPrivateIdentifier(c)||(8&s&&_.unshift(n.createCodeFixActionWithoutFixAll(r,p(8),[e.Diagnostics.Declare_private_property_0,l])),_.push(function(t,i,a,o,s){var c=e.factory.createKeywordTypeNode(148),l=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,c,void 0),u=e.factory.createIndexSignature(void 0,void 0,[l],s),d=e.textChanges.ChangeTracker.with(t,(function(e){return e.insertNodeAtClassStart(i,a,u)}));return n.createCodeFixActionWithoutFixAll(r,d,[e.Diagnostics.Add_index_signature_for_property_0,o])}(t,o,a,c.text,d))),_}(t,i)}(t,c))}},fixIds:[r,s,a,o],getAllCodeActions:function(t){var r=t.program,i=t.fixId,u=r.getTypeChecker(),p=new e.Map,_=new e.Map;return n.createCombinedCodeActions(e.textChanges.ChangeTracker.with(t,(function(E){n.eachDiagnostic(t,c,(function(n){var r=l(n.file,n.start,u,t.program);if(r&&e.addToSeen(p,e.getNodeId(r.parentDeclaration)+"#"+r.token.text))if(i===s&&2===r.kind)h(E,t,r);else if(i===a&&3===r.kind)b(E,t,r);else if(i===o&&4===r.kind)v(E,t,r);else if(0===r.kind&&y(E,u,r),1===r.kind){var c=r.parentDeclaration,d=r.token,f=e.getOrUpdate(_,c,(function(){return[]}));f.some((function(e){return e.token.text===d.text}))||f.push(r)}})),_.forEach((function(i,a){for(var o=n.getAllSupers(a,u),s=function(n){if(o.some((function(e){var t=_.get(e);return!!t&&t.some((function(e){return e.token.text===n.token.text}))})))return"continue";var i=n.parentDeclaration,a=n.declSourceFile,s=n.modifierFlags,c=n.token,l=n.call,u=n.isJSFile;if(l&&!e.isPrivateIdentifier(c))g(t,E,l,c,32&s,i,a);else if(u&&!e.isInterfaceDeclaration(i))d(E,a,i,c,!!(32&s));else{var p=f(r.getTypeChecker(),i,c);m(E,a,i,c.text,p,32&s)}},c=0,l=i;c<l.length;c++)s(l[c])}))})))}}),function(e){e[e.Enum=0]="Enum",e[e.ClassOrInterface=1]="ClassOrInterface",e[e.Function=2]="Function",e[e.ObjectLiteral=3]="ObjectLiteral",e[e.JsxAttributes=4]="JsxAttributes"}(t||(t={}))}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="addMissingNewOperator",r=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function i(n,t,r){var i=e.cast(function(n,t){for(var r=e.getTokenAtPosition(n,t.start),i=e.textSpanEnd(t);r.end<i;)r=r.parent;return r}(t,r),e.isCallExpression),a=e.factory.createNewExpression(i.expression,i.typeArguments,i.arguments);n.replaceNode(t,i,a)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,o=r.span,s=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,a,o)}));return[n.createCodeFixAction(t,s,e.Diagnostics.Add_missing_new_operator_to_call,t,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return i(n,e.sourceFile,t)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="installTypesPackage",r=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,i=[r,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function a(e,n){return{type:"install package",file:e,packageName:n}}function o(n,t){var r=e.tryCast(e.getTokenAtPosition(n,t),e.isStringLiteral);if(r){var i=r.text,a=e.parsePackageName(i).packageName;return e.isExternalModuleNameRelative(a)?void 0:a}}function s(n,t,i){var a;return i===r?e.JsTyping.nodeCoreModules.has(n)?"@types/node":void 0:(null===(a=t.isKnownTypesPackageName)||void 0===a?void 0:a.call(t,n))?e.getTypesPackageName(n):void 0}n.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i=r.host,c=r.sourceFile,l=o(c,r.span.start);if(void 0!==l){var u=s(l,i,r.errorCode);return void 0===u?[]:[n.createCodeFixAction("fixCannotFindModule",[],[e.Diagnostics.Install_0,u],t,e.Diagnostics.Install_all_missing_types_packages,a(c.fileName,u))]}},fixIds:[t],getAllCodeActions:function(r){return n.codeFixAll(r,i,(function(n,i,c){var l=o(i.file,i.start);if(void 0!==l)if(r.fixId===t){var u=s(l,r.host,i.code);u&&c.push(a(i.file.fileName,u))}else e.Debug.fail("Bad fixId: "+r.fixId)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=[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],r="fixClassDoesntImplementInheritedAbstractMember";function i(n,t){var r=e.getTokenAtPosition(n,t);return e.cast(r.parent,e.isClassLike)}function a(t,r,i,a,s){var c=e.getEffectiveBaseTypeNode(t),l=i.program.getTypeChecker(),u=l.getTypeAtLocation(c),d=l.getPropertiesOfType(u).filter(o),p=n.createImportAdder(r,i.program,s,i.host);n.createMissingMemberNodes(t,d,r,i,s,p,(function(e){return a.insertNodeAtClassStart(r,t,e)})),p.writeFixes(a)}function o(n){var t=e.getSyntacticModifierFlags(e.first(n.getDeclarations()));return!(8&t||!(128&t))}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var o=t.sourceFile,s=t.span,c=e.textChanges.ChangeTracker.with(t,(function(e){return a(i(o,s.start),o,t,e,t.preferences)}));return 0===c.length?void 0:[n.createCodeFixAction(r,c,e.Diagnostics.Implement_inherited_abstract_class,r,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[r],getAllCodeActions:function(r){var o=new e.Map;return n.codeFixAll(r,t,(function(n,t){var s=i(t.file,t.start);e.addToSeen(o,e.getNodeId(s))&&a(s,r.sourceFile,r,n,r.preferences)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="classSuperMustPrecedeThisAccess",r=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function i(e,n,t,r){e.insertNodeAtConstructorStart(n,t,r),e.delete(n,r)}function a(n,t){var r=e.getTokenAtPosition(n,t);if(108===r.kind){var i=e.getContainingFunction(r),a=o(i.body);return a&&!a.expression.arguments.some((function(n){return e.isPropertyAccessExpression(n)&&n.expression===r}))?{constructor:i,superCall:a}:void 0}}function o(n){return e.isExpressionStatement(n)&&e.isSuperCall(n.expression)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=a(o,s.start);if(c){var l=c.constructor,u=c.superCall,d=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,l,u)}));return[n.createCodeFixAction(t,d,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,t,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[t],getAllCodeActions:function(t){var o=t.sourceFile,s=new e.Map;return n.codeFixAll(t,r,(function(n,t){var r=a(t.file,t.start);if(r){var c=r.constructor,l=r.superCall;e.addToSeen(s,e.getNodeId(c.parent))&&i(n,o,c,l)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="constructorForDerivedNeedSuperCall",r=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function i(n,t){var r=e.getTokenAtPosition(n,t);return e.Debug.assert(e.isConstructorDeclaration(r.parent),"token should be at the constructor declaration"),r.parent}function a(n,t,r){var i=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));n.insertNodeAtConstructorStart(t,r,i)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,c)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Add_missing_super_call,t,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return a(n,e.sourceFile,i(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="enableExperimentalDecorators",r=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];function i(t,r){n.setJsonCompilerOptionValue(t,r,"experimentalDecorators",e.factory.createTrue())}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,a)}));return[n.createCodeFixActionWithoutFixAll(t,o,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n){var t=e.program.getCompilerOptions().configFile;void 0!==t&&i(n,t)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixEnableJsxFlag",r=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function i(t,r){n.setJsonCompilerOptionValue(t,r,"jsx",e.factory.createStringLiteral("react"))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,a)}));return[n.createCodeFixActionWithoutFixAll(t,o,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n){var t=e.program.getCompilerOptions().configFile;void 0!==t&&i(n,t)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var n;(n=e.codefix||(e.codefix={})).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(t){var r=t.program.getCompilerOptions(),i=r.configFile;if(void 0!==i){var a=[],o=e.getEmitModuleKind(r);if(o>=e.ModuleKind.ES2015&&o<e.ModuleKind.ESNext){var s=e.textChanges.ChangeTracker.with(t,(function(t){n.setJsonCompilerOptionValue(t,i,"module",e.factory.createStringLiteral("esnext"))}));a.push(n.createCodeFixActionWithoutFixAll("fixModuleOption",s,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var c=e.getEmitScriptTarget(r);return(c<4||c>99)&&(s=e.textChanges.ChangeTracker.with(t,(function(t){if(e.getTsConfigObjectLiteralExpression(i)){var r=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&r.push(["module",e.factory.createStringLiteral("commonjs")]),n.setJsonCompilerOptionValues(t,i,r)}})),a.push(n.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),a.length?a:void 0}}})}(u||(u={})),function(e){!function(n){var t="fixPropertyAssignment",r=[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];function i(n,t,r){n.replaceNode(t,r,e.factory.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function a(n,t){return e.cast(e.getTokenAtPosition(n,t).parent,e.isShorthandPropertyAssignment)}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var o=a(r.sourceFile,r.span.start),s=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,o)}));return[n.createCodeFixAction(t,s,[e.Diagnostics.Change_0_to_1,"=",":"],t,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return i(e,n.file,a(n.file,n.start))}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="extendsInterfaceBecomesImplements",r=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(n,t){var r=e.getTokenAtPosition(n,t),i=e.getContainingClass(r).heritageClauses,a=i[0].getFirstToken();return 94===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(n,t,r,i){if(n.replaceNode(t,r,e.factory.createToken(117)),2===i.length&&94===i[0].token&&117===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();n.replaceRange(t,{pos:o,end:o},e.factory.createToken(27));for(var s=t.text,c=a.end;c<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(c));)c++;n.deleteRange(t,{pos:a.getStart(),end:c})}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=i(o,r.span.start);if(s){var c=s.extendsToken,l=s.heritageClauses,u=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,c,l)}));return[n.createCodeFixAction(t,u,e.Diagnostics.Change_extends_to_implements,t,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=i(n.file,n.start);t&&a(e,n.file,t.extendsToken,t.heritageClauses)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="forgottenThisPropertyAccess",r=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,i=[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,r];function a(n,t,i){var a=e.getTokenAtPosition(n,t);if(e.isIdentifier(a))return{node:a,className:i===r?e.getContainingClass(a).name.text:void 0}}function o(n,t,r){var i=r.node,a=r.className;e.suppressLeadingAndTrailingTrivia(i),n.replaceNode(t,i,e.factory.createPropertyAccessExpression(a?e.factory.createIdentifier(a):e.factory.createThis(),i))}n.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i=r.sourceFile,s=a(i,r.span.start,r.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return o(e,i,s)}));return[n.createCodeFixAction(t,c,[e.Diagnostics.Add_0_to_unresolved_variable,s.className||"this"],t,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,i,(function(n,t){var r=a(t.file,t.start,t.code);r&&o(n,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixInvalidJsxCharacters_expression",r="fixInvalidJsxCharacters_htmlEntity",i=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];n.registerCodeFix({errorCodes:i,fixIds:[t,r],getCodeActions:function(i){var a=i.sourceFile,s=i.preferences,c=i.span,l=e.textChanges.ChangeTracker.with(i,(function(e){return o(e,s,a,c.start,!1)})),u=e.textChanges.ChangeTracker.with(i,(function(e){return o(e,s,a,c.start,!0)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,t,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),n.createCodeFixAction(r,u,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,r,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(e){return n.codeFixAll(e,i,(function(n,t){return o(n,e.preferences,t.file,t.start,e.fixId===r)}))}});var a={">":"&gt;","}":"&rbrace;"};function o(n,t,r,i,o){var s=r.getText()[i];if(function(n){return e.hasProperty(a,n)}(s)){var c=o?a[s]:"{"+e.quote(r,t,s)+"}";n.replaceRangeWithText(r,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="unusedIdentifier",r="unusedIdentifier_prefix",i="unusedIdentifier_delete",a="unusedIdentifier_deleteImports",o="unusedIdentifier_infer",s=[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];function c(n,t,r){n.replaceNode(t,r.parent,e.factory.createKeywordTypeNode(153))}function l(r,a){return n.createCodeFixAction(t,r,a,i,e.Diagnostics.Delete_all_unused_declarations)}function u(n,t,r){n.delete(t,e.Debug.checkDefined(e.cast(r.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function d(e){return 100===e.kind||79===e.kind&&(268===e.parent.kind||265===e.parent.kind)}function p(n){return 100===n.kind?e.tryCast(n.parent,e.isImportDeclaration):void 0}function f(n,t){return e.isVariableDeclarationList(t.parent)&&e.first(t.parent.getChildren(n))===t}function m(e,n,t){e.delete(n,235===t.parent.kind?t.parent:t)}function _(n,t,r,i){t!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(136===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&function(e){switch(e.parent.kind){case 162:case 161:return!0;case 252:switch(e.parent.parent.parent.kind){case 242:case 241:return!0}}return!1}(i)&&(n.replaceNode(r,i,e.factory.createIdentifier("_"+i.text)),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach((function(t){e.isIdentifier(t.name)&&n.replaceNode(r,t.name,e.factory.createIdentifier("_"+t.name.text))}))))}function g(n,t,r,i,a,o,s,c){!function(n,t,r,i,a,o,s,c){var l=n.parent;if(e.isParameter(l))!function(n,t,r,i,a,o,s,c){void 0===c&&(c=!1),function(n,t,r,i,a,o,s){var c=r.parent;switch(c.kind){case 167:case 169:var l=c.parameters.indexOf(r),u=e.isMethodDeclaration(c)?c.name:c,d=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,u,a,i,o);if(d)for(var p=0,f=d;p<f.length;p++)for(var m=0,_=f[p].references;m<_.length;m++){var g=_[m];if(1===g.kind){var y=e.isSuperKeyword(g.node)&&e.isCallExpression(g.node.parent)&&g.node.parent.arguments.length>l,v=e.isPropertyAccessExpression(g.node.parent)&&e.isSuperKeyword(g.node.parent.expression)&&e.isCallExpression(g.node.parent.parent)&&g.node.parent.parent.arguments.length>l,b=(e.isMethodDeclaration(g.node.parent)||e.isMethodSignature(g.node.parent))&&g.node.parent!==r.parent&&g.node.parent.parameters.length>l;if(y||v||b)return!1}}return!0;case 254:return!c.name||!function(n,t,r){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(r,n,t,(function(n){return e.isIdentifier(n)&&e.isCallExpression(n.parent)&&n.parent.arguments.indexOf(n)>=0}))}(n,t,c.name)||h(c,r,s);case 211:case 212:return h(c,r,s);case 171:return!1;default:return e.Debug.failBadSyntaxKind(c)}}(i,t,r,a,o,s,c)&&(r.modifiers&&r.modifiers.length>0&&(!e.isIdentifier(r.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(r.name,i,t))?r.modifiers.forEach((function(e){return n.deleteModifier(t,e)})):!r.initializer&&y(r,i,a)&&n.delete(t,r))}(t,r,l,i,a,o,s,c);else if(!(c&&e.isIdentifier(n)&&e.FindAllReferences.Core.isSymbolReferencedInFile(n,i,r))){var u=e.isImportClause(l)?n:e.isComputedPropertyName(l)?l.parent:l;e.Debug.assert(u!==r,"should not delete whole source file"),t.delete(r,u)}}(t,r,n,i,a,o,s,c),e.isIdentifier(t)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(t,i,n,(function(t){var i;e.isPropertyAccessExpression(t.parent)&&t.parent.name===t&&(t=t.parent),!c&&(i=t,(e.isBinaryExpression(i.parent)&&i.parent.left===i||(e.isPostfixUnaryExpression(i.parent)||e.isPrefixUnaryExpression(i.parent))&&i.parent.operand===i)&&e.isExpressionStatement(i.parent.parent))&&r.delete(n,t.parent.parent)}))}function y(n,t,r){var i=n.parent.parameters.indexOf(n);return!e.FindAllReferences.Core.someSignatureUsage(n.parent,r,t,(function(e,n){return!n||n.arguments.length>i}))}function h(n,t,r){var i=n.parameters,a=i.indexOf(t);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),r?i.slice(a+1).every((function(n){return e.isIdentifier(n.name)&&!n.symbol.isReferenced})):a===i.length-1}n.registerCodeFix({errorCodes:s,getCodeActions:function(i){var s=i.errorCode,y=i.sourceFile,h=i.program,v=i.cancellationToken,b=h.getTypeChecker(),E=h.getSourceFiles(),T=e.getTokenAtPosition(y,i.span.start);if(e.isJSDocTemplateTag(T))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,T)})),e.Diagnostics.Remove_template_tag)];if(29===T.kind)return[l(x=e.textChanges.ChangeTracker.with(i,(function(e){return u(e,y,T)})),e.Diagnostics.Remove_type_parameters)];var S=p(T);if(S){var x=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,S)}));return[n.createCodeFixAction(t,x,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(S)],a,e.Diagnostics.Delete_all_unused_imports)]}if(d(T)&&(I=e.textChanges.ChangeTracker.with(i,(function(e){return g(y,T,e,b,E,h,v,!1)}))).length)return[n.createCodeFixAction(t,I,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,T.getText(y)],a,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(T.parent)||e.isArrayBindingPattern(T.parent)){if(e.isParameter(T.parent.parent)){var L=T.parent.elements,D=[L.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(L,(function(e){return e.getText(y)})).join(", ")];return[l(e.textChanges.ChangeTracker.with(i,(function(n){return function(n,t,r){e.forEach(r.elements,(function(e){return n.delete(t,e)}))}(n,y,T.parent)})),D)]}return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,T.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(f(y,T))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return m(e,y,T.parent)})),e.Diagnostics.Remove_variable_statement)];var A=[];if(136===T.kind){x=e.textChanges.ChangeTracker.with(i,(function(e){return c(e,y,T)}));var C=e.cast(T.parent,e.isInferTypeNode).typeParameter.name.text;A.push(n.createCodeFixAction(t,x,[e.Diagnostics.Replace_infer_0_with_unknown,C],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var I;(I=e.textChanges.ChangeTracker.with(i,(function(e){return g(y,T,e,b,E,h,v,!1)}))).length&&(C=e.isComputedPropertyName(T.parent)?T.parent:T,A.push(l(I,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,C.getText(y)])))}var N=e.textChanges.ChangeTracker.with(i,(function(e){return _(e,s,y,T)}));return N.length&&A.push(n.createCodeFixAction(t,N,[e.Diagnostics.Prefix_0_with_an_underscore,T.getText(y)],r,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),A},fixIds:[r,i,a,o],getAllCodeActions:function(t){var l=t.sourceFile,h=t.program,v=t.cancellationToken,b=h.getTypeChecker(),E=h.getSourceFiles();return n.codeFixAll(t,s,(function(n,s){var T=e.getTokenAtPosition(l,s.start);switch(t.fixId){case r:_(n,s.code,l,T);break;case a:var S=p(T);S?n.delete(l,S):d(T)&&g(l,T,n,b,E,h,v,!0);break;case i:if(136===T.kind||d(T))break;if(e.isJSDocTemplateTag(T))n.delete(l,T);else if(29===T.kind)u(n,l,T);else if(e.isObjectBindingPattern(T.parent)){if(T.parent.parent.initializer)break;e.isParameter(T.parent.parent)&&!y(T.parent.parent,b,E)||n.delete(l,T.parent.parent)}else{if(e.isArrayBindingPattern(T.parent.parent)&&T.parent.parent.parent.initializer)break;f(l,T)?m(n,l,T.parent):g(l,T,n,b,E,h,v,!0)}break;case o:136===T.kind&&c(n,l,T);break;default:e.Debug.fail(JSON.stringify(t.fixId))}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixUnreachableCode",r=[e.Diagnostics.Unreachable_code_detected.code];function i(n,t,r,i,a){var o=e.getTokenAtPosition(t,r),s=e.findAncestor(o,e.isStatement);if(s.getStart(t)!==o.getStart(t)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:r,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 237:if(l.elseStatement){if(e.isBlock(s.parent))break;return void n.replaceNode(t,s,e.factory.createBlock(e.emptyArray))}case 239:case 240:return void n.delete(t,l)}if(e.isBlock(s.parent)){var u=r+i,d=e.Debug.checkDefined(function(e,n){for(var t,r=0,i=e;r<i.length;r++){var a=i[r];if(!(a.pos<u))break;t=a}return t}(e.sliceAfter(s.parent.statements,s)),"Some statement should be last");n.deleteNodeRange(t,s,d)}else n.delete(t,s)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span.start,r.span.length,r.errorCode)}));return[n.createCodeFixAction(t,a,e.Diagnostics.Remove_unreachable_code,t,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return i(e,n.file,n.start,n.length,n.code)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixUnusedLabel",r=[e.Diagnostics.Unused_label.code];function i(n,t,r){var i=e.getTokenAtPosition(t,r),a=e.cast(i.parent,e.isLabeledStatement),o=i.getStart(t),s=a.statement.getStart(t),c=e.positionsAreOnSameLine(o,s,t)?s:e.skipTrivia(t.text,e.findChildOfKind(a,58,t).end,!0);n.deleteRange(t,{pos:o,end:c})}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,a,e.Diagnostics.Remove_unused_label,t,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return i(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixJSDocTypes_plain",r="fixJSDocTypes_nullable",i=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function a(e,n,t,r,i){e.replaceNode(n,t,i.typeToTypeNode(r,t,void 0))}function o(n,t,r){var i=e.findAncestor(e.getTokenAtPosition(n,t),s),a=i&&i.type;return a&&{typeNode:a,type:r.getTypeFromTypeNode(a)}}function s(e){switch(e.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}}n.registerCodeFix({errorCodes:i,getCodeActions:function(i){var s=i.sourceFile,c=i.program.getTypeChecker(),l=o(s,i.span.start,c);if(l){var u=l.typeNode,d=l.type,p=u.getText(s),f=[m(d,t,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 309===u.kind&&f.push(m(c.getNullableType(d,32768),r,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),f}function m(t,r,o){var l=e.textChanges.ChangeTracker.with(i,(function(e){return a(e,s,u,t,c)}));return n.createCodeFixAction("jdocTypes",l,[e.Diagnostics.Change_0_to_1,p,c.typeToString(t)],r,o)}},fixIds:[t,r],getAllCodeActions:function(e){var t=e.fixId,s=e.program,c=e.sourceFile,l=s.getTypeChecker();return n.codeFixAll(e,i,(function(e,n){var i=o(n.file,n.start,l);if(i){var s=i.typeNode,u=i.type,d=309===s.kind&&t===r?l.getNullableType(u,32768):u;a(e,c,s,d,l)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixMissingCallParentheses",r=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function i(e,n,t){e.replaceNodeWithText(n,t,t.text+"()")}function a(n,t){var r=e.getTokenAtPosition(n,t);if(e.isPropertyAccessExpression(r.parent)){for(var i=r.parent;e.isPropertyAccessExpression(i.parent);)i=i.parent;return i.name}if(e.isIdentifier(r))return r}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var o=a(r.sourceFile,r.span.start);if(o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,o)}));return[n.createCodeFixAction(t,s,e.Diagnostics.Add_missing_call_parentheses,t,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=a(n.file,n.start);t&&i(e,n.file,t)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixAwaitInSyncFunction",r=[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];function i(n,t){var r=e.getTokenAtPosition(n,t),i=e.getContainingFunction(r);if(i){var a,o;switch(i.kind){case 167:a=i.name;break;case 254:case 211:a=e.findChildOfKind(i,98,n);break;case 212:a=e.findChildOfKind(i,20,n)||e.first(i.parameters);break;default:return}return a&&{insertBefore:a,returnType:(o=i,o.type?o.type:e.isVariableDeclaration(o.parent)&&o.parent.type&&e.isFunctionTypeNode(o.parent.type)?o.parent.type.type:void 0)}}}function a(n,t,r){var i=r.insertBefore,a=r.returnType;if(a){var o=e.getEntityNameFromTypeNode(a);o&&79===o.kind&&"Promise"===o.text||n.replaceNode(t,a,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([a])))}n.insertModifierBefore(t,130,i)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,c)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Add_async_modifier_to_containing_function,t,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[t],getAllCodeActions:function(t){var o=new e.Map;return n.codeFixAll(t,r,(function(n,r){var s=i(r.file,r.start);s&&e.addToSeen(o,e.getNodeId(s.insertBefore))&&a(n,t.sourceFile,s)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=[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],r="fixPropertyOverrideAccessor";function i(t,r,i,a,o){var s,c;if(a===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=r,c=r+i;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 l=o.program.getTypeChecker(),u=e.getTokenAtPosition(t,r).parent;e.Debug.assert(e.isAccessor(u),"error span of fixPropertyOverrideAccessor should only be on an accessor");var d=u.parent;e.Debug.assert(e.isClassLike(d),"erroneous accessors should only be inside classes");var p=e.singleOrUndefined(n.getAllSupers(d,l));if(!p)return[];var f=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(u.name)),m=l.getPropertyOfType(l.getTypeAtLocation(p),f);if(!m||!m.valueDeclaration)return[];s=m.valueDeclaration.pos,c=m.valueDeclaration.end,t=e.getSourceFileOfNode(m.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+a);return n.generateAccessorFromProperty(t,o.program,s,c,o,e.Diagnostics.Generate_get_and_set_accessors.message)}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var a=i(t.sourceFile,t.span.start,t.span.length,t.errorCode,t);if(a)return[n.createCodeFixAction(r,a,e.Diagnostics.Generate_get_and_set_accessors,r,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[r],getAllCodeActions:function(e){return n.codeFixAll(e,t,(function(n,t){var r=i(t.file,t.start,t.length,t.code,e);if(r)for(var a=0,o=r;a<o.length;a++){var s=o[a];n.pushRaw(e.sourceFile,s)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="inferFromUsage",r=[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];function a(n,t){switch(n){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(t))?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 o(t,r,i,a,o,p,g,y,h){if(e.isParameterPropertyModifier(i.kind)||79===i.kind||25===i.kind||108===i.kind){var v=i.parent,b=n.createImportAdder(r,o,h,y);switch(a=function(n){switch(n){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 n}(a)){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(v)&&g(v)||e.isPropertyDeclaration(v)||e.isPropertySignature(v))return s(t,b,r,v,o,y,p),b.writeFixes(t),v;if(e.isPropertyAccessExpression(v)){var E=f(v.name,o,p),T=e.getTypeNodeIfAccessible(E,v,o,y);if(T){var S=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(T),void 0);d(t,r,e.cast(v.parent.parent,e.isExpressionStatement),[S])}return b.writeFixes(t),v}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var x=o.getTypeChecker().getSymbolAtLocation(i);return x&&x.valueDeclaration&&e.isVariableDeclaration(x.valueDeclaration)&&g(x.valueDeclaration)?(s(t,b,r,x.valueDeclaration,o,y,p),b.writeFixes(t),x.valueDeclaration):void 0}var L=e.getContainingFunction(i);if(void 0!==L){var D;switch(a){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(L)){c(t,b,r,L,o,y,p),D=L;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(g(L)){var A=e.cast(v,e.isParameter);!function(n,t,r,i,a,o,s,c){if(e.isIdentifier(i.name)){var d=function(n,t,r,i){var a=m(n,t,r,i);return a&&_(r,a,i).parameters(n)||n.parameters.map((function(n){return{declaration:n,type:e.isIdentifier(n.name)?f(n.name,r,i):r.getTypeChecker().getAnyType()}}))}(a,r,o,c);if(e.Debug.assert(a.parameters.length===d.length,"Parameter count and inference count should match"),e.isInJSFile(a))u(n,r,d,o,s);else{var p=e.isArrowFunction(a)&&!e.findChildOfKind(a,20,r);p&&n.insertNodeBefore(r,e.first(a.parameters),e.factory.createToken(20));for(var g=0,y=d;g<y.length;g++){var h=y[g],v=h.declaration,b=h.type;!v||v.type||v.initializer||l(n,t,r,v,b,o,s)}p&&n.insertNodeAfter(r,e.last(a.parameters),e.factory.createToken(21))}}}(t,b,r,A,L,o,y,p),D=A}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(L)&&e.isIdentifier(L.name)&&(l(t,b,r,L,f(L.name,o,p),o,y),D=L);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(L)&&(c(t,b,r,L,o,y,p),D=L);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(L)&&g(L)&&(function(n,t,r,i,a,o){var s=m(r,t,i,o);if(s&&s.length){var c=_(i,s,o).thisParameter(),l=e.getTypeNodeIfAccessible(c,r,i,a);l&&(e.isInJSFile(r)?function(n,t,r,i){d(n,t,r,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(i))])}(n,t,r,l):n.tryInsertThisTypeAnnotation(t,r,l))}}(t,r,L,o,y,p),D=L);break;default:return e.Debug.fail(String(a))}return b.writeFixes(t),D}}}function s(n,t,r,i,a,o,s){e.isIdentifier(i.name)&&l(n,t,r,i,f(i.name,a,s),a,o)}function c(n,t,r,i,a,o,s){var c=e.firstOrUndefined(i.parameters);if(c&&e.isIdentifier(i.name)&&e.isIdentifier(c.name)){var d=f(i.name,a,s);d===a.getTypeChecker().getAnyType()&&(d=f(c.name,a,s)),e.isInJSFile(i)?u(n,r,[{declaration:c,type:d}],a,o):l(n,t,r,c,d,a,o)}}function l(t,r,i,a,o,s,c){var l=e.getTypeNodeIfAccessible(o,a,s,c);if(l)if(e.isInJSFile(i)&&164!==a.kind){var u=e.isVariableDeclaration(a)?e.tryCast(a.parent.parent,e.isVariableStatement):a;if(!u)return;var p=e.factory.createJSDocTypeExpression(l);d(t,i,u,[e.isGetAccessorDeclaration(a)?e.factory.createJSDocReturnTag(void 0,p,void 0):e.factory.createJSDocTypeTag(void 0,p,void 0)])}else(function(t,r,i,a,o,s){var c=n.tryGetAutoImportableReferenceFromTypeNode(t,s);return!(!c||!a.tryInsertTypeAnnotation(i,r,c.typeNode))&&(e.forEach(c.symbols,(function(e){return o.addImportFromExportedSymbol(e,!0)})),!0)})(l,a,i,t,r,e.getEmitScriptTarget(s.getCompilerOptions()))||t.tryInsertTypeAnnotation(i,a,l)}function u(n,t,r,i,a){var o=r.length&&r[0].declaration.parent;if(o){var s=e.mapDefined(r,(function(n){var t=n.declaration;if(!t.initializer&&!e.getJSDocType(t)&&e.isIdentifier(t.name)){var r=n.type&&e.getTypeNodeIfAccessible(n.type,t,i,a);if(r){var o=e.factory.cloneNode(t.name);return e.setEmitFlags(o,3584),{name:e.factory.cloneNode(t.name),param:t,isOptional:!!n.isOptional,typeNode:r}}}}));if(s.length)if(e.isArrowFunction(o)||e.isFunctionExpression(o)){var c=e.isArrowFunction(o)&&!e.findChildOfKind(o,20,t);c&&n.insertNodeBefore(t,e.first(o.parameters),e.factory.createToken(20)),e.forEach(s,(function(r){var i=r.typeNode,a=r.param,o=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(i)),s=e.factory.createJSDocComment(void 0,[o]);n.insertNodeAt(t,a.getStart(t),s,{suffix:" "})})),c&&n.insertNodeAfter(t,e.last(o.parameters),e.factory.createToken(21))}else{var l=e.map(s,(function(n){var t=n.name,r=n.typeNode,i=n.isOptional;return e.factory.createJSDocParameterTag(void 0,t,!!i,e.factory.createJSDocTypeExpression(r),!1,void 0)}));d(n,t,o,l)}}}function d(n,t,r,a){var o,s=e.flatMap(r.jsDoc,(function(n){return"string"==typeof n.comment?e.factory.createJSDocText(n.comment):n.comment})),c=e.flatMapToMutable(r.jsDoc,(function(e){return e.tags})),l=a.filter((function(n){return!c||!c.some((function(t,r){var i=function(n,t){if(n.kind===t.kind)switch(n.kind){case 335:var r=n,i=t;return e.isIdentifier(r.name)&&e.isIdentifier(i.name)&&r.name.escapedText===i.name.escapedText?e.factory.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0;case 336:return e.factory.createJSDocReturnTag(void 0,t.typeExpression,n.comment)}}(t,n);return i&&(c[r]=i),!!i}))})),u=e.factory.createJSDocComment(e.factory.createNodeArray(e.intersperse(s,e.factory.createJSDocText("\n"))),e.factory.createNodeArray(i(i([],c||e.emptyArray,!0),l,!0))),d=212===r.kind?165===(o=r).parent.kind?o.parent:o.parent.parent:r;d.jsDoc=r.jsDoc,d.jsDocCache=r.jsDocCache,n.insertJsdocCommentBefore(t,d,u)}function p(n,t,r){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,n,t,t.getSourceFiles(),r),(function(n){return 0!==n.kind?e.tryCast(n.node,e.isIdentifier):void 0}))}function f(e,n,t){return _(n,p(e,n,t),t).single()}function m(n,t,r,i){var a;switch(n.kind){case 169:a=e.findChildOfKind(n,133,t);break;case 212:case 211:var o=n.parent;a=(e.isVariableDeclaration(o)||e.isPropertyDeclaration(o))&&e.isIdentifier(o.name)?o.name:n.name;break;case 254:case 167:case 166:a=n.name}if(a)return p(a,r,i)}function _(n,t,r){var a=n.getTypeChecker(),o={string:function(){return a.getStringType()},number:function(){return a.getNumberType()},Array:function(e){return a.createArrayType(e)},Promise:function(e){return a.createPromiseType(e)}},s=[a.getStringType(),a.getNumberType(),a.createArrayType(a.getAnyType()),a.createPromiseType(a.getAnyType())];return{single:function(){return m(l(t))},parameters:function(o){if(0!==t.length&&o.parameters){for(var s={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},c=0,d=t;c<d.length;c++){var f=d[c];r.throwIfCancellationRequested(),u(f,s)}var _=i(i([],s.constructs||[],!0),s.calls||[],!0);return o.parameters.map((function(t,i){for(var s=[],c=e.isRestParameter(t),u=!1,d=0,f=_;d<f.length;d++){var g=f[d];if(g.argumentTypes.length<=i)u=e.isInJSFile(o),s.push(a.getUndefinedType());else if(c)for(var y=i;y<g.argumentTypes.length;y++)s.push(a.getBaseTypeOfLiteralType(g.argumentTypes[y]));else s.push(a.getBaseTypeOfLiteralType(g.argumentTypes[i]))}if(e.isIdentifier(t.name)){var h=l(p(t.name,n,r));s.push.apply(s,c?e.mapDefined(h,a.getElementTypeOfArrayType):h)}var v=m(s);return{type:c?a.createArrayType(v):v,isOptional:u&&!c,declaration:t}}))}},thisParameter:function(){for(var n={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},i=0,a=t;i<a.length;i++){var o=a[i];r.throwIfCancellationRequested(),u(o,n)}return m(n.candidateThisTypes||e.emptyArray)}};function c(n){for(var t=new e.Map,r=0,i=n;r<i.length;r++){var a=i[r];a.properties&&a.properties.forEach((function(e,n){t.has(n)||t.set(n,[]),t.get(n).push(e)}))}var o=new e.Map;return t.forEach((function(e,n){o.set(n,c(e))})),{isNumber:n.some((function(e){return e.isNumber})),isString:n.some((function(e){return e.isString})),isNumberOrString:n.some((function(e){return e.isNumberOrString})),candidateTypes:e.flatMap(n,(function(e){return e.candidateTypes})),properties:o,calls:e.flatMap(n,(function(e){return e.calls})),constructs:e.flatMap(n,(function(e){return e.constructs})),numberIndex:e.forEach(n,(function(e){return e.numberIndex})),stringIndex:e.forEach(n,(function(e){return e.stringIndex})),candidateThisTypes:e.flatMap(n,(function(e){return e.candidateThisTypes})),inferredTypes:void 0}}function l(e){for(var n={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},t=0,i=e;t<i.length;t++){var a=i[t];r.throwIfCancellationRequested(),u(a,n)}return _(n)}function u(n,t){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(n);)n=n.parent;switch(n.parent.kind){case 236:!function(n,t){h(t,e.isCallExpression(n)?a.getVoidType():a.getAnyType())}(n,t);break;case 218:t.isNumber=!0;break;case 217:!function(e,n){switch(e.operator){case 45:case 46:case 40:case 54:n.isNumber=!0;break;case 39:n.isNumberOrString=!0}}(n.parent,t);break;case 219:!function(n,t,r){switch(t.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 i=a.getTypeAtLocation(t.left===n?t.right:t.left);1056&i.flags?h(r,i):r.isNumber=!0;break;case 64:case 39:var o=a.getTypeAtLocation(t.left===n?t.right:t.left);1056&o.flags?h(r,o):296&o.flags?r.isNumber=!0:402653316&o.flags?r.isString=!0:1&o.flags||(r.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:h(r,a.getTypeAtLocation(t.left===n?t.right:t.left));break;case 101:n===t.left&&(r.isString=!0);break;case 56:case 60:n!==t.left||252!==n.parent.parent.kind&&!e.isAssignmentExpression(n.parent.parent,!0)||h(r,a.getTypeAtLocation(t.right))}}(n,n.parent,t);break;case 287:case 288:!function(e,n){h(n,a.getTypeAtLocation(e.parent.parent.expression))}(n.parent,t);break;case 206:case 207:n.parent.expression===n?function(e,n){var t={argumentTypes:[],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}};if(e.arguments)for(var r=0,i=e.arguments;r<i.length;r++){var o=i[r];t.argumentTypes.push(a.getTypeAtLocation(o))}u(e,t.return_),206===e.kind?(n.calls||(n.calls=[])).push(t):(n.constructs||(n.constructs=[])).push(t)}(n.parent,t):d(n,t);break;case 204:!function(n,t){var r=e.escapeLeadingUnderscores(n.name.text);t.properties||(t.properties=new e.Map);var i=t.properties.get(r)||{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};u(n,i),t.properties.set(r,i)}(n.parent,t);break;case 205:!function(e,n,t){if(n!==e.argumentExpression){var r=a.getTypeAtLocation(e.argumentExpression),i={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};u(e,i),296&r.flags?t.numberIndex=i:t.stringIndex=i}else t.isNumberOrString=!0}(n.parent,n,t);break;case 291:case 292:!function(n,t){var r=e.isVariableDeclaration(n.parent.parent)?n.parent.parent:n.parent;v(t,a.getTypeAtLocation(r))}(n.parent,t);break;case 165:!function(e,n){v(n,a.getTypeAtLocation(e.parent))}(n.parent,t);break;case 252:var r=n.parent,i=r.name,o=r.initializer;if(n===i){o&&h(t,a.getTypeAtLocation(o));break}default:return d(n,t)}}function d(n,t){e.isExpressionNode(n)&&h(t,a.getContextualType(n))}function f(e){return m(_(e))}function m(n){if(!n.length)return a.getAnyType();var t=a.getUnionType([a.getStringType(),a.getNumberType()]),r=function(n,t){for(var r=[],i=0,a=n;i<a.length;i++)for(var o=a[i],s=0,c=t;s<c.length;s++){var l=c[s],u=l.high,d=l.low;u(o)&&(e.Debug.assert(!d(o),"Priority can't have both low and high"),r.push(d))}return n.filter((function(e){return r.every((function(n){return!n(e)}))}))}(n,[{high:function(e){return e===a.getStringType()||e===a.getNumberType()},low:function(e){return e===t}},{high:function(e){return!(16385&e.flags)},low:function(e){return!!(16385&e.flags)}},{high:function(n){return!(114689&n.flags||16&e.getObjectFlags(n))},low:function(n){return!!(16&e.getObjectFlags(n))}}]),i=r.filter((function(n){return 16&e.getObjectFlags(n)}));return i.length&&(r=r.filter((function(n){return!(16&e.getObjectFlags(n))}))).push(function(n){if(1===n.length)return n[0];for(var t=[],r=[],i=[],o=[],s=!1,c=!1,l=e.createMultiMap(),u=0,d=n;u<d.length;u++){for(var p=d[u],f=0,m=a.getPropertiesOfType(p);f<m.length;f++){var _=m[f];l.add(_.name,_.valueDeclaration?a.getTypeOfSymbolAtLocation(_,_.valueDeclaration):a.getAnyType())}t.push.apply(t,a.getSignaturesOfType(p,0)),r.push.apply(r,a.getSignaturesOfType(p,1));var g=a.getIndexInfoOfType(p,0);g&&(i.push(g.type),s=s||g.isReadonly);var y=a.getIndexInfoOfType(p,1);y&&(o.push(y.type),c=c||y.isReadonly)}var h=e.mapEntries(l,(function(e,t){var r=t.length<n.length?16777216:0,i=a.createSymbol(4|r,e);return i.type=a.getUnionType(t),[e,i]})),v=[];return i.length&&v.push(a.createIndexInfo(a.getStringType(),a.getUnionType(i),s)),o.length&&v.push(a.createIndexInfo(a.getNumberType(),a.getUnionType(o),c)),a.createAnonymousType(n[0].symbol,h,t,r,v)}(i)),a.getWidenedType(a.getUnionType(r.map(a.getBaseTypeOfLiteralType),2))}function _(n){var t,r,i,c=[];return n.isNumber&&c.push(a.getNumberType()),n.isString&&c.push(a.getStringType()),n.isNumberOrString&&c.push(a.getUnionType([a.getStringType(),a.getNumberType()])),n.numberIndex&&c.push(a.createArrayType(f(n.numberIndex))),((null===(t=n.properties)||void 0===t?void 0:t.size)||(null===(r=n.calls)||void 0===r?void 0:r.length)||(null===(i=n.constructs)||void 0===i?void 0:i.length)||n.stringIndex)&&c.push(function(n){var t=new e.Map;n.properties&&n.properties.forEach((function(e,n){var r=a.createSymbol(4,n);r.type=f(e),t.set(n,r)}));var r=n.calls?[y(n.calls)]:[],i=n.constructs?[y(n.constructs)]:[],o=n.stringIndex?[a.createIndexInfo(a.getStringType(),f(n.stringIndex),!1)]:[];return a.createAnonymousType(void 0,t,r,i,o)}(n)),c.push.apply(c,(n.candidateTypes||[]).map((function(e){return a.getBaseTypeOfLiteralType(e)}))),c.push.apply(c,function(n){if(!n.properties||!n.properties.size)return[];var t=s.filter((function(t){return function(n,t){return!!t.properties&&!e.forEachEntry(t.properties,(function(t,r){var i,o=a.getTypeOfPropertyOfType(n,r);return!(o&&(t.calls?a.getSignaturesOfType(o,0).length&&a.isTypeAssignableTo(o,(i=t.calls,a.createAnonymousType(void 0,e.createSymbolTable(),[y(i)],e.emptyArray,e.emptyArray))):a.isTypeAssignableTo(o,f(t))))}))}(t,n)}));return 0<t.length&&t.length<3?t.map((function(t){return function(n,t){if(!(4&e.getObjectFlags(n)&&t.properties))return n;var r=n.target,i=e.singleOrUndefined(r.typeParameters);if(!i)return n;var s=[];return t.properties.forEach((function(n,t){var o=a.getTypeOfPropertyOfType(r,t);e.Debug.assert(!!o,"generic should have all the properties of its reference."),s.push.apply(s,g(o,f(n),i))})),o[n.symbol.escapedName](m(s))}(t,n)})):[]}(n)),c}function g(n,t,r){if(n===r)return[t];if(3145728&n.flags)return e.flatMap(n.types,(function(e){return g(e,t,r)}));if(4&e.getObjectFlags(n)&&4&e.getObjectFlags(t)){var i=a.getTypeArguments(n),o=a.getTypeArguments(t),s=[];if(i&&o)for(var c=0;c<i.length;c++)o[c]&&s.push.apply(s,g(i[c],o[c],r));return s}var l=a.getSignaturesOfType(n,0),u=a.getSignaturesOfType(t,0);return 1===l.length&&1===u.length?function(n,t,r){for(var i=[],o=0;o<n.parameters.length;o++){var s=n.parameters[o],c=t.parameters[o],l=n.declaration&&e.isRestParameter(n.declaration.parameters[o]);if(!c)break;var u=s.valueDeclaration?a.getTypeOfSymbolAtLocation(s,s.valueDeclaration):a.getAnyType(),d=l&&a.getElementTypeOfArrayType(u);d&&(u=d);var p=c.type||(c.valueDeclaration?a.getTypeOfSymbolAtLocation(c,c.valueDeclaration):a.getAnyType());i.push.apply(i,g(u,p,r))}var f=a.getReturnTypeOfSignature(n),m=a.getReturnTypeOfSignature(t);return i.push.apply(i,g(f,m,r)),i}(l[0],u[0],r):[]}function y(n){for(var t=[],r=Math.max.apply(Math,n.map((function(e){return e.argumentTypes.length}))),i=function(r){var i=a.createSymbol(1,e.escapeLeadingUnderscores("arg"+r));i.type=m(n.map((function(e){return e.argumentTypes[r]||a.getUndefinedType()}))),n.some((function(e){return void 0===e.argumentTypes[r]}))&&(i.flags|=16777216),t.push(i)},o=0;o<r;o++)i(o);var s=f(c(n.map((function(e){return e.return_}))));return a.createSignature(void 0,void 0,void 0,t,s,void 0,r,0)}function h(e,n){!n||1&n.flags||131072&n.flags||(e.candidateTypes||(e.candidateTypes=[])).push(n)}function v(e,n){!n||1&n.flags||131072&n.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(n)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i,s=r.sourceFile,c=r.program,l=r.span.start,u=r.errorCode,d=r.cancellationToken,p=r.host,f=r.preferences,m=e.getTokenAtPosition(s,l),_=e.textChanges.ChangeTracker.with(r,(function(n){i=o(n,s,m,u,c,d,e.returnTrue,p,f)})),g=i&&e.getNameOfDeclaration(i);return g&&0!==_.length?[n.createCodeFixAction(t,_,[a(u,m),g.getText(s)],t,e.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[t],getAllCodeActions:function(t){var i=t.sourceFile,a=t.program,s=t.cancellationToken,c=t.host,l=t.preferences,u=e.nodeSeenTracker();return n.codeFixAll(t,r,(function(n,t){o(n,i,e.getTokenAtPosition(t.file,t.start),t.code,a,s,u,c,l)}))}}),n.addJSDocTags=d}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixReturnTypeInAsyncFunction",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.code];function i(n,t,r){if(!e.isInJSFile(n)){var i=e.getTokenAtPosition(n,r),a=e.findAncestor(i,e.isFunctionLikeDeclaration),o=null==a?void 0:a.type;if(o){var s=t.getTypeFromTypeNode(o),c=t.getAwaitedType(s)||t.getVoidType(),l=t.typeToTypeNode(c,o,void 0);return l?{returnTypeNode:o,returnType:s,promisedTypeNode:l,promisedType:c}:void 0}}}function a(n,t,r,i){n.replaceNode(t,r,e.factory.createTypeReferenceNode("Promise",[i]))}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var o=r.sourceFile,s=r.program,c=r.span,l=s.getTypeChecker(),u=i(o,s.getTypeChecker(),c.start);if(u){var d=u.returnTypeNode,p=u.returnType,f=u.promisedTypeNode,m=u.promisedType,_=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,d,f)}));return[n.createCodeFixAction(t,_,[e.Diagnostics.Replace_0_with_Promise_1,l.typeToString(p),l.typeToString(m)],t,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=i(t.file,e.program.getTypeChecker(),t.start);r&&a(n,t.file,r.returnTypeNode,r.promisedTypeNode)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="disableJsDiagnostics",r="disableJsDiagnostics",i=e.mapDefined(Object.keys(e.Diagnostics),(function(n){var t=e.Diagnostics[n];return t.category===e.DiagnosticCategory.Error?t.code:void 0}));function a(n,t,r,i){var a=e.getLineAndCharacterOfPosition(t,r).line;i&&!e.tryAddToSet(i,a)||n.insertCommentBeforeLine(t,a,r," @ts-ignore")}n.registerCodeFix({errorCodes:i,getCodeActions:function(i){var o=i.sourceFile,s=i.program,c=i.span,l=i.host,u=i.formatContext;if(e.isInJSFile(o)&&e.isCheckJsEnabledForFile(o,s.getCompilerOptions())){var d=o.checkJsDirective?"":e.getNewLineOrDefaultFromHost(l,u.options),p=[n.createCodeFixActionWithoutFixAll(t,[n.createFileTextChanges(o.fileName,[e.createTextChange(o.checkJsDirective?e.createTextSpanFromBounds(o.checkJsDirective.pos,o.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+d)])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(o,c.start)&&p.unshift(n.createCodeFixAction(t,e.textChanges.ChangeTracker.with(i,(function(e){return a(e,o,c.start)})),e.Diagnostics.Ignore_this_error_message,r,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),p}},fixIds:[r],getAllCodeActions:function(t){var r=new e.Set;return n.codeFixAll(t,i,(function(n,t){e.textChanges.isValidLocationToAddComment(t.file,t.start)&&a(n,t.file,t.start,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){function t(n){return{trackSymbol:function(){return!1},moduleResolverHost:e.getModuleSpecifierResolverHost(n.program,n.host)}}function r(n,r,a,c,l,u,d){var f=n.getDeclarations();if(f&&f.length){var _=c.program.getTypeChecker(),g=e.getEmitScriptTarget(c.program.getCompilerOptions()),y=f[0],h=e.getSynthesizedDeepClone(e.getNameOfDeclaration(y),!1),v=function(n){return 4&n?e.factory.createToken(123):16&n?e.factory.createToken(122):void 0}(e.getEffectiveModifierFlags(y)),b=v?e.factory.createNodeArray([v]):void 0,E=_.getWidenedType(_.getTypeOfSymbolAtLocation(n,r)),T=!!(16777216&n.flags),S=!!(8388608&r.flags),x=e.getQuotePreference(a,l);switch(y.kind){case 164:case 165:var L=0===x?268435456:void 0,D=_.typeToTypeNode(E,r,L,t(c));u&&(A=p(D,g))&&(D=A.typeNode,m(u,A.symbols)),d(e.factory.createPropertyDeclaration(void 0,b,h,T?e.factory.createToken(57):void 0,D,void 0));break;case 170:case 171:var A,C=_.typeToTypeNode(E,r,void 0,t(c)),I=e.getAllAccessorDeclarations(f,y),N=I.secondAccessor?[I.firstAccessor,I.secondAccessor]:[I.firstAccessor];u&&(A=p(C,g))&&(C=A.typeNode,m(u,A.symbols));for(var k=0,R=N;k<R.length;k++){var O=R[k];if(e.isGetAccessorDeclaration(O))d(e.factory.createGetAccessorDeclaration(void 0,b,h,e.emptyArray,C,S?void 0:s(x)));else{e.Debug.assertNode(O,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var P=e.getSetAccessorValueParameter(O),w=P&&e.isIdentifier(P.name)?e.idText(P.name):void 0;d(e.factory.createSetAccessorDeclaration(void 0,b,h,o(1,[w],[C],1,!1),S?void 0:s(x)))}}break;case 166:case 167:var M=_.getSignaturesOfType(E,0);if(!e.some(M))break;if(1===f.length){e.Debug.assert(1===M.length,"One declaration implies one signature"),B(x,M[0],b,h,S?void 0:s(x));break}for(var F=0,G=M;F<G.length;F++)B(x,G[F],e.getSynthesizedDeepClones(b,!1),e.getSynthesizedDeepClone(h,!1));S||(f.length>M.length?B(x,_.getSignatureFromDeclaration(f[f.length-1]),b,h,s(x)):(e.Debug.assert(f.length===M.length,"Declarations and signatures should match count"),d(function(n,r,i,a,c,l,u,d){for(var p=a[0],f=a[0].minArgumentCount,m=!1,_=0,g=a;_<g.length;_++){var y=g[_];f=Math.min(y.minArgumentCount,f),e.signatureHasRestParameter(y)&&(m=!0),y.parameters.length>=p.parameters.length&&(!e.signatureHasRestParameter(y)||e.signatureHasRestParameter(p))&&(p=y)}var h=p.parameters.length-(e.signatureHasRestParameter(p)?1:0),v=p.parameters.map((function(e){return e.name})),b=o(h,v,void 0,f,!1);if(m){var E=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(129)),T=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),v[h]||"rest",h>=f?e.factory.createToken(57):void 0,E,void 0);b.push(T)}return function(n,t,r,i,a,o,c){return e.factory.createMethodDeclaration(void 0,n,void 0,t,r?e.factory.createToken(57):void 0,void 0,a,o,s(c))}(u,c,l,0,b,function(n,r,i,a){if(e.length(n)){var o=r.getUnionType(e.map(n,r.getReturnTypeOfSignature));return r.typeToTypeNode(o,a,void 0,t(i))}}(a,n,r,i),d)}(_,c,r,M,h,T,b,x))))}}function B(e,n,t,a,o){var s=i(167,c,e,n,o,a,t,T,r,u);s&&d(s)}}function i(n,r,i,a,o,s,c,l,u,d){var f=r.program,_=f.getTypeChecker(),g=e.getEmitScriptTarget(f.getCompilerOptions()),y=1073742081|(0===i?268435456:0),h=_.signatureToSignatureDeclaration(a,n,u,y,t(r));if(h){var v=h.typeParameters,b=h.parameters,E=h.type;if(d){if(v){var T=e.sameMap(v,(function(n){var t,r=n.constraint,i=n.default;return r&&(t=p(r,g))&&(r=t.typeNode,m(d,t.symbols)),i&&(t=p(i,g))&&(i=t.typeNode,m(d,t.symbols)),e.factory.updateTypeParameterDeclaration(n,n.name,r,i)}));v!==T&&(v=e.setTextRange(e.factory.createNodeArray(T,v.hasTrailingComma),v))}var S=e.sameMap(b,(function(n){var t=p(n.type,g),r=n.type;return t&&(r=t.typeNode,m(d,t.symbols)),e.factory.updateParameterDeclaration(n,n.decorators,n.modifiers,n.dotDotDotToken,n.name,n.questionToken,r,n.initializer)}));if(b!==S&&(b=e.setTextRange(e.factory.createNodeArray(S,b.hasTrailingComma),b)),E){var x=p(E,g);x&&(E=x.typeNode,m(d,x.symbols))}}var L=l?e.factory.createToken(57):void 0,D=h.asteriskToken;return e.isFunctionExpression(h)?e.factory.updateFunctionExpression(h,c,h.asteriskToken,e.tryCast(s,e.isIdentifier),v,b,E,null!=o?o:h.body):e.isArrowFunction(h)?e.factory.updateArrowFunction(h,c,v,b,E,h.equalsGreaterThanToken,null!=o?o:h.body):e.isMethodDeclaration(h)?e.factory.updateMethodDeclaration(h,void 0,c,D,null!=s?s:e.factory.createIdentifier(""),L,v,b,E,o):void 0}}function a(n,t,r,i,a,o,s){var c=n.typeToTypeNode(r,i,o,s);if(c&&e.isImportTypeNode(c)){var l=p(c,a);l&&(m(t,l.symbols),c=l.typeNode)}return e.getSynthesizedDeepClone(c)}function o(n,t,r,i,a){for(var o=[],s=0;s<n;s++){var c=e.factory.createParameterDeclaration(void 0,void 0,void 0,t&&t[s]||"arg"+s,void 0!==i&&s>=i?e.factory.createToken(57):void 0,a?void 0:r&&r[s]||e.factory.createKeywordTypeNode(129),void 0);o.push(c)}return o}function s(n){return c(e.Diagnostics.Method_not_implemented.message,n)}function c(n,t){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(n,0===t)]))],!0)}function l(n,t,r){var i=e.getTsConfigObjectLiteralExpression(t);if(i){var a=d(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=r;s<c.length;s++){var l=c[s],p=l[0],f=l[1],m=d(o,p);void 0===m?n.insertNodeAtObjectStart(t,o,u(p,f)):n.replaceNode(t,m.initializer,f)}}else n.insertNodeAtObjectStart(t,i,u("compilerOptions",e.factory.createObjectLiteralExpression(r.map((function(e){return u(e[0],e[1])})),!0)))}}function u(n,t){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(n),t)}function d(n,t){return e.find(n.properties,(function(n){return e.isPropertyAssignment(n)&&!!n.name&&e.isStringLiteral(n.name)&&n.name.text===t}))}function p(n,t){var r,i=e.visitNode(n,(function n(i){var a;if(e.isLiteralImportTypeNode(i)&&i.qualifier){var o=e.getFirstIdentifier(i.qualifier),s=e.getNameForExportedSymbol(o.symbol,t),c=s!==o.text?f(i.qualifier,e.factory.createIdentifier(s)):i.qualifier;r=e.append(r,o.symbol);var l=null===(a=i.typeArguments)||void 0===a?void 0:a.map(n);return e.factory.createTypeReferenceNode(c,l)}return e.visitEachChild(i,n,e.nullTransformationContext)}));if(r&&i)return{typeNode:i,symbols:r}}function f(n,t){return 79===n.kind?t:e.factory.createQualifiedName(f(n.left,t),n.right)}function m(e,n){n.forEach((function(n){return e.addImportFromExportedSymbol(n,!0)}))}n.createMissingMemberNodes=function(e,n,t,i,a,o,s){for(var c=e.symbol.members,l=0,u=n;l<u.length;l++){var d=u[l];c.has(d.escapedName)||r(d,e,t,i,a,o,s)}},n.getNoopSymbolTrackerWithResolver=t,n.createSignatureDeclarationFromSignature=i,n.createSignatureDeclarationFromCallExpression=function(n,r,i,l,u,d,p){var f=e.getQuotePreference(r.sourceFile,r.preferences),m=e.getEmitScriptTarget(r.program.getCompilerOptions()),_=t(r),g=r.program.getTypeChecker(),y=e.isInJSFile(p),h=l.typeArguments,v=l.arguments,b=l.parent,E=y?void 0:g.getContextualType(l),T=e.map(v,(function(n){return e.isIdentifier(n)?n.text:e.isPropertyAccessExpression(n)&&e.isIdentifier(n.name)?n.name.text:void 0})),S=y?[]:e.map(v,(function(e){return a(g,i,g.getBaseTypeOfLiteralType(g.getTypeAtLocation(e)),p,m,void 0,_)})),x=d?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(d)):void 0,L=e.isYieldExpression(b)?e.factory.createToken(41):void 0,D=y||void 0===h?void 0:e.map(h,(function(n,t){return e.factory.createTypeParameterDeclaration(84+h.length-1<=90?String.fromCharCode(84+t):"T"+t)})),A=o(v.length,T,S,void 0,y),C=y||void 0===E?void 0:g.typeToTypeNode(E,p,void 0,_);return 167===n?e.factory.createMethodDeclaration(void 0,x,L,u,void 0,D,A,C,e.isInterfaceDeclaration(p)?void 0:s(f)):e.factory.createFunctionDeclaration(void 0,x,L,u,D,A,C,c(e.Diagnostics.Function_not_implemented.message,f))},n.typeToAutoImportableTypeNode=a,n.createStubbedBody=c,n.setJsonCompilerOptionValues=l,n.setJsonCompilerOptionValue=function(e,n,t,r){l(e,n,[[t,r]])},n.createJsonPropertyAssignment=u,n.findJsonProperty=d,n.tryGetAutoImportableReferenceFromTypeNode=p,n.importSymbols=m}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){function t(n){return e.isParameterPropertyDeclaration(n,n.parent)||e.isPropertyDeclaration(n)||e.isPropertyAssignment(n)}function r(n,t){return e.isIdentifier(t)?e.factory.createIdentifier(n):e.factory.createStringLiteral(n)}function a(n,t,r){var i=t?r.name:e.factory.createThis();return e.isIdentifier(n)?e.factory.createPropertyAccessExpression(i,n):e.factory.createElementAccessExpression(i,e.factory.createStringLiteralFromNode(n))}function o(n,i,a,o,s){void 0===s&&(s=!0);var l=e.getTokenAtPosition(n,a),u=a===o&&s,d=e.findAncestor(l.parent,t);if(!d||!e.nodeOverlapsWithStartEnd(d.name,n,a,o)&&!u)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!function(n){return e.isIdentifier(n)||e.isStringLiteral(n)}(d.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if(124!=(124|e.getEffectiveModifierFlags(d)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var p=d.name.text,f=e.startsWithUnderscore(p),m=r(f?p:e.getUniqueName("_"+p,n),d.name),_=r(f?e.getUniqueName(p.substring(1),n):p,d.name);return{isStatic:e.hasStaticModifier(d),isReadonly:e.hasEffectiveReadonlyModifier(d),type:c(d,i),container:162===d.kind?d.parent.parent:d.parent,originalName:d.name.text,declaration:d,fieldName:m,accessorName:_,renameAccessor:f}}function s(n,t,r,i,a){e.isParameterPropertyDeclaration(i,i.parent)?n.insertNodeAtClassStart(t,a,r):e.isPropertyAssignment(i)?n.insertNodeAfterComma(t,i,r):n.insertNodeAfter(t,i,r)}function c(n,t){var r=e.getTypeAnnotationNode(n);if(e.isPropertyDeclaration(n)&&r&&n.questionToken){var a=t.getTypeChecker(),o=a.getTypeFromTypeNode(r);if(!a.isTypeAssignableTo(a.getUndefinedType(),o)){var s=e.isUnionTypeNode(r)?r.types:[r];return e.factory.createUnionTypeNode(i(i([],s,!0),[e.factory.createKeywordTypeNode(151)],!1))}}return r}n.generateAccessorFromProperty=function(n,t,r,i,c,l){var u=o(n,t,r,i);if(u&&!e.refactor.isRefactorErrorInfo(u)){var d,p,f=e.textChanges.ChangeTracker.fromContext(c),m=u.isStatic,_=u.isReadonly,g=u.fieldName,y=u.accessorName,h=u.originalName,v=u.type,b=u.container,E=u.declaration;if(e.suppressLeadingAndTrailingTrivia(g),e.suppressLeadingAndTrailingTrivia(y),e.suppressLeadingAndTrailingTrivia(E),e.suppressLeadingAndTrailingTrivia(b),e.isClassLike(b)){var T=e.getEffectiveModifierFlags(E);if(e.isSourceFileJS(n)){var S=e.createModifiers(T);d=S,p=S}else d=e.createModifiers(function(e){return e&=-65,16&(e&=-9)||(e|=4),e}(T)),p=e.createModifiers(function(e){return e&=-5,e&=-17,e|=8}(T))}!function(n,t,r,i,a,o){e.isPropertyDeclaration(r)?function(n,t,r,i,a,o){var s=e.factory.updatePropertyDeclaration(r,r.decorators,o,a,r.questionToken||r.exclamationToken,i,r.initializer);n.replaceNode(t,r,s)}(n,t,r,i,a,o):e.isPropertyAssignment(r)?function(n,t,r,i){var a=e.factory.updatePropertyAssignment(r,i,r.initializer);n.replacePropertyAssignment(t,r,a)}(n,t,r,a):n.replaceNode(t,r,e.factory.updateParameterDeclaration(r,r.decorators,o,r.dotDotDotToken,e.cast(a,e.isIdentifier),r.questionToken,r.type,r.initializer))}(f,n,E,v,g,p);var x=function(n,t,r,i,o,s){return e.factory.createGetAccessorDeclaration(void 0,i,t,void 0,r,e.factory.createBlock([e.factory.createReturnStatement(a(n,o,s))],!0))}(g,y,v,d,m,b);if(e.suppressLeadingAndTrailingTrivia(x),s(f,n,x,E,b),_){var L=e.getFirstConstructorWithBody(b);L&&function(n,t,r,i,a){r.body&&r.body.forEachChild((function r(o){e.isElementAccessExpression(o)&&108===o.expression.kind&&e.isStringLiteral(o.argumentExpression)&&o.argumentExpression.text===a&&e.isWriteAccess(o)&&n.replaceNode(t,o.argumentExpression,e.factory.createStringLiteral(i)),e.isPropertyAccessExpression(o)&&108===o.expression.kind&&o.name.text===a&&e.isWriteAccess(o)&&n.replaceNode(t,o.name,e.factory.createIdentifier(i)),e.isFunctionLike(o)||e.isClassLike(o)||o.forEachChild(r)}))}(f,n,L,g.text,h)}else{var D=function(n,t,r,i,o,s){return e.factory.createSetAccessorDeclaration(void 0,i,t,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,r)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(a(n,o,s),e.factory.createIdentifier("value")))],!0))}(g,y,v,d,m,b);e.suppressLeadingAndTrailingTrivia(D),s(f,n,D,E,b)}return f.getChanges()}},n.getAccessorConvertiblePropertyAtPosition=o,n.getAllSupers=function(n,t){for(var r=[];n;){var i=e.getClassExtendsHeritageElement(n),a=i&&t.getSymbolAtLocation(i.expression);if(!a)break;var o=2097152&a.flags?t.getAliasedSymbol(a):a,s=o.declarations&&e.find(o.declarations,e.isClassLike);if(!s)break;r.push(s),n=s}return r}}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="invalidImportSyntax";function r(r,i,a,o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return e.replaceNode(i,a,o)}));return n.createCodeFixActionWithoutFixAll(t,s,[e.Diagnostics.Replace_import_with_0,s[0].textChanges[0].newText])}function i(i,a){var o=i.program.getTypeChecker().getTypeAtLocation(a);if(!o.symbol||!o.symbol.originatingImport)return[];var s=[],c=o.symbol.originatingImport;if(e.isImportCall(c)||e.addRange(s,function(n,t){var i=e.getSourceFileOfNode(t),a=e.getNamespaceDeclarationNode(t),o=n.program.getCompilerOptions(),s=[];return s.push(r(n,i,t,e.makeImport(a.name,void 0,t.moduleSpecifier,e.getQuotePreference(i,n.preferences)))),e.getEmitModuleKind(o)===e.ModuleKind.CommonJS&&s.push(r(n,i,t,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,a.name,e.factory.createExternalModuleReference(t.moduleSpecifier)))),s}(i,c)),e.isExpression(a)&&(!e.isNamedDeclaration(a.parent)||a.parent.name!==a)){var l=i.sourceFile,u=e.textChanges.ChangeTracker.with(i,(function(n){return n.replaceNode(l,a,e.factory.createPropertyAccessExpression(a,"default"),{})}));s.push(n.createCodeFixActionWithoutFixAll(t,u,e.Diagnostics.Use_synthetic_default_member))}return s}n.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:function(n){var t=n.sourceFile,r=e.Diagnostics.This_expression_is_not_callable.code===n.errorCode?206:207,a=e.findAncestor(e.getTokenAtPosition(t,n.span.start),(function(e){return e.kind===r}));return a?i(n,a.expression):[]}}),n.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:function(n){var t=n.sourceFile,r=e.findAncestor(e.getTokenAtPosition(t,n.span.start),(function(e){return e.getStart()===n.span.start&&e.getEnd()===n.span.start+n.span.length}));return r?i(n,r):[]}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="strictClassInitialization",r="addMissingPropertyDefiniteAssignmentAssertions",i="addMissingPropertyUndefinedType",a="addMissingPropertyInitializer",o=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function s(n,t){var r=e.getTokenAtPosition(n,t);return e.isIdentifier(r)?e.cast(r.parent,e.isPropertyDeclaration):void 0}function c(i,a){var o=e.textChanges.ChangeTracker.with(i,(function(e){return l(e,i.sourceFile,a)}));return n.createCodeFixAction(t,o,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,a.getText()],r,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function l(n,t,r){var i=e.factory.updatePropertyDeclaration(r,r.decorators,r.modifiers,r.name,e.factory.createToken(53),r.type,r.initializer);n.replaceNode(t,r,i)}function u(r,a){var o=e.textChanges.ChangeTracker.with(r,(function(e){return d(e,r.sourceFile,a)}));return n.createCodeFixAction(t,o,[e.Diagnostics.Add_undefined_type_to_property_0,a.name.getText()],i,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function d(n,t,r){var i=e.factory.createKeywordTypeNode(151),a=r.type,o=e.isUnionTypeNode(a)?a.types.concat(i):[a,i];n.replaceNode(t,a,e.factory.createUnionTypeNode(o))}function p(n,t,r,i){var a=e.factory.updatePropertyDeclaration(r,r.decorators,r.modifiers,r.name,r.questionToken,r.type,i);n.replaceNode(t,r,a)}function f(e,n){return m(e,e.getTypeFromTypeNode(n.type))}function m(n,t){if(512&t.flags)return t===n.getFalseType()||t===n.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(t.isStringLiteral())return e.factory.createStringLiteral(t.value);if(t.isNumberLiteral())return e.factory.createNumericLiteral(t.value);if(2048&t.flags)return e.factory.createBigIntLiteral(t.value);if(t.isUnion())return e.firstDefined(t.types,(function(e){return m(n,e)}));if(t.isClass()){var r=e.getClassLikeDeclarationOfSymbol(t.symbol);if(!r||e.hasSyntacticModifier(r,128))return;var i=e.getFirstConstructorWithBody(r);if(i&&i.parameters.length)return;return e.factory.createNewExpression(e.factory.createIdentifier(t.symbol.name),void 0,void 0)}return n.isArrayLikeType(t)?e.factory.createArrayLiteralExpression():void 0}n.registerCodeFix({errorCodes:o,getCodeActions:function(r){var i=s(r.sourceFile,r.span.start);if(i){var o=[u(r,i),c(r,i)];return e.append(o,function(r,i){var o=f(r.program.getTypeChecker(),i);if(o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.sourceFile,i,o)}));return n.createCodeFixAction(t,s,[e.Diagnostics.Add_initializer_to_property_0,i.name.getText()],a,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}}(r,i)),o}},fixIds:[r,i,a],getAllCodeActions:function(t){return n.codeFixAll(t,o,(function(n,o){var c=s(o.file,o.start);if(c)switch(t.fixId){case r:l(n,o.file,c);break;case i:d(n,o.file,c);break;case a:var u=f(t.program.getTypeChecker(),c);if(!u)return;p(n,o.file,c,u);break;default:e.Debug.fail(JSON.stringify(t.fixId))}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="requireInTs",r=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];function i(n,t,r){var i=r.allowSyntheticDefaults,a=r.defaultImportName,o=r.namedImports,s=r.statement,c=r.required;n.replaceNode(t,s,a&&!i?e.factory.createImportEqualsDeclaration(void 0,void 0,!1,a,e.factory.createExternalModuleReference(c)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,a,o),c))}function a(n,t,r){var i=e.getTokenAtPosition(n,r).parent;if(!e.isRequireCall(i,!0))throw e.Debug.failBadSyntaxKind(i);var a=e.cast(i.parent,e.isVariableDeclaration),o=e.tryCast(a.name,e.isIdentifier),s=e.isObjectBindingPattern(a.name)?function(n){for(var t=[],r=0,i=n.elements;r<i.length;r++){var a=i[r];if(!e.isIdentifier(a.name)||a.initializer)return;t.push(e.factory.createImportSpecifier(e.tryCast(a.propertyName,e.isIdentifier),a.name))}if(t.length)return e.factory.createNamedImports(t)}(a.name):void 0;if(o||s)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(t.getCompilerOptions()),defaultImportName:o,namedImports:s,statement:e.cast(a.parent.parent,e.isVariableStatement),required:e.first(i.arguments)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=a(r.sourceFile,r.program,r.span.start);if(o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,o)}));return[n.createCodeFixAction(t,s,e.Diagnostics.Convert_require_to_import,t,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=a(t.file,e.program,t.start);r&&i(n,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="useDefaultImport",r=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];function i(n,t){var r=e.getTokenAtPosition(n,t);if(e.isIdentifier(r)){var i=r.parent;if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(e.isNamespaceImport(i)){var a=i.parent.parent;return{importNode:a,name:r,moduleSpecifier:a.moduleSpecifier}}}}function a(n,t,r,i){n.replaceNode(t,r.importNode,e.makeImport(r.name,void 0,r.moduleSpecifier,e.getQuotePreference(t,i)))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span.start,c=i(o,s);if(c){var l=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,c,r.preferences)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Convert_to_default_import,t,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=i(t.file,t.start);r&&a(n,t.file,r,e.preferences)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="useBigintLiteral",r=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function i(n,t,r){var i=e.tryCast(e.getTokenAtPosition(t,r.start),e.isNumericLiteral);if(i){var a=i.getText(t)+"n";n.replaceNode(t,i,e.factory.createBigIntLiteral(a))}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span)}));if(a.length>0)return[n.createCodeFixAction(t,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,t,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return i(e,n.file,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixAddModuleReferTypeMissingTypeof",r=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(n,t){var r=e.getTokenAtPosition(n,t);return e.Debug.assert(100===r.kind,"This token should be an ImportKeyword"),e.Debug.assert(198===r.parent.kind,"Token parent should be an ImportType"),r.parent}function a(n,t,r){var i=e.factory.updateImportTypeNode(r,r.argument,r.qualifier,r.typeArguments,!0);n.replaceNode(t,r,i)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,c)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Add_missing_typeof,t,e.Diagnostics.Add_missing_typeof)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return a(n,e.sourceFile,i(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="wrapJsxInFragment",r=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(n,t){var r=e.getTokenAtPosition(n,t).parent.parent;if((e.isBinaryExpression(r)||(r=r.parent,e.isBinaryExpression(r)))&&e.nodeIsMissing(r.operatorToken))return r}function a(n,t,r){var i=function(n){for(var t=[],r=n;;){if(e.isBinaryExpression(r)&&e.nodeIsMissing(r.operatorToken)&&27===r.operatorToken.kind){if(t.push(r.left),e.isJsxChild(r.right))return t.push(r.right),t;if(e.isBinaryExpression(r.right)){r=r.right;continue}return}return}}(r);i&&n.replaceNode(t,r,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,c)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Wrap_in_JSX_fragment,t,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=i(e.sourceFile,t.start);r&&a(n,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="fixConvertToMappedObjectType",r=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function a(n,t){var r=e.getTokenAtPosition(n,t),i=e.cast(r.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(i.parent))return{indexSignature:i,container:e.isInterfaceDeclaration(i.parent)?i.parent:e.cast(i.parent.parent,e.isTypeAliasDeclaration)}}function o(n,t,r){var a,o,s=r.indexSignature,c=r.container,l=(e.isInterfaceDeclaration(c)?c.members:c.type.members).filter((function(n){return!e.isIndexSignatureDeclaration(n)})),u=e.first(s.parameters),d=e.factory.createTypeParameterDeclaration(e.cast(u.name,e.isIdentifier),u.type),p=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(s)?e.factory.createModifier(143):void 0,d,void 0,s.questionToken,s.type),f=e.factory.createIntersectionTypeNode(i(i(i([],e.getAllSuperTypeNodes(c),!0),[p],!1),l.length?[e.factory.createTypeLiteralNode(l)]:e.emptyArray,!0));n.replaceNode(t,c,(a=c,o=f,e.factory.createTypeAliasDeclaration(a.decorators,a.modifiers,a.name,a.typeParameters,o)))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.sourceFile,s=r.span,c=a(i,s.start);if(c){var l=e.textChanges.ChangeTracker.with(r,(function(e){return o(e,i,c)})),u=e.idText(c.container.name);return[n.createCodeFixAction(t,l,[e.Diagnostics.Convert_0_to_mapped_object_type,u],t,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=a(n.file,n.start);t&&o(e,n.file,t)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var n,t,r;n=e.codefix||(e.codefix={}),t="removeAccidentalCallParentheses",r=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.findAncestor(e.getTokenAtPosition(r.sourceFile,r.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(r,(function(e){e.deleteRange(r.sourceFile,{pos:i.expression.end,end:i.end})}));return[n.createCodeFixActionWithoutFixAll(t,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[t]})}(u||(u={})),function(e){!function(n){var t="removeUnnecessaryAwait",r=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(n,t,r){var i=e.tryCast(e.getTokenAtPosition(t,r.start),(function(e){return 131===e.kind})),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a;if(e.isParenthesizedExpression(a.parent)){var s=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(a.parent.pos,t);c&&103!==c.kind&&(o=a.parent)}}n.replaceNode(t,o,a.expression)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span)}));if(a.length>0)return[n.createCodeFixAction(t,a,e.Diagnostics.Remove_unnecessary_await,t,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return i(e,n.file,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],r="splitTypeOnlyImport";function i(n,t){return e.findAncestor(e.getTokenAtPosition(n,t.start),e.isImportDeclaration)}function a(n,t,r){if(t){var i=e.Debug.checkDefined(t.importClause);n.replaceNode(r.sourceFile,t,e.factory.updateImportDeclaration(t,t.decorators,t.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier)),n.insertNodeAfter(r.sourceFile,t,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier))}}n.registerCodeFix({errorCodes:t,fixIds:[r],getCodeActions:function(t){var o=e.textChanges.ChangeTracker.with(t,(function(e){return a(e,i(t.sourceFile,t.span),t)}));if(o.length)return[n.createCodeFixAction(r,o,e.Diagnostics.Split_into_two_separate_import_declarations,r,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return n.codeFixAll(e,t,(function(n,t){a(n,i(e.sourceFile,t),e)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var n,t,r;n=e.codefix||(e.codefix={}),t="fixConvertConstToLet",r=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code],n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.sourceFile,a=r.span,o=r.program,s=function(n,t,r){var i,a=r.getTypeChecker().getSymbolAtLocation(e.getTokenAtPosition(n,t)),o=e.tryCast(null===(i=null==a?void 0:a.valueDeclaration)||void 0===i?void 0:i.parent,e.isVariableDeclarationList);if(void 0!==o){var s=e.findChildOfKind(o,85,n);if(void 0!==s)return e.createRange(s.pos,s.end)}}(i,a.start,o);if(void 0!==s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return function(e,n,t){e.replaceRangeWithText(n,t,"let")}(e,i,s)}));return[n.createCodeFixAction(t,c,e.Diagnostics.Convert_const_to_let,t,e.Diagnostics.Convert_const_to_let)]}},fixIds:[t]})}(u||(u={})),function(e){!function(n){var t="fixExpectedComma",r=[e.Diagnostics._0_expected.code];function i(n,t,r){var i=e.getTokenAtPosition(n,t);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(n,t,r){var i=r.node,a=e.factory.createToken(27);n.replaceNode(t,i,a)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=i(o,r.span.start,r.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,s)}));return[n.createCodeFixAction(t,c,[e.Diagnostics.Change_0_to_1,";",","],t,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=i(t.file,t.start,t.code);r&&a(n,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="addVoidToPromise",r=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(n,t,r,i,a){var o=e.getTokenAtPosition(t,r.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=i.getTypeChecker(),c=s.getSymbolAtLocation(o),l=null==c?void 0:c.valueDeclaration;if(l&&e.isParameter(l)&&e.isNewExpression(l.parent.parent)&&!(null==a?void 0:a.has(l))){null==a||a.add(l);var u=function(n){var t;if(!e.isInJSFile(n))return n.typeArguments;if(e.isParenthesizedExpression(n.parent)){var r=null===(t=e.getJSDocTypeTag(n.parent))||void 0===t?void 0:t.typeExpression.type;if(r&&e.isTypeReferenceNode(r)&&e.isIdentifier(r.typeName)&&"Promise"===e.idText(r.typeName))return r.typeArguments}}(l.parent.parent);if(e.some(u)){var d=u[0],p=!e.isUnionTypeNode(d)&&!e.isParenthesizedTypeNode(d)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([d,e.factory.createKeywordTypeNode(114)]).types[0]);p&&n.insertText(t,d.pos,"("),n.insertText(t,d.end,p?") | void":" | void")}else{var f=s.getResolvedSignature(o.parent),m=null==f?void 0:f.parameters[0],_=m&&s.getTypeOfSymbolAtLocation(m,l.parent.parent);e.isInJSFile(l)?(!_||3&_.flags)&&(n.insertText(t,l.parent.parent.end,")"),n.insertText(t,e.skipTrivia(t.text,l.parent.parent.pos),"/** @type {Promise<void>} */(")):(!_||2&_.flags)&&n.insertText(t,l.parent.parent.expression.end,"<void>")}}}}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span,r.program)}));if(a.length>0)return[n.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,t,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(t){return n.codeFixAll(t,r,(function(n,r){return i(n,r.file,r,t.program,new e.Set)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(n){var t="Convert export",r={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},i={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function o(n,t){void 0===t&&(t=!0);var r=n.file,i=n.program,a=e.getRefactorContextSpan(n),o=e.getTokenAtPosition(r,a.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&t?o.parent:e.getParentNodeInSpan(o,r,a);if(!s||!(e.isSourceFile(s.parent)||e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var c=e.isSourceFile(s.parent)?s.parent.symbol:s.parent.parent.symbol,l=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?513:0),u=!!(512&l);if(!(1&l)||!u&&c.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var d=i.getTypeChecker(),p=function(n){return e.isIdentifier(n)&&d.getSymbolAtLocation(n)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(s.kind){case 254:case 255:case 256:case 258:case 257:case 259:if(!(_=s).name)return;return p(_.name)||{exportNode:_,exportName:_.name,wasDefault:u,exportingModuleSymbol:c};case 235:var f=s;if(!(2&f.declarationList.flags)||1!==f.declarationList.declarations.length)return;var m=e.first(f.declarationList.declarations);if(!m.initializer)return;return e.Debug.assert(!u,"Can't have a default flag here"),p(m.name)||{exportNode:f,exportName:m.name,wasDefault:u,exportingModuleSymbol:c};case 269:var _;if((_=s).isExportEquals)return;return p(_.expression)||{exportNode:_,exportName:_.expression,wasDefault:u,exportingModuleSymbol:c};default:return}}function s(n,t){return e.factory.createImportSpecifier(n===t?void 0:e.factory.createIdentifier(n),e.factory.createIdentifier(t))}function c(n,t){return e.factory.createExportSpecifier(n===t?void 0:e.factory.createIdentifier(n),e.factory.createIdentifier(t))}n.registerRefactor(t,{kinds:[r.kind,i.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);if(!c)return e.emptyArray;if(!n.isRefactorErrorInfo(c)){var l=c.wasDefault?r:i;return[{name:t,description:l.description,actions:[l]}]}return s.preferences.provideRefactorNotApplicableReason?[{name:t,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[a(a({},r),{notApplicableReason:c.error}),a(a({},i),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(t,a){e.Debug.assert(a===r.name||a===i.name,"Unexpected action name");var l=o(t);e.Debug.assert(l&&!n.isRefactorErrorInfo(l),"Expected applicable refactor info");var u=e.textChanges.ChangeTracker.with(t,(function(n){return function(n,t,r,i,a){(function(n,t,r,i){var a=t.wasDefault,o=t.exportNode,s=t.exportName;if(a)if(e.isExportAssignment(o)&&!o.isExportEquals){var l=o.expression,u=c(l.text,l.text);r.replaceNode(n,o,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([u])))}else r.delete(n,e.Debug.checkDefined(e.findModifier(o,88),"Should find a default keyword in modifier list"));else{var d=e.Debug.checkDefined(e.findModifier(o,93),"Should find an export keyword in modifier list");switch(o.kind){case 254:case 255:case 256:r.insertNodeAfter(n,d,e.factory.createToken(88));break;case 235:var p=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,n)&&!p.type){r.replaceNode(n,o,e.factory.createExportDefault(e.Debug.checkDefined(p.initializer,"Initializer was previously known to be present")));break}case 258:case 257:case 259:r.deleteModifier(n,d),r.insertNodeAfter(n,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.fail("Unexpected exportNode kind "+o.kind)}}})(n,r,i,t.getTypeChecker()),function(n,t,r,i){var a=t.wasDefault,o=t.exportName,l=t.exportingModuleSymbol,u=n.getTypeChecker(),d=e.Debug.checkDefined(u.getSymbolAtLocation(o),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(n.getSourceFiles(),u,i,d,l,o.text,a,(function(n){var t=n.getSourceFile();a?function(n,t,r,i){var a=t.parent;switch(a.kind){case 204:r.replaceNode(n,t,e.factory.createIdentifier(i));break;case 268:case 273:var o=a;r.replaceNode(n,o,s(i,o.name.text));break;case 265:var c=a;e.Debug.assert(c.name===t,"Import clause name should match provided ref"),o=s(i,t.text);var l=c.namedBindings;if(l)if(266===l.kind){r.deleteRange(n,{pos:t.getStart(n),end:l.getStart(n)});var u=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,n):1,d=e.makeImport(void 0,[s(i,t.text)],c.parent.moduleSpecifier,u);r.insertNodeAfter(n,c.parent,d)}else r.delete(n,t),r.insertNodeAtEndOfList(n,l.elements,o);else r.replaceNode(n,t,e.factory.createNamedImports([o]));break;default:e.Debug.failBadSyntaxKind(a)}}(t,n,r,o.text):function(n,t,r){var i=t.parent;switch(i.kind){case 204:r.replaceNode(n,t,e.factory.createIdentifier("default"));break;case 268:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?r.replaceNode(n,i.parent,a):(r.delete(n,i),r.insertNodeBefore(n,i.parent,a));break;case 273:r.replaceNode(n,i,c("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind "+i.kind)}}(t,n,r)}))}(t,r,i,a)}(t.file,t.program,l,n,t.cancellationToken)}));return{edits:u,renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(n){var t="Convert import",r={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},i={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};function o(n,t){void 0===t&&(t=!0);var r=n.file,i=e.getRefactorContextSpan(n),a=e.getTokenAtPosition(r,i.start),o=t?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,r,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};if(!(o.getEnd()<i.start+i.length)){var s=o.importClause;return s?s.namedBindings?s.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 s(n){return e.isPropertyAccessExpression(n)?n.name:n.right}function c(n,t,r){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,t,r&&r.length?e.factory.createNamedImports(r):void 0),n.moduleSpecifier)}n.registerRefactor(t,{kinds:[r.kind,i.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);if(!c)return e.emptyArray;if(!n.isRefactorErrorInfo(c)){var l=266===c.kind?r:i;return[{name:t,description:l.description,actions:[l]}]}return s.preferences.provideRefactorNotApplicableReason?[{name:t,description:r.description,actions:[a(a({},r),{notApplicableReason:c.error})]},{name:t,description:i.description,actions:[a(a({},i),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(t,a){e.Debug.assert(a===r.name||a===i.name,"Unexpected action name");var l=o(t);return e.Debug.assert(l&&!n.isRefactorErrorInfo(l),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(t,(function(n){return r=t.file,i=t.program,a=n,o=l,u=i.getTypeChecker(),void(266===o.kind?function(n,t,r,i,a){var o=!1,l=[],u=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,t,n,(function(n){if(e.isPropertyAccessOrQualifiedName(n.parent)){var r=s(n.parent).text;t.resolveName(r,n,67108863,!0)&&u.set(r,!0),e.Debug.assert(function(n){return e.isPropertyAccessExpression(n)?n.expression:n.left}(n.parent)===n,"Parent expression should match id"),l.push(n.parent)}else o=!0}));for(var d=new e.Map,p=0,f=l;p<f.length;p++){var m=f[p],_=s(m).text,g=d.get(_);void 0===g&&d.set(_,g=u.has(_)?e.getUniqueName(_,n):_),r.replaceNode(n,m,e.factory.createIdentifier(g))}var y=[];d.forEach((function(n,t){y.push(e.factory.createImportSpecifier(n===t?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(n)))}));var h=i.parent.parent;o&&!a?r.insertNodeAfter(n,h,c(h,void 0,y)):r.replaceNode(n,h,c(h,o?e.factory.createIdentifier(i.name.text):void 0,y))}(r,u,a,o,e.getAllowSyntheticDefaultImports(i.getCompilerOptions())):function(n,t,r,i){var a=i.parent.parent,o=a.moduleSpecifier,s=new e.Set;i.elements.forEach((function(e){var n=t.getSymbolAtLocation(e.name);n&&s.add(n)}));var l=o&&e.isStringLiteral(o)?e.codefix.moduleSpecifierToValidIdentifier(o.text,99):"module";for(var u=i.elements.some((function(r){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,t,n,(function(n){var r=t.resolveName(l,n,67108863,!0);return!!r&&(!s.has(r)||e.isExportSpecifier(n.parent))}))}))?e.getUniqueName(l,n):l,d=new e.Set,p=function(i){var a=(i.propertyName||i.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,t,n,(function(t){var o=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(u),a);e.isShorthandPropertyAssignment(t.parent)?r.replaceNode(n,t.parent,e.factory.createPropertyAssignment(t.text,o)):e.isExportSpecifier(t.parent)?d.add(i):r.replaceNode(n,t,o)}))},f=0,m=i.elements;f<m.length;f++)p(m[f]);if(r.replaceNode(n,i,e.factory.createNamespaceImport(e.factory.createIdentifier(u))),d.size){var _=e.arrayFrom(d.values()).map((function(n){return e.factory.createImportSpecifier(n.propertyName&&e.factory.createIdentifier(n.propertyName.text),e.factory.createIdentifier(n.name.text))}));r.insertNodeAfter(n,i.parent.parent,c(a,void 0,_))}}(r,u,a,o));var r,i,a,o,u})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){var n;(function(t){var r="Convert to optional chain expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),o={name:r,description:i,kind:"refactor.rewrite.expression.optionalChain"};function s(n){return e.isBinaryExpression(n)||e.isConditionalExpression(n)}function c(n){return s(n)||function(n){return e.isExpressionStatement(n)||e.isReturnStatement(n)||e.isVariableStatement(n)}(n)}function l(n,t){void 0===t&&(t=!0);var r=n.file,i=n.program,a=e.getRefactorContextSpan(n),o=0===a.length;if(!o||t){var l=e.getTokenAtPosition(r,a.start),p=e.findTokenOnLeftOfPosition(r,a.start+a.length),m=e.createTextSpanFromBounds(l.pos,p&&p.end>=l.pos?p.getEnd():l.getEnd()),_=o?function(e){for(;e.parent;){if(c(e)&&!c(e.parent))return e;e=e.parent}}(l):function(e,n){for(;e.parent;){if(c(e)&&0!==n.length&&e.end>=n.start+n.length)return e;e=e.parent}}(l,m),g=_&&c(_)?function(n){if(s(n))return n;if(e.isVariableStatement(n)){var t=e.getSingleVariableOfVariableStatement(n),r=null==t?void 0:t.initializer;return r&&s(r)?r:void 0}return n.expression&&s(n.expression)?n.expression:void 0}(_):void 0;if(!g)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var y=i.getTypeChecker();return e.isConditionalExpression(g)?function(n,t){var r=n.condition,i=f(n.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(r)||e.isIdentifier(r))&&d(r,i.expression))return{finalExpression:i,occurrences:[r],expression:n};if(e.isBinaryExpression(r)){var a=u(i.expression,r);return a?{finalExpression:i,occurrences:a,expression:n}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(g,y):function(n){if(55!==n.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var t=f(n.right);if(!t)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var r=u(t.expression,n.left);return r?{finalExpression:t,occurrences:r,expression:n}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(g)}}function u(n,t){for(var r=[];e.isBinaryExpression(t)&&55===t.operatorToken.kind;){var i=d(e.skipParentheses(n),e.skipParentheses(t.right));if(!i)break;r.push(i),n=i,t=t.left}var a=d(n,t);return a&&r.push(a),r.length>0?r:void 0}function d(n,t){if(e.isIdentifier(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))return function(n,t){for(;(e.isCallExpression(n)||e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n))&&p(n)!==p(t);)n=n.expression;for(;e.isPropertyAccessExpression(n)&&e.isPropertyAccessExpression(t)||e.isElementAccessExpression(n)&&e.isElementAccessExpression(t);){if(p(n)!==p(t))return!1;n=n.expression,t=t.expression}return e.isIdentifier(n)&&e.isIdentifier(t)&&n.getText()===t.getText()}(n,t)?t:void 0}function p(n){return e.isIdentifier(n)||e.isStringOrNumericLiteralLike(n)?n.getText():e.isPropertyAccessExpression(n)?p(n.name):e.isElementAccessExpression(n)?p(n.argumentExpression):void 0}function f(n){return n=e.skipParentheses(n),e.isBinaryExpression(n)?f(n.left):(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)||e.isCallExpression(n))&&!e.isOptionalChain(n)?n:void 0}function m(n,t,r){if(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t)){var i=m(n,t.expression,r),a=r.length>0?r[r.length-1]:void 0,o=(null==a?void 0:a.getText())===t.expression.getText();if(o&&r.pop(),e.isCallExpression(t))return o?e.factory.createCallChain(i,e.factory.createToken(28),t.typeArguments,t.arguments):e.factory.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(e.isPropertyAccessExpression(t))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),t.name):e.factory.createPropertyAccessChain(i,t.questionDotToken,t.name);if(e.isElementAccessExpression(t))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),t.argumentExpression):e.factory.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}n.registerRefactor(r,{kinds:[o.kind],getAvailableActions:function(t){var s=l(t,"invoked"===t.triggerReason);return s?n.isRefactorErrorInfo(s)?t.preferences.provideRefactorNotApplicableReason?[{name:r,description:i,actions:[a(a({},o),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:r,description:i,actions:[o]}]:e.emptyArray},getEditsForAction:function(t,r){var i=l(t);return e.Debug.assert(i&&!n.isRefactorErrorInfo(i),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(t,(function(n){return function(n,t,r,i,a){var o=i.finalExpression,s=i.occurrences,c=i.expression,l=s[s.length-1],u=m(t,o,s);u&&(e.isPropertyAccessExpression(u)||e.isElementAccessExpression(u)||e.isCallExpression(u))&&(e.isBinaryExpression(c)?r.replaceNodeRange(n,l,o,u):e.isConditionalExpression(c)&&r.replaceNode(n,c,e.factory.createBinaryExpression(u,e.factory.createToken(60),c.whenFalse)))}(t.file,t.program.getTypeChecker(),n,i)})),renameFilename:void 0,renameLocation:void 0}}})})((n=e.refactor||(e.refactor={})).convertToOptionalChainExpression||(n.convertToOptionalChainExpression={}))}(u||(u={})),function(e){var n;(function(t){var r="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message,a={name:r,description:i,kind:"refactor.rewrite.function.overloadList"};function o(e){switch(e.kind){case 166:case 167:case 172:case 169:case 173:case 254:return!0}return!1}function s(n,t,r){var i=e.getTokenAtPosition(n,t),a=e.findAncestor(i,o);if(a){var s=r.getTypeChecker(),c=a.symbol;if(c){var l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,(function(t){return e.getSourceFileOfNode(t)===n}))&&o(l[0])){var u=l[0].kind;if(e.every(l,(function(e){return e.kind===u}))){var d=l;if(!e.some(d,(function(n){return!!n.typeParameters||e.some(n.parameters,(function(n){return!!n.decorators||!!n.modifiers||!e.isIdentifier(n.name)}))}))){var p=e.mapDefined(d,(function(e){return s.getSignatureFromDeclaration(e)}));if(e.length(p)===e.length(l)){var f=s.getReturnTypeOfSignature(p[0]);if(e.every(p,(function(e){return s.getReturnTypeOfSignature(e)===f})))return d}}}}}}}n.registerRefactor(r,{kinds:[a.kind],getEditsForAction:function(n){var t=n.file,r=n.startPosition,i=n.program,a=s(t,r,i);if(a){var o=i.getTypeChecker(),c=a[a.length-1],l=c;switch(c.kind){case 166:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,u(a),c.type);break;case 167:l=e.factory.updateMethodDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,u(a),c.type,c.body);break;case 172:l=e.factory.updateCallSignature(c,c.typeParameters,u(a),c.type);break;case 169:l=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,u(a),c.body);break;case 173:l=e.factory.updateConstructSignature(c,c.typeParameters,u(a),c.type);break;case 254:l=e.factory.updateFunctionDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.typeParameters,u(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l!==c)return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(n,(function(e){e.replaceNodeRange(t,a[0],a[a.length-1],l)}))}}function u(n){var t=n[n.length-1];return e.isFunctionLikeDeclaration(t)&&t.body&&(n=n.slice(0,n.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(n,d)))])}function d(n){var t=e.map(n.parameters,p);return e.setEmitFlags(e.factory.createTupleTypeNode(t),e.some(t,(function(n){return!!e.length(e.getSyntheticLeadingComments(n))}))?0:1)}function p(n){e.Debug.assert(e.isIdentifier(n.name));var t=e.setTextRange(e.factory.createNamedTupleMember(n.dotDotDotToken,n.name,n.questionToken,n.type||e.factory.createKeywordTypeNode(129)),n),r=n.symbol&&n.symbol.getDocumentationComment(o);if(r){var i=e.displayPartsToString(r);i.length&&e.setSyntheticLeadingComments(t,[{text:"*\n"+i.split("\n").map((function(e){return" * "+e})).join("\n")+"\n ",kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}},getAvailableActions:function(n){return s(n.file,n.startPosition,n.program)?[{name:r,description:i,actions:[a]}]:e.emptyArray}})})((n=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(n.addOrRemoveBracesToArrowFunction={}))}(u||(u={})),function(e){var n;(function(t){var r,i,o,s,c="Extract Symbol",l={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},u={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function d(t){var r=t.kind,i=f(t.file,e.getRefactorContextSpan(t),"invoked"===t.triggerReason),o=i.targetRange;if(void 0===o){if(!i.errors||0===i.errors.length||!t.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var s=[];return n.refactorKindBeginsWith(u.kind,r)&&s.push({name:c,description:u.description,actions:[a(a({},u),{notApplicableReason:I(i.errors)})]}),n.refactorKindBeginsWith(l.kind,r)&&s.push({name:c,description:l.description,actions:[a(a({},l),{notApplicableReason:I(i.errors)})]}),s}var d=function(n,t){var r=g(n,t),i=r.scopes,a=r.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope,c=i.map((function(n,t){var r,i,a=function(n){return e.isFunctionLikeDeclaration(n)?"inner function":e.isClassLike(n)?"method":"function"}(n),c=function(n){return e.isClassLike(n)?"readonly field":"constant"}(n),l=e.isFunctionLikeDeclaration(n)?function(n){switch(n.kind){case 169:return"constructor";case 211:case 254:return n.name?"function '"+n.name.text+"'":e.ANONYMOUS;case 212:return"arrow function";case 167:return"method '"+n.name.getText()+"'";case 170:return"'get "+n.name.getText()+"'";case 171:return"'set "+n.name.getText()+"'";default:throw e.Debug.assertNever(n,"Unexpected scope kind "+n.kind)}}(n):e.isClassLike(n)?function(e){return 255===e.kind?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}(n):function(e){return 260===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(n);return 1===l?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===l?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,l]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),0!==t||e.isClassLike(n)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:r,errors:o[t]},constantExtraction:{description:i,errors:s[t]}}}));return c}(o,t);if(void 0===d)return e.emptyArray;for(var p,m,_=[],y=new e.Map,h=[],v=new e.Map,b=0,E=0,T=d;E<T.length;E++){var S=T[E],x=S.functionExtraction,L=S.constantExtraction,D=x.description;if(n.refactorKindBeginsWith(u.kind,r)&&(0===x.errors.length?y.has(D)||(y.set(D,!0),_.push({description:D,name:"function_scope_"+b,kind:u.kind})):p||(p={description:D,name:"function_scope_"+b,notApplicableReason:I(x.errors),kind:u.kind})),n.refactorKindBeginsWith(l.kind,r))if(0===L.errors.length){var A=L.description;v.has(A)||(v.set(A,!0),h.push({description:A,name:"constant_scope_"+b,kind:l.kind}))}else m||(m={description:D,name:"constant_scope_"+b,notApplicableReason:I(L.errors),kind:l.kind});b++}var C=[];return _.length?C.push({name:c,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:_}):t.preferences.provideRefactorNotApplicableReason&&p&&C.push({name:c,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[p]}),h.length?C.push({name:c,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:h}):t.preferences.provideRefactorNotApplicableReason&&m&&C.push({name:c,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[m]}),C.length?C:e.emptyArray;function I(e){var n=e[0].messageText;return"string"!=typeof n&&(n=n.messageText),n}}function p(n,t){var r=f(n.file,e.getRefactorContextSpan(n)).targetRange,a=/^function_scope_(\d+)$/.exec(t);if(a){var o=+a[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),function(n,t,r){var a=g(n,t),o=a.scopes,s=a.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.functionErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!u[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(n,t,r,a,o,s){var c,l,u=r.usages,d=r.typeParameterUsages,p=r.substitutions,f=s.program.getTypeChecker(),m=e.getEmitScriptTarget(s.program.getCompilerOptions()),_=e.codefix.createImportAdder(s.file,s.program,s.preferences,s.host),g=t.getSourceFile(),E=e.getUniqueName(e.isClassLike(t)?"newMethod":"newFunction",g),T=e.isInJSFile(t),x=e.factory.createIdentifier(E),L=[],D=[];u.forEach((function(n,r){var i;if(!T){var a=f.getTypeOfSymbolAtLocation(n.symbol,n.node);a=f.getBaseTypeOfLiteralType(a),i=e.codefix.typeToAutoImportableTypeNode(f,_,a,t,m,1)}var o=e.factory.createParameterDeclaration(void 0,void 0,void 0,r,void 0,i);L.push(o),2===n.usage&&(l||(l=[])).push(n),D.push(e.factory.createIdentifier(r))}));var A=e.arrayFrom(d.values()).map((function(e){return{type:e,declaration:y(e)}})).sort(h),C=0===A.length?void 0:A.map((function(e){return e.declaration})),I=void 0!==C?C.map((function(n){return e.factory.createTypeReferenceNode(n.name,void 0)})):void 0;if(e.isExpression(n)&&!T){var N=f.getContextualType(n);c=f.typeToTypeNode(N,t,1)}var k,R=function(n,t,r,i,a){var o,s=void 0!==r||t.length>0;if(e.isBlock(n)&&!s&&0===i.size)return{body:e.factory.createBlock(n.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(n)?n.statements.slice(0):[e.isStatement(n)?n:e.factory.createReturnStatement(n)]);if(s||i.size){var u=e.visitNodes(l,(function n(a){if(!c&&e.isReturnStatement(a)&&s){var l=v(t,r);return a.expression&&(o||(o="__return"),l.unshift(e.factory.createPropertyAssignment(o,e.visitNode(a.expression,n)))),1===l.length?e.factory.createReturnStatement(l[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(l))}var u=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var d=i.get(e.getNodeId(a).toString()),p=d?e.getSynthesizedDeepClone(d):e.visitEachChild(a,n,e.nullTransformationContext);return c=u,p})).slice();if(s&&!a&&e.isStatement(n)){var d=v(t,r);1===d.length?u.push(e.factory.createReturnStatement(d[0].name)):u.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(d)))}return{body:e.factory.createBlock(u,!0),returnValueProperty:o}}return{body:e.factory.createBlock(l,!0),returnValueProperty:void 0}}(n,a,l,p,!!(o.facts&i.HasReturn)),O=R.body,P=R.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(O),e.isClassLike(t)){var w=T?[]:[e.factory.createModifier(121)];o.facts&i.InStaticRegion&&w.push(e.factory.createModifier(124)),o.facts&i.IsAsyncFunction&&w.push(e.factory.createModifier(130)),k=e.factory.createMethodDeclaration(void 0,w.length?w:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,x,void 0,C,L,c,O)}else k=e.factory.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.factory.createToken(130)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,x,C,L,c,O);var M=e.textChanges.ChangeTracker.fromContext(s),F=function(n,t){return e.find(function(n){if(e.isFunctionLikeDeclaration(n)){var t=n.body;if(e.isBlock(t))return t.statements}else{if(e.isModuleBlock(n)||e.isSourceFile(n))return n.statements;if(e.isClassLike(n))return n.members;e.assertType(n)}return e.emptyArray}(t),(function(t){return t.pos>=n&&e.isFunctionLikeDeclaration(t)&&!e.isConstructorDeclaration(t)}))}((b(o.range)?e.last(o.range):o.range).end,t);F?M.insertNodeBefore(s.file,F,k,!0):M.insertNodeAtEndOfScope(s.file,t,k),_.writeFixes(M);var G=[],B=function(n,t,r){var a=e.factory.createIdentifier(r);if(e.isClassLike(n)){var o=t.facts&i.InStaticRegion?e.factory.createIdentifier(n.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,a)}return a}(t,o,E),U=e.factory.createCallExpression(B,I,D);if(o.facts&i.IsGenerator&&(U=e.factory.createYieldExpression(e.factory.createToken(41),U)),o.facts&i.IsAsyncFunction&&(U=e.factory.createAwaitExpression(U)),S(n)&&(U=e.factory.createJsxExpression(void 0,U)),a.length&&!l)if(e.Debug.assert(!P,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var V=a[0];G.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(V.name),void 0,e.getSynthesizedDeepClone(V.type),U)],V.parent.flags)))}else{for(var j=[],K=[],H=a[0].parent.flags,W=!1,z=0,J=a;z<J.length;z++){V=J[z],j.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(V.name)));var q=f.typeToTypeNode(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(V)),t,1);K.push(e.factory.createPropertySignature(void 0,V.symbol.name,void 0,q)),W=W||void 0!==V.type,H&=V.parent.flags}var X=W?e.factory.createTypeLiteralNode(K):void 0;X&&e.setEmitFlags(X,1),G.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(j),void 0,X,U)],H)))}else if(a.length||l){if(a.length)for(var Y=0,Q=a;Y<Q.length;Y++){var Z=(V=Q[Y]).parent.flags;2&Z&&(Z=-3&Z|1),G.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(V.symbol.name,void 0,te(V.type))],Z)))}P&&G.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(P,void 0,te(c))],1)));var $=v(a,l);P&&$.unshift(e.factory.createShorthandPropertyAssignment(P)),1===$.length?(e.Debug.assert(!P,"Shouldn't have returnValueProperty here"),G.push(e.factory.createExpressionStatement(e.factory.createAssignment($[0].name,U))),o.facts&i.HasReturn&&G.push(e.factory.createReturnStatement())):(G.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression($),U))),P&&G.push(e.factory.createReturnStatement(e.factory.createIdentifier(P))))}else o.facts&i.HasReturn?G.push(e.factory.createReturnStatement(U)):b(o.range)?G.push(e.factory.createExpressionStatement(U)):G.push(U);b(o.range)?M.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),G):M.replaceNodeWithNodes(s.file,o.range,G);var ee=M.getChanges(),ne=(b(o.range)?e.first(o.range):o.range).getSourceFile().fileName;return{renameFilename:ne,renameLocation:e.getRenameLocation(ee,ne,E,!1),edits:ee};function te(n){if(void 0!==n){for(var t=e.getSynthesizedDeepClone(n),r=t;e.isParenthesizedTypeNode(r);)r=r.type;return e.isUnionTypeNode(r)&&e.find(r.types,(function(e){return 151===e.kind}))?t:e.factory.createUnionTypeNode([t,e.factory.createKeywordTypeNode(151)])}}}(c,o[r],l[r],d,n,t)}(r,n,o)}var s=/^constant_scope_(\d+)$/.exec(t);if(s)return o=+s[1],e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),function(n,t,r){var a=g(n,t),o=a.scopes,s=a.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.constantErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!u[r].length,"The extraction went missing? How?"),e.Debug.assert(0===d.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested(),function(n,t,r,a,o){var s,c=r.substitutions,l=o.program.getTypeChecker(),u=t.getSourceFile(),d=e.getUniqueName(e.isClassLike(t)?"newProperty":"newLocal",u),p=e.isInJSFile(t),f=p||!l.isContextSensitive(n)?void 0:l.typeToTypeNode(l.getContextualType(n),t,1),m=function(n,t){return t.size?function n(r){var i=t.get(e.getNodeId(r).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(r,n,e.nullTransformationContext)}(n):n}(n,c);s=function(r,i){if(void 0===r)return{variableType:r,initializer:i};if(!e.isFunctionExpression(i)&&!e.isArrowFunction(i)||i.typeParameters)return{variableType:r,initializer:i};var a=l.getTypeAtLocation(n),o=e.singleOrUndefined(l.getSignaturesOfType(a,0));if(!o)return{variableType:r,initializer:i};if(o.getTypeParameters())return{variableType:r,initializer:i};for(var s=[],c=!1,u=0,d=i.parameters;u<d.length;u++){var p=d[u];if(p.type)s.push(p);else{var f=l.getTypeAtLocation(p);f===l.getAnyType()&&(c=!0),s.push(e.factory.updateParameterDeclaration(p,p.decorators,p.modifiers,p.dotDotDotToken,p.name,p.questionToken,p.type||l.typeToTypeNode(f,t,1),p.initializer))}}if(c)return{variableType:r,initializer:i};if(r=void 0,e.isArrowFunction(i))i=e.factory.updateArrowFunction(i,n.modifiers,i.typeParameters,s,i.type||l.typeToTypeNode(o.getReturnType(),t,1),i.equalsGreaterThanToken,i.body);else{if(o&&o.thisParameter){var m=e.firstOrUndefined(s);if(!m||e.isIdentifier(m.name)&&"this"!==m.name.escapedText){var _=l.getTypeOfSymbolAtLocation(o.thisParameter,n);s.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,l.typeToTypeNode(_,t,1)))}}i=e.factory.updateFunctionExpression(i,n.modifiers,i.asteriskToken,i.name,i.typeParameters,s,i.type||l.typeToTypeNode(o.getReturnType(),t,1),i.body)}return{variableType:r,initializer:i}}(f,m),f=s.variableType,m=s.initializer,e.suppressLeadingAndTrailingTrivia(m);var g=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(t)){e.Debug.assert(!p,"Cannot extract to a JS class");var y=[];y.push(e.factory.createModifier(121)),a&i.InStaticRegion&&y.push(e.factory.createModifier(124)),y.push(e.factory.createModifier(143));var h=e.factory.createPropertyDeclaration(void 0,y,d,void 0,f,m),v=e.factory.createPropertyAccessExpression(a&i.InStaticRegion?e.factory.createIdentifier(t.name.getText()):e.factory.createThis(),e.factory.createIdentifier(d));S(n)&&(v=e.factory.createJsxExpression(void 0,v));var b=function(n,t){var r,i=t.members;e.Debug.assert(i.length>0,"Found no members");for(var a=!0,o=0,s=i;o<s.length;o++){var c=s[o];if(c.pos>n)return r||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==r)return c;a=!1}r=c}return void 0===r?e.Debug.fail():r}(n.pos,t);g.insertNodeBefore(o.file,b,h,!0),g.replaceNode(o.file,n,v)}else{var E=e.factory.createVariableDeclaration(d,void 0,f,m),x=function(n,t){for(var r;void 0!==n&&n!==t;){if(e.isVariableDeclaration(n)&&n.initializer===r&&e.isVariableDeclarationList(n.parent)&&n.parent.declarations.length>1)return n;r=n,n=n.parent}}(n,t);if(x)g.insertNodeBefore(o.file,x,E),v=e.factory.createIdentifier(d),g.replaceNode(o.file,n,v);else if(236===n.parent.kind&&t===e.findAncestor(n,_)){var L=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([E],2));g.replaceNode(o.file,n.parent,L)}else L=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([E],2)),b=function(n,t){var r;e.Debug.assert(!e.isClassLike(t));for(var i=n;i!==t;i=i.parent)_(i)&&(r=i);for(i=(r||n).parent;;i=i.parent){if(T(i)){for(var a=void 0,o=0,s=i.statements;o<s.length;o++){var c=s[o];if(c.pos>n.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}(n,t),0===b.pos?g.insertNodeAtTopOfFile(o.file,L,!1):g.insertNodeBefore(o.file,b,L,!1),236===n.parent.kind?g.delete(o.file,n.parent):(v=e.factory.createIdentifier(d),S(n)&&(v=e.factory.createJsxExpression(void 0,v)),g.replaceNode(o.file,n,v))}var D=g.getChanges(),A=n.getSourceFile().fileName;return{renameFilename:A,renameLocation:e.getRenameLocation(D,A,d,!0),edits:D}}(e.isExpression(c)?c:c.statements[0].expression,o[r],l[r],n.facts,t)}(r,n,o);e.Debug.fail("Unrecognized action name")}function f(n,t,a){void 0===a&&(a=!0);var o=t.length;if(0===o&&!a)return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractEmpty)]};var s=0===o&&a,c=e.findFirstNonJsxWhitespaceToken(n,t.start),l=e.findTokenOnLeftOfPosition(n,e.textSpanEnd(t)),u=c&&l&&a?function(e,n,t){var r=e.getStart(t),i=n.getEnd();return 59===t.text.charCodeAt(i)&&i++,{start:r,length:i-r}}(c,l,n):t,d=s?function(n){return e.findAncestor(n,(function(n){return n.parent&&E(n)&&!e.isBinaryExpression(n.parent)}))}(c):e.getParentNodeInSpan(c,n,u),p=s?d:e.getParentNodeInSpan(l,n,u),f=[],_=i.None;if(!d||!p)return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractRange)]};if(e.isJSDoc(d))return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractJSDoc)]};if(d.parent!==p.parent)return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractRange)]};if(d!==p){if(!T(d.parent))return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractRange)]};for(var g=[],y=0,h=d.parent.statements;y<h.length;y++){var v=h[y];if(v===d||g.length){var b=L(v);if(b)return{errors:b};g.push(v)}if(v===p)break}return g.length?{targetRange:{range:g,facts:_,declarations:f}}:{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractRange)]}}if(e.isReturnStatement(d)&&!d.expression)return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractRange)]};var S=function(n){if(e.isReturnStatement(n)){if(n.expression)return n.expression}else if(e.isVariableStatement(n)){for(var t=0,r=void 0,i=0,a=n.declarationList.declarations;i<a.length;i++){var o=a[i];o.initializer&&(t++,r=o.initializer)}if(1===t)return r}else if(e.isVariableDeclaration(n)&&n.initializer)return n.initializer;return n}(d),x=function(n){if(e.isIdentifier(e.isExpressionStatement(n)?n.expression:n))return[e.createDiagnosticForNode(n,r.cannotExtractIdentifier)]}(S)||L(S);return x?{errors:x}:{targetRange:{range:m(S),facts:_,declarations:f}};function L(n){var a;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return"}(a||(a={})),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)&&E(n)))return[e.createDiagnosticForNode(n,r.statementOrExpressionExpected)];if(8388608&n.flags)return[e.createDiagnosticForNode(n,r.cannotExtractAmbientBlock)];var o,s=e.getContainingClass(n);s&&function(n,t){for(var r=n;r!==t;){if(165===r.kind){e.isStatic(r)&&(_|=i.InStaticRegion);break}if(162===r.kind){169===e.getContainingFunction(r).kind&&(_|=i.InStaticRegion);break}167===r.kind&&e.isStatic(r)&&(_|=i.InStaticRegion),r=r.parent}}(n,s);var c,l=4;return function n(a){if(o)return!0;if(e.isDeclaration(a)){var s=252===a.kind?a.parent.parent:a;if(e.hasSyntacticModifier(s,1))return(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractExportedEntity)),!0;f.push(a.symbol)}switch(a.kind){case 264:return(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractImport)),!0;case 269:return(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractExportedEntity)),!0;case 106:if(206===a.parent.kind){var u=e.getContainingClass(a);if(u.pos<t.start||u.end>=t.start+t.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractSuper)),!0}else _|=i.UsesThis;break;case 212:e.forEachChild(a,(function n(t){if(e.isThis(t))_|=i.UsesThis;else{if(e.isClassLike(t)||e.isFunctionLike(t)&&!e.isArrowFunction(t))return!1;e.forEachChild(t,n)}}));case 255:case 254:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,r.functionWillNotBeVisibleInTheNewScope));case 224:case 211:case 167:case 169:case 170:case 171:return!1}var d=l;switch(a.kind){case 237:case 250:l=0;break;case 233:a.parent&&250===a.parent.kind&&a.parent.finallyBlock===a&&(l=4);break;case 288:case 287:l|=1;break;default:e.isIterationStatement(a,!1)&&(l|=3)}switch(a.kind){case 190:case 108:_|=i.UsesThis;break;case 248:var p=a.label;(c||(c=[])).push(p.escapedText),e.forEachChild(a,n),c.pop();break;case 244:case 243:(p=a.label)?e.contains(c,p.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):l&(244===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 216:_|=i.IsAsyncFunction;break;case 222:_|=i.IsGenerator;break;case 245:4&l?_|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,n)}l=d}(n),o}}function m(n){return e.isStatement(n)?[n]:e.isExpressionNode(n)?e.isExpressionStatement(n.parent)?[n.parent]:n:void 0}function _(n){return e.isFunctionLikeDeclaration(n)||e.isSourceFile(n)||e.isModuleBlock(n)||e.isClassLike(n)}function g(n,t){var a=t.file,o=function(n){var t=b(n.range)?e.first(n.range):n.range;if(n.facts&i.UsesThis){var r=e.getContainingClass(t);if(r){var a=e.findAncestor(t,e.isFunctionLikeDeclaration);return a?[a,r]:[r]}}for(var o=[];;)if(162===(t=t.parent).kind&&(t=e.findAncestor(t,(function(n){return e.isFunctionLikeDeclaration(n)})).parent),_(t)&&(o.push(t),300===t.kind))return o}(n),s=function(n,t){return b(n.range)?{pos:e.first(n.range).getStart(t),end:e.last(n.range).getEnd()}:n.range}(n,a),c=function(n,t,a,o,s,c){var l,u,d=new e.Map,p=[],f=[],m=[],_=[],g=[],y=new e.Map,h=[],v=b(n.range)?1===n.range.length&&e.isExpressionStatement(n.range[0])?n.range[0].expression:void 0:n.range;if(void 0===v){var E=n.range,T=e.first(E).getStart(),S=e.last(E).end;u=e.createFileDiagnostic(o,T,S-T,r.expressionExpected)}else 147456&s.getTypeAtLocation(v).flags&&(u=e.createDiagnosticForNode(v,r.uselessConstantType));for(var x=0,L=t;x<L.length;x++){var D=L[x];p.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),f.push(new e.Map),m.push([]);var A=[];u&&A.push(u),e.isClassLike(D)&&e.isInJSFile(D)&&A.push(e.createDiagnosticForNode(D,r.cannotExtractToJSClass)),e.isArrowFunction(D)&&!e.isBlock(D.body)&&A.push(e.createDiagnosticForNode(D,r.cannotExtractToExpressionArrowFunction)),_.push(A)}var C,I=new e.Map,N=b(n.range)?e.factory.createBlock(n.range):n.range,k=b(n.range)?e.first(n.range):n.range,R=(C=k,!!e.findAncestor(C,(function(n){return e.isDeclarationWithTypeParameters(n)&&0!==e.getEffectiveTypeParameterDeclarations(n).length})));if(function c(l,u){if(void 0===u&&(u=1),R&&K(s.getTypeAtLocation(l)),e.isDeclaration(l)&&l.symbol&&g.push(l),e.isAssignmentExpression(l))c(l.left,2),c(l.right);else if(e.isUnaryExpressionWithWrite(l))c(l.operand,2);else if(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l))e.forEachChild(l,c);else if(e.isIdentifier(l)){if(!l.parent)return;if(e.isQualifiedName(l.parent)&&l!==l.parent.left)return;if(e.isPropertyAccessExpression(l.parent)&&l!==l.parent.expression)return;!function(c,l,u){var d=function(c,l,u){var d=H(c);if(d){var g=e.getSymbolId(d).toString(),y=I.get(g);if(y&&y>=l)return g;if(I.set(g,l),y){for(var h=0,v=p;h<v.length;h++){var b=v[h];b.usages.get(c.text)&&b.usages.set(c.text,{usage:l,symbol:d,node:c})}return g}var E=d.getDeclarations(),T=E&&e.find(E,(function(e){return e.getSourceFile()===o}));if(T&&!e.rangeContainsStartEnd(a,T.getStart(),T.end)){if(n.facts&i.IsGenerator&&2===l){for(var S=e.createDiagnosticForNode(c,r.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),x=0,L=m;x<L.length;x++)L[x].push(S);for(var D=0,A=_;D<A.length;D++)A[D].push(S)}for(var C=0;C<t.length;C++){var N=t[C];if(s.resolveName(d.name,N,d.flags,!1)!==d&&!f[C].has(g)){var k=W(d.exportSymbol||d,N,u);k?f[C].set(g,k):u?262144&d.flags||(S=e.createDiagnosticForNode(c,r.typeWillNotBeVisibleInTheNewScope),m[C].push(S),_[C].push(S)):p[C].usages.set(c.text,{usage:l,symbol:d,node:c})}}return g}}}(c,l,u);if(d)for(var g=0;g<t.length;g++){var y=f[g].get(d);y&&p[g].substitutions.set(e.getNodeId(c).toString(),y)}}(l,u,e.isPartOfTypeNode(l))}else e.forEachChild(l,c)}(N),R&&!b(n.range)&&K(s.getContextualType(n.range)),d.size>0){for(var O=new e.Map,P=0,w=k;void 0!==w&&P<t.length;w=w.parent)if(w===t[P]&&(O.forEach((function(e,n){p[P].typeParameterUsages.set(n,e)})),P++),e.isDeclarationWithTypeParameters(w))for(var M=0,F=e.getEffectiveTypeParameterDeclarations(w);M<F.length;M++){var G=F[M],B=s.getTypeAtLocation(G);d.has(B.id.toString())&&O.set(B.id.toString(),B)}e.Debug.assert(P===t.length,"Should have iterated all scopes")}if(g.length){var U=e.isBlockScope(t[0],t[0].parent)?t[0]:e.getEnclosingBlockScopeContainer(t[0]);e.forEachChild(U,(function t(r){if(!(r===n.range||b(n.range)&&n.range.indexOf(r)>=0)){var i=e.isIdentifier(r)?H(r):s.getSymbolAtLocation(r);if(i){var a=e.find(g,(function(e){return e.symbol===i}));if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();y.has(o)||(h.push(a),y.set(o,!0))}else l=l||a}e.forEachChild(r,t)}}))}for(var V=function(t){var i=p[t];if(t>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=b(n.range)?n.range[0]:n.range;_[t].push(e.createDiagnosticForNode(a,r.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(p[t].usages.forEach((function(n){2===n.usage&&(s=!0,106500&n.symbol.flags&&n.symbol.valueDeclaration&&e.hasEffectiveModifier(n.symbol.valueDeclaration,64)&&(o=n.symbol.valueDeclaration))})),e.Debug.assert(b(n.range)||0===h.length,"No variable declarations expected if something was extracted"),s&&!b(n.range)){var c=e.createDiagnosticForNode(n.range,r.cannotWriteInExpression);m[t].push(c),_[t].push(c)}else o&&t>0?(c=e.createDiagnosticForNode(o,r.cannotExtractReadonlyPropertyInitializerOutsideConstructor),m[t].push(c),_[t].push(c)):l&&(c=e.createDiagnosticForNode(l,r.cannotExtractExportedEntity),m[t].push(c),_[t].push(c))},j=0;j<t.length;j++)V(j);return{target:N,usagesPerScope:p,functionErrorsPerScope:m,constantErrorsPerScope:_,exposedVariableDeclarations:h};function K(e){for(var n=0,t=s.getSymbolWalker((function(){return c.throwIfCancellationRequested(),!0})).walkType(e).visitedTypes;n<t.length;n++){var r=t[n];r.isTypeParameter()&&d.set(r.id.toString(),r)}}function H(n){return n.parent&&e.isShorthandPropertyAssignment(n.parent)&&n.parent.name===n?s.getShorthandAssignmentValueSymbol(n.parent):s.getSymbolAtLocation(n)}function W(n,t,r){if(n){var i=n.getDeclarations();if(i&&i.some((function(e){return e.parent===t})))return e.factory.createIdentifier(n.name);var a=W(n.parent,t,r);if(void 0!==a)return r?e.factory.createQualifiedName(a,e.factory.createIdentifier(n.name)):e.factory.createPropertyAccessExpression(a,n.name)}}}(n,o,s,a,t.program.getTypeChecker(),t.cancellationToken);return{scopes:o,readsAndWrites:c}}function y(e){var n,t=e.symbol;if(t&&t.declarations)for(var r=0,i=t.declarations;r<i.length;r++){var a=i[r];(void 0===n||a.pos<n.pos)&&(n=a)}return n}function h(n,t){var r=n.type,i=n.declaration,a=t.type,o=t.declaration;return e.compareProperties(i,o,"pos",e.compareValues)||e.compareStringsCaseSensitive(r.symbol?r.symbol.getName():"",a.symbol?a.symbol.getName():"")||e.compareValues(r.id,a.id)}function v(n,t){var r=e.map(n,(function(n){return e.factory.createShorthandPropertyAssignment(n.symbol.name)})),i=e.map(t,(function(n){return e.factory.createShorthandPropertyAssignment(n.symbol.name)}));return void 0===r?i:void 0===i?r:r.concat(i)}function b(n){return e.isArray(n)}function E(e){var n=e.parent;if(294===n.kind)return!1;switch(e.kind){case 10:return 264!==n.kind&&268!==n.kind;case 223:case 199:case 201:return!1;case 79:return 201!==n.kind&&268!==n.kind&&273!==n.kind}return!0}function T(e){switch(e.kind){case 233:case 300:case 260:case 287:return!0;default:return!1}}function S(n){return(e.isJsxElement(n)||e.isJsxSelfClosingElement(n)||e.isJsxFragment(n))&&(e.isJsxElement(n.parent)||e.isJsxFragment(n.parent))}n.registerRefactor(c,{kinds:[l.kind,u.kind],getAvailableActions:d,getEditsForAction:p}),t.getAvailableActions=d,t.getEditsForAction=p,function(n){function t(n){return{message:n,code:0,category:e.DiagnosticCategory.Message,key:n}}n.cannotExtractRange=t("Cannot extract range."),n.cannotExtractImport=t("Cannot extract import statement."),n.cannotExtractSuper=t("Cannot extract super call."),n.cannotExtractJSDoc=t("Cannot extract JSDoc."),n.cannotExtractEmpty=t("Cannot extract empty range."),n.expressionExpected=t("expression expected."),n.uselessConstantType=t("No reason to extract constant of type."),n.statementOrExpressionExpected=t("Statement or expression expected."),n.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),n.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),n.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),n.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),n.cannotExtractIdentifier=t("Select more than a single identifier."),n.cannotExtractExportedEntity=t("Cannot extract exported declaration"),n.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),n.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),n.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),n.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),n.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),n.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block")}(r=t.Messages||(t.Messages={})),function(e){e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion"}(i||(i={})),t.getRangeToExtract=f,function(e){e[e.Module=0]="Module",e[e.Global=1]="Global"}(o||(o={})),function(e){e[e.Read=1]="Read",e[e.Write=2]="Write"}(s||(s={}))})((n=e.refactor||(e.refactor={})).extractSymbol||(n.extractSymbol={}))}(u||(u={})),function(e){!function(n){var t="Extract type",r={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},i={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},o={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};function s(n,t){void 0===t&&(t=!0);var r=n.file,i=n.startPosition,a=e.isSourceFileJS(r),o=e.getTokenAtPosition(r,i),s=e.createTextRangeFromSpan(e.getRefactorContextSpan(n)),u=s.pos===s.end&&t,d=e.findAncestor(o,(function(n){return n.parent&&e.isTypeNode(n)&&!l(s,n.parent,r)&&(u||e.nodeOverlapsWithStartEnd(o,r,s.pos,s.end))}));if(!d||!e.isTypeNode(d))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var p=n.program.getTypeChecker(),f=e.Debug.checkDefined(e.findAncestor(d,e.isStatement),"Should find a statement"),m=function(n,t,r,i){var a=[];return function o(s){if(e.isTypeReferenceNode(s)){if(e.isIdentifier(s.typeName)&&(null==(p=n.resolveName(s.typeName.text,s.typeName,262144,!0))?void 0:p.declarations)){var c=e.cast(e.first(p.declarations),e.isTypeParameterDeclaration);l(r,c,i)&&!l(t,c,i)&&e.pushIfUnique(a,c)}}else if(e.isInferTypeNode(s)){var u=e.findAncestor(s,(function(n){return e.isConditionalTypeNode(n)&&l(n.extendsType,s,i)}));if(!u||!l(t,u,i))return!0}else if(e.isTypePredicateNode(s)||e.isThisTypeNode(s)){var d=e.findAncestor(s.parent,e.isFunctionLike);if(d&&d.type&&l(d.type,s,i)&&!l(t,d,i))return!0}else if(e.isTypeQueryNode(s)){var p;if(e.isIdentifier(s.exprName)){if((null==(p=n.resolveName(s.exprName.text,s.exprName,111551,!1))?void 0:p.valueDeclaration)&&l(r,p.valueDeclaration,i)&&!l(t,p.valueDeclaration,i))return!0}else if(e.isThisIdentifier(s.exprName.left)&&!l(t,s.parent,i))return!0}return i&&e.isTupleTypeNode(s)&&e.getLineAndCharacterOfPosition(i,s.pos).line===e.getLineAndCharacterOfPosition(i,s.end).line&&e.setEmitFlags(s,1),e.forEachChild(s,o)}(t)?void 0:a}(p,d,f,r);return m?{isJS:a,selection:d,firstStatement:f,typeParameters:m,typeElements:c(p,d)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)}}function c(n,t){if(t){if(e.isIntersectionTypeNode(t)){for(var r=[],i=new e.Map,a=0,o=t.types;a<o.length;a++){var s=c(n,o[a]);if(!s||!s.every((function(n){return n.name&&e.addToSeen(i,e.getNameFromPropertyName(n.name))})))return;e.addRange(r,s)}return r}return e.isParenthesizedTypeNode(t)?c(n,t.type):e.isTypeLiteralNode(t)?t.members:void 0}}function l(n,t,r){return e.rangeContainsStartEnd(n,e.skipTrivia(r.text,t.pos),t.end)}n.registerRefactor(t,{kinds:[r.kind,i.kind,o.kind],getAvailableActions:function(c){var l=s(c,"invoked"===c.triggerReason);return l?n.isRefactorErrorInfo(l)?c.preferences.provideRefactorNotApplicableReason?[{name:t,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[a(a({},o),{notApplicableReason:l.error}),a(a({},r),{notApplicableReason:l.error}),a(a({},i),{notApplicableReason:l.error})]}]:e.emptyArray:[{name:t,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:l.isJS?[o]:e.append([r],l.typeElements&&i)}]:e.emptyArray},getEditsForAction:function(t,a){var c=t.file,l=s(t);e.Debug.assert(l&&!n.isRefactorErrorInfo(l),"Expected to find a range to extract");var u=e.getUniqueName("NewType",c),d=e.textChanges.ChangeTracker.with(t,(function(n){switch(a){case r.name:return e.Debug.assert(!l.isJS,"Invalid actionName/JS combo"),function(n,t,r,i){var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.factory.createTypeAliasDeclaration(void 0,void 0,r,s.map((function(n){return e.factory.updateTypeParameterDeclaration(n,n.name,n.constraint,void 0)})),o);n.insertNodeBefore(t,a,e.ignoreSourceNewlines(c),!0),n.replaceNode(t,o,e.factory.createTypeReferenceNode(r,s.map((function(n){return e.factory.createTypeReferenceNode(n.name,void 0)}))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}(n,c,u,l);case o.name:return e.Debug.assert(l.isJS,"Invalid actionName/JS combo"),function(n,t,r,i){var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(o),e.factory.createIdentifier(r)),l=[];e.forEach(s,(function(n){var t=e.getEffectiveConstraintOfTypeParameter(n),r=e.factory.createTypeParameterDeclaration(n.name),i=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),t&&e.cast(t,e.isJSDocTypeExpression),[r]);l.push(i)})),n.insertNodeBefore(t,a,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(l,[c]))),!0),n.replaceNode(t,o,e.factory.createTypeReferenceNode(r,s.map((function(n){return e.factory.createTypeReferenceNode(n.name,void 0)}))))}(n,c,u,l);case i.name:return e.Debug.assert(!l.isJS&&!!l.typeElements,"Invalid actionName/JS combo"),function(n,t,r,i){var a,o=i.firstStatement,s=i.selection,c=i.typeParameters,l=i.typeElements,u=e.factory.createInterfaceDeclaration(void 0,void 0,r,c,void 0,l);e.setTextRange(u,null===(a=l[0])||void 0===a?void 0:a.parent),n.insertNodeBefore(t,o,e.ignoreSourceNewlines(u),!0),n.replaceNode(t,s,e.factory.createTypeReferenceNode(r,c.map((function(n){return e.factory.createTypeReferenceNode(n.name,void 0)}))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}(n,c,u,l);default:e.Debug.fail("Unexpected action name")}})),p=c.fileName;return{edits:d,renameFilename:p,renameLocation:e.getRenameLocation(d,p,u,!1)}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){var n,t,r,i;(n=e.refactor||(e.refactor={})).generateGetAccessorAndSetAccessor||(n.generateGetAccessorAndSetAccessor={}),t="Generate 'get' and 'set' accessors",r=e.Diagnostics.Generate_get_and_set_accessors.message,i={name:t,description:r,kind:"refactor.rewrite.property.generateAccessors"},n.registerRefactor(t,{kinds:[i.kind],getEditsForAction:function(t,r){if(t.endPosition){var i=e.codefix.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);e.Debug.assert(i&&!n.isRefactorErrorInfo(i),"Expected applicable refactor info");var a=e.codefix.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(a){var o=t.file.fileName,s=i.renameAccessor?i.accessorName:i.fieldName;return{renameFilename:o,renameLocation:(e.isIdentifier(s)?0:-1)+e.getRenameLocation(a,o,s.text,e.isParameter(i.declaration)),edits:a}}}},getAvailableActions:function(o){if(!o.endPosition)return e.emptyArray;var s=e.codefix.getAccessorConvertiblePropertyAtPosition(o.file,o.program,o.startPosition,o.endPosition,"invoked"===o.triggerReason);return s?n.isRefactorErrorInfo(s)?o.preferences.provideRefactorNotApplicableReason?[{name:t,description:r,actions:[a(a({},i),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:t,description:r,actions:[i]}]:e.emptyArray}})}(u||(u={})),function(e){var n;(n=e.refactor||(e.refactor={})).isRefactorErrorInfo=function(e){return void 0!==e.error},n.refactorKindBeginsWith=function(e,n){return!n||e.substr(0,n.length)===n}}(u||(u={})),function(e){!function(n){var t="Move to a new file",r=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),o={name:t,description:r,kind:"refactor.move.newFile"};function s(n){var t=function(n){var t=n.file,r=e.createTextRangeFromSpan(e.getRefactorContextSpan(n)),i=t.statements,a=e.findIndex(i,(function(e){return e.end>r.pos}));if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,r))return{toMove:[i[a]],afterLast:i[a+1]};if(!(r.pos>o.getStart(t))){var s=e.findIndex(i,(function(e){return e.end>r.end}),a);if(-1===s||!(0===s||i[s].getStart(t)<r.end))return{toMove:i.slice(a,-1===s?i.length:s),afterLast:-1===s?void 0:i[s]}}}}(n);if(void 0!==t){var r=[],i=[],a=t.toMove,o=t.afterLast;return e.getRangesWhere(a,c,(function(e,n){for(var t=e;t<n;t++)r.push(a[t]);i.push({first:a[e],afterLast:o})})),0===r.length?void 0:{all:r,ranges:i}}}function c(n){return!function(n){switch(n.kind){case 264:return!0;case 263:return!e.hasSyntacticModifier(n,1);case 235:return n.declarationList.declarations.every((function(n){return!!n.initializer&&e.isRequireCall(n.initializer,!0)}));default:return!1}}(n)&&!e.isPrologueDirective(n)}function l(e,n,t){for(var r=0,i=n;r<i.length;r++){var a=i[r],o=a.first,s=a.afterLast;t.deleteNodeRangeExcludingEnd(e,o,s)}}function u(e){return 264===e.kind?e.moduleSpecifier:263===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function d(n,t){if(e.isImportDeclaration(n))e.isStringLiteral(n.moduleSpecifier)&&t(n);else if(e.isImportEqualsDeclaration(n))e.isExternalModuleReference(n.moduleReference)&&e.isStringLiteralLike(n.moduleReference.expression)&&t(n);else if(e.isVariableStatement(n))for(var r=0,i=n.declarationList.declarations;r<i.length;r++){var a=i[r];a.initializer&&e.isRequireCall(a.initializer,!0)&&t(a)}}function p(n,t,r,i,a){if(r=e.ensurePathIsNonModuleName(r),i){var o=t.map((function(n){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(n))}));return e.makeImportIfNecessary(n,o,r,a)}e.Debug.assert(!n,"No default import should exist");var s=t.map((function(n){return e.factory.createBindingElement(void 0,void 0,n)}));return s.length?f(e.factory.createObjectBindingPattern(s),void 0,m(e.factory.createStringLiteral(r))):void 0}function f(n,t,r,i){return void 0===i&&(i=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(n,void 0,t,r)],i))}function m(n){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[n])}function _(n,t,r,i){switch(t.kind){case 264:!function(n,t,r,i){if(t.importClause){var a=t.importClause,o=a.name,s=a.namedBindings,c=!o||i(o),l=!s||(266===s.kind?i(s.name):0!==s.elements.length&&s.elements.every((function(e){return i(e.name)})));if(c&&l)r.delete(n,t);else if(o&&c&&r.delete(n,o),s)if(l)r.replaceNode(n,t.importClause,e.factory.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(267===s.kind)for(var u=0,d=s.elements;u<d.length;u++){var p=d[u];i(p.name)&&r.delete(n,p)}}}(n,t,r,i);break;case 263:i(t.name)&&r.delete(n,t);break;case 252:!function(n,t,r,i){var a=t.name;switch(a.kind){case 79:i(a)&&r.delete(n,a);break;case 200:break;case 199:if(a.elements.every((function(n){return e.isIdentifier(n.name)&&i(n.name)})))r.delete(n,e.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?t.parent.parent:t);else for(var o=0,s=a.elements;o<s.length;o++){var c=s[o];e.isIdentifier(c.name)&&i(c.name)&&r.delete(n,c.name)}}}(n,t,r,i);break;default:e.Debug.assertNever(t,"Unexpected import decl kind "+t.kind)}}function g(n){switch(n.kind){case 263:case 268:case 265:case 266:return!0;case 252:return y(n);case 201:return e.isVariableDeclaration(n.parent.parent)&&y(n.parent.parent);default:return!1}}function y(n){return e.isSourceFile(n.parent.parent.parent)&&!!n.initializer&&e.isRequireCall(n.initializer,!0)}function h(n,t,r){switch(n.kind){case 264:var i=n.importClause;if(!i)return;var a=i.name&&r(i.name)?i.name:void 0,o=i.namedBindings&&function(n,t){if(266===n.kind)return t(n.name)?n:void 0;var r=n.elements.filter((function(e){return t(e.name)}));return r.length?e.factory.createNamedImports(r):void 0}(i.namedBindings,r);return a||o?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,a,o),t):void 0;case 263:return r(n.name)?n:void 0;case 252:var s=function(n,t){switch(n.kind){case 79:return t(n)?n:void 0;case 200:return n;case 199:var r=n.elements.filter((function(n){return n.propertyName||!e.isIdentifier(n.name)||t(n.name)}));return r.length?e.factory.createObjectBindingPattern(r):void 0}}(n.name,r);return s?f(s,n.type,m(t),n.parent.flags):void 0;default:return e.Debug.assertNever(n,"Unexpected import kind "+n.kind)}}function v(n,t,r){n.forEachChild((function n(i){if(e.isIdentifier(i)&&!e.isDeclarationName(i)){var a=t.getSymbolAtLocation(i);a&&r(a)}else i.forEachChild(n)}))}n.registerRefactor(t,{kinds:[o.kind],getAvailableActions:function(n){var i=s(n);return n.preferences.allowTextChangesInNewFiles&&i?[{name:t,description:r,actions:[o]}]:n.preferences.provideRefactorNotApplicableReason?[{name:t,description:r,actions:[a(a({},o),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(n,r){e.Debug.assert(r===t,"Wrong refactor invoked");var a=e.Debug.checkDefined(s(n));return{edits:e.textChanges.ChangeTracker.with(n,(function(t){return r=n.file,o=n.program,s=a,c=t,f=n.host,y=n.preferences,x=o.getTypeChecker(),k=function(n,t,r){var i=new b,a=new b,o=new b,s=e.find(t,(function(e){return!!(2&e.transformFlags)})),c=function(n){if(void 0!==n){var t=r.getJsxNamespace(n),i=r.resolveName(t,n,1920,!0);return i&&e.some(i.declarations,g)?i:void 0}}(s);c&&a.add(c);for(var l=0,u=t;l<u.length;l++)S(h=u[l],(function(n){i.add(e.Debug.checkDefined(e.isExpressionStatement(n)?r.getSymbolAtLocation(n.expression.left):n.symbol,"Need a symbol here"))}));for(var d=0,p=t;d<p.length;d++)v(h=p[d],r,(function(t){if(t.declarations)for(var r=0,s=t.declarations;r<s.length;r++){var c=s[r];g(c)?a.add(t):E(c)&&(l=c,(e.isVariableDeclaration(l)?l.parent.parent.parent:l.parent)===n)&&!i.has(t)&&o.add(t)}var l}));for(var f=a.clone(),m=new b,_=0,y=n.statements;_<y.length;_++){var h=y[_];e.contains(t,h)||(c&&2&h.transformFlags&&f.delete(c),v(h,r,(function(e){i.has(e)&&m.add(e),f.delete(e)})))}return{movedSymbols:i,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:m,oldImportsNeededByNewFile:a,unusedImportsFromOldFile:f}}(r,s.all,x),R=e.getDirectoryPath(r.fileName),O=e.extensionFromPath(r.fileName),P=function(n,t,r,i){for(var a=n,o=1;;o++){var s=e.combinePaths(r,a+t);if(!i.fileExists(s))return a;a=n+"."+o}}(k.movedSymbols.forEachEntry(e.symbolNameNoDefault)||"newFile",O,R,f),w=P+O,c.createNewFile(r,e.combinePaths(R,w),function(n,t,r,a,o,s,c){var f=o.getTypeChecker(),g=e.takeWhile(n.statements,e.isPrologueDirective);if(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)return l(n,a.ranges,r),i(i([],g,!0),a.all,!0);var y=!!n.externalModuleIndicator,v=e.getQuotePreference(n,c),b=function(n,t,r,i){var a,o=[];return n.forEach((function(n){"default"===n.escapedName?a=e.factory.createIdentifier(e.symbolNameNoDefault(n)):o.push(n.name)})),p(a,o,t,r,i)}(t.oldFileImportsFromNewFile,s,y,v);b&&e.insertImports(r,n,b,!0),function(n,t,r,i,a){for(var o=0,s=n.statements;o<s.length;o++){var c=s[o];e.contains(t,c)||d(c,(function(e){return _(n,e,r,(function(e){return i.has(a.getSymbolAtLocation(e))}))}))}}(n,a.all,r,t.unusedImportsFromOldFile,f),l(n,a.ranges,r),function(n,t,r,i,a){for(var o=t.getTypeChecker(),s=function(t){if(t===r)return"continue";for(var s=function(s){d(s,(function(c){if(o.getSymbolAtLocation(u(c))===r.symbol){var l=function(n){var t=e.isBindingElement(n.parent)?e.getPropertySymbolFromBindingElement(o,n.parent):e.skipAlias(o.getSymbolAtLocation(n),o);return!!t&&i.has(t)};_(t,c,n,l);var d=e.combinePaths(e.getDirectoryPath(u(c).text),a),p=h(c,e.factory.createStringLiteral(d),l);p&&n.insertNodeAfter(t,s,p);var f=function(n){switch(n.kind){case 264:return n.importClause&&n.importClause.namedBindings&&266===n.importClause.namedBindings.kind?n.importClause.namedBindings.name:void 0;case 263:return n.name;case 252:return e.tryCast(n.name,e.isIdentifier);default:return e.Debug.assertNever(n,"Unexpected node kind "+n.kind)}}(c);f&&function(n,t,r,i,a,o,s,c){var l=e.codefix.moduleSpecifierToValidIdentifier(a,99),u=!1,d=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(s,r,t,(function(n){e.isPropertyAccessExpression(n.parent)&&(u=u||!!r.resolveName(l,n,67108863,!0),i.has(r.getSymbolAtLocation(n.parent.name))&&d.push(n))})),d.length){for(var p=u?e.getUniqueName(l,t):l,f=0,_=d;f<_.length;f++){var g=_[f];n.replaceNode(t,g,e.factory.createIdentifier(p))}n.insertNodeAfter(t,c,function(n,t,r){var i=e.factory.createIdentifier(t),a=e.factory.createStringLiteral(r);switch(n.kind){case 264:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(i)),a);case 263:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,i,e.factory.createExternalModuleReference(a));case 252:return e.factory.createVariableDeclaration(i,void 0,void 0,m(a));default:return e.Debug.assertNever(n,"Unexpected node kind "+n.kind)}}(c,a,o))}}(n,t,o,i,a,d,f,c)}}))},c=0,l=t.statements;c<l.length;c++)s(l[c])},c=0,l=t.getSourceFiles();c<l.length;c++)s(l[c])}(r,o,n,t.movedSymbols,s);var x=function(n,t,r,i,a,o,s){for(var c,l=[],f=0,m=n.statements;f<m.length;f++)d(m[f],(function(n){e.append(l,h(n,u(n),(function(e){return t.has(a.getSymbolAtLocation(e))})))}));var _=[],g=e.nodeSeenTracker();return r.forEach((function(t){if(t.declarations)for(var r=0,a=t.declarations;r<a.length;r++){var s=a[r];if(E(s)){var l=(d=s,e.isExpressionStatement(d)?e.tryCast(d.expression.left.name,e.isIdentifier):e.tryCast(d.name,e.isIdentifier));if(l){var u=L(s);g(u)&&D(n,u,l,i,o),e.hasSyntacticModifier(s,512)?c=l:_.push(l.text)}}}var d})),e.append(l,p(c,_,e.removeFileExtension(e.getBaseFileName(n.fileName)),o,s)),l}(n,t.oldImportsNeededByNewFile,t.newFileImportsFromOldFile,r,f,y,v),k=function(n,t,r,a){return e.flatMap(t,(function(t){if(s=t,e.Debug.assert(e.isSourceFile(s.parent),"Node parent should be a SourceFile"),(T(s)||e.isVariableStatement(s))&&!A(n,t,a)&&S(t,(function(n){return r.has(e.Debug.checkDefined(n.symbol))}))){var o=function(e,n){return n?[C(e)]:function(e){return i([e],I(e).map(N),!0)}(e)}(t,a);if(o)return o}var s;return t}))}(n,a.all,t.oldFileImportsFromNewFile,y);return x.length&&k.length?i(i(i(i([],g,!0),x,!0),[4],!1),k,!0):i(i(i([],g,!0),x,!0),k,!0)}(r,k,c,s,o,P,y)),void function(n,t,r,i,a){var o=n.getCompilerOptions().configFile;if(o){var s=e.normalizePath(e.combinePaths(r,"..",i)),c=e.getRelativePathFromFile(o.fileName,s,a),l=o.statements[0]&&e.tryCast(o.statements[0].expression,e.isObjectLiteralExpression),u=l&&e.find(l.properties,(function(n){return e.isPropertyAssignment(n)&&e.isStringLiteral(n.name)&&"files"===n.name.text}));u&&e.isArrayLiteralExpression(u.initializer)&&t.insertNodeInListAfter(o,e.last(u.initializer.elements),e.factory.createStringLiteral(c),u.initializer.elements)}}(o,c,r.fileName,w,e.hostGetCanonicalFileName(f));var r,o,s,c,f,y,x,k,R,O,P,w})),renameFilename:void 0,renameLocation:void 0}}});var b=function(){function n(){this.map=new e.Map}return n.prototype.add=function(n){this.map.set(String(e.getSymbolId(n)),n)},n.prototype.has=function(n){return this.map.has(String(e.getSymbolId(n)))},n.prototype.delete=function(n){this.map.delete(String(e.getSymbolId(n)))},n.prototype.forEach=function(e){this.map.forEach(e)},n.prototype.forEachEntry=function(n){return e.forEachEntry(this.map,n)},n.prototype.clone=function(){var t=new n;return e.copyEntries(this.map,t.map),t},n}();function E(n){return T(n)&&e.isSourceFile(n.parent)||e.isVariableDeclaration(n)&&e.isSourceFile(n.parent.parent.parent)}function T(e){switch(e.kind){case 254:case 255:case 259:case 258:case 257:case 256:case 263:return!0;default:return!1}}function S(n,t){switch(n.kind){case 254:case 255:case 259:case 258:case 257:case 256:case 263:return t(n);case 235:return e.firstDefined(n.declarationList.declarations,(function(e){return x(e.name,t)}));case 236:var r=n.expression;return e.isBinaryExpression(r)&&1===e.getAssignmentDeclarationKind(r)?t(n):void 0}}function x(n,t){switch(n.kind){case 79:return t(e.cast(n.parent,(function(n){return e.isVariableDeclaration(n)||e.isBindingElement(n)})));case 200:case 199:return e.firstDefined(n.elements,(function(n){return e.isOmittedExpression(n)?void 0:x(n.name,t)}));default:return e.Debug.assertNever(n,"Unexpected name kind "+n.kind)}}function L(n){switch(n.kind){case 252:return n.parent.parent;case 201:return L(e.cast(n.parent.parent,(function(n){return e.isVariableDeclaration(n)||e.isBindingElement(n)})));default:return n}}function D(n,t,r,i,a){if(!A(n,t,a,r))if(a)e.isExpressionStatement(t)||i.insertExportModifier(n,t);else{var o=I(t);0!==o.length&&i.insertNodesAfter(n,t,o.map(N))}}function A(n,t,r,i){var a;return r?!e.isExpressionStatement(t)&&e.hasSyntacticModifier(t,1)||!(!i||!(null===(a=n.symbol.exports)||void 0===a?void 0:a.has(i.escapedText))):I(t).some((function(t){return n.symbol.exports.has(e.escapeLeadingUnderscores(t))}))}function C(n){var t=e.concatenate([e.factory.createModifier(93)],n.modifiers);switch(n.kind){case 254:return e.factory.updateFunctionDeclaration(n,n.decorators,t,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body);case 255:return e.factory.updateClassDeclaration(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members);case 235:return e.factory.updateVariableStatement(n,t,n.declarationList);case 259:return e.factory.updateModuleDeclaration(n,n.decorators,t,n.name,n.body);case 258:return e.factory.updateEnumDeclaration(n,n.decorators,t,n.name,n.members);case 257:return e.factory.updateTypeAliasDeclaration(n,n.decorators,t,n.name,n.typeParameters,n.type);case 256:return e.factory.updateInterfaceDeclaration(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members);case 263:return e.factory.updateImportEqualsDeclaration(n,n.decorators,t,n.isTypeOnly,n.name,n.moduleReference);case 236:return e.Debug.fail();default:return e.Debug.assertNever(n,"Unexpected declaration kind "+n.kind)}}function I(n){switch(n.kind){case 254:case 255:return[n.name.text];case 235:return e.mapDefined(n.declarationList.declarations,(function(n){return e.isIdentifier(n.name)?n.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(n,"Unexpected decl kind "+n.kind)}}function N(n){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(n)),63,e.factory.createIdentifier(n)))}}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){var n;(function(t){var r="Add or remove braces in an arrow function",i=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,o={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},s={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};function c(t,r,i,a){void 0===i&&(i=!0);var c=e.getTokenAtPosition(t,r),l=e.getContainingFunction(c);if(!l)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(l))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(e.rangeContainsRange(l,c)&&(!e.rangeContainsRange(l.body,c)||i)){if(n.refactorKindBeginsWith(o.kind,a)&&e.isExpression(l.body))return{func:l,addBraces:!0,expression:l.body};if(n.refactorKindBeginsWith(s.kind,a)&&e.isBlock(l.body)&&1===l.body.statements.length){var u=e.first(l.body.statements);if(e.isReturnStatement(u))return{func:l,addBraces:!1,expression:u.expression,returnStatement:u}}}}n.registerRefactor(r,{kinds:[s.kind],getEditsForAction:function(t,r){var i=t.file,a=t.startPosition,l=c(i,a);e.Debug.assert(l&&!n.isRefactorErrorInfo(l),"Expected applicable refactor info");var u,d=l.expression,p=l.returnStatement,f=l.func;if(r===o.name){var m=e.factory.createReturnStatement(d);u=e.factory.createBlock([m],!0),e.suppressLeadingAndTrailingTrivia(u),e.copyLeadingComments(d,m,i,3,!0)}else if(r===s.name&&p){var _=d||e.factory.createVoidZero();u=e.needsParentheses(_)?e.factory.createParenthesizedExpression(_):_,e.suppressLeadingAndTrailingTrivia(u),e.copyTrailingAsLeadingComments(p,u,i,3,!1),e.copyLeadingComments(p,u,i,3,!1),e.copyTrailingComments(p,u,i,3,!1)}else e.Debug.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNode(i,f.body,u)}))}},getAvailableActions:function(t){var l=c(t.file,t.startPosition,"invoked"===t.triggerReason);return l?n.isRefactorErrorInfo(l)?t.preferences.provideRefactorNotApplicableReason?[{name:r,description:i,actions:[a(a({},o),{notApplicableReason:l.error}),a(a({},s),{notApplicableReason:l.error})]}]:e.emptyArray:[{name:r,description:i,actions:[l.addBraces?o:s]}]:e.emptyArray}})})((n=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(n.addOrRemoveBracesToArrowFunction={}))}(u||(u={})),function(e){var n;(function(t){var r="Convert parameters to destructured object",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),o={name:r,description:a,kind:"refactor.rewrite.parameters.toDestructured"};function s(n,t){var r=e.getContainingObjectLiteralElement(n);if(r){var i=t.getContextualTypeForObjectLiteralElement(r),a=null==i?void 0:i.getSymbol();if(a&&!(6&e.getCheckFlags(a)))return a}}function c(n){var t=n.node;return e.isImportSpecifier(t.parent)||e.isImportClause(t.parent)||e.isImportEqualsDeclaration(t.parent)||e.isNamespaceImport(t.parent)||e.isExportSpecifier(t.parent)||e.isExportAssignment(t.parent)?t:void 0}function l(n){if(e.isDeclaration(n.node.parent))return n.node}function u(n){if(n.node.parent){var t=n.node,r=t.parent;switch(r.kind){case 206:case 207:var i=e.tryCast(r,e.isCallOrNewExpression);if(i&&i.expression===t)return i;break;case 204:var a=e.tryCast(r,e.isPropertyAccessExpression);if(a&&a.parent&&a.name===t){var o=e.tryCast(a.parent,e.isCallOrNewExpression);if(o&&o.expression===a)return o}break;case 205:var s=e.tryCast(r,e.isElementAccessExpression);if(s&&s.parent&&s.argumentExpression===t){var c=e.tryCast(s.parent,e.isCallOrNewExpression);if(c&&c.expression===s)return c}}}}function d(n){if(n.node.parent){var t=n.node,r=t.parent;switch(r.kind){case 204:var i=e.tryCast(r,e.isPropertyAccessExpression);if(i&&i.expression===t)return i;break;case 205:var a=e.tryCast(r,e.isElementAccessExpression);if(a&&a.expression===t)return a}}}function p(n){var t=n.node;if(2===e.getMeaningFromLocation(t)||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent))return t}function f(n,t,r){var i=e.getTouchingToken(n,t),a=e.getContainingFunctionDeclaration(i);if(!function(n){var t=e.findAncestor(n,e.isJSDocNode);if(t){var r=e.findAncestor(t,(function(n){return!e.isJSDocNode(n)}));return!!r&&e.isFunctionLikeDeclaration(r)}return!1}(i))return!(a&&function(n,t){var r;if(!function(n,t){return function(e){return y(e)?e.length-1:e.length}(n)>=2&&e.every(n,(function(n){return function(n,t){if(e.isRestParameter(n)){var r=t.getTypeAtLocation(n);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!n.modifiers&&!n.decorators&&e.isIdentifier(n.name)}(n,t)}))}(n.parameters,t))return!1;switch(n.kind){case 254:return _(n)&&m(n,t);case 167:if(e.isObjectLiteralExpression(n.parent)){var i=s(n.name,t);return 1===(null===(r=null==i?void 0:i.declarations)||void 0===r?void 0:r.length)&&m(n,t)}return m(n,t);case 169:return e.isClassDeclaration(n.parent)?_(n.parent)&&m(n,t):g(n.parent.parent)&&m(n,t);case 211:case 212:return g(n.parent)}return!1}(a,r)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function m(e,n){return!!e.body&&!n.isImplementationOfOverload(e)}function _(n){return!!n.name||!!e.findModifier(n,88)}function g(n){return e.isVariableDeclaration(n)&&e.isVarConst(n)&&e.isIdentifier(n.name)&&!n.type}function y(n){return n.length>0&&e.isThis(n[0].name)}function h(n){return y(n)&&(n=e.factory.createNodeArray(n.slice(1),n.hasTrailingComma)),n}function v(n,t){var r=h(n.parameters),i=e.isRestParameter(e.last(r)),a=i?t.slice(0,r.length-1):t,o=e.map(a,(function(n,t){var i,a,o=(i=E(r[t]),a=n,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.factory.createShorthandPropertyAssignment(i):e.factory.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(o.name),e.isPropertyAssignment(o)&&e.suppressLeadingAndTrailingTrivia(o.initializer),e.copyComments(n,o),o}));if(i&&t.length>=r.length){var s=t.slice(r.length-1),c=e.factory.createPropertyAssignment(E(e.last(r)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function b(n,t,r){var i,a,o,s=t.getTypeChecker(),c=h(n.parameters),l=e.map(c,(function(n){var t=e.factory.createBindingElement(void 0,void 0,E(n),e.isRestParameter(n)&&_(n)?e.factory.createArrayLiteralExpression():n.initializer);return e.suppressLeadingAndTrailingTrivia(t),n.initializer&&t.initializer&&e.copyComments(n.initializer,t.initializer),t})),u=e.factory.createObjectBindingPattern(l),d=(i=c,a=e.map(i,(function(n){var i,a,o=n.type;o||!n.initializer&&!e.isRestParameter(n)||(i=n,a=s.getTypeAtLocation(i),o=e.getTypeNodeIfAccessible(a,i,t,r));var c=e.factory.createPropertySignature(void 0,E(n),_(n)?e.factory.createToken(57):n.questionToken,o);return e.suppressLeadingAndTrailingTrivia(c),e.copyComments(n.name,c.name),n.type&&c.type&&e.copyComments(n.type,c.type),c})),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,_)&&(o=e.factory.createObjectLiteralExpression());var p=e.factory.createParameterDeclaration(void 0,void 0,void 0,u,void 0,d,o);if(y(n.parameters)){var f=n.parameters[0],m=e.factory.createParameterDeclaration(void 0,void 0,void 0,f.name,void 0,f.type);return e.suppressLeadingAndTrailingTrivia(m.name),e.copyComments(f.name,m.name),f.type&&(e.suppressLeadingAndTrailingTrivia(m.type),e.copyComments(f.type,m.type)),e.factory.createNodeArray([m,p])}return e.factory.createNodeArray([p]);function _(n){if(e.isRestParameter(n)){var t=s.getTypeAtLocation(n);return!s.isTupleType(t)}return s.isOptionalParameter(n)}}function E(n){return e.getTextOfIdentifierOrLiteral(n.name)}n.registerRefactor(r,{kinds:[o.kind],getEditsForAction:function(n,t){e.Debug.assert(t===r,"Unexpected action name");var a=n.file,o=n.startPosition,m=n.program,_=n.cancellationToken,g=n.host,y=f(a,o,m.getTypeChecker());if(y&&_){var h=function(n,t,r){var a=function(n){switch(n.kind){case 254:return n.name?[n.name]:[e.Debug.checkDefined(e.findModifier(n,88),"Nameless function declaration should be a default export")];case 167:return[n.name];case 169:var t=e.Debug.checkDefined(e.findChildOfKind(n,133,n.getSourceFile()),"Constructor declaration should have constructor keyword");return 224===n.parent.kind?[n.parent.parent.name,t]:[t];case 212:return[n.parent.name];case 211:return n.name?[n.name,n.parent.name]:[n.parent.name];default:return e.Debug.assertNever(n,"Unexpected function declaration kind "+n.kind)}}(n),o=e.isConstructorDeclaration(n)?function(n){switch(n.parent.kind){case 255:var t=n.parent;return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,88),"Nameless class declaration should be a default export")];case 224:var r=n.parent,i=n.parent.parent,a=r.name;return a?[a,i.name]:[i.name]}}(n):[],f=e.deduplicate(i(i([],a,!0),o,!0),e.equateValues),m=t.getTypeChecker(),_=function(t){for(var r={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:r,valid:!0},f=e.map(a,g),_=e.map(o,g),y=e.isConstructorDeclaration(n),h=e.map(a,(function(e){return s(e,m)})),v=0,b=t;v<b.length;v++){var E=b[v];if(0!==E.kind){if(e.contains(h,g(E.node))){if(A=E.node.parent,e.isMethodSignature(A)&&(e.isInterfaceDeclaration(A.parent)||e.isTypeLiteralNode(A.parent))){i.signature=E.node.parent;continue}if(S=u(E)){i.functionCalls.push(S);continue}}var T=s(E.node,m);if(T&&e.contains(h,T)&&(x=l(E))){i.declarations.push(x);continue}if(e.contains(f,g(E.node))||e.isNewExpressionTarget(E.node)){var S;if(c(E))continue;if(x=l(E)){i.declarations.push(x);continue}if(S=u(E)){i.functionCalls.push(S);continue}}if(y&&e.contains(_,g(E.node))){var x;if(c(E))continue;if(x=l(E)){i.declarations.push(x);continue}var L=d(E);if(L){r.accessExpressions.push(L);continue}if(e.isClassDeclaration(n.parent)){var D=p(E);if(D){r.typeUsages.push(D);continue}}}i.valid=!1}else i.valid=!1}var A;return i}(e.flatMap(f,(function(n){return e.FindAllReferences.getReferenceEntriesForNode(-1,n,t,t.getSourceFiles(),r)})));return e.every(_.declarations,(function(n){return e.contains(f,n)}))||(_.valid=!1),_;function g(n){var t=m.getSymbolAtLocation(n);return t&&e.getSymbolTarget(t,m)}}(y,m,_);if(h.valid){var E=e.textChanges.ChangeTracker.with(n,(function(n){return function(n,t,r,i,a,o){var s=o.signature,c=e.map(b(a,t,r),(function(n){return e.getSynthesizedDeepClone(n)}));s&&f(s,e.map(b(s,t,r),(function(n){return e.getSynthesizedDeepClone(n)}))),f(a,c);for(var l=0,u=e.sortAndDeduplicate(o.functionCalls,(function(n,t){return e.compareValues(n.pos,t.pos)}));l<u.length;l++){var d=u[l];if(d.arguments&&d.arguments.length){var p=e.getSynthesizedDeepClone(v(a,d.arguments),!0);i.replaceNodeRange(e.getSourceFileOfNode(d),e.first(d.arguments),e.last(d.arguments),p,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function f(t,r){i.replaceNodeRangeWithNodes(n,e.first(t.parameters),e.last(t.parameters),r,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}(a,m,g,n,y,h)}));return{renameFilename:void 0,renameLocation:void 0,edits:E}}return{edits:[]}}},getAvailableActions:function(n){var t=n.file,i=n.startPosition;return e.isSourceFileJS(t)?e.emptyArray:f(t,i,n.program.getTypeChecker())?[{name:r,description:a,actions:[o]}]:e.emptyArray}})})((n=e.refactor||(e.refactor={})).convertParamsToDestructuredObject||(n.convertParamsToDestructuredObject={}))}(u||(u={})),function(e){var n;(function(t){var r="Convert to template string",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),o={name:r,description:i,kind:"refactor.rewrite.string"};function s(n,t){var r=e.getTokenAtPosition(n,t),i=l(r);return!u(i).isValidConcatenation&&e.isParenthesizedExpression(i.parent)&&e.isBinaryExpression(i.parent.parent)?i.parent.parent:r}function c(n,t){var r=l(t),i=n.file,a=function(n,t){var r=n.nodes,i=n.operators,a=d(i,t),o=p(r,t,a),s=m(0,r),c=s[0],l=s[1],u=s[2],g=s[3];if(c===r.length){var y=e.factory.createNoSubstitutionTemplateLiteral(l,u);return o(g,y),y}var h=[],v=e.factory.createTemplateHead(l,u);o(g,v);for(var b,E=function(n){var t=function(n){return e.isParenthesizedExpression(n)&&(_(n),n=n.expression),n}(r[n]);a(n,t);var i=m(n+1,r),s=i[0],c=i[1],l=i[2],u=i[3],d=(n=s-1)==r.length-1;if(e.isTemplateExpression(t)){var p=e.map(t.templateSpans,(function(n,r){_(n);var i=r===t.templateSpans.length-1,a=n.literal.text+(i?c:""),o=f(n.literal)+(i?l:"");return e.factory.createTemplateSpan(n.expression,d?e.factory.createTemplateTail(a,o):e.factory.createTemplateMiddle(a,o))}));h.push.apply(h,p)}else{var g=d?e.factory.createTemplateTail(c,l):e.factory.createTemplateMiddle(c,l);o(u,g),h.push(e.factory.createTemplateSpan(t,g))}b=n},T=c;T<r.length;T++)E(T),T=b;return e.factory.createTemplateExpression(v,h)}(u(r),i),o=e.getTrailingCommentRanges(i.text,r.end);if(o){var s=o[o.length-1],c={pos:o[0].pos,end:s.end};return e.textChanges.ChangeTracker.with(n,(function(e){e.deleteRange(i,c),e.replaceNode(i,r,a)}))}return e.textChanges.ChangeTracker.with(n,(function(e){return e.replaceNode(i,r,a)}))}function l(n){return e.findAncestor(n.parent,(function(n){switch(n.kind){case 204:case 205:return!1;case 221:case 219:return!(e.isBinaryExpression(n.parent)&&(t=n.parent,63!==t.operatorToken.kind));default:return"quit"}var t}))||n}function u(n){var t=function(n){if(!e.isBinaryExpression(n))return{nodes:[n],operators:[],validOperators:!0,hasString:e.isStringLiteral(n)||e.isNoSubstitutionTemplateLiteral(n)};var r=t(n.left),i=r.nodes,a=r.operators,o=r.hasString,s=r.validOperators;if(!(o||e.isStringLiteral(n.right)||e.isTemplateExpression(n.right)))return{nodes:[n],operators:[],hasString:!1,validOperators:!0};var c=39===n.operatorToken.kind,l=s&&c;return i.push(n.right),a.push(n.operatorToken),{nodes:i,operators:a,hasString:!0,validOperators:l}},r=t(n),i=r.nodes,a=r.operators,o=r.validOperators,s=r.hasString;return{nodes:i,operators:a,isValidConcatenation:o&&s}}n.registerRefactor(r,{kinds:[o.kind],getEditsForAction:function(n,t){var r=s(n.file,n.startPosition);return t===i?{edits:c(n,r)}:e.Debug.fail("invalid action")},getAvailableActions:function(n){var t=l(s(n.file,n.startPosition)),c={name:r,description:i,actions:[]};return e.isBinaryExpression(t)&&u(t).isValidConcatenation?(c.actions.push(o),[c]):n.preferences.provideRefactorNotApplicableReason?(c.actions.push(a(a({},o),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[c]):e.emptyArray}});var d=function(n,t){return function(r,i){r<n.length&&e.copyTrailingComments(n[r],i,t,3,!1)}},p=function(n,t,r){return function(i,a){for(;i.length>0;){var o=i.shift();e.copyTrailingComments(n[o],a,t,3,!1),r(o,a)}}};function f(n){var t=e.isTemplateHead(n)||e.isTemplateMiddle(n)?-2:-1;return e.getTextOfNode(n).slice(1,t)}function m(n,t){for(var r=[],i="",a="";n<t.length;){var o=t[n];if(!e.isStringLiteralLike(o)){if(e.isTemplateExpression(o)){i+=o.head.text,a+=f(o.head);break}break}i+=o.text,a+=e.getTextOfNode(o).slice(1,-1).replace(/\\.|[$`]/g,(function(e){return"\\"===e[0]?e:"\\"+e})),r.push(n),n++}return[n,i,a,r]}function _(n){var t=n.getSourceFile();e.copyTrailingComments(n,n.expression,t,3,!1),e.copyTrailingAsLeadingComments(n.expression,n.expression,t,3,!1)}})((n=e.refactor||(e.refactor={})).convertStringOrTemplateLiteral||(n.convertStringOrTemplateLiteral={}))}(u||(u={})),function(e){var n;(function(t){var r="Convert arrow function or function expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),o={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},s={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},c={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function l(n){var t=!1;return n.forEachChild((function n(r){e.isThis(r)?t=!0:e.isClassLike(r)||e.isFunctionDeclaration(r)||e.isFunctionExpression(r)||e.forEachChild(r,n)})),t}function u(n,t,r){var i=e.getTokenAtPosition(n,t),a=r.getTypeChecker(),o=function(n,t,r){if(function(n){return e.isVariableDeclaration(n)||e.isVariableDeclarationList(n)&&1===n.declarations.length}(r)){var i=(e.isVariableDeclaration(r)?r:e.first(r.declarations)).initializer;return i&&(e.isArrowFunction(i)||e.isFunctionExpression(i)&&!p(n,t,i))?i:void 0}}(n,a,i.parent);if(o&&!l(o.body)&&!a.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};var s=e.getContainingFunction(i);if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s))&&!e.rangeContainsRange(s.body,i)&&!l(s.body)&&!a.containsArgumentsReference(s)){if(e.isFunctionExpression(s)&&p(n,a,s))return;return{selectedVariableDeclaration:!1,func:s}}}function d(n){if(e.isExpression(n)){var t=e.factory.createReturnStatement(n),r=n.getSourceFile();return e.suppressLeadingAndTrailingTrivia(t),e.copyTrailingAsLeadingComments(n,t,r,void 0,!0),e.factory.createBlock([t],!0)}return n}function p(n,t,r){return!!r.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(r.name,t,n)}n.registerRefactor(r,{kinds:[o.kind,s.kind,c.kind],getEditsForAction:function(n,t){var r=u(n.file,n.startPosition,n.program);if(r){var i=r.func,a=[];switch(t){case o.name:a.push.apply(a,function(n,t){var r=n.file,i=d(t.body),a=e.factory.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return e.textChanges.ChangeTracker.with(n,(function(e){return e.replaceNode(r,t,a)}))}(n,i));break;case s.name:var l=function(n){var t=n.parent;if(e.isVariableDeclaration(t)&&e.isVariableDeclarationInVariableStatement(t)){var r=t.parent,i=r.parent;return e.isVariableDeclarationList(r)&&e.isVariableStatement(i)&&e.isIdentifier(t.name)?{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}:void 0}}(i);if(!l)return;a.push.apply(a,function(n,t,r){var i=n.file,a=d(t.body),o=r.variableDeclaration,s=r.variableDeclarationList,c=r.statement,l=r.name;e.suppressLeadingTrivia(c);var u=1&e.getCombinedModifierFlags(o)|e.getEffectiveModifierFlags(t),p=e.factory.createModifiersFromModifierFlags(u),f=e.factory.createFunctionDeclaration(t.decorators,e.length(p)?p:void 0,t.asteriskToken,l,t.typeParameters,t.parameters,t.type,a);return 1===s.declarations.length?e.textChanges.ChangeTracker.with(n,(function(e){return e.replaceNode(i,c,f)})):e.textChanges.ChangeTracker.with(n,(function(e){e.delete(i,o),e.insertNodeAfter(i,c,f)}))}(n,i,l));break;case c.name:if(!e.isFunctionExpression(i))return;a.push.apply(a,function(n,t){var r,i=n.file,a=t.body.statements[0];!function(n,t){return 1===n.statements.length&&e.isReturnStatement(t)&&!!t.expression}(t.body,a)?r=t.body:(r=a.expression,e.suppressLeadingAndTrailingTrivia(r),e.copyComments(a,r));var o=e.factory.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,e.factory.createToken(38),r);return e.textChanges.ChangeTracker.with(n,(function(e){return e.replaceNode(i,t,o)}))}(n,i));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:a}}},getAvailableActions:function(t){var l=t.file,d=t.startPosition,p=t.program,f=t.kind,m=u(l,d,p);if(!m)return e.emptyArray;var _,g=m.selectedVariableDeclaration,y=m.func,h=[],v=[];return n.refactorKindBeginsWith(s.kind,f)&&((_=g||e.isArrowFunction(y)&&e.isVariableDeclaration(y.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function))?v.push(a(a({},s),{notApplicableReason:_})):h.push(s)),n.refactorKindBeginsWith(o.kind,f)&&((_=!g&&e.isArrowFunction(y)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function))?v.push(a(a({},o),{notApplicableReason:_})):h.push(o)),n.refactorKindBeginsWith(c.kind,f)&&((_=e.isFunctionExpression(y)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function))?v.push(a(a({},c),{notApplicableReason:_})):h.push(c)),[{name:r,description:i,actions:0===h.length&&t.preferences.provideRefactorNotApplicableReason?v:h}]}})})((n=e.refactor||(e.refactor={})).convertArrowFunctionOrFunctionExpression||(n.convertArrowFunctionOrFunctionExpression={}))}(u||(u={})),function(e){var n;(function(t){var r="Infer function return type",i=e.Diagnostics.Infer_function_return_type.message,o={name:r,description:i,kind:"refactor.rewrite.function.returnType"};function s(t){if(!e.isInJSFile(t.file)&&n.refactorKindBeginsWith(o.kind,t.kind)){var r=e.getTokenAtPosition(t.file,t.startPosition),i=e.findAncestor(r,(function(n){return e.isBlock(n)||n.parent&&e.isArrowFunction(n.parent)&&(38===n.kind||n.parent.body===n)?"quit":function(e){switch(e.kind){case 254:case 211:case 212:case 167:return!0;default:return!1}}(n)}));if(!i||!i.body||i.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var a=t.program.getTypeChecker(),s=function(n,t){if(n.isImplementationOfOverload(t)){var r=n.getTypeAtLocation(t).getCallSignatures();if(r.length>1)return n.getUnionType(e.mapDefined(r,(function(e){return e.getReturnType()})))}var i=n.getSignatureFromDeclaration(t);if(i)return n.getReturnTypeOfSignature(i)}(a,i);if(!s)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var c=a.typeToTypeNode(s,i,1);return c?{declaration:i,returnTypeNode:c}:void 0}}n.registerRefactor(r,{kinds:[o.kind],getEditsForAction:function(t){var r=s(t);if(r&&!n.isRefactorErrorInfo(r))return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(function(n){return i=t.file,a=n,o=r.declaration,s=r.returnTypeNode,c=e.findChildOfKind(o,21,i),void((u=(l=e.isArrowFunction(o)&&void 0===c)?e.first(o.parameters):c)&&(l&&(a.insertNodeBefore(i,u,e.factory.createToken(20)),a.insertNodeAfter(i,u,e.factory.createToken(21))),a.insertNodeAt(i,u.end,s,{prefix:": "})));var i,a,o,s,c,l,u}))}},getAvailableActions:function(t){var c=s(t);return c?n.isRefactorErrorInfo(c)?t.preferences.provideRefactorNotApplicableReason?[{name:r,description:i,actions:[a(a({},o),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:r,description:i,actions:[o]}]:e.emptyArray}})})((n=e.refactor||(e.refactor={})).inferFunctionReturnType||(n.inferFunctionReturnType={}))}(u||(u={})),function(e){function n(n,r,i,a){var o=e.isNodeKind(n)?new t(n,r,i):79===n?new u(79,r,i):80===n?new d(80,r,i):new c(n,r,i);return o.parent=a,o.flags=25358336&a.flags,o}e.servicesVersion="0.8";var t=function(){function t(e,n,t){this.pos=n,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return t.prototype.assertHasRealPosition=function(n){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),n||"Node must have a real position for this operation")},t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(n,t){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,n,t)},t.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},t.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},t.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(e){return this.getChildren(e).length},t.prototype.getChildAt=function(e,n){return this.getChildren(n)[e]},t.prototype.getChildren=function(t){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=function(t,i){if(!e.isNodeKind(t.kind))return e.emptyArray;var a=[];if(e.isJSDocCommentContainingNode(t))return t.forEachChild((function(e){a.push(e)})),a;e.scanner.setText((i||t.getSourceFile()).text);var o=t.pos,s=function(e){r(a,o,e.pos,t),a.push(e),o=e.end};return e.forEach(t.jsDoc,s),o=t.pos,t.forEachChild(s,(function(e){r(a,o,e.pos,t),a.push(function(e,t){var i=n(343,e.pos,e.end,t);i._children=[];for(var a=e.pos,o=0,s=e;o<s.length;o++){var c=s[o];r(i._children,a,c.pos,t),i._children.push(c),a=c.end}return r(i._children,a,e.end,t),i}(e,t)),o=e.end})),r(a,o,t.end,t),e.scanner.setText(void 0),a}(this,t))},t.prototype.getFirstToken=function(n){this.assertHasRealPosition();var t=this.getChildren(n);if(t.length){var r=e.find(t,(function(e){return e.kind<304||e.kind>342}));return r.kind<159?r:r.getFirstToken(n)}},t.prototype.getLastToken=function(n){this.assertHasRealPosition();var t=this.getChildren(n),r=e.lastOrUndefined(t);if(r)return r.kind<159?r:r.getLastToken(n)},t.prototype.forEachChild=function(n,t){return e.forEachChild(this,n,t)},t}();function r(t,r,i,a){for(e.scanner.setTextPos(r);r<i;){var o=e.scanner.scan(),s=e.scanner.getTextPos();if(s<=i&&(79===o&&e.Debug.fail("Did not expect "+e.Debug.formatSyntaxKind(a.kind)+" to have an Identifier in its trivia"),t.push(n(o,r,s,a))),r=s,1===o)break}}var o=function(){function n(e,n){this.pos=e,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return n.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},n.prototype.getStart=function(n,t){return e.getTokenPosOfNode(this,n,t)},n.prototype.getFullStart=function(){return this.pos},n.prototype.getEnd=function(){return this.end},n.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},n.prototype.getFullWidth=function(){return this.end-this.pos},n.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},n.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},n.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},n.prototype.getChildCount=function(){return this.getChildren().length},n.prototype.getChildAt=function(e){return this.getChildren()[e]},n.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||e.emptyArray},n.prototype.getFirstToken=function(){},n.prototype.getLastToken=function(){},n.prototype.forEachChild=function(){},n}(),s=function(){function n(e,n){this.flags=e,this.escapedName=n}return n.prototype.getFlags=function(){return this.flags},Object.defineProperty(n.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),n.prototype.getEscapedName=function(){return this.escapedName},n.prototype.getName=function(){return this.name},n.prototype.getDeclarations=function(){return this.declarations},n.prototype.getDocumentationComment=function(n){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var t=this.target.tupleLabelDeclaration;this.documentationComment=_([t],n)}else this.documentationComment=_(this.declarations,n);return this.documentationComment},n.prototype.getContextualDocumentationComment=function(n,t){switch(null==n?void 0:n.kind){case 170:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=e.emptyArray,this.contextualGetAccessorDocumentationComment=_(e.filter(this.declarations,e.isGetAccessor),t)),this.contextualGetAccessorDocumentationComment;case 171:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=e.emptyArray,this.contextualSetAccessorDocumentationComment=_(e.filter(this.declarations,e.isSetAccessor),t)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(t)}},n.prototype.getJsDocTags=function(n){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations,n)),this.tags},n}(),c=function(e){function n(n,t,r){var i=e.call(this,t,r)||this;return i.kind=n,i}return l(n,e),n}(o),u=function(n){function t(e,t,r){var i=n.call(this,t,r)||this;return i.kind=79,i}return l(t,n),Object.defineProperty(t.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),t}(o);u.prototype.kind=79;var d=function(n){function t(e,t,r){return n.call(this,t,r)||this}return l(t,n),Object.defineProperty(t.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),t}(o);d.prototype.kind=80;var p=function(){function n(e,n){this.checker=e,this.flags=n}return n.prototype.getFlags=function(){return this.flags},n.prototype.getSymbol=function(){return this.symbol},n.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},n.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},n.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},n.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},n.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},n.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},n.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},n.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},n.prototype.isNullableType=function(){return this.checker.isNullableType(this)},n.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},n.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},n.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},n.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},n.prototype.isUnion=function(){return!!(1048576&this.flags)},n.prototype.isIntersection=function(){return!!(2097152&this.flags)},n.prototype.isUnionOrIntersection=function(){return!!(3145728&this.flags)},n.prototype.isLiteral=function(){return!!(384&this.flags)},n.prototype.isStringLiteral=function(){return!!(128&this.flags)},n.prototype.isNumberLiteral=function(){return!!(256&this.flags)},n.prototype.isTypeParameter=function(){return!!(262144&this.flags)},n.prototype.isClassOrInterface=function(){return!!(3&e.getObjectFlags(this))},n.prototype.isClass=function(){return!!(1&e.getObjectFlags(this))},Object.defineProperty(n.prototype,"typeArguments",{get:function(){if(4&e.getObjectFlags(this))return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),n}(),f=function(){function n(e,n){this.checker=e,this.flags=n}return n.prototype.getDeclaration=function(){return this.declaration},n.prototype.getTypeParameters=function(){return this.typeParameters},n.prototype.getParameters=function(){return this.parameters},n.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},n.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=_(e.singleElementArray(this.declaration),this.checker))},n.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?function(n,t){var r=e.JsDoc.getJsDocTagsFromDeclarations([n],t);if(0===r.length||m(n)){var a=g(t,n,(function(e){var n;return 1===(null===(n=e.declarations)||void 0===n?void 0:n.length)?e.getJsDocTags():void 0}));a&&(r=i(i([],a,!0),r,!0))}return r}(this.declaration,this.checker):[]),this.jsDocTags},n}();function m(n){return e.getJSDocTags(n).some((function(e){return"inheritDoc"===e.tagName.text}))}function _(n,t){if(!n)return e.emptyArray;var r=e.JsDoc.getJsDocCommentsFromDeclarations(n,t);if(t&&(0===r.length||n.some(m)))for(var i=new e.Set,a=0,o=n;a<o.length;a++){var s=o[a],c=g(t,s,(function(e){if(!i.has(e))return i.add(e),e.getDocumentationComment(t)}));c&&(r=0===r.length?c.slice():c.concat(e.lineBreakPart(),r))}return r}function g(n,t,r){var i,a=169===(null===(i=t.parent)||void 0===i?void 0:i.kind)?t.parent.parent:t.parent;if(a)return e.firstDefined(e.getAllSuperTypeNodes(a),(function(e){var i=n.getPropertyOfType(n.getTypeAtLocation(e),t.symbol.name);return i?r(i):void 0}))}var y=function(n){function t(e,t,r){var i=n.call(this,e,t,r)||this;return i.kind=300,i}return l(t,n),t.prototype.update=function(n,t){return e.updateSourceFile(this,n,t)},t.prototype.getLineAndCharacterOfPosition=function(n){return e.getLineAndCharacterOfPosition(this,n)},t.prototype.getLineStarts=function(){return e.getLineStarts(this)},t.prototype.getPositionOfLineAndCharacter=function(n,t,r){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),n,t,this.text,r)},t.prototype.getLineEndOfPosition=function(e){var n,t=this.getLineAndCharacterOfPosition(e).line,r=this.getLineStarts();t+1>=r.length&&(n=this.getEnd()),n||(n=r[t+1]-1);var i=this.getFullText();return"\n"===i[n]&&"\r"===i[n-1]?n-1:n},t.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},t.prototype.computeNamedDeclarations=function(){var n=e.createMultiMap();return this.forEachChild((function i(a){switch(a.kind){case 254:case 211:case 167:case 166:var o=a,s=r(o);if(s){var c=function(e){var t=n.get(e);return t||n.set(e,t=[]),t}(s),l=e.lastOrUndefined(c);l&&o.parent===l.parent&&o.symbol===l.symbol?o.body&&!l.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);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:t(a),e.forEachChild(a,i);break;case 162:if(!e.hasSyntacticModifier(a,16476))break;case 252:case 201:var u=a;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,i);break}u.initializer&&i(u.initializer);case 294:case 165:case 164:t(a);break;case 270:var d=a;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,i):i(d.exportClause.name));break;case 264:var p=a.importClause;p&&(p.name&&t(p.name),p.namedBindings&&(266===p.namedBindings.kind?t(p.namedBindings):e.forEach(p.namedBindings.elements,i)));break;case 219:0!==e.getAssignmentDeclarationKind(a)&&t(a);default:e.forEachChild(a,i)}})),n;function t(e){var t=r(e);t&&n.add(t,e)}function r(n){var t=e.getNonAssignedNameOfDeclaration(n);return t&&(e.isComputedPropertyName(t)&&e.isPropertyAccessExpression(t.expression)?t.expression.name.text:e.isPropertyName(t)?e.getNameFromPropertyName(t):void 0)}},t}(t),h=function(){function n(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t}return n.prototype.getLineAndCharacterOfPosition=function(n){return e.getLineAndCharacterOfPosition(this,n)},n}();function v(n){var t=!0;for(var r in n)if(e.hasProperty(n,r)&&!b(r)){t=!1;break}if(t)return n;var i={};for(var r in n)e.hasProperty(n,r)&&(i[b(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=n[r]);return i}function b(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}e.toEditorSettings=v,e.displayPartsToString=function(n){return n?e.map(n,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=function(){return{target:1,jsx:1}},e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var E=function(){function n(n,t){this.host=n,this.currentDirectory=n.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var r=0,i=n.getScriptFileNames();r<i.length;r++){var a=i[r];this.createEntry(a,e.toPath(a,this.currentDirectory,t))}}return n.prototype.createEntry=function(n,t){var r,i=this.host.getScriptSnapshot(n);return r=i?{hostFileName:n,version:this.host.getScriptVersion(n),scriptSnapshot:i,scriptKind:e.getScriptKind(n,this.host)}:n,this.fileNameToEntry.set(t,r),r},n.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},n.prototype.getHostFileInformation=function(n){var t=this.fileNameToEntry.get(n);return e.isString(t)?void 0:t},n.prototype.getOrCreateEntryByPath=function(n,t){var r=this.getEntryByPath(t)||this.createEntry(n,t);return e.isString(r)?void 0:r},n.prototype.getRootFileNames=function(){var n=[];return this.fileNameToEntry.forEach((function(t){e.isString(t)?n.push(t):n.push(t.hostFileName)})),n},n.prototype.getScriptSnapshot=function(e){var n=this.getHostFileInformation(e);return n&&n.scriptSnapshot},n}(),T=function(){function n(e){this.host=e}return n.prototype.getCurrentSourceFile=function(n){var t=this.host.getScriptSnapshot(n);if(!t)throw new Error("Could not find file: '"+n+"'.");var r,i=e.getScriptKind(n,this.host),a=this.host.getScriptVersion(n);if(this.currentFileName!==n)r=x(n,t,99,a,!0,i);else if(this.currentFileVersion!==a){var o=t.getChangeRange(this.currentFileScriptSnapshot);r=L(this.currentSourceFile,t,a,o)}return r&&(this.currentFileVersion=a,this.currentFileName=n,this.currentFileScriptSnapshot=t,this.currentSourceFile=r),this.currentSourceFile},n}();function S(e,n,t){e.version=t,e.scriptSnapshot=n}function x(n,t,r,i,a,o){var s=e.createSourceFile(n,e.getSnapshotText(t),r,a,o);return S(s,t,i),s}function L(n,t,r,i,a){if(i&&r!==n.version){var o=void 0,s=0!==i.span.start?n.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==n.text.length?n.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var l=t.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+l+c:s?s+l:l+c}var u=e.updateSourceFile(n,o,i,a);return S(u,t,r),u.nameTable=void 0,n!==u&&n.scriptSnapshot&&(n.scriptSnapshot.dispose&&n.scriptSnapshot.dispose(),n.scriptSnapshot=void 0),u}return x(n.fileName,t,n.languageVersion,r,!0,n.scriptKind)}e.createLanguageServiceSourceFile=x,e.updateLanguageServiceSourceFile=L;var D={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},A=function(){function n(e){this.cancellationToken=e}return n.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},n.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},n}(),C=function(){function n(e,n){void 0===n&&(n=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=n,this.lastCancellationCheckTime=0}return n.prototype.isCancellationRequested=function(){var n=e.timestamp();return Math.abs(n-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=n,this.hostCancellationToken.isCancellationRequested())},n.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},n}();e.ThrottledCancellationToken=C;var I=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],N=i(i([],I,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function k(n){var t=function(n){switch(n.kind){case 10:case 14:case 8:if(160===n.parent.kind)return e.isObjectLiteralElement(n.parent.parent)?n.parent.parent:void 0;case 79:return!e.isObjectLiteralElement(n.parent)||203!==n.parent.parent.kind&&284!==n.parent.parent.kind||n.parent.name!==n?void 0:n.parent}}(n);return t&&(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))?t:void 0}function R(n,t,r,i){var a=e.getNameFromPropertyName(n.name);if(!a)return e.emptyArray;if(!r.isUnion())return(o=r.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(r.types,(function(r){return(e.isObjectLiteralExpression(n.parent)||e.isJsxAttributes(n.parent))&&t.isTypeInvalidDueToUnionDiscriminant(r,n.parent)?void 0:r.getProperty(a)}));return i&&(0===s.length||s.length===r.types.length)&&(o=r.getProperty(a))?[o]:0===s.length?e.mapDefined(r.types,(function(e){return e.getProperty(a)})):s}e.createLanguageService=function(n,t,r){var o,s;void 0===t&&(t=e.createDocumentRegistry(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames(),n.getCurrentDirectory())),s=void 0===r?e.LanguageServiceMode.Semantic:"boolean"==typeof r?r?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:r;var c,l,u=new T(n),d=0,p=n.getCancellationToken?new A(n.getCancellationToken()):D,f=n.getCurrentDirectory();function m(e){n.log&&n.log(e)}!e.localizedDiagnosticMessages&&n.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(n.getLocalizedDiagnosticMessages());var _=e.hostUsesCaseSensitiveFileNames(n),g=e.createGetCanonicalFileName(_),y=e.getSourceMapper({useCaseSensitiveFileNames:function(){return _},getCurrentDirectory:function(){return f},getProgram:S,fileExists:e.maybeBind(n,n.fileExists),readFile:e.maybeBind(n,n.readFile),getDocumentPositionMapper:e.maybeBind(n,n.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(n,n.getSourceFileLike),log:m});function h(e){var n=c.getSourceFile(e);if(!n){var t=new Error("Could not find source file: '"+e+"'.");throw t.ProgramFiles=c.getSourceFiles().map((function(e){return e.fileName})),t}return n}function b(){var r,i,a;if(e.Debug.assert(s!==e.LanguageServiceMode.Syntactic),n.getProjectVersion){var o=n.getProjectVersion();if(o){if(l===o&&!(null===(r=n.hasChangedAutomaticTypeDirectiveNames)||void 0===r?void 0:r.call(n)))return;l=o}}var u=n.getTypeRootsVersion?n.getTypeRootsVersion():0;d!==u&&(m("TypeRoots version has changed; provide new program"),c=void 0,d=u);var h,v=new E(n,g),b=v.getRootFileNames(),T=n.getCompilationSettings()||{target:1,jsx:1},S=n.hasInvalidatedResolution||e.returnFalse,x=e.maybeBind(n,n.hasChangedAutomaticTypeDirectiveNames),L=null===(i=n.getProjectReferences)||void 0===i?void 0:i.call(n),D={useCaseSensitiveFileNames:_,fileExists:k,readFile:R,readDirectory:O,trace:e.maybeBind(n,n.trace),getCurrentDirectory:function(){return f},onUnRecoverableConfigFileDiagnostic:e.noop};if(!e.isProgramUptoDate(c,b,T,(function(e,t){return n.getScriptVersion(t)}),k,S,x,N,L)){var A={getSourceFile:w,getSourceFileByPath:M,getCancellationToken:function(){return p},getCanonicalFileName:g,useCaseSensitiveFileNames:function(){return _},getNewLine:function(){return e.getNewLineCharacter(T,(function(){return e.getNewLineOrDefaultFromHost(n)}))},getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return f},fileExists:k,readFile:R,getSymlinkCache:e.maybeBind(n,n.getSymlinkCache),realpath:e.maybeBind(n,n.realpath),directoryExists:function(t){return e.directoryProbablyExists(t,n)},getDirectories:function(e){return n.getDirectories?n.getDirectories(e):[]},readDirectory:O,onReleaseOldSourceFile:P,onReleaseParsedCommandLine:function(e,t,r){var i;n.getParsedCommandLine?null===(i=n.onReleaseParsedCommandLine)||void 0===i||i.call(n,e,t,r):t&&P(t.sourceFile,r)},hasInvalidatedResolution:S,hasChangedAutomaticTypeDirectiveNames:x,trace:D.trace,resolveModuleNames:e.maybeBind(n,n.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(n,n.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(n,n.useSourceOfProjectReferenceRedirect),getParsedCommandLine:N};null===(a=n.setCompilerHost)||void 0===a||a.call(n,A);var C=t.getKeyForCompilationSettings(T),I={rootNames:b,options:T,host:A,oldProgram:c,projectReferences:L};return c=e.createProgram(I),v=void 0,h=void 0,y.clearCache(),void c.getTypeChecker()}function N(t){var r=e.toPath(t,f,g),i=null==h?void 0:h.get(r);if(void 0!==i)return i||void 0;var a=n.getParsedCommandLine?n.getParsedCommandLine(t):function(n){var t=w(n,100);return t?(t.path=e.toPath(n,f,g),t.resolvedPath=t.path,t.originalFileName=t.fileName,e.parseJsonSourceFileConfigFileContent(t,D,e.getNormalizedAbsolutePath(e.getDirectoryPath(n),f),void 0,e.getNormalizedAbsolutePath(n,f))):void 0}(t);return(h||(h=new e.Map)).set(r,a||!1),a}function k(t){var r=e.toPath(t,f,g),i=v&&v.getEntryByPath(r);return i?!e.isString(i):!!n.fileExists&&n.fileExists(t)}function R(t){var r=e.toPath(t,f,g),i=v&&v.getEntryByPath(r);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):n.readFile&&n.readFile(t)}function O(t,r,i,a,o){return e.Debug.checkDefined(n.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(t,r,i,a,o)}function P(e,n){var r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind)}function w(n,t,r,i){return M(n,e.toPath(n,f,g),0,0,i)}function M(n,r,i,a,o){e.Debug.assert(void 0!==v,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var s=v&&v.getOrCreateEntryByPath(n,r);if(s){if(!o){var l=c&&c.getSourceFileByPath(r);if(l){if(s.scriptKind===l.scriptKind)return t.updateDocumentWithKey(n,r,T,C,s.scriptSnapshot,s.version,s.scriptKind);t.releaseDocumentWithKey(l.resolvedPath,t.getKeyForCompilationSettings(c.getCompilerOptions()),l.scriptKind)}}return t.acquireDocumentWithKey(n,r,T,C,s.scriptSnapshot,s.version,s.scriptKind)}}}function S(){if(s!==e.LanguageServiceMode.Syntactic)return b(),c;e.Debug.assert(void 0===c)}function x(n,t,r){var i=e.normalizePath(n);e.Debug.assert(r.some((function(n){return e.normalizePath(n)===i}))),b();var a=e.mapDefined(r,(function(e){return c.getSourceFile(e)})),o=h(n);return e.DocumentHighlights.getDocumentHighlights(c,p,o,t,a)}function L(n,t,r,i){b();var a=r&&2===r.use?c.getSourceFiles().filter((function(e){return!c.isSourceFileDefaultLibrary(e)})):c.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(c,p,a,n,t,r,i)}var C=new e.Map(e.getEntries(((o={})[18]=19,o[20]=21,o[22]=23,o[31]=29,o)));function O(t){var r;return e.Debug.assertEqual(t.type,"install package"),n.installPackage?n.installPackage({fileName:(r=t.file,e.toPath(r,f,g)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`")}function P(e,n){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(n.pos).line,lastLine:e.getLineAndCharacterOfPosition(n.end).line}}function w(n,t,r){for(var i=u.getCurrentSourceFile(n),a=[],o=P(i,t),s=o.lineStarts,c=o.firstLine,l=o.lastLine,d=r||!1,p=Number.MAX_VALUE,f=new e.Map,m=new RegExp(/\S/),_=e.isInsideJsxElement(i,s[c]),g=_?"{/*":"//",y=c;y<=l;y++){var h=i.text.substring(s[y],i.getLineEndOfPosition(s[y])),v=m.exec(h);v&&(p=Math.min(p,v.index),f.set(y.toString(),v.index),h.substr(v.index,g.length)!==g&&(d=void 0===r||r))}for(y=c;y<=l;y++)if(c===l||s[y]!==t.end){var b=f.get(y.toString());void 0!==b&&(_?a.push.apply(a,M(n,{pos:s[y]+p,end:i.getLineEndOfPosition(s[y])},d,_)):d?a.push({newText:g,span:{length:0,start:s[y]+p}}):i.text.substr(s[y]+b,g.length)===g&&a.push({newText:"",span:{length:g.length,start:s[y]+b}}))}return a}function M(n,t,r,i){for(var a,o=u.getCurrentSourceFile(n),s=[],c=o.text,l=!1,d=r||!1,p=[],f=t.pos,m=void 0!==i?i:e.isInsideJsxElement(o,f),_=m?"{/*":"/*",g=m?"*/}":"*/",y=m?"\\{\\/\\*":"\\/\\*",h=m?"\\*\\/\\}":"\\*\\/";f<=t.end;){var v=c.substr(f,_.length)===_?_.length:0,b=e.isInComment(o,f+v);if(b)m&&(b.pos--,b.end++),p.push(b.pos),3===b.kind&&p.push(b.end),l=!0,f=b.end+1;else{var E=c.substring(f,t.end).search("("+y+")|("+h+")");d=void 0!==r?r:d||!e.isTextWhiteSpaceLike(c,f,-1===E?t.end:f+E),f=-1===E?t.end+1:f+E+g.length}}if(d||!l){2!==(null===(a=e.isInComment(o,t.pos))||void 0===a?void 0:a.kind)&&e.insertSorted(p,t.pos,e.compareValues),e.insertSorted(p,t.end,e.compareValues);var T=p[0];c.substr(T,_.length)!==_&&s.push({newText:_,span:{length:0,start:T}});for(var S=1;S<p.length-1;S++)c.substr(p[S]-g.length,g.length)!==g&&s.push({newText:g,span:{length:0,start:p[S]}}),c.substr(p[S],_.length)!==_&&s.push({newText:_,span:{length:0,start:p[S]}});s.length%2!=0&&s.push({newText:g,span:{length:0,start:p[p.length-1]}})}else for(var x=0,L=p;x<L.length;x++){var D=L[x],A=D-g.length>0?D-g.length:0;v=c.substr(A,g.length)===g?g.length:0,s.push({newText:"",span:{length:_.length,start:D-v}})}return s}function F(n){var t=n.openingElement,r=n.closingElement,i=n.parent;return!e.tagNamesAreEquivalent(t.tagName,r.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(t.tagName,i.openingElement.tagName)&&F(i)}function G(t,r,i,a,o,s){var c="number"==typeof r?[r,void 0]:[r.pos,r.end];return{file:t,startPosition:c[0],endPosition:c[1],program:S(),host:n,formatContext:e.formatting.getFormatContext(a,n),cancellationToken:p,preferences:i,triggerReason:o,kind:s}}C.forEach((function(e,n){return C.set(e.toString(),Number(n))}));var B={dispose:function(){if(c){var r=t.getKeyForCompilationSettings(c.getCompilerOptions());e.forEach(c.getSourceFiles(),(function(e){return t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind)})),c=void 0}n=void 0},cleanupSemanticCache:function(){c=void 0},getSyntacticDiagnostics:function(e){return b(),c.getSyntacticDiagnostics(h(e),p).slice()},getSemanticDiagnostics:function(n){b();var t=h(n),r=c.getSemanticDiagnostics(t,p);if(!e.getEmitDeclarations(c.getCompilerOptions()))return r.slice();var a=c.getDeclarationDiagnostics(t,p);return i(i([],r,!0),a,!0)},getSuggestionDiagnostics:function(n){return b(),e.computeSuggestionDiagnostics(h(n),c,p)},getCompilerOptionsDiagnostics:function(){return b(),i(i([],c.getOptionsDiagnostics(p),!0),c.getGlobalDiagnostics(p),!0)},getSyntacticClassifications:function(n,t){return e.getSyntacticClassifications(p,u.getCurrentSourceFile(n),t)},getSemanticClassifications:function(n,t,r){return b(),"2020"===(r||"original")?e.classifier.v2020.getSemanticClassifications(c,p,h(n),t):e.getSemanticClassifications(c.getTypeChecker(),p,h(n),c.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(n,t){return e.getEncodedSyntacticClassifications(p,u.getCurrentSourceFile(n),t)},getEncodedSemanticClassifications:function(n,t,r){return b(),"original"===(r||"original")?e.getEncodedSemanticClassifications(c.getTypeChecker(),p,h(n),c.getClassifiableNames(),t):e.classifier.v2020.getEncodedSemanticClassifications(c,p,h(n),t)},getCompletionsAtPosition:function(t,r,i){void 0===i&&(i=e.emptyOptions);var o=a(a({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return b(),e.Completions.getCompletionsAtPosition(n,c,m,h(t),r,o,i.triggerCharacter,i.triggerKind,p)},getCompletionEntryDetails:function(t,r,i,a,o,s,l){return void 0===s&&(s=e.emptyOptions),b(),e.Completions.getCompletionEntryDetails(c,m,h(t),r,{name:i,source:o,data:l},n,a&&e.formatting.getFormatContext(a,n),s,p)},getCompletionEntrySymbol:function(t,r,i,a,o){return void 0===o&&(o=e.emptyOptions),b(),e.Completions.getCompletionEntrySymbol(c,m,h(t),r,{name:i,source:a},n,o)},getSignatureHelpItems:function(n,t,r){var i=(void 0===r?e.emptyOptions:r).triggerReason;b();var a=h(n);return e.SignatureHelp.getSignatureHelpItems(c,a,t,i,p)},getQuickInfoAtPosition:function(n,t){b();var r=h(n),i=e.getTouchingPropertyName(r,t);if(i!==r){var a=c.getTypeChecker(),o=function(n){return e.isNewExpression(n.parent)&&n.pos===n.parent.pos?n.parent.expression:e.isNamedTupleMember(n.parent)&&n.pos===n.parent.pos?n.parent:n}(i),s=function(n,t){var r=k(n);if(r){var i=t.getContextualType(r.parent),a=i&&R(r,t,i,!1);if(a&&1===a.length)return e.first(a)}return t.getSymbolAtLocation(n)}(o,a);if(!s||a.isUnknownSymbol(s)){var l=function(n,t,r){switch(t.kind){case 79:return!e.isLabelName(t)&&!e.isTagName(t)&&!e.isConstTypeReference(t.parent);case 204:case 159:return!e.isInComment(n,r);case 108:case 190:case 106:case 195:return!0;default:return!1}}(r,o,t)?a.getTypeAtLocation(o):void 0;return l&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,r),displayParts:a.runWithCancellationToken(p,(function(n){return e.typeToDisplayParts(n,l,e.getContainerNode(o))})),documentation:l.symbol?l.symbol.getDocumentationComment(a):void 0,tags:l.symbol?l.symbol.getJsDocTags(a):void 0}}var u=a.runWithCancellationToken(p,(function(n){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,s,r,e.getContainerNode(o),o)})),d=u.symbolKind,f=u.displayParts,m=u.documentation,_=u.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,s),textSpan:e.createTextSpanFromNode(o,r),displayParts:f,documentation:m,tags:_}}},getDefinitionAtPosition:function(n,t){return b(),e.GoToDefinition.getDefinitionAtPosition(c,h(n),t)},getDefinitionAndBoundSpan:function(n,t){return b(),e.GoToDefinition.getDefinitionAndBoundSpan(c,h(n),t)},getImplementationAtPosition:function(n,t){return b(),e.FindAllReferences.getImplementationsAtPosition(c,p,c.getSourceFiles(),h(n),t)},getTypeDefinitionAtPosition:function(n,t){return b(),e.GoToDefinition.getTypeDefinitionAtPosition(c.getTypeChecker(),h(n),t)},getReferencesAtPosition:function(n,t){return b(),L(e.getTouchingPropertyName(h(n),t),t,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(n,t){return b(),e.FindAllReferences.findReferencedSymbols(c,p,c.getSourceFiles(),h(n),t)},getFileReferences:function(n){return b(),e.FindAllReferences.Core.getReferencesForFileName(n,c,c.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)},getOccurrencesAtPosition:function(n,t){return e.flatMap(x(n,t,[n]),(function(e){return e.highlightSpans.map((function(n){return a(a({fileName:e.fileName,textSpan:n.textSpan,isWriteAccess:"writtenReference"===n.kind,isDefinition:!1},n.isInString&&{isInString:!0}),n.contextSpan&&{contextSpan:n.contextSpan})}))}))},getDocumentHighlights:x,getNameOrDottedNameSpan:function(n,t,r){var i=u.getCurrentSourceFile(n),a=e.getTouchingPropertyName(i,t);if(a!==i){switch(a.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 o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(259!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(n,t){var r=u.getCurrentSourceFile(n);return e.BreakpointResolver.spanInSourceFileAtLocation(r,t)},getNavigateToItems:function(n,t,r,i){void 0===i&&(i=!1),b();var a=r?[h(r)]:c.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,c.getTypeChecker(),p,n,t,i)},getRenameInfo:function(n,t,r){return b(),e.Rename.getRenameInfo(c,h(n),t,r)},getSmartSelectionRange:function(n,t){return e.SmartSelectionRange.getSmartSelectionRange(t,u.getCurrentSourceFile(n))},findRenameLocations:function(n,t,r,i,o){b();var s=h(n),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,t));if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var l=c.parent.parent;return[l.openingElement,l.closingElement].map((function(n){var t=e.createTextSpanFromNode(n.tagName,s);return a({fileName:s.fileName,textSpan:t},e.FindAllReferences.toContextSpan(t,s,n.parent))}))}return L(c,t,{findInStrings:r,findInComments:i,providePrefixAndSuffixTextForRename:o,use:2},(function(n,t,r){return e.FindAllReferences.toRenameLocation(n,t,r,o||!1)}))},getNavigationBarItems:function(n){return e.NavigationBar.getNavigationBarItems(u.getCurrentSourceFile(n),p)},getNavigationTree:function(n){return e.NavigationBar.getNavigationTree(u.getCurrentSourceFile(n),p)},getOutliningSpans:function(n){var t=u.getCurrentSourceFile(n);return e.OutliningElementsCollector.collectElements(t,p)},getTodoComments:function(n,t){b();var r=h(n);p.throwIfCancellationRequested();var i,a,o=r.text,s=[];if(t.length>0&&(a=r.fileName,!e.stringContains(a,"/node_modules/")))for(var c=function(){var n="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",r="(?:"+e.map(t,(function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"})).join("|")+")";return new RegExp(n+"("+r+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),l=void 0;l=c.exec(o);){p.throwIfCancellationRequested(),e.Debug.assert(l.length===t.length+3);var u=l[1],d=l.index+u.length;if(e.isInComment(r,d)){for(var f=void 0,m=0;m<t.length;m++)l[m+3]&&(f=t[m]);if(void 0===f)return e.Debug.fail();if(!((i=o.charCodeAt(d+f.text.length))>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var _=l[2];s.push({descriptor:f,message:_,position:d})}}}return s},getBraceMatchingAtPosition:function(n,t){var r=u.getCurrentSourceFile(n),i=e.getTouchingToken(r,t),a=i.getStart(r)===t?C.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,r);return o?[e.createTextSpanFromNode(i,r),e.createTextSpanFromNode(o,r)].sort((function(e,n){return e.start-n.start})):e.emptyArray},getIndentationAtPosition:function(n,t,r){var i=e.timestamp(),a=v(r),o=u.getCurrentSourceFile(n);m("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(t,o,a);return m("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(t,r,i,a){var o=u.getCurrentSourceFile(t);return e.formatting.formatSelection(r,i,o,e.formatting.getFormatContext(v(a),n))},getFormattingEditsForDocument:function(t,r){return e.formatting.formatDocument(u.getCurrentSourceFile(t),e.formatting.getFormatContext(v(r),n))},getFormattingEditsAfterKeystroke:function(t,r,i,a){var o=u.getCurrentSourceFile(t),s=e.formatting.getFormatContext(v(a),n);if(!e.isInComment(o,r))switch(i){case"{":return e.formatting.formatOnOpeningCurly(r,o,s);case"}":return e.formatting.formatOnClosingCurly(r,o,s);case";":return e.formatting.formatOnSemicolon(r,o,s);case"\n":return e.formatting.formatOnEnter(r,o,s)}return[]},getDocCommentTemplateAtPosition:function(t,r,i){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(n),u.getCurrentSourceFile(t),r,i)},isValidBraceCompletionAtPosition:function(n,t,r){if(60===r)return!1;var i=u.getCurrentSourceFile(n);if(e.isInString(i,t))return!1;if(e.isInsideJsxElementOrAttribute(i,t))return 123===r;if(e.isInTemplateString(i,t))return!1;switch(r){case 39:case 34:case 96:return!e.isInComment(i,t)}return!0},getJsxClosingTagAtPosition:function(n,t){var r=u.getCurrentSourceFile(n),i=e.findPrecedingToken(t,r);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)?i.parent:void 0;return a&&F(a)?{newText:"</"+a.openingElement.tagName.getText(r)+">"}:void 0}},getSpanOfEnclosingComment:function(n,t,r){var i=u.getCurrentSourceFile(n),a=e.formatting.getRangeOfEnclosingComment(i,t);return!a||r&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(t,r,i,a,o,s){void 0===s&&(s=e.emptyOptions),b();var l=h(t),u=e.createTextSpanFromBounds(r,i),d=e.formatting.getFormatContext(o,n);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(function(t){return p.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:t,sourceFile:l,span:u,program:c,host:n,cancellationToken:p,formatContext:d,preferences:s})}))},getCombinedCodeFix:function(t,r,i,a){void 0===a&&(a=e.emptyOptions),b(),e.Debug.assert("file"===t.type);var o=h(t.fileName),s=e.formatting.getFormatContext(i,n);return e.codefix.getAllFixes({fixId:r,sourceFile:o,program:c,host:n,cancellationToken:p,formatContext:s,preferences:a})},applyCodeActionCommand:function(n,t){var r="string"==typeof n?t:n;return e.isArray(r)?Promise.all(r.map((function(e){return O(e)}))):O(r)},organizeImports:function(t,r,i){void 0===i&&(i=e.emptyOptions),b(),e.Debug.assert("file"===t.type);var a=h(t.fileName),o=e.formatting.getFormatContext(r,n);return e.OrganizeImports.organizeImports(a,o,n,c,i,t.skipDestructiveCodeActions)},getEditsForFileRename:function(t,r,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(S(),t,r,n,e.formatting.getFormatContext(i,n),a,y)},getEmitOutput:function(t,r,i){b();var a=h(t),o=n.getCustomTransformers&&n.getCustomTransformers();return e.getFileEmitOutput(c,a,!!r,p,o,i)},getNonBoundSourceFile:function(e){return u.getCurrentSourceFile(e)},getProgram:S,getAutoImportProvider:function(){var e;return null===(e=n.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(n)},getApplicableRefactors:function(n,t,r,i,a){void 0===r&&(r=e.emptyOptions),b();var o=h(n);return e.refactor.getApplicableRefactors(G(o,t,r,e.emptyOptions,i,a))},getEditsForRefactor:function(n,t,r,i,a,o){void 0===o&&(o=e.emptyOptions),b();var s=h(n);return e.refactor.getEditsForRefactor(G(s,r,o,t),i,a)},toLineColumnOffset:function(e,n){return 0===n?{line:0,character:0}:y.toLineColumnOffset(e,n)},getSourceMapper:function(){return y},clearSourceMapperCache:function(){return y.clearCache()},prepareCallHierarchy:function(n,t){b();var r=e.CallHierarchy.resolveCallHierarchyDeclaration(c,e.getTouchingPropertyName(h(n),t));return r&&e.mapOneOrMany(r,(function(n){return e.CallHierarchy.createCallHierarchyItem(c,n)}))},provideCallHierarchyIncomingCalls:function(n,t){b();var r=h(n),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===t?r:e.getTouchingPropertyName(r,t)));return i?e.CallHierarchy.getIncomingCalls(c,i,p):[]},provideCallHierarchyOutgoingCalls:function(n,t){b();var r=h(n),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===t?r:e.getTouchingPropertyName(r,t)));return i?e.CallHierarchy.getOutgoingCalls(c,i):[]},toggleLineComment:w,toggleMultilineComment:M,commentSelection:function(e,n){var t=P(u.getCurrentSourceFile(e),n);return t.firstLine===t.lastLine&&n.pos!==n.end?M(e,n,!0):w(e,n,!0)},uncommentSelection:function(n,t){var r=u.getCurrentSourceFile(n),i=[],a=t.pos,o=t.end;a===o&&(o+=e.isInsideJsxElement(r,a)?2:1);for(var s=a;s<=o;s++){var c=e.isInComment(r,s);if(c){switch(c.kind){case 2:i.push.apply(i,w(n,{end:c.end,pos:c.pos+1},!1));break;case 3:i.push.apply(i,M(n,{end:c.end,pos:c.pos+1},!1))}s=c.end+1}}return i},provideInlayHints:function(t,r,i){void 0===i&&(i=e.emptyOptions),b();var a=h(t);return e.InlayHints.provideInlayHints(function(e,t,r){return{file:e,program:S(),host:n,span:t,preferences:r,cancellationToken:p}}(a,r,i))}};switch(s){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:I.forEach((function(e){return B[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.PartialSemantic")}}));break;case e.LanguageServiceMode.Syntactic:N.forEach((function(e){return B[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.Syntactic")}}));break;default:e.Debug.assertNever(s)}return B},e.getNameTable=function(n){return n.nameTable||function(n){var t=n.nameTable=new e.Map;n.forEachChild((function n(r){if(e.isIdentifier(r)&&!e.isTagName(r)&&r.escapedText||e.isStringOrNumericLiteralLike(r)&&function(n){return e.isDeclarationName(n)||275===n.parent.kind||function(e){return e&&e.parent&&205===e.parent.kind&&e.parent.argumentExpression===e}(n)||e.isLiteralComputedPropertyDeclarationName(n)}(r)){var i=e.getEscapedTextOfIdentifierOrLiteral(r);t.set(i,void 0===t.get(i)?r.pos:-1)}else e.isPrivateIdentifier(r)&&(i=r.escapedText,t.set(i,void 0===t.get(i)?r.pos:-1));if(e.forEachChild(r,n),e.hasJSDocNodes(r))for(var a=0,o=r.jsDoc;a<o.length;a++){var s=o[a];e.forEachChild(s,n)}}))}(n),n.nameTable},e.getContainingObjectLiteralElement=k,e.getPropertySymbolsFromContextualType=R,e.getDefaultLibFilePath=function(n){return"/"+e.directorySeparator+e.getDefaultLibFileName(n)},e.setObjectAllocator({getNodeConstructor:function(){return t},getTokenConstructor:function(){return c},getIdentifierConstructor:function(){return u},getPrivateIdentifierConstructor:function(){return d},getSourceFileConstructor:function(){return y},getSymbolConstructor:function(){return s},getTypeConstructor:function(){return p},getSignatureConstructor:function(){return f},getSourceMapSourceConstructor:function(){return h}})}(u||(u={})),function(e){(e.BreakpointResolver||(e.BreakpointResolver={})).spanInSourceFileAtLocation=function(n,t){if(!n.isDeclarationFile){var r=e.getTokenAtPosition(n,t),i=n.getLineAndCharacterOfPosition(t).line;if(n.getLineAndCharacterOfPosition(r.getStart(n)).line>i){var a=e.findPrecedingToken(r.pos,n);if(!a||n.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;r=a}if(!(8388608&r.flags))return d(r)}function o(t,r){var i=t.decorators?e.skipTrivia(n.text,t.decorators.end):t.getStart(n);return e.createTextSpanFromBounds(i,(r||t).getEnd())}function s(t,r){return o(t,e.findNextToken(r,r.parent,n))}function c(e,t){return e&&i===n.getLineAndCharacterOfPosition(e.getStart(n)).line?d(e):d(t)}function l(t){return d(e.findPrecedingToken(t.pos,n))}function u(t){return d(e.findNextToken(t,t.parent,n))}function d(t){if(t){var r=t.parent;switch(t.kind){case 235:return E(t.declarationList.declarations[0]);case 252:case 165:case 164:return E(t);case 162:return function n(t){if(e.isBindingPattern(t.name))return L(t.name);if(function(n){return!!n.initializer||void 0!==n.dotDotDotToken||e.hasSyntacticModifier(n,12)}(t))return o(t);var r=t.parent,i=r.parameters.indexOf(t);return e.Debug.assert(-1!==i),0!==i?n(r.parameters[i-1]):d(r.body)}(t);case 254:case 167:case 166:case 170:case 171:case 169:case 211:case 212:return function(e){if(e.body)return T(e)?o(e):d(e.body)}(t);case 233:if(e.isFunctionBlock(t))return h=(y=t).statements.length?y.statements[0]:y.getLastToken(),T(y.parent)?c(y.parent,h):d(h);case 260:return S(t);case 290:return S(t.block);case 236:return o(t.expression);case 245:return o(t.getChildAt(0),t.expression);case 239:return s(t,t.expression);case 238:return d(t.statement);case 251:return o(t.getChildAt(0));case 237:return s(t,t.expression);case 248:return d(t.statement);case 244:case 243:return o(t.getChildAt(0),t.label);case 240:return(g=t).initializer?x(g):g.condition?o(g.condition):g.incrementor?o(g.incrementor):void 0;case 241:return s(t,t.expression);case 242:return x(t);case 247:return s(t,t.expression);case 287:case 288:return d(t.statements[0]);case 250:return S(t.tryBlock);case 249:case 269:return o(t,t.expression);case 263:return o(t,t.moduleReference);case 264:case 270:return o(t,t.moduleSpecifier);case 259:if(1!==e.getModuleInstanceState(t))return;case 255:case 258:case 294:case 201:return o(t);case 246:return d(t.statement);case 163:return v=r.decorators,e.createTextSpanFromBounds(e.skipTrivia(n.text,v.pos),v.end);case 199:case 200:return L(t);case 256:case 257:return;case 26:case 1:return c(e.findPrecedingToken(t.pos,n));case 27:return l(t);case 18:return function(t){switch(t.parent.kind){case 258:var r=t.parent;return c(e.findPrecedingToken(t.pos,n,t.parent),r.members.length?r.members[0]:r.getLastToken(n));case 255:var i=t.parent;return c(e.findPrecedingToken(t.pos,n,t.parent),i.members.length?i.members[0]:i.getLastToken(n));case 261:return c(t.parent.parent,t.parent.clauses[0])}return d(t.parent)}(t);case 19:return function(n){switch(n.parent.kind){case 260:if(1!==e.getModuleInstanceState(n.parent.parent))return;case 258:case 255:return o(n);case 233:if(e.isFunctionBlock(n.parent))return o(n);case 290:return d(e.lastOrUndefined(n.parent.statements));case 261:var t=n.parent,r=e.lastOrUndefined(t.clauses);return r?d(e.lastOrUndefined(r.statements)):void 0;case 199:var i=n.parent;return d(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)){var a=n.parent;return o(e.lastOrUndefined(a.properties)||a)}return d(n.parent)}}(t);case 23:return function(n){if(200===n.parent.kind){var t=n.parent;return o(e.lastOrUndefined(t.elements)||t)}if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)){var r=n.parent;return o(e.lastOrUndefined(r.elements)||r)}return d(n.parent)}(t);case 20:return function(e){return 238===e.parent.kind||206===e.parent.kind||207===e.parent.kind?l(e):210===e.parent.kind?u(e):d(e.parent)}(t);case 21:return function(e){switch(e.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 l(e);default:return d(e.parent)}}(t);case 58:return function(n){return e.isFunctionLike(n.parent)||291===n.parent.kind||162===n.parent.kind?l(n):d(n.parent)}(t);case 31:case 29:return function(e){return 209===e.parent.kind?u(e):d(e.parent)}(t);case 115:return function(e){return 238===e.parent.kind?s(e,e.parent.expression):d(e.parent)}(t);case 91:case 83:case 96:return u(t);case 158:return function(e){return 242===e.parent.kind?u(e):d(e.parent)}(t);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t))return D(t);if((79===t.kind||223===t.kind||291===t.kind||292===t.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return o(t);if(219===t.kind){var i=t,a=i.left,p=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return D(a);if(63===p.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent))return o(t);if(27===p.kind)return d(a)}if(e.isExpressionNode(t))switch(r.kind){case 238:return l(t);case 163:return d(t.parent);case 240:case 242:return o(t);case 219:if(27===t.parent.operatorToken.kind)return o(t);break;case 212:if(t.parent.body===t)return o(t)}switch(t.parent.kind){case 291:if(t.parent.name===t&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent))return d(t.parent.initializer);break;case 209:if(t.parent.type===t)return u(t.parent.type);break;case 252:case 162:var f=t.parent,m=f.initializer,_=f.type;if(m===t||_===t||e.isAssignmentOperator(t.kind))return l(t);break;case 219:if(a=t.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&t!==a)return l(t);break;default:if(e.isFunctionLike(t.parent)&&t.parent.type===t)return l(t)}return d(t.parent)}}var g,y,h,v;function b(t){return e.isVariableDeclarationList(t.parent)&&t.parent.declarations[0]===t?o(e.findPrecedingToken(t.pos,n,t.parent),t):o(t)}function E(t){if(241===t.parent.parent.kind)return d(t.parent.parent);var r=t.parent;return e.isBindingPattern(t.name)?L(t.name):t.initializer||e.hasSyntacticModifier(t,1)||242===r.parent.kind?b(t):e.isVariableDeclarationList(t.parent)&&t.parent.declarations[0]!==t?d(e.findPrecedingToken(t.pos,n,t.parent)):void 0}function T(n){return e.hasSyntacticModifier(n,1)||255===n.parent.kind&&169!==n.kind}function S(t){switch(t.parent.kind){case 259:if(1!==e.getModuleInstanceState(t.parent))return;case 239:case 237:case 241:return c(t.parent,t.statements[0]);case 240:case 242:return c(e.findPrecedingToken(t.pos,n,t.parent),t.statements[0])}return d(t.statements[0])}function x(e){if(253!==e.initializer.kind)return d(e.initializer);var n=e.initializer;return n.declarations.length>0?d(n.declarations[0]):void 0}function L(n){var t=e.forEach(n.elements,(function(e){return 225!==e.kind?e:void 0}));return t?d(t):201===n.parent.kind?o(n.parent):b(n.parent)}function D(n){e.Debug.assert(200!==n.kind&&199!==n.kind);var t=202===n.kind?n.elements:n.properties,r=e.forEach(t,(function(e){return 225!==e.kind?e:void 0}));return r?d(r):o(219===n.parent.kind?n.parent:n)}}}}(u||(u={})),function(e){e.transform=function(n,t,r){var i=[];r=e.fixupCompilerOptions(r,i);var a=e.isArray(n)?n:[n],o=e.transformNodes(void 0,void 0,e.factory,r,a,t,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(u||(u={}));var u,d=function(){return this}();!function(e){function n(e,n){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+n.message)}var t=function(){function n(e){this.scriptSnapshotShim=e}return n.prototype.getText=function(e,n){return this.scriptSnapshotShim.getText(e,n)},n.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},n.prototype.getChangeRange=function(n){var t=n,r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(null===r)return null;var i=JSON.parse(r);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},n.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},n}(),r=function(){function n(n){var t=this;this.shimHost=n,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(n,r){var i=JSON.parse(t.shimHost.getModuleResolutionsForFile(r));return e.map(n,(function(n){var t=e.getProperty(i,n);return t?{resolvedFileName:t,extension:e.extensionFromPath(t),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(n,r){var i=JSON.parse(t.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return e.map(n,(function(n){return e.getProperty(i,n)}))})}return n.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},n.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},n.prototype.error=function(e){this.shimHost.error(e)},n.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},n.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},n.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},n.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var n=JSON.parse(e);return n.allowNonTsExtensions=!0,n},n.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},n.prototype.getScriptSnapshot=function(e){var n=this.shimHost.getScriptSnapshot(e);return n&&new t(n)},n.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},n.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},n.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},n.prototype.getCancellationToken=function(){var n=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(n)},n.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},n.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},n.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},n.prototype.readDirectory=function(n,t,r,i,a){var o=e.getFileMatcherPatterns(n,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(n,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},n.prototype.readFile=function(e,n){return this.shimHost.readFile(e,n)},n.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},n}();e.LanguageServiceShimHostAdapter=r;var o=function(){function n(e){var n=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return n.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return n.shimHost.realpath(e)}:this.realpath=void 0}return n.prototype.readDirectory=function(n,t,r,i,a){var o=e.getFileMatcherPatterns(n,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(n,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},n.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},n.prototype.readFile=function(e){return this.shimHost.readFile(e)},n.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},n}();function s(e,n,t,r){return u(e,n,!0,t,r)}function u(t,r,i,a,o){try{var s=function(n,t,r,i){var a;i&&(n.log(t),a=e.timestamp());var o=r();if(i){var s=e.timestamp();if(n.log(t+" completed in "+(s-a)+" msec"),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),n.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(t,r,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(n(t,i),i.description=r,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=o;var p=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function f(n,t){return n.map((function(n){return function(n,t){return{message:e.flattenDiagnosticMessageText(n.messageText,t),start:n.start,length:n.length,category:e.diagnosticCategoryName(n),code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}(n,t)}))}e.realizeDiagnostics=f;var m=function(n){function t(e,t,r){var i=n.call(this,e)||this;return i.host=t,i.languageService=r,i.logPerformance=!1,i.logger=i.host,i}return l(t,n),t.prototype.forwardJSONCall=function(e,n){return s(this.logger,e,n,this.logPerformance)},t.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,d&&d.CollectGarbage&&(d.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,n.prototype.dispose.call(this,e)},t.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",(function(){return null}))},t.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},t.prototype.realizeDiagnostics=function(n){return f(n,e.getNewLineOrDefaultFromHost(this.host))},t.prototype.getSyntacticClassifications=function(n,t,r){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+n+"', "+t+", "+r+")",(function(){return i.languageService.getSyntacticClassifications(n,e.createTextSpan(t,r))}))},t.prototype.getSemanticClassifications=function(n,t,r){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+n+"', "+t+", "+r+")",(function(){return i.languageService.getSemanticClassifications(n,e.createTextSpan(t,r))}))},t.prototype.getEncodedSyntacticClassifications=function(n,t,r){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+n+"', "+t+", "+r+")",(function(){return _(i.languageService.getEncodedSyntacticClassifications(n,e.createTextSpan(t,r)))}))},t.prototype.getEncodedSemanticClassifications=function(n,t,r){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+n+"', "+t+", "+r+")",(function(){return _(i.languageService.getEncodedSemanticClassifications(n,e.createTextSpan(t,r)))}))},t.prototype.getSyntacticDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",(function(){var t=n.languageService.getSyntacticDiagnostics(e);return n.realizeDiagnostics(t)}))},t.prototype.getSemanticDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",(function(){var t=n.languageService.getSemanticDiagnostics(e);return n.realizeDiagnostics(t)}))},t.prototype.getSuggestionDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",(function(){return n.realizeDiagnostics(n.languageService.getSuggestionDiagnostics(e))}))},t.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(function(){var n=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(n)}))},t.prototype.getQuickInfoAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getQuickInfoAtPosition(e,n)}))},t.prototype.getNameOrDottedNameSpan=function(e,n,t){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+n+", "+t+")",(function(){return r.languageService.getNameOrDottedNameSpan(e,n,t)}))},t.prototype.getBreakpointStatementAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getBreakpointStatementAtPosition(e,n)}))},t.prototype.getSignatureHelpItems=function(e,n,t){var r=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+n+")",(function(){return r.languageService.getSignatureHelpItems(e,n,t)}))},t.prototype.getDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getDefinitionAtPosition(e,n)}))},t.prototype.getDefinitionAndBoundSpan=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+n+")",(function(){return t.languageService.getDefinitionAndBoundSpan(e,n)}))},t.prototype.getTypeDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getTypeDefinitionAtPosition(e,n)}))},t.prototype.getImplementationAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getImplementationAtPosition(e,n)}))},t.prototype.getRenameInfo=function(e,n,t){var r=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+n+")",(function(){return r.languageService.getRenameInfo(e,n,t)}))},t.prototype.getSmartSelectionRange=function(e,n){var t=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+n+")",(function(){return t.languageService.getSmartSelectionRange(e,n)}))},t.prototype.findRenameLocations=function(e,n,t,r,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+n+", "+t+", "+r+", "+i+")",(function(){return a.languageService.findRenameLocations(e,n,t,r,i)}))},t.prototype.getBraceMatchingAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getBraceMatchingAtPosition(e,n)}))},t.prototype.isValidBraceCompletionAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+n+", "+t+")",(function(){return r.languageService.isValidBraceCompletionAtPosition(e,n,t)}))},t.prototype.getSpanOfEnclosingComment=function(e,n,t){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+n+")",(function(){return r.languageService.getSpanOfEnclosingComment(e,n,t)}))},t.prototype.getIndentationAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+n+")",(function(){var i=JSON.parse(t);return r.languageService.getIndentationAtPosition(e,n,i)}))},t.prototype.getReferencesAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getReferencesAtPosition(e,n)}))},t.prototype.findReferences=function(e,n){var t=this;return this.forwardJSONCall("findReferences('"+e+"', "+n+")",(function(){return t.languageService.findReferences(e,n)}))},t.prototype.getFileReferences=function(e){var n=this;return this.forwardJSONCall("getFileReferences('"+e+")",(function(){return n.languageService.getFileReferences(e)}))},t.prototype.getOccurrencesAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getOccurrencesAtPosition(e,n)}))},t.prototype.getDocumentHighlights=function(n,t,r){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+n+"', "+t+")",(function(){var a=i.languageService.getDocumentHighlights(n,t,JSON.parse(r)),o=e.toFileNameLowerCase(e.normalizeSlashes(n));return e.filter(a,(function(n){return e.toFileNameLowerCase(e.normalizeSlashes(n.fileName))===o}))}))},t.prototype.getCompletionsAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+n+", "+t+")",(function(){return r.languageService.getCompletionsAtPosition(e,n,t)}))},t.prototype.getCompletionEntryDetails=function(e,n,t,r,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+n+", '"+t+"')",(function(){var c=void 0===r?void 0:JSON.parse(r);return s.languageService.getCompletionEntryDetails(e,n,t,c,i,a,o)}))},t.prototype.getFormattingEditsForRange=function(e,n,t,r){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+n+", "+t+")",(function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsForRange(e,n,t,a)}))},t.prototype.getFormattingEditsForDocument=function(e,n){var t=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",(function(){var r=JSON.parse(n);return t.languageService.getFormattingEditsForDocument(e,r)}))},t.prototype.getFormattingEditsAfterKeystroke=function(e,n,t,r){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+n+", '"+t+"')",(function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsAfterKeystroke(e,n,t,a)}))},t.prototype.getDocCommentTemplateAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+n+")",(function(){return r.languageService.getDocCommentTemplateAtPosition(e,n,t)}))},t.prototype.getNavigateToItems=function(e,n,t){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+n+", "+t+")",(function(){return r.languageService.getNavigateToItems(e,n,t)}))},t.prototype.getNavigationBarItems=function(e){var n=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",(function(){return n.languageService.getNavigationBarItems(e)}))},t.prototype.getNavigationTree=function(e){var n=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",(function(){return n.languageService.getNavigationTree(e)}))},t.prototype.getOutliningSpans=function(e){var n=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",(function(){return n.languageService.getOutliningSpans(e)}))},t.prototype.getTodoComments=function(e,n){var t=this;return this.forwardJSONCall("getTodoComments('"+e+"')",(function(){return t.languageService.getTodoComments(e,JSON.parse(n))}))},t.prototype.prepareCallHierarchy=function(e,n){var t=this;return this.forwardJSONCall("prepareCallHierarchy('"+e+"', "+n+")",(function(){return t.languageService.prepareCallHierarchy(e,n)}))},t.prototype.provideCallHierarchyIncomingCalls=function(e,n){var t=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+e+"', "+n+")",(function(){return t.languageService.provideCallHierarchyIncomingCalls(e,n)}))},t.prototype.provideCallHierarchyOutgoingCalls=function(e,n){var t=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+e+"', "+n+")",(function(){return t.languageService.provideCallHierarchyOutgoingCalls(e,n)}))},t.prototype.provideInlayHints=function(e,n,t){var r=this;return this.forwardJSONCall("provideInlayHints('"+e+"', '"+JSON.stringify(n)+"', "+JSON.stringify(t)+")",(function(){return r.languageService.provideInlayHints(e,n,t)}))},t.prototype.getEmitOutput=function(e){var n=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",(function(){var t=n.languageService.getEmitOutput(e),r=t.diagnostics,i=c(t,["diagnostics"]);return a(a({},i),{diagnostics:n.realizeDiagnostics(r)})}))},t.prototype.getEmitOutputObject=function(e){var n=this;return u(this.logger,"getEmitOutput('"+e+"')",!1,(function(){return n.languageService.getEmitOutput(e)}),this.logPerformance)},t.prototype.toggleLineComment=function(e,n){var t=this;return this.forwardJSONCall("toggleLineComment('"+e+"', '"+JSON.stringify(n)+"')",(function(){return t.languageService.toggleLineComment(e,n)}))},t.prototype.toggleMultilineComment=function(e,n){var t=this;return this.forwardJSONCall("toggleMultilineComment('"+e+"', '"+JSON.stringify(n)+"')",(function(){return t.languageService.toggleMultilineComment(e,n)}))},t.prototype.commentSelection=function(e,n){var t=this;return this.forwardJSONCall("commentSelection('"+e+"', '"+JSON.stringify(n)+"')",(function(){return t.languageService.commentSelection(e,n)}))},t.prototype.uncommentSelection=function(e,n){var t=this;return this.forwardJSONCall("uncommentSelection('"+e+"', '"+JSON.stringify(n)+"')",(function(){return t.languageService.uncommentSelection(e,n)}))},t}(p);function _(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var g=function(n){function t(t,r){var i=n.call(this,t)||this;return i.logger=r,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return l(t,n),t.prototype.getEncodedLexicalClassifications=function(e,n,t){var r=this;return void 0===t&&(t=!1),s(this.logger,"getEncodedLexicalClassifications",(function(){return _(r.classifier.getEncodedLexicalClassifications(e,n,t))}),this.logPerformance)},t.prototype.getClassificationsForLine=function(e,n,t){void 0===t&&(t=!1);for(var r=this.classifier.getClassificationsForLine(e,n,t),i="",a=0,o=r.entries;a<o.length;a++){var s=o[a];i+=s.length+"\n",i+=s.classification+"\n"}return i+r.finalLexState},t}(p),y=function(n){function t(e,t,r){var i=n.call(this,e)||this;return i.logger=t,i.host=r,i.logPerformance=!1,i}return l(t,n),t.prototype.forwardJSONCall=function(e,n){return s(this.logger,e,n,this.logPerformance)},t.prototype.resolveModuleName=function(n,t,r){var i=this;return this.forwardJSONCall("resolveModuleName('"+n+"')",(function(){var a=JSON.parse(r),o=e.resolveModuleName(t,e.normalizeSlashes(n),a,i.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&".ts"!==o.resolvedModule.extension&&".tsx"!==o.resolvedModule.extension&&".d.ts"!==o.resolvedModule.extension&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations}}))},t.prototype.resolveTypeReferenceDirective=function(n,t,r){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+n+")",(function(){var a=JSON.parse(r),o=e.resolveTypeReferenceDirective(t,e.normalizeSlashes(n),a,i.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}}))},t.prototype.getPreProcessedFileInfo=function(n,t){var r=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+n+"')",(function(){var n=e.preProcessFile(e.getSnapshotText(t),!0,!0);return{referencedFiles:r.convertFileReferences(n.referencedFiles),importedFiles:r.convertFileReferences(n.importedFiles),ambientExternalModules:n.ambientExternalModules,isLibFile:n.isLibFile,typeReferenceDirectives:r.convertFileReferences(n.typeReferenceDirectives),libReferenceDirectives:r.convertFileReferences(n.libReferenceDirectives)}}))},t.prototype.getAutomaticTypeDirectiveNames=function(n){var t=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+n+"')",(function(){var r=JSON.parse(n);return e.getAutomaticTypeDirectiveNames(r,t.host)}))},t.prototype.convertFileReferences=function(n){if(n){for(var t=[],r=0,i=n;r<i.length;r++){var a=i[r];t.push({path:e.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return t}},t.prototype.getTSConfigFileInfo=function(n,t){var r=this;return this.forwardJSONCall("getTSConfigFileInfo('"+n+"')",(function(){var a=e.parseJsonText(n,e.getSnapshotText(t)),o=e.normalizeSlashes(n),s=e.parseJsonSourceFileConfigFileContent(a,r.host,e.getDirectoryPath(o),{},o);return{options:s.options,typeAcquisition:s.typeAcquisition,files:s.fileNames,raw:s.raw,errors:f(i(i([],a.parseDiagnostics,!0),s.errors,!0),"\r\n")}}))},t.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",(function(){return e.getDefaultCompilerOptions()}))},t.prototype.discoverTypings=function(n){var t=this,r=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",(function(){var i=JSON.parse(n);return void 0===t.safeList&&(t.safeList=e.JsTyping.loadSafeList(t.host,e.toPath(i.safeListPath,i.safeListPath,r))),e.JsTyping.discoverTypings(t.host,(function(e){return t.logger.log(e)}),i.fileNames,e.toPath(i.projectRootPath,i.projectRootPath,r),t.safeList,i.packageNameToTypingLocation,i.typeAcquisition,i.unresolvedImports,i.typesRegistry)}))},t}(p),h=function(){function t(){this._shims=[]}return t.prototype.getServicesVersion=function(){return e.servicesVersion},t.prototype.createLanguageServiceShim=function(t){try{void 0===this.documentRegistry&&(this.documentRegistry=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var i=new r(t),a=e.createLanguageService(i,this.documentRegistry,!1);return new m(this,t,a)}catch(e){throw n(t,e),e}},t.prototype.createClassifierShim=function(e){try{return new g(this,e)}catch(t){throw n(e,t),t}},t.prototype.createCoreServicesShim=function(e){try{var t=new o(e);return new y(this,e,t)}catch(t){throw n(e,t),t}},t.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},t.prototype.registerShim=function(e){this._shims.push(e)},t.prototype.unregisterShim=function(e){for(var n=0;n<this._shims.length;n++)if(this._shims[n]===e)return void delete this._shims[n];throw new Error("Invalid operation")},t}();e.TypeScriptServicesFactory=h}(u||(u={})),function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,"undefined"==typeof globalThis&&(window.globalThis=window),delete Object.prototype.__magic__}catch(e){window.globalThis=window}}(),("undefined"==typeof process||process.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=u.TypeScriptServicesFactory,globalThis.toolsVersion=u.versionMajorMinor),e.exports&&(e.exports=u),function(e){var n={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,n),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,n),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,n),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,n),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,n),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,n),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,n),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,n),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,n),e.createSuper=e.Debug.deprecate(e.factory.createSuper,n),e.createThis=e.Debug.deprecate(e.factory.createThis,n),e.createNull=e.Debug.deprecate(e.factory.createNull,n),e.createTrue=e.Debug.deprecate(e.factory.createTrue,n),e.createFalse=e.Debug.deprecate(e.factory.createFalse,n),e.createModifier=e.Debug.deprecate(e.factory.createModifier,n),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,n),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,n),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,n),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,n),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,n),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,n),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,n),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,n),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,n),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,n),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,n),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,n),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,n),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,n),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,n),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,n),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,n),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,n),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,n),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,n),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,n),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,n),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,n),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,n),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,n),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,n),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,n),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,n),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,n),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,n),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,n),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,n),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,n),e.createConstructorTypeNode=e.Debug.deprecate((function(n,t,r){return e.factory.createConstructorTypeNode(void 0,n,t,r)}),n),e.updateConstructorTypeNode=e.Debug.deprecate((function(n,t,r,i){return e.factory.updateConstructorTypeNode(n,n.modifiers,t,r,i)}),n),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,n),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,n),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,n),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,n),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,n),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,n),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,n),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,n),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,n),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,n),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,n),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,n),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,n),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,n),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,n),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,n),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,n),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,n),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,n),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,n),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,n),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,n),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,n),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,n),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,n),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,n),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,n),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,n),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,n),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,n),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,n),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,n),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,n),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,n),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,n),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,n),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,n),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,n),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,n),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,n),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,n),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,n),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,n),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,n),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,n),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,n),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,n),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,n),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,n),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,n),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,n),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,n),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,n),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,n),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,n),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,n),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,n),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,n),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,n),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,n),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,n),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,n),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,n),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,n),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,n),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,n),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,n),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,n),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,n),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,n),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,n),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,n),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,n),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,n),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,n),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,n),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,n),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,n),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,n),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,n),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,n),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,n),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,n),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,n),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,n),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,n),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,n),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,n),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,n),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,n),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,n),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,n),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,n),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,n),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,n),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,n),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,n),e.createBlock=e.Debug.deprecate(e.factory.createBlock,n),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,n),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,n),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,n),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,n),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,n),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,n),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,n),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,n),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,n),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,n),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,n),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,n),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,n),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,n),e.createFor=e.Debug.deprecate(e.factory.createForStatement,n),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,n),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,n),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,n),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,n),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,n),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,n),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,n),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,n),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,n),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,n),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,n),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,n),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,n),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,n),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,n),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,n),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,n),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,n),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,n),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,n),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,n),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,n),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,n),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,n),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,n),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,n),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,n),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,n),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,n),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,n),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,n),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,n),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,n),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,n),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,n),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,n),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,n),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,n),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,n),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,n),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,n),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,n),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,n),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,n),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,n),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,n),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,n),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,n),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,n),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,n),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,n),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,n),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,n),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,n),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,n),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,n),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,n),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,n),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,n),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,n),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,n),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,n),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,n),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,n),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,n),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,n),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,n),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,n),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,n),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,n),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,n),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,n),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,n),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,n),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,n),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,n),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,n),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,n),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,n),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,n),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,n),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,n),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,n),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,n),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,n),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,n),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,n),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,n),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,n),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,n),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,n),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,n),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,n),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,n),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,n),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,n),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,n),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,n),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,n),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,n),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,n),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,n),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,n),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,n),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,n),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,n),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,n),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,n),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,n),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,n),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,n),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,n),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,n),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,n),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,n),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,n),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,n),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,n),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,n),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,n),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,n),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,n),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,n),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,n),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,n),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,n),e.createBundle=e.Debug.deprecate(e.factory.createBundle,n),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,n),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,n),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,n),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,n),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,n),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,n),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,n),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,n),e.createToken=e.Debug.deprecate((function(n){return e.factory.createToken(n)}),n),e.createIdentifier=e.Debug.deprecate((function(n){return e.factory.createIdentifier(n,void 0,void 0)}),n),e.createTempVariable=e.Debug.deprecate((function(n){return e.factory.createTempVariable(n,void 0)}),n),e.getGeneratedNameForNode=e.Debug.deprecate((function(n){return e.factory.getGeneratedNameForNode(n,void 0)}),n),e.createOptimisticUniqueName=e.Debug.deprecate((function(n){return e.factory.createUniqueName(n,16)}),n),e.createFileLevelUniqueName=e.Debug.deprecate((function(n){return e.factory.createUniqueName(n,48)}),n),e.createIndexSignature=e.Debug.deprecate((function(n,t,r,i){return e.factory.createIndexSignature(n,t,r,i)}),n),e.createTypePredicateNode=e.Debug.deprecate((function(n,t){return e.factory.createTypePredicateNode(void 0,n,t)}),n),e.updateTypePredicateNode=e.Debug.deprecate((function(n,t,r){return e.factory.updateTypePredicateNode(n,void 0,t,r)}),n),e.createLiteral=e.Debug.deprecate((function(n){return"number"==typeof n?e.factory.createNumericLiteral(n):"object"==typeof n&&"base10Value"in n?e.factory.createBigIntLiteral(n):"boolean"==typeof n?n?e.factory.createTrue():e.factory.createFalse():"string"==typeof n?e.factory.createStringLiteral(n,void 0):e.factory.createStringLiteralFromNode(n)}),{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(n,t,r,i,a){return e.factory.createMethodSignature(void 0,i,a,n,t,r)}),n),e.updateMethodSignature=e.Debug.deprecate((function(n,t,r,i,a,o){return e.factory.updateMethodSignature(n,n.modifiers,a,o,t,r,i)}),n),e.createTypeOperatorNode=e.Debug.deprecate((function(n,t){var r;return t?r=n:(t=n,r=139),e.factory.createTypeOperatorNode(r,t)}),n),e.createTaggedTemplate=e.Debug.deprecate((function(n,t,r){var i;return r?i=t:r=t,e.factory.createTaggedTemplateExpression(n,i,r)}),n),e.updateTaggedTemplate=e.Debug.deprecate((function(n,t,r,i){var a;return i?a=r:i=r,e.factory.updateTaggedTemplateExpression(n,t,a,i)}),n),e.updateBinary=e.Debug.deprecate((function(n,t,r,i){return void 0===i&&(i=n.operatorToken),"number"==typeof i&&(i=i===n.operatorToken.kind?n.operatorToken:e.factory.createToken(i)),e.factory.updateBinaryExpression(n,t,i,r)}),n),e.createConditional=e.Debug.deprecate((function(n,t,r,i,a){return 5===arguments.length?e.factory.createConditionalExpression(n,t,r,i,a):3===arguments.length?e.factory.createConditionalExpression(n,e.factory.createToken(57),t,e.factory.createToken(58),r):e.Debug.fail("Argument count mismatch")}),n),e.createYield=e.Debug.deprecate((function(n,t){var r;return t?r=n:t=n,e.factory.createYieldExpression(r,t)}),n),e.createClassExpression=e.Debug.deprecate((function(n,t,r,i,a){return e.factory.createClassExpression(void 0,n,t,r,i,a)}),n),e.updateClassExpression=e.Debug.deprecate((function(n,t,r,i,a,o){return e.factory.updateClassExpression(n,void 0,t,r,i,a,o)}),n),e.createPropertySignature=e.Debug.deprecate((function(n,t,r,i,a){var o=e.factory.createPropertySignature(n,t,r,i);return o.initializer=a,o}),n),e.updatePropertySignature=e.Debug.deprecate((function(n,t,r,i,a,o){var s=e.factory.updatePropertySignature(n,t,r,i,a);return n.initializer!==o&&(s===n&&(s=e.factory.cloneNode(n)),s.initializer=o),s}),n),e.createExpressionWithTypeArguments=e.Debug.deprecate((function(n,t){return e.factory.createExpressionWithTypeArguments(t,n)}),n),e.updateExpressionWithTypeArguments=e.Debug.deprecate((function(n,t,r){return e.factory.updateExpressionWithTypeArguments(n,r,t)}),n),e.createArrowFunction=e.Debug.deprecate((function(n,t,r,i,a,o){return 6===arguments.length?e.factory.createArrowFunction(n,t,r,i,a,o):5===arguments.length?e.factory.createArrowFunction(n,t,r,i,void 0,a):e.Debug.fail("Argument count mismatch")}),n),e.updateArrowFunction=e.Debug.deprecate((function(n,t,r,i,a,o,s){return 7===arguments.length?e.factory.updateArrowFunction(n,t,r,i,a,o,s):6===arguments.length?e.factory.updateArrowFunction(n,t,r,i,a,n.equalsGreaterThanToken,o):e.Debug.fail("Argument count mismatch")}),n),e.createVariableDeclaration=e.Debug.deprecate((function(n,t,r,i){return 4===arguments.length?e.factory.createVariableDeclaration(n,t,r,i):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(n,void 0,t,r):e.Debug.fail("Argument count mismatch")}),n),e.updateVariableDeclaration=e.Debug.deprecate((function(n,t,r,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(n,t,r,i,a):4===arguments.length?e.factory.updateVariableDeclaration(n,t,n.exclamationToken,r,i):e.Debug.fail("Argument count mismatch")}),n),e.createImportClause=e.Debug.deprecate((function(n,t,r){return void 0===r&&(r=!1),e.factory.createImportClause(r,n,t)}),n),e.updateImportClause=e.Debug.deprecate((function(n,t,r,i){return e.factory.updateImportClause(n,i,t,r)}),n),e.createExportDeclaration=e.Debug.deprecate((function(n,t,r,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(n,t,a,r,i)}),n),e.updateExportDeclaration=e.Debug.deprecate((function(n,t,r,i,a,o){return e.factory.updateExportDeclaration(n,t,r,o,i,a)}),n),e.createJSDocParamTag=e.Debug.deprecate((function(n,t,r,i){return e.factory.createJSDocParameterTag(void 0,n,t,r,!1,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):void 0)}),n),e.createComma=e.Debug.deprecate((function(n,t){return e.factory.createComma(n,t)}),n),e.createLessThan=e.Debug.deprecate((function(n,t){return e.factory.createLessThan(n,t)}),n),e.createAssignment=e.Debug.deprecate((function(n,t){return e.factory.createAssignment(n,t)}),n),e.createStrictEquality=e.Debug.deprecate((function(n,t){return e.factory.createStrictEquality(n,t)}),n),e.createStrictInequality=e.Debug.deprecate((function(n,t){return e.factory.createStrictInequality(n,t)}),n),e.createAdd=e.Debug.deprecate((function(n,t){return e.factory.createAdd(n,t)}),n),e.createSubtract=e.Debug.deprecate((function(n,t){return e.factory.createSubtract(n,t)}),n),e.createLogicalAnd=e.Debug.deprecate((function(n,t){return e.factory.createLogicalAnd(n,t)}),n),e.createLogicalOr=e.Debug.deprecate((function(n,t){return e.factory.createLogicalOr(n,t)}),n),e.createPostfixIncrement=e.Debug.deprecate((function(n){return e.factory.createPostfixIncrement(n)}),n),e.createLogicalNot=e.Debug.deprecate((function(n){return e.factory.createLogicalNot(n)}),n),e.createNode=e.Debug.deprecate((function(n,t,r){return void 0===t&&(t=0),void 0===r&&(r=0),e.setTextRangePosEnd(300===n?e.parseBaseNodeFactory.createBaseSourceFileNode(n):79===n?e.parseBaseNodeFactory.createBaseIdentifierNode(n):80===n?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(n):e.isNodeKind(n)?e.parseBaseNodeFactory.createBaseNode(n):e.parseBaseNodeFactory.createBaseTokenNode(n),t,r)}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((function(n){var t=e.factory.cloneNode(n);return e.setTextRange(t,n),e.setParent(t,n.parent),t}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate((function(e){return 209===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate((function(n){return e.isMemberName(n)}),{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})}(u||(u={})),u.createClassifier;var p=u.createLanguageService,f=(u.displayPartsToString,u.EndOfLineState,u.flattenDiagnosticMessageText,u.IndentStyle,u.ScriptKind);u.ScriptTarget,u.TokenClass}},n={};function t(r){var i=n[r];if(void 0!==i)return i.exports;var a=n[r]={id:r,loaded:!1,exports:{}};return e[r](a,a.exports,t),a.loaded=!0,a.exports}t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){const e=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}emit(e){this.listeners.forEach((n=>{n(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function n(n){var t;(t=n)instanceof Error&&t.name===i&&t.message===i||e.onUnexpectedError(n)}function r(e){if(e instanceof Error){let{name:n,message:t}=e;return{$isError:!0,name:n,message:t,stack:e.stacktrace||e.stack}}return e}const i="Canceled";function a(e){const n=this;let t,r=!1;return function(){return r||(r=!0,t=e.apply(n,arguments)),t}}var o;!function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const n=Object.freeze([]);e.empty=function(){return n},e.single=function*(e){yield e},e.from=function(e){return e||n},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,n){for(const t of e)if(n(t))return!0;return!1},e.find=function(e,n){for(const t of e)if(n(t))return t},e.filter=function*(e,n){for(const t of e)n(t)&&(yield t)},e.map=function*(e,n){let t=0;for(const r of e)yield n(r,t++)},e.concat=function*(...e){for(const n of e)for(const e of n)yield e},e.concatNested=function*(e){for(const n of e)for(const e of n)yield e},e.reduce=function(e,n,t){let r=t;for(const t of e)r=n(r,t);return r},e.slice=function*(e,n,t=e.length){for(n<0&&(n+=e.length),t<0?t+=e.length:t>e.length&&(t=e.length);n<t;n++)yield e[n]},e.consume=function(n,t=Number.POSITIVE_INFINITY){const r=[];if(0===t)return[r,n];const i=n[Symbol.iterator]();for(let n=0;n<t;n++){const n=i.next();if(n.done)return[r,e.empty()];r.push(n.value)}return[r,{[Symbol.iterator](){return i}}]},e.equals=function(e,n,t=((e,n)=>e===n)){const r=e[Symbol.iterator](),i=n[Symbol.iterator]();for(;;){const e=r.next(),n=i.next();if(e.done!==n.done)return!1;if(e.done)return!0;if(!t(e.value,n.value))return!1}}}(o||(o={}));let s=null;var c;function l(e){return null==s||s.trackDisposable(e),e}function u(e){null==s||s.markAsDisposed(e)}function d(e,n){null==s||s.setParent(e,n)}class p extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function f(e){if(o.is(e)){let n=[];for(const t of e)if(t)try{t.dispose()}catch(e){n.push(e)}if(1===n.length)throw n[0];if(n.length>1)throw new p(n);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function m(e){const n=l({dispose:a((()=>{u(n),e()}))});return n}class _{constructor(){this._toDispose=new Set,this._isDisposed=!1,l(this)}dispose(){this._isDisposed||(u(this),this._isDisposed=!0,this.clear())}clear(){try{f(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return d(e,this),this._isDisposed?_.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(e),e}}_.DISABLE_DISPOSED_WARNING=!1;class g{constructor(){this._store=new _,l(this),d(this._store,this)}dispose(){u(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}g.None=Object.freeze({dispose(){}});class y{constructor(e){this.element=e,this.next=y.Undefined,this.prev=y.Undefined}}y.Undefined=new y(void 0);class h{constructor(){this._first=y.Undefined,this._last=y.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===y.Undefined}clear(){let e=this._first;for(;e!==y.Undefined;){const n=e.next;e.prev=y.Undefined,e.next=y.Undefined,e=n}this._first=y.Undefined,this._last=y.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const t=new y(e);if(this._first===y.Undefined)this._first=t,this._last=t;else if(n){const e=this._last;this._last=t,t.prev=e,e.next=t}else{const e=this._first;this._first=t,t.next=e,e.prev=t}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(t))}}shift(){if(this._first!==y.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==y.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==y.Undefined&&e.next!==y.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===y.Undefined&&e.next===y.Undefined?(this._first=y.Undefined,this._last=y.Undefined):e.next===y.Undefined?(this._last=this._last.prev,this._last.next=y.Undefined):e.prev===y.Undefined&&(this._first=this._first.next,this._first.prev=y.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==y.Undefined;)yield e.element,e=e.next}}const v="en";let b,E,T=!1,S=!1,x=!1,L=!1,D=!1,A=!1,C=!1,I=null,N=null;const k="object"==typeof self?self:"object"==typeof t.g?t.g:{};let R;void 0!==k.vscode&&void 0!==k.vscode.process?R=k.vscode.process:"undefined"!=typeof process&&(R=process);const O="string"==typeof(null===(c=null==R?void 0:R.versions)||void 0===c?void 0:c.electron)&&"renderer"===R.type;if("object"!=typeof navigator||O)if("object"==typeof R){T="win32"===R.platform,S="darwin"===R.platform,x="linux"===R.platform,L=x&&!!R.env.SNAP&&!!R.env.SNAP_REVISION,b=v,I=v;const e=R.env.VSCODE_NLS_CONFIG;if(e)try{const n=JSON.parse(e),t=n.availableLanguages["*"];b=n.locale,I=t||v,N=n._translationsConfigFile}catch(e){}D=!0}else console.error("Unable to resolve platform.");else E=navigator.userAgent,T=E.indexOf("Windows")>=0,S=E.indexOf("Macintosh")>=0,(E.indexOf("Macintosh")>=0||E.indexOf("iPad")>=0||E.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,x=E.indexOf("Linux")>=0,!0,b=navigator.language,I=b;let P=0;S?P=1:T?P=3:x&&(P=2);const w=T,M=S,F=function(){if(k.setImmediate)return k.setImmediate.bind(k);if("function"==typeof k.postMessage&&!k.importScripts){let e=[];k.addEventListener("message",(n=>{if(n.data&&n.data.vscodeSetImmediateId)for(let t=0,r=e.length;t<r;t++){const r=e[t];if(r.id===n.data.vscodeSetImmediateId)return e.splice(t,1),void r.callback()}}));let n=0;return t=>{const r=++n;e.push({id:r,callback:t}),k.postMessage({vscodeSetImmediateId:r},"*")}}if("function"==typeof(null==R?void 0:R.nextTick))return R.nextTick.bind(R);const e=Promise.resolve();return n=>e.then(n)}(),G=k.performance&&"function"==typeof k.performance.now;class B{constructor(e){this._highResolution=G&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new B(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?k.performance.now():Date.now()}}var U;!function(e){function n(e){return(n,t=null,r)=>{let i,a=!1;return i=e((e=>{if(!a)return i?i.dispose():a=!0,n.call(t,e)}),null,r),a&&i.dispose(),i}}function t(e,n){return o(((t,r=null,i)=>e((e=>t.call(r,n(e))),null,i)))}function r(e,n){return o(((t,r=null,i)=>e((e=>{n(e),t.call(r,e)}),null,i)))}function i(e,n){return o(((t,r=null,i)=>e((e=>n(e)&&t.call(r,e)),null,i)))}function a(e,n,r){let i=r;return t(e,(e=>(i=n(i,e),i)))}function o(e){let n;const t=new j({onFirstListenerAdd(){n=e(t.fire,t)},onLastListenerRemove(){n.dispose()}});return t.event}function c(e,n,t=100,r=!1,i){let a,o,s,c=0;const l=new j({leakWarningThreshold:i,onFirstListenerAdd(){a=e((e=>{c++,o=n(o,e),r&&!s&&(l.fire(o),o=void 0),clearTimeout(s),s=setTimeout((()=>{const e=o;o=void 0,s=void 0,(!r||c>1)&&l.fire(e),c=0}),t)}))},onLastListenerRemove(){a.dispose()}});return l.event}function l(e,n=((e,n)=>e===n)){let t,r=!0;return i(e,(e=>{const i=r||!n(e,t);return r=!1,t=e,i}))}e.None=()=>g.None,e.once=n,e.map=t,e.forEach=r,e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(n,t=null,r)=>function(...e){const n=m((()=>f(e)));return function(e,n){if(s)for(const t of e)s.setParent(t,n)}(e,n),n}(...e.map((e=>e((e=>n.call(t,e)),null,r))))},e.reduce=a,e.debounce=c,e.latch=l,e.split=function(n,t){return[e.filter(n,t),e.filter(n,(e=>!t(e)))]},e.buffer=function(e,n=!1,t=[]){let r=t.slice(),i=e((e=>{r?r.push(e):o.fire(e)}));const a=()=>{r&&r.forEach((e=>o.fire(e))),r=null},o=new j({onFirstListenerAdd(){i||(i=e((e=>o.fire(e))))},onFirstListenerDidAdd(){r&&(n?setTimeout(a):a())},onLastListenerRemove(){i&&i.dispose(),i=null}});return o.event};class u{constructor(e){this.event=e}map(e){return new u(t(this.event,e))}forEach(e){return new u(r(this.event,e))}filter(e){return new u(i(this.event,e))}reduce(e,n){return new u(a(this.event,e,n))}latch(){return new u(l(this.event))}debounce(e,n=100,t=!1,r){return new u(c(this.event,e,n,t,r))}on(e,n,t){return this.event(e,n,t)}once(e,t,r){return n(this.event)(e,t,r)}}e.chain=function(e){return new u(e)},e.fromNodeEventEmitter=function(e,n,t=(e=>e)){const r=(...e)=>i.fire(t(...e)),i=new j({onFirstListenerAdd:()=>e.on(n,r),onLastListenerRemove:()=>e.removeListener(n,r)});return i.event},e.fromDOMEventEmitter=function(e,n,t=(e=>e)){const r=(...e)=>i.fire(t(...e)),i=new j({onFirstListenerAdd:()=>e.addEventListener(n,r),onLastListenerRemove:()=>e.removeEventListener(n,r)});return i.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))}}(U||(U={}));class V{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${V._idPool++}`}start(e){this._stopWatch=new B(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}V._idPool=0;class j{constructor(e){var n;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(n=this._options)||void 0===n?void 0:n._profName)?new V(this._options._profName):void 0}get event(){return this._event||(this._event=(e,n,t)=>{var r;this._listeners||(this._listeners=new h);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const a=this._listeners.push(n?[e,n]:e);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,n);const o=null===(r=this._leakageMon)||void 0===r?void 0:r.check(this._listeners.size),s=m((()=>{o&&o(),!this._disposed&&(a(),this._options&&this._options.onLastListenerRemove)&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this))}));return t instanceof _?t.add(s):Array.isArray(t)&&t.push(s),s}),this._event}fire(e){var t,r;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new h);for(let n of this._listeners)this._deliveryQueue.push([n,e]);for(null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){n(e)}}null===(r=this._perfMon)||void 0===r||r.stop()}}dispose(){var e,n,t,r,i;this._disposed||(this._disposed=!0,null===(e=this._listeners)||void 0===e||e.clear(),null===(n=this._deliveryQueue)||void 0===n||n.clear(),null===(r=null===(t=this._options)||void 0===t?void 0:t.onLastListenerRemove)||void 0===r||r.call(t),null===(i=this._leakageMon)||void 0===i||i.dispose())}}function K(e){const n=[];for(const t of function(e){let n=[],t=Object.getPrototypeOf(e);for(;Object.prototype!==t;)n=n.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t);return n}(e))"function"==typeof e[t]&&n.push(t);return n}function H(e){return e>=65&&e<=90}function W(e){return 55296<=e&&e<=56319}function z(e){return 56320<=e&&e<=57343}String.fromCharCode(65279);class J{constructor(){this._data=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]")}static getInstance(){return J._INSTANCE||(J._INSTANCE=new J),J._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const n=this._data,t=n.length/3;let r=1;for(;r<=t;)if(e<n[3*r])r*=2;else{if(!(e>n[3*r+1]))return n[3*r+2];r=2*r+1}return 0}}J._INSTANCE=null;let q;class X{constructor(e,n,t,r){this.vsWorker=e,this.req=n,this.method=t,this.args=r,this.type=0}}class Y{constructor(e,n,t,r){this.vsWorker=e,this.seq=n,this.res=t,this.err=r,this.type=1}}class Q{constructor(e,n,t,r){this.vsWorker=e,this.req=n,this.eventName=t,this.arg=r,this.type=2}}class Z{constructor(e,n,t){this.vsWorker=e,this.req=n,this.event=t,this.type=3}}class ${constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class ee{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,n){const t=String(++this._lastSentReq);return new Promise(((r,i)=>{this._pendingReplies[t]={resolve:r,reject:i},this._send(new X(this._workerId,t,e,n))}))}listen(e,n){let t=null;const r=new j({onFirstListenerAdd:()=>{t=String(++this._lastSentReq),this._pendingEmitters.set(t,r),this._send(new Q(this._workerId,t,e,n))},onLastListenerRemove:()=>{this._pendingEmitters.delete(t),this._send(new $(this._workerId,t)),t=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");let n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let t=e.err;return e.err.$isError&&(t=new Error,t.name=e.err.name,t.message=e.err.message,t.stack=e.err.stack),void n.reject(t)}n.resolve(e.res)}_handleRequestMessage(e){let n=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new Y(this._workerId,n,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=r(e.detail)),this._send(new Y(this._workerId,n,void 0,r(e)))}))}_handleSubscribeEventMessage(e){const n=e.req,t=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new Z(this._workerId,n,e))}));this._pendingEvents.set(n,t)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){let n=[];if(0===e.type)for(let t=0;t<e.args.length;t++)e.args[t]instanceof ArrayBuffer&&n.push(e.args[t]);else 1===e.type&&e.res instanceof ArrayBuffer&&n.push(e.res);this._handler.sendMessage(e,n)}}function ne(e){return"o"===e[0]&&"n"===e[1]&&H(e.charCodeAt(2))}function te(e){return/^onDynamic/.test(e)&&H(e.charCodeAt(9))}class re{constructor(e,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new ee({sendMessage:(n,t)=>{e(n,t)},handleMessage:(e,n)=>this._handleMessage(e,n),handleEvent:(e,n)=>this._handleEvent(e,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n){if("$initialize"===e)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,n))}catch(e){return Promise.reject(e)}}_handleEvent(e,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(te(e)){const t=this._requestHandler[e].call(this._requestHandler,n);if("function"!=typeof t)throw new Error(`Missing dynamic event ${e} on request handler.`);return t}if(ne(e)){const n=this._requestHandler[e];if("function"!=typeof n)throw new Error(`Missing event ${e} on request handler.`);return n}throw new Error(`Malformed event name ${e}`)}initialize(e,n,t,r){this._protocol.setWorkerId(e);const i=function(e,n,t){const r=e=>function(){const t=Array.prototype.slice.call(arguments,0);return n(e,t)},i=e=>function(n){return t(e,n)};let a={};for(const n of e)te(n)?a[n]=i(n):ne(n)?a[n]=t(n,void 0):a[n]=r(n);return a}(r,((e,n)=>this._protocol.sendMessage(e,n)),((e,n)=>this._protocol.listen(e,n)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(i),Promise.resolve(K(this._requestHandler))):(n&&(void 0!==n.baseUrl&&delete n.baseUrl,void 0!==n.paths&&void 0!==n.paths.vs&&delete n.paths.vs,void 0!==typeof n.trustedTypesPolicy&&delete n.trustedTypesPolicy,n.catchError=!0,k.require.config(n)),new Promise(((e,n)=>{(0,k.require)([t],(t=>{this._requestHandler=t.create(i),this._requestHandler?e(K(this._requestHandler)):n(new Error("No RequestHandler!"))}),n)})))}}class ie{constructor(e,n,t,r){this.originalStart=e,this.originalLength=n,this.modifiedStart=t,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function ae(e,n){return(n<<5)-n+e|0}function oe(e,n){n=ae(149417,n);for(let t=0,r=e.length;t<r;t++)n=ae(e.charCodeAt(t),n);return n}function se(e,n,t=32){const r=t-n;return(e<<n|(~((1<<r)-1)&e)>>>r)>>>0}function ce(e,n=0,t=e.byteLength,r=0){for(let i=0;i<t;i++)e[n+i]=r}function le(e,n=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,n,t="0"){for(;e.length<n;)e=t+e;return e}((e>>>0).toString(16),n/4)}class ue{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(e){const n=e.length;if(0===n)return;const t=this._buff;let r,i,a=this._buffLen,o=this._leftoverHighSurrogate;for(0!==o?(r=o,i=-1,o=0):(r=e.charCodeAt(0),i=0);;){let s=r;if(W(r)){if(!(i+1<n)){o=r;break}{const n=e.charCodeAt(i+1);z(n)?(i++,s=n-56320+(r-55296<<10)+65536):s=65533}}else z(r)&&(s=65533);if(a=this._push(t,a,s),i++,!(i<n))break;r=e.charCodeAt(i)}this._buffLen=a,this._leftoverHighSurrogate=o}_push(e,n,t){return t<128?e[n++]=t:t<2048?(e[n++]=192|(1984&t)>>>6,e[n++]=128|(63&t)>>>0):t<65536?(e[n++]=224|(61440&t)>>>12,e[n++]=128|(4032&t)>>>6,e[n++]=128|(63&t)>>>0):(e[n++]=240|(1835008&t)>>>18,e[n++]=128|(258048&t)>>>12,e[n++]=128|(4032&t)>>>6,e[n++]=128|(63&t)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),n}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()),le(this._h0)+le(this._h1)+le(this._h2)+le(this._h3)+le(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,ce(this._buff,this._buffLen),this._buffLen>56&&(this._step(),ce(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=ue._bigBlock32,n=this._buffDV;for(let t=0;t<64;t+=4)e.setUint32(t,n.getUint32(t,!1),!1);for(let n=64;n<320;n+=4)e.setUint32(n,se(e.getUint32(n-12,!1)^e.getUint32(n-32,!1)^e.getUint32(n-56,!1)^e.getUint32(n-64,!1),1),!1);let t,r,i,a=this._h0,o=this._h1,s=this._h2,c=this._h3,l=this._h4;for(let n=0;n<80;n++)n<20?(t=o&s|~o&c,r=1518500249):n<40?(t=o^s^c,r=1859775393):n<60?(t=o&s|o&c|s&c,r=2400959708):(t=o^s^c,r=3395469782),i=se(a,5)+t+l+r+e.getUint32(4*n,!1)&4294967295,l=c,c=s,s=se(o,30),o=a,a=i;this._h0=this._h0+a&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+l&4294967295}}ue._bigBlock32=new DataView(new ArrayBuffer(320));class de{constructor(e){this.source=e}getElements(){const e=this.source,n=new Int32Array(e.length);for(let t=0,r=e.length;t<r;t++)n[t]=e.charCodeAt(t);return n}}function pe(e,n,t){return new ge(new de(e),new de(n)).ComputeDiff(t).changes}class fe{static Assert(e,n){if(!e)throw new Error(n)}}class me{static Copy(e,n,t,r,i){for(let a=0;a<i;a++)t[r+a]=e[n+a]}static Copy2(e,n,t,r,i){for(let a=0;a<i;a++)t[r+a]=e[n+a]}}class _e{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 ie(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(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),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 ge{constructor(e,n,t=null){this.ContinueProcessingPredicate=t,this._originalSequence=e,this._modifiedSequence=n;const[r,i,a]=ge._getElements(e),[o,s,c]=ge._getElements(n);this._hasStrings=a&&c,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=o,this._modifiedElementsOrHash=s,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const n=e.getElements();if(ge._isStringArray(n)){const e=new Int32Array(n.length);for(let t=0,r=n.length;t<r;t++)e[t]=oe(n[t],0);return[n,e,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(e,n){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[n]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[n])}ElementsAreStrictEqual(e,n){return!!this.ElementsAreEqual(e,n)&&ge._getStrictElement(this._originalSequence,e)===ge._getStrictElement(this._modifiedSequence,n)}static _getStrictElement(e,n){return"function"==typeof e.getStrictElement?e.getStrictElement(n):null}OriginalElementsAreEqual(e,n){return this._originalElementsOrHash[e]===this._originalElementsOrHash[n]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[n])}ModifiedElementsAreEqual(e,n){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[n]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[n])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,n,t,r,i){const a=[!1];let o=this.ComputeDiffRecursive(e,n,t,r,a);return i&&(o=this.PrettifyChanges(o)),{quitEarly:a[0],changes:o}}ComputeDiffRecursive(e,n,t,r,i){for(i[0]=!1;e<=n&&t<=r&&this.ElementsAreEqual(e,t);)e++,t++;for(;n>=e&&r>=t&&this.ElementsAreEqual(n,r);)n--,r--;if(e>n||t>r){let i;return t<=r?(fe.Assert(e===n+1,"originalStart should only be one more than originalEnd"),i=[new ie(e,0,t,r-t+1)]):e<=n?(fe.Assert(t===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[new ie(e,n-e+1,t,0)]):(fe.Assert(e===n+1,"originalStart should only be one more than originalEnd"),fe.Assert(t===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}const a=[0],o=[0],s=this.ComputeRecursionPoint(e,n,t,r,a,o,i),c=a[0],l=o[0];if(null!==s)return s;if(!i[0]){const a=this.ComputeDiffRecursive(e,c,t,l,i);let o=[];return o=i[0]?[new ie(c+1,n-(c+1)+1,l+1,r-(l+1)+1)]:this.ComputeDiffRecursive(c+1,n,l+1,r,i),this.ConcatenateChanges(a,o)}return[new ie(e,n-e+1,t,r-t+1)]}WALKTRACE(e,n,t,r,i,a,o,s,c,l,u,d,p,f,m,_,g,y){let h=null,v=null,b=new _e,E=n,T=t,S=p[0]-_[0]-r,x=-1073741824,L=this.m_forwardHistory.length-1;do{const n=S+e;n===E||n<T&&c[n-1]<c[n+1]?(f=(u=c[n+1])-S-r,u<x&&b.MarkNextChange(),x=u,b.AddModifiedElement(u+1,f),S=n+1-e):(f=(u=c[n-1]+1)-S-r,u<x&&b.MarkNextChange(),x=u-1,b.AddOriginalElement(u,f+1),S=n-1-e),L>=0&&(e=(c=this.m_forwardHistory[L])[0],E=1,T=c.length-1)}while(--L>=-1);if(h=b.getReverseChanges(),y[0]){let e=p[0]+1,n=_[0]+1;if(null!==h&&h.length>0){const t=h[h.length-1];e=Math.max(e,t.getOriginalEnd()),n=Math.max(n,t.getModifiedEnd())}v=[new ie(e,d-e+1,n,m-n+1)]}else{b=new _e,E=a,T=o,S=p[0]-_[0]-s,x=1073741824,L=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+i;e===E||e<T&&l[e-1]>=l[e+1]?(f=(u=l[e+1]-1)-S-s,u>x&&b.MarkNextChange(),x=u+1,b.AddOriginalElement(u+1,f+1),S=e+1-i):(f=(u=l[e-1])-S-s,u>x&&b.MarkNextChange(),x=u,b.AddModifiedElement(u+1,f+1),S=e-1-i),L>=0&&(i=(l=this.m_reverseHistory[L])[0],E=1,T=l.length-1)}while(--L>=-1);v=b.getChanges()}return this.ConcatenateChanges(h,v)}ComputeRecursionPoint(e,n,t,r,i,a,o){let s=0,c=0,l=0,u=0,d=0,p=0;e--,t--,i[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=n-e+(r-t),m=f+1,_=new Int32Array(m),g=new Int32Array(m),y=r-t,h=n-e,v=e-t,b=n-r,E=(h-y)%2==0;_[y]=e,g[h]=n,o[0]=!1;for(let T=1;T<=f/2+1;T++){let f=0,S=0;l=this.ClipDiagonalBound(y-T,T,y,m),u=this.ClipDiagonalBound(y+T,T,y,m);for(let e=l;e<=u;e+=2){s=e===l||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,c=s-(e-y)-v;const t=s;for(;s<n&&c<r&&this.ElementsAreEqual(s+1,c+1);)s++,c++;if(_[e]=s,s+c>f+S&&(f=s,S=c),!E&&Math.abs(e-h)<=T-1&&s>=g[e])return i[0]=s,a[0]=c,t<=g[e]&&T<=1448?this.WALKTRACE(y,l,u,v,h,d,p,b,_,g,s,n,i,c,r,a,E,o):null}const x=(f-e+(S-t)-T)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,x))return o[0]=!0,i[0]=f,a[0]=S,x>0&&T<=1448?this.WALKTRACE(y,l,u,v,h,d,p,b,_,g,s,n,i,c,r,a,E,o):(e++,t++,[new ie(e,n-e+1,t,r-t+1)]);d=this.ClipDiagonalBound(h-T,T,h,m),p=this.ClipDiagonalBound(h+T,T,h,m);for(let f=d;f<=p;f+=2){s=f===d||f<p&&g[f-1]>=g[f+1]?g[f+1]-1:g[f-1],c=s-(f-h)-b;const m=s;for(;s>e&&c>t&&this.ElementsAreEqual(s,c);)s--,c--;if(g[f]=s,E&&Math.abs(f-y)<=T&&s<=_[f])return i[0]=s,a[0]=c,m>=_[f]&&T<=1448?this.WALKTRACE(y,l,u,v,h,d,p,b,_,g,s,n,i,c,r,a,E,o):null}if(T<=1447){let e=new Int32Array(u-l+2);e[0]=y-l+1,me.Copy2(_,l,e,1,u-l+1),this.m_forwardHistory.push(e),e=new Int32Array(p-d+2),e[0]=h-d+1,me.Copy2(g,d,e,1,p-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(y,l,u,v,h,d,p,b,_,g,s,n,i,c,r,a,E,o)}PrettifyChanges(e){for(let n=0;n<e.length;n++){const t=e[n],r=n<e.length-1?e[n+1].originalStart:this._originalElementsOrHash.length,i=n<e.length-1?e[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=t.originalLength>0,o=t.modifiedLength>0;for(;t.originalStart+t.originalLength<r&&t.modifiedStart+t.modifiedLength<i&&(!a||this.OriginalElementsAreEqual(t.originalStart,t.originalStart+t.originalLength))&&(!o||this.ModifiedElementsAreEqual(t.modifiedStart,t.modifiedStart+t.modifiedLength));){const e=this.ElementsAreStrictEqual(t.originalStart,t.modifiedStart);if(this.ElementsAreStrictEqual(t.originalStart+t.originalLength,t.modifiedStart+t.modifiedLength)&&!e)break;t.originalStart++,t.modifiedStart++}let s=[null];n<e.length-1&&this.ChangesOverlap(e[n],e[n+1],s)&&(e[n]=s[0],e.splice(n+1,1),n--)}for(let n=e.length-1;n>=0;n--){const t=e[n];let r=0,i=0;if(n>0){const t=e[n-1];r=t.originalStart+t.originalLength,i=t.modifiedStart+t.modifiedLength}const a=t.originalLength>0,o=t.modifiedLength>0;let s=0,c=this._boundaryScore(t.originalStart,t.originalLength,t.modifiedStart,t.modifiedLength);for(let e=1;;e++){const n=t.originalStart-e,l=t.modifiedStart-e;if(n<r||l<i)break;if(a&&!this.OriginalElementsAreEqual(n,n+t.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(l,l+t.modifiedLength))break;const u=(n===r&&l===i?5:0)+this._boundaryScore(n,t.originalLength,l,t.modifiedLength);u>c&&(c=u,s=e)}t.originalStart-=s,t.modifiedStart-=s;const l=[null];n>0&&this.ChangesOverlap(e[n-1],e[n],l)&&(e[n-1]=l[0],e.splice(n,1),n++)}if(this._hasStrings)for(let n=1,t=e.length;n<t;n++){const t=e[n-1],r=e[n],i=r.originalStart-t.originalStart-t.originalLength,a=t.originalStart,o=r.originalStart+r.originalLength,s=o-a,c=t.modifiedStart,l=r.modifiedStart+r.modifiedLength,u=l-c;if(i<5&&s<20&&u<20){const e=this._findBetterContiguousSequence(a,s,c,u,i);if(e){const[n,a]=e;n===t.originalStart+t.originalLength&&a===t.modifiedStart+t.modifiedLength||(t.originalLength=n-t.originalStart,t.modifiedLength=a-t.modifiedStart,r.originalStart=n+i,r.modifiedStart=a+i,r.originalLength=o-r.originalStart,r.modifiedLength=l-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,n,t,r,i){if(n<i||r<i)return null;const a=e+n-i+1,o=t+r-i+1;let s=0,c=0,l=0;for(let n=e;n<a;n++)for(let e=t;e<o;e++){const t=this._contiguousSequenceScore(n,e,i);t>0&&t>s&&(s=t,c=n,l=e)}return s>0?[c,l]:null}_contiguousSequenceScore(e,n,t){let r=0;for(let i=0;i<t;i++){if(!this.ElementsAreEqual(e+i,n+i))return 0;r+=this._originalStringElements[e+i].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const t=e+n;if(this._OriginalIsBoundary(t-1)||this._OriginalIsBoundary(t))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const t=e+n;if(this._ModifiedIsBoundary(t-1)||this._ModifiedIsBoundary(t))return!0}return!1}_boundaryScore(e,n,t,r){return(this._OriginalRegionIsBoundary(e,n)?1:0)+(this._ModifiedRegionIsBoundary(t,r)?1:0)}ConcatenateChanges(e,n){let t=[];if(0===e.length||0===n.length)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],t)){const r=new Array(e.length+n.length-1);return me.Copy(e,0,r,0,e.length-1),r[e.length-1]=t[0],me.Copy(n,1,r,e.length,n.length-1),r}{const t=new Array(e.length+n.length);return me.Copy(e,0,t,0,e.length),me.Copy(n,0,t,e.length,n.length),t}}ChangesOverlap(e,n,t){if(fe.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),fe.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const r=e.originalStart;let i=e.originalLength;const a=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(i=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-e.modifiedStart),t[0]=new ie(r,i,a,o),!0}return t[0]=null,!1}ClipDiagonalBound(e,n,t,r){if(e>=0&&e<r)return e;const i=n%2==0;return e<0?i===(t%2==0)?0:1:i===((r-t-1)%2==0)?r-1:r-2}}if(void 0!==k.vscode&&void 0!==k.vscode.process){const e=k.vscode.process;q={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()},nextTick(e){return F(e)}}}else q="undefined"!=typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()},nextTick(e){return process.nextTick(e)}}:{get platform(){return w?"win32":M?"darwin":"linux"},get arch(){},nextTick(e){return F(e)},get env(){return{}},cwd(){return"/"}};const ye=q.cwd,he=q.env,ve=q.platform,be=46,Ee=47,Te=92,Se=58;class xe extends Error{constructor(e,n,t){let r;"string"==typeof n&&0===n.indexOf("not ")?(r="must not be",n=n.replace(/^not /,"")):r="must be";const i=-1!==e.indexOf(".")?"property":"argument";let a=`The "${e}" ${i} ${r} of type ${n}`;a+=". Received type "+typeof t,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function Le(e,n){if("string"!=typeof e)throw new xe(n,"string",e)}function De(e){return e===Ee||e===Te}function Ae(e){return e===Ee}function Ce(e){return e>=65&&e<=90||e>=97&&e<=122}function Ie(e,n,t,r){let i="",a=0,o=-1,s=0,c=0;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else{if(r(c))break;c=Ee}if(r(c)){if(o===l-1||1===s);else if(2===s){if(i.length<2||2!==a||i.charCodeAt(i.length-1)!==be||i.charCodeAt(i.length-2)!==be){if(i.length>2){const e=i.lastIndexOf(t);-1===e?(i="",a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(t)),o=l,s=0;continue}if(0!==i.length){i="",a=0,o=l,s=0;continue}}n&&(i+=i.length>0?`${t}..`:"..",a=2)}else i.length>0?i+=`${t}${e.slice(o+1,l)}`:i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else c===be&&-1!==s?++s:s=-1}return i}function Ne(e,n){if(null===n||"object"!=typeof n)throw new xe("pathObject","Object",n);const t=n.dir||n.root,r=n.base||`${n.name||""}${n.ext||""}`;return t?t===n.root?`${t}${r}`:`${t}${e}${r}`:r}const ke={resolve(...e){let n="",t="",r=!1;for(let i=e.length-1;i>=-1;i--){let a;if(i>=0){if(a=e[i],Le(a,"path"),0===a.length)continue}else 0===n.length?a=ye():(a=he[`=${n}`]||ye(),(void 0===a||a.slice(0,2).toLowerCase()!==n.toLowerCase()&&a.charCodeAt(2)===Te)&&(a=`${n}\\`));const o=a.length;let s=0,c="",l=!1;const u=a.charCodeAt(0);if(1===o)De(u)&&(s=1,l=!0);else if(De(u))if(l=!0,De(a.charCodeAt(1))){let e=2,n=e;for(;e<o&&!De(a.charCodeAt(e));)e++;if(e<o&&e!==n){const t=a.slice(n,e);for(n=e;e<o&&De(a.charCodeAt(e));)e++;if(e<o&&e!==n){for(n=e;e<o&&!De(a.charCodeAt(e));)e++;e!==o&&e===n||(c=`\\\\${t}\\${a.slice(n,e)}`,s=e)}}}else s=1;else Ce(u)&&a.charCodeAt(1)===Se&&(c=a.slice(0,2),s=2,o>2&&De(a.charCodeAt(2))&&(l=!0,s=3));if(c.length>0)if(n.length>0){if(c.toLowerCase()!==n.toLowerCase())continue}else n=c;if(r){if(n.length>0)break}else if(t=`${a.slice(s)}\\${t}`,r=l,l&&n.length>0)break}return t=Ie(t,!r,"\\",De),r?`${n}\\${t}`:`${n}${t}`||"."},normalize(e){Le(e,"path");const n=e.length;if(0===n)return".";let t,r=0,i=!1;const a=e.charCodeAt(0);if(1===n)return Ae(a)?"\\":e;if(De(a))if(i=!0,De(e.charCodeAt(1))){let i=2,a=i;for(;i<n&&!De(e.charCodeAt(i));)i++;if(i<n&&i!==a){const o=e.slice(a,i);for(a=i;i<n&&De(e.charCodeAt(i));)i++;if(i<n&&i!==a){for(a=i;i<n&&!De(e.charCodeAt(i));)i++;if(i===n)return`\\\\${o}\\${e.slice(a)}\\`;i!==a&&(t=`\\\\${o}\\${e.slice(a,i)}`,r=i)}}}else r=1;else Ce(a)&&e.charCodeAt(1)===Se&&(t=e.slice(0,2),r=2,n>2&&De(e.charCodeAt(2))&&(i=!0,r=3));let o=r<n?Ie(e.slice(r),!i,"\\",De):"";return 0!==o.length||i||(o="."),o.length>0&&De(e.charCodeAt(n-1))&&(o+="\\"),void 0===t?i?`\\${o}`:o:i?`${t}\\${o}`:`${t}${o}`},isAbsolute(e){Le(e,"path");const n=e.length;if(0===n)return!1;const t=e.charCodeAt(0);return De(t)||n>2&&Ce(t)&&e.charCodeAt(1)===Se&&De(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let n,t;for(let r=0;r<e.length;++r){const i=e[r];Le(i,"path"),i.length>0&&(void 0===n?n=t=i:n+=`\\${i}`)}if(void 0===n)return".";let r=!0,i=0;if("string"==typeof t&&De(t.charCodeAt(0))){++i;const e=t.length;e>1&&De(t.charCodeAt(1))&&(++i,e>2&&(De(t.charCodeAt(2))?++i:r=!1))}if(r){for(;i<n.length&&De(n.charCodeAt(i));)i++;i>=2&&(n=`\\${n.slice(i)}`)}return ke.normalize(n)},relative(e,n){if(Le(e,"from"),Le(n,"to"),e===n)return"";const t=ke.resolve(e),r=ke.resolve(n);if(t===r)return"";if((e=t.toLowerCase())===(n=r.toLowerCase()))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===Te;)i++;let a=e.length;for(;a-1>i&&e.charCodeAt(a-1)===Te;)a--;const o=a-i;let s=0;for(;s<n.length&&n.charCodeAt(s)===Te;)s++;let c=n.length;for(;c-1>s&&n.charCodeAt(c-1)===Te;)c--;const l=c-s,u=o<l?o:l;let d=-1,p=0;for(;p<u;p++){const t=e.charCodeAt(i+p);if(t!==n.charCodeAt(s+p))break;t===Te&&(d=p)}if(p!==u){if(-1===d)return r}else{if(l>u){if(n.charCodeAt(s+p)===Te)return r.slice(s+p+1);if(2===p)return r.slice(s+p)}o>u&&(e.charCodeAt(i+p)===Te?d=p:2===p&&(d=3)),-1===d&&(d=0)}let f="";for(p=i+d+1;p<=a;++p)p!==a&&e.charCodeAt(p)!==Te||(f+=0===f.length?"..":"\\..");return s+=d,f.length>0?`${f}${r.slice(s,c)}`:(r.charCodeAt(s)===Te&&++s,r.slice(s,c))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const n=ke.resolve(e);if(n.length<=2)return e;if(n.charCodeAt(0)===Te){if(n.charCodeAt(1)===Te){const e=n.charCodeAt(2);if(63!==e&&e!==be)return`\\\\?\\UNC\\${n.slice(2)}`}}else if(Ce(n.charCodeAt(0))&&n.charCodeAt(1)===Se&&n.charCodeAt(2)===Te)return`\\\\?\\${n}`;return e},dirname(e){Le(e,"path");const n=e.length;if(0===n)return".";let t=-1,r=0;const i=e.charCodeAt(0);if(1===n)return De(i)?e:".";if(De(i)){if(t=r=1,De(e.charCodeAt(1))){let i=2,a=i;for(;i<n&&!De(e.charCodeAt(i));)i++;if(i<n&&i!==a){for(a=i;i<n&&De(e.charCodeAt(i));)i++;if(i<n&&i!==a){for(a=i;i<n&&!De(e.charCodeAt(i));)i++;if(i===n)return e;i!==a&&(t=r=i+1)}}}}else Ce(i)&&e.charCodeAt(1)===Se&&(t=n>2&&De(e.charCodeAt(2))?3:2,r=t);let a=-1,o=!0;for(let t=n-1;t>=r;--t)if(De(e.charCodeAt(t))){if(!o){a=t;break}}else o=!1;if(-1===a){if(-1===t)return".";a=t}return e.slice(0,a)},basename(e,n){void 0!==n&&Le(n,"ext"),Le(e,"path");let t,r=0,i=-1,a=!0;if(e.length>=2&&Ce(e.charCodeAt(0))&&e.charCodeAt(1)===Se&&(r=2),void 0!==n&&n.length>0&&n.length<=e.length){if(n===e)return"";let o=n.length-1,s=-1;for(t=e.length-1;t>=r;--t){const c=e.charCodeAt(t);if(De(c)){if(!a){r=t+1;break}}else-1===s&&(a=!1,s=t+1),o>=0&&(c===n.charCodeAt(o)?-1==--o&&(i=t):(o=-1,i=s))}return r===i?i=s:-1===i&&(i=e.length),e.slice(r,i)}for(t=e.length-1;t>=r;--t)if(De(e.charCodeAt(t))){if(!a){r=t+1;break}}else-1===i&&(a=!1,i=t+1);return-1===i?"":e.slice(r,i)},extname(e){Le(e,"path");let n=0,t=-1,r=0,i=-1,a=!0,o=0;e.length>=2&&e.charCodeAt(1)===Se&&Ce(e.charCodeAt(0))&&(n=r=2);for(let s=e.length-1;s>=n;--s){const n=e.charCodeAt(s);if(De(n)){if(!a){r=s+1;break}}else-1===i&&(a=!1,i=s+1),n===be?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?"":e.slice(t,i)},format:Ne.bind(null,"\\"),parse(e){Le(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;const t=e.length;let r=0,i=e.charCodeAt(0);if(1===t)return De(i)?(n.root=n.dir=e,n):(n.base=n.name=e,n);if(De(i)){if(r=1,De(e.charCodeAt(1))){let n=2,i=n;for(;n<t&&!De(e.charCodeAt(n));)n++;if(n<t&&n!==i){for(i=n;n<t&&De(e.charCodeAt(n));)n++;if(n<t&&n!==i){for(i=n;n<t&&!De(e.charCodeAt(n));)n++;n===t?r=n:n!==i&&(r=n+1)}}}}else if(Ce(i)&&e.charCodeAt(1)===Se){if(t<=2)return n.root=n.dir=e,n;if(r=2,De(e.charCodeAt(2))){if(3===t)return n.root=n.dir=e,n;r=3}}r>0&&(n.root=e.slice(0,r));let a=-1,o=r,s=-1,c=!0,l=e.length-1,u=0;for(;l>=r;--l)if(i=e.charCodeAt(l),De(i)){if(!c){o=l+1;break}}else-1===s&&(c=!1,s=l+1),i===be?-1===a?a=l:1!==u&&(u=1):-1!==a&&(u=-1);return-1!==s&&(-1===a||0===u||1===u&&a===s-1&&a===o+1?n.base=n.name=e.slice(o,s):(n.name=e.slice(o,a),n.base=e.slice(o,s),n.ext=e.slice(a,s))),n.dir=o>0&&o!==r?e.slice(0,o-1):n.root,n},sep:"\\",delimiter:";",win32:null,posix:null},Re={resolve(...e){let n="",t=!1;for(let r=e.length-1;r>=-1&&!t;r--){const i=r>=0?e[r]:ye();Le(i,"path"),0!==i.length&&(n=`${i}/${n}`,t=i.charCodeAt(0)===Ee)}return n=Ie(n,!t,"/",Ae),t?`/${n}`:n.length>0?n:"."},normalize(e){if(Le(e,"path"),0===e.length)return".";const n=e.charCodeAt(0)===Ee,t=e.charCodeAt(e.length-1)===Ee;return 0===(e=Ie(e,!n,"/",Ae)).length?n?"/":t?"./":".":(t&&(e+="/"),n?`/${e}`:e)},isAbsolute(e){return Le(e,"path"),e.length>0&&e.charCodeAt(0)===Ee},join(...e){if(0===e.length)return".";let n;for(let t=0;t<e.length;++t){const r=e[t];Le(r,"path"),r.length>0&&(void 0===n?n=r:n+=`/${r}`)}return void 0===n?".":Re.normalize(n)},relative(e,n){if(Le(e,"from"),Le(n,"to"),e===n)return"";if((e=Re.resolve(e))===(n=Re.resolve(n)))return"";const t=e.length,r=t-1,i=n.length-1,a=r<i?r:i;let o=-1,s=0;for(;s<a;s++){const t=e.charCodeAt(1+s);if(t!==n.charCodeAt(1+s))break;t===Ee&&(o=s)}if(s===a)if(i>a){if(n.charCodeAt(1+s)===Ee)return n.slice(1+s+1);if(0===s)return n.slice(1+s)}else r>a&&(e.charCodeAt(1+s)===Ee?o=s:0===s&&(o=0));let c="";for(s=1+o+1;s<=t;++s)s!==t&&e.charCodeAt(s)!==Ee||(c+=0===c.length?"..":"/..");return`${c}${n.slice(1+o)}`},toNamespacedPath(e){return e},dirname(e){if(Le(e,"path"),0===e.length)return".";const n=e.charCodeAt(0)===Ee;let t=-1,r=!0;for(let n=e.length-1;n>=1;--n)if(e.charCodeAt(n)===Ee){if(!r){t=n;break}}else r=!1;return-1===t?n?"/":".":n&&1===t?"//":e.slice(0,t)},basename(e,n){void 0!==n&&Le(n,"ext"),Le(e,"path");let t,r=0,i=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n===e)return"";let o=n.length-1,s=-1;for(t=e.length-1;t>=0;--t){const c=e.charCodeAt(t);if(c===Ee){if(!a){r=t+1;break}}else-1===s&&(a=!1,s=t+1),o>=0&&(c===n.charCodeAt(o)?-1==--o&&(i=t):(o=-1,i=s))}return r===i?i=s:-1===i&&(i=e.length),e.slice(r,i)}for(t=e.length-1;t>=0;--t)if(e.charCodeAt(t)===Ee){if(!a){r=t+1;break}}else-1===i&&(a=!1,i=t+1);return-1===i?"":e.slice(r,i)},extname(e){Le(e,"path");let n=-1,t=0,r=-1,i=!0,a=0;for(let o=e.length-1;o>=0;--o){const s=e.charCodeAt(o);if(s!==Ee)-1===r&&(i=!1,r=o+1),s===be?-1===n?n=o:1!==a&&(a=1):-1!==n&&(a=-1);else if(!i){t=o+1;break}}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===t+1?"":e.slice(n,r)},format:Ne.bind(null,"/"),parse(e){Le(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;const t=e.charCodeAt(0)===Ee;let r;t?(n.root="/",r=1):r=0;let i=-1,a=0,o=-1,s=!0,c=e.length-1,l=0;for(;c>=r;--c){const n=e.charCodeAt(c);if(n!==Ee)-1===o&&(s=!1,o=c+1),n===be?-1===i?i=c:1!==l&&(l=1):-1!==i&&(l=-1);else if(!s){a=c+1;break}}if(-1!==o){const r=0===a&&t?1:a;-1===i||0===l||1===l&&i===o-1&&i===a+1?n.base=n.name=e.slice(r,o):(n.name=e.slice(r,i),n.base=e.slice(r,o),n.ext=e.slice(i,o))}return a>0?n.dir=e.slice(0,a-1):t&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};Re.win32=ke.win32=ke,Re.posix=ke.posix=Re,"win32"===ve?ke.normalize:Re.normalize,"win32"===ve?ke.resolve:Re.resolve,"win32"===ve?ke.relative:Re.relative,"win32"===ve?ke.dirname:Re.dirname,"win32"===ve?ke.basename:Re.basename,"win32"===ve?ke.extname:Re.extname,"win32"===ve?ke.sep:Re.sep;const Oe=/^\w[\w\d+.-]*$/,Pe=/^\//,we=/^\/\//;function Me(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Oe.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!Pe.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(we.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const Fe="",Ge="/",Be=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Ue{constructor(e,n,t,r,i,a=!1){"object"==typeof e?(this.scheme=e.scheme||Fe,this.authority=e.authority||Fe,this.path=e.path||Fe,this.query=e.query||Fe,this.fragment=e.fragment||Fe):(this.scheme=function(e,n){return e||n?e:"file"}(e,a),this.authority=n||Fe,this.path=function(e,n){switch(e){case"https":case"http":case"file":n?n[0]!==Ge&&(n=Ge+n):n=Ge}return n}(this.scheme,t||Fe),this.query=r||Fe,this.fragment=i||Fe,Me(this,a))}static isUri(e){return e instanceof Ue||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}get fsPath(){return ze(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:t,path:r,query:i,fragment:a}=e;return void 0===n?n=this.scheme:null===n&&(n=Fe),void 0===t?t=this.authority:null===t&&(t=Fe),void 0===r?r=this.path:null===r&&(r=Fe),void 0===i?i=this.query:null===i&&(i=Fe),void 0===a?a=this.fragment:null===a&&(a=Fe),n===this.scheme&&t===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new je(n,t,r,i,a)}static parse(e,n=!1){const t=Be.exec(e);return t?new je(t[2]||Fe,Ye(t[4]||Fe),Ye(t[5]||Fe),Ye(t[7]||Fe),Ye(t[9]||Fe),n):new je(Fe,Fe,Fe,Fe,Fe)}static file(e){let n=Fe;if(w&&(e=e.replace(/\\/g,Ge)),e[0]===Ge&&e[1]===Ge){const t=e.indexOf(Ge,2);-1===t?(n=e.substring(2),e=Ge):(n=e.substring(2,t),e=e.substring(t)||Ge)}return new je("file",n,e,Fe,Fe)}static from(e){const n=new je(e.scheme,e.authority,e.path,e.query,e.fragment);return Me(n,!0),n}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let t;return t=w&&"file"===e.scheme?Ue.file(ke.join(ze(e,!0),...n)).path:Re.join(e.path,...n),e.with({path:t})}toString(e=!1){return Je(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof Ue)return e;{const n=new je(e);return n._formatted=e.external,n._fsPath=e._sep===Ve?e.fsPath:null,n}}return e}}const Ve=w?1:void 0;class je extends Ue{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=ze(this,!1)),this._fsPath}toString(e=!1){return e?Je(this,!0):(this._formatted||(this._formatted=Je(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Ve),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const Ke={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 He(e,n){let t,r=-1;for(let i=0;i<e.length;i++){const a=e.charCodeAt(i);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||n&&47===a)-1!==r&&(t+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==t&&(t+=e.charAt(i));else{void 0===t&&(t=e.substr(0,i));const n=Ke[a];void 0!==n?(-1!==r&&(t+=encodeURIComponent(e.substring(r,i)),r=-1),t+=n):-1===r&&(r=i)}}return-1!==r&&(t+=encodeURIComponent(e.substring(r))),void 0!==t?t:e}function We(e){let n;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);35===r||63===r?(void 0===n&&(n=e.substr(0,t)),n+=Ke[r]):void 0!==n&&(n+=e[t])}return void 0!==n?n:e}function ze(e,n){let t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?n?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,w&&(t=t.replace(/\//g,"\\")),t}function Je(e,n){const t=n?We:He;let r="",{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=":"),(a||"file"===i)&&(r+=Ge,r+=Ge),a){let e=a.indexOf("@");if(-1!==e){const n=a.substr(0,e);a=a.substr(e+1),e=n.indexOf(":"),-1===e?r+=t(n,!1):(r+=t(n.substr(0,e),!1),r+=":",r+=t(n.substr(e+1),!1)),r+="@"}a=a.toLowerCase(),e=a.indexOf(":"),-1===e?r+=t(a,!1):(r+=t(a.substr(0,e),!1),r+=a.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=t(o,!0)}return s&&(r+="?",r+=t(s,!1)),c&&(r+="#",r+=n?c:He(c,!1)),r}function qe(e){try{return decodeURIComponent(e)}catch(n){return e.length>3?e.substr(0,3)+qe(e.substr(3)):e}}const Xe=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ye(e){return e.match(Xe)?e.replace(Xe,(e=>qe(e))):e}class Qe{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new Qe(e,n)}delta(e=0,n=0){return this.with(this.lineNumber+e,this.column+n)}equals(e){return Qe.equals(this,e)}static equals(e,n){return!e&&!n||!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return Qe.isBefore(this,e)}static isBefore(e,n){return e.lineNumber<n.lineNumber||!(n.lineNumber<e.lineNumber)&&e.column<n.column}isBeforeOrEqual(e){return Qe.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,n){return e.lineNumber<n.lineNumber||!(n.lineNumber<e.lineNumber)&&e.column<=n.column}static compare(e,n){let t=0|e.lineNumber,r=0|n.lineNumber;return t===r?(0|e.column)-(0|n.column):t-r}clone(){return new Qe(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new Qe(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}}class Ze{constructor(e,n,t,r){e>t||e===t&&n>r?(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=t,this.endColumn=r)}isEmpty(){return Ze.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Ze.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<e.startColumn||n.lineNumber===e.endLineNumber&&n.column>e.endColumn)}containsRange(e){return Ze.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>e.endColumn)}strictContainsRange(e){return Ze.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return Ze.plusRange(this,e)}static plusRange(e,n){let t,r,i,a;return n.startLineNumber<e.startLineNumber?(t=n.startLineNumber,r=n.startColumn):n.startLineNumber===e.startLineNumber?(t=n.startLineNumber,r=Math.min(n.startColumn,e.startColumn)):(t=e.startLineNumber,r=e.startColumn),n.endLineNumber>e.endLineNumber?(i=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(i=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(i=e.endLineNumber,a=e.endColumn),new Ze(t,r,i,a)}intersectRanges(e){return Ze.intersectRanges(this,e)}static intersectRanges(e,n){let t=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,a=e.endColumn,o=n.startLineNumber,s=n.startColumn,c=n.endLineNumber,l=n.endColumn;return t<o?(t=o,r=s):t===o&&(r=Math.max(r,s)),i>c?(i=c,a=l):i===c&&(a=Math.min(a,l)),t>i||t===i&&r>a?null:new Ze(t,r,i,a)}equalsRange(e){return Ze.equalsRange(this,e)}static equalsRange(e,n){return!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return Ze.getEndPosition(this)}static getEndPosition(e){return new Qe(e.endLineNumber,e.endColumn)}getStartPosition(){return Ze.getStartPosition(this)}static getStartPosition(e){return new Qe(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new Ze(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new Ze(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return Ze.collapseToStart(this)}static collapseToStart(e){return new Ze(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,n=e){return new Ze(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new Ze(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn)}static areIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<=n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,n){if(e&&n){const t=0|e.startLineNumber,r=0|n.startLineNumber;if(t===r){const t=0|e.startColumn,r=0|n.startColumn;if(t===r){const t=0|e.endLineNumber,r=0|n.endLineNumber;return t===r?(0|e.endColumn)-(0|n.endColumn):t-r}return t-r}return t-r}return(e?1:0)-(n?1:0)}static compareRangesUsingEnds(e,n){return e.endLineNumber===n.endLineNumber?e.endColumn===n.endColumn?e.startLineNumber===n.startLineNumber?e.startColumn-n.startColumn:e.startLineNumber-n.startLineNumber:e.endColumn-n.endColumn:e.endLineNumber-n.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}}function $e(e,n,t,r){return new ge(e,n,t).ComputeDiff(r)}class en{constructor(e){const n=[],t=[];for(let r=0,i=e.length;r<i;r++)n[r]=on(e[r],1),t[r]=sn(e[r],1);this.lines=e,this._startColumns=n,this._endColumns=t}getElements(){const e=[];for(let n=0,t=this.lines.length;n<t;n++)e[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,n,t){const r=[],i=[],a=[];let o=0;for(let s=n;s<=t;s++){const n=this.lines[s],t=e?this._startColumns[s]:1,c=e?this._endColumns[s]:n.length+1;for(let e=t;e<c;e++)r[o]=n.charCodeAt(e-1),i[o]=s+1,a[o]=e,o++}return new nn(r,i,a)}}class nn{constructor(e,n,t){this._charCodes=e,this._lineNumbers=n,this._columns=t}getElements(){return this._charCodes}getStartLineNumber(e){return this._lineNumbers[e]}getStartColumn(e){return this._columns[e]}getEndLineNumber(e){return this._lineNumbers[e]}getEndColumn(e){return this._columns[e]+1}}class tn{constructor(e,n,t,r,i,a,o,s){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=t,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=s}static createFromDiffChange(e,n,t){let r,i,a,o,s,c,l,u;return 0===e.originalLength?(r=0,i=0,a=0,o=0):(r=n.getStartLineNumber(e.originalStart),i=n.getStartColumn(e.originalStart),a=n.getEndLineNumber(e.originalStart+e.originalLength-1),o=n.getEndColumn(e.originalStart+e.originalLength-1)),0===e.modifiedLength?(s=0,c=0,l=0,u=0):(s=t.getStartLineNumber(e.modifiedStart),c=t.getStartColumn(e.modifiedStart),l=t.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),u=t.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new tn(r,i,a,o,s,c,l,u)}}class rn{constructor(e,n,t,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=n,this.modifiedStartLineNumber=t,this.modifiedEndLineNumber=r,this.charChanges=i}static createFromDiffResult(e,n,t,r,i,a,o){let s,c,l,u,d;if(0===n.originalLength?(s=t.getStartLineNumber(n.originalStart)-1,c=0):(s=t.getStartLineNumber(n.originalStart),c=t.getEndLineNumber(n.originalStart+n.originalLength-1)),0===n.modifiedLength?(l=r.getStartLineNumber(n.modifiedStart)-1,u=0):(l=r.getStartLineNumber(n.modifiedStart),u=r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&i()){const a=t.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),s=r.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);let c=$e(a,s,i,!0).changes;o&&(c=function(e){if(e.length<=1)return e;const n=[e[0]];let t=n[0];for(let r=1,i=e.length;r<i;r++){const i=e[r],a=i.originalStart-(t.originalStart+t.originalLength),o=i.modifiedStart-(t.modifiedStart+t.modifiedLength);Math.min(a,o)<3?(t.originalLength=i.originalStart+i.originalLength-t.originalStart,t.modifiedLength=i.modifiedStart+i.modifiedLength-t.modifiedStart):(n.push(i),t=i)}return n}(c)),d=[];for(let e=0,n=c.length;e<n;e++)d.push(tn.createFromDiffChange(c[e],a,s))}return new rn(s,c,l,u,d)}}class an{constructor(e,n,t){this.shouldComputeCharChanges=t.shouldComputeCharChanges,this.shouldPostProcessCharChanges=t.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=t.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=t.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=n,this.original=new en(e),this.modified=new en(n),this.continueLineDiff=cn(t.maxComputationTime),this.continueCharDiff=cn(0===t.maxComputationTime?0:Math.min(t.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{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(1===this.modified.lines.length&&0===this.modified.lines[0].length)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 e=$e(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=e.changes,t=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let t=0,r=n.length;t<r;t++)e.push(rn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[t],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:t,changes:e}}const r=[];let i=0,a=0;for(let e=-1,t=n.length;e<t;e++){const o=e+1<t?n[e+1]:null,s=o?o.originalStart:this.originalLines.length,c=o?o.modifiedStart:this.modifiedLines.length;for(;i<s&&a<c;){const e=this.originalLines[i],n=this.modifiedLines[a];if(e!==n){{let t=on(e,1),o=on(n,1);for(;t>1&&o>1&&e.charCodeAt(t-2)===n.charCodeAt(o-2);)t--,o--;(t>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,t,a+1,1,o)}{let t=sn(e,1),o=sn(n,1);const s=e.length+1,c=n.length+1;for(;t<s&&o<c&&e.charCodeAt(t-1)===e.charCodeAt(o-1);)t++,o++;(t<s||o<c)&&this._pushTrimWhitespaceCharChange(r,i+1,t,s,a+1,o,c)}}i++,a++}o&&(r.push(rn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,o,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=o.originalLength,a+=o.modifiedLength)}return{quitEarly:t,changes:r}}_pushTrimWhitespaceCharChange(e,n,t,r,i,a,o){if(this._mergeTrimWhitespaceCharChange(e,n,t,r,i,a,o))return;let s;this.shouldComputeCharChanges&&(s=[new tn(n,t,n,r,i,a,i,o)]),e.push(new rn(n,n,i,i,s))}_mergeTrimWhitespaceCharChange(e,n,t,r,i,a,o){const s=e.length;if(0===s)return!1;const c=e[s-1];return 0!==c.originalEndLineNumber&&0!==c.modifiedEndLineNumber&&c.originalEndLineNumber+1===n&&c.modifiedEndLineNumber+1===i&&(c.originalEndLineNumber=n,c.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new tn(n,t,n,r,i,a,i,o)),!0)}}function on(e,n){const t=function(e){for(let n=0,t=e.length;n<t;n++){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===t?n:t+1}function sn(e,n){const t=function(e,n=e.length-1){for(let t=n;t>=0;t--){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}(e);return-1===t?n:t+2}function cn(e){if(0===e)return()=>!0;const n=Date.now();return()=>Date.now()-n<e}function ln(e){return e<0?0:e>255?255:0|e}function un(e){return e<0?0:e>4294967295?4294967295:0|e}class dn{constructor(e,n){this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class pn{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=un(e);const t=this.values,r=this.prefixSum,i=n.length;return 0!==i&&(this.values=new Uint32Array(t.length+i),this.values.set(t.subarray(0,e),0),this.values.set(t.subarray(e),e+i),this.values.set(n,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,n){return e=un(e),n=un(n),this.values[e]!==n&&(this.values[e]=n,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,n){e=un(e),n=un(n);const t=this.values,r=this.prefixSum;if(e>=t.length)return!1;let i=t.length-e;return n>=i&&(n=i),0!==n&&(this.values=new Uint32Array(t.length-n),this.values.set(t.subarray(0,e),0),this.values.set(t.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=un(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;0===n&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let t=n;t<=e;t++)this.prefixSum[t]=this.prefixSum[t-1]+this.values[t];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,t=this.values.length-1,r=0,i=0,a=0;for(;n<=t;)if(r=n+(t-n)/2|0,i=this.prefixSum[r],a=i-this.values[r],e<a)t=r-1;else{if(!(e>=i))break;n=r+1}return new dn(r,e-a)}}class fn{constructor(e,n,t,r){this._uri=e,this._lines=n,this._eol=t,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const e of n)this._acceptDeleteRange(e.range),this._acceptInsertText(new Qe(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,t=new Uint32Array(n);for(let r=0;r<n;r++)t[r]=this._lines[r].length+e;this._lineStarts=new pn(t)}}_setLineText(e,n){this._lines[e]=n,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,n){if(0===n.length)return;let t=n.split(/\r\n|\r|\n/);if(1===t.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+t[0]+this._lines[e.lineNumber-1].substring(e.column-1));t[t.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+t[0]);let r=new Uint32Array(t.length-1);for(let n=1;n<t.length;n++)this._lines.splice(e.lineNumber+n-1,0,t[n]),r[n-1]=t[n].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}const mn=function(e=""){let n="(-?\\d*\\.\\d\\w*)|([^";for(const t of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(t)>=0||(n+="\\"+t);return n+="\\s]+)",new RegExp(n,"g")}(),_n={maxLen:1e3,windowSize:15,timeBudget:150};function gn(e,n,t,r,i=_n){if(t.length>i.maxLen){let a=e-i.maxLen/2;return a<0?a=0:r+=a,gn(e,n,t=t.substring(a,e+i.maxLen/2),r,i)}const a=Date.now(),o=e-1-r;let s=-1,c=null;for(let e=1;!(Date.now()-a>=i.timeBudget);e++){const r=o-i.windowSize*e;n.lastIndex=Math.max(0,r);const a=yn(n,t,o,s);if(!a&&c)break;if(c=a,r<=0)break;s=r}if(c){let e={word:c[0],startColumn:r+1+c.index,endColumn:r+1+c.index+c[0].length};return n.lastIndex=0,e}return null}function yn(e,n,t,r){let i;for(;i=e.exec(n);){const n=i.index||0;if(n<=t&&e.lastIndex>=t)return i;if(r>0&&n>r)return null}return null}class hn{constructor(e){let n=ln(e);this._defaultValue=n,this._asciiMap=hn._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){let n=new Uint8Array(256);for(let t=0;t<256;t++)n[t]=e;return n}set(e,n){let t=ln(n);e>=0&&e<256?this._asciiMap[e]=t:this._map.set(e,t)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class vn{constructor(e,n,t){const r=new Uint8Array(e*n);for(let i=0,a=e*n;i<a;i++)r[i]=t;this._data=r,this.rows=e,this.cols=n}get(e,n){return this._data[e*this.cols+n]}set(e,n,t){this._data[e*this.cols+n]=t}}class bn{constructor(e){let n=0,t=0;for(let r=0,i=e.length;r<i;r++){let[i,a,o]=e[r];a>n&&(n=a),i>t&&(t=i),o>t&&(t=o)}n++,t++;let r=new vn(t,n,0);for(let n=0,t=e.length;n<t;n++){let[t,i,a]=e[n];r.set(t,i,a)}this._states=r,this._maxCharCode=n}nextState(e,n){return n<0||n>=this._maxCharCode?0:this._states.get(e,n)}}let En=null,Tn=null;class Sn{static _createLink(e,n,t,r,i){let a=i-1;do{const t=n.charCodeAt(a);if(2!==e.get(t))break;a--}while(a>r);if(r>0){const e=n.charCodeAt(r-1),t=n.charCodeAt(a);(40===e&&41===t||91===e&&93===t||123===e&&125===t)&&a--}return{range:{startLineNumber:t,startColumn:r+1,endLineNumber:t,endColumn:a+2},url:n.substring(r,a+1)}}static computeLinks(e,n=function(){return null===En&&(En=new bn([[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]])),En}()){const t=function(){if(null===Tn){Tn=new hn(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let n=0;n<e.length;n++)Tn.set(e.charCodeAt(n),1);const n=".,;";for(let e=0;e<n.length;e++)Tn.set(n.charCodeAt(e),2)}return Tn}();let r=[];for(let i=1,a=e.getLineCount();i<=a;i++){const a=e.getLineContent(i),o=a.length;let s=0,c=0,l=0,u=1,d=!1,p=!1,f=!1,m=!1;for(;s<o;){let e=!1;const o=a.charCodeAt(s);if(13===u){let n;switch(o){case 40:d=!0,n=0;break;case 41:n=d?0:1;break;case 91:f=!0,p=!0,n=0;break;case 93:f=!1,n=p?0:1;break;case 123:m=!0,n=0;break;case 125:n=m?0:1;break;case 39:n=34===l||96===l?0:1;break;case 34:n=39===l||96===l?0:1;break;case 96:n=39===l||34===l?0:1;break;case 42:n=42===l?1:0;break;case 124:n=124===l?1:0;break;case 32:n=f?0:1;break;default:n=t.get(o)}1===n&&(r.push(Sn._createLink(t,a,i,c,s)),e=!0)}else if(12===u){let n;91===o?(p=!0,n=0):n=t.get(o),1===n?e=!0:u=13}else u=n.nextState(u,o),0===u&&(e=!0);e&&(u=1,d=!1,p=!1,m=!1,c=s+1,l=o),s++}13===u&&r.push(Sn._createLink(t,a,i,c,o))}return r}}class xn{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,n,t,r,i){if(e&&n){let t=this.doNavigateValueSet(n,i);if(t)return{range:e,value:t}}if(t&&r){let e=this.doNavigateValueSet(r,i);if(e)return{range:t,value:e}}return null}doNavigateValueSet(e,n){let t=this.numberReplace(e,n);return null!==t?t:this.textReplace(e,n)}numberReplace(e,n){let t=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),r=Number(e),i=parseFloat(e);return isNaN(r)||isNaN(i)||r!==i?null:0!==r||n?(r=Math.floor(r*t),r+=n?t:-t,String(r/t)):null}textReplace(e,n){return this.valueSetsReplace(this._defaultValueSet,e,n)}valueSetsReplace(e,n,t){let r=null;for(let i=0,a=e.length;null===r&&i<a;i++)r=this.valueSetReplace(e[i],n,t);return r}valueSetReplace(e,n,t){let r=e.indexOf(n);return r>=0?(r+=t?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}xn.INSTANCE=new xn;const Ln=Object.freeze((function(e,n){const t=setTimeout(e.bind(n),0);return{dispose(){clearTimeout(t)}}}));var Dn;!function(e){e.isCancellationToken=function(n){return n===e.None||n===e.Cancelled||n instanceof An||!(!n||"object"!=typeof n)&&"boolean"==typeof n.isCancellationRequested&&"function"==typeof n.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:U.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ln})}(Dn||(Dn={}));class An{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?Ln:(this._emitter||(this._emitter=new j),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Cn{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const In=new Cn,Nn=new Cn,kn=new Cn,Rn=new Array(230),On={},Pn=[],wn=Object.create(null),Mn=Object.create(null),Fn=[],Gn=[];for(let e=0;e<=193;e++)Fn[e]=-1;for(let e=0;e<=126;e++)Gn[e]=-1;var Bn,Un,Vn,jn,Kn,Hn,Wn,zn,Jn,qn,Xn,Yn,Qn,Zn,$n,et,nt,tt,rt,it,at,ot,st,ct,lt,ut,dt,pt,ft,mt,_t,gt,yt,ht,vt,bt;!function(){const e="",n=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",0,e,0,e,e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_CLEAR",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let t=[],r=[];for(const e of n){const[n,i,a,o,s,c,l,u,d,p]=e;if(r[a]||(r[a]=!0,Pn[a]=o,wn[o]=a,Mn[o.toLowerCase()]=a,i&&(Fn[a]=s,0!==s&&3!==s&&5!==s&&4!==s&&6!==s&&57!==s&&(Gn[s]=a))),!t[s]){if(t[s]=!0,!c)throw new Error(`String representation missing for key code ${s} around scan code ${o}`);In.define(s,c),Nn.define(s,d||c),kn.define(s,p||d||c)}l&&(Rn[l]=s),u&&(On[u]=s)}Gn[3]=46}(),function(e){e.toString=function(e){return In.keyCodeToStr(e)},e.fromString=function(e){return In.strToKeyCode(e)},e.toUserSettingsUS=function(e){return Nn.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return kn.keyCodeToStr(e)},e.fromUserSettings=function(e){return Nn.strToKeyCode(e)||kn.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return In.keyCodeToStr(e)}}(Bn||(Bn={}));class Et extends Ze{constructor(e,n,t,r){super(e,n,t,r),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=t,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Et.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return 0===this.getDirection()?new Et(this.startLineNumber,this.startColumn,e,n):new Et(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new Qe(this.positionLineNumber,this.positionColumn)}setStartPosition(e,n){return 0===this.getDirection()?new Et(e,n,this.endLineNumber,this.endColumn):new Et(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new Et(e.lineNumber,e.column,n.lineNumber,n.column)}static liftSelection(e){return new Et(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let t=0,r=e.length;t<r;t++)if(!this.selectionsEqual(e[t],n[t]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,n,t,r,i){return 0===i?new Et(e,n,t,r):new Et(t,r,e,n)}}!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(Un||(Un={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(Vn||(Vn={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(jn||(jn={})),function(e){e[e.Deprecated=1]="Deprecated"}(Kn||(Kn={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(Hn||(Hn={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(Wn||(Wn={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(zn||(zn={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Jn||(Jn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(qn||(qn={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(Xn||(Xn={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.emptySelectionClipboard=32]="emptySelectionClipboard",e[e.extraEditorClassName=33]="extraEditorClassName",e[e.fastScrollSensitivity=34]="fastScrollSensitivity",e[e.find=35]="find",e[e.fixedOverflowWidgets=36]="fixedOverflowWidgets",e[e.folding=37]="folding",e[e.foldingStrategy=38]="foldingStrategy",e[e.foldingHighlight=39]="foldingHighlight",e[e.foldingImportsByDefault=40]="foldingImportsByDefault",e[e.unfoldOnClickAfterEndOfLine=41]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=42]="fontFamily",e[e.fontInfo=43]="fontInfo",e[e.fontLigatures=44]="fontLigatures",e[e.fontSize=45]="fontSize",e[e.fontWeight=46]="fontWeight",e[e.formatOnPaste=47]="formatOnPaste",e[e.formatOnType=48]="formatOnType",e[e.glyphMargin=49]="glyphMargin",e[e.gotoLocation=50]="gotoLocation",e[e.hideCursorInOverviewRuler=51]="hideCursorInOverviewRuler",e[e.hover=52]="hover",e[e.inDiffEditor=53]="inDiffEditor",e[e.inlineSuggest=54]="inlineSuggest",e[e.letterSpacing=55]="letterSpacing",e[e.lightbulb=56]="lightbulb",e[e.lineDecorationsWidth=57]="lineDecorationsWidth",e[e.lineHeight=58]="lineHeight",e[e.lineNumbers=59]="lineNumbers",e[e.lineNumbersMinChars=60]="lineNumbersMinChars",e[e.linkedEditing=61]="linkedEditing",e[e.links=62]="links",e[e.matchBrackets=63]="matchBrackets",e[e.minimap=64]="minimap",e[e.mouseStyle=65]="mouseStyle",e[e.mouseWheelScrollSensitivity=66]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=67]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=68]="multiCursorMergeOverlapping",e[e.multiCursorModifier=69]="multiCursorModifier",e[e.multiCursorPaste=70]="multiCursorPaste",e[e.occurrencesHighlight=71]="occurrencesHighlight",e[e.overviewRulerBorder=72]="overviewRulerBorder",e[e.overviewRulerLanes=73]="overviewRulerLanes",e[e.padding=74]="padding",e[e.parameterHints=75]="parameterHints",e[e.peekWidgetDefaultFocus=76]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=77]="definitionLinkOpensInPeek",e[e.quickSuggestions=78]="quickSuggestions",e[e.quickSuggestionsDelay=79]="quickSuggestionsDelay",e[e.readOnly=80]="readOnly",e[e.renameOnType=81]="renameOnType",e[e.renderControlCharacters=82]="renderControlCharacters",e[e.renderFinalNewline=83]="renderFinalNewline",e[e.renderLineHighlight=84]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=85]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=86]="renderValidationDecorations",e[e.renderWhitespace=87]="renderWhitespace",e[e.revealHorizontalRightPadding=88]="revealHorizontalRightPadding",e[e.roundedSelection=89]="roundedSelection",e[e.rulers=90]="rulers",e[e.scrollbar=91]="scrollbar",e[e.scrollBeyondLastColumn=92]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=93]="scrollBeyondLastLine",e[e.scrollPredominantAxis=94]="scrollPredominantAxis",e[e.selectionClipboard=95]="selectionClipboard",e[e.selectionHighlight=96]="selectionHighlight",e[e.selectOnLineNumbers=97]="selectOnLineNumbers",e[e.showFoldingControls=98]="showFoldingControls",e[e.showUnused=99]="showUnused",e[e.snippetSuggestions=100]="snippetSuggestions",e[e.smartSelect=101]="smartSelect",e[e.smoothScrolling=102]="smoothScrolling",e[e.stickyTabStops=103]="stickyTabStops",e[e.stopRenderingLineAfter=104]="stopRenderingLineAfter",e[e.suggest=105]="suggest",e[e.suggestFontSize=106]="suggestFontSize",e[e.suggestLineHeight=107]="suggestLineHeight",e[e.suggestOnTriggerCharacters=108]="suggestOnTriggerCharacters",e[e.suggestSelection=109]="suggestSelection",e[e.tabCompletion=110]="tabCompletion",e[e.tabIndex=111]="tabIndex",e[e.unusualLineTerminators=112]="unusualLineTerminators",e[e.useShadowDOM=113]="useShadowDOM",e[e.useTabStops=114]="useTabStops",e[e.wordSeparators=115]="wordSeparators",e[e.wordWrap=116]="wordWrap",e[e.wordWrapBreakAfterCharacters=117]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=118]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=119]="wordWrapColumn",e[e.wordWrapOverride1=120]="wordWrapOverride1",e[e.wordWrapOverride2=121]="wordWrapOverride2",e[e.wrappingIndent=122]="wrappingIndent",e[e.wrappingStrategy=123]="wrappingStrategy",e[e.showDeprecated=124]="showDeprecated",e[e.inlayHints=125]="inlayHints",e[e.editorClassName=126]="editorClassName",e[e.pixelRatio=127]="pixelRatio",e[e.tabFocusMode=128]="tabFocusMode",e[e.layoutInfo=129]="layoutInfo",e[e.wrappingInfo=130]="wrappingInfo"}(Yn||(Yn={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Qn||(Qn={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(Zn||(Zn={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}($n||($n={})),function(e){e[e.Other=0]="Other",e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(et||(et={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(nt||(nt={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.MAX_VALUE=126]="MAX_VALUE"}(tt||(tt={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(rt||(rt={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(it||(it={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(at||(at={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(ot||(ot={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(st||(st={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(ct||(ct={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(lt||(lt={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(ut||(ut={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(dt||(dt={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(pt||(pt={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ft||(ft={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(mt||(mt={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(_t||(_t={})),function(e){e[e.Deprecated=1]="Deprecated"}(gt||(gt={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(yt||(yt={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(ht||(ht={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(vt||(vt={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(bt||(bt={}));class Tt{static chord(e,n){return function(e,n){return(e|(65535&n)<<16>>>0)>>>0}(e,n)}}Tt.CtrlCmd=2048,Tt.Shift=1024,Tt.Alt=512,Tt.WinCtrl=256;var St=function(e,n,t,r){return new(t||(t=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,s)}c((r=r.apply(e,n||[])).next())}))};class xt extends fn{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(e){return this._lines[e-1]}getWordAtPosition(e,n){let t=gn(e.column,function(e){let n=mn;if(e&&e instanceof RegExp)if(e.global)n=e;else{let t="g";e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),n=new RegExp(e.source,t)}return n.lastIndex=0,n}(n),this._lines[e.lineNumber-1],0);return t?new Ze(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn):null}words(e){const n=this._lines,t=this._wordenize.bind(this);let r=0,i="",a=0,o=[];return{*[Symbol.iterator](){for(;;)if(a<o.length){const e=i.substring(o[a].start,o[a].end);a+=1,yield e}else{if(!(r<n.length))break;i=n[r],o=t(i,e),a=0,r+=1}}}}getLineWords(e,n){let t=this._lines[e-1],r=this._wordenize(t,n),i=[];for(const e of r)i.push({word:t.substring(e.start,e.end),startColumn:e.start+1,endColumn:e.end+1});return i}_wordenize(e,n){const t=[];let r;for(n.lastIndex=0;(r=n.exec(e))&&0!==r[0].length;)t.push({start:r.index,end:r.index+r[0].length});return t}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);let n=this._eol,t=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[t].substring(e.startColumn-1));for(let e=t+1;e<r;e++)i.push(this._lines[e]);return i.push(this._lines[r].substring(0,e.endColumn-1)),i.join(n)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();let n=this._lineStarts.getIndexOf(e),t=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,t)}}_validateRange(e){const n=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),t=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return n.lineNumber!==e.startLineNumber||n.column!==e.startColumn||t.lineNumber!==e.endLineNumber||t.column!==e.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:t.lineNumber,endColumn:t.column}:e}_validatePosition(e){if(!Qe.isIPosition(e))throw new Error("bad position");let{lineNumber:n,column:t}=e,r=!1;if(n<1)n=1,t=1,r=!0;else if(n>this._lines.length)n=this._lines.length,t=this._lines[n-1].length+1,r=!0;else{let e=this._lines[n-1].length+1;t<1?(t=1,r=!0):t>e&&(t=e,r=!0)}return r?{lineNumber:n,column:t}:e}}class Lt{constructor(e,n){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach((n=>e.push(this._models[n]))),e}acceptNewModel(e){this._models[e.url]=new xt(Ue.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,n){this._models[e]&&this._models[e].onEvents(n)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,n,t,r){return St(this,void 0,void 0,(function*(){const i=this._getModel(e),a=this._getModel(n);if(!i||!a)return null;const o=i.getLinesContent(),s=a.getLinesContent(),c=new an(o,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:t,shouldMakePrettyDiff:!0,maxComputationTime:r}).computeDiff(),l=!(c.changes.length>0)&&this._modelsAreIdentical(i,a);return{quitEarly:c.quitEarly,identical:l,changes:c.changes}}))}_modelsAreIdentical(e,n){const t=e.getLineCount();if(t!==n.getLineCount())return!1;for(let r=1;r<=t;r++)if(e.getLineContent(r)!==n.getLineContent(r))return!1;return!0}computeMoreMinimalEdits(e,n){return St(this,void 0,void 0,(function*(){const t=this._getModel(e);if(!t)return n;const r=[];let i;n=n.slice(0).sort(((e,n)=>e.range&&n.range?Ze.compareRangesUsingStarts(e.range,n.range):(e.range?0:1)-(n.range?0:1)));for(let{range:e,text:a,eol:o}of n){if("number"==typeof o&&(i=o),Ze.isEmpty(e)&&!a)continue;const n=t.getValueInRange(e);if(a=a.replace(/\r\n|\n|\r/g,t.eol),n===a)continue;if(Math.max(a.length,n.length)>Lt._diffLimit){r.push({range:e,text:a});continue}const s=pe(n,a,!1),c=t.offsetAt(Ze.lift(e).getStartPosition());for(const e of s){const n=t.positionAt(c+e.originalStart),i=t.positionAt(c+e.originalStart+e.originalLength),o={text:a.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:i.lineNumber,endColumn:i.column}};t.getValueInRange(o.range)!==o.text&&r.push(o)}}return"number"==typeof i&&r.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}))}computeLinks(e){return St(this,void 0,void 0,(function*(){let n=this._getModel(e);return n?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?Sn.computeLinks(e):[]}(n):null}))}textualSuggest(e,n,t,r){return St(this,void 0,void 0,(function*(){const i=new B(!0),a=new RegExp(t,r),o=new Set;e:for(let t of e){const e=this._getModel(t);if(e)for(let t of e.words(a))if(t!==n&&isNaN(Number(t))&&(o.add(t),o.size>Lt._suggestionsLimit))break e}return{words:Array.from(o),duration:i.elapsed()}}))}computeWordRanges(e,n,t,r){return St(this,void 0,void 0,(function*(){let i=this._getModel(e);if(!i)return Object.create(null);const a=new RegExp(t,r),o=Object.create(null);for(let e=n.startLineNumber;e<n.endLineNumber;e++){let n=i.getLineWords(e,a);for(const t of n){if(!isNaN(Number(t.word)))continue;let n=o[t.word];n||(n=[],o[t.word]=n),n.push({startLineNumber:e,startColumn:t.startColumn,endLineNumber:e,endColumn:t.endColumn})}}return o}))}navigateValueSet(e,n,t,r,i){return St(this,void 0,void 0,(function*(){let a=this._getModel(e);if(!a)return null;let o=new RegExp(r,i);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});let s=a.getValueInRange(n),c=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},o);if(!c)return null;let l=a.getValueInRange(c);return xn.INSTANCE.navigateValueSet(n,s,c,l,t)}))}loadForeignModule(e,n,t){const r=function(e,n){const t=e=>function(){const t=Array.prototype.slice.call(arguments,0);return n(e,t)};let r={};for(const n of e)r[n]=t(n);return r}(t,((e,n)=>this._host.fhr(e,n)));let i={host:r,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,n),Promise.resolve(K(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,n){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,n))}catch(e){return Promise.reject(e)}}}Lt._diffLimit=1e5,Lt._suggestionsLimit=1e4,"function"==typeof importScripts&&(k.monaco={editor:void 0,languages:void 0,CancellationTokenSource:class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new An),this._token}cancel(){this._token?this._token instanceof An&&this._token.cancel():this._token=Dn.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof An&&this._token.dispose():this._token=Dn.None}},Emitter:j,KeyCode:tt,KeyMod:Tt,Position:Qe,Range:Ze,Selection:Et,SelectionDirection:ft,MarkerSeverity:rt,MarkerTag:it,Uri:Ue,Token:class{constructor(e,n,t){this._tokenBrand=void 0,this.offset=0|e,this.type=n,this.language=t}toString(){return"("+this.offset+", "+this.type+")"}}});let Dt=!1;function At(e){if(Dt)return;Dt=!0;const n=new re((e=>{self.postMessage(e)}),(n=>new Lt(n,e)));self.onmessage=e=>{n.onmessage(e.data)}}self.onmessage=e=>{Dt||At(null)};var Ct=t(52),It={"lib.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es5" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n',"lib.dom.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/////////////////////////////\n/// Window APIs\n/////////////////////////////\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n signal?: AbortSignal;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: BufferSource;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: BufferSource;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: BufferSource;\n iv: BufferSource;\n tagLength?: number;\n}\n\ninterface AesKeyAlgorithm extends KeyAlgorithm {\n length: number;\n}\n\ninterface AesKeyGenParams extends Algorithm {\n length: number;\n}\n\ninterface Algorithm {\n name: string;\n}\n\ninterface AnalyserOptions extends AudioNodeOptions {\n fftSize?: number;\n maxDecibels?: number;\n minDecibels?: number;\n smoothingTimeConstant?: number;\n}\n\ninterface AnimationEventInit extends EventInit {\n animationName?: string;\n elapsedTime?: number;\n pseudoElement?: string;\n}\n\ninterface AnimationPlaybackEventInit extends EventInit {\n currentTime?: number | null;\n timelineTime?: number | null;\n}\n\ninterface AssignedNodesOptions {\n flatten?: boolean;\n}\n\ninterface AudioBufferOptions {\n length: number;\n numberOfChannels?: number;\n sampleRate: number;\n}\n\ninterface AudioBufferSourceOptions {\n buffer?: AudioBuffer | null;\n detune?: number;\n loop?: boolean;\n loopEnd?: number;\n loopStart?: number;\n playbackRate?: number;\n}\n\ninterface AudioConfiguration {\n bitrate?: number;\n channels?: string;\n contentType: string;\n samplerate?: number;\n spatialRendering?: boolean;\n}\n\ninterface AudioContextOptions {\n latencyHint?: AudioContextLatencyCategory | number;\n sampleRate?: number;\n}\n\ninterface AudioNodeOptions {\n channelCount?: number;\n channelCountMode?: ChannelCountMode;\n channelInterpretation?: ChannelInterpretation;\n}\n\ninterface AudioProcessingEventInit extends EventInit {\n inputBuffer: AudioBuffer;\n outputBuffer: AudioBuffer;\n playbackTime: number;\n}\n\ninterface AudioTimestamp {\n contextTime?: number;\n performanceTime?: DOMHighResTimeStamp;\n}\n\ninterface AudioWorkletNodeOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n numberOfOutputs?: number;\n outputChannelCount?: number[];\n parameterData?: Record<string, number>;\n processorOptions?: any;\n}\n\ninterface AuthenticationExtensionsClientInputs {\n appid?: string;\n appidExclude?: string;\n credProps?: boolean;\n uvm?: boolean;\n}\n\ninterface AuthenticationExtensionsClientOutputs {\n appid?: boolean;\n credProps?: CredentialPropertiesOutput;\n uvm?: UvmEntries;\n}\n\ninterface AuthenticatorSelectionCriteria {\n authenticatorAttachment?: AuthenticatorAttachment;\n requireResidentKey?: boolean;\n residentKey?: ResidentKeyRequirement;\n userVerification?: UserVerificationRequirement;\n}\n\ninterface BiquadFilterOptions extends AudioNodeOptions {\n Q?: number;\n detune?: number;\n frequency?: number;\n gain?: number;\n type?: BiquadFilterType;\n}\n\ninterface BlobEventInit {\n data: Blob;\n timecode?: DOMHighResTimeStamp;\n}\n\ninterface BlobPropertyBag {\n endings?: EndingType;\n type?: string;\n}\n\ninterface CSSStyleSheetInit {\n baseURL?: string;\n disabled?: boolean;\n media?: MediaList | string;\n}\n\ninterface CacheQueryOptions {\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface CanvasRenderingContext2DSettings {\n alpha?: boolean;\n colorSpace?: PredefinedColorSpace;\n desynchronized?: boolean;\n willReadFrequently?: boolean;\n}\n\ninterface ChannelMergerOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n}\n\ninterface ChannelSplitterOptions extends AudioNodeOptions {\n numberOfOutputs?: number;\n}\n\ninterface ClientQueryOptions {\n includeUncontrolled?: boolean;\n type?: ClientTypes;\n}\n\ninterface ClipboardEventInit extends EventInit {\n clipboardData?: DataTransfer | null;\n}\n\ninterface ClipboardItemOptions {\n presentationStyle?: PresentationStyle;\n}\n\ninterface CloseEventInit extends EventInit {\n code?: number;\n reason?: string;\n wasClean?: boolean;\n}\n\ninterface CompositionEventInit extends UIEventInit {\n data?: string;\n}\n\ninterface ComputedEffectTiming extends EffectTiming {\n activeDuration?: CSSNumberish;\n currentIteration?: number | null;\n endTime?: CSSNumberish;\n localTime?: CSSNumberish | null;\n progress?: CSSNumberish | null;\n startTime?: CSSNumberish;\n}\n\ninterface ComputedKeyframe {\n composite: CompositeOperationOrAuto;\n computedOffset: number;\n easing: string;\n offset: number | null;\n [property: string]: string | number | null | undefined;\n}\n\ninterface ConstantSourceOptions {\n offset?: number;\n}\n\ninterface ConstrainBooleanParameters {\n exact?: boolean;\n ideal?: boolean;\n}\n\ninterface ConstrainDOMStringParameters {\n exact?: string | string[];\n ideal?: string | string[];\n}\n\ninterface ConstrainDoubleRange extends DoubleRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConstrainULongRange extends ULongRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConvolverOptions extends AudioNodeOptions {\n buffer?: AudioBuffer | null;\n disableNormalization?: boolean;\n}\n\ninterface CredentialCreationOptions {\n publicKey?: PublicKeyCredentialCreationOptions;\n signal?: AbortSignal;\n}\n\ninterface CredentialPropertiesOutput {\n rk?: boolean;\n}\n\ninterface CredentialRequestOptions {\n mediation?: CredentialMediationRequirement;\n publicKey?: PublicKeyCredentialRequestOptions;\n signal?: AbortSignal;\n}\n\ninterface CryptoKeyPair {\n privateKey?: CryptoKey;\n publicKey?: CryptoKey;\n}\n\ninterface CustomEventInit<T = any> extends EventInit {\n detail?: T;\n}\n\ninterface DOMMatrix2DInit {\n a?: number;\n b?: number;\n c?: number;\n d?: number;\n e?: number;\n f?: number;\n m11?: number;\n m12?: number;\n m21?: number;\n m22?: number;\n m41?: number;\n m42?: number;\n}\n\ninterface DOMMatrixInit extends DOMMatrix2DInit {\n is2D?: boolean;\n m13?: number;\n m14?: number;\n m23?: number;\n m24?: number;\n m31?: number;\n m32?: number;\n m33?: number;\n m34?: number;\n m43?: number;\n m44?: number;\n}\n\ninterface DOMPointInit {\n w?: number;\n x?: number;\n y?: number;\n z?: number;\n}\n\ninterface DOMQuadInit {\n p1?: DOMPointInit;\n p2?: DOMPointInit;\n p3?: DOMPointInit;\n p4?: DOMPointInit;\n}\n\ninterface DOMRectInit {\n height?: number;\n width?: number;\n x?: number;\n y?: number;\n}\n\ninterface DelayOptions extends AudioNodeOptions {\n delayTime?: number;\n maxDelayTime?: number;\n}\n\ninterface DeviceMotionEventAccelerationInit {\n x?: number | null;\n y?: number | null;\n z?: number | null;\n}\n\ninterface DeviceMotionEventInit extends EventInit {\n acceleration?: DeviceMotionEventAccelerationInit;\n accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;\n interval?: number;\n rotationRate?: DeviceMotionEventRotationRateInit;\n}\n\ninterface DeviceMotionEventRotationRateInit {\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DeviceOrientationEventInit extends EventInit {\n absolute?: boolean;\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DisplayMediaStreamConstraints {\n audio?: boolean | MediaTrackConstraints;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface DocumentTimelineOptions {\n originTime?: DOMHighResTimeStamp;\n}\n\ninterface DoubleRange {\n max?: number;\n min?: number;\n}\n\ninterface DragEventInit extends MouseEventInit {\n dataTransfer?: DataTransfer | null;\n}\n\ninterface DynamicsCompressorOptions extends AudioNodeOptions {\n attack?: number;\n knee?: number;\n ratio?: number;\n release?: number;\n threshold?: number;\n}\n\ninterface EcKeyAlgorithm extends KeyAlgorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface EffectTiming {\n delay?: number;\n direction?: PlaybackDirection;\n duration?: number | string;\n easing?: string;\n endDelay?: number;\n fill?: FillMode;\n iterationStart?: number;\n iterations?: number;\n playbackRate?: number;\n}\n\ninterface ElementCreationOptions {\n is?: string;\n}\n\ninterface ElementDefinitionOptions {\n extends?: string;\n}\n\ninterface ErrorEventInit extends EventInit {\n colno?: number;\n error?: any;\n filename?: string;\n lineno?: number;\n message?: string;\n}\n\ninterface EventInit {\n bubbles?: boolean;\n cancelable?: boolean;\n composed?: boolean;\n}\n\ninterface EventListenerOptions {\n capture?: boolean;\n}\n\ninterface EventModifierInit extends UIEventInit {\n altKey?: boolean;\n ctrlKey?: boolean;\n metaKey?: boolean;\n modifierAltGraph?: boolean;\n modifierCapsLock?: boolean;\n modifierFn?: boolean;\n modifierFnLock?: boolean;\n modifierHyper?: boolean;\n modifierNumLock?: boolean;\n modifierScrollLock?: boolean;\n modifierSuper?: boolean;\n modifierSymbol?: boolean;\n modifierSymbolLock?: boolean;\n shiftKey?: boolean;\n}\n\ninterface EventSourceInit {\n withCredentials?: boolean;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FileSystemFlags {\n create?: boolean;\n exclusive?: boolean;\n}\n\ninterface FocusEventInit extends UIEventInit {\n relatedTarget?: EventTarget | null;\n}\n\ninterface FocusOptions {\n preventScroll?: boolean;\n}\n\ninterface FontFaceDescriptors {\n display?: string;\n featureSettings?: string;\n stretch?: string;\n style?: string;\n unicodeRange?: string;\n variant?: string;\n weight?: string;\n}\n\ninterface FontFaceSetLoadEventInit extends EventInit {\n fontfaces?: FontFace[];\n}\n\ninterface FormDataEventInit extends EventInit {\n formData: FormData;\n}\n\ninterface FullscreenOptions {\n navigationUI?: FullscreenNavigationUI;\n}\n\ninterface GainOptions extends AudioNodeOptions {\n gain?: number;\n}\n\ninterface GamepadEventInit extends EventInit {\n gamepad: Gamepad;\n}\n\ninterface GetAnimationsOptions {\n subtree?: boolean;\n}\n\ninterface GetNotificationOptions {\n tag?: string;\n}\n\ninterface GetRootNodeOptions {\n composed?: boolean;\n}\n\ninterface HashChangeEventInit extends EventInit {\n newURL?: string;\n oldURL?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n info: BufferSource;\n salt: BufferSource;\n}\n\ninterface HmacImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface HmacKeyAlgorithm extends KeyAlgorithm {\n hash: KeyAlgorithm;\n length: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface IDBDatabaseInfo {\n name?: string;\n version?: number;\n}\n\ninterface IDBIndexParameters {\n multiEntry?: boolean;\n unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n autoIncrement?: boolean;\n keyPath?: string | string[] | null;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n newVersion?: number | null;\n oldVersion?: number;\n}\n\ninterface IIRFilterOptions extends AudioNodeOptions {\n feedback: number[];\n feedforward: number[];\n}\n\ninterface IdleRequestOptions {\n timeout?: number;\n}\n\ninterface ImageBitmapOptions {\n colorSpaceConversion?: ColorSpaceConversion;\n imageOrientation?: ImageOrientation;\n premultiplyAlpha?: PremultiplyAlpha;\n resizeHeight?: number;\n resizeQuality?: ResizeQuality;\n resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContextSettings {\n alpha?: boolean;\n}\n\ninterface ImageDataSettings {\n colorSpace?: PredefinedColorSpace;\n}\n\ninterface ImportMeta {\n url: string;\n}\n\ninterface InputEventInit extends UIEventInit {\n data?: string | null;\n dataTransfer?: DataTransfer | null;\n inputType?: string;\n isComposing?: boolean;\n targetRanges?: StaticRange[];\n}\n\ninterface IntersectionObserverEntryInit {\n boundingClientRect: DOMRectInit;\n intersectionRatio: number;\n intersectionRect: DOMRectInit;\n isIntersecting: boolean;\n rootBounds: DOMRectInit | null;\n target: Element;\n time: DOMHighResTimeStamp;\n}\n\ninterface IntersectionObserverInit {\n root?: Element | Document | null;\n rootMargin?: string;\n threshold?: number | number[];\n}\n\ninterface JsonWebKey {\n alg?: string;\n crv?: string;\n d?: string;\n dp?: string;\n dq?: string;\n e?: string;\n ext?: boolean;\n k?: string;\n key_ops?: string[];\n kty?: string;\n n?: string;\n oth?: RsaOtherPrimesInfo[];\n p?: string;\n q?: string;\n qi?: string;\n use?: string;\n x?: string;\n y?: string;\n}\n\ninterface KeyAlgorithm {\n name: string;\n}\n\ninterface KeyboardEventInit extends EventModifierInit {\n /** @deprecated */\n charCode?: number;\n code?: string;\n isComposing?: boolean;\n key?: string;\n /** @deprecated */\n keyCode?: number;\n location?: number;\n repeat?: boolean;\n}\n\ninterface Keyframe {\n composite?: CompositeOperationOrAuto;\n easing?: string;\n offset?: number | null;\n [property: string]: string | number | null | undefined;\n}\n\ninterface KeyframeAnimationOptions extends KeyframeEffectOptions {\n id?: string;\n}\n\ninterface KeyframeEffectOptions extends EffectTiming {\n composite?: CompositeOperation;\n iterationComposite?: IterationCompositeOperation;\n pseudoElement?: string | null;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaDecodingConfiguration;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaEncodingConfiguration;\n}\n\ninterface MediaCapabilitiesInfo {\n powerEfficient: boolean;\n smooth: boolean;\n supported: boolean;\n}\n\ninterface MediaConfiguration {\n audio?: AudioConfiguration;\n video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n type: MediaDecodingType;\n}\n\ninterface MediaElementAudioSourceOptions {\n mediaElement: HTMLMediaElement;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n type: MediaEncodingType;\n}\n\ninterface MediaEncryptedEventInit extends EventInit {\n initData?: ArrayBuffer | null;\n initDataType?: string;\n}\n\ninterface MediaImage {\n sizes?: string;\n src: string;\n type?: string;\n}\n\ninterface MediaKeyMessageEventInit extends EventInit {\n message: ArrayBuffer;\n messageType: MediaKeyMessageType;\n}\n\ninterface MediaKeySystemConfiguration {\n audioCapabilities?: MediaKeySystemMediaCapability[];\n distinctiveIdentifier?: MediaKeysRequirement;\n initDataTypes?: string[];\n label?: string;\n persistentState?: MediaKeysRequirement;\n sessionTypes?: string[];\n videoCapabilities?: MediaKeySystemMediaCapability[];\n}\n\ninterface MediaKeySystemMediaCapability {\n contentType?: string;\n encryptionScheme?: string | null;\n robustness?: string;\n}\n\ninterface MediaMetadataInit {\n album?: string;\n artist?: string;\n artwork?: MediaImage[];\n title?: string;\n}\n\ninterface MediaPositionState {\n duration?: number;\n playbackRate?: number;\n position?: number;\n}\n\ninterface MediaQueryListEventInit extends EventInit {\n matches?: boolean;\n media?: string;\n}\n\ninterface MediaRecorderErrorEventInit extends EventInit {\n error: DOMException;\n}\n\ninterface MediaRecorderOptions {\n audioBitsPerSecond?: number;\n bitsPerSecond?: number;\n mimeType?: string;\n videoBitsPerSecond?: number;\n}\n\ninterface MediaSessionActionDetails {\n action: MediaSessionAction;\n fastSeek?: boolean | null;\n seekOffset?: number | null;\n seekTime?: number | null;\n}\n\ninterface MediaStreamAudioSourceOptions {\n mediaStream: MediaStream;\n}\n\ninterface MediaStreamConstraints {\n audio?: boolean | MediaTrackConstraints;\n peerIdentity?: string;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface MediaStreamTrackEventInit extends EventInit {\n track: MediaStreamTrack;\n}\n\ninterface MediaTrackCapabilities {\n aspectRatio?: DoubleRange;\n autoGainControl?: boolean[];\n channelCount?: ULongRange;\n cursor?: string[];\n deviceId?: string;\n displaySurface?: string;\n echoCancellation?: boolean[];\n facingMode?: string[];\n frameRate?: DoubleRange;\n groupId?: string;\n height?: ULongRange;\n latency?: DoubleRange;\n logicalSurface?: boolean;\n noiseSuppression?: boolean[];\n resizeMode?: string[];\n sampleRate?: ULongRange;\n sampleSize?: ULongRange;\n width?: ULongRange;\n}\n\ninterface MediaTrackConstraintSet {\n aspectRatio?: ConstrainDouble;\n channelCount?: ConstrainULong;\n deviceId?: ConstrainDOMString;\n echoCancellation?: ConstrainBoolean;\n facingMode?: ConstrainDOMString;\n frameRate?: ConstrainDouble;\n groupId?: ConstrainDOMString;\n height?: ConstrainULong;\n latency?: ConstrainDouble;\n sampleRate?: ConstrainULong;\n sampleSize?: ConstrainULong;\n suppressLocalAudioPlayback?: ConstrainBoolean;\n width?: ConstrainULong;\n}\n\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\n advanced?: MediaTrackConstraintSet[];\n}\n\ninterface MediaTrackSettings {\n aspectRatio?: number;\n deviceId?: string;\n echoCancellation?: boolean;\n facingMode?: string;\n frameRate?: number;\n groupId?: string;\n height?: number;\n restrictOwnAudio?: boolean;\n sampleRate?: number;\n sampleSize?: number;\n width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n aspectRatio?: boolean;\n deviceId?: boolean;\n echoCancellation?: boolean;\n facingMode?: boolean;\n frameRate?: boolean;\n groupId?: boolean;\n height?: boolean;\n sampleRate?: boolean;\n sampleSize?: boolean;\n suppressLocalAudioPlayback?: boolean;\n width?: boolean;\n}\n\ninterface MessageEventInit<T = any> extends EventInit {\n data?: T;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: MessageEventSource | null;\n}\n\ninterface MouseEventInit extends EventModifierInit {\n button?: number;\n buttons?: number;\n clientX?: number;\n clientY?: number;\n movementX?: number;\n movementY?: number;\n relatedTarget?: EventTarget | null;\n screenX?: number;\n screenY?: number;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n cacheName?: string;\n}\n\ninterface MutationObserverInit {\n /**\n * 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.\n */\n attributeFilter?: string[];\n /**\n * Set to true if attributes is true or omitted and target\'s attribute value before the mutation needs to be recorded.\n */\n attributeOldValue?: boolean;\n /**\n * Set to true if mutations to target\'s attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified.\n */\n attributes?: boolean;\n /**\n * Set to true if mutations to target\'s data are to be observed. Can be omitted if characterDataOldValue is specified.\n */\n characterData?: boolean;\n /**\n * Set to true if characterData is set to true or omitted and target\'s data before the mutation needs to be recorded.\n */\n characterDataOldValue?: boolean;\n /**\n * Set to true if mutations to target\'s children are to be observed.\n */\n childList?: boolean;\n /**\n * Set to true if mutations to not just target, but also target\'s descendants are to be observed.\n */\n subtree?: boolean;\n}\n\ninterface NotificationAction {\n action: string;\n icon?: string;\n title: string;\n}\n\ninterface NotificationOptions {\n actions?: NotificationAction[];\n badge?: string;\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n image?: string;\n lang?: string;\n renotify?: boolean;\n requireInteraction?: boolean;\n silent?: boolean;\n tag?: string;\n timestamp?: DOMTimeStamp;\n vibrate?: VibratePattern;\n}\n\ninterface OfflineAudioCompletionEventInit extends EventInit {\n renderedBuffer: AudioBuffer;\n}\n\ninterface OfflineAudioContextOptions {\n length: number;\n numberOfChannels?: number;\n sampleRate: number;\n}\n\ninterface OptionalEffectTiming {\n delay?: number;\n direction?: PlaybackDirection;\n duration?: number | string;\n easing?: string;\n endDelay?: number;\n fill?: FillMode;\n iterationStart?: number;\n iterations?: number;\n playbackRate?: number;\n}\n\ninterface OscillatorOptions extends AudioNodeOptions {\n detune?: number;\n frequency?: number;\n periodicWave?: PeriodicWave;\n type?: OscillatorType;\n}\n\ninterface PageTransitionEventInit extends EventInit {\n persisted?: boolean;\n}\n\ninterface PannerOptions extends AudioNodeOptions {\n coneInnerAngle?: number;\n coneOuterAngle?: number;\n coneOuterGain?: number;\n distanceModel?: DistanceModelType;\n maxDistance?: number;\n orientationX?: number;\n orientationY?: number;\n orientationZ?: number;\n panningModel?: PanningModelType;\n positionX?: number;\n positionY?: number;\n positionZ?: number;\n refDistance?: number;\n rolloffFactor?: number;\n}\n\ninterface PaymentCurrencyAmount {\n currency: string;\n value: string;\n}\n\ninterface PaymentDetailsBase {\n displayItems?: PaymentItem[];\n modifiers?: PaymentDetailsModifier[];\n}\n\ninterface PaymentDetailsInit extends PaymentDetailsBase {\n id?: string;\n total: PaymentItem;\n}\n\ninterface PaymentDetailsModifier {\n additionalDisplayItems?: PaymentItem[];\n data?: any;\n supportedMethods: string;\n total?: PaymentItem;\n}\n\ninterface PaymentDetailsUpdate extends PaymentDetailsBase {\n paymentMethodErrors?: any;\n total?: PaymentItem;\n}\n\ninterface PaymentItem {\n amount: PaymentCurrencyAmount;\n label: string;\n pending?: boolean;\n}\n\ninterface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {\n methodDetails?: any;\n methodName?: string;\n}\n\ninterface PaymentMethodData {\n data?: any;\n supportedMethods: string;\n}\n\ninterface PaymentRequestUpdateEventInit extends EventInit {\n}\n\ninterface PaymentValidationErrors {\n error?: string;\n paymentMethod?: any;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: HashAlgorithmIdentifier;\n iterations: number;\n salt: BufferSource;\n}\n\ninterface PerformanceMarkOptions {\n detail?: any;\n startTime?: DOMHighResTimeStamp;\n}\n\ninterface PerformanceMeasureOptions {\n detail?: any;\n duration?: DOMHighResTimeStamp;\n end?: string | DOMHighResTimeStamp;\n start?: string | DOMHighResTimeStamp;\n}\n\ninterface PerformanceObserverInit {\n buffered?: boolean;\n entryTypes?: string[];\n type?: string;\n}\n\ninterface PeriodicWaveConstraints {\n disableNormalization?: boolean;\n}\n\ninterface PeriodicWaveOptions extends PeriodicWaveConstraints {\n imag?: number[] | Float32Array;\n real?: number[] | Float32Array;\n}\n\ninterface PermissionDescriptor {\n name: PermissionName;\n}\n\ninterface PointerEventInit extends MouseEventInit {\n coalescedEvents?: PointerEvent[];\n height?: number;\n isPrimary?: boolean;\n pointerId?: number;\n pointerType?: string;\n predictedEvents?: PointerEvent[];\n pressure?: number;\n tangentialPressure?: number;\n tiltX?: number;\n tiltY?: number;\n twist?: number;\n width?: number;\n}\n\ninterface PopStateEventInit extends EventInit {\n state?: any;\n}\n\ninterface PositionOptions {\n enableHighAccuracy?: boolean;\n maximumAge?: number;\n timeout?: number;\n}\n\ninterface PostMessageOptions {\n transfer?: any[];\n}\n\ninterface ProgressEventInit extends EventInit {\n lengthComputable?: boolean;\n loaded?: number;\n total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: Promise<any>;\n reason?: any;\n}\n\ninterface PropertyIndexedKeyframes {\n composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];\n easing?: string | string[];\n offset?: number | (number | null)[];\n [property: string]: string | string[] | number | null | (number | null)[] | undefined;\n}\n\ninterface PublicKeyCredentialCreationOptions {\n attestation?: AttestationConveyancePreference;\n authenticatorSelection?: AuthenticatorSelectionCriteria;\n challenge: BufferSource;\n excludeCredentials?: PublicKeyCredentialDescriptor[];\n extensions?: AuthenticationExtensionsClientInputs;\n pubKeyCredParams: PublicKeyCredentialParameters[];\n rp: PublicKeyCredentialRpEntity;\n timeout?: number;\n user: PublicKeyCredentialUserEntity;\n}\n\ninterface PublicKeyCredentialDescriptor {\n id: BufferSource;\n transports?: AuthenticatorTransport[];\n type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialEntity {\n name: string;\n}\n\ninterface PublicKeyCredentialParameters {\n alg: COSEAlgorithmIdentifier;\n type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialRequestOptions {\n allowCredentials?: PublicKeyCredentialDescriptor[];\n challenge: BufferSource;\n extensions?: AuthenticationExtensionsClientInputs;\n rpId?: string;\n timeout?: number;\n userVerification?: UserVerificationRequirement;\n}\n\ninterface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {\n id?: string;\n}\n\ninterface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {\n displayName: string;\n id: BufferSource;\n}\n\ninterface PushSubscriptionJSON {\n endpoint?: string;\n expirationTime?: DOMTimeStamp | null;\n keys?: Record<string, string>;\n}\n\ninterface PushSubscriptionOptionsInit {\n applicationServerKey?: BufferSource | string | null;\n userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy<T = any> {\n highWaterMark?: number;\n size?: QueuingStrategySize<T>;\n}\n\ninterface QueuingStrategyInit {\n /**\n * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\n *\n * 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.\n */\n highWaterMark: number;\n}\n\ninterface RTCAnswerOptions extends RTCOfferAnswerOptions {\n}\n\ninterface RTCCertificateExpiration {\n expires?: DOMTimeStamp;\n}\n\ninterface RTCConfiguration {\n bundlePolicy?: RTCBundlePolicy;\n certificates?: RTCCertificate[];\n iceCandidatePoolSize?: number;\n iceServers?: RTCIceServer[];\n iceTransportPolicy?: RTCIceTransportPolicy;\n rtcpMuxPolicy?: RTCRtcpMuxPolicy;\n}\n\ninterface RTCDTMFToneChangeEventInit extends EventInit {\n tone?: string;\n}\n\ninterface RTCDataChannelEventInit extends EventInit {\n channel: RTCDataChannel;\n}\n\ninterface RTCDataChannelInit {\n id?: number;\n maxPacketLifeTime?: number;\n maxRetransmits?: number;\n negotiated?: boolean;\n ordered?: boolean;\n protocol?: string;\n}\n\ninterface RTCDtlsFingerprint {\n algorithm?: string;\n value?: string;\n}\n\ninterface RTCIceCandidateInit {\n candidate?: string;\n sdpMLineIndex?: number | null;\n sdpMid?: string | null;\n usernameFragment?: string | null;\n}\n\ninterface RTCIceCandidatePairStats extends RTCStats {\n availableIncomingBitrate?: number;\n availableOutgoingBitrate?: number;\n bytesReceived?: number;\n bytesSent?: number;\n currentRoundTripTime?: number;\n localCandidateId: string;\n nominated?: boolean;\n remoteCandidateId: string;\n requestsReceived?: number;\n requestsSent?: number;\n responsesReceived?: number;\n responsesSent?: number;\n state: RTCStatsIceCandidatePairState;\n totalRoundTripTime?: number;\n transportId: string;\n}\n\ninterface RTCIceServer {\n credential?: string;\n credentialType?: RTCIceCredentialType;\n urls: string | string[];\n username?: string;\n}\n\ninterface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {\n firCount?: number;\n framesDecoded?: number;\n nackCount?: number;\n pliCount?: number;\n qpSum?: number;\n remoteId?: string;\n}\n\ninterface RTCLocalSessionDescriptionInit {\n sdp?: string;\n type?: RTCSdpType;\n}\n\ninterface RTCOfferAnswerOptions {\n}\n\ninterface RTCOfferOptions extends RTCOfferAnswerOptions {\n iceRestart?: boolean;\n offerToReceiveAudio?: boolean;\n offerToReceiveVideo?: boolean;\n}\n\ninterface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {\n firCount?: number;\n framesEncoded?: number;\n nackCount?: number;\n pliCount?: number;\n qpSum?: number;\n remoteId?: string;\n}\n\ninterface RTCPeerConnectionIceErrorEventInit extends EventInit {\n address?: string | null;\n errorCode: number;\n errorText?: string;\n port?: number | null;\n url?: string;\n}\n\ninterface RTCPeerConnectionIceEventInit extends EventInit {\n candidate?: RTCIceCandidate | null;\n url?: string | null;\n}\n\ninterface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {\n jitter?: number;\n packetsDiscarded?: number;\n packetsLost?: number;\n packetsReceived?: number;\n}\n\ninterface RTCRtcpParameters {\n cname?: string;\n reducedSize?: boolean;\n}\n\ninterface RTCRtpCapabilities {\n codecs: RTCRtpCodecCapability[];\n headerExtensions: RTCRtpHeaderExtensionCapability[];\n}\n\ninterface RTCRtpCodecCapability {\n channels?: number;\n clockRate: number;\n mimeType: string;\n sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodecParameters {\n channels?: number;\n clockRate: number;\n mimeType: string;\n payloadType: number;\n sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodingParameters {\n rid?: string;\n}\n\ninterface RTCRtpContributingSource {\n audioLevel?: number;\n rtpTimestamp: number;\n source: number;\n timestamp: DOMHighResTimeStamp;\n}\n\ninterface RTCRtpEncodingParameters extends RTCRtpCodingParameters {\n active?: boolean;\n maxBitrate?: number;\n priority?: RTCPriorityType;\n scaleResolutionDownBy?: number;\n}\n\ninterface RTCRtpHeaderExtensionCapability {\n uri?: string;\n}\n\ninterface RTCRtpHeaderExtensionParameters {\n encrypted?: boolean;\n id: number;\n uri: string;\n}\n\ninterface RTCRtpParameters {\n codecs: RTCRtpCodecParameters[];\n headerExtensions: RTCRtpHeaderExtensionParameters[];\n rtcp: RTCRtcpParameters;\n}\n\ninterface RTCRtpReceiveParameters extends RTCRtpParameters {\n}\n\ninterface RTCRtpSendParameters extends RTCRtpParameters {\n degradationPreference?: RTCDegradationPreference;\n encodings: RTCRtpEncodingParameters[];\n transactionId: string;\n}\n\ninterface RTCRtpStreamStats extends RTCStats {\n codecId?: string;\n kind: string;\n ssrc: number;\n transportId?: string;\n}\n\ninterface RTCRtpSynchronizationSource extends RTCRtpContributingSource {\n}\n\ninterface RTCRtpTransceiverInit {\n direction?: RTCRtpTransceiverDirection;\n sendEncodings?: RTCRtpEncodingParameters[];\n streams?: MediaStream[];\n}\n\ninterface RTCSentRtpStreamStats extends RTCRtpStreamStats {\n bytesSent?: number;\n packetsSent?: number;\n}\n\ninterface RTCSessionDescriptionInit {\n sdp?: string;\n type: RTCSdpType;\n}\n\ninterface RTCStats {\n id: string;\n timestamp: DOMHighResTimeStamp;\n type: RTCStatsType;\n}\n\ninterface RTCTrackEventInit extends EventInit {\n receiver: RTCRtpReceiver;\n streams?: MediaStream[];\n track: MediaStreamTrack;\n transceiver: RTCRtpTransceiver;\n}\n\ninterface RTCTransportStats extends RTCStats {\n bytesReceived?: number;\n bytesSent?: number;\n dtlsCipher?: string;\n dtlsState: RTCDtlsTransportState;\n localCertificateId?: string;\n remoteCertificateId?: string;\n rtcpTransportStatsId?: string;\n selectedCandidatePairId?: string;\n srtpCipher?: string;\n tlsVersion?: string;\n}\n\ninterface ReadableStreamDefaultReadDoneResult {\n done: true;\n value?: undefined;\n}\n\ninterface ReadableStreamDefaultReadValueResult<T> {\n done: false;\n value: T;\n}\n\ninterface ReadableWritablePair<R = any, W = any> {\n readable: ReadableStream<R>;\n /**\n * 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.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n */\n writable: WritableStream<W>;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n type?: WorkerType;\n updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface RequestInit {\n /**\n * A BodyInit object or null to set request\'s body.\n */\n body?: BodyInit | null;\n /**\n * A string indicating how the request will interact with the browser\'s cache to set request\'s cache.\n */\n cache?: RequestCache;\n /**\n * 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.\n */\n credentials?: RequestCredentials;\n /**\n * A Headers object, an object literal, or an array of two-item arrays to set request\'s headers.\n */\n headers?: HeadersInit;\n /**\n * A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity.\n */\n integrity?: string;\n /**\n * A boolean to set request\'s keepalive.\n */\n keepalive?: boolean;\n /**\n * A string to set request\'s method.\n */\n method?: string;\n /**\n * A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode.\n */\n mode?: RequestMode;\n /**\n * 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.\n */\n redirect?: RequestRedirect;\n /**\n * A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer.\n */\n referrer?: string;\n /**\n * A referrer policy to set request\'s referrerPolicy.\n */\n referrerPolicy?: ReferrerPolicy;\n /**\n * An AbortSignal to set request\'s signal.\n */\n signal?: AbortSignal | null;\n /**\n * Can only be null. Used to disassociate request from any Window.\n */\n window?: any;\n}\n\ninterface ResizeObserverOptions {\n box?: ResizeObserverBoxOptions;\n}\n\ninterface ResponseInit {\n headers?: HeadersInit;\n status?: number;\n statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {\n hash: KeyAlgorithm;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyAlgorithm extends KeyAlgorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n label?: BufferSource;\n}\n\ninterface RsaOtherPrimesInfo {\n d?: string;\n r?: string;\n t?: string;\n}\n\ninterface RsaPssParams extends Algorithm {\n saltLength: number;\n}\n\ninterface SVGBoundingBoxOptions {\n clipped?: boolean;\n fill?: boolean;\n markers?: boolean;\n stroke?: boolean;\n}\n\ninterface ScrollIntoViewOptions extends ScrollOptions {\n block?: ScrollLogicalPosition;\n inline?: ScrollLogicalPosition;\n}\n\ninterface ScrollOptions {\n behavior?: ScrollBehavior;\n}\n\ninterface ScrollToOptions extends ScrollOptions {\n left?: number;\n top?: number;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n blockedURI?: string;\n columnNumber?: number;\n disposition: SecurityPolicyViolationEventDisposition;\n documentURI: string;\n effectiveDirective: string;\n lineNumber?: number;\n originalPolicy: string;\n referrer?: string;\n sample?: string;\n sourceFile?: string;\n statusCode: number;\n violatedDirective: string;\n}\n\ninterface ShadowRootInit {\n delegatesFocus?: boolean;\n mode: ShadowRootMode;\n slotAssignment?: SlotAssignmentMode;\n}\n\ninterface ShareData {\n files?: File[];\n text?: string;\n title?: string;\n url?: string;\n}\n\ninterface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {\n error: SpeechSynthesisErrorCode;\n}\n\ninterface SpeechSynthesisEventInit extends EventInit {\n charIndex?: number;\n charLength?: number;\n elapsedTime?: number;\n name?: string;\n utterance: SpeechSynthesisUtterance;\n}\n\ninterface StaticRangeInit {\n endContainer: Node;\n endOffset: number;\n startContainer: Node;\n startOffset: number;\n}\n\ninterface StereoPannerOptions extends AudioNodeOptions {\n pan?: number;\n}\n\ninterface StorageEstimate {\n quota?: number;\n usage?: number;\n}\n\ninterface StorageEventInit extends EventInit {\n key?: string | null;\n newValue?: string | null;\n oldValue?: string | null;\n storageArea?: Storage | null;\n url?: string;\n}\n\ninterface StreamPipeOptions {\n preventAbort?: boolean;\n preventCancel?: boolean;\n /**\n * 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.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n *\n * Errors and closures of the source and destination streams propagate as follows:\n *\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * 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.\n */\n preventClose?: boolean;\n signal?: AbortSignal;\n}\n\ninterface SubmitEventInit extends EventInit {\n submitter?: HTMLElement | null;\n}\n\ninterface TextDecodeOptions {\n stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n fatal?: boolean;\n ignoreBOM?: boolean;\n}\n\ninterface TextEncoderEncodeIntoResult {\n read?: number;\n written?: number;\n}\n\ninterface TouchEventInit extends EventModifierInit {\n changedTouches?: Touch[];\n targetTouches?: Touch[];\n touches?: Touch[];\n}\n\ninterface TouchInit {\n altitudeAngle?: number;\n azimuthAngle?: number;\n clientX?: number;\n clientY?: number;\n force?: number;\n identifier: number;\n pageX?: number;\n pageY?: number;\n radiusX?: number;\n radiusY?: number;\n rotationAngle?: number;\n screenX?: number;\n screenY?: number;\n target: EventTarget;\n touchType?: TouchType;\n}\n\ninterface TrackEventInit extends EventInit {\n track?: TextTrack | null;\n}\n\ninterface Transformer<I = any, O = any> {\n flush?: TransformerFlushCallback<O>;\n readableType?: undefined;\n start?: TransformerStartCallback<O>;\n transform?: TransformerTransformCallback<I, O>;\n writableType?: undefined;\n}\n\ninterface TransitionEventInit extends EventInit {\n elapsedTime?: number;\n propertyName?: string;\n pseudoElement?: string;\n}\n\ninterface UIEventInit extends EventInit {\n detail?: number;\n view?: Window | null;\n /** @deprecated */\n which?: number;\n}\n\ninterface ULongRange {\n max?: number;\n min?: number;\n}\n\ninterface UnderlyingSink<W = any> {\n abort?: UnderlyingSinkAbortCallback;\n close?: UnderlyingSinkCloseCallback;\n start?: UnderlyingSinkStartCallback;\n type?: undefined;\n write?: UnderlyingSinkWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n cancel?: UnderlyingSourceCancelCallback;\n pull?: UnderlyingSourcePullCallback<R>;\n start?: UnderlyingSourceStartCallback<R>;\n type?: undefined;\n}\n\ninterface VideoConfiguration {\n bitrate: number;\n colorGamut?: ColorGamut;\n contentType: string;\n framerate: number;\n hdrMetadataType?: HdrMetadataType;\n height: number;\n scalabilityMode?: string;\n transferFunction?: TransferFunction;\n width: number;\n}\n\ninterface WaveShaperOptions extends AudioNodeOptions {\n curve?: number[] | Float32Array;\n oversample?: OverSampleType;\n}\n\ninterface WebGLContextAttributes {\n alpha?: boolean;\n antialias?: boolean;\n depth?: boolean;\n desynchronized?: boolean;\n failIfMajorPerformanceCaveat?: boolean;\n powerPreference?: WebGLPowerPreference;\n premultipliedAlpha?: boolean;\n preserveDrawingBuffer?: boolean;\n stencil?: boolean;\n}\n\ninterface WebGLContextEventInit extends EventInit {\n statusMessage?: string;\n}\n\ninterface WheelEventInit extends MouseEventInit {\n deltaMode?: number;\n deltaX?: number;\n deltaY?: number;\n deltaZ?: number;\n}\n\ninterface WindowPostMessageOptions extends PostMessageOptions {\n targetOrigin?: string;\n}\n\ninterface WorkerOptions {\n credentials?: RequestCredentials;\n name?: string;\n type?: WorkerType;\n}\n\ninterface WorkletOptions {\n credentials?: RequestCredentials;\n}\n\ntype NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };\n\ndeclare var NodeFilter: {\n readonly FILTER_ACCEPT: number;\n readonly FILTER_REJECT: number;\n readonly FILTER_SKIP: number;\n readonly SHOW_ALL: number;\n readonly SHOW_ATTRIBUTE: number;\n readonly SHOW_CDATA_SECTION: number;\n readonly SHOW_COMMENT: number;\n readonly SHOW_DOCUMENT: number;\n readonly SHOW_DOCUMENT_FRAGMENT: number;\n readonly SHOW_DOCUMENT_TYPE: number;\n readonly SHOW_ELEMENT: number;\n readonly SHOW_ENTITY: number;\n readonly SHOW_ENTITY_REFERENCE: number;\n readonly SHOW_NOTATION: number;\n readonly SHOW_PROCESSING_INSTRUCTION: number;\n readonly SHOW_TEXT: number;\n};\n\ntype XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };\n\n/** 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. */\ninterface ANGLE_instanced_arrays {\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;\n}\n\ninterface ARIAMixin {\n ariaAtomic: string;\n ariaAutoComplete: string;\n ariaBusy: string;\n ariaChecked: string;\n ariaColCount: string;\n ariaColIndex: string;\n ariaColSpan: string;\n ariaCurrent: string;\n ariaDisabled: string;\n ariaExpanded: string;\n ariaHasPopup: string;\n ariaHidden: string;\n ariaKeyShortcuts: string;\n ariaLabel: string;\n ariaLevel: string;\n ariaLive: string;\n ariaModal: string;\n ariaMultiLine: string;\n ariaMultiSelectable: string;\n ariaOrientation: string;\n ariaPlaceholder: string;\n ariaPosInSet: string;\n ariaPressed: string;\n ariaReadOnly: string;\n ariaRequired: string;\n ariaRoleDescription: string;\n ariaRowCount: string;\n ariaRowIndex: string;\n ariaRowSpan: string;\n ariaSelected: string;\n ariaSetSize: string;\n ariaSort: string;\n ariaValueMax: string;\n ariaValueMin: string;\n ariaValueNow: string;\n ariaValueText: string;\n}\n\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\ninterface AbortController {\n /**\n * Returns the AbortSignal object associated with this object.\n */\n readonly signal: AbortSignal;\n /**\n * 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.\n */\n abort(): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": Event;\n}\n\n/** 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. */\ninterface AbortSignal extends EventTarget {\n /**\n * Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise.\n */\n readonly aborted: boolean;\n onabort: ((this: AbortSignal, ev: Event) => any) | null;\n addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AbortSignal: {\n prototype: AbortSignal;\n new(): AbortSignal;\n};\n\ninterface AbstractRange {\n /**\n * Returns true if range is collapsed, and false otherwise.\n */\n readonly collapsed: boolean;\n /**\n * Returns range\'s end node.\n */\n readonly endContainer: Node;\n /**\n * Returns range\'s end offset.\n */\n readonly endOffset: number;\n /**\n * Returns range\'s start node.\n */\n readonly startContainer: Node;\n /**\n * Returns range\'s start offset.\n */\n readonly startOffset: number;\n}\n\ndeclare var AbstractRange: {\n prototype: AbstractRange;\n new(): AbstractRange;\n};\n\ninterface AbstractWorkerEventMap {\n "error": ErrorEvent;\n}\n\ninterface AbstractWorker {\n onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\n addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** 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. */\ninterface AnalyserNode extends AudioNode {\n fftSize: number;\n readonly frequencyBinCount: number;\n maxDecibels: number;\n minDecibels: number;\n smoothingTimeConstant: number;\n getByteFrequencyData(array: Uint8Array): void;\n getByteTimeDomainData(array: Uint8Array): void;\n getFloatFrequencyData(array: Float32Array): void;\n getFloatTimeDomainData(array: Float32Array): void;\n}\n\ndeclare var AnalyserNode: {\n prototype: AnalyserNode;\n new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;\n};\n\ninterface Animatable {\n animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;\n getAnimations(options?: GetAnimationsOptions): Animation[];\n}\n\ninterface AnimationEventMap {\n "cancel": AnimationPlaybackEvent;\n "finish": AnimationPlaybackEvent;\n "remove": Event;\n}\n\ninterface Animation extends EventTarget {\n currentTime: number | null;\n effect: AnimationEffect | null;\n readonly finished: Promise<Animation>;\n id: string;\n oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n onremove: ((this: Animation, ev: Event) => any) | null;\n readonly pending: boolean;\n readonly playState: AnimationPlayState;\n playbackRate: number;\n readonly ready: Promise<Animation>;\n readonly replaceState: AnimationReplaceState;\n startTime: number | null;\n timeline: AnimationTimeline | null;\n cancel(): void;\n commitStyles(): void;\n finish(): void;\n pause(): void;\n persist(): void;\n play(): void;\n reverse(): void;\n updatePlaybackRate(playbackRate: number): void;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Animation: {\n prototype: Animation;\n new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;\n};\n\ninterface AnimationEffect {\n getComputedTiming(): ComputedEffectTiming;\n getTiming(): EffectTiming;\n updateTiming(timing?: OptionalEffectTiming): void;\n}\n\ndeclare var AnimationEffect: {\n prototype: AnimationEffect;\n new(): AnimationEffect;\n};\n\n/** Events providing information related to animations. */\ninterface AnimationEvent extends Event {\n readonly animationName: string;\n readonly elapsedTime: number;\n readonly pseudoElement: string;\n}\n\ndeclare var AnimationEvent: {\n prototype: AnimationEvent;\n new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;\n};\n\ninterface AnimationFrameProvider {\n cancelAnimationFrame(handle: number): void;\n requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\ninterface AnimationPlaybackEvent extends Event {\n readonly currentTime: number | null;\n readonly timelineTime: number | null;\n}\n\ndeclare var AnimationPlaybackEvent: {\n prototype: AnimationPlaybackEvent;\n new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;\n};\n\ninterface AnimationTimeline {\n readonly currentTime: number | null;\n}\n\ndeclare var AnimationTimeline: {\n prototype: AnimationTimeline;\n new(): AnimationTimeline;\n};\n\n/** 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. */\ninterface Attr extends Node {\n readonly localName: string;\n readonly name: string;\n readonly namespaceURI: string | null;\n readonly ownerDocument: Document;\n readonly ownerElement: Element | null;\n readonly prefix: string | null;\n readonly specified: boolean;\n value: string;\n}\n\ndeclare var Attr: {\n prototype: Attr;\n new(): Attr;\n};\n\n/** 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. */\ninterface AudioBuffer {\n readonly duration: number;\n readonly length: number;\n readonly numberOfChannels: number;\n readonly sampleRate: number;\n copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;\n copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;\n getChannelData(channel: number): Float32Array;\n}\n\ndeclare var AudioBuffer: {\n prototype: AudioBuffer;\n new(options: AudioBufferOptions): AudioBuffer;\n};\n\n/** 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. */\ninterface AudioBufferSourceNode extends AudioScheduledSourceNode {\n buffer: AudioBuffer | null;\n readonly detune: AudioParam;\n loop: boolean;\n loopEnd: number;\n loopStart: number;\n readonly playbackRate: AudioParam;\n start(when?: number, offset?: number, duration?: number): void;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioBufferSourceNode: {\n prototype: AudioBufferSourceNode;\n new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;\n};\n\n/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */\ninterface AudioContext extends BaseAudioContext {\n readonly baseLatency: number;\n close(): Promise<void>;\n createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\n createMediaStreamDestination(): MediaStreamAudioDestinationNode;\n createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\n getOutputTimestamp(): AudioTimestamp;\n resume(): Promise<void>;\n suspend(): Promise<void>;\n addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioContext: {\n prototype: AudioContext;\n new(contextOptions?: AudioContextOptions): AudioContext;\n};\n\n/** 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. */\ninterface AudioDestinationNode extends AudioNode {\n readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n prototype: AudioDestinationNode;\n new(): AudioDestinationNode;\n};\n\n/** 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. */\ninterface AudioListener {\n readonly forwardX: AudioParam;\n readonly forwardY: AudioParam;\n readonly forwardZ: AudioParam;\n readonly positionX: AudioParam;\n readonly positionY: AudioParam;\n readonly positionZ: AudioParam;\n readonly upX: AudioParam;\n readonly upY: AudioParam;\n readonly upZ: AudioParam;\n /** @deprecated */\n setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;\n /** @deprecated */\n setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var AudioListener: {\n prototype: AudioListener;\n new(): AudioListener;\n};\n\n/** A generic interface for representing an audio processing module. Examples include: */\ninterface AudioNode extends EventTarget {\n channelCount: number;\n channelCountMode: ChannelCountMode;\n channelInterpretation: ChannelInterpretation;\n readonly context: BaseAudioContext;\n readonly numberOfInputs: number;\n readonly numberOfOutputs: number;\n connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;\n connect(destinationParam: AudioParam, output?: number): void;\n disconnect(): void;\n disconnect(output: number): void;\n disconnect(destinationNode: AudioNode): void;\n disconnect(destinationNode: AudioNode, output: number): void;\n disconnect(destinationNode: AudioNode, output: number, input: number): void;\n disconnect(destinationParam: AudioParam): void;\n disconnect(destinationParam: AudioParam, output: number): void;\n}\n\ndeclare var AudioNode: {\n prototype: AudioNode;\n new(): AudioNode;\n};\n\n/** The Web Audio API\'s AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */\ninterface AudioParam {\n automationRate: AutomationRate;\n readonly defaultValue: number;\n readonly maxValue: number;\n readonly minValue: number;\n value: number;\n cancelAndHoldAtTime(cancelTime: number): AudioParam;\n cancelScheduledValues(cancelTime: number): AudioParam;\n exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;\n linearRampToValueAtTime(value: number, endTime: number): AudioParam;\n setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;\n setValueAtTime(value: number, startTime: number): AudioParam;\n setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;\n}\n\ndeclare var AudioParam: {\n prototype: AudioParam;\n new(): AudioParam;\n};\n\ninterface AudioParamMap {\n forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;\n}\n\ndeclare var AudioParamMap: {\n prototype: AudioParamMap;\n new(): AudioParamMap;\n};\n\n/**\n * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.\n * @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.\n */\ninterface AudioProcessingEvent extends Event {\n /** @deprecated */\n readonly inputBuffer: AudioBuffer;\n /** @deprecated */\n readonly outputBuffer: AudioBuffer;\n /** @deprecated */\n readonly playbackTime: number;\n}\n\n/** @deprecated */\ndeclare var AudioProcessingEvent: {\n prototype: AudioProcessingEvent;\n new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;\n};\n\ninterface AudioScheduledSourceNodeEventMap {\n "ended": Event;\n}\n\ninterface AudioScheduledSourceNode extends AudioNode {\n onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;\n start(when?: number): void;\n stop(when?: number): void;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioScheduledSourceNode: {\n prototype: AudioScheduledSourceNode;\n new(): AudioScheduledSourceNode;\n};\n\ninterface AudioWorklet extends Worklet {\n}\n\ndeclare var AudioWorklet: {\n prototype: AudioWorklet;\n new(): AudioWorklet;\n};\n\ninterface AudioWorkletNodeEventMap {\n "processorerror": Event;\n}\n\ninterface AudioWorkletNode extends AudioNode {\n onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;\n readonly parameters: AudioParamMap;\n readonly port: MessagePort;\n addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioWorkletNode: {\n prototype: AudioWorkletNode;\n new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;\n};\n\ninterface AuthenticatorAssertionResponse extends AuthenticatorResponse {\n readonly authenticatorData: ArrayBuffer;\n readonly signature: ArrayBuffer;\n readonly userHandle: ArrayBuffer | null;\n}\n\ndeclare var AuthenticatorAssertionResponse: {\n prototype: AuthenticatorAssertionResponse;\n new(): AuthenticatorAssertionResponse;\n};\n\ninterface AuthenticatorAttestationResponse extends AuthenticatorResponse {\n readonly attestationObject: ArrayBuffer;\n}\n\ndeclare var AuthenticatorAttestationResponse: {\n prototype: AuthenticatorAttestationResponse;\n new(): AuthenticatorAttestationResponse;\n};\n\ninterface AuthenticatorResponse {\n readonly clientDataJSON: ArrayBuffer;\n}\n\ndeclare var AuthenticatorResponse: {\n prototype: AuthenticatorResponse;\n new(): AuthenticatorResponse;\n};\n\ninterface BarProp {\n readonly visible: boolean;\n}\n\ndeclare var BarProp: {\n prototype: BarProp;\n new(): BarProp;\n};\n\ninterface BaseAudioContextEventMap {\n "statechange": Event;\n}\n\ninterface BaseAudioContext extends EventTarget {\n readonly audioWorklet: AudioWorklet;\n readonly currentTime: number;\n readonly destination: AudioDestinationNode;\n readonly listener: AudioListener;\n onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;\n readonly sampleRate: number;\n readonly state: AudioContextState;\n createAnalyser(): AnalyserNode;\n createBiquadFilter(): BiquadFilterNode;\n createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;\n createBufferSource(): AudioBufferSourceNode;\n createChannelMerger(numberOfInputs?: number): ChannelMergerNode;\n createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;\n createConstantSource(): ConstantSourceNode;\n createConvolver(): ConvolverNode;\n createDelay(maxDelayTime?: number): DelayNode;\n createDynamicsCompressor(): DynamicsCompressorNode;\n createGain(): GainNode;\n createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;\n createOscillator(): OscillatorNode;\n createPanner(): PannerNode;\n createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;\n /** @deprecated */\n createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;\n createStereoPanner(): StereoPannerNode;\n createWaveShaper(): WaveShaperNode;\n decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;\n addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BaseAudioContext: {\n prototype: BaseAudioContext;\n new(): BaseAudioContext;\n};\n\n/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */\ninterface BeforeUnloadEvent extends Event {\n returnValue: any;\n}\n\ndeclare var BeforeUnloadEvent: {\n prototype: BeforeUnloadEvent;\n new(): BeforeUnloadEvent;\n};\n\n/** 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. */\ninterface BiquadFilterNode extends AudioNode {\n readonly Q: AudioParam;\n readonly detune: AudioParam;\n readonly frequency: AudioParam;\n readonly gain: AudioParam;\n type: BiquadFilterType;\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var BiquadFilterNode: {\n prototype: BiquadFilterNode;\n new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;\n};\n\n/** 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. */\ninterface Blob {\n readonly size: number;\n readonly type: string;\n arrayBuffer(): Promise<ArrayBuffer>;\n slice(start?: number, end?: number, contentType?: string): Blob;\n stream(): ReadableStream;\n text(): Promise<string>;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\ninterface BlobEvent extends Event {\n readonly data: Blob;\n readonly timecode: DOMHighResTimeStamp;\n}\n\ndeclare var BlobEvent: {\n prototype: BlobEvent;\n new(type: string, eventInitDict: BlobEventInit): BlobEvent;\n};\n\ninterface Body {\n readonly body: ReadableStream<Uint8Array> | null;\n readonly bodyUsed: boolean;\n arrayBuffer(): Promise<ArrayBuffer>;\n blob(): Promise<Blob>;\n formData(): Promise<FormData>;\n json(): Promise<any>;\n text(): Promise<string>;\n}\n\ninterface BroadcastChannelEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\ninterface BroadcastChannel extends EventTarget {\n /**\n * Returns the channel name (as passed to the constructor).\n */\n readonly name: string;\n onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /**\n * Closes the BroadcastChannel object, opening it up to garbage collection.\n */\n close(): void;\n /**\n * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.\n */\n postMessage(message: any): void;\n addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BroadcastChannel: {\n prototype: BroadcastChannel;\n new(name: string): BroadcastChannel;\n};\n\n/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize<ArrayBufferView>;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n prototype: ByteLengthQueuingStrategy;\n new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\n};\n\n/** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section. */\ninterface CDATASection extends Text {\n}\n\ndeclare var CDATASection: {\n prototype: CDATASection;\n new(): CDATASection;\n};\n\ninterface CSSAnimation extends Animation {\n readonly animationName: string;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSAnimation: {\n prototype: CSSAnimation;\n new(): CSSAnimation;\n};\n\n/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */\ninterface CSSConditionRule extends CSSGroupingRule {\n conditionText: string;\n}\n\ndeclare var CSSConditionRule: {\n prototype: CSSConditionRule;\n new(): CSSConditionRule;\n};\n\ninterface CSSCounterStyleRule extends CSSRule {\n additiveSymbols: string;\n fallback: string;\n name: string;\n negative: string;\n pad: string;\n prefix: string;\n range: string;\n speakAs: string;\n suffix: string;\n symbols: string;\n system: string;\n}\n\ndeclare var CSSCounterStyleRule: {\n prototype: CSSCounterStyleRule;\n new(): CSSCounterStyleRule;\n};\n\ninterface CSSFontFaceRule extends CSSRule {\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSFontFaceRule: {\n prototype: CSSFontFaceRule;\n new(): CSSFontFaceRule;\n};\n\n/** Any CSS at-rule that contains other rules nested within it. */\ninterface CSSGroupingRule extends CSSRule {\n readonly cssRules: CSSRuleList;\n deleteRule(index: number): void;\n insertRule(rule: string, index?: number): number;\n}\n\ndeclare var CSSGroupingRule: {\n prototype: CSSGroupingRule;\n new(): CSSGroupingRule;\n};\n\ninterface CSSImportRule extends CSSRule {\n readonly href: string;\n readonly media: MediaList;\n readonly styleSheet: CSSStyleSheet;\n}\n\ndeclare var CSSImportRule: {\n prototype: CSSImportRule;\n new(): CSSImportRule;\n};\n\n/** 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). */\ninterface CSSKeyframeRule extends CSSRule {\n keyText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSKeyframeRule: {\n prototype: CSSKeyframeRule;\n new(): CSSKeyframeRule;\n};\n\n/** 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). */\ninterface CSSKeyframesRule extends CSSRule {\n readonly cssRules: CSSRuleList;\n name: string;\n appendRule(rule: string): void;\n deleteRule(select: string): void;\n findRule(select: string): CSSKeyframeRule | null;\n}\n\ndeclare var CSSKeyframesRule: {\n prototype: CSSKeyframesRule;\n new(): CSSKeyframesRule;\n};\n\n/** 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). */\ninterface CSSMediaRule extends CSSConditionRule {\n readonly media: MediaList;\n}\n\ndeclare var CSSMediaRule: {\n prototype: CSSMediaRule;\n new(): CSSMediaRule;\n};\n\n/** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */\ninterface CSSNamespaceRule extends CSSRule {\n readonly namespaceURI: string;\n readonly prefix: string;\n}\n\ndeclare var CSSNamespaceRule: {\n prototype: CSSNamespaceRule;\n new(): CSSNamespaceRule;\n};\n\n/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */\ninterface CSSPageRule extends CSSGroupingRule {\n selectorText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSPageRule: {\n prototype: CSSPageRule;\n new(): CSSPageRule;\n};\n\n/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */\ninterface CSSRule {\n cssText: string;\n readonly parentRule: CSSRule | null;\n readonly parentStyleSheet: CSSStyleSheet | null;\n /** @deprecated */\n readonly type: number;\n readonly CHARSET_RULE: number;\n readonly FONT_FACE_RULE: number;\n readonly IMPORT_RULE: number;\n readonly KEYFRAMES_RULE: number;\n readonly KEYFRAME_RULE: number;\n readonly MEDIA_RULE: number;\n readonly NAMESPACE_RULE: number;\n readonly PAGE_RULE: number;\n readonly STYLE_RULE: number;\n readonly SUPPORTS_RULE: number;\n}\n\ndeclare var CSSRule: {\n prototype: CSSRule;\n new(): CSSRule;\n readonly CHARSET_RULE: number;\n readonly FONT_FACE_RULE: number;\n readonly IMPORT_RULE: number;\n readonly KEYFRAMES_RULE: number;\n readonly KEYFRAME_RULE: number;\n readonly MEDIA_RULE: number;\n readonly NAMESPACE_RULE: number;\n readonly PAGE_RULE: number;\n readonly STYLE_RULE: number;\n readonly SUPPORTS_RULE: number;\n};\n\n/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */\ninterface CSSRuleList {\n readonly length: number;\n item(index: number): CSSRule | null;\n [index: number]: CSSRule;\n}\n\ndeclare var CSSRuleList: {\n prototype: CSSRuleList;\n new(): CSSRuleList;\n};\n\n/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */\ninterface CSSStyleDeclaration {\n alignContent: string;\n alignItems: string;\n alignSelf: string;\n alignmentBaseline: string;\n all: string;\n animation: string;\n animationDelay: string;\n animationDirection: string;\n animationDuration: string;\n animationFillMode: string;\n animationIterationCount: string;\n animationName: string;\n animationPlayState: string;\n animationTimingFunction: string;\n appearance: string;\n aspectRatio: string;\n backfaceVisibility: string;\n background: string;\n backgroundAttachment: string;\n backgroundBlendMode: string;\n backgroundClip: string;\n backgroundColor: string;\n backgroundImage: string;\n backgroundOrigin: string;\n backgroundPosition: string;\n backgroundPositionX: string;\n backgroundPositionY: string;\n backgroundRepeat: string;\n backgroundSize: string;\n baselineShift: string;\n blockSize: string;\n border: string;\n borderBlock: string;\n borderBlockColor: string;\n borderBlockEnd: string;\n borderBlockEndColor: string;\n borderBlockEndStyle: string;\n borderBlockEndWidth: string;\n borderBlockStart: string;\n borderBlockStartColor: string;\n borderBlockStartStyle: string;\n borderBlockStartWidth: string;\n borderBlockStyle: string;\n borderBlockWidth: string;\n borderBottom: string;\n borderBottomColor: string;\n borderBottomLeftRadius: string;\n borderBottomRightRadius: string;\n borderBottomStyle: string;\n borderBottomWidth: string;\n borderCollapse: string;\n borderColor: string;\n borderEndEndRadius: string;\n borderEndStartRadius: string;\n borderImage: string;\n borderImageOutset: string;\n borderImageRepeat: string;\n borderImageSlice: string;\n borderImageSource: string;\n borderImageWidth: string;\n borderInline: string;\n borderInlineColor: string;\n borderInlineEnd: string;\n borderInlineEndColor: string;\n borderInlineEndStyle: string;\n borderInlineEndWidth: string;\n borderInlineStart: string;\n borderInlineStartColor: string;\n borderInlineStartStyle: string;\n borderInlineStartWidth: string;\n borderInlineStyle: string;\n borderInlineWidth: string;\n borderLeft: string;\n borderLeftColor: string;\n borderLeftStyle: string;\n borderLeftWidth: string;\n borderRadius: string;\n borderRight: string;\n borderRightColor: string;\n borderRightStyle: string;\n borderRightWidth: string;\n borderSpacing: string;\n borderStartEndRadius: string;\n borderStartStartRadius: string;\n borderStyle: string;\n borderTop: string;\n borderTopColor: string;\n borderTopLeftRadius: string;\n borderTopRightRadius: string;\n borderTopStyle: string;\n borderTopWidth: string;\n borderWidth: string;\n bottom: string;\n boxShadow: string;\n boxSizing: string;\n breakAfter: string;\n breakBefore: string;\n breakInside: string;\n captionSide: string;\n caretColor: string;\n clear: string;\n /** @deprecated */\n clip: string;\n clipPath: string;\n clipRule: string;\n color: string;\n colorInterpolation: string;\n colorInterpolationFilters: string;\n colorScheme: string;\n columnCount: string;\n columnFill: string;\n columnGap: string;\n columnRule: string;\n columnRuleColor: string;\n columnRuleStyle: string;\n columnRuleWidth: string;\n columnSpan: string;\n columnWidth: string;\n columns: string;\n contain: string;\n content: string;\n counterIncrement: string;\n counterReset: string;\n counterSet: string;\n cssFloat: string;\n cssText: string;\n cursor: string;\n direction: string;\n display: string;\n dominantBaseline: string;\n emptyCells: string;\n fill: string;\n fillOpacity: string;\n fillRule: string;\n filter: string;\n flex: string;\n flexBasis: string;\n flexDirection: string;\n flexFlow: string;\n flexGrow: string;\n flexShrink: string;\n flexWrap: string;\n float: string;\n floodColor: string;\n floodOpacity: string;\n font: string;\n fontFamily: string;\n fontFeatureSettings: string;\n fontKerning: string;\n fontOpticalSizing: string;\n fontSize: string;\n fontSizeAdjust: string;\n fontStretch: string;\n fontStyle: string;\n fontSynthesis: string;\n fontVariant: string;\n /** @deprecated */\n fontVariantAlternates: string;\n fontVariantCaps: string;\n fontVariantEastAsian: string;\n fontVariantLigatures: string;\n fontVariantNumeric: string;\n fontVariantPosition: string;\n fontVariationSettings: string;\n fontWeight: string;\n gap: string;\n grid: string;\n gridArea: string;\n gridAutoColumns: string;\n gridAutoFlow: string;\n gridAutoRows: string;\n gridColumn: string;\n gridColumnEnd: string;\n gridColumnGap: string;\n gridColumnStart: string;\n gridGap: string;\n gridRow: string;\n gridRowEnd: string;\n gridRowGap: string;\n gridRowStart: string;\n gridTemplate: string;\n gridTemplateAreas: string;\n gridTemplateColumns: string;\n gridTemplateRows: string;\n height: string;\n hyphens: string;\n /** @deprecated */\n imageOrientation: string;\n imageRendering: string;\n inlineSize: string;\n inset: string;\n insetBlock: string;\n insetBlockEnd: string;\n insetBlockStart: string;\n insetInline: string;\n insetInlineEnd: string;\n insetInlineStart: string;\n isolation: string;\n justifyContent: string;\n justifyItems: string;\n justifySelf: string;\n left: string;\n readonly length: number;\n letterSpacing: string;\n lightingColor: string;\n lineBreak: string;\n lineHeight: string;\n listStyle: string;\n listStyleImage: string;\n listStylePosition: string;\n listStyleType: string;\n margin: string;\n marginBlock: string;\n marginBlockEnd: string;\n marginBlockStart: string;\n marginBottom: string;\n marginInline: string;\n marginInlineEnd: string;\n marginInlineStart: string;\n marginLeft: string;\n marginRight: string;\n marginTop: string;\n marker: string;\n markerEnd: string;\n markerMid: string;\n markerStart: string;\n mask: string;\n maskType: string;\n maxBlockSize: string;\n maxHeight: string;\n maxInlineSize: string;\n maxWidth: string;\n minBlockSize: string;\n minHeight: string;\n minInlineSize: string;\n minWidth: string;\n mixBlendMode: string;\n objectFit: string;\n objectPosition: string;\n offset: string;\n offsetAnchor: string;\n offsetDistance: string;\n offsetPath: string;\n offsetRotate: string;\n opacity: string;\n order: string;\n orphans: string;\n outline: string;\n outlineColor: string;\n outlineOffset: string;\n outlineStyle: string;\n outlineWidth: string;\n overflow: string;\n overflowAnchor: string;\n overflowWrap: string;\n overflowX: string;\n overflowY: string;\n overscrollBehavior: string;\n overscrollBehaviorBlock: string;\n overscrollBehaviorInline: string;\n overscrollBehaviorX: string;\n overscrollBehaviorY: string;\n padding: string;\n paddingBlock: string;\n paddingBlockEnd: string;\n paddingBlockStart: string;\n paddingBottom: string;\n paddingInline: string;\n paddingInlineEnd: string;\n paddingInlineStart: string;\n paddingLeft: string;\n paddingRight: string;\n paddingTop: string;\n pageBreakAfter: string;\n pageBreakBefore: string;\n pageBreakInside: string;\n paintOrder: string;\n readonly parentRule: CSSRule | null;\n perspective: string;\n perspectiveOrigin: string;\n placeContent: string;\n placeItems: string;\n placeSelf: string;\n pointerEvents: string;\n position: string;\n quotes: string;\n resize: string;\n right: string;\n rotate: string;\n rowGap: string;\n rubyPosition: string;\n scale: string;\n scrollBehavior: string;\n scrollMargin: string;\n scrollMarginBlock: string;\n scrollMarginBlockEnd: string;\n scrollMarginBlockStart: string;\n scrollMarginBottom: string;\n scrollMarginInline: string;\n scrollMarginInlineEnd: string;\n scrollMarginInlineStart: string;\n scrollMarginLeft: string;\n scrollMarginRight: string;\n scrollMarginTop: string;\n scrollPadding: string;\n scrollPaddingBlock: string;\n scrollPaddingBlockEnd: string;\n scrollPaddingBlockStart: string;\n scrollPaddingBottom: string;\n scrollPaddingInline: string;\n scrollPaddingInlineEnd: string;\n scrollPaddingInlineStart: string;\n scrollPaddingLeft: string;\n scrollPaddingRight: string;\n scrollPaddingTop: string;\n scrollSnapAlign: string;\n scrollSnapStop: string;\n scrollSnapType: string;\n shapeImageThreshold: string;\n shapeMargin: string;\n shapeOutside: string;\n shapeRendering: string;\n stopColor: string;\n stopOpacity: string;\n stroke: string;\n strokeDasharray: string;\n strokeDashoffset: string;\n strokeLinecap: string;\n strokeLinejoin: string;\n strokeMiterlimit: string;\n strokeOpacity: string;\n strokeWidth: string;\n tabSize: string;\n tableLayout: string;\n textAlign: string;\n textAlignLast: string;\n textAnchor: string;\n textCombineUpright: string;\n textDecoration: string;\n textDecorationColor: string;\n textDecorationLine: string;\n textDecorationSkipInk: string;\n textDecorationStyle: string;\n textDecorationThickness: string;\n textEmphasis: string;\n textEmphasisColor: string;\n textEmphasisPosition: string;\n textEmphasisStyle: string;\n textIndent: string;\n textOrientation: string;\n textOverflow: string;\n textRendering: string;\n textShadow: string;\n textTransform: string;\n textUnderlineOffset: string;\n textUnderlinePosition: string;\n top: string;\n touchAction: string;\n transform: string;\n transformBox: string;\n transformOrigin: string;\n transformStyle: string;\n transition: string;\n transitionDelay: string;\n transitionDuration: string;\n transitionProperty: string;\n transitionTimingFunction: string;\n translate: string;\n unicodeBidi: string;\n userSelect: string;\n verticalAlign: string;\n visibility: string;\n /** @deprecated This is a legacy alias of `alignContent`. */\n webkitAlignContent: string;\n /** @deprecated This is a legacy alias of `alignItems`. */\n webkitAlignItems: string;\n /** @deprecated This is a legacy alias of `alignSelf`. */\n webkitAlignSelf: string;\n /** @deprecated This is a legacy alias of `animation`. */\n webkitAnimation: string;\n /** @deprecated This is a legacy alias of `animationDelay`. */\n webkitAnimationDelay: string;\n /** @deprecated This is a legacy alias of `animationDirection`. */\n webkitAnimationDirection: string;\n /** @deprecated This is a legacy alias of `animationDuration`. */\n webkitAnimationDuration: string;\n /** @deprecated This is a legacy alias of `animationFillMode`. */\n webkitAnimationFillMode: string;\n /** @deprecated This is a legacy alias of `animationIterationCount`. */\n webkitAnimationIterationCount: string;\n /** @deprecated This is a legacy alias of `animationName`. */\n webkitAnimationName: string;\n /** @deprecated This is a legacy alias of `animationPlayState`. */\n webkitAnimationPlayState: string;\n /** @deprecated This is a legacy alias of `animationTimingFunction`. */\n webkitAnimationTimingFunction: string;\n /** @deprecated This is a legacy alias of `appearance`. */\n webkitAppearance: string;\n /** @deprecated This is a legacy alias of `backfaceVisibility`. */\n webkitBackfaceVisibility: string;\n /** @deprecated This is a legacy alias of `backgroundClip`. */\n webkitBackgroundClip: string;\n /** @deprecated This is a legacy alias of `backgroundOrigin`. */\n webkitBackgroundOrigin: string;\n /** @deprecated This is a legacy alias of `backgroundSize`. */\n webkitBackgroundSize: string;\n /** @deprecated This is a legacy alias of `borderBottomLeftRadius`. */\n webkitBorderBottomLeftRadius: string;\n /** @deprecated This is a legacy alias of `borderBottomRightRadius`. */\n webkitBorderBottomRightRadius: string;\n /** @deprecated This is a legacy alias of `borderRadius`. */\n webkitBorderRadius: string;\n /** @deprecated This is a legacy alias of `borderTopLeftRadius`. */\n webkitBorderTopLeftRadius: string;\n /** @deprecated This is a legacy alias of `borderTopRightRadius`. */\n webkitBorderTopRightRadius: string;\n /** @deprecated */\n webkitBoxAlign: string;\n /** @deprecated */\n webkitBoxFlex: string;\n /** @deprecated */\n webkitBoxOrdinalGroup: string;\n /** @deprecated */\n webkitBoxOrient: string;\n /** @deprecated */\n webkitBoxPack: string;\n /** @deprecated This is a legacy alias of `boxShadow`. */\n webkitBoxShadow: string;\n /** @deprecated This is a legacy alias of `boxSizing`. */\n webkitBoxSizing: string;\n /** @deprecated This is a legacy alias of `filter`. */\n webkitFilter: string;\n /** @deprecated This is a legacy alias of `flex`. */\n webkitFlex: string;\n /** @deprecated This is a legacy alias of `flexBasis`. */\n webkitFlexBasis: string;\n /** @deprecated This is a legacy alias of `flexDirection`. */\n webkitFlexDirection: string;\n /** @deprecated This is a legacy alias of `flexFlow`. */\n webkitFlexFlow: string;\n /** @deprecated This is a legacy alias of `flexGrow`. */\n webkitFlexGrow: string;\n /** @deprecated This is a legacy alias of `flexShrink`. */\n webkitFlexShrink: string;\n /** @deprecated This is a legacy alias of `flexWrap`. */\n webkitFlexWrap: string;\n /** @deprecated This is a legacy alias of `justifyContent`. */\n webkitJustifyContent: string;\n webkitLineClamp: string;\n /** @deprecated This is a legacy alias of `mask`. */\n webkitMask: string;\n /** @deprecated This is a legacy alias of `maskBorder`. */\n webkitMaskBoxImage: string;\n /** @deprecated This is a legacy alias of `maskBorderOutset`. */\n webkitMaskBoxImageOutset: string;\n /** @deprecated This is a legacy alias of `maskBorderRepeat`. */\n webkitMaskBoxImageRepeat: string;\n /** @deprecated This is a legacy alias of `maskBorderSlice`. */\n webkitMaskBoxImageSlice: string;\n /** @deprecated This is a legacy alias of `maskBorderSource`. */\n webkitMaskBoxImageSource: string;\n /** @deprecated This is a legacy alias of `maskBorderWidth`. */\n webkitMaskBoxImageWidth: string;\n /** @deprecated This is a legacy alias of `maskClip`. */\n webkitMaskClip: string;\n webkitMaskComposite: string;\n /** @deprecated This is a legacy alias of `maskImage`. */\n webkitMaskImage: string;\n /** @deprecated This is a legacy alias of `maskOrigin`. */\n webkitMaskOrigin: string;\n /** @deprecated This is a legacy alias of `maskPosition`. */\n webkitMaskPosition: string;\n /** @deprecated This is a legacy alias of `maskRepeat`. */\n webkitMaskRepeat: string;\n /** @deprecated This is a legacy alias of `maskSize`. */\n webkitMaskSize: string;\n /** @deprecated This is a legacy alias of `order`. */\n webkitOrder: string;\n /** @deprecated This is a legacy alias of `perspective`. */\n webkitPerspective: string;\n /** @deprecated This is a legacy alias of `perspectiveOrigin`. */\n webkitPerspectiveOrigin: string;\n webkitTextFillColor: string;\n webkitTextStroke: string;\n webkitTextStrokeColor: string;\n webkitTextStrokeWidth: string;\n /** @deprecated This is a legacy alias of `transform`. */\n webkitTransform: string;\n /** @deprecated This is a legacy alias of `transformOrigin`. */\n webkitTransformOrigin: string;\n /** @deprecated This is a legacy alias of `transformStyle`. */\n webkitTransformStyle: string;\n /** @deprecated This is a legacy alias of `transition`. */\n webkitTransition: string;\n /** @deprecated This is a legacy alias of `transitionDelay`. */\n webkitTransitionDelay: string;\n /** @deprecated This is a legacy alias of `transitionDuration`. */\n webkitTransitionDuration: string;\n /** @deprecated This is a legacy alias of `transitionProperty`. */\n webkitTransitionProperty: string;\n /** @deprecated This is a legacy alias of `transitionTimingFunction`. */\n webkitTransitionTimingFunction: string;\n /** @deprecated This is a legacy alias of `userSelect`. */\n webkitUserSelect: string;\n whiteSpace: string;\n widows: string;\n width: string;\n willChange: string;\n wordBreak: string;\n wordSpacing: string;\n /** @deprecated */\n wordWrap: string;\n writingMode: string;\n zIndex: string;\n getPropertyPriority(property: string): string;\n getPropertyValue(property: string): string;\n item(index: number): string;\n removeProperty(property: string): string;\n setProperty(property: string, value: string | null, priority?: string): void;\n [index: number]: string;\n}\n\ndeclare var CSSStyleDeclaration: {\n prototype: CSSStyleDeclaration;\n new(): CSSStyleDeclaration;\n};\n\n/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */\ninterface CSSStyleRule extends CSSRule {\n selectorText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSStyleRule: {\n prototype: CSSStyleRule;\n new(): CSSStyleRule;\n};\n\n/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */\ninterface CSSStyleSheet extends StyleSheet {\n readonly cssRules: CSSRuleList;\n readonly ownerRule: CSSRule | null;\n /** @deprecated */\n readonly rules: CSSRuleList;\n /** @deprecated */\n addRule(selector?: string, style?: string, index?: number): number;\n deleteRule(index: number): void;\n insertRule(rule: string, index?: number): number;\n /** @deprecated */\n removeRule(index?: number): void;\n}\n\ndeclare var CSSStyleSheet: {\n prototype: CSSStyleSheet;\n new(options?: CSSStyleSheetInit): CSSStyleSheet;\n};\n\n/** 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). */\ninterface CSSSupportsRule extends CSSConditionRule {\n}\n\ndeclare var CSSSupportsRule: {\n prototype: CSSSupportsRule;\n new(): CSSSupportsRule;\n};\n\ninterface CSSTransition extends Animation {\n readonly transitionProperty: string;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSTransition: {\n prototype: CSSTransition;\n new(): CSSTransition;\n};\n\n/** 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. */\ninterface Cache {\n add(request: RequestInfo): Promise<void>;\n addAll(requests: RequestInfo[]): Promise<void>;\n delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;\n keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;\n matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n put(request: RequestInfo, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n prototype: Cache;\n new(): Cache;\n};\n\n/** The storage for Cache objects. */\ninterface CacheStorage {\n delete(cacheName: string): Promise<boolean>;\n has(cacheName: string): Promise<boolean>;\n keys(): Promise<string[]>;\n match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\ninterface CanvasCompositing {\n globalAlpha: number;\n globalCompositeOperation: string;\n}\n\ninterface CanvasDrawImage {\n drawImage(image: CanvasImageSource, dx: number, dy: number): void;\n drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;\n drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;\n}\n\ninterface CanvasDrawPath {\n beginPath(): void;\n clip(fillRule?: CanvasFillRule): void;\n clip(path: Path2D, fillRule?: CanvasFillRule): void;\n fill(fillRule?: CanvasFillRule): void;\n fill(path: Path2D, fillRule?: CanvasFillRule): void;\n isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInStroke(x: number, y: number): boolean;\n isPointInStroke(path: Path2D, x: number, y: number): boolean;\n stroke(): void;\n stroke(path: Path2D): void;\n}\n\ninterface CanvasFillStrokeStyles {\n fillStyle: string | CanvasGradient | CanvasPattern;\n strokeStyle: string | CanvasGradient | CanvasPattern;\n createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;\n createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n}\n\ninterface CanvasFilters {\n filter: string;\n}\n\n/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */\ninterface CanvasGradient {\n /**\n * 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.\n *\n * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.\n */\n addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n prototype: CanvasGradient;\n new(): CanvasGradient;\n};\n\ninterface CanvasImageData {\n createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n createImageData(imagedata: ImageData): ImageData;\n getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n putImageData(imagedata: ImageData, dx: number, dy: number): void;\n putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;\n}\n\ninterface CanvasImageSmoothing {\n imageSmoothingEnabled: boolean;\n imageSmoothingQuality: ImageSmoothingQuality;\n}\n\ninterface CanvasPath {\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n closePath(): void;\n ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n lineTo(x: number, y: number): void;\n moveTo(x: number, y: number): void;\n quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n rect(x: number, y: number, w: number, h: number): void;\n}\n\ninterface CanvasPathDrawingStyles {\n lineCap: CanvasLineCap;\n lineDashOffset: number;\n lineJoin: CanvasLineJoin;\n lineWidth: number;\n miterLimit: number;\n getLineDash(): number[];\n setLineDash(segments: number[]): void;\n}\n\n/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */\ninterface CanvasPattern {\n /**\n * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.\n */\n setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n prototype: CanvasPattern;\n new(): CanvasPattern;\n};\n\ninterface CanvasRect {\n clearRect(x: number, y: number, w: number, h: number): void;\n fillRect(x: number, y: number, w: number, h: number): void;\n strokeRect(x: number, y: number, w: number, h: number): void;\n}\n\n/** 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. */\ninterface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {\n readonly canvas: HTMLCanvasElement;\n getContextAttributes(): CanvasRenderingContext2DSettings;\n}\n\ndeclare var CanvasRenderingContext2D: {\n prototype: CanvasRenderingContext2D;\n new(): CanvasRenderingContext2D;\n};\n\ninterface CanvasShadowStyles {\n shadowBlur: number;\n shadowColor: string;\n shadowOffsetX: number;\n shadowOffsetY: number;\n}\n\ninterface CanvasState {\n restore(): void;\n save(): void;\n}\n\ninterface CanvasText {\n fillText(text: string, x: number, y: number, maxWidth?: number): void;\n measureText(text: string): TextMetrics;\n strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n}\n\ninterface CanvasTextDrawingStyles {\n direction: CanvasDirection;\n font: string;\n textAlign: CanvasTextAlign;\n textBaseline: CanvasTextBaseline;\n}\n\ninterface CanvasTransform {\n getTransform(): DOMMatrix;\n resetTransform(): void;\n rotate(angle: number): void;\n scale(x: number, y: number): void;\n setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n setTransform(transform?: DOMMatrix2DInit): void;\n transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n translate(x: number, y: number): void;\n}\n\ninterface CanvasUserInterface {\n drawFocusIfNeeded(element: Element): void;\n drawFocusIfNeeded(path: Path2D, element: Element): void;\n}\n\n/** 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. */\ninterface ChannelMergerNode extends AudioNode {\n}\n\ndeclare var ChannelMergerNode: {\n prototype: ChannelMergerNode;\n new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;\n};\n\n/** 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. */\ninterface ChannelSplitterNode extends AudioNode {\n}\n\ndeclare var ChannelSplitterNode: {\n prototype: ChannelSplitterNode;\n new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;\n};\n\n/** 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. */\ninterface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {\n data: string;\n readonly length: number;\n readonly ownerDocument: Document;\n appendData(data: string): void;\n deleteData(offset: number, count: number): void;\n insertData(offset: number, data: string): void;\n replaceData(offset: number, count: number, data: string): void;\n substringData(offset: number, count: number): string;\n}\n\ndeclare var CharacterData: {\n prototype: CharacterData;\n new(): CharacterData;\n};\n\ninterface ChildNode extends Node {\n /**\n * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n after(...nodes: (Node | string)[]): void;\n /**\n * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n before(...nodes: (Node | string)[]): void;\n /**\n * Removes node.\n */\n remove(): void;\n /**\n * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n replaceWith(...nodes: (Node | string)[]): void;\n}\n\n/** @deprecated */\ninterface ClientRect extends DOMRect {\n}\n\ninterface Clipboard extends EventTarget {\n read(): Promise<ClipboardItems>;\n readText(): Promise<string>;\n write(data: ClipboardItems): Promise<void>;\n writeText(data: string): Promise<void>;\n}\n\ndeclare var Clipboard: {\n prototype: Clipboard;\n new(): Clipboard;\n};\n\n/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */\ninterface ClipboardEvent extends Event {\n readonly clipboardData: DataTransfer | null;\n}\n\ndeclare var ClipboardEvent: {\n prototype: ClipboardEvent;\n new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\n};\n\ninterface ClipboardItem {\n readonly types: ReadonlyArray<string>;\n getType(type: string): Promise<Blob>;\n}\n\ndeclare var ClipboardItem: {\n prototype: ClipboardItem;\n new(items: Record<string, ClipboardItemData>, options?: ClipboardItemOptions): ClipboardItem;\n};\n\n/** 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. */\ninterface CloseEvent extends Event {\n /**\n * Returns the WebSocket connection close code provided by the server.\n */\n readonly code: number;\n /**\n * Returns the WebSocket connection close reason provided by the server.\n */\n readonly reason: string;\n /**\n * Returns true if the connection closed cleanly; false otherwise.\n */\n readonly wasClean: boolean;\n}\n\ndeclare var CloseEvent: {\n prototype: CloseEvent;\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\n/** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */\ninterface Comment extends CharacterData {\n}\n\ndeclare var Comment: {\n prototype: Comment;\n new(data?: string): Comment;\n};\n\n/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */\ninterface CompositionEvent extends UIEvent {\n readonly data: string;\n /** @deprecated */\n initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;\n}\n\ndeclare var CompositionEvent: {\n prototype: CompositionEvent;\n new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;\n};\n\ninterface ConstantSourceNode extends AudioScheduledSourceNode {\n readonly offset: AudioParam;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ConstantSourceNode: {\n prototype: ConstantSourceNode;\n new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;\n};\n\n/** 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. */\ninterface ConvolverNode extends AudioNode {\n buffer: AudioBuffer | null;\n normalize: boolean;\n}\n\ndeclare var ConvolverNode: {\n prototype: ConvolverNode;\n new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;\n};\n\n/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface CountQueuingStrategy extends QueuingStrategy {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize;\n}\n\ndeclare var CountQueuingStrategy: {\n prototype: CountQueuingStrategy;\n new(init: QueuingStrategyInit): CountQueuingStrategy;\n};\n\ninterface Credential {\n readonly id: string;\n readonly type: string;\n}\n\ndeclare var Credential: {\n prototype: Credential;\n new(): Credential;\n};\n\ninterface CredentialsContainer {\n create(options?: CredentialCreationOptions): Promise<Credential | null>;\n get(options?: CredentialRequestOptions): Promise<Credential | null>;\n preventSilentAccess(): Promise<void>;\n store(credential: Credential): Promise<Credential>;\n}\n\ndeclare var CredentialsContainer: {\n prototype: CredentialsContainer;\n new(): CredentialsContainer;\n};\n\n/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */\ninterface Crypto {\n readonly subtle: SubtleCrypto;\n getRandomValues<T extends ArrayBufferView | null>(array: T): T;\n}\n\ndeclare var Crypto: {\n prototype: Crypto;\n new(): Crypto;\n};\n\n/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */\ninterface CryptoKey {\n readonly algorithm: KeyAlgorithm;\n readonly extractable: boolean;\n readonly type: KeyType;\n readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\ninterface CustomElementRegistry {\n define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;\n get(name: string): CustomElementConstructor | undefined;\n upgrade(root: Node): void;\n whenDefined(name: string): Promise<CustomElementConstructor>;\n}\n\ndeclare var CustomElementRegistry: {\n prototype: CustomElementRegistry;\n new(): CustomElementRegistry;\n};\n\ninterface CustomEvent<T = any> extends Event {\n /**\n * Returns any custom data event was created with. Typically used for synthetic events.\n */\n readonly detail: T;\n /** @deprecated */\n initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\n/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */\ninterface DOMException {\n readonly code: number;\n readonly message: string;\n readonly name: string;\n readonly ABORT_ERR: number;\n readonly DATA_CLONE_ERR: number;\n readonly DOMSTRING_SIZE_ERR: number;\n readonly HIERARCHY_REQUEST_ERR: number;\n readonly INDEX_SIZE_ERR: number;\n readonly INUSE_ATTRIBUTE_ERR: number;\n readonly INVALID_ACCESS_ERR: number;\n readonly INVALID_CHARACTER_ERR: number;\n readonly INVALID_MODIFICATION_ERR: number;\n readonly INVALID_NODE_TYPE_ERR: number;\n readonly INVALID_STATE_ERR: number;\n readonly NAMESPACE_ERR: number;\n readonly NETWORK_ERR: number;\n readonly NOT_FOUND_ERR: number;\n readonly NOT_SUPPORTED_ERR: number;\n readonly NO_DATA_ALLOWED_ERR: number;\n readonly NO_MODIFICATION_ALLOWED_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SYNTAX_ERR: number;\n readonly TIMEOUT_ERR: number;\n readonly TYPE_MISMATCH_ERR: number;\n readonly URL_MISMATCH_ERR: number;\n readonly VALIDATION_ERR: number;\n readonly WRONG_DOCUMENT_ERR: number;\n}\n\ndeclare var DOMException: {\n prototype: DOMException;\n new(message?: string, name?: string): DOMException;\n readonly ABORT_ERR: number;\n readonly DATA_CLONE_ERR: number;\n readonly DOMSTRING_SIZE_ERR: number;\n readonly HIERARCHY_REQUEST_ERR: number;\n readonly INDEX_SIZE_ERR: number;\n readonly INUSE_ATTRIBUTE_ERR: number;\n readonly INVALID_ACCESS_ERR: number;\n readonly INVALID_CHARACTER_ERR: number;\n readonly INVALID_MODIFICATION_ERR: number;\n readonly INVALID_NODE_TYPE_ERR: number;\n readonly INVALID_STATE_ERR: number;\n readonly NAMESPACE_ERR: number;\n readonly NETWORK_ERR: number;\n readonly NOT_FOUND_ERR: number;\n readonly NOT_SUPPORTED_ERR: number;\n readonly NO_DATA_ALLOWED_ERR: number;\n readonly NO_MODIFICATION_ALLOWED_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SYNTAX_ERR: number;\n readonly TIMEOUT_ERR: number;\n readonly TYPE_MISMATCH_ERR: number;\n readonly URL_MISMATCH_ERR: number;\n readonly VALIDATION_ERR: number;\n readonly WRONG_DOCUMENT_ERR: number;\n};\n\n/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */\ninterface DOMImplementation {\n createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;\n createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;\n createHTMLDocument(title?: string): Document;\n /** @deprecated */\n hasFeature(...args: any[]): true;\n}\n\ndeclare var DOMImplementation: {\n prototype: DOMImplementation;\n new(): DOMImplementation;\n};\n\ninterface DOMMatrix extends DOMMatrixReadOnly {\n a: number;\n b: number;\n c: number;\n d: number;\n e: number;\n f: number;\n m11: number;\n m12: number;\n m13: number;\n m14: number;\n m21: number;\n m22: number;\n m23: number;\n m24: number;\n m31: number;\n m32: number;\n m33: number;\n m34: number;\n m41: number;\n m42: number;\n m43: number;\n m44: number;\n invertSelf(): DOMMatrix;\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n setMatrixValue(transformList: string): DOMMatrix;\n skewXSelf(sx?: number): DOMMatrix;\n skewYSelf(sy?: number): DOMMatrix;\n translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n prototype: DOMMatrix;\n new(init?: string | number[]): DOMMatrix;\n fromFloat32Array(array32: Float32Array): DOMMatrix;\n fromFloat64Array(array64: Float64Array): DOMMatrix;\n fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\ntype SVGMatrix = DOMMatrix;\ndeclare var SVGMatrix: typeof DOMMatrix;\n\ntype WebKitCSSMatrix = DOMMatrix;\ndeclare var WebKitCSSMatrix: typeof DOMMatrix;\n\ninterface DOMMatrixReadOnly {\n readonly a: number;\n readonly b: number;\n readonly c: number;\n readonly d: number;\n readonly e: number;\n readonly f: number;\n readonly is2D: boolean;\n readonly isIdentity: boolean;\n readonly m11: number;\n readonly m12: number;\n readonly m13: number;\n readonly m14: number;\n readonly m21: number;\n readonly m22: number;\n readonly m23: number;\n readonly m24: number;\n readonly m31: number;\n readonly m32: number;\n readonly m33: number;\n readonly m34: number;\n readonly m41: number;\n readonly m42: number;\n readonly m43: number;\n readonly m44: number;\n flipX(): DOMMatrix;\n flipY(): DOMMatrix;\n inverse(): DOMMatrix;\n multiply(other?: DOMMatrixInit): DOMMatrix;\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVector(x?: number, y?: number): DOMMatrix;\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** @deprecated */\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n skewX(sx?: number): DOMMatrix;\n skewY(sy?: number): DOMMatrix;\n toFloat32Array(): Float32Array;\n toFloat64Array(): Float64Array;\n toJSON(): any;\n transformPoint(point?: DOMPointInit): DOMPoint;\n translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n toString(): string;\n}\n\ndeclare var DOMMatrixReadOnly: {\n prototype: DOMMatrixReadOnly;\n new(init?: string | number[]): DOMMatrixReadOnly;\n fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\n fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n toString(): string;\n};\n\n/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */\ninterface DOMParser {\n /**\n * 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).\n *\n * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.\n *\n * Note that script elements are not evaluated during parsing, and the resulting document\'s encoding will always be UTF-8.\n *\n * Values other than the above for type will cause a TypeError exception to be thrown.\n */\n parseFromString(string: string, type: DOMParserSupportedType): Document;\n}\n\ndeclare var DOMParser: {\n prototype: DOMParser;\n new(): DOMParser;\n};\n\ninterface DOMPoint extends DOMPointReadOnly {\n w: number;\n x: number;\n y: number;\n z: number;\n}\n\ndeclare var DOMPoint: {\n prototype: DOMPoint;\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\ntype SVGPoint = DOMPoint;\ndeclare var SVGPoint: typeof DOMPoint;\n\ninterface DOMPointReadOnly {\n readonly w: number;\n readonly x: number;\n readonly y: number;\n readonly z: number;\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n prototype: DOMPointReadOnly;\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\ninterface DOMQuad {\n readonly p1: DOMPoint;\n readonly p2: DOMPoint;\n readonly p3: DOMPoint;\n readonly p4: DOMPoint;\n getBounds(): DOMRect;\n toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n prototype: DOMQuad;\n new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n fromQuad(other?: DOMQuadInit): DOMQuad;\n fromRect(other?: DOMRectInit): DOMQuad;\n};\n\ninterface DOMRect extends DOMRectReadOnly {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\ndeclare var DOMRect: {\n prototype: DOMRect;\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n fromRect(other?: DOMRectInit): DOMRect;\n};\n\ntype SVGRect = DOMRect;\ndeclare var SVGRect: typeof DOMRect;\n\ninterface DOMRectList {\n readonly length: number;\n item(index: number): DOMRect | null;\n [index: number]: DOMRect;\n}\n\ndeclare var DOMRectList: {\n prototype: DOMRectList;\n new(): DOMRectList;\n};\n\ninterface DOMRectReadOnly {\n readonly bottom: number;\n readonly height: number;\n readonly left: number;\n readonly right: number;\n readonly top: number;\n readonly width: number;\n readonly x: number;\n readonly y: number;\n toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/** A type returned by some APIs which contains a list of DOMString (strings). */\ninterface DOMStringList {\n /**\n * Returns the number of strings in strings.\n */\n readonly length: number;\n /**\n * Returns true if strings contains string, and false otherwise.\n */\n contains(string: string): boolean;\n /**\n * Returns the string with index index from strings.\n */\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n prototype: DOMStringList;\n new(): DOMStringList;\n};\n\n/** Used by the dataset HTML attribute to represent data for custom attributes added to elements. */\ninterface DOMStringMap {\n [name: string]: string | undefined;\n}\n\ndeclare var DOMStringMap: {\n prototype: DOMStringMap;\n new(): DOMStringMap;\n};\n\n/** 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. */\ninterface DOMTokenList {\n /**\n * Returns the number of tokens.\n */\n readonly length: number;\n /**\n * Returns the associated set as string.\n *\n * Can be set, to change the associated attribute.\n */\n value: string;\n toString(): string;\n /**\n * Adds all arguments passed, except those already present.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n */\n add(...tokens: string[]): void;\n /**\n * Returns true if token is present, and false otherwise.\n */\n contains(token: string): boolean;\n /**\n * Returns the token with index index.\n */\n item(index: number): string | null;\n /**\n * Removes arguments passed, if they are present.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n */\n remove(...tokens: string[]): void;\n /**\n * Replaces token with newToken.\n *\n * Returns true if token was replaced with newToken, and false otherwise.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n */\n replace(token: string, newToken: string): boolean;\n /**\n * Returns true if token is in the associated attribute\'s supported tokens. Returns false otherwise.\n *\n * Throws a TypeError if the associated attribute has no supported tokens defined.\n */\n supports(token: string): boolean;\n /**\n * 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()).\n *\n * Returns true if token is now present, and false otherwise.\n *\n * Throws a "SyntaxError" DOMException if token is empty.\n *\n * Throws an "InvalidCharacterError" DOMException if token contains any spaces.\n */\n toggle(token: string, force?: boolean): boolean;\n forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;\n [index: number]: string;\n}\n\ndeclare var DOMTokenList: {\n prototype: DOMTokenList;\n new(): DOMTokenList;\n};\n\n/** 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. */\ninterface DataTransfer {\n /**\n * 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.\n *\n * Can be set, to change the selected operation.\n *\n * The possible values are "none", "copy", "link", and "move".\n */\n dropEffect: "none" | "copy" | "link" | "move";\n /**\n * Returns the kinds of operations that are to be allowed.\n *\n * Can be set (during the dragstart event), to change the allowed operations.\n *\n * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",\n */\n effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";\n /**\n * Returns a FileList of the files being dragged, if any.\n */\n readonly files: FileList;\n /**\n * Returns a DataTransferItemList object, with the drag data.\n */\n readonly items: DataTransferItemList;\n /**\n * 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".\n */\n readonly types: ReadonlyArray<string>;\n /**\n * Removes the data of the specified formats. Removes all data if the argument is omitted.\n */\n clearData(format?: string): void;\n /**\n * Returns the specified data. If there is no such data, returns the empty string.\n */\n getData(format: string): string;\n /**\n * Adds the specified data.\n */\n setData(format: string, data: string): void;\n /**\n * Uses the given element to update the drag feedback, replacing any previously specified feedback.\n */\n setDragImage(image: Element, x: number, y: number): void;\n}\n\ndeclare var DataTransfer: {\n prototype: DataTransfer;\n new(): DataTransfer;\n};\n\n/** 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. */\ninterface DataTransferItem {\n /**\n * Returns the drag data item kind, one of: "string", "file".\n */\n readonly kind: string;\n /**\n * Returns the drag data item type string.\n */\n readonly type: string;\n /**\n * Returns a File object, if the drag data item kind is File.\n */\n getAsFile(): File | null;\n /**\n * Invokes the callback with the string data as the argument, if the drag data item kind is text.\n */\n getAsString(callback: FunctionStringCallback | null): void;\n webkitGetAsEntry(): FileSystemEntry | null;\n}\n\ndeclare var DataTransferItem: {\n prototype: DataTransferItem;\n new(): DataTransferItem;\n};\n\n/** 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. */\ninterface DataTransferItemList {\n /**\n * Returns the number of items in the drag data store.\n */\n readonly length: number;\n /**\n * 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.\n */\n add(data: string, type: string): DataTransferItem | null;\n add(data: File): DataTransferItem | null;\n /**\n * Removes all the entries in the drag data store.\n */\n clear(): void;\n /**\n * Removes the indexth entry in the drag data store.\n */\n remove(index: number): void;\n [index: number]: DataTransferItem;\n}\n\ndeclare var DataTransferItemList: {\n prototype: DataTransferItemList;\n new(): DataTransferItemList;\n};\n\n/** 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. */\ninterface DelayNode extends AudioNode {\n readonly delayTime: AudioParam;\n}\n\ndeclare var DelayNode: {\n prototype: DelayNode;\n new(context: BaseAudioContext, options?: DelayOptions): DelayNode;\n};\n\n/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device\'s position and orientation. */\ninterface DeviceMotionEvent extends Event {\n readonly acceleration: DeviceMotionEventAcceleration | null;\n readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;\n readonly interval: number;\n readonly rotationRate: DeviceMotionEventRotationRate | null;\n}\n\ndeclare var DeviceMotionEvent: {\n prototype: DeviceMotionEvent;\n new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\n};\n\ninterface DeviceMotionEventAcceleration {\n readonly x: number | null;\n readonly y: number | null;\n readonly z: number | null;\n}\n\ninterface DeviceMotionEventRotationRate {\n readonly alpha: number | null;\n readonly beta: number | null;\n readonly gamma: number | null;\n}\n\n/** The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. */\ninterface DeviceOrientationEvent extends Event {\n readonly absolute: boolean;\n readonly alpha: number | null;\n readonly beta: number | null;\n readonly gamma: number | null;\n}\n\ndeclare var DeviceOrientationEvent: {\n prototype: DeviceOrientationEvent;\n new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;\n};\n\ninterface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {\n "fullscreenchange": Event;\n "fullscreenerror": Event;\n "pointerlockchange": Event;\n "pointerlockerror": Event;\n "readystatechange": Event;\n "visibilitychange": Event;\n}\n\n/** Any web page loaded in the browser and serves as an entry point into the web page\'s content, which is the DOM tree. */\ninterface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {\n /**\n * Sets or gets the URL for the current document.\n */\n readonly URL: string;\n /**\n * Sets or gets the color of all active links in the document.\n * @deprecated\n */\n alinkColor: string;\n /**\n * Returns a reference to the collection of elements contained by the object.\n * @deprecated\n */\n readonly all: HTMLAllCollection;\n /**\n * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.\n * @deprecated\n */\n readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;\n /**\n * Retrieves a collection of all applet objects in the document.\n * @deprecated\n */\n readonly applets: HTMLCollection;\n /**\n * Deprecated. Sets or retrieves a value that indicates the background color behind the object.\n * @deprecated\n */\n bgColor: string;\n /**\n * Specifies the beginning and end of the document body.\n */\n body: HTMLElement;\n /**\n * Returns document\'s encoding.\n */\n readonly characterSet: string;\n /**\n * Gets or sets the character set used to encode the object.\n * @deprecated This is a legacy alias of `characterSet`.\n */\n readonly charset: string;\n /**\n * Gets a value that indicates whether standards-compliant mode is switched on for the object.\n */\n readonly compatMode: string;\n /**\n * Returns document\'s content type.\n */\n readonly contentType: string;\n /**\n * 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.\n *\n * Can be set, to add a new cookie to the element\'s set of HTTP cookies.\n *\n * 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.\n */\n cookie: string;\n /**\n * 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.\n *\n * 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.\n */\n readonly currentScript: HTMLOrSVGScriptElement | null;\n /**\n * Returns the Window object of the active document.\n */\n readonly defaultView: (WindowProxy & typeof globalThis) | null;\n /**\n * Sets or gets a value that indicates whether the document can be edited.\n */\n designMode: string;\n /**\n * Sets or retrieves a value that indicates the reading order of the object.\n */\n dir: string;\n /**\n * Gets an object representing the document type declaration associated with the current document.\n */\n readonly doctype: DocumentType | null;\n /**\n * Gets a reference to the root node of the document.\n */\n readonly documentElement: HTMLElement;\n /**\n * Returns document\'s URL.\n */\n readonly documentURI: string;\n /**\n * Sets or gets the security domain of the document.\n */\n domain: string;\n /**\n * Retrieves a collection of all embed objects in the document.\n */\n readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;\n /**\n * Sets or gets the foreground (text) color of the document.\n * @deprecated\n */\n fgColor: string;\n /**\n * Retrieves a collection, in source order, of all form objects in the document.\n */\n readonly forms: HTMLCollectionOf<HTMLFormElement>;\n /** @deprecated */\n readonly fullscreen: boolean;\n /**\n * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.\n */\n readonly fullscreenEnabled: boolean;\n /**\n * Returns the head element.\n */\n readonly head: HTMLHeadElement;\n readonly hidden: boolean;\n /**\n * Retrieves a collection, in source order, of img objects in the document.\n */\n readonly images: HTMLCollectionOf<HTMLImageElement>;\n /**\n * Gets the implementation object of the current document.\n */\n readonly implementation: DOMImplementation;\n /**\n * Returns the character encoding used to create the webpage that is loaded into the document object.\n * @deprecated This is a legacy alias of `characterSet`.\n */\n readonly inputEncoding: string;\n /**\n * Gets the date that the page was last modified, if the page supplies one.\n */\n readonly lastModified: string;\n /**\n * Sets or gets the color of the document links.\n * @deprecated\n */\n linkColor: string;\n /**\n * Retrieves a collection of all a objects that specify the href property and all area objects in the document.\n */\n readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;\n /**\n * Contains information about the current URL.\n */\n get location(): Location;\n set location(href: string | Location);\n onfullscreenchange: ((this: Document, ev: Event) => any) | null;\n onfullscreenerror: ((this: Document, ev: Event) => any) | null;\n onpointerlockchange: ((this: Document, ev: Event) => any) | null;\n onpointerlockerror: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when the state of the object has changed.\n * @param ev The event\n */\n onreadystatechange: ((this: Document, ev: Event) => any) | null;\n onvisibilitychange: ((this: Document, ev: Event) => any) | null;\n readonly ownerDocument: null;\n readonly pictureInPictureEnabled: boolean;\n /**\n * Return an HTMLCollection of the embed elements in the Document.\n */\n readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;\n /**\n * Retrieves a value that indicates the current state of the object.\n */\n readonly readyState: DocumentReadyState;\n /**\n * Gets the URL of the location that referred the user to the current page.\n */\n readonly referrer: string;\n /** @deprecated */\n readonly rootElement: SVGSVGElement | null;\n /**\n * Retrieves a collection of all script objects in the document.\n */\n readonly scripts: HTMLCollectionOf<HTMLScriptElement>;\n readonly scrollingElement: Element | null;\n readonly timeline: DocumentTimeline;\n /**\n * Contains the title of the document.\n */\n title: string;\n readonly visibilityState: VisibilityState;\n /**\n * Sets or gets the color of the links that the user has visited.\n * @deprecated\n */\n vlinkColor: string;\n /**\n * Moves node from another document and returns it.\n *\n * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.\n */\n adoptNode<T extends Node>(node: T): T;\n /** @deprecated */\n captureEvents(): void;\n /** @deprecated */\n caretRangeFromPoint(x: number, y: number): Range | null;\n /** @deprecated */\n clear(): void;\n /**\n * Closes an output stream and forces the sent data to display.\n */\n close(): void;\n /**\n * Creates an attribute object with a specified name.\n * @param name String that sets the attribute object\'s name.\n */\n createAttribute(localName: string): Attr;\n createAttributeNS(namespace: string | null, qualifiedName: string): Attr;\n /**\n * Returns a CDATASection node whose data is data.\n */\n createCDATASection(data: string): CDATASection;\n /**\n * Creates a comment object with the specified data.\n * @param data Sets the comment object\'s data.\n */\n createComment(data: string): Comment;\n /**\n * Creates a new document.\n */\n createDocumentFragment(): DocumentFragment;\n /**\n * Creates an instance of the element for the specified tag.\n * @param tagName The name of an element.\n */\n createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];\n /** @deprecated */\n createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];\n createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;\n /**\n * 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.\n *\n * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.\n *\n * If one of the following conditions is true a "NamespaceError" DOMException will be thrown:\n *\n * localName does not match the QName production.\n * Namespace prefix is not null and namespace is the empty string.\n * Namespace prefix is "xml" and namespace is not the XML namespace.\n * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.\n * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".\n *\n * When supplied, options\'s is can be used to create a customized built-in element.\n */\n createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;\n createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;\n createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;\n createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;\n createEvent(eventInterface: "AnimationEvent"): AnimationEvent;\n createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;\n createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;\n createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;\n createEvent(eventInterface: "BlobEvent"): BlobEvent;\n createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;\n createEvent(eventInterface: "CloseEvent"): CloseEvent;\n createEvent(eventInterface: "CompositionEvent"): CompositionEvent;\n createEvent(eventInterface: "CustomEvent"): CustomEvent;\n createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;\n createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;\n createEvent(eventInterface: "DragEvent"): DragEvent;\n createEvent(eventInterface: "ErrorEvent"): ErrorEvent;\n createEvent(eventInterface: "FocusEvent"): FocusEvent;\n createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;\n createEvent(eventInterface: "FormDataEvent"): FormDataEvent;\n createEvent(eventInterface: "GamepadEvent"): GamepadEvent;\n createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;\n createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;\n createEvent(eventInterface: "InputEvent"): InputEvent;\n createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;\n createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;\n createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;\n createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;\n createEvent(eventInterface: "MediaRecorderErrorEvent"): MediaRecorderErrorEvent;\n createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;\n createEvent(eventInterface: "MessageEvent"): MessageEvent;\n createEvent(eventInterface: "MouseEvent"): MouseEvent;\n createEvent(eventInterface: "MouseEvents"): MouseEvent;\n createEvent(eventInterface: "MutationEvent"): MutationEvent;\n createEvent(eventInterface: "MutationEvents"): MutationEvent;\n createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;\n createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;\n createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;\n createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;\n createEvent(eventInterface: "PointerEvent"): PointerEvent;\n createEvent(eventInterface: "PopStateEvent"): PopStateEvent;\n createEvent(eventInterface: "ProgressEvent"): ProgressEvent;\n createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;\n createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;\n createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;\n createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;\n createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;\n createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;\n createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;\n createEvent(eventInterface: "StorageEvent"): StorageEvent;\n createEvent(eventInterface: "SubmitEvent"): SubmitEvent;\n createEvent(eventInterface: "TouchEvent"): TouchEvent;\n createEvent(eventInterface: "TrackEvent"): TrackEvent;\n createEvent(eventInterface: "TransitionEvent"): TransitionEvent;\n createEvent(eventInterface: "UIEvent"): UIEvent;\n createEvent(eventInterface: "UIEvents"): UIEvent;\n createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;\n createEvent(eventInterface: "WheelEvent"): WheelEvent;\n createEvent(eventInterface: string): Event;\n /**\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n * @param root The root element or node to start traversing on.\n * @param whatToShow The type of nodes or elements to appear in the node list\n * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.\n */\n createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;\n /**\n * 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.\n */\n createProcessingInstruction(target: string, data: string): ProcessingInstruction;\n /**\n * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.\n */\n createRange(): Range;\n /**\n * Creates a text string from the specified value.\n * @param data String that specifies the nodeValue property of the text node.\n */\n createTextNode(data: string): Text;\n /**\n * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.\n * @param root The root element or node to start traversing on.\n * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.\n * @param filter A custom NodeFilter function to use.\n */\n createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;\n /**\n * Returns the element for the specified x coordinate and the specified y coordinate.\n * @param x The x-offset\n * @param y The y-offset\n */\n elementFromPoint(x: number, y: number): Element | null;\n elementsFromPoint(x: number, y: number): Element[];\n /**\n * Executes a command on the current document, current selection, or the given range.\n * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.\n * @param showUI Display the user interface, defaults to false.\n * @param value Value to assign.\n * @deprecated\n */\n execCommand(commandId: string, showUI?: boolean, value?: string): boolean;\n /**\n * Stops document\'s fullscreen element from being displayed fullscreen and resolves promise when done.\n */\n exitFullscreen(): Promise<void>;\n exitPictureInPicture(): Promise<void>;\n exitPointerLock(): void;\n /**\n * Returns a reference to the first object with the specified value of the ID attribute.\n * @param elementId String that specifies the ID value.\n */\n getElementById(elementId: string): HTMLElement | null;\n /**\n * 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.\n */\n getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n /**\n * Gets a collection of objects based on the value of the NAME or ID attribute.\n * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.\n */\n getElementsByName(elementName: string): NodeListOf<HTMLElement>;\n /**\n * Retrieves a collection of objects based on the specified element name.\n * @param name Specifies the name of an element.\n */\n getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n /**\n * If namespace and localName are "*" returns a HTMLCollection of all descendant elements.\n *\n * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.\n *\n * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.\n *\n * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.\n */\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;\n /**\n * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.\n */\n getSelection(): Selection | null;\n /**\n * Gets a value indicating whether the object currently has focus.\n */\n hasFocus(): boolean;\n hasStorageAccess(): Promise<boolean>;\n /**\n * Returns a copy of node. If deep is true, the copy also includes the node\'s descendants.\n *\n * If node is a document or a shadow root, throws a "NotSupportedError" DOMException.\n */\n importNode<T extends Node>(node: T, deep?: boolean): T;\n /**\n * 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.\n * @param url Specifies a MIME type for the document.\n * @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.\n * @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.\n * @param replace Specifies whether the existing entry for the document is replaced in the history list.\n */\n open(unused1?: string, unused2?: string): Document;\n open(url: string | URL, name: string, features: string): WindowProxy | null;\n /**\n * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.\n * @param commandId Specifies a command identifier.\n * @deprecated\n */\n queryCommandEnabled(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.\n * @param commandId String that specifies a command identifier.\n */\n queryCommandIndeterm(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates the current state of the command.\n * @param commandId String that specifies a command identifier.\n * @deprecated\n */\n queryCommandState(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates whether the current command is supported on the current range.\n * @param commandId Specifies a command identifier.\n * @deprecated\n */\n queryCommandSupported(commandId: string): boolean;\n /**\n * Returns the current value of the document, range, or current selection for the given command.\n * @param commandId String that specifies a command identifier.\n */\n queryCommandValue(commandId: string): string;\n /** @deprecated */\n releaseEvents(): void;\n requestStorageAccess(): Promise<void>;\n /**\n * Writes one or more HTML expressions to a document in the specified window.\n * @param content Specifies the text and HTML tags to write.\n */\n write(...text: string[]): void;\n /**\n * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.\n * @param content The text and HTML tags to write.\n */\n writeln(...text: string[]): void;\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Document: {\n prototype: Document;\n new(): Document;\n};\n\ninterface DocumentAndElementEventHandlersEventMap {\n "copy": ClipboardEvent;\n "cut": ClipboardEvent;\n "paste": ClipboardEvent;\n}\n\ninterface DocumentAndElementEventHandlers {\n oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\n oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\n onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\n addEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** 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. */\ninterface DocumentFragment extends Node, NonElementParentNode, ParentNode {\n readonly ownerDocument: Document;\n getElementById(elementId: string): HTMLElement | null;\n}\n\ndeclare var DocumentFragment: {\n prototype: DocumentFragment;\n new(): DocumentFragment;\n};\n\ninterface DocumentOrShadowRoot {\n /**\n * 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.\n *\n * 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.\n *\n * 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.\n */\n readonly activeElement: Element | null;\n /**\n * Returns document\'s fullscreen element.\n */\n readonly fullscreenElement: Element | null;\n readonly pictureInPictureElement: Element | null;\n readonly pointerLockElement: Element | null;\n /**\n * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.\n */\n readonly styleSheets: StyleSheetList;\n getAnimations(): Animation[];\n}\n\ninterface DocumentTimeline extends AnimationTimeline {\n}\n\ndeclare var DocumentTimeline: {\n prototype: DocumentTimeline;\n new(options?: DocumentTimelineOptions): DocumentTimeline;\n};\n\n/** A Node containing a doctype. */\ninterface DocumentType extends Node, ChildNode {\n readonly name: string;\n readonly ownerDocument: Document;\n readonly publicId: string;\n readonly systemId: string;\n}\n\ndeclare var DocumentType: {\n prototype: DocumentType;\n new(): DocumentType;\n};\n\n/** 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. */\ninterface DragEvent extends MouseEvent {\n /**\n * Returns the DataTransfer object for the event.\n */\n readonly dataTransfer: DataTransfer | null;\n}\n\ndeclare var DragEvent: {\n prototype: DragEvent;\n new(type: string, eventInitDict?: DragEventInit): DragEvent;\n};\n\n/** Inherits properties from its parent, AudioNode. */\ninterface DynamicsCompressorNode extends AudioNode {\n readonly attack: AudioParam;\n readonly knee: AudioParam;\n readonly ratio: AudioParam;\n readonly reduction: number;\n readonly release: AudioParam;\n readonly threshold: AudioParam;\n}\n\ndeclare var DynamicsCompressorNode: {\n prototype: DynamicsCompressorNode;\n new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;\n};\n\ninterface EXT_blend_minmax {\n readonly MAX_EXT: GLenum;\n readonly MIN_EXT: GLenum;\n}\n\ninterface EXT_color_buffer_float {\n}\n\ninterface EXT_color_buffer_half_float {\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;\n readonly RGB16F_EXT: GLenum;\n readonly RGBA16F_EXT: GLenum;\n readonly UNSIGNED_NORMALIZED_EXT: GLenum;\n}\n\ninterface EXT_float_blend {\n}\n\n/** 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. */\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;\n readonly SRGB8_ALPHA8_EXT: GLenum;\n readonly SRGB_ALPHA_EXT: GLenum;\n readonly SRGB_EXT: GLenum;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\ninterface EXT_texture_compression_rgtc {\n readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;\n readonly COMPRESSED_RED_RGTC1_EXT: GLenum;\n readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;\n readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;\n}\n\n/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */\ninterface EXT_texture_filter_anisotropic {\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n}\n\ninterface ElementEventMap {\n "fullscreenchange": Event;\n "fullscreenerror": Event;\n}\n\n/** 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. */\ninterface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {\n readonly attributes: NamedNodeMap;\n /**\n * Allows for manipulation of element\'s class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.\n */\n readonly classList: DOMTokenList;\n /**\n * Returns the value of element\'s class content attribute. Can be set to change it.\n */\n className: string;\n readonly clientHeight: number;\n readonly clientLeft: number;\n readonly clientTop: number;\n readonly clientWidth: number;\n /**\n * Returns the value of element\'s id content attribute. Can be set to change it.\n */\n id: string;\n /**\n * Returns the local name.\n */\n readonly localName: string;\n /**\n * Returns the namespace.\n */\n readonly namespaceURI: string | null;\n onfullscreenchange: ((this: Element, ev: Event) => any) | null;\n onfullscreenerror: ((this: Element, ev: Event) => any) | null;\n outerHTML: string;\n readonly ownerDocument: Document;\n readonly part: DOMTokenList;\n /**\n * Returns the namespace prefix.\n */\n readonly prefix: string | null;\n readonly scrollHeight: number;\n scrollLeft: number;\n scrollTop: number;\n readonly scrollWidth: number;\n /**\n * Returns element\'s shadow root, if any, and if shadow root\'s mode is "open", and null otherwise.\n */\n readonly shadowRoot: ShadowRoot | null;\n /**\n * Returns the value of element\'s slot content attribute. Can be set to change it.\n */\n slot: string;\n /**\n * Returns the HTML-uppercased qualified name.\n */\n readonly tagName: string;\n /**\n * Creates a shadow root for element and returns it.\n */\n attachShadow(init: ShadowRootInit): ShadowRoot;\n /**\n * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.\n */\n closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;\n closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;\n closest<E extends Element = Element>(selectors: string): E | null;\n /**\n * Returns element\'s first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.\n */\n getAttribute(qualifiedName: string): string | null;\n /**\n * Returns element\'s attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.\n */\n getAttributeNS(namespace: string | null, localName: string): string | null;\n /**\n * Returns the qualified names of all element\'s attributes. Can contain duplicates.\n */\n getAttributeNames(): string[];\n getAttributeNode(qualifiedName: string): Attr | null;\n getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;\n getBoundingClientRect(): DOMRect;\n getClientRects(): DOMRectList;\n /**\n * 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.\n */\n getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;\n /**\n * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.\n */\n hasAttribute(qualifiedName: string): boolean;\n /**\n * Returns true if element has an attribute whose namespace is namespace and local name is localName.\n */\n hasAttributeNS(namespace: string | null, localName: string): boolean;\n /**\n * Returns true if element has attributes, and false otherwise.\n */\n hasAttributes(): boolean;\n hasPointerCapture(pointerId: number): boolean;\n insertAdjacentElement(where: InsertPosition, element: Element): Element | null;\n insertAdjacentHTML(position: InsertPosition, text: string): void;\n insertAdjacentText(where: InsertPosition, data: string): void;\n /**\n * Returns true if matching selectors against element\'s root yields element, and false otherwise.\n */\n matches(selectors: string): boolean;\n releasePointerCapture(pointerId: number): void;\n /**\n * Removes element\'s first attribute whose qualified name is qualifiedName.\n */\n removeAttribute(qualifiedName: string): void;\n /**\n * Removes element\'s attribute whose namespace is namespace and local name is localName.\n */\n removeAttributeNS(namespace: string | null, localName: string): void;\n removeAttributeNode(attr: Attr): Attr;\n /**\n * Displays element fullscreen and resolves promise when done.\n *\n * 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.\n */\n requestFullscreen(options?: FullscreenOptions): Promise<void>;\n requestPointerLock(): void;\n scroll(options?: ScrollToOptions): void;\n scroll(x: number, y: number): void;\n scrollBy(options?: ScrollToOptions): void;\n scrollBy(x: number, y: number): void;\n scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;\n scrollTo(options?: ScrollToOptions): void;\n scrollTo(x: number, y: number): void;\n /**\n * Sets the value of element\'s first attribute whose qualified name is qualifiedName to value.\n */\n setAttribute(qualifiedName: string, value: string): void;\n /**\n * Sets the value of element\'s attribute whose namespace is namespace and local name is localName to value.\n */\n setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;\n setAttributeNode(attr: Attr): Attr | null;\n setAttributeNodeNS(attr: Attr): Attr | null;\n setPointerCapture(pointerId: number): void;\n /**\n * 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.\n *\n * Returns true if qualifiedName is now present, and false otherwise.\n */\n toggleAttribute(qualifiedName: string, force?: boolean): boolean;\n /** @deprecated This is a legacy alias of `matches`. */\n webkitMatchesSelector(selectors: string): boolean;\n addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Element: {\n prototype: Element;\n new(): Element;\n};\n\ninterface ElementCSSInlineStyle {\n readonly style: CSSStyleDeclaration;\n}\n\ninterface ElementContentEditable {\n contentEditable: string;\n enterKeyHint: string;\n inputMode: string;\n readonly isContentEditable: boolean;\n}\n\n/** Events providing information related to errors in scripts or in files. */\ninterface ErrorEvent extends Event {\n readonly colno: number;\n readonly error: any;\n readonly filename: string;\n readonly lineno: number;\n readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/** An event which takes place in the DOM. */\ninterface Event {\n /**\n * 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.\n */\n readonly bubbles: boolean;\n cancelBubble: boolean;\n /**\n * 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.\n */\n readonly cancelable: boolean;\n /**\n * 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.\n */\n readonly composed: boolean;\n /**\n * Returns the object whose event listener\'s callback is currently being invoked.\n */\n readonly currentTarget: EventTarget | null;\n /**\n * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.\n */\n readonly defaultPrevented: boolean;\n /**\n * Returns the event\'s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.\n */\n readonly eventPhase: number;\n /**\n * Returns true if event was dispatched by the user agent, and false otherwise.\n */\n readonly isTrusted: boolean;\n /** @deprecated */\n returnValue: boolean;\n /** @deprecated */\n readonly srcElement: EventTarget | null;\n /**\n * Returns the object to which event is dispatched (its target).\n */\n readonly target: EventTarget | null;\n /**\n * Returns the event\'s timestamp as the number of milliseconds measured relative to the time origin.\n */\n readonly timeStamp: DOMHighResTimeStamp;\n /**\n * Returns the type of event, e.g. "click", "hashchange", or "submit".\n */\n readonly type: string;\n /**\n * 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.\n */\n composedPath(): EventTarget[];\n /** @deprecated */\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n /**\n * 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.\n */\n preventDefault(): void;\n /**\n * 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.\n */\n stopImmediatePropagation(): void;\n /**\n * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.\n */\n stopPropagation(): void;\n readonly AT_TARGET: number;\n readonly BUBBLING_PHASE: number;\n readonly CAPTURING_PHASE: number;\n readonly NONE: number;\n}\n\ndeclare var Event: {\n prototype: Event;\n new(type: string, eventInitDict?: EventInit): Event;\n readonly AT_TARGET: number;\n readonly BUBBLING_PHASE: number;\n readonly CAPTURING_PHASE: number;\n readonly NONE: number;\n};\n\ninterface EventListener {\n (evt: Event): void;\n}\n\ninterface EventListenerObject {\n handleEvent(object: Event): void;\n}\n\ninterface EventSourceEventMap {\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\ninterface EventSource extends EventTarget {\n onerror: ((this: EventSource, ev: Event) => any) | null;\n onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n onopen: ((this: EventSource, ev: Event) => any) | null;\n /**\n * Returns the state of this EventSource object\'s connection. It can have the values described below.\n */\n readonly readyState: number;\n /**\n * Returns the URL providing the event stream.\n */\n readonly url: string;\n /**\n * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.\n */\n readonly withCredentials: boolean;\n /**\n * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.\n */\n close(): void;\n readonly CLOSED: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var EventSource: {\n prototype: EventSource;\n new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;\n readonly CLOSED: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n};\n\n/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */\ninterface EventTarget {\n /**\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * When set to true, options\'s passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.\n *\n * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will be removed.\n *\n * If an AbortSignal is passed for options\'s signal, then the event listener will be removed when signal is aborted.\n *\n * The event listener is appended to target\'s event listener list and is not appended if it has the same type, callback, and capture.\n */\n addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\n /**\n * 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.\n */\n dispatchEvent(event: Event): boolean;\n /**\n * Removes the event listener in target\'s event listener list with the same type, callback, and options.\n */\n removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n prototype: EventTarget;\n new(): EventTarget;\n};\n\n/** @deprecated */\ninterface External {\n /** @deprecated */\n AddSearchProvider(): void;\n /** @deprecated */\n IsSearchProviderInstalled(): void;\n}\n\n/** @deprecated */\ndeclare var External: {\n prototype: External;\n new(): External;\n};\n\n/** Provides information about files and allows JavaScript in a web page to access their content. */\ninterface File extends Blob {\n readonly lastModified: number;\n readonly name: string;\n readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n prototype: File;\n new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\n/** 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. */\ninterface FileList {\n readonly length: number;\n item(index: number): File | null;\n [index: number]: File;\n}\n\ndeclare var FileList: {\n prototype: FileList;\n new(): FileList;\n};\n\ninterface FileReaderEventMap {\n "abort": ProgressEvent<FileReader>;\n "error": ProgressEvent<FileReader>;\n "load": ProgressEvent<FileReader>;\n "loadend": ProgressEvent<FileReader>;\n "loadstart": ProgressEvent<FileReader>;\n "progress": ProgressEvent<FileReader>;\n}\n\n/** 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. */\ninterface FileReader extends EventTarget {\n readonly error: DOMException | null;\n onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n readonly readyState: number;\n readonly result: string | ArrayBuffer | null;\n abort(): void;\n readAsArrayBuffer(blob: Blob): void;\n readAsBinaryString(blob: Blob): void;\n readAsDataURL(blob: Blob): void;\n readAsText(blob: Blob, encoding?: string): void;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FileReader: {\n prototype: FileReader;\n new(): FileReader;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n};\n\ninterface FileSystem {\n readonly name: string;\n readonly root: FileSystemDirectoryEntry;\n}\n\ndeclare var FileSystem: {\n prototype: FileSystem;\n new(): FileSystem;\n};\n\ninterface FileSystemDirectoryEntry extends FileSystemEntry {\n createReader(): FileSystemDirectoryReader;\n getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemDirectoryEntry: {\n prototype: FileSystemDirectoryEntry;\n new(): FileSystemDirectoryEntry;\n};\n\n/** @deprecated */\ninterface FileSystemDirectoryReader {\n /** @deprecated */\n readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;\n}\n\n/** @deprecated */\ndeclare var FileSystemDirectoryReader: {\n prototype: FileSystemDirectoryReader;\n new(): FileSystemDirectoryReader;\n};\n\ninterface FileSystemEntry {\n readonly filesystem: FileSystem;\n readonly fullPath: string;\n readonly isDirectory: boolean;\n readonly isFile: boolean;\n readonly name: string;\n getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemEntry: {\n prototype: FileSystemEntry;\n new(): FileSystemEntry;\n};\n\ninterface FileSystemFileEntry extends FileSystemEntry {\n file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemFileEntry: {\n prototype: FileSystemFileEntry;\n new(): FileSystemFileEntry;\n};\n\n/** Focus-related events like focus, blur, focusin, or focusout. */\ninterface FocusEvent extends UIEvent {\n readonly relatedTarget: EventTarget | null;\n}\n\ndeclare var FocusEvent: {\n prototype: FocusEvent;\n new(type: string, eventInitDict?: FocusEventInit): FocusEvent;\n};\n\ninterface FontFace {\n ascentOverride: string;\n descentOverride: string;\n display: string;\n family: string;\n featureSettings: string;\n lineGapOverride: string;\n readonly loaded: Promise<FontFace>;\n readonly status: FontFaceLoadStatus;\n stretch: string;\n style: string;\n unicodeRange: string;\n variant: string;\n variationSettings: string;\n weight: string;\n load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n prototype: FontFace;\n new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n "loading": Event;\n "loadingdone": Event;\n "loadingerror": Event;\n}\n\ninterface FontFaceSet extends EventTarget {\n onloading: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\n readonly ready: Promise<FontFaceSet>;\n readonly status: FontFaceSetLoadStatus;\n check(font: string, text?: string): boolean;\n load(font: string, text?: string): Promise<FontFace[]>;\n forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\n addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FontFaceSet: {\n prototype: FontFaceSet;\n new(initialFaces: FontFace[]): FontFaceSet;\n};\n\ninterface FontFaceSetLoadEvent extends Event {\n readonly fontfaces: ReadonlyArray<FontFace>;\n}\n\ndeclare var FontFaceSetLoadEvent: {\n prototype: FontFaceSetLoadEvent;\n new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\n};\n\ninterface FontFaceSource {\n readonly fonts: FontFaceSet;\n}\n\n/** 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". */\ninterface FormData {\n append(name: string, value: string | Blob, fileName?: string): void;\n delete(name: string): void;\n get(name: string): FormDataEntryValue | null;\n getAll(name: string): FormDataEntryValue[];\n has(name: string): boolean;\n set(name: string, value: string | Blob, fileName?: string): void;\n forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;\n}\n\ndeclare var FormData: {\n prototype: FormData;\n new(form?: HTMLFormElement): FormData;\n};\n\ninterface FormDataEvent extends Event {\n /**\n * 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.\n */\n readonly formData: FormData;\n}\n\ndeclare var FormDataEvent: {\n prototype: FormDataEvent;\n new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;\n};\n\n/** 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. */\ninterface GainNode extends AudioNode {\n readonly gain: AudioParam;\n}\n\ndeclare var GainNode: {\n prototype: GainNode;\n new(context: BaseAudioContext, options?: GainOptions): GainNode;\n};\n\n/** This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. */\ninterface Gamepad {\n readonly axes: ReadonlyArray<number>;\n readonly buttons: ReadonlyArray<GamepadButton>;\n readonly connected: boolean;\n readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;\n readonly id: string;\n readonly index: number;\n readonly mapping: GamepadMappingType;\n readonly timestamp: DOMHighResTimeStamp;\n}\n\ndeclare var Gamepad: {\n prototype: Gamepad;\n new(): Gamepad;\n};\n\n/** 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. */\ninterface GamepadButton {\n readonly pressed: boolean;\n readonly touched: boolean;\n readonly value: number;\n}\n\ndeclare var GamepadButton: {\n prototype: GamepadButton;\n new(): GamepadButton;\n};\n\n/** 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. */\ninterface GamepadEvent extends Event {\n readonly gamepad: Gamepad;\n}\n\ndeclare var GamepadEvent: {\n prototype: GamepadEvent;\n new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;\n};\n\n/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */\ninterface GamepadHapticActuator {\n readonly type: GamepadHapticActuatorType;\n}\n\ndeclare var GamepadHapticActuator: {\n prototype: GamepadHapticActuator;\n new(): GamepadHapticActuator;\n};\n\ninterface GenericTransformStream {\n readonly readable: ReadableStream;\n readonly writable: WritableStream;\n}\n\n/** 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. */\ninterface Geolocation {\n clearWatch(watchId: number): void;\n getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;\n watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;\n}\n\ndeclare var Geolocation: {\n prototype: Geolocation;\n new(): Geolocation;\n};\n\ninterface GeolocationCoordinates {\n readonly accuracy: number;\n readonly altitude: number | null;\n readonly altitudeAccuracy: number | null;\n readonly heading: number | null;\n readonly latitude: number;\n readonly longitude: number;\n readonly speed: number | null;\n}\n\ndeclare var GeolocationCoordinates: {\n prototype: GeolocationCoordinates;\n new(): GeolocationCoordinates;\n};\n\ninterface GeolocationPosition {\n readonly coords: GeolocationCoordinates;\n readonly timestamp: DOMTimeStamp;\n}\n\ndeclare var GeolocationPosition: {\n prototype: GeolocationPosition;\n new(): GeolocationPosition;\n};\n\ninterface GeolocationPositionError {\n readonly code: number;\n readonly message: string;\n readonly PERMISSION_DENIED: number;\n readonly POSITION_UNAVAILABLE: number;\n readonly TIMEOUT: number;\n}\n\ndeclare var GeolocationPositionError: {\n prototype: GeolocationPositionError;\n new(): GeolocationPositionError;\n readonly PERMISSION_DENIED: number;\n readonly POSITION_UNAVAILABLE: number;\n readonly TIMEOUT: number;\n};\n\ninterface GlobalEventHandlersEventMap {\n "abort": UIEvent;\n "animationcancel": AnimationEvent;\n "animationend": AnimationEvent;\n "animationiteration": AnimationEvent;\n "animationstart": AnimationEvent;\n "auxclick": MouseEvent;\n "beforeinput": InputEvent;\n "blur": FocusEvent;\n "canplay": Event;\n "canplaythrough": Event;\n "change": Event;\n "click": MouseEvent;\n "close": Event;\n "compositionend": CompositionEvent;\n "compositionstart": CompositionEvent;\n "compositionupdate": CompositionEvent;\n "contextmenu": MouseEvent;\n "cuechange": Event;\n "dblclick": MouseEvent;\n "drag": DragEvent;\n "dragend": DragEvent;\n "dragenter": DragEvent;\n "dragleave": DragEvent;\n "dragover": DragEvent;\n "dragstart": DragEvent;\n "drop": DragEvent;\n "durationchange": Event;\n "emptied": Event;\n "ended": Event;\n "error": ErrorEvent;\n "focus": FocusEvent;\n "focusin": FocusEvent;\n "focusout": FocusEvent;\n "formdata": FormDataEvent;\n "gotpointercapture": PointerEvent;\n "input": Event;\n "invalid": Event;\n "keydown": KeyboardEvent;\n "keypress": KeyboardEvent;\n "keyup": KeyboardEvent;\n "load": Event;\n "loadeddata": Event;\n "loadedmetadata": Event;\n "loadstart": Event;\n "lostpointercapture": PointerEvent;\n "mousedown": MouseEvent;\n "mouseenter": MouseEvent;\n "mouseleave": MouseEvent;\n "mousemove": MouseEvent;\n "mouseout": MouseEvent;\n "mouseover": MouseEvent;\n "mouseup": MouseEvent;\n "pause": Event;\n "play": Event;\n "playing": Event;\n "pointercancel": PointerEvent;\n "pointerdown": PointerEvent;\n "pointerenter": PointerEvent;\n "pointerleave": PointerEvent;\n "pointermove": PointerEvent;\n "pointerout": PointerEvent;\n "pointerover": PointerEvent;\n "pointerup": PointerEvent;\n "progress": ProgressEvent;\n "ratechange": Event;\n "reset": Event;\n "resize": UIEvent;\n "scroll": Event;\n "securitypolicyviolation": SecurityPolicyViolationEvent;\n "seeked": Event;\n "seeking": Event;\n "select": Event;\n "selectionchange": Event;\n "selectstart": Event;\n "stalled": Event;\n "submit": Event;\n "suspend": Event;\n "timeupdate": Event;\n "toggle": Event;\n "touchcancel": TouchEvent;\n "touchend": TouchEvent;\n "touchmove": TouchEvent;\n "touchstart": TouchEvent;\n "transitioncancel": TransitionEvent;\n "transitionend": TransitionEvent;\n "transitionrun": TransitionEvent;\n "transitionstart": TransitionEvent;\n "volumechange": Event;\n "waiting": Event;\n "webkitanimationend": Event;\n "webkitanimationiteration": Event;\n "webkitanimationstart": Event;\n "webkittransitionend": Event;\n "wheel": WheelEvent;\n}\n\ninterface GlobalEventHandlers {\n /**\n * Fires when the user aborts the download.\n * @param ev The event.\n */\n onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n */\n onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n /**\n * Occurs when playback is possible, but would require further buffering.\n * @param ev The event.\n */\n oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the contents of the object or selection have changed.\n * @param ev The event.\n */\n onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the left mouse button on the object\n * @param ev The mouse event.\n */\n onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n * @param ev The mouse event.\n */\n oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n */\n ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n */\n ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\n * @param ev The event.\n */\n ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target element when the user drags the object to a valid drop target.\n * @param ev The drag event.\n */\n ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n * @param ev The drag event.\n */\n ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target element continuously while the user drags the object over a valid drop target.\n * @param ev The event.\n */\n ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the source object when the user starts to drag a text selection or selected object.\n * @param ev The event.\n */\n ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n */\n ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the media element is reset to its initial state.\n * @param ev The event.\n */\n onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the end of playback is reached.\n * @param ev The event\n */\n onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n */\n onerror: OnErrorEventHandler;\n /**\n * Fires when the object receives focus.\n * @param ev The event.\n */\n onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;\n ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n */\n onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n * @deprecated\n */\n onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n */\n onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n */\n onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when media data is loaded at the current playback position.\n * @param ev The event.\n */\n onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the duration and dimensions of the media have been determined.\n * @param ev The event.\n */\n onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n */\n onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /**\n * Fires when the user clicks the object with either mouse button.\n * @param ev The mouse event.\n */\n onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse over the object.\n * @param ev The mouse event.\n */\n onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\n * @param ev The mouse event.\n */\n onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse pointer into the object.\n * @param ev The mouse event.\n */\n onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user releases a mouse button while the mouse is over the object.\n * @param ev The mouse event.\n */\n onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Occurs when playback is paused.\n * @param ev The event.\n */\n onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the play method is requested.\n * @param ev The event.\n */\n onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n */\n onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n */\n onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;\n /**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n */\n onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user resets a form.\n * @param ev The event.\n */\n onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n /**\n * Fires when the user repositions the scroll box in the scroll bar on the object.\n * @param ev The event.\n */\n onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the seek operation ends.\n * @param ev The event.\n */\n onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n */\n onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the current selection changes.\n * @param ev The event.\n */\n onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the download has stopped.\n * @param ev The event.\n */\n onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onsubmit: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n */\n onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n */\n ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n /**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n */\n onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when playback stops because the next frame of a video resource is not available.\n * @param ev The event.\n */\n onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;\n addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface HTMLAllCollection {\n /**\n * Returns the number of elements in the collection.\n */\n readonly length: number;\n /**\n * Returns the item with index index from the collection (determined by tree order).\n */\n item(nameOrIndex?: string): HTMLCollection | Element | null;\n /**\n * Returns the item with ID or name name from the collection.\n *\n * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.\n *\n * 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.\n */\n namedItem(name: string): HTMLCollection | Element | null;\n [index: number]: Element;\n}\n\ndeclare var HTMLAllCollection: {\n prototype: HTMLAllCollection;\n new(): HTMLAllCollection;\n};\n\n/** 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. */\ninterface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n /**\n * Sets or retrieves the coordinates of the object.\n * @deprecated\n */\n coords: string;\n download: string;\n /**\n * Sets or retrieves the language code of the object.\n */\n hreflang: string;\n /**\n * Sets or retrieves the shape of the object.\n * @deprecated\n */\n name: string;\n ping: string;\n referrerPolicy: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n */\n rel: string;\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n * @deprecated\n */\n rev: string;\n /**\n * Sets or retrieves the shape of the object.\n * @deprecated\n */\n shape: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n target: string;\n /**\n * Retrieves or sets the text of the object as a string.\n */\n text: string;\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAnchorElement: {\n prototype: HTMLAnchorElement;\n new(): HTMLAnchorElement;\n};\n\n/** 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. */\ninterface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /**\n * Sets or retrieves a text alternative to the graphic.\n */\n alt: string;\n /**\n * Sets or retrieves the coordinates of the object.\n */\n coords: string;\n download: string;\n /**\n * Sets or gets whether clicks in this region cause action.\n * @deprecated\n */\n noHref: boolean;\n ping: string;\n referrerPolicy: string;\n rel: string;\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the shape of the object.\n */\n shape: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n target: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAreaElement: {\n prototype: HTMLAreaElement;\n new(): HTMLAreaElement;\n};\n\n/** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */\ninterface HTMLAudioElement extends HTMLMediaElement {\n addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAudioElement: {\n prototype: HTMLAudioElement;\n new(): HTMLAudioElement;\n};\n\n/** A HTML line break element (<br>). It inherits from HTMLElement. */\ninterface HTMLBRElement extends HTMLElement {\n /**\n * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.\n * @deprecated\n */\n clear: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBRElement: {\n prototype: HTMLBRElement;\n new(): HTMLBRElement;\n};\n\n/** Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */\ninterface HTMLBaseElement extends HTMLElement {\n /**\n * Gets or sets the baseline URL on which relative links are based.\n */\n href: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n target: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBaseElement: {\n prototype: HTMLBaseElement;\n new(): HTMLBaseElement;\n};\n\ninterface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n "orientationchange": Event;\n}\n\n/** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */\ninterface HTMLBodyElement extends HTMLElement, WindowEventHandlers {\n /** @deprecated */\n aLink: string;\n /** @deprecated */\n background: string;\n /** @deprecated */\n bgColor: string;\n /** @deprecated */\n link: string;\n /** @deprecated */\n onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;\n /** @deprecated */\n text: string;\n /** @deprecated */\n vLink: string;\n addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBodyElement: {\n prototype: HTMLBodyElement;\n new(): HTMLBodyElement;\n};\n\n/** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */\ninterface HTMLButtonElement extends HTMLElement {\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Overrides the action attribute (where the data on a form is sent) on the parent form element.\n */\n formAction: string;\n /**\n * Used to override the encoding (formEnctype attribute) specified on the form element.\n */\n formEnctype: string;\n /**\n * Overrides the submit method attribute previously specified on a form element.\n */\n formMethod: string;\n /**\n * 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.\n */\n formNoValidate: boolean;\n /**\n * Overrides the target attribute on a form element.\n */\n formTarget: string;\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n /**\n * Gets the classification and default behavior of the button.\n */\n type: string;\n /**\n * 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.\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Sets or retrieves the default or selected value of the control.\n */\n value: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): boolean;\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLButtonElement: {\n prototype: HTMLButtonElement;\n new(): HTMLButtonElement;\n};\n\n/** 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. */\ninterface HTMLCanvasElement extends HTMLElement {\n /**\n * Gets or sets the height of a canvas element on a document.\n */\n height: number;\n /**\n * Gets or sets the width of a canvas element on a document.\n */\n width: number;\n captureStream(frameRequestRate?: number): MediaStream;\n /**\n * 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.\n * @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");\n */\n getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;\n getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;\n getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;\n getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;\n getContext(contextId: string, options?: any): RenderingContext | null;\n toBlob(callback: BlobCallback, type?: string, quality?: any): void;\n /**\n * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.\n * @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.\n */\n toDataURL(type?: string, quality?: any): string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLCanvasElement: {\n prototype: HTMLCanvasElement;\n new(): HTMLCanvasElement;\n};\n\n/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */\ninterface HTMLCollectionBase {\n /**\n * Sets or retrieves the number of objects in a collection.\n */\n readonly length: number;\n /**\n * Retrieves an object from various collections.\n */\n item(index: number): Element | null;\n [index: number]: Element;\n}\n\ninterface HTMLCollection extends HTMLCollectionBase {\n /**\n * Retrieves a select object or an object from an options collection.\n */\n namedItem(name: string): Element | null;\n}\n\ndeclare var HTMLCollection: {\n prototype: HTMLCollection;\n new(): HTMLCollection;\n};\n\ninterface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {\n item(index: number): T | null;\n namedItem(name: string): T | null;\n [index: number]: T;\n}\n\n/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */\ninterface HTMLDListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDListElement: {\n prototype: HTMLDListElement;\n new(): HTMLDListElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */\ninterface HTMLDataElement extends HTMLElement {\n value: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDataElement: {\n prototype: HTMLDataElement;\n new(): HTMLDataElement;\n};\n\n/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */\ninterface HTMLDataListElement extends HTMLElement {\n /**\n * Returns an HTMLCollection of the option elements of the datalist element.\n */\n readonly options: HTMLCollectionOf<HTMLOptionElement>;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDataListElement: {\n prototype: HTMLDataListElement;\n new(): HTMLDataListElement;\n};\n\ninterface HTMLDetailsElement extends HTMLElement {\n open: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDetailsElement: {\n prototype: HTMLDetailsElement;\n new(): HTMLDetailsElement;\n};\n\n/** @deprecated this is not available in most browsers */\ninterface HTMLDialogElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ninterface HTMLDirectoryElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLDirectoryElement: {\n prototype: HTMLDirectoryElement;\n new(): HTMLDirectoryElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */\ninterface HTMLDivElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDivElement: {\n prototype: HTMLDivElement;\n new(): HTMLDivElement;\n};\n\n/** @deprecated use Document */\ninterface HTMLDocument extends Document {\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLDocument: {\n prototype: HTMLDocument;\n new(): HTMLDocument;\n};\n\ninterface HTMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {\n}\n\n/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */\ninterface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {\n accessKey: string;\n readonly accessKeyLabel: string;\n autocapitalize: string;\n dir: string;\n draggable: boolean;\n hidden: boolean;\n innerText: string;\n lang: string;\n readonly offsetHeight: number;\n readonly offsetLeft: number;\n readonly offsetParent: Element | null;\n readonly offsetTop: number;\n readonly offsetWidth: number;\n outerText: string;\n spellcheck: boolean;\n title: string;\n translate: boolean;\n click(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLElement: {\n prototype: HTMLElement;\n new(): HTMLElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */\ninterface HTMLEmbedElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves the height of the object.\n */\n height: string;\n /**\n * Sets or retrieves the name of the object.\n * @deprecated\n */\n name: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n */\n src: string;\n type: string;\n /**\n * Sets or retrieves the width of the object.\n */\n width: string;\n getSVGDocument(): Document | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLEmbedElement: {\n prototype: HTMLEmbedElement;\n new(): HTMLEmbedElement;\n};\n\n/** 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. */\ninterface HTMLFieldSetElement extends HTMLElement {\n disabled: boolean;\n /**\n * Returns an HTMLCollection of the form controls in the element.\n */\n readonly elements: HTMLCollection;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n name: string;\n /**\n * Returns the string "fieldset".\n */\n readonly type: string;\n /**\n * 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.\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): boolean;\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLFieldSetElement: {\n prototype: HTMLFieldSetElement;\n new(): HTMLFieldSetElement;\n};\n\n/**\n * 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.\n * @deprecated\n */\ninterface HTMLFontElement extends HTMLElement {\n /** @deprecated */\n color: string;\n /**\n * Sets or retrieves the current typeface family.\n * @deprecated\n */\n face: string;\n /** @deprecated */\n size: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFontElement: {\n prototype: HTMLFontElement;\n new(): HTMLFontElement;\n};\n\n/** A collection of HTML form control elements. */\ninterface HTMLFormControlsCollection extends HTMLCollectionBase {\n /**\n * Returns the item with ID or name name from the collection.\n *\n * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.\n */\n namedItem(name: string): RadioNodeList | Element | null;\n}\n\ndeclare var HTMLFormControlsCollection: {\n prototype: HTMLFormControlsCollection;\n new(): HTMLFormControlsCollection;\n};\n\n/** 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. */\ninterface HTMLFormElement extends HTMLElement {\n /**\n * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.\n */\n acceptCharset: string;\n /**\n * Sets or retrieves the URL to which the form content is sent for processing.\n */\n action: string;\n /**\n * Specifies whether autocomplete is applied to an editable text field.\n */\n autocomplete: string;\n /**\n * Retrieves a collection, in source order, of all controls in a given form.\n */\n readonly elements: HTMLFormControlsCollection;\n /**\n * Sets or retrieves the MIME encoding for the form.\n */\n encoding: string;\n /**\n * Sets or retrieves the encoding type for the form.\n */\n enctype: string;\n /**\n * Sets or retrieves the number of objects in a collection.\n */\n readonly length: number;\n /**\n * Sets or retrieves how to send the form data to the server.\n */\n method: string;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n /**\n * Designates a form that is not validated when submitted.\n */\n noValidate: boolean;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n target: string;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): boolean;\n reportValidity(): boolean;\n requestSubmit(submitter?: HTMLElement | null): void;\n /**\n * Fires when the user resets a form.\n */\n reset(): void;\n /**\n * Fires when a FORM is about to be submitted.\n */\n submit(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: Element;\n [name: string]: any;\n}\n\ndeclare var HTMLFormElement: {\n prototype: HTMLFormElement;\n new(): HTMLFormElement;\n};\n\n/** @deprecated */\ninterface HTMLFrameElement extends HTMLElement {\n /**\n * Retrieves the document object of the page or frame.\n * @deprecated\n */\n readonly contentDocument: Document | null;\n /**\n * Retrieves the object of the specified.\n * @deprecated\n */\n readonly contentWindow: WindowProxy | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n * @deprecated\n */\n frameBorder: string;\n /**\n * Sets or retrieves a URI to a long description of the object.\n * @deprecated\n */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n * @deprecated\n */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n * @deprecated\n */\n marginWidth: string;\n /**\n * Sets or retrieves the frame name.\n * @deprecated\n */\n name: string;\n /**\n * Sets or retrieves whether the user can resize the frame.\n * @deprecated\n */\n noResize: boolean;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n * @deprecated\n */\n scrolling: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n * @deprecated\n */\n src: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFrameElement: {\n prototype: HTMLFrameElement;\n new(): HTMLFrameElement;\n};\n\ninterface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n}\n\n/**\n * Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.\n * @deprecated\n */\ninterface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {\n /**\n * Sets or retrieves the frame widths of the object.\n * @deprecated\n */\n cols: string;\n /**\n * Sets or retrieves the frame heights of the object.\n * @deprecated\n */\n rows: string;\n addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFrameSetElement: {\n prototype: HTMLFrameSetElement;\n new(): HTMLFrameSetElement;\n};\n\n/** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */\ninterface HTMLHRElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n color: string;\n /**\n * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.\n * @deprecated\n */\n noShade: boolean;\n /** @deprecated */\n size: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHRElement: {\n prototype: HTMLHRElement;\n new(): HTMLHRElement;\n};\n\n/** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */\ninterface HTMLHeadElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHeadElement: {\n prototype: HTMLHeadElement;\n new(): HTMLHeadElement;\n};\n\n/** The different heading elements. It inherits methods and properties from the HTMLElement interface. */\ninterface HTMLHeadingElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHeadingElement: {\n prototype: HTMLHeadingElement;\n new(): HTMLHeadingElement;\n};\n\n/** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */\ninterface HTMLHtmlElement extends HTMLElement {\n /**\n * Sets or retrieves the DTD version that governs the current document.\n * @deprecated\n */\n version: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHtmlElement: {\n prototype: HTMLHtmlElement;\n new(): HTMLHtmlElement;\n};\n\ninterface HTMLHyperlinkElementUtils {\n /**\n * Returns the hyperlink\'s URL\'s fragment (includes leading "#" if non-empty).\n *\n * Can be set, to change the URL\'s fragment (ignores leading "#").\n */\n hash: string;\n /**\n * Returns the hyperlink\'s URL\'s host and port (if different from the default port for the scheme).\n *\n * Can be set, to change the URL\'s host and port.\n */\n host: string;\n /**\n * Returns the hyperlink\'s URL\'s host.\n *\n * Can be set, to change the URL\'s host.\n */\n hostname: string;\n /**\n * Returns the hyperlink\'s URL.\n *\n * Can be set, to change the URL.\n */\n href: string;\n toString(): string;\n /**\n * Returns the hyperlink\'s URL\'s origin.\n */\n readonly origin: string;\n /**\n * Returns the hyperlink\'s URL\'s password.\n *\n * Can be set, to change the URL\'s password.\n */\n password: string;\n /**\n * Returns the hyperlink\'s URL\'s path.\n *\n * Can be set, to change the URL\'s path.\n */\n pathname: string;\n /**\n * Returns the hyperlink\'s URL\'s port.\n *\n * Can be set, to change the URL\'s port.\n */\n port: string;\n /**\n * Returns the hyperlink\'s URL\'s scheme.\n *\n * Can be set, to change the URL\'s scheme.\n */\n protocol: string;\n /**\n * Returns the hyperlink\'s URL\'s query (includes leading "?" if non-empty).\n *\n * Can be set, to change the URL\'s query (ignores leading "?").\n */\n search: string;\n /**\n * Returns the hyperlink\'s URL\'s username.\n *\n * Can be set, to change the URL\'s username.\n */\n username: string;\n}\n\n/** 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. */\ninterface HTMLIFrameElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n allow: string;\n allowFullscreen: boolean;\n /**\n * Retrieves the document object of the page or frame.\n */\n readonly contentDocument: Document | null;\n /**\n * Retrieves the object of the specified.\n */\n readonly contentWindow: WindowProxy | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n * @deprecated\n */\n frameBorder: string;\n /**\n * Sets or retrieves the height of the object.\n */\n height: string;\n /**\n * Sets or retrieves a URI to a long description of the object.\n * @deprecated\n */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n * @deprecated\n */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n * @deprecated\n */\n marginWidth: string;\n /**\n * Sets or retrieves the frame name.\n */\n name: string;\n referrerPolicy: ReferrerPolicy;\n readonly sandbox: DOMTokenList;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n * @deprecated\n */\n scrolling: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n */\n src: string;\n /**\n * Sets or retrives the content of the page that is to contain.\n */\n srcdoc: string;\n /**\n * Sets or retrieves the width of the object.\n */\n width: string;\n getSVGDocument(): Document | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLIFrameElement: {\n prototype: HTMLIFrameElement;\n new(): HTMLIFrameElement;\n};\n\n/** Provides special properties and methods for manipulating <img> elements. */\ninterface HTMLImageElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /**\n * Sets or retrieves a text alternative to the graphic.\n */\n alt: string;\n /**\n * Specifies the properties of a border drawn around an object.\n * @deprecated\n */\n border: string;\n /**\n * Retrieves whether the object is fully loaded.\n */\n readonly complete: boolean;\n crossOrigin: string | null;\n readonly currentSrc: string;\n decoding: "async" | "sync" | "auto";\n /**\n * Sets or retrieves the height of the object.\n */\n height: number;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n * @deprecated\n */\n hspace: number;\n /**\n * Sets or retrieves whether the image is a server-side image map.\n */\n isMap: boolean;\n loading: string;\n /**\n * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.\n * @deprecated\n */\n longDesc: string;\n /** @deprecated */\n lowsrc: string;\n /**\n * Sets or retrieves the name of the object.\n * @deprecated\n */\n name: string;\n /**\n * The original height of the image resource before sizing.\n */\n readonly naturalHeight: number;\n /**\n * The original width of the image resource before sizing.\n */\n readonly naturalWidth: number;\n referrerPolicy: string;\n sizes: string;\n /**\n * The address or URL of the a media resource that is to be considered.\n */\n src: string;\n srcset: string;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n */\n useMap: string;\n /**\n * Sets or retrieves the vertical margin for the object.\n * @deprecated\n */\n vspace: number;\n /**\n * Sets or retrieves the width of the object.\n */\n width: number;\n readonly x: number;\n readonly y: number;\n decode(): Promise<void>;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLImageElement: {\n prototype: HTMLImageElement;\n new(): HTMLImageElement;\n};\n\n/** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */\ninterface HTMLInputElement extends HTMLElement {\n /**\n * Sets or retrieves a comma-separated list of content types.\n */\n accept: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /**\n * Sets or retrieves a text alternative to the graphic.\n */\n alt: string;\n /**\n * Specifies whether autocomplete is applied to an editable text field.\n */\n autocomplete: string;\n capture: string;\n /**\n * Sets or retrieves the state of the check box or radio button.\n */\n checked: boolean;\n /**\n * Sets or retrieves the state of the check box or radio button.\n */\n defaultChecked: boolean;\n /**\n * Sets or retrieves the initial contents of the object.\n */\n defaultValue: string;\n dirName: string;\n disabled: boolean;\n /**\n * Returns a FileList object on a file type input object.\n */\n files: FileList | null;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Overrides the action attribute (where the data on a form is sent) on the parent form element.\n */\n formAction: string;\n /**\n * Used to override the encoding (formEnctype attribute) specified on the form element.\n */\n formEnctype: string;\n /**\n * Overrides the submit method attribute previously specified on a form element.\n */\n formMethod: string;\n /**\n * 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.\n */\n formNoValidate: boolean;\n /**\n * Overrides the target attribute on a form element.\n */\n formTarget: string;\n /**\n * Sets or retrieves the height of the object.\n */\n height: number;\n /**\n * When set, overrides the rendering of checkbox controls so that the current value is not visible.\n */\n indeterminate: boolean;\n readonly labels: NodeListOf<HTMLLabelElement> | null;\n /**\n * Specifies the ID of a pre-defined datalist of options for an input element.\n */\n readonly list: HTMLElement | null;\n /**\n * 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.\n */\n max: string;\n /**\n * Sets or retrieves the maximum number of characters that the user can enter in a text control.\n */\n maxLength: number;\n /**\n * 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.\n */\n min: string;\n minLength: number;\n /**\n * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.\n */\n multiple: boolean;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n /**\n * Gets or sets a string containing a regular expression that the user\'s input must match.\n */\n pattern: string;\n /**\n * 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.\n */\n placeholder: string;\n readOnly: boolean;\n /**\n * When present, marks an element that can\'t be submitted without a value.\n */\n required: boolean;\n selectionDirection: "forward" | "backward" | "none" | null;\n /**\n * Gets or sets the end position or offset of a text selection.\n */\n selectionEnd: number | null;\n /**\n * Gets or sets the starting position or offset of a text selection.\n */\n selectionStart: number | null;\n size: number;\n /**\n * The address or URL of the a media resource that is to be considered.\n */\n src: string;\n /**\n * 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.\n */\n step: string;\n /**\n * Returns the content type of the object.\n */\n type: string;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n * @deprecated\n */\n useMap: string;\n /**\n * 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.\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Returns the value of the data at the cursor\'s current position.\n */\n value: string;\n /**\n * 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.\n */\n valueAsDate: Date | null;\n /**\n * Returns the input field value as a number.\n */\n valueAsNumber: number;\n readonly webkitEntries: ReadonlyArray<FileSystemEntry>;\n webkitdirectory: boolean;\n /**\n * Sets or retrieves the width of the object.\n */\n width: number;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): boolean;\n reportValidity(): boolean;\n /**\n * Makes the selection equal to the current object.\n */\n select(): void;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n setRangeText(replacement: string): void;\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n /**\n * Sets the start and end positions of a selection in a text field.\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n */\n setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;\n /**\n * 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.\n * @param n Value to decrement the value by.\n */\n stepDown(n?: number): void;\n /**\n * 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.\n * @param n Value to increment the value by.\n */\n stepUp(n?: number): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLInputElement: {\n prototype: HTMLInputElement;\n new(): HTMLInputElement;\n};\n\n/** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */\ninterface HTMLLIElement extends HTMLElement {\n /** @deprecated */\n type: string;\n /**\n * Sets or retrieves the value of a list item.\n */\n value: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLIElement: {\n prototype: HTMLLIElement;\n new(): HTMLLIElement;\n};\n\n/** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */\ninterface HTMLLabelElement extends HTMLElement {\n /**\n * Returns the form control that is associated with this element.\n */\n readonly control: HTMLElement | null;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the object to which the given label object is assigned.\n */\n htmlFor: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLabelElement: {\n prototype: HTMLLabelElement;\n new(): HTMLLabelElement;\n};\n\n/** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */\ninterface HTMLLegendElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLegendElement: {\n prototype: HTMLLegendElement;\n new(): HTMLLegendElement;\n};\n\n/** 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. */\ninterface HTMLLinkElement extends HTMLElement, LinkStyle {\n as: string;\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n crossOrigin: string | null;\n disabled: boolean;\n /**\n * Sets or retrieves a destination URL or an anchor point.\n */\n href: string;\n /**\n * Sets or retrieves the language code of the object.\n */\n hreflang: string;\n imageSizes: string;\n imageSrcset: string;\n integrity: string;\n /**\n * Sets or retrieves the media type.\n */\n media: string;\n referrerPolicy: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n */\n rel: string;\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n * @deprecated\n */\n rev: string;\n readonly sizes: DOMTokenList;\n /**\n * Sets or retrieves the window or frame at which to target content.\n * @deprecated\n */\n target: string;\n /**\n * Sets or retrieves the MIME type of the object.\n */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLinkElement: {\n prototype: HTMLLinkElement;\n new(): HTMLLinkElement;\n};\n\n/** 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. */\ninterface HTMLMapElement extends HTMLElement {\n /**\n * Retrieves a collection of the area objects defined for the given map object.\n */\n readonly areas: HTMLCollection;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMapElement: {\n prototype: HTMLMapElement;\n new(): HTMLMapElement;\n};\n\n/**\n * Provides methods to manipulate <marquee> elements.\n * @deprecated\n */\ninterface HTMLMarqueeElement extends HTMLElement {\n /** @deprecated */\n behavior: string;\n /** @deprecated */\n bgColor: string;\n /** @deprecated */\n direction: string;\n /** @deprecated */\n height: string;\n /** @deprecated */\n hspace: number;\n /** @deprecated */\n loop: number;\n /** @deprecated */\n scrollAmount: number;\n /** @deprecated */\n scrollDelay: number;\n /** @deprecated */\n trueSpeed: boolean;\n /** @deprecated */\n vspace: number;\n /** @deprecated */\n width: string;\n /** @deprecated */\n start(): void;\n /** @deprecated */\n stop(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLMarqueeElement: {\n prototype: HTMLMarqueeElement;\n new(): HTMLMarqueeElement;\n};\n\ninterface HTMLMediaElementEventMap extends HTMLElementEventMap {\n "encrypted": MediaEncryptedEvent;\n "waitingforkey": Event;\n}\n\n/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video. */\ninterface HTMLMediaElement extends HTMLElement {\n /**\n * Gets or sets a value that indicates whether to start playing the media automatically.\n */\n autoplay: boolean;\n /**\n * Gets a collection of buffered time ranges.\n */\n readonly buffered: TimeRanges;\n /**\n * 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).\n */\n controls: boolean;\n crossOrigin: string | null;\n /**\n * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.\n */\n readonly currentSrc: string;\n /**\n * Gets or sets the current playback position, in seconds.\n */\n currentTime: number;\n defaultMuted: boolean;\n /**\n * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.\n */\n defaultPlaybackRate: number;\n disableRemotePlayback: boolean;\n /**\n * 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.\n */\n readonly duration: number;\n /**\n * Gets information about whether the playback has ended or not.\n */\n readonly ended: boolean;\n /**\n * Returns an object representing the current error state of the audio or video element.\n */\n readonly error: MediaError | null;\n /**\n * Gets or sets a flag to specify whether playback should restart after it completes.\n */\n loop: boolean;\n readonly mediaKeys: MediaKeys | null;\n /**\n * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.\n */\n muted: boolean;\n /**\n * Gets the current network activity for the element.\n */\n readonly networkState: number;\n onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;\n onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;\n /**\n * Gets a flag that specifies whether playback is paused.\n */\n readonly paused: boolean;\n /**\n * 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.\n */\n playbackRate: number;\n /**\n * Gets TimeRanges for the current media resource that has been played.\n */\n readonly played: TimeRanges;\n /**\n * Gets or sets the current playback position, in seconds.\n */\n preload: string;\n readonly readyState: number;\n readonly remote: RemotePlayback;\n /**\n * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.\n */\n readonly seekable: TimeRanges;\n /**\n * Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.\n */\n readonly seeking: boolean;\n /**\n * The address or URL of the a media resource that is to be considered.\n */\n src: string;\n srcObject: MediaProvider | null;\n readonly textTracks: TextTrackList;\n /**\n * Gets or sets the volume level for audio portions of the media element.\n */\n volume: number;\n addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;\n /**\n * Returns a string that specifies whether the client can play a given media resource type.\n */\n canPlayType(type: string): CanPlayTypeResult;\n fastSeek(time: number): void;\n /**\n * Resets the audio or video object and loads a new media resource.\n */\n load(): void;\n /**\n * 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.\n */\n pause(): void;\n /**\n * Loads and starts playback of a media resource.\n */\n play(): Promise<void>;\n setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;\n readonly HAVE_CURRENT_DATA: number;\n readonly HAVE_ENOUGH_DATA: number;\n readonly HAVE_FUTURE_DATA: number;\n readonly HAVE_METADATA: number;\n readonly HAVE_NOTHING: number;\n readonly NETWORK_EMPTY: number;\n readonly NETWORK_IDLE: number;\n readonly NETWORK_LOADING: number;\n readonly NETWORK_NO_SOURCE: number;\n addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMediaElement: {\n prototype: HTMLMediaElement;\n new(): HTMLMediaElement;\n readonly HAVE_CURRENT_DATA: number;\n readonly HAVE_ENOUGH_DATA: number;\n readonly HAVE_FUTURE_DATA: number;\n readonly HAVE_METADATA: number;\n readonly HAVE_NOTHING: number;\n readonly NETWORK_EMPTY: number;\n readonly NETWORK_IDLE: number;\n readonly NETWORK_LOADING: number;\n readonly NETWORK_NO_SOURCE: number;\n};\n\ninterface HTMLMenuElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMenuElement: {\n prototype: HTMLMenuElement;\n new(): HTMLMenuElement;\n};\n\n/** Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface. */\ninterface HTMLMetaElement extends HTMLElement {\n /**\n * Gets or sets meta-information to associate with httpEquiv or name.\n */\n content: string;\n /**\n * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.\n */\n httpEquiv: string;\n /**\n * Sets or retrieves the value specified in the content attribute of the meta object.\n */\n name: string;\n /**\n * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.\n * @deprecated\n */\n scheme: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMetaElement: {\n prototype: HTMLMetaElement;\n new(): HTMLMetaElement;\n};\n\n/** 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. */\ninterface HTMLMeterElement extends HTMLElement {\n high: number;\n readonly labels: NodeListOf<HTMLLabelElement>;\n low: number;\n max: number;\n min: number;\n optimum: number;\n value: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMeterElement: {\n prototype: HTMLMeterElement;\n new(): HTMLMeterElement;\n};\n\n/** 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>. */\ninterface HTMLModElement extends HTMLElement {\n /**\n * Sets or retrieves reference information about the object.\n */\n cite: string;\n /**\n * Sets or retrieves the date and time of a modification to the object.\n */\n dateTime: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLModElement: {\n prototype: HTMLModElement;\n new(): HTMLModElement;\n};\n\n/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */\ninterface HTMLOListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n reversed: boolean;\n /**\n * The starting number.\n */\n start: number;\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOListElement: {\n prototype: HTMLOListElement;\n new(): HTMLOListElement;\n};\n\n/** 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. */\ninterface HTMLObjectElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.\n * @deprecated\n */\n archive: string;\n /** @deprecated */\n border: string;\n /**\n * Sets or retrieves the URL of the file containing the compiled Java class.\n * @deprecated\n */\n code: string;\n /**\n * Sets or retrieves the URL of the component.\n * @deprecated\n */\n codeBase: string;\n /**\n * Sets or retrieves the Internet media type for the code associated with the object.\n * @deprecated\n */\n codeType: string;\n /**\n * Retrieves the document object of the page or frame.\n */\n readonly contentDocument: Document | null;\n readonly contentWindow: WindowProxy | null;\n /**\n * Sets or retrieves the URL that references the data of the object.\n */\n data: string;\n /** @deprecated */\n declare: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the height of the object.\n */\n height: string;\n /** @deprecated */\n hspace: number;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n /**\n * Sets or retrieves a message to be displayed while an object is loading.\n * @deprecated\n */\n standby: string;\n /**\n * Sets or retrieves the MIME type of the object.\n */\n type: string;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n */\n useMap: string;\n /**\n * 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.\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /** @deprecated */\n vspace: number;\n /**\n * Sets or retrieves the width of the object.\n */\n width: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): boolean;\n getSVGDocument(): Document | null;\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLObjectElement: {\n prototype: HTMLObjectElement;\n new(): HTMLObjectElement;\n};\n\n/** 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. */\ninterface HTMLOptGroupElement extends HTMLElement {\n disabled: boolean;\n /**\n * Sets or retrieves a value that you can use to implement your own label functionality for the object.\n */\n label: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOptGroupElement: {\n prototype: HTMLOptGroupElement;\n new(): HTMLOptGroupElement;\n};\n\n/** <option> elements and inherits all classes and methods of the HTMLElement interface. */\ninterface HTMLOptionElement extends HTMLElement {\n /**\n * Sets or retrieves the status of an option.\n */\n defaultSelected: boolean;\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the ordinal position of an option in a list box.\n */\n readonly index: number;\n /**\n * Sets or retrieves a value that you can use to implement your own label functionality for the object.\n */\n label: string;\n /**\n * Sets or retrieves whether the option in the list box is the default item.\n */\n selected: boolean;\n /**\n * Sets or retrieves the text string specified by the option tag.\n */\n text: string;\n /**\n * Sets or retrieves the value which is returned to the server when the form control is submitted.\n */\n value: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOptionElement: {\n prototype: HTMLOptionElement;\n new(): HTMLOptionElement;\n};\n\n/** 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. */\ninterface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {\n /**\n * Returns the number of elements in the collection.\n *\n * When set to a smaller number, truncates the number of option elements in the corresponding container.\n *\n * When set to a greater number, adds new blank option elements to that container.\n */\n length: number;\n /**\n * Returns the index of the first selected item, if any, or −1 if there is no selected item.\n *\n * Can be set, to change the selection.\n */\n selectedIndex: number;\n /**\n * Inserts element before the node given by before.\n *\n * 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.\n *\n * If before is omitted, null, or a number out of range, then element will be added at the end of the list.\n *\n * This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.\n */\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n /**\n * Removes the item with index index from the collection.\n */\n remove(index: number): void;\n}\n\ndeclare var HTMLOptionsCollection: {\n prototype: HTMLOptionsCollection;\n new(): HTMLOptionsCollection;\n};\n\ninterface HTMLOrSVGElement {\n readonly dataset: DOMStringMap;\n nonce?: string;\n tabIndex: number;\n blur(): void;\n focus(options?: FocusOptions): void;\n}\n\n/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */\ninterface HTMLOutputElement extends HTMLElement {\n defaultValue: string;\n readonly form: HTMLFormElement | null;\n readonly htmlFor: DOMTokenList;\n readonly labels: NodeListOf<HTMLLabelElement>;\n name: string;\n /**\n * Returns the string "output".\n */\n readonly type: string;\n readonly validationMessage: string;\n readonly validity: ValidityState;\n /**\n * Returns the element\'s current value.\n *\n * Can be set, to change the value.\n */\n value: string;\n readonly willValidate: boolean;\n checkValidity(): boolean;\n reportValidity(): boolean;\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOutputElement: {\n prototype: HTMLOutputElement;\n new(): HTMLOutputElement;\n};\n\n/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */\ninterface HTMLParagraphElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLParagraphElement: {\n prototype: HTMLParagraphElement;\n new(): HTMLParagraphElement;\n};\n\n/** 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. */\ninterface HTMLParamElement extends HTMLElement {\n /**\n * Sets or retrieves the name of an input parameter for an element.\n */\n name: string;\n /**\n * Sets or retrieves the content type of the resource designated by the value attribute.\n * @deprecated\n */\n type: string;\n /**\n * Sets or retrieves the value of an input parameter for an element.\n */\n value: string;\n /**\n * Sets or retrieves the data type of the value attribute.\n * @deprecated\n */\n valueType: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLParamElement: {\n prototype: HTMLParamElement;\n new(): HTMLParamElement;\n};\n\n/** A <picture> HTML element. It doesn\'t implement specific properties or methods. */\ninterface HTMLPictureElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLPictureElement: {\n prototype: HTMLPictureElement;\n new(): HTMLPictureElement;\n};\n\n/** 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>). */\ninterface HTMLPreElement extends HTMLElement {\n /**\n * Sets or gets a value that you can use to implement your own width functionality for the object.\n * @deprecated\n */\n width: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLPreElement: {\n prototype: HTMLPreElement;\n new(): HTMLPreElement;\n};\n\n/** 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. */\ninterface HTMLProgressElement extends HTMLElement {\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * Defines the maximum, or "done" value for a progress element.\n */\n max: number;\n /**\n * 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).\n */\n readonly position: number;\n /**\n * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value.\n */\n value: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLProgressElement: {\n prototype: HTMLProgressElement;\n new(): HTMLProgressElement;\n};\n\n/** 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. */\ninterface HTMLQuoteElement extends HTMLElement {\n /**\n * Sets or retrieves reference information about the object.\n */\n cite: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLQuoteElement: {\n prototype: HTMLQuoteElement;\n new(): HTMLQuoteElement;\n};\n\n/** 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). */\ninterface HTMLScriptElement extends HTMLElement {\n async: boolean;\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n crossOrigin: string | null;\n /**\n * Sets or retrieves the status of the script.\n */\n defer: boolean;\n /**\n * Sets or retrieves the event for which the script is written.\n * @deprecated\n */\n event: string;\n /**\n * Sets or retrieves the object that is bound to the event script.\n * @deprecated\n */\n htmlFor: string;\n integrity: string;\n noModule: boolean;\n referrerPolicy: string;\n /**\n * Retrieves the URL to an external file that contains the source code or data.\n */\n src: string;\n /**\n * Retrieves or sets the text of the object as a string.\n */\n text: string;\n /**\n * Sets or retrieves the MIME type for the associated scripting engine.\n */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLScriptElement: {\n prototype: HTMLScriptElement;\n new(): HTMLScriptElement;\n};\n\n/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */\ninterface HTMLSelectElement extends HTMLElement {\n autocomplete: string;\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * Sets or retrieves the number of objects in a collection.\n */\n length: number;\n /**\n * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.\n */\n multiple: boolean;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n /**\n * Returns an HTMLOptionsCollection of the list of options.\n */\n readonly options: HTMLOptionsCollection;\n /**\n * When present, marks an element that can\'t be submitted without a value.\n */\n required: boolean;\n /**\n * Sets or retrieves the index of the selected option in a select object.\n */\n selectedIndex: number;\n readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;\n /**\n * Sets or retrieves the number of rows in the list box.\n */\n size: number;\n /**\n * Retrieves the type of select control based on the value of the MULTIPLE attribute.\n */\n readonly type: string;\n /**\n * 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.\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Sets or retrieves the value which is returned to the server when the form control is submitted.\n */\n value: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Adds an element to the areas, controlRange, or options collection.\n * @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.\n * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.\n */\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): boolean;\n /**\n * Retrieves a select object or an object from an options collection.\n * @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.\n * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.\n */\n item(index: number): HTMLOptionElement | null;\n /**\n * Retrieves a select object or an object from an options collection.\n * @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.\n */\n namedItem(name: string): HTMLOptionElement | null;\n /**\n * Removes an element from the collection.\n * @param index Number that specifies the zero-based index of the element to remove from the collection.\n */\n remove(): void;\n remove(index: number): void;\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [name: number]: HTMLOptionElement | HTMLOptGroupElement;\n}\n\ndeclare var HTMLSelectElement: {\n prototype: HTMLSelectElement;\n new(): HTMLSelectElement;\n};\n\ninterface HTMLSlotElement extends HTMLElement {\n name: string;\n assignedElements(options?: AssignedNodesOptions): Element[];\n assignedNodes(options?: AssignedNodesOptions): Node[];\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSlotElement: {\n prototype: HTMLSlotElement;\n new(): HTMLSlotElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */\ninterface HTMLSourceElement extends HTMLElement {\n /**\n * Gets or sets the intended media type of the media source.\n */\n media: string;\n sizes: string;\n /**\n * The address or URL of the a media resource that is to be considered.\n */\n src: string;\n srcset: string;\n /**\n * Gets or sets the MIME type of a media resource.\n */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSourceElement: {\n prototype: HTMLSourceElement;\n new(): HTMLSourceElement;\n};\n\n/** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */\ninterface HTMLSpanElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSpanElement: {\n prototype: HTMLSpanElement;\n new(): HTMLSpanElement;\n};\n\n/** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */\ninterface HTMLStyleElement extends HTMLElement, LinkStyle {\n /**\n * Sets or retrieves the media type.\n */\n media: string;\n /**\n * Retrieves the CSS language in which the style sheet is written.\n * @deprecated\n */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLStyleElement: {\n prototype: HTMLStyleElement;\n new(): HTMLStyleElement;\n};\n\n/** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */\ninterface HTMLTableCaptionElement extends HTMLElement {\n /**\n * Sets or retrieves the alignment of the caption or legend.\n * @deprecated\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableCaptionElement: {\n prototype: HTMLTableCaptionElement;\n new(): HTMLTableCaptionElement;\n};\n\n/** 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. */\ninterface HTMLTableCellElement extends HTMLElement {\n /**\n * Sets or retrieves abbreviated text for the object.\n */\n abbr: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /**\n * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.\n * @deprecated\n */\n axis: string;\n /** @deprecated */\n bgColor: string;\n /**\n * Retrieves the position of the object in the cells collection of a row.\n */\n readonly cellIndex: number;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /**\n * Sets or retrieves the number columns in the table that the object should span.\n */\n colSpan: number;\n /**\n * Sets or retrieves a list of header cells that provide information for the object.\n */\n headers: string;\n /**\n * Sets or retrieves the height of the object.\n * @deprecated\n */\n height: string;\n /**\n * Sets or retrieves whether the browser automatically performs wordwrap.\n * @deprecated\n */\n noWrap: boolean;\n /**\n * Sets or retrieves how many rows in a table the cell should span.\n */\n rowSpan: number;\n /**\n * Sets or retrieves the group of cells in a table to which the object\'s information applies.\n */\n scope: string;\n /** @deprecated */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableCellElement: {\n prototype: HTMLTableCellElement;\n new(): HTMLTableCellElement;\n};\n\n/** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */\ninterface HTMLTableColElement extends HTMLElement {\n /**\n * Sets or retrieves the alignment of the object relative to the display or table.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /**\n * Sets or retrieves the number of columns in the group.\n */\n span: number;\n /** @deprecated */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableColElement: {\n prototype: HTMLTableColElement;\n new(): HTMLTableColElement;\n};\n\n/** @deprecated prefer HTMLTableCellElement */\ninterface HTMLTableDataCellElement extends HTMLTableCellElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** 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. */\ninterface HTMLTableElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n bgColor: string;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n * @deprecated\n */\n border: string;\n /**\n * Retrieves the caption object of a table.\n */\n caption: HTMLTableCaptionElement | null;\n /**\n * Sets or retrieves the amount of space between the border of the cell and the content of the cell.\n * @deprecated\n */\n cellPadding: string;\n /**\n * Sets or retrieves the amount of space between cells in a table.\n * @deprecated\n */\n cellSpacing: string;\n /**\n * Sets or retrieves the way the border frame around the table is displayed.\n * @deprecated\n */\n frame: string;\n /**\n * Sets or retrieves the number of horizontal rows contained in the object.\n */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /**\n * Sets or retrieves which dividing lines (inner borders) are displayed.\n * @deprecated\n */\n rules: string;\n /**\n * Sets or retrieves a description and/or structure of the object.\n * @deprecated\n */\n summary: string;\n /**\n * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.\n */\n readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;\n /**\n * Retrieves the tFoot object of the table.\n */\n tFoot: HTMLTableSectionElement | null;\n /**\n * Retrieves the tHead object of the table.\n */\n tHead: HTMLTableSectionElement | null;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\n width: string;\n /**\n * Creates an empty caption element in the table.\n */\n createCaption(): HTMLTableCaptionElement;\n /**\n * Creates an empty tBody element in the table.\n */\n createTBody(): HTMLTableSectionElement;\n /**\n * Creates an empty tFoot element in the table.\n */\n createTFoot(): HTMLTableSectionElement;\n /**\n * Returns the tHead element object if successful, or null otherwise.\n */\n createTHead(): HTMLTableSectionElement;\n /**\n * Deletes the caption element and its contents from the table.\n */\n deleteCaption(): void;\n /**\n * Removes the specified row (tr) from the element and from the rows collection.\n * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n */\n deleteRow(index: number): void;\n /**\n * Deletes the tFoot element and its contents from the table.\n */\n deleteTFoot(): void;\n /**\n * Deletes the tHead element and its contents from the table.\n */\n deleteTHead(): void;\n /**\n * Creates a new row (tr) in the table, and adds the row to the rows collection.\n * @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.\n */\n insertRow(index?: number): HTMLTableRowElement;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableElement: {\n prototype: HTMLTableElement;\n new(): HTMLTableElement;\n};\n\n/** @deprecated prefer HTMLTableCellElement */\ninterface HTMLTableHeaderCellElement extends HTMLTableCellElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** 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. */\ninterface HTMLTableRowElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n bgColor: string;\n /**\n * Retrieves a collection of all cells in the table row.\n */\n readonly cells: HTMLCollectionOf<HTMLTableCellElement>;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /**\n * Retrieves the position of the object in the rows collection for the table.\n */\n readonly rowIndex: number;\n /**\n * Retrieves the position of the object in the collection.\n */\n readonly sectionRowIndex: number;\n /** @deprecated */\n vAlign: string;\n /**\n * Removes the specified cell from the table row, as well as from the cells collection.\n * @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.\n */\n deleteCell(index: number): void;\n /**\n * Creates a new cell in the table row, and adds the cell to the cells collection.\n * @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.\n */\n insertCell(index?: number): HTMLTableCellElement;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableRowElement: {\n prototype: HTMLTableRowElement;\n new(): HTMLTableRowElement;\n};\n\n/** 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. */\ninterface HTMLTableSectionElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /**\n * Sets or retrieves the number of horizontal rows contained in the object.\n */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /** @deprecated */\n vAlign: string;\n /**\n * Removes the specified row (tr) from the element and from the rows collection.\n * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n */\n deleteRow(index: number): void;\n /**\n * Creates a new row (tr) in the table, and adds the row to the rows collection.\n * @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.\n */\n insertRow(index?: number): HTMLTableRowElement;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableSectionElement: {\n prototype: HTMLTableSectionElement;\n new(): HTMLTableSectionElement;\n};\n\n/** Enables access to the contents of an HTML <template> element. */\ninterface HTMLTemplateElement extends HTMLElement {\n /**\n * Returns the template contents (a DocumentFragment).\n */\n readonly content: DocumentFragment;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTemplateElement: {\n prototype: HTMLTemplateElement;\n new(): HTMLTemplateElement;\n};\n\n/** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */\ninterface HTMLTextAreaElement extends HTMLElement {\n autocomplete: string;\n /**\n * Sets or retrieves the width of the object.\n */\n cols: number;\n /**\n * Sets or retrieves the initial contents of the object.\n */\n defaultValue: string;\n dirName: string;\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n */\n readonly form: HTMLFormElement | null;\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * Sets or retrieves the maximum number of characters that the user can enter in a text control.\n */\n maxLength: number;\n minLength: number;\n /**\n * Sets or retrieves the name of the object.\n */\n name: string;\n /**\n * 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.\n */\n placeholder: string;\n /**\n * Sets or retrieves the value indicated whether the content of the object is read-only.\n */\n readOnly: boolean;\n /**\n * When present, marks an element that can\'t be submitted without a value.\n */\n required: boolean;\n /**\n * Sets or retrieves the number of horizontal rows contained in the object.\n */\n rows: number;\n selectionDirection: "forward" | "backward" | "none";\n /**\n * Gets or sets the end position or offset of a text selection.\n */\n selectionEnd: number;\n /**\n * Gets or sets the starting position or offset of a text selection.\n */\n selectionStart: number;\n readonly textLength: number;\n /**\n * Retrieves the type of control.\n */\n readonly type: string;\n /**\n * 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.\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n */\n readonly validity: ValidityState;\n /**\n * Retrieves or sets the text in the entry field of the textArea element.\n */\n value: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n */\n readonly willValidate: boolean;\n /**\n * Sets or retrieves how to handle wordwrapping in the object.\n */\n wrap: string;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n */\n checkValidity(): boolean;\n reportValidity(): boolean;\n /**\n * Highlights the input area of a form element.\n */\n select(): void;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n setRangeText(replacement: string): void;\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n /**\n * Sets the start and end positions of a selection in a text field.\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n */\n setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTextAreaElement: {\n prototype: HTMLTextAreaElement;\n new(): HTMLTextAreaElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */\ninterface HTMLTimeElement extends HTMLElement {\n dateTime: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTimeElement: {\n prototype: HTMLTimeElement;\n new(): HTMLTimeElement;\n};\n\n/** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */\ninterface HTMLTitleElement extends HTMLElement {\n /**\n * Retrieves or sets the text of the object as a string.\n */\n text: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTitleElement: {\n prototype: HTMLTitleElement;\n new(): HTMLTitleElement;\n};\n\n/** The HTMLTrackElement */\ninterface HTMLTrackElement extends HTMLElement {\n default: boolean;\n kind: string;\n label: string;\n readonly readyState: number;\n src: string;\n srclang: string;\n /**\n * Returns the TextTrack object corresponding to the text track of the track element.\n */\n readonly track: TextTrack;\n readonly ERROR: number;\n readonly LOADED: number;\n readonly LOADING: number;\n readonly NONE: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTrackElement: {\n prototype: HTMLTrackElement;\n new(): HTMLTrackElement;\n readonly ERROR: number;\n readonly LOADED: number;\n readonly LOADING: number;\n readonly NONE: number;\n};\n\n/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */\ninterface HTMLUListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n /** @deprecated */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUListElement: {\n prototype: HTMLUListElement;\n new(): HTMLUListElement;\n};\n\n/** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */\ninterface HTMLUnknownElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUnknownElement: {\n prototype: HTMLUnknownElement;\n new(): HTMLUnknownElement;\n};\n\ninterface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {\n "enterpictureinpicture": Event;\n "leavepictureinpicture": Event;\n}\n\n/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */\ninterface HTMLVideoElement extends HTMLMediaElement {\n disablePictureInPicture: boolean;\n /**\n * Gets or sets the height of the video element.\n */\n height: number;\n onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;\n onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;\n /**\n * 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.\n */\n playsInline: boolean;\n /**\n * 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.\n */\n poster: string;\n /**\n * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.\n */\n readonly videoHeight: number;\n /**\n * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.\n */\n readonly videoWidth: number;\n /**\n * Gets or sets the width of the video element.\n */\n width: number;\n getVideoPlaybackQuality(): VideoPlaybackQuality;\n requestPictureInPicture(): Promise<PictureInPictureWindow>;\n addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLVideoElement: {\n prototype: HTMLVideoElement;\n new(): HTMLVideoElement;\n};\n\n/** Events that fire when the fragment identifier of the URL has changed. */\ninterface HashChangeEvent extends Event {\n /**\n * Returns the URL of the session history entry that is now current.\n */\n readonly newURL: string;\n /**\n * Returns the URL of the session history entry that was previously current.\n */\n readonly oldURL: string;\n}\n\ndeclare var HashChangeEvent: {\n prototype: HashChangeEvent;\n new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;\n};\n\n/** 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 of zero or more name and value pairs.  You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */\ninterface Headers {\n append(name: string, value: string): void;\n delete(name: string): void;\n get(name: string): string | null;\n has(name: string): boolean;\n set(name: string, value: string): void;\n forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;\n}\n\ndeclare var Headers: {\n prototype: Headers;\n new(init?: HeadersInit): Headers;\n};\n\n/** Allows manipulation of the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */\ninterface History {\n readonly length: number;\n scrollRestoration: ScrollRestoration;\n readonly state: any;\n back(): void;\n forward(): void;\n go(delta?: number): void;\n pushState(data: any, unused: string, url?: string | URL | null): void;\n replaceState(data: any, unused: string, url?: string | URL | null): void;\n}\n\ndeclare var History: {\n prototype: History;\n new(): History;\n};\n\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */\ninterface IDBCursor {\n /**\n * Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.\n */\n readonly direction: IDBCursorDirection;\n /**\n * Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n */\n readonly key: IDBValidKey;\n /**\n * Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n */\n readonly primaryKey: IDBValidKey;\n readonly request: IDBRequest;\n /**\n * Returns the IDBObjectStore or IDBIndex the cursor was opened from.\n */\n readonly source: IDBObjectStore | IDBIndex;\n /**\n * Advances the cursor through the next count records in range.\n */\n advance(count: number): void;\n /**\n * Advances the cursor to the next record in range.\n */\n continue(key?: IDBValidKey): void;\n /**\n * 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.\n */\n continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n /**\n * Delete the record pointed at by the cursor with a new value.\n *\n * If successful, request\'s result will be undefined.\n */\n delete(): IDBRequest<undefined>;\n /**\n * Updated the record pointed at by the cursor with a new value.\n *\n * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n update(value: any): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBCursor: {\n prototype: IDBCursor;\n new(): IDBCursor;\n};\n\n/** 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. */\ninterface IDBCursorWithValue extends IDBCursor {\n /**\n * Returns the cursor\'s current value.\n */\n readonly value: any;\n}\n\ndeclare var IDBCursorWithValue: {\n prototype: IDBCursorWithValue;\n new(): IDBCursorWithValue;\n};\n\ninterface IDBDatabaseEventMap {\n "abort": Event;\n "close": Event;\n "error": Event;\n "versionchange": IDBVersionChangeEvent;\n}\n\n/** 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. */\ninterface IDBDatabase extends EventTarget {\n /**\n * Returns the name of the database.\n */\n readonly name: string;\n /**\n * Returns a list of the names of object stores in the database.\n */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n onclose: ((this: IDBDatabase, ev: Event) => any) | null;\n onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;\n /**\n * Returns the version of the database.\n */\n readonly version: number;\n /**\n * Closes the connection once all running transactions have finished.\n */\n close(): void;\n /**\n * Creates a new object store with the given name and options and returns a new IDBObjectStore.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n /**\n * Deletes the object store with the given name.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n deleteObjectStore(name: string): void;\n /**\n * 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.\n */\n transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;\n addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBDatabase: {\n prototype: IDBDatabase;\n new(): IDBDatabase;\n};\n\n/** 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.) */\ninterface IDBFactory {\n /**\n * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n *\n * Throws a "DataError" DOMException if either input is not a valid key.\n */\n cmp(first: any, second: any): number;\n databases(): Promise<IDBDatabaseInfo[]>;\n /**\n * 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.\n */\n deleteDatabase(name: string): IDBOpenDBRequest;\n /**\n * 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.\n */\n open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n prototype: IDBFactory;\n new(): IDBFactory;\n};\n\n/** 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. */\ninterface IDBIndex {\n readonly keyPath: string | string[];\n readonly multiEntry: boolean;\n /**\n * Returns the name of the index.\n */\n name: string;\n /**\n * Returns the IDBObjectStore the index belongs to.\n */\n readonly objectStore: IDBObjectStore;\n readonly unique: boolean;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue, or null if there were no matching records.\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * 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.\n *\n * If successful, request\'s result will be an IDBCursor, or null if there were no matching records.\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n}\n\ndeclare var IDBIndex: {\n prototype: IDBIndex;\n new(): IDBIndex;\n};\n\n/** 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: */\ninterface IDBKeyRange {\n /**\n * Returns lower bound, or undefined if none.\n */\n readonly lower: any;\n /**\n * Returns true if the lower open flag is set, and false otherwise.\n */\n readonly lowerOpen: boolean;\n /**\n * Returns upper bound, or undefined if none.\n */\n readonly upper: any;\n /**\n * Returns true if the upper open flag is set, and false otherwise.\n */\n readonly upperOpen: boolean;\n /**\n * Returns true if key is included in the range, and false otherwise.\n */\n includes(key: any): boolean;\n}\n\ndeclare var IDBKeyRange: {\n prototype: IDBKeyRange;\n new(): IDBKeyRange;\n /**\n * 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.\n */\n bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.\n */\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange spanning only key.\n */\n only(value: any): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.\n */\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) */\ninterface IDBObjectStore {\n /**\n * Returns true if the store has a key generator, and false otherwise.\n */\n readonly autoIncrement: boolean;\n /**\n * Returns a list of the names of indexes in the store.\n */\n readonly indexNames: DOMStringList;\n /**\n * Returns the key path of the store, or null if none.\n */\n readonly keyPath: string | string[];\n /**\n * Returns the name of the store.\n */\n name: string;\n /**\n * Returns the associated transaction.\n */\n readonly transaction: IDBTransaction;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * 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.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n /**\n * Deletes all records in store.\n *\n * If successful, request\'s result will be undefined.\n */\n clear(): IDBRequest<undefined>;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * 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.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n /**\n * Deletes records in store with the given key or in the given key range in query.\n *\n * If successful, request\'s result will be undefined.\n */\n delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n /**\n * Deletes the index in store with the given name.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n deleteIndex(name: string): void;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n index(name: string): IDBIndex;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * 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.\n *\n * If successful, request\'s result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * 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.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBObjectStore: {\n prototype: IDBObjectStore;\n new(): IDBObjectStore;\n};\n\ninterface IDBOpenDBRequestEventMap extends IDBRequestEventMap {\n "blocked": Event;\n "upgradeneeded": IDBVersionChangeEvent;\n}\n\n/** Also inherits methods from its parents IDBRequest and EventTarget. */\ninterface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {\n onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;\n onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBOpenDBRequest: {\n prototype: IDBOpenDBRequest;\n new(): IDBOpenDBRequest;\n};\n\ninterface IDBRequestEventMap {\n "error": Event;\n "success": Event;\n}\n\n/** 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. */\ninterface IDBRequest<T = any> extends EventTarget {\n /**\n * 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.\n */\n readonly error: DOMException | null;\n onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;\n onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /**\n * Returns "pending" until a request is complete, then returns "done".\n */\n readonly readyState: IDBRequestReadyState;\n /**\n * When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.\n */\n readonly result: T;\n /**\n * Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.\n */\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n /**\n * 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.\n */\n readonly transaction: IDBTransaction | null;\n addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBRequest: {\n prototype: IDBRequest;\n new(): IDBRequest;\n};\n\ninterface IDBTransactionEventMap {\n "abort": Event;\n "complete": Event;\n "error": Event;\n}\n\ninterface IDBTransaction extends EventTarget {\n /**\n * Returns the transaction\'s connection.\n */\n readonly db: IDBDatabase;\n /**\n * If the transaction was aborted, returns the error (a DOMException) providing the reason.\n */\n readonly error: DOMException | null;\n /**\n * Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.\n */\n readonly mode: IDBTransactionMode;\n /**\n * 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.\n */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBTransaction, ev: Event) => any) | null;\n oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;\n onerror: ((this: IDBTransaction, ev: Event) => any) | null;\n /**\n * Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.\n */\n abort(): void;\n commit(): void;\n /**\n * Returns an IDBObjectStore in the transaction\'s scope.\n */\n objectStore(name: string): IDBObjectStore;\n addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBTransaction: {\n prototype: IDBTransaction;\n new(): IDBTransaction;\n};\n\n/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */\ninterface IDBVersionChangeEvent extends Event {\n readonly newVersion: number | null;\n readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n prototype: IDBVersionChangeEvent;\n new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\n\n/** The IIRFilterNode interface of the Web Audio API is a AudioNode processor which implements a general infinite impulse response (IIR)  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. */\ninterface IIRFilterNode extends AudioNode {\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var IIRFilterNode: {\n prototype: IIRFilterNode;\n new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;\n};\n\ninterface IdleDeadline {\n readonly didTimeout: boolean;\n timeRemaining(): DOMHighResTimeStamp;\n}\n\ndeclare var IdleDeadline: {\n prototype: IdleDeadline;\n new(): IdleDeadline;\n};\n\ninterface ImageBitmap {\n /**\n * Returns the intrinsic height of the image, in CSS pixels.\n */\n readonly height: number;\n /**\n * Returns the intrinsic width of the image, in CSS pixels.\n */\n readonly width: number;\n /**\n * Releases imageBitmap\'s underlying bitmap data.\n */\n close(): void;\n}\n\ndeclare var ImageBitmap: {\n prototype: ImageBitmap;\n new(): ImageBitmap;\n};\n\ninterface ImageBitmapRenderingContext {\n /**\n * Returns the canvas element that the context is bound to.\n */\n readonly canvas: HTMLCanvasElement;\n /**\n * Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.\n */\n transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n prototype: ImageBitmapRenderingContext;\n new(): ImageBitmapRenderingContext;\n};\n\n/** 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(). */\ninterface ImageData {\n /**\n * Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.\n */\n readonly data: Uint8ClampedArray;\n /**\n * Returns the actual dimensions of the data in the ImageData object, in pixels.\n */\n readonly height: number;\n /**\n * Returns the actual dimensions of the data in the ImageData object, in pixels.\n */\n readonly width: number;\n}\n\ndeclare var ImageData: {\n prototype: ImageData;\n new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\ninterface InnerHTML {\n innerHTML: string;\n}\n\ninterface InputEvent extends UIEvent {\n readonly data: string | null;\n readonly dataTransfer: DataTransfer | null;\n readonly inputType: string;\n readonly isComposing: boolean;\n getTargetRanges(): StaticRange[];\n}\n\ndeclare var InputEvent: {\n prototype: InputEvent;\n new(type: string, eventInitDict?: InputEventInit): InputEvent;\n};\n\n/** 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. */\ninterface IntersectionObserver {\n readonly root: Element | Document | null;\n readonly rootMargin: string;\n readonly thresholds: ReadonlyArray<number>;\n disconnect(): void;\n observe(target: Element): void;\n takeRecords(): IntersectionObserverEntry[];\n unobserve(target: Element): void;\n}\n\ndeclare var IntersectionObserver: {\n prototype: IntersectionObserver;\n new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;\n};\n\n/** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */\ninterface IntersectionObserverEntry {\n readonly boundingClientRect: DOMRectReadOnly;\n readonly intersectionRatio: number;\n readonly intersectionRect: DOMRectReadOnly;\n readonly isIntersecting: boolean;\n readonly rootBounds: DOMRectReadOnly | null;\n readonly target: Element;\n readonly time: DOMHighResTimeStamp;\n}\n\ndeclare var IntersectionObserverEntry: {\n prototype: IntersectionObserverEntry;\n new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;\n};\n\ninterface KHR_parallel_shader_compile {\n readonly COMPLETION_STATUS_KHR: GLenum;\n}\n\n/** 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. */\ninterface KeyboardEvent extends UIEvent {\n readonly altKey: boolean;\n /** @deprecated */\n readonly charCode: number;\n readonly code: string;\n readonly ctrlKey: boolean;\n readonly isComposing: boolean;\n readonly key: string;\n /** @deprecated */\n readonly keyCode: number;\n readonly location: number;\n readonly metaKey: boolean;\n readonly repeat: boolean;\n readonly shiftKey: boolean;\n getModifierState(keyArg: string): boolean;\n /** @deprecated */\n initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;\n readonly DOM_KEY_LOCATION_LEFT: number;\n readonly DOM_KEY_LOCATION_NUMPAD: number;\n readonly DOM_KEY_LOCATION_RIGHT: number;\n readonly DOM_KEY_LOCATION_STANDARD: number;\n}\n\ndeclare var KeyboardEvent: {\n prototype: KeyboardEvent;\n new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;\n readonly DOM_KEY_LOCATION_LEFT: number;\n readonly DOM_KEY_LOCATION_NUMPAD: number;\n readonly DOM_KEY_LOCATION_RIGHT: number;\n readonly DOM_KEY_LOCATION_STANDARD: number;\n};\n\ninterface KeyframeEffect extends AnimationEffect {\n composite: CompositeOperation;\n iterationComposite: IterationCompositeOperation;\n pseudoElement: string | null;\n target: Element | null;\n getKeyframes(): ComputedKeyframe[];\n setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;\n}\n\ndeclare var KeyframeEffect: {\n prototype: KeyframeEffect;\n new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;\n new(source: KeyframeEffect): KeyframeEffect;\n};\n\ninterface LinkStyle {\n readonly sheet: CSSStyleSheet | null;\n}\n\n/** 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. */\ninterface Location {\n /**\n * Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context.\n */\n readonly ancestorOrigins: DOMStringList;\n /**\n * Returns the Location object\'s URL\'s fragment (includes leading "#" if non-empty).\n *\n * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").\n */\n hash: string;\n /**\n * Returns the Location object\'s URL\'s host and port (if different from the default port for the scheme).\n *\n * Can be set, to navigate to the same URL with a changed host and port.\n */\n host: string;\n /**\n * Returns the Location object\'s URL\'s host.\n *\n * Can be set, to navigate to the same URL with a changed host.\n */\n hostname: string;\n /**\n * Returns the Location object\'s URL.\n *\n * Can be set, to navigate to the given URL.\n */\n href: string;\n toString(): string;\n /**\n * Returns the Location object\'s URL\'s origin.\n */\n readonly origin: string;\n /**\n * Returns the Location object\'s URL\'s path.\n *\n * Can be set, to navigate to the same URL with a changed path.\n */\n pathname: string;\n /**\n * Returns the Location object\'s URL\'s port.\n *\n * Can be set, to navigate to the same URL with a changed port.\n */\n port: string;\n /**\n * Returns the Location object\'s URL\'s scheme.\n *\n * Can be set, to navigate to the same URL with a changed scheme.\n */\n protocol: string;\n /**\n * Returns the Location object\'s URL\'s query (includes leading "?" if non-empty).\n *\n * Can be set, to navigate to the same URL with a changed query (ignores leading "?").\n */\n search: string;\n /**\n * Navigates to the given URL.\n */\n assign(url: string | URL): void;\n /**\n * Reloads the current page.\n */\n reload(): void;\n /**\n * Removes the current page from the session history and navigates to the given URL.\n */\n replace(url: string | URL): void;\n}\n\ndeclare var Location: {\n prototype: Location;\n new(): Location;\n};\n\ninterface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {\n}\n\ninterface MathMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {\n addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MathMLElement: {\n prototype: MathMLElement;\n new(): MathMLElement;\n};\n\ninterface MediaCapabilities {\n decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n prototype: MediaCapabilities;\n new(): MediaCapabilities;\n};\n\n/** The MediaDevicesInfo interface contains information that describes a single media input or output device. */\ninterface MediaDeviceInfo {\n readonly deviceId: string;\n readonly groupId: string;\n readonly kind: MediaDeviceKind;\n readonly label: string;\n toJSON(): any;\n}\n\ndeclare var MediaDeviceInfo: {\n prototype: MediaDeviceInfo;\n new(): MediaDeviceInfo;\n};\n\ninterface MediaDevicesEventMap {\n "devicechange": Event;\n}\n\n/** 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. */\ninterface MediaDevices extends EventTarget {\n ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;\n enumerateDevices(): Promise<MediaDeviceInfo[]>;\n getDisplayMedia(constraints?: DisplayMediaStreamConstraints): Promise<MediaStream>;\n getSupportedConstraints(): MediaTrackSupportedConstraints;\n getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;\n addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaDevices: {\n prototype: MediaDevices;\n new(): MediaDevices;\n};\n\n/** 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. */\ninterface MediaElementAudioSourceNode extends AudioNode {\n readonly mediaElement: HTMLMediaElement;\n}\n\ndeclare var MediaElementAudioSourceNode: {\n prototype: MediaElementAudioSourceNode;\n new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;\n};\n\ninterface MediaEncryptedEvent extends Event {\n readonly initData: ArrayBuffer | null;\n readonly initDataType: string;\n}\n\ndeclare var MediaEncryptedEvent: {\n prototype: MediaEncryptedEvent;\n new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;\n};\n\n/** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */\ninterface MediaError {\n readonly code: number;\n readonly message: string;\n readonly MEDIA_ERR_ABORTED: number;\n readonly MEDIA_ERR_DECODE: number;\n readonly MEDIA_ERR_NETWORK: number;\n readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;\n}\n\ndeclare var MediaError: {\n prototype: MediaError;\n new(): MediaError;\n readonly MEDIA_ERR_ABORTED: number;\n readonly MEDIA_ERR_DECODE: number;\n readonly MEDIA_ERR_NETWORK: number;\n readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;\n};\n\n/** This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session. */\ninterface MediaKeyMessageEvent extends Event {\n readonly message: ArrayBuffer;\n readonly messageType: MediaKeyMessageType;\n}\n\ndeclare var MediaKeyMessageEvent: {\n prototype: MediaKeyMessageEvent;\n new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;\n};\n\ninterface MediaKeySessionEventMap {\n "keystatuseschange": Event;\n "message": MediaKeyMessageEvent;\n}\n\n/** This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM). */\ninterface MediaKeySession extends EventTarget {\n readonly closed: Promise<MediaKeySessionClosedReason>;\n readonly expiration: number;\n readonly keyStatuses: MediaKeyStatusMap;\n onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;\n onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;\n readonly sessionId: string;\n close(): Promise<void>;\n generateRequest(initDataType: string, initData: BufferSource): Promise<void>;\n load(sessionId: string): Promise<boolean>;\n remove(): Promise<void>;\n update(response: BufferSource): Promise<void>;\n addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaKeySession: {\n prototype: MediaKeySession;\n new(): MediaKeySession;\n};\n\n/** This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs. */\ninterface MediaKeyStatusMap {\n readonly size: number;\n get(keyId: BufferSource): MediaKeyStatus | undefined;\n has(keyId: BufferSource): boolean;\n forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;\n}\n\ndeclare var MediaKeyStatusMap: {\n prototype: MediaKeyStatusMap;\n new(): MediaKeyStatusMap;\n};\n\n/** 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. */\ninterface MediaKeySystemAccess {\n readonly keySystem: string;\n createMediaKeys(): Promise<MediaKeys>;\n getConfiguration(): MediaKeySystemConfiguration;\n}\n\ndeclare var MediaKeySystemAccess: {\n prototype: MediaKeySystemAccess;\n new(): MediaKeySystemAccess;\n};\n\n/** This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback. */\ninterface MediaKeys {\n createSession(sessionType?: MediaKeySessionType): MediaKeySession;\n setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;\n}\n\ndeclare var MediaKeys: {\n prototype: MediaKeys;\n new(): MediaKeys;\n};\n\ninterface MediaList {\n readonly length: number;\n mediaText: string;\n toString(): string;\n appendMedium(medium: string): void;\n deleteMedium(medium: string): void;\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var MediaList: {\n prototype: MediaList;\n new(): MediaList;\n};\n\ninterface MediaMetadata {\n album: string;\n artist: string;\n artwork: ReadonlyArray<MediaImage>;\n title: string;\n}\n\ndeclare var MediaMetadata: {\n prototype: MediaMetadata;\n new(init?: MediaMetadataInit): MediaMetadata;\n};\n\ninterface MediaQueryListEventMap {\n "change": MediaQueryListEvent;\n}\n\n/** 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). */\ninterface MediaQueryList extends EventTarget {\n readonly matches: boolean;\n readonly media: string;\n onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;\n /** @deprecated */\n addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;\n /** @deprecated */\n removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;\n addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaQueryList: {\n prototype: MediaQueryList;\n new(): MediaQueryList;\n};\n\ninterface MediaQueryListEvent extends Event {\n readonly matches: boolean;\n readonly media: string;\n}\n\ndeclare var MediaQueryListEvent: {\n prototype: MediaQueryListEvent;\n new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;\n};\n\ninterface MediaRecorderEventMap {\n "dataavailable": BlobEvent;\n "error": Event;\n "pause": Event;\n "resume": Event;\n "start": Event;\n "stop": Event;\n}\n\ninterface MediaRecorder extends EventTarget {\n readonly audioBitsPerSecond: number;\n readonly mimeType: string;\n ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;\n onerror: ((this: MediaRecorder, ev: Event) => any) | null;\n onpause: ((this: MediaRecorder, ev: Event) => any) | null;\n onresume: ((this: MediaRecorder, ev: Event) => any) | null;\n onstart: ((this: MediaRecorder, ev: Event) => any) | null;\n onstop: ((this: MediaRecorder, ev: Event) => any) | null;\n readonly state: RecordingState;\n readonly stream: MediaStream;\n readonly videoBitsPerSecond: number;\n pause(): void;\n requestData(): void;\n resume(): void;\n start(timeslice?: number): void;\n stop(): void;\n addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaRecorder: {\n prototype: MediaRecorder;\n new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;\n isTypeSupported(type: string): boolean;\n};\n\ninterface MediaRecorderErrorEvent extends Event {\n readonly error: DOMException;\n}\n\ndeclare var MediaRecorderErrorEvent: {\n prototype: MediaRecorderErrorEvent;\n new(type: string, eventInitDict: MediaRecorderErrorEventInit): MediaRecorderErrorEvent;\n};\n\ninterface MediaSession {\n metadata: MediaMetadata | null;\n playbackState: MediaSessionPlaybackState;\n setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;\n setPositionState(state?: MediaPositionState): void;\n}\n\ndeclare var MediaSession: {\n prototype: MediaSession;\n new(): MediaSession;\n};\n\ninterface MediaSourceEventMap {\n "sourceclose": Event;\n "sourceended": Event;\n "sourceopen": Event;\n}\n\n/** 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. */\ninterface MediaSource extends EventTarget {\n readonly activeSourceBuffers: SourceBufferList;\n duration: number;\n onsourceclose: ((this: MediaSource, ev: Event) => any) | null;\n onsourceended: ((this: MediaSource, ev: Event) => any) | null;\n onsourceopen: ((this: MediaSource, ev: Event) => any) | null;\n readonly readyState: ReadyState;\n readonly sourceBuffers: SourceBufferList;\n addSourceBuffer(type: string): SourceBuffer;\n clearLiveSeekableRange(): void;\n endOfStream(error?: EndOfStreamError): void;\n removeSourceBuffer(sourceBuffer: SourceBuffer): void;\n setLiveSeekableRange(start: number, end: number): void;\n addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaSource: {\n prototype: MediaSource;\n new(): MediaSource;\n isTypeSupported(type: string): boolean;\n};\n\ninterface MediaStreamEventMap {\n "addtrack": MediaStreamTrackEvent;\n "removetrack": MediaStreamTrackEvent;\n}\n\n/** A stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */\ninterface MediaStream extends EventTarget {\n readonly active: boolean;\n readonly id: string;\n onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n addTrack(track: MediaStreamTrack): void;\n clone(): MediaStream;\n getAudioTracks(): MediaStreamTrack[];\n getTrackById(trackId: string): MediaStreamTrack | null;\n getTracks(): MediaStreamTrack[];\n getVideoTracks(): MediaStreamTrack[];\n removeTrack(track: MediaStreamTrack): void;\n addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaStream: {\n prototype: MediaStream;\n new(): MediaStream;\n new(stream: MediaStream): MediaStream;\n new(tracks: MediaStreamTrack[]): MediaStream;\n};\n\ninterface MediaStreamAudioDestinationNode extends AudioNode {\n readonly stream: MediaStream;\n}\n\ndeclare var MediaStreamAudioDestinationNode: {\n prototype: MediaStreamAudioDestinationNode;\n new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;\n};\n\n/** 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. */\ninterface MediaStreamAudioSourceNode extends AudioNode {\n readonly mediaStream: MediaStream;\n}\n\ndeclare var MediaStreamAudioSourceNode: {\n prototype: MediaStreamAudioSourceNode;\n new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;\n};\n\ninterface MediaStreamTrackEventMap {\n "ended": Event;\n "mute": Event;\n "unmute": Event;\n}\n\n/** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */\ninterface MediaStreamTrack extends EventTarget {\n contentHint: string;\n enabled: boolean;\n readonly id: string;\n readonly kind: string;\n readonly label: string;\n readonly muted: boolean;\n onended: ((this: MediaStreamTrack, ev: Event) => any) | null;\n onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n readonly readyState: MediaStreamTrackState;\n applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;\n clone(): MediaStreamTrack;\n getCapabilities(): MediaTrackCapabilities;\n getConstraints(): MediaTrackConstraints;\n getSettings(): MediaTrackSettings;\n stop(): void;\n addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaStreamTrack: {\n prototype: MediaStreamTrack;\n new(): MediaStreamTrack;\n};\n\n/** 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. */\ninterface MediaStreamTrackEvent extends Event {\n readonly track: MediaStreamTrack;\n}\n\ndeclare var MediaStreamTrackEvent: {\n prototype: MediaStreamTrackEvent;\n new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;\n};\n\n/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */\ninterface MessageChannel {\n /**\n * Returns the first MessagePort object.\n */\n readonly port1: MessagePort;\n /**\n * Returns the second MessagePort object.\n */\n readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n prototype: MessageChannel;\n new(): MessageChannel;\n};\n\n/** A message received by a target object. */\ninterface MessageEvent<T = any> extends Event {\n /**\n * Returns the data of the message.\n */\n readonly data: T;\n /**\n * Returns the last event ID string, for server-sent events.\n */\n readonly lastEventId: string;\n /**\n * Returns the origin of the message, for server-sent events and cross-document messaging.\n */\n readonly origin: string;\n /**\n * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.\n */\n readonly ports: ReadonlyArray<MessagePort>;\n /**\n * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.\n */\n readonly source: MessageEventSource | null;\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;\n}\n\ndeclare var MessageEvent: {\n prototype: MessageEvent;\n new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;\n};\n\ninterface MessagePortEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** 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. */\ninterface MessagePort extends EventTarget {\n onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /**\n * Disconnects the port, so that it is no longer active.\n */\n close(): void;\n /**\n * 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.\n *\n * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: PostMessageOptions): void;\n /**\n * Begins dispatching messages received on the port.\n */\n start(): void;\n addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MessagePort: {\n prototype: MessagePort;\n new(): MessagePort;\n};\n\n/**\n * Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.\n * @deprecated\n */\ninterface MimeType {\n /**\n * Returns the MIME type\'s description.\n * @deprecated\n */\n readonly description: string;\n /**\n * Returns the Plugin object that implements this MIME type.\n * @deprecated\n */\n readonly enabledPlugin: Plugin;\n /**\n * Returns the MIME type\'s typical file extensions, in a comma-separated list.\n * @deprecated\n */\n readonly suffixes: string;\n /**\n * Returns the MIME type.\n * @deprecated\n */\n readonly type: string;\n}\n\n/** @deprecated */\ndeclare var MimeType: {\n prototype: MimeType;\n new(): MimeType;\n};\n\n/**\n * Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.\n * @deprecated\n */\ninterface MimeTypeArray {\n /** @deprecated */\n readonly length: number;\n /** @deprecated */\n item(index: number): MimeType | null;\n /** @deprecated */\n namedItem(name: string): MimeType | null;\n [index: number]: MimeType;\n}\n\n/** @deprecated */\ndeclare var MimeTypeArray: {\n prototype: MimeTypeArray;\n new(): MimeTypeArray;\n};\n\n/** 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. */\ninterface MouseEvent extends UIEvent {\n readonly altKey: boolean;\n readonly button: number;\n readonly buttons: number;\n readonly clientX: number;\n readonly clientY: number;\n readonly ctrlKey: boolean;\n readonly metaKey: boolean;\n readonly movementX: number;\n readonly movementY: number;\n readonly offsetX: number;\n readonly offsetY: number;\n readonly pageX: number;\n readonly pageY: number;\n readonly relatedTarget: EventTarget | null;\n readonly screenX: number;\n readonly screenY: number;\n readonly shiftKey: boolean;\n readonly x: number;\n readonly y: number;\n getModifierState(keyArg: string): boolean;\n /** @deprecated */\n 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;\n}\n\ndeclare var MouseEvent: {\n prototype: MouseEvent;\n new(type: string, eventInitDict?: MouseEventInit): MouseEvent;\n};\n\n/**\n * Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.\n * @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.\n */\ninterface MutationEvent extends Event {\n /** @deprecated */\n readonly attrChange: number;\n /** @deprecated */\n readonly attrName: string;\n /** @deprecated */\n readonly newValue: string;\n /** @deprecated */\n readonly prevValue: string;\n /** @deprecated */\n readonly relatedNode: Node | null;\n /** @deprecated */\n initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;\n readonly ADDITION: number;\n readonly MODIFICATION: number;\n readonly REMOVAL: number;\n}\n\n/** @deprecated */\ndeclare var MutationEvent: {\n prototype: MutationEvent;\n new(): MutationEvent;\n readonly ADDITION: number;\n readonly MODIFICATION: number;\n readonly REMOVAL: number;\n};\n\n/** 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. */\ninterface MutationObserver {\n /**\n * Stops observer from observing any mutations. Until the observe() method is used again, observer\'s callback will not be invoked.\n */\n disconnect(): void;\n /**\n * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).\n *\n * The options argument allows for setting mutation observation options via object members.\n */\n observe(target: Node, options?: MutationObserverInit): void;\n /**\n * Empties the record queue and returns what was in there.\n */\n takeRecords(): MutationRecord[];\n}\n\ndeclare var MutationObserver: {\n prototype: MutationObserver;\n new(callback: MutationCallback): MutationObserver;\n};\n\n/** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver\'s callback. */\ninterface MutationRecord {\n /**\n * Return the nodes added and removed respectively.\n */\n readonly addedNodes: NodeList;\n /**\n * Returns the local name of the changed attribute, and null otherwise.\n */\n readonly attributeName: string | null;\n /**\n * Returns the namespace of the changed attribute, and null otherwise.\n */\n readonly attributeNamespace: string | null;\n /**\n * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.\n */\n readonly nextSibling: Node | null;\n /**\n * 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.\n */\n readonly oldValue: string | null;\n /**\n * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.\n */\n readonly previousSibling: Node | null;\n /**\n * Return the nodes added and removed respectively.\n */\n readonly removedNodes: NodeList;\n /**\n * 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.\n */\n readonly target: Node;\n /**\n * 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.\n */\n readonly type: MutationRecordType;\n}\n\ndeclare var MutationRecord: {\n prototype: MutationRecord;\n new(): MutationRecord;\n};\n\n/** 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. */\ninterface NamedNodeMap {\n readonly length: number;\n getNamedItem(qualifiedName: string): Attr | null;\n getNamedItemNS(namespace: string | null, localName: string): Attr | null;\n item(index: number): Attr | null;\n removeNamedItem(qualifiedName: string): Attr;\n removeNamedItemNS(namespace: string | null, localName: string): Attr;\n setNamedItem(attr: Attr): Attr | null;\n setNamedItemNS(attr: Attr): Attr | null;\n [index: number]: Attr;\n}\n\ndeclare var NamedNodeMap: {\n prototype: NamedNodeMap;\n new(): NamedNodeMap;\n};\n\n/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */\ninterface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {\n readonly clipboard: Clipboard;\n readonly credentials: CredentialsContainer;\n readonly doNotTrack: string | null;\n readonly geolocation: Geolocation;\n readonly maxTouchPoints: number;\n readonly mediaCapabilities: MediaCapabilities;\n readonly mediaDevices: MediaDevices;\n readonly mediaSession: MediaSession;\n readonly permissions: Permissions;\n readonly pointerEnabled: boolean;\n readonly serviceWorker: ServiceWorkerContainer;\n getGamepads(): (Gamepad | null)[];\n requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;\n sendBeacon(url: string | URL, data?: BodyInit | null): boolean;\n share(data?: ShareData): Promise<void>;\n vibrate(pattern: VibratePattern): boolean;\n}\n\ndeclare var Navigator: {\n prototype: Navigator;\n new(): Navigator;\n};\n\ninterface NavigatorAutomationInformation {\n readonly webdriver: boolean;\n}\n\ninterface NavigatorConcurrentHardware {\n readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorContentUtils {\n registerProtocolHandler(scheme: string, url: string | URL): void;\n}\n\ninterface NavigatorCookies {\n readonly cookieEnabled: boolean;\n}\n\ninterface NavigatorID {\n /** @deprecated */\n readonly appCodeName: string;\n /** @deprecated */\n readonly appName: string;\n /** @deprecated */\n readonly appVersion: string;\n /** @deprecated */\n readonly platform: string;\n /** @deprecated */\n readonly product: string;\n /** @deprecated */\n readonly productSub: string;\n readonly userAgent: string;\n readonly vendor: string;\n /** @deprecated */\n readonly vendorSub: string;\n}\n\ninterface NavigatorLanguage {\n readonly language: string;\n readonly languages: ReadonlyArray<string>;\n}\n\ninterface NavigatorNetworkInformation {\n readonly connection: NetworkInformation;\n}\n\ninterface NavigatorOnLine {\n readonly onLine: boolean;\n}\n\ninterface NavigatorPlugins {\n /** @deprecated */\n readonly mimeTypes: MimeTypeArray;\n /** @deprecated */\n readonly plugins: PluginArray;\n /** @deprecated */\n javaEnabled(): boolean;\n}\n\ninterface NavigatorStorage {\n readonly storage: StorageManager;\n}\n\ninterface NetworkInformation extends EventTarget {\n readonly type: ConnectionType;\n}\n\ndeclare var NetworkInformation: {\n prototype: NetworkInformation;\n new(): NetworkInformation;\n};\n\n/** 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. */\ninterface Node extends EventTarget {\n /**\n * Returns node\'s node document\'s document base URL.\n */\n readonly baseURI: string;\n /**\n * Returns the children.\n */\n readonly childNodes: NodeListOf<ChildNode>;\n /**\n * Returns the first child.\n */\n readonly firstChild: ChildNode | null;\n /**\n * Returns true if node is connected and false otherwise.\n */\n readonly isConnected: boolean;\n /**\n * Returns the last child.\n */\n readonly lastChild: ChildNode | null;\n /**\n * Returns the next sibling.\n */\n readonly nextSibling: ChildNode | null;\n /**\n * Returns a string appropriate for the type of node.\n */\n readonly nodeName: string;\n /**\n * Returns the type of node.\n */\n readonly nodeType: number;\n nodeValue: string | null;\n /**\n * Returns the node document. Returns null for documents.\n */\n readonly ownerDocument: Document | null;\n /**\n * Returns the parent element.\n */\n readonly parentElement: HTMLElement | null;\n /**\n * Returns the parent.\n */\n readonly parentNode: ParentNode | null;\n /**\n * Returns the previous sibling.\n */\n readonly previousSibling: ChildNode | null;\n textContent: string | null;\n appendChild<T extends Node>(node: T): T;\n /**\n * Returns a copy of node. If deep is true, the copy also includes the node\'s descendants.\n */\n cloneNode(deep?: boolean): Node;\n /**\n * Returns a bitmask indicating the position of other relative to node.\n */\n compareDocumentPosition(other: Node): number;\n /**\n * Returns true if other is an inclusive descendant of node, and false otherwise.\n */\n contains(other: Node | null): boolean;\n /**\n * Returns node\'s root.\n */\n getRootNode(options?: GetRootNodeOptions): Node;\n /**\n * Returns whether node has children.\n */\n hasChildNodes(): boolean;\n insertBefore<T extends Node>(node: T, child: Node | null): T;\n isDefaultNamespace(namespace: string | null): boolean;\n /**\n * Returns whether node and otherNode have the same properties.\n */\n isEqualNode(otherNode: Node | null): boolean;\n isSameNode(otherNode: Node | null): boolean;\n lookupNamespaceURI(prefix: string | null): string | null;\n lookupPrefix(namespace: string | null): string | null;\n /**\n * Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.\n */\n normalize(): void;\n removeChild<T extends Node>(child: T): T;\n replaceChild<T extends Node>(node: Node, child: T): T;\n readonly ATTRIBUTE_NODE: number;\n /**\n * node is a CDATASection node.\n */\n readonly CDATA_SECTION_NODE: number;\n /**\n * node is a Comment node.\n */\n readonly COMMENT_NODE: number;\n /**\n * node is a DocumentFragment node.\n */\n readonly DOCUMENT_FRAGMENT_NODE: number;\n /**\n * node is a document.\n */\n readonly DOCUMENT_NODE: number;\n /**\n * Set when other is a descendant of node.\n */\n readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n /**\n * Set when other is an ancestor of node.\n */\n readonly DOCUMENT_POSITION_CONTAINS: number;\n /**\n * Set when node and other are not in the same tree.\n */\n readonly DOCUMENT_POSITION_DISCONNECTED: number;\n /**\n * Set when other is following node.\n */\n readonly DOCUMENT_POSITION_FOLLOWING: number;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n /**\n * Set when other is preceding node.\n */\n readonly DOCUMENT_POSITION_PRECEDING: number;\n /**\n * node is a doctype.\n */\n readonly DOCUMENT_TYPE_NODE: number;\n /**\n * node is an element.\n */\n readonly ELEMENT_NODE: number;\n readonly ENTITY_NODE: number;\n readonly ENTITY_REFERENCE_NODE: number;\n readonly NOTATION_NODE: number;\n /**\n * node is a ProcessingInstruction node.\n */\n readonly PROCESSING_INSTRUCTION_NODE: number;\n /**\n * node is a Text node.\n */\n readonly TEXT_NODE: number;\n}\n\ndeclare var Node: {\n prototype: Node;\n new(): Node;\n readonly ATTRIBUTE_NODE: number;\n /**\n * node is a CDATASection node.\n */\n readonly CDATA_SECTION_NODE: number;\n /**\n * node is a Comment node.\n */\n readonly COMMENT_NODE: number;\n /**\n * node is a DocumentFragment node.\n */\n readonly DOCUMENT_FRAGMENT_NODE: number;\n /**\n * node is a document.\n */\n readonly DOCUMENT_NODE: number;\n /**\n * Set when other is a descendant of node.\n */\n readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n /**\n * Set when other is an ancestor of node.\n */\n readonly DOCUMENT_POSITION_CONTAINS: number;\n /**\n * Set when node and other are not in the same tree.\n */\n readonly DOCUMENT_POSITION_DISCONNECTED: number;\n /**\n * Set when other is following node.\n */\n readonly DOCUMENT_POSITION_FOLLOWING: number;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n /**\n * Set when other is preceding node.\n */\n readonly DOCUMENT_POSITION_PRECEDING: number;\n /**\n * node is a doctype.\n */\n readonly DOCUMENT_TYPE_NODE: number;\n /**\n * node is an element.\n */\n readonly ELEMENT_NODE: number;\n readonly ENTITY_NODE: number;\n readonly ENTITY_REFERENCE_NODE: number;\n readonly NOTATION_NODE: number;\n /**\n * node is a ProcessingInstruction node.\n */\n readonly PROCESSING_INSTRUCTION_NODE: number;\n /**\n * node is a Text node.\n */\n readonly TEXT_NODE: number;\n};\n\n/** 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. */\ninterface NodeIterator {\n readonly filter: NodeFilter | null;\n readonly pointerBeforeReferenceNode: boolean;\n readonly referenceNode: Node;\n readonly root: Node;\n readonly whatToShow: number;\n /** @deprecated */\n detach(): void;\n nextNode(): Node | null;\n previousNode(): Node | null;\n}\n\ndeclare var NodeIterator: {\n prototype: NodeIterator;\n new(): NodeIterator;\n};\n\n/** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */\ninterface NodeList {\n /**\n * Returns the number of nodes in the collection.\n */\n readonly length: number;\n /**\n * Returns the node with index index from the collection. The nodes are sorted in tree order.\n */\n item(index: number): Node | null;\n /**\n * Performs the specified action for each node in an list.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n * @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.\n */\n forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;\n [index: number]: Node;\n}\n\ndeclare var NodeList: {\n prototype: NodeList;\n new(): NodeList;\n};\n\ninterface NodeListOf<TNode extends Node> extends NodeList {\n item(index: number): TNode;\n /**\n * Performs the specified action for each node in an list.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n * @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.\n */\n forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;\n [index: number]: TNode;\n}\n\ninterface NonDocumentTypeChildNode {\n /**\n * Returns the first following sibling that is an element, and null otherwise.\n */\n readonly nextElementSibling: Element | null;\n /**\n * Returns the first preceding sibling that is an element, and null otherwise.\n */\n readonly previousElementSibling: Element | null;\n}\n\ninterface NonElementParentNode {\n /**\n * Returns the first element within node\'s descendants whose ID is elementId.\n */\n getElementById(elementId: string): Element | null;\n}\n\ninterface NotificationEventMap {\n "click": Event;\n "close": Event;\n "error": Event;\n "show": Event;\n}\n\n/** This Notifications API interface is used to configure and display desktop notifications to the user. */\ninterface Notification extends EventTarget {\n readonly body: string;\n readonly data: any;\n readonly dir: NotificationDirection;\n readonly icon: string;\n readonly lang: string;\n onclick: ((this: Notification, ev: Event) => any) | null;\n onclose: ((this: Notification, ev: Event) => any) | null;\n onerror: ((this: Notification, ev: Event) => any) | null;\n onshow: ((this: Notification, ev: Event) => any) | null;\n readonly tag: string;\n readonly title: string;\n close(): void;\n addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Notification: {\n prototype: Notification;\n new(title: string, options?: NotificationOptions): Notification;\n readonly permission: NotificationPermission;\n requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;\n};\n\n/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */\ninterface OES_element_index_uint {\n}\n\ninterface OES_fbo_render_mipmap {\n}\n\n/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */\ninterface OES_standard_derivatives {\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;\n}\n\n/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */\ninterface OES_texture_float {\n}\n\n/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */\ninterface OES_texture_float_linear {\n}\n\n/** 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. */\ninterface OES_texture_half_float {\n readonly HALF_FLOAT_OES: GLenum;\n}\n\n/** 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. */\ninterface OES_texture_half_float_linear {\n}\n\ninterface OES_vertex_array_object {\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n readonly VERTEX_ARRAY_BINDING_OES: GLenum;\n}\n\ninterface OVR_multiview2 {\n framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;\n readonly MAX_VIEWS_OVR: GLenum;\n}\n\n/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */\ninterface OfflineAudioCompletionEvent extends Event {\n readonly renderedBuffer: AudioBuffer;\n}\n\ndeclare var OfflineAudioCompletionEvent: {\n prototype: OfflineAudioCompletionEvent;\n new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;\n};\n\ninterface OfflineAudioContextEventMap extends BaseAudioContextEventMap {\n "complete": OfflineAudioCompletionEvent;\n}\n\n/** 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. */\ninterface OfflineAudioContext extends BaseAudioContext {\n readonly length: number;\n oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;\n resume(): Promise<void>;\n startRendering(): Promise<AudioBuffer>;\n suspend(suspendTime: number): Promise<void>;\n addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OfflineAudioContext: {\n prototype: OfflineAudioContext;\n new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;\n new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;\n};\n\n/** The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. */\ninterface OscillatorNode extends AudioScheduledSourceNode {\n readonly detune: AudioParam;\n readonly frequency: AudioParam;\n type: OscillatorType;\n setPeriodicWave(periodicWave: PeriodicWave): void;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OscillatorNode: {\n prototype: OscillatorNode;\n new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;\n};\n\ninterface OverconstrainedError extends Error {\n readonly constraint: string;\n}\n\ndeclare var OverconstrainedError: {\n prototype: OverconstrainedError;\n new(constraint: string, message?: string): OverconstrainedError;\n};\n\n/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */\ninterface PageTransitionEvent extends Event {\n /**\n * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.\n *\n * 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.\n *\n * Things that can cause the page to be unsalvageable include:\n *\n * The user agent decided to not keep the Document alive in a session history entry after unload\n * Having iframes that are not salvageable\n * Active WebSocket objects\n * Aborting a Document\n */\n readonly persisted: boolean;\n}\n\ndeclare var PageTransitionEvent: {\n prototype: PageTransitionEvent;\n new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;\n};\n\n/** 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! */\ninterface PannerNode extends AudioNode {\n coneInnerAngle: number;\n coneOuterAngle: number;\n coneOuterGain: number;\n distanceModel: DistanceModelType;\n maxDistance: number;\n readonly orientationX: AudioParam;\n readonly orientationY: AudioParam;\n readonly orientationZ: AudioParam;\n panningModel: PanningModelType;\n readonly positionX: AudioParam;\n readonly positionY: AudioParam;\n readonly positionZ: AudioParam;\n refDistance: number;\n rolloffFactor: number;\n /** @deprecated */\n setOrientation(x: number, y: number, z: number): void;\n /** @deprecated */\n setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var PannerNode: {\n prototype: PannerNode;\n new(context: BaseAudioContext, options?: PannerOptions): PannerNode;\n};\n\ninterface ParentNode extends Node {\n readonly childElementCount: number;\n /**\n * Returns the child elements.\n */\n readonly children: HTMLCollection;\n /**\n * Returns the first child that is an element, and null otherwise.\n */\n readonly firstElementChild: Element | null;\n /**\n * Returns the last child that is an element, and null otherwise.\n */\n readonly lastElementChild: Element | null;\n /**\n * Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n append(...nodes: (Node | string)[]): void;\n /**\n * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n prepend(...nodes: (Node | string)[]): void;\n /**\n * Returns the first element that is a descendant of node that matches selectors.\n */\n querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;\n querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;\n querySelector<E extends Element = Element>(selectors: string): E | null;\n /**\n * Returns all element descendants of node that match selectors.\n */\n querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;\n querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;\n querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;\n /**\n * Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n replaceChildren(...nodes: (Node | string)[]): void;\n}\n\n/** 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. */\ninterface Path2D extends CanvasPath {\n /**\n * Adds to the path the path given by the argument.\n */\n addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n prototype: Path2D;\n new(path?: Path2D | string): Path2D;\n};\n\n/**\n * This Payment Request API interface is used to store shipping or payment address information.\n * @deprecated\n */\ninterface PaymentAddress {\n /** @deprecated */\n readonly addressLine: ReadonlyArray<string>;\n /** @deprecated */\n readonly city: string;\n /** @deprecated */\n readonly country: string;\n /** @deprecated */\n readonly dependentLocality: string;\n /** @deprecated */\n readonly organization: string;\n /** @deprecated */\n readonly phone: string;\n /** @deprecated */\n readonly postalCode: string;\n /** @deprecated */\n readonly recipient: string;\n /** @deprecated */\n readonly region: string;\n /** @deprecated */\n readonly sortingCode: string;\n /** @deprecated */\n toJSON(): any;\n}\n\n/** @deprecated */\ndeclare var PaymentAddress: {\n prototype: PaymentAddress;\n new(): PaymentAddress;\n};\n\ninterface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {\n readonly methodDetails: any;\n readonly methodName: string;\n}\n\ndeclare var PaymentMethodChangeEvent: {\n prototype: PaymentMethodChangeEvent;\n new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;\n};\n\ninterface PaymentRequestEventMap {\n "paymentmethodchange": Event;\n}\n\n/** 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. */\ninterface PaymentRequest extends EventTarget {\n readonly id: string;\n onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;\n abort(): Promise<void>;\n canMakePayment(): Promise<boolean>;\n show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;\n addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PaymentRequest: {\n prototype: PaymentRequest;\n new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;\n};\n\n/** This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action. */\ninterface PaymentRequestUpdateEvent extends Event {\n updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;\n}\n\ndeclare var PaymentRequestUpdateEvent: {\n prototype: PaymentRequestUpdateEvent;\n new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;\n};\n\n/** This Payment Request API interface is returned after a user selects a payment method and approves a payment request. */\ninterface PaymentResponse extends EventTarget {\n readonly details: any;\n readonly methodName: string;\n readonly requestId: string;\n complete(result?: PaymentComplete): Promise<void>;\n retry(errorFields?: PaymentValidationErrors): Promise<void>;\n toJSON(): any;\n}\n\ndeclare var PaymentResponse: {\n prototype: PaymentResponse;\n new(): PaymentResponse;\n};\n\ninterface PerformanceEventMap {\n "resourcetimingbufferfull": Event;\n}\n\n/** 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. */\ninterface Performance extends EventTarget {\n /** @deprecated */\n readonly navigation: PerformanceNavigation;\n onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;\n readonly timeOrigin: DOMHighResTimeStamp;\n /** @deprecated */\n readonly timing: PerformanceTiming;\n clearMarks(markName?: string): void;\n clearMeasures(measureName?: string): void;\n clearResourceTimings(): void;\n getEntries(): PerformanceEntryList;\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n getEntriesByType(type: string): PerformanceEntryList;\n mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n now(): DOMHighResTimeStamp;\n setResourceTimingBufferSize(maxSize: number): void;\n toJSON(): any;\n addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Performance: {\n prototype: Performance;\n new(): Performance;\n};\n\n/** 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). */\ninterface PerformanceEntry {\n readonly duration: DOMHighResTimeStamp;\n readonly entryType: string;\n readonly name: string;\n readonly startTime: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\ninterface PerformanceEventTiming extends PerformanceEntry {\n readonly cancelable: boolean;\n readonly processingEnd: DOMHighResTimeStamp;\n readonly processingStart: DOMHighResTimeStamp;\n readonly target: Node | null;\n}\n\ndeclare var PerformanceEventTiming: {\n prototype: PerformanceEventTiming;\n new(): PerformanceEventTiming;\n};\n\n/** PerformanceMark is 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. */\ninterface PerformanceMark extends PerformanceEntry {\n readonly detail: any;\n}\n\ndeclare var PerformanceMark: {\n prototype: PerformanceMark;\n new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n};\n\n/** 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. */\ninterface PerformanceMeasure extends PerformanceEntry {\n readonly detail: any;\n}\n\ndeclare var PerformanceMeasure: {\n prototype: PerformanceMeasure;\n new(): PerformanceMeasure;\n};\n\n/**\n * The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.\n * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n */\ninterface PerformanceNavigation {\n /** @deprecated */\n readonly redirectCount: number;\n /** @deprecated */\n readonly type: number;\n /** @deprecated */\n toJSON(): any;\n readonly TYPE_BACK_FORWARD: number;\n readonly TYPE_NAVIGATE: number;\n readonly TYPE_RELOAD: number;\n readonly TYPE_RESERVED: number;\n}\n\n/** @deprecated */\ndeclare var PerformanceNavigation: {\n prototype: PerformanceNavigation;\n new(): PerformanceNavigation;\n readonly TYPE_BACK_FORWARD: number;\n readonly TYPE_NAVIGATE: number;\n readonly TYPE_RELOAD: number;\n readonly TYPE_RESERVED: number;\n};\n\n/** 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. */\ninterface PerformanceNavigationTiming extends PerformanceResourceTiming {\n readonly domComplete: DOMHighResTimeStamp;\n readonly domContentLoadedEventEnd: DOMHighResTimeStamp;\n readonly domContentLoadedEventStart: DOMHighResTimeStamp;\n readonly domInteractive: DOMHighResTimeStamp;\n readonly loadEventEnd: DOMHighResTimeStamp;\n readonly loadEventStart: DOMHighResTimeStamp;\n readonly redirectCount: number;\n readonly type: NavigationType;\n readonly unloadEventEnd: DOMHighResTimeStamp;\n readonly unloadEventStart: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceNavigationTiming: {\n prototype: PerformanceNavigationTiming;\n new(): PerformanceNavigationTiming;\n};\n\ninterface PerformanceObserver {\n disconnect(): void;\n observe(options?: PerformanceObserverInit): void;\n takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n prototype: PerformanceObserver;\n new(callback: PerformanceObserverCallback): PerformanceObserver;\n readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\ninterface PerformanceObserverEntryList {\n getEntries(): PerformanceEntryList;\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n prototype: PerformanceObserverEntryList;\n new(): PerformanceObserverEntryList;\n};\n\ninterface PerformancePaintTiming extends PerformanceEntry {\n}\n\ndeclare var PerformancePaintTiming: {\n prototype: PerformancePaintTiming;\n new(): PerformancePaintTiming;\n};\n\n/** 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. */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n readonly connectEnd: DOMHighResTimeStamp;\n readonly connectStart: DOMHighResTimeStamp;\n readonly decodedBodySize: number;\n readonly domainLookupEnd: DOMHighResTimeStamp;\n readonly domainLookupStart: DOMHighResTimeStamp;\n readonly encodedBodySize: number;\n readonly fetchStart: DOMHighResTimeStamp;\n readonly initiatorType: string;\n readonly nextHopProtocol: string;\n readonly redirectEnd: DOMHighResTimeStamp;\n readonly redirectStart: DOMHighResTimeStamp;\n readonly requestStart: DOMHighResTimeStamp;\n readonly responseEnd: DOMHighResTimeStamp;\n readonly responseStart: DOMHighResTimeStamp;\n readonly secureConnectionStart: DOMHighResTimeStamp;\n readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n readonly transferSize: number;\n readonly workerStart: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\ninterface PerformanceServerTiming {\n readonly description: string;\n readonly duration: DOMHighResTimeStamp;\n readonly name: string;\n toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n prototype: PerformanceServerTiming;\n new(): PerformanceServerTiming;\n};\n\n/**\n * 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.\n * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n */\ninterface PerformanceTiming {\n /** @deprecated */\n readonly connectEnd: number;\n /** @deprecated */\n readonly connectStart: number;\n /** @deprecated */\n readonly domComplete: number;\n /** @deprecated */\n readonly domContentLoadedEventEnd: number;\n /** @deprecated */\n readonly domContentLoadedEventStart: number;\n /** @deprecated */\n readonly domInteractive: number;\n /** @deprecated */\n readonly domLoading: number;\n /** @deprecated */\n readonly domainLookupEnd: number;\n /** @deprecated */\n readonly domainLookupStart: number;\n /** @deprecated */\n readonly fetchStart: number;\n /** @deprecated */\n readonly loadEventEnd: number;\n /** @deprecated */\n readonly loadEventStart: number;\n /** @deprecated */\n readonly navigationStart: number;\n /** @deprecated */\n readonly redirectEnd: number;\n /** @deprecated */\n readonly redirectStart: number;\n /** @deprecated */\n readonly requestStart: number;\n /** @deprecated */\n readonly responseEnd: number;\n /** @deprecated */\n readonly responseStart: number;\n /** @deprecated */\n readonly secureConnectionStart: number;\n /** @deprecated */\n readonly unloadEventEnd: number;\n /** @deprecated */\n readonly unloadEventStart: number;\n /** @deprecated */\n toJSON(): any;\n}\n\n/** @deprecated */\ndeclare var PerformanceTiming: {\n prototype: PerformanceTiming;\n new(): PerformanceTiming;\n};\n\n/** 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(). */\ninterface PeriodicWave {\n}\n\ndeclare var PeriodicWave: {\n prototype: PeriodicWave;\n new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;\n};\n\ninterface PermissionStatusEventMap {\n "change": Event;\n}\n\ninterface PermissionStatus extends EventTarget {\n onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n readonly state: PermissionState;\n addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PermissionStatus: {\n prototype: PermissionStatus;\n new(): PermissionStatus;\n};\n\ninterface Permissions {\n query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n prototype: Permissions;\n new(): Permissions;\n};\n\ninterface PictureInPictureWindowEventMap {\n "resize": Event;\n}\n\ninterface PictureInPictureWindow extends EventTarget {\n readonly height: number;\n onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;\n readonly width: number;\n addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PictureInPictureWindow: {\n prototype: PictureInPictureWindow;\n new(): PictureInPictureWindow;\n};\n\n/**\n * Provides information about a browser plugin.\n * @deprecated\n */\ninterface Plugin {\n /**\n * Returns the plugin\'s description.\n * @deprecated\n */\n readonly description: string;\n /**\n * Returns the plugin library\'s filename, if applicable on the current platform.\n * @deprecated\n */\n readonly filename: string;\n /**\n * Returns the number of MIME types, represented by MimeType objects, supported by the plugin.\n * @deprecated\n */\n readonly length: number;\n /**\n * Returns the plugin\'s name.\n * @deprecated\n */\n readonly name: string;\n /**\n * Returns the specified MimeType object.\n * @deprecated\n */\n item(index: number): MimeType | null;\n /** @deprecated */\n namedItem(name: string): MimeType | null;\n [index: number]: MimeType;\n}\n\n/** @deprecated */\ndeclare var Plugin: {\n prototype: Plugin;\n new(): Plugin;\n};\n\n/**\n * Used to store a list of Plugin objects describing the available plugins; it\'s returned by the window.navigator.plugins property. 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.\n * @deprecated\n */\ninterface PluginArray {\n /** @deprecated */\n readonly length: number;\n /** @deprecated */\n item(index: number): Plugin | null;\n /** @deprecated */\n namedItem(name: string): Plugin | null;\n /** @deprecated */\n refresh(): void;\n [index: number]: Plugin;\n}\n\n/** @deprecated */\ndeclare var PluginArray: {\n prototype: PluginArray;\n new(): PluginArray;\n};\n\n/** 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. */\ninterface PointerEvent extends MouseEvent {\n readonly height: number;\n readonly isPrimary: boolean;\n readonly pointerId: number;\n readonly pointerType: string;\n readonly pressure: number;\n readonly tangentialPressure: number;\n readonly tiltX: number;\n readonly tiltY: number;\n readonly twist: number;\n readonly width: number;\n getCoalescedEvents(): PointerEvent[];\n getPredictedEvents(): PointerEvent[];\n}\n\ndeclare var PointerEvent: {\n prototype: PointerEvent;\n new(type: string, eventInitDict?: PointerEventInit): PointerEvent;\n};\n\n/** PopStateEvent is an event handler for the popstate event on the window. */\ninterface PopStateEvent extends Event {\n /**\n * Returns a copy of the information that was provided to pushState() or replaceState().\n */\n readonly state: any;\n}\n\ndeclare var PopStateEvent: {\n prototype: PopStateEvent;\n new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;\n};\n\n/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don\'t recognize them. */\ninterface ProcessingInstruction extends CharacterData, LinkStyle {\n readonly ownerDocument: Document;\n readonly target: string;\n}\n\ndeclare var ProcessingInstruction: {\n prototype: ProcessingInstruction;\n new(): ProcessingInstruction;\n};\n\n/** 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>). */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n readonly lengthComputable: boolean;\n readonly loaded: number;\n readonly target: T | null;\n readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\ninterface PromiseRejectionEvent extends Event {\n readonly promise: Promise<any>;\n readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n prototype: PromiseRejectionEvent;\n new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\ninterface PublicKeyCredential extends Credential {\n readonly rawId: ArrayBuffer;\n readonly response: AuthenticatorResponse;\n getClientExtensionResults(): AuthenticationExtensionsClientOutputs;\n}\n\ndeclare var PublicKeyCredential: {\n prototype: PublicKeyCredential;\n new(): PublicKeyCredential;\n isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;\n};\n\n/** This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. */\ninterface PushManager {\n getSubscription(): Promise<PushSubscription | null>;\n permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;\n subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n prototype: PushManager;\n new(): PushManager;\n readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/** This Push API interface provides a subcription\'s URL endpoint and allows unsubscription from a push service. */\ninterface PushSubscription {\n readonly endpoint: string;\n readonly options: PushSubscriptionOptions;\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n toJSON(): PushSubscriptionJSON;\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\ninterface PushSubscriptionOptions {\n readonly applicationServerKey: ArrayBuffer | null;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\ninterface RTCCertificate {\n readonly expires: DOMTimeStamp;\n getFingerprints(): RTCDtlsFingerprint[];\n}\n\ndeclare var RTCCertificate: {\n prototype: RTCCertificate;\n new(): RTCCertificate;\n};\n\ninterface RTCDTMFSenderEventMap {\n "tonechange": RTCDTMFToneChangeEvent;\n}\n\ninterface RTCDTMFSender extends EventTarget {\n readonly canInsertDTMF: boolean;\n ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;\n readonly toneBuffer: string;\n insertDTMF(tones: string, duration?: number, interToneGap?: number): void;\n addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDTMFSender: {\n prototype: RTCDTMFSender;\n new(): RTCDTMFSender;\n};\n\n/** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */\ninterface RTCDTMFToneChangeEvent extends Event {\n readonly tone: string;\n}\n\ndeclare var RTCDTMFToneChangeEvent: {\n prototype: RTCDTMFToneChangeEvent;\n new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;\n};\n\ninterface RTCDataChannelEventMap {\n "bufferedamountlow": Event;\n "close": Event;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\ninterface RTCDataChannel extends EventTarget {\n binaryType: BinaryType;\n readonly bufferedAmount: number;\n bufferedAmountLowThreshold: number;\n readonly id: number | null;\n readonly label: string;\n readonly maxPacketLifeTime: number | null;\n readonly maxRetransmits: number | null;\n readonly negotiated: boolean;\n onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;\n onclose: ((this: RTCDataChannel, ev: Event) => any) | null;\n onerror: ((this: RTCDataChannel, ev: Event) => any) | null;\n onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;\n onopen: ((this: RTCDataChannel, ev: Event) => any) | null;\n readonly ordered: boolean;\n readonly protocol: string;\n readonly readyState: RTCDataChannelState;\n close(): void;\n send(data: string): void;\n send(data: Blob): void;\n send(data: ArrayBuffer): void;\n send(data: ArrayBufferView): void;\n addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDataChannel: {\n prototype: RTCDataChannel;\n new(): RTCDataChannel;\n};\n\ninterface RTCDataChannelEvent extends Event {\n readonly channel: RTCDataChannel;\n}\n\ndeclare var RTCDataChannelEvent: {\n prototype: RTCDataChannelEvent;\n new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;\n};\n\ninterface RTCDtlsTransportEventMap {\n "statechange": Event;\n}\n\ninterface RTCDtlsTransport extends EventTarget {\n onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n readonly state: RTCDtlsTransportState;\n addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDtlsTransport: {\n prototype: RTCDtlsTransport;\n new(): RTCDtlsTransport;\n};\n\n/** The RTCIceCandidate interface—part of the WebRTC API—represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */\ninterface RTCIceCandidate {\n readonly address: string | null;\n readonly candidate: string;\n readonly component: RTCIceComponent | null;\n readonly foundation: string | null;\n readonly port: number | null;\n readonly priority: number | null;\n readonly protocol: RTCIceProtocol | null;\n readonly relatedAddress: string | null;\n readonly relatedPort: number | null;\n readonly sdpMLineIndex: number | null;\n readonly sdpMid: string | null;\n readonly tcpType: RTCIceTcpCandidateType | null;\n readonly type: RTCIceCandidateType | null;\n readonly usernameFragment: string | null;\n toJSON(): RTCIceCandidateInit;\n}\n\ndeclare var RTCIceCandidate: {\n prototype: RTCIceCandidate;\n new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;\n};\n\n/** Provides access to information about the ICE transport layer over which the data is being sent and received. */\ninterface RTCIceTransport extends EventTarget {\n readonly gatheringState: RTCIceGathererState;\n readonly state: RTCIceTransportState;\n}\n\ndeclare var RTCIceTransport: {\n prototype: RTCIceTransport;\n new(): RTCIceTransport;\n};\n\ninterface RTCPeerConnectionEventMap {\n "connectionstatechange": Event;\n "datachannel": RTCDataChannelEvent;\n "icecandidate": RTCPeerConnectionIceEvent;\n "icecandidateerror": Event;\n "iceconnectionstatechange": Event;\n "icegatheringstatechange": Event;\n "negotiationneeded": Event;\n "signalingstatechange": Event;\n "track": RTCTrackEvent;\n}\n\n/** 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. */\ninterface RTCPeerConnection extends EventTarget {\n readonly canTrickleIceCandidates: boolean | null;\n readonly connectionState: RTCPeerConnectionState;\n readonly currentLocalDescription: RTCSessionDescription | null;\n readonly currentRemoteDescription: RTCSessionDescription | null;\n readonly iceConnectionState: RTCIceConnectionState;\n readonly iceGatheringState: RTCIceGatheringState;\n readonly localDescription: RTCSessionDescription | null;\n onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;\n onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;\n onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;\n oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;\n onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;\n readonly pendingLocalDescription: RTCSessionDescription | null;\n readonly pendingRemoteDescription: RTCSessionDescription | null;\n readonly remoteDescription: RTCSessionDescription | null;\n readonly signalingState: RTCSignalingState;\n addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;\n /** @deprecated */\n addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;\n addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;\n close(): void;\n createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;\n /** @deprecated */\n createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;\n createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;\n /** @deprecated */\n createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;\n getConfiguration(): RTCConfiguration;\n getReceivers(): RTCRtpReceiver[];\n getSenders(): RTCRtpSender[];\n getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;\n getTransceivers(): RTCRtpTransceiver[];\n removeTrack(sender: RTCRtpSender): void;\n restartIce(): void;\n setConfiguration(configuration?: RTCConfiguration): void;\n setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;\n /** @deprecated */\n setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;\n /** @deprecated */\n setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCPeerConnection: {\n prototype: RTCPeerConnection;\n new(configuration?: RTCConfiguration): RTCPeerConnection;\n generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;\n};\n\ninterface RTCPeerConnectionIceErrorEvent extends Event {\n readonly address: string | null;\n readonly errorCode: number;\n readonly errorText: string;\n readonly port: number | null;\n readonly url: string;\n}\n\ndeclare var RTCPeerConnectionIceErrorEvent: {\n prototype: RTCPeerConnectionIceErrorEvent;\n new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;\n};\n\n/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */\ninterface RTCPeerConnectionIceEvent extends Event {\n readonly candidate: RTCIceCandidate | null;\n}\n\ndeclare var RTCPeerConnectionIceEvent: {\n prototype: RTCPeerConnectionIceEvent;\n new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;\n};\n\n/** This WebRTC API interface manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection. */\ninterface RTCRtpReceiver {\n readonly track: MediaStreamTrack;\n readonly transport: RTCDtlsTransport | null;\n getContributingSources(): RTCRtpContributingSource[];\n getParameters(): RTCRtpReceiveParameters;\n getStats(): Promise<RTCStatsReport>;\n getSynchronizationSources(): RTCRtpSynchronizationSource[];\n}\n\ndeclare var RTCRtpReceiver: {\n prototype: RTCRtpReceiver;\n new(): RTCRtpReceiver;\n getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\n/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */\ninterface RTCRtpSender {\n readonly dtmf: RTCDTMFSender | null;\n readonly track: MediaStreamTrack | null;\n readonly transport: RTCDtlsTransport | null;\n getParameters(): RTCRtpSendParameters;\n getStats(): Promise<RTCStatsReport>;\n replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;\n setParameters(parameters: RTCRtpSendParameters): Promise<void>;\n setStreams(...streams: MediaStream[]): void;\n}\n\ndeclare var RTCRtpSender: {\n prototype: RTCRtpSender;\n new(): RTCRtpSender;\n getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\ninterface RTCRtpTransceiver {\n readonly currentDirection: RTCRtpTransceiverDirection | null;\n direction: RTCRtpTransceiverDirection;\n readonly mid: string | null;\n readonly receiver: RTCRtpReceiver;\n readonly sender: RTCRtpSender;\n stop(): void;\n}\n\ndeclare var RTCRtpTransceiver: {\n prototype: RTCRtpTransceiver;\n new(): RTCRtpTransceiver;\n};\n\n/** One end of a connection—or potential connection—and 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. */\ninterface RTCSessionDescription {\n readonly sdp: string;\n readonly type: RTCSdpType;\n toJSON(): any;\n}\n\ndeclare var RTCSessionDescription: {\n prototype: RTCSessionDescription;\n new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;\n};\n\ninterface RTCStatsReport {\n forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;\n}\n\ndeclare var RTCStatsReport: {\n prototype: RTCStatsReport;\n new(): RTCStatsReport;\n};\n\ninterface RTCTrackEvent extends Event {\n readonly receiver: RTCRtpReceiver;\n readonly streams: ReadonlyArray<MediaStream>;\n readonly track: MediaStreamTrack;\n readonly transceiver: RTCRtpTransceiver;\n}\n\ndeclare var RTCTrackEvent: {\n prototype: RTCTrackEvent;\n new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;\n};\n\ninterface RadioNodeList extends NodeList {\n value: string;\n}\n\ndeclare var RadioNodeList: {\n prototype: RadioNodeList;\n new(): RadioNodeList;\n};\n\n/** A fragment of a document that can contain nodes and parts of text nodes. */\ninterface Range extends AbstractRange {\n /**\n * Returns the node, furthest away from the document, that is an ancestor of both range\'s start node and end node.\n */\n readonly commonAncestorContainer: Node;\n cloneContents(): DocumentFragment;\n cloneRange(): Range;\n collapse(toStart?: boolean): void;\n compareBoundaryPoints(how: number, sourceRange: Range): number;\n /**\n * Returns −1 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range.\n */\n comparePoint(node: Node, offset: number): number;\n createContextualFragment(fragment: string): DocumentFragment;\n deleteContents(): void;\n detach(): void;\n extractContents(): DocumentFragment;\n getBoundingClientRect(): DOMRect;\n getClientRects(): DOMRectList;\n insertNode(node: Node): void;\n /**\n * Returns whether range intersects node.\n */\n intersectsNode(node: Node): boolean;\n isPointInRange(node: Node, offset: number): boolean;\n selectNode(node: Node): void;\n selectNodeContents(node: Node): void;\n setEnd(node: Node, offset: number): void;\n setEndAfter(node: Node): void;\n setEndBefore(node: Node): void;\n setStart(node: Node, offset: number): void;\n setStartAfter(node: Node): void;\n setStartBefore(node: Node): void;\n surroundContents(newParent: Node): void;\n toString(): string;\n readonly END_TO_END: number;\n readonly END_TO_START: number;\n readonly START_TO_END: number;\n readonly START_TO_START: number;\n}\n\ndeclare var Range: {\n prototype: Range;\n new(): Range;\n readonly END_TO_END: number;\n readonly END_TO_START: number;\n readonly START_TO_END: number;\n readonly START_TO_START: number;\n toString(): string;\n};\n\n/** 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. */\ninterface ReadableStream<R = any> {\n readonly locked: boolean;\n cancel(reason?: any): Promise<void>;\n getReader(): ReadableStreamDefaultReader<R>;\n pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n tee(): [ReadableStream<R>, ReadableStream<R>];\n forEach(callbackfn: (value: any, key: number, parent: ReadableStream<R>) => void, thisArg?: any): void;\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\ninterface ReadableStreamDefaultController<R = any> {\n readonly desiredSize: number | null;\n close(): void;\n enqueue(chunk?: R): void;\n error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n prototype: ReadableStreamDefaultController;\n new(): ReadableStreamDefaultController;\n};\n\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n read(): Promise<ReadableStreamDefaultReadResult<R>>;\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamDefaultReader: {\n prototype: ReadableStreamDefaultReader;\n new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;\n};\n\ninterface ReadableStreamGenericReader {\n readonly closed: Promise<undefined>;\n cancel(reason?: any): Promise<void>;\n}\n\ninterface RemotePlaybackEventMap {\n "connect": Event;\n "connecting": Event;\n "disconnect": Event;\n}\n\ninterface RemotePlayback extends EventTarget {\n onconnect: ((this: RemotePlayback, ev: Event) => any) | null;\n onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;\n ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;\n readonly state: RemotePlaybackState;\n cancelWatchAvailability(id?: number): Promise<void>;\n prompt(): Promise<void>;\n watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;\n addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RemotePlayback: {\n prototype: RemotePlayback;\n new(): RemotePlayback;\n};\n\n/** This Fetch API interface represents a resource request. */\ninterface Request extends Body {\n /**\n * Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser\'s cache when fetching.\n */\n readonly cache: RequestCache;\n /**\n * 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.\n */\n readonly credentials: RequestCredentials;\n /**\n * Returns the kind of resource requested by request, e.g., "document" or "script".\n */\n readonly destination: RequestDestination;\n /**\n * 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.\n */\n readonly headers: Headers;\n /**\n * 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]\n */\n readonly integrity: string;\n /**\n * Returns a boolean indicating whether or not request can outlive the global in which it was created.\n */\n readonly keepalive: boolean;\n /**\n * Returns request\'s HTTP method, which is "GET" by default.\n */\n readonly method: string;\n /**\n * 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.\n */\n readonly mode: RequestMode;\n /**\n * 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.\n */\n readonly redirect: RequestRedirect;\n /**\n * 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.\n */\n readonly referrer: string;\n /**\n * Returns the referrer policy associated with request. This is used during fetching to compute the value of the request\'s referrer.\n */\n readonly referrerPolicy: ReferrerPolicy;\n /**\n * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.\n */\n readonly signal: AbortSignal;\n /**\n * Returns the URL of request as a string.\n */\n readonly url: string;\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: RequestInfo, init?: RequestInit): Request;\n};\n\ninterface ResizeObserver {\n disconnect(): void;\n observe(target: Element, options?: ResizeObserverOptions): void;\n unobserve(target: Element): void;\n}\n\ndeclare var ResizeObserver: {\n prototype: ResizeObserver;\n new(callback: ResizeObserverCallback): ResizeObserver;\n};\n\ninterface ResizeObserverEntry {\n readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;\n readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;\n readonly contentRect: DOMRectReadOnly;\n readonly target: Element;\n}\n\ndeclare var ResizeObserverEntry: {\n prototype: ResizeObserverEntry;\n new(): ResizeObserverEntry;\n};\n\ninterface ResizeObserverSize {\n readonly blockSize: number;\n readonly inlineSize: number;\n}\n\ndeclare var ResizeObserverSize: {\n prototype: ResizeObserverSize;\n new(): ResizeObserverSize;\n};\n\n/** This Fetch API interface represents the response to a request. */\ninterface Response extends Body {\n readonly headers: Headers;\n readonly ok: boolean;\n readonly redirected: boolean;\n readonly status: number;\n readonly statusText: string;\n readonly type: ResponseType;\n readonly url: string;\n clone(): Response;\n}\n\ndeclare var Response: {\n prototype: Response;\n new(body?: BodyInit | null, init?: ResponseInit): Response;\n error(): Response;\n redirect(url: string | URL, status?: number): Response;\n};\n\n/** Provides access to the properties of <a> element, as well as methods to manipulate them. */\ninterface SVGAElement extends SVGGraphicsElement, SVGURIReference {\n rel: string;\n readonly relList: DOMTokenList;\n readonly target: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAElement: {\n prototype: SVGAElement;\n new(): SVGAElement;\n};\n\n/** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */\ninterface SVGAngle {\n readonly unitType: number;\n value: number;\n valueAsString: string;\n valueInSpecifiedUnits: number;\n convertToSpecifiedUnits(unitType: number): void;\n newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n readonly SVG_ANGLETYPE_DEG: number;\n readonly SVG_ANGLETYPE_GRAD: number;\n readonly SVG_ANGLETYPE_RAD: number;\n readonly SVG_ANGLETYPE_UNKNOWN: number;\n readonly SVG_ANGLETYPE_UNSPECIFIED: number;\n}\n\ndeclare var SVGAngle: {\n prototype: SVGAngle;\n new(): SVGAngle;\n readonly SVG_ANGLETYPE_DEG: number;\n readonly SVG_ANGLETYPE_GRAD: number;\n readonly SVG_ANGLETYPE_RAD: number;\n readonly SVG_ANGLETYPE_UNKNOWN: number;\n readonly SVG_ANGLETYPE_UNSPECIFIED: number;\n};\n\ninterface SVGAnimateElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateElement: {\n prototype: SVGAnimateElement;\n new(): SVGAnimateElement;\n};\n\ninterface SVGAnimateMotionElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateMotionElement: {\n prototype: SVGAnimateMotionElement;\n new(): SVGAnimateMotionElement;\n};\n\ninterface SVGAnimateTransformElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateTransformElement: {\n prototype: SVGAnimateTransformElement;\n new(): SVGAnimateTransformElement;\n};\n\n/** Used for attributes of basic type <angle> which can be animated. */\ninterface SVGAnimatedAngle {\n readonly animVal: SVGAngle;\n readonly baseVal: SVGAngle;\n}\n\ndeclare var SVGAnimatedAngle: {\n prototype: SVGAnimatedAngle;\n new(): SVGAnimatedAngle;\n};\n\n/** Used for attributes of type boolean which can be animated. */\ninterface SVGAnimatedBoolean {\n readonly animVal: boolean;\n baseVal: boolean;\n}\n\ndeclare var SVGAnimatedBoolean: {\n prototype: SVGAnimatedBoolean;\n new(): SVGAnimatedBoolean;\n};\n\n/** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */\ninterface SVGAnimatedEnumeration {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedEnumeration: {\n prototype: SVGAnimatedEnumeration;\n new(): SVGAnimatedEnumeration;\n};\n\n/** Used for attributes of basic type <integer> which can be animated. */\ninterface SVGAnimatedInteger {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedInteger: {\n prototype: SVGAnimatedInteger;\n new(): SVGAnimatedInteger;\n};\n\n/** Used for attributes of basic type <length> which can be animated. */\ninterface SVGAnimatedLength {\n readonly animVal: SVGLength;\n readonly baseVal: SVGLength;\n}\n\ndeclare var SVGAnimatedLength: {\n prototype: SVGAnimatedLength;\n new(): SVGAnimatedLength;\n};\n\n/** Used for attributes of type SVGLengthList which can be animated. */\ninterface SVGAnimatedLengthList {\n readonly animVal: SVGLengthList;\n readonly baseVal: SVGLengthList;\n}\n\ndeclare var SVGAnimatedLengthList: {\n prototype: SVGAnimatedLengthList;\n new(): SVGAnimatedLengthList;\n};\n\n/** Used for attributes of basic type <Number> which can be animated. */\ninterface SVGAnimatedNumber {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedNumber: {\n prototype: SVGAnimatedNumber;\n new(): SVGAnimatedNumber;\n};\n\n/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */\ninterface SVGAnimatedNumberList {\n readonly animVal: SVGNumberList;\n readonly baseVal: SVGNumberList;\n}\n\ndeclare var SVGAnimatedNumberList: {\n prototype: SVGAnimatedNumberList;\n new(): SVGAnimatedNumberList;\n};\n\ninterface SVGAnimatedPoints {\n readonly animatedPoints: SVGPointList;\n readonly points: SVGPointList;\n}\n\n/** Used for attributes of type SVGPreserveAspectRatio which can be animated. */\ninterface SVGAnimatedPreserveAspectRatio {\n readonly animVal: SVGPreserveAspectRatio;\n readonly baseVal: SVGPreserveAspectRatio;\n}\n\ndeclare var SVGAnimatedPreserveAspectRatio: {\n prototype: SVGAnimatedPreserveAspectRatio;\n new(): SVGAnimatedPreserveAspectRatio;\n};\n\n/** Used for attributes of basic SVGRect which can be animated. */\ninterface SVGAnimatedRect {\n readonly animVal: DOMRectReadOnly;\n readonly baseVal: DOMRect;\n}\n\ndeclare var SVGAnimatedRect: {\n prototype: SVGAnimatedRect;\n new(): SVGAnimatedRect;\n};\n\n/** The SVGAnimatedString interface 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 inside this. */\ninterface SVGAnimatedString {\n readonly animVal: string;\n baseVal: string;\n}\n\ndeclare var SVGAnimatedString: {\n prototype: SVGAnimatedString;\n new(): SVGAnimatedString;\n};\n\n/** Used for attributes which take a list of numbers and which can be animated. */\ninterface SVGAnimatedTransformList {\n readonly animVal: SVGTransformList;\n readonly baseVal: SVGTransformList;\n}\n\ndeclare var SVGAnimatedTransformList: {\n prototype: SVGAnimatedTransformList;\n new(): SVGAnimatedTransformList;\n};\n\ninterface SVGAnimationElement extends SVGElement, SVGTests {\n readonly targetElement: SVGElement | null;\n beginElement(): void;\n beginElementAt(offset: number): void;\n endElement(): void;\n endElementAt(offset: number): void;\n getCurrentTime(): number;\n getSimpleDuration(): number;\n getStartTime(): number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimationElement: {\n prototype: SVGAnimationElement;\n new(): SVGAnimationElement;\n};\n\n/** 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. */\ninterface SVGCircleElement extends SVGGeometryElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: SVGAnimatedLength;\n readonly r: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGCircleElement: {\n prototype: SVGCircleElement;\n new(): SVGCircleElement;\n};\n\n/** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */\ninterface SVGClipPathElement extends SVGElement {\n readonly clipPathUnits: SVGAnimatedEnumeration;\n readonly transform: SVGAnimatedTransformList;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGClipPathElement: {\n prototype: SVGClipPathElement;\n new(): SVGClipPathElement;\n};\n\n/** A base interface used by the component transfer function interfaces. */\ninterface SVGComponentTransferFunctionElement extends SVGElement {\n readonly amplitude: SVGAnimatedNumber;\n readonly exponent: SVGAnimatedNumber;\n readonly intercept: SVGAnimatedNumber;\n readonly offset: SVGAnimatedNumber;\n readonly slope: SVGAnimatedNumber;\n readonly tableValues: SVGAnimatedNumberList;\n readonly type: SVGAnimatedEnumeration;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGComponentTransferFunctionElement: {\n prototype: SVGComponentTransferFunctionElement;\n new(): SVGComponentTransferFunctionElement;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;\n};\n\n/** Corresponds to the <defs> element. */\ninterface SVGDefsElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDefsElement: {\n prototype: SVGDefsElement;\n new(): SVGDefsElement;\n};\n\n/** Corresponds to the <desc> element. */\ninterface SVGDescElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDescElement: {\n prototype: SVGDescElement;\n new(): SVGDescElement;\n};\n\ninterface SVGElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {\n}\n\n/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */\ninterface SVGElement extends Element, DocumentAndElementEventHandlers, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, GlobalEventHandlers, HTMLOrSVGElement {\n /** @deprecated */\n readonly className: any;\n readonly ownerSVGElement: SVGSVGElement | null;\n readonly viewportElement: SVGElement | null;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGElement: {\n prototype: SVGElement;\n new(): SVGElement;\n};\n\n/** Provides access to the properties of <ellipse> elements. */\ninterface SVGEllipseElement extends SVGGeometryElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: SVGAnimatedLength;\n readonly rx: SVGAnimatedLength;\n readonly ry: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGEllipseElement: {\n prototype: SVGEllipseElement;\n new(): SVGEllipseElement;\n};\n\n/** Corresponds to the <feBlend> element. */\ninterface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly mode: SVGAnimatedEnumeration;\n readonly SVG_FEBLEND_MODE_COLOR: number;\n readonly SVG_FEBLEND_MODE_COLOR_BURN: number;\n readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;\n readonly SVG_FEBLEND_MODE_DARKEN: number;\n readonly SVG_FEBLEND_MODE_DIFFERENCE: number;\n readonly SVG_FEBLEND_MODE_EXCLUSION: number;\n readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;\n readonly SVG_FEBLEND_MODE_HUE: number;\n readonly SVG_FEBLEND_MODE_LIGHTEN: number;\n readonly SVG_FEBLEND_MODE_LUMINOSITY: number;\n readonly SVG_FEBLEND_MODE_MULTIPLY: number;\n readonly SVG_FEBLEND_MODE_NORMAL: number;\n readonly SVG_FEBLEND_MODE_OVERLAY: number;\n readonly SVG_FEBLEND_MODE_SATURATION: number;\n readonly SVG_FEBLEND_MODE_SCREEN: number;\n readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;\n readonly SVG_FEBLEND_MODE_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEBlendElement: {\n prototype: SVGFEBlendElement;\n new(): SVGFEBlendElement;\n readonly SVG_FEBLEND_MODE_COLOR: number;\n readonly SVG_FEBLEND_MODE_COLOR_BURN: number;\n readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;\n readonly SVG_FEBLEND_MODE_DARKEN: number;\n readonly SVG_FEBLEND_MODE_DIFFERENCE: number;\n readonly SVG_FEBLEND_MODE_EXCLUSION: number;\n readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;\n readonly SVG_FEBLEND_MODE_HUE: number;\n readonly SVG_FEBLEND_MODE_LIGHTEN: number;\n readonly SVG_FEBLEND_MODE_LUMINOSITY: number;\n readonly SVG_FEBLEND_MODE_MULTIPLY: number;\n readonly SVG_FEBLEND_MODE_NORMAL: number;\n readonly SVG_FEBLEND_MODE_OVERLAY: number;\n readonly SVG_FEBLEND_MODE_SATURATION: number;\n readonly SVG_FEBLEND_MODE_SCREEN: number;\n readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;\n readonly SVG_FEBLEND_MODE_UNKNOWN: number;\n};\n\n/** Corresponds to the <feColorMatrix> element. */\ninterface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly type: SVGAnimatedEnumeration;\n readonly values: SVGAnimatedNumberList;\n readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;\n readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;\n readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;\n readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;\n readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEColorMatrixElement: {\n prototype: SVGFEColorMatrixElement;\n new(): SVGFEColorMatrixElement;\n readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;\n readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;\n readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;\n readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;\n readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;\n};\n\n/** Corresponds to the <feComponentTransfer> element. */\ninterface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEComponentTransferElement: {\n prototype: SVGFEComponentTransferElement;\n new(): SVGFEComponentTransferElement;\n};\n\n/** Corresponds to the <feComposite> element. */\ninterface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly k1: SVGAnimatedNumber;\n readonly k2: SVGAnimatedNumber;\n readonly k3: SVGAnimatedNumber;\n readonly k4: SVGAnimatedNumber;\n readonly operator: SVGAnimatedEnumeration;\n readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;\n readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;\n readonly SVG_FECOMPOSITE_OPERATOR_IN: number;\n readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;\n readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;\n readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;\n readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFECompositeElement: {\n prototype: SVGFECompositeElement;\n new(): SVGFECompositeElement;\n readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;\n readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;\n readonly SVG_FECOMPOSITE_OPERATOR_IN: number;\n readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;\n readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;\n readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;\n readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;\n};\n\n/** Corresponds to the <feConvolveMatrix> element. */\ninterface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly bias: SVGAnimatedNumber;\n readonly divisor: SVGAnimatedNumber;\n readonly edgeMode: SVGAnimatedEnumeration;\n readonly in1: SVGAnimatedString;\n readonly kernelMatrix: SVGAnimatedNumberList;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly orderX: SVGAnimatedInteger;\n readonly orderY: SVGAnimatedInteger;\n readonly preserveAlpha: SVGAnimatedBoolean;\n readonly targetX: SVGAnimatedInteger;\n readonly targetY: SVGAnimatedInteger;\n readonly SVG_EDGEMODE_DUPLICATE: number;\n readonly SVG_EDGEMODE_NONE: number;\n readonly SVG_EDGEMODE_UNKNOWN: number;\n readonly SVG_EDGEMODE_WRAP: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEConvolveMatrixElement: {\n prototype: SVGFEConvolveMatrixElement;\n new(): SVGFEConvolveMatrixElement;\n readonly SVG_EDGEMODE_DUPLICATE: number;\n readonly SVG_EDGEMODE_NONE: number;\n readonly SVG_EDGEMODE_UNKNOWN: number;\n readonly SVG_EDGEMODE_WRAP: number;\n};\n\n/** Corresponds to the <feDiffuseLighting> element. */\ninterface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly diffuseConstant: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly surfaceScale: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDiffuseLightingElement: {\n prototype: SVGFEDiffuseLightingElement;\n new(): SVGFEDiffuseLightingElement;\n};\n\n/** Corresponds to the <feDisplacementMap> element. */\ninterface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly scale: SVGAnimatedNumber;\n readonly xChannelSelector: SVGAnimatedEnumeration;\n readonly yChannelSelector: SVGAnimatedEnumeration;\n readonly SVG_CHANNEL_A: number;\n readonly SVG_CHANNEL_B: number;\n readonly SVG_CHANNEL_G: number;\n readonly SVG_CHANNEL_R: number;\n readonly SVG_CHANNEL_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDisplacementMapElement: {\n prototype: SVGFEDisplacementMapElement;\n new(): SVGFEDisplacementMapElement;\n readonly SVG_CHANNEL_A: number;\n readonly SVG_CHANNEL_B: number;\n readonly SVG_CHANNEL_G: number;\n readonly SVG_CHANNEL_R: number;\n readonly SVG_CHANNEL_UNKNOWN: number;\n};\n\n/** Corresponds to the <feDistantLight> element. */\ninterface SVGFEDistantLightElement extends SVGElement {\n readonly azimuth: SVGAnimatedNumber;\n readonly elevation: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDistantLightElement: {\n prototype: SVGFEDistantLightElement;\n new(): SVGFEDistantLightElement;\n};\n\ninterface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly dx: SVGAnimatedNumber;\n readonly dy: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n readonly stdDeviationX: SVGAnimatedNumber;\n readonly stdDeviationY: SVGAnimatedNumber;\n setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDropShadowElement: {\n prototype: SVGFEDropShadowElement;\n new(): SVGFEDropShadowElement;\n};\n\n/** Corresponds to the <feFlood> element. */\ninterface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFloodElement: {\n prototype: SVGFEFloodElement;\n new(): SVGFEFloodElement;\n};\n\n/** Corresponds to the <feFuncA> element. */\ninterface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncAElement: {\n prototype: SVGFEFuncAElement;\n new(): SVGFEFuncAElement;\n};\n\n/** Corresponds to the <feFuncB> element. */\ninterface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncBElement: {\n prototype: SVGFEFuncBElement;\n new(): SVGFEFuncBElement;\n};\n\n/** Corresponds to the <feFuncG> element. */\ninterface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncGElement: {\n prototype: SVGFEFuncGElement;\n new(): SVGFEFuncGElement;\n};\n\n/** Corresponds to the <feFuncR> element. */\ninterface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncRElement: {\n prototype: SVGFEFuncRElement;\n new(): SVGFEFuncRElement;\n};\n\n/** Corresponds to the <feGaussianBlur> element. */\ninterface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly stdDeviationX: SVGAnimatedNumber;\n readonly stdDeviationY: SVGAnimatedNumber;\n setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEGaussianBlurElement: {\n prototype: SVGFEGaussianBlurElement;\n new(): SVGFEGaussianBlurElement;\n};\n\n/** Corresponds to the <feImage> element. */\ninterface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEImageElement: {\n prototype: SVGFEImageElement;\n new(): SVGFEImageElement;\n};\n\n/** Corresponds to the <feMerge> element. */\ninterface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeElement: {\n prototype: SVGFEMergeElement;\n new(): SVGFEMergeElement;\n};\n\n/** Corresponds to the <feMergeNode> element. */\ninterface SVGFEMergeNodeElement extends SVGElement {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeNodeElement: {\n prototype: SVGFEMergeNodeElement;\n new(): SVGFEMergeNodeElement;\n};\n\n/** Corresponds to the <feMorphology> element. */\ninterface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly operator: SVGAnimatedEnumeration;\n readonly radiusX: SVGAnimatedNumber;\n readonly radiusY: SVGAnimatedNumber;\n readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;\n readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;\n readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMorphologyElement: {\n prototype: SVGFEMorphologyElement;\n new(): SVGFEMorphologyElement;\n readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;\n readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;\n readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;\n};\n\n/** Corresponds to the <feOffset> element. */\ninterface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly dx: SVGAnimatedNumber;\n readonly dy: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEOffsetElement: {\n prototype: SVGFEOffsetElement;\n new(): SVGFEOffsetElement;\n};\n\n/** Corresponds to the <fePointLight> element. */\ninterface SVGFEPointLightElement extends SVGElement {\n readonly x: SVGAnimatedNumber;\n readonly y: SVGAnimatedNumber;\n readonly z: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEPointLightElement: {\n prototype: SVGFEPointLightElement;\n new(): SVGFEPointLightElement;\n};\n\n/** Corresponds to the <feSpecularLighting> element. */\ninterface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly specularConstant: SVGAnimatedNumber;\n readonly specularExponent: SVGAnimatedNumber;\n readonly surfaceScale: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpecularLightingElement: {\n prototype: SVGFESpecularLightingElement;\n new(): SVGFESpecularLightingElement;\n};\n\n/** Corresponds to the <feSpotLight> element. */\ninterface SVGFESpotLightElement extends SVGElement {\n readonly limitingConeAngle: SVGAnimatedNumber;\n readonly pointsAtX: SVGAnimatedNumber;\n readonly pointsAtY: SVGAnimatedNumber;\n readonly pointsAtZ: SVGAnimatedNumber;\n readonly specularExponent: SVGAnimatedNumber;\n readonly x: SVGAnimatedNumber;\n readonly y: SVGAnimatedNumber;\n readonly z: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpotLightElement: {\n prototype: SVGFESpotLightElement;\n new(): SVGFESpotLightElement;\n};\n\n/** Corresponds to the <feTile> element. */\ninterface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFETileElement: {\n prototype: SVGFETileElement;\n new(): SVGFETileElement;\n};\n\n/** Corresponds to the <feTurbulence> element. */\ninterface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly baseFrequencyX: SVGAnimatedNumber;\n readonly baseFrequencyY: SVGAnimatedNumber;\n readonly numOctaves: SVGAnimatedInteger;\n readonly seed: SVGAnimatedNumber;\n readonly stitchTiles: SVGAnimatedEnumeration;\n readonly type: SVGAnimatedEnumeration;\n readonly SVG_STITCHTYPE_NOSTITCH: number;\n readonly SVG_STITCHTYPE_STITCH: number;\n readonly SVG_STITCHTYPE_UNKNOWN: number;\n readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;\n readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;\n readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFETurbulenceElement: {\n prototype: SVGFETurbulenceElement;\n new(): SVGFETurbulenceElement;\n readonly SVG_STITCHTYPE_NOSTITCH: number;\n readonly SVG_STITCHTYPE_STITCH: number;\n readonly SVG_STITCHTYPE_UNKNOWN: number;\n readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;\n readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;\n readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;\n};\n\n/** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */\ninterface SVGFilterElement extends SVGElement, SVGURIReference {\n readonly filterUnits: SVGAnimatedEnumeration;\n readonly height: SVGAnimatedLength;\n readonly primitiveUnits: SVGAnimatedEnumeration;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFilterElement: {\n prototype: SVGFilterElement;\n new(): SVGFilterElement;\n};\n\ninterface SVGFilterPrimitiveStandardAttributes {\n readonly height: SVGAnimatedLength;\n readonly result: SVGAnimatedString;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n}\n\ninterface SVGFitToViewBox {\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n readonly viewBox: SVGAnimatedRect;\n}\n\n/** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */\ninterface SVGForeignObjectElement extends SVGGraphicsElement {\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGForeignObjectElement: {\n prototype: SVGForeignObjectElement;\n new(): SVGForeignObjectElement;\n};\n\n/** Corresponds to the <g> element. */\ninterface SVGGElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGElement: {\n prototype: SVGGElement;\n new(): SVGGElement;\n};\n\ninterface SVGGeometryElement extends SVGGraphicsElement {\n readonly pathLength: SVGAnimatedNumber;\n getPointAtLength(distance: number): DOMPoint;\n getTotalLength(): number;\n isPointInFill(point?: DOMPointInit): boolean;\n isPointInStroke(point?: DOMPointInit): boolean;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGeometryElement: {\n prototype: SVGGeometryElement;\n new(): SVGGeometryElement;\n};\n\n/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */\ninterface SVGGradientElement extends SVGElement, SVGURIReference {\n readonly gradientTransform: SVGAnimatedTransformList;\n readonly gradientUnits: SVGAnimatedEnumeration;\n readonly spreadMethod: SVGAnimatedEnumeration;\n readonly SVG_SPREADMETHOD_PAD: number;\n readonly SVG_SPREADMETHOD_REFLECT: number;\n readonly SVG_SPREADMETHOD_REPEAT: number;\n readonly SVG_SPREADMETHOD_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGradientElement: {\n prototype: SVGGradientElement;\n new(): SVGGradientElement;\n readonly SVG_SPREADMETHOD_PAD: number;\n readonly SVG_SPREADMETHOD_REFLECT: number;\n readonly SVG_SPREADMETHOD_REPEAT: number;\n readonly SVG_SPREADMETHOD_UNKNOWN: number;\n};\n\n/** SVG elements whose primary purpose is to directly render graphics into a group. */\ninterface SVGGraphicsElement extends SVGElement, SVGTests {\n readonly transform: SVGAnimatedTransformList;\n getBBox(options?: SVGBoundingBoxOptions): DOMRect;\n getCTM(): DOMMatrix | null;\n getScreenCTM(): DOMMatrix | null;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGraphicsElement: {\n prototype: SVGGraphicsElement;\n new(): SVGGraphicsElement;\n};\n\n/** Corresponds to the <image> element. */\ninterface SVGImageElement extends SVGGraphicsElement, SVGURIReference {\n readonly height: SVGAnimatedLength;\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGImageElement: {\n prototype: SVGImageElement;\n new(): SVGImageElement;\n};\n\n/** Correspond to the <length> basic data type. */\ninterface SVGLength {\n readonly unitType: number;\n value: number;\n valueAsString: string;\n valueInSpecifiedUnits: number;\n convertToSpecifiedUnits(unitType: number): void;\n newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n readonly SVG_LENGTHTYPE_CM: number;\n readonly SVG_LENGTHTYPE_EMS: number;\n readonly SVG_LENGTHTYPE_EXS: number;\n readonly SVG_LENGTHTYPE_IN: number;\n readonly SVG_LENGTHTYPE_MM: number;\n readonly SVG_LENGTHTYPE_NUMBER: number;\n readonly SVG_LENGTHTYPE_PC: number;\n readonly SVG_LENGTHTYPE_PERCENTAGE: number;\n readonly SVG_LENGTHTYPE_PT: number;\n readonly SVG_LENGTHTYPE_PX: number;\n readonly SVG_LENGTHTYPE_UNKNOWN: number;\n}\n\ndeclare var SVGLength: {\n prototype: SVGLength;\n new(): SVGLength;\n readonly SVG_LENGTHTYPE_CM: number;\n readonly SVG_LENGTHTYPE_EMS: number;\n readonly SVG_LENGTHTYPE_EXS: number;\n readonly SVG_LENGTHTYPE_IN: number;\n readonly SVG_LENGTHTYPE_MM: number;\n readonly SVG_LENGTHTYPE_NUMBER: number;\n readonly SVG_LENGTHTYPE_PC: number;\n readonly SVG_LENGTHTYPE_PERCENTAGE: number;\n readonly SVG_LENGTHTYPE_PT: number;\n readonly SVG_LENGTHTYPE_PX: number;\n readonly SVG_LENGTHTYPE_UNKNOWN: number;\n};\n\n/** The SVGLengthList defines a list of SVGLength objects. */\ninterface SVGLengthList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGLength): SVGLength;\n clear(): void;\n getItem(index: number): SVGLength;\n initialize(newItem: SVGLength): SVGLength;\n insertItemBefore(newItem: SVGLength, index: number): SVGLength;\n removeItem(index: number): SVGLength;\n replaceItem(newItem: SVGLength, index: number): SVGLength;\n [index: number]: SVGLength;\n}\n\ndeclare var SVGLengthList: {\n prototype: SVGLengthList;\n new(): SVGLengthList;\n};\n\n/** Provides access to the properties of <line> elements, as well as methods to manipulate them. */\ninterface SVGLineElement extends SVGGeometryElement {\n readonly x1: SVGAnimatedLength;\n readonly x2: SVGAnimatedLength;\n readonly y1: SVGAnimatedLength;\n readonly y2: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLineElement: {\n prototype: SVGLineElement;\n new(): SVGLineElement;\n};\n\n/** Corresponds to the <linearGradient> element. */\ninterface SVGLinearGradientElement extends SVGGradientElement {\n readonly x1: SVGAnimatedLength;\n readonly x2: SVGAnimatedLength;\n readonly y1: SVGAnimatedLength;\n readonly y2: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLinearGradientElement: {\n prototype: SVGLinearGradientElement;\n new(): SVGLinearGradientElement;\n};\n\ninterface SVGMPathElement extends SVGElement, SVGURIReference {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMPathElement: {\n prototype: SVGMPathElement;\n new(): SVGMPathElement;\n};\n\ninterface SVGMarkerElement extends SVGElement, SVGFitToViewBox {\n readonly markerHeight: SVGAnimatedLength;\n readonly markerUnits: SVGAnimatedEnumeration;\n readonly markerWidth: SVGAnimatedLength;\n readonly orientAngle: SVGAnimatedAngle;\n readonly orientType: SVGAnimatedEnumeration;\n readonly refX: SVGAnimatedLength;\n readonly refY: SVGAnimatedLength;\n setOrientToAngle(angle: SVGAngle): void;\n setOrientToAuto(): void;\n readonly SVG_MARKERUNITS_STROKEWIDTH: number;\n readonly SVG_MARKERUNITS_UNKNOWN: number;\n readonly SVG_MARKERUNITS_USERSPACEONUSE: number;\n readonly SVG_MARKER_ORIENT_ANGLE: number;\n readonly SVG_MARKER_ORIENT_AUTO: number;\n readonly SVG_MARKER_ORIENT_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMarkerElement: {\n prototype: SVGMarkerElement;\n new(): SVGMarkerElement;\n readonly SVG_MARKERUNITS_STROKEWIDTH: number;\n readonly SVG_MARKERUNITS_UNKNOWN: number;\n readonly SVG_MARKERUNITS_USERSPACEONUSE: number;\n readonly SVG_MARKER_ORIENT_ANGLE: number;\n readonly SVG_MARKER_ORIENT_AUTO: number;\n readonly SVG_MARKER_ORIENT_UNKNOWN: number;\n};\n\n/** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */\ninterface SVGMaskElement extends SVGElement {\n readonly height: SVGAnimatedLength;\n readonly maskContentUnits: SVGAnimatedEnumeration;\n readonly maskUnits: SVGAnimatedEnumeration;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMaskElement: {\n prototype: SVGMaskElement;\n new(): SVGMaskElement;\n};\n\n/** Corresponds to the <metadata> element. */\ninterface SVGMetadataElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMetadataElement: {\n prototype: SVGMetadataElement;\n new(): SVGMetadataElement;\n};\n\n/** Corresponds to the <number> basic data type. */\ninterface SVGNumber {\n value: number;\n}\n\ndeclare var SVGNumber: {\n prototype: SVGNumber;\n new(): SVGNumber;\n};\n\n/** The SVGNumberList defines a list of SVGNumber objects. */\ninterface SVGNumberList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGNumber): SVGNumber;\n clear(): void;\n getItem(index: number): SVGNumber;\n initialize(newItem: SVGNumber): SVGNumber;\n insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;\n removeItem(index: number): SVGNumber;\n replaceItem(newItem: SVGNumber, index: number): SVGNumber;\n [index: number]: SVGNumber;\n}\n\ndeclare var SVGNumberList: {\n prototype: SVGNumberList;\n new(): SVGNumberList;\n};\n\n/** Corresponds to the <path> element. */\ninterface SVGPathElement extends SVGGeometryElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPathElement: {\n prototype: SVGPathElement;\n new(): SVGPathElement;\n};\n\n/** Corresponds to the <pattern> element. */\ninterface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {\n readonly height: SVGAnimatedLength;\n readonly patternContentUnits: SVGAnimatedEnumeration;\n readonly patternTransform: SVGAnimatedTransformList;\n readonly patternUnits: SVGAnimatedEnumeration;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPatternElement: {\n prototype: SVGPatternElement;\n new(): SVGPatternElement;\n};\n\ninterface SVGPointList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: DOMPoint): DOMPoint;\n clear(): void;\n getItem(index: number): DOMPoint;\n initialize(newItem: DOMPoint): DOMPoint;\n insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;\n removeItem(index: number): DOMPoint;\n replaceItem(newItem: DOMPoint, index: number): DOMPoint;\n [index: number]: DOMPoint;\n}\n\ndeclare var SVGPointList: {\n prototype: SVGPointList;\n new(): SVGPointList;\n};\n\n/** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */\ninterface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPolygonElement: {\n prototype: SVGPolygonElement;\n new(): SVGPolygonElement;\n};\n\n/** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */\ninterface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPolylineElement: {\n prototype: SVGPolylineElement;\n new(): SVGPolylineElement;\n};\n\n/** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG\'s elements. */\ninterface SVGPreserveAspectRatio {\n align: number;\n meetOrSlice: number;\n readonly SVG_MEETORSLICE_MEET: number;\n readonly SVG_MEETORSLICE_SLICE: number;\n readonly SVG_MEETORSLICE_UNKNOWN: number;\n readonly SVG_PRESERVEASPECTRATIO_NONE: number;\n readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;\n}\n\ndeclare var SVGPreserveAspectRatio: {\n prototype: SVGPreserveAspectRatio;\n new(): SVGPreserveAspectRatio;\n readonly SVG_MEETORSLICE_MEET: number;\n readonly SVG_MEETORSLICE_SLICE: number;\n readonly SVG_MEETORSLICE_UNKNOWN: number;\n readonly SVG_PRESERVEASPECTRATIO_NONE: number;\n readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;\n};\n\n/** Corresponds to the <RadialGradient> element. */\ninterface SVGRadialGradientElement extends SVGGradientElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: SVGAnimatedLength;\n readonly fr: SVGAnimatedLength;\n readonly fx: SVGAnimatedLength;\n readonly fy: SVGAnimatedLength;\n readonly r: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRadialGradientElement: {\n prototype: SVGRadialGradientElement;\n new(): SVGRadialGradientElement;\n};\n\n/** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */\ninterface SVGRectElement extends SVGGeometryElement {\n readonly height: SVGAnimatedLength;\n readonly rx: SVGAnimatedLength;\n readonly ry: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRectElement: {\n prototype: SVGRectElement;\n new(): SVGRectElement;\n};\n\ninterface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {\n}\n\n/** 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. */\ninterface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {\n currentScale: number;\n readonly currentTranslate: DOMPointReadOnly;\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n animationsPaused(): boolean;\n checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;\n checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;\n createSVGAngle(): SVGAngle;\n createSVGLength(): SVGLength;\n createSVGMatrix(): DOMMatrix;\n createSVGNumber(): SVGNumber;\n createSVGPoint(): DOMPoint;\n createSVGRect(): DOMRect;\n createSVGTransform(): SVGTransform;\n createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n deselectAll(): void;\n /** @deprecated */\n forceRedraw(): void;\n getCurrentTime(): number;\n getElementById(elementId: string): Element;\n getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n pauseAnimations(): void;\n setCurrentTime(seconds: number): void;\n /** @deprecated */\n suspendRedraw(maxWaitMilliseconds: number): number;\n unpauseAnimations(): void;\n /** @deprecated */\n unsuspendRedraw(suspendHandleID: number): void;\n /** @deprecated */\n unsuspendRedrawAll(): void;\n addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSVGElement: {\n prototype: SVGSVGElement;\n new(): SVGSVGElement;\n};\n\n/** Corresponds to the SVG <script> element. */\ninterface SVGScriptElement extends SVGElement, SVGURIReference {\n type: string;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGScriptElement: {\n prototype: SVGScriptElement;\n new(): SVGScriptElement;\n};\n\ninterface SVGSetElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSetElement: {\n prototype: SVGSetElement;\n new(): SVGSetElement;\n};\n\n/** Corresponds to the <stop> element. */\ninterface SVGStopElement extends SVGElement {\n readonly offset: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGStopElement: {\n prototype: SVGStopElement;\n new(): SVGStopElement;\n};\n\n/** The SVGStringList defines a list of DOMString objects. */\ninterface SVGStringList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: string): string;\n clear(): void;\n getItem(index: number): string;\n initialize(newItem: string): string;\n insertItemBefore(newItem: string, index: number): string;\n removeItem(index: number): string;\n replaceItem(newItem: string, index: number): string;\n [index: number]: string;\n}\n\ndeclare var SVGStringList: {\n prototype: SVGStringList;\n new(): SVGStringList;\n};\n\n/** Corresponds to the SVG <style> element. */\ninterface SVGStyleElement extends SVGElement, LinkStyle {\n disabled: boolean;\n media: string;\n title: string;\n type: string;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGStyleElement: {\n prototype: SVGStyleElement;\n new(): SVGStyleElement;\n};\n\n/** Corresponds to the <switch> element. */\ninterface SVGSwitchElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSwitchElement: {\n prototype: SVGSwitchElement;\n new(): SVGSwitchElement;\n};\n\n/** Corresponds to the <symbol> element. */\ninterface SVGSymbolElement extends SVGElement, SVGFitToViewBox {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSymbolElement: {\n prototype: SVGSymbolElement;\n new(): SVGSymbolElement;\n};\n\n/** A <tspan> element. */\ninterface SVGTSpanElement extends SVGTextPositioningElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTSpanElement: {\n prototype: SVGTSpanElement;\n new(): SVGTSpanElement;\n};\n\ninterface SVGTests {\n readonly requiredExtensions: SVGStringList;\n readonly systemLanguage: SVGStringList;\n}\n\n/** 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. */\ninterface SVGTextContentElement extends SVGGraphicsElement {\n readonly lengthAdjust: SVGAnimatedEnumeration;\n readonly textLength: SVGAnimatedLength;\n getCharNumAtPosition(point?: DOMPointInit): number;\n getComputedTextLength(): number;\n getEndPositionOfChar(charnum: number): DOMPoint;\n getExtentOfChar(charnum: number): DOMRect;\n getNumberOfChars(): number;\n getRotationOfChar(charnum: number): number;\n getStartPositionOfChar(charnum: number): DOMPoint;\n getSubStringLength(charnum: number, nchars: number): number;\n /** @deprecated */\n selectSubString(charnum: number, nchars: number): void;\n readonly LENGTHADJUST_SPACING: number;\n readonly LENGTHADJUST_SPACINGANDGLYPHS: number;\n readonly LENGTHADJUST_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextContentElement: {\n prototype: SVGTextContentElement;\n new(): SVGTextContentElement;\n readonly LENGTHADJUST_SPACING: number;\n readonly LENGTHADJUST_SPACINGANDGLYPHS: number;\n readonly LENGTHADJUST_UNKNOWN: number;\n};\n\n/** Corresponds to the <text> elements. */\ninterface SVGTextElement extends SVGTextPositioningElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextElement: {\n prototype: SVGTextElement;\n new(): SVGTextElement;\n};\n\n/** Corresponds to the <textPath> element. */\ninterface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {\n readonly method: SVGAnimatedEnumeration;\n readonly spacing: SVGAnimatedEnumeration;\n readonly startOffset: SVGAnimatedLength;\n readonly TEXTPATH_METHODTYPE_ALIGN: number;\n readonly TEXTPATH_METHODTYPE_STRETCH: number;\n readonly TEXTPATH_METHODTYPE_UNKNOWN: number;\n readonly TEXTPATH_SPACINGTYPE_AUTO: number;\n readonly TEXTPATH_SPACINGTYPE_EXACT: number;\n readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextPathElement: {\n prototype: SVGTextPathElement;\n new(): SVGTextPathElement;\n readonly TEXTPATH_METHODTYPE_ALIGN: number;\n readonly TEXTPATH_METHODTYPE_STRETCH: number;\n readonly TEXTPATH_METHODTYPE_UNKNOWN: number;\n readonly TEXTPATH_SPACINGTYPE_AUTO: number;\n readonly TEXTPATH_SPACINGTYPE_EXACT: number;\n readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;\n};\n\n/** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */\ninterface SVGTextPositioningElement extends SVGTextContentElement {\n readonly dx: SVGAnimatedLengthList;\n readonly dy: SVGAnimatedLengthList;\n readonly rotate: SVGAnimatedNumberList;\n readonly x: SVGAnimatedLengthList;\n readonly y: SVGAnimatedLengthList;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextPositioningElement: {\n prototype: SVGTextPositioningElement;\n new(): SVGTextPositioningElement;\n};\n\n/** Corresponds to the <title> element. */\ninterface SVGTitleElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTitleElement: {\n prototype: SVGTitleElement;\n new(): SVGTitleElement;\n};\n\n/** 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(…) or matrix(…)) within a transform attribute. */\ninterface SVGTransform {\n readonly angle: number;\n readonly matrix: DOMMatrix;\n readonly type: number;\n setMatrix(matrix?: DOMMatrix2DInit): void;\n setRotate(angle: number, cx: number, cy: number): void;\n setScale(sx: number, sy: number): void;\n setSkewX(angle: number): void;\n setSkewY(angle: number): void;\n setTranslate(tx: number, ty: number): void;\n readonly SVG_TRANSFORM_MATRIX: number;\n readonly SVG_TRANSFORM_ROTATE: number;\n readonly SVG_TRANSFORM_SCALE: number;\n readonly SVG_TRANSFORM_SKEWX: number;\n readonly SVG_TRANSFORM_SKEWY: number;\n readonly SVG_TRANSFORM_TRANSLATE: number;\n readonly SVG_TRANSFORM_UNKNOWN: number;\n}\n\ndeclare var SVGTransform: {\n prototype: SVGTransform;\n new(): SVGTransform;\n readonly SVG_TRANSFORM_MATRIX: number;\n readonly SVG_TRANSFORM_ROTATE: number;\n readonly SVG_TRANSFORM_SCALE: number;\n readonly SVG_TRANSFORM_SKEWX: number;\n readonly SVG_TRANSFORM_SKEWY: number;\n readonly SVG_TRANSFORM_TRANSLATE: number;\n readonly SVG_TRANSFORM_UNKNOWN: number;\n};\n\n/** The SVGTransformList defines a list of SVGTransform objects. */\ninterface SVGTransformList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGTransform): SVGTransform;\n clear(): void;\n consolidate(): SVGTransform | null;\n createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n getItem(index: number): SVGTransform;\n initialize(newItem: SVGTransform): SVGTransform;\n insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;\n removeItem(index: number): SVGTransform;\n replaceItem(newItem: SVGTransform, index: number): SVGTransform;\n [index: number]: SVGTransform;\n}\n\ndeclare var SVGTransformList: {\n prototype: SVGTransformList;\n new(): SVGTransformList;\n};\n\ninterface SVGURIReference {\n readonly href: SVGAnimatedString;\n}\n\n/** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */\ninterface SVGUnitTypes {\n readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;\n readonly SVG_UNIT_TYPE_UNKNOWN: number;\n readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;\n}\n\ndeclare var SVGUnitTypes: {\n prototype: SVGUnitTypes;\n new(): SVGUnitTypes;\n readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;\n readonly SVG_UNIT_TYPE_UNKNOWN: number;\n readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;\n};\n\n/** Corresponds to the <use> element. */\ninterface SVGUseElement extends SVGGraphicsElement, SVGURIReference {\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGUseElement: {\n prototype: SVGUseElement;\n new(): SVGUseElement;\n};\n\n/** Provides access to the properties of <view> elements, as well as methods to manipulate them. */\ninterface SVGViewElement extends SVGElement, SVGFitToViewBox {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGViewElement: {\n prototype: SVGViewElement;\n new(): SVGViewElement;\n};\n\n/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */\ninterface Screen {\n readonly availHeight: number;\n readonly availWidth: number;\n readonly colorDepth: number;\n readonly height: number;\n readonly orientation: ScreenOrientation;\n readonly pixelDepth: number;\n readonly width: number;\n}\n\ndeclare var Screen: {\n prototype: Screen;\n new(): Screen;\n};\n\ninterface ScreenOrientationEventMap {\n "change": Event;\n}\n\ninterface ScreenOrientation extends EventTarget {\n readonly angle: number;\n onchange: ((this: ScreenOrientation, ev: Event) => any) | null;\n readonly type: OrientationType;\n lock(orientation: OrientationLockType): Promise<void>;\n unlock(): void;\n addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ScreenOrientation: {\n prototype: ScreenOrientation;\n new(): ScreenOrientation;\n};\n\ninterface ScriptProcessorNodeEventMap {\n "audioprocess": AudioProcessingEvent;\n}\n\n/**\n * Allows the generation, processing, or analyzing of audio using JavaScript.\n * @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).\n */\ninterface ScriptProcessorNode extends AudioNode {\n /** @deprecated */\n readonly bufferSize: number;\n /** @deprecated */\n onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;\n addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var ScriptProcessorNode: {\n prototype: ScriptProcessorNode;\n new(): ScriptProcessorNode;\n};\n\n/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */\ninterface SecurityPolicyViolationEvent extends Event {\n readonly blockedURI: string;\n readonly columnNumber: number;\n readonly disposition: SecurityPolicyViolationEventDisposition;\n readonly documentURI: string;\n readonly effectiveDirective: string;\n readonly lineNumber: number;\n readonly originalPolicy: string;\n readonly referrer: string;\n readonly sample: string;\n readonly sourceFile: string;\n readonly statusCode: number;\n readonly violatedDirective: string;\n}\n\ndeclare var SecurityPolicyViolationEvent: {\n prototype: SecurityPolicyViolationEvent;\n new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;\n};\n\n/** A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection(). */\ninterface Selection {\n readonly anchorNode: Node | null;\n readonly anchorOffset: number;\n readonly focusNode: Node | null;\n readonly focusOffset: number;\n readonly isCollapsed: boolean;\n readonly rangeCount: number;\n readonly type: string;\n addRange(range: Range): void;\n collapse(node: Node | null, offset?: number): void;\n collapseToEnd(): void;\n collapseToStart(): void;\n containsNode(node: Node, allowPartialContainment?: boolean): boolean;\n deleteFromDocument(): void;\n empty(): void;\n extend(node: Node, offset?: number): void;\n getRangeAt(index: number): Range;\n removeAllRanges(): void;\n removeRange(range: Range): void;\n selectAllChildren(node: Node): void;\n setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;\n setPosition(node: Node | null, offset?: number): void;\n toString(): string;\n}\n\ndeclare var Selection: {\n prototype: Selection;\n new(): Selection;\n toString(): string;\n};\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n "statechange": Event;\n}\n\n/** 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. */\ninterface ServiceWorker extends EventTarget, AbstractWorker {\n onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;\n readonly scriptURL: string;\n readonly state: ServiceWorkerState;\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: PostMessageOptions): void;\n addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorker: {\n prototype: ServiceWorker;\n new(): ServiceWorker;\n};\n\ninterface ServiceWorkerContainerEventMap {\n "controllerchange": Event;\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** The ServiceWorkerContainer interface of the ServiceWorker API provides 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. */\ninterface ServiceWorkerContainer extends EventTarget {\n readonly controller: ServiceWorker | null;\n oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n readonly ready: Promise<ServiceWorkerRegistration>;\n getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n startMessages(): void;\n addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerContainer: {\n prototype: ServiceWorkerContainer;\n new(): ServiceWorkerContainer;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n "updatefound": Event;\n}\n\n/** 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. */\ninterface ServiceWorkerRegistration extends EventTarget {\n readonly active: ServiceWorker | null;\n readonly installing: ServiceWorker | null;\n onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;\n readonly pushManager: PushManager;\n readonly scope: string;\n readonly updateViaCache: ServiceWorkerUpdateViaCache;\n readonly waiting: ServiceWorker | null;\n getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n showNotification(title: string, options?: NotificationOptions): Promise<void>;\n unregister(): Promise<boolean>;\n update(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerRegistration: {\n prototype: ServiceWorkerRegistration;\n new(): ServiceWorkerRegistration;\n};\n\ninterface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {\n readonly delegatesFocus: boolean;\n readonly host: Element;\n readonly mode: ShadowRootMode;\n /**\n * Throws a "NotSupportedError" DOMException if context object is a shadow root.\n */\n}\n\ndeclare var ShadowRoot: {\n prototype: ShadowRoot;\n new(): ShadowRoot;\n};\n\ninterface SharedWorker extends EventTarget, AbstractWorker {\n /**\n * Returns sharedWorker\'s MessagePort object which can be used to communicate with the global environment.\n */\n readonly port: MessagePort;\n addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SharedWorker: {\n prototype: SharedWorker;\n new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;\n};\n\ninterface Slottable {\n readonly assignedSlot: HTMLSlotElement | null;\n}\n\ninterface SourceBufferEventMap {\n "abort": Event;\n "error": Event;\n "update": Event;\n "updateend": Event;\n "updatestart": Event;\n}\n\n/** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments. */\ninterface SourceBuffer extends EventTarget {\n appendWindowEnd: number;\n appendWindowStart: number;\n readonly buffered: TimeRanges;\n mode: AppendMode;\n onabort: ((this: SourceBuffer, ev: Event) => any) | null;\n onerror: ((this: SourceBuffer, ev: Event) => any) | null;\n onupdate: ((this: SourceBuffer, ev: Event) => any) | null;\n onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;\n onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;\n timestampOffset: number;\n readonly updating: boolean;\n abort(): void;\n appendBuffer(data: BufferSource): void;\n changeType(type: string): void;\n remove(start: number, end: number): void;\n addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SourceBuffer: {\n prototype: SourceBuffer;\n new(): SourceBuffer;\n};\n\ninterface SourceBufferListEventMap {\n "addsourcebuffer": Event;\n "removesourcebuffer": Event;\n}\n\n/** A simple container list for multiple SourceBuffer objects. */\ninterface SourceBufferList extends EventTarget {\n readonly length: number;\n onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: SourceBuffer;\n}\n\ndeclare var SourceBufferList: {\n prototype: SourceBufferList;\n new(): SourceBufferList;\n};\n\ninterface SpeechRecognitionAlternative {\n readonly confidence: number;\n readonly transcript: string;\n}\n\ndeclare var SpeechRecognitionAlternative: {\n prototype: SpeechRecognitionAlternative;\n new(): SpeechRecognitionAlternative;\n};\n\ninterface SpeechRecognitionResult {\n readonly isFinal: boolean;\n readonly length: number;\n item(index: number): SpeechRecognitionAlternative;\n [index: number]: SpeechRecognitionAlternative;\n}\n\ndeclare var SpeechRecognitionResult: {\n prototype: SpeechRecognitionResult;\n new(): SpeechRecognitionResult;\n};\n\ninterface SpeechRecognitionResultList {\n readonly length: number;\n item(index: number): SpeechRecognitionResult;\n [index: number]: SpeechRecognitionResult;\n}\n\ndeclare var SpeechRecognitionResultList: {\n prototype: SpeechRecognitionResultList;\n new(): SpeechRecognitionResultList;\n};\n\ninterface SpeechSynthesisEventMap {\n "voiceschanged": Event;\n}\n\n/** 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. */\ninterface SpeechSynthesis extends EventTarget {\n onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;\n readonly paused: boolean;\n readonly pending: boolean;\n readonly speaking: boolean;\n cancel(): void;\n getVoices(): SpeechSynthesisVoice[];\n pause(): void;\n resume(): void;\n speak(utterance: SpeechSynthesisUtterance): void;\n addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SpeechSynthesis: {\n prototype: SpeechSynthesis;\n new(): SpeechSynthesis;\n};\n\ninterface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {\n readonly error: SpeechSynthesisErrorCode;\n}\n\ndeclare var SpeechSynthesisErrorEvent: {\n prototype: SpeechSynthesisErrorEvent;\n new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;\n};\n\n/** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */\ninterface SpeechSynthesisEvent extends Event {\n readonly charIndex: number;\n readonly charLength: number;\n readonly elapsedTime: number;\n readonly name: string;\n readonly utterance: SpeechSynthesisUtterance;\n}\n\ndeclare var SpeechSynthesisEvent: {\n prototype: SpeechSynthesisEvent;\n new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;\n};\n\ninterface SpeechSynthesisUtteranceEventMap {\n "boundary": SpeechSynthesisEvent;\n "end": SpeechSynthesisEvent;\n "error": SpeechSynthesisErrorEvent;\n "mark": SpeechSynthesisEvent;\n "pause": SpeechSynthesisEvent;\n "resume": SpeechSynthesisEvent;\n "start": SpeechSynthesisEvent;\n}\n\n/** 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.) */\ninterface SpeechSynthesisUtterance extends EventTarget {\n lang: string;\n onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;\n onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n pitch: number;\n rate: number;\n text: string;\n voice: SpeechSynthesisVoice | null;\n volume: number;\n addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SpeechSynthesisUtterance: {\n prototype: SpeechSynthesisUtterance;\n new(text?: string): SpeechSynthesisUtterance;\n};\n\n/** 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. */\ninterface SpeechSynthesisVoice {\n readonly default: boolean;\n readonly lang: string;\n readonly localService: boolean;\n readonly name: string;\n readonly voiceURI: string;\n}\n\ndeclare var SpeechSynthesisVoice: {\n prototype: SpeechSynthesisVoice;\n new(): SpeechSynthesisVoice;\n};\n\ninterface StaticRange extends AbstractRange {\n}\n\ndeclare var StaticRange: {\n prototype: StaticRange;\n new(init: StaticRangeInit): StaticRange;\n};\n\n/** 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. */\ninterface StereoPannerNode extends AudioNode {\n readonly pan: AudioParam;\n}\n\ndeclare var StereoPannerNode: {\n prototype: StereoPannerNode;\n new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;\n};\n\n/** 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. */\ninterface Storage {\n /**\n * Returns the number of key/value pairs.\n */\n readonly length: number;\n /**\n * Removes all key/value pairs, if there are any.\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n */\n clear(): void;\n /**\n * Returns the current value associated with the given key, or null if the given key does not exist.\n */\n getItem(key: string): string | null;\n /**\n * Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.\n */\n key(index: number): string | null;\n /**\n * Removes the key/value pair with the given key, if a key/value pair with the given key exists.\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n */\n removeItem(key: string): void;\n /**\n * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.\n *\n * 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.)\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n */\n setItem(key: string, value: string): void;\n [name: string]: any;\n}\n\ndeclare var Storage: {\n prototype: Storage;\n new(): Storage;\n};\n\n/** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */\ninterface StorageEvent extends Event {\n /**\n * Returns the key of the storage item being changed.\n */\n readonly key: string | null;\n /**\n * Returns the new value of the key of the storage item whose value is being changed.\n */\n readonly newValue: string | null;\n /**\n * Returns the old value of the key of the storage item whose value is being changed.\n */\n readonly oldValue: string | null;\n /**\n * Returns the Storage object that was affected.\n */\n readonly storageArea: Storage | null;\n /**\n * Returns the URL of the document whose storage item changed.\n */\n readonly url: string;\n initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;\n}\n\ndeclare var StorageEvent: {\n prototype: StorageEvent;\n new(type: string, eventInitDict?: StorageEventInit): StorageEvent;\n};\n\ninterface StorageManager {\n estimate(): Promise<StorageEstimate>;\n persist(): Promise<boolean>;\n persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n prototype: StorageManager;\n new(): StorageManager;\n};\n\n/** @deprecated */\ninterface StyleMedia {\n type: string;\n matchMedium(mediaquery: string): boolean;\n}\n\n/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */\ninterface StyleSheet {\n disabled: boolean;\n readonly href: string | null;\n readonly media: MediaList;\n readonly ownerNode: Element | ProcessingInstruction | null;\n readonly parentStyleSheet: CSSStyleSheet | null;\n readonly title: string | null;\n readonly type: string;\n}\n\ndeclare var StyleSheet: {\n prototype: StyleSheet;\n new(): StyleSheet;\n};\n\n/** A list of StyleSheet. */\ninterface StyleSheetList {\n readonly length: number;\n item(index: number): CSSStyleSheet | null;\n [index: number]: CSSStyleSheet;\n}\n\ndeclare var StyleSheetList: {\n prototype: StyleSheetList;\n new(): StyleSheetList;\n};\n\ninterface SubmitEvent extends Event {\n /**\n * Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button.\n */\n readonly submitter: HTMLElement | null;\n}\n\ndeclare var SubmitEvent: {\n prototype: SubmitEvent;\n new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;\n};\n\n/** 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). */\ninterface SubtleCrypto {\n decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;\n deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;\n exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;\n exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n 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>;\n verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n prototype: SubtleCrypto;\n new(): SubtleCrypto;\n};\n\n/** 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. */\ninterface Text extends CharacterData, Slottable {\n readonly assignedSlot: HTMLSlotElement | null;\n /**\n * Returns the combined data of all direct Text node siblings.\n */\n readonly wholeText: string;\n /**\n * Splits data at the given offset and returns the remainder as Text node.\n */\n splitText(offset: number): Text;\n}\n\ndeclare var Text: {\n prototype: Text;\n new(data?: string): Text;\n};\n\n/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */\ninterface TextDecoder extends TextDecoderCommon {\n /**\n * 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.\n *\n * ```\n * var string = "", decoder = new TextDecoder(encoding), buffer;\n * while(buffer = next_chunk()) {\n * string += decoder.decode(buffer, {stream:true});\n * }\n * string += decoder.decode(); // end-of-queue\n * ```\n *\n * If the error mode is "fatal" and encoding\'s decoder returns error, throws a TypeError.\n */\n decode(input?: BufferSource, options?: TextDecodeOptions): string;\n}\n\ndeclare var TextDecoder: {\n prototype: TextDecoder;\n new(label?: string, options?: TextDecoderOptions): TextDecoder;\n};\n\ninterface TextDecoderCommon {\n /**\n * Returns encoding\'s name, lowercased.\n */\n readonly encoding: string;\n /**\n * Returns true if error mode is "fatal", otherwise false.\n */\n readonly fatal: boolean;\n /**\n * Returns the value of ignore BOM.\n */\n readonly ignoreBOM: boolean;\n}\n\ninterface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {\n readonly readable: ReadableStream<string>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var TextDecoderStream: {\n prototype: TextDecoderStream;\n new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */\ninterface TextEncoder extends TextEncoderCommon {\n /**\n * Returns the result of running UTF-8\'s encoder.\n */\n encode(input?: string): Uint8Array;\n /**\n * 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.\n */\n encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n /**\n * Returns "utf-8".\n */\n readonly encoding: string;\n}\n\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n readonly readable: ReadableStream<Uint8Array>;\n readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n prototype: TextEncoderStream;\n new(): TextEncoderStream;\n};\n\n/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */\ninterface TextMetrics {\n /**\n * Returns the measurement described below.\n */\n readonly actualBoundingBoxAscent: number;\n /**\n * Returns the measurement described below.\n */\n readonly actualBoundingBoxDescent: number;\n /**\n * Returns the measurement described below.\n */\n readonly actualBoundingBoxLeft: number;\n /**\n * Returns the measurement described below.\n */\n readonly actualBoundingBoxRight: number;\n /**\n * Returns the measurement described below.\n */\n readonly fontBoundingBoxAscent: number;\n /**\n * Returns the measurement described below.\n */\n readonly fontBoundingBoxDescent: number;\n /**\n * Returns the measurement described below.\n */\n readonly width: number;\n}\n\ndeclare var TextMetrics: {\n prototype: TextMetrics;\n new(): TextMetrics;\n};\n\ninterface TextTrackEventMap {\n "cuechange": Event;\n}\n\n/** This interface also inherits properties from EventTarget. */\ninterface TextTrack extends EventTarget {\n /**\n * 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.\n */\n readonly activeCues: TextTrackCueList | null;\n /**\n * Returns the text track list of cues, as a TextTrackCueList object.\n */\n readonly cues: TextTrackCueList | null;\n /**\n * Returns the ID of the given track.\n *\n * 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.\n *\n * For TextTrack objects corresponding to track elements, this is the ID of the track element.\n */\n readonly id: string;\n /**\n * Returns the text track in-band metadata track dispatch type string.\n */\n readonly inBandMetadataTrackDispatchType: string;\n /**\n * Returns the text track kind string.\n */\n readonly kind: TextTrackKind;\n /**\n * 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).\n */\n readonly label: string;\n /**\n * Returns the text track language string.\n */\n readonly language: string;\n /**\n * Returns the text track mode, represented by a string from the following list:\n *\n * Can be set, to change the mode.\n */\n mode: TextTrackMode;\n oncuechange: ((this: TextTrack, ev: Event) => any) | null;\n /**\n * Adds the given cue to textTrack\'s text track list of cues.\n */\n addCue(cue: TextTrackCue): void;\n /**\n * Removes the given cue from textTrack\'s text track list of cues.\n */\n removeCue(cue: TextTrackCue): void;\n addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var TextTrack: {\n prototype: TextTrack;\n new(): TextTrack;\n};\n\ninterface TextTrackCueEventMap {\n "enter": Event;\n "exit": Event;\n}\n\n/** 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. */\ninterface TextTrackCue extends EventTarget {\n /**\n * Returns the text track cue end time, in seconds.\n *\n * Can be set.\n */\n endTime: number;\n /**\n * Returns the text track cue identifier.\n *\n * Can be set.\n */\n id: string;\n onenter: ((this: TextTrackCue, ev: Event) => any) | null;\n onexit: ((this: TextTrackCue, ev: Event) => any) | null;\n /**\n * Returns true if the text track cue pause-on-exit flag is set, false otherwise.\n *\n * Can be set.\n */\n pauseOnExit: boolean;\n /**\n * Returns the text track cue start time, in seconds.\n *\n * Can be set.\n */\n startTime: number;\n /**\n * Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise.\n */\n readonly track: TextTrack | null;\n addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var TextTrackCue: {\n prototype: TextTrackCue;\n new(): TextTrackCue;\n};\n\ninterface TextTrackCueList {\n /**\n * Returns the number of cues in the list.\n */\n readonly length: number;\n /**\n * Returns the first text track cue (in text track cue order) with text track cue identifier id.\n *\n * Returns null if none of the cues have the given identifier or if the argument is the empty string.\n */\n getCueById(id: string): TextTrackCue | null;\n [index: number]: TextTrackCue;\n}\n\ndeclare var TextTrackCueList: {\n prototype: TextTrackCueList;\n new(): TextTrackCueList;\n};\n\ninterface TextTrackListEventMap {\n "addtrack": TrackEvent;\n "change": Event;\n "removetrack": TrackEvent;\n}\n\ninterface TextTrackList extends EventTarget {\n readonly length: number;\n onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n onchange: ((this: TextTrackList, ev: Event) => any) | null;\n onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n getTrackById(id: string): TextTrack | null;\n addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: TextTrack;\n}\n\ndeclare var TextTrackList: {\n prototype: TextTrackList;\n new(): TextTrackList;\n};\n\n/** 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> elements. */\ninterface TimeRanges {\n /**\n * Returns the number of ranges in the object.\n */\n readonly length: number;\n /**\n * Returns the time for the end of the range with the given index.\n *\n * Throws an "IndexSizeError" DOMException if the index is out of range.\n */\n end(index: number): number;\n /**\n * Returns the time for the start of the range with the given index.\n *\n * Throws an "IndexSizeError" DOMException if the index is out of range.\n */\n start(index: number): number;\n}\n\ndeclare var TimeRanges: {\n prototype: TimeRanges;\n new(): TimeRanges;\n};\n\n/** 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. */\ninterface Touch {\n readonly clientX: number;\n readonly clientY: number;\n readonly force: number;\n readonly identifier: number;\n readonly pageX: number;\n readonly pageY: number;\n readonly radiusX: number;\n readonly radiusY: number;\n readonly rotationAngle: number;\n readonly screenX: number;\n readonly screenY: number;\n readonly target: EventTarget;\n}\n\ndeclare var Touch: {\n prototype: Touch;\n new(touchInitDict: TouchInit): Touch;\n};\n\n/** 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. */\ninterface TouchEvent extends UIEvent {\n readonly altKey: boolean;\n readonly changedTouches: TouchList;\n readonly ctrlKey: boolean;\n readonly metaKey: boolean;\n readonly shiftKey: boolean;\n readonly targetTouches: TouchList;\n readonly touches: TouchList;\n}\n\ndeclare var TouchEvent: {\n prototype: TouchEvent;\n new(type: string, eventInitDict?: TouchEventInit): TouchEvent;\n};\n\n/** 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. */\ninterface TouchList {\n readonly length: number;\n item(index: number): Touch | null;\n [index: number]: Touch;\n}\n\ndeclare var TouchList: {\n prototype: TouchList;\n new(): TouchList;\n};\n\n/** 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. */\ninterface TrackEvent extends Event {\n /**\n * Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates.\n */\n readonly track: TextTrack | null;\n}\n\ndeclare var TrackEvent: {\n prototype: TrackEvent;\n new(type: string, eventInitDict?: TrackEventInit): TrackEvent;\n};\n\ninterface TransformStream<I = any, O = any> {\n readonly readable: ReadableStream<O>;\n readonly writable: WritableStream<I>;\n}\n\ndeclare var TransformStream: {\n prototype: TransformStream;\n new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;\n};\n\ninterface TransformStreamDefaultController<O = any> {\n readonly desiredSize: number | null;\n enqueue(chunk?: O): void;\n error(reason?: any): void;\n terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n prototype: TransformStreamDefaultController;\n new(): TransformStreamDefaultController;\n};\n\n/** Events providing information related to transitions. */\ninterface TransitionEvent extends Event {\n readonly elapsedTime: number;\n readonly propertyName: string;\n readonly pseudoElement: string;\n}\n\ndeclare var TransitionEvent: {\n prototype: TransitionEvent;\n new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;\n};\n\n/** The nodes of a document subtree and a position within them. */\ninterface TreeWalker {\n currentNode: Node;\n readonly filter: NodeFilter | null;\n readonly root: Node;\n readonly whatToShow: number;\n firstChild(): Node | null;\n lastChild(): Node | null;\n nextNode(): Node | null;\n nextSibling(): Node | null;\n parentNode(): Node | null;\n previousNode(): Node | null;\n previousSibling(): Node | null;\n}\n\ndeclare var TreeWalker: {\n prototype: TreeWalker;\n new(): TreeWalker;\n};\n\n/** Simple user interface events. */\ninterface UIEvent extends Event {\n readonly detail: number;\n readonly view: Window | null;\n /** @deprecated */\n readonly which: number;\n /** @deprecated */\n initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;\n}\n\ndeclare var UIEvent: {\n prototype: UIEvent;\n new(type: string, eventInitDict?: UIEventInit): UIEvent;\n};\n\n/** The URL interface represents an object providing static methods used for creating object URLs. */\ninterface URL {\n hash: string;\n host: string;\n hostname: string;\n href: string;\n toString(): string;\n readonly origin: string;\n password: string;\n pathname: string;\n port: string;\n protocol: string;\n search: string;\n readonly searchParams: URLSearchParams;\n username: string;\n toJSON(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string | URL, base?: string | URL): URL;\n createObjectURL(object: any): string;\n revokeObjectURL(url: string): void;\n};\n\ntype webkitURL = URL;\ndeclare var webkitURL: typeof URL;\n\ninterface URLSearchParams {\n /**\n * Appends a specified key/value pair as a new search parameter.\n */\n append(name: string, value: string): void;\n /**\n * Deletes the given search parameter, and its associated value, from the list of all search parameters.\n */\n delete(name: string): void;\n /**\n * Returns the first value associated to the given search parameter.\n */\n get(name: string): string | null;\n /**\n * Returns all the values association with a given search parameter.\n */\n getAll(name: string): string[];\n /**\n * Returns a Boolean indicating if such a search parameter exists.\n */\n has(name: string): boolean;\n /**\n * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.\n */\n set(name: string, value: string): void;\n sort(): void;\n /**\n * Returns a string containing a query string suitable for use in a URL. Does not include the question mark.\n */\n toString(): string;\n forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;\n}\n\ndeclare var URLSearchParams: {\n prototype: URLSearchParams;\n new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;\n toString(): string;\n};\n\ninterface VTTCue extends TextTrackCue {\n align: AlignSetting;\n line: LineAndPositionSetting;\n lineAlign: LineAlignSetting;\n position: LineAndPositionSetting;\n positionAlign: PositionAlignSetting;\n region: VTTRegion | null;\n size: number;\n snapToLines: boolean;\n text: string;\n vertical: DirectionSetting;\n getCueAsHTML(): DocumentFragment;\n addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VTTCue: {\n prototype: VTTCue;\n new(startTime: number, endTime: number, text: string): VTTCue;\n};\n\ninterface VTTRegion {\n id: string;\n lines: number;\n regionAnchorX: number;\n regionAnchorY: number;\n scroll: ScrollSetting;\n viewportAnchorX: number;\n viewportAnchorY: number;\n width: number;\n}\n\ndeclare var VTTRegion: {\n prototype: VTTRegion;\n new(): VTTRegion;\n};\n\n/** 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. */\ninterface ValidityState {\n readonly badInput: boolean;\n readonly customError: boolean;\n readonly patternMismatch: boolean;\n readonly rangeOverflow: boolean;\n readonly rangeUnderflow: boolean;\n readonly stepMismatch: boolean;\n readonly tooLong: boolean;\n readonly tooShort: boolean;\n readonly typeMismatch: boolean;\n readonly valid: boolean;\n readonly valueMissing: boolean;\n}\n\ndeclare var ValidityState: {\n prototype: ValidityState;\n new(): ValidityState;\n};\n\n/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */\ninterface VideoPlaybackQuality {\n /** @deprecated */\n readonly corruptedVideoFrames: number;\n readonly creationTime: DOMHighResTimeStamp;\n readonly droppedVideoFrames: number;\n readonly totalVideoFrames: number;\n}\n\ndeclare var VideoPlaybackQuality: {\n prototype: VideoPlaybackQuality;\n new(): VideoPlaybackQuality;\n};\n\ninterface VisualViewportEventMap {\n "resize": Event;\n "scroll": Event;\n}\n\ninterface VisualViewport extends EventTarget {\n readonly height: number;\n readonly offsetLeft: number;\n readonly offsetTop: number;\n onresize: ((this: VisualViewport, ev: Event) => any) | null;\n onscroll: ((this: VisualViewport, ev: Event) => any) | null;\n readonly pageLeft: number;\n readonly pageTop: number;\n readonly scale: number;\n readonly width: number;\n addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VisualViewport: {\n prototype: VisualViewport;\n new(): VisualViewport;\n};\n\ninterface WEBGL_color_buffer_float {\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;\n readonly RGBA32F_EXT: GLenum;\n readonly UNSIGNED_NORMALIZED_EXT: GLenum;\n}\n\ninterface WEBGL_compressed_texture_astc {\n getSupportedProfiles(): string[];\n readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;\n}\n\ninterface WEBGL_compressed_texture_etc {\n readonly COMPRESSED_R11_EAC: GLenum;\n readonly COMPRESSED_RG11_EAC: GLenum;\n readonly COMPRESSED_RGB8_ETC2: GLenum;\n readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;\n readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;\n readonly COMPRESSED_SIGNED_R11_EAC: GLenum;\n readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;\n readonly COMPRESSED_SRGB8_ETC2: GLenum;\n readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;\n}\n\ninterface WEBGL_compressed_texture_etc1 {\n readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;\n}\n\ninterface WEBGL_compressed_texture_pvrtc {\n readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;\n readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;\n readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;\n readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;\n}\n\n/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */\ninterface WEBGL_compressed_texture_s3tc {\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;\n}\n\ninterface WEBGL_compressed_texture_s3tc_srgb {\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;\n readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;\n}\n\n/** 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. */\ninterface WEBGL_debug_renderer_info {\n readonly UNMASKED_RENDERER_WEBGL: GLenum;\n readonly UNMASKED_VENDOR_WEBGL: GLenum;\n}\n\ninterface WEBGL_debug_shaders {\n getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */\ninterface WEBGL_depth_texture {\n readonly UNSIGNED_INT_24_8_WEBGL: GLenum;\n}\n\ninterface WEBGL_draw_buffers {\n drawBuffersWEBGL(buffers: GLenum[]): void;\n readonly COLOR_ATTACHMENT0_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT10_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT11_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT12_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT13_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT14_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT15_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT1_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT2_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT3_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT4_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT5_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT6_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT7_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT8_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT9_WEBGL: GLenum;\n readonly DRAW_BUFFER0_WEBGL: GLenum;\n readonly DRAW_BUFFER10_WEBGL: GLenum;\n readonly DRAW_BUFFER11_WEBGL: GLenum;\n readonly DRAW_BUFFER12_WEBGL: GLenum;\n readonly DRAW_BUFFER13_WEBGL: GLenum;\n readonly DRAW_BUFFER14_WEBGL: GLenum;\n readonly DRAW_BUFFER15_WEBGL: GLenum;\n readonly DRAW_BUFFER1_WEBGL: GLenum;\n readonly DRAW_BUFFER2_WEBGL: GLenum;\n readonly DRAW_BUFFER3_WEBGL: GLenum;\n readonly DRAW_BUFFER4_WEBGL: GLenum;\n readonly DRAW_BUFFER5_WEBGL: GLenum;\n readonly DRAW_BUFFER6_WEBGL: GLenum;\n readonly DRAW_BUFFER7_WEBGL: GLenum;\n readonly DRAW_BUFFER8_WEBGL: GLenum;\n readonly DRAW_BUFFER9_WEBGL: GLenum;\n readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;\n readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;\n}\n\ninterface WEBGL_lose_context {\n loseContext(): void;\n restoreContext(): void;\n}\n\n/** A WaveShaperNode always has exactly one input and one output. */\ninterface WaveShaperNode extends AudioNode {\n curve: Float32Array | null;\n oversample: OverSampleType;\n}\n\ndeclare var WaveShaperNode: {\n prototype: WaveShaperNode;\n new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;\n};\n\ninterface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {\n}\n\ndeclare var WebGL2RenderingContext: {\n prototype: WebGL2RenderingContext;\n new(): WebGL2RenderingContext;\n readonly ACTIVE_UNIFORM_BLOCKS: GLenum;\n readonly ALREADY_SIGNALED: GLenum;\n readonly ANY_SAMPLES_PASSED: GLenum;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;\n readonly COLOR: GLenum;\n readonly COLOR_ATTACHMENT1: GLenum;\n readonly COLOR_ATTACHMENT10: GLenum;\n readonly COLOR_ATTACHMENT11: GLenum;\n readonly COLOR_ATTACHMENT12: GLenum;\n readonly COLOR_ATTACHMENT13: GLenum;\n readonly COLOR_ATTACHMENT14: GLenum;\n readonly COLOR_ATTACHMENT15: GLenum;\n readonly COLOR_ATTACHMENT2: GLenum;\n readonly COLOR_ATTACHMENT3: GLenum;\n readonly COLOR_ATTACHMENT4: GLenum;\n readonly COLOR_ATTACHMENT5: GLenum;\n readonly COLOR_ATTACHMENT6: GLenum;\n readonly COLOR_ATTACHMENT7: GLenum;\n readonly COLOR_ATTACHMENT8: GLenum;\n readonly COLOR_ATTACHMENT9: GLenum;\n readonly COMPARE_REF_TO_TEXTURE: GLenum;\n readonly CONDITION_SATISFIED: GLenum;\n readonly COPY_READ_BUFFER: GLenum;\n readonly COPY_READ_BUFFER_BINDING: GLenum;\n readonly COPY_WRITE_BUFFER: GLenum;\n readonly COPY_WRITE_BUFFER_BINDING: GLenum;\n readonly CURRENT_QUERY: GLenum;\n readonly DEPTH: GLenum;\n readonly DEPTH24_STENCIL8: GLenum;\n readonly DEPTH32F_STENCIL8: GLenum;\n readonly DEPTH_COMPONENT24: GLenum;\n readonly DEPTH_COMPONENT32F: GLenum;\n readonly DRAW_BUFFER0: GLenum;\n readonly DRAW_BUFFER1: GLenum;\n readonly DRAW_BUFFER10: GLenum;\n readonly DRAW_BUFFER11: GLenum;\n readonly DRAW_BUFFER12: GLenum;\n readonly DRAW_BUFFER13: GLenum;\n readonly DRAW_BUFFER14: GLenum;\n readonly DRAW_BUFFER15: GLenum;\n readonly DRAW_BUFFER2: GLenum;\n readonly DRAW_BUFFER3: GLenum;\n readonly DRAW_BUFFER4: GLenum;\n readonly DRAW_BUFFER5: GLenum;\n readonly DRAW_BUFFER6: GLenum;\n readonly DRAW_BUFFER7: GLenum;\n readonly DRAW_BUFFER8: GLenum;\n readonly DRAW_BUFFER9: GLenum;\n readonly DRAW_FRAMEBUFFER: GLenum;\n readonly DRAW_FRAMEBUFFER_BINDING: GLenum;\n readonly DYNAMIC_COPY: GLenum;\n readonly DYNAMIC_READ: GLenum;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;\n readonly FLOAT_MAT2x3: GLenum;\n readonly FLOAT_MAT2x4: GLenum;\n readonly FLOAT_MAT3x2: GLenum;\n readonly FLOAT_MAT3x4: GLenum;\n readonly FLOAT_MAT4x2: GLenum;\n readonly FLOAT_MAT4x3: GLenum;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;\n readonly FRAMEBUFFER_DEFAULT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;\n readonly HALF_FLOAT: GLenum;\n readonly INTERLEAVED_ATTRIBS: GLenum;\n readonly INT_2_10_10_10_REV: GLenum;\n readonly INT_SAMPLER_2D: GLenum;\n readonly INT_SAMPLER_2D_ARRAY: GLenum;\n readonly INT_SAMPLER_3D: GLenum;\n readonly INT_SAMPLER_CUBE: GLenum;\n readonly INVALID_INDEX: GLenum;\n readonly MAX: GLenum;\n readonly MAX_3D_TEXTURE_SIZE: GLenum;\n readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;\n readonly MAX_COLOR_ATTACHMENTS: GLenum;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_DRAW_BUFFERS: GLenum;\n readonly MAX_ELEMENTS_INDICES: GLenum;\n readonly MAX_ELEMENTS_VERTICES: GLenum;\n readonly MAX_ELEMENT_INDEX: GLenum;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly MAX_SAMPLES: GLenum;\n readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;\n readonly MAX_TEXTURE_LOD_BIAS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;\n readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;\n readonly MAX_VARYING_COMPONENTS: GLenum;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MIN: GLenum;\n readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly OBJECT_TYPE: GLenum;\n readonly PACK_ROW_LENGTH: GLenum;\n readonly PACK_SKIP_PIXELS: GLenum;\n readonly PACK_SKIP_ROWS: GLenum;\n readonly PIXEL_PACK_BUFFER: GLenum;\n readonly PIXEL_PACK_BUFFER_BINDING: GLenum;\n readonly PIXEL_UNPACK_BUFFER: GLenum;\n readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;\n readonly QUERY_RESULT: GLenum;\n readonly QUERY_RESULT_AVAILABLE: GLenum;\n readonly R11F_G11F_B10F: GLenum;\n readonly R16F: GLenum;\n readonly R16I: GLenum;\n readonly R16UI: GLenum;\n readonly R32F: GLenum;\n readonly R32I: GLenum;\n readonly R32UI: GLenum;\n readonly R8: GLenum;\n readonly R8I: GLenum;\n readonly R8UI: GLenum;\n readonly R8_SNORM: GLenum;\n readonly RASTERIZER_DISCARD: GLenum;\n readonly READ_BUFFER: GLenum;\n readonly READ_FRAMEBUFFER: GLenum;\n readonly READ_FRAMEBUFFER_BINDING: GLenum;\n readonly RED: GLenum;\n readonly RED_INTEGER: GLenum;\n readonly RENDERBUFFER_SAMPLES: GLenum;\n readonly RG: GLenum;\n readonly RG16F: GLenum;\n readonly RG16I: GLenum;\n readonly RG16UI: GLenum;\n readonly RG32F: GLenum;\n readonly RG32I: GLenum;\n readonly RG32UI: GLenum;\n readonly RG8: GLenum;\n readonly RG8I: GLenum;\n readonly RG8UI: GLenum;\n readonly RG8_SNORM: GLenum;\n readonly RGB10_A2: GLenum;\n readonly RGB10_A2UI: GLenum;\n readonly RGB16F: GLenum;\n readonly RGB16I: GLenum;\n readonly RGB16UI: GLenum;\n readonly RGB32F: GLenum;\n readonly RGB32I: GLenum;\n readonly RGB32UI: GLenum;\n readonly RGB8: GLenum;\n readonly RGB8I: GLenum;\n readonly RGB8UI: GLenum;\n readonly RGB8_SNORM: GLenum;\n readonly RGB9_E5: GLenum;\n readonly RGBA16F: GLenum;\n readonly RGBA16I: GLenum;\n readonly RGBA16UI: GLenum;\n readonly RGBA32F: GLenum;\n readonly RGBA32I: GLenum;\n readonly RGBA32UI: GLenum;\n readonly RGBA8: GLenum;\n readonly RGBA8I: GLenum;\n readonly RGBA8UI: GLenum;\n readonly RGBA8_SNORM: GLenum;\n readonly RGBA_INTEGER: GLenum;\n readonly RGB_INTEGER: GLenum;\n readonly RG_INTEGER: GLenum;\n readonly SAMPLER_2D_ARRAY: GLenum;\n readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;\n readonly SAMPLER_2D_SHADOW: GLenum;\n readonly SAMPLER_3D: GLenum;\n readonly SAMPLER_BINDING: GLenum;\n readonly SAMPLER_CUBE_SHADOW: GLenum;\n readonly SEPARATE_ATTRIBS: GLenum;\n readonly SIGNALED: GLenum;\n readonly SIGNED_NORMALIZED: GLenum;\n readonly SRGB: GLenum;\n readonly SRGB8: GLenum;\n readonly SRGB8_ALPHA8: GLenum;\n readonly STATIC_COPY: GLenum;\n readonly STATIC_READ: GLenum;\n readonly STENCIL: GLenum;\n readonly STREAM_COPY: GLenum;\n readonly STREAM_READ: GLenum;\n readonly SYNC_CONDITION: GLenum;\n readonly SYNC_FENCE: GLenum;\n readonly SYNC_FLAGS: GLenum;\n readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;\n readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;\n readonly SYNC_STATUS: GLenum;\n readonly TEXTURE_2D_ARRAY: GLenum;\n readonly TEXTURE_3D: GLenum;\n readonly TEXTURE_BASE_LEVEL: GLenum;\n readonly TEXTURE_BINDING_2D_ARRAY: GLenum;\n readonly TEXTURE_BINDING_3D: GLenum;\n readonly TEXTURE_COMPARE_FUNC: GLenum;\n readonly TEXTURE_COMPARE_MODE: GLenum;\n readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;\n readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;\n readonly TEXTURE_MAX_LEVEL: GLenum;\n readonly TEXTURE_MAX_LOD: GLenum;\n readonly TEXTURE_MIN_LOD: GLenum;\n readonly TEXTURE_WRAP_R: GLenum;\n readonly TIMEOUT_EXPIRED: GLenum;\n readonly TIMEOUT_IGNORED: GLint64;\n readonly TRANSFORM_FEEDBACK: GLenum;\n readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;\n readonly TRANSFORM_FEEDBACK_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;\n readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;\n readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;\n readonly UNIFORM_ARRAY_STRIDE: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;\n readonly UNIFORM_BLOCK_BINDING: GLenum;\n readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;\n readonly UNIFORM_BLOCK_INDEX: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;\n readonly UNIFORM_BUFFER: GLenum;\n readonly UNIFORM_BUFFER_BINDING: GLenum;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;\n readonly UNIFORM_BUFFER_SIZE: GLenum;\n readonly UNIFORM_BUFFER_START: GLenum;\n readonly UNIFORM_IS_ROW_MAJOR: GLenum;\n readonly UNIFORM_MATRIX_STRIDE: GLenum;\n readonly UNIFORM_OFFSET: GLenum;\n readonly UNIFORM_SIZE: GLenum;\n readonly UNIFORM_TYPE: GLenum;\n readonly UNPACK_IMAGE_HEIGHT: GLenum;\n readonly UNPACK_ROW_LENGTH: GLenum;\n readonly UNPACK_SKIP_IMAGES: GLenum;\n readonly UNPACK_SKIP_PIXELS: GLenum;\n readonly UNPACK_SKIP_ROWS: GLenum;\n readonly UNSIGNALED: GLenum;\n readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;\n readonly UNSIGNED_INT_24_8: GLenum;\n readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;\n readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;\n readonly UNSIGNED_INT_SAMPLER_3D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;\n readonly UNSIGNED_INT_VEC2: GLenum;\n readonly UNSIGNED_INT_VEC3: GLenum;\n readonly UNSIGNED_INT_VEC4: GLenum;\n readonly UNSIGNED_NORMALIZED: GLenum;\n readonly VERTEX_ARRAY_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;\n readonly WAIT_FAILED: GLenum;\n readonly ACTIVE_ATTRIBUTES: GLenum;\n readonly ACTIVE_TEXTURE: GLenum;\n readonly ACTIVE_UNIFORMS: GLenum;\n readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n readonly ALPHA: GLenum;\n readonly ALPHA_BITS: GLenum;\n readonly ALWAYS: GLenum;\n readonly ARRAY_BUFFER: GLenum;\n readonly ARRAY_BUFFER_BINDING: GLenum;\n readonly ATTACHED_SHADERS: GLenum;\n readonly BACK: GLenum;\n readonly BLEND: GLenum;\n readonly BLEND_COLOR: GLenum;\n readonly BLEND_DST_ALPHA: GLenum;\n readonly BLEND_DST_RGB: GLenum;\n readonly BLEND_EQUATION: GLenum;\n readonly BLEND_EQUATION_ALPHA: GLenum;\n readonly BLEND_EQUATION_RGB: GLenum;\n readonly BLEND_SRC_ALPHA: GLenum;\n readonly BLEND_SRC_RGB: GLenum;\n readonly BLUE_BITS: GLenum;\n readonly BOOL: GLenum;\n readonly BOOL_VEC2: GLenum;\n readonly BOOL_VEC3: GLenum;\n readonly BOOL_VEC4: GLenum;\n readonly BROWSER_DEFAULT_WEBGL: GLenum;\n readonly BUFFER_SIZE: GLenum;\n readonly BUFFER_USAGE: GLenum;\n readonly BYTE: GLenum;\n readonly CCW: GLenum;\n readonly CLAMP_TO_EDGE: GLenum;\n readonly COLOR_ATTACHMENT0: GLenum;\n readonly COLOR_BUFFER_BIT: GLenum;\n readonly COLOR_CLEAR_VALUE: GLenum;\n readonly COLOR_WRITEMASK: GLenum;\n readonly COMPILE_STATUS: GLenum;\n readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n readonly CONSTANT_ALPHA: GLenum;\n readonly CONSTANT_COLOR: GLenum;\n readonly CONTEXT_LOST_WEBGL: GLenum;\n readonly CULL_FACE: GLenum;\n readonly CULL_FACE_MODE: GLenum;\n readonly CURRENT_PROGRAM: GLenum;\n readonly CURRENT_VERTEX_ATTRIB: GLenum;\n readonly CW: GLenum;\n readonly DECR: GLenum;\n readonly DECR_WRAP: GLenum;\n readonly DELETE_STATUS: GLenum;\n readonly DEPTH_ATTACHMENT: GLenum;\n readonly DEPTH_BITS: GLenum;\n readonly DEPTH_BUFFER_BIT: GLenum;\n readonly DEPTH_CLEAR_VALUE: GLenum;\n readonly DEPTH_COMPONENT: GLenum;\n readonly DEPTH_COMPONENT16: GLenum;\n readonly DEPTH_FUNC: GLenum;\n readonly DEPTH_RANGE: GLenum;\n readonly DEPTH_STENCIL: GLenum;\n readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n readonly DEPTH_TEST: GLenum;\n readonly DEPTH_WRITEMASK: GLenum;\n readonly DITHER: GLenum;\n readonly DONT_CARE: GLenum;\n readonly DST_ALPHA: GLenum;\n readonly DST_COLOR: GLenum;\n readonly DYNAMIC_DRAW: GLenum;\n readonly ELEMENT_ARRAY_BUFFER: GLenum;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n readonly EQUAL: GLenum;\n readonly FASTEST: GLenum;\n readonly FLOAT: GLenum;\n readonly FLOAT_MAT2: GLenum;\n readonly FLOAT_MAT3: GLenum;\n readonly FLOAT_MAT4: GLenum;\n readonly FLOAT_VEC2: GLenum;\n readonly FLOAT_VEC3: GLenum;\n readonly FLOAT_VEC4: GLenum;\n readonly FRAGMENT_SHADER: GLenum;\n readonly FRAMEBUFFER: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n readonly FRAMEBUFFER_BINDING: GLenum;\n readonly FRAMEBUFFER_COMPLETE: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n readonly FRONT: GLenum;\n readonly FRONT_AND_BACK: GLenum;\n readonly FRONT_FACE: GLenum;\n readonly FUNC_ADD: GLenum;\n readonly FUNC_REVERSE_SUBTRACT: GLenum;\n readonly FUNC_SUBTRACT: GLenum;\n readonly GENERATE_MIPMAP_HINT: GLenum;\n readonly GEQUAL: GLenum;\n readonly GREATER: GLenum;\n readonly GREEN_BITS: GLenum;\n readonly HIGH_FLOAT: GLenum;\n readonly HIGH_INT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n readonly INCR: GLenum;\n readonly INCR_WRAP: GLenum;\n readonly INT: GLenum;\n readonly INT_VEC2: GLenum;\n readonly INT_VEC3: GLenum;\n readonly INT_VEC4: GLenum;\n readonly INVALID_ENUM: GLenum;\n readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n readonly INVALID_OPERATION: GLenum;\n readonly INVALID_VALUE: GLenum;\n readonly INVERT: GLenum;\n readonly KEEP: GLenum;\n readonly LEQUAL: GLenum;\n readonly LESS: GLenum;\n readonly LINEAR: GLenum;\n readonly LINEAR_MIPMAP_LINEAR: GLenum;\n readonly LINEAR_MIPMAP_NEAREST: GLenum;\n readonly LINES: GLenum;\n readonly LINE_LOOP: GLenum;\n readonly LINE_STRIP: GLenum;\n readonly LINE_WIDTH: GLenum;\n readonly LINK_STATUS: GLenum;\n readonly LOW_FLOAT: GLenum;\n readonly LOW_INT: GLenum;\n readonly LUMINANCE: GLenum;\n readonly LUMINANCE_ALPHA: GLenum;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n readonly MAX_RENDERBUFFER_SIZE: GLenum;\n readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_TEXTURE_SIZE: GLenum;\n readonly MAX_VARYING_VECTORS: GLenum;\n readonly MAX_VERTEX_ATTRIBS: GLenum;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n readonly MAX_VIEWPORT_DIMS: GLenum;\n readonly MEDIUM_FLOAT: GLenum;\n readonly MEDIUM_INT: GLenum;\n readonly MIRRORED_REPEAT: GLenum;\n readonly NEAREST: GLenum;\n readonly NEAREST_MIPMAP_LINEAR: GLenum;\n readonly NEAREST_MIPMAP_NEAREST: GLenum;\n readonly NEVER: GLenum;\n readonly NICEST: GLenum;\n readonly NONE: GLenum;\n readonly NOTEQUAL: GLenum;\n readonly NO_ERROR: GLenum;\n readonly ONE: GLenum;\n readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n readonly ONE_MINUS_DST_ALPHA: GLenum;\n readonly ONE_MINUS_DST_COLOR: GLenum;\n readonly ONE_MINUS_SRC_ALPHA: GLenum;\n readonly ONE_MINUS_SRC_COLOR: GLenum;\n readonly OUT_OF_MEMORY: GLenum;\n readonly PACK_ALIGNMENT: GLenum;\n readonly POINTS: GLenum;\n readonly POLYGON_OFFSET_FACTOR: GLenum;\n readonly POLYGON_OFFSET_FILL: GLenum;\n readonly POLYGON_OFFSET_UNITS: GLenum;\n readonly RED_BITS: GLenum;\n readonly RENDERBUFFER: GLenum;\n readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n readonly RENDERBUFFER_BINDING: GLenum;\n readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n readonly RENDERBUFFER_HEIGHT: GLenum;\n readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n readonly RENDERBUFFER_RED_SIZE: GLenum;\n readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n readonly RENDERBUFFER_WIDTH: GLenum;\n readonly RENDERER: GLenum;\n readonly REPEAT: GLenum;\n readonly REPLACE: GLenum;\n readonly RGB: GLenum;\n readonly RGB565: GLenum;\n readonly RGB5_A1: GLenum;\n readonly RGBA: GLenum;\n readonly RGBA4: GLenum;\n readonly SAMPLER_2D: GLenum;\n readonly SAMPLER_CUBE: GLenum;\n readonly SAMPLES: GLenum;\n readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n readonly SAMPLE_BUFFERS: GLenum;\n readonly SAMPLE_COVERAGE: GLenum;\n readonly SAMPLE_COVERAGE_INVERT: GLenum;\n readonly SAMPLE_COVERAGE_VALUE: GLenum;\n readonly SCISSOR_BOX: GLenum;\n readonly SCISSOR_TEST: GLenum;\n readonly SHADER_TYPE: GLenum;\n readonly SHADING_LANGUAGE_VERSION: GLenum;\n readonly SHORT: GLenum;\n readonly SRC_ALPHA: GLenum;\n readonly SRC_ALPHA_SATURATE: GLenum;\n readonly SRC_COLOR: GLenum;\n readonly STATIC_DRAW: GLenum;\n readonly STENCIL_ATTACHMENT: GLenum;\n readonly STENCIL_BACK_FAIL: GLenum;\n readonly STENCIL_BACK_FUNC: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_BACK_REF: GLenum;\n readonly STENCIL_BACK_VALUE_MASK: GLenum;\n readonly STENCIL_BACK_WRITEMASK: GLenum;\n readonly STENCIL_BITS: GLenum;\n readonly STENCIL_BUFFER_BIT: GLenum;\n readonly STENCIL_CLEAR_VALUE: GLenum;\n readonly STENCIL_FAIL: GLenum;\n readonly STENCIL_FUNC: GLenum;\n readonly STENCIL_INDEX8: GLenum;\n readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_REF: GLenum;\n readonly STENCIL_TEST: GLenum;\n readonly STENCIL_VALUE_MASK: GLenum;\n readonly STENCIL_WRITEMASK: GLenum;\n readonly STREAM_DRAW: GLenum;\n readonly SUBPIXEL_BITS: GLenum;\n readonly TEXTURE: GLenum;\n readonly TEXTURE0: GLenum;\n readonly TEXTURE1: GLenum;\n readonly TEXTURE10: GLenum;\n readonly TEXTURE11: GLenum;\n readonly TEXTURE12: GLenum;\n readonly TEXTURE13: GLenum;\n readonly TEXTURE14: GLenum;\n readonly TEXTURE15: GLenum;\n readonly TEXTURE16: GLenum;\n readonly TEXTURE17: GLenum;\n readonly TEXTURE18: GLenum;\n readonly TEXTURE19: GLenum;\n readonly TEXTURE2: GLenum;\n readonly TEXTURE20: GLenum;\n readonly TEXTURE21: GLenum;\n readonly TEXTURE22: GLenum;\n readonly TEXTURE23: GLenum;\n readonly TEXTURE24: GLenum;\n readonly TEXTURE25: GLenum;\n readonly TEXTURE26: GLenum;\n readonly TEXTURE27: GLenum;\n readonly TEXTURE28: GLenum;\n readonly TEXTURE29: GLenum;\n readonly TEXTURE3: GLenum;\n readonly TEXTURE30: GLenum;\n readonly TEXTURE31: GLenum;\n readonly TEXTURE4: GLenum;\n readonly TEXTURE5: GLenum;\n readonly TEXTURE6: GLenum;\n readonly TEXTURE7: GLenum;\n readonly TEXTURE8: GLenum;\n readonly TEXTURE9: GLenum;\n readonly TEXTURE_2D: GLenum;\n readonly TEXTURE_BINDING_2D: GLenum;\n readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n readonly TEXTURE_MAG_FILTER: GLenum;\n readonly TEXTURE_MIN_FILTER: GLenum;\n readonly TEXTURE_WRAP_S: GLenum;\n readonly TEXTURE_WRAP_T: GLenum;\n readonly TRIANGLES: GLenum;\n readonly TRIANGLE_FAN: GLenum;\n readonly TRIANGLE_STRIP: GLenum;\n readonly UNPACK_ALIGNMENT: GLenum;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n readonly UNSIGNED_BYTE: GLenum;\n readonly UNSIGNED_INT: GLenum;\n readonly UNSIGNED_SHORT: GLenum;\n readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n readonly UNSIGNED_SHORT_5_6_5: GLenum;\n readonly VALIDATE_STATUS: GLenum;\n readonly VENDOR: GLenum;\n readonly VERSION: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n readonly VERTEX_SHADER: GLenum;\n readonly VIEWPORT: GLenum;\n readonly ZERO: GLenum;\n};\n\ninterface WebGL2RenderingContextBase {\n beginQuery(target: GLenum, query: WebGLQuery): void;\n beginTransformFeedback(primitiveMode: GLenum): void;\n bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n bindVertexArray(array: WebGLVertexArrayObject | null): void;\n blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;\n clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n 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;\n copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n createQuery(): WebGLQuery | null;\n createSampler(): WebGLSampler | null;\n createTransformFeedback(): WebGLTransformFeedback | null;\n createVertexArray(): WebGLVertexArrayObject | null;\n deleteQuery(query: WebGLQuery | null): void;\n deleteSampler(sampler: WebGLSampler | null): void;\n deleteSync(sync: WebGLSync | null): void;\n deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n drawBuffers(buffers: GLenum[]): void;\n drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n endQuery(target: GLenum): void;\n endTransformFeedback(): void;\n fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;\n getFragDataLocation(program: WebGLProgram, name: string): GLint;\n getIndexedParameter(target: GLenum, index: GLuint): any;\n getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n isQuery(query: WebGLQuery | null): GLboolean;\n isSampler(sampler: WebGLSampler | null): GLboolean;\n isSync(sync: WebGLSync | null): GLboolean;\n isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n pauseTransformFeedback(): void;\n readBuffer(src: GLenum): void;\n renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n resumeTransformFeedback(): void;\n samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n 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;\n transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n vertexAttribI4iv(index: GLuint, values: Int32List): void;\n vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n readonly ACTIVE_UNIFORM_BLOCKS: GLenum;\n readonly ALREADY_SIGNALED: GLenum;\n readonly ANY_SAMPLES_PASSED: GLenum;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;\n readonly COLOR: GLenum;\n readonly COLOR_ATTACHMENT1: GLenum;\n readonly COLOR_ATTACHMENT10: GLenum;\n readonly COLOR_ATTACHMENT11: GLenum;\n readonly COLOR_ATTACHMENT12: GLenum;\n readonly COLOR_ATTACHMENT13: GLenum;\n readonly COLOR_ATTACHMENT14: GLenum;\n readonly COLOR_ATTACHMENT15: GLenum;\n readonly COLOR_ATTACHMENT2: GLenum;\n readonly COLOR_ATTACHMENT3: GLenum;\n readonly COLOR_ATTACHMENT4: GLenum;\n readonly COLOR_ATTACHMENT5: GLenum;\n readonly COLOR_ATTACHMENT6: GLenum;\n readonly COLOR_ATTACHMENT7: GLenum;\n readonly COLOR_ATTACHMENT8: GLenum;\n readonly COLOR_ATTACHMENT9: GLenum;\n readonly COMPARE_REF_TO_TEXTURE: GLenum;\n readonly CONDITION_SATISFIED: GLenum;\n readonly COPY_READ_BUFFER: GLenum;\n readonly COPY_READ_BUFFER_BINDING: GLenum;\n readonly COPY_WRITE_BUFFER: GLenum;\n readonly COPY_WRITE_BUFFER_BINDING: GLenum;\n readonly CURRENT_QUERY: GLenum;\n readonly DEPTH: GLenum;\n readonly DEPTH24_STENCIL8: GLenum;\n readonly DEPTH32F_STENCIL8: GLenum;\n readonly DEPTH_COMPONENT24: GLenum;\n readonly DEPTH_COMPONENT32F: GLenum;\n readonly DRAW_BUFFER0: GLenum;\n readonly DRAW_BUFFER1: GLenum;\n readonly DRAW_BUFFER10: GLenum;\n readonly DRAW_BUFFER11: GLenum;\n readonly DRAW_BUFFER12: GLenum;\n readonly DRAW_BUFFER13: GLenum;\n readonly DRAW_BUFFER14: GLenum;\n readonly DRAW_BUFFER15: GLenum;\n readonly DRAW_BUFFER2: GLenum;\n readonly DRAW_BUFFER3: GLenum;\n readonly DRAW_BUFFER4: GLenum;\n readonly DRAW_BUFFER5: GLenum;\n readonly DRAW_BUFFER6: GLenum;\n readonly DRAW_BUFFER7: GLenum;\n readonly DRAW_BUFFER8: GLenum;\n readonly DRAW_BUFFER9: GLenum;\n readonly DRAW_FRAMEBUFFER: GLenum;\n readonly DRAW_FRAMEBUFFER_BINDING: GLenum;\n readonly DYNAMIC_COPY: GLenum;\n readonly DYNAMIC_READ: GLenum;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;\n readonly FLOAT_MAT2x3: GLenum;\n readonly FLOAT_MAT2x4: GLenum;\n readonly FLOAT_MAT3x2: GLenum;\n readonly FLOAT_MAT3x4: GLenum;\n readonly FLOAT_MAT4x2: GLenum;\n readonly FLOAT_MAT4x3: GLenum;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;\n readonly FRAMEBUFFER_DEFAULT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;\n readonly HALF_FLOAT: GLenum;\n readonly INTERLEAVED_ATTRIBS: GLenum;\n readonly INT_2_10_10_10_REV: GLenum;\n readonly INT_SAMPLER_2D: GLenum;\n readonly INT_SAMPLER_2D_ARRAY: GLenum;\n readonly INT_SAMPLER_3D: GLenum;\n readonly INT_SAMPLER_CUBE: GLenum;\n readonly INVALID_INDEX: GLenum;\n readonly MAX: GLenum;\n readonly MAX_3D_TEXTURE_SIZE: GLenum;\n readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;\n readonly MAX_COLOR_ATTACHMENTS: GLenum;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_DRAW_BUFFERS: GLenum;\n readonly MAX_ELEMENTS_INDICES: GLenum;\n readonly MAX_ELEMENTS_VERTICES: GLenum;\n readonly MAX_ELEMENT_INDEX: GLenum;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly MAX_SAMPLES: GLenum;\n readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;\n readonly MAX_TEXTURE_LOD_BIAS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;\n readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;\n readonly MAX_VARYING_COMPONENTS: GLenum;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MIN: GLenum;\n readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly OBJECT_TYPE: GLenum;\n readonly PACK_ROW_LENGTH: GLenum;\n readonly PACK_SKIP_PIXELS: GLenum;\n readonly PACK_SKIP_ROWS: GLenum;\n readonly PIXEL_PACK_BUFFER: GLenum;\n readonly PIXEL_PACK_BUFFER_BINDING: GLenum;\n readonly PIXEL_UNPACK_BUFFER: GLenum;\n readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;\n readonly QUERY_RESULT: GLenum;\n readonly QUERY_RESULT_AVAILABLE: GLenum;\n readonly R11F_G11F_B10F: GLenum;\n readonly R16F: GLenum;\n readonly R16I: GLenum;\n readonly R16UI: GLenum;\n readonly R32F: GLenum;\n readonly R32I: GLenum;\n readonly R32UI: GLenum;\n readonly R8: GLenum;\n readonly R8I: GLenum;\n readonly R8UI: GLenum;\n readonly R8_SNORM: GLenum;\n readonly RASTERIZER_DISCARD: GLenum;\n readonly READ_BUFFER: GLenum;\n readonly READ_FRAMEBUFFER: GLenum;\n readonly READ_FRAMEBUFFER_BINDING: GLenum;\n readonly RED: GLenum;\n readonly RED_INTEGER: GLenum;\n readonly RENDERBUFFER_SAMPLES: GLenum;\n readonly RG: GLenum;\n readonly RG16F: GLenum;\n readonly RG16I: GLenum;\n readonly RG16UI: GLenum;\n readonly RG32F: GLenum;\n readonly RG32I: GLenum;\n readonly RG32UI: GLenum;\n readonly RG8: GLenum;\n readonly RG8I: GLenum;\n readonly RG8UI: GLenum;\n readonly RG8_SNORM: GLenum;\n readonly RGB10_A2: GLenum;\n readonly RGB10_A2UI: GLenum;\n readonly RGB16F: GLenum;\n readonly RGB16I: GLenum;\n readonly RGB16UI: GLenum;\n readonly RGB32F: GLenum;\n readonly RGB32I: GLenum;\n readonly RGB32UI: GLenum;\n readonly RGB8: GLenum;\n readonly RGB8I: GLenum;\n readonly RGB8UI: GLenum;\n readonly RGB8_SNORM: GLenum;\n readonly RGB9_E5: GLenum;\n readonly RGBA16F: GLenum;\n readonly RGBA16I: GLenum;\n readonly RGBA16UI: GLenum;\n readonly RGBA32F: GLenum;\n readonly RGBA32I: GLenum;\n readonly RGBA32UI: GLenum;\n readonly RGBA8: GLenum;\n readonly RGBA8I: GLenum;\n readonly RGBA8UI: GLenum;\n readonly RGBA8_SNORM: GLenum;\n readonly RGBA_INTEGER: GLenum;\n readonly RGB_INTEGER: GLenum;\n readonly RG_INTEGER: GLenum;\n readonly SAMPLER_2D_ARRAY: GLenum;\n readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;\n readonly SAMPLER_2D_SHADOW: GLenum;\n readonly SAMPLER_3D: GLenum;\n readonly SAMPLER_BINDING: GLenum;\n readonly SAMPLER_CUBE_SHADOW: GLenum;\n readonly SEPARATE_ATTRIBS: GLenum;\n readonly SIGNALED: GLenum;\n readonly SIGNED_NORMALIZED: GLenum;\n readonly SRGB: GLenum;\n readonly SRGB8: GLenum;\n readonly SRGB8_ALPHA8: GLenum;\n readonly STATIC_COPY: GLenum;\n readonly STATIC_READ: GLenum;\n readonly STENCIL: GLenum;\n readonly STREAM_COPY: GLenum;\n readonly STREAM_READ: GLenum;\n readonly SYNC_CONDITION: GLenum;\n readonly SYNC_FENCE: GLenum;\n readonly SYNC_FLAGS: GLenum;\n readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;\n readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;\n readonly SYNC_STATUS: GLenum;\n readonly TEXTURE_2D_ARRAY: GLenum;\n readonly TEXTURE_3D: GLenum;\n readonly TEXTURE_BASE_LEVEL: GLenum;\n readonly TEXTURE_BINDING_2D_ARRAY: GLenum;\n readonly TEXTURE_BINDING_3D: GLenum;\n readonly TEXTURE_COMPARE_FUNC: GLenum;\n readonly TEXTURE_COMPARE_MODE: GLenum;\n readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;\n readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;\n readonly TEXTURE_MAX_LEVEL: GLenum;\n readonly TEXTURE_MAX_LOD: GLenum;\n readonly TEXTURE_MIN_LOD: GLenum;\n readonly TEXTURE_WRAP_R: GLenum;\n readonly TIMEOUT_EXPIRED: GLenum;\n readonly TIMEOUT_IGNORED: GLint64;\n readonly TRANSFORM_FEEDBACK: GLenum;\n readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;\n readonly TRANSFORM_FEEDBACK_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;\n readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;\n readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;\n readonly UNIFORM_ARRAY_STRIDE: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;\n readonly UNIFORM_BLOCK_BINDING: GLenum;\n readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;\n readonly UNIFORM_BLOCK_INDEX: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;\n readonly UNIFORM_BUFFER: GLenum;\n readonly UNIFORM_BUFFER_BINDING: GLenum;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;\n readonly UNIFORM_BUFFER_SIZE: GLenum;\n readonly UNIFORM_BUFFER_START: GLenum;\n readonly UNIFORM_IS_ROW_MAJOR: GLenum;\n readonly UNIFORM_MATRIX_STRIDE: GLenum;\n readonly UNIFORM_OFFSET: GLenum;\n readonly UNIFORM_SIZE: GLenum;\n readonly UNIFORM_TYPE: GLenum;\n readonly UNPACK_IMAGE_HEIGHT: GLenum;\n readonly UNPACK_ROW_LENGTH: GLenum;\n readonly UNPACK_SKIP_IMAGES: GLenum;\n readonly UNPACK_SKIP_PIXELS: GLenum;\n readonly UNPACK_SKIP_ROWS: GLenum;\n readonly UNSIGNALED: GLenum;\n readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;\n readonly UNSIGNED_INT_24_8: GLenum;\n readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;\n readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;\n readonly UNSIGNED_INT_SAMPLER_3D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;\n readonly UNSIGNED_INT_VEC2: GLenum;\n readonly UNSIGNED_INT_VEC3: GLenum;\n readonly UNSIGNED_INT_VEC4: GLenum;\n readonly UNSIGNED_NORMALIZED: GLenum;\n readonly VERTEX_ARRAY_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;\n readonly WAIT_FAILED: GLenum;\n}\n\ninterface WebGL2RenderingContextOverloads {\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;\n bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */\ninterface WebGLActiveInfo {\n readonly name: string;\n readonly size: GLint;\n readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\n/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */\ninterface WebGLBuffer {\n}\n\ndeclare var WebGLBuffer: {\n prototype: WebGLBuffer;\n new(): WebGLBuffer;\n};\n\n/** 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. */\ninterface WebGLContextEvent extends Event {\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */\ninterface WebGLFramebuffer {\n}\n\ndeclare var WebGLFramebuffer: {\n prototype: WebGLFramebuffer;\n new(): WebGLFramebuffer;\n};\n\n/** 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). */\ninterface WebGLProgram {\n}\n\ndeclare var WebGLProgram: {\n prototype: WebGLProgram;\n new(): WebGLProgram;\n};\n\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n prototype: WebGLQuery;\n new(): WebGLQuery;\n};\n\n/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */\ninterface WebGLRenderbuffer {\n}\n\ndeclare var WebGLRenderbuffer: {\n prototype: WebGLRenderbuffer;\n new(): WebGLRenderbuffer;\n};\n\n/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\n}\n\ndeclare var WebGLRenderingContext: {\n prototype: WebGLRenderingContext;\n new(): WebGLRenderingContext;\n readonly ACTIVE_ATTRIBUTES: GLenum;\n readonly ACTIVE_TEXTURE: GLenum;\n readonly ACTIVE_UNIFORMS: GLenum;\n readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n readonly ALPHA: GLenum;\n readonly ALPHA_BITS: GLenum;\n readonly ALWAYS: GLenum;\n readonly ARRAY_BUFFER: GLenum;\n readonly ARRAY_BUFFER_BINDING: GLenum;\n readonly ATTACHED_SHADERS: GLenum;\n readonly BACK: GLenum;\n readonly BLEND: GLenum;\n readonly BLEND_COLOR: GLenum;\n readonly BLEND_DST_ALPHA: GLenum;\n readonly BLEND_DST_RGB: GLenum;\n readonly BLEND_EQUATION: GLenum;\n readonly BLEND_EQUATION_ALPHA: GLenum;\n readonly BLEND_EQUATION_RGB: GLenum;\n readonly BLEND_SRC_ALPHA: GLenum;\n readonly BLEND_SRC_RGB: GLenum;\n readonly BLUE_BITS: GLenum;\n readonly BOOL: GLenum;\n readonly BOOL_VEC2: GLenum;\n readonly BOOL_VEC3: GLenum;\n readonly BOOL_VEC4: GLenum;\n readonly BROWSER_DEFAULT_WEBGL: GLenum;\n readonly BUFFER_SIZE: GLenum;\n readonly BUFFER_USAGE: GLenum;\n readonly BYTE: GLenum;\n readonly CCW: GLenum;\n readonly CLAMP_TO_EDGE: GLenum;\n readonly COLOR_ATTACHMENT0: GLenum;\n readonly COLOR_BUFFER_BIT: GLenum;\n readonly COLOR_CLEAR_VALUE: GLenum;\n readonly COLOR_WRITEMASK: GLenum;\n readonly COMPILE_STATUS: GLenum;\n readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n readonly CONSTANT_ALPHA: GLenum;\n readonly CONSTANT_COLOR: GLenum;\n readonly CONTEXT_LOST_WEBGL: GLenum;\n readonly CULL_FACE: GLenum;\n readonly CULL_FACE_MODE: GLenum;\n readonly CURRENT_PROGRAM: GLenum;\n readonly CURRENT_VERTEX_ATTRIB: GLenum;\n readonly CW: GLenum;\n readonly DECR: GLenum;\n readonly DECR_WRAP: GLenum;\n readonly DELETE_STATUS: GLenum;\n readonly DEPTH_ATTACHMENT: GLenum;\n readonly DEPTH_BITS: GLenum;\n readonly DEPTH_BUFFER_BIT: GLenum;\n readonly DEPTH_CLEAR_VALUE: GLenum;\n readonly DEPTH_COMPONENT: GLenum;\n readonly DEPTH_COMPONENT16: GLenum;\n readonly DEPTH_FUNC: GLenum;\n readonly DEPTH_RANGE: GLenum;\n readonly DEPTH_STENCIL: GLenum;\n readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n readonly DEPTH_TEST: GLenum;\n readonly DEPTH_WRITEMASK: GLenum;\n readonly DITHER: GLenum;\n readonly DONT_CARE: GLenum;\n readonly DST_ALPHA: GLenum;\n readonly DST_COLOR: GLenum;\n readonly DYNAMIC_DRAW: GLenum;\n readonly ELEMENT_ARRAY_BUFFER: GLenum;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n readonly EQUAL: GLenum;\n readonly FASTEST: GLenum;\n readonly FLOAT: GLenum;\n readonly FLOAT_MAT2: GLenum;\n readonly FLOAT_MAT3: GLenum;\n readonly FLOAT_MAT4: GLenum;\n readonly FLOAT_VEC2: GLenum;\n readonly FLOAT_VEC3: GLenum;\n readonly FLOAT_VEC4: GLenum;\n readonly FRAGMENT_SHADER: GLenum;\n readonly FRAMEBUFFER: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n readonly FRAMEBUFFER_BINDING: GLenum;\n readonly FRAMEBUFFER_COMPLETE: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n readonly FRONT: GLenum;\n readonly FRONT_AND_BACK: GLenum;\n readonly FRONT_FACE: GLenum;\n readonly FUNC_ADD: GLenum;\n readonly FUNC_REVERSE_SUBTRACT: GLenum;\n readonly FUNC_SUBTRACT: GLenum;\n readonly GENERATE_MIPMAP_HINT: GLenum;\n readonly GEQUAL: GLenum;\n readonly GREATER: GLenum;\n readonly GREEN_BITS: GLenum;\n readonly HIGH_FLOAT: GLenum;\n readonly HIGH_INT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n readonly INCR: GLenum;\n readonly INCR_WRAP: GLenum;\n readonly INT: GLenum;\n readonly INT_VEC2: GLenum;\n readonly INT_VEC3: GLenum;\n readonly INT_VEC4: GLenum;\n readonly INVALID_ENUM: GLenum;\n readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n readonly INVALID_OPERATION: GLenum;\n readonly INVALID_VALUE: GLenum;\n readonly INVERT: GLenum;\n readonly KEEP: GLenum;\n readonly LEQUAL: GLenum;\n readonly LESS: GLenum;\n readonly LINEAR: GLenum;\n readonly LINEAR_MIPMAP_LINEAR: GLenum;\n readonly LINEAR_MIPMAP_NEAREST: GLenum;\n readonly LINES: GLenum;\n readonly LINE_LOOP: GLenum;\n readonly LINE_STRIP: GLenum;\n readonly LINE_WIDTH: GLenum;\n readonly LINK_STATUS: GLenum;\n readonly LOW_FLOAT: GLenum;\n readonly LOW_INT: GLenum;\n readonly LUMINANCE: GLenum;\n readonly LUMINANCE_ALPHA: GLenum;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n readonly MAX_RENDERBUFFER_SIZE: GLenum;\n readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_TEXTURE_SIZE: GLenum;\n readonly MAX_VARYING_VECTORS: GLenum;\n readonly MAX_VERTEX_ATTRIBS: GLenum;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n readonly MAX_VIEWPORT_DIMS: GLenum;\n readonly MEDIUM_FLOAT: GLenum;\n readonly MEDIUM_INT: GLenum;\n readonly MIRRORED_REPEAT: GLenum;\n readonly NEAREST: GLenum;\n readonly NEAREST_MIPMAP_LINEAR: GLenum;\n readonly NEAREST_MIPMAP_NEAREST: GLenum;\n readonly NEVER: GLenum;\n readonly NICEST: GLenum;\n readonly NONE: GLenum;\n readonly NOTEQUAL: GLenum;\n readonly NO_ERROR: GLenum;\n readonly ONE: GLenum;\n readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n readonly ONE_MINUS_DST_ALPHA: GLenum;\n readonly ONE_MINUS_DST_COLOR: GLenum;\n readonly ONE_MINUS_SRC_ALPHA: GLenum;\n readonly ONE_MINUS_SRC_COLOR: GLenum;\n readonly OUT_OF_MEMORY: GLenum;\n readonly PACK_ALIGNMENT: GLenum;\n readonly POINTS: GLenum;\n readonly POLYGON_OFFSET_FACTOR: GLenum;\n readonly POLYGON_OFFSET_FILL: GLenum;\n readonly POLYGON_OFFSET_UNITS: GLenum;\n readonly RED_BITS: GLenum;\n readonly RENDERBUFFER: GLenum;\n readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n readonly RENDERBUFFER_BINDING: GLenum;\n readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n readonly RENDERBUFFER_HEIGHT: GLenum;\n readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n readonly RENDERBUFFER_RED_SIZE: GLenum;\n readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n readonly RENDERBUFFER_WIDTH: GLenum;\n readonly RENDERER: GLenum;\n readonly REPEAT: GLenum;\n readonly REPLACE: GLenum;\n readonly RGB: GLenum;\n readonly RGB565: GLenum;\n readonly RGB5_A1: GLenum;\n readonly RGBA: GLenum;\n readonly RGBA4: GLenum;\n readonly SAMPLER_2D: GLenum;\n readonly SAMPLER_CUBE: GLenum;\n readonly SAMPLES: GLenum;\n readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n readonly SAMPLE_BUFFERS: GLenum;\n readonly SAMPLE_COVERAGE: GLenum;\n readonly SAMPLE_COVERAGE_INVERT: GLenum;\n readonly SAMPLE_COVERAGE_VALUE: GLenum;\n readonly SCISSOR_BOX: GLenum;\n readonly SCISSOR_TEST: GLenum;\n readonly SHADER_TYPE: GLenum;\n readonly SHADING_LANGUAGE_VERSION: GLenum;\n readonly SHORT: GLenum;\n readonly SRC_ALPHA: GLenum;\n readonly SRC_ALPHA_SATURATE: GLenum;\n readonly SRC_COLOR: GLenum;\n readonly STATIC_DRAW: GLenum;\n readonly STENCIL_ATTACHMENT: GLenum;\n readonly STENCIL_BACK_FAIL: GLenum;\n readonly STENCIL_BACK_FUNC: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_BACK_REF: GLenum;\n readonly STENCIL_BACK_VALUE_MASK: GLenum;\n readonly STENCIL_BACK_WRITEMASK: GLenum;\n readonly STENCIL_BITS: GLenum;\n readonly STENCIL_BUFFER_BIT: GLenum;\n readonly STENCIL_CLEAR_VALUE: GLenum;\n readonly STENCIL_FAIL: GLenum;\n readonly STENCIL_FUNC: GLenum;\n readonly STENCIL_INDEX8: GLenum;\n readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_REF: GLenum;\n readonly STENCIL_TEST: GLenum;\n readonly STENCIL_VALUE_MASK: GLenum;\n readonly STENCIL_WRITEMASK: GLenum;\n readonly STREAM_DRAW: GLenum;\n readonly SUBPIXEL_BITS: GLenum;\n readonly TEXTURE: GLenum;\n readonly TEXTURE0: GLenum;\n readonly TEXTURE1: GLenum;\n readonly TEXTURE10: GLenum;\n readonly TEXTURE11: GLenum;\n readonly TEXTURE12: GLenum;\n readonly TEXTURE13: GLenum;\n readonly TEXTURE14: GLenum;\n readonly TEXTURE15: GLenum;\n readonly TEXTURE16: GLenum;\n readonly TEXTURE17: GLenum;\n readonly TEXTURE18: GLenum;\n readonly TEXTURE19: GLenum;\n readonly TEXTURE2: GLenum;\n readonly TEXTURE20: GLenum;\n readonly TEXTURE21: GLenum;\n readonly TEXTURE22: GLenum;\n readonly TEXTURE23: GLenum;\n readonly TEXTURE24: GLenum;\n readonly TEXTURE25: GLenum;\n readonly TEXTURE26: GLenum;\n readonly TEXTURE27: GLenum;\n readonly TEXTURE28: GLenum;\n readonly TEXTURE29: GLenum;\n readonly TEXTURE3: GLenum;\n readonly TEXTURE30: GLenum;\n readonly TEXTURE31: GLenum;\n readonly TEXTURE4: GLenum;\n readonly TEXTURE5: GLenum;\n readonly TEXTURE6: GLenum;\n readonly TEXTURE7: GLenum;\n readonly TEXTURE8: GLenum;\n readonly TEXTURE9: GLenum;\n readonly TEXTURE_2D: GLenum;\n readonly TEXTURE_BINDING_2D: GLenum;\n readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n readonly TEXTURE_MAG_FILTER: GLenum;\n readonly TEXTURE_MIN_FILTER: GLenum;\n readonly TEXTURE_WRAP_S: GLenum;\n readonly TEXTURE_WRAP_T: GLenum;\n readonly TRIANGLES: GLenum;\n readonly TRIANGLE_FAN: GLenum;\n readonly TRIANGLE_STRIP: GLenum;\n readonly UNPACK_ALIGNMENT: GLenum;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n readonly UNSIGNED_BYTE: GLenum;\n readonly UNSIGNED_INT: GLenum;\n readonly UNSIGNED_SHORT: GLenum;\n readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n readonly UNSIGNED_SHORT_5_6_5: GLenum;\n readonly VALIDATE_STATUS: GLenum;\n readonly VENDOR: GLenum;\n readonly VERSION: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n readonly VERTEX_SHADER: GLenum;\n readonly VIEWPORT: GLenum;\n readonly ZERO: GLenum;\n};\n\ninterface WebGLRenderingContextBase {\n readonly canvas: HTMLCanvasElement;\n readonly drawingBufferHeight: GLsizei;\n readonly drawingBufferWidth: GLsizei;\n activeTexture(texture: GLenum): void;\n attachShader(program: WebGLProgram, shader: WebGLShader): void;\n bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;\n bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;\n bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;\n bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n bindTexture(target: GLenum, texture: WebGLTexture | null): void;\n blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n blendEquation(mode: GLenum): void;\n blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;\n blendFunc(sfactor: GLenum, dfactor: GLenum): void;\n blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n checkFramebufferStatus(target: GLenum): GLenum;\n clear(mask: GLbitfield): void;\n clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n clearDepth(depth: GLclampf): void;\n clearStencil(s: GLint): void;\n colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;\n compileShader(shader: WebGLShader): void;\n copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;\n copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n createBuffer(): WebGLBuffer | null;\n createFramebuffer(): WebGLFramebuffer | null;\n createProgram(): WebGLProgram | null;\n createRenderbuffer(): WebGLRenderbuffer | null;\n createShader(type: GLenum): WebGLShader | null;\n createTexture(): WebGLTexture | null;\n cullFace(mode: GLenum): void;\n deleteBuffer(buffer: WebGLBuffer | null): void;\n deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;\n deleteProgram(program: WebGLProgram | null): void;\n deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;\n deleteShader(shader: WebGLShader | null): void;\n deleteTexture(texture: WebGLTexture | null): void;\n depthFunc(func: GLenum): void;\n depthMask(flag: GLboolean): void;\n depthRange(zNear: GLclampf, zFar: GLclampf): void;\n detachShader(program: WebGLProgram, shader: WebGLShader): void;\n disable(cap: GLenum): void;\n disableVertexAttribArray(index: GLuint): void;\n drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;\n drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;\n enable(cap: GLenum): void;\n enableVertexAttribArray(index: GLuint): void;\n finish(): void;\n flush(): void;\n framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;\n frontFace(mode: GLenum): void;\n generateMipmap(target: GLenum): void;\n getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;\n getAttribLocation(program: WebGLProgram, name: string): GLint;\n getBufferParameter(target: GLenum, pname: GLenum): any;\n getContextAttributes(): WebGLContextAttributes | null;\n getError(): GLenum;\n getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;\n getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;\n getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;\n getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;\n getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;\n getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;\n getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;\n getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;\n getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;\n getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;\n getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;\n getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;\n getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;\n getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;\n getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;\n getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;\n getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;\n getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;\n getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;\n getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;\n getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;\n getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;\n getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;\n getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;\n getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;\n getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;\n getExtension(name: string): any;\n getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;\n getParameter(pname: GLenum): any;\n getProgramInfoLog(program: WebGLProgram): string | null;\n getProgramParameter(program: WebGLProgram, pname: GLenum): any;\n getRenderbufferParameter(target: GLenum, pname: GLenum): any;\n getShaderInfoLog(shader: WebGLShader): string | null;\n getShaderParameter(shader: WebGLShader, pname: GLenum): any;\n getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;\n getShaderSource(shader: WebGLShader): string | null;\n getSupportedExtensions(): string[] | null;\n getTexParameter(target: GLenum, pname: GLenum): any;\n getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;\n getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;\n getVertexAttrib(index: GLuint, pname: GLenum): any;\n getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;\n hint(target: GLenum, mode: GLenum): void;\n isBuffer(buffer: WebGLBuffer | null): GLboolean;\n isContextLost(): boolean;\n isEnabled(cap: GLenum): GLboolean;\n isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;\n isProgram(program: WebGLProgram | null): GLboolean;\n isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;\n isShader(shader: WebGLShader | null): GLboolean;\n isTexture(texture: WebGLTexture | null): GLboolean;\n lineWidth(width: GLfloat): void;\n linkProgram(program: WebGLProgram): void;\n pixelStorei(pname: GLenum, param: GLint | GLboolean): void;\n polygonOffset(factor: GLfloat, units: GLfloat): void;\n renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n sampleCoverage(value: GLclampf, invert: GLboolean): void;\n scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n shaderSource(shader: WebGLShader, source: string): void;\n stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;\n stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;\n stencilMask(mask: GLuint): void;\n stencilMaskSeparate(face: GLenum, mask: GLuint): void;\n stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;\n useProgram(program: WebGLProgram | null): void;\n validateProgram(program: WebGLProgram): void;\n vertexAttrib1f(index: GLuint, x: GLfloat): void;\n vertexAttrib1fv(index: GLuint, values: Float32List): void;\n vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;\n vertexAttrib2fv(index: GLuint, values: Float32List): void;\n vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;\n vertexAttrib3fv(index: GLuint, values: Float32List): void;\n vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n vertexAttrib4fv(index: GLuint, values: Float32List): void;\n vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;\n viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n readonly ACTIVE_ATTRIBUTES: GLenum;\n readonly ACTIVE_TEXTURE: GLenum;\n readonly ACTIVE_UNIFORMS: GLenum;\n readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n readonly ALPHA: GLenum;\n readonly ALPHA_BITS: GLenum;\n readonly ALWAYS: GLenum;\n readonly ARRAY_BUFFER: GLenum;\n readonly ARRAY_BUFFER_BINDING: GLenum;\n readonly ATTACHED_SHADERS: GLenum;\n readonly BACK: GLenum;\n readonly BLEND: GLenum;\n readonly BLEND_COLOR: GLenum;\n readonly BLEND_DST_ALPHA: GLenum;\n readonly BLEND_DST_RGB: GLenum;\n readonly BLEND_EQUATION: GLenum;\n readonly BLEND_EQUATION_ALPHA: GLenum;\n readonly BLEND_EQUATION_RGB: GLenum;\n readonly BLEND_SRC_ALPHA: GLenum;\n readonly BLEND_SRC_RGB: GLenum;\n readonly BLUE_BITS: GLenum;\n readonly BOOL: GLenum;\n readonly BOOL_VEC2: GLenum;\n readonly BOOL_VEC3: GLenum;\n readonly BOOL_VEC4: GLenum;\n readonly BROWSER_DEFAULT_WEBGL: GLenum;\n readonly BUFFER_SIZE: GLenum;\n readonly BUFFER_USAGE: GLenum;\n readonly BYTE: GLenum;\n readonly CCW: GLenum;\n readonly CLAMP_TO_EDGE: GLenum;\n readonly COLOR_ATTACHMENT0: GLenum;\n readonly COLOR_BUFFER_BIT: GLenum;\n readonly COLOR_CLEAR_VALUE: GLenum;\n readonly COLOR_WRITEMASK: GLenum;\n readonly COMPILE_STATUS: GLenum;\n readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n readonly CONSTANT_ALPHA: GLenum;\n readonly CONSTANT_COLOR: GLenum;\n readonly CONTEXT_LOST_WEBGL: GLenum;\n readonly CULL_FACE: GLenum;\n readonly CULL_FACE_MODE: GLenum;\n readonly CURRENT_PROGRAM: GLenum;\n readonly CURRENT_VERTEX_ATTRIB: GLenum;\n readonly CW: GLenum;\n readonly DECR: GLenum;\n readonly DECR_WRAP: GLenum;\n readonly DELETE_STATUS: GLenum;\n readonly DEPTH_ATTACHMENT: GLenum;\n readonly DEPTH_BITS: GLenum;\n readonly DEPTH_BUFFER_BIT: GLenum;\n readonly DEPTH_CLEAR_VALUE: GLenum;\n readonly DEPTH_COMPONENT: GLenum;\n readonly DEPTH_COMPONENT16: GLenum;\n readonly DEPTH_FUNC: GLenum;\n readonly DEPTH_RANGE: GLenum;\n readonly DEPTH_STENCIL: GLenum;\n readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n readonly DEPTH_TEST: GLenum;\n readonly DEPTH_WRITEMASK: GLenum;\n readonly DITHER: GLenum;\n readonly DONT_CARE: GLenum;\n readonly DST_ALPHA: GLenum;\n readonly DST_COLOR: GLenum;\n readonly DYNAMIC_DRAW: GLenum;\n readonly ELEMENT_ARRAY_BUFFER: GLenum;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n readonly EQUAL: GLenum;\n readonly FASTEST: GLenum;\n readonly FLOAT: GLenum;\n readonly FLOAT_MAT2: GLenum;\n readonly FLOAT_MAT3: GLenum;\n readonly FLOAT_MAT4: GLenum;\n readonly FLOAT_VEC2: GLenum;\n readonly FLOAT_VEC3: GLenum;\n readonly FLOAT_VEC4: GLenum;\n readonly FRAGMENT_SHADER: GLenum;\n readonly FRAMEBUFFER: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n readonly FRAMEBUFFER_BINDING: GLenum;\n readonly FRAMEBUFFER_COMPLETE: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n readonly FRONT: GLenum;\n readonly FRONT_AND_BACK: GLenum;\n readonly FRONT_FACE: GLenum;\n readonly FUNC_ADD: GLenum;\n readonly FUNC_REVERSE_SUBTRACT: GLenum;\n readonly FUNC_SUBTRACT: GLenum;\n readonly GENERATE_MIPMAP_HINT: GLenum;\n readonly GEQUAL: GLenum;\n readonly GREATER: GLenum;\n readonly GREEN_BITS: GLenum;\n readonly HIGH_FLOAT: GLenum;\n readonly HIGH_INT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n readonly INCR: GLenum;\n readonly INCR_WRAP: GLenum;\n readonly INT: GLenum;\n readonly INT_VEC2: GLenum;\n readonly INT_VEC3: GLenum;\n readonly INT_VEC4: GLenum;\n readonly INVALID_ENUM: GLenum;\n readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n readonly INVALID_OPERATION: GLenum;\n readonly INVALID_VALUE: GLenum;\n readonly INVERT: GLenum;\n readonly KEEP: GLenum;\n readonly LEQUAL: GLenum;\n readonly LESS: GLenum;\n readonly LINEAR: GLenum;\n readonly LINEAR_MIPMAP_LINEAR: GLenum;\n readonly LINEAR_MIPMAP_NEAREST: GLenum;\n readonly LINES: GLenum;\n readonly LINE_LOOP: GLenum;\n readonly LINE_STRIP: GLenum;\n readonly LINE_WIDTH: GLenum;\n readonly LINK_STATUS: GLenum;\n readonly LOW_FLOAT: GLenum;\n readonly LOW_INT: GLenum;\n readonly LUMINANCE: GLenum;\n readonly LUMINANCE_ALPHA: GLenum;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n readonly MAX_RENDERBUFFER_SIZE: GLenum;\n readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_TEXTURE_SIZE: GLenum;\n readonly MAX_VARYING_VECTORS: GLenum;\n readonly MAX_VERTEX_ATTRIBS: GLenum;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n readonly MAX_VIEWPORT_DIMS: GLenum;\n readonly MEDIUM_FLOAT: GLenum;\n readonly MEDIUM_INT: GLenum;\n readonly MIRRORED_REPEAT: GLenum;\n readonly NEAREST: GLenum;\n readonly NEAREST_MIPMAP_LINEAR: GLenum;\n readonly NEAREST_MIPMAP_NEAREST: GLenum;\n readonly NEVER: GLenum;\n readonly NICEST: GLenum;\n readonly NONE: GLenum;\n readonly NOTEQUAL: GLenum;\n readonly NO_ERROR: GLenum;\n readonly ONE: GLenum;\n readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n readonly ONE_MINUS_DST_ALPHA: GLenum;\n readonly ONE_MINUS_DST_COLOR: GLenum;\n readonly ONE_MINUS_SRC_ALPHA: GLenum;\n readonly ONE_MINUS_SRC_COLOR: GLenum;\n readonly OUT_OF_MEMORY: GLenum;\n readonly PACK_ALIGNMENT: GLenum;\n readonly POINTS: GLenum;\n readonly POLYGON_OFFSET_FACTOR: GLenum;\n readonly POLYGON_OFFSET_FILL: GLenum;\n readonly POLYGON_OFFSET_UNITS: GLenum;\n readonly RED_BITS: GLenum;\n readonly RENDERBUFFER: GLenum;\n readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n readonly RENDERBUFFER_BINDING: GLenum;\n readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n readonly RENDERBUFFER_HEIGHT: GLenum;\n readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n readonly RENDERBUFFER_RED_SIZE: GLenum;\n readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n readonly RENDERBUFFER_WIDTH: GLenum;\n readonly RENDERER: GLenum;\n readonly REPEAT: GLenum;\n readonly REPLACE: GLenum;\n readonly RGB: GLenum;\n readonly RGB565: GLenum;\n readonly RGB5_A1: GLenum;\n readonly RGBA: GLenum;\n readonly RGBA4: GLenum;\n readonly SAMPLER_2D: GLenum;\n readonly SAMPLER_CUBE: GLenum;\n readonly SAMPLES: GLenum;\n readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n readonly SAMPLE_BUFFERS: GLenum;\n readonly SAMPLE_COVERAGE: GLenum;\n readonly SAMPLE_COVERAGE_INVERT: GLenum;\n readonly SAMPLE_COVERAGE_VALUE: GLenum;\n readonly SCISSOR_BOX: GLenum;\n readonly SCISSOR_TEST: GLenum;\n readonly SHADER_TYPE: GLenum;\n readonly SHADING_LANGUAGE_VERSION: GLenum;\n readonly SHORT: GLenum;\n readonly SRC_ALPHA: GLenum;\n readonly SRC_ALPHA_SATURATE: GLenum;\n readonly SRC_COLOR: GLenum;\n readonly STATIC_DRAW: GLenum;\n readonly STENCIL_ATTACHMENT: GLenum;\n readonly STENCIL_BACK_FAIL: GLenum;\n readonly STENCIL_BACK_FUNC: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_BACK_REF: GLenum;\n readonly STENCIL_BACK_VALUE_MASK: GLenum;\n readonly STENCIL_BACK_WRITEMASK: GLenum;\n readonly STENCIL_BITS: GLenum;\n readonly STENCIL_BUFFER_BIT: GLenum;\n readonly STENCIL_CLEAR_VALUE: GLenum;\n readonly STENCIL_FAIL: GLenum;\n readonly STENCIL_FUNC: GLenum;\n readonly STENCIL_INDEX8: GLenum;\n readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_REF: GLenum;\n readonly STENCIL_TEST: GLenum;\n readonly STENCIL_VALUE_MASK: GLenum;\n readonly STENCIL_WRITEMASK: GLenum;\n readonly STREAM_DRAW: GLenum;\n readonly SUBPIXEL_BITS: GLenum;\n readonly TEXTURE: GLenum;\n readonly TEXTURE0: GLenum;\n readonly TEXTURE1: GLenum;\n readonly TEXTURE10: GLenum;\n readonly TEXTURE11: GLenum;\n readonly TEXTURE12: GLenum;\n readonly TEXTURE13: GLenum;\n readonly TEXTURE14: GLenum;\n readonly TEXTURE15: GLenum;\n readonly TEXTURE16: GLenum;\n readonly TEXTURE17: GLenum;\n readonly TEXTURE18: GLenum;\n readonly TEXTURE19: GLenum;\n readonly TEXTURE2: GLenum;\n readonly TEXTURE20: GLenum;\n readonly TEXTURE21: GLenum;\n readonly TEXTURE22: GLenum;\n readonly TEXTURE23: GLenum;\n readonly TEXTURE24: GLenum;\n readonly TEXTURE25: GLenum;\n readonly TEXTURE26: GLenum;\n readonly TEXTURE27: GLenum;\n readonly TEXTURE28: GLenum;\n readonly TEXTURE29: GLenum;\n readonly TEXTURE3: GLenum;\n readonly TEXTURE30: GLenum;\n readonly TEXTURE31: GLenum;\n readonly TEXTURE4: GLenum;\n readonly TEXTURE5: GLenum;\n readonly TEXTURE6: GLenum;\n readonly TEXTURE7: GLenum;\n readonly TEXTURE8: GLenum;\n readonly TEXTURE9: GLenum;\n readonly TEXTURE_2D: GLenum;\n readonly TEXTURE_BINDING_2D: GLenum;\n readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n readonly TEXTURE_MAG_FILTER: GLenum;\n readonly TEXTURE_MIN_FILTER: GLenum;\n readonly TEXTURE_WRAP_S: GLenum;\n readonly TEXTURE_WRAP_T: GLenum;\n readonly TRIANGLES: GLenum;\n readonly TRIANGLE_FAN: GLenum;\n readonly TRIANGLE_STRIP: GLenum;\n readonly UNPACK_ALIGNMENT: GLenum;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n readonly UNSIGNED_BYTE: GLenum;\n readonly UNSIGNED_INT: GLenum;\n readonly UNSIGNED_SHORT: GLenum;\n readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n readonly UNSIGNED_SHORT_5_6_5: GLenum;\n readonly VALIDATE_STATUS: GLenum;\n readonly VENDOR: GLenum;\n readonly VERSION: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n readonly VERTEX_SHADER: GLenum;\n readonly VIEWPORT: GLenum;\n readonly ZERO: GLenum;\n}\n\ninterface WebGLRenderingContextOverloads {\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;\n bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n}\n\ninterface WebGLSampler {\n}\n\ndeclare var WebGLSampler: {\n prototype: WebGLSampler;\n new(): WebGLSampler;\n};\n\n/** 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. */\ninterface WebGLShader {\n}\n\ndeclare var WebGLShader: {\n prototype: WebGLShader;\n new(): WebGLShader;\n};\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */\ninterface WebGLShaderPrecisionFormat {\n readonly precision: GLint;\n readonly rangeMax: GLint;\n readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n prototype: WebGLSync;\n new(): WebGLSync;\n};\n\n/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */\ninterface WebGLTexture {\n}\n\ndeclare var WebGLTexture: {\n prototype: WebGLTexture;\n new(): WebGLTexture;\n};\n\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n prototype: WebGLTransformFeedback;\n new(): WebGLTransformFeedback;\n};\n\n/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n prototype: WebGLUniformLocation;\n new(): WebGLUniformLocation;\n};\n\ninterface WebGLVertexArrayObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n prototype: WebGLVertexArrayObject;\n new(): WebGLVertexArrayObject;\n};\n\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */\ninterface WebSocket extends EventTarget {\n /**\n * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n *\n * Can be set, to change how binary data is returned. The default is "blob".\n */\n binaryType: BinaryType;\n /**\n * 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.\n *\n * 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.)\n */\n readonly bufferedAmount: number;\n /**\n * Returns the extensions selected by the server, if any.\n */\n readonly extensions: string;\n onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;\n onerror: ((this: WebSocket, ev: Event) => any) | null;\n onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;\n onopen: ((this: WebSocket, ev: Event) => any) | null;\n /**\n * 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.\n */\n readonly protocol: string;\n /**\n * Returns the state of the WebSocket object\'s connection. It can have the values described below.\n */\n readonly readyState: number;\n /**\n * Returns the URL that was used to establish the WebSocket connection.\n */\n readonly url: string;\n /**\n * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.\n */\n close(code?: number, reason?: string): void;\n /**\n * Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.\n */\n send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;\n readonly CLOSED: number;\n readonly CLOSING: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WebSocket: {\n prototype: WebSocket;\n new(url: string | URL, protocols?: string | string[]): WebSocket;\n readonly CLOSED: number;\n readonly CLOSING: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n};\n\n/** Events that occur due to the user moving a mouse wheel or similar input device. */\ninterface WheelEvent extends MouseEvent {\n readonly deltaMode: number;\n readonly deltaX: number;\n readonly deltaY: number;\n readonly deltaZ: number;\n readonly DOM_DELTA_LINE: number;\n readonly DOM_DELTA_PAGE: number;\n readonly DOM_DELTA_PIXEL: number;\n}\n\ndeclare var WheelEvent: {\n prototype: WheelEvent;\n new(type: string, eventInitDict?: WheelEventInit): WheelEvent;\n readonly DOM_DELTA_LINE: number;\n readonly DOM_DELTA_PAGE: number;\n readonly DOM_DELTA_PIXEL: number;\n};\n\ninterface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {\n "devicemotion": DeviceMotionEvent;\n "deviceorientation": DeviceOrientationEvent;\n "gamepadconnected": GamepadEvent;\n "gamepaddisconnected": GamepadEvent;\n "orientationchange": Event;\n}\n\n/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */\ninterface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {\n /** @deprecated This is a legacy alias of `navigator`. */\n readonly clientInformation: Navigator;\n /**\n * Returns true if the window has been closed, false otherwise.\n */\n readonly closed: boolean;\n /**\n * Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.\n */\n readonly customElements: CustomElementRegistry;\n readonly devicePixelRatio: number;\n readonly document: Document;\n /** @deprecated */\n readonly event: Event | undefined;\n /** @deprecated */\n readonly external: External;\n readonly frameElement: Element | null;\n readonly frames: WindowProxy;\n readonly history: History;\n readonly innerHeight: number;\n readonly innerWidth: number;\n readonly length: number;\n get location(): Location;\n set location(href: string | Location);\n /**\n * Returns true if the location bar is visible; otherwise, returns false.\n */\n readonly locationbar: BarProp;\n /**\n * Returns true if the menu bar is visible; otherwise, returns false.\n */\n readonly menubar: BarProp;\n name: string;\n readonly navigator: Navigator;\n ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n /** @deprecated */\n onorientationchange: ((this: Window, ev: Event) => any) | null;\n opener: any;\n /** @deprecated */\n readonly orientation: number;\n readonly outerHeight: number;\n readonly outerWidth: number;\n /** @deprecated This is a legacy alias of `scrollX`. */\n readonly pageXOffset: number;\n /** @deprecated This is a legacy alias of `scrollY`. */\n readonly pageYOffset: number;\n /** 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. */\n readonly parent: WindowProxy;\n /**\n * Returns true if the personal bar is visible; otherwise, returns false.\n */\n readonly personalbar: BarProp;\n readonly screen: Screen;\n readonly screenLeft: number;\n readonly screenTop: number;\n readonly screenX: number;\n readonly screenY: number;\n readonly scrollX: number;\n readonly scrollY: number;\n /**\n * Returns true if the scrollbars are visible; otherwise, returns false.\n */\n readonly scrollbars: BarProp;\n readonly self: Window & typeof globalThis;\n readonly speechSynthesis: SpeechSynthesis;\n /** @deprecated */\n status: string;\n /**\n * Returns true if the status bar is visible; otherwise, returns false.\n */\n readonly statusbar: BarProp;\n /**\n * Returns true if the toolbar is visible; otherwise, returns false.\n */\n readonly toolbar: BarProp;\n readonly top: WindowProxy | null;\n readonly visualViewport: VisualViewport;\n readonly window: Window & typeof globalThis;\n alert(message?: any): void;\n blur(): void;\n cancelIdleCallback(handle: number): void;\n /** @deprecated */\n captureEvents(): void;\n /**\n * Closes the window.\n */\n close(): void;\n confirm(message?: string): boolean;\n /**\n * Moves the focus to the window\'s browsing context, if any.\n */\n focus(): void;\n getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n getSelection(): Selection | null;\n matchMedia(query: string): MediaQueryList;\n moveBy(x: number, y: number): void;\n moveTo(x: number, y: number): void;\n open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n /**\n * 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.\n *\n * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * 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.\n *\n * 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 "*".\n *\n * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.\n */\n postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\n postMessage(message: any, options?: WindowPostMessageOptions): void;\n print(): void;\n prompt(message?: string, _default?: string): string | null;\n /** @deprecated */\n releaseEvents(): void;\n requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\n resizeBy(x: number, y: number): void;\n resizeTo(width: number, height: number): void;\n scroll(options?: ScrollToOptions): void;\n scroll(x: number, y: number): void;\n scrollBy(options?: ScrollToOptions): void;\n scrollBy(x: number, y: number): void;\n scrollTo(options?: ScrollToOptions): void;\n scrollTo(x: number, y: number): void;\n /**\n * Cancels the document load.\n */\n stop(): void;\n addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: Window;\n}\n\ndeclare var Window: {\n prototype: Window;\n new(): Window;\n};\n\ninterface WindowEventHandlersEventMap {\n "afterprint": Event;\n "beforeprint": Event;\n "beforeunload": BeforeUnloadEvent;\n "gamepadconnected": Event;\n "gamepaddisconnected": Event;\n "hashchange": Event;\n "languagechange": Event;\n "message": MessageEvent;\n "messageerror": MessageEvent;\n "offline": Event;\n "online": Event;\n "pagehide": PageTransitionEvent;\n "pageshow": PageTransitionEvent;\n "popstate": PopStateEvent;\n "rejectionhandled": PromiseRejectionEvent;\n "storage": StorageEvent;\n "unhandledrejection": PromiseRejectionEvent;\n "unload": Event;\n}\n\ninterface WindowEventHandlers {\n onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;\n ongamepadconnected: ((this: WindowEventHandlers, ev: Event) => any) | null;\n ongamepaddisconnected: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onhashchange: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;\n onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;\n onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;\n onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;\n onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;\n addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface WindowLocalStorage {\n readonly localStorage: Storage;\n}\n\ninterface WindowOrWorkerGlobalScope {\n readonly caches: CacheStorage;\n readonly crossOriginIsolated: boolean;\n readonly crypto: Crypto;\n readonly indexedDB: IDBFactory;\n readonly isSecureContext: boolean;\n readonly origin: string;\n readonly performance: Performance;\n atob(data: string): string;\n btoa(data: string): string;\n clearInterval(handle?: number): void;\n clearTimeout(handle?: number): void;\n createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;\n queueMicrotask(callback: VoidFunction): void;\n setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n}\n\ninterface WindowSessionStorage {\n readonly sessionStorage: Storage;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** 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. */\ninterface Worker extends EventTarget, AbstractWorker {\n onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;\n /**\n * 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.\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: PostMessageOptions): void;\n /**\n * Aborts worker\'s associated global environment.\n */\n terminate(): void;\n addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Worker: {\n prototype: Worker;\n new(scriptURL: string | URL, options?: WorkerOptions): Worker;\n};\n\ninterface Worklet {\n /**\n * 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.\n *\n * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".\n *\n * 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.\n */\n addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;\n}\n\ndeclare var Worklet: {\n prototype: Worklet;\n new(): Worklet;\n};\n\n/** This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */\ninterface WritableStream<W = any> {\n readonly locked: boolean;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n getWriter(): WritableStreamDefaultWriter<W>;\n}\n\ndeclare var WritableStream: {\n prototype: WritableStream;\n new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;\n};\n\n/** This Streams API interface represents a controller allowing control of a WritableStream\'s state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */\ninterface WritableStreamDefaultController {\n error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\n/** 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. */\ninterface WritableStreamDefaultWriter<W = any> {\n readonly closed: Promise<undefined>;\n readonly desiredSize: number | null;\n readonly ready: Promise<undefined>;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n releaseLock(): void;\n write(chunk?: W): Promise<void>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n prototype: WritableStreamDefaultWriter;\n new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;\n};\n\n/** 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. */\ninterface XMLDocument extends Document {\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLDocument: {\n prototype: XMLDocument;\n new(): XMLDocument;\n};\n\ninterface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {\n "readystatechange": Event;\n}\n\n/** 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. */\ninterface XMLHttpRequest extends XMLHttpRequestEventTarget {\n onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n /**\n * Returns client\'s state.\n */\n readonly readyState: number;\n /**\n * Returns the response body.\n */\n readonly response: any;\n /**\n * Returns response as text.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".\n */\n readonly responseText: string;\n /**\n * Returns the response type.\n *\n * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".\n *\n * When set: setting to "document" is ignored if current global object is not a Window object.\n *\n * When set: throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n */\n responseType: XMLHttpRequestResponseType;\n readonly responseURL: string;\n /**\n * Returns the response as document.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".\n */\n readonly responseXML: Document | null;\n readonly status: number;\n readonly statusText: string;\n /**\n * 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).\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n */\n timeout: number;\n /**\n * Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.\n */\n readonly upload: XMLHttpRequestUpload;\n /**\n * 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.\n *\n * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.\n */\n withCredentials: boolean;\n /**\n * Cancels any network activity.\n */\n abort(): void;\n getAllResponseHeaders(): string;\n getResponseHeader(name: string): string | null;\n /**\n * Sets the request method, request URL, and synchronous flag.\n *\n * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.\n *\n * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.\n *\n * 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.\n */\n open(method: string, url: string | URL): void;\n open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;\n /**\n * Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.)\n *\n * Throws an "InvalidStateError" DOMException if state is loading or done.\n */\n overrideMimeType(mime: string): void;\n /**\n * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n */\n send(body?: Document | XMLHttpRequestBodyInit | null): void;\n /**\n * Combines a header in author request headers.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.\n */\n setRequestHeader(name: string, value: string): void;\n readonly DONE: number;\n readonly HEADERS_RECEIVED: number;\n readonly LOADING: number;\n readonly OPENED: number;\n readonly UNSENT: number;\n addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequest: {\n prototype: XMLHttpRequest;\n new(): XMLHttpRequest;\n readonly DONE: number;\n readonly HEADERS_RECEIVED: number;\n readonly LOADING: number;\n readonly OPENED: number;\n readonly UNSENT: number;\n};\n\ninterface XMLHttpRequestEventTargetEventMap {\n "abort": ProgressEvent<XMLHttpRequestEventTarget>;\n "error": ProgressEvent<XMLHttpRequestEventTarget>;\n "load": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadend": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;\n "progress": ProgressEvent<XMLHttpRequestEventTarget>;\n "timeout": ProgressEvent<XMLHttpRequestEventTarget>;\n}\n\ninterface XMLHttpRequestEventTarget extends EventTarget {\n onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestEventTarget: {\n prototype: XMLHttpRequestEventTarget;\n new(): XMLHttpRequestEventTarget;\n};\n\ninterface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestUpload: {\n prototype: XMLHttpRequestUpload;\n new(): XMLHttpRequestUpload;\n};\n\n/** Provides the serializeToString() method to construct an XML string representing a DOM tree. */\ninterface XMLSerializer {\n serializeToString(root: Node): string;\n}\n\ndeclare var XMLSerializer: {\n prototype: XMLSerializer;\n new(): XMLSerializer;\n};\n\n/** The XPathEvaluator interface allows to compile and evaluate XPath expressions. */\ninterface XPathEvaluator extends XPathEvaluatorBase {\n}\n\ndeclare var XPathEvaluator: {\n prototype: XPathEvaluator;\n new(): XPathEvaluator;\n};\n\ninterface XPathEvaluatorBase {\n createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;\n createNSResolver(nodeResolver: Node): XPathNSResolver;\n evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;\n}\n\n/** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */\ninterface XPathExpression {\n evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;\n}\n\ndeclare var XPathExpression: {\n prototype: XPathExpression;\n new(): XPathExpression;\n};\n\n/** The results generated by evaluating an XPath expression within the context of a given node. */\ninterface XPathResult {\n readonly booleanValue: boolean;\n readonly invalidIteratorState: boolean;\n readonly numberValue: number;\n readonly resultType: number;\n readonly singleNodeValue: Node | null;\n readonly snapshotLength: number;\n readonly stringValue: string;\n iterateNext(): Node | null;\n snapshotItem(index: number): Node | null;\n readonly ANY_TYPE: number;\n readonly ANY_UNORDERED_NODE_TYPE: number;\n readonly BOOLEAN_TYPE: number;\n readonly FIRST_ORDERED_NODE_TYPE: number;\n readonly NUMBER_TYPE: number;\n readonly ORDERED_NODE_ITERATOR_TYPE: number;\n readonly ORDERED_NODE_SNAPSHOT_TYPE: number;\n readonly STRING_TYPE: number;\n readonly UNORDERED_NODE_ITERATOR_TYPE: number;\n readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;\n}\n\ndeclare var XPathResult: {\n prototype: XPathResult;\n new(): XPathResult;\n readonly ANY_TYPE: number;\n readonly ANY_UNORDERED_NODE_TYPE: number;\n readonly BOOLEAN_TYPE: number;\n readonly FIRST_ORDERED_NODE_TYPE: number;\n readonly NUMBER_TYPE: number;\n readonly ORDERED_NODE_ITERATOR_TYPE: number;\n readonly ORDERED_NODE_SNAPSHOT_TYPE: number;\n readonly STRING_TYPE: number;\n readonly UNORDERED_NODE_ITERATOR_TYPE: number;\n readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;\n};\n\n/** 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. */\ninterface XSLTProcessor {\n clearParameters(): void;\n getParameter(namespaceURI: string | null, localName: string): any;\n importStylesheet(style: Node): void;\n removeParameter(namespaceURI: string | null, localName: string): void;\n reset(): void;\n setParameter(namespaceURI: string | null, localName: string, value: any): void;\n transformToDocument(source: Node): Document;\n transformToFragment(source: Node, output: Document): DocumentFragment;\n}\n\ndeclare var XSLTProcessor: {\n prototype: XSLTProcessor;\n new(): XSLTProcessor;\n};\n\ninterface Console {\n assert(condition?: boolean, ...data: any[]): void;\n clear(): void;\n count(label?: string): void;\n countReset(label?: string): void;\n debug(...data: any[]): void;\n dir(item?: any, options?: any): void;\n dirxml(...data: any[]): void;\n error(...data: any[]): void;\n group(...data: any[]): void;\n groupCollapsed(...data: any[]): void;\n groupEnd(): void;\n info(...data: any[]): void;\n log(...data: any[]): void;\n table(tabularData?: any, properties?: string[]): void;\n time(label?: string): void;\n timeEnd(label?: string): void;\n timeLog(label?: string, ...data: any[]): void;\n timeStamp(label?: string): void;\n trace(...data: any[]): void;\n warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\n\n/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */\ndeclare namespace CSS {\n function escape(ident: string): string;\n function supports(property: string, value: string): boolean;\n function supports(conditionText: string): boolean;\n}\n\ndeclare namespace WebAssembly {\n interface CompileError extends Error {\n }\n\n var CompileError: {\n prototype: CompileError;\n new(): CompileError;\n };\n\n interface Global {\n value: any;\n valueOf(): any;\n }\n\n var Global: {\n prototype: Global;\n new(descriptor: GlobalDescriptor, v?: any): Global;\n };\n\n interface Instance {\n readonly exports: Exports;\n }\n\n var Instance: {\n prototype: Instance;\n new(module: Module, importObject?: Imports): Instance;\n };\n\n interface LinkError extends Error {\n }\n\n var LinkError: {\n prototype: LinkError;\n new(): LinkError;\n };\n\n interface Memory {\n readonly buffer: ArrayBuffer;\n grow(delta: number): number;\n }\n\n var Memory: {\n prototype: Memory;\n new(descriptor: MemoryDescriptor): Memory;\n };\n\n interface Module {\n }\n\n var Module: {\n prototype: Module;\n new(bytes: BufferSource): Module;\n customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n exports(moduleObject: Module): ModuleExportDescriptor[];\n imports(moduleObject: Module): ModuleImportDescriptor[];\n };\n\n interface RuntimeError extends Error {\n }\n\n var RuntimeError: {\n prototype: RuntimeError;\n new(): RuntimeError;\n };\n\n interface Table {\n readonly length: number;\n get(index: number): any;\n grow(delta: number, value?: any): number;\n set(index: number, value?: any): void;\n }\n\n var Table: {\n prototype: Table;\n new(descriptor: TableDescriptor, value?: any): Table;\n };\n\n interface GlobalDescriptor {\n mutable?: boolean;\n value: ValueType;\n }\n\n interface MemoryDescriptor {\n initial: number;\n maximum?: number;\n shared?: boolean;\n }\n\n interface ModuleExportDescriptor {\n kind: ImportExportKind;\n name: string;\n }\n\n interface ModuleImportDescriptor {\n kind: ImportExportKind;\n module: string;\n name: string;\n }\n\n interface TableDescriptor {\n element: TableKind;\n initial: number;\n maximum?: number;\n }\n\n interface WebAssemblyInstantiatedSource {\n instance: Instance;\n module: Module;\n }\n\n type ImportExportKind = "function" | "global" | "memory" | "table";\n type TableKind = "anyfunc" | "externref";\n type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";\n type ExportValue = Function | Global | Memory | Table;\n type Exports = Record<string, ExportValue>;\n type ImportValue = ExportValue | number;\n type Imports = Record<string, ModuleImports>;\n type ModuleImports = Record<string, ImportValue>;\n function compile(bytes: BufferSource): Promise<Module>;\n function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;\n function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function validate(bytes: BufferSource): boolean;\n}\n\ninterface BlobCallback {\n (blob: Blob | null): void;\n}\n\ninterface CustomElementConstructor {\n new (...params: any[]): HTMLElement;\n}\n\ninterface DecodeErrorCallback {\n (error: DOMException): void;\n}\n\ninterface DecodeSuccessCallback {\n (decodedData: AudioBuffer): void;\n}\n\ninterface ErrorCallback {\n (err: DOMException): void;\n}\n\ninterface FileCallback {\n (file: File): void;\n}\n\ninterface FileSystemEntriesCallback {\n (entries: FileSystemEntry[]): void;\n}\n\ninterface FileSystemEntryCallback {\n (entry: FileSystemEntry): void;\n}\n\ninterface FrameRequestCallback {\n (time: DOMHighResTimeStamp): void;\n}\n\ninterface FunctionStringCallback {\n (data: string): void;\n}\n\ninterface IdleRequestCallback {\n (deadline: IdleDeadline): void;\n}\n\ninterface IntersectionObserverCallback {\n (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;\n}\n\ninterface MediaSessionActionHandler {\n (details: MediaSessionActionDetails): void;\n}\n\ninterface MutationCallback {\n (mutations: MutationRecord[], observer: MutationObserver): void;\n}\n\ninterface NotificationPermissionCallback {\n (permission: NotificationPermission): void;\n}\n\ninterface OnBeforeUnloadEventHandlerNonNull {\n (event: Event): string | null;\n}\n\ninterface OnErrorEventHandlerNonNull {\n (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n}\n\ninterface PerformanceObserverCallback {\n (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;\n}\n\ninterface PositionCallback {\n (position: GeolocationPosition): void;\n}\n\ninterface PositionErrorCallback {\n (positionError: GeolocationPositionError): void;\n}\n\ninterface QueuingStrategySize<T = any> {\n (chunk?: T): number;\n}\n\ninterface RTCPeerConnectionErrorCallback {\n (error: DOMException): void;\n}\n\ninterface RTCSessionDescriptionCallback {\n (description: RTCSessionDescriptionInit): void;\n}\n\ninterface RemotePlaybackAvailabilityCallback {\n (available: boolean): void;\n}\n\ninterface ResizeObserverCallback {\n (entries: ResizeObserverEntry[], observer: ResizeObserver): void;\n}\n\ninterface TransformerFlushCallback<O> {\n (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformerStartCallback<O> {\n (controller: TransformStreamDefaultController<O>): any;\n}\n\ninterface TransformerTransformCallback<I, O> {\n (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkAbortCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkCloseCallback {\n (): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkStartCallback {\n (controller: WritableStreamDefaultController): any;\n}\n\ninterface UnderlyingSinkWriteCallback<W> {\n (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceCancelCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourcePullCallback<R> {\n (controller: ReadableStreamController<R>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceStartCallback<R> {\n (controller: ReadableStreamController<R>): any;\n}\n\ninterface VoidFunction {\n (): void;\n}\n\ninterface HTMLElementTagNameMap {\n "a": HTMLAnchorElement;\n "abbr": HTMLElement;\n "address": HTMLElement;\n "area": HTMLAreaElement;\n "article": HTMLElement;\n "aside": HTMLElement;\n "audio": HTMLAudioElement;\n "b": HTMLElement;\n "base": HTMLBaseElement;\n "bdi": HTMLElement;\n "bdo": HTMLElement;\n "blockquote": HTMLQuoteElement;\n "body": HTMLBodyElement;\n "br": HTMLBRElement;\n "button": HTMLButtonElement;\n "canvas": HTMLCanvasElement;\n "caption": HTMLTableCaptionElement;\n "cite": HTMLElement;\n "code": HTMLElement;\n "col": HTMLTableColElement;\n "colgroup": HTMLTableColElement;\n "data": HTMLDataElement;\n "datalist": HTMLDataListElement;\n "dd": HTMLElement;\n "del": HTMLModElement;\n "details": HTMLDetailsElement;\n "dfn": HTMLElement;\n "dialog": HTMLDialogElement;\n "dir": HTMLDirectoryElement;\n "div": HTMLDivElement;\n "dl": HTMLDListElement;\n "dt": HTMLElement;\n "em": HTMLElement;\n "embed": HTMLEmbedElement;\n "fieldset": HTMLFieldSetElement;\n "figcaption": HTMLElement;\n "figure": HTMLElement;\n "font": HTMLFontElement;\n "footer": HTMLElement;\n "form": HTMLFormElement;\n "frame": HTMLFrameElement;\n "frameset": HTMLFrameSetElement;\n "h1": HTMLHeadingElement;\n "h2": HTMLHeadingElement;\n "h3": HTMLHeadingElement;\n "h4": HTMLHeadingElement;\n "h5": HTMLHeadingElement;\n "h6": HTMLHeadingElement;\n "head": HTMLHeadElement;\n "header": HTMLElement;\n "hgroup": HTMLElement;\n "hr": HTMLHRElement;\n "html": HTMLHtmlElement;\n "i": HTMLElement;\n "iframe": HTMLIFrameElement;\n "img": HTMLImageElement;\n "input": HTMLInputElement;\n "ins": HTMLModElement;\n "kbd": HTMLElement;\n "label": HTMLLabelElement;\n "legend": HTMLLegendElement;\n "li": HTMLLIElement;\n "link": HTMLLinkElement;\n "main": HTMLElement;\n "map": HTMLMapElement;\n "mark": HTMLElement;\n "marquee": HTMLMarqueeElement;\n "menu": HTMLMenuElement;\n "meta": HTMLMetaElement;\n "meter": HTMLMeterElement;\n "nav": HTMLElement;\n "noscript": HTMLElement;\n "object": HTMLObjectElement;\n "ol": HTMLOListElement;\n "optgroup": HTMLOptGroupElement;\n "option": HTMLOptionElement;\n "output": HTMLOutputElement;\n "p": HTMLParagraphElement;\n "param": HTMLParamElement;\n "picture": HTMLPictureElement;\n "pre": HTMLPreElement;\n "progress": HTMLProgressElement;\n "q": HTMLQuoteElement;\n "rp": HTMLElement;\n "rt": HTMLElement;\n "ruby": HTMLElement;\n "s": HTMLElement;\n "samp": HTMLElement;\n "script": HTMLScriptElement;\n "section": HTMLElement;\n "select": HTMLSelectElement;\n "slot": HTMLSlotElement;\n "small": HTMLElement;\n "source": HTMLSourceElement;\n "span": HTMLSpanElement;\n "strong": HTMLElement;\n "style": HTMLStyleElement;\n "sub": HTMLElement;\n "summary": HTMLElement;\n "sup": HTMLElement;\n "table": HTMLTableElement;\n "tbody": HTMLTableSectionElement;\n "td": HTMLTableCellElement;\n "template": HTMLTemplateElement;\n "textarea": HTMLTextAreaElement;\n "tfoot": HTMLTableSectionElement;\n "th": HTMLTableCellElement;\n "thead": HTMLTableSectionElement;\n "time": HTMLTimeElement;\n "title": HTMLTitleElement;\n "tr": HTMLTableRowElement;\n "track": HTMLTrackElement;\n "u": HTMLElement;\n "ul": HTMLUListElement;\n "var": HTMLElement;\n "video": HTMLVideoElement;\n "wbr": HTMLElement;\n}\n\ninterface HTMLElementDeprecatedTagNameMap {\n "listing": HTMLPreElement;\n "xmp": HTMLPreElement;\n}\n\ninterface SVGElementTagNameMap {\n "a": SVGAElement;\n "animate": SVGAnimateElement;\n "animateMotion": SVGAnimateMotionElement;\n "animateTransform": SVGAnimateTransformElement;\n "circle": SVGCircleElement;\n "clipPath": SVGClipPathElement;\n "defs": SVGDefsElement;\n "desc": SVGDescElement;\n "ellipse": SVGEllipseElement;\n "feBlend": SVGFEBlendElement;\n "feColorMatrix": SVGFEColorMatrixElement;\n "feComponentTransfer": SVGFEComponentTransferElement;\n "feComposite": SVGFECompositeElement;\n "feConvolveMatrix": SVGFEConvolveMatrixElement;\n "feDiffuseLighting": SVGFEDiffuseLightingElement;\n "feDisplacementMap": SVGFEDisplacementMapElement;\n "feDistantLight": SVGFEDistantLightElement;\n "feDropShadow": SVGFEDropShadowElement;\n "feFlood": SVGFEFloodElement;\n "feFuncA": SVGFEFuncAElement;\n "feFuncB": SVGFEFuncBElement;\n "feFuncG": SVGFEFuncGElement;\n "feFuncR": SVGFEFuncRElement;\n "feGaussianBlur": SVGFEGaussianBlurElement;\n "feImage": SVGFEImageElement;\n "feMerge": SVGFEMergeElement;\n "feMergeNode": SVGFEMergeNodeElement;\n "feMorphology": SVGFEMorphologyElement;\n "feOffset": SVGFEOffsetElement;\n "fePointLight": SVGFEPointLightElement;\n "feSpecularLighting": SVGFESpecularLightingElement;\n "feSpotLight": SVGFESpotLightElement;\n "feTile": SVGFETileElement;\n "feTurbulence": SVGFETurbulenceElement;\n "filter": SVGFilterElement;\n "foreignObject": SVGForeignObjectElement;\n "g": SVGGElement;\n "image": SVGImageElement;\n "line": SVGLineElement;\n "linearGradient": SVGLinearGradientElement;\n "marker": SVGMarkerElement;\n "mask": SVGMaskElement;\n "metadata": SVGMetadataElement;\n "mpath": SVGMPathElement;\n "path": SVGPathElement;\n "pattern": SVGPatternElement;\n "polygon": SVGPolygonElement;\n "polyline": SVGPolylineElement;\n "radialGradient": SVGRadialGradientElement;\n "rect": SVGRectElement;\n "script": SVGScriptElement;\n "set": SVGSetElement;\n "stop": SVGStopElement;\n "style": SVGStyleElement;\n "svg": SVGSVGElement;\n "switch": SVGSwitchElement;\n "symbol": SVGSymbolElement;\n "text": SVGTextElement;\n "textPath": SVGTextPathElement;\n "title": SVGTitleElement;\n "tspan": SVGTSpanElement;\n "use": SVGUseElement;\n "view": SVGViewElement;\n}\n\n/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */\ntype ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;\n\ndeclare var Audio: {\n new(src?: string): HTMLAudioElement;\n};\ndeclare var Image: {\n new(width?: number, height?: number): HTMLImageElement;\n};\ndeclare var Option: {\n new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;\n};\n/** @deprecated This is a legacy alias of `navigator`. */\ndeclare var clientInformation: Navigator;\n/**\n * Returns true if the window has been closed, false otherwise.\n */\ndeclare var closed: boolean;\n/**\n * Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.\n */\ndeclare var customElements: CustomElementRegistry;\ndeclare var devicePixelRatio: number;\ndeclare var document: Document;\n/** @deprecated */\ndeclare var event: Event | undefined;\n/** @deprecated */\ndeclare var external: External;\ndeclare var frameElement: Element | null;\ndeclare var frames: WindowProxy;\ndeclare var history: History;\ndeclare var innerHeight: number;\ndeclare var innerWidth: number;\ndeclare var length: number;\ndeclare var location: Location;\n/**\n * Returns true if the location bar is visible; otherwise, returns false.\n */\ndeclare var locationbar: BarProp;\n/**\n * Returns true if the menu bar is visible; otherwise, returns false.\n */\ndeclare var menubar: BarProp;\n/** @deprecated */\ndeclare const name: void;\ndeclare var navigator: Navigator;\ndeclare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\ndeclare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n/** @deprecated */\ndeclare var onorientationchange: ((this: Window, ev: Event) => any) | null;\ndeclare var opener: any;\n/** @deprecated */\ndeclare var orientation: number;\ndeclare var outerHeight: number;\ndeclare var outerWidth: number;\n/** @deprecated This is a legacy alias of `scrollX`. */\ndeclare var pageXOffset: number;\n/** @deprecated This is a legacy alias of `scrollY`. */\ndeclare var pageYOffset: number;\n/** 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. */\ndeclare var parent: WindowProxy;\n/**\n * Returns true if the personal bar is visible; otherwise, returns false.\n */\ndeclare var personalbar: BarProp;\ndeclare var screen: Screen;\ndeclare var screenLeft: number;\ndeclare var screenTop: number;\ndeclare var screenX: number;\ndeclare var screenY: number;\ndeclare var scrollX: number;\ndeclare var scrollY: number;\n/**\n * Returns true if the scrollbars are visible; otherwise, returns false.\n */\ndeclare var scrollbars: BarProp;\ndeclare var self: Window & typeof globalThis;\ndeclare var speechSynthesis: SpeechSynthesis;\n/** @deprecated */\ndeclare var status: string;\n/**\n * Returns true if the status bar is visible; otherwise, returns false.\n */\ndeclare var statusbar: BarProp;\n/**\n * Returns true if the toolbar is visible; otherwise, returns false.\n */\ndeclare var toolbar: BarProp;\ndeclare var top: WindowProxy | null;\ndeclare var visualViewport: VisualViewport;\ndeclare var window: Window & typeof globalThis;\ndeclare function alert(message?: any): void;\ndeclare function blur(): void;\ndeclare function cancelIdleCallback(handle: number): void;\n/** @deprecated */\ndeclare function captureEvents(): void;\n/**\n * Closes the window.\n */\ndeclare function close(): void;\ndeclare function confirm(message?: string): boolean;\n/**\n * Moves the focus to the window\'s browsing context, if any.\n */\ndeclare function focus(): void;\ndeclare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\ndeclare function getSelection(): Selection | null;\ndeclare function matchMedia(query: string): MediaQueryList;\ndeclare function moveBy(x: number, y: number): void;\ndeclare function moveTo(x: number, y: number): void;\ndeclare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n/**\n * 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.\n *\n * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * 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.\n *\n * 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 "*".\n *\n * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.\n */\ndeclare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\ndeclare function postMessage(message: any, options?: WindowPostMessageOptions): void;\ndeclare function print(): void;\ndeclare function prompt(message?: string, _default?: string): string | null;\n/** @deprecated */\ndeclare function releaseEvents(): void;\ndeclare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\ndeclare function resizeBy(x: number, y: number): void;\ndeclare function resizeTo(width: number, height: number): void;\ndeclare function scroll(options?: ScrollToOptions): void;\ndeclare function scroll(x: number, y: number): void;\ndeclare function scrollBy(options?: ScrollToOptions): void;\ndeclare function scrollBy(x: number, y: number): void;\ndeclare function scrollTo(options?: ScrollToOptions): void;\ndeclare function scrollTo(x: number, y: number): void;\n/**\n * Cancels the document load.\n */\ndeclare function stop(): void;\ndeclare function toString(): string;\n/**\n * 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.\n */\ndeclare function dispatchEvent(event: Event): boolean;\ndeclare function cancelAnimationFrame(handle: number): void;\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\n/**\n * Fires when the user aborts the download.\n * @param ev The event.\n */\ndeclare var onabort: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n */\ndeclare var onblur: ((this: Window, ev: FocusEvent) => any) | null;\n/**\n * Occurs when playback is possible, but would require further buffering.\n * @param ev The event.\n */\ndeclare var oncanplay: ((this: Window, ev: Event) => any) | null;\ndeclare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the contents of the object or selection have changed.\n * @param ev The event.\n */\ndeclare var onchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user clicks the left mouse button on the object\n * @param ev The mouse event.\n */\ndeclare var onclick: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onclose: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n * @param ev The mouse event.\n */\ndeclare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var oncuechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n */\ndeclare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n */\ndeclare var ondrag: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\n * @param ev The event.\n */\ndeclare var ondragend: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element when the user drags the object to a valid drop target.\n * @param ev The drag event.\n */\ndeclare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n * @param ev The drag event.\n */\ndeclare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element continuously while the user drags the object over a valid drop target.\n * @param ev The event.\n */\ndeclare var ondragover: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user starts to drag a text selection or selected object.\n * @param ev The event.\n */\ndeclare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondrop: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n */\ndeclare var ondurationchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the media element is reset to its initial state.\n * @param ev The event.\n */\ndeclare var onemptied: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the end of playback is reached.\n * @param ev The event\n */\ndeclare var onended: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n */\ndeclare var onerror: OnErrorEventHandler;\n/**\n * Fires when the object receives focus.\n * @param ev The event.\n */\ndeclare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;\ndeclare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;\ndeclare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var oninput: ((this: Window, ev: Event) => any) | null;\ndeclare var oninvalid: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n */\ndeclare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n * @deprecated\n */\ndeclare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n */\ndeclare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n */\ndeclare var onload: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when media data is loaded at the current playback position.\n * @param ev The event.\n */\ndeclare var onloadeddata: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the duration and dimensions of the media have been determined.\n * @param ev The event.\n */\ndeclare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n */\ndeclare var onloadstart: ((this: Window, ev: Event) => any) | null;\ndeclare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Fires when the user clicks the object with either mouse button.\n * @param ev The mouse event.\n */\ndeclare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse over the object.\n * @param ev The mouse event.\n */\ndeclare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer into the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user releases a mouse button while the mouse is over the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Occurs when playback is paused.\n * @param ev The event.\n */\ndeclare var onpause: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the play method is requested.\n * @param ev The event.\n */\ndeclare var onplay: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n */\ndeclare var onplaying: ((this: Window, ev: Event) => any) | null;\ndeclare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n */\ndeclare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;\n/**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n */\ndeclare var onratechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user resets a form.\n * @param ev The event.\n */\ndeclare var onreset: ((this: Window, ev: Event) => any) | null;\ndeclare var onresize: ((this: Window, ev: UIEvent) => any) | null;\n/**\n * Fires when the user repositions the scroll box in the scroll bar on the object.\n * @param ev The event.\n */\ndeclare var onscroll: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the seek operation ends.\n * @param ev The event.\n */\ndeclare var onseeked: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n */\ndeclare var onseeking: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the current selection changes.\n * @param ev The event.\n */\ndeclare var onselect: ((this: Window, ev: Event) => any) | null;\ndeclare var onselectionchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onselectstart: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the download has stopped.\n * @param ev The event.\n */\ndeclare var onstalled: ((this: Window, ev: Event) => any) | null;\ndeclare var onsubmit: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n */\ndeclare var onsuspend: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n */\ndeclare var ontimeupdate: ((this: Window, ev: Event) => any) | null;\ndeclare var ontoggle: ((this: Window, ev: Event) => any) | null;\ndeclare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;\n/**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n */\ndeclare var onvolumechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when playback stops because the next frame of a video resource is not available.\n * @param ev The event.\n */\ndeclare var onwaiting: ((this: Window, ev: Event) => any) | null;\ndeclare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;\ndeclare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;\ndeclare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;\ndeclare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;\ndeclare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;\ndeclare var onafterprint: ((this: Window, ev: Event) => any) | null;\ndeclare var onbeforeprint: ((this: Window, ev: Event) => any) | null;\ndeclare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;\ndeclare var ongamepadconnected: ((this: Window, ev: Event) => any) | null;\ndeclare var ongamepaddisconnected: ((this: Window, ev: Event) => any) | null;\ndeclare var onhashchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onlanguagechange: ((this: Window, ev: Event) => any) | null;\ndeclare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;\ndeclare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;\ndeclare var onoffline: ((this: Window, ev: Event) => any) | null;\ndeclare var ononline: ((this: Window, ev: Event) => any) | null;\ndeclare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;\ndeclare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;\ndeclare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;\ndeclare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;\ndeclare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onunload: ((this: Window, ev: Event) => any) | null;\ndeclare var localStorage: Storage;\ndeclare var caches: CacheStorage;\ndeclare var crossOriginIsolated: boolean;\ndeclare var crypto: Crypto;\ndeclare var indexedDB: IDBFactory;\ndeclare var isSecureContext: boolean;\ndeclare var origin: string;\ndeclare var performance: Performance;\ndeclare function atob(data: string): string;\ndeclare function btoa(data: string): string;\ndeclare function clearInterval(handle?: number): void;\ndeclare function clearTimeout(handle?: number): void;\ndeclare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;\ndeclare function queueMicrotask(callback: VoidFunction): void;\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare var sessionStorage: Storage;\ndeclare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\ndeclare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\ndeclare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\ndeclare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\ntype AlgorithmIdentifier = Algorithm | string;\ntype BigInteger = Uint8Array;\ntype BinaryData = ArrayBuffer | ArrayBufferView;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView | ArrayBuffer;\ntype COSEAlgorithmIdentifier = number;\ntype CSSNumberish = number;\ntype CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;\ntype ClipboardItemData = Promise<ClipboardItemDataType>;\ntype ClipboardItemDataType = string | Blob;\ntype ClipboardItems = ClipboardItem[];\ntype ConstrainBoolean = boolean | ConstrainBooleanParameters;\ntype ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;\ntype ConstrainDouble = number | ConstrainDoubleRange;\ntype ConstrainULong = number | ConstrainULongRange;\ntype DOMHighResTimeStamp = number;\ntype DOMTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype Float32List = Float32Array | GLfloat[];\ntype FormDataEntryValue = File | string;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLint64 = number;\ntype GLintptr = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLuint = number;\ntype GLuint64 = number;\ntype HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;\ntype HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;\ntype HashAlgorithmIdentifier = AlgorithmIdentifier;\ntype HeadersInit = string[][] | Record<string, string> | Headers;\ntype IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];\ntype ImageBitmapSource = CanvasImageSource | Blob | ImageData;\ntype InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";\ntype Int32List = Int32Array | GLint[];\ntype LineAndPositionSetting = number | AutoKeyword;\ntype MediaProvider = MediaStream | MediaSource | Blob;\ntype MessageEventSource = WindowProxy | MessagePort | ServiceWorker;\ntype MutationRecordType = "attributes" | "characterData" | "childList";\ntype NamedCurve = string;\ntype OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;\ntype OnErrorEventHandler = OnErrorEventHandlerNonNull | null;\ntype PerformanceEntryList = PerformanceEntry[];\ntype ReadableStreamController<T> = ReadableStreamDefaultController<T>;\ntype ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;\ntype ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;\ntype RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype RequestInfo = Request | string;\ntype TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;\ntype TimerHandler = string | Function;\ntype Transferable = ArrayBuffer | MessagePort | ImageBitmap;\ntype Uint32List = Uint32Array | GLuint[];\ntype UvmEntries = UvmEntry[];\ntype UvmEntry = number[];\ntype VibratePattern = number | number[];\ntype WindowProxy = Window;\ntype XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;\ntype AlignSetting = "center" | "end" | "left" | "right" | "start";\ntype AnimationPlayState = "finished" | "idle" | "paused" | "running";\ntype AnimationReplaceState = "active" | "persisted" | "removed";\ntype AppendMode = "segments" | "sequence";\ntype AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";\ntype AudioContextLatencyCategory = "balanced" | "interactive" | "playback";\ntype AudioContextState = "closed" | "running" | "suspended";\ntype AuthenticatorAttachment = "cross-platform" | "platform";\ntype AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb";\ntype AutoKeyword = "auto";\ntype AutomationRate = "a-rate" | "k-rate";\ntype BinaryType = "arraybuffer" | "blob";\ntype BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";\ntype CanPlayTypeResult = "" | "maybe" | "probably";\ntype CanvasDirection = "inherit" | "ltr" | "rtl";\ntype CanvasFillRule = "evenodd" | "nonzero";\ntype CanvasFontKerning = "auto" | "none" | "normal";\ntype CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";\ntype CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";\ntype CanvasLineCap = "butt" | "round" | "square";\ntype CanvasLineJoin = "bevel" | "miter" | "round";\ntype CanvasTextAlign = "center" | "end" | "left" | "right" | "start";\ntype CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";\ntype CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";\ntype ChannelCountMode = "clamped-max" | "explicit" | "max";\ntype ChannelInterpretation = "discrete" | "speakers";\ntype ClientTypes = "all" | "sharedworker" | "window" | "worker";\ntype ColorGamut = "p3" | "rec2020" | "srgb";\ntype ColorSpaceConversion = "default" | "none";\ntype CompositeOperation = "accumulate" | "add" | "replace";\ntype CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";\ntype ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";\ntype CredentialMediationRequirement = "optional" | "required" | "silent";\ntype DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";\ntype DirectionSetting = "" | "lr" | "rl";\ntype DisplayCaptureSurfaceType = "application" | "browser" | "monitor" | "window";\ntype DistanceModelType = "exponential" | "inverse" | "linear";\ntype DocumentReadyState = "complete" | "interactive" | "loading";\ntype EndOfStreamError = "decode" | "network";\ntype EndingType = "native" | "transparent";\ntype FillMode = "auto" | "backwards" | "both" | "forwards" | "none";\ntype FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";\ntype FontFaceSetLoadStatus = "loaded" | "loading";\ntype FullscreenNavigationUI = "auto" | "hide" | "show";\ntype GamepadHapticActuatorType = "vibration";\ntype GamepadMappingType = "" | "standard" | "xr-standard";\ntype HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";\ntype IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";\ntype IDBRequestReadyState = "done" | "pending";\ntype IDBTransactionMode = "readonly" | "readwrite" | "versionchange";\ntype ImageOrientation = "flipY" | "none";\ntype ImageSmoothingQuality = "high" | "low" | "medium";\ntype IterationCompositeOperation = "accumulate" | "replace";\ntype KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";\ntype KeyType = "private" | "public" | "secret";\ntype KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";\ntype LineAlignSetting = "center" | "end" | "start";\ntype MediaDecodingType = "file" | "media-source" | "webrtc";\ntype MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";\ntype MediaEncodingType = "record" | "webrtc";\ntype MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";\ntype MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";\ntype MediaKeySessionType = "persistent-license" | "temporary";\ntype MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";\ntype MediaKeysRequirement = "not-allowed" | "optional" | "required";\ntype MediaSessionAction = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";\ntype MediaSessionPlaybackState = "none" | "paused" | "playing";\ntype MediaStreamTrackState = "ended" | "live";\ntype NavigationType = "back_forward" | "navigate" | "prerender" | "reload";\ntype NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";\ntype OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";\ntype OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";\ntype OverSampleType = "2x" | "4x" | "none";\ntype PanningModelType = "HRTF" | "equalpower";\ntype PaymentComplete = "fail" | "success" | "unknown";\ntype PermissionName = "gamepad" | "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock";\ntype PermissionState = "denied" | "granted" | "prompt";\ntype PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";\ntype PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";\ntype PredefinedColorSpace = "display-p3" | "srgb";\ntype PremultiplyAlpha = "default" | "none" | "premultiply";\ntype PresentationStyle = "attachment" | "inline" | "unspecified";\ntype PublicKeyCredentialType = "public-key";\ntype PushEncryptionKeyName = "auth" | "p256dh";\ntype PushPermissionState = "denied" | "granted" | "prompt";\ntype RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";\ntype RTCDataChannelState = "closed" | "closing" | "connecting" | "open";\ntype RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";\ntype RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";\ntype RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";\ntype RTCIceComponent = "rtcp" | "rtp";\ntype RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";\ntype RTCIceCredentialType = "password";\ntype RTCIceGathererState = "complete" | "gathering" | "new";\ntype RTCIceGatheringState = "complete" | "gathering" | "new";\ntype RTCIceProtocol = "tcp" | "udp";\ntype RTCIceTcpCandidateType = "active" | "passive" | "so";\ntype RTCIceTransportPolicy = "all" | "relay";\ntype RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";\ntype RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";\ntype RTCPriorityType = "high" | "low" | "medium" | "very-low";\ntype RTCRtcpMuxPolicy = "require";\ntype RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";\ntype RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";\ntype RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";\ntype RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";\ntype 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";\ntype ReadyState = "closed" | "ended" | "open";\ntype RecordingState = "inactive" | "paused" | "recording";\ntype ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";\ntype RemotePlaybackState = "connected" | "connecting" | "disconnected";\ntype RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";\ntype RequestCredentials = "include" | "omit" | "same-origin";\ntype RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";\ntype RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";\ntype RequestRedirect = "error" | "follow" | "manual";\ntype ResidentKeyRequirement = "discouraged" | "preferred" | "required";\ntype ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";\ntype ResizeQuality = "high" | "low" | "medium" | "pixelated";\ntype ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";\ntype ScrollBehavior = "auto" | "smooth";\ntype ScrollLogicalPosition = "center" | "end" | "nearest" | "start";\ntype ScrollRestoration = "auto" | "manual";\ntype ScrollSetting = "" | "up";\ntype SecurityPolicyViolationEventDisposition = "enforce" | "report";\ntype SelectionMode = "end" | "preserve" | "select" | "start";\ntype ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";\ntype ServiceWorkerUpdateViaCache = "all" | "imports" | "none";\ntype ShadowRootMode = "closed" | "open";\ntype SlotAssignmentMode = "manual" | "named";\ntype SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";\ntype TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";\ntype TextTrackMode = "disabled" | "hidden" | "showing";\ntype TouchType = "direct" | "stylus";\ntype TransferFunction = "hlg" | "pq" | "srgb";\ntype UserVerificationRequirement = "discouraged" | "preferred" | "required";\ntype VideoFacingModeEnum = "environment" | "left" | "right" | "user";\ntype VisibilityState = "hidden" | "visible";\ntype WebGLPowerPreference = "default" | "high-performance" | "low-power";\ntype WorkerType = "classic" | "module";\ntype XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";\n',"lib.dom.iterable.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/////////////////////////////\n/// Window Iterable APIs\n/////////////////////////////\n\ninterface AudioParam {\n setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;\n}\n\ninterface AudioParamMap extends ReadonlyMap<string, AudioParam> {\n}\n\ninterface BaseAudioContext {\n createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;\n createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;\n}\n\ninterface CSSRuleList {\n [Symbol.iterator](): IterableIterator<CSSRule>;\n}\n\ninterface CSSStyleDeclaration {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface Cache {\n addAll(requests: Iterable<RequestInfo>): Promise<void>;\n}\n\ninterface CanvasPathDrawingStyles {\n setLineDash(segments: Iterable<number>): void;\n}\n\ninterface DOMRectList {\n [Symbol.iterator](): IterableIterator<DOMRect>;\n}\n\ninterface DOMStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface DOMTokenList {\n [Symbol.iterator](): IterableIterator<string>;\n entries(): IterableIterator<[number, string]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<string>;\n}\n\ninterface DataTransferItemList {\n [Symbol.iterator](): IterableIterator<DataTransferItem>;\n}\n\ninterface FileList {\n [Symbol.iterator](): IterableIterator<File>;\n}\n\ninterface FontFaceSet extends Set<FontFace> {\n}\n\ninterface FormData {\n [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;\n /**\n * Returns an array of key, value pairs for every entry in the list.\n */\n entries(): IterableIterator<[string, FormDataEntryValue]>;\n /**\n * Returns a list of keys in the list.\n */\n keys(): IterableIterator<string>;\n /**\n * Returns a list of values in the list.\n */\n values(): IterableIterator<FormDataEntryValue>;\n}\n\ninterface HTMLAllCollection {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLCollectionBase {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLCollectionOf<T extends Element> {\n [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface HTMLFormElement {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLSelectElement {\n [Symbol.iterator](): IterableIterator<HTMLOptionElement>;\n}\n\ninterface Headers {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /**\n * Returns an iterator allowing to go through all key/value pairs contained in this object.\n */\n entries(): IterableIterator<[string, string]>;\n /**\n * Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.\n */\n keys(): IterableIterator<string>;\n /**\n * Returns an iterator allowing to go through all values of the key/value pairs contained in this object.\n */\n values(): IterableIterator<string>;\n}\n\ninterface IDBDatabase {\n /**\n * 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.\n */\n transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;\n}\n\ninterface IDBObjectStore {\n /**\n * 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.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;\n}\n\ninterface MediaKeyStatusMap {\n [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;\n entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;\n keys(): IterableIterator<BufferSource>;\n values(): IterableIterator<MediaKeyStatus>;\n}\n\ninterface MediaList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface MessageEvent<T = any> {\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;\n}\n\ninterface MimeTypeArray {\n [Symbol.iterator](): IterableIterator<MimeType>;\n}\n\ninterface NamedNodeMap {\n [Symbol.iterator](): IterableIterator<Attr>;\n}\n\ninterface Navigator {\n requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;\n vibrate(pattern: Iterable<number>): boolean;\n}\n\ninterface NodeList {\n [Symbol.iterator](): IterableIterator<Node>;\n /**\n * Returns an array of key, value pairs for every entry in the list.\n */\n entries(): IterableIterator<[number, Node]>;\n /**\n * Returns an list of keys in the list.\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the list.\n */\n values(): IterableIterator<Node>;\n}\n\ninterface NodeListOf<TNode extends Node> {\n [Symbol.iterator](): IterableIterator<TNode>;\n /**\n * Returns an array of key, value pairs for every entry in the list.\n */\n entries(): IterableIterator<[number, TNode]>;\n /**\n * Returns an list of keys in the list.\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the list.\n */\n values(): IterableIterator<TNode>;\n}\n\ninterface Plugin {\n [Symbol.iterator](): IterableIterator<MimeType>;\n}\n\ninterface PluginArray {\n [Symbol.iterator](): IterableIterator<Plugin>;\n}\n\ninterface RTCStatsReport extends ReadonlyMap<string, any> {\n}\n\ninterface ReadableStream<R = any> {\n [Symbol.iterator](): IterableIterator<any>;\n entries(): IterableIterator<[number, any]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<any>;\n}\n\ninterface SVGLengthList {\n [Symbol.iterator](): IterableIterator<SVGLength>;\n}\n\ninterface SVGNumberList {\n [Symbol.iterator](): IterableIterator<SVGNumber>;\n}\n\ninterface SVGPointList {\n [Symbol.iterator](): IterableIterator<DOMPoint>;\n}\n\ninterface SVGStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface SVGTransformList {\n [Symbol.iterator](): IterableIterator<SVGTransform>;\n}\n\ninterface SourceBufferList {\n [Symbol.iterator](): IterableIterator<SourceBuffer>;\n}\n\ninterface SpeechRecognitionResult {\n [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;\n}\n\ninterface SpeechRecognitionResultList {\n [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;\n}\n\ninterface StyleSheetList {\n [Symbol.iterator](): IterableIterator<CSSStyleSheet>;\n}\n\ninterface SubtleCrypto {\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n 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>;\n}\n\ninterface TextTrackCueList {\n [Symbol.iterator](): IterableIterator<TextTrackCue>;\n}\n\ninterface TextTrackList {\n [Symbol.iterator](): IterableIterator<TextTrack>;\n}\n\ninterface TouchList {\n [Symbol.iterator](): IterableIterator<Touch>;\n}\n\ninterface URLSearchParams {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /**\n * Returns an array of key, value pairs for every entry in the search params.\n */\n entries(): IterableIterator<[string, string]>;\n /**\n * Returns a list of keys in the search params.\n */\n keys(): IterableIterator<string>;\n /**\n * Returns a list of values in the search params.\n */\n values(): IterableIterator<string>;\n}\n\ninterface WEBGL_draw_buffers {\n drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\n}\n\ninterface WebGL2RenderingContextBase {\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;\n drawBuffers(buffers: Iterable<GLenum>): void;\n getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;\n getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;\n invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;\n invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;\n uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;\n vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;\n}\n\ninterface WebGL2RenderingContextOverloads {\n uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\ninterface WebGLRenderingContextBase {\n vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;\n}\n\ninterface WebGLRenderingContextOverloads {\n uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n}\n',"lib.es2015.collection.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Map<K, V> {\n clear(): void;\n delete(key: K): boolean;\n forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;\n get(key: K): V | undefined;\n has(key: K): boolean;\n set(key: K, value: V): this;\n readonly size: number;\n}\n\ninterface MapConstructor {\n new(): Map<any, any>;\n new<K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;\n readonly prototype: Map<any, any>;\n}\ndeclare var Map: MapConstructor;\n\ninterface ReadonlyMap<K, V> {\n forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;\n get(key: K): V | undefined;\n has(key: K): boolean;\n readonly size: number;\n}\n\ninterface WeakMap<K extends object, V> {\n delete(key: K): boolean;\n get(key: K): V | undefined;\n has(key: K): boolean;\n set(key: K, value: V): this;\n}\n\ninterface WeakMapConstructor {\n new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;\n readonly prototype: WeakMap<object, any>;\n}\ndeclare var WeakMap: WeakMapConstructor;\n\ninterface Set<T> {\n add(value: T): this;\n clear(): void;\n delete(value: T): boolean;\n forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;\n has(value: T): boolean;\n readonly size: number;\n}\n\ninterface SetConstructor {\n new <T = any>(values?: readonly T[] | null): Set<T>;\n readonly prototype: Set<any>;\n}\ndeclare var Set: SetConstructor;\n\ninterface ReadonlySet<T> {\n forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;\n has(value: T): boolean;\n readonly size: number;\n}\n\ninterface WeakSet<T extends object> {\n add(value: T): this;\n delete(value: T): boolean;\n has(value: T): boolean;\n}\n\ninterface WeakSetConstructor {\n new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;\n readonly prototype: WeakSet<object>;\n}\ndeclare var WeakSet: WeakSetConstructor;\n',"lib.es2015.core.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Array<T> {\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find<S extends T>(predicate: (this: void, value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;\n find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: T, start?: number, end?: number): this;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n}\n\ninterface ArrayConstructor {\n /**\n * Creates an array from an array-like object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from<T>(arrayLike: ArrayLike<T>): T[];\n\n /**\n * Creates an array from an iterable object.\n * @param arrayLike An array-like object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of<T>(...items: T[]): T[];\n}\n\ninterface DateConstructor {\n new (value: number | string | Date): Date;\n}\n\ninterface Function {\n /**\n * Returns the name of the function. Function names are read-only and can not be changed.\n */\n readonly name: string;\n}\n\ninterface Math {\n /**\n * Returns the number of leading zero bits in the 32-bit binary representation of a number.\n * @param x A numeric expression.\n */\n clz32(x: number): number;\n\n /**\n * Returns the result of 32-bit multiplication of two numbers.\n * @param x First number\n * @param y Second number\n */\n imul(x: number, y: number): number;\n\n /**\n * Returns the sign of the x, indicating whether x is positive, negative or zero.\n * @param x The numeric expression to test\n */\n sign(x: number): number;\n\n /**\n * Returns the base 10 logarithm of a number.\n * @param x A numeric expression.\n */\n log10(x: number): number;\n\n /**\n * Returns the base 2 logarithm of a number.\n * @param x A numeric expression.\n */\n log2(x: number): number;\n\n /**\n * Returns the natural logarithm of 1 + x.\n * @param x A numeric expression.\n */\n log1p(x: number): number;\n\n /**\n * Returns the result of (e^x - 1), which is an implementation-dependent approximation to\n * subtracting 1 from the exponential function of x (e raised to the power of x, where e\n * is the base of the natural logarithms).\n * @param x A numeric expression.\n */\n expm1(x: number): number;\n\n /**\n * Returns the hyperbolic cosine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n cosh(x: number): number;\n\n /**\n * Returns the hyperbolic sine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n sinh(x: number): number;\n\n /**\n * Returns the hyperbolic tangent of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n tanh(x: number): number;\n\n /**\n * Returns the inverse hyperbolic cosine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n acosh(x: number): number;\n\n /**\n * Returns the inverse hyperbolic sine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n asinh(x: number): number;\n\n /**\n * Returns the inverse hyperbolic tangent of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n atanh(x: number): number;\n\n /**\n * Returns the square root of the sum of squares of its arguments.\n * @param values Values to compute the square root for.\n * If no arguments are passed, the result is +0.\n * If there is only one argument, the result is the absolute value.\n * If any argument is +Infinity or -Infinity, the result is +Infinity.\n * If any argument is NaN, the result is NaN.\n * If all arguments are either +0 or −0, the result is +0.\n */\n hypot(...values: number[]): number;\n\n /**\n * Returns the integral part of the a numeric expression, x, removing any fractional digits.\n * If x is already an integer, the result is x.\n * @param x A numeric expression.\n */\n trunc(x: number): number;\n\n /**\n * Returns the nearest single precision float representation of a number.\n * @param x A numeric expression.\n */\n fround(x: number): number;\n\n /**\n * Returns an implementation-dependent approximation to the cube root of number.\n * @param x A numeric expression.\n */\n cbrt(x: number): number;\n}\n\ninterface NumberConstructor {\n /**\n * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1\n * that is representable as a Number value, which is approximately:\n * 2.2204460492503130808472633361816 x 1016.\n */\n readonly EPSILON: number;\n\n /**\n * Returns true if passed value is finite.\n * Unlike the global isFinite, Number.isFinite doesn\'t forcibly convert the parameter to a\n * number. Only finite values of the type number, result in true.\n * @param number A numeric value.\n */\n isFinite(number: unknown): boolean;\n\n /**\n * Returns true if the value passed is an integer, false otherwise.\n * @param number A numeric value.\n */\n isInteger(number: unknown): boolean;\n\n /**\n * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a\n * number). Unlike the global isNaN(), Number.isNaN() doesn\'t forcefully convert the parameter\n * to a number. Only values of the type number, that are also NaN, result in true.\n * @param number A numeric value.\n */\n isNaN(number: unknown): boolean;\n\n /**\n * Returns true if the value passed is a safe integer.\n * @param number A numeric value.\n */\n isSafeInteger(number: unknown): boolean;\n\n /**\n * The value of the largest integer n such that n and n + 1 are both exactly representable as\n * a Number value.\n * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1.\n */\n readonly MAX_SAFE_INTEGER: number;\n\n /**\n * The value of the smallest integer n such that n and n − 1 are both exactly representable as\n * a Number value.\n * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).\n */\n readonly MIN_SAFE_INTEGER: number;\n\n /**\n * Converts a string to a floating-point number.\n * @param string A string that contains a floating-point number.\n */\n parseFloat(string: string): number;\n\n /**\n * Converts A string to an integer.\n * @param string A string to convert into a number.\n * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\n * If this argument is not supplied, strings with a prefix of \'0x\' are considered hexadecimal.\n * All other strings are considered decimal.\n */\n parseInt(string: string, radix?: number): number;\n}\n\ninterface ObjectConstructor {\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param source The source object from which to copy properties.\n */\n assign<T, U>(target: T, source: U): T & U;\n\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param source1 The first source object from which to copy properties.\n * @param source2 The second source object from which to copy properties.\n */\n assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;\n\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param source1 The first source object from which to copy properties.\n * @param source2 The second source object from which to copy properties.\n * @param source3 The third source object from which to copy properties.\n */\n assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;\n\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param sources One or more source objects from which to copy properties\n */\n assign(target: object, ...sources: any[]): any;\n\n /**\n * Returns an array of all symbol properties found directly on object o.\n * @param o Object to retrieve the symbols from.\n */\n getOwnPropertySymbols(o: any): symbol[];\n\n /**\n * Returns the names of the enumerable string properties and methods of an object.\n * @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.\n */\n keys(o: {}): string[];\n\n /**\n * Returns true if the values are the same value, false otherwise.\n * @param value1 The first value.\n * @param value2 The second value.\n */\n is(value1: any, value2: any): boolean;\n\n /**\n * Sets the prototype of a specified object o to object proto or null. Returns the object o.\n * @param o The object to change its prototype.\n * @param proto The value of the new prototype or null.\n */\n setPrototypeOf(o: any, proto: object | null): any;\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find<S extends T>(predicate: (this: void, value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;\n find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;\n}\n\ninterface RegExp {\n /**\n * Returns a string indicating the flags of the regular expression in question. This field is read-only.\n * The characters in this string are sequenced and concatenated in the following order:\n *\n * - "g" for global\n * - "i" for ignoreCase\n * - "m" for multiline\n * - "u" for unicode\n * - "y" for sticky\n *\n * If no flags are set, the value is the empty string.\n */\n readonly flags: string;\n\n /**\n * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular\n * expression. Default is false. Read-only.\n */\n readonly sticky: boolean;\n\n /**\n * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular\n * expression. Default is false. Read-only.\n */\n readonly unicode: boolean;\n}\n\ninterface RegExpConstructor {\n new (pattern: RegExp | string, flags?: string): RegExp;\n (pattern: RegExp | string, flags?: string): RegExp;\n}\n\ninterface String {\n /**\n * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\n * value of the UTF-16 encoded code point starting at the string element at position pos in\n * the String resulting from converting this object to a String.\n * If there is no element at that position, the result is undefined.\n * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.\n */\n codePointAt(pos: number): number | undefined;\n\n /**\n * Returns true if searchString appears as a substring of the result of converting this\n * object to a String, at one or more positions that are\n * greater than or equal to position; otherwise, returns false.\n * @param searchString search string\n * @param position If position is undefined, 0 is assumed, so as to search all of the String.\n */\n includes(searchString: string, position?: number): boolean;\n\n /**\n * Returns true if the sequence of elements of searchString converted to a String is the\n * same as the corresponding elements of this object (converted to a String) starting at\n * endPosition – length(this). Otherwise returns false.\n */\n endsWith(searchString: string, endPosition?: number): boolean;\n\n /**\n * Returns the String value result of normalizing the string into the normalization form\n * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\n * is "NFC"\n */\n normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;\n\n /**\n * Returns the String value result of normalizing the string into the normalization form\n * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\n * is "NFC"\n */\n normalize(form?: string): string;\n\n /**\n * Returns a String value that is made from count copies appended together. If count is 0,\n * the empty string is returned.\n * @param count number of copies to append\n */\n repeat(count: number): string;\n\n /**\n * Returns true if the sequence of elements of searchString converted to a String is the\n * same as the corresponding elements of this object (converted to a String) starting at\n * position. Otherwise returns false.\n */\n startsWith(searchString: string, position?: number): boolean;\n\n /**\n * Returns an `<a>` HTML anchor element and sets the name attribute to the text value\n * @param name\n */\n anchor(name: string): string;\n\n /** Returns a `<big>` HTML element */\n big(): string;\n\n /** Returns a `<blink>` HTML element */\n blink(): string;\n\n /** Returns a `<b>` HTML element */\n bold(): string;\n\n /** Returns a `<tt>` HTML element */\n fixed(): string;\n\n /** Returns a `<font>` HTML element and sets the color attribute value */\n fontcolor(color: string): string;\n\n /** Returns a `<font>` HTML element and sets the size attribute value */\n fontsize(size: number): string;\n\n /** Returns a `<font>` HTML element and sets the size attribute value */\n fontsize(size: string): string;\n\n /** Returns an `<i>` HTML element */\n italics(): string;\n\n /** Returns an `<a>` HTML element and sets the href attribute value */\n link(url: string): string;\n\n /** Returns a `<small>` HTML element */\n small(): string;\n\n /** Returns a `<strike>` HTML element */\n strike(): string;\n\n /** Returns a `<sub>` HTML element */\n sub(): string;\n\n /** Returns a `<sup>` HTML element */\n sup(): string;\n}\n\ninterface StringConstructor {\n /**\n * Return the String value whose elements are, in order, the elements in the List elements.\n * If length is 0, the empty string is returned.\n */\n fromCodePoint(...codePoints: number[]): string;\n\n /**\n * String.raw is usually used as a tag function of a Tagged Template String. When called as\n * such, the first argument will be a well formed template call site object and the rest\n * parameter will contain the substitution values. It can also be called directly, for example,\n * to interleave strings and values from your own tag function, and in this case the only thing\n * it needs from the first argument is the raw property.\n * @param template A well-formed template string call site representation.\n * @param substitutions A set of substitution values.\n */\n raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;\n}\n',"lib.es2015.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es5" />\n/// <reference lib="es2015.core" />\n/// <reference lib="es2015.collection" />\n/// <reference lib="es2015.iterable" />\n/// <reference lib="es2015.generator" />\n/// <reference lib="es2015.promise" />\n/// <reference lib="es2015.proxy" />\n/// <reference lib="es2015.reflect" />\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.symbol.wellknown" />\n',"lib.es2015.generator.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.iterable" />\n\ninterface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n return(value: TReturn): IteratorResult<T, TReturn>;\n throw(e: any): IteratorResult<T, TReturn>;\n [Symbol.iterator](): Generator<T, TReturn, TNext>;\n}\n\ninterface GeneratorFunction {\n /**\n * Creates a new Generator object.\n * @param args A list of arguments the function accepts.\n */\n new (...args: any[]): Generator;\n /**\n * Creates a new Generator object.\n * @param args A list of arguments the function accepts.\n */\n (...args: any[]): Generator;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: Generator;\n}\n\ninterface GeneratorFunctionConstructor {\n /**\n * Creates a new Generator function.\n * @param args A list of arguments the function accepts.\n */\n new (...args: string[]): GeneratorFunction;\n /**\n * Creates a new Generator function.\n * @param args A list of arguments the function accepts.\n */\n (...args: string[]): GeneratorFunction;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: GeneratorFunction;\n}\n',"lib.es2015.iterable.d.ts":"/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib=\"true\"/>\n\n\n/// <reference lib=\"es2015.symbol\" />\n\ninterface SymbolConstructor {\n /**\n * A method that returns the default iterator for an object. Called by the semantics of the\n * for-of statement.\n */\n readonly iterator: unique symbol;\n}\n\ninterface IteratorYieldResult<TYield> {\n done?: false;\n value: TYield;\n}\n\ninterface IteratorReturnResult<TReturn> {\n done: true;\n value: TReturn;\n}\n\ntype IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;\n\ninterface Iterator<T, TReturn = any, TNext = undefined> {\n // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n return?(value?: TReturn): IteratorResult<T, TReturn>;\n throw?(e?: any): IteratorResult<T, TReturn>;\n}\n\ninterface Iterable<T> {\n [Symbol.iterator](): Iterator<T>;\n}\n\ninterface IterableIterator<T> extends Iterator<T> {\n [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface Array<T> {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, T]>;\n\n /**\n * Returns an iterable of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an iterable of values in the array\n */\n values(): IterableIterator<T>;\n}\n\ninterface ArrayConstructor {\n /**\n * Creates an array from an iterable object.\n * @param iterable An iterable object to convert to an array.\n */\n from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];\n\n /**\n * Creates an array from an iterable object.\n * @param iterable An iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];\n}\n\ninterface ReadonlyArray<T> {\n /** Iterator of values in the array. */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, T]>;\n\n /**\n * Returns an iterable of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an iterable of values in the array\n */\n values(): IterableIterator<T>;\n}\n\ninterface IArguments {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<any>;\n}\n\ninterface Map<K, V> {\n /** Returns an iterable of entries in the map. */\n [Symbol.iterator](): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the map.\n */\n entries(): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of keys in the map\n */\n keys(): IterableIterator<K>;\n\n /**\n * Returns an iterable of values in the map\n */\n values(): IterableIterator<V>;\n}\n\ninterface ReadonlyMap<K, V> {\n /** Returns an iterable of entries in the map. */\n [Symbol.iterator](): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the map.\n */\n entries(): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of keys in the map\n */\n keys(): IterableIterator<K>;\n\n /**\n * Returns an iterable of values in the map\n */\n values(): IterableIterator<V>;\n}\n\ninterface MapConstructor {\n new <K, V>(iterable: Iterable<readonly [K, V]>): Map<K, V>;\n}\n\ninterface WeakMap<K extends object, V> { }\n\ninterface WeakMapConstructor {\n new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;\n}\n\ninterface Set<T> {\n /** Iterates over values in the set. */\n [Symbol.iterator](): IterableIterator<T>;\n /**\n * Returns an iterable of [v,v] pairs for every value `v` in the set.\n */\n entries(): IterableIterator<[T, T]>;\n /**\n * Despite its name, returns an iterable of the values in the set.\n */\n keys(): IterableIterator<T>;\n\n /**\n * Returns an iterable of values in the set.\n */\n values(): IterableIterator<T>;\n}\n\ninterface ReadonlySet<T> {\n /** Iterates over values in the set. */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of [v,v] pairs for every value `v` in the set.\n */\n entries(): IterableIterator<[T, T]>;\n\n /**\n * Despite its name, returns an iterable of the values in the set.\n */\n keys(): IterableIterator<T>;\n\n /**\n * Returns an iterable of values in the set.\n */\n values(): IterableIterator<T>;\n}\n\ninterface SetConstructor {\n new <T>(iterable?: Iterable<T> | null): Set<T>;\n}\n\ninterface WeakSet<T extends object> { }\n\ninterface WeakSetConstructor {\n new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;\n}\n\ninterface Promise<T> { }\n\ninterface PromiseConstructor {\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An iterable of Promises.\n * @returns A new Promise.\n */\n all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;\n\n /**\n * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n * or rejected.\n * @param values An iterable of Promises.\n * @returns A new Promise.\n */\n race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;\n\n /**\n * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n * or rejected.\n * @param values An iterable of Promises.\n * @returns A new Promise.\n */\n race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;\n}\n\ninterface String {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface Int8Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int8ArrayConstructor {\n new (elements: Iterable<number>): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;\n}\n\ninterface Uint8Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint8ArrayConstructor {\n new (elements: Iterable<number>): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;\n}\n\ninterface Uint8ClampedArray {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint8ClampedArrayConstructor {\n new (elements: Iterable<number>): Uint8ClampedArray;\n\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\n\ninterface Int16Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int16ArrayConstructor {\n new (elements: Iterable<number>): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;\n}\n\ninterface Uint16Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint16ArrayConstructor {\n new (elements: Iterable<number>): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;\n}\n\ninterface Int32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int32ArrayConstructor {\n new (elements: Iterable<number>): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;\n}\n\ninterface Uint32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint32ArrayConstructor {\n new (elements: Iterable<number>): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;\n}\n\ninterface Float32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Float32ArrayConstructor {\n new (elements: Iterable<number>): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;\n}\n\ninterface Float64Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Float64ArrayConstructor {\n new (elements: Iterable<number>): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;\n}\n","lib.es2015.promise.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface PromiseConstructor {\n /**\n * A reference to the prototype.\n */\n readonly prototype: Promise<any>;\n\n /**\n * Creates a new Promise.\n * @param executor A callback used to initialize the promise. This callback is passed two arguments:\n * a resolve callback used to resolve the promise with a value or the result of another promise,\n * and a reject callback used to reject the promise with a provided reason or error.\n */\n new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n 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]>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n 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]>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n 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]>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n 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]>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n 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]>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n 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]>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n all<T1, T2, T3, T4>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<[T1, T2, T3, T4]>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n all<T1, T2, T3>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n all<T1, T2>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n all<T>(values: readonly (T | PromiseLike<T>)[]): Promise<T[]>;\n\n // see: lib.es2015.iterable.d.ts\n // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;\n\n /**\n * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n * or rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n race<T>(values: readonly T[]): Promise<T extends PromiseLike<infer U> ? U : T>;\n\n // see: lib.es2015.iterable.d.ts\n // race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;\n\n /**\n * Creates a new rejected promise for the provided reason.\n * @param reason The reason the promise was rejected.\n * @returns A new rejected Promise.\n */\n reject<T = never>(reason?: any): Promise<T>;\n\n /**\n * Creates a new resolved promise.\n * @returns A resolved promise.\n */\n resolve(): Promise<void>;\n\n /**\n * Creates a new resolved promise for the provided value.\n * @param value A promise.\n * @returns A promise whose internal state matches the provided promise.\n */\n resolve<T>(value: T | PromiseLike<T>): Promise<T>;\n}\n\ndeclare var Promise: PromiseConstructor;\n',"lib.es2015.proxy.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface ProxyHandler<T extends object> {\n apply?(target: T, thisArg: any, argArray: any[]): any;\n construct?(target: T, argArray: any[], newTarget: Function): object;\n defineProperty?(target: T, p: string | symbol, attributes: PropertyDescriptor): boolean;\n deleteProperty?(target: T, p: string | symbol): boolean;\n get?(target: T, p: string | symbol, receiver: any): any;\n getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;\n getPrototypeOf?(target: T): object | null;\n has?(target: T, p: string | symbol): boolean;\n isExtensible?(target: T): boolean;\n ownKeys?(target: T): ArrayLike<string | symbol>;\n preventExtensions?(target: T): boolean;\n set?(target: T, p: string | symbol, value: any, receiver: any): boolean;\n setPrototypeOf?(target: T, v: object | null): boolean;\n}\n\ninterface ProxyConstructor {\n revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };\n new <T extends object>(target: T, handler: ProxyHandler<T>): T;\n}\ndeclare var Proxy: ProxyConstructor;\n',"lib.es2015.reflect.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ndeclare namespace Reflect {\n /**\n * Calls the function with the specified object as the this value\n * and the elements of specified array as the arguments.\n * @param target The function to call.\n * @param thisArgument The object to be used as the this object.\n * @param argumentsList An array of argument values to be passed to the function.\n */\n function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;\n\n /**\n * Constructs the target with the elements of specified array as the arguments\n * and the specified constructor as the `new.target` value.\n * @param target The constructor to invoke.\n * @param argumentsList An array of argument values to be passed to the constructor.\n * @param newTarget The constructor to be used as the `new.target` object.\n */\n function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;\n\n /**\n * Adds a property to an object, or modifies attributes of an existing property.\n * @param target Object on which to add or modify the property. This can be a native JavaScript object\n * (that is, a user-defined object or a built in object) or a DOM object.\n * @param propertyKey The property name.\n * @param attributes Descriptor for the property. It can be for a data property or an accessor property.\n */\n function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;\n\n /**\n * Removes a property from an object, equivalent to `delete target[propertyKey]`,\n * except it won\'t throw if `target[propertyKey]` is non-configurable.\n * @param target Object from which to remove the own property.\n * @param propertyKey The property name.\n */\n function deleteProperty(target: object, propertyKey: PropertyKey): boolean;\n\n /**\n * Gets the property of target, equivalent to `target[propertyKey]` when `receiver === target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey The property name.\n * @param receiver The reference to use as the `this` value in the getter function,\n * if `target[propertyKey]` is an accessor property.\n */\n function get(target: object, propertyKey: PropertyKey, receiver?: any): any;\n\n /**\n * Gets the own property descriptor of the specified object.\n * An own property descriptor is one that is defined directly on the object and is not inherited from the object\'s prototype.\n * @param target Object that contains the property.\n * @param propertyKey The property name.\n */\n function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined;\n\n /**\n * Returns the prototype of an object.\n * @param target The object that references the prototype.\n */\n function getPrototypeOf(target: object): object | null;\n\n /**\n * Equivalent to `propertyKey in target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey Name of the property.\n */\n function has(target: object, propertyKey: PropertyKey): boolean;\n\n /**\n * Returns a value that indicates whether new properties can be added to an object.\n * @param target Object to test.\n */\n function isExtensible(target: object): boolean;\n\n /**\n * Returns the string and symbol keys of the own properties of an object. The own properties of an object\n * are those that are defined directly on that object, and are not inherited from the object\'s prototype.\n * @param target Object that contains the own properties.\n */\n function ownKeys(target: object): (string | symbol)[];\n\n /**\n * Prevents the addition of new properties to an object.\n * @param target Object to make non-extensible.\n * @return Whether the object has been made non-extensible.\n */\n function preventExtensions(target: object): boolean;\n\n /**\n * Sets the property of target, equivalent to `target[propertyKey] = value` when `receiver === target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey Name of the property.\n * @param receiver The reference to use as the `this` value in the setter function,\n * if `target[propertyKey]` is an accessor property.\n */\n function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;\n\n /**\n * Sets the prototype of a specified object o to object proto or null.\n * @param target The object to change its prototype.\n * @param proto The value of the new prototype or null.\n * @return Whether setting the prototype was successful.\n */\n function setPrototypeOf(target: object, proto: object | null): boolean;\n}\n',"lib.es2015.symbol.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface SymbolConstructor {\n /**\n * A reference to the prototype.\n */\n readonly prototype: Symbol;\n\n /**\n * Returns a new unique Symbol value.\n * @param description Description of the new Symbol object.\n */\n (description?: string | number): symbol;\n\n /**\n * Returns a Symbol object from the global symbol registry matching the given key if found.\n * Otherwise, returns a new symbol with this key.\n * @param key key to search for.\n */\n for(key: string): symbol;\n\n /**\n * Returns a key from the global symbol registry matching the given Symbol if found.\n * Otherwise, returns a undefined.\n * @param sym Symbol to find the key for.\n */\n keyFor(sym: symbol): string | undefined;\n}\n\ndeclare var Symbol: SymbolConstructor;',"lib.es2015.symbol.wellknown.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.symbol" />\n\ninterface SymbolConstructor {\n /**\n * A method that determines if a constructor object recognizes an object as one of the\n * constructor’s instances. Called by the semantics of the instanceof operator.\n */\n readonly hasInstance: unique symbol;\n\n /**\n * A Boolean value that if true indicates that an object should flatten to its array elements\n * by Array.prototype.concat.\n */\n readonly isConcatSpreadable: unique symbol;\n\n /**\n * A regular expression method that matches the regular expression against a string. Called\n * by the String.prototype.match method.\n */\n readonly match: unique symbol;\n\n /**\n * A regular expression method that replaces matched substrings of a string. Called by the\n * String.prototype.replace method.\n */\n readonly replace: unique symbol;\n\n /**\n * A regular expression method that returns the index within a string that matches the\n * regular expression. Called by the String.prototype.search method.\n */\n readonly search: unique symbol;\n\n /**\n * A function valued property that is the constructor function that is used to create\n * derived objects.\n */\n readonly species: unique symbol;\n\n /**\n * A regular expression method that splits a string at the indices that match the regular\n * expression. Called by the String.prototype.split method.\n */\n readonly split: unique symbol;\n\n /**\n * A method that converts an object to a corresponding primitive value.\n * Called by the ToPrimitive abstract operation.\n */\n readonly toPrimitive: unique symbol;\n\n /**\n * A String value that is used in the creation of the default string description of an object.\n * Called by the built-in method Object.prototype.toString.\n */\n readonly toStringTag: unique symbol;\n\n /**\n * An Object whose own property names are property names that are excluded from the \'with\'\n * environment bindings of the associated objects.\n */\n readonly unscopables: unique symbol;\n}\n\ninterface Symbol {\n /**\n * Converts a Symbol object to a symbol.\n */\n [Symbol.toPrimitive](hint: string): symbol;\n\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Array<T> {\n /**\n * Returns an object whose properties have the value \'true\'\n * when they will be absent when used in a \'with\' statement.\n */\n [Symbol.unscopables](): {\n copyWithin: boolean;\n entries: boolean;\n fill: boolean;\n find: boolean;\n findIndex: boolean;\n keys: boolean;\n values: boolean;\n };\n}\n\ninterface Date {\n /**\n * Converts a Date object to a string.\n */\n [Symbol.toPrimitive](hint: "default"): string;\n /**\n * Converts a Date object to a string.\n */\n [Symbol.toPrimitive](hint: "string"): string;\n /**\n * Converts a Date object to a number.\n */\n [Symbol.toPrimitive](hint: "number"): number;\n /**\n * Converts a Date object to a string or number.\n *\n * @param hint The strings "number", "string", or "default" to specify what primitive to return.\n *\n * @throws {TypeError} If \'hint\' was given something other than "number", "string", or "default".\n * @returns A number if \'hint\' was "number", a string if \'hint\' was "string" or "default".\n */\n [Symbol.toPrimitive](hint: string): string | number;\n}\n\ninterface Map<K, V> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface WeakMap<K extends object, V> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Set<T> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface WeakSet<T extends object> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface JSON {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Function {\n /**\n * Determines whether the given value inherits from this function if this function was used\n * as a constructor function.\n *\n * A constructor function can control which objects are recognized as its instances by\n * \'instanceof\' by overriding this method.\n */\n [Symbol.hasInstance](value: any): boolean;\n}\n\ninterface GeneratorFunction {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Math {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Promise<T> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface PromiseConstructor {\n readonly [Symbol.species]: PromiseConstructor;\n}\n\ninterface RegExp {\n /**\n * Matches a string with this regular expression, and returns an array containing the results of\n * that search.\n * @param string A string to search within.\n */\n [Symbol.match](string: string): RegExpMatchArray | null;\n\n /**\n * Replaces text in a string, using this regular expression.\n * @param string A String object or string literal whose contents matching against\n * this regular expression will be replaced\n * @param replaceValue A String object or string literal containing the text to replace for every\n * successful match of this regular expression.\n */\n [Symbol.replace](string: string, replaceValue: string): string;\n\n /**\n * Replaces text in a string, using this regular expression.\n * @param string A String object or string literal whose contents matching against\n * this regular expression will be replaced\n * @param replacer A function that returns the replacement text.\n */\n [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;\n\n /**\n * Finds the position beginning first substring match in a regular expression search\n * using this regular expression.\n *\n * @param string The string to search within.\n */\n [Symbol.search](string: string): number;\n\n /**\n * Returns an array of substrings that were delimited by strings in the original input that\n * match against this regular expression.\n *\n * If the regular expression contains capturing parentheses, then each time this\n * regular expression matches, the results (including any undefined results) of the\n * capturing parentheses are spliced.\n *\n * @param string string value to split\n * @param limit if not undefined, the output array is truncated so that it contains no more\n * than \'limit\' elements.\n */\n [Symbol.split](string: string, limit?: number): string[];\n}\n\ninterface RegExpConstructor {\n readonly [Symbol.species]: RegExpConstructor;\n}\n\ninterface String {\n /**\n * Matches a string or an object that supports being matched against, and returns an array\n * containing the results of that search, or null if no matches are found.\n * @param matcher An object that supports being matched against.\n */\n match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;\n\n /**\n * Replaces first match with string or all matches with RegExp.\n * @param searchValue A string or RegExp search value.\n * @param replaceValue A string containing the text to replace for match.\n */\n replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;\n\n /**\n * Replaces text in a string, using an object that supports replacement within a string.\n * @param searchValue A object can search for and replace matches within a string.\n * @param replacer A function that returns the replacement text.\n */\n replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;\n\n /**\n * Finds the first substring match in a regular expression search.\n * @param searcher An object which supports searching within a string.\n */\n search(searcher: { [Symbol.search](string: string): number; }): number;\n\n /**\n * Split a string into substrings using the specified separator and return them as an array.\n * @param splitter An object that can split a string.\n * @param limit A value used to limit the number of elements returned in the array.\n */\n split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];\n}\n\ninterface ArrayBuffer {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface DataView {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Int8Array {\n readonly [Symbol.toStringTag]: "Int8Array";\n}\n\ninterface Uint8Array {\n readonly [Symbol.toStringTag]: "Uint8Array";\n}\n\ninterface Uint8ClampedArray {\n readonly [Symbol.toStringTag]: "Uint8ClampedArray";\n}\n\ninterface Int16Array {\n readonly [Symbol.toStringTag]: "Int16Array";\n}\n\ninterface Uint16Array {\n readonly [Symbol.toStringTag]: "Uint16Array";\n}\n\ninterface Int32Array {\n readonly [Symbol.toStringTag]: "Int32Array";\n}\n\ninterface Uint32Array {\n readonly [Symbol.toStringTag]: "Uint32Array";\n}\n\ninterface Float32Array {\n readonly [Symbol.toStringTag]: "Float32Array";\n}\n\ninterface Float64Array {\n readonly [Symbol.toStringTag]: "Float64Array";\n}\n\ninterface ArrayConstructor {\n readonly [Symbol.species]: ArrayConstructor;\n}\ninterface MapConstructor {\n readonly [Symbol.species]: MapConstructor;\n}\ninterface SetConstructor {\n readonly [Symbol.species]: SetConstructor;\n}\ninterface ArrayBufferConstructor {\n readonly [Symbol.species]: ArrayBufferConstructor;\n}\n',"lib.es2016.array.include.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Array<T> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: T, fromIndex?: number): boolean;\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: T, fromIndex?: number): boolean;\n}\n\ninterface Int8Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint8Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint8ClampedArray {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Int16Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint16Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Int32Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint32Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Float32Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Float64Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}',"lib.es2016.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015" />\n/// <reference lib="es2016.array.include" />',"lib.es2016.full.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2016" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />',"lib.es2017.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2016" />\n/// <reference lib="es2017.object" />\n/// <reference lib="es2017.sharedmemory" />\n/// <reference lib="es2017.string" />\n/// <reference lib="es2017.intl" />\n/// <reference lib="es2017.typedarrays" />\n',"lib.es2017.full.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2017" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />',"lib.es2017.intl.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ndeclare namespace Intl {\n type DateTimeFormatPartTypes = "day" | "dayPeriod" | "era" | "hour" | "literal" | "minute" | "month" | "second" | "timeZoneName" | "weekday" | "year";\n\n interface DateTimeFormatPart {\n type: DateTimeFormatPartTypes;\n value: string;\n }\n\n interface DateTimeFormat {\n formatToParts(date?: Date | number): DateTimeFormatPart[];\n }\n}\n',"lib.es2017.object.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface ObjectConstructor {\n /**\n * Returns an array of values of the enumerable properties of an object\n * @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.\n */\n values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];\n\n /**\n * Returns an array of values of the enumerable properties of an object\n * @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.\n */\n values(o: {}): any[];\n\n /**\n * Returns an array of key/values of the enumerable properties of an object\n * @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.\n */\n entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];\n\n /**\n * Returns an array of key/values of the enumerable properties of an object\n * @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.\n */\n entries(o: {}): [string, any][];\n\n /**\n * Returns an object containing all own property descriptors of an object\n * @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.\n */\n getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };\n}\n',"lib.es2017.sharedmemory.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.symbol.wellknown" />\n\ninterface SharedArrayBuffer {\n /**\n * Read-only. The length of the ArrayBuffer (in bytes).\n */\n readonly byteLength: number;\n\n /**\n * Returns a section of an SharedArrayBuffer.\n */\n slice(begin: number, end?: number): SharedArrayBuffer;\n readonly [Symbol.species]: SharedArrayBuffer;\n readonly [Symbol.toStringTag]: "SharedArrayBuffer";\n}\n\ninterface SharedArrayBufferConstructor {\n readonly prototype: SharedArrayBuffer;\n new (byteLength: number): SharedArrayBuffer;\n}\ndeclare var SharedArrayBuffer: SharedArrayBufferConstructor;\n\ninterface ArrayBufferTypes {\n SharedArrayBuffer: SharedArrayBuffer;\n}\n\ninterface Atomics {\n /**\n * Adds a value to the value at the given position in the array, returning the original value.\n * Until this atomic operation completes, any other read or write operation against the array\n * will block.\n */\n add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Stores the bitwise AND of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or\n * write operation against the array will block.\n */\n and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Replaces the value at the given position in the array if the original value equals the given\n * expected value, returning the original value. Until this atomic operation completes, any\n * other read or write operation against the array will block.\n */\n compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;\n\n /**\n * Replaces the value at the given position in the array, returning the original value. Until\n * this atomic operation completes, any other read or write operation against the array will\n * block.\n */\n exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Returns a value indicating whether high-performance algorithms can use atomic operations\n * (`true`) or must use locks (`false`) for the given number of bytes-per-element of a typed\n * array.\n */\n isLockFree(size: number): boolean;\n\n /**\n * Returns the value at the given position in the array. Until this atomic operation completes,\n * any other read or write operation against the array will block.\n */\n load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;\n\n /**\n * Stores the bitwise OR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Stores a value at the given position in the array, returning the new value. Until this\n * atomic operation completes, any other read or write operation against the array will block.\n */\n store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Subtracts a value from the value at the given position in the array, returning the original\n * value. Until this atomic operation completes, any other read or write operation against the\n * array will block.\n */\n sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * If the value at the given position in the array is equal to the provided value, the current\n * agent is put to sleep causing execution to suspend until the timeout expires (returning\n * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns\n * `"not-equal"`.\n */\n wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";\n\n /**\n * Wakes up sleeping agents that are waiting on the given index of the array, returning the\n * number of agents that were awoken.\n * @param typedArray A shared Int32Array.\n * @param index The position in the typedArray to wake up on.\n * @param count The number of sleeping agents to notify. Defaults to +Infinity.\n */\n notify(typedArray: Int32Array, index: number, count?: number): number;\n\n /**\n * Stores the bitwise XOR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n readonly [Symbol.toStringTag]: "Atomics";\n}\n\ndeclare var Atomics: Atomics;\n',"lib.es2017.string.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface String {\n /**\n * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\n * The padding is applied from the start (left) of the current string.\n *\n * @param maxLength The length of the resulting string once the current string has been padded.\n * If this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n *\n * @param fillString The string to pad the current string with.\n * If this string is too long, it will be truncated and the left-most part will be applied.\n * The default value for this parameter is " " (U+0020).\n */\n padStart(maxLength: number, fillString?: string): string;\n\n /**\n * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\n * The padding is applied from the end (right) of the current string.\n *\n * @param maxLength The length of the resulting string once the current string has been padded.\n * If this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n *\n * @param fillString The string to pad the current string with.\n * If this string is too long, it will be truncated and the left-most part will be applied.\n * The default value for this parameter is " " (U+0020).\n */\n padEnd(maxLength: number, fillString?: string): string;\n}\n',"lib.es2017.typedarrays.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Int8ArrayConstructor {\n new (): Int8Array;\n}\n\ninterface Uint8ArrayConstructor {\n new (): Uint8Array;\n}\n\ninterface Uint8ClampedArrayConstructor {\n new (): Uint8ClampedArray;\n}\n\ninterface Int16ArrayConstructor {\n new (): Int16Array;\n}\n\ninterface Uint16ArrayConstructor {\n new (): Uint16Array;\n}\n\ninterface Int32ArrayConstructor {\n new (): Int32Array;\n}\n\ninterface Uint32ArrayConstructor {\n new (): Uint32Array;\n}\n\ninterface Float32ArrayConstructor {\n new (): Float32Array;\n}\n\ninterface Float64ArrayConstructor {\n new (): Float64Array;\n}\n',"lib.es2018.asyncgenerator.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2018.asynciterable" />\n\ninterface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;\n return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;\n throw(e: any): Promise<IteratorResult<T, TReturn>>;\n [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;\n}\n\ninterface AsyncGeneratorFunction {\n /**\n * Creates a new AsyncGenerator object.\n * @param args A list of arguments the function accepts.\n */\n new (...args: any[]): AsyncGenerator;\n /**\n * Creates a new AsyncGenerator object.\n * @param args A list of arguments the function accepts.\n */\n (...args: any[]): AsyncGenerator;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: AsyncGenerator;\n}\n\ninterface AsyncGeneratorFunctionConstructor {\n /**\n * Creates a new AsyncGenerator function.\n * @param args A list of arguments the function accepts.\n */\n new (...args: string[]): AsyncGeneratorFunction;\n /**\n * Creates a new AsyncGenerator function.\n * @param args A list of arguments the function accepts.\n */\n (...args: string[]): AsyncGeneratorFunction;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: AsyncGeneratorFunction;\n}\n',"lib.es2018.asynciterable.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.iterable" />\n\ninterface SymbolConstructor {\n /**\n * A method that returns the default async iterator for an object. Called by the semantics of\n * the for-await-of statement.\n */\n readonly asyncIterator: unique symbol;\n}\n\ninterface AsyncIterator<T, TReturn = any, TNext = undefined> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;\n return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;\n throw?(e?: any): Promise<IteratorResult<T, TReturn>>;\n}\n\ninterface AsyncIterable<T> {\n [Symbol.asyncIterator](): AsyncIterator<T>;\n}\n\ninterface AsyncIterableIterator<T> extends AsyncIterator<T> {\n [Symbol.asyncIterator](): AsyncIterableIterator<T>;\n}',"lib.es2018.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2017" />\n/// <reference lib="es2018.asynciterable" />\n/// <reference lib="es2018.asyncgenerator" />\n/// <reference lib="es2018.promise" />\n/// <reference lib="es2018.regexp" />\n/// <reference lib="es2018.intl" />\n',"lib.es2018.full.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2018" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />',"lib.es2018.intl.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ndeclare namespace Intl {\n\n // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories\n type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";\n type PluralRuleType = "cardinal" | "ordinal";\n\n interface PluralRulesOptions {\n localeMatcher?: "lookup" | "best fit";\n type?: PluralRuleType;\n minimumIntegerDigits?: number;\n minimumFractionDigits?: number;\n maximumFractionDigits?: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n }\n\n interface ResolvedPluralRulesOptions {\n locale: string;\n pluralCategories: LDMLPluralRule[];\n type: PluralRuleType;\n minimumIntegerDigits: number;\n minimumFractionDigits: number;\n maximumFractionDigits: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n }\n\n interface PluralRules {\n resolvedOptions(): ResolvedPluralRulesOptions;\n select(n: number): LDMLPluralRule;\n }\n\n const PluralRules: {\n new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;\n (locales?: string | string[], options?: PluralRulesOptions): PluralRules;\n supportedLocalesOf(\n locales: string | string[],\n options?: PluralRulesOptions,\n ): string[];\n };\n}\n',"lib.es2018.promise.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\n * resolved value cannot be modified from the callback.\n * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).\n * @returns A Promise for the completion of the callback.\n */\n finally(onfinally?: (() => void) | undefined | null): Promise<T>\n}\n',"lib.es2018.regexp.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface RegExpMatchArray {\n groups?: {\n [key: string]: string\n }\n}\n\ninterface RegExpExecArray {\n groups?: {\n [key: string]: string\n }\n}\n\ninterface RegExp {\n /**\n * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.\n * Default is false. Read-only.\n */\n readonly dotAll: boolean;\n}',"lib.es2019.array.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ntype FlatArray<Arr, Depth extends number> = {\n "done": Arr,\n "recur": Arr extends ReadonlyArray<infer InnerArr>\n ? 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]>\n : Arr\n}[Depth extends -1 ? "done" : "recur"];\n\ninterface ReadonlyArray<T> {\n\n /**\n * Calls a defined callback function on each element of an array. Then, flattens the result into\n * a new array.\n * This is identical to a map followed by flat with depth 1.\n *\n * @param callback A function that accepts up to three arguments. The flatMap method calls the\n * callback function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callback function. If\n * thisArg is omitted, undefined is used as the this value.\n */\n flatMap<U, This = undefined> (\n callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,\n thisArg?: This\n ): U[]\n\n\n /**\n * Returns a new array with all sub-array elements concatenated into it recursively up to the\n * specified depth.\n *\n * @param depth The maximum recursion depth\n */\n flat<A, D extends number = 1>(\n this: A,\n depth?: D\n ): FlatArray<A, D>[]\n }\n\ninterface Array<T> {\n\n /**\n * Calls a defined callback function on each element of an array. Then, flattens the result into\n * a new array.\n * This is identical to a map followed by flat with depth 1.\n *\n * @param callback A function that accepts up to three arguments. The flatMap method calls the\n * callback function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callback function. If\n * thisArg is omitted, undefined is used as the this value.\n */\n flatMap<U, This = undefined> (\n callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,\n thisArg?: This\n ): U[]\n\n /**\n * Returns a new array with all sub-array elements concatenated into it recursively up to the\n * specified depth.\n *\n * @param depth The maximum recursion depth\n */\n flat<A, D extends number = 1>(\n this: A,\n depth?: D\n ): FlatArray<A, D>[]\n}\n',"lib.es2019.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2018" />\n/// <reference lib="es2019.array" />\n/// <reference lib="es2019.object" />\n/// <reference lib="es2019.string" />\n/// <reference lib="es2019.symbol" />\n',"lib.es2019.full.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2019" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',"lib.es2019.object.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.iterable" />\n\ninterface ObjectConstructor {\n /**\n * Returns an object created by key-value entries for properties and methods\n * @param entries An iterable object that contains key-value entries for properties and methods.\n */\n fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T };\n\n /**\n * Returns an object created by key-value entries for properties and methods\n * @param entries An iterable object that contains key-value entries for properties and methods.\n */\n fromEntries(entries: Iterable<readonly any[]>): any;\n}\n',"lib.es2019.string.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface String {\n /** Removes the trailing white space and line terminator characters from a string. */\n trimEnd(): string;\n\n /** Removes the leading white space and line terminator characters from a string. */\n trimStart(): string;\n\n /** Removes the leading white space and line terminator characters from a string. */\n trimLeft(): string;\n\n /** Removes the trailing white space and line terminator characters from a string. */\n trimRight(): string;\n}\n',"lib.es2019.symbol.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Symbol {\n /**\n * Expose the [[Description]] internal slot of a symbol directly.\n */\n readonly description: string | undefined;\n}\n',"lib.es2020.bigint.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface BigIntToLocaleStringOptions {\n /**\n * 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}.\n */\n localeMatcher?: string;\n /**\n * The formatting style to use , the default is "decimal".\n */\n style?: string;\n\n numberingSystem?: string;\n /**\n * 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.\n */\n unit?: string;\n\n /**\n * The unit formatting style to use in unit formatting, the defaults is "short".\n */\n unitDisplay?: string;\n\n /**\n * 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 — 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".\n */\n currency?: string;\n\n /**\n * How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".\n *\n * "symbol" to use a localized currency symbol such as €,\n *\n * "code" to use the ISO currency code,\n *\n * "name" to use a localized currency name such as "dollar"\n */\n currencyDisplay?: string;\n\n /**\n * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.\n */\n useGrouping?: boolean;\n\n /**\n * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.\n */\n minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * 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).\n */\n minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\n\n /**\n * 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.\n */\n maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\n\n /**\n * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.\n */\n minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.\n */\n maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * The formatting that should be displayed for the number, the defaults is "standard"\n *\n * "standard" plain number formatting\n *\n * "scientific" return the order-of-magnitude for formatted number.\n *\n * "engineering" return the exponent of ten when divisible by three\n *\n * "compact" string representing exponent, defaults is using the "short" form\n */\n notation?: string;\n\n /**\n * used only when notation is "compact"\n */\n compactDisplay?: string;\n}\n\ninterface BigInt {\n /**\n * Returns a string representation of an object.\n * @param radix Specifies a radix for converting numeric values to strings.\n */\n toString(radix?: number): string;\n\n /** Returns a string representation appropriate to the host environment\'s current locale. */\n toLocaleString(locales?: string, options?: BigIntToLocaleStringOptions): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): bigint;\n\n readonly [Symbol.toStringTag]: "BigInt";\n}\n\ninterface BigIntConstructor {\n (value: bigint | boolean | number | string): bigint;\n readonly prototype: BigInt;\n\n /**\n * Interprets the low bits of a BigInt as a 2\'s-complement signed integer.\n * All higher bits are discarded.\n * @param bits The number of low bits to use\n * @param int The BigInt whose bits to extract\n */\n asIntN(bits: number, int: bigint): bigint;\n /**\n * Interprets the low bits of a BigInt as an unsigned integer.\n * All higher bits are discarded.\n * @param bits The number of low bits to use\n * @param int The BigInt whose bits to extract\n */\n asUintN(bits: number, int: bigint): bigint;\n}\n\ndeclare var BigInt: BigIntConstructor;\n\n/**\n * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated, an exception is raised.\n */\ninterface BigInt64Array {\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /** The ArrayBuffer instance referenced by the array. */\n readonly buffer: ArrayBufferLike;\n\n /** The length in bytes of the array. */\n readonly byteLength: number;\n\n /** The offset in bytes of the array. */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /** Yields index, value pairs for every entry in the array. */\n entries(): IterableIterator<[number, bigint]>;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns false,\n * or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: bigint, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;\n\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: bigint, fromIndex?: number): boolean;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: bigint, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /** Yields each index in the array. */\n keys(): IterableIterator<number>;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: bigint, fromIndex?: number): number;\n\n /** The length of the array. */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;\n\n /** Reverses the elements in the array. */\n reverse(): this;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<bigint>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array.\n */\n slice(start?: number, end?: number): BigInt64Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls the\n * predicate function for each element in the array until the predicate returns true, or until\n * the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts the array.\n * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.\n */\n sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;\n\n /**\n * Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): BigInt64Array;\n\n /** Converts the array to a string by using the current locale. */\n toLocaleString(): string;\n\n /** Returns a string representation of the array. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): BigInt64Array;\n\n /** Yields each value in the array. */\n values(): IterableIterator<bigint>;\n\n [Symbol.iterator](): IterableIterator<bigint>;\n\n readonly [Symbol.toStringTag]: "BigInt64Array";\n\n [index: number]: bigint;\n}\n\ninterface BigInt64ArrayConstructor {\n readonly prototype: BigInt64Array;\n new(length?: number): BigInt64Array;\n new(array: Iterable<bigint>): BigInt64Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;\n\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: bigint[]): BigInt64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from(arrayLike: ArrayLike<bigint>): BigInt64Array;\n from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;\n}\n\ndeclare var BigInt64Array: BigInt64ArrayConstructor;\n\n/**\n * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated, an exception is raised.\n */\ninterface BigUint64Array {\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /** The ArrayBuffer instance referenced by the array. */\n readonly buffer: ArrayBufferLike;\n\n /** The length in bytes of the array. */\n readonly byteLength: number;\n\n /** The offset in bytes of the array. */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /** Yields index, value pairs for every entry in the array. */\n entries(): IterableIterator<[number, bigint]>;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns false,\n * or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: bigint, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;\n\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: bigint, fromIndex?: number): boolean;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: bigint, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /** Yields each index in the array. */\n keys(): IterableIterator<number>;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: bigint, fromIndex?: number): number;\n\n /** The length of the array. */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;\n\n /** Reverses the elements in the array. */\n reverse(): this;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<bigint>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array.\n */\n slice(start?: number, end?: number): BigUint64Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls the\n * predicate function for each element in the array until the predicate returns true, or until\n * the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts the array.\n * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.\n */\n sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;\n\n /**\n * Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): BigUint64Array;\n\n /** Converts the array to a string by using the current locale. */\n toLocaleString(): string;\n\n /** Returns a string representation of the array. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): BigUint64Array;\n\n /** Yields each value in the array. */\n values(): IterableIterator<bigint>;\n\n [Symbol.iterator](): IterableIterator<bigint>;\n\n readonly [Symbol.toStringTag]: "BigUint64Array";\n\n [index: number]: bigint;\n}\n\ninterface BigUint64ArrayConstructor {\n readonly prototype: BigUint64Array;\n new(length?: number): BigUint64Array;\n new(array: Iterable<bigint>): BigUint64Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;\n\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: bigint[]): BigUint64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from(arrayLike: ArrayLike<bigint>): BigUint64Array;\n from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;\n}\n\ndeclare var BigUint64Array: BigUint64ArrayConstructor;\n\ninterface DataView {\n /**\n * Gets the BigInt64 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;\n\n /**\n * Gets the BigUint64 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;\n\n /**\n * Stores a BigInt64 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;\n\n /**\n * Stores a BigUint64 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;\n}\n\ndeclare namespace Intl{\n interface NumberFormat {\n format(value: number | bigint): string;\n resolvedOptions(): ResolvedNumberFormatOptions;\n }\n}\n',"lib.es2020.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2019" />\n/// <reference lib="es2020.bigint" />\n/// <reference lib="es2020.promise" />\n/// <reference lib="es2020.sharedmemory" />\n/// <reference lib="es2020.string" />\n/// <reference lib="es2020.symbol.wellknown" />\n/// <reference lib="es2020.intl" />\n',"lib.es2020.full.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2020" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',"lib.es2020.intl.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ndeclare namespace Intl {\n\n /**\n * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).\n *\n */\n type UnicodeBCP47LocaleIdentifier = string;\n\n /**\n * Unit to use in the relative time internationalized message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).\n *\n * [Specification](https://tc39.es/ecma402/#sec-singularrelativetimeunit).\n */\n type RelativeTimeFormatUnit =\n | "year" | "years"\n | "quarter" | "quarters"\n | "month" | "months"\n | "week" | "weeks"\n | "day" | "days"\n | "hour" | "hours"\n | "minute" | "minutes"\n | "second" | "seconds"\n ;\n\n /**\n * The locale matching algorithm to use.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).\n *\n * [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).\n */\n type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";\n\n /**\n * The format of output message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n *\n * [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).\n */\n type RelativeTimeFormatNumeric = "always" | "auto";\n\n /**\n * The length of the internationalized message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n *\n * [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).\n */\n type RelativeTimeFormatStyle = "long" | "short" | "narrow";\n\n /**\n * An object with some or all of properties of `options` parameter\n * of `Intl.RelativeTimeFormat` constructor.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n *\n * [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).\n */\n interface RelativeTimeFormatOptions {\n localeMatcher?: RelativeTimeFormatLocaleMatcher;\n numeric?: RelativeTimeFormatNumeric;\n style?: RelativeTimeFormatStyle;\n }\n\n /**\n * An object with properties reflecting the locale\n * and formatting options computed during initialization\n * of the `Intel.RelativeTimeFormat` object\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).\n *\n * [Specification](https://tc39.es/ecma402/#table-relativetimeformat-resolvedoptions-properties)\n */\n interface ResolvedRelativeTimeFormatOptions {\n locale: UnicodeBCP47LocaleIdentifier;\n style: RelativeTimeFormatStyle;\n numeric: RelativeTimeFormatNumeric;\n numberingSystem: string;\n }\n\n /**\n * An object representing the relative time format in parts\n * that can be used for custom locale-aware formatting.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).\n *\n * [Specification](https://tc39.es/ecma402/#sec-FormatRelativeTimeToParts).\n */\n interface RelativeTimeFormatPart {\n type: string;\n value: string;\n unit?: RelativeTimeFormatUnit;\n }\n\n interface RelativeTimeFormat {\n /**\n * Formats a value and a unit according to the locale\n * and formatting options of the given\n * [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)\n * object.\n *\n * While this method automatically provides the correct plural forms,\n * the grammatical form is otherwise as neutral as possible.\n * It is the caller\'s responsibility to handle cut-off logic\n * such as deciding between displaying "in 7 days" or "in 1 week".\n * This API does not support relative dates involving compound units.\n * e.g "in 5 days and 4 hours".\n *\n * @param value - Numeric value to use in the internationalized relative time message\n *\n * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit)\n * to use in the relative time internationalized message.\n * Possible values are: `"year"`, `"quarter"`, `"month"`, `"week"`,\n * `"day"`, `"hour"`, `"minute"`, `"second"`.\n * Plural forms are also permitted.\n *\n * @throws `RangeError` if `unit` was given something other than `unit` possible values\n *\n * @returns Internationalized relative time message as string\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).\n *\n * [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.prototype.format).\n */\n format(\n value: number,\n unit: RelativeTimeFormatUnit,\n ): string;\n\n /**\n * A version of the format method which it returns an array of objects\n * which represent "parts" of the object,\n * separating the formatted number into its constituent parts\n * and separating it from other surrounding text.\n * These objects have two properties:\n * `type` a NumberFormat formatToParts type, and `value`,\n * which is the String which is the component of the output.\n * If a "part" came from NumberFormat,\n * it will have a unit property which indicates the `unit` being formatted;\n * literals which are part of the larger frame will not have this property.\n *\n * @param value - Numeric value to use in the internationalized relative time message\n *\n * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit)\n * to use in the relative time internationalized message.\n * Possible values are: `"year"`, `"quarter"`, `"month"`, `"week"`,\n * `"day"`, `"hour"`, `"minute"`, `"second"`.\n * Plural forms are also permitted.\n *\n * @throws `RangeError` if `unit` was given something other than `unit` possible values\n *\n * @returns Array of [FormatRelativeTimeToParts](https://tc39.es/ecma402/#sec-FormatRelativeTimeToParts)\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).\n *\n * [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.prototype.formatToParts).\n */\n formatToParts(\n value: number,\n unit: RelativeTimeFormatUnit,\n ): RelativeTimeFormatPart[];\n\n /**\n * Provides access to the locale and options computed during initialization of this `Intl.RelativeTimeFormat` object.\n *\n * @returns A new object with properties reflecting the locale\n * and formatting options computed during initialization\n * of the `Intel.RelativeTimeFormat` object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).\n *\n * [Specification](https://tc39.es/ecma402/#sec-intl.relativetimeformat.prototype.resolvedoptions)\n */\n resolvedOptions(): ResolvedRelativeTimeFormatOptions;\n }\n\n /**\n * The [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)\n * object is a constructor for objects that enable language-sensitive relative time formatting.\n *\n * Part of [Intl object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl)\n * namespace and the [ECMAScript Internationalization API](https://www.ecma-international.org/publications/standards/Ecma-402.htm).\n *\n * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).\n *\n * [Polyfills](https://github.com/tc39/proposal-intl-relative-time#polyfills).\n */\n const RelativeTimeFormat: {\n /**\n * Constructor creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)\n * objects\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)\n * with some or all of options of the formatting.\n * An object with some or all of the following properties:\n * - `localeMatcher` - The locale matching algorithm to use.\n * Possible values are `"lookup"` and `"best fit"`; the default is `"best fit"`.\n * For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).\n * - `numeric` - The format of output message.\n * Possible values are: `"always"` (default, e.g., `1 day ago`) or `"auto"` (e.g., `yesterday`).\n * The `"auto"` value allows to not always have to use numeric values in the output.\n * - `style` - The length of the internationalized message. Possible values are:\n * `"long"` (default, e.g., in 1 month),\n * `"short"` (e.g., in 1 mo.)\n * or `"narrow"` (e.g., in 1 mo.). The narrow style could be similar to the short style for some locales.\n *\n * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).\n *\n * [Specification](https://tc39.es/ecma402/#sec-intl-relativetimeformat-constructor).\n */\n new(\n locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],\n options?: RelativeTimeFormatOptions,\n ): RelativeTimeFormat;\n\n /**\n * Returns an array containing those of the provided locales\n * that are supported in date and time formatting\n * without having to fall back to the runtime\'s default locale.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)\n * with some or all of options of the formatting.\n * An object with some or all of the following properties:\n * - `localeMatcher` - The locale matching algorithm to use.\n * Possible values are `"lookup"` and `"best fit"`; the default is `"best fit"`.\n * For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).\n * - `numeric` - The format of output message.\n * Possible values are: `"always"` (default, e.g., `1 day ago`) or `"auto"` (e.g., `yesterday`).\n * The `"auto"` value allows to not always have to use numeric values in the output.\n * - `style` - The length of the internationalized message. Possible values are:\n * `"long"` (default, e.g., in 1 month),\n * `"short"` (e.g., in 1 mo.)\n * or `"narrow"` (e.g., in 1 mo.). The narrow style could be similar to the short style for some locales.\n *\n * @returns An array containing those of the provided locales\n * that are supported in date and time formatting\n * without having to fall back to the runtime\'s default locale.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).\n *\n * [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.supportedLocalesOf).\n */\n supportedLocalesOf(\n locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],\n options?: RelativeTimeFormatOptions,\n ): UnicodeBCP47LocaleIdentifier[];\n };\n\n interface NumberFormatOptions {\n compactDisplay?: string;\n notation?: string;\n signDisplay?: string;\n unit?: string;\n unitDisplay?: string;\n }\n\n interface ResolvedNumberFormatOptions {\n compactDisplay?: string;\n notation?: string;\n signDisplay?: string;\n unit?: string;\n unitDisplay?: string;\n }\n\n interface DateTimeFormatOptions {\n dateStyle?: "full" | "long" | "medium" | "short";\n timeStyle?: "full" | "long" | "medium" | "short";\n calendar?: string;\n dayPeriod?: "narrow" | "short" | "long";\n numberingSystem?: string;\n hourCycle?: "h11" | "h12" | "h23" | "h24";\n fractionalSecondDigits?: 0 | 1 | 2 | 3;\n }\n}\n',"lib.es2020.promise.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface PromiseFulfilledResult<T> {\n status: "fulfilled";\n value: T;\n}\n\ninterface PromiseRejectedResult {\n status: "rejected";\n reason: any;\n}\n\ntype PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;\n\ninterface PromiseConstructor {\n /**\n * Creates a Promise that is resolved with an array of results when all\n * of the provided Promises resolve or reject.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n allSettled<T extends readonly unknown[] | readonly [unknown]>(values: T):\n Promise<{ -readonly [P in keyof T]: PromiseSettledResult<T[P] extends PromiseLike<infer U> ? U : T[P]> }>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all\n * of the provided Promises resolve or reject.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n allSettled<T>(values: Iterable<T>): Promise<PromiseSettledResult<T extends PromiseLike<infer U> ? U : T>[]>;\n}\n',"lib.es2020.sharedmemory.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Atomics {\n /**\n * Adds a value to the value at the given position in the array, returning the original value.\n * Until this atomic operation completes, any other read or write operation against the array\n * will block.\n */\n add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Stores the bitwise AND of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or\n * write operation against the array will block.\n */\n and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Replaces the value at the given position in the array if the original value equals the given\n * expected value, returning the original value. Until this atomic operation completes, any\n * other read or write operation against the array will block.\n */\n compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;\n\n /**\n * Replaces the value at the given position in the array, returning the original value. Until\n * this atomic operation completes, any other read or write operation against the array will\n * block.\n */\n exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Returns the value at the given position in the array. Until this atomic operation completes,\n * any other read or write operation against the array will block.\n */\n load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;\n\n /**\n * Stores the bitwise OR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Stores a value at the given position in the array, returning the new value. Until this\n * atomic operation completes, any other read or write operation against the array will block.\n */\n store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Subtracts a value from the value at the given position in the array, returning the original\n * value. Until this atomic operation completes, any other read or write operation against the\n * array will block.\n */\n sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * If the value at the given position in the array is equal to the provided value, the current\n * agent is put to sleep causing execution to suspend until the timeout expires (returning\n * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns\n * `"not-equal"`.\n */\n wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";\n\n /**\n * Wakes up sleeping agents that are waiting on the given index of the array, returning the\n * number of agents that were awoken.\n * @param typedArray A shared BigInt64Array.\n * @param index The position in the typedArray to wake up on.\n * @param count The number of sleeping agents to notify. Defaults to +Infinity.\n */\n notify(typedArray: BigInt64Array, index: number, count?: number): number;\n\n /**\n * Stores the bitwise XOR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n}\n',"lib.es2020.string.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.iterable" />\n\ninterface String {\n /**\n * Matches a string with a regular expression, and returns an iterable of matches\n * containing the results of that search.\n * @param regexp A variable name or string literal containing the regular expression pattern and flags.\n */\n matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;\n}\n',"lib.es2020.symbol.wellknown.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.iterable" />\n/// <reference lib="es2015.symbol" />\n\ninterface SymbolConstructor {\n /**\n * A regular expression method that matches the regular expression against a string. Called\n * by the String.prototype.matchAll method.\n */\n readonly matchAll: unique symbol;\n}\n\ninterface RegExp {\n /**\n * Matches a string with this regular expression, and returns an iterable of matches\n * containing the results of that search.\n * @param string A string to search within.\n */\n [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;\n}\n',"lib.es2021.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2020" />\n/// <reference lib="es2021.promise" />\n/// <reference lib="es2021.string" />\n/// <reference lib="es2021.weakref" />\n',"lib.es2021.full.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2021" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',"lib.es2021.promise.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface AggregateError extends Error {\n errors: any[]\n}\n\ninterface AggregateErrorConstructor {\n new(errors: Iterable<any>, message?: string): AggregateError;\n (errors: Iterable<any>, message?: string): AggregateError;\n readonly prototype: AggregateError;\n}\n\ndeclare var AggregateError: AggregateErrorConstructor;\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface PromiseConstructor {\n /**\n * 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.\n * @param values An array or iterable of Promises.\n * @returns A new Promise.\n */\n any<T>(values: (T | PromiseLike<T>)[] | Iterable<T | PromiseLike<T>>): Promise<T>\n}\n',"lib.es2021.string.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface String {\n /**\n * Replace all instances of a substring in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.\n */\n replaceAll(searchValue: string | RegExp, replaceValue: string): string;\n\n /**\n * Replace all instances of a substring in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replacer A function that returns the replacement text.\n */\n replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\n}\n',"lib.es2021.weakref.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface WeakRef<T extends object> {\n readonly [Symbol.toStringTag]: "WeakRef";\n\n /**\n * Returns the WeakRef instance\'s target object, or undefined if the target object has been\n * reclaimed.\n */\n deref(): T | undefined;\n}\n\ninterface WeakRefConstructor {\n readonly prototype: WeakRef<any>;\n\n /**\n * Creates a WeakRef instance for the given target object.\n * @param target The target object for the WeakRef instance.\n */\n new<T extends object>(target: T): WeakRef<T>;\n}\n\ndeclare var WeakRef: WeakRefConstructor;\n\ninterface FinalizationRegistry<T> {\n readonly [Symbol.toStringTag]: "FinalizationRegistry";\n\n /**\n * Registers an object with the registry.\n * @param target The target object to register.\n * @param heldValue The value to pass to the finalizer for this object. This cannot be the\n * target object.\n * @param unregisterToken The token to pass to the unregister method to unregister the target\n * object. If provided (and not undefined), this must be an object. If not provided, the target\n * cannot be unregistered.\n */\n register(target: object, heldValue: T, unregisterToken?: object): void;\n\n /**\n * Unregisters an object from the registry.\n * @param unregisterToken The token that was used as the unregisterToken argument when calling\n * register to register the target object.\n */\n unregister(unregisterToken: object): void;\n}\n\ninterface FinalizationRegistryConstructor {\n readonly prototype: FinalizationRegistry<any>;\n\n /**\n * Creates a finalization registry with an associated cleanup callback\n * @param cleanupCallback The callback to call after an object in the registry has been reclaimed.\n */\n new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;\n}\n\ndeclare var FinalizationRegistry: FinalizationRegistryConstructor;\n',"lib.es5.d.ts":"/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib=\"true\"/>\n\n\n/////////////////////////////\n/// ECMAScript APIs\n/////////////////////////////\n\ndeclare var NaN: number;\ndeclare var Infinity: number;\n\n/**\n * Evaluates JavaScript code and executes it.\n * @param x A String value that contains valid JavaScript code.\n */\ndeclare function eval(x: string): any;\n\n/**\n * Converts a string to an integer.\n * @param string A string to convert into a number.\n * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\n * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\n * All other strings are considered decimal.\n */\ndeclare function parseInt(string: string, radix?: number): number;\n\n/**\n * Converts a string to a floating-point number.\n * @param string A string that contains a floating-point number.\n */\ndeclare function parseFloat(string: string): number;\n\n/**\n * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).\n * @param number A numeric value.\n */\ndeclare function isNaN(number: number): boolean;\n\n/**\n * Determines whether a supplied number is finite.\n * @param number Any numeric value.\n */\ndeclare function isFinite(number: number): boolean;\n\n/**\n * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).\n * @param encodedURI A value representing an encoded URI.\n */\ndeclare function decodeURI(encodedURI: string): string;\n\n/**\n * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).\n * @param encodedURIComponent A value representing an encoded URI component.\n */\ndeclare function decodeURIComponent(encodedURIComponent: string): string;\n\n/**\n * Encodes a text string as a valid Uniform Resource Identifier (URI)\n * @param uri A value representing an encoded URI.\n */\ndeclare function encodeURI(uri: string): string;\n\n/**\n * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).\n * @param uriComponent A value representing an encoded URI component.\n */\ndeclare function encodeURIComponent(uriComponent: string | number | boolean): string;\n\n/**\n * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.\n * @param string A string value\n */\ndeclare function escape(string: string): string;\n\n/**\n * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.\n * @param string A string value\n */\ndeclare function unescape(string: string): string;\n\ninterface Symbol {\n /** Returns a string representation of an object. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): symbol;\n}\n\ndeclare type PropertyKey = string | number | symbol;\n\ninterface PropertyDescriptor {\n configurable?: boolean;\n enumerable?: boolean;\n value?: any;\n writable?: boolean;\n get?(): any;\n set?(v: any): void;\n}\n\ninterface PropertyDescriptorMap {\n [s: string]: PropertyDescriptor;\n}\n\ninterface Object {\n /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */\n constructor: Function;\n\n /** Returns a string representation of an object. */\n toString(): string;\n\n /** Returns a date converted to a string using the current locale. */\n toLocaleString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Object;\n\n /**\n * Determines whether an object has a property with the specified name.\n * @param v A property name.\n */\n hasOwnProperty(v: PropertyKey): boolean;\n\n /**\n * Determines whether an object exists in another object's prototype chain.\n * @param v Another object whose prototype chain is to be checked.\n */\n isPrototypeOf(v: Object): boolean;\n\n /**\n * Determines whether a specified property is enumerable.\n * @param v A property name.\n */\n propertyIsEnumerable(v: PropertyKey): boolean;\n}\n\ninterface ObjectConstructor {\n new(value?: any): Object;\n (): any;\n (value: any): any;\n\n /** A reference to the prototype for a class of objects. */\n readonly prototype: Object;\n\n /**\n * Returns the prototype of an object.\n * @param o The object that references the prototype.\n */\n getPrototypeOf(o: any): any;\n\n /**\n * Gets the own property descriptor of the specified object.\n * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.\n * @param o Object that contains the property.\n * @param p Name of the property.\n */\n getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;\n\n /**\n * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly\n * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.\n * @param o Object that contains the own properties.\n */\n getOwnPropertyNames(o: any): string[];\n\n /**\n * Creates an object that has the specified prototype or that has null prototype.\n * @param o Object to use as a prototype. May be null.\n */\n create(o: object | null): any;\n\n /**\n * Creates an object that has the specified prototype, and that optionally contains specified properties.\n * @param o Object to use as a prototype. May be null\n * @param properties JavaScript object that contains one or more property descriptors.\n */\n create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;\n\n /**\n * Adds a property to an object, or modifies attributes of an existing property.\n * @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.\n * @param p The property name.\n * @param attributes Descriptor for the property. It can be for a data property or an accessor property.\n */\n defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;\n\n /**\n * Adds one or more properties to an object, and/or modifies attributes of existing properties.\n * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.\n * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.\n */\n defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;\n\n /**\n * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.\n * @param o Object on which to lock the attributes.\n */\n seal<T>(o: T): T;\n\n /**\n * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n * @param o Object on which to lock the attributes.\n */\n freeze<T>(a: T[]): readonly T[];\n\n /**\n * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n * @param o Object on which to lock the attributes.\n */\n freeze<T extends Function>(f: T): T;\n\n /**\n * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n * @param o Object on which to lock the attributes.\n */\n freeze<T>(o: T): Readonly<T>;\n\n /**\n * Prevents the addition of new properties to an object.\n * @param o Object to make non-extensible.\n */\n preventExtensions<T>(o: T): T;\n\n /**\n * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.\n * @param o Object to test.\n */\n isSealed(o: any): boolean;\n\n /**\n * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.\n * @param o Object to test.\n */\n isFrozen(o: any): boolean;\n\n /**\n * Returns a value that indicates whether new properties can be added to an object.\n * @param o Object to test.\n */\n isExtensible(o: any): boolean;\n\n /**\n * Returns the names of the enumerable string properties and methods of an object.\n * @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.\n */\n keys(o: object): string[];\n}\n\n/**\n * Provides functionality common to all JavaScript objects.\n */\ndeclare var Object: ObjectConstructor;\n\n/**\n * Creates a new function.\n */\ninterface Function {\n /**\n * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.\n * @param thisArg The object to be used as the this object.\n * @param argArray A set of arguments to be passed to the function.\n */\n apply(this: Function, thisArg: any, argArray?: any): any;\n\n /**\n * Calls a method of an object, substituting another object for the current object.\n * @param thisArg The object to be used as the current object.\n * @param argArray A list of arguments to be passed to the method.\n */\n call(this: Function, thisArg: any, ...argArray: any[]): any;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg An object to which the this keyword can refer inside the new function.\n * @param argArray A list of arguments to be passed to the new function.\n */\n bind(this: Function, thisArg: any, ...argArray: any[]): any;\n\n /** Returns a string representation of a function. */\n toString(): string;\n\n prototype: any;\n readonly length: number;\n\n // Non-standard extensions\n arguments: any;\n caller: Function;\n}\n\ninterface FunctionConstructor {\n /**\n * Creates a new function.\n * @param args A list of arguments the function accepts.\n */\n new(...args: string[]): Function;\n (...args: string[]): Function;\n readonly prototype: Function;\n}\n\ndeclare var Function: FunctionConstructor;\n\n/**\n * Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.\n */\ntype ThisParameterType<T> = T extends (this: infer U, ...args: any[]) => any ? U : unknown;\n\n/**\n * Removes the 'this' parameter from a function type.\n */\ntype OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;\n\ninterface CallableFunction extends Function {\n /**\n * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args An array of argument values to be passed to the function.\n */\n apply<T, R>(this: (this: T) => R, thisArg: T): R;\n apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;\n\n /**\n * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args Argument values to be passed to the function.\n */\n call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg The object to be used as the this object.\n * @param args Arguments to bind to the parameters of the function.\n */\n bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;\n bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;\n 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;\n 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;\n 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;\n bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;\n}\n\ninterface NewableFunction extends Function {\n /**\n * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args An array of argument values to be passed to the function.\n */\n apply<T>(this: new () => T, thisArg: T): void;\n apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;\n\n /**\n * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args Argument values to be passed to the function.\n */\n call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg The object to be used as the this object.\n * @param args Arguments to bind to the parameters of the function.\n */\n bind<T>(this: T, thisArg: any): T;\n bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;\n 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;\n 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;\n 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;\n bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;\n}\n\ninterface IArguments {\n [index: number]: any;\n length: number;\n callee: Function;\n}\n\ninterface String {\n /** Returns a string representation of a string. */\n toString(): string;\n\n /**\n * Returns the character at the specified index.\n * @param pos The zero-based index of the desired character.\n */\n charAt(pos: number): string;\n\n /**\n * Returns the Unicode value of the character at the specified location.\n * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.\n */\n charCodeAt(index: number): number;\n\n /**\n * Returns a string that contains the concatenation of two or more strings.\n * @param strings The strings to append to the end of the string.\n */\n concat(...strings: string[]): string;\n\n /**\n * Returns the position of the first occurrence of a substring.\n * @param searchString The substring to search for in the string\n * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.\n */\n indexOf(searchString: string, position?: number): number;\n\n /**\n * Returns the last occurrence of a substring in the string.\n * @param searchString The substring to search for.\n * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.\n */\n lastIndexOf(searchString: string, position?: number): number;\n\n /**\n * Determines whether two strings are equivalent in the current locale.\n * @param that String to compare to target string\n */\n localeCompare(that: string): number;\n\n /**\n * Matches a string with a regular expression, and returns an array containing the results of that search.\n * @param regexp A variable name or string literal containing the regular expression pattern and flags.\n */\n match(regexp: string | RegExp): RegExpMatchArray | null;\n\n /**\n * Replaces text in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.\n */\n replace(searchValue: string | RegExp, replaceValue: string): string;\n\n /**\n * Replaces text in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replacer A function that returns the replacement text.\n */\n replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\n\n /**\n * Finds the first substring match in a regular expression search.\n * @param regexp The regular expression pattern and applicable flags.\n */\n search(regexp: string | RegExp): number;\n\n /**\n * Returns a section of a string.\n * @param start The index to the beginning of the specified portion of stringObj.\n * @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.\n * If this value is not specified, the substring continues to the end of stringObj.\n */\n slice(start?: number, end?: number): string;\n\n /**\n * Split a string into substrings using the specified separator and return them as an array.\n * @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.\n * @param limit A value used to limit the number of elements returned in the array.\n */\n split(separator: string | RegExp, limit?: number): string[];\n\n /**\n * Returns the substring at the specified location within a String object.\n * @param start The zero-based index number indicating the beginning of the substring.\n * @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.\n * If end is omitted, the characters from start through the end of the original string are returned.\n */\n substring(start: number, end?: number): string;\n\n /** Converts all the alphabetic characters in a string to lowercase. */\n toLowerCase(): string;\n\n /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */\n toLocaleLowerCase(locales?: string | string[]): string;\n\n /** Converts all the alphabetic characters in a string to uppercase. */\n toUpperCase(): string;\n\n /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */\n toLocaleUpperCase(locales?: string | string[]): string;\n\n /** Removes the leading and trailing white space and line terminator characters from a string. */\n trim(): string;\n\n /** Returns the length of a String object. */\n readonly length: number;\n\n // IE extensions\n /**\n * Gets a substring beginning at the specified location and having the specified length.\n * @param from The starting position of the desired substring. The index of the first character in the string is zero.\n * @param length The number of characters to include in the returned substring.\n */\n substr(from: number, length?: number): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): string;\n\n readonly [index: number]: string;\n}\n\ninterface StringConstructor {\n new(value?: any): String;\n (value?: any): string;\n readonly prototype: String;\n fromCharCode(...codes: number[]): string;\n}\n\n/**\n * Allows manipulation and formatting of text strings and determination and location of substrings within strings.\n */\ndeclare var String: StringConstructor;\n\ninterface Boolean {\n /** Returns the primitive value of the specified object. */\n valueOf(): boolean;\n}\n\ninterface BooleanConstructor {\n new(value?: any): Boolean;\n <T>(value?: T): boolean;\n readonly prototype: Boolean;\n}\n\ndeclare var Boolean: BooleanConstructor;\n\ninterface Number {\n /**\n * Returns a string representation of an object.\n * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.\n */\n toString(radix?: number): string;\n\n /**\n * Returns a string representing a number in fixed-point notation.\n * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.\n */\n toFixed(fractionDigits?: number): string;\n\n /**\n * Returns a string containing a number represented in exponential notation.\n * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.\n */\n toExponential(fractionDigits?: number): string;\n\n /**\n * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.\n * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.\n */\n toPrecision(precision?: number): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): number;\n}\n\ninterface NumberConstructor {\n new(value?: any): Number;\n (value?: any): number;\n readonly prototype: Number;\n\n /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */\n readonly MAX_VALUE: number;\n\n /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */\n readonly MIN_VALUE: number;\n\n /**\n * A value that is not a number.\n * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.\n */\n readonly NaN: number;\n\n /**\n * A value that is less than the largest negative number that can be represented in JavaScript.\n * JavaScript displays NEGATIVE_INFINITY values as -infinity.\n */\n readonly NEGATIVE_INFINITY: number;\n\n /**\n * A value greater than the largest number that can be represented in JavaScript.\n * JavaScript displays POSITIVE_INFINITY values as infinity.\n */\n readonly POSITIVE_INFINITY: number;\n}\n\n/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */\ndeclare var Number: NumberConstructor;\n\ninterface TemplateStringsArray extends ReadonlyArray<string> {\n readonly raw: readonly string[];\n}\n\n/**\n * The type of `import.meta`.\n *\n * If you need to declare that a given property exists on `import.meta`,\n * this type may be augmented via interface merging.\n */\ninterface ImportMeta {\n}\n\ninterface Math {\n /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */\n readonly E: number;\n /** The natural logarithm of 10. */\n readonly LN10: number;\n /** The natural logarithm of 2. */\n readonly LN2: number;\n /** The base-2 logarithm of e. */\n readonly LOG2E: number;\n /** The base-10 logarithm of e. */\n readonly LOG10E: number;\n /** Pi. This is the ratio of the circumference of a circle to its diameter. */\n readonly PI: number;\n /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */\n readonly SQRT1_2: number;\n /** The square root of 2. */\n readonly SQRT2: number;\n /**\n * Returns the absolute value of a number (the value without regard to whether it is positive or negative).\n * For example, the absolute value of -5 is the same as the absolute value of 5.\n * @param x A numeric expression for which the absolute value is needed.\n */\n abs(x: number): number;\n /**\n * Returns the arc cosine (or inverse cosine) of a number.\n * @param x A numeric expression.\n */\n acos(x: number): number;\n /**\n * Returns the arcsine of a number.\n * @param x A numeric expression.\n */\n asin(x: number): number;\n /**\n * Returns the arctangent of a number.\n * @param x A numeric expression for which the arctangent is needed.\n */\n atan(x: number): number;\n /**\n * Returns the angle (in radians) from the X axis to a point.\n * @param y A numeric expression representing the cartesian y-coordinate.\n * @param x A numeric expression representing the cartesian x-coordinate.\n */\n atan2(y: number, x: number): number;\n /**\n * Returns the smallest integer greater than or equal to its numeric argument.\n * @param x A numeric expression.\n */\n ceil(x: number): number;\n /**\n * Returns the cosine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n cos(x: number): number;\n /**\n * Returns e (the base of natural logarithms) raised to a power.\n * @param x A numeric expression representing the power of e.\n */\n exp(x: number): number;\n /**\n * Returns the greatest integer less than or equal to its numeric argument.\n * @param x A numeric expression.\n */\n floor(x: number): number;\n /**\n * Returns the natural logarithm (base e) of a number.\n * @param x A numeric expression.\n */\n log(x: number): number;\n /**\n * Returns the larger of a set of supplied numeric expressions.\n * @param values Numeric expressions to be evaluated.\n */\n max(...values: number[]): number;\n /**\n * Returns the smaller of a set of supplied numeric expressions.\n * @param values Numeric expressions to be evaluated.\n */\n min(...values: number[]): number;\n /**\n * Returns the value of a base expression taken to a specified power.\n * @param x The base value of the expression.\n * @param y The exponent value of the expression.\n */\n pow(x: number, y: number): number;\n /** Returns a pseudorandom number between 0 and 1. */\n random(): number;\n /**\n * Returns a supplied numeric expression rounded to the nearest integer.\n * @param x The value to be rounded to the nearest integer.\n */\n round(x: number): number;\n /**\n * Returns the sine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n sin(x: number): number;\n /**\n * Returns the square root of a number.\n * @param x A numeric expression.\n */\n sqrt(x: number): number;\n /**\n * Returns the tangent of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n tan(x: number): number;\n}\n/** An intrinsic object that provides basic mathematics functionality and constants. */\ndeclare var Math: Math;\n\n/** Enables basic storage and retrieval of dates and times. */\ninterface Date {\n /** Returns a string representation of a date. The format of the string depends on the locale. */\n toString(): string;\n /** Returns a date as a string value. */\n toDateString(): string;\n /** Returns a time as a string value. */\n toTimeString(): string;\n /** Returns a value as a string value appropriate to the host environment's current locale. */\n toLocaleString(): string;\n /** Returns a date as a string value appropriate to the host environment's current locale. */\n toLocaleDateString(): string;\n /** Returns a time as a string value appropriate to the host environment's current locale. */\n toLocaleTimeString(): string;\n /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */\n valueOf(): number;\n /** Gets the time value in milliseconds. */\n getTime(): number;\n /** Gets the year, using local time. */\n getFullYear(): number;\n /** Gets the year using Universal Coordinated Time (UTC). */\n getUTCFullYear(): number;\n /** Gets the month, using local time. */\n getMonth(): number;\n /** Gets the month of a Date object using Universal Coordinated Time (UTC). */\n getUTCMonth(): number;\n /** Gets the day-of-the-month, using local time. */\n getDate(): number;\n /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */\n getUTCDate(): number;\n /** Gets the day of the week, using local time. */\n getDay(): number;\n /** Gets the day of the week using Universal Coordinated Time (UTC). */\n getUTCDay(): number;\n /** Gets the hours in a date, using local time. */\n getHours(): number;\n /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */\n getUTCHours(): number;\n /** Gets the minutes of a Date object, using local time. */\n getMinutes(): number;\n /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */\n getUTCMinutes(): number;\n /** Gets the seconds of a Date object, using local time. */\n getSeconds(): number;\n /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */\n getUTCSeconds(): number;\n /** Gets the milliseconds of a Date, using local time. */\n getMilliseconds(): number;\n /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */\n getUTCMilliseconds(): number;\n /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */\n getTimezoneOffset(): number;\n /**\n * Sets the date and time value in the Date object.\n * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.\n */\n setTime(time: number): number;\n /**\n * Sets the milliseconds value in the Date object using local time.\n * @param ms A numeric value equal to the millisecond value.\n */\n setMilliseconds(ms: number): number;\n /**\n * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).\n * @param ms A numeric value equal to the millisecond value.\n */\n setUTCMilliseconds(ms: number): number;\n\n /**\n * Sets the seconds value in the Date object using local time.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setSeconds(sec: number, ms?: number): number;\n /**\n * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCSeconds(sec: number, ms?: number): number;\n /**\n * Sets the minutes value in the Date object using local time.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setMinutes(min: number, sec?: number, ms?: number): number;\n /**\n * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCMinutes(min: number, sec?: number, ms?: number): number;\n /**\n * Sets the hour value in the Date object using local time.\n * @param hours A numeric value equal to the hours value.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setHours(hours: number, min?: number, sec?: number, ms?: number): number;\n /**\n * Sets the hours value in the Date object using Universal Coordinated Time (UTC).\n * @param hours A numeric value equal to the hours value.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;\n /**\n * Sets the numeric day-of-the-month value of the Date object using local time.\n * @param date A numeric value equal to the day of the month.\n */\n setDate(date: number): number;\n /**\n * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).\n * @param date A numeric value equal to the day of the month.\n */\n setUTCDate(date: number): number;\n /**\n * Sets the month value in the Date object using local time.\n * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\n * @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.\n */\n setMonth(month: number, date?: number): number;\n /**\n * Sets the month value in the Date object using Universal Coordinated Time (UTC).\n * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\n * @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.\n */\n setUTCMonth(month: number, date?: number): number;\n /**\n * Sets the year of the Date object using local time.\n * @param year A numeric value for the year.\n * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.\n * @param date A numeric value equal for the day of the month.\n */\n setFullYear(year: number, month?: number, date?: number): number;\n /**\n * Sets the year value in the Date object using Universal Coordinated Time (UTC).\n * @param year A numeric value equal to the year.\n * @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.\n * @param date A numeric value equal to the day of the month.\n */\n setUTCFullYear(year: number, month?: number, date?: number): number;\n /** Returns a date converted to a string using Universal Coordinated Time (UTC). */\n toUTCString(): string;\n /** Returns a date as a string value in ISO format. */\n toISOString(): string;\n /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */\n toJSON(key?: any): string;\n}\n\ninterface DateConstructor {\n new(): Date;\n new(value: number | string): Date;\n new(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;\n (): string;\n readonly prototype: Date;\n /**\n * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.\n * @param s A date string\n */\n parse(s: string): number;\n /**\n * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.\n * @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.\n * @param month The month as a number between 0 and 11 (January to December).\n * @param date The date as a number between 1 and 31.\n * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.\n * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.\n * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.\n * @param ms A number from 0 to 999 that specifies the milliseconds.\n */\n UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;\n now(): number;\n}\n\ndeclare var Date: DateConstructor;\n\ninterface RegExpMatchArray extends Array<string> {\n index?: number;\n input?: string;\n}\n\ninterface RegExpExecArray extends Array<string> {\n index: number;\n input: string;\n}\n\ninterface RegExp {\n /**\n * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.\n * @param string The String object or string literal on which to perform the search.\n */\n exec(string: string): RegExpExecArray | null;\n\n /**\n * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.\n * @param string String on which to perform the search.\n */\n test(string: string): boolean;\n\n /** 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. */\n readonly source: string;\n\n /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */\n readonly global: boolean;\n\n /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */\n readonly ignoreCase: boolean;\n\n /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */\n readonly multiline: boolean;\n\n lastIndex: number;\n\n // Non-standard extensions\n compile(): this;\n}\n\ninterface RegExpConstructor {\n new(pattern: RegExp | string): RegExp;\n new(pattern: string, flags?: string): RegExp;\n (pattern: RegExp | string): RegExp;\n (pattern: string, flags?: string): RegExp;\n readonly prototype: RegExp;\n\n // Non-standard extensions\n $1: string;\n $2: string;\n $3: string;\n $4: string;\n $5: string;\n $6: string;\n $7: string;\n $8: string;\n $9: string;\n lastMatch: string;\n}\n\ndeclare var RegExp: RegExpConstructor;\n\ninterface Error {\n name: string;\n message: string;\n stack?: string;\n}\n\ninterface ErrorConstructor {\n new(message?: string): Error;\n (message?: string): Error;\n readonly prototype: Error;\n}\n\ndeclare var Error: ErrorConstructor;\n\ninterface EvalError extends Error {\n}\n\ninterface EvalErrorConstructor extends ErrorConstructor {\n new(message?: string): EvalError;\n (message?: string): EvalError;\n readonly prototype: EvalError;\n}\n\ndeclare var EvalError: EvalErrorConstructor;\n\ninterface RangeError extends Error {\n}\n\ninterface RangeErrorConstructor extends ErrorConstructor {\n new(message?: string): RangeError;\n (message?: string): RangeError;\n readonly prototype: RangeError;\n}\n\ndeclare var RangeError: RangeErrorConstructor;\n\ninterface ReferenceError extends Error {\n}\n\ninterface ReferenceErrorConstructor extends ErrorConstructor {\n new(message?: string): ReferenceError;\n (message?: string): ReferenceError;\n readonly prototype: ReferenceError;\n}\n\ndeclare var ReferenceError: ReferenceErrorConstructor;\n\ninterface SyntaxError extends Error {\n}\n\ninterface SyntaxErrorConstructor extends ErrorConstructor {\n new(message?: string): SyntaxError;\n (message?: string): SyntaxError;\n readonly prototype: SyntaxError;\n}\n\ndeclare var SyntaxError: SyntaxErrorConstructor;\n\ninterface TypeError extends Error {\n}\n\ninterface TypeErrorConstructor extends ErrorConstructor {\n new(message?: string): TypeError;\n (message?: string): TypeError;\n readonly prototype: TypeError;\n}\n\ndeclare var TypeError: TypeErrorConstructor;\n\ninterface URIError extends Error {\n}\n\ninterface URIErrorConstructor extends ErrorConstructor {\n new(message?: string): URIError;\n (message?: string): URIError;\n readonly prototype: URIError;\n}\n\ndeclare var URIError: URIErrorConstructor;\n\ninterface JSON {\n /**\n * Converts a JavaScript Object Notation (JSON) string into an object.\n * @param text A valid JSON string.\n * @param reviver A function that transforms the results. This function is called for each member of the object.\n * If a member contains nested objects, the nested objects are transformed before the parent object is.\n */\n parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;\n /**\n * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n * @param value A JavaScript value, usually an object or array, to be converted.\n * @param replacer A function that transforms the results.\n * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\n stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;\n /**\n * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n * @param value A JavaScript value, usually an object or array, to be converted.\n * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.\n * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\n stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;\n}\n\n/**\n * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.\n */\ndeclare var JSON: JSON;\n\n\n/////////////////////////////\n/// ECMAScript Array API (specially handled by compiler)\n/////////////////////////////\n\ninterface ReadonlyArray<T> {\n /**\n * Gets the length of the array. This is a number one higher than the highest element defined in an array.\n */\n readonly length: number;\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n /**\n * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.\n */\n toLocaleString(): string;\n /**\n * Combines two or more arrays.\n * @param items Additional items to add to the end of array1.\n */\n concat(...items: ConcatArray<T>[]): T[];\n /**\n * Combines two or more arrays.\n * @param items Additional items to add to the end of array1.\n */\n concat(...items: (T | ConcatArray<T>)[]): T[];\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @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.\n */\n join(separator?: string): string;\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): T[];\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n */\n indexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Returns the index of the last occurrence of a specified value in an array.\n * @param searchElement The value to locate in the array.\n * @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.\n */\n lastIndexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n * @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.\n */\n forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;\n /**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n * @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.\n * @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.\n */\n map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @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.\n * @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.\n */\n filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @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.\n * @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.\n */\n filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];\n /**\n * 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.\n * @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.\n * @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.\n */\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;\n /**\n * 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.\n * @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.\n * @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.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;\n /**\n * 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.\n * @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.\n * @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.\n */\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;\n /**\n * 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.\n * @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.\n * @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.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;\n\n readonly [n: number]: T;\n}\n\ninterface ConcatArray<T> {\n readonly length: number;\n readonly [n: number]: T;\n join(separator?: string): string;\n slice(start?: number, end?: number): T[];\n}\n\ninterface Array<T> {\n /**\n * Gets or sets the length of the array. This is a number one higher than the highest index in the array.\n */\n length: number;\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n /**\n * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.\n */\n toLocaleString(): string;\n /**\n * Removes the last element from an array and returns it.\n * If the array is empty, undefined is returned and the array is not modified.\n */\n pop(): T | undefined;\n /**\n * Appends new elements to the end of an array, and returns the new length of the array.\n * @param items New elements to add to the array.\n */\n push(...items: T[]): number;\n /**\n * Combines two or more arrays.\n * This method returns a new array without modifying any existing arrays.\n * @param items Additional arrays and/or items to add to the end of the array.\n */\n concat(...items: ConcatArray<T>[]): T[];\n /**\n * Combines two or more arrays.\n * This method returns a new array without modifying any existing arrays.\n * @param items Additional arrays and/or items to add to the end of the array.\n */\n concat(...items: (T | ConcatArray<T>)[]): T[];\n /**\n * Adds all the elements of an array into a string, separated by the specified separator string.\n * @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.\n */\n join(separator?: string): string;\n /**\n * Reverses the elements in an array in place.\n * This method mutates the array and returns a reference to the same array.\n */\n reverse(): T[];\n /**\n * Removes the first element from an array and returns it.\n * If the array is empty, undefined is returned and the array is not modified.\n */\n shift(): T | undefined;\n /**\n * Returns a copy of a section of an array.\n * For both start and end, a negative index can be used to indicate an offset from the end of the array.\n * For example, -2 refers to the second to last element of the array.\n * @param start The beginning index of the specified portion of the array.\n * If start is undefined, then the slice begins at index 0.\n * @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\n * If end is undefined, then the slice extends to the end of the array.\n */\n slice(start?: number, end?: number): T[];\n /**\n * Sorts an array in place.\n * This method mutates the array and returns a reference to the same array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: T, b: T) => number): this;\n /**\n * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @returns An array containing the elements that were deleted.\n */\n splice(start: number, deleteCount?: number): T[];\n /**\n * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @param items Elements to insert into the array in place of the deleted elements.\n * @returns An array containing the elements that were deleted.\n */\n splice(start: number, deleteCount: number, ...items: T[]): T[];\n /**\n * Inserts new elements at the start of an array, and returns the new length of the array.\n * @param items Elements to insert at the start of the array.\n */\n unshift(...items: T[]): number;\n /**\n * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n */\n indexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\n * @param searchElement The value to locate in the array.\n * @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.\n */\n lastIndexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n * @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.\n */\n forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;\n /**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n * @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.\n * @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.\n */\n map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @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.\n * @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.\n */\n filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @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.\n * @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.\n */\n filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];\n /**\n * 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.\n * @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.\n * @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.\n */\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;\n /**\n * 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.\n * @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.\n * @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.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\n /**\n * 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.\n * @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.\n * @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.\n */\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;\n /**\n * 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.\n * @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.\n * @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.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\n\n [n: number]: T;\n}\n\ninterface ArrayConstructor {\n new(arrayLength?: number): any[];\n new <T>(arrayLength: number): T[];\n new <T>(...items: T[]): T[];\n (arrayLength?: number): any[];\n <T>(arrayLength: number): T[];\n <T>(...items: T[]): T[];\n isArray(arg: any): arg is any[];\n readonly prototype: any[];\n}\n\ndeclare var Array: ArrayConstructor;\n\ninterface TypedPropertyDescriptor<T> {\n enumerable?: boolean;\n configurable?: boolean;\n writable?: boolean;\n value?: T;\n get?: () => T;\n set?: (value: T) => void;\n}\n\ndeclare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;\ndeclare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;\ndeclare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;\ndeclare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;\n\ndeclare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;\n\ninterface PromiseLike<T> {\n /**\n * Attaches callbacks for the resolution and/or rejection of the Promise.\n * @param onfulfilled The callback to execute when the Promise is resolved.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @returns A Promise for the completion of which ever callback is executed.\n */\n then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;\n}\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches callbacks for the resolution and/or rejection of the Promise.\n * @param onfulfilled The callback to execute when the Promise is resolved.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @returns A Promise for the completion of which ever callback is executed.\n */\n then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;\n\n /**\n * Attaches a callback for only the rejection of the Promise.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @returns A Promise for the completion of the callback.\n */\n catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;\n}\n\ninterface ArrayLike<T> {\n readonly length: number;\n readonly [n: number]: T;\n}\n\n/**\n * Make all properties in T optional\n */\ntype Partial<T> = {\n [P in keyof T]?: T[P];\n};\n\n/**\n * Make all properties in T required\n */\ntype Required<T> = {\n [P in keyof T]-?: T[P];\n};\n\n/**\n * Make all properties in T readonly\n */\ntype Readonly<T> = {\n readonly [P in keyof T]: T[P];\n};\n\n/**\n * From T, pick a set of properties whose keys are in the union K\n */\ntype Pick<T, K extends keyof T> = {\n [P in K]: T[P];\n};\n\n/**\n * Construct a type with a set of properties K of type T\n */\ntype Record<K extends keyof any, T> = {\n [P in K]: T;\n};\n\n/**\n * Exclude from T those types that are assignable to U\n */\ntype Exclude<T, U> = T extends U ? never : T;\n\n/**\n * Extract from T those types that are assignable to U\n */\ntype Extract<T, U> = T extends U ? T : never;\n\n/**\n * Construct a type with the properties of T except for those in type K.\n */\ntype Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;\n\n/**\n * Exclude null and undefined from T\n */\ntype NonNullable<T> = T extends null | undefined ? never : T;\n\n/**\n * Obtain the parameters of a function type in a tuple\n */\ntype Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;\n\n/**\n * Obtain the parameters of a constructor function type in a tuple\n */\ntype ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;\n\n/**\n * Obtain the return type of a function type\n */\ntype ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;\n\n/**\n * Obtain the return type of a constructor function type\n */\ntype InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;\n\n/**\n * Convert string literal type to uppercase\n */\ntype Uppercase<S extends string> = intrinsic;\n\n/**\n * Convert string literal type to lowercase\n */\ntype Lowercase<S extends string> = intrinsic;\n\n/**\n * Convert first character of string literal type to uppercase\n */\ntype Capitalize<S extends string> = intrinsic;\n\n/**\n * Convert first character of string literal type to lowercase\n */\ntype Uncapitalize<S extends string> = intrinsic;\n\n/**\n * Marker for contextual 'this' type\n */\ninterface ThisType<T> { }\n\n/**\n * Represents a raw buffer of binary data, which is used to store data for the\n * different typed arrays. ArrayBuffers cannot be read from or written to directly,\n * but can be passed to a typed array or DataView Object to interpret the raw\n * buffer as needed.\n */\ninterface ArrayBuffer {\n /**\n * Read-only. The length of the ArrayBuffer (in bytes).\n */\n readonly byteLength: number;\n\n /**\n * Returns a section of an ArrayBuffer.\n */\n slice(begin: number, end?: number): ArrayBuffer;\n}\n\n/**\n * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.\n */\ninterface ArrayBufferTypes {\n ArrayBuffer: ArrayBuffer;\n}\ntype ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];\n\ninterface ArrayBufferConstructor {\n readonly prototype: ArrayBuffer;\n new(byteLength: number): ArrayBuffer;\n isView(arg: any): arg is ArrayBufferView;\n}\ndeclare var ArrayBuffer: ArrayBufferConstructor;\n\ninterface ArrayBufferView {\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n byteOffset: number;\n}\n\ninterface DataView {\n readonly buffer: ArrayBuffer;\n readonly byteLength: number;\n readonly byteOffset: number;\n /**\n * Gets the Float32 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getFloat32(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Float64 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getFloat64(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Int8 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getInt8(byteOffset: number): number;\n\n /**\n * Gets the Int16 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getInt16(byteOffset: number, littleEndian?: boolean): number;\n /**\n * Gets the Int32 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getInt32(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Uint8 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getUint8(byteOffset: number): number;\n\n /**\n * Gets the Uint16 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getUint16(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Uint32 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getUint32(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Stores an Float32 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Float64 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Int8 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n */\n setInt8(byteOffset: number, value: number): void;\n\n /**\n * Stores an Int16 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Int32 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Uint8 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n */\n setUint8(byteOffset: number, value: number): void;\n\n /**\n * Stores an Uint16 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Uint32 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;\n}\n\ninterface DataViewConstructor {\n readonly prototype: DataView;\n new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;\n}\ndeclare var DataView: DataViewConstructor;\n\n/**\n * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested\n * number of bytes could not be allocated an exception is raised.\n */\ninterface Int8Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int8Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Int8Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Int8Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Int8Array;\n\n [index: number]: number;\n}\ninterface Int8ArrayConstructor {\n readonly prototype: Int8Array;\n new(length: number): Int8Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;\n\n\n}\ndeclare var Int8Array: Int8ArrayConstructor;\n\n/**\n * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint8Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint8Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Uint8Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint8Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint8Array;\n\n [index: number]: number;\n}\n\ninterface Uint8ArrayConstructor {\n readonly prototype: Uint8Array;\n new(length: number): Uint8Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;\n\n}\ndeclare var Uint8Array: Uint8ArrayConstructor;\n\n/**\n * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.\n * If the requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint8ClampedArray {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint8ClampedArray;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Uint8ClampedArray;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint8ClampedArray;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint8ClampedArray;\n\n [index: number]: number;\n}\n\ninterface Uint8ClampedArrayConstructor {\n readonly prototype: Uint8ClampedArray;\n new(length: number): Uint8ClampedArray;\n new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint8ClampedArray;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint8ClampedArray;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\ndeclare var Uint8ClampedArray: Uint8ClampedArrayConstructor;\n\n/**\n * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Int16Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int16Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Int16Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Int16Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Int16Array;\n\n [index: number]: number;\n}\n\ninterface Int16ArrayConstructor {\n readonly prototype: Int16Array;\n new(length: number): Int16Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;\n\n\n}\ndeclare var Int16Array: Int16ArrayConstructor;\n\n/**\n * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint16Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint16Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Uint16Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint16Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint16Array;\n\n [index: number]: number;\n}\n\ninterface Uint16ArrayConstructor {\n readonly prototype: Uint16Array;\n new(length: number): Uint16Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;\n\n\n}\ndeclare var Uint16Array: Uint16ArrayConstructor;\n/**\n * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Int32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Int32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Int32Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Int32Array;\n\n [index: number]: number;\n}\n\ninterface Int32ArrayConstructor {\n readonly prototype: Int32Array;\n new(length: number): Int32Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;\n\n}\ndeclare var Int32Array: Int32ArrayConstructor;\n\n/**\n * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Uint32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint32Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint32Array;\n\n [index: number]: number;\n}\n\ninterface Uint32ArrayConstructor {\n readonly prototype: Uint32Array;\n new(length: number): Uint32Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;\n\n}\ndeclare var Uint32Array: Uint32ArrayConstructor;\n\n/**\n * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number\n * of bytes could not be allocated an exception is raised.\n */\ninterface Float32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Float32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Float32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Float32Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Float32Array;\n\n [index: number]: number;\n}\n\ninterface Float32ArrayConstructor {\n readonly prototype: Float32Array;\n new(length: number): Float32Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;\n\n\n}\ndeclare var Float32Array: Float32ArrayConstructor;\n\n/**\n * A typed array of 64-bit float values. The contents are initialized to 0. If the requested\n * number of bytes could not be allocated an exception is raised.\n */\ninterface Float64Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Float64Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Float64Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Float64Array;\n\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Float64Array;\n\n [index: number]: number;\n}\n\ninterface Float64ArrayConstructor {\n readonly prototype: Float64Array;\n new(length: number): Float64Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;\n\n}\ndeclare var Float64Array: Float64ArrayConstructor;\n\n/////////////////////////////\n/// ECMAScript Internationalization API\n/////////////////////////////\n\ndeclare namespace Intl {\n interface CollatorOptions {\n usage?: string;\n localeMatcher?: string;\n numeric?: boolean;\n caseFirst?: string;\n sensitivity?: string;\n ignorePunctuation?: boolean;\n }\n\n interface ResolvedCollatorOptions {\n locale: string;\n usage: string;\n sensitivity: string;\n ignorePunctuation: boolean;\n collation: string;\n caseFirst: string;\n numeric: boolean;\n }\n\n interface Collator {\n compare(x: string, y: string): number;\n resolvedOptions(): ResolvedCollatorOptions;\n }\n var Collator: {\n new(locales?: string | string[], options?: CollatorOptions): Collator;\n (locales?: string | string[], options?: CollatorOptions): Collator;\n supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];\n };\n\n interface NumberFormatOptions {\n localeMatcher?: string;\n style?: string;\n currency?: string;\n currencyDisplay?: string;\n currencySign?: string;\n useGrouping?: boolean;\n minimumIntegerDigits?: number;\n minimumFractionDigits?: number;\n maximumFractionDigits?: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n }\n\n interface ResolvedNumberFormatOptions {\n locale: string;\n numberingSystem: string;\n style: string;\n currency?: string;\n currencyDisplay?: string;\n minimumIntegerDigits: number;\n minimumFractionDigits: number;\n maximumFractionDigits: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n useGrouping: boolean;\n }\n\n interface NumberFormat {\n format(value: number): string;\n resolvedOptions(): ResolvedNumberFormatOptions;\n }\n var NumberFormat: {\n new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\n (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\n supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];\n };\n\n interface DateTimeFormatOptions {\n localeMatcher?: \"best fit\" | \"lookup\";\n weekday?: \"long\" | \"short\" | \"narrow\";\n era?: \"long\" | \"short\" | \"narrow\";\n year?: \"numeric\" | \"2-digit\";\n month?: \"numeric\" | \"2-digit\" | \"long\" | \"short\" | \"narrow\";\n day?: \"numeric\" | \"2-digit\";\n hour?: \"numeric\" | \"2-digit\";\n minute?: \"numeric\" | \"2-digit\";\n second?: \"numeric\" | \"2-digit\";\n timeZoneName?: \"long\" | \"short\";\n formatMatcher?: \"best fit\" | \"basic\";\n hour12?: boolean;\n timeZone?: string;\n }\n\n interface ResolvedDateTimeFormatOptions {\n locale: string;\n calendar: string;\n numberingSystem: string;\n timeZone: string;\n hour12?: boolean;\n weekday?: string;\n era?: string;\n year?: string;\n month?: string;\n day?: string;\n hour?: string;\n minute?: string;\n second?: string;\n timeZoneName?: string;\n }\n\n interface DateTimeFormat {\n format(date?: Date | number): string;\n resolvedOptions(): ResolvedDateTimeFormatOptions;\n }\n var DateTimeFormat: {\n new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\n (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\n supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];\n };\n}\n\ninterface String {\n /**\n * Determines whether two strings are equivalent in the current or specified locale.\n * @param that String to compare to target string\n * @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.\n * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.\n */\n localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;\n}\n\ninterface Number {\n /**\n * Converts a number to a string by using the current or specified locale.\n * @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.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n\ninterface Date {\n /**\n * Converts a date and time to a string by using the current or specified locale.\n * @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.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n /**\n * Converts a date to a string by using the current or specified locale.\n * @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.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n\n /**\n * Converts a time to a string by using the current or specified locale.\n * @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.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n}\n","lib.es6.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015" />\n/// <reference lib="dom" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n',"lib.esnext.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2021" />\n/// <reference lib="esnext.intl" />\n',"lib.esnext.full.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="esnext" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />',"lib.esnext.intl.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ndeclare namespace Intl {\n type NumberFormatPartTypes = "compact" | "currency" | "decimal" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "fraction" | "group" | "infinity" | "integer" | "literal" | "minusSign" | "nan" | "plusSign" | "percentSign" | "unit" | "unknown";\n\n interface NumberFormatPart {\n type: NumberFormatPartTypes;\n value: string;\n }\n\n interface NumberFormat {\n formatToParts(number?: number | bigint): NumberFormatPart[];\n }\n}\n',"lib.esnext.promise.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface AggregateError extends Error {\n errors: any[]\n}\n\ninterface AggregateErrorConstructor {\n new(errors: Iterable<any>, message?: string): AggregateError;\n (errors: Iterable<any>, message?: string): AggregateError;\n readonly prototype: AggregateError;\n}\n\ndeclare var AggregateError: AggregateErrorConstructor;\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface PromiseConstructor {\n /**\n * 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.\n * @param values An array or iterable of Promises.\n * @returns A new Promise.\n */\n any<T>(values: (T | PromiseLike<T>)[] | Iterable<T | PromiseLike<T>>): Promise<T>\n}\n',"lib.esnext.string.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface String {\n /**\n * Replace all instances of a substring in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.\n */\n replaceAll(searchValue: string | RegExp, replaceValue: string): string;\n\n /**\n * Replace all instances of a substring in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replacer A function that returns the replacement text.\n */\n replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\n}\n',"lib.esnext.weakref.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface WeakRef<T extends object> {\n readonly [Symbol.toStringTag]: "WeakRef";\n\n /**\n * Returns the WeakRef instance\'s target object, or undefined if the target object has been\n * reclaimed.\n */\n deref(): T | undefined;\n}\n\ninterface WeakRefConstructor {\n readonly prototype: WeakRef<any>;\n\n /**\n * Creates a WeakRef instance for the given target object.\n * @param target The target object for the WeakRef instance.\n */\n new<T extends object>(target?: T): WeakRef<T>;\n}\n\ndeclare var WeakRef: WeakRefConstructor;\n\ninterface FinalizationRegistry {\n readonly [Symbol.toStringTag]: "FinalizationRegistry";\n\n /**\n * Registers an object with the registry.\n * @param target The target object to register.\n * @param heldValue The value to pass to the finalizer for this object. This cannot be the\n * target object.\n * @param unregisterToken The token to pass to the unregister method to unregister the target\n * object. If provided (and not undefined), this must be an object. If not provided, the target\n * cannot be unregistered.\n */\n register(target: object, heldValue: any, unregisterToken?: object): void;\n\n /**\n * Unregisters an object from the registry.\n * @param unregisterToken The token that was used as the unregisterToken argument when calling\n * register to register the target object.\n */\n unregister(unregisterToken: object): void;\n}\n\ninterface FinalizationRegistryConstructor {\n readonly prototype: FinalizationRegistry;\n\n /**\n * Creates a finalization registry with an associated cleanup callback\n * @param cleanupCallback The callback to call after an object in the registry has been reclaimed.\n */\n new(cleanupCallback: (heldValue: any) => void): FinalizationRegistry;\n}\n\ndeclare var FinalizationRegistry: FinalizationRegistryConstructor;\n',"lib.scripthost.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n\n\n/////////////////////////////\n/// Windows Script Host APIS\n/////////////////////////////\n\n\ninterface ActiveXObject {\n new (s: string): any;\n}\ndeclare var ActiveXObject: ActiveXObject;\n\ninterface ITextWriter {\n Write(s: string): void;\n WriteLine(s: string): void;\n Close(): void;\n}\n\ninterface TextStreamBase {\n /**\n * The column number of the current character position in an input stream.\n */\n Column: number;\n\n /**\n * The current line number in an input stream.\n */\n Line: number;\n\n /**\n * Closes a text stream.\n * It is not necessary to close standard streams; they close automatically when the process ends. If\n * you close a standard stream, be aware that any other pointers to that standard stream become invalid.\n */\n Close(): void;\n}\n\ninterface TextStreamWriter extends TextStreamBase {\n /**\n * Sends a string to an output stream.\n */\n Write(s: string): void;\n\n /**\n * Sends a specified number of blank lines (newline characters) to an output stream.\n */\n WriteBlankLines(intLines: number): void;\n\n /**\n * Sends a string followed by a newline character to an output stream.\n */\n WriteLine(s: string): void;\n}\n\ninterface TextStreamReader extends TextStreamBase {\n /**\n * Returns a specified number of characters from an input stream, starting at the current pointer position.\n * Does not return until the ENTER key is pressed.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n */\n Read(characters: number): string;\n\n /**\n * Returns all characters from an input stream.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n */\n ReadAll(): string;\n\n /**\n * Returns an entire line from an input stream.\n * Although this method extracts the newline character, it does not add it to the returned string.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n */\n ReadLine(): string;\n\n /**\n * Skips a specified number of characters when reading from an input text stream.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)\n */\n Skip(characters: number): void;\n\n /**\n * Skips the next line when reading from an input text stream.\n * Can only be used on a stream in reading mode, not writing or appending mode.\n */\n SkipLine(): void;\n\n /**\n * Indicates whether the stream pointer position is at the end of a line.\n */\n AtEndOfLine: boolean;\n\n /**\n * Indicates whether the stream pointer position is at the end of a stream.\n */\n AtEndOfStream: boolean;\n}\n\ndeclare var WScript: {\n /**\n * Outputs text to either a message box (under WScript.exe) or the command console window followed by\n * a newline (under CScript.exe).\n */\n Echo(s: any): void;\n\n /**\n * Exposes the write-only error output stream for the current script.\n * Can be accessed only while using CScript.exe.\n */\n StdErr: TextStreamWriter;\n\n /**\n * Exposes the write-only output stream for the current script.\n * Can be accessed only while using CScript.exe.\n */\n StdOut: TextStreamWriter;\n Arguments: { length: number; Item(n: number): string; };\n\n /**\n * The full path of the currently running script.\n */\n ScriptFullName: string;\n\n /**\n * Forces the script to stop immediately, with an optional exit code.\n */\n Quit(exitCode?: number): number;\n\n /**\n * The Windows Script Host build version number.\n */\n BuildVersion: number;\n\n /**\n * Fully qualified path of the host executable.\n */\n FullName: string;\n\n /**\n * Gets/sets the script mode - interactive(true) or batch(false).\n */\n Interactive: boolean;\n\n /**\n * The name of the host executable (WScript.exe or CScript.exe).\n */\n Name: string;\n\n /**\n * Path of the directory containing the host executable.\n */\n Path: string;\n\n /**\n * The filename of the currently running script.\n */\n ScriptName: string;\n\n /**\n * Exposes the read-only input stream for the current script.\n * Can be accessed only while using CScript.exe.\n */\n StdIn: TextStreamReader;\n\n /**\n * Windows Script Host version\n */\n Version: string;\n\n /**\n * Connects a COM object\'s event sources to functions named with a given prefix, in the form prefix_event.\n */\n ConnectObject(objEventSource: any, strPrefix: string): void;\n\n /**\n * Creates a COM object.\n * @param strProgiID\n * @param strPrefix Function names in the form prefix_event will be bound to this object\'s COM events.\n */\n CreateObject(strProgID: string, strPrefix?: string): any;\n\n /**\n * Disconnects a COM object from its event sources.\n */\n DisconnectObject(obj: any): void;\n\n /**\n * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.\n * @param strPathname Fully qualified path to the file containing the object persisted to disk.\n * For objects in memory, pass a zero-length string.\n * @param strProgID\n * @param strPrefix Function names in the form prefix_event will be bound to this object\'s COM events.\n */\n GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;\n\n /**\n * Suspends script execution for a specified length of time, then continues execution.\n * @param intTime Interval (in milliseconds) to suspend script execution.\n */\n Sleep(intTime: number): void;\n};\n\n/**\n * WSH is an alias for WScript under Windows Script Host\n */\ndeclare var WSH: typeof WScript;\n\n/**\n * Represents an Automation SAFEARRAY\n */\ndeclare class SafeArray<T = any> {\n private constructor();\n private SafeArray_typekey: SafeArray<T>;\n}\n\n/**\n * Allows enumerating over a COM collection, which may not have indexed item access.\n */\ninterface Enumerator<T = any> {\n /**\n * Returns true if the current item is the last one in the collection, or the collection is empty,\n * or the current item is undefined.\n */\n atEnd(): boolean;\n\n /**\n * Returns the current item in the collection\n */\n item(): T;\n\n /**\n * Resets the current item in the collection to the first item. If there are no items in the collection,\n * the current item is set to undefined.\n */\n moveFirst(): void;\n\n /**\n * Moves the current item to the next item in the collection. If the enumerator is at the end of\n * the collection or the collection is empty, the current item is set to undefined.\n */\n moveNext(): void;\n}\n\ninterface EnumeratorConstructor {\n new <T = any>(safearray: SafeArray<T>): Enumerator<T>;\n new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;\n new <T = any>(collection: any): Enumerator<T>;\n}\n\ndeclare var Enumerator: EnumeratorConstructor;\n\n/**\n * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.\n */\ninterface VBArray<T = any> {\n /**\n * Returns the number of dimensions (1-based).\n */\n dimensions(): number;\n\n /**\n * Takes an index for each dimension in the array, and returns the item at the corresponding location.\n */\n getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;\n\n /**\n * Returns the smallest available index for a given dimension.\n * @param dimension 1-based dimension (defaults to 1)\n */\n lbound(dimension?: number): number;\n\n /**\n * Returns the largest available index for a given dimension.\n * @param dimension 1-based dimension (defaults to 1)\n */\n ubound(dimension?: number): number;\n\n /**\n * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,\n * each successive dimension is appended to the end of the array.\n * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]\n */\n toArray(): T[];\n}\n\ninterface VBArrayConstructor {\n new <T = any>(safeArray: SafeArray<T>): VBArray<T>;\n}\n\ndeclare var VBArray: VBArrayConstructor;\n\n/**\n * Automation date (VT_DATE)\n */\ndeclare class VarDate {\n private constructor();\n private VarDate_typekey: VarDate;\n}\n\ninterface DateConstructor {\n new (vd: VarDate): Date;\n}\n\ninterface Date {\n getVarDate: () => VarDate;\n}\n',"lib.webworker.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/////////////////////////////\n/// Worker APIs\n/////////////////////////////\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n signal?: AbortSignal;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: BufferSource;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: BufferSource;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: BufferSource;\n iv: BufferSource;\n tagLength?: number;\n}\n\ninterface AesKeyAlgorithm extends KeyAlgorithm {\n length: number;\n}\n\ninterface AesKeyGenParams extends Algorithm {\n length: number;\n}\n\ninterface Algorithm {\n name: string;\n}\n\ninterface AudioConfiguration {\n bitrate?: number;\n channels?: string;\n contentType: string;\n samplerate?: number;\n spatialRendering?: boolean;\n}\n\ninterface BlobPropertyBag {\n endings?: EndingType;\n type?: string;\n}\n\ninterface CacheQueryOptions {\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface ClientQueryOptions {\n includeUncontrolled?: boolean;\n type?: ClientTypes;\n}\n\ninterface CloseEventInit extends EventInit {\n code?: number;\n reason?: string;\n wasClean?: boolean;\n}\n\ninterface CryptoKeyPair {\n privateKey?: CryptoKey;\n publicKey?: CryptoKey;\n}\n\ninterface CustomEventInit<T = any> extends EventInit {\n detail?: T;\n}\n\ninterface DOMMatrix2DInit {\n a?: number;\n b?: number;\n c?: number;\n d?: number;\n e?: number;\n f?: number;\n m11?: number;\n m12?: number;\n m21?: number;\n m22?: number;\n m41?: number;\n m42?: number;\n}\n\ninterface DOMMatrixInit extends DOMMatrix2DInit {\n is2D?: boolean;\n m13?: number;\n m14?: number;\n m23?: number;\n m24?: number;\n m31?: number;\n m32?: number;\n m33?: number;\n m34?: number;\n m43?: number;\n m44?: number;\n}\n\ninterface DOMPointInit {\n w?: number;\n x?: number;\n y?: number;\n z?: number;\n}\n\ninterface DOMQuadInit {\n p1?: DOMPointInit;\n p2?: DOMPointInit;\n p3?: DOMPointInit;\n p4?: DOMPointInit;\n}\n\ninterface DOMRectInit {\n height?: number;\n width?: number;\n x?: number;\n y?: number;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface ErrorEventInit extends EventInit {\n colno?: number;\n error?: any;\n filename?: string;\n lineno?: number;\n message?: string;\n}\n\ninterface EventInit {\n bubbles?: boolean;\n cancelable?: boolean;\n composed?: boolean;\n}\n\ninterface EventListenerOptions {\n capture?: boolean;\n}\n\ninterface EventSourceInit {\n withCredentials?: boolean;\n}\n\ninterface ExtendableEventInit extends EventInit {\n}\n\ninterface ExtendableMessageEventInit extends ExtendableEventInit {\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: Client | ServiceWorker | MessagePort | null;\n}\n\ninterface FetchEventInit extends ExtendableEventInit {\n clientId?: string;\n handled?: Promise<undefined>;\n preloadResponse?: Promise<any>;\n replacesClientId?: string;\n request: Request;\n resultingClientId?: string;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FontFaceDescriptors {\n display?: string;\n featureSettings?: string;\n stretch?: string;\n style?: string;\n unicodeRange?: string;\n variant?: string;\n weight?: string;\n}\n\ninterface FontFaceSetLoadEventInit extends EventInit {\n fontfaces?: FontFace[];\n}\n\ninterface GetNotificationOptions {\n tag?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n info: BufferSource;\n salt: BufferSource;\n}\n\ninterface HmacImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface IDBDatabaseInfo {\n name?: string;\n version?: number;\n}\n\ninterface IDBIndexParameters {\n multiEntry?: boolean;\n unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n autoIncrement?: boolean;\n keyPath?: string | string[] | null;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n newVersion?: number | null;\n oldVersion?: number;\n}\n\ninterface ImageBitmapOptions {\n colorSpaceConversion?: ColorSpaceConversion;\n imageOrientation?: ImageOrientation;\n premultiplyAlpha?: PremultiplyAlpha;\n resizeHeight?: number;\n resizeQuality?: ResizeQuality;\n resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContextSettings {\n alpha?: boolean;\n}\n\ninterface ImageDataSettings {\n colorSpace?: PredefinedColorSpace;\n}\n\ninterface ImportMeta {\n url: string;\n}\n\ninterface JsonWebKey {\n alg?: string;\n crv?: string;\n d?: string;\n dp?: string;\n dq?: string;\n e?: string;\n ext?: boolean;\n k?: string;\n key_ops?: string[];\n kty?: string;\n n?: string;\n oth?: RsaOtherPrimesInfo[];\n p?: string;\n q?: string;\n qi?: string;\n use?: string;\n x?: string;\n y?: string;\n}\n\ninterface KeyAlgorithm {\n name: string;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaDecodingConfiguration;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaEncodingConfiguration;\n}\n\ninterface MediaCapabilitiesInfo {\n powerEfficient: boolean;\n smooth: boolean;\n supported: boolean;\n}\n\ninterface MediaConfiguration {\n audio?: AudioConfiguration;\n video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n type: MediaDecodingType;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n type: MediaEncodingType;\n}\n\ninterface MessageEventInit<T = any> extends EventInit {\n data?: T;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: MessageEventSource | null;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n cacheName?: string;\n}\n\ninterface NotificationAction {\n action: string;\n icon?: string;\n title: string;\n}\n\ninterface NotificationEventInit extends ExtendableEventInit {\n action?: string;\n notification: Notification;\n}\n\ninterface NotificationOptions {\n actions?: NotificationAction[];\n badge?: string;\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n image?: string;\n lang?: string;\n renotify?: boolean;\n requireInteraction?: boolean;\n silent?: boolean;\n tag?: string;\n timestamp?: DOMTimeStamp;\n vibrate?: VibratePattern;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: HashAlgorithmIdentifier;\n iterations: number;\n salt: BufferSource;\n}\n\ninterface PerformanceMarkOptions {\n detail?: any;\n startTime?: DOMHighResTimeStamp;\n}\n\ninterface PerformanceMeasureOptions {\n detail?: any;\n duration?: DOMHighResTimeStamp;\n end?: string | DOMHighResTimeStamp;\n start?: string | DOMHighResTimeStamp;\n}\n\ninterface PerformanceObserverInit {\n buffered?: boolean;\n entryTypes?: string[];\n type?: string;\n}\n\ninterface PermissionDescriptor {\n name: PermissionName;\n}\n\ninterface PostMessageOptions {\n transfer?: any[];\n}\n\ninterface ProgressEventInit extends EventInit {\n lengthComputable?: boolean;\n loaded?: number;\n total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: Promise<any>;\n reason?: any;\n}\n\ninterface PushEventInit extends ExtendableEventInit {\n data?: PushMessageDataInit;\n}\n\ninterface PushSubscriptionJSON {\n endpoint?: string;\n expirationTime?: DOMTimeStamp | null;\n keys?: Record<string, string>;\n}\n\ninterface PushSubscriptionOptionsInit {\n applicationServerKey?: BufferSource | string | null;\n userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy<T = any> {\n highWaterMark?: number;\n size?: QueuingStrategySize<T>;\n}\n\ninterface QueuingStrategyInit {\n /**\n * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\n *\n * 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.\n */\n highWaterMark: number;\n}\n\ninterface ReadableStreamDefaultReadDoneResult {\n done: true;\n value?: undefined;\n}\n\ninterface ReadableStreamDefaultReadValueResult<T> {\n done: false;\n value: T;\n}\n\ninterface ReadableWritablePair<R = any, W = any> {\n readable: ReadableStream<R>;\n /**\n * 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.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n */\n writable: WritableStream<W>;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n type?: WorkerType;\n updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface RequestInit {\n /**\n * A BodyInit object or null to set request\'s body.\n */\n body?: BodyInit | null;\n /**\n * A string indicating how the request will interact with the browser\'s cache to set request\'s cache.\n */\n cache?: RequestCache;\n /**\n * 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.\n */\n credentials?: RequestCredentials;\n /**\n * A Headers object, an object literal, or an array of two-item arrays to set request\'s headers.\n */\n headers?: HeadersInit;\n /**\n * A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity.\n */\n integrity?: string;\n /**\n * A boolean to set request\'s keepalive.\n */\n keepalive?: boolean;\n /**\n * A string to set request\'s method.\n */\n method?: string;\n /**\n * A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode.\n */\n mode?: RequestMode;\n /**\n * 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.\n */\n redirect?: RequestRedirect;\n /**\n * A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer.\n */\n referrer?: string;\n /**\n * A referrer policy to set request\'s referrerPolicy.\n */\n referrerPolicy?: ReferrerPolicy;\n /**\n * An AbortSignal to set request\'s signal.\n */\n signal?: AbortSignal | null;\n /**\n * Can only be null. Used to disassociate request from any Window.\n */\n window?: any;\n}\n\ninterface ResponseInit {\n headers?: HeadersInit;\n status?: number;\n statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n label?: BufferSource;\n}\n\ninterface RsaOtherPrimesInfo {\n d?: string;\n r?: string;\n t?: string;\n}\n\ninterface RsaPssParams extends Algorithm {\n saltLength: number;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n blockedURI?: string;\n columnNumber?: number;\n disposition: SecurityPolicyViolationEventDisposition;\n documentURI: string;\n effectiveDirective: string;\n lineNumber?: number;\n originalPolicy: string;\n referrer?: string;\n sample?: string;\n sourceFile?: string;\n statusCode: number;\n violatedDirective: string;\n}\n\ninterface StorageEstimate {\n quota?: number;\n usage?: number;\n}\n\ninterface StreamPipeOptions {\n preventAbort?: boolean;\n preventCancel?: boolean;\n /**\n * 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.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n *\n * Errors and closures of the source and destination streams propagate as follows:\n *\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * 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.\n */\n preventClose?: boolean;\n signal?: AbortSignal;\n}\n\ninterface TextDecodeOptions {\n stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n fatal?: boolean;\n ignoreBOM?: boolean;\n}\n\ninterface TextEncoderEncodeIntoResult {\n read?: number;\n written?: number;\n}\n\ninterface Transformer<I = any, O = any> {\n flush?: TransformerFlushCallback<O>;\n readableType?: undefined;\n start?: TransformerStartCallback<O>;\n transform?: TransformerTransformCallback<I, O>;\n writableType?: undefined;\n}\n\ninterface UnderlyingSink<W = any> {\n abort?: UnderlyingSinkAbortCallback;\n close?: UnderlyingSinkCloseCallback;\n start?: UnderlyingSinkStartCallback;\n type?: undefined;\n write?: UnderlyingSinkWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n cancel?: UnderlyingSourceCancelCallback;\n pull?: UnderlyingSourcePullCallback<R>;\n start?: UnderlyingSourceStartCallback<R>;\n type?: undefined;\n}\n\ninterface VideoConfiguration {\n bitrate: number;\n colorGamut?: ColorGamut;\n contentType: string;\n framerate: number;\n hdrMetadataType?: HdrMetadataType;\n height: number;\n scalabilityMode?: string;\n transferFunction?: TransferFunction;\n width: number;\n}\n\ninterface WebGLContextAttributes {\n alpha?: boolean;\n antialias?: boolean;\n depth?: boolean;\n desynchronized?: boolean;\n failIfMajorPerformanceCaveat?: boolean;\n powerPreference?: WebGLPowerPreference;\n premultipliedAlpha?: boolean;\n preserveDrawingBuffer?: boolean;\n stencil?: boolean;\n}\n\ninterface WebGLContextEventInit extends EventInit {\n statusMessage?: string;\n}\n\ninterface WorkerOptions {\n credentials?: RequestCredentials;\n name?: string;\n type?: WorkerType;\n}\n\n/** 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. */\ninterface ANGLE_instanced_arrays {\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;\n}\n\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\ninterface AbortController {\n /**\n * Returns the AbortSignal object associated with this object.\n */\n readonly signal: AbortSignal;\n /**\n * 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.\n */\n abort(): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": Event;\n}\n\n/** 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. */\ninterface AbortSignal extends EventTarget {\n /**\n * Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise.\n */\n readonly aborted: boolean;\n onabort: ((this: AbortSignal, ev: Event) => any) | null;\n addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AbortSignal: {\n prototype: AbortSignal;\n new(): AbortSignal;\n};\n\ninterface AbstractWorkerEventMap {\n "error": ErrorEvent;\n}\n\ninterface AbstractWorker {\n onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\n addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface AnimationFrameProvider {\n cancelAnimationFrame(handle: number): void;\n requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\n/** 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. */\ninterface Blob {\n readonly size: number;\n readonly type: string;\n arrayBuffer(): Promise<ArrayBuffer>;\n slice(start?: number, end?: number, contentType?: string): Blob;\n stream(): ReadableStream;\n text(): Promise<string>;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\ninterface Body {\n readonly body: ReadableStream<Uint8Array> | null;\n readonly bodyUsed: boolean;\n arrayBuffer(): Promise<ArrayBuffer>;\n blob(): Promise<Blob>;\n formData(): Promise<FormData>;\n json(): Promise<any>;\n text(): Promise<string>;\n}\n\ninterface BroadcastChannelEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\ninterface BroadcastChannel extends EventTarget {\n /**\n * Returns the channel name (as passed to the constructor).\n */\n readonly name: string;\n onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /**\n * Closes the BroadcastChannel object, opening it up to garbage collection.\n */\n close(): void;\n /**\n * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.\n */\n postMessage(message: any): void;\n addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BroadcastChannel: {\n prototype: BroadcastChannel;\n new(name: string): BroadcastChannel;\n};\n\n/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize<ArrayBufferView>;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n prototype: ByteLengthQueuingStrategy;\n new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\n};\n\n/** 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. */\ninterface Cache {\n add(request: RequestInfo): Promise<void>;\n addAll(requests: RequestInfo[]): Promise<void>;\n delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;\n keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;\n matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n put(request: RequestInfo, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n prototype: Cache;\n new(): Cache;\n};\n\n/** The storage for Cache objects. */\ninterface CacheStorage {\n delete(cacheName: string): Promise<boolean>;\n has(cacheName: string): Promise<boolean>;\n keys(): Promise<string[]>;\n match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\n/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */\ninterface CanvasGradient {\n /**\n * 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.\n *\n * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.\n */\n addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n prototype: CanvasGradient;\n new(): CanvasGradient;\n};\n\ninterface CanvasPath {\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n closePath(): void;\n ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n lineTo(x: number, y: number): void;\n moveTo(x: number, y: number): void;\n quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n rect(x: number, y: number, w: number, h: number): void;\n}\n\n/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */\ninterface CanvasPattern {\n /**\n * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.\n */\n setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n prototype: CanvasPattern;\n new(): CanvasPattern;\n};\n\n/** The Client interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific WindowClient. You can get Client/WindowClient objects from methods such as Clients.matchAll() and Clients.get(). */\ninterface Client {\n readonly frameType: FrameType;\n readonly id: string;\n readonly type: ClientTypes;\n readonly url: string;\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: PostMessageOptions): void;\n}\n\ndeclare var Client: {\n prototype: Client;\n new(): Client;\n};\n\n/** Provides access to Client objects. Access it via self.clients within a service worker. */\ninterface Clients {\n claim(): Promise<void>;\n get(id: string): Promise<Client | undefined>;\n matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;\n openWindow(url: string | URL): Promise<WindowClient | null>;\n}\n\ndeclare var Clients: {\n prototype: Clients;\n new(): Clients;\n};\n\n/** 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. */\ninterface CloseEvent extends Event {\n /**\n * Returns the WebSocket connection close code provided by the server.\n */\n readonly code: number;\n /**\n * Returns the WebSocket connection close reason provided by the server.\n */\n readonly reason: string;\n /**\n * Returns true if the connection closed cleanly; false otherwise.\n */\n readonly wasClean: boolean;\n}\n\ndeclare var CloseEvent: {\n prototype: CloseEvent;\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\n/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface CountQueuingStrategy extends QueuingStrategy {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize;\n}\n\ndeclare var CountQueuingStrategy: {\n prototype: CountQueuingStrategy;\n new(init: QueuingStrategyInit): CountQueuingStrategy;\n};\n\n/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */\ninterface Crypto {\n readonly subtle: SubtleCrypto;\n getRandomValues<T extends ArrayBufferView | null>(array: T): T;\n}\n\ndeclare var Crypto: {\n prototype: Crypto;\n new(): Crypto;\n};\n\n/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */\ninterface CryptoKey {\n readonly algorithm: KeyAlgorithm;\n readonly extractable: boolean;\n readonly type: KeyType;\n readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\ninterface CustomEvent<T = any> extends Event {\n /**\n * Returns any custom data event was created with. Typically used for synthetic events.\n */\n readonly detail: T;\n /** @deprecated */\n initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\n/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */\ninterface DOMException {\n readonly code: number;\n readonly message: string;\n readonly name: string;\n readonly ABORT_ERR: number;\n readonly DATA_CLONE_ERR: number;\n readonly DOMSTRING_SIZE_ERR: number;\n readonly HIERARCHY_REQUEST_ERR: number;\n readonly INDEX_SIZE_ERR: number;\n readonly INUSE_ATTRIBUTE_ERR: number;\n readonly INVALID_ACCESS_ERR: number;\n readonly INVALID_CHARACTER_ERR: number;\n readonly INVALID_MODIFICATION_ERR: number;\n readonly INVALID_NODE_TYPE_ERR: number;\n readonly INVALID_STATE_ERR: number;\n readonly NAMESPACE_ERR: number;\n readonly NETWORK_ERR: number;\n readonly NOT_FOUND_ERR: number;\n readonly NOT_SUPPORTED_ERR: number;\n readonly NO_DATA_ALLOWED_ERR: number;\n readonly NO_MODIFICATION_ALLOWED_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SYNTAX_ERR: number;\n readonly TIMEOUT_ERR: number;\n readonly TYPE_MISMATCH_ERR: number;\n readonly URL_MISMATCH_ERR: number;\n readonly VALIDATION_ERR: number;\n readonly WRONG_DOCUMENT_ERR: number;\n}\n\ndeclare var DOMException: {\n prototype: DOMException;\n new(message?: string, name?: string): DOMException;\n readonly ABORT_ERR: number;\n readonly DATA_CLONE_ERR: number;\n readonly DOMSTRING_SIZE_ERR: number;\n readonly HIERARCHY_REQUEST_ERR: number;\n readonly INDEX_SIZE_ERR: number;\n readonly INUSE_ATTRIBUTE_ERR: number;\n readonly INVALID_ACCESS_ERR: number;\n readonly INVALID_CHARACTER_ERR: number;\n readonly INVALID_MODIFICATION_ERR: number;\n readonly INVALID_NODE_TYPE_ERR: number;\n readonly INVALID_STATE_ERR: number;\n readonly NAMESPACE_ERR: number;\n readonly NETWORK_ERR: number;\n readonly NOT_FOUND_ERR: number;\n readonly NOT_SUPPORTED_ERR: number;\n readonly NO_DATA_ALLOWED_ERR: number;\n readonly NO_MODIFICATION_ALLOWED_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SYNTAX_ERR: number;\n readonly TIMEOUT_ERR: number;\n readonly TYPE_MISMATCH_ERR: number;\n readonly URL_MISMATCH_ERR: number;\n readonly VALIDATION_ERR: number;\n readonly WRONG_DOCUMENT_ERR: number;\n};\n\ninterface DOMMatrix extends DOMMatrixReadOnly {\n a: number;\n b: number;\n c: number;\n d: number;\n e: number;\n f: number;\n m11: number;\n m12: number;\n m13: number;\n m14: number;\n m21: number;\n m22: number;\n m23: number;\n m24: number;\n m31: number;\n m32: number;\n m33: number;\n m34: number;\n m41: number;\n m42: number;\n m43: number;\n m44: number;\n invertSelf(): DOMMatrix;\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n skewXSelf(sx?: number): DOMMatrix;\n skewYSelf(sy?: number): DOMMatrix;\n translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n prototype: DOMMatrix;\n new(init?: string | number[]): DOMMatrix;\n fromFloat32Array(array32: Float32Array): DOMMatrix;\n fromFloat64Array(array64: Float64Array): DOMMatrix;\n fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\ninterface DOMMatrixReadOnly {\n readonly a: number;\n readonly b: number;\n readonly c: number;\n readonly d: number;\n readonly e: number;\n readonly f: number;\n readonly is2D: boolean;\n readonly isIdentity: boolean;\n readonly m11: number;\n readonly m12: number;\n readonly m13: number;\n readonly m14: number;\n readonly m21: number;\n readonly m22: number;\n readonly m23: number;\n readonly m24: number;\n readonly m31: number;\n readonly m32: number;\n readonly m33: number;\n readonly m34: number;\n readonly m41: number;\n readonly m42: number;\n readonly m43: number;\n readonly m44: number;\n flipX(): DOMMatrix;\n flipY(): DOMMatrix;\n inverse(): DOMMatrix;\n multiply(other?: DOMMatrixInit): DOMMatrix;\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVector(x?: number, y?: number): DOMMatrix;\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** @deprecated */\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n skewX(sx?: number): DOMMatrix;\n skewY(sy?: number): DOMMatrix;\n toFloat32Array(): Float32Array;\n toFloat64Array(): Float64Array;\n toJSON(): any;\n transformPoint(point?: DOMPointInit): DOMPoint;\n translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrixReadOnly: {\n prototype: DOMMatrixReadOnly;\n new(init?: string | number[]): DOMMatrixReadOnly;\n fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\n fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n};\n\ninterface DOMPoint extends DOMPointReadOnly {\n w: number;\n x: number;\n y: number;\n z: number;\n}\n\ndeclare var DOMPoint: {\n prototype: DOMPoint;\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\ninterface DOMPointReadOnly {\n readonly w: number;\n readonly x: number;\n readonly y: number;\n readonly z: number;\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n prototype: DOMPointReadOnly;\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\ninterface DOMQuad {\n readonly p1: DOMPoint;\n readonly p2: DOMPoint;\n readonly p3: DOMPoint;\n readonly p4: DOMPoint;\n getBounds(): DOMRect;\n toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n prototype: DOMQuad;\n new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n fromQuad(other?: DOMQuadInit): DOMQuad;\n fromRect(other?: DOMRectInit): DOMQuad;\n};\n\ninterface DOMRect extends DOMRectReadOnly {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\ndeclare var DOMRect: {\n prototype: DOMRect;\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n fromRect(other?: DOMRectInit): DOMRect;\n};\n\ninterface DOMRectReadOnly {\n readonly bottom: number;\n readonly height: number;\n readonly left: number;\n readonly right: number;\n readonly top: number;\n readonly width: number;\n readonly x: number;\n readonly y: number;\n toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/** A type returned by some APIs which contains a list of DOMString (strings). */\ninterface DOMStringList {\n /**\n * Returns the number of strings in strings.\n */\n readonly length: number;\n /**\n * Returns true if strings contains string, and false otherwise.\n */\n contains(string: string): boolean;\n /**\n * Returns the string with index index from strings.\n */\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n prototype: DOMStringList;\n new(): DOMStringList;\n};\n\ninterface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** (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. */\ninterface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {\n /**\n * Returns dedicatedWorkerGlobal\'s name, i.e. the value given to the Worker constructor. Primarily useful for debugging.\n */\n readonly name: string;\n onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /**\n * Aborts dedicatedWorkerGlobal.\n */\n close(): void;\n /**\n * 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.\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: PostMessageOptions): void;\n addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var DedicatedWorkerGlobalScope: {\n prototype: DedicatedWorkerGlobalScope;\n new(): DedicatedWorkerGlobalScope;\n};\n\ninterface EXT_blend_minmax {\n readonly MAX_EXT: GLenum;\n readonly MIN_EXT: GLenum;\n}\n\ninterface EXT_color_buffer_float {\n}\n\ninterface EXT_color_buffer_half_float {\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;\n readonly RGB16F_EXT: GLenum;\n readonly RGBA16F_EXT: GLenum;\n readonly UNSIGNED_NORMALIZED_EXT: GLenum;\n}\n\ninterface EXT_float_blend {\n}\n\n/** 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. */\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;\n readonly SRGB8_ALPHA8_EXT: GLenum;\n readonly SRGB_ALPHA_EXT: GLenum;\n readonly SRGB_EXT: GLenum;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\ninterface EXT_texture_compression_rgtc {\n readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;\n readonly COMPRESSED_RED_RGTC1_EXT: GLenum;\n readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;\n readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;\n}\n\n/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */\ninterface EXT_texture_filter_anisotropic {\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n}\n\n/** Events providing information related to errors in scripts or in files. */\ninterface ErrorEvent extends Event {\n readonly colno: number;\n readonly error: any;\n readonly filename: string;\n readonly lineno: number;\n readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/** An event which takes place in the DOM. */\ninterface Event {\n /**\n * 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.\n */\n readonly bubbles: boolean;\n cancelBubble: boolean;\n /**\n * 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.\n */\n readonly cancelable: boolean;\n /**\n * 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.\n */\n readonly composed: boolean;\n /**\n * Returns the object whose event listener\'s callback is currently being invoked.\n */\n readonly currentTarget: EventTarget | null;\n /**\n * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.\n */\n readonly defaultPrevented: boolean;\n /**\n * Returns the event\'s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.\n */\n readonly eventPhase: number;\n /**\n * Returns true if event was dispatched by the user agent, and false otherwise.\n */\n readonly isTrusted: boolean;\n /** @deprecated */\n returnValue: boolean;\n /** @deprecated */\n readonly srcElement: EventTarget | null;\n /**\n * Returns the object to which event is dispatched (its target).\n */\n readonly target: EventTarget | null;\n /**\n * Returns the event\'s timestamp as the number of milliseconds measured relative to the time origin.\n */\n readonly timeStamp: DOMHighResTimeStamp;\n /**\n * Returns the type of event, e.g. "click", "hashchange", or "submit".\n */\n readonly type: string;\n /**\n * 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.\n */\n composedPath(): EventTarget[];\n /** @deprecated */\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n /**\n * 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.\n */\n preventDefault(): void;\n /**\n * 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.\n */\n stopImmediatePropagation(): void;\n /**\n * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.\n */\n stopPropagation(): void;\n readonly AT_TARGET: number;\n readonly BUBBLING_PHASE: number;\n readonly CAPTURING_PHASE: number;\n readonly NONE: number;\n}\n\ndeclare var Event: {\n prototype: Event;\n new(type: string, eventInitDict?: EventInit): Event;\n readonly AT_TARGET: number;\n readonly BUBBLING_PHASE: number;\n readonly CAPTURING_PHASE: number;\n readonly NONE: number;\n};\n\ninterface EventListener {\n (evt: Event): void;\n}\n\ninterface EventListenerObject {\n handleEvent(object: Event): void;\n}\n\ninterface EventSourceEventMap {\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\ninterface EventSource extends EventTarget {\n onerror: ((this: EventSource, ev: Event) => any) | null;\n onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n onopen: ((this: EventSource, ev: Event) => any) | null;\n /**\n * Returns the state of this EventSource object\'s connection. It can have the values described below.\n */\n readonly readyState: number;\n /**\n * Returns the URL providing the event stream.\n */\n readonly url: string;\n /**\n * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.\n */\n readonly withCredentials: boolean;\n /**\n * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.\n */\n close(): void;\n readonly CLOSED: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var EventSource: {\n prototype: EventSource;\n new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;\n readonly CLOSED: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n};\n\n/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */\ninterface EventTarget {\n /**\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * When set to true, options\'s passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.\n *\n * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will be removed.\n *\n * If an AbortSignal is passed for options\'s signal, then the event listener will be removed when signal is aborted.\n *\n * The event listener is appended to target\'s event listener list and is not appended if it has the same type, callback, and capture.\n */\n addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\n /**\n * 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.\n */\n dispatchEvent(event: Event): boolean;\n /**\n * Removes the event listener in target\'s event listener list with the same type, callback, and options.\n */\n removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n prototype: EventTarget;\n new(): EventTarget;\n};\n\n/** 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. */\ninterface ExtendableEvent extends Event {\n waitUntil(f: any): void;\n}\n\ndeclare var ExtendableEvent: {\n prototype: ExtendableEvent;\n new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;\n};\n\n/** 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) — extends the lifetime of such events. */\ninterface ExtendableMessageEvent extends ExtendableEvent {\n readonly data: any;\n readonly lastEventId: string;\n readonly origin: string;\n readonly ports: ReadonlyArray<MessagePort>;\n readonly source: Client | ServiceWorker | MessagePort | null;\n}\n\ndeclare var ExtendableMessageEvent: {\n prototype: ExtendableMessageEvent;\n new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;\n};\n\n/** This is the event type for fetch events dispatched on the service worker global scope. It contains information about the fetch, including the request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. */\ninterface FetchEvent extends ExtendableEvent {\n readonly clientId: string;\n readonly handled: Promise<undefined>;\n readonly request: Request;\n readonly resultingClientId: string;\n respondWith(r: Response | PromiseLike<Response>): void;\n}\n\ndeclare var FetchEvent: {\n prototype: FetchEvent;\n new(type: string, eventInitDict: FetchEventInit): FetchEvent;\n};\n\n/** Provides information about files and allows JavaScript in a web page to access their content. */\ninterface File extends Blob {\n readonly lastModified: number;\n readonly name: string;\n readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n prototype: File;\n new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\n/** 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. */\ninterface FileList {\n readonly length: number;\n item(index: number): File | null;\n [index: number]: File;\n}\n\ndeclare var FileList: {\n prototype: FileList;\n new(): FileList;\n};\n\ninterface FileReaderEventMap {\n "abort": ProgressEvent<FileReader>;\n "error": ProgressEvent<FileReader>;\n "load": ProgressEvent<FileReader>;\n "loadend": ProgressEvent<FileReader>;\n "loadstart": ProgressEvent<FileReader>;\n "progress": ProgressEvent<FileReader>;\n}\n\n/** 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. */\ninterface FileReader extends EventTarget {\n readonly error: DOMException | null;\n onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n readonly readyState: number;\n readonly result: string | ArrayBuffer | null;\n abort(): void;\n readAsArrayBuffer(blob: Blob): void;\n readAsBinaryString(blob: Blob): void;\n readAsDataURL(blob: Blob): void;\n readAsText(blob: Blob, encoding?: string): void;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FileReader: {\n prototype: FileReader;\n new(): FileReader;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n};\n\n/** Allows to read File or Blob objects in a synchronous way. */\ninterface FileReaderSync {\n readAsArrayBuffer(blob: Blob): ArrayBuffer;\n /** @deprecated */\n readAsBinaryString(blob: Blob): string;\n readAsDataURL(blob: Blob): string;\n readAsText(blob: Blob, encoding?: string): string;\n}\n\ndeclare var FileReaderSync: {\n prototype: FileReaderSync;\n new(): FileReaderSync;\n};\n\ninterface FontFace {\n ascentOverride: string;\n descentOverride: string;\n display: string;\n family: string;\n featureSettings: string;\n lineGapOverride: string;\n readonly loaded: Promise<FontFace>;\n readonly status: FontFaceLoadStatus;\n stretch: string;\n style: string;\n unicodeRange: string;\n variant: string;\n variationSettings: string;\n weight: string;\n load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n prototype: FontFace;\n new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n "loading": Event;\n "loadingdone": Event;\n "loadingerror": Event;\n}\n\ninterface FontFaceSet extends EventTarget {\n onloading: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\n readonly ready: Promise<FontFaceSet>;\n readonly status: FontFaceSetLoadStatus;\n check(font: string, text?: string): boolean;\n load(font: string, text?: string): Promise<FontFace[]>;\n forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\n addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FontFaceSet: {\n prototype: FontFaceSet;\n new(initialFaces: FontFace[]): FontFaceSet;\n};\n\ninterface FontFaceSetLoadEvent extends Event {\n readonly fontfaces: ReadonlyArray<FontFace>;\n}\n\ndeclare var FontFaceSetLoadEvent: {\n prototype: FontFaceSetLoadEvent;\n new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\n};\n\ninterface FontFaceSource {\n readonly fonts: FontFaceSet;\n}\n\n/** 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". */\ninterface FormData {\n append(name: string, value: string | Blob, fileName?: string): void;\n delete(name: string): void;\n get(name: string): FormDataEntryValue | null;\n getAll(name: string): FormDataEntryValue[];\n has(name: string): boolean;\n set(name: string, value: string | Blob, fileName?: string): void;\n forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;\n}\n\ndeclare var FormData: {\n prototype: FormData;\n new(): FormData;\n};\n\ninterface GenericTransformStream {\n readonly readable: ReadableStream;\n readonly writable: WritableStream;\n}\n\n/** 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 of zero or more name and value pairs.  You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */\ninterface Headers {\n append(name: string, value: string): void;\n delete(name: string): void;\n get(name: string): string | null;\n has(name: string): boolean;\n set(name: string, value: string): void;\n forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;\n}\n\ndeclare var Headers: {\n prototype: Headers;\n new(init?: HeadersInit): Headers;\n};\n\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */\ninterface IDBCursor {\n /**\n * Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.\n */\n readonly direction: IDBCursorDirection;\n /**\n * Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n */\n readonly key: IDBValidKey;\n /**\n * Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n */\n readonly primaryKey: IDBValidKey;\n readonly request: IDBRequest;\n /**\n * Returns the IDBObjectStore or IDBIndex the cursor was opened from.\n */\n readonly source: IDBObjectStore | IDBIndex;\n /**\n * Advances the cursor through the next count records in range.\n */\n advance(count: number): void;\n /**\n * Advances the cursor to the next record in range.\n */\n continue(key?: IDBValidKey): void;\n /**\n * 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.\n */\n continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n /**\n * Delete the record pointed at by the cursor with a new value.\n *\n * If successful, request\'s result will be undefined.\n */\n delete(): IDBRequest<undefined>;\n /**\n * Updated the record pointed at by the cursor with a new value.\n *\n * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n update(value: any): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBCursor: {\n prototype: IDBCursor;\n new(): IDBCursor;\n};\n\n/** 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. */\ninterface IDBCursorWithValue extends IDBCursor {\n /**\n * Returns the cursor\'s current value.\n */\n readonly value: any;\n}\n\ndeclare var IDBCursorWithValue: {\n prototype: IDBCursorWithValue;\n new(): IDBCursorWithValue;\n};\n\ninterface IDBDatabaseEventMap {\n "abort": Event;\n "close": Event;\n "error": Event;\n "versionchange": IDBVersionChangeEvent;\n}\n\n/** 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. */\ninterface IDBDatabase extends EventTarget {\n /**\n * Returns the name of the database.\n */\n readonly name: string;\n /**\n * Returns a list of the names of object stores in the database.\n */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n onclose: ((this: IDBDatabase, ev: Event) => any) | null;\n onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;\n /**\n * Returns the version of the database.\n */\n readonly version: number;\n /**\n * Closes the connection once all running transactions have finished.\n */\n close(): void;\n /**\n * Creates a new object store with the given name and options and returns a new IDBObjectStore.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n /**\n * Deletes the object store with the given name.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n deleteObjectStore(name: string): void;\n /**\n * 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.\n */\n transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;\n addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBDatabase: {\n prototype: IDBDatabase;\n new(): IDBDatabase;\n};\n\n/** 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.) */\ninterface IDBFactory {\n /**\n * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n *\n * Throws a "DataError" DOMException if either input is not a valid key.\n */\n cmp(first: any, second: any): number;\n databases(): Promise<IDBDatabaseInfo[]>;\n /**\n * 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.\n */\n deleteDatabase(name: string): IDBOpenDBRequest;\n /**\n * 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.\n */\n open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n prototype: IDBFactory;\n new(): IDBFactory;\n};\n\n/** 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. */\ninterface IDBIndex {\n readonly keyPath: string | string[];\n readonly multiEntry: boolean;\n /**\n * Returns the name of the index.\n */\n name: string;\n /**\n * Returns the IDBObjectStore the index belongs to.\n */\n readonly objectStore: IDBObjectStore;\n readonly unique: boolean;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue, or null if there were no matching records.\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * 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.\n *\n * If successful, request\'s result will be an IDBCursor, or null if there were no matching records.\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n}\n\ndeclare var IDBIndex: {\n prototype: IDBIndex;\n new(): IDBIndex;\n};\n\n/** 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: */\ninterface IDBKeyRange {\n /**\n * Returns lower bound, or undefined if none.\n */\n readonly lower: any;\n /**\n * Returns true if the lower open flag is set, and false otherwise.\n */\n readonly lowerOpen: boolean;\n /**\n * Returns upper bound, or undefined if none.\n */\n readonly upper: any;\n /**\n * Returns true if the upper open flag is set, and false otherwise.\n */\n readonly upperOpen: boolean;\n /**\n * Returns true if key is included in the range, and false otherwise.\n */\n includes(key: any): boolean;\n}\n\ndeclare var IDBKeyRange: {\n prototype: IDBKeyRange;\n new(): IDBKeyRange;\n /**\n * 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.\n */\n bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.\n */\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange spanning only key.\n */\n only(value: any): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.\n */\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) */\ninterface IDBObjectStore {\n /**\n * Returns true if the store has a key generator, and false otherwise.\n */\n readonly autoIncrement: boolean;\n /**\n * Returns a list of the names of indexes in the store.\n */\n readonly indexNames: DOMStringList;\n /**\n * Returns the key path of the store, or null if none.\n */\n readonly keyPath: string | string[];\n /**\n * Returns the name of the store.\n */\n name: string;\n /**\n * Returns the associated transaction.\n */\n readonly transaction: IDBTransaction;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * 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.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n /**\n * Deletes all records in store.\n *\n * If successful, request\'s result will be undefined.\n */\n clear(): IDBRequest<undefined>;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * 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.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n /**\n * Deletes records in store with the given key or in the given key range in query.\n *\n * If successful, request\'s result will be undefined.\n */\n delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n /**\n * Deletes the index in store with the given name.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n deleteIndex(name: string): void;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n index(name: string): IDBIndex;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * 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.\n *\n * If successful, request\'s result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * 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.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBObjectStore: {\n prototype: IDBObjectStore;\n new(): IDBObjectStore;\n};\n\ninterface IDBOpenDBRequestEventMap extends IDBRequestEventMap {\n "blocked": Event;\n "upgradeneeded": IDBVersionChangeEvent;\n}\n\n/** Also inherits methods from its parents IDBRequest and EventTarget. */\ninterface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {\n onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;\n onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBOpenDBRequest: {\n prototype: IDBOpenDBRequest;\n new(): IDBOpenDBRequest;\n};\n\ninterface IDBRequestEventMap {\n "error": Event;\n "success": Event;\n}\n\n/** 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. */\ninterface IDBRequest<T = any> extends EventTarget {\n /**\n * 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.\n */\n readonly error: DOMException | null;\n onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;\n onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /**\n * Returns "pending" until a request is complete, then returns "done".\n */\n readonly readyState: IDBRequestReadyState;\n /**\n * When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.\n */\n readonly result: T;\n /**\n * Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.\n */\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n /**\n * 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.\n */\n readonly transaction: IDBTransaction | null;\n addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBRequest: {\n prototype: IDBRequest;\n new(): IDBRequest;\n};\n\ninterface IDBTransactionEventMap {\n "abort": Event;\n "complete": Event;\n "error": Event;\n}\n\ninterface IDBTransaction extends EventTarget {\n /**\n * Returns the transaction\'s connection.\n */\n readonly db: IDBDatabase;\n /**\n * If the transaction was aborted, returns the error (a DOMException) providing the reason.\n */\n readonly error: DOMException | null;\n /**\n * Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.\n */\n readonly mode: IDBTransactionMode;\n /**\n * 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.\n */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBTransaction, ev: Event) => any) | null;\n oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;\n onerror: ((this: IDBTransaction, ev: Event) => any) | null;\n /**\n * Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.\n */\n abort(): void;\n commit(): void;\n /**\n * Returns an IDBObjectStore in the transaction\'s scope.\n */\n objectStore(name: string): IDBObjectStore;\n addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBTransaction: {\n prototype: IDBTransaction;\n new(): IDBTransaction;\n};\n\n/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */\ninterface IDBVersionChangeEvent extends Event {\n readonly newVersion: number | null;\n readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n prototype: IDBVersionChangeEvent;\n new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\n\ninterface ImageBitmap {\n /**\n * Returns the intrinsic height of the image, in CSS pixels.\n */\n readonly height: number;\n /**\n * Returns the intrinsic width of the image, in CSS pixels.\n */\n readonly width: number;\n /**\n * Releases imageBitmap\'s underlying bitmap data.\n */\n close(): void;\n}\n\ndeclare var ImageBitmap: {\n prototype: ImageBitmap;\n new(): ImageBitmap;\n};\n\ninterface ImageBitmapRenderingContext {\n /**\n * Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.\n */\n transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n prototype: ImageBitmapRenderingContext;\n new(): ImageBitmapRenderingContext;\n};\n\n/** 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(). */\ninterface ImageData {\n /**\n * Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.\n */\n readonly data: Uint8ClampedArray;\n /**\n * Returns the actual dimensions of the data in the ImageData object, in pixels.\n */\n readonly height: number;\n /**\n * Returns the actual dimensions of the data in the ImageData object, in pixels.\n */\n readonly width: number;\n}\n\ndeclare var ImageData: {\n prototype: ImageData;\n new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\ninterface KHR_parallel_shader_compile {\n readonly COMPLETION_STATUS_KHR: GLenum;\n}\n\ninterface MediaCapabilities {\n decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n prototype: MediaCapabilities;\n new(): MediaCapabilities;\n};\n\n/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */\ninterface MessageChannel {\n /**\n * Returns the first MessagePort object.\n */\n readonly port1: MessagePort;\n /**\n * Returns the second MessagePort object.\n */\n readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n prototype: MessageChannel;\n new(): MessageChannel;\n};\n\n/** A message received by a target object. */\ninterface MessageEvent<T = any> extends Event {\n /**\n * Returns the data of the message.\n */\n readonly data: T;\n /**\n * Returns the last event ID string, for server-sent events.\n */\n readonly lastEventId: string;\n /**\n * Returns the origin of the message, for server-sent events and cross-document messaging.\n */\n readonly origin: string;\n /**\n * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.\n */\n readonly ports: ReadonlyArray<MessagePort>;\n /**\n * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.\n */\n readonly source: MessageEventSource | null;\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;\n}\n\ndeclare var MessageEvent: {\n prototype: MessageEvent;\n new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;\n};\n\ninterface MessagePortEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** 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. */\ninterface MessagePort extends EventTarget {\n onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /**\n * Disconnects the port, so that it is no longer active.\n */\n close(): void;\n /**\n * 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.\n *\n * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: PostMessageOptions): void;\n /**\n * Begins dispatching messages received on the port.\n */\n start(): void;\n addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MessagePort: {\n prototype: MessagePort;\n new(): MessagePort;\n};\n\ninterface NavigatorConcurrentHardware {\n readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorID {\n /** @deprecated */\n readonly appCodeName: string;\n /** @deprecated */\n readonly appName: string;\n /** @deprecated */\n readonly appVersion: string;\n /** @deprecated */\n readonly platform: string;\n /** @deprecated */\n readonly product: string;\n readonly userAgent: string;\n}\n\ninterface NavigatorLanguage {\n readonly language: string;\n readonly languages: ReadonlyArray<string>;\n}\n\ninterface NavigatorNetworkInformation {\n readonly connection: NetworkInformation;\n}\n\ninterface NavigatorOnLine {\n readonly onLine: boolean;\n}\n\ninterface NavigatorStorage {\n readonly storage: StorageManager;\n}\n\ninterface NetworkInformation extends EventTarget {\n readonly type: ConnectionType;\n}\n\ndeclare var NetworkInformation: {\n prototype: NetworkInformation;\n new(): NetworkInformation;\n};\n\ninterface NotificationEventMap {\n "click": Event;\n "close": Event;\n "error": Event;\n "show": Event;\n}\n\n/** This Notifications API interface is used to configure and display desktop notifications to the user. */\ninterface Notification extends EventTarget {\n readonly body: string;\n readonly data: any;\n readonly dir: NotificationDirection;\n readonly icon: string;\n readonly lang: string;\n onclick: ((this: Notification, ev: Event) => any) | null;\n onclose: ((this: Notification, ev: Event) => any) | null;\n onerror: ((this: Notification, ev: Event) => any) | null;\n onshow: ((this: Notification, ev: Event) => any) | null;\n readonly tag: string;\n readonly title: string;\n close(): void;\n addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Notification: {\n prototype: Notification;\n new(title: string, options?: NotificationOptions): Notification;\n readonly permission: NotificationPermission;\n};\n\n/** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */\ninterface NotificationEvent extends ExtendableEvent {\n readonly action: string;\n readonly notification: Notification;\n}\n\ndeclare var NotificationEvent: {\n prototype: NotificationEvent;\n new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;\n};\n\n/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */\ninterface OES_element_index_uint {\n}\n\ninterface OES_fbo_render_mipmap {\n}\n\n/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */\ninterface OES_standard_derivatives {\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;\n}\n\n/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */\ninterface OES_texture_float {\n}\n\n/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */\ninterface OES_texture_float_linear {\n}\n\n/** 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. */\ninterface OES_texture_half_float {\n readonly HALF_FLOAT_OES: GLenum;\n}\n\n/** 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. */\ninterface OES_texture_half_float_linear {\n}\n\ninterface OES_vertex_array_object {\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n readonly VERTEX_ARRAY_BINDING_OES: GLenum;\n}\n\ninterface OVR_multiview2 {\n framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;\n readonly MAX_VIEWS_OVR: GLenum;\n}\n\n/** @deprecated this is not available in most browsers */\ninterface OffscreenCanvas extends EventTarget {\n}\n\n/** 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. */\ninterface Path2D extends CanvasPath {\n /**\n * Adds to the path the path given by the argument.\n */\n addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n prototype: Path2D;\n new(path?: Path2D | string): Path2D;\n};\n\ninterface PerformanceEventMap {\n "resourcetimingbufferfull": Event;\n}\n\n/** 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. */\ninterface Performance extends EventTarget {\n onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;\n readonly timeOrigin: DOMHighResTimeStamp;\n clearMarks(markName?: string): void;\n clearMeasures(measureName?: string): void;\n clearResourceTimings(): void;\n getEntries(): PerformanceEntryList;\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n getEntriesByType(type: string): PerformanceEntryList;\n mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n now(): DOMHighResTimeStamp;\n setResourceTimingBufferSize(maxSize: number): void;\n toJSON(): any;\n addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Performance: {\n prototype: Performance;\n new(): Performance;\n};\n\n/** 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). */\ninterface PerformanceEntry {\n readonly duration: DOMHighResTimeStamp;\n readonly entryType: string;\n readonly name: string;\n readonly startTime: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\n/** PerformanceMark is 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. */\ninterface PerformanceMark extends PerformanceEntry {\n readonly detail: any;\n}\n\ndeclare var PerformanceMark: {\n prototype: PerformanceMark;\n new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n};\n\n/** 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. */\ninterface PerformanceMeasure extends PerformanceEntry {\n readonly detail: any;\n}\n\ndeclare var PerformanceMeasure: {\n prototype: PerformanceMeasure;\n new(): PerformanceMeasure;\n};\n\ninterface PerformanceObserver {\n disconnect(): void;\n observe(options?: PerformanceObserverInit): void;\n takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n prototype: PerformanceObserver;\n new(callback: PerformanceObserverCallback): PerformanceObserver;\n readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\ninterface PerformanceObserverEntryList {\n getEntries(): PerformanceEntryList;\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n prototype: PerformanceObserverEntryList;\n new(): PerformanceObserverEntryList;\n};\n\n/** 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. */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n readonly connectEnd: DOMHighResTimeStamp;\n readonly connectStart: DOMHighResTimeStamp;\n readonly decodedBodySize: number;\n readonly domainLookupEnd: DOMHighResTimeStamp;\n readonly domainLookupStart: DOMHighResTimeStamp;\n readonly encodedBodySize: number;\n readonly fetchStart: DOMHighResTimeStamp;\n readonly initiatorType: string;\n readonly nextHopProtocol: string;\n readonly redirectEnd: DOMHighResTimeStamp;\n readonly redirectStart: DOMHighResTimeStamp;\n readonly requestStart: DOMHighResTimeStamp;\n readonly responseEnd: DOMHighResTimeStamp;\n readonly responseStart: DOMHighResTimeStamp;\n readonly secureConnectionStart: DOMHighResTimeStamp;\n readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n readonly transferSize: number;\n readonly workerStart: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\ninterface PerformanceServerTiming {\n readonly description: string;\n readonly duration: DOMHighResTimeStamp;\n readonly name: string;\n toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n prototype: PerformanceServerTiming;\n new(): PerformanceServerTiming;\n};\n\ninterface PermissionStatusEventMap {\n "change": Event;\n}\n\ninterface PermissionStatus extends EventTarget {\n onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n readonly state: PermissionState;\n addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PermissionStatus: {\n prototype: PermissionStatus;\n new(): PermissionStatus;\n};\n\ninterface Permissions {\n query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n prototype: Permissions;\n new(): Permissions;\n};\n\n/** 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>). */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n readonly lengthComputable: boolean;\n readonly loaded: number;\n readonly target: T | null;\n readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\ninterface PromiseRejectionEvent extends Event {\n readonly promise: Promise<any>;\n readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n prototype: PromiseRejectionEvent;\n new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\n/** 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. */\ninterface PushEvent extends ExtendableEvent {\n readonly data: PushMessageData | null;\n}\n\ndeclare var PushEvent: {\n prototype: PushEvent;\n new(type: string, eventInitDict?: PushEventInit): PushEvent;\n};\n\n/** This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. */\ninterface PushManager {\n getSubscription(): Promise<PushSubscription | null>;\n permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;\n subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n prototype: PushManager;\n new(): PushManager;\n readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/** This Push API interface provides methods which let you retrieve the push data sent by a server in various formats. */\ninterface PushMessageData {\n arrayBuffer(): ArrayBuffer;\n blob(): Blob;\n json(): any;\n text(): string;\n}\n\ndeclare var PushMessageData: {\n prototype: PushMessageData;\n new(): PushMessageData;\n};\n\n/** This Push API interface provides a subcription\'s URL endpoint and allows unsubscription from a push service. */\ninterface PushSubscription {\n readonly endpoint: string;\n readonly options: PushSubscriptionOptions;\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n toJSON(): PushSubscriptionJSON;\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\ninterface PushSubscriptionOptions {\n readonly applicationServerKey: ArrayBuffer | null;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\n/** 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. */\ninterface ReadableStream<R = any> {\n readonly locked: boolean;\n cancel(reason?: any): Promise<void>;\n getReader(): ReadableStreamDefaultReader<R>;\n pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n tee(): [ReadableStream<R>, ReadableStream<R>];\n forEach(callbackfn: (value: any, key: number, parent: ReadableStream<R>) => void, thisArg?: any): void;\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\ninterface ReadableStreamDefaultController<R = any> {\n readonly desiredSize: number | null;\n close(): void;\n enqueue(chunk?: R): void;\n error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n prototype: ReadableStreamDefaultController;\n new(): ReadableStreamDefaultController;\n};\n\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n read(): Promise<ReadableStreamDefaultReadResult<R>>;\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamDefaultReader: {\n prototype: ReadableStreamDefaultReader;\n new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;\n};\n\ninterface ReadableStreamGenericReader {\n readonly closed: Promise<undefined>;\n cancel(reason?: any): Promise<void>;\n}\n\n/** This Fetch API interface represents a resource request. */\ninterface Request extends Body {\n /**\n * Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser\'s cache when fetching.\n */\n readonly cache: RequestCache;\n /**\n * 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.\n */\n readonly credentials: RequestCredentials;\n /**\n * Returns the kind of resource requested by request, e.g., "document" or "script".\n */\n readonly destination: RequestDestination;\n /**\n * 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.\n */\n readonly headers: Headers;\n /**\n * 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]\n */\n readonly integrity: string;\n /**\n * Returns a boolean indicating whether or not request can outlive the global in which it was created.\n */\n readonly keepalive: boolean;\n /**\n * Returns request\'s HTTP method, which is "GET" by default.\n */\n readonly method: string;\n /**\n * 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.\n */\n readonly mode: RequestMode;\n /**\n * 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.\n */\n readonly redirect: RequestRedirect;\n /**\n * 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.\n */\n readonly referrer: string;\n /**\n * Returns the referrer policy associated with request. This is used during fetching to compute the value of the request\'s referrer.\n */\n readonly referrerPolicy: ReferrerPolicy;\n /**\n * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.\n */\n readonly signal: AbortSignal;\n /**\n * Returns the URL of request as a string.\n */\n readonly url: string;\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: RequestInfo, init?: RequestInit): Request;\n};\n\n/** This Fetch API interface represents the response to a request. */\ninterface Response extends Body {\n readonly headers: Headers;\n readonly ok: boolean;\n readonly redirected: boolean;\n readonly status: number;\n readonly statusText: string;\n readonly type: ResponseType;\n readonly url: string;\n clone(): Response;\n}\n\ndeclare var Response: {\n prototype: Response;\n new(body?: BodyInit | null, init?: ResponseInit): Response;\n error(): Response;\n redirect(url: string | URL, status?: number): Response;\n};\n\n/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */\ninterface SecurityPolicyViolationEvent extends Event {\n readonly blockedURI: string;\n readonly columnNumber: number;\n readonly disposition: SecurityPolicyViolationEventDisposition;\n readonly documentURI: string;\n readonly effectiveDirective: string;\n readonly lineNumber: number;\n readonly originalPolicy: string;\n readonly referrer: string;\n readonly sample: string;\n readonly sourceFile: string;\n readonly statusCode: number;\n readonly violatedDirective: string;\n}\n\ndeclare var SecurityPolicyViolationEvent: {\n prototype: SecurityPolicyViolationEvent;\n new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;\n};\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n "statechange": Event;\n}\n\n/** 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. */\ninterface ServiceWorker extends EventTarget, AbstractWorker {\n onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;\n readonly scriptURL: string;\n readonly state: ServiceWorkerState;\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: PostMessageOptions): void;\n addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorker: {\n prototype: ServiceWorker;\n new(): ServiceWorker;\n};\n\ninterface ServiceWorkerContainerEventMap {\n "controllerchange": Event;\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** The ServiceWorkerContainer interface of the ServiceWorker API provides 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. */\ninterface ServiceWorkerContainer extends EventTarget {\n readonly controller: ServiceWorker | null;\n oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n readonly ready: Promise<ServiceWorkerRegistration>;\n getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n startMessages(): void;\n addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerContainer: {\n prototype: ServiceWorkerContainer;\n new(): ServiceWorkerContainer;\n};\n\ninterface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "activate": ExtendableEvent;\n "fetch": FetchEvent;\n "install": ExtendableEvent;\n "message": ExtendableMessageEvent;\n "messageerror": MessageEvent;\n "notificationclick": NotificationEvent;\n "notificationclose": NotificationEvent;\n "push": PushEvent;\n}\n\n/** This ServiceWorker API interface represents the global execution context of a service worker. */\ninterface ServiceWorkerGlobalScope extends WorkerGlobalScope {\n readonly clients: Clients;\n onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;\n onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;\n oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;\n onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;\n onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;\n onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;\n onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;\n onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;\n readonly registration: ServiceWorkerRegistration;\n skipWaiting(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerGlobalScope: {\n prototype: ServiceWorkerGlobalScope;\n new(): ServiceWorkerGlobalScope;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n "updatefound": Event;\n}\n\n/** 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. */\ninterface ServiceWorkerRegistration extends EventTarget {\n readonly active: ServiceWorker | null;\n readonly installing: ServiceWorker | null;\n onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;\n readonly pushManager: PushManager;\n readonly scope: string;\n readonly updateViaCache: ServiceWorkerUpdateViaCache;\n readonly waiting: ServiceWorker | null;\n getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n showNotification(title: string, options?: NotificationOptions): Promise<void>;\n unregister(): Promise<boolean>;\n update(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerRegistration: {\n prototype: ServiceWorkerRegistration;\n new(): ServiceWorkerRegistration;\n};\n\ninterface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "connect": MessageEvent;\n}\n\ninterface SharedWorkerGlobalScope extends WorkerGlobalScope {\n /**\n * 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.\n */\n readonly name: string;\n onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /**\n * Aborts sharedWorkerGlobal.\n */\n close(): void;\n addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SharedWorkerGlobalScope: {\n prototype: SharedWorkerGlobalScope;\n new(): SharedWorkerGlobalScope;\n};\n\ninterface StorageManager {\n estimate(): Promise<StorageEstimate>;\n persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n prototype: StorageManager;\n new(): StorageManager;\n};\n\n/** 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). */\ninterface SubtleCrypto {\n decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;\n deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;\n exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;\n exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n 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>;\n verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n prototype: SubtleCrypto;\n new(): SubtleCrypto;\n};\n\n/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */\ninterface TextDecoder extends TextDecoderCommon {\n /**\n * 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.\n *\n * ```\n * var string = "", decoder = new TextDecoder(encoding), buffer;\n * while(buffer = next_chunk()) {\n * string += decoder.decode(buffer, {stream:true});\n * }\n * string += decoder.decode(); // end-of-queue\n * ```\n *\n * If the error mode is "fatal" and encoding\'s decoder returns error, throws a TypeError.\n */\n decode(input?: BufferSource, options?: TextDecodeOptions): string;\n}\n\ndeclare var TextDecoder: {\n prototype: TextDecoder;\n new(label?: string, options?: TextDecoderOptions): TextDecoder;\n};\n\ninterface TextDecoderCommon {\n /**\n * Returns encoding\'s name, lowercased.\n */\n readonly encoding: string;\n /**\n * Returns true if error mode is "fatal", otherwise false.\n */\n readonly fatal: boolean;\n /**\n * Returns the value of ignore BOM.\n */\n readonly ignoreBOM: boolean;\n}\n\ninterface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {\n readonly readable: ReadableStream<string>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var TextDecoderStream: {\n prototype: TextDecoderStream;\n new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */\ninterface TextEncoder extends TextEncoderCommon {\n /**\n * Returns the result of running UTF-8\'s encoder.\n */\n encode(input?: string): Uint8Array;\n /**\n * 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.\n */\n encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n /**\n * Returns "utf-8".\n */\n readonly encoding: string;\n}\n\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n readonly readable: ReadableStream<Uint8Array>;\n readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n prototype: TextEncoderStream;\n new(): TextEncoderStream;\n};\n\n/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */\ninterface TextMetrics {\n /**\n * Returns the measurement described below.\n */\n readonly actualBoundingBoxAscent: number;\n /**\n * Returns the measurement described below.\n */\n readonly actualBoundingBoxDescent: number;\n /**\n * Returns the measurement described below.\n */\n readonly actualBoundingBoxLeft: number;\n /**\n * Returns the measurement described below.\n */\n readonly actualBoundingBoxRight: number;\n /**\n * Returns the measurement described below.\n */\n readonly fontBoundingBoxAscent: number;\n /**\n * Returns the measurement described below.\n */\n readonly fontBoundingBoxDescent: number;\n /**\n * Returns the measurement described below.\n */\n readonly width: number;\n}\n\ndeclare var TextMetrics: {\n prototype: TextMetrics;\n new(): TextMetrics;\n};\n\ninterface TransformStream<I = any, O = any> {\n readonly readable: ReadableStream<O>;\n readonly writable: WritableStream<I>;\n}\n\ndeclare var TransformStream: {\n prototype: TransformStream;\n new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;\n};\n\ninterface TransformStreamDefaultController<O = any> {\n readonly desiredSize: number | null;\n enqueue(chunk?: O): void;\n error(reason?: any): void;\n terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n prototype: TransformStreamDefaultController;\n new(): TransformStreamDefaultController;\n};\n\n/** The URL interface represents an object providing static methods used for creating object URLs. */\ninterface URL {\n hash: string;\n host: string;\n hostname: string;\n href: string;\n toString(): string;\n readonly origin: string;\n password: string;\n pathname: string;\n port: string;\n protocol: string;\n search: string;\n readonly searchParams: URLSearchParams;\n username: string;\n toJSON(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string | URL, base?: string | URL): URL;\n createObjectURL(object: any): string;\n revokeObjectURL(url: string): void;\n};\n\ninterface URLSearchParams {\n /**\n * Appends a specified key/value pair as a new search parameter.\n */\n append(name: string, value: string): void;\n /**\n * Deletes the given search parameter, and its associated value, from the list of all search parameters.\n */\n delete(name: string): void;\n /**\n * Returns the first value associated to the given search parameter.\n */\n get(name: string): string | null;\n /**\n * Returns all the values association with a given search parameter.\n */\n getAll(name: string): string[];\n /**\n * Returns a Boolean indicating if such a search parameter exists.\n */\n has(name: string): boolean;\n /**\n * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.\n */\n set(name: string, value: string): void;\n sort(): void;\n /**\n * Returns a string containing a query string suitable for use in a URL. Does not include the question mark.\n */\n toString(): string;\n forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;\n}\n\ndeclare var URLSearchParams: {\n prototype: URLSearchParams;\n new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;\n toString(): string;\n};\n\ninterface WEBGL_color_buffer_float {\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;\n readonly RGBA32F_EXT: GLenum;\n readonly UNSIGNED_NORMALIZED_EXT: GLenum;\n}\n\ninterface WEBGL_compressed_texture_astc {\n getSupportedProfiles(): string[];\n readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;\n}\n\ninterface WEBGL_compressed_texture_etc {\n readonly COMPRESSED_R11_EAC: GLenum;\n readonly COMPRESSED_RG11_EAC: GLenum;\n readonly COMPRESSED_RGB8_ETC2: GLenum;\n readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;\n readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;\n readonly COMPRESSED_SIGNED_R11_EAC: GLenum;\n readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;\n readonly COMPRESSED_SRGB8_ETC2: GLenum;\n readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;\n}\n\ninterface WEBGL_compressed_texture_etc1 {\n readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;\n}\n\ninterface WEBGL_compressed_texture_pvrtc {\n readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;\n readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;\n readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;\n readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;\n}\n\n/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */\ninterface WEBGL_compressed_texture_s3tc {\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;\n}\n\ninterface WEBGL_compressed_texture_s3tc_srgb {\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;\n readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;\n}\n\n/** 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. */\ninterface WEBGL_debug_renderer_info {\n readonly UNMASKED_RENDERER_WEBGL: GLenum;\n readonly UNMASKED_VENDOR_WEBGL: GLenum;\n}\n\ninterface WEBGL_debug_shaders {\n getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */\ninterface WEBGL_depth_texture {\n readonly UNSIGNED_INT_24_8_WEBGL: GLenum;\n}\n\ninterface WEBGL_draw_buffers {\n drawBuffersWEBGL(buffers: GLenum[]): void;\n readonly COLOR_ATTACHMENT0_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT10_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT11_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT12_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT13_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT14_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT15_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT1_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT2_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT3_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT4_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT5_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT6_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT7_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT8_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT9_WEBGL: GLenum;\n readonly DRAW_BUFFER0_WEBGL: GLenum;\n readonly DRAW_BUFFER10_WEBGL: GLenum;\n readonly DRAW_BUFFER11_WEBGL: GLenum;\n readonly DRAW_BUFFER12_WEBGL: GLenum;\n readonly DRAW_BUFFER13_WEBGL: GLenum;\n readonly DRAW_BUFFER14_WEBGL: GLenum;\n readonly DRAW_BUFFER15_WEBGL: GLenum;\n readonly DRAW_BUFFER1_WEBGL: GLenum;\n readonly DRAW_BUFFER2_WEBGL: GLenum;\n readonly DRAW_BUFFER3_WEBGL: GLenum;\n readonly DRAW_BUFFER4_WEBGL: GLenum;\n readonly DRAW_BUFFER5_WEBGL: GLenum;\n readonly DRAW_BUFFER6_WEBGL: GLenum;\n readonly DRAW_BUFFER7_WEBGL: GLenum;\n readonly DRAW_BUFFER8_WEBGL: GLenum;\n readonly DRAW_BUFFER9_WEBGL: GLenum;\n readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;\n readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;\n}\n\ninterface WEBGL_lose_context {\n loseContext(): void;\n restoreContext(): void;\n}\n\ninterface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {\n}\n\ndeclare var WebGL2RenderingContext: {\n prototype: WebGL2RenderingContext;\n new(): WebGL2RenderingContext;\n readonly ACTIVE_UNIFORM_BLOCKS: GLenum;\n readonly ALREADY_SIGNALED: GLenum;\n readonly ANY_SAMPLES_PASSED: GLenum;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;\n readonly COLOR: GLenum;\n readonly COLOR_ATTACHMENT1: GLenum;\n readonly COLOR_ATTACHMENT10: GLenum;\n readonly COLOR_ATTACHMENT11: GLenum;\n readonly COLOR_ATTACHMENT12: GLenum;\n readonly COLOR_ATTACHMENT13: GLenum;\n readonly COLOR_ATTACHMENT14: GLenum;\n readonly COLOR_ATTACHMENT15: GLenum;\n readonly COLOR_ATTACHMENT2: GLenum;\n readonly COLOR_ATTACHMENT3: GLenum;\n readonly COLOR_ATTACHMENT4: GLenum;\n readonly COLOR_ATTACHMENT5: GLenum;\n readonly COLOR_ATTACHMENT6: GLenum;\n readonly COLOR_ATTACHMENT7: GLenum;\n readonly COLOR_ATTACHMENT8: GLenum;\n readonly COLOR_ATTACHMENT9: GLenum;\n readonly COMPARE_REF_TO_TEXTURE: GLenum;\n readonly CONDITION_SATISFIED: GLenum;\n readonly COPY_READ_BUFFER: GLenum;\n readonly COPY_READ_BUFFER_BINDING: GLenum;\n readonly COPY_WRITE_BUFFER: GLenum;\n readonly COPY_WRITE_BUFFER_BINDING: GLenum;\n readonly CURRENT_QUERY: GLenum;\n readonly DEPTH: GLenum;\n readonly DEPTH24_STENCIL8: GLenum;\n readonly DEPTH32F_STENCIL8: GLenum;\n readonly DEPTH_COMPONENT24: GLenum;\n readonly DEPTH_COMPONENT32F: GLenum;\n readonly DRAW_BUFFER0: GLenum;\n readonly DRAW_BUFFER1: GLenum;\n readonly DRAW_BUFFER10: GLenum;\n readonly DRAW_BUFFER11: GLenum;\n readonly DRAW_BUFFER12: GLenum;\n readonly DRAW_BUFFER13: GLenum;\n readonly DRAW_BUFFER14: GLenum;\n readonly DRAW_BUFFER15: GLenum;\n readonly DRAW_BUFFER2: GLenum;\n readonly DRAW_BUFFER3: GLenum;\n readonly DRAW_BUFFER4: GLenum;\n readonly DRAW_BUFFER5: GLenum;\n readonly DRAW_BUFFER6: GLenum;\n readonly DRAW_BUFFER7: GLenum;\n readonly DRAW_BUFFER8: GLenum;\n readonly DRAW_BUFFER9: GLenum;\n readonly DRAW_FRAMEBUFFER: GLenum;\n readonly DRAW_FRAMEBUFFER_BINDING: GLenum;\n readonly DYNAMIC_COPY: GLenum;\n readonly DYNAMIC_READ: GLenum;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;\n readonly FLOAT_MAT2x3: GLenum;\n readonly FLOAT_MAT2x4: GLenum;\n readonly FLOAT_MAT3x2: GLenum;\n readonly FLOAT_MAT3x4: GLenum;\n readonly FLOAT_MAT4x2: GLenum;\n readonly FLOAT_MAT4x3: GLenum;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;\n readonly FRAMEBUFFER_DEFAULT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;\n readonly HALF_FLOAT: GLenum;\n readonly INTERLEAVED_ATTRIBS: GLenum;\n readonly INT_2_10_10_10_REV: GLenum;\n readonly INT_SAMPLER_2D: GLenum;\n readonly INT_SAMPLER_2D_ARRAY: GLenum;\n readonly INT_SAMPLER_3D: GLenum;\n readonly INT_SAMPLER_CUBE: GLenum;\n readonly INVALID_INDEX: GLenum;\n readonly MAX: GLenum;\n readonly MAX_3D_TEXTURE_SIZE: GLenum;\n readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;\n readonly MAX_COLOR_ATTACHMENTS: GLenum;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_DRAW_BUFFERS: GLenum;\n readonly MAX_ELEMENTS_INDICES: GLenum;\n readonly MAX_ELEMENTS_VERTICES: GLenum;\n readonly MAX_ELEMENT_INDEX: GLenum;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly MAX_SAMPLES: GLenum;\n readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;\n readonly MAX_TEXTURE_LOD_BIAS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;\n readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;\n readonly MAX_VARYING_COMPONENTS: GLenum;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MIN: GLenum;\n readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly OBJECT_TYPE: GLenum;\n readonly PACK_ROW_LENGTH: GLenum;\n readonly PACK_SKIP_PIXELS: GLenum;\n readonly PACK_SKIP_ROWS: GLenum;\n readonly PIXEL_PACK_BUFFER: GLenum;\n readonly PIXEL_PACK_BUFFER_BINDING: GLenum;\n readonly PIXEL_UNPACK_BUFFER: GLenum;\n readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;\n readonly QUERY_RESULT: GLenum;\n readonly QUERY_RESULT_AVAILABLE: GLenum;\n readonly R11F_G11F_B10F: GLenum;\n readonly R16F: GLenum;\n readonly R16I: GLenum;\n readonly R16UI: GLenum;\n readonly R32F: GLenum;\n readonly R32I: GLenum;\n readonly R32UI: GLenum;\n readonly R8: GLenum;\n readonly R8I: GLenum;\n readonly R8UI: GLenum;\n readonly R8_SNORM: GLenum;\n readonly RASTERIZER_DISCARD: GLenum;\n readonly READ_BUFFER: GLenum;\n readonly READ_FRAMEBUFFER: GLenum;\n readonly READ_FRAMEBUFFER_BINDING: GLenum;\n readonly RED: GLenum;\n readonly RED_INTEGER: GLenum;\n readonly RENDERBUFFER_SAMPLES: GLenum;\n readonly RG: GLenum;\n readonly RG16F: GLenum;\n readonly RG16I: GLenum;\n readonly RG16UI: GLenum;\n readonly RG32F: GLenum;\n readonly RG32I: GLenum;\n readonly RG32UI: GLenum;\n readonly RG8: GLenum;\n readonly RG8I: GLenum;\n readonly RG8UI: GLenum;\n readonly RG8_SNORM: GLenum;\n readonly RGB10_A2: GLenum;\n readonly RGB10_A2UI: GLenum;\n readonly RGB16F: GLenum;\n readonly RGB16I: GLenum;\n readonly RGB16UI: GLenum;\n readonly RGB32F: GLenum;\n readonly RGB32I: GLenum;\n readonly RGB32UI: GLenum;\n readonly RGB8: GLenum;\n readonly RGB8I: GLenum;\n readonly RGB8UI: GLenum;\n readonly RGB8_SNORM: GLenum;\n readonly RGB9_E5: GLenum;\n readonly RGBA16F: GLenum;\n readonly RGBA16I: GLenum;\n readonly RGBA16UI: GLenum;\n readonly RGBA32F: GLenum;\n readonly RGBA32I: GLenum;\n readonly RGBA32UI: GLenum;\n readonly RGBA8: GLenum;\n readonly RGBA8I: GLenum;\n readonly RGBA8UI: GLenum;\n readonly RGBA8_SNORM: GLenum;\n readonly RGBA_INTEGER: GLenum;\n readonly RGB_INTEGER: GLenum;\n readonly RG_INTEGER: GLenum;\n readonly SAMPLER_2D_ARRAY: GLenum;\n readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;\n readonly SAMPLER_2D_SHADOW: GLenum;\n readonly SAMPLER_3D: GLenum;\n readonly SAMPLER_BINDING: GLenum;\n readonly SAMPLER_CUBE_SHADOW: GLenum;\n readonly SEPARATE_ATTRIBS: GLenum;\n readonly SIGNALED: GLenum;\n readonly SIGNED_NORMALIZED: GLenum;\n readonly SRGB: GLenum;\n readonly SRGB8: GLenum;\n readonly SRGB8_ALPHA8: GLenum;\n readonly STATIC_COPY: GLenum;\n readonly STATIC_READ: GLenum;\n readonly STENCIL: GLenum;\n readonly STREAM_COPY: GLenum;\n readonly STREAM_READ: GLenum;\n readonly SYNC_CONDITION: GLenum;\n readonly SYNC_FENCE: GLenum;\n readonly SYNC_FLAGS: GLenum;\n readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;\n readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;\n readonly SYNC_STATUS: GLenum;\n readonly TEXTURE_2D_ARRAY: GLenum;\n readonly TEXTURE_3D: GLenum;\n readonly TEXTURE_BASE_LEVEL: GLenum;\n readonly TEXTURE_BINDING_2D_ARRAY: GLenum;\n readonly TEXTURE_BINDING_3D: GLenum;\n readonly TEXTURE_COMPARE_FUNC: GLenum;\n readonly TEXTURE_COMPARE_MODE: GLenum;\n readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;\n readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;\n readonly TEXTURE_MAX_LEVEL: GLenum;\n readonly TEXTURE_MAX_LOD: GLenum;\n readonly TEXTURE_MIN_LOD: GLenum;\n readonly TEXTURE_WRAP_R: GLenum;\n readonly TIMEOUT_EXPIRED: GLenum;\n readonly TIMEOUT_IGNORED: GLint64;\n readonly TRANSFORM_FEEDBACK: GLenum;\n readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;\n readonly TRANSFORM_FEEDBACK_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;\n readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;\n readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;\n readonly UNIFORM_ARRAY_STRIDE: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;\n readonly UNIFORM_BLOCK_BINDING: GLenum;\n readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;\n readonly UNIFORM_BLOCK_INDEX: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;\n readonly UNIFORM_BUFFER: GLenum;\n readonly UNIFORM_BUFFER_BINDING: GLenum;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;\n readonly UNIFORM_BUFFER_SIZE: GLenum;\n readonly UNIFORM_BUFFER_START: GLenum;\n readonly UNIFORM_IS_ROW_MAJOR: GLenum;\n readonly UNIFORM_MATRIX_STRIDE: GLenum;\n readonly UNIFORM_OFFSET: GLenum;\n readonly UNIFORM_SIZE: GLenum;\n readonly UNIFORM_TYPE: GLenum;\n readonly UNPACK_IMAGE_HEIGHT: GLenum;\n readonly UNPACK_ROW_LENGTH: GLenum;\n readonly UNPACK_SKIP_IMAGES: GLenum;\n readonly UNPACK_SKIP_PIXELS: GLenum;\n readonly UNPACK_SKIP_ROWS: GLenum;\n readonly UNSIGNALED: GLenum;\n readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;\n readonly UNSIGNED_INT_24_8: GLenum;\n readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;\n readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;\n readonly UNSIGNED_INT_SAMPLER_3D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;\n readonly UNSIGNED_INT_VEC2: GLenum;\n readonly UNSIGNED_INT_VEC3: GLenum;\n readonly UNSIGNED_INT_VEC4: GLenum;\n readonly UNSIGNED_NORMALIZED: GLenum;\n readonly VERTEX_ARRAY_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;\n readonly WAIT_FAILED: GLenum;\n readonly ACTIVE_ATTRIBUTES: GLenum;\n readonly ACTIVE_TEXTURE: GLenum;\n readonly ACTIVE_UNIFORMS: GLenum;\n readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n readonly ALPHA: GLenum;\n readonly ALPHA_BITS: GLenum;\n readonly ALWAYS: GLenum;\n readonly ARRAY_BUFFER: GLenum;\n readonly ARRAY_BUFFER_BINDING: GLenum;\n readonly ATTACHED_SHADERS: GLenum;\n readonly BACK: GLenum;\n readonly BLEND: GLenum;\n readonly BLEND_COLOR: GLenum;\n readonly BLEND_DST_ALPHA: GLenum;\n readonly BLEND_DST_RGB: GLenum;\n readonly BLEND_EQUATION: GLenum;\n readonly BLEND_EQUATION_ALPHA: GLenum;\n readonly BLEND_EQUATION_RGB: GLenum;\n readonly BLEND_SRC_ALPHA: GLenum;\n readonly BLEND_SRC_RGB: GLenum;\n readonly BLUE_BITS: GLenum;\n readonly BOOL: GLenum;\n readonly BOOL_VEC2: GLenum;\n readonly BOOL_VEC3: GLenum;\n readonly BOOL_VEC4: GLenum;\n readonly BROWSER_DEFAULT_WEBGL: GLenum;\n readonly BUFFER_SIZE: GLenum;\n readonly BUFFER_USAGE: GLenum;\n readonly BYTE: GLenum;\n readonly CCW: GLenum;\n readonly CLAMP_TO_EDGE: GLenum;\n readonly COLOR_ATTACHMENT0: GLenum;\n readonly COLOR_BUFFER_BIT: GLenum;\n readonly COLOR_CLEAR_VALUE: GLenum;\n readonly COLOR_WRITEMASK: GLenum;\n readonly COMPILE_STATUS: GLenum;\n readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n readonly CONSTANT_ALPHA: GLenum;\n readonly CONSTANT_COLOR: GLenum;\n readonly CONTEXT_LOST_WEBGL: GLenum;\n readonly CULL_FACE: GLenum;\n readonly CULL_FACE_MODE: GLenum;\n readonly CURRENT_PROGRAM: GLenum;\n readonly CURRENT_VERTEX_ATTRIB: GLenum;\n readonly CW: GLenum;\n readonly DECR: GLenum;\n readonly DECR_WRAP: GLenum;\n readonly DELETE_STATUS: GLenum;\n readonly DEPTH_ATTACHMENT: GLenum;\n readonly DEPTH_BITS: GLenum;\n readonly DEPTH_BUFFER_BIT: GLenum;\n readonly DEPTH_CLEAR_VALUE: GLenum;\n readonly DEPTH_COMPONENT: GLenum;\n readonly DEPTH_COMPONENT16: GLenum;\n readonly DEPTH_FUNC: GLenum;\n readonly DEPTH_RANGE: GLenum;\n readonly DEPTH_STENCIL: GLenum;\n readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n readonly DEPTH_TEST: GLenum;\n readonly DEPTH_WRITEMASK: GLenum;\n readonly DITHER: GLenum;\n readonly DONT_CARE: GLenum;\n readonly DST_ALPHA: GLenum;\n readonly DST_COLOR: GLenum;\n readonly DYNAMIC_DRAW: GLenum;\n readonly ELEMENT_ARRAY_BUFFER: GLenum;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n readonly EQUAL: GLenum;\n readonly FASTEST: GLenum;\n readonly FLOAT: GLenum;\n readonly FLOAT_MAT2: GLenum;\n readonly FLOAT_MAT3: GLenum;\n readonly FLOAT_MAT4: GLenum;\n readonly FLOAT_VEC2: GLenum;\n readonly FLOAT_VEC3: GLenum;\n readonly FLOAT_VEC4: GLenum;\n readonly FRAGMENT_SHADER: GLenum;\n readonly FRAMEBUFFER: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n readonly FRAMEBUFFER_BINDING: GLenum;\n readonly FRAMEBUFFER_COMPLETE: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n readonly FRONT: GLenum;\n readonly FRONT_AND_BACK: GLenum;\n readonly FRONT_FACE: GLenum;\n readonly FUNC_ADD: GLenum;\n readonly FUNC_REVERSE_SUBTRACT: GLenum;\n readonly FUNC_SUBTRACT: GLenum;\n readonly GENERATE_MIPMAP_HINT: GLenum;\n readonly GEQUAL: GLenum;\n readonly GREATER: GLenum;\n readonly GREEN_BITS: GLenum;\n readonly HIGH_FLOAT: GLenum;\n readonly HIGH_INT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n readonly INCR: GLenum;\n readonly INCR_WRAP: GLenum;\n readonly INT: GLenum;\n readonly INT_VEC2: GLenum;\n readonly INT_VEC3: GLenum;\n readonly INT_VEC4: GLenum;\n readonly INVALID_ENUM: GLenum;\n readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n readonly INVALID_OPERATION: GLenum;\n readonly INVALID_VALUE: GLenum;\n readonly INVERT: GLenum;\n readonly KEEP: GLenum;\n readonly LEQUAL: GLenum;\n readonly LESS: GLenum;\n readonly LINEAR: GLenum;\n readonly LINEAR_MIPMAP_LINEAR: GLenum;\n readonly LINEAR_MIPMAP_NEAREST: GLenum;\n readonly LINES: GLenum;\n readonly LINE_LOOP: GLenum;\n readonly LINE_STRIP: GLenum;\n readonly LINE_WIDTH: GLenum;\n readonly LINK_STATUS: GLenum;\n readonly LOW_FLOAT: GLenum;\n readonly LOW_INT: GLenum;\n readonly LUMINANCE: GLenum;\n readonly LUMINANCE_ALPHA: GLenum;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n readonly MAX_RENDERBUFFER_SIZE: GLenum;\n readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_TEXTURE_SIZE: GLenum;\n readonly MAX_VARYING_VECTORS: GLenum;\n readonly MAX_VERTEX_ATTRIBS: GLenum;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n readonly MAX_VIEWPORT_DIMS: GLenum;\n readonly MEDIUM_FLOAT: GLenum;\n readonly MEDIUM_INT: GLenum;\n readonly MIRRORED_REPEAT: GLenum;\n readonly NEAREST: GLenum;\n readonly NEAREST_MIPMAP_LINEAR: GLenum;\n readonly NEAREST_MIPMAP_NEAREST: GLenum;\n readonly NEVER: GLenum;\n readonly NICEST: GLenum;\n readonly NONE: GLenum;\n readonly NOTEQUAL: GLenum;\n readonly NO_ERROR: GLenum;\n readonly ONE: GLenum;\n readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n readonly ONE_MINUS_DST_ALPHA: GLenum;\n readonly ONE_MINUS_DST_COLOR: GLenum;\n readonly ONE_MINUS_SRC_ALPHA: GLenum;\n readonly ONE_MINUS_SRC_COLOR: GLenum;\n readonly OUT_OF_MEMORY: GLenum;\n readonly PACK_ALIGNMENT: GLenum;\n readonly POINTS: GLenum;\n readonly POLYGON_OFFSET_FACTOR: GLenum;\n readonly POLYGON_OFFSET_FILL: GLenum;\n readonly POLYGON_OFFSET_UNITS: GLenum;\n readonly RED_BITS: GLenum;\n readonly RENDERBUFFER: GLenum;\n readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n readonly RENDERBUFFER_BINDING: GLenum;\n readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n readonly RENDERBUFFER_HEIGHT: GLenum;\n readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n readonly RENDERBUFFER_RED_SIZE: GLenum;\n readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n readonly RENDERBUFFER_WIDTH: GLenum;\n readonly RENDERER: GLenum;\n readonly REPEAT: GLenum;\n readonly REPLACE: GLenum;\n readonly RGB: GLenum;\n readonly RGB565: GLenum;\n readonly RGB5_A1: GLenum;\n readonly RGBA: GLenum;\n readonly RGBA4: GLenum;\n readonly SAMPLER_2D: GLenum;\n readonly SAMPLER_CUBE: GLenum;\n readonly SAMPLES: GLenum;\n readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n readonly SAMPLE_BUFFERS: GLenum;\n readonly SAMPLE_COVERAGE: GLenum;\n readonly SAMPLE_COVERAGE_INVERT: GLenum;\n readonly SAMPLE_COVERAGE_VALUE: GLenum;\n readonly SCISSOR_BOX: GLenum;\n readonly SCISSOR_TEST: GLenum;\n readonly SHADER_TYPE: GLenum;\n readonly SHADING_LANGUAGE_VERSION: GLenum;\n readonly SHORT: GLenum;\n readonly SRC_ALPHA: GLenum;\n readonly SRC_ALPHA_SATURATE: GLenum;\n readonly SRC_COLOR: GLenum;\n readonly STATIC_DRAW: GLenum;\n readonly STENCIL_ATTACHMENT: GLenum;\n readonly STENCIL_BACK_FAIL: GLenum;\n readonly STENCIL_BACK_FUNC: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_BACK_REF: GLenum;\n readonly STENCIL_BACK_VALUE_MASK: GLenum;\n readonly STENCIL_BACK_WRITEMASK: GLenum;\n readonly STENCIL_BITS: GLenum;\n readonly STENCIL_BUFFER_BIT: GLenum;\n readonly STENCIL_CLEAR_VALUE: GLenum;\n readonly STENCIL_FAIL: GLenum;\n readonly STENCIL_FUNC: GLenum;\n readonly STENCIL_INDEX8: GLenum;\n readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_REF: GLenum;\n readonly STENCIL_TEST: GLenum;\n readonly STENCIL_VALUE_MASK: GLenum;\n readonly STENCIL_WRITEMASK: GLenum;\n readonly STREAM_DRAW: GLenum;\n readonly SUBPIXEL_BITS: GLenum;\n readonly TEXTURE: GLenum;\n readonly TEXTURE0: GLenum;\n readonly TEXTURE1: GLenum;\n readonly TEXTURE10: GLenum;\n readonly TEXTURE11: GLenum;\n readonly TEXTURE12: GLenum;\n readonly TEXTURE13: GLenum;\n readonly TEXTURE14: GLenum;\n readonly TEXTURE15: GLenum;\n readonly TEXTURE16: GLenum;\n readonly TEXTURE17: GLenum;\n readonly TEXTURE18: GLenum;\n readonly TEXTURE19: GLenum;\n readonly TEXTURE2: GLenum;\n readonly TEXTURE20: GLenum;\n readonly TEXTURE21: GLenum;\n readonly TEXTURE22: GLenum;\n readonly TEXTURE23: GLenum;\n readonly TEXTURE24: GLenum;\n readonly TEXTURE25: GLenum;\n readonly TEXTURE26: GLenum;\n readonly TEXTURE27: GLenum;\n readonly TEXTURE28: GLenum;\n readonly TEXTURE29: GLenum;\n readonly TEXTURE3: GLenum;\n readonly TEXTURE30: GLenum;\n readonly TEXTURE31: GLenum;\n readonly TEXTURE4: GLenum;\n readonly TEXTURE5: GLenum;\n readonly TEXTURE6: GLenum;\n readonly TEXTURE7: GLenum;\n readonly TEXTURE8: GLenum;\n readonly TEXTURE9: GLenum;\n readonly TEXTURE_2D: GLenum;\n readonly TEXTURE_BINDING_2D: GLenum;\n readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n readonly TEXTURE_MAG_FILTER: GLenum;\n readonly TEXTURE_MIN_FILTER: GLenum;\n readonly TEXTURE_WRAP_S: GLenum;\n readonly TEXTURE_WRAP_T: GLenum;\n readonly TRIANGLES: GLenum;\n readonly TRIANGLE_FAN: GLenum;\n readonly TRIANGLE_STRIP: GLenum;\n readonly UNPACK_ALIGNMENT: GLenum;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n readonly UNSIGNED_BYTE: GLenum;\n readonly UNSIGNED_INT: GLenum;\n readonly UNSIGNED_SHORT: GLenum;\n readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n readonly UNSIGNED_SHORT_5_6_5: GLenum;\n readonly VALIDATE_STATUS: GLenum;\n readonly VENDOR: GLenum;\n readonly VERSION: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n readonly VERTEX_SHADER: GLenum;\n readonly VIEWPORT: GLenum;\n readonly ZERO: GLenum;\n};\n\ninterface WebGL2RenderingContextBase {\n beginQuery(target: GLenum, query: WebGLQuery): void;\n beginTransformFeedback(primitiveMode: GLenum): void;\n bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n bindVertexArray(array: WebGLVertexArrayObject | null): void;\n blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;\n clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n 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;\n copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n createQuery(): WebGLQuery | null;\n createSampler(): WebGLSampler | null;\n createTransformFeedback(): WebGLTransformFeedback | null;\n createVertexArray(): WebGLVertexArrayObject | null;\n deleteQuery(query: WebGLQuery | null): void;\n deleteSampler(sampler: WebGLSampler | null): void;\n deleteSync(sync: WebGLSync | null): void;\n deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n drawBuffers(buffers: GLenum[]): void;\n drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n endQuery(target: GLenum): void;\n endTransformFeedback(): void;\n fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;\n getFragDataLocation(program: WebGLProgram, name: string): GLint;\n getIndexedParameter(target: GLenum, index: GLuint): any;\n getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n isQuery(query: WebGLQuery | null): GLboolean;\n isSampler(sampler: WebGLSampler | null): GLboolean;\n isSync(sync: WebGLSync | null): GLboolean;\n isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n pauseTransformFeedback(): void;\n readBuffer(src: GLenum): void;\n renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n resumeTransformFeedback(): void;\n samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n 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;\n transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n vertexAttribI4iv(index: GLuint, values: Int32List): void;\n vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n readonly ACTIVE_UNIFORM_BLOCKS: GLenum;\n readonly ALREADY_SIGNALED: GLenum;\n readonly ANY_SAMPLES_PASSED: GLenum;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;\n readonly COLOR: GLenum;\n readonly COLOR_ATTACHMENT1: GLenum;\n readonly COLOR_ATTACHMENT10: GLenum;\n readonly COLOR_ATTACHMENT11: GLenum;\n readonly COLOR_ATTACHMENT12: GLenum;\n readonly COLOR_ATTACHMENT13: GLenum;\n readonly COLOR_ATTACHMENT14: GLenum;\n readonly COLOR_ATTACHMENT15: GLenum;\n readonly COLOR_ATTACHMENT2: GLenum;\n readonly COLOR_ATTACHMENT3: GLenum;\n readonly COLOR_ATTACHMENT4: GLenum;\n readonly COLOR_ATTACHMENT5: GLenum;\n readonly COLOR_ATTACHMENT6: GLenum;\n readonly COLOR_ATTACHMENT7: GLenum;\n readonly COLOR_ATTACHMENT8: GLenum;\n readonly COLOR_ATTACHMENT9: GLenum;\n readonly COMPARE_REF_TO_TEXTURE: GLenum;\n readonly CONDITION_SATISFIED: GLenum;\n readonly COPY_READ_BUFFER: GLenum;\n readonly COPY_READ_BUFFER_BINDING: GLenum;\n readonly COPY_WRITE_BUFFER: GLenum;\n readonly COPY_WRITE_BUFFER_BINDING: GLenum;\n readonly CURRENT_QUERY: GLenum;\n readonly DEPTH: GLenum;\n readonly DEPTH24_STENCIL8: GLenum;\n readonly DEPTH32F_STENCIL8: GLenum;\n readonly DEPTH_COMPONENT24: GLenum;\n readonly DEPTH_COMPONENT32F: GLenum;\n readonly DRAW_BUFFER0: GLenum;\n readonly DRAW_BUFFER1: GLenum;\n readonly DRAW_BUFFER10: GLenum;\n readonly DRAW_BUFFER11: GLenum;\n readonly DRAW_BUFFER12: GLenum;\n readonly DRAW_BUFFER13: GLenum;\n readonly DRAW_BUFFER14: GLenum;\n readonly DRAW_BUFFER15: GLenum;\n readonly DRAW_BUFFER2: GLenum;\n readonly DRAW_BUFFER3: GLenum;\n readonly DRAW_BUFFER4: GLenum;\n readonly DRAW_BUFFER5: GLenum;\n readonly DRAW_BUFFER6: GLenum;\n readonly DRAW_BUFFER7: GLenum;\n readonly DRAW_BUFFER8: GLenum;\n readonly DRAW_BUFFER9: GLenum;\n readonly DRAW_FRAMEBUFFER: GLenum;\n readonly DRAW_FRAMEBUFFER_BINDING: GLenum;\n readonly DYNAMIC_COPY: GLenum;\n readonly DYNAMIC_READ: GLenum;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;\n readonly FLOAT_MAT2x3: GLenum;\n readonly FLOAT_MAT2x4: GLenum;\n readonly FLOAT_MAT3x2: GLenum;\n readonly FLOAT_MAT3x4: GLenum;\n readonly FLOAT_MAT4x2: GLenum;\n readonly FLOAT_MAT4x3: GLenum;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;\n readonly FRAMEBUFFER_DEFAULT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;\n readonly HALF_FLOAT: GLenum;\n readonly INTERLEAVED_ATTRIBS: GLenum;\n readonly INT_2_10_10_10_REV: GLenum;\n readonly INT_SAMPLER_2D: GLenum;\n readonly INT_SAMPLER_2D_ARRAY: GLenum;\n readonly INT_SAMPLER_3D: GLenum;\n readonly INT_SAMPLER_CUBE: GLenum;\n readonly INVALID_INDEX: GLenum;\n readonly MAX: GLenum;\n readonly MAX_3D_TEXTURE_SIZE: GLenum;\n readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;\n readonly MAX_COLOR_ATTACHMENTS: GLenum;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_DRAW_BUFFERS: GLenum;\n readonly MAX_ELEMENTS_INDICES: GLenum;\n readonly MAX_ELEMENTS_VERTICES: GLenum;\n readonly MAX_ELEMENT_INDEX: GLenum;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly MAX_SAMPLES: GLenum;\n readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;\n readonly MAX_TEXTURE_LOD_BIAS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;\n readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;\n readonly MAX_VARYING_COMPONENTS: GLenum;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MIN: GLenum;\n readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly OBJECT_TYPE: GLenum;\n readonly PACK_ROW_LENGTH: GLenum;\n readonly PACK_SKIP_PIXELS: GLenum;\n readonly PACK_SKIP_ROWS: GLenum;\n readonly PIXEL_PACK_BUFFER: GLenum;\n readonly PIXEL_PACK_BUFFER_BINDING: GLenum;\n readonly PIXEL_UNPACK_BUFFER: GLenum;\n readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;\n readonly QUERY_RESULT: GLenum;\n readonly QUERY_RESULT_AVAILABLE: GLenum;\n readonly R11F_G11F_B10F: GLenum;\n readonly R16F: GLenum;\n readonly R16I: GLenum;\n readonly R16UI: GLenum;\n readonly R32F: GLenum;\n readonly R32I: GLenum;\n readonly R32UI: GLenum;\n readonly R8: GLenum;\n readonly R8I: GLenum;\n readonly R8UI: GLenum;\n readonly R8_SNORM: GLenum;\n readonly RASTERIZER_DISCARD: GLenum;\n readonly READ_BUFFER: GLenum;\n readonly READ_FRAMEBUFFER: GLenum;\n readonly READ_FRAMEBUFFER_BINDING: GLenum;\n readonly RED: GLenum;\n readonly RED_INTEGER: GLenum;\n readonly RENDERBUFFER_SAMPLES: GLenum;\n readonly RG: GLenum;\n readonly RG16F: GLenum;\n readonly RG16I: GLenum;\n readonly RG16UI: GLenum;\n readonly RG32F: GLenum;\n readonly RG32I: GLenum;\n readonly RG32UI: GLenum;\n readonly RG8: GLenum;\n readonly RG8I: GLenum;\n readonly RG8UI: GLenum;\n readonly RG8_SNORM: GLenum;\n readonly RGB10_A2: GLenum;\n readonly RGB10_A2UI: GLenum;\n readonly RGB16F: GLenum;\n readonly RGB16I: GLenum;\n readonly RGB16UI: GLenum;\n readonly RGB32F: GLenum;\n readonly RGB32I: GLenum;\n readonly RGB32UI: GLenum;\n readonly RGB8: GLenum;\n readonly RGB8I: GLenum;\n readonly RGB8UI: GLenum;\n readonly RGB8_SNORM: GLenum;\n readonly RGB9_E5: GLenum;\n readonly RGBA16F: GLenum;\n readonly RGBA16I: GLenum;\n readonly RGBA16UI: GLenum;\n readonly RGBA32F: GLenum;\n readonly RGBA32I: GLenum;\n readonly RGBA32UI: GLenum;\n readonly RGBA8: GLenum;\n readonly RGBA8I: GLenum;\n readonly RGBA8UI: GLenum;\n readonly RGBA8_SNORM: GLenum;\n readonly RGBA_INTEGER: GLenum;\n readonly RGB_INTEGER: GLenum;\n readonly RG_INTEGER: GLenum;\n readonly SAMPLER_2D_ARRAY: GLenum;\n readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;\n readonly SAMPLER_2D_SHADOW: GLenum;\n readonly SAMPLER_3D: GLenum;\n readonly SAMPLER_BINDING: GLenum;\n readonly SAMPLER_CUBE_SHADOW: GLenum;\n readonly SEPARATE_ATTRIBS: GLenum;\n readonly SIGNALED: GLenum;\n readonly SIGNED_NORMALIZED: GLenum;\n readonly SRGB: GLenum;\n readonly SRGB8: GLenum;\n readonly SRGB8_ALPHA8: GLenum;\n readonly STATIC_COPY: GLenum;\n readonly STATIC_READ: GLenum;\n readonly STENCIL: GLenum;\n readonly STREAM_COPY: GLenum;\n readonly STREAM_READ: GLenum;\n readonly SYNC_CONDITION: GLenum;\n readonly SYNC_FENCE: GLenum;\n readonly SYNC_FLAGS: GLenum;\n readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;\n readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;\n readonly SYNC_STATUS: GLenum;\n readonly TEXTURE_2D_ARRAY: GLenum;\n readonly TEXTURE_3D: GLenum;\n readonly TEXTURE_BASE_LEVEL: GLenum;\n readonly TEXTURE_BINDING_2D_ARRAY: GLenum;\n readonly TEXTURE_BINDING_3D: GLenum;\n readonly TEXTURE_COMPARE_FUNC: GLenum;\n readonly TEXTURE_COMPARE_MODE: GLenum;\n readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;\n readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;\n readonly TEXTURE_MAX_LEVEL: GLenum;\n readonly TEXTURE_MAX_LOD: GLenum;\n readonly TEXTURE_MIN_LOD: GLenum;\n readonly TEXTURE_WRAP_R: GLenum;\n readonly TIMEOUT_EXPIRED: GLenum;\n readonly TIMEOUT_IGNORED: GLint64;\n readonly TRANSFORM_FEEDBACK: GLenum;\n readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;\n readonly TRANSFORM_FEEDBACK_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;\n readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;\n readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;\n readonly UNIFORM_ARRAY_STRIDE: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;\n readonly UNIFORM_BLOCK_BINDING: GLenum;\n readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;\n readonly UNIFORM_BLOCK_INDEX: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;\n readonly UNIFORM_BUFFER: GLenum;\n readonly UNIFORM_BUFFER_BINDING: GLenum;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;\n readonly UNIFORM_BUFFER_SIZE: GLenum;\n readonly UNIFORM_BUFFER_START: GLenum;\n readonly UNIFORM_IS_ROW_MAJOR: GLenum;\n readonly UNIFORM_MATRIX_STRIDE: GLenum;\n readonly UNIFORM_OFFSET: GLenum;\n readonly UNIFORM_SIZE: GLenum;\n readonly UNIFORM_TYPE: GLenum;\n readonly UNPACK_IMAGE_HEIGHT: GLenum;\n readonly UNPACK_ROW_LENGTH: GLenum;\n readonly UNPACK_SKIP_IMAGES: GLenum;\n readonly UNPACK_SKIP_PIXELS: GLenum;\n readonly UNPACK_SKIP_ROWS: GLenum;\n readonly UNSIGNALED: GLenum;\n readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;\n readonly UNSIGNED_INT_24_8: GLenum;\n readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;\n readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;\n readonly UNSIGNED_INT_SAMPLER_3D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;\n readonly UNSIGNED_INT_VEC2: GLenum;\n readonly UNSIGNED_INT_VEC3: GLenum;\n readonly UNSIGNED_INT_VEC4: GLenum;\n readonly UNSIGNED_NORMALIZED: GLenum;\n readonly VERTEX_ARRAY_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;\n readonly WAIT_FAILED: GLenum;\n}\n\ninterface WebGL2RenderingContextOverloads {\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;\n bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */\ninterface WebGLActiveInfo {\n readonly name: string;\n readonly size: GLint;\n readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\n/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */\ninterface WebGLBuffer {\n}\n\ndeclare var WebGLBuffer: {\n prototype: WebGLBuffer;\n new(): WebGLBuffer;\n};\n\n/** 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. */\ninterface WebGLContextEvent extends Event {\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */\ninterface WebGLFramebuffer {\n}\n\ndeclare var WebGLFramebuffer: {\n prototype: WebGLFramebuffer;\n new(): WebGLFramebuffer;\n};\n\n/** 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). */\ninterface WebGLProgram {\n}\n\ndeclare var WebGLProgram: {\n prototype: WebGLProgram;\n new(): WebGLProgram;\n};\n\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n prototype: WebGLQuery;\n new(): WebGLQuery;\n};\n\n/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */\ninterface WebGLRenderbuffer {\n}\n\ndeclare var WebGLRenderbuffer: {\n prototype: WebGLRenderbuffer;\n new(): WebGLRenderbuffer;\n};\n\n/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\n}\n\ndeclare var WebGLRenderingContext: {\n prototype: WebGLRenderingContext;\n new(): WebGLRenderingContext;\n readonly ACTIVE_ATTRIBUTES: GLenum;\n readonly ACTIVE_TEXTURE: GLenum;\n readonly ACTIVE_UNIFORMS: GLenum;\n readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n readonly ALPHA: GLenum;\n readonly ALPHA_BITS: GLenum;\n readonly ALWAYS: GLenum;\n readonly ARRAY_BUFFER: GLenum;\n readonly ARRAY_BUFFER_BINDING: GLenum;\n readonly ATTACHED_SHADERS: GLenum;\n readonly BACK: GLenum;\n readonly BLEND: GLenum;\n readonly BLEND_COLOR: GLenum;\n readonly BLEND_DST_ALPHA: GLenum;\n readonly BLEND_DST_RGB: GLenum;\n readonly BLEND_EQUATION: GLenum;\n readonly BLEND_EQUATION_ALPHA: GLenum;\n readonly BLEND_EQUATION_RGB: GLenum;\n readonly BLEND_SRC_ALPHA: GLenum;\n readonly BLEND_SRC_RGB: GLenum;\n readonly BLUE_BITS: GLenum;\n readonly BOOL: GLenum;\n readonly BOOL_VEC2: GLenum;\n readonly BOOL_VEC3: GLenum;\n readonly BOOL_VEC4: GLenum;\n readonly BROWSER_DEFAULT_WEBGL: GLenum;\n readonly BUFFER_SIZE: GLenum;\n readonly BUFFER_USAGE: GLenum;\n readonly BYTE: GLenum;\n readonly CCW: GLenum;\n readonly CLAMP_TO_EDGE: GLenum;\n readonly COLOR_ATTACHMENT0: GLenum;\n readonly COLOR_BUFFER_BIT: GLenum;\n readonly COLOR_CLEAR_VALUE: GLenum;\n readonly COLOR_WRITEMASK: GLenum;\n readonly COMPILE_STATUS: GLenum;\n readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n readonly CONSTANT_ALPHA: GLenum;\n readonly CONSTANT_COLOR: GLenum;\n readonly CONTEXT_LOST_WEBGL: GLenum;\n readonly CULL_FACE: GLenum;\n readonly CULL_FACE_MODE: GLenum;\n readonly CURRENT_PROGRAM: GLenum;\n readonly CURRENT_VERTEX_ATTRIB: GLenum;\n readonly CW: GLenum;\n readonly DECR: GLenum;\n readonly DECR_WRAP: GLenum;\n readonly DELETE_STATUS: GLenum;\n readonly DEPTH_ATTACHMENT: GLenum;\n readonly DEPTH_BITS: GLenum;\n readonly DEPTH_BUFFER_BIT: GLenum;\n readonly DEPTH_CLEAR_VALUE: GLenum;\n readonly DEPTH_COMPONENT: GLenum;\n readonly DEPTH_COMPONENT16: GLenum;\n readonly DEPTH_FUNC: GLenum;\n readonly DEPTH_RANGE: GLenum;\n readonly DEPTH_STENCIL: GLenum;\n readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n readonly DEPTH_TEST: GLenum;\n readonly DEPTH_WRITEMASK: GLenum;\n readonly DITHER: GLenum;\n readonly DONT_CARE: GLenum;\n readonly DST_ALPHA: GLenum;\n readonly DST_COLOR: GLenum;\n readonly DYNAMIC_DRAW: GLenum;\n readonly ELEMENT_ARRAY_BUFFER: GLenum;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n readonly EQUAL: GLenum;\n readonly FASTEST: GLenum;\n readonly FLOAT: GLenum;\n readonly FLOAT_MAT2: GLenum;\n readonly FLOAT_MAT3: GLenum;\n readonly FLOAT_MAT4: GLenum;\n readonly FLOAT_VEC2: GLenum;\n readonly FLOAT_VEC3: GLenum;\n readonly FLOAT_VEC4: GLenum;\n readonly FRAGMENT_SHADER: GLenum;\n readonly FRAMEBUFFER: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n readonly FRAMEBUFFER_BINDING: GLenum;\n readonly FRAMEBUFFER_COMPLETE: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n readonly FRONT: GLenum;\n readonly FRONT_AND_BACK: GLenum;\n readonly FRONT_FACE: GLenum;\n readonly FUNC_ADD: GLenum;\n readonly FUNC_REVERSE_SUBTRACT: GLenum;\n readonly FUNC_SUBTRACT: GLenum;\n readonly GENERATE_MIPMAP_HINT: GLenum;\n readonly GEQUAL: GLenum;\n readonly GREATER: GLenum;\n readonly GREEN_BITS: GLenum;\n readonly HIGH_FLOAT: GLenum;\n readonly HIGH_INT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n readonly INCR: GLenum;\n readonly INCR_WRAP: GLenum;\n readonly INT: GLenum;\n readonly INT_VEC2: GLenum;\n readonly INT_VEC3: GLenum;\n readonly INT_VEC4: GLenum;\n readonly INVALID_ENUM: GLenum;\n readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n readonly INVALID_OPERATION: GLenum;\n readonly INVALID_VALUE: GLenum;\n readonly INVERT: GLenum;\n readonly KEEP: GLenum;\n readonly LEQUAL: GLenum;\n readonly LESS: GLenum;\n readonly LINEAR: GLenum;\n readonly LINEAR_MIPMAP_LINEAR: GLenum;\n readonly LINEAR_MIPMAP_NEAREST: GLenum;\n readonly LINES: GLenum;\n readonly LINE_LOOP: GLenum;\n readonly LINE_STRIP: GLenum;\n readonly LINE_WIDTH: GLenum;\n readonly LINK_STATUS: GLenum;\n readonly LOW_FLOAT: GLenum;\n readonly LOW_INT: GLenum;\n readonly LUMINANCE: GLenum;\n readonly LUMINANCE_ALPHA: GLenum;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n readonly MAX_RENDERBUFFER_SIZE: GLenum;\n readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_TEXTURE_SIZE: GLenum;\n readonly MAX_VARYING_VECTORS: GLenum;\n readonly MAX_VERTEX_ATTRIBS: GLenum;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n readonly MAX_VIEWPORT_DIMS: GLenum;\n readonly MEDIUM_FLOAT: GLenum;\n readonly MEDIUM_INT: GLenum;\n readonly MIRRORED_REPEAT: GLenum;\n readonly NEAREST: GLenum;\n readonly NEAREST_MIPMAP_LINEAR: GLenum;\n readonly NEAREST_MIPMAP_NEAREST: GLenum;\n readonly NEVER: GLenum;\n readonly NICEST: GLenum;\n readonly NONE: GLenum;\n readonly NOTEQUAL: GLenum;\n readonly NO_ERROR: GLenum;\n readonly ONE: GLenum;\n readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n readonly ONE_MINUS_DST_ALPHA: GLenum;\n readonly ONE_MINUS_DST_COLOR: GLenum;\n readonly ONE_MINUS_SRC_ALPHA: GLenum;\n readonly ONE_MINUS_SRC_COLOR: GLenum;\n readonly OUT_OF_MEMORY: GLenum;\n readonly PACK_ALIGNMENT: GLenum;\n readonly POINTS: GLenum;\n readonly POLYGON_OFFSET_FACTOR: GLenum;\n readonly POLYGON_OFFSET_FILL: GLenum;\n readonly POLYGON_OFFSET_UNITS: GLenum;\n readonly RED_BITS: GLenum;\n readonly RENDERBUFFER: GLenum;\n readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n readonly RENDERBUFFER_BINDING: GLenum;\n readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n readonly RENDERBUFFER_HEIGHT: GLenum;\n readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n readonly RENDERBUFFER_RED_SIZE: GLenum;\n readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n readonly RENDERBUFFER_WIDTH: GLenum;\n readonly RENDERER: GLenum;\n readonly REPEAT: GLenum;\n readonly REPLACE: GLenum;\n readonly RGB: GLenum;\n readonly RGB565: GLenum;\n readonly RGB5_A1: GLenum;\n readonly RGBA: GLenum;\n readonly RGBA4: GLenum;\n readonly SAMPLER_2D: GLenum;\n readonly SAMPLER_CUBE: GLenum;\n readonly SAMPLES: GLenum;\n readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n readonly SAMPLE_BUFFERS: GLenum;\n readonly SAMPLE_COVERAGE: GLenum;\n readonly SAMPLE_COVERAGE_INVERT: GLenum;\n readonly SAMPLE_COVERAGE_VALUE: GLenum;\n readonly SCISSOR_BOX: GLenum;\n readonly SCISSOR_TEST: GLenum;\n readonly SHADER_TYPE: GLenum;\n readonly SHADING_LANGUAGE_VERSION: GLenum;\n readonly SHORT: GLenum;\n readonly SRC_ALPHA: GLenum;\n readonly SRC_ALPHA_SATURATE: GLenum;\n readonly SRC_COLOR: GLenum;\n readonly STATIC_DRAW: GLenum;\n readonly STENCIL_ATTACHMENT: GLenum;\n readonly STENCIL_BACK_FAIL: GLenum;\n readonly STENCIL_BACK_FUNC: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_BACK_REF: GLenum;\n readonly STENCIL_BACK_VALUE_MASK: GLenum;\n readonly STENCIL_BACK_WRITEMASK: GLenum;\n readonly STENCIL_BITS: GLenum;\n readonly STENCIL_BUFFER_BIT: GLenum;\n readonly STENCIL_CLEAR_VALUE: GLenum;\n readonly STENCIL_FAIL: GLenum;\n readonly STENCIL_FUNC: GLenum;\n readonly STENCIL_INDEX8: GLenum;\n readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_REF: GLenum;\n readonly STENCIL_TEST: GLenum;\n readonly STENCIL_VALUE_MASK: GLenum;\n readonly STENCIL_WRITEMASK: GLenum;\n readonly STREAM_DRAW: GLenum;\n readonly SUBPIXEL_BITS: GLenum;\n readonly TEXTURE: GLenum;\n readonly TEXTURE0: GLenum;\n readonly TEXTURE1: GLenum;\n readonly TEXTURE10: GLenum;\n readonly TEXTURE11: GLenum;\n readonly TEXTURE12: GLenum;\n readonly TEXTURE13: GLenum;\n readonly TEXTURE14: GLenum;\n readonly TEXTURE15: GLenum;\n readonly TEXTURE16: GLenum;\n readonly TEXTURE17: GLenum;\n readonly TEXTURE18: GLenum;\n readonly TEXTURE19: GLenum;\n readonly TEXTURE2: GLenum;\n readonly TEXTURE20: GLenum;\n readonly TEXTURE21: GLenum;\n readonly TEXTURE22: GLenum;\n readonly TEXTURE23: GLenum;\n readonly TEXTURE24: GLenum;\n readonly TEXTURE25: GLenum;\n readonly TEXTURE26: GLenum;\n readonly TEXTURE27: GLenum;\n readonly TEXTURE28: GLenum;\n readonly TEXTURE29: GLenum;\n readonly TEXTURE3: GLenum;\n readonly TEXTURE30: GLenum;\n readonly TEXTURE31: GLenum;\n readonly TEXTURE4: GLenum;\n readonly TEXTURE5: GLenum;\n readonly TEXTURE6: GLenum;\n readonly TEXTURE7: GLenum;\n readonly TEXTURE8: GLenum;\n readonly TEXTURE9: GLenum;\n readonly TEXTURE_2D: GLenum;\n readonly TEXTURE_BINDING_2D: GLenum;\n readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n readonly TEXTURE_MAG_FILTER: GLenum;\n readonly TEXTURE_MIN_FILTER: GLenum;\n readonly TEXTURE_WRAP_S: GLenum;\n readonly TEXTURE_WRAP_T: GLenum;\n readonly TRIANGLES: GLenum;\n readonly TRIANGLE_FAN: GLenum;\n readonly TRIANGLE_STRIP: GLenum;\n readonly UNPACK_ALIGNMENT: GLenum;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n readonly UNSIGNED_BYTE: GLenum;\n readonly UNSIGNED_INT: GLenum;\n readonly UNSIGNED_SHORT: GLenum;\n readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n readonly UNSIGNED_SHORT_5_6_5: GLenum;\n readonly VALIDATE_STATUS: GLenum;\n readonly VENDOR: GLenum;\n readonly VERSION: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n readonly VERTEX_SHADER: GLenum;\n readonly VIEWPORT: GLenum;\n readonly ZERO: GLenum;\n};\n\ninterface WebGLRenderingContextBase {\n readonly drawingBufferHeight: GLsizei;\n readonly drawingBufferWidth: GLsizei;\n activeTexture(texture: GLenum): void;\n attachShader(program: WebGLProgram, shader: WebGLShader): void;\n bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;\n bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;\n bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;\n bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n bindTexture(target: GLenum, texture: WebGLTexture | null): void;\n blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n blendEquation(mode: GLenum): void;\n blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;\n blendFunc(sfactor: GLenum, dfactor: GLenum): void;\n blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n checkFramebufferStatus(target: GLenum): GLenum;\n clear(mask: GLbitfield): void;\n clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n clearDepth(depth: GLclampf): void;\n clearStencil(s: GLint): void;\n colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;\n compileShader(shader: WebGLShader): void;\n copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;\n copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n createBuffer(): WebGLBuffer | null;\n createFramebuffer(): WebGLFramebuffer | null;\n createProgram(): WebGLProgram | null;\n createRenderbuffer(): WebGLRenderbuffer | null;\n createShader(type: GLenum): WebGLShader | null;\n createTexture(): WebGLTexture | null;\n cullFace(mode: GLenum): void;\n deleteBuffer(buffer: WebGLBuffer | null): void;\n deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;\n deleteProgram(program: WebGLProgram | null): void;\n deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;\n deleteShader(shader: WebGLShader | null): void;\n deleteTexture(texture: WebGLTexture | null): void;\n depthFunc(func: GLenum): void;\n depthMask(flag: GLboolean): void;\n depthRange(zNear: GLclampf, zFar: GLclampf): void;\n detachShader(program: WebGLProgram, shader: WebGLShader): void;\n disable(cap: GLenum): void;\n disableVertexAttribArray(index: GLuint): void;\n drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;\n drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;\n enable(cap: GLenum): void;\n enableVertexAttribArray(index: GLuint): void;\n finish(): void;\n flush(): void;\n framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;\n frontFace(mode: GLenum): void;\n generateMipmap(target: GLenum): void;\n getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;\n getAttribLocation(program: WebGLProgram, name: string): GLint;\n getBufferParameter(target: GLenum, pname: GLenum): any;\n getContextAttributes(): WebGLContextAttributes | null;\n getError(): GLenum;\n getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;\n getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;\n getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;\n getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;\n getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;\n getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;\n getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;\n getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;\n getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;\n getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;\n getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;\n getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;\n getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;\n getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;\n getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;\n getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;\n getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;\n getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;\n getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;\n getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;\n getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;\n getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;\n getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;\n getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;\n getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;\n getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;\n getExtension(name: string): any;\n getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;\n getParameter(pname: GLenum): any;\n getProgramInfoLog(program: WebGLProgram): string | null;\n getProgramParameter(program: WebGLProgram, pname: GLenum): any;\n getRenderbufferParameter(target: GLenum, pname: GLenum): any;\n getShaderInfoLog(shader: WebGLShader): string | null;\n getShaderParameter(shader: WebGLShader, pname: GLenum): any;\n getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;\n getShaderSource(shader: WebGLShader): string | null;\n getSupportedExtensions(): string[] | null;\n getTexParameter(target: GLenum, pname: GLenum): any;\n getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;\n getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;\n getVertexAttrib(index: GLuint, pname: GLenum): any;\n getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;\n hint(target: GLenum, mode: GLenum): void;\n isBuffer(buffer: WebGLBuffer | null): GLboolean;\n isContextLost(): boolean;\n isEnabled(cap: GLenum): GLboolean;\n isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;\n isProgram(program: WebGLProgram | null): GLboolean;\n isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;\n isShader(shader: WebGLShader | null): GLboolean;\n isTexture(texture: WebGLTexture | null): GLboolean;\n lineWidth(width: GLfloat): void;\n linkProgram(program: WebGLProgram): void;\n pixelStorei(pname: GLenum, param: GLint | GLboolean): void;\n polygonOffset(factor: GLfloat, units: GLfloat): void;\n renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n sampleCoverage(value: GLclampf, invert: GLboolean): void;\n scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n shaderSource(shader: WebGLShader, source: string): void;\n stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;\n stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;\n stencilMask(mask: GLuint): void;\n stencilMaskSeparate(face: GLenum, mask: GLuint): void;\n stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;\n useProgram(program: WebGLProgram | null): void;\n validateProgram(program: WebGLProgram): void;\n vertexAttrib1f(index: GLuint, x: GLfloat): void;\n vertexAttrib1fv(index: GLuint, values: Float32List): void;\n vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;\n vertexAttrib2fv(index: GLuint, values: Float32List): void;\n vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;\n vertexAttrib3fv(index: GLuint, values: Float32List): void;\n vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n vertexAttrib4fv(index: GLuint, values: Float32List): void;\n vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;\n viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n readonly ACTIVE_ATTRIBUTES: GLenum;\n readonly ACTIVE_TEXTURE: GLenum;\n readonly ACTIVE_UNIFORMS: GLenum;\n readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n readonly ALPHA: GLenum;\n readonly ALPHA_BITS: GLenum;\n readonly ALWAYS: GLenum;\n readonly ARRAY_BUFFER: GLenum;\n readonly ARRAY_BUFFER_BINDING: GLenum;\n readonly ATTACHED_SHADERS: GLenum;\n readonly BACK: GLenum;\n readonly BLEND: GLenum;\n readonly BLEND_COLOR: GLenum;\n readonly BLEND_DST_ALPHA: GLenum;\n readonly BLEND_DST_RGB: GLenum;\n readonly BLEND_EQUATION: GLenum;\n readonly BLEND_EQUATION_ALPHA: GLenum;\n readonly BLEND_EQUATION_RGB: GLenum;\n readonly BLEND_SRC_ALPHA: GLenum;\n readonly BLEND_SRC_RGB: GLenum;\n readonly BLUE_BITS: GLenum;\n readonly BOOL: GLenum;\n readonly BOOL_VEC2: GLenum;\n readonly BOOL_VEC3: GLenum;\n readonly BOOL_VEC4: GLenum;\n readonly BROWSER_DEFAULT_WEBGL: GLenum;\n readonly BUFFER_SIZE: GLenum;\n readonly BUFFER_USAGE: GLenum;\n readonly BYTE: GLenum;\n readonly CCW: GLenum;\n readonly CLAMP_TO_EDGE: GLenum;\n readonly COLOR_ATTACHMENT0: GLenum;\n readonly COLOR_BUFFER_BIT: GLenum;\n readonly COLOR_CLEAR_VALUE: GLenum;\n readonly COLOR_WRITEMASK: GLenum;\n readonly COMPILE_STATUS: GLenum;\n readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n readonly CONSTANT_ALPHA: GLenum;\n readonly CONSTANT_COLOR: GLenum;\n readonly CONTEXT_LOST_WEBGL: GLenum;\n readonly CULL_FACE: GLenum;\n readonly CULL_FACE_MODE: GLenum;\n readonly CURRENT_PROGRAM: GLenum;\n readonly CURRENT_VERTEX_ATTRIB: GLenum;\n readonly CW: GLenum;\n readonly DECR: GLenum;\n readonly DECR_WRAP: GLenum;\n readonly DELETE_STATUS: GLenum;\n readonly DEPTH_ATTACHMENT: GLenum;\n readonly DEPTH_BITS: GLenum;\n readonly DEPTH_BUFFER_BIT: GLenum;\n readonly DEPTH_CLEAR_VALUE: GLenum;\n readonly DEPTH_COMPONENT: GLenum;\n readonly DEPTH_COMPONENT16: GLenum;\n readonly DEPTH_FUNC: GLenum;\n readonly DEPTH_RANGE: GLenum;\n readonly DEPTH_STENCIL: GLenum;\n readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n readonly DEPTH_TEST: GLenum;\n readonly DEPTH_WRITEMASK: GLenum;\n readonly DITHER: GLenum;\n readonly DONT_CARE: GLenum;\n readonly DST_ALPHA: GLenum;\n readonly DST_COLOR: GLenum;\n readonly DYNAMIC_DRAW: GLenum;\n readonly ELEMENT_ARRAY_BUFFER: GLenum;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n readonly EQUAL: GLenum;\n readonly FASTEST: GLenum;\n readonly FLOAT: GLenum;\n readonly FLOAT_MAT2: GLenum;\n readonly FLOAT_MAT3: GLenum;\n readonly FLOAT_MAT4: GLenum;\n readonly FLOAT_VEC2: GLenum;\n readonly FLOAT_VEC3: GLenum;\n readonly FLOAT_VEC4: GLenum;\n readonly FRAGMENT_SHADER: GLenum;\n readonly FRAMEBUFFER: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n readonly FRAMEBUFFER_BINDING: GLenum;\n readonly FRAMEBUFFER_COMPLETE: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n readonly FRONT: GLenum;\n readonly FRONT_AND_BACK: GLenum;\n readonly FRONT_FACE: GLenum;\n readonly FUNC_ADD: GLenum;\n readonly FUNC_REVERSE_SUBTRACT: GLenum;\n readonly FUNC_SUBTRACT: GLenum;\n readonly GENERATE_MIPMAP_HINT: GLenum;\n readonly GEQUAL: GLenum;\n readonly GREATER: GLenum;\n readonly GREEN_BITS: GLenum;\n readonly HIGH_FLOAT: GLenum;\n readonly HIGH_INT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n readonly INCR: GLenum;\n readonly INCR_WRAP: GLenum;\n readonly INT: GLenum;\n readonly INT_VEC2: GLenum;\n readonly INT_VEC3: GLenum;\n readonly INT_VEC4: GLenum;\n readonly INVALID_ENUM: GLenum;\n readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n readonly INVALID_OPERATION: GLenum;\n readonly INVALID_VALUE: GLenum;\n readonly INVERT: GLenum;\n readonly KEEP: GLenum;\n readonly LEQUAL: GLenum;\n readonly LESS: GLenum;\n readonly LINEAR: GLenum;\n readonly LINEAR_MIPMAP_LINEAR: GLenum;\n readonly LINEAR_MIPMAP_NEAREST: GLenum;\n readonly LINES: GLenum;\n readonly LINE_LOOP: GLenum;\n readonly LINE_STRIP: GLenum;\n readonly LINE_WIDTH: GLenum;\n readonly LINK_STATUS: GLenum;\n readonly LOW_FLOAT: GLenum;\n readonly LOW_INT: GLenum;\n readonly LUMINANCE: GLenum;\n readonly LUMINANCE_ALPHA: GLenum;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n readonly MAX_RENDERBUFFER_SIZE: GLenum;\n readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_TEXTURE_SIZE: GLenum;\n readonly MAX_VARYING_VECTORS: GLenum;\n readonly MAX_VERTEX_ATTRIBS: GLenum;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n readonly MAX_VIEWPORT_DIMS: GLenum;\n readonly MEDIUM_FLOAT: GLenum;\n readonly MEDIUM_INT: GLenum;\n readonly MIRRORED_REPEAT: GLenum;\n readonly NEAREST: GLenum;\n readonly NEAREST_MIPMAP_LINEAR: GLenum;\n readonly NEAREST_MIPMAP_NEAREST: GLenum;\n readonly NEVER: GLenum;\n readonly NICEST: GLenum;\n readonly NONE: GLenum;\n readonly NOTEQUAL: GLenum;\n readonly NO_ERROR: GLenum;\n readonly ONE: GLenum;\n readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n readonly ONE_MINUS_DST_ALPHA: GLenum;\n readonly ONE_MINUS_DST_COLOR: GLenum;\n readonly ONE_MINUS_SRC_ALPHA: GLenum;\n readonly ONE_MINUS_SRC_COLOR: GLenum;\n readonly OUT_OF_MEMORY: GLenum;\n readonly PACK_ALIGNMENT: GLenum;\n readonly POINTS: GLenum;\n readonly POLYGON_OFFSET_FACTOR: GLenum;\n readonly POLYGON_OFFSET_FILL: GLenum;\n readonly POLYGON_OFFSET_UNITS: GLenum;\n readonly RED_BITS: GLenum;\n readonly RENDERBUFFER: GLenum;\n readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n readonly RENDERBUFFER_BINDING: GLenum;\n readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n readonly RENDERBUFFER_HEIGHT: GLenum;\n readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n readonly RENDERBUFFER_RED_SIZE: GLenum;\n readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n readonly RENDERBUFFER_WIDTH: GLenum;\n readonly RENDERER: GLenum;\n readonly REPEAT: GLenum;\n readonly REPLACE: GLenum;\n readonly RGB: GLenum;\n readonly RGB565: GLenum;\n readonly RGB5_A1: GLenum;\n readonly RGBA: GLenum;\n readonly RGBA4: GLenum;\n readonly SAMPLER_2D: GLenum;\n readonly SAMPLER_CUBE: GLenum;\n readonly SAMPLES: GLenum;\n readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n readonly SAMPLE_BUFFERS: GLenum;\n readonly SAMPLE_COVERAGE: GLenum;\n readonly SAMPLE_COVERAGE_INVERT: GLenum;\n readonly SAMPLE_COVERAGE_VALUE: GLenum;\n readonly SCISSOR_BOX: GLenum;\n readonly SCISSOR_TEST: GLenum;\n readonly SHADER_TYPE: GLenum;\n readonly SHADING_LANGUAGE_VERSION: GLenum;\n readonly SHORT: GLenum;\n readonly SRC_ALPHA: GLenum;\n readonly SRC_ALPHA_SATURATE: GLenum;\n readonly SRC_COLOR: GLenum;\n readonly STATIC_DRAW: GLenum;\n readonly STENCIL_ATTACHMENT: GLenum;\n readonly STENCIL_BACK_FAIL: GLenum;\n readonly STENCIL_BACK_FUNC: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_BACK_REF: GLenum;\n readonly STENCIL_BACK_VALUE_MASK: GLenum;\n readonly STENCIL_BACK_WRITEMASK: GLenum;\n readonly STENCIL_BITS: GLenum;\n readonly STENCIL_BUFFER_BIT: GLenum;\n readonly STENCIL_CLEAR_VALUE: GLenum;\n readonly STENCIL_FAIL: GLenum;\n readonly STENCIL_FUNC: GLenum;\n readonly STENCIL_INDEX8: GLenum;\n readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_REF: GLenum;\n readonly STENCIL_TEST: GLenum;\n readonly STENCIL_VALUE_MASK: GLenum;\n readonly STENCIL_WRITEMASK: GLenum;\n readonly STREAM_DRAW: GLenum;\n readonly SUBPIXEL_BITS: GLenum;\n readonly TEXTURE: GLenum;\n readonly TEXTURE0: GLenum;\n readonly TEXTURE1: GLenum;\n readonly TEXTURE10: GLenum;\n readonly TEXTURE11: GLenum;\n readonly TEXTURE12: GLenum;\n readonly TEXTURE13: GLenum;\n readonly TEXTURE14: GLenum;\n readonly TEXTURE15: GLenum;\n readonly TEXTURE16: GLenum;\n readonly TEXTURE17: GLenum;\n readonly TEXTURE18: GLenum;\n readonly TEXTURE19: GLenum;\n readonly TEXTURE2: GLenum;\n readonly TEXTURE20: GLenum;\n readonly TEXTURE21: GLenum;\n readonly TEXTURE22: GLenum;\n readonly TEXTURE23: GLenum;\n readonly TEXTURE24: GLenum;\n readonly TEXTURE25: GLenum;\n readonly TEXTURE26: GLenum;\n readonly TEXTURE27: GLenum;\n readonly TEXTURE28: GLenum;\n readonly TEXTURE29: GLenum;\n readonly TEXTURE3: GLenum;\n readonly TEXTURE30: GLenum;\n readonly TEXTURE31: GLenum;\n readonly TEXTURE4: GLenum;\n readonly TEXTURE5: GLenum;\n readonly TEXTURE6: GLenum;\n readonly TEXTURE7: GLenum;\n readonly TEXTURE8: GLenum;\n readonly TEXTURE9: GLenum;\n readonly TEXTURE_2D: GLenum;\n readonly TEXTURE_BINDING_2D: GLenum;\n readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n readonly TEXTURE_MAG_FILTER: GLenum;\n readonly TEXTURE_MIN_FILTER: GLenum;\n readonly TEXTURE_WRAP_S: GLenum;\n readonly TEXTURE_WRAP_T: GLenum;\n readonly TRIANGLES: GLenum;\n readonly TRIANGLE_FAN: GLenum;\n readonly TRIANGLE_STRIP: GLenum;\n readonly UNPACK_ALIGNMENT: GLenum;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n readonly UNSIGNED_BYTE: GLenum;\n readonly UNSIGNED_INT: GLenum;\n readonly UNSIGNED_SHORT: GLenum;\n readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n readonly UNSIGNED_SHORT_5_6_5: GLenum;\n readonly VALIDATE_STATUS: GLenum;\n readonly VENDOR: GLenum;\n readonly VERSION: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n readonly VERTEX_SHADER: GLenum;\n readonly VIEWPORT: GLenum;\n readonly ZERO: GLenum;\n}\n\ninterface WebGLRenderingContextOverloads {\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;\n bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n}\n\ninterface WebGLSampler {\n}\n\ndeclare var WebGLSampler: {\n prototype: WebGLSampler;\n new(): WebGLSampler;\n};\n\n/** 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. */\ninterface WebGLShader {\n}\n\ndeclare var WebGLShader: {\n prototype: WebGLShader;\n new(): WebGLShader;\n};\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */\ninterface WebGLShaderPrecisionFormat {\n readonly precision: GLint;\n readonly rangeMax: GLint;\n readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n prototype: WebGLSync;\n new(): WebGLSync;\n};\n\n/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */\ninterface WebGLTexture {\n}\n\ndeclare var WebGLTexture: {\n prototype: WebGLTexture;\n new(): WebGLTexture;\n};\n\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n prototype: WebGLTransformFeedback;\n new(): WebGLTransformFeedback;\n};\n\n/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n prototype: WebGLUniformLocation;\n new(): WebGLUniformLocation;\n};\n\ninterface WebGLVertexArrayObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n prototype: WebGLVertexArrayObject;\n new(): WebGLVertexArrayObject;\n};\n\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */\ninterface WebSocket extends EventTarget {\n /**\n * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n *\n * Can be set, to change how binary data is returned. The default is "blob".\n */\n binaryType: BinaryType;\n /**\n * 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.\n *\n * 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.)\n */\n readonly bufferedAmount: number;\n /**\n * Returns the extensions selected by the server, if any.\n */\n readonly extensions: string;\n onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;\n onerror: ((this: WebSocket, ev: Event) => any) | null;\n onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;\n onopen: ((this: WebSocket, ev: Event) => any) | null;\n /**\n * 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.\n */\n readonly protocol: string;\n /**\n * Returns the state of the WebSocket object\'s connection. It can have the values described below.\n */\n readonly readyState: number;\n /**\n * Returns the URL that was used to establish the WebSocket connection.\n */\n readonly url: string;\n /**\n * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.\n */\n close(code?: number, reason?: string): void;\n /**\n * Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.\n */\n send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;\n readonly CLOSED: number;\n readonly CLOSING: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WebSocket: {\n prototype: WebSocket;\n new(url: string | URL, protocols?: string | string[]): WebSocket;\n readonly CLOSED: number;\n readonly CLOSING: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n};\n\n/** 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. */\ninterface WindowClient extends Client {\n readonly focused: boolean;\n readonly visibilityState: VisibilityState;\n focus(): Promise<WindowClient>;\n navigate(url: string | URL): Promise<WindowClient | null>;\n}\n\ndeclare var WindowClient: {\n prototype: WindowClient;\n new(): WindowClient;\n};\n\ninterface WindowOrWorkerGlobalScope {\n readonly caches: CacheStorage;\n readonly crossOriginIsolated: boolean;\n readonly crypto: Crypto;\n readonly indexedDB: IDBFactory;\n readonly isSecureContext: boolean;\n readonly origin: string;\n readonly performance: Performance;\n atob(data: string): string;\n btoa(data: string): string;\n clearInterval(handle?: number): void;\n clearTimeout(handle?: number): void;\n createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;\n queueMicrotask(callback: VoidFunction): void;\n setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** 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. */\ninterface Worker extends EventTarget, AbstractWorker {\n onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;\n /**\n * 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.\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: PostMessageOptions): void;\n /**\n * Aborts worker\'s associated global environment.\n */\n terminate(): void;\n addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Worker: {\n prototype: Worker;\n new(scriptURL: string | URL, options?: WorkerOptions): Worker;\n};\n\ninterface WorkerGlobalScopeEventMap {\n "error": ErrorEvent;\n "languagechange": Event;\n "offline": Event;\n "online": Event;\n "rejectionhandled": PromiseRejectionEvent;\n "unhandledrejection": PromiseRejectionEvent;\n}\n\n/** 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 — in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */\ninterface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {\n /**\n * Returns workerGlobal\'s WorkerLocation object.\n */\n readonly location: WorkerLocation;\n /**\n * Returns workerGlobal\'s WorkerNavigator object.\n */\n readonly navigator: WorkerNavigator;\n onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;\n onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n /**\n * Returns workerGlobal.\n */\n readonly self: WorkerGlobalScope & typeof globalThis;\n /**\n * 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).\n */\n importScripts(...urls: (string | URL)[]): void;\n addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WorkerGlobalScope: {\n prototype: WorkerGlobalScope;\n new(): WorkerGlobalScope;\n};\n\n/** 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. */\ninterface WorkerLocation {\n readonly hash: string;\n readonly host: string;\n readonly hostname: string;\n readonly href: string;\n toString(): string;\n readonly origin: string;\n readonly pathname: string;\n readonly port: string;\n readonly protocol: string;\n readonly search: string;\n}\n\ndeclare var WorkerLocation: {\n prototype: WorkerLocation;\n new(): WorkerLocation;\n};\n\n/** 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. */\ninterface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {\n readonly mediaCapabilities: MediaCapabilities;\n}\n\ndeclare var WorkerNavigator: {\n prototype: WorkerNavigator;\n new(): WorkerNavigator;\n};\n\n/** This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */\ninterface WritableStream<W = any> {\n readonly locked: boolean;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n getWriter(): WritableStreamDefaultWriter<W>;\n}\n\ndeclare var WritableStream: {\n prototype: WritableStream;\n new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;\n};\n\n/** This Streams API interface represents a controller allowing control of a WritableStream\'s state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */\ninterface WritableStreamDefaultController {\n error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\n/** 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. */\ninterface WritableStreamDefaultWriter<W = any> {\n readonly closed: Promise<undefined>;\n readonly desiredSize: number | null;\n readonly ready: Promise<undefined>;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n releaseLock(): void;\n write(chunk?: W): Promise<void>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n prototype: WritableStreamDefaultWriter;\n new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;\n};\n\ninterface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {\n "readystatechange": Event;\n}\n\n/** 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. */\ninterface XMLHttpRequest extends XMLHttpRequestEventTarget {\n onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n /**\n * Returns client\'s state.\n */\n readonly readyState: number;\n /**\n * Returns the response body.\n */\n readonly response: any;\n /**\n * Returns response as text.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".\n */\n readonly responseText: string;\n /**\n * Returns the response type.\n *\n * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".\n *\n * When set: setting to "document" is ignored if current global object is not a Window object.\n *\n * When set: throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n */\n responseType: XMLHttpRequestResponseType;\n readonly responseURL: string;\n readonly status: number;\n readonly statusText: string;\n /**\n * 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).\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n */\n timeout: number;\n /**\n * Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.\n */\n readonly upload: XMLHttpRequestUpload;\n /**\n * 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.\n *\n * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.\n */\n withCredentials: boolean;\n /**\n * Cancels any network activity.\n */\n abort(): void;\n getAllResponseHeaders(): string;\n getResponseHeader(name: string): string | null;\n /**\n * Sets the request method, request URL, and synchronous flag.\n *\n * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.\n *\n * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.\n *\n * 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.\n */\n open(method: string, url: string | URL): void;\n open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;\n /**\n * Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.)\n *\n * Throws an "InvalidStateError" DOMException if state is loading or done.\n */\n overrideMimeType(mime: string): void;\n /**\n * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n */\n send(body?: XMLHttpRequestBodyInit | null): void;\n /**\n * Combines a header in author request headers.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.\n */\n setRequestHeader(name: string, value: string): void;\n readonly DONE: number;\n readonly HEADERS_RECEIVED: number;\n readonly LOADING: number;\n readonly OPENED: number;\n readonly UNSENT: number;\n addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequest: {\n prototype: XMLHttpRequest;\n new(): XMLHttpRequest;\n readonly DONE: number;\n readonly HEADERS_RECEIVED: number;\n readonly LOADING: number;\n readonly OPENED: number;\n readonly UNSENT: number;\n};\n\ninterface XMLHttpRequestEventTargetEventMap {\n "abort": ProgressEvent<XMLHttpRequestEventTarget>;\n "error": ProgressEvent<XMLHttpRequestEventTarget>;\n "load": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadend": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;\n "progress": ProgressEvent<XMLHttpRequestEventTarget>;\n "timeout": ProgressEvent<XMLHttpRequestEventTarget>;\n}\n\ninterface XMLHttpRequestEventTarget extends EventTarget {\n onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestEventTarget: {\n prototype: XMLHttpRequestEventTarget;\n new(): XMLHttpRequestEventTarget;\n};\n\ninterface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestUpload: {\n prototype: XMLHttpRequestUpload;\n new(): XMLHttpRequestUpload;\n};\n\ninterface Console {\n assert(condition?: boolean, ...data: any[]): void;\n clear(): void;\n count(label?: string): void;\n countReset(label?: string): void;\n debug(...data: any[]): void;\n dir(item?: any, options?: any): void;\n dirxml(...data: any[]): void;\n error(...data: any[]): void;\n group(...data: any[]): void;\n groupCollapsed(...data: any[]): void;\n groupEnd(): void;\n info(...data: any[]): void;\n log(...data: any[]): void;\n table(tabularData?: any, properties?: string[]): void;\n time(label?: string): void;\n timeEnd(label?: string): void;\n timeLog(label?: string, ...data: any[]): void;\n timeStamp(label?: string): void;\n trace(...data: any[]): void;\n warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\n\ndeclare namespace WebAssembly {\n interface CompileError extends Error {\n }\n\n var CompileError: {\n prototype: CompileError;\n new(): CompileError;\n };\n\n interface Global {\n value: any;\n valueOf(): any;\n }\n\n var Global: {\n prototype: Global;\n new(descriptor: GlobalDescriptor, v?: any): Global;\n };\n\n interface Instance {\n readonly exports: Exports;\n }\n\n var Instance: {\n prototype: Instance;\n new(module: Module, importObject?: Imports): Instance;\n };\n\n interface LinkError extends Error {\n }\n\n var LinkError: {\n prototype: LinkError;\n new(): LinkError;\n };\n\n interface Memory {\n readonly buffer: ArrayBuffer;\n grow(delta: number): number;\n }\n\n var Memory: {\n prototype: Memory;\n new(descriptor: MemoryDescriptor): Memory;\n };\n\n interface Module {\n }\n\n var Module: {\n prototype: Module;\n new(bytes: BufferSource): Module;\n customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n exports(moduleObject: Module): ModuleExportDescriptor[];\n imports(moduleObject: Module): ModuleImportDescriptor[];\n };\n\n interface RuntimeError extends Error {\n }\n\n var RuntimeError: {\n prototype: RuntimeError;\n new(): RuntimeError;\n };\n\n interface Table {\n readonly length: number;\n get(index: number): any;\n grow(delta: number, value?: any): number;\n set(index: number, value?: any): void;\n }\n\n var Table: {\n prototype: Table;\n new(descriptor: TableDescriptor, value?: any): Table;\n };\n\n interface GlobalDescriptor {\n mutable?: boolean;\n value: ValueType;\n }\n\n interface MemoryDescriptor {\n initial: number;\n maximum?: number;\n shared?: boolean;\n }\n\n interface ModuleExportDescriptor {\n kind: ImportExportKind;\n name: string;\n }\n\n interface ModuleImportDescriptor {\n kind: ImportExportKind;\n module: string;\n name: string;\n }\n\n interface TableDescriptor {\n element: TableKind;\n initial: number;\n maximum?: number;\n }\n\n interface WebAssemblyInstantiatedSource {\n instance: Instance;\n module: Module;\n }\n\n type ImportExportKind = "function" | "global" | "memory" | "table";\n type TableKind = "anyfunc" | "externref";\n type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";\n type ExportValue = Function | Global | Memory | Table;\n type Exports = Record<string, ExportValue>;\n type ImportValue = ExportValue | number;\n type Imports = Record<string, ModuleImports>;\n type ModuleImports = Record<string, ImportValue>;\n function compile(bytes: BufferSource): Promise<Module>;\n function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;\n function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function validate(bytes: BufferSource): boolean;\n}\n\ninterface FrameRequestCallback {\n (time: DOMHighResTimeStamp): void;\n}\n\ninterface OnErrorEventHandlerNonNull {\n (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n}\n\ninterface PerformanceObserverCallback {\n (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;\n}\n\ninterface QueuingStrategySize<T = any> {\n (chunk?: T): number;\n}\n\ninterface TransformerFlushCallback<O> {\n (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformerStartCallback<O> {\n (controller: TransformStreamDefaultController<O>): any;\n}\n\ninterface TransformerTransformCallback<I, O> {\n (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkAbortCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkCloseCallback {\n (): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkStartCallback {\n (controller: WritableStreamDefaultController): any;\n}\n\ninterface UnderlyingSinkWriteCallback<W> {\n (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceCancelCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourcePullCallback<R> {\n (controller: ReadableStreamController<R>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceStartCallback<R> {\n (controller: ReadableStreamController<R>): any;\n}\n\ninterface VoidFunction {\n (): void;\n}\n\n/**\n * Returns dedicatedWorkerGlobal\'s name, i.e. the value given to the Worker constructor. Primarily useful for debugging.\n */\ndeclare var name: string;\ndeclare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\ndeclare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n/**\n * Aborts dedicatedWorkerGlobal.\n */\ndeclare function close(): void;\n/**\n * 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.\n */\ndeclare function postMessage(message: any, transfer: Transferable[]): void;\ndeclare function postMessage(message: any, options?: PostMessageOptions): void;\n/**\n * 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.\n */\ndeclare function dispatchEvent(event: Event): boolean;\n/**\n * Returns workerGlobal\'s WorkerLocation object.\n */\ndeclare var location: WorkerLocation;\n/**\n * Returns workerGlobal\'s WorkerNavigator object.\n */\ndeclare var navigator: WorkerNavigator;\ndeclare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;\ndeclare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\ndeclare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\ndeclare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\ndeclare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n/**\n * Returns workerGlobal.\n */\ndeclare var self: WorkerGlobalScope & typeof globalThis;\n/**\n * 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).\n */\ndeclare function importScripts(...urls: (string | URL)[]): void;\n/**\n * 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.\n */\ndeclare function dispatchEvent(event: Event): boolean;\ndeclare var fonts: FontFaceSet;\ndeclare var caches: CacheStorage;\ndeclare var crossOriginIsolated: boolean;\ndeclare var crypto: Crypto;\ndeclare var indexedDB: IDBFactory;\ndeclare var isSecureContext: boolean;\ndeclare var origin: string;\ndeclare var performance: Performance;\ndeclare function atob(data: string): string;\ndeclare function btoa(data: string): string;\ndeclare function clearInterval(handle?: number): void;\ndeclare function clearTimeout(handle?: number): void;\ndeclare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;\ndeclare function queueMicrotask(callback: VoidFunction): void;\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function cancelAnimationFrame(handle: number): void;\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\ndeclare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\ndeclare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\ndeclare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\ndeclare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\ntype AlgorithmIdentifier = Algorithm | string;\ntype BigInteger = Uint8Array;\ntype BinaryData = ArrayBuffer | ArrayBufferView;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView | ArrayBuffer;\ntype CanvasImageSource = ImageBitmap | OffscreenCanvas;\ntype DOMHighResTimeStamp = number;\ntype DOMTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype Float32List = Float32Array | GLfloat[];\ntype FormDataEntryValue = File | string;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLint64 = number;\ntype GLintptr = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLuint = number;\ntype GLuint64 = number;\ntype HashAlgorithmIdentifier = AlgorithmIdentifier;\ntype HeadersInit = string[][] | Record<string, string> | Headers;\ntype IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];\ntype ImageBitmapSource = CanvasImageSource | Blob | ImageData;\ntype Int32List = Int32Array | GLint[];\ntype MessageEventSource = MessagePort | ServiceWorker;\ntype NamedCurve = string;\ntype OnErrorEventHandler = OnErrorEventHandlerNonNull | null;\ntype PerformanceEntryList = PerformanceEntry[];\ntype PushMessageDataInit = BufferSource | string;\ntype ReadableStreamController<T> = ReadableStreamDefaultController<T>;\ntype ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;\ntype ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;\ntype RequestInfo = Request | string;\ntype TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;\ntype TimerHandler = string | Function;\ntype Transferable = ArrayBuffer | MessagePort | ImageBitmap;\ntype Uint32List = Uint32Array | GLuint[];\ntype VibratePattern = number | number[];\ntype XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;\ntype BinaryType = "arraybuffer" | "blob";\ntype ClientTypes = "all" | "sharedworker" | "window" | "worker";\ntype ColorGamut = "p3" | "rec2020" | "srgb";\ntype ColorSpaceConversion = "default" | "none";\ntype ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";\ntype EndingType = "native" | "transparent";\ntype FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";\ntype FontFaceSetLoadStatus = "loaded" | "loading";\ntype FrameType = "auxiliary" | "nested" | "none" | "top-level";\ntype HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";\ntype IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";\ntype IDBRequestReadyState = "done" | "pending";\ntype IDBTransactionMode = "readonly" | "readwrite" | "versionchange";\ntype ImageOrientation = "flipY" | "none";\ntype KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";\ntype KeyType = "private" | "public" | "secret";\ntype KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";\ntype MediaDecodingType = "file" | "media-source" | "webrtc";\ntype MediaEncodingType = "record" | "webrtc";\ntype NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype PermissionName = "gamepad" | "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock";\ntype PermissionState = "denied" | "granted" | "prompt";\ntype PredefinedColorSpace = "display-p3" | "srgb";\ntype PremultiplyAlpha = "default" | "none" | "premultiply";\ntype PushEncryptionKeyName = "auth" | "p256dh";\ntype PushPermissionState = "denied" | "granted" | "prompt";\ntype ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";\ntype RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";\ntype RequestCredentials = "include" | "omit" | "same-origin";\ntype RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";\ntype RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";\ntype RequestRedirect = "error" | "follow" | "manual";\ntype ResizeQuality = "high" | "low" | "medium" | "pixelated";\ntype ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";\ntype SecurityPolicyViolationEventDisposition = "enforce" | "report";\ntype ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";\ntype ServiceWorkerUpdateViaCache = "all" | "imports" | "none";\ntype TransferFunction = "hlg" | "pq" | "srgb";\ntype VisibilityState = "hidden" | "visible";\ntype WebGLPowerPreference = "default" | "high-performance" | "low-power";\ntype WorkerType = "classic" | "module";\ntype XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";\n',"lib.webworker.importscripts.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n\n/////////////////////////////\n/// WorkerGlobalScope APIs\n/////////////////////////////\n// These are only available in a Web Worker\ndeclare function importScripts(...urls: string[]): void;\n',"lib.webworker.iterable.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/////////////////////////////\n/// Worker Iterable APIs\n/////////////////////////////\n\ninterface Cache {\n addAll(requests: Iterable<RequestInfo>): Promise<void>;\n}\n\ninterface DOMStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface FileList {\n [Symbol.iterator](): IterableIterator<File>;\n}\n\ninterface FontFaceSet extends Set<FontFace> {\n}\n\ninterface FormData {\n [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;\n /**\n * Returns an array of key, value pairs for every entry in the list.\n */\n entries(): IterableIterator<[string, FormDataEntryValue]>;\n /**\n * Returns a list of keys in the list.\n */\n keys(): IterableIterator<string>;\n /**\n * Returns a list of values in the list.\n */\n values(): IterableIterator<FormDataEntryValue>;\n}\n\ninterface Headers {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /**\n * Returns an iterator allowing to go through all key/value pairs contained in this object.\n */\n entries(): IterableIterator<[string, string]>;\n /**\n * Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.\n */\n keys(): IterableIterator<string>;\n /**\n * Returns an iterator allowing to go through all values of the key/value pairs contained in this object.\n */\n values(): IterableIterator<string>;\n}\n\ninterface IDBDatabase {\n /**\n * 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.\n */\n transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;\n}\n\ninterface IDBObjectStore {\n /**\n * 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.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;\n}\n\ninterface MessageEvent<T = any> {\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;\n}\n\ninterface ReadableStream<R = any> {\n [Symbol.iterator](): IterableIterator<any>;\n entries(): IterableIterator<[number, any]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<any>;\n}\n\ninterface SubtleCrypto {\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n 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>;\n}\n\ninterface URLSearchParams {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /**\n * Returns an array of key, value pairs for every entry in the search params.\n */\n entries(): IterableIterator<[string, string]>;\n /**\n * Returns a list of keys in the search params.\n */\n keys(): IterableIterator<string>;\n /**\n * Returns a list of values in the search params.\n */\n values(): IterableIterator<string>;\n}\n\ninterface WEBGL_draw_buffers {\n drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\n}\n\ninterface WebGL2RenderingContextBase {\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;\n drawBuffers(buffers: Iterable<GLenum>): void;\n getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;\n getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;\n invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;\n invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;\n uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;\n vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;\n}\n\ninterface WebGL2RenderingContextOverloads {\n uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\ninterface WebGLRenderingContextBase {\n vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;\n}\n\ninterface WebGLRenderingContextOverloads {\n uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n}\n'},Nt=function(){return Nt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},Nt.apply(this,arguments)},kt=function(e,n,t,r){return new(t||(t=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,s)}c((r=r.apply(e,n||[])).next())}))},Rt=function(e,n){var t,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(e,o)}catch(e){a=[6,e],r=0}finally{t=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function Ot(e){return"string"==typeof e?!!/^file:\/\/\//.test(e)&&!!It[e.substr(8)]:0===e.path.indexOf("/lib.")&&!!It[e.path.slice(1)]}var Pt=function(){function e(e,n){this._extraLibs=Object.create(null),this._languageService=Ct.I5(this),this._ctx=e,this._compilerOptions=n.compilerOptions,this._extraLibs=n.extraLibs,this._inlayHintsOptions=n.inlayHintsOptions}return e.prototype.getCompilationSettings=function(){return this._compilerOptions},e.prototype.getLanguageService=function(){return this._languageService},e.prototype.getExtraLibs=function(){return this._extraLibs},e.prototype.getScriptFileNames=function(){return this._ctx.getMirrorModels().map((function(e){return e.uri})).filter((function(e){return!Ot(e)})).map((function(e){return e.toString()})).concat(Object.keys(this._extraLibs))},e.prototype._getModel=function(e){for(var n=this._ctx.getMirrorModels(),t=0;t<n.length;t++)if(n[t].uri.toString()===e)return n[t];return null},e.prototype.getScriptVersion=function(e){var n=this._getModel(e);return n?n.version.toString():this.isDefaultLibFileName(e)?"1":e in this._extraLibs?String(this._extraLibs[e].version):""},e.prototype.getScriptText=function(e){return kt(this,void 0,void 0,(function(){return Rt(this,(function(n){return[2,this._getScriptText(e)]}))}))},e.prototype._getScriptText=function(e){var n,t=this._getModel(e),r="lib."+e+".d.ts";if(t)n=t.getValue();else if(e in It)n=It[e];else if(r in It)n=It[r];else{if(!(e in this._extraLibs))return;n=this._extraLibs[e].content}return n},e.prototype.getScriptSnapshot=function(e){var n=this._getScriptText(e);if(void 0!==n)return{getText:function(e,t){return n.substring(e,t)},getLength:function(){return n.length},getChangeRange:function(){}}},e.prototype.getScriptKind=function(e){switch(e.substr(e.lastIndexOf(".")+1)){case"ts":return Ct.hV.TS;case"tsx":return Ct.hV.TSX;case"js":return Ct.hV.JS;case"jsx":return Ct.hV.JSX;default:return this.getCompilationSettings().allowJs?Ct.hV.JS:Ct.hV.TS}},e.prototype.getCurrentDirectory=function(){return""},e.prototype.getDefaultLibFileName=function(e){switch(e.target){case 99:var n="lib.esnext.full.d.ts";if(n in It||n in this._extraLibs)return n;case 7:case 6:case 5:case 4:case 3:case 2:default:var t="lib.es"+(2013+(e.target||99))+".full.d.ts";return t in It||t in this._extraLibs?t:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}},e.prototype.isDefaultLibFileName=function(e){return e===this.getDefaultLibFileName(this._compilerOptions)},e.prototype.getLibFiles=function(){return kt(this,void 0,void 0,(function(){return Rt(this,(function(e){return[2,It]}))}))},e.clearFiles=function(e){for(var n=[],t=0,r=e;t<r.length;t++){var i=r[t],a=Nt({},i);if(a.file=a.file?{fileName:a.file.fileName}:void 0,i.relatedInformation){a.relatedInformation=[];for(var o=0,s=i.relatedInformation;o<s.length;o++){var c=s[o],l=Nt({},c);l.file=l.file?{fileName:l.file.fileName}:void 0,a.relatedInformation.push(l)}}n.push(a)}return n},e.prototype.getSyntacticDiagnostics=function(n){return kt(this,void 0,void 0,(function(){var t;return Rt(this,(function(r){return Ot(n)?[2,[]]:(t=this._languageService.getSyntacticDiagnostics(n),[2,e.clearFiles(t)])}))}))},e.prototype.getSemanticDiagnostics=function(n){return kt(this,void 0,void 0,(function(){var t;return Rt(this,(function(r){return Ot(n)?[2,[]]:(t=this._languageService.getSemanticDiagnostics(n),[2,e.clearFiles(t)])}))}))},e.prototype.getSuggestionDiagnostics=function(n){return kt(this,void 0,void 0,(function(){var t;return Rt(this,(function(r){return Ot(n)?[2,[]]:(t=this._languageService.getSuggestionDiagnostics(n),[2,e.clearFiles(t)])}))}))},e.prototype.getCompilerOptionsDiagnostics=function(n){return kt(this,void 0,void 0,(function(){var t;return Rt(this,(function(r){return Ot(n)?[2,[]]:(t=this._languageService.getCompilerOptionsDiagnostics(),[2,e.clearFiles(t)])}))}))},e.prototype.getCompletionsAtPosition=function(e,n){return kt(this,void 0,void 0,(function(){return Rt(this,(function(t){return Ot(e)?[2,void 0]:[2,this._languageService.getCompletionsAtPosition(e,n,void 0)]}))}))},e.prototype.getCompletionEntryDetails=function(e,n,t){return kt(this,void 0,void 0,(function(){return Rt(this,(function(r){return[2,this._languageService.getCompletionEntryDetails(e,n,t,void 0,void 0,void 0,void 0)]}))}))},e.prototype.getSignatureHelpItems=function(e,n,t){return kt(this,void 0,void 0,(function(){return Rt(this,(function(r){return Ot(e)?[2,void 0]:[2,this._languageService.getSignatureHelpItems(e,n,t)]}))}))},e.prototype.getQuickInfoAtPosition=function(e,n){return kt(this,void 0,void 0,(function(){return Rt(this,(function(t){return Ot(e)?[2,void 0]:[2,this._languageService.getQuickInfoAtPosition(e,n)]}))}))},e.prototype.getOccurrencesAtPosition=function(e,n){return kt(this,void 0,void 0,(function(){return Rt(this,(function(t){return Ot(e)?[2,void 0]:[2,this._languageService.getOccurrencesAtPosition(e,n)]}))}))},e.prototype.getDefinitionAtPosition=function(e,n){return kt(this,void 0,void 0,(function(){return Rt(this,(function(t){return Ot(e)?[2,void 0]:[2,this._languageService.getDefinitionAtPosition(e,n)]}))}))},e.prototype.getReferencesAtPosition=function(e,n){return kt(this,void 0,void 0,(function(){return Rt(this,(function(t){return Ot(e)?[2,void 0]:[2,this._languageService.getReferencesAtPosition(e,n)]}))}))},e.prototype.getNavigationBarItems=function(e){return kt(this,void 0,void 0,(function(){return Rt(this,(function(n){return Ot(e)?[2,[]]:[2,this._languageService.getNavigationBarItems(e)]}))}))},e.prototype.getFormattingEditsForDocument=function(e,n){return kt(this,void 0,void 0,(function(){return Rt(this,(function(t){return Ot(e)?[2,[]]:[2,this._languageService.getFormattingEditsForDocument(e,n)]}))}))},e.prototype.getFormattingEditsForRange=function(e,n,t,r){return kt(this,void 0,void 0,(function(){return Rt(this,(function(i){return Ot(e)?[2,[]]:[2,this._languageService.getFormattingEditsForRange(e,n,t,r)]}))}))},e.prototype.getFormattingEditsAfterKeystroke=function(e,n,t,r){return kt(this,void 0,void 0,(function(){return Rt(this,(function(i){return Ot(e)?[2,[]]:[2,this._languageService.getFormattingEditsAfterKeystroke(e,n,t,r)]}))}))},e.prototype.findRenameLocations=function(e,n,t,r,i){return kt(this,void 0,void 0,(function(){return Rt(this,(function(a){return Ot(e)?[2,void 0]:[2,this._languageService.findRenameLocations(e,n,t,r,i)]}))}))},e.prototype.getRenameInfo=function(e,n,t){return kt(this,void 0,void 0,(function(){return Rt(this,(function(r){return Ot(e)?[2,{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}]:[2,this._languageService.getRenameInfo(e,n,t)]}))}))},e.prototype.getEmitOutput=function(e){return kt(this,void 0,void 0,(function(){return Rt(this,(function(n){return Ot(e)?[2,{outputFiles:[],emitSkipped:!0}]:[2,this._languageService.getEmitOutput(e)]}))}))},e.prototype.getCodeFixesAtPosition=function(e,n,t,r,i){return kt(this,void 0,void 0,(function(){var a;return Rt(this,(function(o){if(Ot(e))return[2,[]];a={};try{return[2,this._languageService.getCodeFixesAtPosition(e,n,t,r,i,a)]}catch(e){return[2,[]]}return[2]}))}))},e.prototype.updateExtraLibs=function(e){return kt(this,void 0,void 0,(function(){return Rt(this,(function(n){return this._extraLibs=e,[2]}))}))},e.prototype.provideInlayHints=function(e,n,t){var r;return kt(this,void 0,void 0,(function(){var i,a;return Rt(this,(function(o){if(Ot(e))return[2,[]];i=null!==(r=this._inlayHintsOptions)&&void 0!==r?r:{},a={start:n,length:t-n};try{return[2,this._languageService.provideInlayHints(e,a,i)]}catch(e){return[2,[]]}return[2]}))}))},e}();self.onmessage=function(){At((function(e,n){return new Pt(e,n)}))}}()}();