mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-09-07 13:16:38 +02:00
15 lines
2.7 MiB
15 lines
2.7 MiB
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
this file except in compliance with the License. You may obtain a copy of the
|
||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
||
See the Apache Version 2.0 License for specific language governing permissions
|
||
and limitations under the License.
|
||
***************************************************************************** */
|
||
"use strict";var __spreadArray=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},__makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__generator=this&&this.__generator||function(e,t){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=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++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.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=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},__rest=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},__extends=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();!function(e){function t(){var e={};return e.prev=e,{head:e,tail:e,size:0}}function r(e,t){return e===t||e!=e&&t!=t}function n(e){var t=e.prev;if(!t||t===e)throw new Error("Illegal state");return t}function i(e){for(;e;){var t=!e.prev;if(e=e.next,!t)return e}}function a(e,t){for(var i=e.tail;i!==e.head;i=n(i))if(r(i.key,t))return i}function o(e,t,r){var n=a(e,t);if(!n){var i=function(e,t){return{key:e,value:t,next:void 0,prev:void 0}}(t,r);return i.prev=e.tail,e.tail.next=i,e.tail=i,e.size++,i}n.value=r}function s(e,t){for(var i=e.tail;i!==e.head;i=n(i)){if(void 0===i.prev)throw new Error("Illegal state");if(r(i.key,t)){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 t=e.tail;t!==e.head;){var r=n(t);t.next=e.head,t.prev=void 0,t=r}e.head.next=void 0,e.tail=e.head,e.size=0}function u(e,t){for(var r=e.head;r;)(r=i(r))&&t(r.value,r.key)}function l(e,t){if(e)for(var r=e.next();!r.done;r=e.next())t(r.value)}function _(e,t){return{current:e.head,selector:t}}function d(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}}!function(e){e.createMapShim=function(e){var r=function(){function e(e,t){this._data=_(e,t)}return e.prototype.next=function(){return d(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),l(e(r),(function(e){var t=e[0],r=e[1];return n.set(t,r)}))}return Object.defineProperty(n.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.get=function(e){var t;return null===(t=a(this._mapData,e))||void 0===t?void 0:t.value},n.prototype.set=function(e,t){return o(this._mapData,e,t),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,(function(e,t){return e}))},n.prototype.values=function(){return new r(this._mapData,(function(e,t){return t}))},n.prototype.entries=function(){return new r(this._mapData,(function(e,t){return[e,t]}))},n.prototype.forEach=function(e){u(this._mapData,e)},n}()},e.createSetShim=function(e){var r=function(){function e(e,t){this._data=_(e,t)}return e.prototype.next=function(){return d(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),l(e(r),(function(e){return n.add(e)}))}return Object.defineProperty(n.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.add=function(e){return o(this._mapData,e,e),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,(function(e,t){return e}))},n.prototype.values=function(){return new r(this._mapData,(function(e,t){return t}))},n.prototype.entries=function(){return new r(this._mapData,(function(e,t){return[e,t]}))},n.prototype.forEach=function(e){u(this._mapData,e)},n}()}}(e.ShimCollections||(e.ShimCollections={}))}(ts||(ts={})),function(e){e.versionMajorMinor="4.2",e.version="4.2.4",function(e){e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan"}(e.Comparison||(e.Comparison={})),function(e){e.tryGetNativeMap=function(){return"undefined"!=typeof Map&&"entries"in Map.prototype&&1===new Map([[0,0]]).size?Map:void 0},e.tryGetNativeSet=function(){return"undefined"!=typeof Set&&"entries"in Set.prototype&&1===new Set([0]).size?Set:void 0}}(e.NativeCollections||(e.NativeCollections={}))}(ts||(ts={})),function(e){function t(t,n,i){var a,o=null!==(a=e.NativeCollections[n]())&&void 0!==a?a:null===e.ShimCollections||void 0===e.ShimCollections?void 0:e.ShimCollections[i](r);if(o)return o;throw new Error("TypeScript requires an environment that provides a compatible native "+t+" implementation.")}function r(t){if(t){if(k(t))return f(t);if(t instanceof e.Map)return t.entries();if(t instanceof e.Set)return t.values();throw new Error("Iteration not supported.")}}function n(e,t,r){if(void 0===r&&(r=I),e)for(var n=0,i=e;n<i.length;n++){if(r(i[n],t))return!0}return!1}function i(e,t){if(e){if(!t)return e.length>0;for(var r=0,n=e;r<n.length;r++){if(t(n[r]))return!0}}return!1}function a(e,t){return i(t)?i(e)?__spreadArray(__spreadArray([],e),t):t:e}function o(e,t){return t}function s(e){return e.map(o)}function c(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function u(e,t){return t<0?e.length+t:t}function l(e,t,r,n){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(r,n);r=void 0===r?0:u(t,r),n=void 0===n?t.length:u(t,n);for(var i=r;i<n&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function _(e,t,r){return!n(e,t,r)&&(e.push(t),!0)}function d(e,t,r){t.sort((function(t,n){return r(e[t],e[n])||M(t,n)}))}function p(e,t){return 0===e.length?e:e.slice().sort(t)}function f(e){var t=0;return{next:function(){return t===e.length?{value:void 0,done:!0}:(t++,{value:e[t-1],done:!1})}}}function g(e,t,r,n,i){return m(e,r(t),r,n,i)}function m(e,t,r,n,a){if(!i(e))return-1;for(var o=a||0,s=e.length-1;o<=s;){var c=o+(s-o>>1);switch(n(r(e[c],c),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function y(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.Map=t("Map","tryGetNativeMap","createMapShim"),e.Set=t("Set","tryGetNativeSet","createSetShim"),e.getIterator=r,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.createMap=function(){return new e.Map},e.createMapFromTemplate=function(t){var r=new e.Map;for(var n in t)v.call(t,n)&&r.set(n,t[n]);return r},e.length=function(e){return e?e.length:0},e.forEach=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}},e.forEachRight=function(e,t){if(e)for(var r=e.length-1;r>=0;r--){var n=t(e[r],r);if(n)return n}},e.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(void 0!==n)return n}},e.firstDefinedIterator=function(e,t){for(;;){var r=e.next();if(r.done)return;var n=t(r.value);if(void 0!==n)return n}},e.reduceLeftIterator=function(e,t,r){var n=r;if(e)for(var i=e.next(),a=0;!i.done;i=e.next(),a++)n=t(n,i.value,a);return n},e.zipWith=function(t,r,n){var i=[];e.Debug.assertEqual(t.length,r.length);for(var a=0;a<t.length;a++)i.push(n(t[a],r[a],a));return i},e.zipToIterator=function(t,r){e.Debug.assertEqual(t.length,r.length);var n=0;return{next:function(){return n===t.length?{value:void 0,done:!0}:(n++,{value:[t[n-1],r[n-1]],done:!1})}}},e.zipToMap=function(t,r){e.Debug.assert(t.length===r.length);for(var n=new e.Map,i=0;i<t.length;++i)n.set(t[i],r[i]);return n},e.intersperse=function(e,t){if(e.length<=1)return e;for(var r=[],n=0,i=e.length;n<i;n++)n&&r.push(t),r.push(e[n]);return r},e.every=function(e,t){if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},e.find=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}},e.findLast=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=function(e,t,r){for(var n=r||0;n<e.length;n++)if(t(e[n],n))return n;return-1},e.findLastIndex=function(e,t,r){for(var n=void 0===r?e.length-1:r;n>=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(t,r){for(var n=0;n<t.length;n++){var i=r(t[n],n);if(i)return i}return e.Debug.fail()},e.contains=n,e.arraysEqual=function(e,t,r){return void 0===r&&(r=I),e.length===t.length&&e.every((function(e,n){return r(e,t[n])}))},e.indexOfAnyCharCode=function(e,t,r){for(var i=r||0;i<e.length;i++)if(n(t,e.charCodeAt(i)))return i;return-1},e.countWhere=function(e,t){var r=0;if(e)for(var n=0;n<e.length;n++){t(e[n],n)&&r++}return r},e.filter=function(e,t){if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var i=e.slice(0,n);for(n++;n<r;){var a=e[n];t(a)&&i.push(a),n++}return i}}return e},e.filterMutate=function(e,t){for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},e.clear=function(e){e.length=0},e.map=function(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r},e.mapIterator=function(e,t){return{next:function(){var r=e.next();return r.done?r:{value:t(r.value),done:!1}}}},e.sameMap=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r],i=t(n,r);if(n!==i){var a=e.slice(0,r);for(a.push(i),r++;r<e.length;r++)a.push(t(e[r],r));return a}}return e},e.flatten=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];i&&(k(i)?l(t,i):t.push(i))}return t},e.flatMap=function(t,r){var n;if(t)for(var i=0;i<t.length;i++){var a=r(t[i],i);a&&(n=k(a)?l(n,a):c(n,a))}return n||e.emptyArray},e.flatMapToMutable=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(k(i)?l(r,i):r.push(i))}return r},e.flatMapIterator=function(t,r){var n=t.next();if(n.done)return e.emptyIterator;var i=a(n.value);return{next:function(){for(;;){var e=i.next();if(!e.done)return e;var r=t.next();if(r.done)return r;i=a(r.value)}}};function a(t){var n=r(t);return void 0===n?e.emptyIterator:k(n)?f(n):n}},e.sameFlatMap=function(e,t){var r;if(e)for(var n=0;n<e.length;n++){var i=e[n],a=t(i,n);(r||i!==a||k(a))&&(r||(r=e.slice(0,n)),k(a)?l(r,a):r.push(a))}return r||e},e.mapAllOrFail=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);if(void 0===i)return;r.push(i)}return r},e.mapDefined=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);void 0!==i&&r.push(i)}return r},e.mapDefinedIterator=function(e,t){return{next:function(){for(;;){var r=e.next();if(r.done)return r;var n=t(r.value);if(void 0!==n)return{value:n,done:!1}}}}},e.mapDefinedEntries=function(t,r){if(t){var n=new e.Map;return t.forEach((function(e,t){var i=r(t,e);if(void 0!==i){var a=i[0],o=i[1];void 0!==a&&void 0!==o&&n.set(a,o)}})),n}},e.mapDefinedValues=function(t,r){if(t){var n=new e.Set;return t.forEach((function(e){var t=r(e);void 0!==t&&n.add(t)})),n}},e.getOrUpdate=function(e,t,r){if(e.has(t))return e.get(t);var n=r();return e.set(t,n),n},e.tryAddToSet=function(e,t){return!e.has(t)&&(e.add(t),!0)},e.emptyIterator={next:function(){return{value:void 0,done:!0}}},e.singleIterator=function(e){var t=!1;return{next:function(){var r=t;return t=!0,r?{value:void 0,done:!0}:{value:e,done:!1}}}},e.spanMap=function(e,t,r){var n;if(e){n=[];for(var i=e.length,a=void 0,o=void 0,s=0,c=0;s<i;){for(;c<i;){if(o=t(e[c],c),0===c)a=o;else if(o!==a)break;c++}if(s<c){var u=r(e.slice(s,c),a,s,c);u&&n.push(u),s=c}a=o,c++}}return n},e.mapEntries=function(t,r){if(t){var n=new e.Map;return t.forEach((function(e,t){var i=r(t,e),a=i[0],o=i[1];n.set(a,o)})),n}},e.some=i,e.getRangesWhere=function(e,t,r){for(var n,i=0;i<e.length;i++)t(e[i])?n=void 0===n?i:n:void 0!==n&&(r(n,i),n=void 0);void 0!==n&&r(n,e.length)},e.concatenate=a,e.indicesOf=s,e.deduplicate=function(e,t,r){return 0===e.length?[]:1===e.length?e.slice():r?function(e,t,r){var n=s(e);d(e,n,r);for(var i=e[n[0]],a=[n[0]],o=1;o<n.length;o++){var c=n[o],u=e[c];t(i,u)||(a.push(c),i=u)}return a.sort(),a.map((function(t){return e[t]}))}(e,t,r):function(e,t){for(var r=[],n=0,i=e;n<i.length;n++)_(r,i[n],t);return r}(e,t)},e.insertSorted=function(e,t,r){if(0!==e.length){var n=g(e,t,A,r);n<0&&e.splice(~n,0,t)}else e.push(t)},e.sortAndDeduplicate=function(t,r,n){return function(t,r){if(0===t.length)return e.emptyArray;for(var n=t[0],i=[n],a=1;a<t.length;a++){var o=t[a];switch(r(o,n)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}i.push(n=o)}return i}(p(t,r),n||r||R)},e.arrayIsSorted=function(e,t){if(e.length<2)return!0;for(var r=e[0],n=0,i=e.slice(1);n<i.length;n++){var a=i[n];if(1===t(r,a))return!1;r=a}return!0},e.arrayIsEqualTo=function(e,t,r){if(void 0===r&&(r=I),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0},e.compact=function(e){var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t||(t=e.slice(0,r)),n&&t.push(n))}return t||e},e.relativeComplement=function(t,r,n){if(!r||!t||0===r.length||0===t.length)return r;var i=[];e:for(var a=0,o=0;o<r.length;o++){o>0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;a<t.length;a++)switch(a>s&&e.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0),n(r[o],t[a])){case-1:i.push(r[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++){r+=i[n][t]}return r},e.append=c,e.combine=function(e,t){return void 0===e?t:void 0===t?e:k(e)?k(t)?a(e,t):c(e,t):k(t)?c(t,e):[e,t]},e.addRange=l,e.pushIfUnique=_,e.appendIfUnique=function(e,t,r){return e?(_(e,t,r),e):[t]},e.sort=p,e.arrayIterator=f,e.arrayReverseIterator=function(e){var t=e.length;return{next:function(){return 0===t?{value:void 0,done:!0}:(t--,{value:e[t],done:!1})}}},e.stableSort=function(e,t){var r=s(e);return d(e,r,t),r.map((function(t){return e[t]}))},e.rangeEquals=function(e,t,r,n){for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0},e.elementAt=function(e,t){if(e&&(t=u(e,t))<e.length)return e[t]},e.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},e.first=function(t){return e.Debug.assert(0!==t.length),t[0]},e.lastOrUndefined=function(e){return 0===e.length?void 0:e[e.length-1]},e.last=function(t){return e.Debug.assert(0!==t.length),t[t.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,t,r){var n=e.slice(0);return n[t]=r,n},e.binarySearch=g,e.binarySearchKey=m,e.reduceLeft=y;var v=Object.prototype.hasOwnProperty;function h(e,t){return v.call(e,t)}function b(e){var t=[];for(var r in e)v.call(e,r)&&t.push(r);return t}e.hasProperty=h,e.getProperty=function(e,t){return v.call(e,t)?e[t]:void 0},e.getOwnKeys=b,e.getAllKeys=function(e){var t=[];do{for(var r=0,n=Object.getOwnPropertyNames(e);r<n.length;r++){_(t,n[r])}}while(e=Object.getPrototypeOf(e));return t},e.getOwnValues=function(e){var t=[];for(var r in e)v.call(e,r)&&t.push(e[r]);return t};var x=Object.entries||function(e){for(var t=b(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=[t[n],e[t[n]]];return r};function D(e,t){for(var r=[],n=e.next();!n.done;n=e.next())r.push(t?t(n.value):n.value);return r}function S(e,t,r){void 0===r&&(r=A);for(var n=T(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function T(){var t=new e.Map;return t.add=C,t.remove=E,t}function C(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function E(e,t){var r=this.get(e);r&&(q(r,t),r.length||this.delete(e))}function k(e){return Array.isArray?Array.isArray(e):e instanceof Array}function N(e){}function A(e){return e}function F(e){return e.toLowerCase()}e.getEntries=function(e){return e?x(e):[]},e.arrayOf=function(e,t){for(var r=new Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.arrayFrom=D,e.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var a=i[n];if(void 0!==a)for(var o in a)h(a,o)&&(e[o]=a[o])}return e},e.equalOwnProperties=function(e,t,r){if(void 0===r&&(r=I),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(v.call(e,n)){if(!v.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(v.call(t,n)&&!v.call(e,n))return!1;return!0},e.arrayToMap=function(t,r,n){void 0===n&&(n=A);for(var i=new e.Map,a=0,o=t;a<o.length;a++){var s=o[a],c=r(s);void 0!==c&&i.set(c,n(s))}return i},e.arrayToNumericMap=function(e,t,r){void 0===r&&(r=A);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},e.arrayToMultiMap=S,e.group=function(e,t,r){return void 0===r&&(r=A),D(S(e,t).values(),r)},e.clone=function(e){var t={};for(var r in e)v.call(e,r)&&(t[r]=e[r]);return t},e.extend=function(e,t){var r={};for(var n in t)v.call(t,n)&&(r[n]=t[n]);for(var n in e)v.call(e,n)&&(r[n]=e[n]);return r},e.copyProperties=function(e,t){for(var r in t)v.call(t,r)&&(e[r]=t[r])},e.maybeBind=function(e,t){return t?t.bind(e):void 0},e.createMultiMap=T,e.createUnderscoreEscapedMultiMap=function(){return T()},e.isArray=k,e.toArray=function(e){return k(e)?e:[e]},e.isString=function(e){return"string"==typeof e},e.isNumber=function(e){return"number"==typeof e},e.tryCast=function(e,t){return void 0!==e&&t(e)?e:void 0},e.cast=function(t,r){return void 0!==t&&r(t)?t:e.Debug.fail("Invalid cast. The supplied value "+t+" did not pass the test '"+e.Debug.getFunctionName(r)+"'.")},e.noop=N,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.returnUndefined=function(){},e.identity=A,e.toLowerCase=F;var P=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function w(e){return P.test(e)?e.replace(P,F):e}function I(e,t){return e===t}function O(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function M(e,t){return O(e,t)}function L(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function R(e,t){return O(e,t)}e.toFileNameLowerCase=w,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.memoizeOne=function(t){var r=new e.Map;return function(e){var n=typeof e+":"+e,i=r.get(n);return void 0!==i||r.has(n)||(i=t(e),r.set(n,i)),i}},e.compose=function(e,t,r,n,i){if(i){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return function(e){return y(a,(function(e,t){return t(e)}),e)}}return n?function(i){return n(r(t(e(i))))}:r?function(n){return r(t(e(n)))}:t?function(r){return t(e(r))}:e?function(t){return e(t)}:function(e){return e}},function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive"}(e.AssertionLevel||(e.AssertionLevel={})),e.equateValues=I,e.equateStringsCaseInsensitive=function(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()},e.equateStringsCaseSensitive=function(e,t){return I(e,t)},e.compareValues=M,e.compareTextSpans=function(e,t){return M(null==e?void 0:e.start,null==t?void 0:t.start)||M(null==e?void 0:e.length,null==t?void 0:t.length)},e.min=function(e,t,r){return-1===r(e,t)?e:t},e.compareStringsCaseInsensitive=L,e.compareStringsCaseSensitive=R,e.getStringComparer=function(e){return e?L:R};var B,j,J=function(){var e,t,r=function(){if("object"==typeof Intl&&"function"==typeof Intl.Collator)return i;if("function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0)return a;return o}();return function(n){return void 0===n?e||(e=r(n)):"en-US"===n?t||(t=r(n)):r(n)};function n(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var n=r(e,t);return n<0?-1:n>0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return n(e,r,t)}}function a(e){return void 0!==e?o():function(e,r){return n(e,r,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return e<t?-1:e>t?1:0}}}();function z(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+.01,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>r?o-r:1),u=Math.floor(t.length>r+o?r+o:t.length);i[0]=o;for(var l=o,_=1;_<c;_++)i[_]=a;for(_=c;_<=u;_++){var d=e[o-1].toLowerCase()===t[_-1].toLowerCase()?n[_-1]+.1:n[_-1]+2,p=s===t.charCodeAt(_-1)?n[_-1]:Math.min(n[_]+1,i[_-1]+1,d);i[_]=p,l=Math.min(l,p)}for(_=u+1;_<=t.length;_++)i[_]=a;if(l>r)return;var f=n;n=i,i=f}var g=n[t.length];return g>r?void 0:g}function U(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function V(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function K(e,t){e[t]=e[e.length-1],e.pop()}function q(e,t){return function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return K(e,r),!0;return!1}(e,(function(e){return e===t}))}function W(e,t){return 0===e.lastIndexOf(t,0)}function H(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&W(t,r)&&U(t,n)}function G(e,t,r,n){for(var i=0,a=e[n];i<a.length;i++){var o=a[i],s=void 0;r?(s=r.slice()).push(o):s=[o],n===e.length-1?t.push(s):G(e,t,s,n+1)}}e.getUILocale=function(){return j},e.setUILocale=function(e){j!==e&&(j=e,B=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return(B||(B=J(j)))(e,t)},e.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},e.compareBooleans=function(e,t){return M(e?1:0,t?1:0)},e.getSpellingSuggestion=function(t,r,n){for(var i,a=Math.min(2,Math.floor(.34*t.length)),o=Math.floor(.4*t.length)+1,s=0,c=r;s<c.length;s++){var u=c[s],l=n(u);if(void 0!==l&&Math.abs(l.length-t.length)<=a){if(l===t)continue;if(l.length<3&&l.toLowerCase()!==t.toLowerCase())continue;var _=z(t,l,o-.1);if(void 0===_)continue;e.Debug.assert(_<o),o=_,i=u}}return i},e.endsWith=U,e.removeSuffix=function(e,t){return U(e,t)?e.slice(0,e.length-t.length):e},e.tryRemoveSuffix=function(e,t){return U(e,t)?e.slice(0,e.length-t.length):void 0},e.stringContains=function(e,t){return-1!==e.indexOf(t)},e.removeMinAndVersionNumbers=function(e){var t=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(t,"").replace(t,"")},e.orderedRemoveItem=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return V(e,r),!0;return!1},e.orderedRemoveItemAt=V,e.unorderedRemoveItemAt=K,e.unorderedRemoveItem=q,e.createGetCanonicalFileName=function(e){return e?A:w},e.patternText=function(e){return e.prefix+"*"+e.suffix},e.matchedText=function(t,r){return e.Debug.assert(H(t,r)),r.substring(t.prefix.length,r.length-t.suffix.length)},e.findBestPatternMatch=function(e,t,r){for(var n,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);H(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n},e.startsWith=W,e.removePrefix=function(e,t){return W(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=A),W(r(e),r(t))?e.substring(t.length):void 0},e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0,i=e;n<i.length;n++){var a=i[n];if(a.apply(void 0,t))return!0}return!1}},e.not=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!e.apply(void 0,t)}},e.assertType=function(e){},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,t,r,n,i,a){a=a||N;for(var o=0,s=0,c=e.length,u=t.length,l=!1;o<c&&s<u;){var _=e[o],d=t[s],p=r(_,d);-1===p?(n(_),o++,l=!0):1===p?(i(d),s++,l=!0):(a(d,_),o++,s++)}for(;o<c;)n(e[o++]),l=!0;for(;s<u;)i(t[s++]),l=!0;return l},e.fill=function(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.cartesianProduct=function(e){var t=[];return G(e,t,void 0,0),t},e.padLeft=function(e,t,r){return void 0===r&&(r=" "),t<=e.length?e:r.repeat(t-e.length)+e},e.padRight=function(e,t,r){return void 0===r&&(r=" "),t<=e.length?e:e+r.repeat(t-e.length)},e.takeWhile=function(e,t){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;return e.slice(0,n)}}(ts||(ts={})),function(e){var t;!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"}(t=e.LogLevel||(e.LogLevel={})),function(r){var n,i,a=0;function o(){return null!=n?n:n=new e.Version(e.version)}function s(e){return r.currentLogLevel<=e}function c(e,t){r.loggingHost&&s(e)&&r.loggingHost.log(e,t)}function u(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=u,(i=u=r.log||(r.log={})).error=function(e){c(t.Error,e)},i.warn=function(e){c(t.Warning,e)},i.log=function(e){c(t.Info,e)},i.trace=function(e){c(t.Verbose,e)};var l={};function _(e){return a>=e}function d(t,n){return!!_(t)||(l[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function p(e,t){var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||p),r}function f(e,t,r,n){e||(t=t?"False expression: "+t:"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),p(t,n||f))}function g(e,t,r){null==e&&p(t,r||g)}function m(e,t,r){return g(e,t,r||m),e}function y(e,t,r){for(var n=0,i=e;n<i.length;n++){g(i[n],t,r||y)}}function v(e,t,r){return y(e,t,r||v),e}function h(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""}function b(t,r,n){void 0===t&&(t=0);var i=function(t){var r=[];for(var n in t){var i=t[n];"number"==typeof i&&r.push([i,n])}return e.stableSort(r,(function(t,r){return e.compareValues(t[0],r[0])}))}(r);if(0===t)return i.length>0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=0,c=i;s<c.length;s++){var u=c[s],l=u[0],_=u[1];if(l>t)break;0!==l&&l&t&&(a=a+(a?"|":"")+_,o&=~l)}if(0===o)return a}else for(var d=0,p=i;d<p.length;d++){var f=p[d];l=f[0],_=f[1];if(l===t)return _}return t.toString()}function x(t){return b(t,e.SyntaxKind,!1)}function D(t){return b(t,e.NodeFlags,!0)}function S(t){return b(t,e.ModifierFlags,!0)}function T(t){return b(t,e.TransformFlags,!0)}function C(t){return b(t,e.EmitFlags,!0)}function E(t){return b(t,e.SymbolFlags,!0)}function k(t){return b(t,e.TypeFlags,!0)}function N(t){return b(t,e.SignatureFlags,!0)}function A(t){return b(t,e.ObjectFlags,!0)}function F(t){return b(t,e.FlowFlags,!0)}r.getAssertionLevel=function(){return a},r.setAssertionLevel=function(t){var n=a;if(a=t,t>n)for(var i=0,o=e.getOwnKeys(l);i<o.length;i++){var s=o[i],c=l[s];void 0!==c&&r[s]!==c.assertion&&t>=c.level&&(r[s]=c,l[s]=void 0)}},r.shouldAssert=_,r.fail=p,r.failBadSyntaxKind=function e(t,r,n){return p((r||"Unexpected node.")+"\r\nNode "+x(t.kind)+" was unexpected.",n||e)},r.assert=f,r.assertEqual=function e(t,r,n,i,a){t!==r&&p("Expected "+t+" === "+r+". "+(n?i?n+" "+i:n:""),a||e)},r.assertLessThan=function e(t,r,n,i){t>=r&&p("Expected "+t+" < "+r+". "+(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&p("Expected "+t+" <= "+r,n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t<r&&p("Expected "+t+" >= "+r,n||e)},r.assertIsDefined=g,r.checkDefined=m,r.assertDefined=m,r.assertEachIsDefined=y,r.checkEachDefined=v,r.assertEachDefined=v,r.assertNever=function t(r,n,i){return void 0===n&&(n="Illegal value:"),p(n+" "+("object"==typeof r&&e.hasProperty(r,"kind")&&e.hasProperty(r,"pos")&&x?"SyntaxKind: "+x(r.kind):JSON.stringify(r)),i||t)},r.assertEachNode=function t(r,n,i,a){d(1,"assertEachNode")&&f(void 0===n||e.every(r,n),i||"Unexpected node.",(function(){return"Node array did not pass test '"+h(n)+"'."}),a||t)},r.assertNode=function e(t,r,n,i){d(1,"assertNode")&&f(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(function(){return"Node "+x(t.kind)+" did not pass test '"+h(r)+"'."}),i||e)},r.assertNotNode=function e(t,r,n,i){d(1,"assertNotNode")&&f(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(function(){return"Node "+x(t.kind)+" should not have passed test '"+h(r)+"'."}),i||e)},r.assertOptionalNode=function e(t,r,n,i){d(1,"assertOptionalNode")&&f(void 0===r||void 0===t||r(t),n||"Unexpected node.",(function(){return"Node "+x(t.kind)+" did not pass test '"+h(r)+"'."}),i||e)},r.assertOptionalToken=function e(t,r,n,i){d(1,"assertOptionalToken")&&f(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(function(){return"Node "+x(t.kind)+" was not a '"+x(r)+"' token."}),i||e)},r.assertMissingNode=function e(t,r,n){d(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",(function(){return"Node "+x(t.kind)+" was unexpected'."}),n||e)},r.getFunctionName=h,r.formatSymbol=function(t){return"{ name: "+e.unescapeLeadingUnderscores(t.escapedName)+"; flags: "+E(t.flags)+"; declarations: "+e.map(t.declarations,(function(e){return x(e.kind)}))+" }"},r.formatEnum=b,r.formatSyntaxKind=x,r.formatNodeFlags=D,r.formatModifierFlags=S,r.formatTransformFlags=T,r.formatEmitFlags=C,r.formatSymbolFlags=E,r.formatTypeFlags=k,r.formatSignatureFlags=N,r.formatObjectFlags=A,r.formatFlowFlags=F;var P,w,I,O=!1;function M(e){return function(){if(B(),!P)throw new Error("Debugging helpers could not be loaded.");return P}().formatControlFlowGraph(e)}function L(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__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",t=-2048&this.flags;return e+(t?" ("+F(t)+")":"")}},__debugFlowFlags:{get:function(){return b(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return M(this)}}})}function R(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return"NodeArray "+(e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"))}}})}function B(){if(!O){var t,r;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=33554432&this.flags?"TransientSymbol":"Symbol",r=-33554433&this.flags;return t+" '"+e.symbolName(this)+"'"+(r?" ("+E(r)+")":"")}},__debugFlags:{get:function(){return E(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=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":2048&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",r=524288&this.flags?-2368&this.objectFlags:0;return t+(this.symbol?" '"+e.symbolName(this.symbol)+"'":"")+(r?" ("+A(r)+")":"")}},__debugFlags:{get:function(){return k(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?A(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),r=null==e?void 0:e.get(this);return void 0===r&&(r=this.checker.typeToString(this),null==e||e.set(this,r)),r}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return N(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var n=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n<i.length;n++){var a=i[n];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":x(this.kind))+(this.flags?" ("+D(this.flags)+")":"")}},__debugKind:{get:function(){return x(this.kind)}},__debugNodeFlags:{get:function(){return D(this.flags)}},__debugModifierFlags:{get:function(){return S(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return T(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return C(e.getEmitFlags(this))}},__debugGetText:{value:function(t){if(e.nodeIsSynthesized(this))return"";var n=(void 0===r&&"function"==typeof WeakMap&&(r=new WeakMap),r),i=null==n?void 0:n.get(this);if(void 0===i){var a=e.getParseTreeNode(this),o=a&&e.getSourceFileOfNode(a);i=o?e.getSourceTextOfNodeFromSourceFile(o,a,t):"",null==n||n.set(this,i)}return i}}})}try{if(e.sys&&e.sys.require){var o=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),s=e.sys.require(o,"./compiler-debug");s.error||(s.module.init(e),P=s.module)}}catch(e){}O=!0}}function j(t,r,n,i,a){var o=r?"DeprecationError: ":"DeprecationWarning: ";return o+="'"+t+"' ",o+=i?"has been deprecated since v"+i:"is deprecated",o+=r?" and can no longer be used.":n?" and will no longer be usable after v"+n+".":".",o+=a?" "+e.formatStringFromArgs(a,[t],0):""}function J(t,r){var n,i;void 0===r&&(r={});var a="string"==typeof r.typeScriptVersion?new e.Version(r.typeScriptVersion):null!==(n=r.typeScriptVersion)&&void 0!==n?n:o(),s="string"==typeof r.errorAfter?new e.Version(r.errorAfter):r.errorAfter,c="string"==typeof r.warnAfter?new e.Version(r.warnAfter):r.warnAfter,l="string"==typeof r.since?new e.Version(r.since):null!==(i=r.since)&&void 0!==i?i:c,_=r.error||s&&a.compareTo(s)<=0,d=!c||a.compareTo(c)>=0;return _?function(e,t,r,n){var i=j(e,!0,t,r,n);return function(){throw new TypeError(i)}}(t,s,l,r.message):d?function(e,t,r,n){var i=!1;return function(){i||(u.warn(j(e,!1,t,r,n)),i=!0)}}(t,s,l,r.message):e.noop}r.printControlFlowGraph=function(e){return console.log(M(e))},r.formatControlFlowGraph=M,r.attachFlowNodeDebugInfo=function(e){O&&("function"==typeof Object.setPrototypeOf?(w||L(w=Object.create(Object.prototype)),Object.setPrototypeOf(e,w)):L(e))},r.attachNodeArrayDebugInfo=function(e){O&&("function"==typeof Object.setPrototypeOf?(I||R(I=Object.create(Array.prototype)),Object.setPrototypeOf(e,I)):R(e))},r.enableDebugInfo=B,r.deprecate=function(e,t){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(J(h(e),t),e)}}(e.Debug||(e.Debug={}))}(ts||(ts={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function t(t,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 t){var u=e.Debug.checkDefined(o(t),"Invalid version");t=u.major,i=u.minor,a=u.patch,s=u.prerelease,c=u.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||n.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=function(e){var r=o(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),a=0;a<n;a++){var o=t[a],s=r[a];if(o!==s){var c=i.test(o),u=i.test(s);if(c||u){if(c!==u)return c?-1:1;if(l=e.compareValues(+o,+s))return l}else{var l;if(l=e.compareStringsCaseSensitive(o,s))return l}}}return e.compareValues(t.length,r.length)}(this.prerelease,t.prerelease)},t.prototype.increment=function(r){switch(r){case"major":return new t(this.major+1,0,0);case"minor":return new t(this.major,this.minor+1,0);case"patch":return new t(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(r)}},t.prototype.toString=function(){var t=this.major+"."+this.minor+"."+this.patch;return e.some(this.prerelease)&&(t+="-"+this.prerelease.join(".")),e.some(this.build)&&(t+="+"+this.build.join(".")),t},t.zero=new t(0,0,0),t}();function o(e){var i=t.exec(e);if(i){var a=i[1],o=i[2],s=void 0===o?"0":o,c=i[3],u=void 0===c?"0":c,l=i[4],_=void 0===l?"":l,d=i[5],p=void 0===d?"":d;if((!_||r.test(_))&&(!p||n.test(p)))return{major:parseInt(a,10),minor:parseInt(s,10),patch:parseInt(u,10),prerelease:_,build:p}}}e.Version=a;var s=function(){function t(t){this._alternatives=t?e.Debug.checkDefined(p(t),"Invalid range spec."):e.emptyArray}return t.tryParse=function(e){var r=p(e);if(r){var n=new t("");return n._alternatives=r,n}},t.prototype.test=function(e){return"string"==typeof e&&(e=new a(e)),function(e,t){if(0===t.length)return!0;for(var r=0,n=t;r<n.length;r++){if(h(e,n[r]))return!0}return!1}(e,this._alternatives)},t.prototype.toString=function(){return t=this._alternatives,e.map(t,x).join(" || ")||"*";var t},t}();e.VersionRange=s;var c=/\s*\|\|\s*/g,u=/\s+/g,l=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,_=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,d=/^\s*(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function p(e){for(var t=[],r=0,n=e.trim().split(c);r<n.length;r++){var i=n[r];if(i){var a=[],o=_.exec(i);if(o){if(!g(o[1],o[2],a))return}else for(var s=0,l=i.split(u);s<l.length;s++){var p=l[s],f=d.exec(p);if(!f||!m(f[1],f[2],a))return}t.push(a)}}return t}function f(e){var t=l.exec(e);if(t){var r=t[1],n=t[2],i=void 0===n?"*":n,o=t[3],s=void 0===o?"*":o,c=t[4],u=t[5];return{version:new a(y(r)?0:parseInt(r,10),y(r)||y(i)?0:parseInt(i,10),y(r)||y(i)||y(s)?0:parseInt(s,10),c,u),major:r,minor:i,patch:s}}}function g(e,t,r){var n=f(e);if(!n)return!1;var i=f(t);return!!i&&(y(n.major)||r.push(v(">=",n.version)),y(i.major)||r.push(y(i.minor)?v("<",i.version.increment("major")):y(i.patch)?v("<",i.version.increment("minor")):v("<=",i.version)),!0)}function m(e,t,r){var n=f(t);if(!n)return!1;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(y(o))"<"!==e&&">"!==e||r.push(v("<",a.zero));else switch(e){case"~":r.push(v(">=",i)),r.push(v("<",i.increment(y(s)?"major":"minor")));break;case"^":r.push(v(">=",i)),r.push(v("<",i.increment(i.major>0||y(s)?"major":i.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":r.push(v(e,i));break;case"<=":case">":r.push(y(s)?v("<="===e?"<":">=",i.increment("major")):y(c)?v("<="===e?"<":">=",i.increment("minor")):v(e,i));break;case"=":case void 0:y(s)||y(c)?(r.push(v(">=",i)),r.push(v("<",i.increment(y(s)?"major":"minor")))):r.push(v("=",i));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function v(e,t){return{operator:e,operand:t}}function h(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!b(e,i.operator,i.operand))return!1}return!0}function b(t,r,n){var i=t.compareTo(n);switch(r){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(r)}}function x(t){return e.map(t,D).join(" ")}function D(e){return""+e.operator+e.operand}}(ts||(ts={})),function(e){function t(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof t}var r=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser&&"object"==typeof module&&"function"==typeof require)try{var r,n=require("perf_hooks"),i=n.performance,a=n.PerformanceObserver;if(t(i,a)){r=i;var o=new e.Version(process.versions.node);return new e.VersionRange("<12.16.3 || 13 <13.13").test(o)&&(r={get timeOrigin(){return i.timeOrigin},now:function(){return i.now()},mark:function(e){return i.mark(e)},measure:function(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",i.mark(r)),i.measure(e,t,r),"__performance.measure-fix__"===r&&i.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:r,PerformanceObserver:a}}}catch(e){}}(),n=null==r?void 0:r.performance;e.tryGetNativePerformanceHooks=function(){return r},e.timestamp=n?function(){return n.now()}:Date.now?Date.now:function(){return+new Date}}(ts||(ts={})),function(e){!function(t){var r,n;function i(t,r,n){var i=0;return{enter:function(){1==++i&&l(r)},exit:function(){0==--i?(l(n),_(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=function(e,r,n,a){return e?i(r,n,a):t.nullTimer},t.createTimer=i,t.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,u=new e.Map;function l(t){var r;if(a){var i=null!==(r=c.get(t))&&void 0!==r?r:0;c.set(t,i+1),s.set(t,e.timestamp()),null==n||n.mark(t)}}function _(t,r,i){var c,l;if(a){var _=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),d=null!==(l=void 0!==r?s.get(r):void 0)&&void 0!==l?l:o,p=u.get(t)||0;u.set(t,p+(_-d)),null==n||n.measure(t,r,i)}}t.mark=l,t.measure=_,t.getCount=function(e){return c.get(e)||0},t.getDuration=function(e){return u.get(e)||0},t.forEachMeasure=function(e){u.forEach((function(t,r){return e(r,t)}))},t.isEnabled=function(){return a},t.enable=function(t){var i;return void 0===t&&(t=e.sys),a||(a=!0,r||(r=e.tryGetNativePerformanceHooks()),r&&(o=r.performance.timeOrigin,(r.shouldWriteNativeEvents||(null===(i=null==t?void 0:t.cpuProfilingEnabled)||void 0===i?void 0:i.call(t))||(null==t?void 0:t.debugMode))&&(n=r.performance))),!0},t.disable=function(){a&&(s.clear(),c.clear(),u.clear(),n=void 0,a=!1)}}(e.performance||(e.performance={}))}(ts||(ts={})),function(e){var t,r,n={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var i=null!==(t=process.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw";r=require(i)}catch(e){r=void 0}e.perfLogger=r&&r.logEvent?r:n}(ts||(ts={})),ts||(ts={}),function(e){!function(t){var r;!function(e){e[e.Project=0]="Project",e[e.Build=1]="Build",e[e.Server=2]="Server"}(t.Mode||(t.Mode={}));var n,i,a=0,o=0,s=[];t.startTracing=function(c,u,l){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===r)try{r=require("fs")}catch(e){throw new Error("tracing requires having fs\n(original error: "+(e.message||e)+")")}n=c,void 0===i&&(i=e.combinePaths(u,"legend.json")),r.existsSync(u)||r.mkdirSync(u,{recursive:!0});var _=1===n?"."+process.pid+"-"+ ++a:2===n?"."+process.pid:"",d=e.combinePaths(u,"trace"+_+".json"),p=e.combinePaths(u,"types"+_+".json");s.push({configFilePath:l,tracePath:d,typesPath:p}),o=r.openSync(d,"w"),e.tracing=t;var f={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};r.writeSync(o,"[\n"+[__assign({name:"process_name",args:{name:"tsc"}},f),__assign({name:"thread_name",args:{name:"Main"}},f),__assign(__assign({name:"TracingStartedInBrowser"},f),{cat:"disabled-by-default-devtools.timeline"})].map((function(e){return JSON.stringify(e)})).join(",\n"))},t.stopTracing=function(t){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!t==(2!==n)),r.writeSync(o,"\n]\n"),r.closeSync(o),e.tracing=void 0,t?function(t){var n,i,a,o,c,u,l,d,p,f,g,m,y,v,h,b;e.performance.mark("beginDumpTypes");var x=s[s.length-1].typesPath,D=r.openSync(x,"w"),S=new e.Map;r.writeSync(D,"[");for(var T=t.length,C=0;C<T;C++){var E=t[C],k=E.objectFlags,N=null!==(n=E.aliasSymbol)&&void 0!==n?n:E.symbol,A=null===(i=null==N?void 0:N.declarations)||void 0===i?void 0:i[0],F=A&&e.getSourceFileOfNode(A),P=void 0;if(16&k|2944&E.flags)try{P=null===(a=E.checker)||void 0===a?void 0:a.typeToString(E)}catch(e){P=void 0}var w={};if(8388608&E.flags){var I=E;w={indexedAccessObjectType:null===(o=I.objectType)||void 0===o?void 0:o.id,indexedAccessIndexType:null===(c=I.indexType)||void 0===c?void 0:c.id}}var O={};if(4&k){var M=E;O={instantiatedType:null===(u=M.target)||void 0===u?void 0:u.id,typeArguments:null===(l=M.resolvedTypeArguments)||void 0===l?void 0:l.map((function(e){return e.id}))}}var L={};if(16777216&E.flags){var R=E;L={conditionalCheckType:null===(d=R.checkType)||void 0===d?void 0:d.id,conditionalExtendsType:null===(p=R.extendsType)||void 0===p?void 0:p.id,conditionalTrueType:null!==(g=null===(f=R.resolvedTrueType)||void 0===f?void 0:f.id)&&void 0!==g?g:-1,conditionalFalseType:null!==(y=null===(m=R.resolvedFalseType)||void 0===m?void 0:m.id)&&void 0!==y?y:-1}}var B=void 0,j=E.checker.getRecursionIdentity(E);j&&((B=S.get(j))||(B=S.size,S.set(j,B)));var J=__assign(__assign(__assign(__assign({id:E.id,intrinsicName:E.intrinsicName,symbolName:(null==N?void 0:N.escapedName)&&e.unescapeLeadingUnderscores(N.escapedName),recursionId:B,unionTypes:1048576&E.flags?null===(v=E.types)||void 0===v?void 0:v.map((function(e){return e.id})):void 0,intersectionTypes:2097152&E.flags?E.types.map((function(e){return e.id})):void 0,aliasTypeArguments:null===(h=E.aliasTypeArguments)||void 0===h?void 0:h.map((function(e){return e.id})),keyofType:4194304&E.flags?null===(b=E.type)||void 0===b?void 0:b.id:void 0},w),O),L),{firstDeclaration:A&&{path:F.path,start:_(e.getLineAndCharacterOfPosition(F,A.pos)),end:_(e.getLineAndCharacterOfPosition(e.getSourceFileOfNode(A),A.end))},flags:e.Debug.formatTypeFlags(E.flags).split("|"),display:P});r.writeSync(D,JSON.stringify(J)),C<T-1&&r.writeSync(D,",\n")}r.writeSync(D,"]\n"),r.closeSync(D),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}(t):s[s.length-1].typesPath=void 0},function(e){e.Parse="parse",e.Program="program",e.Bind="bind",e.Check="check",e.CheckTypes="checkTypes",e.Emit="emit",e.Session="session"}(t.Phase||(t.Phase={})),t.instant=function(e,t,r){l("I",e,t,r,'"s":"g"')};var c=[];t.push=function(t,r,n,i){void 0===i&&(i=!1),i&&l("B",t,r,n),c.push({phase:t,name:r,args:n,time:1e3*e.timestamp(),separateBeginAndEnd:i})},t.pop=function(){e.Debug.assert(c.length>0),u(c.length-1,1e3*e.timestamp()),c.length--},t.popAll=function(){for(var t=1e3*e.timestamp(),r=c.length-1;r>=0;r--)u(r,t);c.length=0};function u(e,t){var r=c[e],n=r.phase,i=r.name,a=r.args,o=r.time;r.separateBeginAndEnd?l("E",n,i,a,void 0,t):1e4-o%1e4<=t-o&&l("X",n,i,a,'"dur":'+(t-o),o)}function l(t,i,a,s,c,u){void 0===u&&(u=1e3*e.timestamp()),2===n&&"checkTypes"===i||(e.performance.mark("beginTracing"),r.writeSync(o,',\n{"pid":1,"tid":1,"ph":"'+t+'","cat":"'+i+'","ts":'+u+',"name":"'+a+'"'),c&&r.writeSync(o,","+c),s&&r.writeSync(o,',"args":'+JSON.stringify(s)),r.writeSync(o,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function _(e){return{line:e.line+1,character:e.character+1}}t.dumpLegend=function(){i&&r.writeFileSync(i,JSON.stringify(s))}}(e.tracingEnabled||(e.tracingEnabled={}))}(ts||(ts={})),function(e){e.startTracing=e.tracingEnabled.startTracing}(ts||(ts={})),function(e){!function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.EqualsToken=62]="EqualsToken",e[e.PlusEqualsToken=63]="PlusEqualsToken",e[e.MinusEqualsToken=64]="MinusEqualsToken",e[e.AsteriskEqualsToken=65]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=66]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=67]="SlashEqualsToken",e[e.PercentEqualsToken=68]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=69]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=70]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=72]="AmpersandEqualsToken",e[e.BarEqualsToken=73]="BarEqualsToken",e[e.BarBarEqualsToken=74]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=75]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=76]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=77]="CaretEqualsToken",e[e.Identifier=78]="Identifier",e[e.PrivateIdentifier=79]="PrivateIdentifier",e[e.BreakKeyword=80]="BreakKeyword",e[e.CaseKeyword=81]="CaseKeyword",e[e.CatchKeyword=82]="CatchKeyword",e[e.ClassKeyword=83]="ClassKeyword",e[e.ConstKeyword=84]="ConstKeyword",e[e.ContinueKeyword=85]="ContinueKeyword",e[e.DebuggerKeyword=86]="DebuggerKeyword",e[e.DefaultKeyword=87]="DefaultKeyword",e[e.DeleteKeyword=88]="DeleteKeyword",e[e.DoKeyword=89]="DoKeyword",e[e.ElseKeyword=90]="ElseKeyword",e[e.EnumKeyword=91]="EnumKeyword",e[e.ExportKeyword=92]="ExportKeyword",e[e.ExtendsKeyword=93]="ExtendsKeyword",e[e.FalseKeyword=94]="FalseKeyword",e[e.FinallyKeyword=95]="FinallyKeyword",e[e.ForKeyword=96]="ForKeyword",e[e.FunctionKeyword=97]="FunctionKeyword",e[e.IfKeyword=98]="IfKeyword",e[e.ImportKeyword=99]="ImportKeyword",e[e.InKeyword=100]="InKeyword",e[e.InstanceOfKeyword=101]="InstanceOfKeyword",e[e.NewKeyword=102]="NewKeyword",e[e.NullKeyword=103]="NullKeyword",e[e.ReturnKeyword=104]="ReturnKeyword",e[e.SuperKeyword=105]="SuperKeyword",e[e.SwitchKeyword=106]="SwitchKeyword",e[e.ThisKeyword=107]="ThisKeyword",e[e.ThrowKeyword=108]="ThrowKeyword",e[e.TrueKeyword=109]="TrueKeyword",e[e.TryKeyword=110]="TryKeyword",e[e.TypeOfKeyword=111]="TypeOfKeyword",e[e.VarKeyword=112]="VarKeyword",e[e.VoidKeyword=113]="VoidKeyword",e[e.WhileKeyword=114]="WhileKeyword",e[e.WithKeyword=115]="WithKeyword",e[e.ImplementsKeyword=116]="ImplementsKeyword",e[e.InterfaceKeyword=117]="InterfaceKeyword",e[e.LetKeyword=118]="LetKeyword",e[e.PackageKeyword=119]="PackageKeyword",e[e.PrivateKeyword=120]="PrivateKeyword",e[e.ProtectedKeyword=121]="ProtectedKeyword",e[e.PublicKeyword=122]="PublicKeyword",e[e.StaticKeyword=123]="StaticKeyword",e[e.YieldKeyword=124]="YieldKeyword",e[e.AbstractKeyword=125]="AbstractKeyword",e[e.AsKeyword=126]="AsKeyword",e[e.AssertsKeyword=127]="AssertsKeyword",e[e.AnyKeyword=128]="AnyKeyword",e[e.AsyncKeyword=129]="AsyncKeyword",e[e.AwaitKeyword=130]="AwaitKeyword",e[e.BooleanKeyword=131]="BooleanKeyword",e[e.ConstructorKeyword=132]="ConstructorKeyword",e[e.DeclareKeyword=133]="DeclareKeyword",e[e.GetKeyword=134]="GetKeyword",e[e.InferKeyword=135]="InferKeyword",e[e.IntrinsicKeyword=136]="IntrinsicKeyword",e[e.IsKeyword=137]="IsKeyword",e[e.KeyOfKeyword=138]="KeyOfKeyword",e[e.ModuleKeyword=139]="ModuleKeyword",e[e.NamespaceKeyword=140]="NamespaceKeyword",e[e.NeverKeyword=141]="NeverKeyword",e[e.ReadonlyKeyword=142]="ReadonlyKeyword",e[e.RequireKeyword=143]="RequireKeyword",e[e.NumberKeyword=144]="NumberKeyword",e[e.ObjectKeyword=145]="ObjectKeyword",e[e.SetKeyword=146]="SetKeyword",e[e.StringKeyword=147]="StringKeyword",e[e.SymbolKeyword=148]="SymbolKeyword",e[e.TypeKeyword=149]="TypeKeyword",e[e.UndefinedKeyword=150]="UndefinedKeyword",e[e.UniqueKeyword=151]="UniqueKeyword",e[e.UnknownKeyword=152]="UnknownKeyword",e[e.FromKeyword=153]="FromKeyword",e[e.GlobalKeyword=154]="GlobalKeyword",e[e.BigIntKeyword=155]="BigIntKeyword",e[e.OfKeyword=156]="OfKeyword",e[e.QualifiedName=157]="QualifiedName",e[e.ComputedPropertyName=158]="ComputedPropertyName",e[e.TypeParameter=159]="TypeParameter",e[e.Parameter=160]="Parameter",e[e.Decorator=161]="Decorator",e[e.PropertySignature=162]="PropertySignature",e[e.PropertyDeclaration=163]="PropertyDeclaration",e[e.MethodSignature=164]="MethodSignature",e[e.MethodDeclaration=165]="MethodDeclaration",e[e.Constructor=166]="Constructor",e[e.GetAccessor=167]="GetAccessor",e[e.SetAccessor=168]="SetAccessor",e[e.CallSignature=169]="CallSignature",e[e.ConstructSignature=170]="ConstructSignature",e[e.IndexSignature=171]="IndexSignature",e[e.TypePredicate=172]="TypePredicate",e[e.TypeReference=173]="TypeReference",e[e.FunctionType=174]="FunctionType",e[e.ConstructorType=175]="ConstructorType",e[e.TypeQuery=176]="TypeQuery",e[e.TypeLiteral=177]="TypeLiteral",e[e.ArrayType=178]="ArrayType",e[e.TupleType=179]="TupleType",e[e.OptionalType=180]="OptionalType",e[e.RestType=181]="RestType",e[e.UnionType=182]="UnionType",e[e.IntersectionType=183]="IntersectionType",e[e.ConditionalType=184]="ConditionalType",e[e.InferType=185]="InferType",e[e.ParenthesizedType=186]="ParenthesizedType",e[e.ThisType=187]="ThisType",e[e.TypeOperator=188]="TypeOperator",e[e.IndexedAccessType=189]="IndexedAccessType",e[e.MappedType=190]="MappedType",e[e.LiteralType=191]="LiteralType",e[e.NamedTupleMember=192]="NamedTupleMember",e[e.TemplateLiteralType=193]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=194]="TemplateLiteralTypeSpan",e[e.ImportType=195]="ImportType",e[e.ObjectBindingPattern=196]="ObjectBindingPattern",e[e.ArrayBindingPattern=197]="ArrayBindingPattern",e[e.BindingElement=198]="BindingElement",e[e.ArrayLiteralExpression=199]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=200]="ObjectLiteralExpression",e[e.PropertyAccessExpression=201]="PropertyAccessExpression",e[e.ElementAccessExpression=202]="ElementAccessExpression",e[e.CallExpression=203]="CallExpression",e[e.NewExpression=204]="NewExpression",e[e.TaggedTemplateExpression=205]="TaggedTemplateExpression",e[e.TypeAssertionExpression=206]="TypeAssertionExpression",e[e.ParenthesizedExpression=207]="ParenthesizedExpression",e[e.FunctionExpression=208]="FunctionExpression",e[e.ArrowFunction=209]="ArrowFunction",e[e.DeleteExpression=210]="DeleteExpression",e[e.TypeOfExpression=211]="TypeOfExpression",e[e.VoidExpression=212]="VoidExpression",e[e.AwaitExpression=213]="AwaitExpression",e[e.PrefixUnaryExpression=214]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=215]="PostfixUnaryExpression",e[e.BinaryExpression=216]="BinaryExpression",e[e.ConditionalExpression=217]="ConditionalExpression",e[e.TemplateExpression=218]="TemplateExpression",e[e.YieldExpression=219]="YieldExpression",e[e.SpreadElement=220]="SpreadElement",e[e.ClassExpression=221]="ClassExpression",e[e.OmittedExpression=222]="OmittedExpression",e[e.ExpressionWithTypeArguments=223]="ExpressionWithTypeArguments",e[e.AsExpression=224]="AsExpression",e[e.NonNullExpression=225]="NonNullExpression",e[e.MetaProperty=226]="MetaProperty",e[e.SyntheticExpression=227]="SyntheticExpression",e[e.TemplateSpan=228]="TemplateSpan",e[e.SemicolonClassElement=229]="SemicolonClassElement",e[e.Block=230]="Block",e[e.EmptyStatement=231]="EmptyStatement",e[e.VariableStatement=232]="VariableStatement",e[e.ExpressionStatement=233]="ExpressionStatement",e[e.IfStatement=234]="IfStatement",e[e.DoStatement=235]="DoStatement",e[e.WhileStatement=236]="WhileStatement",e[e.ForStatement=237]="ForStatement",e[e.ForInStatement=238]="ForInStatement",e[e.ForOfStatement=239]="ForOfStatement",e[e.ContinueStatement=240]="ContinueStatement",e[e.BreakStatement=241]="BreakStatement",e[e.ReturnStatement=242]="ReturnStatement",e[e.WithStatement=243]="WithStatement",e[e.SwitchStatement=244]="SwitchStatement",e[e.LabeledStatement=245]="LabeledStatement",e[e.ThrowStatement=246]="ThrowStatement",e[e.TryStatement=247]="TryStatement",e[e.DebuggerStatement=248]="DebuggerStatement",e[e.VariableDeclaration=249]="VariableDeclaration",e[e.VariableDeclarationList=250]="VariableDeclarationList",e[e.FunctionDeclaration=251]="FunctionDeclaration",e[e.ClassDeclaration=252]="ClassDeclaration",e[e.InterfaceDeclaration=253]="InterfaceDeclaration",e[e.TypeAliasDeclaration=254]="TypeAliasDeclaration",e[e.EnumDeclaration=255]="EnumDeclaration",e[e.ModuleDeclaration=256]="ModuleDeclaration",e[e.ModuleBlock=257]="ModuleBlock",e[e.CaseBlock=258]="CaseBlock",e[e.NamespaceExportDeclaration=259]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=260]="ImportEqualsDeclaration",e[e.ImportDeclaration=261]="ImportDeclaration",e[e.ImportClause=262]="ImportClause",e[e.NamespaceImport=263]="NamespaceImport",e[e.NamedImports=264]="NamedImports",e[e.ImportSpecifier=265]="ImportSpecifier",e[e.ExportAssignment=266]="ExportAssignment",e[e.ExportDeclaration=267]="ExportDeclaration",e[e.NamedExports=268]="NamedExports",e[e.NamespaceExport=269]="NamespaceExport",e[e.ExportSpecifier=270]="ExportSpecifier",e[e.MissingDeclaration=271]="MissingDeclaration",e[e.ExternalModuleReference=272]="ExternalModuleReference",e[e.JsxElement=273]="JsxElement",e[e.JsxSelfClosingElement=274]="JsxSelfClosingElement",e[e.JsxOpeningElement=275]="JsxOpeningElement",e[e.JsxClosingElement=276]="JsxClosingElement",e[e.JsxFragment=277]="JsxFragment",e[e.JsxOpeningFragment=278]="JsxOpeningFragment",e[e.JsxClosingFragment=279]="JsxClosingFragment",e[e.JsxAttribute=280]="JsxAttribute",e[e.JsxAttributes=281]="JsxAttributes",e[e.JsxSpreadAttribute=282]="JsxSpreadAttribute",e[e.JsxExpression=283]="JsxExpression",e[e.CaseClause=284]="CaseClause",e[e.DefaultClause=285]="DefaultClause",e[e.HeritageClause=286]="HeritageClause",e[e.CatchClause=287]="CatchClause",e[e.PropertyAssignment=288]="PropertyAssignment",e[e.ShorthandPropertyAssignment=289]="ShorthandPropertyAssignment",e[e.SpreadAssignment=290]="SpreadAssignment",e[e.EnumMember=291]="EnumMember",e[e.UnparsedPrologue=292]="UnparsedPrologue",e[e.UnparsedPrepend=293]="UnparsedPrepend",e[e.UnparsedText=294]="UnparsedText",e[e.UnparsedInternalText=295]="UnparsedInternalText",e[e.UnparsedSyntheticReference=296]="UnparsedSyntheticReference",e[e.SourceFile=297]="SourceFile",e[e.Bundle=298]="Bundle",e[e.UnparsedSource=299]="UnparsedSource",e[e.InputFiles=300]="InputFiles",e[e.JSDocTypeExpression=301]="JSDocTypeExpression",e[e.JSDocNameReference=302]="JSDocNameReference",e[e.JSDocAllType=303]="JSDocAllType",e[e.JSDocUnknownType=304]="JSDocUnknownType",e[e.JSDocNullableType=305]="JSDocNullableType",e[e.JSDocNonNullableType=306]="JSDocNonNullableType",e[e.JSDocOptionalType=307]="JSDocOptionalType",e[e.JSDocFunctionType=308]="JSDocFunctionType",e[e.JSDocVariadicType=309]="JSDocVariadicType",e[e.JSDocNamepathType=310]="JSDocNamepathType",e[e.JSDocComment=311]="JSDocComment",e[e.JSDocTypeLiteral=312]="JSDocTypeLiteral",e[e.JSDocSignature=313]="JSDocSignature",e[e.JSDocTag=314]="JSDocTag",e[e.JSDocAugmentsTag=315]="JSDocAugmentsTag",e[e.JSDocImplementsTag=316]="JSDocImplementsTag",e[e.JSDocAuthorTag=317]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=318]="JSDocDeprecatedTag",e[e.JSDocClassTag=319]="JSDocClassTag",e[e.JSDocPublicTag=320]="JSDocPublicTag",e[e.JSDocPrivateTag=321]="JSDocPrivateTag",e[e.JSDocProtectedTag=322]="JSDocProtectedTag",e[e.JSDocReadonlyTag=323]="JSDocReadonlyTag",e[e.JSDocCallbackTag=324]="JSDocCallbackTag",e[e.JSDocEnumTag=325]="JSDocEnumTag",e[e.JSDocParameterTag=326]="JSDocParameterTag",e[e.JSDocReturnTag=327]="JSDocReturnTag",e[e.JSDocThisTag=328]="JSDocThisTag",e[e.JSDocTypeTag=329]="JSDocTypeTag",e[e.JSDocTemplateTag=330]="JSDocTemplateTag",e[e.JSDocTypedefTag=331]="JSDocTypedefTag",e[e.JSDocSeeTag=332]="JSDocSeeTag",e[e.JSDocPropertyTag=333]="JSDocPropertyTag",e[e.SyntaxList=334]="SyntaxList",e[e.NotEmittedStatement=335]="NotEmittedStatement",e[e.PartiallyEmittedExpression=336]="PartiallyEmittedExpression",e[e.CommaListExpression=337]="CommaListExpression",e[e.MergeDeclarationMarker=338]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=339]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=340]="SyntheticReferenceExpression",e[e.Count=341]="Count",e[e.FirstAssignment=62]="FirstAssignment",e[e.LastAssignment=77]="LastAssignment",e[e.FirstCompoundAssignment=63]="FirstCompoundAssignment",e[e.LastCompoundAssignment=77]="LastCompoundAssignment",e[e.FirstReservedWord=80]="FirstReservedWord",e[e.LastReservedWord=115]="LastReservedWord",e[e.FirstKeyword=80]="FirstKeyword",e[e.LastKeyword=156]="LastKeyword",e[e.FirstFutureReservedWord=116]="FirstFutureReservedWord",e[e.LastFutureReservedWord=124]="LastFutureReservedWord",e[e.FirstTypeNode=172]="FirstTypeNode",e[e.LastTypeNode=195]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=77]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=156]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=77]="LastBinaryOperator",e[e.FirstStatement=232]="FirstStatement",e[e.LastStatement=248]="LastStatement",e[e.FirstNode=157]="FirstNode",e[e.FirstJSDocNode=301]="FirstJSDocNode",e[e.LastJSDocNode=333]="LastJSDocNode",e[e.FirstJSDocTagNode=314]="FirstJSDocTagNode",e[e.LastJSDocTagNode=333]="LastJSDocTagNode",e[e.FirstContextualKeyword=125]="FirstContextualKeyword",e[e.LastContextualKeyword=156]="LastContextualKeyword"}(e.SyntaxKind||(e.SyntaxKind={})),function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.ThisNodeHasError=65536]="ThisNodeHasError",e[e.JavaScriptFile=131072]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=524288]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",e[e.JSDoc=4194304]="JSDoc",e[e.Ambient=8388608]="Ambient",e[e.InWithStatement=16777216]="InWithStatement",e[e.JsonFile=33554432]="JsonFile",e[e.TypeCached=67108864]="TypeCached",e[e.Deprecated=134217728]="Deprecated",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=25358336]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags"}(e.NodeFlags||(e.NodeFlags={})),function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Abstract=128]="Abstract",e[e.Async=256]="Async",e[e.Default=512]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=92]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=2270]="TypeScriptModifier",e[e.ExportDefault=513]="ExportDefault",e[e.All=11263]="All"}(e.ModifierFlags||(e.ModifierFlags={})),function(e){e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(e){e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"}(e.TokenFlags||(e.TokenFlags={})),function(e){e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={})),function(e){e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore"}(e.CommentDirectiveType||(e.CommentDirectiveType={}));var t,r=function(){};e.OperationCanceledException=r,function(e){e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile"}(e.FileIncludeKind||(e.FileIncludeKind={})),function(e){e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic"}(e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={})),function(e){e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(e){e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"}(e.ExitStatus||(e.ExitStatus={})),function(e){e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(e){e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns"}(e.ContextFlags||(e.ContextFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e[e.InReverseMappedType=33554432]="InReverseMappedType"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",e[e.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(e){e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(e){e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(e){e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial"}(e.CheckFlags||(e.CheckFlags={})),function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(e){e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=256]="SuperInstance",e[e.SuperStatic=512]="SuperStatic",e[e.ContextChecked=1024]="ContextChecked",e[e.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",e[e.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",e[e.CaptureArguments=8192]="CaptureArguments",e[e.EnumValuesComputed=16384]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",e[e.AssignmentsMarked=8388608]="AssignmentsMarked",e[e.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(e){e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109440]="Unit",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=131068]="Primitive",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Substructure=469237760]="Substructure",e[e.Narrowable=536624127]="Narrowable",e[e.NotPrimitiveUnion=468598819]="NotPrimitiveUnion",e[e.IncludesMask=205258751]="IncludesMask",e[e.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject"}(e.TypeFlags||(e.TypeFlags={})),function(e){e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ContainsSpread=1024]="ContainsSpread",e[e.ReverseMapped=2048]="ReverseMapped",e[e.JsxAttributes=4096]="JsxAttributes",e[e.MarkerType=8192]="MarkerType",e[e.JSLiteral=16384]="JSLiteral",e[e.FreshLiteral=32768]="FreshLiteral",e[e.ArrayLiteral=65536]="ArrayLiteral",e[e.ObjectRestType=131072]="ObjectRestType",e[e.PrimitiveUnion=262144]="PrimitiveUnion",e[e.ContainsWideningType=524288]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=1048576]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=2097152]="NonInferrableType",e[e.IsGenericObjectTypeComputed=4194304]="IsGenericObjectTypeComputed",e[e.IsGenericObjectType=8388608]="IsGenericObjectType",e[e.IsGenericIndexTypeComputed=16777216]="IsGenericIndexTypeComputed",e[e.IsGenericIndexType=33554432]="IsGenericIndexType",e[e.CouldContainTypeVariablesComputed=67108864]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=134217728]="CouldContainTypeVariables",e[e.ContainsIntersections=268435456]="ContainsIntersections",e[e.IsNeverIntersectionComputed=268435456]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=536870912]="IsNeverIntersection",e[e.IsClassInstanceClone=1073741824]="IsClassInstanceClone",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=1572864]="RequiresWidening",e[e.PropagatingFlags=3670016]="PropagatingFlags",e[e.ObjectTypeKindMask=2367]="ObjectTypeKindMask"}(e.ObjectFlags||(e.ObjectFlags={})),function(e){e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback"}(e.VarianceFlags||(e.VarianceFlags={})),function(e){e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest"}(e.ElementFlags||(e.ElementFlags={})),function(e){e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed"}(e.JsxReferenceKind||(e.JsxReferenceKind={})),function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(e){e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags"}(e.SignatureFlags||(e.SignatureFlags={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Function=2]="Function",e[e.Composite=3]="Composite",e[e.Merged=4]="Merged"}(e.TypeMapKind||(e.TypeMapKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.HomomorphicMappedType=4]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=8]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=16]="MappedTypeConstraint",e[e.ContravariantConditional=32]="ContravariantConditional",e[e.ReturnType=64]="ReturnType",e[e.LiteralKeyof=128]="LiteralKeyof",e[e.NoConstraints=256]="NoConstraints",e[e.AlwaysStrict=512]="AlwaysStrict",e[e.MaxValue=1024]="MaxValue",e[e.PriorityImpliesCombination=208]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity"}(e.InferencePriority||(e.InferencePriority={})),function(e){e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction"}(e.InferenceFlags||(e.InferenceFlags={})),function(e){e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(e){e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(t=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,r){void 0===r&&(r=!0);var n=t[e.category];return r?n.toLowerCase():n},function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(e){e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.UseFsEvents=3]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=4]="UseFsEventsOnParentDirectory"}(e.WatchFileKind||(e.WatchFileKind={})),function(e){e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling"}(e.WatchDirectoryKind||(e.WatchDirectoryKind={})),function(e){e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority"}(e.PollingWatchKind||(e.PollingWatchKind={})),function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ESNext=99]="ESNext"}(e.ModuleKind||(e.ModuleKind={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev"}(e.JsxEmit||(e.JsxEmit={})),function(e){e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error"}(e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),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={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(e){e[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"}(e.CharacterCodes||(e.CharacterCodes={})),function(e){e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo"}(e.Extension||(e.Extension={})),function(e){e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2020=8]="ContainsES2020",e[e.ContainsES2019=16]="ContainsES2019",e[e.ContainsES2018=32]="ContainsES2018",e[e.ContainsES2017=64]="ContainsES2017",e[e.ContainsES2016=128]="ContainsES2016",e[e.ContainsES2015=256]="ContainsES2015",e[e.ContainsGenerator=512]="ContainsGenerator",e[e.ContainsDestructuringAssignment=1024]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=2048]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=4096]="ContainsLexicalThis",e[e.ContainsRestOrSpread=8192]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=16384]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=32768]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=65536]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=131072]="ContainsBindingPattern",e[e.ContainsYield=262144]="ContainsYield",e[e.ContainsAwait=524288]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=1048576]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=2097152]="ContainsDynamicImport",e[e.ContainsClassFields=4194304]="ContainsClassFields",e[e.ContainsPossibleTopLevelAwait=8388608]="ContainsPossibleTopLevelAwait",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2020=8]="AssertES2020",e[e.AssertES2019=16]="AssertES2019",e[e.AssertES2018=32]="AssertES2018",e[e.AssertES2017=64]="AssertES2017",e[e.AssertES2016=128]="AssertES2016",e[e.AssertES2015=256]="AssertES2015",e[e.AssertGenerator=512]="AssertGenerator",e[e.AssertDestructuringAssignment=1024]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",e[e.NodeExcludes=536870912]="NodeExcludes",e[e.ArrowFunctionExcludes=547309568]="ArrowFunctionExcludes",e[e.FunctionExcludes=547313664]="FunctionExcludes",e[e.ConstructorExcludes=547311616]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=538923008]="MethodOrAccessorExcludes",e[e.PropertyExcludes=536875008]="PropertyExcludes",e[e.ClassExcludes=536905728]="ClassExcludes",e[e.ModuleExcludes=546379776]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=536922112]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=536879104]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=537018368]="VariableDeclarationListExcludes",e[e.ParameterExcludes=536870912]="ParameterExcludes",e[e.CatchClauseExcludes=536887296]="CatchClauseExcludes",e[e.BindingPatternExcludes=536879104]="BindingPatternExcludes",e[e.PropertyNamePropagatingFlags=4096]="PropertyNamePropagatingFlags"}(e.TransformFlags||(e.TransformFlags={})),function(e){e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.AdviseOnEmitNode=2]="AdviseOnEmitNode",e[e.NoSubstitution=4]="NoSubstitution",e[e.CapturesThis=8]="CapturesThis",e[e.NoLeadingSourceMap=16]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=32]="NoTrailingSourceMap",e[e.NoSourceMap=48]="NoSourceMap",e[e.NoNestedSourceMaps=64]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=384]="NoTokenSourceMaps",e[e.NoLeadingComments=512]="NoLeadingComments",e[e.NoTrailingComments=1024]="NoTrailingComments",e[e.NoComments=1536]="NoComments",e[e.NoNestedComments=2048]="NoNestedComments",e[e.HelperName=4096]="HelperName",e[e.ExportName=8192]="ExportName",e[e.LocalName=16384]="LocalName",e[e.InternalName=32768]="InternalName",e[e.Indented=65536]="Indented",e[e.NoIndentation=131072]="NoIndentation",e[e.AsyncFunctionBody=262144]="AsyncFunctionBody",e[e.ReuseTempVariableScope=524288]="ReuseTempVariableScope",e[e.CustomPrologue=1048576]="CustomPrologue",e[e.NoHoisting=2097152]="NoHoisting",e[e.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e[e.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines"}(e.EmitFlags||(e.EmitFlags={})),function(e){e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.CreateBinding=2097152]="CreateBinding",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=2097152]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(e){e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue"}(e.EmitHint||(e.EmitHint={})),function(e){e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),function(e){e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"}(e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={})),function(e){e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal"}(e.BundleFileSectionKind||(e.BundleFileSectionKind={})),function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=262656]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment"}(e.ListFormat||(e.ListFormat={})),function(e){e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}(ts||(ts={})),function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var t=/\\/g;function r(e){return 47===e||92===e}function n(e){return u(e)>0}function i(e){return 0!==u(e)}function a(e){return/^\.\.?($|[\\/])/.test(e)}function o(t,r){return t.length>r.length&&e.endsWith(t,r)}function s(e){return e.length>0&&r(e.charCodeAt(e.length-1))}function c(e){return e>=97&&e<=122||e>=65&&e<=90}function u(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:e.altDirectorySeparator,2);return n<0?t.length:n+1}if(c(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf("://");if(-1!==a){var o=a+"://".length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var u=t.slice(0,a),l=t.slice(o,s);if("file"===u&&(""===l||"localhost"===l)&&c(t.charCodeAt(s+1))){var _=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(t,s+2);if(-1!==_){if(47===t.charCodeAt(_))return~(_+1);if(_===t.length)return~_}}return~(s+1)}return~t.length}return 0}function l(e){var t=u(e);return t<0?~t:t}function _(t){var r=l(t=y(t));return r===t.length?t:(t=T(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function d(t,r,n){if(l(t=y(t))===t.length)return"";var i=(t=T(t)).slice(Math.max(l(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?f(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function p(t,r,n){if(e.startsWith(r,".")||(r="."+r),t.length>=r.length&&46===t.charCodeAt(t.length-r.length)){var i=t.slice(t.length-r.length);if(n(i,r))return i}}function f(t,r,n){if(r)return function(e,t,r){if("string"==typeof t)return p(e,t,r)||"";for(var n=0,i=t;n<i.length;n++){var a=p(e,i[n],r);if(a)return a}return""}(T(t),r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var i=d(t),a=i.lastIndexOf(".");return a>=0?i.substring(a):""}function g(t,r){return void 0===r&&(r=""),function(t,r){var n=t.substring(0,r),i=t.substring(r).split(e.directorySeparator);return i.length&&!e.lastOrUndefined(i)&&i.pop(),__spreadArray([n],i)}(t=h(r,t),l(t))}function m(t){return 0===t.length?"":(t[0]&&C(t[0]))+t.slice(1).join(e.directorySeparator)}function y(r){return r.replace(t,e.directorySeparator)}function v(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n<t.length;n++){var i=t[n];if(i&&"."!==i){if(".."===i)if(r.length>1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function h(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&(e=y(e));for(var n=0,i=t;n<i.length;n++){var a=i[n];a&&(a=y(a),e=e&&0===l(a)?C(e)+a:a)}return e}function b(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return S(e.some(r)?h.apply(void 0,__spreadArray([t],r)):y(t))}function x(e,t){return v(g(e,t))}function D(e,t){return m(x(e,t))}function S(e){var t=m(v(g(e=y(e))));return t&&s(e)?C(t):t}function T(e){return s(e)?e.substr(0,e.length-1):e}function C(t){return s(t)?t:t+e.directorySeparator}function E(e){return i(e)||a(e)?e:"./"+e}e.isAnyDirectorySeparator=r,e.isUrl=function(e){return u(e)<0},e.isRootedDiskPath=n,e.isDiskPathRoot=function(e){var t=u(e);return t>0&&t===e.length},e.pathIsAbsolute=i,e.pathIsRelative=a,e.pathIsBareSpecifier=function(e){return!i(e)&&!a(e)},e.hasExtension=function(t){return e.stringContains(d(t),".")},e.fileExtensionIs=o,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r<n.length;r++){if(o(e,n[r]))return!0}return!1},e.hasTrailingDirectorySeparator=s,e.getRootLength=l,e.getDirectoryPath=_,e.getBaseFileName=d,e.getAnyExtensionFromPath=f,e.getPathComponents=g,e.getPathFromPathComponents=m,e.normalizeSlashes=y,e.reducePathComponents=v,e.combinePaths=h,e.resolvePath=b,e.getNormalizedPathComponents=x,e.getNormalizedAbsolutePath=D,e.normalizePath=S,e.getNormalizedAbsolutePathWithoutRoot=function(t,r){return function(t){return 0===t.length?"":t.slice(1).join(e.directorySeparator)}(x(t,r))},e.toPath=function(e,t,r){return r(n(e)?S(e):D(e,t))},e.normalizePathAndParts=function(t){var r=v(g(t=y(t))),n=r[0],i=r.slice(1);if(i.length){var a=n+i.join(e.directorySeparator);return{path:s(t)?C(a):a,parts:i}}return{path:n,parts:i}},e.removeTrailingDirectorySeparator=T,e.ensureTrailingDirectorySeparator=C,e.ensurePathIsNonModuleName=E,e.changeAnyExtension=function(t,r,n,i){var a=void 0!==n&&void 0!==i?f(t,n,i):f(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t};var k=/(^|\/)\.{0,2}($|\/)/;function N(t,r,n){if(t===r)return 0;if(void 0===t)return-1;if(void 0===r)return 1;var i=t.substring(0,l(t)),a=r.substring(0,l(r)),o=e.compareStringsCaseInsensitive(i,a);if(0!==o)return o;var s=t.substring(i.length),c=r.substring(a.length);if(!k.test(s)&&!k.test(c))return n(s,c);for(var u=v(g(t)),_=v(g(r)),d=Math.min(u.length,_.length),p=1;p<d;p++){var f=n(u[p],_[p]);if(0!==f)return f}return e.compareValues(u.length,_.length)}function A(t,r,n,i){var a,o=v(g(t)),s=v(g(r));for(a=0;a<o.length&&a<s.length;a++){var c=i(o[a]),u=i(s[a]);if(!(0===a?e.equateStringsCaseInsensitive:n)(c,u))break}if(0===a)return s;for(var l=s.slice(a),_=[];a<o.length;a++)_.push("..");return __spreadArray(__spreadArray([""],_),l)}function F(t,r,n){e.Debug.assert(l(t)>0==l(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return m(A(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function P(t,r,i,a,o){var s=A(b(i,t),b(i,r),e.equateStringsCaseSensitive,a),c=s[0];if(o&&n(c)){var u=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=u+c}return m(s)}e.comparePathsCaseSensitive=function(t,r){return N(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return N(t,r,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,r,n,i){return"string"==typeof n?(t=h(n,t),r=h(n,r)):"boolean"==typeof n&&(i=n),N(t,r,e.getStringComparer(i))},e.containsPath=function(t,r,n,i){if("string"==typeof n?(t=h(n,t),r=h(n,r)):"boolean"==typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var a=v(g(t)),o=v(g(r));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(t,r,n){var i=n(t),a=n(r);return e.startsWith(i,a+"/")||e.startsWith(i,a+"\\")},e.getPathComponentsRelativeTo=A,e.getRelativePathFromDirectory=F,e.convertToRelativePath=function(e,t,r){return n(e)?P(t,e,t,r,!1):e},e.getRelativePathFromFile=function(e,t,r){return E(F(_(e),t,r))},e.getRelativePathToDirectoryOrUrl=P,e.forEachAncestorDirectory=function(e,t){for(;;){var r=t(e);if(void 0!==r)return r;var n=_(e);if(n===e)return;e=n}},e.isNodeModulesDirectory=function(t){return e.endsWith(t,"/node_modules")}}(ts||(ts={})),function(e){function t(e){for(var t=5381,r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}var r,n;function i(e){var t;return(t={})[n.Low]=e.Low,t[n.Medium]=e.Medium,t[n.High]=e.High,t}e.generateDjb2Hash=t,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"}(r=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),function(e){e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"}(n=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);var a,o={Low:32,Medium:64,High:256},s=i(o);function c(t){if(t.getEnvironmentVariable){var r=function(e,t){var r=a(e);if(r)return n("Low"),n("Medium"),n("High"),!0;return!1;function n(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",n);s=c("TSC_WATCH_POLLINGCHUNKSIZE",o)||s,e.unchangedPollThresholds=c("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",o)||e.unchangedPollThresholds}function a(e){var r;return n("Low"),n("Medium"),n("High"),r;function n(n){var i=function(e,r){return t.getEnvironmentVariable(e+"_"+r.toUpperCase())}(e,n);i&&((r||(r={}))[n]=Number(i))}}function c(e,t){var n=a(e);return(r||n)&&i(n?__assign(__assign({},t),n):t)}}function u(t){var r=[],i=[],a=u(n.Low),o=u(n.Medium),c=u(n.High);return function(t,n,i){var a={fileName:t,callback:n,unchangedPolls:0,mtime:h(t)};return r.push(a),g(a,i),{close:function(){a.isClosed=!0,e.unorderedRemoveItem(r,a)}}};function u(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function l(t){t.pollIndex=p(t,t.pollingInterval,t.pollIndex,s[t.pollingInterval]),t.length?v(t.pollingInterval):(e.Debug.assert(0===t.pollIndex),t.pollScheduled=!1)}function _(e){p(i,n.Low,0,i.length),l(e),!e.pollScheduled&&i.length&&v(n.Low)}function p(t,r,a,o){for(var s=t.length,c=a,u=0;u<o&&s>0;p(),s--){var l=t[a];if(l)if(l.isClosed)t[a]=void 0;else{u++;var _=d(l,h(l.fileName));l.isClosed?t[a]=void 0:_?(l.unchangedPolls=0,t!==i&&(t[a]=void 0,m(l))):l.unchangedPolls!==e.unchangedPollThresholds[r]?l.unchangedPolls++:t===i?(l.unchangedPolls=1,t[a]=void 0,g(l,n.Low)):r!==n.High&&(l.unchangedPolls++,t[a]=void 0,g(l,r===n.Low?n.Medium:n.High)),t[a]&&(c<a&&(t[c]=l,t[a]=void 0),c++)}}return a;function p(){++a===t.length&&(c<a&&(t.length=c),a=0,c=0)}}function f(e){switch(e){case n.Low:return a;case n.Medium:return o;case n.High:return c}}function g(e,t){f(t).push(e),y(t)}function m(e){i.push(e),y(n.Low)}function y(e){f(e).pollScheduled||v(e)}function v(e){f(e).pollScheduled=t.setTimeout(e===n.Low?_:l,e,f(e))}function h(r){return t.getModifiedTime(r)||e.missingFileModifiedTime}}function l(t,i){var a=e.createMultiMap(),o=new e.Map,s=e.createGetCanonicalFileName(i);return function(i,c,u,l){var _=s(i);a.add(_,c);var d=e.getDirectoryPath(_)||".",p=o.get(d)||function(i,c,u){var l=t(i,1,(function(t,n){if(e.isString(n)){var o=e.getNormalizedAbsolutePath(n,i),c=o&&a.get(s(o));if(c)for(var u=0,l=c;u<l.length;u++){(0,l[u])(o,r.Changed)}}}),!1,n.Medium,u);return l.referenceCount=0,o.set(c,l),l}(e.getDirectoryPath(i)||".",d,l);return p.referenceCount++,{close:function(){1===p.referenceCount?(p.close(),o.delete(d)):p.referenceCount--,a.remove(_,c)}}}}function _(t,r){var n=new e.Map,i=e.createMultiMap(),a=e.createGetCanonicalFileName(r);return function(r,o,s,c){var u=a(r),l=n.get(u);return l?l.refCount++:n.set(u,{watcher:t(r,(function(t,r){return e.forEach(i.get(u),(function(e){return e(t,r)}))}),s,c),refCount:1}),i.add(u,o),{close:function(){var t=e.Debug.checkDefined(n.get(u));i.remove(u,o),t.refCount--,t.refCount||(n.delete(u),e.closeFileWatcherOf(t))}}}}function d(e,t){var r=e.mtime.getTime(),n=t.getTime();return r!==n&&(e.mtime=t,e.callback(e.fileName,p(r,n)),!0)}function p(e,t){return 0===e?r.Created:0===t?r.Deleted:r.Changed}function f(t){var r,n=t.watchDirectory,i=t.useCaseSensitiveFileNames,a=t.getCurrentDirectory,o=t.getAccessibleSortedChildDirectories,s=t.directoryExists,c=t.realpath,u=t.setTimeout,l=t.clearTimeout,_=new e.Map,d=e.createMultiMap(),p=new e.Map,f=e.getStringComparer(!i),g=e.createGetCanonicalFileName(i);return function(e,t,r,i){return r?y(e,i,t):n(e,t,r,i)};function y(t,i,a){var o=g(t),c=_.get(o);c?c.refCount++:(c={watcher:n(t,(function(e){D(e,i)||((null==i?void 0:i.synchronousWatchDirectory)?(v(o,e),x(t,o,i)):function(e,t,n,i){var a=_.get(t);if(a&&s(e))return void function(e,t,n,i){var a=p.get(t);a?a.fileNames.push(n):p.set(t,{dirName:e,options:i,fileNames:[n]});r&&(l(r),r=void 0);r=u(h,1e3)}(e,t,n,i);v(t,n),b(a)}(t,o,e,i))}),!1,i),refCount:1,childWatches:e.emptyArray},_.set(o,c),x(t,o,i));var f=a&&{dirName:t,callback:a};return f&&d.add(o,f),{dirName:t,close:function(){var t=e.Debug.checkDefined(_.get(o));f&&d.remove(o,f),t.refCount--,t.refCount||(_.delete(o),e.closeFileWatcherOf(t),t.childWatches.forEach(e.closeFileWatcher))}}}function v(t,r,n){var i,a;e.isString(r)?i=r:a=r,d.forEach((function(r,o){var s;if((!a||!0!==a.get(o))&&(o===t||e.startsWith(t,o)&&t[o.length]===e.directorySeparator))if(a)if(n){var c=a.get(o);c?(s=c).push.apply(s,n):a.set(o,n.slice())}else a.set(o,!0);else r.forEach((function(e){return(0,e.callback)(i)}))}))}function h(){r=void 0,e.sysLog("sysLog:: onTimerToUpdateChildWatches:: "+p.size);for(var t=e.timestamp(),n=new e.Map;!r&&p.size;){var i=p.entries().next();e.Debug.assert(!i.done);var a=i.value,o=a[0],s=a[1],c=s.dirName,u=s.options,l=s.fileNames;p.delete(o);var _=x(c,o,u);v(o,n,_?void 0:l)}e.sysLog("sysLog:: invokingWatchers:: Elapsed:: "+(e.timestamp()-t)+"ms:: "+p.size),d.forEach((function(t,r){var i=n.get(r);i&&t.forEach((function(t){var r=t.callback,n=t.dirName;e.isArray(i)?i.forEach(r):r(n)}))}));var f=e.timestamp()-t;e.sysLog("sysLog:: Elapsed:: "+f+"ms:: onTimerToUpdateChildWatches:: "+p.size+" "+r)}function b(t){if(t){var r=t.childWatches;t.childWatches=e.emptyArray;for(var n=0,i=r;n<i.length;n++){var a=i[n];a.close(),b(_.get(g(a.dirName)))}}}function x(t,r,n){var i,a=_.get(r);if(!a)return!1;var u=e.enumerateInsertsAndDeletes(s(t)?e.mapDefined(o(t),(function(r){var i=e.getNormalizedAbsolutePath(r,t);return D(i,n)||0!==f(i,e.normalizePath(c(i)))?void 0:i})):e.emptyArray,a.childWatches,(function(e,t){return f(e,t.dirName)}),(function(e){l(y(e,n))}),e.closeFileWatcher,l);return a.childWatches=i||e.emptyArray,u;function l(e){(i||(i=[])).push(e)}}function D(t,r){return e.some(e.ignoredPaths,(function(r){return function(t,r){return!!e.stringContains(t,r)||!i&&e.stringContains(g(t),r)}(t,r)}))||m(t,r,i,a)}}function g(e){return function(t,n){return e(n===r.Changed?"change":"rename","")}}function m(t,r,n,i){return((null==r?void 0:r.excludeDirectories)||(null==r?void 0:r.excludeFiles))&&(e.matchesExclude(t,null==r?void 0:r.excludeFiles,n,i())||e.matchesExclude(t,null==r?void 0:r.excludeDirectories,n,i()))}function y(t,r,n,i,a){return function(o,s){if("rename"===o){var c=s?e.normalizePath(e.combinePaths(t,s)):t;s&&m(c,n,i,a)||r(c)}}}function v(t){var i,a,o,s=t.pollingWatchFile,c=t.getModifiedTime,_=t.setTimeout,d=t.clearTimeout,p=t.fsWatch,g=t.fileExists,m=t.useCaseSensitiveFileNames,v=t.getCurrentDirectory,h=t.fsSupportsRecursiveFsWatch,b=t.directoryExists,x=t.getAccessibleSortedChildDirectories,D=t.realpath,S=t.tscWatchFile,T=t.useNonPollingWatchers,C=t.tscWatchDirectory;return{watchFile:function(t,i,o,c){c=function(t,r){if(t&&void 0!==t.watchFile)return t;switch(S){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return k(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,t);case"UseFsEventsWithFallbackDynamicPolling":return k(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,t);case"UseFsEventsOnParentDirectory":r=!0;default:return r?k(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,t):{watchFile:e.WatchFileKind.FixedPollingInterval}}}(c,T);var u=e.Debug.checkDefined(c.watchFile);switch(u){case e.WatchFileKind.FixedPollingInterval:return s(t,i,n.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return s(t,i,o,void 0);case e.WatchFileKind.DynamicPriorityPolling:return E()(t,i,o,void 0);case e.WatchFileKind.UseFsEvents:return p(t,0,function(e,t,n){return function(i){t(e,"rename"===i?n(e)?r.Created:r.Deleted:r.Changed)}}(t,i,g),!1,o,e.getFallbackOptions(c));case e.WatchFileKind.UseFsEventsOnParentDirectory:return a||(a=l(p,m)),a(t,i,o,e.getFallbackOptions(c));default:e.Debug.assertNever(u)}},watchDirectory:function(t,r,i,a){if(h)return p(t,1,y(t,r,a,m,v),i,n.Medium,e.getFallbackOptions(a));o||(o=f({useCaseSensitiveFileNames:m,getCurrentDirectory:v,directoryExists:b,getAccessibleSortedChildDirectories:x,watchDirectory:N,realpath:D,setTimeout:_,clearTimeout:d}));return o(t,r,i,a)}};function E(){return i||(i=u({getModifiedTime:c,setTimeout:_}))}function k(e,t,r){var n=null==r?void 0:r.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===n?t:n}}function N(t,r,i,a){e.Debug.assert(!i);var o=function(t){if(t&&void 0!==t.watchDirectory)return t;switch(C){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var r=null==t?void 0:t.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:void 0!==r?r:void 0}}}(a),c=e.Debug.checkDefined(o.watchDirectory);switch(c){case e.WatchDirectoryKind.FixedPollingInterval:return s(t,(function(){return r(t)}),n.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return E()(t,(function(){return r(t)}),n.Medium,void 0);case e.WatchDirectoryKind.UseFsEvents:return p(t,1,y(t,r,a,m,v),i,n.Medium,e.getFallbackOptions(o));default:e.Debug.assertNever(c)}}}function h(t){var r=t.writeFile;t.writeFile=function(n,i,a){return e.writeFileEnsuringDirectories(n,i,!!a,(function(e,n,i){return r.call(t,e,n,i)}),(function(e){return t.createDirectory(e)}),(function(e){return t.directoryExists(e)}))}}function b(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.unchangedPollThresholds=i(o),e.setCustomPollingValues=c,e.createDynamicPriorityPollingWatchFile=u,e.createSingleFileWatcherPerName=_,e.onWatchedFileStat=d,e.getFileWatcherEventKind=p,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop,e.setSysLog=function(t){e.sysLog=t},e.createDirectoryWatcherSupportingRecursive=f,function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(e.FileSystemEntryKind||(e.FileSystemEntryKind={})),e.createFileWatcherCallback=g,e.createSystemWatchFunctions=v,e.patchWriteFileEnsuringDirectory=h,e.getNodeMajorVersion=b,e.sys=("undefined"!=typeof process&&process.nextTick&&!process.browser&&"undefined"!=typeof require&&(a=function(){var n,i,a,o=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,s=require("fs"),c=require("path"),u=require("os");try{i=require("crypto")}catch(e){i=void 0}var l,d="./profile.cpuprofile",p=require("buffer").Buffer,f=b()>=4,m="linux"===process.platform||"darwin"===process.platform,y=u.platform(),h="win32"!==y&&"win64"!==y&&!I((l=__filename,l.replace(/\w/g,(function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})))),x=h&&null!==(n=s.realpathSync.native)&&void 0!==n?n:s.realpathSync,D=f&&("win32"===process.platform||"darwin"===process.platform),S=e.memoize((function(){return process.cwd()})),T=v({pollingWatchFile:_((function(e,t,n){var i;return s.watchFile(e,{persistent:!0,interval:n},a),{close:function(){return s.unwatchFile(e,a)}};function a(n,a){var o=0==+a.mtime||i===r.Deleted;if(0==+n.mtime){if(o)return;i=r.Deleted}else if(o)i=r.Created;else{if(+n.mtime==+a.mtime)return;i=r.Changed}t(e,i)}}),h),getModifiedTime:L,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatch:function(t,n,i,a,o,c){var u,l,_;m&&(l=t.substr(t.lastIndexOf(e.directorySeparator)),_=l.slice(e.directorySeparator.length));var d=w(t,n)?f():v();return{close:function(){d.close(),d=void 0}};function p(r){e.sysLog("sysLog:: "+t+":: Changing watcher to "+(r===f?"Present":"Missing")+"FileSystemEntryWatcher"),i("rename",""),d&&(d.close(),d=r())}function f(){void 0===u&&(u=D?{persistent:!0,recursive:!!a}:{persistent:!0});try{var r=s.watch(t,u,m?y:i);return r.on("error",(function(){return p(v)})),r}catch(r){return e.sysLog("sysLog:: "+t+":: Changing to fsWatchFile"),C(t,g(i),o,c)}}function y(e,r){return"rename"!==e||r&&r!==_&&(-1===r.lastIndexOf(l)||r.lastIndexOf(l)!==r.length-l.length)||w(t,n)?i(e,r):p(v)}function v(){return C(t,(function(e,i){i===r.Created&&w(t,n)&&p(f)}),o,c)}},useCaseSensitiveFileNames:h,getCurrentDirectory:S,fileExists:I,fsSupportsRecursiveFsWatch:D,directoryExists:O,getAccessibleSortedChildDirectories:function(e){return P(e).directories},realpath:M,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY}),C=T.watchFile,E=T.watchDirectory,k={args:process.argv.slice(2),newLine:u.EOL,useCaseSensitiveFileNames:h,write:function(e){process.stdout.write(e)},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:function(t,r){e.perfLogger.logStartReadFile(t);var n=function(e,t){var r;try{r=s.readFileSync(e)}catch(e){return}var n=r.length;if(n>=2&&254===r[0]&&255===r[1]){n&=-2;for(var i=0;i<n;i+=2){var a=r[i];r[i]=r[i+1],r[i+1]=a}return r.toString("utf16le",2)}return n>=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):n>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}(t);return e.perfLogger.logStopReadFile(),n},writeFile:function(t,r,n){var i;e.perfLogger.logEvent("WriteFile: "+t),n&&(r="\ufeff"+r);try{i=s.openSync(t,"w"),s.writeSync(i,r,void 0,"utf8")}finally{void 0!==i&&s.closeSync(i)}},watchFile:C,watchDirectory:E,resolvePath:function(e){return c.resolve(e)},fileExists:I,directoryExists:O,createDirectory:function(e){if(!k.directoryExists(e))try{s.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:S,getDirectories:function(e){return P(e).directories.slice()},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(t,r,n,i,a){return e.matchFiles(t,r,n,i,h,process.cwd(),a,P,M)},getModifiedTime:L,setModifiedTime:function(e,t){try{s.utimesSync(e,t,t)}catch(e){return}},deleteFile:function(e){try{return s.unlinkSync(e)}catch(e){return}},createHash:i?R:t,createSHA256Hash:i?R:void 0,getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=N(e);if(null==t?void 0:t.isFile())return t.size}catch(e){}return 0},exit:function(e){A((function(){return process.exit(e)}))},enableCPUProfiler:function(e,t){if(a)return t(),!1;var r=require("inspector");if(!r||!r.Session)return t(),!1;var n=new r.Session;return n.connect(),n.post("Profiler.enable",(function(){n.post("Profiler.start",(function(){a=n,d=e,t()}))})),!0},disableCPUProfiler:A,cpuProfilingEnabled:function(){return!!a||e.contains(process.execArgv,"--cpu-prof")||e.contains(process.execArgv,"--prof")},realpath:M,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||e.some(process.execArgv,(function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)})),tryEnableSourceMapsForHost:function(){try{require("source-map-support").install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){process.stdout.write("c")},setBlocking:function(){process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:F,base64decode:function(e){return F(e,"base64").toString("utf8")},base64encode:function(e){return F(e).toString("base64")},require:function(t,r){try{var n=e.resolveJSModule(r,t,k);return{module:require(n),modulePath:n,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return k;function N(e){return s.statSync(e,{throwIfNoEntry:!1})}function A(t){if(a&&"stopping"!==a){var r=a;return a.post("Profiler.stop",(function(n,i){var u,l=i.profile;if(!n){try{(null===(u=N(d))||void 0===u?void 0:u.isDirectory())&&(d=c.join(d,(new Date).toISOString().replace(/:/g,"-")+"+P"+process.pid+".cpuprofile"))}catch(e){}try{s.mkdirSync(c.dirname(d),{recursive:!0})}catch(e){}s.writeFileSync(d,JSON.stringify(function(t){for(var r=0,n=new e.Map,i=e.normalizeSlashes(__dirname),a="file://"+(1===e.getRootLength(i)?"":"/")+i,s=0,c=t.nodes;s<c.length;s++){var u=c[s];if(u.callFrame.url){var l=e.normalizeSlashes(u.callFrame.url);e.containsPath(a,l,h)?u.callFrame.url=e.getRelativePathToDirectoryOrUrl(a,l,a,e.createGetCanonicalFileName(h),!0):o.test(l)||(u.callFrame.url=(n.has(l)?n:n.set(l,"external"+r+".js")).get(l),r++)}}return t}(l)))}a=void 0,r.disconnect(),t()})),a="stopping",!0}return t(),!1}function F(e,t){return p.from&&p.from!==Int8Array.from?p.from(e,t):new p(e,t)}function P(t){e.perfLogger.logEvent("ReadDir: "+(t||"."));try{for(var r=s.readdirSync(t||".",{withFileTypes:!0}),n=[],i=[],a=0,o=r;a<o.length;a++){var c=o[a],u="string"==typeof c?c:c.name;if("."!==u&&".."!==u){var l=void 0;if("string"==typeof c||c.isSymbolicLink()){var _=e.combinePaths(t,u);try{if(!(l=N(_)))continue}catch(e){continue}}else l=c;l.isFile()?n.push(u):l.isDirectory()&&i.push(u)}}return n.sort(),i.sort(),{files:n,directories:i}}catch(t){return e.emptyFileSystemEntries}}function w(e,t){var r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{var n=N(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(e){return!1}finally{Error.stackTraceLimit=r}}function I(e){return w(e,0)}function O(e){return w(e,1)}function M(e){try{return x(e)}catch(t){return e}}function L(e){var t;try{return null===(t=N(e))||void 0===t?void 0:t.mtime}catch(e){return}}function R(e){var t=i.createHash("sha256");return t.update(e),t.digest("hex")}}()),a&&h(a),a),e.sys&&e.sys.getEnvironmentVariable&&(c(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)}(ts||(ts={})),function(e){function t(e,t,r,n,i,a,o){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i,elidedInCompatabilityPyramid:a,reportsDeprecated:o}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(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:t(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:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:t(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_either_string_or_number:t(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_either_string_or_number_1023","An index signature parameter type must be either 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(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:t(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:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(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:t(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:t(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:t(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:t(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:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:t(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:t(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:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(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:t(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:t(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:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(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:t(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:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(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:t(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:t(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:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(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:t(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:t(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:t(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:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(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:t(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:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(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:t(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:t(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:t(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:t(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:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(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:t(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:t(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:t(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:t(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:t(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:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(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:t(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:t(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:t(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:t(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:t(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:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(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:t(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:t(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:t(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:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),Module_0_can_only_be_default_imported_using_the_1_flag:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),with_statements_are_not_allowed_in_an_async_function_block:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:t(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(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:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(1368,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_1368","Specify emit/checking behavior for imports that are only used for types"),Did_you_mean_0:t(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:t(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:t(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:t(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:t(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:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(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:t(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:t(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:t(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:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(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:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(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:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(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:t(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:t(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."),The_types_of_0_are_incompatible_between_these_types:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(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:t(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:t(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:t(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:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(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:t(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:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(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:t(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:t(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:t(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:t(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:t(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:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(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:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(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:t(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:t(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:t(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:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:t(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:t(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:t(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:t(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:t(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:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(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:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(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:t(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:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(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:t(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:t(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:t(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:t(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:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:t(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:t(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:t(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:t(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:t(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:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(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:t(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:t(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:t(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:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(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:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(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:t(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:t(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:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it__2774","This condition will always return true since the function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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."),Import_declaration_0_is_using_private_name_1:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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}']."),The_current_host_does_not_support_the_0_option:t(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:t(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:t(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:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(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:t(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:t(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:t(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:t(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:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(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:t(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:t(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:t(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:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(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:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(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:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(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:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(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:t(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:t(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:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(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:t(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:t(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:t(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:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(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:t(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:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(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:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(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:t(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:t(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:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(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:t(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:t(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:t(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:t(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:t(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:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_react_react_jsx_or_react_jsxdev:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_react_react_jsx_or_react_jsxdev_6080","Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'."),File_0_has_an_unsupported_extension_so_skipping_it:t(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:t(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:t(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:t(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:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(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:t(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:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(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:t(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:t(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:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(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:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(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:t(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:t(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:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(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:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(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:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:t(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:t(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:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(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:t(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:t(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:t(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:t(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:t(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:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(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:t(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:t(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:t(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:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(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:t(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:t(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:t(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:t(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:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(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_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling:t(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'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority:t(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'."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6228,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6228","Synchronously call callbacks and update the state of directory watchers on platforms that don't support recursive watching natively."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(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:t(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:t(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:t(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:t(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:t(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:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(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:t(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:t(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"),Projects_to_reference:t(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(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:t(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:t(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:t(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:t(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:t(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:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:t(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6368,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),Option_build_must_be_the_first_command_line_argument:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(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:t(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:t(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:t(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:t(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:t(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."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:t(6803,e.DiagnosticCategory.Error,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6803","Require undeclared properties from index signatures to use element accesses."),Include_undefined_in_index_signature_results:t(6800,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6800","Include 'undefined' in index signature results"),Variable_0_implicitly_has_an_1_type:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(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:t(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:t(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:t(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:t(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:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(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:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:t(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:t(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:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(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:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(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:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(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:t(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:t(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:t(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:t(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:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(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:t(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:t(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:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(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:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(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:t(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:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(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:t(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:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(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:t(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:t(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:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Allow_accessing_UMD_globals_from_modules:t(95076,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(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:t(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:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(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:t(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:t(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:t(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:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:t(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:t(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:t(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:t(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:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(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:t(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:t(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:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(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:t(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:t(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:t(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:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(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:t(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:t(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:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(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:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(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:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(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:t(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:t(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:t(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:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(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:t(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:t(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:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(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:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(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:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),A_method_cannot_be_named_with_a_private_identifier:t(18022,e.DiagnosticCategory.Error,"A_method_cannot_be_named_with_a_private_identifier_18022","A method cannot be named with a private identifier."),An_accessor_cannot_be_named_with_a_private_identifier:t(18023,e.DiagnosticCategory.Error,"An_accessor_cannot_be_named_with_a_private_identifier_18023","An accessor cannot be named with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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.")}}(ts||(ts={})),function(e){var t;function r(e){return e>=78}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||r(e)};var n=((t={abstract:125,any:128,as:126,asserts:127,bigint:155,boolean:131,break:80,case:81,catch:82,class:83,continue:85,const:84}).constructor=132,t.debugger=86,t.declare=133,t.default=87,t.delete=88,t.do=89,t.else=90,t.enum=91,t.export=92,t.extends=93,t.false=94,t.finally=95,t.for=96,t.from=153,t.function=97,t.get=134,t.if=98,t.implements=116,t.import=99,t.in=100,t.infer=135,t.instanceof=101,t.interface=117,t.intrinsic=136,t.is=137,t.keyof=138,t.let=118,t.module=139,t.namespace=140,t.never=141,t.new=102,t.null=103,t.number=144,t.object=145,t.package=119,t.private=120,t.protected=121,t.public=122,t.readonly=142,t.require=143,t.global=154,t.return=104,t.set=146,t.static=123,t.string=147,t.super=105,t.switch=106,t.symbol=148,t.this=107,t.throw=108,t.true=109,t.try=110,t.type=149,t.typeof=111,t.undefined=150,t.unique=151,t.unknown=152,t.var=112,t.void=113,t.while=114,t.with=115,t.yield=124,t.async=129,t.await=130,t.of=156,t),i=new e.Map(e.getEntries(n)),a=new e.Map(e.getEntries(__assign(__assign({},n),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":62,"+=":63,"-=":64,"*=":65,"**=":66,"/=":67,"%=":68,"<<=":69,">>=":70,">>>=":71,"&=":72,"|=":73,"^=":77,"||=":74,"&&=":75,"??=":76,"@":59,"`":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],u=[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],l=[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],_=[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],d=/^\s*\/\/\/?\s*@(ts-expect-error|ts-ignore)/,p=/^\s*(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function f(e,t){if(e<t[0])return!1;for(var r,n=0,i=t.length;n+1<i;){if(r=n+(i-n)/2,t[r-=r%2]<=e&&e<=t[r+1])return!0;e<t[r]?i=r:n=r+2}return!1}function g(e,t){return f(e,t>=2?l:1===t?c:o)}e.isUnicodeIdentifierStart=g;var m,y=(m=[],a.forEach((function(e,t){m[e]=t})),m);function v(e){for(var t=new Array,r=0,n=0;r<e.length;){var i=e.charCodeAt(r);switch(r++,i){case 13:10===e.charCodeAt(r)&&r++;case 10:t.push(n),n=r;break;default:i>127&&C(i)&&(t.push(n),n=r)}}return t.push(n),t}function h(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: "+r+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,v(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r<t.length-1?e.Debug.assert(o<t[r+1]):void 0!==i&&e.Debug.assert(o<=i.length),o)}function b(e){return e.lineMap||(e.lineMap=v(e.text))}function x(e,t){var r=D(e,t);return{line:r,character:t-e[r]}}function D(t,r,n){var i=e.binarySearch(t,r,e.identity,e.compareValues,n);return i<0&&(i=~i-1,e.Debug.assert(-1!==i,"position cannot precede the beginning of the file")),i}function S(e){return T(e)||C(e)}function T(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 C(e){return 10===e||13===e||8232===e||8233===e}function E(e){return e>=48&&e<=57}function k(e){return E(e)||e>=65&&e<=70||e>=97&&e<=102}function N(e){return e>=48&&e<=55}e.tokenToString=function(e){return y[e]},e.stringToToken=function(e){return a.get(e)},e.computeLineStarts=v,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):h(b(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=h,e.getLineStarts=b,e.computeLineAndCharacterOfPosition=x,e.computeLineOfPosition=D,e.getLinesBetweenPositions=function(e,t,r){if(t===r)return 0;var n=b(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=D(n,i),c=D(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,t){return x(b(e),t)},e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=T,e.isLineBreak=C,e.isOctalDigit=N,e.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){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===t;default:return r>127}},e.skipTrivia=function(t,r,n,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(r))return r;for(;;){var a=t.charCodeAt(r);switch(a){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r<t.length&&!C(t.charCodeAt(r));)r++;continue}if(42===t.charCodeAt(r+1)){for(r+=2;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}continue}break;case 60:case 124:case 61:case 62:if(F(t,r)){r=P(t,r);continue}break;case 35:if(0===r&&I(t,r)){r=O(t,r);continue}break;default:if(a>127&&S(a)){r++;continue}}return r}};var A="<<<<<<<".length;function F(t,r){if(e.Debug.assert(r>=0),0===r||C(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+A<t.length){for(var i=0;i<A;i++)if(t.charCodeAt(r+i)!==n)return!1;return 61===n||32===t.charCodeAt(r+A)}}return!1}function P(t,r,n){n&&n(e.Diagnostics.Merge_conflict_marker_encountered,r,A);var i=t.charCodeAt(r),a=t.length;if(60===i||62===i)for(;r<a&&!C(t.charCodeAt(r));)r++;else for(e.Debug.assert(124===i||61===i);r<a;){var o=t.charCodeAt(r);if((61===o||62===o)&&o!==i&&F(t,r))break;r++}return r}var w=/^#!.*/;function I(t,r){return e.Debug.assert(0===r),w.test(t)}function O(e,t){return t+=w.exec(e)[0].length}function M(e,t,r,n,i,a,o){var s,c,u,l,_=!1,d=n,p=o;if(0===r){d=!0;var f=j(t);f&&(r=f.length)}e:for(;r>=0&&r<t.length;){var g=t.charCodeAt(r);switch(g){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)break e;d=!0,_&&(l=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var m=t.charCodeAt(r+1),y=!1;if(47===m||42===m){var v=47===m?2:3,h=r;if(r+=2,47===m)for(;r<t.length;){if(C(t.charCodeAt(r))){y=!0;break}r++}else for(;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}if(d){if(_&&(p=i(s,c,u,l,a,p),!e&&p))return p;s=h,c=r,u=v,l=y,_=!0}continue}break e;default:if(g>127&&S(g)){_&&C(g)&&(l=!0),r++;continue}break e}}return _&&(p=i(s,c,u,l,a,p)),p}function L(e,t,r,n,i){return M(!0,e,t,!1,r,n,i)}function R(e,t,r,n,i){return M(!0,e,t,!0,r,n,i)}function B(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function j(e){var t=w.exec(e);if(t)return t[0]}function J(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&g(e,t)}function z(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||e>127&&function(e,t){return f(e,t>=2?_:1===t?u:s)}(e,t)}e.isShebangTrivia=I,e.scanShebangTrivia=O,e.forEachLeadingCommentRange=function(e,t,r,n){return M(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return M(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=L,e.reduceEachTrailingCommentRange=R,e.getLeadingCommentRanges=function(e,t){return L(e,t,B,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return R(e,t,B,void 0,void 0)},e.getShebang=j,e.isIdentifierStart=J,e.isIdentifierPart=z,e.isIdentifierText=function(e,t,r){var n=U(e,0);if(!J(n,t))return!1;for(var i=V(n);i<e.length;i+=V(n))if(!z(n=U(e,i),t,r))return!1;return!0},e.createScanner=function(t,n,a,o,s,c,u){void 0===a&&(a=0);var l,_,f,g,m,y,v,h,b=o,x=0;ue(b,c,u);var D={getStartPos:function(){return f},getTextPos:function(){return l},getToken:function(){return m},getTokenPos:function(){return g},getTokenText:function(){return b.substring(g,l)},getTokenValue:function(){return y},hasUnicodeEscape:function(){return 0!=(1024&v)},hasExtendedUnicodeEscape:function(){return 0!=(8&v)},hasPrecedingLineBreak:function(){return 0!=(1&v)},hasPrecedingJSDocComment:function(){return 0!=(2&v)},isIdentifier:function(){return 78===m||m>115},isReservedWord:function(){return m>=80&&m<=115},isUnterminated:function(){return 0!=(4&v)},getCommentDirectives:function(){return h},getNumericLiteralFlags:function(){return 1008&v},getTokenFlags:function(){return v},reScanGreaterToken:function(){if(31===m){if(62===b.charCodeAt(l))return 62===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=71):(l+=2,m=49):61===b.charCodeAt(l+1)?(l+=2,m=70):(l++,m=48);if(61===b.charCodeAt(l))return l++,m=33}return m},reScanAsteriskEqualsToken:function(){return e.Debug.assert(65===m,"'reScanAsteriskEqualsToken' should only be called on a '*='"),l=g+1,m=62},reScanSlashToken:function(){if(43===m||67===m){for(var r=g+1,n=!1,i=!1;;){if(r>=_){v|=4,A(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(r);if(C(a)){v|=4,A(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){r++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}r++}for(;r<_&&z(b.charCodeAt(r),t);)r++;l=r,y=b.substring(g,l),m=13}return m},reScanTemplateToken:function(t){return e.Debug.assert(19===m,"'reScanTemplateToken' should only be called on a '}'"),l=g,m=H(t)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return l=g,m=H(!0)},scanJsxIdentifier:function(){if(r(m)){for(var e=!1;l<_;){var t=b.charCodeAt(l);if(45!==t)if(58!==t||e){var n=l;if(y+=$(),l===n)break}else y+=":",l++,e=!0;else y+="-",l++}":"===y.slice(-1)&&(y=y.slice(0,-1),l--)}return m},scanJsxAttributeValue:se,reScanJsxAttributeValue:function(){return l=g=f,se()},reScanJsxToken:function(){return l=g=f,m=oe()},reScanLessThanToken:function(){if(47===m)return l=g+1,m=29;return m},reScanQuestionToken:function(){return e.Debug.assert(60===m,"'reScanQuestionToken' should only be called on a '??'"),l=g+1,m=57},reScanInvalidIdentifier:function(){e.Debug.assert(0===m,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),l=g=f,v=0;var t=U(b,l),r=ie(t,99);if(r)return m=r;return l+=V(t),m},scanJsxToken:oe,scanJsDocToken:function(){if(f=g=l,v=0,l>=_)return m=1;var e=U(b,l);switch(l+=V(e),e){case 9:case 11:case 12:case 32:for(;l<_&&T(b.charCodeAt(l));)l++;return m=5;case 64:return m=59;case 13:10===b.charCodeAt(l)&&l++;case 10:return v|=1,m=4;case 42:return m=41;case 123:return m=18;case 125:return m=19;case 91:return m=22;case 93:return m=23;case 60:return m=29;case 62:return m=31;case 61:return m=62;case 44:return m=27;case 46:return m=24;case 96:return m=61;case 92:l--;var r=Z();if(r>=0&&J(r,t))return l+=3,v|=8,y=Q()+$(),m=ee();var n=Y();return n>=0&&J(n,t)?(l+=6,v|=1024,y=String.fromCharCode(n)+$(),m=ee()):(l++,m=0)}if(J(e,t)){for(var i=e;l<_&&z(i=U(b,l),t)||45===b.charCodeAt(l);)l+=V(i);return y=b.substring(g,l),92===i&&(y+=$()),m=ee()}return m=0},scan:ne,getText:function(){return b},clearCommentDirectives:function(){h=void 0},setText:ue,setScriptTarget:function(e){t=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:le,setInJSDocType:function(e){x+=e?1:-1},tryScan:function(e){return ce(e,!1)},lookAhead:function(e){return ce(e,!0)},scanRange:function(e,t,r){var n=_,i=l,a=f,o=g,s=m,c=y,u=v,d=h;ue(b,e,t);var p=r();return _=n,l=i,f=a,g=o,m=s,y=c,v=u,h=d,p}};return e.Debug.isDebugging&&Object.defineProperty(D,"__debugShowCurrentPositionInText",{get:function(){var e=D.getText();return e.slice(0,D.getStartPos())+"║"+e.slice(D.getStartPos())}}),D;function A(e,t,r){if(void 0===t&&(t=l),s){var n=l;l=t,s(e,r||0),l=n}}function w(){for(var t=l,r=!1,n=!1,i="";;){var a=b.charCodeAt(l);if(95!==a){if(!E(a))break;r=!0,n=!1,l++}else v|=512,r?(r=!1,n=!0,i+=b.substring(t,l)):A(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),t=++l}return 95===b.charCodeAt(l-1)&&A(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),i+b.substring(t,l)}function M(){var t,r,n=l,i=w();46===b.charCodeAt(l)&&(l++,t=w());var a,o=l;if(69===b.charCodeAt(l)||101===b.charCodeAt(l)){l++,v|=16,43!==b.charCodeAt(l)&&45!==b.charCodeAt(l)||l++;var s=l,c=w();c?(r=b.substring(o,s)+c,o=l):A(e.Diagnostics.Digit_expected)}if(512&v?(a=i,t&&(a+="."+t),r&&(a+=r)):a=b.substring(n,o),void 0!==t||16&v)return L(n,void 0===t&&!!(16&v)),{type:8,value:""+ +a};y=a;var u=re();return L(n),{type:u,value:y}}function L(r,n){if(J(U(b,l),t)){var i=l,a=$().length;1===a&&"n"===b[i]?A(n?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1):(A(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),l=i)}}function R(){for(var e=l;N(b.charCodeAt(l));)l++;return+b.substring(e,l)}function B(e,t){var r=K(e,!1,t);return r?parseInt(r,16):-1}function j(e,t){return K(e,!0,t)}function K(t,r,n){for(var i=[],a=!1,o=!1;i.length<t||r;){var s=b.charCodeAt(l);if(n&&95===s)v|=512,a?(a=!1,o=!0):A(o?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++;else{if(a=n,s>=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),l++,o=!1}}return i.length<t&&(i=[]),95===b.charCodeAt(l-1)&&A(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),String.fromCharCode.apply(String,i)}function W(t){void 0===t&&(t=!1);for(var r=b.charCodeAt(l),n="",i=++l;;){if(l>=_){n+=b.substring(i,l),v|=4,A(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(l);if(a===r){n+=b.substring(i,l),l++;break}if(92!==a||t){if(C(a)&&!t){n+=b.substring(i,l),v|=4,A(e.Diagnostics.Unterminated_string_literal);break}l++}else n+=b.substring(i,l),n+=G(),i=l}return n}function H(t){for(var r,n=96===b.charCodeAt(l),i=++l,a="";;){if(l>=_){a+=b.substring(i,l),v|=4,A(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=b.charCodeAt(l);if(96===o){a+=b.substring(i,l),l++,r=n?14:17;break}if(36===o&&l+1<_&&123===b.charCodeAt(l+1)){a+=b.substring(i,l),l+=2,r=n?15:16;break}92!==o?13!==o?l++:(a+=b.substring(i,l),++l<_&&10===b.charCodeAt(l)&&l++,a+="\n",i=l):(a+=b.substring(i,l),a+=G(t),i=l)}return e.Debug.assert(void 0!==r),y=a,r}function G(t){var r=l;if(++l>=_)return A(e.Diagnostics.Unexpected_end_of_text),"";var n=b.charCodeAt(l);switch(l++,n){case 48:return t&&l<_&&E(b.charCodeAt(l))?(l++,v|=2048,b.substring(r,l)):"\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(t)for(var i=l;i<l+4;i++)if(i<_&&!k(b.charCodeAt(i))&&123!==b.charCodeAt(i))return l=i,v|=2048,b.substring(r,l);if(l<_&&123===b.charCodeAt(l)){if(l++,t&&!k(b.charCodeAt(l)))return v|=2048,b.substring(r,l);if(t){var a=l,o=j(1,!1),s=o?parseInt(o,16):-1;if(!(s<=1114111&&125===b.charCodeAt(l)))return v|=2048,b.substring(r,l);l=a}return v|=8,Q()}return v|=1024,X(4);case 120:if(t){if(!k(b.charCodeAt(l)))return v|=2048,b.substring(r,l);if(!k(b.charCodeAt(l+1)))return l++,v|=2048,b.substring(r,l)}return X(2);case 13:l<_&&10===b.charCodeAt(l)&&l++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function X(t){var r=B(t,!1);return r>=0?String.fromCharCode(r):(A(e.Diagnostics.Hexadecimal_digit_expected),"")}function Q(){var t=j(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(A(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(A(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),l>=_?(A(e.Diagnostics.Unexpected_end_of_text),n=!0):125===b.charCodeAt(l)?l++:(A(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":q(r)}function Y(){if(l+5<_&&117===b.charCodeAt(l+1)){var e=l;l+=2;var t=B(4,!1);return l=e,t}return-1}function Z(){if(t>=2&&117===U(b,l+1)&&123===U(b,l+2)){var e=l;l+=3;var r=j(1,!1),n=r?parseInt(r,16):-1;return l=e,n}return-1}function $(){for(var e="",r=l;l<_;){var n=U(b,l);if(z(n,t))l+=V(n);else{if(92!==n)break;if((n=Z())>=0&&z(n,t)){l+=3,v|=8,e+=Q(),r=l;continue}if(!((n=Y())>=0&&z(n,t)))break;v|=1024,e+=b.substring(r,l),e+=q(n),r=l+=6}}return e+=b.substring(r,l)}function ee(){var e=y.length;if(e>=2&&e<=12){var t=y.charCodeAt(0);if(t>=97&&t<=122){var r=i.get(y);if(void 0!==r)return m=r}}return m=78}function te(t){for(var r="",n=!1,i=!1;;){var a=b.charCodeAt(l);if(95!==a){if(n=!0,!E(a)||a-48>=t)break;r+=b[l],l++,i=!1}else v|=512,n?(n=!1,i=!0):A(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 95===b.charCodeAt(l-1)&&A(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),r}function re(){if(110===b.charCodeAt(l))return y+="n",384&v&&(y=e.parsePseudoBigInt(y)+"n"),l++,9;var t=128&v?parseInt(y.slice(2),2):256&v?parseInt(y.slice(2),8):+y;return y=""+t,8}function ne(){var r;f=l,v=0;for(var i=!1;;){if(g=l,l>=_)return m=1;var o=U(b,l);if(35===o&&0===l&&I(b,l)){if(l=O(b,l),n)continue;return m=6}switch(o){case 10:case 13:if(v|=1,n){l++;continue}return 13===o&&l+1<_&&10===b.charCodeAt(l+1)?l+=2:l++,m=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(n){l++;continue}for(;l<_&&T(b.charCodeAt(l));)l++;return m=5;case 33:return 61===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=37):(l+=2,m=35):(l++,m=53);case 34:case 39:return y=W(),m=10;case 96:return m=H(!1);case 37:return 61===b.charCodeAt(l+1)?(l+=2,m=68):(l++,m=44);case 38:return 38===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=75):(l+=2,m=55):61===b.charCodeAt(l+1)?(l+=2,m=72):(l++,m=50);case 40:return l++,m=20;case 41:return l++,m=21;case 42:if(61===b.charCodeAt(l+1))return l+=2,m=65;if(42===b.charCodeAt(l+1))return 61===b.charCodeAt(l+2)?(l+=3,m=66):(l+=2,m=42);if(l++,x&&!i&&1&v){i=!0;continue}return m=41;case 43:return 43===b.charCodeAt(l+1)?(l+=2,m=45):61===b.charCodeAt(l+1)?(l+=2,m=63):(l++,m=39);case 44:return l++,m=27;case 45:return 45===b.charCodeAt(l+1)?(l+=2,m=46):61===b.charCodeAt(l+1)?(l+=2,m=64):(l++,m=40);case 46:return E(b.charCodeAt(l+1))?(y=M().value,m=8):46===b.charCodeAt(l+1)&&46===b.charCodeAt(l+2)?(l+=3,m=25):(l++,m=24);case 47:if(47===b.charCodeAt(l+1)){for(l+=2;l<_&&!C(b.charCodeAt(l));)l++;if(h=ae(h,b.slice(g,l),d,g),n)continue;return m=2}if(42===b.charCodeAt(l+1)){l+=2,42===b.charCodeAt(l)&&47!==b.charCodeAt(l+1)&&(v|=2);for(var s=!1,c=g;l<_;){var u=b.charCodeAt(l);if(42===u&&47===b.charCodeAt(l+1)){l+=2,s=!0;break}l++,C(u)&&(c=l,v|=1)}if(h=ae(h,b.slice(c,l),p,c),s||A(e.Diagnostics.Asterisk_Slash_expected),n)continue;return s||(v|=4),m=3}return 61===b.charCodeAt(l+1)?(l+=2,m=67):(l++,m=43);case 48:if(l+2<_&&(88===b.charCodeAt(l+1)||120===b.charCodeAt(l+1)))return l+=2,(y=j(1,!0))||(A(e.Diagnostics.Hexadecimal_digit_expected),y="0"),y="0x"+y,v|=64,m=re();if(l+2<_&&(66===b.charCodeAt(l+1)||98===b.charCodeAt(l+1)))return l+=2,(y=te(2))||(A(e.Diagnostics.Binary_digit_expected),y="0"),y="0b"+y,v|=128,m=re();if(l+2<_&&(79===b.charCodeAt(l+1)||111===b.charCodeAt(l+1)))return l+=2,(y=te(8))||(A(e.Diagnostics.Octal_digit_expected),y="0"),y="0o"+y,v|=256,m=re();if(l+1<_&&N(b.charCodeAt(l+1)))return y=""+R(),v|=32,m=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r=M(),m=r.type,y=r.value,m;case 58:return l++,m=58;case 59:return l++,m=26;case 60:if(F(b,l)){if(l=P(b,l,A),n)continue;return m=7}return 60===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=69):(l+=2,m=47):61===b.charCodeAt(l+1)?(l+=2,m=32):1===a&&47===b.charCodeAt(l+1)&&42!==b.charCodeAt(l+2)?(l+=2,m=30):(l++,m=29);case 61:if(F(b,l)){if(l=P(b,l,A),n)continue;return m=7}return 61===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=36):(l+=2,m=34):62===b.charCodeAt(l+1)?(l+=2,m=38):(l++,m=62);case 62:if(F(b,l)){if(l=P(b,l,A),n)continue;return m=7}return l++,m=31;case 63:return 46!==b.charCodeAt(l+1)||E(b.charCodeAt(l+2))?63===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=76):(l+=2,m=60):(l++,m=57):(l+=2,m=28);case 91:return l++,m=22;case 93:return l++,m=23;case 94:return 61===b.charCodeAt(l+1)?(l+=2,m=77):(l++,m=52);case 123:return l++,m=18;case 124:if(F(b,l)){if(l=P(b,l,A),n)continue;return m=7}return 124===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=74):(l+=2,m=56):61===b.charCodeAt(l+1)?(l+=2,m=73):(l++,m=51);case 125:return l++,m=19;case 126:return l++,m=54;case 64:return l++,m=59;case 92:var D=Z();if(D>=0&&J(D,t))return l+=3,v|=8,y=Q()+$(),m=ee();var S=Y();return S>=0&&J(S,t)?(l+=6,v|=1024,y=String.fromCharCode(S)+$(),m=ee()):(A(e.Diagnostics.Invalid_character),l++,m=0);case 35:if(0!==l&&"!"===b[l+1])return A(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),l++,m=0;if(l++,J(o=b.charCodeAt(l),t)){for(l++;l<_&&z(o=b.charCodeAt(l),t);)l++;y=b.substring(g,l),92===o&&(y+=$())}else y="#",A(e.Diagnostics.Invalid_character);return m=79;default:var k=ie(o,t);if(k)return m=k;if(T(o)){l+=V(o);continue}if(C(o)){v|=1,l+=V(o);continue}return A(e.Diagnostics.Invalid_character),l+=V(o),m=0}}}function ie(e,t){var r=e;if(J(r,t)){for(l+=V(r);l<_&&z(r=U(b,l),t);)l+=V(r);return y=b.substring(g,l),92===r&&(y+=$()),ee()}}function ae(t,r,n,i){var a=function(e,t){var r=t.exec(e);if(!r)return;switch(r[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}(r,n);return void 0===a?t:e.append(t,{range:{pos:i,end:l},type:a})}function oe(){if(f=g=l,l>=_)return m=1;var t=b.charCodeAt(l);if(60===t)return 47===b.charCodeAt(l+1)?(l+=2,m=30):(l++,m=29);if(123===t)return l++,m=18;for(var r=0,n=-1;l<_&&(T(t)||(n=l),123!==(t=b.charCodeAt(l)));){if(60===t){if(F(b,l))return l=P(b,l,A),m=7;break}62===t&&A(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,l,1),125===t&&A(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,l,1),n>0&&n++,C(t)&&0===r?r=-1:S(t)||(r=l),l++}var i=-1===n?l:n;return y=b.substring(f,i),-1===r?12:11}function se(){switch(f=l,b.charCodeAt(l)){case 34:case 39:return y=W(!0),m=10;default:return ne()}}function ce(e,t){var r=l,n=f,i=g,a=m,o=y,s=v,c=e();return c&&!t||(l=r,f=n,g=i,m=a,y=o,v=s),c}function ue(e,t,r){b=e||"",_=void 0===r?b.length:t+r,le(t||0)}function le(t){e.Debug.assert(t>=0),l=t,f=t,g=t,m=0,y=void 0,v=0}};var U=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t);if(n>=55296&&n<=56319&&r>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343)return 1024*(n-55296)+i-56320+65536}return n}};function V(e){return e>=65536?2:1}var K=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)};function q(e){return K(e)}e.utf16EncodeAsString=q}(ts||(ts={})),function(e){function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function u(t){return!!Q(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function _(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function d(t,r){e.isBindingElement(t)&&(t=_(t));var n=r(t);return 249===t.kind&&(t=t.parent),t&&250===t.kind&&(n|=r(t),t=t.parent),t&&232===t.kind&&(n|=r(t)),n}function p(e){return 0==(8&e.flags)}function f(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function g(e){return f(e.escapedText)}function m(t){var r=t.parent.parent;if(r){if(ae(r))return y(r);switch(r.kind){case 232:if(r.declarationList&&r.declarationList.declarations[0])return y(r.declarationList.declarations[0]);break;case 233:var n=r.expression;switch(216===n.kind&&62===n.operatorToken.kind&&(n=n.left),n.kind){case 201:return n.name;case 202:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 207:return y(r.expression);case 245:if(ae(r.statement)||te(r.statement))return y(r.statement)}}}function y(t){var r=x(t);return r&&e.isIdentifier(r)?r:void 0}function v(e){return e.name||m(e)}function h(e){return!!e.name}function b(t){switch(t.kind){case 78:return t;case 333:case 326:var r=t.name;if(157===r.kind)return r.right;break;case 203:case 216:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}case 331:return v(t);case 325:return m(t);case 266:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 202:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function x(t){if(void 0!==t)return b(t)||(e.isFunctionExpression(t)||e.isClassExpression(t)?D(t):void 0)}function D(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return A(t.parent,r).filter((function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n}))}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=A(t.parent,r).filter(e.isJSDocParameterTag);if(i<a.length)return[a[i]]}return e.emptyArray}function T(e){return S(e,!1)}function C(t,r){var n=t.name.escapedText;return A(t.parent,r).filter((function(t){return e.isJSDocTemplateTag(t)&&t.typeParameters.some((function(e){return e.name.escapedText===n}))}))}function E(t){return P(t,e.isJSDocReturnTag)}function k(t){var r=P(t,e.isJSDocTypeTag);if(r&&r.typeExpression&&r.typeExpression.type)return r}function N(t){var r=P(t,e.isJSDocTypeTag);return!r&&e.isParameter(t)&&(r=e.find(T(t),(function(e){return!!e.typeExpression}))),r&&r.typeExpression&&r.typeExpression.type}function A(t,r){var n=t.jsDocCache;if(void 0===n||r){var i=e.getJSDocCommentsAndTags(t,r);e.Debug.assert(i.length<2||i[0]!==i[1]),n=e.flatMap(i,(function(t){return e.isJSDoc(t)?t.tags:t})),r||(t.jsDocCache=n)}return n}function F(e){return A(e,!1)}function P(t,r,n){return e.find(A(t,n),r)}function w(e,t){return F(e).filter(t)}function I(e){var t=e.kind;return!!(32&e.flags)&&(201===t||202===t||203===t||225===t)}function O(t){return I(t)&&!e.isNonNullExpression(t)&&!!t.questionDotToken}function M(t){return e.skipOuterExpressions(t,8)}function L(e){switch(e.kind){case 294:case 295:return!0;default:return!1}}function R(e){return e>=157}function B(e){return 8<=e&&e<=14}function j(e){return 14<=e&&e<=17}function J(t){return e.isPropertyDeclaration(t)&&e.isPrivateIdentifier(t.name)}function z(e){switch(e){case 125:case 129:case 84:case 133:case 87:case 92:case 122:case 120:case 121:case 142:case 123:return!0}return!1}function U(t){return!!(92&e.modifierToFlag(t))}function V(e){return e&&q(e.kind)}function K(e){switch(e){case 251:case 165:case 166:case 167:case 168:case 208:case 209:return!0;default:return!1}}function q(e){switch(e){case 164:case 169:case 313:case 170:case 171:case 174:case 308:case 175:return!0;default:return K(e)}}function W(e){var t=e.kind;return 166===t||163===t||165===t||167===t||168===t||171===t||229===t}function H(e){return e&&(252===e.kind||221===e.kind)}function G(e){var t=e.kind;return 170===t||169===t||162===t||164===t||171===t}function X(e){var t=e.kind;return 288===t||289===t||290===t||165===t||167===t||168===t}function Q(e){if(e){var t=e.kind;return 197===t||196===t}return!1}function Y(e){switch(e.kind){case 196:case 200:return!0}return!1}function Z(e){switch(e.kind){case 197:case 199:return!0}return!1}function $(e){switch(e){case 201:case 202:case 204:case 203:case 273:case 274:case 277:case 205:case 199:case 207:case 200:case 221:case 208:case 78:case 13:case 8:case 9:case 10:case 14:case 218:case 94:case 103:case 107:case 109:case 105:case 225:case 226:case 99:return!0;default:return!1}}function ee(e){switch(e){case 214:case 215:case 210:case 211:case 212:case 213:case 206:return!0;default:return $(e)}}function te(e){return function(e){switch(e){case 217:case 219:case 209:case 216:case 220:case 224:case 222:case 337:case 336:return!0;default:return ee(e)}}(M(e).kind)}function re(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ne(e){return 251===e||271===e||252===e||253===e||254===e||255===e||256===e||261===e||260===e||267===e||266===e||259===e}function ie(e){return 241===e||240===e||248===e||235===e||233===e||231===e||238===e||239===e||237===e||234===e||245===e||242===e||244===e||246===e||247===e||232===e||236===e||243===e||335===e||339===e||338===e}function ae(t){return 159===t.kind?t.parent&&330!==t.parent.kind||e.isInJSFile(t):209===(r=t.kind)||198===r||252===r||221===r||166===r||255===r||291===r||270===r||251===r||208===r||167===r||262===r||260===r||265===r||253===r||280===r||165===r||164===r||256===r||259===r||263===r||269===r||160===r||288===r||163===r||162===r||168===r||289===r||254===r||159===r||249===r||331===r||324===r||333===r;var r}function oe(e){return e.kind>=314&&e.kind<=333}e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)},e.getDefaultLibFileName=function(e){switch(e.target){case 99:return"lib.esnext.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=function(e,r){return r>=e.start&&r<t(e)},e.textRangeContainsPositionInclusive=function(e,t){return t>=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,r){return r.start>=e.start&&t(r)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==n(e,t)},e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,r){return i(e.start,e.length,t,r)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,r){return r<=t(e)&&r>=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 r(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(r){if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,u=1;u<r.length;u++){var l=r[u],_=i,d=a,p=o,f=l.span.start,g=t(l.span),m=f+l.newLength;i=Math.min(_,f),a=Math.max(d,d+(g-p)),o=Math.max(m,m+(p-g))}return c(s(i,a),o-i)},e.getTypeParameterOwner=function(e){if(e&&159===e.kind)for(var t=e;t;t=t.parent)if(V(t)||H(t)||253===t.kind)return t},e.isParameterPropertyDeclaration=function(t,r){return e.hasSyntacticModifier(t,92)&&166===r.kind},e.isEmptyBindingPattern=u,e.isEmptyBindingElement=l,e.walkUpBindingElementsAndPatterns=_,e.getCombinedModifierFlags=function(t){return d(t,e.getEffectiveModifierFlags)},e.getCombinedNodeFlagsAlwaysIncludeJSDoc=function(t){return d(t,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)},e.getCombinedNodeFlags=function(e){return d(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(t,r,n){var i=t.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,n)&&c(o,void 0,n),e.setUILocale(t)}else n&&n.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(t,n,i){var a=e.normalizePath(r.getExecutingFilePath()),o=e.getDirectoryPath(a),s=e.combinePaths(o,t);if(n&&(s=s+"-"+n),s=r.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!r.fileExists(s))return!1;var c="";try{c=r.readFile(s)}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(c))}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=function(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0},e.findAncestor=function(e,t){for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}},e.isParseTreeNode=p,e.getParseTreeNode=function(e,t){if(void 0===e||p(e))return e;for(e=e.original;e;){if(p(e))return!t||t(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=f,e.idText=g,e.symbolName=function(e){return e.valueDeclaration&&J(e.valueDeclaration)?g(e.valueDeclaration.name):f(e.escapedName)},e.nodeHasName=function t(r,n){return!(!h(r)||!e.isIdentifier(r.name)||g(r.name)!==g(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,(function(e){return t(e,n)})))},e.getNameOfJSDocTypedef=v,e.isNamedDeclaration=h,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=x,e.getAssignedName=D,e.getJSDocParameterTags=T,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return C(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return C(e,!0)},e.hasJSDocParameterTags=function(t){return!!P(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return P(t,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(t){return w(t,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(t){return P(t,e.isJSDocClassTag)},e.getJSDocPublicTag=function(t){return P(t,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(t){return P(t,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(t){return P(t,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(t){return P(t,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(t){return P(t,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(t){return P(t,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(t){return P(t,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(t){return P(t,e.isJSDocReadonlyTag,!0)},e.getJSDocDeprecatedTag=function(t){return P(t,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(t){return P(t,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(t){return P(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return P(t,e.isJSDocThisTag)},e.getJSDocReturnTag=E,e.getJSDocTemplateTag=function(t){return P(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=k,e.getJSDocType=N,e.getJSDocReturnType=function(t){var r=E(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=k(t);if(n&&n.typeExpression){var i=n.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=F,e.getJSDocTagsNoCache=function(e){return A(e,!0)},e.getAllJSDocTags=w,e.getAllJSDocTagsOfKind=function(e,t){return F(e).filter((function(e){return e.kind===t}))},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(311===t.parent.kind),e.flatMap(t.parent.tags,(function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0}));if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=N(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0},e.isIdentifierOrPrivateIdentifier=function(e){return 78===e.kind||79===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 168===e.kind||167===e.kind},e.isPropertyAccessChain=function(t){return e.isPropertyAccessExpression(t)&&!!(32&t.flags)},e.isElementAccessChain=function(t){return e.isElementAccessExpression(t)&&!!(32&t.flags)},e.isCallChain=function(t){return e.isCallExpression(t)&&!!(32&t.flags)},e.isOptionalChain=I,e.isOptionalChainRoot=O,e.isExpressionOfOptionalChainRoot=function(e){return O(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!I(e.parent)||O(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 216===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments},e.skipPartiallyEmittedExpressions=M,e.isNonNullChain=function(t){return e.isNonNullExpression(t)&&!!(32&t.flags)},e.isBreakOrContinueStatement=function(e){return 241===e.kind||240===e.kind},e.isNamedExportBindings=function(e){return 269===e.kind||268===e.kind},e.isUnparsedTextLike=L,e.isUnparsedNode=function(e){return L(e)||292===e.kind||296===e.kind},e.isJSDocPropertyLikeTag=function(e){return 333===e.kind||326===e.kind},e.isNode=function(e){return R(e.kind)},e.isNodeKind=R,e.isToken=function(e){return e.kind>=0&&e.kind<=156},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=B,e.isLiteralExpression=function(e){return B(e.kind)},e.isTemplateLiteralKind=j,e.isTemplateLiteralToken=function(e){return j(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 265:case 270:return e.parent.parent.isTypeOnly;case 263:return e.parent.isTypeOnly;case 262:case 260:return e.isTypeOnly;default:return!1}},e.isStringTextContainingNode=function(e){return 10===e.kind||j(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isPrivateIdentifierPropertyDeclaration=J,e.isPrivateIdentifierPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)},e.isModifierKind=z,e.isParameterPropertyModifier=U,e.isClassMemberModifier=function(e){return U(e)||123===e},e.isModifier=function(e){return z(e.kind)},e.isEntityName=function(e){var t=e.kind;return 157===t||78===t},e.isPropertyName=function(e){var t=e.kind;return 78===t||79===t||10===t||8===t||158===t},e.isBindingName=function(e){var t=e.kind;return 78===t||196===t||197===t},e.isFunctionLike=V,e.isFunctionLikeDeclaration=function(e){return e&&K(e.kind)},e.isFunctionLikeKind=q,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&V(t.parent)},e.isClassElement=W,e.isClassLike=H,e.isAccessor=function(e){return e&&(167===e.kind||168===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 165:case 167:case 168:return!0;default:return!1}},e.isTypeElement=G,e.isClassOrTypeElement=function(e){return G(e)||W(e)},e.isObjectLiteralElementLike=X,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 174:case 175:return!0}return!1},e.isBindingPattern=Q,e.isAssignmentPattern=function(e){var t=e.kind;return 199===t||200===t},e.isArrayBindingElement=function(e){var t=e.kind;return 198===t||222===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 249:case 160:case 198:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return Y(e)||Z(e)},e.isObjectBindingOrAssignmentPattern=Y,e.isArrayBindingOrAssignmentPattern=Z,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 201===t||157===t||195===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 201===t||157===t},e.isCallLikeExpression=function(e){switch(e.kind){case 275:case 274:case 203:case 204:case 205:case 161:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 203===e.kind||204===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 218===t||14===t},e.isLeftHandSideExpression=function(e){return $(M(e).kind)},e.isUnaryExpression=function(e){return ee(M(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 215:return!0;case 214:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=te,e.isAssertionExpression=function(e){var t=e.kind;return 206===t||224===t},e.isNotEmittedOrPartiallyEmittedNode=function(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)},e.isIterationStatement=function e(t,r){switch(t.kind){case 237:case 238:case 239:case 235:case 236:return!0;case 245:return r&&e(t.statement,r)}return!1},e.isScopeMarker=re,e.hasScopeMarker=function(t){return e.some(t,re)},e.needsScopeMarker=function(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t))},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)},e.isForInOrOfStatement=function(e){return 238===e.kind||239===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||te(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||te(t)},e.isModuleBody=function(e){var t=e.kind;return 257===t||256===t||78===t},e.isNamespaceBody=function(e){var t=e.kind;return 257===t||256===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 78===t||256===t},e.isNamedImportBindings=function(e){var t=e.kind;return 264===t||263===t},e.isModuleOrEnumDeclaration=function(e){return 256===e.kind||255===e.kind},e.isDeclaration=ae,e.isDeclarationStatement=function(e){return ne(e.kind)},e.isStatementButNotDeclaration=function(e){return ie(e.kind)},e.isStatement=function(t){var r=t.kind;return ie(r)||ne(r)||function(t){if(230!==t.kind)return!1;if(void 0!==t.parent&&(247===t.parent.kind||287===t.parent.kind))return!1;return!e.isFunctionBlock(t)}(t)},e.isStatementOrBlock=function(e){var t=e.kind;return ie(t)||ne(t)||230===t},e.isModuleReference=function(e){var t=e.kind;return 272===t||157===t||78===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 107===t||78===t||201===t},e.isJsxChild=function(e){var t=e.kind;return 273===t||283===t||274===t||11===t||277===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 280===t||282===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||283===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 275===t||274===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 284===t||285===t},e.isJSDocNode=function(e){return e.kind>=301&&e.kind<=333},e.isJSDocCommentContainingNode=function(t){return 311===t.kind||310===t.kind||oe(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=oe,e.isSetAccessor=function(e){return 168===e.kind},e.isGetAccessor=function(e){return 167===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 249:case 160:case 198:case 162:case 163:case 288:case 291:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 280===e.kind||282===e.kind||X(e)},e.isTypeReferenceType=function(e){return 173===e.kind||223===e.kind};var se=1073741823;e.guessIndentation=function(t){for(var r=se,n=0,i=t;n<i.length;n++){var a=i[n];if(a.length){for(var o=0;o<a.length&&o<r&&e.isWhiteSpaceLike(a.charCodeAt(o));o++);if(o<r&&(r=o),0===r)return 0}}return r===se?void 0:r},e.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind}}(ts||(ts={})),function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6,e.getDeclarationOfKind=function(e,t){var r=e.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(a.kind===t)return a}},e.createUnderscoreEscapedMap=function(){return new e.Map},e.hasEntries=function(e){return!!e&&!!e.size},e.createSymbolTable=function(t){var r=new e.Map;if(t)for(var n=0,i=t;n<i.length;n++){var a=i[n];r.set(a.escapedName,a)}return r},e.isTransientSymbol=function(e){return 0!=(33554432&e.flags)};var t,r,n=(t="",{getText:function(){return t},write:r=function(e){return t+=e},rawWrite:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:function(e,t){return r(e)},writeTrailingSemicolon:r,writeComment:r,getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1))},writeLine:function(){return t+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return t=""},trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function i(t,r){return e.moduleResolutionOptionDeclarations.some((function(e){return!ei(yn(t,e),yn(r,e))}))}function a(e){return e.end-e.pos}function o(t){return function(t){if(!(524288&t.flags)){(0!=(65536&t.flags)||e.forEachChild(t,o))&&(t.flags|=262144),t.flags|=524288}}(t),0!=(262144&t.flags)}function s(e){for(;e&&297!==e.kind;)e=e.parent;return e}function c(t,r){e.Debug.assert(t>=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function u(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function l(e){return!u(e)}function _(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice.apply(e,__spreadArray([n,0],t)),e}function d(e,t,r){if(void 0===t)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice(n,0,t),e}function p(e){return V(e)||!!(1048576&b(e))}function f(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function g(t,r,n){return u(t)?t.pos:e.isJSDocNode(t)||11===t.kind?e.skipTrivia((r||s(t)).text,t.pos,!1,!0):n&&e.hasJSDocNodes(t)?g(t.jsDoc[0],r):334===t.kind&&t._children.length>0?g(t._children[0],r,n):e.skipTrivia((r||s(t)).text,t.pos)}function m(e,t,r){return void 0===r&&(r=!1),y(e.text,t,r)}function y(t,r,n){if(void 0===n&&(n=!1),u(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function(t){return!!e.findAncestor(t,e.isJSDocTypeExpression)}(r)&&(i=i.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),i}function v(e,t){return void 0===t&&(t=!1),m(s(e),e,t)}function h(e){return e.pos}function b(e){var t=e.emitNode;return t&&t.flags||0}function x(e){var t=ht(e);return 249===t.kind&&287===t.parent.kind}function D(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||T(t))}function S(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function T(e){return!!(1024&e.flags)}function C(e){return D(e)&&E(e)}function E(t){switch(t.parent.kind){case 297:return e.isExternalModule(t.parent);case 257:return D(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function k(t,r){switch(t.kind){case 297:case 258:case 287:case 256:case 237:case 238:case 239:case 166:case 165:case 167:case 168:case 251:case 208:case 209:return!0;case 230:return!e.isFunctionLike(r)}return!1}function N(t){switch(t.kind){case 169:case 170:case 164:case 171:case 174:case 175:case 308:case 252:case 221:case 253:case 254:case 330:case 251:case 165:case 166:case 167:case 168:case 208:case 209:return!0;default:return e.assertType(t),!1}}function A(e){switch(e.kind){case 261:case 260:return!0;default:return!1}}function F(t){return A(t)||e.isExportDeclaration(t)}function P(e){return e&&0!==a(e)?v(e):"(Missing)"}function w(t){switch(t.kind){case 78:case 79:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 158:return ut(t.expression)?e.escapeLeadingUnderscores(t.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(t)}}function I(t){switch(t.kind){case 107:return"this";case 79:case 78:return 0===a(t)?e.idText(t):v(t);case 157:return I(t.left)+"."+I(t.right);case 201:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?I(t.expression)+"."+I(t.name):e.Debug.assertNever(t.name);default:return e.Debug.assertNever(t)}}function O(e,t,r,n,i,a,o){var s=B(e,t);return on(e,s.start,s.length,r,n,i,a,o)}function M(t,r,n){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length))}function L(e,t,r,n,i){return M(e,t,r),{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function R(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function B(t,r){var n=r;switch(r.kind){case 297:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):R(t,i);case 249:case 198:case 252:case 221:case 253:case 256:case 255:case 291:case 251:case 208:case 165:case 167:case 168:case 254:case 163:case 162:n=r.name;break;case 209:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&230===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i<e.getLineAndCharacterOfPosition(t,r.body.end).line)return e.createTextSpan(n,c(i,t)-n+1)}return e.createTextSpanFromBounds(n,r.end)}(t,r);case 284:case 285:var a=e.skipTrivia(t.text,r.pos),o=r.statements.length>0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return R(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=u(n),l=s||e.isJsxText(r)?n.pos:e.skipTrivia(t.text,n.pos);return s?(e.Debug.assert(l===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(l===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(l>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(l<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(l,n.end)}function j(e){return 6===e.scriptKind}function J(t){return!!(2&e.getCombinedNodeFlags(t))}function z(e){return 203===e.kind&&99===e.expression.kind}function U(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function V(e){return 233===e.kind&&10===e.expression.kind}function K(e){return!!(1048576&b(e))}function q(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||i(e,t)},e.optionsHaveModuleResolutionChanges=i,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=function(e,t){e.forEach((function(e,r){t.set(r,e)}))},e.usingSingleLineStringWriter=function(e){var t=n.getText();try{return e(n),n.getText()}finally{n.clear(),n.writeKeyword(t)}},e.getFullWidth=a,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,r,n){t.resolvedModules||(t.resolvedModules=new e.Map),t.resolvedModules.set(r,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=new e.Map),t.resolvedTypeReferenceDirectiveNames.set(r,n)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(r=e.packageId,n=t.packageId,r===n||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToString=function(e){var t=e.name,r=e.subModuleName;return(r?t+"/"+r:t)+"@"+e.version},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},e.hasChangesInResolutions=function(t,r,n,i){e.Debug.assert(t.length===r.length);for(var a=0;a<t.length;a++){var o=r[a],s=n&&n.get(t[a]);if(s?!o||!i(s,o):o)return!0}return!1},e.containsParseError=o,e.getSourceFileOfNode=s,e.isStatementWithLocals=function(e){switch(e.kind){case 230:case 258:case 237:case 238:case 239:return!0}return!1},e.getStartPositionOfLine=function(t,r){return e.Debug.assert(t>=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=s(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=c,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=u,e.nodeIsPresent=l,e.insertStatementsAfterStandardPrologue=function(e,t){return _(e,t,V)},e.insertStatementsAfterCustomPrologue=function(e,t){return _(e,t,p)},e.insertStatementAfterStandardPrologue=function(e,t){return d(e,t,V)},e.insertStatementAfterCustomPrologue=function(e,t){return d(e,t,p)},e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2<n&&47===t.charCodeAt(r+2)){var i=t.substring(r,n);return!!(i.match(e.fullTripleSlashReferencePathRegEx)||i.match(e.fullTripleSlashAMDReferencePathRegEx)||i.match(W)||i.match(H))}return!1},e.isPinnedComment=f,e.createCommentDirectivesMap=function(t,r){var n=new e.Map(r.map((function(r){return[""+e.getLineAndCharacterOfPosition(t,r.range.end).line,r]}))),i=new e.Map;return{getUnusedExpectations:function(){return e.arrayFrom(n.entries()).filter((function(e){var t=e[0];return 0===e[1].type&&!i.get(t)})).map((function(e){e[0];return e[1]}))},markUsed:function(e){if(!n.has(""+e))return!1;return i.set(""+e,!0),!0}}},e.getTokenPosOfNode=g,e.getNonDecoratorTokenPosOfNode=function(t,r){return u(t)||!t.decorators?g(t,r):e.skipTrivia((r||s(t)).text,t.decorators.end)},e.getSourceTextOfNodeFromSourceFile=m,e.isExportNamespaceAsDefaultDeclaration=function(t){return!!(e.isExportDeclaration(t)&&t.exportClause&&e.isNamespaceExport(t.exportClause)&&"default"===t.exportClause.name.escapedText)},e.getTextOfNodeFromSourceText=y,e.getTextOfNode=v,e.indexOfNode=function(t,r){return e.binarySearch(t,r,h,e.compareValues)},e.getEmitFlags=b,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"]},esnext:{PromiseConstructor:["any"],String:["replaceAll"],NumberFormat:["formatToParts"]}}},function(e){e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator"}(e.GetLiteralTextFlags||(e.GetLiteralTextFlags={})),e.getLiteralText=function(t,r,n){if(function(t,r){if(bt(t)||!t.parent||4&r&&t.isUnterminated)return!1;if(e.isNumericLiteral(t)&&512&t.numericLiteralFlags)return!!(8&r);return!e.isBigIntLiteral(t)}(t,n))return m(r,t);switch(t.kind){case 10:var i=2&n?jt:1&n||16777216&b(t)?wt:Ot;return t.singleQuote?"'"+i(t.text,39)+"'":'"'+i(t.text,34)+'"';case 14:case 15:case 16:case 17:i=1&n||16777216&b(t)?wt:Ot;var a=t.rawText||function(e){return e.replace(Ct,"\\${")}(i(t.text,96));switch(t.kind){case 14:return"`"+a+"`";case 15:return"`"+a+"${";case 16:return"}"+a+"${";case 17:return"}"+a+"`"}break;case 8:case 9:return t.text;case 13:return 4&n&&t.isUnterminated?t.text+(92===t.text.charCodeAt(t.text.length-1)?" /":"/"):t.text}return e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")},e.getTextOfConstantValue=function(t){return e.isString(t)?'"'+Ot(t)+'"':""+t},e.makeIdentifierFromModuleName=function(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},e.isBlockOrCatchScoped=function(t){return 0!=(3&e.getCombinedNodeFlags(t))||x(t)},e.isCatchClauseVariableDeclarationOrBindingElement=x,e.isAmbientModule=D,e.isModuleWithStringLiteralName=function(t){return e.isModuleDeclaration(t)&&10===t.name.kind},e.isNonGlobalAmbientModule=function(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)},e.isEffectiveModuleDeclaration=S,e.isShorthandAmbientModuleSymbol=function(e){return(t=e.valueDeclaration)&&256===t.kind&&!t.body;var t},e.isBlockScopedContainerTopLevel=function(t){return 297===t.kind||256===t.kind||e.isFunctionLike(t)},e.isGlobalScopeAugmentation=T,e.isExternalModuleAugmentation=C,e.isModuleAugmentationExternal=E,e.getNonAugmentationDeclaration=function(t){return e.find(t.declarations,(function(t){return!(C(t)||e.isModuleDeclaration(t)&&T(t))}))},e.isEffectiveExternalModule=function(t,r){return e.isExternalModule(t)||r.isolatedModules||pn(r)===e.ModuleKind.CommonJS&&!!t.commonJsModuleIndicator},e.isEffectiveStrictModeSourceFile=function(t,r){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!t.isDeclarationFile&&(!!gn(r,"alwaysStrict")||(!!e.startsWithUseStrict(t.statements)||!(!e.isExternalModule(t)&&!r.isolatedModules)&&(pn(r)>=e.ModuleKind.ES2015||!r.noImplicitUseStrict)))},e.isBlockScope=k,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 324:case 331:case 313:return!0;default:return e.assertType(t),N(t)}},e.isDeclarationWithTypeParameterChildren=N,e.isAnyImportSyntax=A,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 261:case 260:case 232:case 252:case 251:case 256:case 254:case 253:case 255:return!0;default:return!1}},e.hasPossibleExternalModuleReference=function(t){return F(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||z(t)},e.isAnyImportOrReExport=F,e.getEnclosingBlockScopeContainer=function(t){return e.findAncestor(t.parent,(function(e){return k(e,e.parent)}))},e.declarationNameToString=P,e.getNameFromIndexInfo=function(e){return e.declaration?P(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 158===e.kind&&!ut(e.expression)},e.getTextOfPropertyName=w,e.entityNameToString=I,e.createDiagnosticForNode=function(e,t,r,n,i,a){return O(s(e),e,t,r,n,i,a)},e.createDiagnosticForNodeArray=function(t,r,n,i,a,o,s){var c=e.skipTrivia(t.text,r.pos);return on(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=O,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=s(e),i=B(n,e);return L(n,i.start,i.length,t,r)},e.createFileDiagnosticFromMessageChain=L,e.createDiagnosticForFileFromMessageChain=function(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},e.createDiagnosticForRange=function(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}},e.getSpanOfTokenAtPosition=R,e.getErrorSpanForNode=B,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=j,e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent))},e.isVarConst=J,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 203===e.kind&&105===e.expression.kind},e.isImportCall=z,e.isImportMeta=function(t){return e.isMetaProperty(t)&&99===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=U,e.isPrologueDirective=V,e.isCustomPrologue=K,e.isHoistedFunction=function(t){return K(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return K(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,q)},e.getLeadingCommentRangesOfNode=function(t,r){return 11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,r){var n=160===t.kind||159===t.kind||208===t.kind||209===t.kind||207===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,(function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)}))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var W=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var H=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function G(t){if(172<=t.kind&&t.kind<=195)return!0;switch(t.kind){case 128:case 152:case 144:case 155:case 147:case 131:case 148:case 145:case 150:case 141:return!0;case 113:return 212!==t.parent.kind;case 223:return!Nr(t);case 159:return 190===t.parent.kind||185===t.parent.kind;case 78:(157===t.parent.kind&&t.parent.right===t||201===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(78===t.kind||157===t.kind||201===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 157:case 201:case 107:var r=t.parent;if(176===r.kind)return!1;if(195===r.kind)return!r.isTypeOf;if(172<=r.kind&&r.kind<=195)return!0;switch(r.kind){case 223:return!Nr(r);case 159:case 330:return t===r.constraint;case 163:case 162:case 160:case 249:return t===r.type;case 251:case 208:case 209:case 166:case 165:case 164:case 167:case 168:return t===r.type;case 169:case 170:case 171:case 206:return t===r.type;case 203:case 204:return e.contains(r.typeArguments,t);case 205:return!1}}return!1}function X(e){if(e)switch(e.kind){case 198:case 291:case 160:case 288:case 163:case 162:case 289:case 249:return!0}return!1}function Q(e){return 250===e.parent.kind&&232===e.parent.parent.kind}function Y(e,t,r){return e.properties.filter((function(e){if(288===e.kind){var n=w(e.name);return t===n||!!r&&r===n}return!1}))}function Z(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function $(t,r){var n=Z(t);return n?Y(n,r):e.emptyArray}function ee(t,r){for(e.Debug.assert(297!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 158:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 161:160===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 209:if(!r)continue;case 251:case 208:case 256:case 163:case 162:case 165:case 164:case 166:case 167:case 168:case 169:case 170:case 171:case 255:case 297:return t}}}function te(e){var t=e.kind;return(201===t||202===t)&&105===e.expression.kind}function re(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 252:return!0;case 163:return 252===r.kind;case 167:case 168:case 165:return void 0!==t.body&&252===r.kind;case 160:return void 0!==r.body&&(166===r.kind||165===r.kind||168===r.kind)&&252===n.kind}return!1}function ne(e,t,r){return void 0!==e.decorators&&re(e,t,r)}function ie(e,t,r){return ne(e,t,r)||ae(e,t)}function ae(t,r){switch(t.kind){case 252:return e.some(t.members,(function(e){return ie(e,t,r)}));case 165:case 168:return e.some(t.parameters,(function(e){return ne(e,t,r)}));default:return!1}}function oe(e){var t=e.parent;return(275===t.kind||274===t.kind||276===t.kind)&&t.tagName===e}function se(e){switch(e.kind){case 105:case 103:case 109:case 94:case 13:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 224:case 206:case 225:case 207:case 208:case 221:case 209:case 212:case 210:case 211:case 214:case 215:case 216:case 217:case 220:case 218:case 222:case 273:case 274:case 277:case 219:case 213:case 226:return!0;case 157:for(;157===e.parent.kind;)e=e.parent;return 176===e.parent.kind||oe(e);case 78:if(176===e.parent.kind||oe(e))return!0;case 8:case 9:case 10:case 14:case 107:return ce(e);default:return!1}}function ce(e){var t=e.parent;switch(t.kind){case 249:case 160:case 163:case 162:case 291:case 288:case 198:return t.initializer===e;case 233:case 234:case 235:case 236:case 242:case 243:case 244:case 284:case 246:return t.expression===e;case 237:var r=t;return r.initializer===e&&250!==r.initializer.kind||r.condition===e||r.incrementor===e;case 238:case 239:var n=t;return n.initializer===e&&250!==n.initializer.kind||n.expression===e;case 206:case 224:case 228:case 158:return e===t.expression;case 161:case 283:case 282:case 290:return!0;case 223:return t.expression===e&&Nr(t);case 289:return t.objectAssignmentInitializer===e;default:return se(t)}}function ue(e){for(;157===e.kind||78===e.kind;)e=e.parent;return 176===e.kind}function le(e){return 260===e.kind&&272===e.moduleReference.kind}function _e(e){return de(e)}function de(e){return!!e&&!!(131072&e.flags)}function pe(t,r){if(203!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(78!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function fe(t,r){return 198===t.kind&&(t=t.parent.parent),e.isVariableDeclaration(t)&&!!t.initializer&&pe(Hr(t.initializer),r)}function ge(t){return e.isBinaryExpression(t)||Wr(t)||e.isIdentifier(t)||e.isCallExpression(t)}function me(t){return de(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&Ar(t.name)&&ve(t.name,t.initializer.left)?t.initializer.right:t.initializer}function ye(t,r){if(e.isCallExpression(t)){var n=Ye(t.expression);return 208===n.kind||209===n.kind?t:void 0}return 208===t.kind||221===t.kind||209===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function ve(t,r){if(gt(t)&>(r))return mt(t)===mt(r);if(e.isIdentifier(t)&&Ce(r)&&(107===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))){var n=Fe(r);return e.isPrivateIdentifier(n)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),ve(t,n)}return!(!Ce(t)||!Ce(r))&&(we(t)===we(r)&&ve(t.expression,r.expression))}function he(e){for(;kr(e,!0);)e=e.right;return e}function be(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function xe(t){return e.isIdentifier(t)&&"module"===t.escapedText}function De(t){return(e.isPropertyAccessExpression(t)||Ee(t))&&xe(t.expression)&&"exports"===we(t)}function Se(t){var r=function(t){if(e.isCallExpression(t)){if(!Te(t))return 0;var r=t.arguments[0];return be(r)||De(r)?8:ke(r)&&"prototype"===we(r)?9:7}if(62!==t.operatorToken.kind||!Wr(t.left)||(n=he(t),e.isVoidExpression(n)&&e.isNumericLiteral(n.expression)&&"0"===n.expression.text))return 0;var n;if(Ae(t.left.expression,!0)&&"prototype"===we(t.left)&&e.isObjectLiteralExpression(Oe(t)))return 6;return Ie(t.left)}(t);return 5===r||de(t)?r:0}function Te(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&ut(t.arguments[1])&&Ae(t.arguments[0],!0)}function Ce(t){return e.isPropertyAccessExpression(t)||Ee(t)}function Ee(t){return e.isElementAccessExpression(t)&&(ut(t.argumentExpression)||pt(t.argumentExpression))}function ke(t,r){return e.isPropertyAccessExpression(t)&&(!r&&107===t.expression.kind||e.isIdentifier(t.name)&&Ae(t.expression,!0))||Ne(t,r)}function Ne(e,t){return Ee(e)&&(!t&&107===e.expression.kind||Ar(e.expression)||ke(e.expression,!0))}function Ae(e,t){return Ar(e)||ke(e,t)}function Fe(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function Pe(t){if(e.isPropertyAccessExpression(t))return t.name;var r=Ye(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function we(t){var r=Pe(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}if(e.isElementAccessExpression(t)&&pt(t.argumentExpression))return yt(e.idText(t.argumentExpression.name))}function Ie(t){if(107===t.expression.kind)return 4;if(De(t))return 2;if(Ae(t.expression,!0)){if(Pr(t.expression))return 3;for(var r=t;!e.isIdentifier(r.expression);)r=r.expression;var n=r.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===we(r))&&ke(t))return 1;if(Ae(t,!0)||e.isElementAccessExpression(t)&&dt(t))return 5}return 0}function Oe(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function Me(t){switch(t.parent.kind){case 261:case 267:return t.parent;case 272:return t.parent.parent;case 203:return z(t.parent)||pe(t.parent,!1)?t.parent:void 0;case 191:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function Le(t){switch(t.kind){case 261:case 267:return t.moduleSpecifier;case 260:return 272===t.moduleReference.kind?t.moduleReference.expression:void 0;case 195:return U(t)?t.argument.literal:void 0;case 203:return t.arguments[0];case 256:return 10===t.name.kind?t.name:void 0;default:return e.Debug.assertNever(t)}}function Re(e){return 331===e.kind||324===e.kind||325===e.kind}function Be(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Se(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function je(e){switch(e.kind){case 232:var t=Je(e);return t&&t.initializer;case 163:case 288:return e.initializer}}function Je(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function ze(t){return e.isModuleDeclaration(t)&&t.body&&256===t.body.kind?t.body:void 0}function Ue(t){var r=t.parent;return 288===r.kind||266===r.kind||163===r.kind||233===r.kind&&201===t.kind||ze(r)||e.isBinaryExpression(t)&&62===t.operatorToken.kind?r:r.parent&&(Je(r.parent)===t||e.isBinaryExpression(r)&&62===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(Je(r.parent.parent)||je(r.parent.parent)===t||Be(r.parent.parent))?r.parent.parent:void 0}function Ve(t){var r=Ke(t);return r&&e.isFunctionLike(r)?r:void 0}function Ke(t){var r=qe(t);if(r)return Be(r)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&62===t.expression.operatorToken.kind?he(t.expression):void 0}(r)||je(r)||Je(r)||ze(r)||r}function qe(t){var r=We(t);if(r){var n=r.parent;return n&&n.jsDoc&&r===e.lastOrUndefined(n.jsDoc)?n:void 0}}function We(t){return e.findAncestor(t.parent,e.isJSDoc)}function He(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&309===r.kind}function Ge(e){for(var t=e.parent;;){switch(t.kind){case 216:var r=t.operatorToken.kind;return Tr(r)&&t.left===e?62===r||Sr(r)?1:2:0;case 214:case 215:var n=t.operator;return 45===n||46===n?2:0;case 238:case 239:return t.initializer===e?1:0;case 207:case 199:case 220:case 225:e=t;break;case 289:if(t.name!==e)return 0;e=t.parent;break;case 288:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function Xe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function Qe(e){return Xe(e,207)}function Ye(t){return e.skipOuterExpressions(t,1)}function Ze(t){return Ar(t)||e.isClassExpression(t)}function $e(e){return Ze(et(e))}function et(t){return e.isExportAssignment(t)?t.expression:t.right}function tt(t){var r=rt(t);if(r&&de(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function rt(e){var t=at(e.heritageClauses,93);return t&&t.types.length>0?t.types[0]:void 0}function nt(t){if(de(t))return e.getJSDocImplementsTags(t).map((function(e){return e.class}));var r=at(t.heritageClauses,116);return null==r?void 0:r.types}function it(e){var t=at(e.heritageClauses,93);return t?t.types:void 0}function at(e,t){if(e)for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i.token===t)return i}}function ot(e){return 80<=e&&e<=156}function st(e){return 125<=e&&e<=156}function ct(e){return ot(e)&&!st(e)}function ut(t){return e.isStringLiteralLike(t)||e.isNumericLiteral(t)}function lt(t){return e.isPrefixUnaryExpression(t)&&(39===t.operator||40===t.operator)&&e.isNumericLiteral(t.operand)}function _t(t){var r=e.getNameOfDeclaration(t);return!!r&&dt(r)}function dt(t){if(158!==t.kind&&202!==t.kind)return!1;var r=e.isElementAccessExpression(t)?Ye(t.argumentExpression):t.expression;return!ut(r)&&!lt(r)&&!pt(r)}function pt(t){return e.isPropertyAccessExpression(t)&&vt(t.expression)}function ft(t){switch(t.kind){case 78:case 79:return t.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(t.text);case 158:var r=t.expression;return pt(r)?yt(e.idText(r.name)):ut(r)?e.escapeLeadingUnderscores(r.text):lt(r)?40===r.operator?e.tokenToString(r.operator)+r.operand.text:r.operand.text:void 0;default:return e.Debug.assertNever(t)}}function gt(e){switch(e.kind){case 78:case 10:case 14:case 8:return!0;default:return!1}}function mt(t){return e.isIdentifierOrPrivateIdentifier(t)?e.idText(t):t.text}function yt(e){return"__@"+e}function vt(e){return 78===e.kind&&"Symbol"===e.escapedText}function ht(e){for(;198===e.kind;)e=e.parent.parent;return e}function bt(e){return Yn(e.pos)||Yn(e.end)}function xt(e,t,r){switch(e){case 204:return r?0:1;case 214:case 211:case 212:case 210:case 213:case 217:case 219:return 1;case 216:switch(t){case 42:case 62:case 63:case 64:case 66:case 65:case 67:case 68:case 69:case 70:case 71:case 72:case 77:case 73:case 74:case 75:case 76:return 1}}return 0}function Dt(e){return 216===e.kind?e.operatorToken.kind:214===e.kind||215===e.kind?e.operator:e.kind}function St(e,t,r){switch(e){case 337:return 0;case 220:return 1;case 219:return 2;case 217:return 4;case 216:switch(t){case 27:return 0;case 62:case 63:case 64:case 66:case 65:case 67:case 68:case 69:case 70:case 71:case 72:case 77:case 73:case 74:case 75:case 76:return 3;default:return Tt(t)}case 206:case 225:case 214:case 211:case 212:case 210:case 213:return 16;case 215:return 17;case 203:return 18;case 204:return r?19:18;case 205:case 201:case 202:return 19;case 224:return 11;case 107:case 105:case 78:case 103:case 109:case 94:case 8:case 9:case 10:case 199:case 200:case 208:case 209:case 221:case 13:case 14:case 218:case 207:case 222:case 273:case 274:case 277:return 20;default:return-1}}function Tt(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 101:case 100:case 126: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=G,e.isChildOfNodeWithKind=function(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1},e.forEachReturnStatement=function(t,r){return function t(n){switch(n.kind){case 242:return r(n);case 258:case 230:case 234:case 235:case 236:case 237:case 238:case 239:case 243:case 244:case 284:case 285:case 245:case 247:case 287:return e.forEachChild(n,t)}}(t)},e.forEachYieldExpression=function(t,r){return function t(n){switch(n.kind){case 219:r(n);var i=n.expression;return void(i&&t(i));case 255:case 253:case 256:case 254:return;default:if(e.isFunctionLike(n)){if(n.name&&158===n.name.kind)return void t(n.name.expression)}else G(n)||e.forEachChild(n,t)}}(t)},e.getRestParameterElementType=function(t){return t&&178===t.kind?t.elementType:t&&173===t.kind?e.singleOrUndefined(t.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 253:case 252:case 221:case 177:return e.members;case 200:return e.properties}},e.isVariableLike=X,e.isVariableLikeOrAccessor=function(t){return X(t)||e.isAccessor(t)},e.isVariableDeclarationInVariableStatement=Q,e.isValidESSymbolDeclaration=function(t){return e.isVariableDeclaration(t)?J(t)&&e.isIdentifier(t.name)&&Q(t):e.isPropertyDeclaration(t)?pr(t)&&dr(t):e.isPropertySignature(t)&&pr(t)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 165:case 164:case 166:case 167:case 168:case 251:case 208:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),245!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(t){return t&&230===t.kind&&e.isFunctionLike(t.parent)},e.isObjectLiteralMethod=function(e){return e&&165===e.kind&&200===e.parent.kind},e.isObjectLiteralOrClassExpressionMethod=function(e){return 165===e.kind&&(200===e.parent.kind||221===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=Y,e.getPropertyArrayElementValue=function(t,r,n){return e.firstDefined(Y(t,r),(function(t){return e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,(function(t){return e.isStringLiteral(t)&&t.text===n})):void 0}))},e.getTsConfigObjectLiteralExpression=Z,e.getTsConfigPropArrayElementValue=function(t,r,n){return e.firstDefined($(t,r),(function(t){return e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,(function(t){return e.isStringLiteral(t)&&t.text===n})):void 0}))},e.getTsConfigPropArray=$,e.getContainingFunction=function(t){return e.findAncestor(t.parent,e.isFunctionLike)},e.getContainingFunctionDeclaration=function(t){return e.findAncestor(t.parent,e.isFunctionLikeDeclaration)},e.getContainingClass=function(t){return e.findAncestor(t.parent,e.isClassLike)},e.getThisContainer=ee,e.isInTopLevelContext=function(t){e.isIdentifier(t)&&(e.isClassDeclaration(t.parent)||e.isFunctionDeclaration(t.parent))&&t.parent.name===t&&(t=t.parent);var r=ee(t,!0);return e.isSourceFile(r)},e.getNewTargetContainer=function(e){var t=ee(e,!1);if(t)switch(t.kind){case 166:case 251:case 208:return t}},e.getSuperContainer=function(t,r){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 158:t=t.parent;break;case 251:case 208:case 209:if(!r)continue;case 163:case 162:case 165:case 164:case 166:case 167:case 168:return t;case 161:160===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(208===e.kind||209===e.kind){for(var t=e,r=e.parent;207===r.kind;)t=r,r=r.parent;if(203===r.kind&&r.expression===t)return r}},e.isSuperOrSuperProperty=function(e){return 105===e.kind||te(e)},e.isSuperProperty=te,e.isThisProperty=function(e){var t=e.kind;return(201===t||202===t)&&107===e.expression.kind},e.isThisInitializedDeclaration=function(t){var r;return!!t&&e.isVariableDeclaration(t)&&107===(null===(r=t.initializer)||void 0===r?void 0:r.kind)},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 173:return e.typeName;case 223:return Ar(e.expression)?e.expression:void 0;case 78:case 157:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 205:return e.tag;case 275:case 274:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=re,e.nodeIsDecorated=ne,e.nodeOrChildIsDecorated=ie,e.childIsDecorated=ae,e.isJSXTagName=oe,e.isExpressionNode=se,e.isInExpressionContext=ce,e.isPartOfTypeQuery=ue,e.isExternalModuleImportEqualsDeclaration=le,e.getExternalModuleImportEqualsDeclarationExpression=function(t){return e.Debug.assert(le(t)),t.moduleReference.expression},e.getExternalModuleRequireArgument=function(e){return fe(e,!0)&&Hr(e.initializer).arguments[0]},e.isInternalModuleImportEqualsDeclaration=function(e){return 260===e.kind&&272!==e.moduleReference.kind},e.isSourceFileJS=_e,e.isSourceFileNotJS=function(e){return!de(e)},e.isInJSFile=de,e.isInJsonFile=function(e){return!!e&&!!(33554432&e.flags)},e.isSourceFileNotJson=function(e){return!j(e)},e.isInJSDoc=function(e){return!!e&&!!(4194304&e.flags)},e.isJSDocIndexSignature=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&t.typeArguments&&2===t.typeArguments.length&&(147===t.typeArguments[0].kind||144===t.typeArguments[0].kind)},e.isRequireCall=pe,e.isRequireVariableDeclaration=fe,e.isRequireVariableStatement=function(t,r){return void 0===r&&(r=!0),e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&e.every(t.declarationList.declarations,(function(e){return fe(e,r)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===m(t,e).charCodeAt(0)},e.isAssignmentDeclaration=ge,e.getEffectiveInitializer=me,e.getDeclaredExpandoInitializer=function(e){var t=me(e);return t&&ye(t,Pr(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind){var r=Pr(t.parent.left);return ye(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&ye(r.right,n);if(i&&ve(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&Te(t)){var n=function(t,r){return e.forEach(t.properties,(function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&ye(t.initializer,r)}))}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=ye,e.isDefaultedExpandoInitializer=function(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&ye(t.right,Pr(r))&&Ar(r)&&ve(r,t.left)},e.getNameOfExpando=function(t){if(e.isBinaryExpression(t.parent)){var r=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(62===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.isSameEntityName=ve,e.getRightMostAssignedExpression=he,e.isExportsIdentifier=be,e.isModuleIdentifier=xe,e.isModuleExportsAccessExpression=De,e.getAssignmentDeclarationKind=Se,e.isBindableObjectDefinePropertyCall=Te,e.isLiteralLikeAccess=Ce,e.isLiteralLikeElementAccess=Ee,e.isBindableStaticAccessExpression=ke,e.isBindableStaticElementAccessExpression=Ne,e.isBindableStaticNameExpression=Ae,e.getNameOrArgument=Fe,e.getElementOrPropertyAccessArgumentExpressionOrName=Pe,e.getElementOrPropertyAccessName=we,e.getAssignmentDeclarationPropertyAccessKind=Ie,e.getInitializerOfBinaryExpression=Oe,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===Se(t)},e.isSpecialPropertyDeclaration=function(t){return de(t)&&t.parent&&233===t.parent.kind&&(!e.isElementAccessExpression(t)||Ee(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(8388608&t.flags)||8388608&r.flags)&&ge(r)&&!ge(t)||r.kind!==t.kind&&S(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 251===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.importFromModuleSpecifier=function(t){return Me(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=Me,e.getExternalModuleName=Le,e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 261:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 260:return t;case 267:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 261===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(t,r){var n;if(t.name&&(n=r(t)))return n;if(t.namedBindings&&(n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r)))return n},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 160:case 165:case 164:case 289:case 288:case 163:case 162:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(t){var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&"new"===n.escapedText},e.isJSDocTypeAlias=Re,e.isTypeAlias=function(t){return Re(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=je,e.getSingleVariableOfVariableStatement=Je,e.getJSDocCommentsAndTags=function(t,r){var n;X(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(n=e.append(n,e.last(t.initializer.jsDoc)));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(n=e.append(n,e.last(i.jsDoc))),160===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(159===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=Ue(i)}return n||e.emptyArray},e.getNextJSDocCommentLocation=Ue,e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=Ve(t);if(n){var i=e.find(n.parameters,(function(e){return 78===e.name.kind&&e.name.escapedText===r}));return i&&i.symbol}}},e.getHostSignatureFromJSDoc=Ve,e.getEffectiveJSDocHost=Ke,e.getJSDocHost=qe,e.getJSDocRoot=We,e.getTypeParameterFromJsDoc=function(t){var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return n&&e.find(n,(function(e){return e.name.escapedText===r}))},e.hasRestParameter=function(t){var r=e.lastOrUndefined(t.parameters);return!!r&&He(r)},e.isRestParameter=He,e.hasTypeArguments=function(e){return!!e.typeArguments},function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=Ge,e.isAssignmentTarget=function(e){return 0!==Ge(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 230:case 232:case 243:case 234:case 244:case 258:case 284:case 285:case 245:case 237:case 238:case 239:case 235:case 236:case 247:case 287:return!0}return!1},e.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return Xe(e,186)},e.walkUpParenthesizedExpressions=Qe,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var t;e&&186===e.kind;)t=e,e=e.parent;return[t,e]},e.skipParentheses=Ye,e.isDeleteTarget=function(e){return(201===e.kind||202===e.kind)&&((e=Qe(e.parent))&&210===e.kind)},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.getDeclarationFromName=function(t){var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 78:if(e.isDeclaration(r))return r.name===t?r:void 0;if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:void 0}var i=r.parent;return e.isBinaryExpression(i)&&0!==Se(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 79:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return ut(t)&&158===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 163:case 162:case 165:case 164:case 167:case 168:case 291:case 288:case 201:return t.name===e;case 157:return t.right===e;case 198:case 265:return t.propertyName===e;case 270:case 280:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return 260===t.kind||259===t.kind||262===t.kind&&!!t.name||263===t.kind||269===t.kind||265===t.kind||270===t.kind||266===t.kind&&$e(t)||e.isBinaryExpression(t)&&2===Se(t)&&$e(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind&&Ze(t.parent.right)||289===t.kind||288===t.kind&&Ze(t.initializer)},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 262:case 265:case 263:case 270:case 266:case 260:return t.parent;case 157:do{t=t.parent}while(157===t.parent.kind);return e(t)}},e.isAliasableExpression=Ze,e.exportAssignmentIsAlias=$e,e.getExportAssignmentExpression=et,e.getPropertyAssignmentAliasLikeExpression=function(e){return 289===e.kind?e.name:288===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=tt,e.getClassExtendsHeritageElement=rt,e.getEffectiveImplementsTypeNodes=nt,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?it(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(tt(t)),nt(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=it,e.getHeritageClause=at,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=ot,e.isContextualKeyword=st,e.isNonContextualKeyword=ct,e.isFutureReservedKeyword=function(e){return 116<=e&&e<=124},e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&ct(r)},e.isStringAKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&ot(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!st(t)},e.isTrivia=function(e){return 2<=e&&e<=7},function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 251:case 208:case 165:e.asteriskToken&&(t|=1);case 209:_r(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 251:case 208:case 209:case 165:return void 0!==e.body&&void 0===e.asteriskToken&&_r(e,256)}return!1},e.isStringOrNumericLiteralLike=ut,e.isSignedNumericLiteral=lt,e.hasDynamicName=_t,e.isDynamicName=dt,e.isWellKnownSymbolSyntactically=pt,e.getPropertyNameForPropertyNameNode=ft,e.isPropertyNameLiteral=gt,e.getTextOfIdentifierOrLiteral=mt,e.getEscapedTextOfIdentifierOrLiteral=function(t){return e.isIdentifierOrPrivateIdentifier(t)?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForUniqueESSymbol=function(t){return"__@"+e.getSymbolId(t)+"@"+t.escapedName},e.getPropertyNameForKnownSymbolName=yt,e.getSymbolNameForPrivateIdentifier=function(t,r){return"__#"+e.getSymbolId(t)+"@"+r},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isESSymbolIdentifier=vt,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 160===ht(e).kind},e.getRootDeclaration=ht,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 166===t||208===t||251===t||209===t||165===t||167===t||168===t||256===t||297===t},e.nodeIsSynthesized=bt,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=function(e){var t=Dt(e),r=204===e.kind&&void 0!==e.arguments;return xt(e.kind,t,r)},e.getOperatorAssociativity=xt,e.getExpressionPrecedence=function(e){var t=Dt(e),r=204===e.kind&&void 0!==e.arguments;return St(e.kind,t,r)},e.getOperator=Dt,function(e){e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid"}(e.OperatorPrecedence||(e.OperatorPrecedence={})),e.getOperatorPrecedence=St,e.getBinaryOperatorPrecedence=Tt,e.getSemanticJsxChildren=function(t){return e.filter(t,(function(e){switch(e.kind){case 283:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))},e.createDiagnosticCollection=function(){var t=[],r=[],n=new e.Map,i=!1;return{add:function(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],n.set(a.file.fileName,o),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t);e.insertSorted(o,a,un)},lookup:function(r){var i;i=r.file?n.get(r.file.fileName):t;if(!i)return;var a=e.binarySearch(i,r,e.identity,ln);if(a>=0)return i[a];return},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,(function(e){return n.get(e)}));if(!t.length)return a;return a.unshift.apply(a,t),a}}};var Ct=/\$\{/g;e.hasInvalidEscape=function(t){return t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,(function(e){return!!e.literal.templateFlags})))};var Et=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,kt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Nt=/[\\`]/g,At=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","
":"\\u0085"}));function Ft(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Pt(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return At.get(e)||Ft(e.charCodeAt(0))}function wt(e,t){var r=96===t?Nt:39===t?kt:Et;return e.replace(r,Pt)}e.escapeString=wt;var It=/[^\u0000-\u007F]/g;function Ot(e,t){return e=wt(e,t),It.test(e)?e.replace(It,(function(e){return Ft(e.charCodeAt(0))})):e}e.escapeNonAsciiString=Ot;var Mt=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Lt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Rt=new e.Map(e.getEntries({'"':""","'":"'"}));function Bt(e){return 0===e.charCodeAt(0)?"�":Rt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function jt(e,t){var r=39===t?Lt:Mt;return e.replace(r,Bt)}e.escapeJsxAttributeString=jt,e.stripQuotes=function(e){var t,r=e.length;return r>=2&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},e.isIntrinsicJsxName=function(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")||e.stringContains(t,":")};var Jt=[""," "];function zt(e){for(var t=Jt[1],r=Jt.length;r<=e;r++)Jt.push(Jt[r-1]+t);return Jt[e]}function Ut(){return Jt[1].length}function Vt(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Kt(e,t,r){return t.moduleName||Wt(e,t.fileName,r&&r.fileName)}function qt(t,r){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()))}function Wt(t,r,n){var i=function(e){return t.getCanonicalFileName(e)},a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),s=Hn(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function Ht(e,t,r,n,i){var a=t.declarationDir||t.outDir;return Hn(a?Yt(e,a,r,n,i):e)+".d.ts"}function Gt(e){return e.outFile||e.out}function Xt(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&_e(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!(j(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&(r||!t.isSourceOfProjectReferenceRedirect(e.fileName))}function Qt(e,t,r){return Yt(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))}function Yt(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(r,o)}function Zt(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(Zt(e.getDirectoryPath(t),r,n),r(t))}function $t(t,r){return e.computeLineOfPosition(t,r)}function er(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&tr(e.parameters[0]);return e.parameters[t?1:0]}}function tr(e){return rr(e.name)}function rr(e){return!!e&&78===e.kind&&nr(e)}function nr(e){return 107===e.originalKeywordKind}function ir(t){if(de(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!de(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function ar(e,t,r,n){or(e,t,r.pos,n)}function or(e,t,r,n){n&&n.length&&r!==n[0].pos&&$t(e,r)!==$t(e,n[0].pos)&&t.writeLine()}function sr(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,u=0,l=n;u<l.length;u++){var _=l[u];c&&(r.writeSpace(" "),c=!1),s(e,t,r,_.pos,_.end,o),_.hasTrailingNewLine?r.writeLine():c=!0}c&&a&&r.writeSpace(" ")}}function cr(e,t,r,n,i,a){var o=Math.min(t,a-1),s=e.substring(i,o).replace(/^\s+|\s+$/g,"");s?(r.writeComment(s),o!==t&&r.writeLine()):r.rawWrite(n)}function ur(t,r,n){for(var i=0;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++)9===t.charCodeAt(r)?i+=Ut()-i%Ut():i++;return i}function lr(e,t){return!!fr(e,t)}function _r(e,t){return!!gr(e,t)}function dr(e){return _r(e,32)}function pr(e){return lr(e,64)}function fr(e,t){return yr(e)&t}function gr(e,t){return vr(e)&t}function mr(e,t,r){return e.kind>=0&&e.kind<=156?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|br(e)),!t||4096&e.modifierFlagsCache||!r&&!de(e)||!e.parent||(e.modifierFlagsCache|=4096|hr(e)),-536875009&e.modifierFlagsCache)}function yr(e){return mr(e,!0)}function vr(e){return mr(e,!1)}function hr(t){var r=0;return t.parent&&!e.isParameter(t)&&(de(t)&&(e.getJSDocPublicTagNoCache(t)&&(r|=4),e.getJSDocPrivateTagNoCache(t)&&(r|=8),e.getJSDocProtectedTagNoCache(t)&&(r|=16),e.getJSDocReadonlyTagNoCache(t)&&(r|=64)),e.getJSDocDeprecatedTagNoCache(t)&&(r|=8192)),r}function br(e){var t=xr(e.modifiers);return(4&e.flags||78===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function xr(e){var t=0;if(e)for(var r=0,n=e;r<n.length;r++){t|=Dr(n[r].kind)}return t}function Dr(e){switch(e){case 123:return 32;case 122:return 4;case 121:return 16;case 120:return 8;case 125:return 128;case 92:return 1;case 133:return 2;case 84:return 2048;case 87:return 512;case 129:return 256;case 142:return 64}return 0}function Sr(e){return 74===e||75===e||76===e}function Tr(e){return e>=62&&e<=77}function Cr(e){var t=Er(e);return t&&!t.isImplements?t.class:void 0}function Er(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:116===t.parent.token}:void 0}function kr(t,r){return e.isBinaryExpression(t)&&(r?62===t.operatorToken.kind:Tr(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Nr(e){return void 0!==Cr(e)}function Ar(e){return 78===e.kind||Fr(e)}function Fr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&Ar(t.expression)}function Pr(e){return ke(e)&&"prototype"===we(e)}e.getIndentString=zt,e.getIndentSize=Ut,e.createTextWriter=function(t){var r,n,i,a,o,s=!1;function c(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function u(e){e&&e.length&&(i&&(e=zt(n)+e,i=!1),r+=e,c(e))}function l(e){e&&(s=!1),u(e)}function _(){r="",n=0,i=!0,a=0,o=0,s=!1}return _(),{write:l,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(e){i&&!e||(a++,o=(r+=t).length,i=!0,s=!1)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*Ut():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!r.length&&e.isWhiteSpaceLike(r.charCodeAt(r.length-1))},clear:_,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:function(e,t){return l(e)},writeTrailingSemicolon:l,writeComment:function(e){e&&(s=!0),u(e)},getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return __assign(__assign({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){r(),e.writeLiteral(t)},writeStringLiteral:function(t){r(),e.writeStringLiteral(t)},writeSymbol:function(t,n){r(),e.writeSymbol(t,n)},writePunctuation:function(t){r(),e.writePunctuation(t)},writeKeyword:function(t){r(),e.writeKeyword(t)},writeOperator:function(t){r(),e.writeOperator(t)},writeParameter:function(t){r(),e.writeParameter(t)},writeSpace:function(t){r(),e.writeSpace(t)},writeProperty:function(t){r(),e.writeProperty(t)},writeComment:function(t){r(),e.writeComment(t)},writeLine:function(){r(),e.writeLine()},increaseIndent:function(){r(),e.increaseIndent()},decreaseIndent:function(){r(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=Vt,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(Vt(t))},e.getResolvedExternalModuleName=Kt,e.getExternalModuleNameFromDeclaration=function(t,r,n){var i=r.getExternalModuleFileFromDeclaration(n);if(i&&!i.isDeclarationFile){var a=Le(n);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==qt(t,i.path).indexOf(qt(t,e.ensureTrailingDirectorySeparator(t.getCommonSourceDirectory()))))return Kt(t,i)}},e.getExternalModuleNameFromPath=Wt,e.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(n.outDir?Hn(Qt(e,t,n.outDir)):Hn(e))+r},e.getDeclarationEmitOutputFilePath=function(e,t){return Ht(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=Ht,e.outFile=Gt,e.getPathsBasePath=function(t,r){var n,i;if(t.paths)return null!==(n=t.baseUrl)&&void 0!==n?n:e.Debug.checkDefined(t.pathsBasePath||(null===(i=r.getCurrentDirectory)||void 0===i?void 0:i.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=function(t,r,n){var i=t.getCompilerOptions();if(Gt(i)){var a=pn(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(function(r){return(o||!e.isExternalModule(r))&&Xt(r,t,n)}))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(function(e){return Xt(e,t,n)}))},e.sourceFileMayBeEmitted=Xt,e.getSourceFilePathInNewDir=Qt,e.getSourceFilePathInNewDirWorker=Yt,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,(function(t){r.add(sn(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o)},e.writeFileEnsuringDirectories=function(t,r,n,i,a,o){try{i(t,r,n)}catch(s){Zt(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=function(t,r){var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=$t,e.getFirstConstructorWithBody=function(t){return e.find(t.members,(function(t){return e.isConstructorDeclaration(t)&&l(t.body)}))},e.getSetAccessorValueParameter=er,e.getSetAccessorTypeAnnotationNode=function(e){var t=er(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(tr(r))return r}},e.parameterIsThisKeyword=tr,e.isThisIdentifier=rr,e.identifierIsThisKeyword=nr,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return _t(r)?(n=r,167===r.kind?a=r:168===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(function(t){e.isAccessor(t)&&_r(t,32)===_r(r,32)&&(ft(t.name)===ft(r.name)&&(n?i||(i=t):n=t,167!==t.kind||a||(a=t),168!==t.kind||o||(o=t)))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=ir,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(de(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),(function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(311===t.parent.kind&&t.parent.tags.some(Re))}(t)?t.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=er(e);return t&&ir(t)},e.emitNewLineBeforeLeadingComments=ar,e.emitNewLineBeforeLeadingCommentsOfPosition=or,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&$t(e,r)!==$t(e,n)&&t.writeLine()},e.emitComments=sr,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,u;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),(function(e){return f(t,e.pos)}))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var l=[],_=void 0,d=0,p=c;d<p.length;d++){var g=p[d];if(_){var m=$t(r,_.end);if($t(r,g.pos)>=m+2)break}l.push(g),_=g}if(l.length){m=$t(r,e.last(l).end);$t(r,e.skipTrivia(t,a.pos))>=m+2&&(ar(r,n,a,c),sr(t,r,n,l,!1,!0,o,i),u={nodePos:a.pos,detachedCommentEndPos:e.last(l).end})}}return u},e.writeCommentRange=function(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,u=void 0,l=i,_=s.line;l<a;_++){var d=_+1===c?t.length+1:r[_+1];if(l!==i){void 0===u&&(u=ur(t,r[s.line],i));var p=n.getIndent()*Ut()-u+ur(t,l,d);if(p>0){var f=p%Ut(),g=zt((p-f)/Ut());for(n.rawWrite(g);f;)n.rawWrite(" "),f--}else n.rawWrite("")}cr(t,a,n,o,l,d),l=d}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==yr(e)},e.hasSyntacticModifiers=function(e){return 0!==vr(e)},e.hasEffectiveModifier=lr,e.hasSyntacticModifier=_r,e.hasStaticModifier=dr,e.hasEffectiveReadonlyModifier=pr,e.getSelectedEffectiveModifierFlags=fr,e.getSelectedSyntacticModifierFlags=gr,e.getEffectiveModifierFlags=yr,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return mr(e,!0,!0)},e.getSyntacticModifierFlags=vr,e.getEffectiveModifierFlagsNoCache=function(e){return br(e)|hr(e)},e.getSyntacticModifierFlagsNoCache=br,e.modifiersToFlags=xr,e.modifierToFlag=Dr,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=Sr,e.isLogicalOrCoalescingAssignmentExpression=function(e){return Sr(e.operatorToken.kind)},e.isAssignmentOperator=Tr,e.tryGetClassExtendingExpressionWithTypeArguments=Cr,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Er,e.isAssignmentExpression=kr,e.isDestructuringAssignment=function(e){if(kr(e,!0)){var t=e.left.kind;return 200===t||199===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Nr,e.isEntityNameExpression=Ar,e.getFirstIdentifier=function(e){switch(e.kind){case 78:return e;case 157:do{e=e.left}while(78!==e.kind);return e;case 201:do{e=e.expression}while(78!==e.kind);return e}},e.isDottedName=function e(t){return 78===t.kind||107===t.kind||105===t.kind||201===t.kind&&e(t.expression)||207===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=Fr,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){if(void 0!==(n=t(r.expression)))return n+"."+I(r.name)}else if(e.isElementAccessExpression(r)){var n;if(void 0!==(n=t(r.expression))&&e.isPropertyName(r.argumentExpression))return n+"."+ft(r.argumentExpression)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=Pr,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 157===e.parent.kind&&e.parent.right===e||201===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 200===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 199===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){if(function(t){return t&&e.length(t.declarations)>0&&_r(t.declarations[0],512)}(t))for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(i.localSymbol)return i.localSymbol}},e.tryExtractTSExtension=function(t){return e.find(e.supportedTSExtensionsForExtractExtension,(function(r){return e.fileExtensionIs(t,r)}))};var wr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Ir(t){for(var r,n,i,a,o="",s=function(t){for(var r=[],n=t.length,i=0;i<n;i++){var a=t.charCodeAt(i);a<128?r.push(a):a<2048?(r.push(a>>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}(t),c=0,u=s.length;c<u;)r=s[c]>>2,n=(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>=u?i=a=64:c+2>=u&&(a=64),o+=wr.charAt(r)+wr.charAt(n)+wr.charAt(i)+wr.charAt(a),c+=3;return o}e.convertToBase64=Ir,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Ir(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i<r&&t.charCodeAt(i)!==wr.charCodeAt(64);){var a=wr.indexOf(t[i]),o=wr.indexOf(t[i+1]),s=wr.indexOf(t[i+2]),c=wr.indexOf(t[i+3]),u=(63&a)<<2|o>>4&3,l=(15&o)<<4|s>>2&15,_=(3&s)<<6|63&c;0===l&&0!==s?n.push(u):0===_&&0!==c?n.push(u,l):n.push(u,l,_),i+=4}return function(e){for(var t="",r=0,n=e.length;r<n;){var i=e[r];if(i<128)t+=String.fromCharCode(i),r++;else if(192==(192&i)){for(var a=63&i,o=e[++r];128==(192&o);)a=a<<6|63&o,o=e[++r];t+=String.fromCharCode(a)}else t+=String.fromCharCode(i),r++}return t}(n)},e.readJson=function(t,r){try{var n=r.readFile(t);if(!n)return{};var i=e.parseConfigFileTextToJson(t,n);return i.error?{}:i.config}catch(e){return{}}},e.directoryProbablyExists=function(e,t){return!t.directoryExists||t.directoryExists(e)};var Or;function Mr(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t||-1===r),{pos:t,end:r}}function Lr(e,t){return Mr(t,e.end)}function Rr(e){return e.decorators&&e.decorators.length>0?Lr(e,e.decorators.end):e}function Br(e,t,r){return jr(Jr(e,r,!1),t.end,r)}function jr(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function Jr(t,r,n){return Yn(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function zr(e){return void 0!==e.initializer}function Ur(e){return 33554432&e.flags?e.checkFlags:0}function Vr(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 207:return Vr(r);case 215:case 214:var n=r.operator;return 45===n||46===n?c():0;case 216:var i=r,a=i.left,o=i.operatorToken;return a===t&&Tr(o.kind)?62===o.kind?1:c():0;case 201:return r.name!==t?0:Vr(r);case 288:var s=Vr(r.parent);return t===r.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(s):s;case 289:return t===r.objectAssignmentInitializer?0:Vr(r.parent);case 199:return Vr(r);default:return 0}function c(){return r.parent&&233===function(e){for(;207===e.kind;)e=e.parent;return e}(r.parent).kind?1:2}}function Kr(e,t,r){var n=r.onDeleteValue,i=r.onExistingValue;e.forEach((function(r,a){var o=t.get(a);void 0===o?(e.delete(a),n(r,a)):i&&i(r,o,a)}))}function qr(t){return e.find(t.declarations,e.isClassLike)}function Wr(e){return 201===e.kind||202===e.kind}function Hr(e){for(;Wr(e);)e=e.expression;return e}function Gr(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function Xr(t,r){this.flags=r,(e.Debug.isDebugging||e.tracing)&&(this.checker=t)}function Qr(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function Yr(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Zr(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function $r(e,t,r){this.pos=t,this.end=r,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 en(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function tn(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,(function(t,i){return""+e.Debug.checkDefined(r[+i+n])}))}function rn(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function nn(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function an(t,r){var n=r.fileName||"",i=r.text.length;e.Debug.assertEqual(t.fileName,n),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o<s.length;o++){var c=s[o];nn(c)&&c.fileName===n?(e.Debug.assertLessThanOrEqual(c.start,i),e.Debug.assertLessThanOrEqual(c.start+c.length,i),a.relatedInformation.push(an(c,r))):a.relatedInformation.push(c)}}return a}function on(e,t,r,n){M(e,t,r);var i=rn(n);return arguments.length>4&&(i=tn(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function sn(e){var t=rn(e);return arguments.length>1&&(t=tn(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function cn(e){return e.file?e.file.path:void 0}function un(t,r){return ln(t,r)||function(t,r){if(!t.relatedInformation&&!r.relatedInformation)return 0;if(t.relatedInformation&&r.relatedInformation)return e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,(function(e,t){return un(e,r.relatedInformation[t])}))||0;return t.relatedInformation?-1:1}(t,r)||0}function ln(t,r){return e.compareStringsCaseSensitive(cn(t),cn(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||_n(t.messageText,r.messageText)||0}function _n(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var n=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(n)return n;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;for(var i=Math.min(t.next.length,r.next.length),a=0;a<i;a++)if(n=_n(t.next[a],r.next[a]))return n;return t.next.length<r.next.length?-1:t.next.length>r.next.length?1:0}function dn(e){return e.target||0}function pn(t){return"number"==typeof t.module?t.module:dn(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function fn(e){return!(!e.declaration&&!e.composite)}function gn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function mn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function yn(e,t){return t.strictFlag?gn(e,t.name):e[t.name]}function vn(e){for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0}function hn(t,r){var n,i,a;return{getSymlinkedFiles:function(){return a},getSymlinkedDirectories:function(){return n},getSymlinkedDirectoriesByRealpath:function(){return i},setSymlinkedFile:function(t,r){return(a||(a=new e.Map)).set(t,r)},setSymlinkedDirectory:function(a,o){var s=e.toPath(a,t,r);oi(s)||(s=e.ensureTrailingDirectorySeparator(s),!1===o||(null==n?void 0:n.has(s))||(i||(i=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(o.realPath),a),(n||(n=new e.Map)).set(s,o))}}}function bn(t,r,n,i){for(var a=e.getPathComponents(e.getNormalizedAbsolutePath(t,n)),o=e.getPathComponents(e.getNormalizedAbsolutePath(r,n)),s=!1;!xn(a[a.length-2],i)&&!xn(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 xn(t,r){return"node_modules"===r(t)||e.startsWith(t,"@")}e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return"\r\n";case 1:return"\n"}return r?r():e.sys?e.sys.newLine:"\r\n"},e.createRange=Mr,e.moveRangeEnd=function(e,t){return Mr(e.pos,t)},e.moveRangePos=Lr,e.moveRangePastDecorators=Rr,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?Lr(e,e.modifiers.end):Rr(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return Mr(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return Br(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return jr(Jr(e,r,!1),Jr(t,r,!1),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return jr(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=Br,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return jr(e.end,Jr(t,r,!1),r)},e.getLinesBetweenRangeEndAndRangeStart=function(t,r,n,i){var a=Jr(r,n,i);return e.getLinesBetweenPositions(n,t.end,a)},e.getLinesBetweenRangeEndPositions=function(t,r,n){return e.getLinesBetweenPositions(n,t.end,r.end)},e.isNodeArrayMultiLine=function(e,t){return!jr(e.pos,e.end,t)},e.positionsAreOnSameLine=jr,e.getStartPositionOfRange=Jr,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i),o=function(t,r,n){void 0===r&&(r=0);for(;t-- >r;)if(!e.isWhiteSpaceLike(n.text.charCodeAt(t)))return t}(a,r,n);return e.getLinesBetweenPositions(n,null!=o?o:r,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))},e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 255:case 256:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,zr)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=Ur,e.getDeclarationModifierFlagsFromSymbol=function(t){if(t.valueDeclaration){var r=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?r:-29&r}if(6&Ur(t)){var n=t.checkFlags;return(1024&n?8:256&n?4:16)|(2048&n?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===Vr(e)},e.isWriteAccess=function(e){return 0!==Vr(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Or||(Or={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=Kr,e.mutateMap=function(e,t,r){Kr(e,t,r);var n=r.createNewValue;t.forEach((function(t,r){e.has(r)||e.set(r,n(r,t))}))},e.isAbstractConstructorSymbol=function(e){if(32&e.flags){var t=qr(e);return!!t&&_r(t,128)}return!1},e.getClassLikeDeclarationOfSymbol=qr,e.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(t,r){return!!e.forEachAncestorDirectory(t,(function(e){return!!r(e)||void 0}))},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:v(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,(function(e){l(e)&&(r=e)}),(function(e){for(var t=e.length-1;t>=0;t--)if(l(e[t])){r=e[t];break}})),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),t=String(t),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=172&&e<=195||128===e||152===e||144===e||155===e||145===e||131===e||147===e||148===e||113===e||150===e||141===e||223===e||303===e||304===e||305===e||306===e||307===e||308===e||309===e},e.isAccessExpression=Wr,e.getNameOfAccessExpression=function(t){return 201===t.kind?t.name:(e.Debug.assert(202===t.kind),t.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 264===e.kind||268===e.kind},e.getLeftmostAccessExpression=Hr,e.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 215:e=e.operand;continue;case 216:e=e.left;continue;case 217:e=e.condition;continue;case 205:e=e.tag;continue;case 203:if(t)return e;case 224:case 202:case 201:case 225:case 336:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return Yr},getTokenConstructor:function(){return Zr},getIdentifierConstructor:function(){return $r},getPrivateIdentifierConstructor:function(){return Yr},getSourceFileConstructor:function(){return Yr},getSymbolConstructor:function(){return Gr},getTypeConstructor:function(){return Xr},getSignatureConstructor:function(){return Qr},getSourceMapSourceConstructor:function(){return en}},e.setObjectAllocator=function(t){e.objectAllocator=t},e.formatStringFromArgs=tn,e.setLocalizedDiagnosticMessages=function(t){e.localizedDiagnosticMessages=t},e.getLocaleSpecificMessage=rn,e.createDetachedDiagnostic=function(e,t,r,n){M(void 0,t,r);var i=rn(n);return arguments.length>4&&(i=tn(i,arguments,4)),{file:void 0,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=function(e,t){for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n];r.push(an(a,t))}return r},e.createFileDiagnostic=on,e.formatMessage=function(e,t){var r=rn(t);return arguments.length>2&&(r=tn(r,arguments,2)),r},e.createCompilerDiagnostic=sn,e.createCompilerDiagnosticFromMessageChain=function(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}},e.chainDiagnosticMessages=function(e,t){var r=rn(t);return arguments.length>2&&(r=tn(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next[0];r.next=[t]},e.compareDiagnostics=un,e.compareDiagnosticsSkipRelatedInformation=ln,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getEmitScriptTarget=dn,e.getEmitModuleKind=pn,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=pn(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.hasJsonModuleEmitEnabled=function(t){switch(pn(t)){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!(!fn(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=pn(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System},e.getEmitDeclarations=fn,e.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=gn,e.getAllowJSCompilerOption=mn,e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return r!==t&&e.semanticDiagnosticsOptionDeclarations.some((function(e){return!ei(yn(r,e),yn(t,e))}))},e.compilerOptionsAffectEmit=function(t,r){return r!==t&&e.affectsEmitOptionDeclarations.some((function(e){return!ei(yn(r,e),yn(t,e))}))},e.getCompilerOptionValue=yn,e.getJSXTransformEnabled=function(e){var t=e.jsx;return 2===t||4===t||5===t},e.getJSXImplicitImportBase=function(t,r){var n=null==r?void 0:r.pragmas.get("jsximportsource"),i=e.isArray(n)?n[0]:n;return 4===t.jsx||5===t.jsx||t.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||t.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=function(e,t){return e?e+"/"+(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},e.hasZeroOrOneAsteriskCharacter=vn,e.createSymlinkCache=hn,e.discoverProbableSymlinks=function(t,r,n){for(var i=hn(n,r),a=0,o=e.flatten(e.mapDefined(t,(function(t){return t.resolvedModules&&e.compact(e.arrayFrom(e.mapIterator(t.resolvedModules.values(),(function(e){return e&&e.originalPath&&e.resolvedFileName!==e.originalPath?[e.resolvedFileName,e.originalPath]:void 0}))))})));a<o.length;a++){var s=o[a],c=bn(s[0],s[1],n,r)||e.emptyArray,u=c[0],l=c[1];u&&l&&i.setSymlinkedDirectory(l,{real:u,realPath:e.toPath(u,n,r)})}return i},e.tryRemoveDirectoryPrefix=function(t,r,n){var i,a=e.tryRemovePrefix(t,r,n);return void 0===a?void 0:(i=a,e.isAnyDirectorySeparator(i.charCodeAt(0))?i.slice(1):void 0)};var Dn=/[^\w\s\/]/g;function Sn(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(Dn,Sn)};var Tn=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Cn="(?!("+e.commonPackageFolders.join("|")+")(/|$))",En={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+Cn+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return On(e,En.singleAsteriskRegexFragment)}},kn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+Cn+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return On(e,kn.singleAsteriskRegexFragment)}},Nn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return On(e,Nn.singleAsteriskRegexFragment)}},An={files:En,directories:kn,exclude:Nn};function Fn(e,t,r){var n=Pn(e,t,r);if(n&&n.length)return"^("+n.map((function(e){return"("+e+")"})).join("|")+")"+("exclude"===r?"($|/)":"$")}function Pn(t,r,n){if(void 0!==t&&0!==t.length)return e.flatMap(t,(function(e){return e&&In(e,r,n,An[n])}))}function wn(e){return!/[.*?]/.test(e)}function In(t,r,n,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",u=!1,l=e.getNormalizedPathComponents(t,r),_=e.last(l);if("exclude"===n||"**"!==_){l[0]=e.removeTrailingDirectorySeparator(l[0]),wn(_)&&l.push("**","*");for(var d=0,p=0,f=l;p<f.length;p++){var g=f[p];if("**"===g)c+=o;else if("directories"===n&&(c+="(",d++),u&&(c+=e.directorySeparator),"exclude"!==n){var m="";42===g.charCodeAt(0)?(m+="([^./]"+a+")?",g=g.substr(1)):63===g.charCodeAt(0)&&(m+="[^./]",g=g.substr(1)),(m+=g.replace(Dn,s))!==g&&(c+=Cn),c+=m}else c+=g.replace(Dn,s);u=!0}for(;d>0;)c+=")?",d--;return c}}function On(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Mn(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Pn(n,o,"files"),(function(e){return"^"+e+"$"})),includeFilePattern:Fn(n,o,"files"),includeDirectoryPattern:Fn(n,o,"directories"),excludePattern:Fn(r,o,"exclude"),basePaths:Rn(t,n,i)}}function Ln(e,t){return new RegExp(e,t?"":"i")}function Rn(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o<s.length;o++){var c=s[o],u=e.isRootedDiskPath(c)?c:e.normalizePath(e.combinePaths(t,c));a.push(Bn(u))}a.sort(e.getStringComparer(!n));for(var l=function(r){e.every(i,(function(i){return!e.containsPath(i,r,t,!n)}))&&i.push(r)},_=0,d=a;_<d.length;_++){l(d[_])}}return i}function Bn(t){var r=e.indexOfAnyCharCode(t,Tn);return r<0?e.hasExtension(t)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,r))}function jn(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=Fn,e.getRegularExpressionsForWildcards=Pn,e.isImplicitGlob=wn,e.getPatternFromSpec=function(e,t,r){var n=e&&In(e,t,r,An[r]);return n&&"^("+n+")"+("exclude"===r?"($|/)":"$")},e.getFileMatcherPatterns=Mn,e.getRegexFromPattern=Ln,e.matchFiles=function(t,r,n,i,a,o,s,c,u){t=e.normalizePath(t),o=e.normalizePath(o);for(var l=Mn(t,n,i,a,o),_=l.includeFilePatterns&&l.includeFilePatterns.map((function(e){return Ln(e,a)})),d=l.includeDirectoryPattern&&Ln(l.includeDirectoryPattern,a),p=l.excludePattern&&Ln(l.excludePattern,a),f=_?_.map((function(){return[]})):[[]],g=new e.Map,m=e.createGetCanonicalFileName(a),y=0,v=l.basePaths;y<v.length;y++){var h=v[y];b(h,e.combinePaths(o,h),s)}return e.flatten(f);function b(t,n,i){var a=m(u(n));if(!g.has(a)){g.set(a,!0);for(var o=c(t),s=o.files,l=o.directories,y=function(i){var a=e.combinePaths(t,i),o=e.combinePaths(n,i);if(r&&!e.fileExtensionIsOneOf(a,r))return"continue";if(p&&p.test(o))return"continue";if(_){var s=e.findIndex(_,(function(e){return e.test(o)}));-1!==s&&f[s].push(a)}else f[0].push(a)},v=0,h=e.sort(s,e.compareStringsCaseSensitive);v<h.length;v++){y(S=h[v])}if(void 0===i||0!=--i)for(var x=0,D=e.sort(l,e.compareStringsCaseSensitive);x<D.length;x++){var S=D[x],T=e.combinePaths(t,S),C=e.combinePaths(n,S);d&&!d.test(C)||p&&p.test(C)||b(T,C,i)}}}},e.ensureScriptKind=function(e,t){return t||jn(e)||3},e.getScriptKindFromFileName=jn,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 Jn=__spreadArray(__spreadArray([],e.supportedTSExtensions),e.supportedJSExtensions),zn=__spreadArray(__spreadArray(__spreadArray([],e.supportedTSExtensions),e.supportedJSExtensions),[".json"]);function Un(t,r){var n=t&&mn(t);if(!r||0===r.length)return n?Jn:e.supportedTSExtensions;var i=__spreadArray(__spreadArray([],n?Jn:e.supportedTSExtensions),e.mapDefined(r,(function(e){return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)?e.extension:void 0;var t})));return e.deduplicate(i,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function Vn(t,r){return t&&t.resolveJsonModule?r===Jn?zn:r===e.supportedTSExtensions?e.supportedTSExtensionsWithJson:__spreadArray(__spreadArray([],r),[".json"]):r}function Kn(e){var t=e.match(/\//g);return t?t.length:0}function qn(e,t){return e<2?0:e<t.length?2:t.length}e.getSupportedExtensions=Un,e.getSuppoertedExtensionsWithJsonIfResolveJsonModule=Vn,e.hasJSFileExtension=function(t){return e.some(e.supportedJSExtensions,(function(r){return e.fileExtensionIs(t,r)}))},e.hasTSFileExtension=function(t){return e.some(e.supportedTSExtensions,(function(r){return e.fileExtensionIs(t,r)}))},e.isSupportedSourceFileName=function(t,r,n){if(!t)return!1;for(var i=0,a=Vn(r,Un(r,n));i<a.length;i++){var o=a[i];if(e.fileExtensionIs(t,o))return!0}return!1},e.compareNumberOfDirectorySeparators=function(t,r){return e.compareValues(Kn(t),Kn(r))},function(e){e[e.TypeScriptFiles=0]="TypeScriptFiles",e[e.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",e[e.Highest=0]="Highest",e[e.Lowest=2]="Lowest"}(e.ExtensionPriority||(e.ExtensionPriority={})),e.getExtensionPriority=function(t,r){for(var n=r.length-1;n>=0;n--)if(e.fileExtensionIs(t,r[n]))return qn(n,r);return 0},e.adjustExtensionPriority=qn,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var Wn=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function Hn(e){for(var t=0,r=Wn;t<r.length;t++){var n=Gn(e,r[t]);if(void 0!==n)return n}return e}function Gn(t,r){return e.fileExtensionIs(t,r)?Xn(t,r):void 0}function Xn(e,t){return e.substring(0,e.length-t.length)}function Qn(t){e.Debug.assert(vn(t));var r=t.indexOf("*");return-1===r?void 0:{prefix:t.substr(0,r),suffix:t.substr(r+1)}}function Yn(e){return!(e>=0)}function Zn(e){return".ts"===e||".tsx"===e||".d.ts"===e}function $n(t){return e.find(Wn,(function(r){return e.fileExtensionIs(t,r)}))}function ei(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,ei)}function ti(e,t){return e.pos=t,e}function ri(e,t){return e.end=t,e}function ni(e,t,r){return ri(ti(e,t),r)}function ii(e,t){return e&&t&&(e.parent=t),e}function ai(t){return!e.isOmittedExpression(t)}function oi(t){return e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))}e.removeFileExtension=Hn,e.tryRemoveExtension=Gn,e.removeExtension=Xn,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,Wn,!1)},e.tryParsePattern=Qn,e.positionIsSynthesized=Yn,e.extensionIsTS=Zn,e.resolutionExtensionIsTSOrJson=function(e){return Zn(e)||".json"===e},e.extensionFromPath=function(t){var r=$n(t);return void 0!==r?r:e.Debug.fail("File "+t+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==$n(e)},e.tryGetExtensionFromPath=$n,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,r){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i];if(vn(o)){var s=Qn(o);if(s)n.push(s);else if(o===r)return o}}return e.findBestPatternMatch(n,(function(e){return e}),r)},e.sliceAfter=function(t,r){var n=t.indexOf(r);return e.Debug.assert(-1!==n),t.slice(n)},e.addRelatedInfo=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.length?(t.relatedInformation||(t.relatedInformation=[]),e.Debug.assert(t.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(r=t.relatedInformation).push.apply(r,n),t):t},e.minAndMax=function(t,r){e.Debug.assert(0!==t.length);for(var n=r(t[0]),i=n,a=1;a<t.length;a++){var o=r(t[a]);o<n?n=o:o>i&&(i=o)}return{min:n,max:i}},e.rangeOfNode=function(e){return{pos:g(e),end:e.end}},e.rangeOfTypeParameters=function(t,r){return{pos:r.pos-1,end:e.skipTrivia(t.text,r.end)+1}},e.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=ei,e.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var u=c>>>4,l=e.charCodeAt(s),_=(l<=57?l-48:10+l-(l<=70?65:97))<<(15&c);o[u]|=_;var d=_>>>16;d&&(o[u+1]|=d)}for(var p="",f=o.length-1,g=!0;g;){var m=0;g=!1;for(u=f;u>=0;u--){var y=m<<16|o[u],v=y/10|0;o[u]=v,m=y-10*v,v&&!g&&(f=u,g=!0)}p=m+p}return p},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r},e.isValidTypeOnlyAliasUseSite=function(t){return!!(8388608&t.flags)||ue(t)||function(t){if(78!==t.kind)return!1;var r=e.findAncestor(t.parent,(function(e){switch(e.kind){case 286:return!0;case 201:case 223:return!1;default:return"quit"}}));return 116===(null==r?void 0:r.token)||253===(null==r?void 0:r.parent.kind)}(t)||function(e){for(;78===e.kind||201===e.kind;)e=e.parent;if(158!==e.kind)return!1;if(_r(e.parent,128))return!0;var t=e.parent.parent.kind;return 253===t||177===t}(t)||!se(t)},e.typeOnlyDeclarationIsExport=function(e){return 270===e.kind},e.isIdentifierTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)},e.arrayIsHomogeneous=function(t,r){if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i<a;i++){if(!r(n,t[i]))return!1}return!0},e.setTextRangePos=ti,e.setTextRangeEnd=ri,e.setTextRangePosEnd=ni,e.setTextRangePosWidth=function(e,t,r){return ni(e,t,t+r)},e.setNodeFlags=function(e,t){return e&&(e.flags=t),e},e.setParent=ii,e.setEachParent=function(e,t){if(e)for(var r=0,n=e;r<n.length;r++){ii(n[r],t)}return e},e.setParentRecursive=function(t,r){return t?(e.forEachChildRecursively(t,e.isJSDocNode(t)?n:function(t,r){return n(t,r)||function(t){if(e.hasJSDocNodes(t))for(var r=0,i=t.jsDoc;r<i.length;r++){var a=i[r];n(a,t),e.forEachChildRecursively(a,n)}}(t)}),t):t;function n(e,t){if(r&&e.parent===t)return"skip";ii(e,t)}},e.isPackedArrayLiteral=function(t){return e.isArrayLiteralExpression(t)&&e.every(t.elements,ai)},e.expressionResultIsUnused=function(t){for(e.Debug.assertIsDefined(t.parent);;){var r=t.parent;if(e.isParenthesizedExpression(r))t=r;else{if(e.isExpressionStatement(r)||e.isVoidExpression(r)||e.isForStatement(r)&&(r.initializer===t||r.incrementor===t))return!0;if(e.isCommaListExpression(r)){if(t!==e.last(r.elements))return!0;t=r}else{if(!e.isBinaryExpression(r)||27!==r.operatorToken.kind)return!1;if(t===r.left)return!0;t=r}}}},e.containsIgnoredPath=oi}(ts||(ts={})),function(e){e.createBaseNodeFactory=function(){var t,r,n,i,a;return{createBaseSourceFileNode:function(t){return new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(n||(n=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(i||(i=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(r||(r=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(r){return new(t||(t=e.objectAllocator.getNodeConstructor()))(r,-1,-1)}}}}(ts||(ts={})),function(e){e.createParenthesizerRules=function(t){return{parenthesizeLeftSideOfBinary:function(e,t){return n(e,t,!0)},parenthesizeRightSideOfBinary:function(e,t,r){return n(e,r,!1,t)},parenthesizeExpressionOfComputedPropertyName:function(r){return e.isCommaSequence(r)?t.createParenthesizedExpression(r):r},parenthesizeConditionOfConditionalExpression:function(r){var n=e.getOperatorPrecedence(217,57),i=e.skipPartiallyEmittedExpressions(r),a=e.getExpressionPrecedence(i);if(1!==e.compareValues(a,n))return t.createParenthesizedExpression(r);return r},parenthesizeBranchOfConditionalExpression:function(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isCommaSequence(n)?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfExportDefault:function(r){var n=e.skipPartiallyEmittedExpressions(r),i=e.isCommaSequence(n);if(!i)switch(e.getLeftmostExpression(n,!1).kind){case 221:case 208:i=!0}return i?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfNew:function(r){var n=e.getLeftmostExpression(r,!0);switch(n.kind){case 203:return t.createParenthesizedExpression(r);case 204:return n.arguments?r:t.createParenthesizedExpression(r)}return i(r)},parenthesizeLeftSideOfAccess:i,parenthesizeOperandOfPostfixUnary:function(r){return e.isLeftHandSideExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r)},parenthesizeOperandOfPrefixUnary:function(r){return e.isUnaryExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r)},parenthesizeExpressionsOfCommaDelimitedList:function(r){var n=e.sameMap(r,a);return e.setTextRange(t.createNodeArray(n,r.hasTrailingComma),r)},parenthesizeExpressionForDisallowedComma:a,parenthesizeExpressionOfExpressionStatement:function(r){var n=e.skipPartiallyEmittedExpressions(r);if(e.isCallExpression(n)){var i=n.expression,a=e.skipPartiallyEmittedExpressions(i).kind;if(208===a||209===a){var o=t.updateCallExpression(n,e.setTextRange(t.createParenthesizedExpression(i),i),n.typeArguments,n.arguments);return t.restoreOuterExpressions(r,o,8)}}var s=e.getLeftmostExpression(n,!1).kind;if(200===s||208===s)return e.setTextRange(t.createParenthesizedExpression(r),r);return r},parenthesizeConciseBodyOfArrowFunction:function(r){if(!e.isBlock(r)&&(e.isCommaSequence(r)||200===e.getLeftmostExpression(r,!1).kind))return e.setTextRange(t.createParenthesizedExpression(r),r);return r},parenthesizeMemberOfConditionalType:o,parenthesizeMemberOfElementType:s,parenthesizeElementTypeOfArrayType:function(e){switch(e.kind){case 176:case 188:case 185:return t.createParenthesizedType(e)}return s(e)},parenthesizeConstituentTypesOfUnionOrIntersectionType:function(r){return t.createNodeArray(e.sameMap(r,s))},parenthesizeTypeArguments:function(r){if(e.some(r))return t.createNodeArray(e.sameMap(r,c))}};function r(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(216===t.kind&&39===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var n=r(t.left),i=e.isLiteralKind(n)&&n===r(t.right)?n:0;return t.cachedLiteralKind=i,i}return 0}function n(n,i,a,o){return 207===e.skipPartiallyEmittedExpressions(i).kind?i:function(t,n,i,a){var o=e.getOperatorPrecedence(216,t),s=e.getOperatorAssociativity(216,t),c=e.skipPartiallyEmittedExpressions(n);if(!i&&209===n.kind&&o>3)return!0;var u=e.getExpressionPrecedence(c);switch(e.compareValues(u,o)){case-1:return!(!i&&1===s&&219===n.kind);case 1:return!1;case 0:if(i)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if(function(e){return 41===e||51===e||50===e||52===e}(t))return!1;if(39===t){var l=a?r(a):0;if(e.isLiteralKind(l)&&l===r(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(n,i,a,o)?t.createParenthesizedExpression(i):i}function i(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isLeftHandSideExpression(n)&&(204!==n.kind||n.arguments)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function a(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(216,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function o(e){return 184===e.kind?t.createParenthesizedType(e):e}function s(e){switch(e.kind){case 182:case 183:case 174:case 175:return t.createParenthesizedType(e)}return o(e)}function c(r,n){return 0===n&&e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}},e.nullParenthesizerRules={parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,r){return r},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(t){return e.cast(t,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(t){return e.cast(t,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeTypeArguments:function(t){return t&&e.cast(t,e.isNodeArray)}}}(ts||(ts={})),function(e){e.createNodeConverters=function(t){return{convertToFunctionBlock:function(r,n){if(e.isBlock(r))return r;var i=t.createReturnStatement(r);e.setTextRange(i,r);var a=t.createBlock([i],n);return e.setTextRange(a,r),a},convertToFunctionExpression:function(r){if(!r.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var n=t.createFunctionExpression(r.modifiers,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body);e.setOriginalNode(n,r),e.setTextRange(n,r),e.getStartsOnNewLine(r)&&e.setStartsOnNewLine(n,!0);return n},convertToArrayAssignmentElement:r,convertToObjectAssignmentElement:n,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function r(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(r.name),r),r);var n=s(r.name);return r.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(n,r.initializer),r),r):n}return e.cast(r,e.isExpression)}function n(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(r.name),r),r);if(r.propertyName){var n=s(r.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(r.propertyName,r.initializer?t.createAssignment(n,r.initializer):n),r),r)}return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(r.name,r.initializer),r),r)}return e.cast(r,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 197:case 199:return o(e);case 196:case 200:return a(e)}}function a(r){return e.isObjectBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isObjectLiteralExpression)}function o(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,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}}(ts||(ts={})),function(e){var t,r=0;function n(n,d){var p=8&n?i:a,f=e.memoize((function(){return 1&n?e.nullParenthesizerRules:e.createParenthesizerRules(k)})),g=e.memoize((function(){return 2&n?e.nullNodeConverters:e.createNodeConverters(k)})),m=e.memoizeOne((function(e){return function(t,r){return It(t,e,r)}})),v=e.memoizeOne((function(e){return function(t){return Pt(e,t)}})),h=e.memoizeOne((function(e){return function(t){return wt(t,e)}})),b=e.memoizeOne((function(e){return function(){return function(e){return A(e)}(e)}})),x=e.memoizeOne((function(e){return function(t){return Yr(e,t)}})),D=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?p(Yr(e,r),t):t}(e,t,r)}})),S=e.memoizeOne((function(e){return function(t,r){return fn(e,t,r)}})),T=e.memoizeOne((function(e){return function(t,r,n){return function(e,t,r,n){void 0===r&&(r=rn(t));return t.tagName!==r||t.comment!==n?p(fn(e,r,n),t):t}(e,t,r,n)}})),C=e.memoizeOne((function(e){return function(t,r,n){return gn(e,t,r,n)}})),E=e.memoizeOne((function(e){return function(t,r,n,i){return function(e,t,r,n,i){void 0===r&&(r=rn(t));return t.tagName!==r||t.typeExpression!==n||t.comment!==i?p(gn(e,r,n,i),t):t}(e,t,r,n,i)}})),k={get parenthesizer(){return f()},get converters(){return g()},createNodeArray:N,createNumericLiteral:U,createBigIntLiteral:V,createStringLiteral:q,createStringLiteralFromNode:function(t){var r=K(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:W,createLiteralLikeNode:function(e,t){switch(e){case 8:return U(t,0);case 9:return V(t);case 10:return q(t,void 0);case 11:return Sn(t,!1);case 12:return Sn(t,!0);case 13:return W(t);case 14:return Bt(e,t,void 0,0)}},createIdentifier:X,updateIdentifier:function(t,r){return t.typeArguments!==r?p(X(e.idText(t),r),t):t},createTempVariable:Q,createLoopVariable:function(){return G("",2)},createUniqueName:function(t,r){void 0===r&&(r=0);return e.Debug.assert(!(7&r),"Argument out of range: flags"),e.Debug.assert(32!=(48&r),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),G(t,3|r)},getGeneratedNameForNode:Y,createPrivateIdentifier:function(t){e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t);var r=d.createBasePrivateIdentifierNode(79);return r.escapedText=e.escapeLeadingUnderscores(t),r.transformFlags|=4194304,r},createToken:$,createSuper:function(){return $(105)},createThis:ee,createNull:function(){return $(103)},createTrue:te,createFalse:re,createModifier:ne,createModifiersFromModifierFlags:ie,createQualifiedName:ae,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?p(ae(t,r),e):e},createComputedPropertyName:oe,updateComputedPropertyName:function(e,t){return e.expression!==t?p(oe(t),e):e},createTypeParameterDeclaration:se,updateTypeParameterDeclaration:function(e,t,r,n){return e.name!==t||e.constraint!==r||e.default!==n?p(se(t,r,n),e):e},createParameterDeclaration:ce,updateParameterDeclaration:ue,createDecorator:le,updateDecorator:function(e,t){return e.expression!==t?p(le(t),e):e},createPropertySignature:_e,updatePropertySignature:de,createPropertyDeclaration:pe,updatePropertyDeclaration:fe,createMethodSignature:ge,updateMethodSignature:me,createMethodDeclaration:ye,updateMethodDeclaration:ve,createConstructorDeclaration:he,updateConstructorDeclaration:be,createGetAccessorDeclaration:xe,updateGetAccessorDeclaration:De,createSetAccessorDeclaration:Se,updateSetAccessorDeclaration:Te,createCallSignature:Ce,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?O(Ce(t,r,n),e):e},createConstructSignature:Ee,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?O(Ee(t,r,n),e):e},createIndexSignature:ke,updateIndexSignature:Ne,createTemplateLiteralTypeSpan:Ae,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?p(Ae(t,r),e):e},createKeywordTypeNode:function(e){return $(e)},createTypePredicateNode:Fe,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?p(Fe(t,r,n),e):e},createTypeReferenceNode:Pe,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?p(Pe(t,r),e):e},createFunctionTypeNode:we,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?O(we(t,r,n),e):e},createConstructorTypeNode:Ie,updateConstructorTypeNode:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return 5===t.length?Le.apply(void 0,t):4===t.length?Re.apply(void 0,t):e.Debug.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Be,updateTypeQueryNode:function(e,t){return e.exprName!==t?p(Be(t),e):e},createTypeLiteralNode:je,updateTypeLiteralNode:function(e,t){return e.members!==t?p(je(t),e):e},createArrayTypeNode:Je,updateArrayTypeNode:function(e,t){return e.elementType!==t?p(Je(t),e):e},createTupleTypeNode:ze,updateTupleTypeNode:function(e,t){return e.elements!==t?p(ze(t),e):e},createNamedTupleMember:Ue,updateNamedTupleMember:function(e,t,r,n,i){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==n||e.type!==i?p(Ue(t,r,n,i),e):e},createOptionalTypeNode:Ve,updateOptionalTypeNode:function(e,t){return e.type!==t?p(Ve(t),e):e},createRestTypeNode:Ke,updateRestTypeNode:function(e,t){return e.type!==t?p(Ke(t),e):e},createUnionTypeNode:function(e){return qe(182,e)},updateUnionTypeNode:function(e,t){return We(e,t)},createIntersectionTypeNode:function(e){return qe(183,e)},updateIntersectionTypeNode:function(e,t){return We(e,t)},createConditionalTypeNode:He,updateConditionalTypeNode:function(e,t,r,n,i){return e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?p(He(t,r,n,i),e):e},createInferTypeNode:Ge,updateInferTypeNode:function(e,t){return e.typeParameter!==t?p(Ge(t),e):e},createImportTypeNode:Qe,updateImportTypeNode:function(e,t,r,n,i){void 0===i&&(i=e.isTypeOf);return e.argument!==t||e.qualifier!==r||e.typeArguments!==n||e.isTypeOf!==i?p(Qe(t,r,n,i),e):e},createParenthesizedType:Ye,updateParenthesizedType:function(e,t){return e.type!==t?p(Ye(t),e):e},createThisTypeNode:function(){var e=A(187);return e.transformFlags=1,e},createTypeOperatorNode:Ze,updateTypeOperatorNode:function(e,t){return e.type!==t?p(Ze(e.operator,t),e):e},createIndexedAccessTypeNode:$e,updateIndexedAccessTypeNode:function(e,t,r){return e.objectType!==t||e.indexType!==r?p($e(t,r),e):e},createMappedTypeNode:et,updateMappedTypeNode:function(e,t,r,n,i,a){return e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==n||e.questionToken!==i||e.type!==a?p(et(t,r,n,i,a),e):e},createLiteralTypeNode:tt,updateLiteralTypeNode:function(e,t){return e.literal!==t?p(tt(t),e):e},createTemplateLiteralType:Xe,updateTemplateLiteralType:function(e,t,r){return e.head!==t||e.templateSpans!==r?p(Xe(t,r),e):e},createObjectBindingPattern:rt,updateObjectBindingPattern:function(e,t){return e.elements!==t?p(rt(t),e):e},createArrayBindingPattern:nt,updateArrayBindingPattern:function(e,t){return e.elements!==t?p(nt(t),e):e},createBindingElement:it,updateBindingElement:function(e,t,r,n,i){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?p(it(t,r,n,i),e):e},createArrayLiteralExpression:ot,updateArrayLiteralExpression:function(e,t){return e.elements!==t?p(ot(t,e.multiLine),e):e},createObjectLiteralExpression:st,updateObjectLiteralExpression:function(e,t){return e.properties!==t?p(st(t,e.multiLine),e):e},createPropertyAccessExpression:4&n?function(t,r){return e.setEmitFlags(ct(t,r),131072)}:ct,updatePropertyAccessExpression:function(t,r,n){if(e.isPropertyAccessChain(t))return lt(t,r,t.questionDotToken,e.cast(n,e.isIdentifier));return t.expression!==r||t.name!==n?p(ct(r,n),t):t},createPropertyAccessChain:4&n?function(t,r,n){return e.setEmitFlags(ut(t,r,n),131072)}:ut,updatePropertyAccessChain:lt,createElementAccessExpression:_t,updateElementAccessExpression:function(t,r,n){if(e.isElementAccessChain(t))return pt(t,r,t.questionDotToken,n);return t.expression!==r||t.argumentExpression!==n?p(_t(r,n),t):t},createElementAccessChain:dt,updateElementAccessChain:pt,createCallExpression:ft,updateCallExpression:function(t,r,n,i){if(e.isCallChain(t))return mt(t,r,t.questionDotToken,n,i);return t.expression!==r||t.typeArguments!==n||t.arguments!==i?p(ft(r,n,i),t):t},createCallChain:gt,updateCallChain:mt,createNewExpression:yt,updateNewExpression:function(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?p(yt(t,r,n),e):e},createTaggedTemplateExpression:vt,updateTaggedTemplateExpression:function(e,t,r,n){return e.tag!==t||e.typeArguments!==r||e.template!==n?p(vt(t,r,n),e):e},createTypeAssertion:ht,updateTypeAssertion:bt,createParenthesizedExpression:xt,updateParenthesizedExpression:Dt,createFunctionExpression:St,updateFunctionExpression:Tt,createArrowFunction:Ct,updateArrowFunction:Et,createDeleteExpression:kt,updateDeleteExpression:function(e,t){return e.expression!==t?p(kt(t),e):e},createTypeOfExpression:Nt,updateTypeOfExpression:function(e,t){return e.expression!==t?p(Nt(t),e):e},createVoidExpression:At,updateVoidExpression:function(e,t){return e.expression!==t?p(At(t),e):e},createAwaitExpression:Ft,updateAwaitExpression:function(e,t){return e.expression!==t?p(Ft(t),e):e},createPrefixUnaryExpression:Pt,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?p(Pt(e.operator,t),e):e},createPostfixUnaryExpression:wt,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?p(wt(t,e.operator),e):e},createBinaryExpression:It,updateBinaryExpression:function(e,t,r,n){return e.left!==t||e.operatorToken!==r||e.right!==n?p(It(t,r,n),e):e},createConditionalExpression:Mt,updateConditionalExpression:function(e,t,r,n,i,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==n||e.colonToken!==i||e.whenFalse!==a?p(Mt(t,r,n,i,a),e):e},createTemplateExpression:Lt,updateTemplateExpression:function(e,t,r){return e.head!==t||e.templateSpans!==r?p(Lt(t,r),e):e},createTemplateHead:function(e,t,r){return Rt(15,e,t,r)},createTemplateMiddle:function(e,t,r){return Rt(16,e,t,r)},createTemplateTail:function(e,t,r){return Rt(17,e,t,r)},createNoSubstitutionTemplateLiteral:function(e,t,r){return Rt(14,e,t,r)},createTemplateLiteralLikeNode:Bt,createYieldExpression:jt,updateYieldExpression:function(e,t,r){return e.expression!==r||e.asteriskToken!==t?p(jt(t,r),e):e},createSpreadElement:Jt,updateSpreadElement:function(e,t){return e.expression!==t?p(Jt(t),e):e},createClassExpression:zt,updateClassExpression:Ut,createOmittedExpression:function(){return at(222)},createExpressionWithTypeArguments:Vt,updateExpressionWithTypeArguments:function(e,t,r){return e.expression!==t||e.typeArguments!==r?p(Vt(t,r),e):e},createAsExpression:Kt,updateAsExpression:qt,createNonNullExpression:Wt,updateNonNullExpression:Ht,createNonNullChain:Gt,updateNonNullChain:Xt,createMetaProperty:Qt,updateMetaProperty:function(e,t){return e.name!==t?p(Qt(e.keywordToken,t),e):e},createTemplateSpan:Yt,updateTemplateSpan:function(e,t,r){return e.expression!==t||e.literal!==r?p(Yt(t,r),e):e},createSemicolonClassElement:function(){var e=A(229);return e.transformFlags|=256,e},createBlock:Zt,updateBlock:function(e,t){return e.statements!==t?p(Zt(t,e.multiLine),e):e},createVariableStatement:$t,updateVariableStatement:er,createEmptyStatement:tr,createExpressionStatement:rr,updateExpressionStatement:function(e,t){return e.expression!==t?p(rr(t),e):e},createIfStatement:nr,updateIfStatement:function(e,t,r,n){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?p(nr(t,r,n),e):e},createDoStatement:ir,updateDoStatement:function(e,t,r){return e.statement!==t||e.expression!==r?p(ir(t,r),e):e},createWhileStatement:ar,updateWhileStatement:function(e,t,r){return e.expression!==t||e.statement!==r?p(ar(t,r),e):e},createForStatement:or,updateForStatement:function(e,t,r,n,i){return e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?p(or(t,r,n,i),e):e},createForInStatement:sr,updateForInStatement:function(e,t,r,n){return e.initializer!==t||e.expression!==r||e.statement!==n?p(sr(t,r,n),e):e},createForOfStatement:cr,updateForOfStatement:function(e,t,r,n,i){return e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?p(cr(t,r,n,i),e):e},createContinueStatement:ur,updateContinueStatement:function(e,t){return e.label!==t?p(ur(t),e):e},createBreakStatement:lr,updateBreakStatement:function(e,t){return e.label!==t?p(lr(t),e):e},createReturnStatement:_r,updateReturnStatement:function(e,t){return e.expression!==t?p(_r(t),e):e},createWithStatement:dr,updateWithStatement:function(e,t,r){return e.expression!==t||e.statement!==r?p(dr(t,r),e):e},createSwitchStatement:pr,updateSwitchStatement:function(e,t,r){return e.expression!==t||e.caseBlock!==r?p(pr(t,r),e):e},createLabeledStatement:fr,updateLabeledStatement:gr,createThrowStatement:mr,updateThrowStatement:function(e,t){return e.expression!==t?p(mr(t),e):e},createTryStatement:yr,updateTryStatement:function(e,t,r,n){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?p(yr(t,r,n),e):e},createDebuggerStatement:function(){return A(248)},createVariableDeclaration:vr,updateVariableDeclaration:function(e,t,r,n,i){return e.name!==t||e.type!==n||e.exclamationToken!==r||e.initializer!==i?p(vr(t,r,n,i),e):e},createVariableDeclarationList:hr,updateVariableDeclarationList:function(e,t){return e.declarations!==t?p(hr(t,e.flags),e):e},createFunctionDeclaration:br,updateFunctionDeclaration:xr,createClassDeclaration:Dr,updateClassDeclaration:Sr,createInterfaceDeclaration:Tr,updateInterfaceDeclaration:Cr,createTypeAliasDeclaration:Er,updateTypeAliasDeclaration:kr,createEnumDeclaration:Nr,updateEnumDeclaration:Ar,createModuleDeclaration:Fr,updateModuleDeclaration:Pr,createModuleBlock:wr,updateModuleBlock:function(e,t){return e.statements!==t?p(wr(t),e):e},createCaseBlock:Ir,updateCaseBlock:function(e,t){return e.clauses!==t?p(Ir(t),e):e},createNamespaceExportDeclaration:Or,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?p(Or(t),e):e},createImportEqualsDeclaration:Mr,updateImportEqualsDeclaration:Lr,createImportDeclaration:Rr,updateImportDeclaration:Br,createImportClause:jr,updateImportClause:function(e,t,r,n){return e.isTypeOnly!==t||e.name!==r||e.namedBindings!==n?p(jr(t,r,n),e):e},createNamespaceImport:Jr,updateNamespaceImport:function(e,t){return e.name!==t?p(Jr(t),e):e},createNamespaceExport:zr,updateNamespaceExport:function(e,t){return e.name!==t?p(zr(t),e):e},createNamedImports:Ur,updateNamedImports:function(e,t){return e.elements!==t?p(Ur(t),e):e},createImportSpecifier:Vr,updateImportSpecifier:function(e,t,r){return e.propertyName!==t||e.name!==r?p(Vr(t,r),e):e},createExportAssignment:Kr,updateExportAssignment:qr,createExportDeclaration:Wr,updateExportDeclaration:Hr,createNamedExports:Gr,updateNamedExports:function(e,t){return e.elements!==t?p(Gr(t),e):e},createExportSpecifier:Xr,updateExportSpecifier:function(e,t,r){return e.propertyName!==t||e.name!==r?p(Xr(t,r),e):e},createMissingDeclaration:function(){return F(271,void 0,void 0)},createExternalModuleReference:Qr,updateExternalModuleReference:function(e,t){return e.expression!==t?p(Qr(t),e):e},get createJSDocAllType(){return b(303)},get createJSDocUnknownType(){return b(304)},get createJSDocNonNullableType(){return x(306)},get updateJSDocNonNullableType(){return D(306)},get createJSDocNullableType(){return x(305)},get updateJSDocNullableType(){return D(305)},get createJSDocOptionalType(){return x(307)},get updateJSDocOptionalType(){return D(307)},get createJSDocVariadicType(){return x(309)},get updateJSDocVariadicType(){return D(309)},get createJSDocNamepathType(){return x(310)},get updateJSDocNamepathType(){return D(310)},createJSDocFunctionType:Zr,updateJSDocFunctionType:function(e,t,r){return e.parameters!==t||e.type!==r?p(Zr(t,r),e):e},createJSDocTypeLiteral:$r,updateJSDocTypeLiteral:function(e,t,r){return e.jsDocPropertyTags!==t||e.isArrayType!==r?p($r(t,r),e):e},createJSDocTypeExpression:en,updateJSDocTypeExpression:function(e,t){return e.type!==t?p(en(t),e):e},createJSDocSignature:tn,updateJSDocSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?p(tn(t,r,n),e):e},createJSDocTemplateTag:an,updateJSDocTemplateTag:function(e,t,r,n,i){void 0===t&&(t=rn(e));return e.tagName!==t||e.constraint!==r||e.typeParameters!==n||e.comment!==i?p(an(t,r,n,i),e):e},createJSDocTypedefTag:on,updateJSDocTypedefTag:function(e,t,r,n,i){void 0===t&&(t=rn(e));return e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?p(on(t,r,n,i),e):e},createJSDocParameterTag:sn,updateJSDocParameterTag:function(e,t,r,n,i,a,o){void 0===t&&(t=rn(e));return e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?p(sn(t,r,n,i,a,o),e):e},createJSDocPropertyTag:cn,updateJSDocPropertyTag:function(e,t,r,n,i,a,o){void 0===t&&(t=rn(e));return e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?p(cn(t,r,n,i,a,o),e):e},createJSDocCallbackTag:un,updateJSDocCallbackTag:function(e,t,r,n,i){void 0===t&&(t=rn(e));return e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?p(un(t,r,n,i),e):e},createJSDocAugmentsTag:ln,updateJSDocAugmentsTag:function(e,t,r,n){void 0===t&&(t=rn(e));return e.tagName!==t||e.class!==r||e.comment!==n?p(ln(t,r,n),e):e},createJSDocImplementsTag:_n,updateJSDocImplementsTag:function(e,t,r,n){void 0===t&&(t=rn(e));return e.tagName!==t||e.class!==r||e.comment!==n?p(_n(t,r,n),e):e},createJSDocSeeTag:dn,updateJSDocSeeTag:function(e,t,r,n){return e.tagName!==t||e.name!==r||e.comment!==n?p(dn(t,r,n),e):e},createJSDocNameReference:pn,updateJSDocNameReference:function(e,t){return e.name!==t?p(pn(t),e):e},get createJSDocTypeTag(){return C(329)},get updateJSDocTypeTag(){return E(329)},get createJSDocReturnTag(){return C(327)},get updateJSDocReturnTag(){return E(327)},get createJSDocThisTag(){return C(328)},get updateJSDocThisTag(){return E(328)},get createJSDocEnumTag(){return C(325)},get updateJSDocEnumTag(){return E(325)},get createJSDocAuthorTag(){return S(317)},get updateJSDocAuthorTag(){return T(317)},get createJSDocClassTag(){return S(319)},get updateJSDocClassTag(){return T(319)},get createJSDocPublicTag(){return S(320)},get updateJSDocPublicTag(){return T(320)},get createJSDocPrivateTag(){return S(321)},get updateJSDocPrivateTag(){return T(321)},get createJSDocProtectedTag(){return S(322)},get updateJSDocProtectedTag(){return T(322)},get createJSDocReadonlyTag(){return S(323)},get updateJSDocReadonlyTag(){return T(323)},get createJSDocDeprecatedTag(){return S(318)},get updateJSDocDeprecatedTag(){return T(318)},createJSDocUnknownTag:mn,updateJSDocUnknownTag:function(e,t,r){return e.tagName!==t||e.comment!==r?p(mn(t,r),e):e},createJSDocComment:yn,updateJSDocComment:function(e,t,r){return e.comment!==t||e.tags!==r?p(yn(t,r),e):e},createJsxElement:vn,updateJsxElement:function(e,t,r,n){return e.openingElement!==t||e.children!==r||e.closingElement!==n?p(vn(t,r,n),e):e},createJsxSelfClosingElement:hn,updateJsxSelfClosingElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?p(hn(t,r,n),e):e},createJsxOpeningElement:bn,updateJsxOpeningElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?p(bn(t,r,n),e):e},createJsxClosingElement:xn,updateJsxClosingElement:function(e,t){return e.tagName!==t?p(xn(t),e):e},createJsxFragment:Dn,createJsxText:Sn,updateJsxText:function(e,t,r){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?p(Sn(t,r),e):e},createJsxOpeningFragment:function(){var e=A(278);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){var e=A(279);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,r,n){return e.openingFragment!==t||e.children!==r||e.closingFragment!==n?p(Dn(t,r,n),e):e},createJsxAttribute:Tn,updateJsxAttribute:function(e,t,r){return e.name!==t||e.initializer!==r?p(Tn(t,r),e):e},createJsxAttributes:Cn,updateJsxAttributes:function(e,t){return e.properties!==t?p(Cn(t),e):e},createJsxSpreadAttribute:En,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?p(En(t),e):e},createJsxExpression:kn,updateJsxExpression:function(e,t){return e.expression!==t?p(kn(e.dotDotDotToken,t),e):e},createCaseClause:Nn,updateCaseClause:function(e,t,r){return e.expression!==t||e.statements!==r?p(Nn(t,r),e):e},createDefaultClause:An,updateDefaultClause:function(e,t){return e.statements!==t?p(An(t),e):e},createHeritageClause:Fn,updateHeritageClause:function(e,t){return e.types!==t?p(Fn(e.token,t),e):e},createCatchClause:Pn,updateCatchClause:function(e,t,r){return e.variableDeclaration!==t||e.block!==r?p(Pn(t,r),e):e},createPropertyAssignment:wn,updatePropertyAssignment:function(e,t,r){return e.name!==t||e.initializer!==r?function(e,t){t.decorators&&(e.decorators=t.decorators);t.modifiers&&(e.modifiers=t.modifiers);t.questionToken&&(e.questionToken=t.questionToken);t.exclamationToken&&(e.exclamationToken=t.exclamationToken);return p(e,t)}(wn(t,r),e):e},createShorthandPropertyAssignment:In,updateShorthandPropertyAssignment:function(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?function(e,t){t.decorators&&(e.decorators=t.decorators);t.modifiers&&(e.modifiers=t.modifiers);t.equalsToken&&(e.equalsToken=t.equalsToken);t.questionToken&&(e.questionToken=t.questionToken);t.exclamationToken&&(e.exclamationToken=t.exclamationToken);return p(e,t)}(In(t,r),e):e},createSpreadAssignment:On,updateSpreadAssignment:function(e,t){return e.expression!==t?p(On(t),e):e},createEnumMember:Mn,updateEnumMember:function(e,t,r){return e.name!==t||e.initializer!==r?p(Mn(t,r),e):e},createSourceFile:function(e,t,r){var n=d.createBaseSourceFileNode(297);return n.statements=N(e),n.endOfFileToken=t,n.flags|=r,n.fileName="",n.text="",n.languageVersion=0,n.languageVariant=0,n.scriptKind=0,n.isDeclarationFile=!1,n.hasNoDefaultLib=!1,n.transformFlags|=l(n.statements)|u(n.endOfFileToken),n},updateSourceFile:function(t,r,n,i,a,o,s){void 0===n&&(n=t.isDeclarationFile);void 0===i&&(i=t.referencedFiles);void 0===a&&(a=t.typeReferenceDirectives);void 0===o&&(o=t.hasNoDefaultLib);void 0===s&&(s=t.libReferenceDirectives);return t.statements!==r||t.isDeclarationFile!==n||t.referencedFiles!==i||t.typeReferenceDirectives!==a||t.hasNoDefaultLib!==o||t.libReferenceDirectives!==s?p(function(t,r,n,i,a,o,s){var c=d.createBaseSourceFileNode(297);for(var _ in t)"emitNode"!==_&&!e.hasProperty(c,_)&&e.hasProperty(t,_)&&(c[_]=t[_]);return c.flags|=t.flags,c.statements=N(r),c.endOfFileToken=t.endOfFileToken,c.isDeclarationFile=n,c.referencedFiles=i,c.typeReferenceDirectives=a,c.hasNoDefaultLib=o,c.libReferenceDirectives=s,c.transformFlags=l(c.statements)|u(c.endOfFileToken),c}(t,r,n,i,a,o,s),t):t},createBundle:Ln,updateBundle:function(t,r,n){void 0===n&&(n=e.emptyArray);return t.sourceFiles!==r||t.prepends!==n?p(Ln(r,n),t):t},createUnparsedSource:function(t,r,n){var i=A(299);return i.prologues=t,i.syntheticReferences=r,i.texts=n,i.fileName="",i.text="",i.referencedFiles=e.emptyArray,i.libReferenceDirectives=e.emptyArray,i.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(i,t)},i},createUnparsedPrologue:function(e){return Rn(292,e)},createUnparsedPrepend:function(e,t){var r=Rn(293,e);return r.texts=t,r},createUnparsedTextLike:function(e,t){return Rn(t?295:294,e)},createUnparsedSyntheticReference:function(e){var t=A(296);return t.data=e.data,t.section=e,t},createInputFiles:function(){var e=A(300);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t,r){void 0===t&&(t=!1);var n=A(227);return n.type=e,n.isSpread=t,n.tupleNameSource=r,n},createSyntaxList:function(e){var t=A(334);return t._children=e,t},createNotEmittedStatement:function(t){var r=A(335);return r.original=t,e.setTextRange(r,t),r},createPartiallyEmittedExpression:Bn,updatePartiallyEmittedExpression:jn,createCommaListExpression:zn,updateCommaListExpression:function(e,t){return e.elements!==t?p(zn(t),e):e},createEndOfDeclarationMarker:function(e){var t=A(339);return t.emitNode={},t.original=e,t},createMergeDeclarationMarker:function(e){var t=A(338);return t.emitNode={},t.original=e,t},createSyntheticReferenceExpression:Un,updateSyntheticReferenceExpression:function(e,t,r){return e.expression!==t||e.thisArg!==r?p(Un(t,r),e):e},cloneNode:Vn,get createComma(){return m(27)},get createAssignment(){return m(62)},get createLogicalOr(){return m(56)},get createLogicalAnd(){return m(55)},get createBitwiseOr(){return m(51)},get createBitwiseXor(){return m(52)},get createBitwiseAnd(){return m(50)},get createStrictEquality(){return m(36)},get createStrictInequality(){return m(37)},get createEquality(){return m(34)},get createInequality(){return m(35)},get createLessThan(){return m(29)},get createLessThanEquals(){return m(32)},get createGreaterThan(){return m(31)},get createGreaterThanEquals(){return m(33)},get createLeftShift(){return m(47)},get createRightShift(){return m(48)},get createUnsignedRightShift(){return m(49)},get createAdd(){return m(39)},get createSubtract(){return m(40)},get createMultiply(){return m(41)},get createDivide(){return m(43)},get createModulo(){return m(44)},get createExponent(){return m(42)},get createPrefixPlus(){return v(39)},get createPrefixMinus(){return v(40)},get createPrefixIncrement(){return v(45)},get createPrefixDecrement(){return v(46)},get createBitwiseNot(){return v(54)},get createLogicalNot(){return v(53)},get createPostfixIncrement(){return h(45)},get createPostfixDecrement(){return h(46)},createImmediatelyInvokedFunctionExpression:function(e,t,r){return ft(St(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Zt(e,!0)),void 0,r?[r]:[])},createImmediatelyInvokedArrowFunction:function(e,t,r){return ft(Ct(void 0,void 0,t?[t]:[],void 0,void 0,Zt(e,!0)),void 0,r?[r]:[])},createVoidZero:Kn,createExportDefault:function(e){return Kr(void 0,void 0,!1,e)},createExternalModuleExport:function(e){return Wr(void 0,void 0,!1,Gr([Xr(void 0,e)]))},createTypeCheck:function(e,t){return"undefined"===t?k.createStrictEquality(e,Kn()):k.createStrictEquality(Nt(e),q(t))},createMethodCall:qn,createGlobalMethodCall:Wn,createFunctionBindCall:function(e,t,r){return qn(e,"bind",__spreadArray([t],r))},createFunctionCallCall:function(e,t,r){return qn(e,"call",__spreadArray([t],r))},createFunctionApplyCall:function(e,t,r){return qn(e,"apply",[t,r])},createArraySliceCall:function(e,t){return qn(e,"slice",void 0===t?[]:[ii(t)])},createArrayConcatCall:function(e,t){return qn(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,r){return Wn("Object","defineProperty",[e,ii(t),r])},createPropertyDescriptor:function(t,r){var n=[];Hn(n,"enumerable",ii(t.enumerable)),Hn(n,"configurable",ii(t.configurable));var i=Hn(n,"writable",ii(t.writable));i=Hn(n,"value",t.value)||i;var a=Hn(n,"get",t.get);return a=Hn(n,"set",t.set)||a,e.Debug.assert(!(i&&a),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),st(n,!r)},createCallBinding:function(t,r,n,i){void 0===i&&(i=!1);var a,o,s=e.skipOuterExpressions(t,15);e.isSuperProperty(s)?(a=ee(),o=s):e.isSuperKeyword(s)?(a=ee(),o=void 0!==n&&n<2?e.setTextRange(X("_super"),s):s):4096&e.getEmitFlags(s)?(a=Kn(),o=f().parenthesizeLeftSideOfAccess(s)):e.isPropertyAccessExpression(s)?Gn(s.expression,i)?(a=Q(r),o=ct(e.setTextRange(k.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s):e.isElementAccessExpression(s)?Gn(s.expression,i)?(a=Q(r),o=_t(e.setTextRange(k.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s):(a=Kn(),o=f().parenthesizeLeftSideOfAccess(t));return{target:o,thisArg:a}},inlineExpressions:function(t){return t.length>10?zn(t):e.reduceLeft(t,k.createComma)},getInternalName:function(e,t,r){return Xn(e,t,r,49152)},getLocalName:function(e,t,r){return Xn(e,t,r,16384)},getExportName:Qn,getDeclarationName:function(e,t,r){return Xn(e,t,r)},getNamespaceMemberName:Yn,getExternalModuleOrNamespaceExportName:function(t,r,n,i){if(t&&e.hasSyntacticModifier(r,1))return Yn(t,Xn(r),n,i);return Qn(r,n,i)},restoreOuterExpressions:function t(r,n,i){void 0===i&&(i=15);if(r&&e.isOuterExpression(r,i)&&(a=r,!(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))))return function(e,t){switch(e.kind){case 207:return Dt(e,t);case 206:return bt(e,e.type,t);case 224:return qt(e,t,e.type);case 225:return Ht(e,t);case 336:return jn(e,t)}}(r,t(r.expression,n));var a;return n},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=gr(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);i&&i(n);return a},createUseStrictPrologue:Zn,copyPrologue:function(e,t,r,n){var i=$n(e,t,r);return ei(e,t,i,n)},copyStandardPrologue:$n,copyCustomPrologue:ei,ensureUseStrict:function(t){if(!e.findUseStrictPrologue(t))return e.setTextRange(N(__spreadArray([Zn()],t)),t);return t},liftToBlock:function(t){return e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||Zt(t)},mergeLexicalEnvironment:function(t,r){if(!e.some(r))return t;var n=ti(t,e.isPrologueDirective,0),i=ti(t,e.isHoistedFunction,n),a=ti(t,e.isHoistedVariableStatement,i),o=ti(r,e.isPrologueDirective,0),s=ti(r,e.isHoistedFunction,o),c=ti(r,e.isHoistedVariableStatement,s),u=ti(r,e.isCustomPrologue,c);e.Debug.assert(u===r.length,"Expected declarations to be valid standard or custom prologues");var l=e.isNodeArray(t)?t.slice():t;u>c&&l.splice.apply(l,__spreadArray([a,0],r.slice(c,u)));c>s&&l.splice.apply(l,__spreadArray([i,0],r.slice(s,c)));s>o&&l.splice.apply(l,__spreadArray([n,0],r.slice(o,s)));if(o>0)if(0===n)l.splice.apply(l,__spreadArray([0,0],r.slice(0,o)));else{for(var _=new e.Map,d=0;d<n;d++){var p=t[d];_.set(p.expression.text,!0)}for(d=o-1;d>=0;d--){var f=r[d];_.has(f.expression.text)||l.unshift(f)}}if(e.isNodeArray(t))return e.setTextRange(N(l,t.hasTrailingComma),t);return t},updateModifiers:function(t,r){var n;"number"==typeof r&&(r=ie(r));return e.isParameter(t)?ue(t,t.decorators,r,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isPropertySignature(t)?de(t,r,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?fe(t,t.decorators,r,t.name,null!==(n=t.questionToken)&&void 0!==n?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?me(t,r,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?ve(t,t.decorators,r,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?be(t,t.decorators,r,t.parameters,t.body):e.isGetAccessorDeclaration(t)?De(t,t.decorators,r,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?Te(t,t.decorators,r,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Ne(t,t.decorators,r,t.parameters,t.type):e.isFunctionExpression(t)?Tt(t,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?Et(t,r,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?Ut(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?er(t,r,t.declarationList):e.isFunctionDeclaration(t)?xr(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?Sr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?Cr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?kr(t,t.decorators,r,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Ar(t,t.decorators,r,t.name,t.members):e.isModuleDeclaration(t)?Pr(t,t.decorators,r,t.name,t.body):e.isImportEqualsDeclaration(t)?Lr(t,t.decorators,r,t.isTypeOnly,t.name,t.moduleReference):e.isImportDeclaration(t)?Br(t,t.decorators,r,t.importClause,t.moduleSpecifier):e.isExportAssignment(t)?qr(t,t.decorators,r,t.expression):e.isExportDeclaration(t)?Hr(t,t.decorators,r,t.isTypeOnly,t.exportClause,t.moduleSpecifier):e.Debug.assertNever(t)}};return k;function N(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t))return void 0===t.transformFlags&&_(t),e.Debug.attachNodeArrayDebugInfo(t),t;var n=t.length,i=n>=1&&n<=4?t.slice():t;return e.setTextRangePosEnd(i,-1,-1),i.hasTrailingComma=!!r,_(i),e.Debug.attachNodeArrayDebugInfo(i),i}function A(e){return d.createBaseNode(e)}function F(e,t,r){var n=A(e);return n.decorators=ri(t),n.modifiers=ri(r),n.transformFlags|=l(n.decorators)|l(n.modifiers),n.symbol=void 0,n.localSymbol=void 0,n.locals=void 0,n.nextContainer=void 0,n}function P(t,r,n,i){var a=F(t,r,n);if(i=ni(i),a.name=i,i)switch(a.kind){case 165:case 167:case 168:case 163:case 288:if(e.isIdentifier(i)){a.transformFlags|=c(i);break}default:a.transformFlags|=u(i)}return a}function w(e,t,r,n,i){var a=P(e,t,r,n);return a.typeParameters=ri(i),a.transformFlags|=l(a.typeParameters),i&&(a.transformFlags|=1),a}function I(e,t,r,n,i,a,o){var s=w(e,t,r,n,i);return s.parameters=N(a),s.type=o,s.transformFlags|=l(s.parameters)|u(s.type),o&&(s.transformFlags|=1),s}function O(e,t){return t.typeArguments&&(e.typeArguments=t.typeArguments),p(e,t)}function M(e,t,r,n,i,a,o,s){var c=I(e,t,r,n,i,a,o);return c.body=s,c.transformFlags|=-8388609&u(c.body),s||(c.transformFlags|=1),c}function L(e,t){return t.exclamationToken&&(e.exclamationToken=t.exclamationToken),t.typeArguments&&(e.typeArguments=t.typeArguments),O(e,t)}function R(e,t,r,n,i,a){var o=w(e,t,r,n,i);return o.heritageClauses=ri(a),o.transformFlags|=l(o.heritageClauses),o}function B(e,t,r,n,i,a,o){var s=R(e,t,r,n,i,a);return s.members=N(o),s.transformFlags|=l(s.members),s}function j(e,t,r,n,i){var a=P(e,t,r,n);return a.initializer=i,a.transformFlags|=u(a.initializer),a}function J(e,t,r,n,i,a){var o=j(e,t,r,n,a);return o.type=i,o.transformFlags|=u(i),i&&(o.transformFlags|=1),o}function z(e,t){var r=Z(e);return r.text=t,r}function U(e,t){void 0===t&&(t=0);var r=z(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=256),r}function V(t){var r=z(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function K(e,t){var r=z(10,e);return r.singleQuote=t,r}function q(e,t,r){var n=K(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=256),n}function W(e){return z(13,e)}function H(t,r){void 0===r&&t&&(r=e.stringToToken(t)),78===r&&(r=void 0);var n=d.createBaseIdentifierNode(78);return n.originalKeywordKind=r,n.escapedText=e.escapeLeadingUnderscores(t),n}function G(e,t){var n=H(e,void 0);return n.autoGenerateFlags=t,n.autoGenerateId=r,r++,n}function X(e,t,r){var n=H(e,r);return t&&(n.typeArguments=N(t)),130===n.originalKeywordKind&&(n.transformFlags|=8388608),n}function Q(e,t){var r=1;t&&(r|=8);var n=G("",r);return e&&e(n),n}function Y(t,r){void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags");var n=G(t&&e.isIdentifier(t)?e.idText(t):"",4|r);return n.original=t,n}function Z(e){return d.createBaseTokenNode(e)}function $(t){e.Debug.assert(t>=0&&t<=156,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(78!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var r=Z(t),n=0;switch(t){case 129:n=96;break;case 122:case 120:case 121:case 142:case 125:case 133:case 84:case 128:case 144:case 155:case 141:case 145:case 147:case 131:case 148:case 113:case 152:case 150:n=1;break;case 123:case 105:n=256;break;case 107:n=4096}return n&&(r.transformFlags|=n),r}function ee(){return $(107)}function te(){return $(109)}function re(){return $(94)}function ne(e){return $(e)}function ie(e){var t=[];return 1&e&&t.push(ne(92)),2&e&&t.push(ne(133)),512&e&&t.push(ne(87)),2048&e&&t.push(ne(84)),4&e&&t.push(ne(122)),8&e&&t.push(ne(120)),16&e&&t.push(ne(121)),128&e&&t.push(ne(125)),32&e&&t.push(ne(123)),64&e&&t.push(ne(142)),256&e&&t.push(ne(129)),t}function ae(e,t){var r=A(157);return r.left=e,r.right=ni(t),r.transformFlags|=u(r.left)|c(r.right),r}function oe(e){var t=A(158);return t.expression=f().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=33024|u(t.expression),t}function se(e,t,r){var n=P(159,void 0,void 0,e);return n.constraint=t,n.default=r,n.transformFlags=1,n}function ce(t,r,n,i,a,o,s){var c=J(160,t,r,i,o,s&&f().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=n,c.questionToken=a,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=u(c.dotDotDotToken)|u(c.questionToken),a&&(c.transformFlags|=1),92&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=2048),(s||n)&&(c.transformFlags|=256)),c}function ue(e,t,r,n,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==n||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?p(ce(t,r,n,i,a,o,s),e):e}function le(e){var t=A(161);return t.expression=f().parenthesizeLeftSideOfAccess(e),t.transformFlags|=2049|u(t.expression),t}function _e(e,t,r,n){var i=P(162,void 0,e,t);return i.type=n,i.questionToken=r,i.transformFlags=1,i}function de(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?p(_e(t,r,n,i),e):e}function pe(t,r,n,i,a,o){var s=J(163,t,r,n,a,o);return s.questionToken=i&&e.isQuestionToken(i)?i:void 0,s.exclamationToken=i&&e.isExclamationToken(i)?i:void 0,s.transformFlags|=u(s.questionToken)|u(s.exclamationToken)|4194304,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=2048),(i||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function fe(t,r,n,i,a,o,s){return t.decorators!==r||t.modifiers!==n||t.name!==i||t.questionToken!==(void 0!==a&&e.isQuestionToken(a)?a:void 0)||t.exclamationToken!==(void 0!==a&&e.isExclamationToken(a)?a:void 0)||t.type!==o||t.initializer!==s?p(pe(r,n,i,a,o,s),t):t}function ge(e,t,r,n,i,a){var o=I(164,void 0,e,t,n,i,a);return o.questionToken=r,o.transformFlags=1,o}function me(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?O(ge(t,r,n,i,a,o),e):e}function ye(t,r,n,i,a,o,s,c,l){var _=M(165,t,r,i,o,s,c,l);return _.asteriskToken=n,_.questionToken=a,_.transformFlags|=u(_.asteriskToken)|u(_.questionToken)|256,a&&(_.transformFlags|=1),256&e.modifiersToFlags(_.modifiers)?_.transformFlags|=n?32:64:n&&(_.transformFlags|=512),_}function ve(e,t,r,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?L(ye(t,r,n,i,a,o,s,c,u),e):e}function he(e,t,r,n){var i=M(166,e,t,void 0,void 0,r,void 0,n);return i.transformFlags|=256,i}function be(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?L(he(t,r,n,i),e):e}function xe(e,t,r,n,i,a){return M(167,e,t,r,void 0,n,i,a)}function De(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.type!==a||e.body!==o?L(xe(t,r,n,i,a,o),e):e}function Se(e,t,r,n,i){return M(168,e,t,r,void 0,n,void 0,i)}function Te(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?L(Se(t,r,n,i,a),e):e}function Ce(e,t,r){var n=I(169,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ee(e,t,r){var n=I(170,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function ke(e,t,r,n){var i=I(171,e,t,void 0,void 0,r,n);return i.transformFlags=1,i}function Ne(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?O(ke(t,r,n,i),e):e}function Ae(e,t){var r=A(194);return r.type=e,r.literal=t,r.transformFlags=1,r}function Fe(e,t,r){var n=A(172);return n.assertsModifier=e,n.parameterName=ni(t),n.type=r,n.transformFlags=1,n}function Pe(e,t){var r=A(173);return r.typeName=ni(e),r.typeArguments=t&&f().parenthesizeTypeArguments(N(t)),r.transformFlags=1,r}function we(e,t,r){var n=I(174,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ie(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return 4===t.length?Oe.apply(void 0,t):3===t.length?Me.apply(void 0,t):e.Debug.fail("Incorrect number of arguments specified.")}function Oe(e,t,r,n){var i=I(175,void 0,e,void 0,t,r,n);return i.transformFlags=1,i}function Me(e,t,r){return Oe(void 0,e,t,r)}function Le(e,t,r,n,i){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i?O(Ie(t,r,n,i),e):e}function Re(e,t,r,n){return Le(e,e.modifiers,t,r,n)}function Be(e){var t=A(176);return t.exprName=e,t.transformFlags=1,t}function je(e){var t=A(177);return t.members=N(e),t.transformFlags=1,t}function Je(e){var t=A(178);return t.elementType=f().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function ze(e){var t=A(179);return t.elements=N(e),t.transformFlags=1,t}function Ue(e,t,r,n){var i=A(192);return i.dotDotDotToken=e,i.name=t,i.questionToken=r,i.type=n,i.transformFlags=1,i}function Ve(e){var t=A(180);return t.type=f().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function Ke(e){var t=A(181);return t.type=e,t.transformFlags=1,t}function qe(e,t){var r=A(e);return r.types=f().parenthesizeConstituentTypesOfUnionOrIntersectionType(t),r.transformFlags=1,r}function We(e,t){return e.types!==t?p(qe(e.kind,t),e):e}function He(e,t,r,n){var i=A(184);return i.checkType=f().parenthesizeMemberOfConditionalType(e),i.extendsType=f().parenthesizeMemberOfConditionalType(t),i.trueType=r,i.falseType=n,i.transformFlags=1,i}function Ge(e){var t=A(185);return t.typeParameter=e,t.transformFlags=1,t}function Xe(e,t){var r=A(193);return r.head=e,r.templateSpans=N(t),r.transformFlags=1,r}function Qe(e,t,r,n){void 0===n&&(n=!1);var i=A(195);return i.argument=e,i.qualifier=t,i.typeArguments=r&&f().parenthesizeTypeArguments(r),i.isTypeOf=n,i.transformFlags=1,i}function Ye(e){var t=A(186);return t.type=e,t.transformFlags=1,t}function Ze(e,t){var r=A(188);return r.operator=e,r.type=f().parenthesizeMemberOfElementType(t),r.transformFlags=1,r}function $e(e,t){var r=A(189);return r.objectType=f().parenthesizeMemberOfElementType(e),r.indexType=t,r.transformFlags=1,r}function et(e,t,r,n,i){var a=A(190);return a.readonlyToken=e,a.typeParameter=t,a.nameType=r,a.questionToken=n,a.type=i,a.transformFlags=1,a}function tt(e){var t=A(191);return t.literal=e,t.transformFlags=1,t}function rt(e){var t=A(196);return t.elements=N(e),t.transformFlags|=131328|l(t.elements),8192&t.transformFlags&&(t.transformFlags|=16416),t}function nt(e){var t=A(197);return t.elements=N(e),t.transformFlags|=131328|l(t.elements),t}function it(t,r,n,i){var a=j(198,void 0,void 0,n,i);return a.propertyName=ni(r),a.dotDotDotToken=t,a.transformFlags|=256|u(a.dotDotDotToken),a.propertyName&&(a.transformFlags|=e.isIdentifier(a.propertyName)?c(a.propertyName):u(a.propertyName)),t&&(a.transformFlags|=8192),a}function at(e){return A(e)}function ot(e,t){var r=at(199);return r.elements=f().parenthesizeExpressionsOfCommaDelimitedList(N(e)),r.multiLine=t,r.transformFlags|=l(r.elements),r}function st(e,t){var r=at(200);return r.properties=N(e),r.multiLine=t,r.transformFlags|=l(r.properties),r}function ct(t,r){var n=at(201);return n.expression=f().parenthesizeLeftSideOfAccess(t),n.name=ni(r),n.transformFlags=u(n.expression)|(e.isIdentifier(n.name)?c(n.name):u(n.name)),e.isSuperKeyword(t)&&(n.transformFlags|=96),n}function ut(t,r,n){var i=at(201);return i.flags|=32,i.expression=f().parenthesizeLeftSideOfAccess(t),i.questionDotToken=r,i.name=ni(n),i.transformFlags|=8|u(i.expression)|u(i.questionDotToken)|(e.isIdentifier(i.name)?c(i.name):u(i.name)),i}function lt(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),t.expression!==r||t.questionDotToken!==n||t.name!==i?p(ut(r,n,i),t):t}function _t(t,r){var n=at(202);return n.expression=f().parenthesizeLeftSideOfAccess(t),n.argumentExpression=ii(r),n.transformFlags|=u(n.expression)|u(n.argumentExpression),e.isSuperKeyword(t)&&(n.transformFlags|=96),n}function dt(e,t,r){var n=at(202);return n.flags|=32,n.expression=f().parenthesizeLeftSideOfAccess(e),n.questionDotToken=t,n.argumentExpression=ii(r),n.transformFlags|=u(n.expression)|u(n.questionDotToken)|u(n.argumentExpression)|8,n}function pt(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),t.expression!==r||t.questionDotToken!==n||t.argumentExpression!==i?p(dt(r,n,i),t):t}function ft(t,r,n){var i=at(203);return i.expression=f().parenthesizeLeftSideOfAccess(t),i.typeArguments=ri(r),i.arguments=f().parenthesizeExpressionsOfCommaDelimitedList(N(n)),i.transformFlags|=u(i.expression)|l(i.typeArguments)|l(i.arguments),i.typeArguments&&(i.transformFlags|=1),e.isImportKeyword(i.expression)?i.transformFlags|=2097152:e.isSuperProperty(i.expression)&&(i.transformFlags|=4096),i}function gt(t,r,n,i){var a=at(203);return a.flags|=32,a.expression=f().parenthesizeLeftSideOfAccess(t),a.questionDotToken=r,a.typeArguments=ri(n),a.arguments=f().parenthesizeExpressionsOfCommaDelimitedList(N(i)),a.transformFlags|=u(a.expression)|u(a.questionDotToken)|l(a.typeArguments)|l(a.arguments)|8,a.typeArguments&&(a.transformFlags|=1),e.isSuperProperty(a.expression)&&(a.transformFlags|=4096),a}function mt(t,r,n,i,a){return e.Debug.assert(!!(32&t.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),t.expression!==r||t.questionDotToken!==n||t.typeArguments!==i||t.arguments!==a?p(gt(r,n,i,a),t):t}function yt(e,t,r){var n=at(204);return n.expression=f().parenthesizeExpressionOfNew(e),n.typeArguments=ri(t),n.arguments=r?f().parenthesizeExpressionsOfCommaDelimitedList(r):void 0,n.transformFlags|=u(n.expression)|l(n.typeArguments)|l(n.arguments)|8,n.typeArguments&&(n.transformFlags|=1),n}function vt(t,r,n){var i=at(205);return i.tag=f().parenthesizeLeftSideOfAccess(t),i.typeArguments=ri(r),i.template=n,i.transformFlags|=u(i.tag)|l(i.typeArguments)|u(i.template)|256,i.typeArguments&&(i.transformFlags|=1),e.hasInvalidEscape(i.template)&&(i.transformFlags|=32),i}function ht(e,t){var r=at(206);return r.expression=f().parenthesizeOperandOfPrefixUnary(t),r.type=e,r.transformFlags|=u(r.expression)|u(r.type)|1,r}function bt(e,t,r){return e.type!==t||e.expression!==r?p(ht(t,r),e):e}function xt(e){var t=at(207);return t.expression=e,t.transformFlags=u(t.expression),t}function Dt(e,t){return e.expression!==t?p(xt(t),e):e}function St(t,r,n,i,a,o,s){var c=M(208,void 0,t,n,i,a,o,s);return c.asteriskToken=r,c.transformFlags|=u(c.asteriskToken),c.typeParameters&&(c.transformFlags|=1),256&e.modifiersToFlags(c.modifiers)?c.asteriskToken?c.transformFlags|=32:c.transformFlags|=64:c.asteriskToken&&(c.transformFlags|=512),c}function Tt(e,t,r,n,i,a,o,s){return e.name!==n||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?L(St(t,r,n,i,a,o,s),e):e}function Ct(t,r,n,i,a,o){var s=M(209,void 0,t,void 0,r,n,i,f().parenthesizeConciseBodyOfArrowFunction(o));return s.equalsGreaterThanToken=null!=a?a:$(38),s.transformFlags|=256|u(s.equalsGreaterThanToken),256&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=64),s}function Et(e,t,r,n,i,a,o){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?L(Ct(t,r,n,i,a,o),e):e}function kt(e){var t=at(210);return t.expression=f().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=u(t.expression),t}function Nt(e){var t=at(211);return t.expression=f().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=u(t.expression),t}function At(e){var t=at(212);return t.expression=f().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=u(t.expression),t}function Ft(e){var t=at(213);return t.expression=f().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=524384|u(t.expression),t}function Pt(e,t){var r=at(214);return r.operator=e,r.operand=f().parenthesizeOperandOfPrefixUnary(t),r.transformFlags|=u(r.operand),r}function wt(e,t){var r=at(215);return r.operator=t,r.operand=f().parenthesizeOperandOfPostfixUnary(e),r.transformFlags=u(r.operand),r}function It(t,r,n){var i,a=at(216),o="number"==typeof(i=r)?$(i):i,s=o.kind;return a.left=f().parenthesizeLeftSideOfBinary(s,t),a.operatorToken=o,a.right=f().parenthesizeRightSideOfBinary(s,a.left,n),a.transformFlags|=u(a.left)|u(a.operatorToken)|u(a.right),60===s?a.transformFlags|=8:62===s?e.isObjectLiteralExpression(a.left)?a.transformFlags|=1312|Ot(a.left):e.isArrayLiteralExpression(a.left)&&(a.transformFlags|=1280|Ot(a.left)):42===s||66===s?a.transformFlags|=128:e.isLogicalOrCoalescingAssignmentOperator(s)&&(a.transformFlags|=4),a}function Ot(t){if(16384&t.transformFlags)return 16384;if(32&t.transformFlags)for(var r=0,n=e.getElementsOfBindingOrAssignmentPattern(t);r<n.length;r++){var i=n[r],a=e.getTargetOfBindingOrAssignmentElement(i);if(a&&e.isAssignmentPattern(a)){if(16384&a.transformFlags)return 16384;if(32&a.transformFlags){var o=Ot(a);if(o)return o}}}return 0}function Mt(e,t,r,n,i){var a=at(217);return a.condition=f().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=t?t:$(57),a.whenTrue=f().parenthesizeBranchOfConditionalExpression(r),a.colonToken=null!=n?n:$(58),a.whenFalse=f().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=u(a.condition)|u(a.questionToken)|u(a.whenTrue)|u(a.colonToken)|u(a.whenFalse),a}function Lt(e,t){var r=at(218);return r.head=e,r.templateSpans=N(t),r.transformFlags|=u(r.head)|l(r.templateSpans)|256,r}function Rt(r,n,i,a){void 0===a&&(a=0),e.Debug.assert(!(-2049&a),"Unsupported template flags.");var o=void 0;if(void 0!==i&&i!==n&&"object"==typeof(o=function(r,n){t||(t=e.createScanner(99,!1,0));switch(r){case 14:t.setText("`"+n+"`");break;case 15:t.setText("`"+n+"${");break;case 16:t.setText("}"+n+"${");break;case 17:t.setText("}"+n+"`")}var i,a=t.scan();23===a&&(a=t.reScanTemplateToken(!1));if(t.isUnterminated())return t.setText(void 0),s;switch(a){case 14:case 15:case 16:case 17:i=t.getTokenValue()}if(void 0===i||1!==t.scan())return t.setText(void 0),s;return t.setText(void 0),i}(r,i)))return e.Debug.fail("Invalid raw text");if(void 0===n){if(void 0===o)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");n=o}else void 0!==o&&e.Debug.assert(n===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Bt(r,n,i,a)}function Bt(e,t,r,n){var i=Z(e);return i.text=t,i.rawText=r,i.templateFlags=2048&n,i.transformFlags|=256,i.templateFlags&&(i.transformFlags|=32),i}function jt(t,r){e.Debug.assert(!t||!!r,"A `YieldExpression` with an asteriskToken must have an expression.");var n=at(219);return n.expression=r&&f().parenthesizeExpressionForDisallowedComma(r),n.asteriskToken=t,n.transformFlags|=262432|(u(n.expression)|u(n.asteriskToken)),n}function Jt(e){var t=at(220);return t.expression=f().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=8448|u(t.expression),t}function zt(e,t,r,n,i,a){var o=B(221,e,t,r,n,i,a);return o.transformFlags|=256,o}function Ut(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?p(zt(t,r,n,i,a,o),e):e}function Vt(e,t){var r=A(223);return r.expression=f().parenthesizeLeftSideOfAccess(e),r.typeArguments=t&&f().parenthesizeTypeArguments(t),r.transformFlags|=u(r.expression)|l(r.typeArguments)|256,r}function Kt(e,t){var r=at(224);return r.expression=e,r.type=t,r.transformFlags|=u(r.expression)|u(r.type)|1,r}function qt(e,t,r){return e.expression!==t||e.type!==r?p(Kt(t,r),e):e}function Wt(e){var t=at(225);return t.expression=f().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|u(t.expression),t}function Ht(t,r){return e.isNonNullChain(t)?Xt(t,r):t.expression!==r?p(Wt(r),t):t}function Gt(e){var t=at(225);return t.flags|=32,t.expression=f().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|u(t.expression),t}function Xt(t,r){return e.Debug.assert(!!(32&t.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),t.expression!==r?p(Gt(r),t):t}function Qt(t,r){var n=at(226);switch(n.keywordToken=t,n.name=r,n.transformFlags|=u(n.name),t){case 102:n.transformFlags|=256;break;case 99:n.transformFlags|=4;break;default:return e.Debug.assertNever(t)}return n}function Yt(e,t){var r=A(228);return r.expression=e,r.literal=t,r.transformFlags|=u(r.expression)|u(r.literal)|256,r}function Zt(e,t){var r=A(230);return r.statements=N(e),r.multiLine=t,r.transformFlags|=l(r.statements),r}function $t(t,r){var n=F(232,void 0,t);return n.declarationList=e.isArray(r)?hr(r):r,n.transformFlags|=u(n.declarationList),2&e.modifiersToFlags(n.modifiers)&&(n.transformFlags=1),n}function er(e,t,r){return e.modifiers!==t||e.declarationList!==r?p($t(t,r),e):e}function tr(){return A(231)}function rr(e){var t=A(233);return t.expression=f().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=u(t.expression),t}function nr(e,t,r){var n=A(234);return n.expression=e,n.thenStatement=ai(t),n.elseStatement=ai(r),n.transformFlags|=u(n.expression)|u(n.thenStatement)|u(n.elseStatement),n}function ir(e,t){var r=A(235);return r.statement=ai(e),r.expression=t,r.transformFlags|=u(r.statement)|u(r.expression),r}function ar(e,t){var r=A(236);return r.expression=e,r.statement=ai(t),r.transformFlags|=u(r.expression)|u(r.statement),r}function or(e,t,r,n){var i=A(237);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=ai(n),i.transformFlags|=u(i.initializer)|u(i.condition)|u(i.incrementor)|u(i.statement),i}function sr(e,t,r){var n=A(238);return n.initializer=e,n.expression=t,n.statement=ai(r),n.transformFlags|=u(n.initializer)|u(n.expression)|u(n.statement),n}function cr(e,t,r,n){var i=A(239);return i.awaitModifier=e,i.initializer=t,i.expression=f().parenthesizeExpressionForDisallowedComma(r),i.statement=ai(n),i.transformFlags|=u(i.awaitModifier)|u(i.initializer)|u(i.expression)|u(i.statement)|256,e&&(i.transformFlags|=32),i}function ur(e){var t=A(240);return t.label=ni(e),t.transformFlags|=1048576|u(t.label),t}function lr(e){var t=A(241);return t.label=ni(e),t.transformFlags|=1048576|u(t.label),t}function _r(e){var t=A(242);return t.expression=e,t.transformFlags|=1048608|u(t.expression),t}function dr(e,t){var r=A(243);return r.expression=e,r.statement=ai(t),r.transformFlags|=u(r.expression)|u(r.statement),r}function pr(e,t){var r=A(244);return r.expression=f().parenthesizeExpressionForDisallowedComma(e),r.caseBlock=t,r.transformFlags|=u(r.expression)|u(r.caseBlock),r}function fr(e,t){var r=A(245);return r.label=ni(e),r.statement=ai(t),r.transformFlags|=u(r.label)|u(r.statement),r}function gr(e,t,r){return e.label!==t||e.statement!==r?p(fr(t,r),e):e}function mr(e){var t=A(246);return t.expression=e,t.transformFlags|=u(t.expression),t}function yr(e,t,r){var n=A(247);return n.tryBlock=e,n.catchClause=t,n.finallyBlock=r,n.transformFlags|=u(n.tryBlock)|u(n.catchClause)|u(n.finallyBlock),n}function vr(e,t,r,n){var i=J(249,void 0,void 0,e,r,n&&f().parenthesizeExpressionForDisallowedComma(n));return i.exclamationToken=t,i.transformFlags|=u(i.exclamationToken),t&&(i.transformFlags|=1),i}function hr(e,t){void 0===t&&(t=0);var r=A(250);return r.flags|=3&t,r.declarations=N(e),r.transformFlags|=1048576|l(r.declarations),3&t&&(r.transformFlags|=65792),r}function br(t,r,n,i,a,o,s,c){var l=M(251,t,r,i,a,o,s,c);return l.asteriskToken=n,!l.body||2&e.modifiersToFlags(l.modifiers)?l.transformFlags=1:(l.transformFlags|=1048576|u(l.asteriskToken),256&e.modifiersToFlags(l.modifiers)?l.asteriskToken?l.transformFlags|=32:l.transformFlags|=64:l.asteriskToken&&(l.transformFlags|=512)),l}function xr(e,t,r,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?L(br(t,r,n,i,a,o,s,c),e):e}function Dr(t,r,n,i,a,o){var s=B(252,t,r,n,i,a,o);return 2&e.modifiersToFlags(s.modifiers)?s.transformFlags=1:(s.transformFlags|=256,2048&s.transformFlags&&(s.transformFlags|=1)),s}function Sr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?p(Dr(t,r,n,i,a,o),e):e}function Tr(e,t,r,n,i,a){var o=R(253,e,t,r,n,i);return o.members=N(a),o.transformFlags=1,o}function Cr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?p(Tr(t,r,n,i,a,o),e):e}function Er(e,t,r,n,i){var a=w(254,e,t,r,n);return a.type=i,a.transformFlags=1,a}function kr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.type!==a?p(Er(t,r,n,i,a),e):e}function Nr(e,t,r,n){var i=P(255,e,t,r);return i.members=N(n),i.transformFlags|=1|l(i.members),i.transformFlags&=-8388609,i}function Ar(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.members!==i?p(Nr(t,r,n,i),e):e}function Fr(t,r,n,i,a){void 0===a&&(a=0);var o=F(256,t,r);return o.flags|=1044&a,o.name=n,o.body=i,2&e.modifiersToFlags(o.modifiers)?o.transformFlags=1:o.transformFlags|=u(o.name)|u(o.body)|1,o.transformFlags&=-8388609,o}function Pr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.body!==i?p(Fr(t,r,n,i,e.flags),e):e}function wr(e){var t=A(257);return t.statements=N(e),t.transformFlags|=l(t.statements),t}function Ir(e){var t=A(258);return t.clauses=N(e),t.transformFlags|=l(t.clauses),t}function Or(e){var t=P(259,void 0,void 0,e);return t.transformFlags=1,t}function Mr(t,r,n,i,a){var o=P(260,t,r,i);return o.isTypeOnly=n,o.moduleReference=a,o.transformFlags|=u(o.moduleReference),e.isExternalModuleReference(o.moduleReference)||(o.transformFlags|=1),o.transformFlags&=-8388609,o}function Lr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.name!==i||e.moduleReference!==a?p(Mr(t,r,n,i,a),e):e}function Rr(e,t,r,n){var i=F(261,e,t);return i.importClause=r,i.moduleSpecifier=n,i.transformFlags|=u(i.importClause)|u(i.moduleSpecifier),i.transformFlags&=-8388609,i}function Br(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.importClause!==n||e.moduleSpecifier!==i?p(Rr(t,r,n,i),e):e}function jr(e,t,r){var n=A(262);return n.isTypeOnly=e,n.name=t,n.namedBindings=r,n.transformFlags|=u(n.name)|u(n.namedBindings),e&&(n.transformFlags|=1),n.transformFlags&=-8388609,n}function Jr(e){var t=A(263);return t.name=e,t.transformFlags|=u(t.name),t.transformFlags&=-8388609,t}function zr(e){var t=A(269);return t.name=e,t.transformFlags|=4|u(t.name),t.transformFlags&=-8388609,t}function Ur(e){var t=A(264);return t.elements=N(e),t.transformFlags|=l(t.elements),t.transformFlags&=-8388609,t}function Vr(e,t){var r=A(265);return r.propertyName=e,r.name=t,r.transformFlags|=u(r.propertyName)|u(r.name),r.transformFlags&=-8388609,r}function Kr(e,t,r,n){var i=F(266,e,t);return i.isExportEquals=r,i.expression=r?f().parenthesizeRightSideOfBinary(62,void 0,n):f().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=u(i.expression),i.transformFlags&=-8388609,i}function qr(e,t,r,n){return e.decorators!==t||e.modifiers!==r||e.expression!==n?p(Kr(t,r,e.isExportEquals,n),e):e}function Wr(e,t,r,n,i){var a=F(267,e,t);return a.isTypeOnly=r,a.exportClause=n,a.moduleSpecifier=i,a.transformFlags|=u(a.exportClause)|u(a.moduleSpecifier),a.transformFlags&=-8388609,a}function Hr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.exportClause!==i||e.moduleSpecifier!==a?p(Wr(t,r,n,i,a),e):e}function Gr(e){var t=A(268);return t.elements=N(e),t.transformFlags|=l(t.elements),t.transformFlags&=-8388609,t}function Xr(e,t){var r=A(270);return r.propertyName=ni(e),r.name=ni(t),r.transformFlags|=u(r.propertyName)|u(r.name),r.transformFlags&=-8388609,r}function Qr(e){var t=A(272);return t.expression=e,t.transformFlags|=u(t.expression),t.transformFlags&=-8388609,t}function Yr(e,t){var r=A(e);return r.type=t,r}function Zr(e,t){return I(308,void 0,void 0,void 0,void 0,e,t)}function $r(e,t){void 0===t&&(t=!1);var r=A(312);return r.jsDocPropertyTags=ri(e),r.isArrayType=t,r}function en(e){var t=A(301);return t.type=e,t}function tn(e,t,r){var n=A(313);return n.typeParameters=ri(e),n.parameters=N(t),n.type=r,n}function rn(t){var r=o(t.kind);return t.tagName.escapedText===e.escapeLeadingUnderscores(r)?t.tagName:X(r)}function nn(e,t,r){var n=A(e);return n.tagName=t,n.comment=r,n}function an(e,t,r,n){var i=nn(330,null!=e?e:X("template"),n);return i.constraint=t,i.typeParameters=N(r),i}function on(t,r,n,i){var a=nn(331,null!=t?t:X("typedef"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function sn(e,t,r,n,i,a){var o=nn(326,null!=e?e:X("param"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function cn(e,t,r,n,i,a){var o=nn(333,null!=e?e:X("prop"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function un(t,r,n,i){var a=nn(324,null!=t?t:X("callback"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function ln(e,t,r){var n=nn(315,null!=e?e:X("augments"),r);return n.class=t,n}function _n(e,t,r){var n=nn(316,null!=e?e:X("implements"),r);return n.class=t,n}function dn(e,t,r){var n=nn(332,null!=e?e:X("see"),r);return n.name=t,n}function pn(e){var t=A(302);return t.name=e,t}function fn(e,t,r){return nn(e,null!=t?t:X(o(e)),r)}function gn(e,t,r,n){var i=nn(e,null!=t?t:X(o(e)),n);return i.typeExpression=r,i}function mn(e,t){return nn(314,e,t)}function yn(e,t){var r=A(311);return r.comment=e,r.tags=ri(t),r}function vn(e,t,r){var n=A(273);return n.openingElement=e,n.children=N(t),n.closingElement=r,n.transformFlags|=u(n.openingElement)|l(n.children)|u(n.closingElement)|2,n}function hn(e,t,r){var n=A(274);return n.tagName=e,n.typeArguments=ri(t),n.attributes=r,n.transformFlags|=u(n.tagName)|l(n.typeArguments)|u(n.attributes)|2,n.typeArguments&&(n.transformFlags|=1),n}function bn(e,t,r){var n=A(275);return n.tagName=e,n.typeArguments=ri(t),n.attributes=r,n.transformFlags|=u(n.tagName)|l(n.typeArguments)|u(n.attributes)|2,t&&(n.transformFlags|=1),n}function xn(e){var t=A(276);return t.tagName=e,t.transformFlags|=2|u(t.tagName),t}function Dn(e,t,r){var n=A(277);return n.openingFragment=e,n.children=N(t),n.closingFragment=r,n.transformFlags|=u(n.openingFragment)|l(n.children)|u(n.closingFragment)|2,n}function Sn(e,t){var r=A(11);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r.transformFlags|=2,r}function Tn(e,t){var r=A(280);return r.name=e,r.initializer=t,r.transformFlags|=u(r.name)|u(r.initializer)|2,r}function Cn(e){var t=A(281);return t.properties=N(e),t.transformFlags|=2|l(t.properties),t}function En(e){var t=A(282);return t.expression=e,t.transformFlags|=2|u(t.expression),t}function kn(e,t){var r=A(283);return r.dotDotDotToken=e,r.expression=t,r.transformFlags|=u(r.dotDotDotToken)|u(r.expression)|2,r}function Nn(e,t){var r=A(284);return r.expression=f().parenthesizeExpressionForDisallowedComma(e),r.statements=N(t),r.transformFlags|=u(r.expression)|l(r.statements),r}function An(e){var t=A(285);return t.statements=N(e),t.transformFlags=l(t.statements),t}function Fn(t,r){var n=A(286);switch(n.token=t,n.types=N(r),n.transformFlags|=l(n.types),t){case 93:n.transformFlags|=256;break;case 116:n.transformFlags|=1;break;default:return e.Debug.assertNever(t)}return n}function Pn(t,r){var n=A(287);return t=e.isString(t)?vr(t,void 0,void 0,void 0):t,n.variableDeclaration=t,n.block=r,n.transformFlags|=u(n.variableDeclaration)|u(n.block),t||(n.transformFlags|=16),n}function wn(e,t){var r=P(288,void 0,void 0,e);return r.initializer=f().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=u(r.name)|u(r.initializer),r}function In(e,t){var r=P(289,void 0,void 0,e);return r.objectAssignmentInitializer=t&&f().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=256|u(r.objectAssignmentInitializer),r}function On(e){var t=A(290);return t.expression=f().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=16416|u(t.expression),t}function Mn(e,t){var r=A(291);return r.name=ni(e),r.initializer=t&&f().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=u(r.name)|u(r.initializer)|1,r}function Ln(t,r){void 0===r&&(r=e.emptyArray);var n=A(298);return n.prepends=r,n.sourceFiles=t,n}function Rn(e,t){var r=A(e);return r.data=t,r}function Bn(t,r){var n=A(336);return n.expression=t,n.original=r,n.transformFlags|=1|u(n.expression),e.setTextRange(n,r),n}function jn(e,t){return e.expression!==t?p(Bn(t,e.original),e):e}function Jn(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(e.isCommaListExpression(t))return t.elements;if(e.isBinaryExpression(t)&&e.isCommaToken(t.operatorToken))return[t.left,t.right]}return t}function zn(t){var r=A(337);return r.elements=N(e.sameFlatMap(t,Jn)),r.transformFlags|=l(r.elements),r}function Un(e,t){var r=A(340);return r.expression=e,r.thisArg=t,r.transformFlags|=u(r.expression)|u(r.thisArg),r}function Vn(t){if(void 0===t)return t;var r=e.isSourceFile(t)?d.createBaseSourceFileNode(297):e.isIdentifier(t)?d.createBaseIdentifierNode(78):e.isPrivateIdentifier(t)?d.createBasePrivateIdentifierNode(79):e.isNodeKind(t.kind)?d.createBaseNode(t.kind):d.createBaseTokenNode(t.kind);for(var n in r.flags|=-9&t.flags,r.transformFlags=t.transformFlags,y(r,t),t)!r.hasOwnProperty(n)&&t.hasOwnProperty(n)&&(r[n]=t[n]);return r}function Kn(){return At(U("0"))}function qn(e,t,r){return ft(ct(e,t),void 0,r)}function Wn(e,t,r){return qn(X(e),t,r)}function Hn(e,t,r){return!!r&&(e.push(wn(t,r)),!0)}function Gn(t,r){var n=e.skipParentheses(t);switch(n.kind){case 78:return r;case 107:case 8:case 9:case 10:return!1;case 199:return 0!==n.elements.length;case 200:return n.properties.length>0;default:return!0}}function Xn(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange(Vn(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return Y(t)}function Qn(e,t,r){return Xn(e,t,r,8192)}function Yn(t,r,n,i){var a=ct(t,e.nodeIsSynthesized(r)?r:Vn(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function Zn(){return e.startOnNewLine(rr(q("use strict")))}function $n(t,r,n){e.Debug.assert(0===r.length,"Prologue directives should be at the first statement in the target statements array");for(var i,a=!1,o=0,s=t.length;o<s;){var c=t[o];if(!e.isPrologueDirective(c))break;i=c,e.isStringLiteral(i.expression)&&"use strict"===i.expression.text&&(a=!0),r.push(c),o++}return n&&!a&&r.push(Zn()),o}function ei(t,r,n,i,a){void 0===a&&(a=e.returnTrue);for(var o=t.length;void 0!==n&&n<o;){var s=t[n];if(!(1048576&e.getEmitFlags(s)&&a(s)))break;e.append(r,i?e.visitNode(s,i,e.isStatement):s),n++}return n}function ti(e,t,r){for(var n=r;n<e.length&&t(e[n]);)n++;return n}function ri(e){return e?N(e):void 0}function ni(e){return"string"==typeof e?X(e):e}function ii(e){return"string"==typeof e?q(e):"number"==typeof e?U(e):"boolean"==typeof e?e?te():re():e}function ai(t){return t&&e.isNotEmittedStatement(t)?e.setTextRange(y(tr(),t),t):t}}function i(t,r){return t!==r&&e.setTextRange(t,r),t}function a(t,r){return t!==r&&(y(t,r),e.setTextRange(t,r)),t}function o(t){switch(t){case 329:return"type";case 327:return"returns";case 328:return"this";case 325:return"enum";case 317:return"author";case 319:return"class";case 320:return"public";case 321:return"private";case 322:return"protected";case 323:return"readonly";case 330:return"template";case 331:return"typedef";case 326:return"param";case 333:return"prop";case 324:return"callback";case 315:return"augments";case 316:return"implements";default:return e.Debug.fail("Unsupported kind: "+e.Debug.formatSyntaxKind(t))}}!function(e){e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode"}(e.NodeFactoryFlags||(e.NodeFactoryFlags={})),e.createNodeFactory=n;var s={};function c(e){return-8388609&u(e)}function u(t){if(!t)return 0;var r,n=t.transformFlags&~d(t.kind);return e.isNamedDeclaration(t)&&e.isPropertyName(t.name)?(r=t.name,n|4096&r.transformFlags):n}function l(e){return e?e.transformFlags:0}function _(e){for(var t=0,r=0,n=e;r<n.length;r++){t|=u(n[r])}e.transformFlags=t}function d(e){if(e>=172&&e<=195)return-2;switch(e){case 203:case 204:case 199:return 536879104;case 256:return 546379776;case 160:return 536870912;case 209:return 547309568;case 208:case 251:return 547313664;case 250:return 537018368;case 252:case 221:return 536905728;case 166:return 547311616;case 163:return 536875008;case 165:case 167:case 168:return 538923008;case 128:case 144:case 155:case 141:case 147:case 145:case 131:case 148:case 113:case 159:case 162:case 164:case 169:case 170:case 171:case 253:case 254:return-2;case 200:return 536922112;case 287:return 536887296;case 196:case 197:return 536879104;case 206:case 224:case 336:case 207:case 105:return 536870912;case 201:case 202:default:return 536870912}}e.getTransformFlagsSubtreeExclusions=d;var p=e.createBaseNodeFactory();function f(e){return e.flags|=8,e}var g,m={createBaseSourceFileNode:function(e){return f(p.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return f(p.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return f(p.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return f(p.createBaseTokenNode(e))},createBaseNode:function(e){return f(p.createBaseNode(e))}};function y(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=function(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers,_=t.startsOnNewLine;r||(r={});i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments));a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments));n&&(r.flags=n);o&&(r.commentRange=o);s&&(r.sourceMapRange=s);c&&(r.tokenSourceMapRanges=function(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges));void 0!==u&&(r.constantValue=u);if(l)for(var d=0,p=l;d<p.length;d++){var f=p[d];r.helpers=e.appendIfUnique(r.helpers,f)}void 0!==_&&(r.startsOnNewLine=_);return r}(n,t.emitNode))}return t}e.factory=n(4,m),e.createUnparsedSourceFile=function(t,r,n){var i,a,o,s,c,u,l,_,d,p;e.isString(t)?(o="",s=t,c=t.length,u=r,l=n):(e.Debug.assert("js"===r||"dts"===r),o=("js"===r?t.javascriptPath:t.declarationPath)||"",u="js"===r?t.javascriptMapPath:t.declarationMapPath,_=function(){return"js"===r?t.javascriptText:t.declarationText},d=function(){return"js"===r?t.javascriptMapText:t.declarationMapText},c=function(){return _().length},t.buildInfo&&t.buildInfo.bundle&&(e.Debug.assert(void 0===n||"boolean"==typeof n),i=n,a="js"===r?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,p=t.oldFileOfCurrentEmit));var f=p?function(t){for(var r,n,i=0,a=t.sections;i<a.length;i++){var o=a[i];switch(o.kind){case"internal":case"text":r=e.append(r,e.setTextRange(e.factory.createUnparsedTextLike(o.data,"internal"===o.kind),o));break;case"no-default-lib":case"reference":case"type":case"lib":n=e.append(n,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,n,null!=r?r:e.emptyArray);return e.setEachParent(n,s),e.setEachParent(r,s),s.helpers=e.map(t.sources&&t.sources.helpers,(function(t){return e.getAllUnscopedEmitHelpers().get(t)})),s}(e.Debug.assertDefined(a)):function(t,r,n){for(var i,a,o,s,c,u,l,_,d=0,p=t?t.sections:e.emptyArray;d<p.length;d++){var f=p[d];switch(f.kind){case"prologue":i=e.append(i,e.setTextRange(e.factory.createUnparsedPrologue(f.data),f));break;case"emitHelpers":a=e.append(a,e.getAllUnscopedEmitHelpers().get(f.data));break;case"no-default-lib":_=!0;break;case"reference":o=e.append(o,{pos:-1,end:-1,fileName:f.data});break;case"type":s=e.append(s,f.data);break;case"lib":c=e.append(c,{pos:-1,end:-1,fileName:f.data});break;case"prepend":for(var g=void 0,m=0,y=f.texts;m<y.length;m++){var v=y[m];r&&"internal"===v.kind||(g=e.append(g,e.setTextRange(e.factory.createUnparsedTextLike(v.data,"internal"===v.kind),v)))}u=e.addRange(u,g),l=e.append(l,e.factory.createUnparsedPrepend(f.data,null!=g?g:e.emptyArray));break;case"internal":if(r){l||(l=[]);break}case"text":l=e.append(l,e.setTextRange(e.factory.createUnparsedTextLike(f.data,"internal"===f.kind),f));break;default:e.Debug.assertNever(f)}}if(!l){var h=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(h,0,"function"==typeof n?n():n),l=[h]}var b=e.parseNodeFactory.createUnparsedSource(null!=i?i:e.emptyArray,void 0,l);return e.setEachParent(i,b),e.setEachParent(l,b),e.setEachParent(u,b),b.hasNoDefaultLib=_,b.helpers=a,b.referencedFiles=o||e.emptyArray,b.typeReferenceDirectives=s,b.libReferenceDirectives=c||e.emptyArray,b}(a,i,c);return f.fileName=o,f.sourceMapPath=u,f.oldFileOfCurrentEmit=p,_&&d?(Object.defineProperty(f,"text",{get:_}),Object.defineProperty(f,"sourceMapText",{get:d})):(e.Debug.assert(!p),f.text=null!=s?s:"",f.sourceMapText=l),f},e.createInputFiles=function(t,r,n,i,a,o,s,c,u,l,_){var d=e.parseNodeFactory.createInputFiles();if(e.isString(t))d.javascriptText=t,d.javascriptMapPath=n,d.javascriptMapText=i,d.declarationText=r,d.declarationMapPath=a,d.declarationMapText=o,d.javascriptPath=s,d.declarationPath=c,d.buildInfoPath=u,d.buildInfo=l,d.oldFileOfCurrentEmit=_;else{var p,f=new e.Map,g=function(e){if(void 0!==e){var r=f.get(e);return void 0===r&&(r=t(e),f.set(e,void 0!==r&&r)),!1!==r?r:void 0}},m=function(e){var t=g(e);return void 0!==t?t:"/* Input file "+e+" was missing */\r\n"};d.javascriptPath=r,d.javascriptMapPath=n,d.declarationPath=e.Debug.assertDefined(i),d.declarationMapPath=a,d.buildInfoPath=o,Object.defineProperties(d,{javascriptText:{get:function(){return m(r)}},javascriptMapText:{get:function(){return g(n)}},declarationText:{get:function(){return m(e.Debug.assertDefined(i))}},declarationMapText:{get:function(){return g(a)}},buildInfo:{get:function(){return function(t){if(void 0===p){var r=t();p=void 0!==r&&e.getBuildInfo(r)}return p||void 0}((function(){return g(o)}))}}})}return d},e.createSourceMapSource=function(t,r,n){return new(g||(g=e.objectAllocator.getSourceMapSourceConstructor()))(t,r,n)},e.setOriginalNode=y}(ts||(ts={})),function(e){function t(r){var n;if(!r.emitNode){if(e.isParseTreeNode(r)){if(297===r.kind)return r.emitNode={annotatedNodes:[r]};t(null!==(n=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(r))))&&void 0!==n?n:e.Debug.fail("Could not determine parsed source file.")).annotatedNodes.push(r)}r.emitNode={}}return r.emitNode}function r(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.leadingComments}function n(e,r){return t(e).leadingComments=r,e}function i(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.trailingComments}function a(e,r){return t(e).trailingComments=r,e}e.getOrCreateEmitNode=t,e.disposeEmitNodes=function(t){var r,n,i=null===(n=null===(r=e.getSourceFileOfNode(e.getParseTreeNode(t)))||void 0===r?void 0:r.emitNode)||void 0===n?void 0:n.annotatedNodes;if(i)for(var a=0,o=i;a<o.length;a++){o[a].emitNode=void 0}},e.removeAllComments=function(e){var r=t(e);return r.flags|=1536,r.leadingComments=void 0,r.trailingComments=void 0,e},e.setEmitFlags=function(e,r){return t(e).flags=r,e},e.addEmitFlags=function(e,r){var n=t(e);return n.flags=n.flags|r,e},e.getSourceMapRange=function(e){var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.sourceMapRange)&&void 0!==r?r:e},e.setSourceMapRange=function(e,r){return t(e).sourceMapRange=r,e},e.getTokenSourceMapRange=function(e,t){var r,n;return null===(n=null===(r=e.emitNode)||void 0===r?void 0:r.tokenSourceMapRanges)||void 0===n?void 0:n[t]},e.setTokenSourceMapRange=function(e,r,n){var i,a=t(e);return(null!==(i=a.tokenSourceMapRanges)&&void 0!==i?i:a.tokenSourceMapRanges=[])[r]=n,e},e.getStartsOnNewLine=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.startsOnNewLine},e.setStartsOnNewLine=function(e,r){return t(e).startsOnNewLine=r,e},e.getCommentRange=function(e){var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.commentRange)&&void 0!==r?r:e},e.setCommentRange=function(e,r){return t(e).commentRange=r,e},e.getSyntheticLeadingComments=r,e.setSyntheticLeadingComments=n,e.addSyntheticLeadingComment=function(t,i,a,o){return n(t,e.append(r(t),{kind:i,pos:-1,end:-1,hasTrailingNewLine:o,text:a}))},e.getSyntheticTrailingComments=i,e.setSyntheticTrailingComments=a,e.addSyntheticTrailingComment=function(t,r,n,o){return a(t,e.append(i(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:o,text:n}))},e.moveSyntheticComments=function(e,o){n(e,r(o)),a(e,i(o));var s=t(o);return s.leadingComments=void 0,s.trailingComments=void 0,e},e.getConstantValue=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.constantValue},e.setConstantValue=function(e,r){return t(e).constantValue=r,e},e.addEmitHelper=function(r,n){var i=t(r);return i.helpers=e.append(i.helpers,n),r},e.addEmitHelpers=function(r,n){if(e.some(n))for(var i=t(r),a=0,o=n;a<o.length;a++){var s=o[a];i.helpers=e.appendIfUnique(i.helpers,s)}return r},e.removeEmitHelper=function(t,r){var n,i=null===(n=t.emitNode)||void 0===n?void 0:n.helpers;return!!i&&e.orderedRemoveItem(i,r)},e.getEmitHelpers=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.helpers},e.moveEmitHelpers=function(r,n,i){var a=r.emitNode,o=a&&a.helpers;if(e.some(o)){for(var s=t(n),c=0,u=0;u<o.length;u++){var l=o[u];i(l)?(c++,s.helpers=e.appendIfUnique(s.helpers,l)):c>0&&(o[u-c]=l)}c>0&&(o.length-=c)}},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e}}(ts||(ts={})),function(e){function t(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(r){for(var n="",i=0;i<t.length;i++)n+=e[i],n+=r(t[i]);return n+=e[e.length-1]}}var r;e.createEmitHelperFactory=function(t){var r=t.factory;return{getUnscopedHelperName:n,createDecorateHelper:function(i,a,o,s){t.requestEmitHelper(e.decorateHelper);var c=[];c.push(r.createArrayLiteralExpression(i,!0)),c.push(a),o&&(c.push(o),s&&c.push(s));return r.createCallExpression(n("__decorate"),void 0,c)},createMetadataHelper:function(i,a){return t.requestEmitHelper(e.metadataHelper),r.createCallExpression(n("__metadata"),void 0,[r.createStringLiteral(i),a])},createParamHelper:function(i,a,o){return t.requestEmitHelper(e.paramHelper),e.setTextRange(r.createCallExpression(n("__param"),void 0,[r.createNumericLiteral(a+""),i]),o)},createAssignHelper:function(i){if(t.getCompilerOptions().target>=2)return r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,i);return t.requestEmitHelper(e.assignHelper),r.createCallExpression(n("__assign"),void 0,i)},createAwaitHelper:function(i){return t.requestEmitHelper(e.awaitHelper),r.createCallExpression(n("__await"),void 0,[i])},createAsyncGeneratorHelper:function(i,a){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(i.emitNode||(i.emitNode={})).flags|=786432,r.createCallExpression(n("__asyncGenerator"),void 0,[a?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),i])},createAsyncDelegatorHelper:function(i){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),r.createCallExpression(n("__asyncDelegator"),void 0,[i])},createAsyncValuesHelper:function(i){return t.requestEmitHelper(e.asyncValues),r.createCallExpression(n("__asyncValues"),void 0,[i])},createRestHelper:function(i,a,o,s){t.requestEmitHelper(e.restHelper);for(var c=[],u=0,l=0;l<a.length-1;l++){var _=e.getPropertyNameOfBindingOrAssignmentElement(a[l]);if(_)if(e.isComputedPropertyName(_)){e.Debug.assertIsDefined(o,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var d=o[u];u++,c.push(r.createConditionalExpression(r.createTypeCheck(d,"symbol"),void 0,d,void 0,r.createAdd(d,r.createStringLiteral(""))))}else c.push(r.createStringLiteralFromNode(_))}return r.createCallExpression(n("__rest"),void 0,[i,e.setTextRange(r.createArrayLiteralExpression(c),s)])},createAwaiterHelper:function(i,a,o,s){t.requestEmitHelper(e.awaiterHelper);var c=r.createFunctionExpression(void 0,r.createToken(41),void 0,void 0,[],void 0,s);return(c.emitNode||(c.emitNode={})).flags|=786432,r.createCallExpression(n("__awaiter"),void 0,[i?r.createThis():r.createVoidZero(),a?r.createIdentifier("arguments"):r.createVoidZero(),o?e.createExpressionFromEntityName(r,o):r.createVoidZero(),c])},createExtendsHelper:function(i){return t.requestEmitHelper(e.extendsHelper),r.createCallExpression(n("__extends"),void 0,[i,r.createUniqueName("_super",48)])},createTemplateObjectHelper:function(i,a){return t.requestEmitHelper(e.templateObjectHelper),r.createCallExpression(n("__makeTemplateObject"),void 0,[i,a])},createSpreadArrayHelper:function(i,a){return t.requestEmitHelper(e.spreadArrayHelper),r.createCallExpression(n("__spreadArray"),void 0,[i,a])},createValuesHelper:function(i){return t.requestEmitHelper(e.valuesHelper),r.createCallExpression(n("__values"),void 0,[i])},createReadHelper:function(i,a){return t.requestEmitHelper(e.readHelper),r.createCallExpression(n("__read"),void 0,void 0!==a?[i,r.createNumericLiteral(a+"")]:[i])},createGeneratorHelper:function(i){return t.requestEmitHelper(e.generatorHelper),r.createCallExpression(n("__generator"),void 0,[r.createThis(),i])},createCreateBindingHelper:function(i,a,o){return t.requestEmitHelper(e.createBindingHelper),r.createCallExpression(n("__createBinding"),void 0,__spreadArray([r.createIdentifier("exports"),i,a],o?[o]:[]))},createImportStarHelper:function(i){return t.requestEmitHelper(e.importStarHelper),r.createCallExpression(n("__importStar"),void 0,[i])},createImportStarCallbackHelper:function(){return t.requestEmitHelper(e.importStarHelper),n("__importStar")},createImportDefaultHelper:function(i){return t.requestEmitHelper(e.importDefaultHelper),r.createCallExpression(n("__importDefault"),void 0,[i])},createExportStarHelper:function(i,a){void 0===a&&(a=r.createIdentifier("exports"));return t.requestEmitHelper(e.exportStarHelper),t.requestEmitHelper(e.createBindingHelper),r.createCallExpression(n("__exportStar"),void 0,[i,a])},createClassPrivateFieldGetHelper:function(i,a){return t.requestEmitHelper(e.classPrivateFieldGetHelper),r.createCallExpression(n("__classPrivateFieldGet"),void 0,[i,a])},createClassPrivateFieldSetHelper:function(i,a,o){return t.requestEmitHelper(e.classPrivateFieldSetHelper),r.createCallExpression(n("__classPrivateFieldSet"),void 0,[i,a,o])}};function n(t){return e.setEmitFlags(r.createIdentifier(t),4098)}},e.compareEmitHelpers=function(t,r){return t===r||t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)},e.helperString=t,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) {\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\n to[j] = from[i];\n return to;\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, privateMap) {\n if (!privateMap.has(receiver)) {\n throw new TypeError("attempted to get private field on non-instance");\n }\n return privateMap.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {\n if (!privateMap.has(receiver)) {\n throw new TypeError("attempted to set private field on non-instance");\n }\n privateMap.set(receiver, value);\n return value;\n };'},e.getAllUnscopedEmitHelpers=function(){return r||(r=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:t(__makeTemplateObject(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(__makeTemplateObject(["\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(t,r){return e.isCallExpression(t)&&e.isIdentifier(t.expression)&&4096&e.getEmitFlags(t.expression)&&t.expression.escapedText===r}}(ts||(ts={})),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.isIdentifier=function(e){return 78===e.kind},e.isQualifiedName=function(e){return 157===e.kind},e.isComputedPropertyName=function(e){return 158===e.kind},e.isPrivateIdentifier=function(e){return 79===e.kind},e.isSuperKeyword=function(e){return 105===e.kind},e.isImportKeyword=function(e){return 99===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isTypeParameterDeclaration=function(e){return 159===e.kind},e.isParameter=function(e){return 160===e.kind},e.isDecorator=function(e){return 161===e.kind},e.isPropertySignature=function(e){return 162===e.kind},e.isPropertyDeclaration=function(e){return 163===e.kind},e.isMethodSignature=function(e){return 164===e.kind},e.isMethodDeclaration=function(e){return 165===e.kind},e.isConstructorDeclaration=function(e){return 166===e.kind},e.isGetAccessorDeclaration=function(e){return 167===e.kind},e.isSetAccessorDeclaration=function(e){return 168===e.kind},e.isCallSignatureDeclaration=function(e){return 169===e.kind},e.isConstructSignatureDeclaration=function(e){return 170===e.kind},e.isIndexSignatureDeclaration=function(e){return 171===e.kind},e.isTypePredicateNode=function(e){return 172===e.kind},e.isTypeReferenceNode=function(e){return 173===e.kind},e.isFunctionTypeNode=function(e){return 174===e.kind},e.isConstructorTypeNode=function(e){return 175===e.kind},e.isTypeQueryNode=function(e){return 176===e.kind},e.isTypeLiteralNode=function(e){return 177===e.kind},e.isArrayTypeNode=function(e){return 178===e.kind},e.isTupleTypeNode=function(e){return 179===e.kind},e.isNamedTupleMember=function(e){return 192===e.kind},e.isOptionalTypeNode=function(e){return 180===e.kind},e.isRestTypeNode=function(e){return 181===e.kind},e.isUnionTypeNode=function(e){return 182===e.kind},e.isIntersectionTypeNode=function(e){return 183===e.kind},e.isConditionalTypeNode=function(e){return 184===e.kind},e.isInferTypeNode=function(e){return 185===e.kind},e.isParenthesizedTypeNode=function(e){return 186===e.kind},e.isThisTypeNode=function(e){return 187===e.kind},e.isTypeOperatorNode=function(e){return 188===e.kind},e.isIndexedAccessTypeNode=function(e){return 189===e.kind},e.isMappedTypeNode=function(e){return 190===e.kind},e.isLiteralTypeNode=function(e){return 191===e.kind},e.isImportTypeNode=function(e){return 195===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 194===e.kind},e.isTemplateLiteralTypeNode=function(e){return 193===e.kind},e.isObjectBindingPattern=function(e){return 196===e.kind},e.isArrayBindingPattern=function(e){return 197===e.kind},e.isBindingElement=function(e){return 198===e.kind},e.isArrayLiteralExpression=function(e){return 199===e.kind},e.isObjectLiteralExpression=function(e){return 200===e.kind},e.isPropertyAccessExpression=function(e){return 201===e.kind},e.isElementAccessExpression=function(e){return 202===e.kind},e.isCallExpression=function(e){return 203===e.kind},e.isNewExpression=function(e){return 204===e.kind},e.isTaggedTemplateExpression=function(e){return 205===e.kind},e.isTypeAssertionExpression=function(e){return 206===e.kind},e.isParenthesizedExpression=function(e){return 207===e.kind},e.isFunctionExpression=function(e){return 208===e.kind},e.isArrowFunction=function(e){return 209===e.kind},e.isDeleteExpression=function(e){return 210===e.kind},e.isTypeOfExpression=function(e){return 211===e.kind},e.isVoidExpression=function(e){return 212===e.kind},e.isAwaitExpression=function(e){return 213===e.kind},e.isPrefixUnaryExpression=function(e){return 214===e.kind},e.isPostfixUnaryExpression=function(e){return 215===e.kind},e.isBinaryExpression=function(e){return 216===e.kind},e.isConditionalExpression=function(e){return 217===e.kind},e.isTemplateExpression=function(e){return 218===e.kind},e.isYieldExpression=function(e){return 219===e.kind},e.isSpreadElement=function(e){return 220===e.kind},e.isClassExpression=function(e){return 221===e.kind},e.isOmittedExpression=function(e){return 222===e.kind},e.isExpressionWithTypeArguments=function(e){return 223===e.kind},e.isAsExpression=function(e){return 224===e.kind},e.isNonNullExpression=function(e){return 225===e.kind},e.isMetaProperty=function(e){return 226===e.kind},e.isSyntheticExpression=function(e){return 227===e.kind},e.isPartiallyEmittedExpression=function(e){return 336===e.kind},e.isCommaListExpression=function(e){return 337===e.kind},e.isTemplateSpan=function(e){return 228===e.kind},e.isSemicolonClassElement=function(e){return 229===e.kind},e.isBlock=function(e){return 230===e.kind},e.isVariableStatement=function(e){return 232===e.kind},e.isEmptyStatement=function(e){return 231===e.kind},e.isExpressionStatement=function(e){return 233===e.kind},e.isIfStatement=function(e){return 234===e.kind},e.isDoStatement=function(e){return 235===e.kind},e.isWhileStatement=function(e){return 236===e.kind},e.isForStatement=function(e){return 237===e.kind},e.isForInStatement=function(e){return 238===e.kind},e.isForOfStatement=function(e){return 239===e.kind},e.isContinueStatement=function(e){return 240===e.kind},e.isBreakStatement=function(e){return 241===e.kind},e.isReturnStatement=function(e){return 242===e.kind},e.isWithStatement=function(e){return 243===e.kind},e.isSwitchStatement=function(e){return 244===e.kind},e.isLabeledStatement=function(e){return 245===e.kind},e.isThrowStatement=function(e){return 246===e.kind},e.isTryStatement=function(e){return 247===e.kind},e.isDebuggerStatement=function(e){return 248===e.kind},e.isVariableDeclaration=function(e){return 249===e.kind},e.isVariableDeclarationList=function(e){return 250===e.kind},e.isFunctionDeclaration=function(e){return 251===e.kind},e.isClassDeclaration=function(e){return 252===e.kind},e.isInterfaceDeclaration=function(e){return 253===e.kind},e.isTypeAliasDeclaration=function(e){return 254===e.kind},e.isEnumDeclaration=function(e){return 255===e.kind},e.isModuleDeclaration=function(e){return 256===e.kind},e.isModuleBlock=function(e){return 257===e.kind},e.isCaseBlock=function(e){return 258===e.kind},e.isNamespaceExportDeclaration=function(e){return 259===e.kind},e.isImportEqualsDeclaration=function(e){return 260===e.kind},e.isImportDeclaration=function(e){return 261===e.kind},e.isImportClause=function(e){return 262===e.kind},e.isNamespaceImport=function(e){return 263===e.kind},e.isNamespaceExport=function(e){return 269===e.kind},e.isNamedImports=function(e){return 264===e.kind},e.isImportSpecifier=function(e){return 265===e.kind},e.isExportAssignment=function(e){return 266===e.kind},e.isExportDeclaration=function(e){return 267===e.kind},e.isNamedExports=function(e){return 268===e.kind},e.isExportSpecifier=function(e){return 270===e.kind},e.isMissingDeclaration=function(e){return 271===e.kind},e.isNotEmittedStatement=function(e){return 335===e.kind},e.isSyntheticReference=function(e){return 340===e.kind},e.isMergeDeclarationMarker=function(e){return 338===e.kind},e.isEndOfDeclarationMarker=function(e){return 339===e.kind},e.isExternalModuleReference=function(e){return 272===e.kind},e.isJsxElement=function(e){return 273===e.kind},e.isJsxSelfClosingElement=function(e){return 274===e.kind},e.isJsxOpeningElement=function(e){return 275===e.kind},e.isJsxClosingElement=function(e){return 276===e.kind},e.isJsxFragment=function(e){return 277===e.kind},e.isJsxOpeningFragment=function(e){return 278===e.kind},e.isJsxClosingFragment=function(e){return 279===e.kind},e.isJsxAttribute=function(e){return 280===e.kind},e.isJsxAttributes=function(e){return 281===e.kind},e.isJsxSpreadAttribute=function(e){return 282===e.kind},e.isJsxExpression=function(e){return 283===e.kind},e.isCaseClause=function(e){return 284===e.kind},e.isDefaultClause=function(e){return 285===e.kind},e.isHeritageClause=function(e){return 286===e.kind},e.isCatchClause=function(e){return 287===e.kind},e.isPropertyAssignment=function(e){return 288===e.kind},e.isShorthandPropertyAssignment=function(e){return 289===e.kind},e.isSpreadAssignment=function(e){return 290===e.kind},e.isEnumMember=function(e){return 291===e.kind},e.isUnparsedPrepend=function(e){return 293===e.kind},e.isSourceFile=function(e){return 297===e.kind},e.isBundle=function(e){return 298===e.kind},e.isUnparsedSource=function(e){return 299===e.kind},e.isJSDocTypeExpression=function(e){return 301===e.kind},e.isJSDocNameReference=function(e){return 302===e.kind},e.isJSDocAllType=function(e){return 303===e.kind},e.isJSDocUnknownType=function(e){return 304===e.kind},e.isJSDocNullableType=function(e){return 305===e.kind},e.isJSDocNonNullableType=function(e){return 306===e.kind},e.isJSDocOptionalType=function(e){return 307===e.kind},e.isJSDocFunctionType=function(e){return 308===e.kind},e.isJSDocVariadicType=function(e){return 309===e.kind},e.isJSDocNamepathType=function(e){return 310===e.kind},e.isJSDoc=function(e){return 311===e.kind},e.isJSDocTypeLiteral=function(e){return 312===e.kind},e.isJSDocSignature=function(e){return 313===e.kind},e.isJSDocAugmentsTag=function(e){return 315===e.kind},e.isJSDocAuthorTag=function(e){return 317===e.kind},e.isJSDocClassTag=function(e){return 319===e.kind},e.isJSDocCallbackTag=function(e){return 324===e.kind},e.isJSDocPublicTag=function(e){return 320===e.kind},e.isJSDocPrivateTag=function(e){return 321===e.kind},e.isJSDocProtectedTag=function(e){return 322===e.kind},e.isJSDocReadonlyTag=function(e){return 323===e.kind},e.isJSDocDeprecatedTag=function(e){return 318===e.kind},e.isJSDocSeeTag=function(e){return 332===e.kind},e.isJSDocEnumTag=function(e){return 325===e.kind},e.isJSDocParameterTag=function(e){return 326===e.kind},e.isJSDocReturnTag=function(e){return 327===e.kind},e.isJSDocThisTag=function(e){return 328===e.kind},e.isJSDocTypeTag=function(e){return 329===e.kind},e.isJSDocTemplateTag=function(e){return 330===e.kind},e.isJSDocTypedefTag=function(e){return 331===e.kind},e.isJSDocUnknownTag=function(e){return 314===e.kind},e.isJSDocPropertyTag=function(e){return 333===e.kind},e.isJSDocImplementsTag=function(e){return 316===e.kind},e.isSyntaxList=function(e){return 334===e.kind}}(ts||(ts={})),function(e){function t(t,r,n,i){if(e.isComputedPropertyName(n))return e.setTextRange(t.createElementAccessExpression(r,n.expression),i);var a=e.setTextRange(e.isIdentifierOrPrivateIdentifier(n)?t.createPropertyAccessExpression(r,n):t.createElementAccessExpression(r,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function r(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(n,e.getParseTreeNode(r)),n}function n(t,i,a){if(e.isQualifiedName(i)){var o=n(t,i.left,a),s=t.createIdentifier(e.idText(i.right));return s.escapedText=i.right.escapedText,t.createPropertyAccessExpression(o,s)}return r(e.idText(i),a)}function i(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"createElement")}function a(t,r){return e.isIdentifier(r)?t.createStringLiteralFromNode(r):e.isComputedPropertyName(r)?e.setParent(e.setTextRange(t.cloneNode(r.expression),r.expression),r.expression.parent):e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)}function o(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function s(e,t){switch(void 0===t&&(t=15),e.kind){case 207:return 0!=(1&t);case 206:case 224:return 0!=(2&t);case 225:return 0!=(4&t);case 336:return 0!=(8&t)}return!1}function c(e,t){for(void 0===t&&(t=15);s(e,t);)e=e.expression;return e}function u(t){return e.setStartsOnNewLine(t,!0)}function l(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function _(t,r,n,i,a){if(n.importHelpers&&e.isEffectiveExternalModule(r,n)){var o=l(r);if(o)return o;var s=e.getEmitModuleKind(n),c=(i||n.esModuleInterop&&a)&&s!==e.ModuleKind.System&&s<e.ModuleKind.ES2015;if(!c){var u=e.getEmitHelpers(r);if(u)for(var _=0,d=u;_<d.length;_++){if(!d[_].scoped){c=!0;break}}}if(c){var p=e.getOriginalNode(r,e.isSourceFile),f=e.getOrCreateEmitNode(p);return f.externalHelpersModuleName||(f.externalHelpersModuleName=t.createUniqueName(e.externalHelpersModuleNameText))}}}function d(t,r,n,i){if(r)return r.moduleName?t.createStringLiteral(r.moduleName):!r.isDeclarationFile&&e.outFile(i)?t.createStringLiteral(e.getExternalModuleNameFromPath(n,r.fileName)):void 0}function p(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?p(t.left):e.isSpreadElement(t)?p(t.expression):t;switch(t.kind){case 288:return p(t.initializer);case 289:return t.name;case 290:return p(t.expression)}}function f(t){switch(t.kind){case 198:if(t.propertyName){var r=t.propertyName;return e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&g(r.expression)?r.expression:r}break;case 288:if(t.name){r=t.name;return e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&g(r.expression)?r.expression:r}break;case 290:return t.name&&e.isPrivateIdentifier(t.name)?e.Debug.failBadSyntaxKind(t.name):t.name}var n=p(t);if(n&&e.isPropertyName(n))return n}function g(e){var t=e.kind;return 10===t||8===t}e.createEmptyExports=function(e){return e.createExportDeclaration(void 0,void 0,!1,e.createNamedExports([]),void 0)},e.createMemberAccessForPropertyName=t,e.createJsxFactoryExpression=i,e.createExpressionForJsxElement=function(t,r,n,i,a,o){var s=[n];if(i&&s.push(i),a&&a.length>0)if(i||s.push(t.createNull()),a.length>1)for(var c=0,l=a;c<l.length;c++){var _=l[c];u(_),s.push(_)}else s.push(a[0]);return e.setTextRange(t.createCallExpression(r,void 0,s),o)},e.createExpressionForJsxFragment=function(t,a,o,s,c,l,_){var d=[function(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"Fragment")}(t,o,s,l),t.createNull()];if(c&&c.length>0)if(c.length>1)for(var p=0,f=c;p<f.length;p++){var g=f[p];u(g),d.push(g)}else d.push(c[0]);return e.setTextRange(t.createCallExpression(i(t,a,s,l),void 0,d),_)},e.createForOfBindingStatement=function(t,r,n){if(e.isVariableDeclarationList(r)){var i=e.first(r.declarations),a=t.updateVariableDeclaration(i,i.name,void 0,void 0,n);return e.setTextRange(t.createVariableStatement(void 0,t.updateVariableDeclarationList(r,[a])),r)}var o=e.setTextRange(t.createAssignment(r,n),r);return e.setTextRange(t.createExpressionStatement(o),r)},e.insertLeadingStatement=function(t,r,n){return e.isBlock(r)?t.updateBlock(r,e.setTextRange(t.createNodeArray(__spreadArray([n],r.statements)),r.statements)):t.createBlock(t.createNodeArray([r,n]),!0)},e.createExpressionFromEntityName=function t(r,n){if(e.isQualifiedName(n)){var i=t(r,n.left),a=e.setParent(e.setTextRange(r.cloneNode(n.right),n.right),n.right.parent);return e.setTextRange(r.createPropertyAccessExpression(i,a),n)}return e.setParent(e.setTextRange(r.cloneNode(n),n),n.parent)},e.createExpressionForPropertyName=a,e.createExpressionForObjectLiteralElementLike=function(r,n,i,o){switch(i.name&&e.isPrivateIdentifier(i.name)&&e.Debug.failBadSyntaxKind(i.name,"Private identifiers are not allowed in object literals."),i.kind){case 167:case 168:return function(t,r,n,i,o){var s=e.getAllAccessorDeclarations(r,n),c=s.firstAccessor,u=s.getAccessor,l=s.setAccessor;if(n===c)return e.setTextRange(t.createObjectDefinePropertyCall(i,a(t,n.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:u&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(u.modifiers,void 0,void 0,void 0,u.parameters,void 0,u.body),u),u),set:l&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(l.modifiers,void 0,void 0,void 0,l.parameters,void 0,l.body),l),l)},!o)),c)}(r,n.properties,i,o,!!n.multiLine);case 288:return function(r,n,i){return e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),n.initializer),n),n)}(r,i,o);case 289:return function(r,n,i){return e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),r.cloneNode(n.name)),n),n)}(r,i,o);case 165:return function(r,n,i){return e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),e.setOriginalNode(e.setTextRange(r.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n)}(r,i,o)}},e.isInternalName=function(t){return 0!=(32768&e.getEmitFlags(t))},e.isLocalName=function(t){return 0!=(16384&e.getEmitFlags(t))},e.isExportName=function(t){return 0!=(8192&e.getEmitFlags(t))},e.findUseStrictPrologue=function(t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.isPrologueDirective(i))break;if(o(i))return i}},e.startsWithUseStrict=function(t){var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&o(r)},e.isCommaSequence=function(e){return 216===e.kind&&27===e.operatorToken.kind||337===e.kind},e.isOuterExpression=s,e.skipOuterExpressions=c,e.skipAssertions=function(e){return c(e,6)},e.startOnNewLine=u,e.getExternalHelpersModuleName=l,e.hasRecordedExternalHelpers=function(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)},e.createExternalHelpersImportDeclarationIfNeeded=function(t,r,n,i,a,o,s){if(i.importHelpers&&e.isEffectiveExternalModule(n,i)){var c=void 0,u=e.getEmitModuleKind(i);if(u>=e.ModuleKind.ES2015&&u<=e.ModuleKind.ESNext){var l=e.getEmitHelpers(n);if(l){for(var d=[],p=0,f=l;p<f.length;p++){var g=f[p];if(!g.scoped){var m=g.importName;m&&e.pushIfUnique(d,m)}}if(e.some(d)){d.sort(e.compareStringsCaseSensitive),c=t.createNamedImports(e.map(d,(function(i){return e.isFileLevelUniqueName(n,i)?t.createImportSpecifier(void 0,t.createIdentifier(i)):t.createImportSpecifier(t.createIdentifier(i),r.getUnscopedHelperName(i))})));var y=e.getOriginalNode(n,e.isSourceFile);e.getOrCreateEmitNode(y).externalHelpers=!0}}}else{var v=_(t,n,i,a,o||s);v&&(c=t.createNamespaceImport(v))}if(c){var h=t.createImportDeclaration(void 0,void 0,t.createImportClause(!1,void 0,c),t.createStringLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(h,67108864),h}}},e.getOrCreateExternalHelpersModuleNameIfNeeded=_,e.getLocalNameForExternalImport=function(t,r,n){var i=e.getNamespaceDeclarationNode(r);if(i&&!e.isDefaultImport(r)&&!e.isExportNamespaceAsDefaultDeclaration(r)){var a=i.name;return e.isGeneratedIdentifier(a)?a:t.createIdentifier(e.getSourceTextOfNodeFromSourceFile(n,a)||e.idText(a))}return 261===r.kind&&r.importClause||267===r.kind&&r.moduleSpecifier?t.getGeneratedNameForNode(r):void 0},e.getExternalModuleNameLiteral=function(t,r,n,i,a,o){var s=e.getExternalModuleName(r);if(s&&e.isStringLiteral(s))return function(e,t,r,n,i){return d(r,n.getExternalModuleFileFromDeclaration(e),t,i)}(r,i,t,a,o)||function(e,t,r){var n=r.renamedDependencies&&r.renamedDependencies.get(t.text);return n?e.createStringLiteral(n):void 0}(t,s,n)||t.cloneNode(s)},e.tryGetModuleNameFromFile=d,e.getInitializerOfBindingOrAssignmentElement=function t(r){if(e.isDeclarationBindingElement(r))return r.initializer;if(e.isPropertyAssignment(r)){var n=r.initializer;return e.isAssignmentExpression(n,!0)?n.right:void 0}return e.isShorthandPropertyAssignment(r)?r.objectAssignmentInitializer:e.isAssignmentExpression(r,!0)?r.right:e.isSpreadElement(r)?t(r.expression):void 0},e.getTargetOfBindingOrAssignmentElement=p,e.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 160:case 198:return e.dotDotDotToken;case 220:case 290:return e}},e.getPropertyNameOfBindingOrAssignmentElement=function(t){var r=f(t);return e.Debug.assert(!!r||e.isSpreadAssignment(t),"Invalid property name for binding element."),r},e.tryGetPropertyNameOfBindingOrAssignmentElement=f,e.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 196:case 197:case 199:return e.elements;case 200:return e.properties}},e.getJSDocTypeAliasName=function(t){if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}},e.canHaveModifiers=function(e){var t=e.kind;return 160===t||162===t||163===t||164===t||165===t||166===t||167===t||168===t||171===t||208===t||209===t||221===t||232===t||251===t||252===t||253===t||254===t||255===t||256===t||260===t||261===t||266===t||267===t},e.isExportModifier=function(e){return 92===e.kind},e.isAsyncModifier=function(e){return 129===e.kind},e.isStaticModifier=function(e){return 123===e.kind}}(ts||(ts={})),function(e){e.setTextRange=function(t,r){return r?e.setTextRangePosEnd(t,r.pos,r.end):t}}(ts||(ts={})),function(e){var t,r,n,i,a,o,s,c,u;function l(e,t){return t&&e(t)}function _(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;n<i.length;n++){var a=e(i[n]);if(a)return a}}}function d(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function p(t,r,n){if(t&&!(t.kind<=156))switch(t.kind){case 157:return l(r,t.left)||l(r,t.right);case 159:return l(r,t.name)||l(r,t.constraint)||l(r,t.default)||l(r,t.expression);case 289:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.name)||l(r,t.questionToken)||l(r,t.exclamationToken)||l(r,t.equalsToken)||l(r,t.objectAssignmentInitializer);case 290:return l(r,t.expression);case 160:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.dotDotDotToken)||l(r,t.name)||l(r,t.questionToken)||l(r,t.type)||l(r,t.initializer);case 163:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.name)||l(r,t.questionToken)||l(r,t.exclamationToken)||l(r,t.type)||l(r,t.initializer);case 162:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.name)||l(r,t.questionToken)||l(r,t.type)||l(r,t.initializer);case 288:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.name)||l(r,t.questionToken)||l(r,t.initializer);case 249:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.name)||l(r,t.exclamationToken)||l(r,t.type)||l(r,t.initializer);case 198:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.dotDotDotToken)||l(r,t.propertyName)||l(r,t.name)||l(r,t.initializer);case 174:case 175:case 169:case 170:case 171:return _(r,n,t.decorators)||_(r,n,t.modifiers)||_(r,n,t.typeParameters)||_(r,n,t.parameters)||l(r,t.type);case 165:case 164:case 166:case 167:case 168:case 208:case 251:case 209:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.asteriskToken)||l(r,t.name)||l(r,t.questionToken)||l(r,t.exclamationToken)||_(r,n,t.typeParameters)||_(r,n,t.parameters)||l(r,t.type)||l(r,t.equalsGreaterThanToken)||l(r,t.body);case 173:return l(r,t.typeName)||_(r,n,t.typeArguments);case 172:return l(r,t.assertsModifier)||l(r,t.parameterName)||l(r,t.type);case 176:return l(r,t.exprName);case 177:return _(r,n,t.members);case 178:return l(r,t.elementType);case 179:return _(r,n,t.elements);case 182:case 183:return _(r,n,t.types);case 184:return l(r,t.checkType)||l(r,t.extendsType)||l(r,t.trueType)||l(r,t.falseType);case 185:return l(r,t.typeParameter);case 195:return l(r,t.argument)||l(r,t.qualifier)||_(r,n,t.typeArguments);case 186:case 188:return l(r,t.type);case 189:return l(r,t.objectType)||l(r,t.indexType);case 190:return l(r,t.readonlyToken)||l(r,t.typeParameter)||l(r,t.nameType)||l(r,t.questionToken)||l(r,t.type);case 191:return l(r,t.literal);case 192:return l(r,t.dotDotDotToken)||l(r,t.name)||l(r,t.questionToken)||l(r,t.type);case 196:case 197:case 199:return _(r,n,t.elements);case 200:return _(r,n,t.properties);case 201:return l(r,t.expression)||l(r,t.questionDotToken)||l(r,t.name);case 202:return l(r,t.expression)||l(r,t.questionDotToken)||l(r,t.argumentExpression);case 203:case 204:return l(r,t.expression)||l(r,t.questionDotToken)||_(r,n,t.typeArguments)||_(r,n,t.arguments);case 205:return l(r,t.tag)||l(r,t.questionDotToken)||_(r,n,t.typeArguments)||l(r,t.template);case 206:return l(r,t.type)||l(r,t.expression);case 207:case 210:case 211:case 212:return l(r,t.expression);case 214:return l(r,t.operand);case 219:return l(r,t.asteriskToken)||l(r,t.expression);case 213:return l(r,t.expression);case 215:return l(r,t.operand);case 216:return l(r,t.left)||l(r,t.operatorToken)||l(r,t.right);case 224:return l(r,t.expression)||l(r,t.type);case 225:return l(r,t.expression);case 226:return l(r,t.name);case 217:return l(r,t.condition)||l(r,t.questionToken)||l(r,t.whenTrue)||l(r,t.colonToken)||l(r,t.whenFalse);case 220:return l(r,t.expression);case 230:case 257:return _(r,n,t.statements);case 297:return _(r,n,t.statements)||l(r,t.endOfFileToken);case 232:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.declarationList);case 250:return _(r,n,t.declarations);case 233:return l(r,t.expression);case 234:return l(r,t.expression)||l(r,t.thenStatement)||l(r,t.elseStatement);case 235:return l(r,t.statement)||l(r,t.expression);case 236:return l(r,t.expression)||l(r,t.statement);case 237:return l(r,t.initializer)||l(r,t.condition)||l(r,t.incrementor)||l(r,t.statement);case 238:return l(r,t.initializer)||l(r,t.expression)||l(r,t.statement);case 239:return l(r,t.awaitModifier)||l(r,t.initializer)||l(r,t.expression)||l(r,t.statement);case 240:case 241:return l(r,t.label);case 242:return l(r,t.expression);case 243:return l(r,t.expression)||l(r,t.statement);case 244:return l(r,t.expression)||l(r,t.caseBlock);case 258:return _(r,n,t.clauses);case 284:return l(r,t.expression)||_(r,n,t.statements);case 285:return _(r,n,t.statements);case 245:return l(r,t.label)||l(r,t.statement);case 246:return l(r,t.expression);case 247:return l(r,t.tryBlock)||l(r,t.catchClause)||l(r,t.finallyBlock);case 287:return l(r,t.variableDeclaration)||l(r,t.block);case 161:return l(r,t.expression);case 252:case 221:case 253:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.name)||_(r,n,t.typeParameters)||_(r,n,t.heritageClauses)||_(r,n,t.members);case 254:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.name)||_(r,n,t.typeParameters)||l(r,t.type);case 255:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.name)||_(r,n,t.members);case 291:return l(r,t.name)||l(r,t.initializer);case 256:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.name)||l(r,t.body);case 260:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.name)||l(r,t.moduleReference);case 261:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.importClause)||l(r,t.moduleSpecifier);case 262:return l(r,t.name)||l(r,t.namedBindings);case 259:case 263:case 269:return l(r,t.name);case 264:case 268:return _(r,n,t.elements);case 267:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.exportClause)||l(r,t.moduleSpecifier);case 265:case 270:return l(r,t.propertyName)||l(r,t.name);case 266:return _(r,n,t.decorators)||_(r,n,t.modifiers)||l(r,t.expression);case 218:return l(r,t.head)||_(r,n,t.templateSpans);case 228:return l(r,t.expression)||l(r,t.literal);case 193:return l(r,t.head)||_(r,n,t.templateSpans);case 194:return l(r,t.type)||l(r,t.literal);case 158:return l(r,t.expression);case 286:return _(r,n,t.types);case 223:return l(r,t.expression)||_(r,n,t.typeArguments);case 272:return l(r,t.expression);case 271:return _(r,n,t.decorators);case 337:return _(r,n,t.elements);case 273:return l(r,t.openingElement)||_(r,n,t.children)||l(r,t.closingElement);case 277:return l(r,t.openingFragment)||_(r,n,t.children)||l(r,t.closingFragment);case 274:case 275:return l(r,t.tagName)||_(r,n,t.typeArguments)||l(r,t.attributes);case 281:return _(r,n,t.properties);case 280:return l(r,t.name)||l(r,t.initializer);case 282:return l(r,t.expression);case 283:return l(r,t.dotDotDotToken)||l(r,t.expression);case 276:return l(r,t.tagName);case 180:case 181:case 301:case 306:case 305:case 307:case 309:return l(r,t.type);case 308:return _(r,n,t.parameters)||l(r,t.type);case 311:return _(r,n,t.tags);case 332:return l(r,t.tagName)||l(r,t.name);case 302:return l(r,t.name);case 326:case 333:return l(r,t.tagName)||(t.isNameFirst?l(r,t.name)||l(r,t.typeExpression):l(r,t.typeExpression)||l(r,t.name));case 317:return l(r,t.tagName);case 316:case 315:return l(r,t.tagName)||l(r,t.class);case 330:return l(r,t.tagName)||l(r,t.constraint)||_(r,n,t.typeParameters);case 331:return l(r,t.tagName)||(t.typeExpression&&301===t.typeExpression.kind?l(r,t.typeExpression)||l(r,t.fullName):l(r,t.fullName)||l(r,t.typeExpression));case 324:return l(r,t.tagName)||l(r,t.fullName)||l(r,t.typeExpression);case 327:case 329:case 328:case 325:return l(r,t.tagName)||l(r,t.typeExpression);case 313:return e.forEach(t.typeParameters,r)||e.forEach(t.parameters,r)||l(r,t.type);case 312:return e.forEach(t.jsDocPropertyTags,r);case 314:case 319:case 320:case 321:case 322:case 323:return l(r,t.tagName);case 336:return l(r,t.expression)}}function f(e){var t=[];return p(e,r,r),t;function r(e){t.unshift(e)}}function g(e){return void 0!==e.externalModuleIndicator}function m(t){return e.fileExtensionIs(t,".d.ts")}function y(t,r){for(var n=[],i=0,a=e.getLeadingCommentRanges(r,0)||e.emptyArray;i<a.length;i++){var o=a[i];S(n,o,r.substring(o.pos,o.end))}t.pragmas=new e.Map;for(var s=0,c=n;s<c.length;s++){var u=c[s];if(t.pragmas.has(u.name)){var l=t.pragmas.get(u.name);l instanceof Array?l.push(u.args):t.pragmas.set(u.name,[l,u.args])}else t.pragmas.set(u.name,u.args)}}function v(t,r){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach((function(n,i){switch(i){case"reference":var a=t.referencedFiles,o=t.typeReferenceDirectives,s=t.libReferenceDirectives;e.forEach(e.toArray(n),(function(n){var i=n.arguments,c=i.types,u=i.lib,l=i.path;n.arguments["no-default-lib"]?t.hasNoDefaultLib=!0:c?o.push({pos:c.pos,end:c.end,fileName:c.value}):u?s.push({pos:u.pos,end:u.end,fileName:u.value}):l?a.push({pos:l.pos,end:l.end,fileName:l.value}):r(n.range.pos,n.range.end-n.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)}));break;case"amd-dependency":t.amdDependencies=e.map(e.toArray(n),(function(e){return{name:e.arguments.name,path:e.arguments.path}}));break;case"amd-module":if(n instanceof Array)for(var c=0,u=n;c<u.length;c++){var l=u[c];t.moduleName&&r(l.range.pos,l.range.end-l.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=l.arguments.name}else t.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":e.forEach(e.toArray(n),(function(e){(!t.checkJsDirective||e.range.pos>t.checkJsDirective.pos)&&(t.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"}(t||(t={})),function(e){e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"}(r||(r={})),e.parseBaseNodeFactory={createBaseSourceFileNode:function(t){return new(s||(s=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(a||(a=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(o||(o=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(i||(i=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(t){return new(n||(n=e.objectAllocator.getNodeConstructor()))(t,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=d,e.forEachChild=p,e.forEachChildRecursively=function(t,r,n){for(var i=f(t),a=[];a.length<i.length;)a.push(t);for(;0!==i.length;){var o=i.pop(),s=a.pop();if(e.isArray(o)){if(n)if(u=n(o,s)){if("skip"===u)continue;return u}for(var c=o.length-1;c>=0;--c)i.push(o[c]),a.push(s)}else{var u;if(u=r(o,s)){if("skip"===u)continue;return u}if(o.kind>=157)for(var l=0,_=f(o);l<_.length;l++){var d=_[l];i.push(d),a.push(o)}}}},e.createSourceFile=function(t,r,n,i,a){var o;return void 0===i&&(i=!1),null===e.tracing||void 0===e.tracing||e.tracing.push("parse","createSourceFile",{path:t},!0),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(t),o=100===n?c.parseSourceFile(t,r,n,void 0,i,6):c.parseSourceFile(t,r,n,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,t){return c.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return c.parseJsonText(e,t)},e.isExternalModule=g,e.updateSourceFile=function(e,t,r,n){void 0===n&&(n=!1);var i=u.updateSourceFile(e,t,r,n);return i.flags|=3145728&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=c.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&c.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return c.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(t){var r,n,i,a,o,s=e.createScanner(99,!0),c=20480;function l(e){return N++,e}var _,f,h,b,x,D,S,T,E,k,N,A,F,P,w,I,O,M={createBaseSourceFileNode:function(e){return l(new o(e,0,0))},createBaseIdentifierNode:function(e){return l(new i(e,0,0))},createBasePrivateIdentifierNode:function(e){return l(new a(e,0,0))},createBaseTokenNode:function(e){return l(new n(e,0,0))},createBaseNode:function(e){return l(new r(e,0,0))}},L=e.createNodeFactory(11,M),R=!0,B=!1;function j(t,r,n,i,a){void 0===n&&(n=2),void 0===a&&(a=!1),J(t,r,n,i,6),f=O,xe();var o,s,c=me();if(1===ve())o=Ue([],c,c),s=je();else{var u=void 0;switch(ve()){case 22:u=Tn();break;case 109:case 94:case 103:u=je();break;case 40:u=Ae((function(){return 8===xe()&&58!==xe()}))?Zr():En();break;case 8:case 10:if(Ae((function(){return 58!==xe()}))){u=It();break}default:u=En()}var l=L.createExpressionStatement(u);Ve(l,c),o=Ue([l],c),s=Be(1,e.Diagnostics.Unexpected_token)}var _=Q(t,2,6,!1,o,s,f);a&&X(_),_.nodeCount=N,_.identifierCount=P,_.identifiers=A,_.parseDiagnostics=e.attachFileToDiagnostics(S,_),T&&(_.jsDocDiagnostics=e.attachFileToDiagnostics(T,_));var d=_;return z(),d}function J(t,c,u,l,d){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getPrivateIdentifierConstructor(),o=e.objectAllocator.getSourceFileConstructor(),_=e.normalizePath(t),h=c,b=u,E=l,x=d,D=e.getLanguageVariant(d),S=[],w=0,A=new e.Map,F=new e.Map,P=0,N=0,f=0,R=!0,x){case 1:case 2:O=131072;break;case 6:O=33685504;break;default:O=0}B=!1,s.setText(h),s.setOnError(ge),s.setScriptTarget(b),s.setLanguageVariant(D)}function z(){s.clearCommentDirectives(),s.setText(""),s.setOnError(void 0),h=void 0,b=void 0,E=void 0,x=void 0,D=void 0,f=0,S=void 0,T=void 0,w=0,A=void 0,I=void 0,R=!0}function U(t,r,n){var i=m(_);i&&(O|=8388608),f=O,xe();var a=mt(0,Kn);e.Debug.assert(1===ve());var o=G(je()),c=Q(_,t,n,i,a,o,f);return y(c,h),v(c,(function(t,r,n){S.push(e.createDetachedDiagnostic(_,t,r,n))})),c.commentDirectives=s.getCommentDirectives(),c.nodeCount=N,c.identifierCount=P,c.identifiers=A,c.parseDiagnostics=e.attachFileToDiagnostics(S,c),T&&(c.jsDocDiagnostics=e.attachFileToDiagnostics(T,c)),r&&X(c),c}function V(e,t){return t?G(e):e}t.parseSourceFile=function(t,r,n,i,a,o){if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(t,o))){var s=j(t,r,n,i,a);return e.convertToObjectWorker(s,s.parseDiagnostics,!1,void 0,void 0),s.referencedFiles=e.emptyArray,s.typeReferenceDirectives=e.emptyArray,s.libReferenceDirectives=e.emptyArray,s.amdDependencies=e.emptyArray,s.hasNoDefaultLib=!1,s.pragmas=e.emptyMap,s}J(t,r,n,i,o);var c=U(n,a,o);return z(),c},t.parseIsolatedEntityName=function(e,t){J("",e,t,void 0,1),xe();var r=Ct(!0),n=1===ve()&&!S.length;return z(),n?r:void 0},t.parseJsonText=j;var K,q,W,H=!1;function G(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,h),(function(e){return W.parseJSDocComment(t,e.pos,e.end-e.pos)}));return r.length&&(t.jsDoc=r),H&&(H=!1,t.flags|=134217728),t}function X(t){e.setParentRecursive(t,!0)}function Q(t,r,n,i,a,o,c){var l=L.createSourceFile(a,o,c);return e.setTextRangePosWidth(l,0,h.length),function(t){t.externalModuleIndicator=e.forEach(t.statements,Ri)||function(e){return 2097152&e.flags?Bi(e):void 0}(t)}(l),!i&&g(l)&&8388608&l.transformFlags&&(l=function(t){var r=E,n=u.createSyntaxCursor(t);E={currentNode:function(e){var t=n.currentNode(e);return R&&t&&p(t)&&(t.intersectsChange=!0),t}};var i=[],a=S;S=[];for(var o=0,c=f(t.statements,0),l=function(){var r=t.statements[o],n=t.statements[c];e.addRange(i,t.statements,o,c),o=g(t.statements,c);var u=e.findIndex(a,(function(e){return e.start>=r.pos})),l=u>=0?e.findIndex(a,(function(e){return e.start>=n.pos}),u):-1;u>=0&&e.addRange(S,a,u,l>=0?l:void 0),Ne((function(){var e=O;for(O|=32768,s.setTextPos(n.pos),xe();1!==ve();){var r=s.getStartPos(),a=yt(0,Kn);if(i.push(a),r===s.getStartPos()&&xe(),o>=0){var c=t.statements[o];if(a.end===c.pos)break;a.end>c.pos&&(o=g(t.statements,o+1))}}O=e}),2),c=o>=0?f(t.statements,o):-1};-1!==c;)l();if(o>=0){var _=t.statements[o];e.addRange(i,t.statements,o);var d=e.findIndex(a,(function(e){return e.start>=_.pos}));d>=0&&e.addRange(S,a,d)}return E=r,L.updateSourceFile(t,e.setTextRange(L.createNodeArray(i),t.statements));function p(e){return!(32768&e.flags||!(8388608&e.transformFlags))}function f(e,t){for(var r=t;r<e.length;r++)if(p(e[r]))return r;return-1}function g(e,t){for(var r=t;r<e.length;r++)if(!p(e[r]))return r;return-1}}(l)),l.text=h,l.bindDiagnostics=[],l.bindSuggestionDiagnostics=void 0,l.languageVersion=r,l.fileName=t,l.languageVariant=e.getLanguageVariant(n),l.isDeclarationFile=i,l.scriptKind=n,l}function Y(e,t){e?O|=t:O&=~t}function Z(e){Y(e,4096)}function $(e){Y(e,8192)}function ee(e){Y(e,16384)}function te(e){Y(e,32768)}function re(e,t){var r=e&O;if(r){Y(!1,r);var n=t();return Y(!0,r),n}return t()}function ne(e,t){var r=e&~O;if(r){Y(!0,r);var n=t();return Y(!1,r),n}return t()}function ie(e){return re(4096,e)}function ae(e){return ne(32768,e)}function oe(e){return 0!=(O&e)}function se(){return oe(8192)}function ce(){return oe(4096)}function ue(){return oe(16384)}function le(){return oe(32768)}function _e(e,t){pe(s.getTokenPos(),s.getTextPos(),e,t)}function de(t,r,n,i){var a=e.lastOrUndefined(S);a&&t===a.start||S.push(e.createDetachedDiagnostic(_,t,r,n,i)),B=!0}function pe(e,t,r,n){de(e,t-e,r,n)}function fe(e,t,r){pe(e.pos,e.end,t,r)}function ge(e,t){de(s.getTextPos(),t,e)}function me(){return s.getStartPos()}function ye(){return s.hasPrecedingJSDocComment()}function ve(){return k}function he(){return k=s.scan()}function be(e){return xe(),e()}function xe(){return e.isKeyword(k)&&(s.hasUnicodeEscape()||s.hasExtendedUnicodeEscape())&&pe(s.getTokenPos(),s.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),he()}function De(){return k=s.scanJsDocToken()}function Se(){return k=s.reScanGreaterToken()}function Te(){return k=s.reScanTemplateHeadOrNoSubstitutionTemplate()}function Ce(){return k=s.reScanLessThanToken()}function Ee(){return k=s.scanJsxIdentifier()}function ke(){return k=s.scanJsxToken()}function Ne(t,r){var n=k,i=S.length,a=B,o=O,c=0!==r?s.lookAhead(t):s.tryScan(t);return e.Debug.assert(o===O),c&&0===r||(k=n,2!==r&&(S.length=i),B=a),c}function Ae(e){return Ne(e,1)}function Fe(e){return Ne(e,0)}function Pe(){return 78===ve()||ve()>115}function we(){return 78===ve()||(124!==ve()||!se())&&((130!==ve()||!le())&&ve()>115)}function Ie(t,r,n){return void 0===n&&(n=!0),ve()===t?(n&&xe(),!0):(r?_e(r):_e(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function Oe(t){return ve()===t?(De(),!0):(_e(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function Me(e){return ve()===e&&(xe(),!0)}function Le(e){if(ve()===e)return je()}function Re(e){if(ve()===e)return t=me(),r=ve(),De(),Ve(L.createToken(r),t);var t,r}function Be(t,r,n){return Le(t)||Ke(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function je(){var e=me(),t=ve();return xe(),Ve(L.createToken(t),e)}function Je(){return 26===ve()||(19===ve()||1===ve()||s.hasPrecedingLineBreak())}function ze(){return Je()?(26===ve()&&xe(),!0):Ie(26)}function Ue(t,r,n,i){var a=L.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:s.getStartPos()),a}function Ve(t,r,n){return e.setTextRangePosEnd(t,r,null!=n?n:s.getStartPos()),O&&(t.flags|=O),B&&(B=!1,t.flags|=65536),t}function Ke(t,r,n,i){r?de(s.getStartPos(),0,n,i):n&&_e(n,i);var a=me();return Ve(78===t?L.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?L.createTemplateLiteralLikeNode(t,"","",void 0):8===t?L.createNumericLiteral("",void 0):10===t?L.createStringLiteral("",void 0):271===t?L.createMissingDeclaration():L.createToken(t),a)}function qe(e){var t=A.get(e);return void 0===t&&A.set(e,t=e),t}function We(t,r,n){if(t){P++;var i=me(),a=ve(),o=qe(s.getTokenValue());return he(),Ve(L.createIdentifier(o,void 0,a),i)}if(79===ve())return _e(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),We(!0);if(0===ve()&&s.tryScan((function(){return 78===s.reScanInvalidIdentifier()})))return We(!0);P++;var c=1===ve(),u=s.isReservedWord(),l=s.getTokenText(),_=u?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Ke(78,c,r||_,l)}function He(e){return We(Pe(),void 0,e)}function Ge(e,t){return We(we(),e,t)}function Xe(t){return We(e.tokenIsIdentifierOrKeyword(ve()),t)}function Qe(){return e.tokenIsIdentifierOrKeyword(ve())||10===ve()||8===ve()}function Ye(e){if(10===ve()||8===ve()){var t=It();return t.text=qe(t.text),t}return e&&22===ve()?function(){var e=me();Ie(22);var t=ie(jr);return Ie(23),Ve(L.createComputedPropertyName(t),e)}():79===ve()?$e():Xe()}function Ze(){return Ye(!0)}function $e(){var e,t,r=me(),n=L.createPrivateIdentifier((e=s.getTokenText(),void 0===(t=F.get(e))&&F.set(e,t=e),t));return xe(),Ve(n,r)}function et(e){return ve()===e&&Fe(rt)}function tt(){return xe(),!s.hasPrecedingLineBreak()&&at()}function rt(){switch(ve()){case 84:return 91===xe();case 92:return xe(),87===ve()?Ae(ot):149===ve()?Ae(it):nt();case 87:return ot();case 123:return tt();case 134:case 146:return xe(),at();default:return tt()}}function nt(){return 41!==ve()&&126!==ve()&&18!==ve()&&at()}function it(){return xe(),nt()}function at(){return 22===ve()||18===ve()||41===ve()||25===ve()||Qe()}function ot(){return xe(),83===ve()||97===ve()||117===ve()||125===ve()&&Ae(Rn)||129===ve()&&Ae(Bn)}function st(t,r){if(vt(t))return!0;switch(t){case 0:case 1:case 3:return!(26===ve()&&r)&&Un();case 2:return 81===ve()||87===ve();case 4:return Ae(nr);case 5:return Ae(_i)||26===ve()&&!r;case 6:return 22===ve()||Qe();case 12:switch(ve()){case 22:case 41:case 25:case 24:return!0;default:return Qe()}case 18:return Qe();case 9:return 22===ve()||25===ve()||Qe();case 7:return 18===ve()?Ae(ct):r?we()&&!dt():Rr()&&!dt();case 8:return Zn();case 10:return 27===ve()||25===ve()||Zn();case 19:return we();case 15:switch(ve()){case 27:case 24:return!0}case 11:return 25===ve()||Br();case 16:return qt(!1);case 17:return qt(!0);case 20:case 21:return 27===ve()||Dr();case 22:return Ci();case 23:return e.tokenIsIdentifierOrKeyword(ve());case 13:return e.tokenIsIdentifierOrKeyword(ve())||18===ve();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function ct(){if(e.Debug.assert(18===ve()),19===xe()){var t=xe();return 27===t||18===t||93===t||116===t}return!0}function ut(){return xe(),we()}function lt(){return xe(),e.tokenIsIdentifierOrKeyword(ve())}function _t(){return xe(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ve())}function dt(){return(116===ve()||93===ve())&&Ae(pt)}function pt(){return xe(),Br()}function ft(){return xe(),Dr()}function gt(e){if(1===ve())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===ve();case 3:return 19===ve()||81===ve()||87===ve();case 7:return 18===ve()||93===ve()||116===ve();case 8:return function(){if(Je())return!0;if(Xr(ve()))return!0;if(38===ve())return!0;return!1}();case 19:return 31===ve()||20===ve()||18===ve()||93===ve()||116===ve();case 11:return 21===ve()||26===ve();case 15:case 21:case 10:return 23===ve();case 17:case 16:case 18:return 21===ve()||23===ve();case 20:return 27!==ve();case 22:return 18===ve()||19===ve();case 13:return 31===ve()||43===ve();case 14:return 29===ve()&&Ae(Pi);default:return!1}}function mt(e,t){var r=w;w|=1<<e;for(var n=[],i=me();!gt(e);)if(st(e,!1)){var a=yt(e,t);n.push(a)}else if(bt(e))break;return w=r,Ue(n,i)}function yt(e,t){var r=vt(e);return r?ht(r):t()}function vt(t){if(E&&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}(t)&&!B){var r=E.currentNode(s.getStartPos());if(!(e.nodeIsMissing(r)||r.intersectsChange||e.containsParseError(r)))if((25358336&r.flags)===O&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 166:case 171:case 167:case 168:case 163:case 229:return!0;case 165:var t=e;return!(78===t.name.kind&&132===t.name.originalKeywordKind)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 284:case 285:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 251:case 232:case 230:case 234:case 233:case 246:case 242:case 244:case 241:case 240:case 238:case 239:case 237:case 236:case 243:case 231:case 247:case 245:case 235:case 248:case 261:case 260:case 267:case 266:case 256:case 252:case 253:case 255:case 254:return!0}return!1}(e);case 6:return function(e){return 291===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 170:case 164:case 171:case 162:case 169:return!0}return!1}(e);case 8:return function(e){if(249!==e.kind)return!1;return void 0===e.initializer}(e);case 17:case 16:return function(e){if(160!==e.kind)return!1;return void 0===e.initializer}(e)}return!1}(r,t))return r.jsDocCache&&(r.jsDocCache=void 0),r}}function ht(e){return s.setTextPos(e.end),xe(),e}function bt(t){return function(t){switch(t){case 0:case 1:return _e(e.Diagnostics.Declaration_or_statement_expected);case 2:return _e(e.Diagnostics.case_or_default_expected);case 3:return _e(e.Diagnostics.Statement_expected);case 18:case 4:return _e(e.Diagnostics.Property_or_signature_expected);case 5:return _e(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return _e(e.Diagnostics.Enum_member_expected);case 7:return _e(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(ve())?_e(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(ve())):_e(e.Diagnostics.Variable_declaration_expected);case 9:return _e(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return _e(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return _e(e.Diagnostics.Argument_expression_expected);case 12:return _e(e.Diagnostics.Property_assignment_expected);case 15:return _e(e.Diagnostics.Expression_or_comma_expected);case 17:case 16:return _e(e.Diagnostics.Parameter_declaration_expected);case 19:return _e(e.Diagnostics.Type_parameter_declaration_expected);case 20:return _e(e.Diagnostics.Type_argument_expected);case 21:return _e(e.Diagnostics.Type_expected);case 22:return _e(e.Diagnostics.Unexpected_token_expected);case 23:case 13:case 14:return _e(e.Diagnostics.Identifier_expected);default:;}}(t),!!function(){for(var e=0;e<24;e++)if(w&1<<e&&(st(e,!0)||gt(e)))return!0;return!1}()||(xe(),!1)}function xt(e,t,r){var n=w;w|=1<<e;for(var i=[],a=me(),o=-1;;)if(st(e,!1)){var c=s.getStartPos();if(i.push(yt(e,t)),o=s.getTokenPos(),Me(27))continue;if(o=-1,gt(e))break;Ie(27,Dt(e)),r&&26===ve()&&!s.hasPrecedingLineBreak()&&xe(),c===s.getStartPos()&&xe()}else{if(gt(e))break;if(bt(e))break}return w=n,Ue(i,a,void 0,o>=0)}function Dt(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function St(){var e=Ue([],me());return e.isMissingList=!0,e}function Tt(e,t,r,n){if(Ie(r)){var i=xt(e,t);return Ie(n),i}return St()}function Ct(e,t){for(var r=me(),n=e?Xe(t):Ge(t),i=me();Me(24);){if(29===ve()){n.jsdocDotPos=i;break}i=me(),n=Ve(L.createQualifiedName(n,kt(e,!1)),r)}return n}function Et(e,t){return Ve(L.createQualifiedName(e,t),e.pos)}function kt(t,r){if(s.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ve())&&Ae(Ln))return Ke(78,!0,e.Diagnostics.Identifier_expected);if(79===ve()){var n=$e();return r?n:Ke(78,!0,e.Diagnostics.Identifier_expected)}return t?Xe():Ge()}function Nt(e){var t=me();return Ve(L.createTemplateExpression(Ot(e),function(e){var t,r=me(),n=[];do{t=wt(e),n.push(t)}while(16===t.literal.kind);return Ue(n,r)}(e)),t)}function At(){var e=me();return Ve(L.createTemplateLiteralType(Ot(!1),function(){var e,t=me(),r=[];do{e=Ft(),r.push(e)}while(16===e.literal.kind);return Ue(r,t)}()),e)}function Ft(){var e=me();return Ve(L.createTemplateLiteralTypeSpan(Or(),Pt(!1)),e)}function Pt(t){return 19===ve()?(function(e){k=s.reScanTemplateToken(e)}(t),r=Mt(ve()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):Be(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function wt(e){var t=me();return Ve(L.createTemplateSpan(ie(jr),Pt(e)),t)}function It(){return Mt(ve())}function Ot(t){t&&Te();var r=Mt(ve());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}function Mt(t){var r=me(),n=e.isTemplateLiteralKind(t)?L.createTemplateLiteralLikeNode(t,s.getTokenValue(),function(e){var t=14===e||17===e,r=s.getTokenText();return r.substring(1,r.length-(s.isUnterminated()?0:t?1:2))}(t),2048&s.getTokenFlags()):8===t?L.createNumericLiteral(s.getTokenValue(),s.getNumericLiteralFlags()):10===t?L.createStringLiteral(s.getTokenValue(),void 0,s.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?L.createLiteralLikeNode(t,s.getTokenValue()):e.Debug.fail();return s.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),s.isUnterminated()&&(n.isUnterminated=!0),xe(),Ve(n,r)}function Lt(){return Ct(!0,e.Diagnostics.Type_expected)}function Rt(){if(!s.hasPrecedingLineBreak()&&29===Ce())return Tt(20,Or,29,31)}function Bt(){var e=me();return Ve(L.createTypeReferenceNode(Lt(),Rt()),e)}function jt(t){switch(t.kind){case 173:return e.nodeIsMissing(t.typeName);case 174:case 175:var r=t,n=r.parameters,i=r.type;return!!n.isMissingList||jt(i);case 186:return jt(t.type);default:return!1}}function Jt(){var e=me();return xe(),Ve(L.createThisTypeNode(),e)}function zt(){var e,t=me();return 107!==ve()&&102!==ve()||(e=Xe(),Ie(58)),Ve(L.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Ut(),void 0),t)}function Ut(){s.setInJSDocType(!0);var e=me();if(Me(139)){var t=L.createJSDocNamepathType(void 0);e:for(;;)switch(ve()){case 19:case 1:case 27:case 5:break e;default:De()}return s.setInJSDocType(!1),Ve(t,e)}var r=Me(25),n=wr();return s.setInJSDocType(!1),r&&(n=Ve(L.createJSDocVariadicType(n),e)),62===ve()?(xe(),Ve(L.createJSDocOptionalType(n),e)):n}function Vt(){var e,t,r=me(),n=Ge();Me(93)&&(Dr()||!Br()?e=Or():t=$r());var i=Me(62)?Or():void 0,a=L.createTypeParameterDeclaration(n,e,i);return a.expression=t,Ve(a,r)}function Kt(){if(29===ve())return Tt(19,Vt,29,31)}function qt(t){return 25===ve()||Zn()||e.isModifierKind(ve())||59===ve()||Dr(!t)}function Wt(){return Gt(!0)}function Ht(){return Gt(!1)}function Gt(t){var r=me(),n=ye();if(107===ve())return V(Ve(L.createParameterDeclaration(void 0,void 0,void 0,We(!0),void 0,Lr(),void 0),r),n);var i=t?ae(fi):fi(),a=R;R=!1;var o=mi(),s=V(Ve(L.createParameterDeclaration(i,o,Le(25),function(t){var r=$n(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(ve())&&xe(),r}(o),Le(57),Lr(),Jr()),r),n);return R=a,s}function Xt(t,r){if(function(t,r){if(38===t)return Ie(t),!0;if(Me(58))return!0;if(r&&38===ve())return _e(e.Diagnostics._0_expected,e.tokenToString(58)),xe(),!0;return!1}(t,r))return wr()}function Qt(e){var t=se(),r=le();$(!!(1&e)),te(!!(2&e));var n=32&e?xt(17,zt):xt(16,r?Wt:Ht);return $(t),te(r),n}function Yt(e){if(!Ie(20))return St();var t=Qt(e);return Ie(21),t}function Zt(){Me(27)||ze()}function $t(e){var t=me(),r=ye();170===e&&Ie(102);var n=Kt(),i=Yt(4),a=Xt(58,!0);return Zt(),V(Ve(169===e?L.createCallSignature(n,i,a):L.createConstructSignature(n,i,a),t),r)}function er(){return 22===ve()&&Ae(tr)}function tr(){if(xe(),25===ve()||23===ve())return!0;if(e.isModifierKind(ve())){if(xe(),we())return!0}else{if(!we())return!1;xe()}return 58===ve()||27===ve()||57===ve()&&(xe(),58===ve()||27===ve()||23===ve())}function rr(e,t,r,n){var i=Tt(16,Ht,22,23),a=Lr();return Zt(),V(Ve(L.createIndexSignature(r,n,i,a),e),t)}function nr(){if(20===ve()||29===ve())return!0;for(var t=!1;e.isModifierKind(ve());)t=!0,xe();return 22===ve()||(Qe()&&(t=!0,xe()),!!t&&(20===ve()||29===ve()||57===ve()||58===ve()||27===ve()||Je()))}function ir(){if(20===ve()||29===ve())return $t(169);if(102===ve()&&Ae(ar))return $t(170);var e=me(),t=ye(),r=mi();return er()?rr(e,t,void 0,r):function(e,t,r){var n,i=Ze(),a=Le(57);if(20===ve()||29===ve()){var o=Kt(),s=Yt(4),c=Xt(58,!0);n=L.createMethodSignature(r,i,a,o,s,c)}else c=Lr(),n=L.createPropertySignature(r,i,a,c),62===ve()&&(n.initializer=Jr());return Zt(),V(Ve(n,e),t)}(e,t,r)}function ar(){return xe(),20===ve()||29===ve()}function or(){return 24===xe()}function sr(){switch(xe()){case 20:case 29:case 24:return!0}return!1}function cr(){var e;return Ie(18)?(e=mt(4,ir),Ie(19)):e=St(),e}function ur(){return xe(),39===ve()||40===ve()?142===xe():(142===ve()&&xe(),22===ve()&&ut()&&100===xe())}function lr(){var e,t=me();Ie(18),142!==ve()&&39!==ve()&&40!==ve()||142!==(e=je()).kind&&Ie(142),Ie(22);var r,n=function(){var e=me(),t=Xe();Ie(100);var r=Or();return Ve(L.createTypeParameterDeclaration(t,r,void 0),e)}(),i=Me(126)?Or():void 0;Ie(23),57!==ve()&&39!==ve()&&40!==ve()||57!==(r=je()).kind&&Ie(57);var a=Lr();return ze(),Ie(19),Ve(L.createMappedTypeNode(e,n,i,r,a),t)}function _r(){var t=me();if(Me(25))return Ve(L.createRestTypeNode(Or()),t);var r=Or();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=L.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function dr(){return 58===xe()||57===ve()&&58===xe()}function pr(){return 25===ve()?e.tokenIsIdentifierOrKeyword(xe())&&dr():e.tokenIsIdentifierOrKeyword(ve())&&dr()}function fr(){if(Ae(pr)){var e=me(),t=ye(),r=Le(25),n=Xe(),i=Le(57);Ie(58);var a=_r();return V(Ve(L.createNamedTupleMember(r,n,i,a),e),t)}return _r()}function gr(){var e=me(),t=ye(),r=function(){var e;if(125===ve()){var t=me();xe(),e=Ue([Ve(L.createToken(125),t)],t)}return e}(),n=Me(102),i=Kt(),a=Yt(4),o=Xt(38,!1),s=n?L.createConstructorTypeNode(r,i,a,o):L.createFunctionTypeNode(i,a,o);return n||(s.modifiers=r),V(Ve(s,e),t)}function mr(){var e=je();return 24===ve()?void 0:e}function yr(e){var t=me();e&&xe();var r=109===ve()||94===ve()||103===ve()?je():Mt(ve());return e&&(r=Ve(L.createPrefixUnaryExpression(40,r),t)),Ve(L.createLiteralTypeNode(r),t)}function vr(){return xe(),99===ve()}function hr(){f|=1048576;var e=me(),t=Me(111);Ie(99),Ie(20);var r=Or();Ie(21);var n=Me(24)?Lt():void 0,i=Rt();return Ve(L.createImportTypeNode(r,n,i,t),e)}function br(){return xe(),8===ve()||9===ve()}function xr(){switch(ve()){case 128:case 152:case 147:case 144:case 155:case 148:case 131:case 150:case 141:case 145:return Fe(mr)||Bt();case 65:s.reScanAsteriskEqualsToken();case 41:return r=me(),xe(),Ve(L.createJSDocAllType(),r);case 60:s.reScanQuestionToken();case 57:return function(){var e=me();return xe(),27===ve()||19===ve()||21===ve()||31===ve()||62===ve()||51===ve()?Ve(L.createJSDocUnknownType(),e):Ve(L.createJSDocNullableType(Or()),e)}();case 97:return function(){var e=me(),t=ye();if(Ae(Fi)){xe();var r=Yt(36),n=Xt(58,!1);return V(Ve(L.createJSDocFunctionType(r,n),e),t)}return Ve(L.createTypeReferenceNode(Xe(),void 0),e)}();case 53:return function(){var e=me();return xe(),Ve(L.createJSDocNonNullableType(xr()),e)}();case 14:case 10:case 8:case 9:case 109:case 94:case 103:return yr();case 40:return Ae(br)?yr(!0):Bt();case 113:return je();case 107:var e=Jt();return 137!==ve()||s.hasPrecedingLineBreak()?e:(t=e,xe(),Ve(L.createTypePredicateNode(void 0,t,Or()),t.pos));case 111:return Ae(vr)?hr():function(){var e=me();return Ie(111),Ve(L.createTypeQueryNode(Ct(!0)),e)}();case 18:return Ae(ur)?lr():function(){var e=me();return Ve(L.createTypeLiteralNode(cr()),e)}();case 22:return function(){var e=me();return Ve(L.createTupleTypeNode(Tt(21,fr,22,23)),e)}();case 20:return function(){var e=me();Ie(20);var t=Or();return Ie(21),Ve(L.createParenthesizedType(t),e)}();case 99:return hr();case 127:return Ae(Ln)?function(){var e=me(),t=Be(127),r=107===ve()?Jt():Ge(),n=Me(137)?Or():void 0;return Ve(L.createTypePredicateNode(t,r,n),e)}():Bt();case 15:return At();default:return Bt()}var t,r}function Dr(e){switch(ve()){case 128:case 152:case 147:case 144:case 155:case 131:case 142:case 148:case 151:case 113:case 150:case 103:case 107:case 111:case 141:case 18:case 22:case 29:case 51:case 50:case 102:case 10:case 8:case 9:case 109:case 94:case 145:case 41:case 57:case 53:case 25:case 135:case 99:case 127:case 14:case 15:return!0;case 97:return!e;case 40:return!e&&Ae(br);case 20:return!e&&Ae(Sr);default:return we()}}function Sr(){return xe(),21===ve()||qt(!1)||Dr()}function Tr(){var e=me();return Ie(135),Ve(L.createInferTypeNode(function(){var e=me();return Ve(L.createTypeParameterDeclaration(Ge(),void 0,void 0),e)}()),e)}function Cr(){var e=ve();switch(e){case 138:case 151:case 142:return function(e){var t=me();return Ie(e),Ve(L.createTypeOperatorNode(e,Cr()),t)}(e);case 135:return Tr()}return function(){for(var e=me(),t=xr();!s.hasPrecedingLineBreak();)switch(ve()){case 53:xe(),t=Ve(L.createJSDocNonNullableType(t),e);break;case 57:if(Ae(ft))return t;xe(),t=Ve(L.createJSDocNullableType(t),e);break;case 22:if(Ie(22),Dr()){var r=Or();Ie(23),t=Ve(L.createIndexedAccessTypeNode(t,r),e)}else Ie(23),t=Ve(L.createArrayTypeNode(t),e);break;default:return t}return t}()}function Er(t){if(Fr()){var r=gr();return fe(r,e.isFunctionTypeNode(r)?t?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:t?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),r}}function kr(e,t,r){var n=me(),i=51===e,a=Me(e),o=a&&Er(i)||t();if(ve()===e||a){for(var s=[o];Me(e);)s.push(Er(i)||t());o=Ve(r(Ue(s,n)),n)}return o}function Nr(){return kr(50,Cr,L.createIntersectionTypeNode)}function Ar(){return xe(),102===ve()}function Fr(){return 29===ve()||(!(20!==ve()||!Ae(Pr))||(102===ve()||125===ve()&&Ae(Ar)))}function Pr(){if(xe(),21===ve()||25===ve())return!0;if(function(){if(e.isModifierKind(ve())&&mi(),we()||107===ve())return xe(),!0;if(22===ve()||18===ve()){var t=S.length;return $n(),t===S.length}return!1}()){if(58===ve()||27===ve()||57===ve()||62===ve())return!0;if(21===ve()&&(xe(),38===ve()))return!0}return!1}function wr(){var e=me(),t=we()&&Fe(Ir),r=Or();return t?Ve(L.createTypePredicateNode(void 0,t,r),e):r}function Ir(){var e=Ge();if(137===ve()&&!s.hasPrecedingLineBreak())return xe(),e}function Or(){return re(40960,Mr)}function Mr(e){if(Fr())return gr();var t=me(),r=kr(51,Nr,L.createUnionTypeNode);if(!e&&!s.hasPrecedingLineBreak()&&Me(93)){var n=Mr(!0);Ie(57);var i=Mr();Ie(58);var a=Mr();return Ve(L.createConditionalTypeNode(r,n,i,a),t)}return r}function Lr(){return Me(58)?Or():void 0}function Rr(){switch(ve()){case 107:case 105:case 103:case 109:case 94:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 97:case 83:case 102:case 43:case 67:case 78:return!0;case 99:return Ae(sr);default:return we()}}function Br(){if(Rr())return!0;switch(ve()){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 45:case 46:case 29:case 130:case 124:case 79:return!0;default:return!!function(){if(ce()&&100===ve())return!1;return e.getBinaryOperatorPrecedence(ve())>0}()||we()}}function jr(){var e=ue();e&&ee(!1);for(var t,r=me(),n=zr();t=Le(27);)n=Yr(n,t,zr(),r);return e&&ee(!0),n}function Jr(){return Me(62)?zr():void 0}function zr(){if(function(){if(124===ve())return!!se()||Ae(jn);return!1}())return function(){var e=me();return xe(),s.hasPrecedingLineBreak()||41!==ve()&&!Br()?Ve(L.createYieldExpression(void 0,void 0),e):Ve(L.createYieldExpression(Le(41),zr()),e)}();var t=function(){var e=function(){if(20===ve()||29===ve()||129===ve())return Ae(Vr);if(38===ve())return 1;return 0}();if(0===e)return;return 1===e?Wr(!0):Fe(Kr)}()||function(){if(129===ve()&&1===Ae(qr)){var e=me(),t=yi();return Ur(e,Gr(0),t)}return}();if(t)return t;var r=me(),n=Gr(0);return 78===n.kind&&38===ve()?Ur(r,n,void 0):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(Se())?Yr(n,je(),zr(),r):function(t,r){var n,i=Le(57);if(!i)return t;return Ve(L.createConditionalExpression(t,i,re(c,zr),n=Be(58),e.nodeIsPresent(n)?zr():Ke(78,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r)}(n,r)}function Ur(t,r,n){e.Debug.assert(38===ve(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=L.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0);Ve(i,r.pos);var a=Ue([i],i.pos,i.end),o=Be(38),s=Hr(!!n);return G(Ve(L.createArrowFunction(n,void 0,a,void 0,o,s),t))}function Vr(){if(129===ve()){if(xe(),s.hasPrecedingLineBreak())return 0;if(20!==ve()&&29!==ve())return 0}var t=ve(),r=xe();if(20===t){if(21===r)switch(xe()){case 38:case 58:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&129!==r&&Ae(ut))return 1;if(!we()&&107!==r)return 0;switch(xe()){case 58:return 1;case 57:return xe(),58===ve()||27===ve()||62===ve()||21===ve()?1:0;case 27:case 62:case 21:return 2}return 0}return e.Debug.assert(29===t),we()?1===D?Ae((function(){var e=xe();if(93===e)switch(xe()){case 62:case 31:return!1;default:return!0}else if(27===e)return!0;return!1}))?1:0:2:0}function Kr(){var t=s.getTokenPos();if(!(null==I?void 0:I.has(t))){var r=Wr(!1);return r||(I||(I=new e.Set)).add(t),r}}function qr(){if(129===ve()){if(xe(),s.hasPrecedingLineBreak()||38===ve())return 0;var e=Gr(0);if(!s.hasPrecedingLineBreak()&&78===e.kind&&38===ve())return 1}return 0}function Wr(t){var r,n=me(),i=ye(),a=yi(),o=e.some(a,e.isAsyncModifier)?2:0,s=Kt();if(Ie(20)){if(r=Qt(o),!Ie(21)&&!t)return}else{if(!t)return;r=St()}var c=Xt(58,!1);if(!c||t||!jt(c)){var u=c&&e.isJSDocFunctionType(c);if(t||38===ve()||!u&&18===ve()){var l=ve(),_=Be(38),d=38===l||18===l?Hr(e.some(a,e.isAsyncModifier)):Ge();return V(Ve(L.createArrowFunction(a,s,r,c,_,d),n),i)}}}function Hr(e){if(18===ve())return Fn(e?2:0);if(26!==ve()&&97!==ve()&&83!==ve()&&Un()&&(18===ve()||97===ve()||83===ve()||59===ve()||!Br()))return Fn(16|(e?2:0));var t=R;R=!1;var r=e?ae(zr):re(32768,zr);return R=t,r}function Gr(e){var t=me();return Qr(e,$r(),t)}function Xr(e){return 100===e||156===e}function Qr(t,r,n){for(;;){Se();var i=e.getBinaryOperatorPrecedence(ve());if(!(42===ve()?i>=t:i>t))break;if(100===ve()&&ce())break;if(126===ve()){if(s.hasPrecedingLineBreak())break;xe(),a=r,o=Or(),r=Ve(L.createAsExpression(a,o),a.pos)}else r=Yr(r,je(),Gr(i),n)}var a,o;return r}function Yr(e,t,r,n){return Ve(L.createBinaryExpression(e,t,r),n)}function Zr(){var e=me();return Ve(L.createPrefixUnaryExpression(ve(),be(en)),e)}function $r(){if(function(){switch(ve()){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 130:return!1;case 29:if(1!==D)return!1;default:return!0}}()){var t=me(),r=tn();return 42===ve()?Qr(e.getBinaryOperatorPrecedence(ve()),r,t):r}var n=ve(),i=en();if(42===ve()){t=e.skipTrivia(h,i.pos);var a=i.end;206===i.kind?pe(t,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):pe(t,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(n))}return i}function en(){switch(ve()){case 39:case 40:case 54:case 53:return Zr();case 88:return e=me(),Ve(L.createDeleteExpression(be(en)),e);case 111:return function(){var e=me();return Ve(L.createTypeOfExpression(be(en)),e)}();case 113:return function(){var e=me();return Ve(L.createVoidExpression(be(en)),e)}();case 29:return function(){var e=me();Ie(29);var t=Or();Ie(31);var r=en();return Ve(L.createTypeAssertion(t,r),e)}();case 130:if(130===ve()&&(le()||Ae(jn)))return function(){var e=me();return Ve(L.createAwaitExpression(be(en)),e)}();default:return tn()}var e}function tn(){if(45===ve()||46===ve()){var t=me();return Ve(L.createPrefixUnaryExpression(ve(),be(rn)),t)}if(1===D&&29===ve()&&Ae(_t))return an(!0);var r=rn();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===ve()||46===ve())&&!s.hasPrecedingLineBreak()){var n=ve();return xe(),Ve(L.createPostfixUnaryExpression(r,n),r.pos)}return r}function rn(){var t,r=me();return 99===ve()?Ae(ar)?(f|=1048576,t=je()):Ae(or)?(xe(),xe(),t=Ve(L.createMetaProperty(99,Xe()),r),f|=2097152):t=nn():t=105===ve()?function(){var t=me(),r=je();if(29===ve()){var n=me();void 0!==Fe(bn)&&pe(n,me(),e.Diagnostics.super_may_not_use_type_arguments)}if(20===ve()||24===ve()||22===ve())return r;return Be(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Ve(L.createPropertyAccessExpression(r,kt(!0,!0)),t)}():nn(),vn(r,t)}function nn(){return gn(me(),xn(),!0)}function an(t,r){var n,i=me(),a=function(e){var t=me();if(Ie(29),31===ve())return ke(),Ve(L.createJsxOpeningFragment(),t);var r,n=cn(),i=0==(131072&O)?Ti():void 0,a=function(){var e=me();return Ve(L.createJsxAttributes(mt(13,ln)),e)}();31===ve()?(ke(),r=L.createJsxOpeningElement(n,i,a)):(Ie(43),e?Ie(31):(Ie(31,void 0,!1),ke()),r=L.createJsxSelfClosingElement(n,i,a));return Ve(r,t)}(t);if(275===a.kind){var o=sn(a),s=function(e){var t=me();Ie(30);var r=cn();e?Ie(31):(Ie(31,void 0,!1),ke());return Ve(L.createJsxClosingElement(r),t)}(t);C(a.tagName,s.tagName)||fe(s,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(h,a.tagName)),n=Ve(L.createJsxElement(a,o,s),i)}else 278===a.kind?n=Ve(L.createJsxFragment(a,sn(a),function(t){var r=me();Ie(30),e.tokenIsIdentifierOrKeyword(ve())&&fe(cn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);t?Ie(31):(Ie(31,void 0,!1),ke());return Ve(L.createJsxJsxClosingFragment(),r)}(t)),i):(e.Debug.assert(274===a.kind),n=a);if(t&&29===ve()){var c=void 0===r?n.pos:r,u=Fe((function(){return an(!0,c)}));if(u){var l=Ke(27,!1);return e.setTextRangePosWidth(l,u.pos,0),pe(e.skipTrivia(h,c),u.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Ve(L.createBinaryExpression(n,l,u),i)}}return n}function on(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))fe(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;pe(e.skipTrivia(h,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(h,t.tagName))}return;case 30:case 7:return;case 11:case 12:return i=me(),a=L.createJsxText(s.getTokenValue(),12===k),k=s.scanJsxToken(),Ve(a,i);case 18:return un(!1);case 29:return an(!1);default:return e.Debug.assertNever(r)}var i,a}function sn(e){var t=[],r=me(),n=w;for(w|=16384;;){var i=on(e,k=s.reScanJsxToken());if(!i)break;t.push(i)}return w=n,Ue(t,r)}function cn(){var e=me();Ee();for(var t=107===ve()?je():Xe();Me(24);)t=Ve(L.createPropertyAccessExpression(t,kt(!0,!1)),e);return t}function un(e){var t,r,n=me();if(Ie(18))return 19!==ve()&&(t=Le(25),r=jr()),e?Ie(19):Ie(19,void 0,!1)&&ke(),Ve(L.createJsxExpression(t,r),n)}function ln(){if(18===ve())return function(){var e=me();Ie(18),Ie(25);var t=jr();return Ie(19),Ve(L.createJsxSpreadAttribute(t),e)}();Ee();var e=me();return Ve(L.createJsxAttribute(Xe(),62!==ve()?void 0:10===(k=s.scanJsxAttributeValue())?It():un(!0)),e)}function _n(){return xe(),e.tokenIsIdentifierOrKeyword(ve())||22===ve()||mn()}function dn(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var r=t.expression;e.isNonNullExpression(r)&&!(32&r.flags);)r=r.expression;if(32&r.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function pn(t,r,n){var i=kt(!0,!0),a=n||dn(r),o=a?L.createPropertyAccessChain(r,n,i):L.createPropertyAccessExpression(r,i);return a&&e.isPrivateIdentifier(o.name)&&fe(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),Ve(o,t)}function fn(t,r,n){var i;if(23===ve())i=Ke(78,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=ie(jr);e.isStringOrNumericLiteralLike(a)&&(a.text=qe(a.text)),i=a}return Ie(23),Ve(n||dn(r)?L.createElementAccessChain(r,n,i):L.createElementAccessExpression(r,i),t)}function gn(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===ve()&&Ae(_n)?(i=Be(28),a=e.tokenIsIdentifierOrKeyword(ve())):a=Me(24),a)r=pn(t,r,i);else if(i||53!==ve()||s.hasPrecedingLineBreak())if(!i&&ue()||!Me(22)){if(!mn())return r;r=yn(t,r,i,void 0)}else r=fn(t,r,i);else xe(),r=Ve(L.createNonNullExpression(r),t)}}function mn(){return 14===ve()||15===ve()}function yn(e,t,r,n){var i=L.createTaggedTemplateExpression(t,n,14===ve()?(Te(),It()):Nt(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,Ve(i,e)}function vn(t,r){for(;;){r=gn(t,r,!0);var n=Le(28);if(0!=(131072&O)||29!==ve()&&47!==ve()){if(20===ve()){a=hn();r=Ve(n||dn(r)?L.createCallChain(r,n,void 0,a):L.createCallExpression(r,void 0,a),t);continue}}else{var i=Fe(bn);if(i){if(mn()){r=yn(t,r,n,i);continue}var a=hn();r=Ve(n||dn(r)?L.createCallChain(r,n,i,a):L.createCallExpression(r,i,a),t);continue}}if(n){var o=Ke(78,!1,e.Diagnostics.Identifier_expected);r=Ve(L.createPropertyAccessChain(r,n,o),t)}break}return r}function hn(){Ie(20);var e=xt(11,Sn);return Ie(21),e}function bn(){if(0==(131072&O)&&29===Ce()){xe();var e=xt(20,Or);if(Ie(31))return e&&function(){switch(ve()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}()?e:void 0}}function xn(){switch(ve()){case 8:case 9:case 10:case 14:return It();case 107:case 105:case 103:case 109:case 94:return je();case 20:return function(){var e=me(),t=ye();Ie(20);var r=ie(jr);return Ie(21),V(Ve(L.createParenthesizedExpression(r),e),t)}();case 22:return Tn();case 18:return En();case 129:if(!Ae(Bn))break;return kn();case 83:return bi(me(),ye(),void 0,void 0,221);case 97:return kn();case 102:return function(){var t=me();if(Ie(102),Me(24)){var r=Xe();return Ve(L.createMetaProperty(102,r),t)}var n,i,a=me(),o=xn();for(;;){o=gn(a,o,!1),n=Fe(bn),mn()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=yn(a,o,void 0,n),n=void 0);break}20===ve()?i=hn():n&&pe(t,s.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list);return Ve(L.createNewExpression(o,n,i),t)}();case 43:case 67:if(13===(k=s.reScanSlashToken()))return It();break;case 15:return Nt(!1)}return Ge(e.Diagnostics.Expression_expected)}function Dn(){return 25===ve()?function(){var e=me();Ie(25);var t=zr();return Ve(L.createSpreadElement(t),e)}():27===ve()?Ve(L.createOmittedExpression(),me()):zr()}function Sn(){return re(c,Dn)}function Tn(){var e=me();Ie(22);var t=s.hasPrecedingLineBreak(),r=xt(15,Dn);return Ie(23),Ve(L.createArrayLiteralExpression(r,t),e)}function Cn(){var e=me(),t=ye();if(Le(25)){var r=zr();return V(Ve(L.createSpreadAssignment(r),e),t)}var n=fi(),i=mi();if(et(134))return li(e,t,n,i,167);if(et(146))return li(e,t,n,i,168);var a,o=Le(41),s=we(),c=Ze(),u=Le(57),l=Le(53);if(o||20===ve()||29===ve())return si(e,t,n,i,o,c,u,l);if(s&&58!==ve()){var _=Le(62),d=_?ie(zr):void 0;(a=L.createShorthandPropertyAssignment(c,d)).equalsToken=_}else{Ie(58);var p=ie(zr);a=L.createPropertyAssignment(c,p)}return a.decorators=n,a.modifiers=i,a.questionToken=u,a.exclamationToken=l,V(Ve(a,e),t)}function En(){var t=me(),r=s.getTokenPos();Ie(18);var n=s.hasPrecedingLineBreak(),i=xt(12,Cn,!0);if(!Ie(19)){var a=e.lastOrUndefined(S);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(_,r,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Ve(L.createObjectLiteralExpression(i,n),t)}function kn(){var t=ue();t&&ee(!1);var r=me(),n=ye(),i=mi();Ie(97);var a=Le(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?ne(40960,Nn):o?function(e){return ne(8192,e)}(Nn):s?ae(Nn):Nn(),u=Kt(),l=Yt(o|s),_=Xt(58,!1),d=Fn(o|s);return t&&ee(!0),V(Ve(L.createFunctionExpression(i,a,c,u,l,_,d),r),n)}function Nn(){return Pe()?He():void 0}function An(t,r){var n=me(),i=s.getTokenPos();if(Ie(18,r)||t){var a=s.hasPrecedingLineBreak(),o=mt(1,Kn);if(!Ie(19)){var c=e.lastOrUndefined(S);c&&c.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(c,e.createDetachedDiagnostic(_,i,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Ve(L.createBlock(o,a),n)}o=St();return Ve(L.createBlock(o,void 0),n)}function Fn(e,t){var r=se();$(!!(1&e));var n=le();te(!!(2&e));var i=R;R=!1;var a=ue();a&&ee(!1);var o=An(!!(16&e),t);return a&&ee(!0),R=i,$(r),te(n),o}function Pn(){var e=me();Ie(96);var t,r,n=Le(130);if(Ie(20),26!==ve()&&(t=112===ve()||118===ve()||84===ve()?ri(!0):ne(4096,jr)),n?Ie(156):Me(156)){var i=ie(zr);Ie(21),r=L.createForOfStatement(n,t,i,Kn())}else if(Me(100)){i=ie(jr);Ie(21),r=L.createForInStatement(t,i,Kn())}else{Ie(26);var a=26!==ve()&&21!==ve()?ie(jr):void 0;Ie(26);var o=21!==ve()?ie(jr):void 0;Ie(21),r=L.createForStatement(t,a,o,Kn())}return Ve(r,e)}function wn(e){var t=me();Ie(241===e?80:85);var r=Je()?void 0:Ge();return ze(),Ve(241===e?L.createBreakStatement(r):L.createContinueStatement(r),t)}function In(){return 81===ve()?function(){var e=me();Ie(81);var t=ie(jr);Ie(58);var r=mt(3,Kn);return Ve(L.createCaseClause(t,r),e)}():function(){var e=me();Ie(87),Ie(58);var t=mt(3,Kn);return Ve(L.createDefaultClause(t),e)}()}function On(){var e=me();Ie(106),Ie(20);var t=ie(jr);Ie(21);var r=function(){var e=me();Ie(18);var t=mt(2,In);return Ie(19),Ve(L.createCaseBlock(t),e)}();return Ve(L.createSwitchStatement(t,r),e)}function Mn(){var e=me();Ie(110);var t,r=An(!1),n=82===ve()?function(){var e,t=me();Ie(82),Me(20)?(e=ti(),Ie(21)):e=void 0;var r=An(!1);return Ve(L.createCatchClause(e,r),t)}():void 0;return n&&95!==ve()||(Ie(95),t=An(!1)),Ve(L.createTryStatement(r,n,t),e)}function Ln(){return xe(),e.tokenIsIdentifierOrKeyword(ve())&&!s.hasPrecedingLineBreak()}function Rn(){return xe(),83===ve()&&!s.hasPrecedingLineBreak()}function Bn(){return xe(),97===ve()&&!s.hasPrecedingLineBreak()}function jn(){return xe(),(e.tokenIsIdentifierOrKeyword(ve())||8===ve()||9===ve()||10===ve())&&!s.hasPrecedingLineBreak()}function Jn(){for(;;)switch(ve()){case 112:case 118:case 84:case 97:case 83:case 91:return!0;case 117:case 149:return xe(),!s.hasPrecedingLineBreak()&&we();case 139:case 140:return Gn();case 125:case 129:case 133:case 120:case 121:case 122:case 142:if(xe(),s.hasPrecedingLineBreak())return!1;continue;case 154:return xe(),18===ve()||78===ve()||92===ve();case 99:return xe(),10===ve()||41===ve()||18===ve()||e.tokenIsIdentifierOrKeyword(ve());case 92:var t=xe();if(149===t&&(t=Ae(xe)),62===t||41===t||18===t||87===t||126===t)return!0;continue;case 123:xe();continue;default:return!1}}function zn(){return Ae(Jn)}function Un(){switch(ve()){case 59:case 26:case 18:case 112:case 118:case 97:case 83:case 91:case 98:case 89:case 114:case 96:case 85:case 80:case 104:case 115:case 106:case 108:case 110:case 86:case 82:case 95:return!0;case 99:return zn()||Ae(sr);case 84:case 92:return zn();case 129:case 133:case 117:case 139:case 140:case 149:case 154:return!0;case 122:case 120:case 121:case 123:case 142:return zn()||!Ae(Ln);default:return Br()}}function Vn(){return xe(),we()||18===ve()||22===ve()}function Kn(){switch(ve()){case 26:return t=me(),Ie(26),Ve(L.createEmptyStatement(),t);case 18:return An(!1);case 112:return ii(me(),ye(),void 0,void 0);case 118:if(Ae(Vn))return ii(me(),ye(),void 0,void 0);break;case 97:return ai(me(),ye(),void 0,void 0);case 83:return hi(me(),ye(),void 0,void 0);case 98:return function(){var e=me();Ie(98),Ie(20);var t=ie(jr);Ie(21);var r=Kn(),n=Me(90)?Kn():void 0;return Ve(L.createIfStatement(t,r,n),e)}();case 89:return function(){var e=me();Ie(89);var t=Kn();Ie(114),Ie(20);var r=ie(jr);return Ie(21),Me(26),Ve(L.createDoStatement(t,r),e)}();case 114:return function(){var e=me();Ie(114),Ie(20);var t=ie(jr);Ie(21);var r=Kn();return Ve(L.createWhileStatement(t,r),e)}();case 96:return Pn();case 85:return wn(240);case 80:return wn(241);case 104:return function(){var e=me();Ie(104);var t=Je()?void 0:ie(jr);return ze(),Ve(L.createReturnStatement(t),e)}();case 115:return function(){var e=me();Ie(115),Ie(20);var t=ie(jr);Ie(21);var r=ne(16777216,Kn);return Ve(L.createWithStatement(t,r),e)}();case 106:return On();case 108:return function(){var e=me();Ie(108);var t=s.hasPrecedingLineBreak()?void 0:ie(jr);return void 0===t&&(P++,t=Ve(L.createIdentifier(""),me())),ze(),Ve(L.createThrowStatement(t),e)}();case 110:case 82:case 95:return Mn();case 86:return function(){var e=me();return Ie(86),ze(),Ve(L.createDebuggerStatement(),e)}();case 59:return Wn();case 129:case 117:case 149:case 139:case 140:case 133:case 84:case 91:case 92:case 99:case 120:case 121:case 122:case 125:case 123:case 142:case 154:if(zn())return Wn()}var t;return function(){var t,r=me(),n=ye(),i=20===ve(),a=ie(jr);return e.isIdentifier(a)&&Me(58)?t=L.createLabeledStatement(a,Kn()):(ze(),t=L.createExpressionStatement(a),i&&(n=!1)),V(Ve(t,r),n)}()}function qn(e){return 133===e.kind}function Wn(){var t=e.some(Ae((function(){return fi(),mi()})),qn);if(t){var r=ne(8388608,(function(){var e=vt(w);if(e)return ht(e)}));if(r)return r}var n=me(),i=ye(),a=fi(),o=mi();if(t){for(var s=0,c=o;s<c.length;s++){c[s].flags|=8388608}return ne(8388608,(function(){return Hn(n,i,a,o)}))}return Hn(n,i,a,o)}function Hn(t,r,n,i){switch(ve()){case 112:case 118:case 84:return ii(t,r,n,i);case 97:return ai(t,r,n,i);case 83:return hi(t,r,n,i);case 117:return function(e,t,r,n){Ie(117);var i=Ge(),a=Kt(),o=xi(),s=cr();return V(Ve(L.createInterfaceDeclaration(r,n,i,a,o,s),e),t)}(t,r,n,i);case 149:return function(e,t,r,n){Ie(149);var i=Ge(),a=Kt();Ie(62);var o=136===ve()&&Fe(mr)||Or();return ze(),V(Ve(L.createTypeAliasDeclaration(r,n,i,a,o),e),t)}(t,r,n,i);case 91:return function(e,t,r,n){Ie(91);var i,a=Ge();Ie(18)?(i=re(40960,(function(){return xt(6,Ei)})),Ie(19)):i=St();return V(Ve(L.createEnumDeclaration(r,n,a,i),e),t)}(t,r,n,i);case 154:case 139:case 140:return function(e,t,r,n){var i=0;if(154===ve())return Ai(e,t,r,n);if(Me(140))i|=16;else if(Ie(139),10===ve())return Ai(e,t,r,n);return Ni(e,t,r,n,i)}(t,r,n,i);case 99:return function(e,t,r,n){Ie(99);var i,a=s.getStartPos();we()&&(i=Ge());var o,c=!1;153===ve()||"type"!==(null==i?void 0:i.escapedText)||!we()&&41!==ve()&&18!==ve()||(c=!0,i=we()?Ge():void 0);if(i&&27!==ve()&&153!==ve())return function(e,t,r,n,i,a){Ie(62);var o=143===ve()&&Ae(Fi)?function(){var e=me();Ie(143),Ie(20);var t=wi();return Ie(21),Ve(L.createExternalModuleReference(t),e)}():Ct(!1);return ze(),V(Ve(L.createImportEqualsDeclaration(r,n,a,i,o),e),t)}(e,t,r,n,i,c);(i||41===ve()||18===ve())&&(o=function(e,t,r){var n;e&&!Me(27)||(n=41===ve()?function(){var e=me();Ie(41),Ie(126);var t=Ge();return Ve(L.createNamespaceImport(t),e)}():Ii(264));return Ve(L.createImportClause(r,e,n),t)}(i,a,c),Ie(153));var u=wi();return ze(),V(Ve(L.createImportDeclaration(r,n,o,u),e),t)}(t,r,n,i);case 92:switch(xe(),ve()){case 87:case 62:return function(e,t,r,n){var i,a=le();te(!0),Me(62)?i=!0:Ie(87);var o=zr();return ze(),te(a),V(Ve(L.createExportAssignment(r,n,i,o),e),t)}(t,r,n,i);case 126:return function(e,t,r,n){Ie(126),Ie(140);var i=Ge();ze();var a=L.createNamespaceExportDeclaration(i);return a.decorators=r,a.modifiers=n,V(Ve(a,e),t)}(t,r,n,i);default:return function(e,t,r,n){var i,a,o=le();te(!0);var c=Me(149),u=me();Me(41)?(Me(126)&&(i=function(e){return Ve(L.createNamespaceExport(Xe()),e)}(u)),Ie(153),a=wi()):(i=Ii(268),(153===ve()||10===ve()&&!s.hasPrecedingLineBreak())&&(Ie(153),a=wi()));return ze(),te(o),V(Ve(L.createExportDeclaration(r,n,c,i,a),e),t)}(t,r,n,i)}default:if(n||i){var a=Ke(271,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(a,t),a.decorators=n,a.modifiers=i,a}return}}function Gn(){return xe(),!s.hasPrecedingLineBreak()&&(we()||10===ve())}function Xn(e,t){if(18===ve()||!Je())return Fn(e,t);ze()}function Qn(){var e=me();if(27===ve())return Ve(L.createOmittedExpression(),e);var t=Le(25),r=$n(),n=Jr();return Ve(L.createBindingElement(t,void 0,r,n),e)}function Yn(){var e,t=me(),r=Le(25),n=Pe(),i=Ze();n&&58!==ve()?(e=i,i=void 0):(Ie(58),e=$n());var a=Jr();return Ve(L.createBindingElement(r,i,e,a),t)}function Zn(){return 18===ve()||22===ve()||79===ve()||Pe()}function $n(e){return 22===ve()?function(){var e=me();Ie(22);var t=xt(10,Qn);return Ie(23),Ve(L.createArrayBindingPattern(t),e)}():18===ve()?function(){var e=me();Ie(18);var t=xt(9,Yn);return Ie(19),Ve(L.createObjectBindingPattern(t),e)}():He(e)}function ei(){return ti(!0)}function ti(t){var r,n=me(),i=$n(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations);t&&78===i.kind&&53===ve()&&!s.hasPrecedingLineBreak()&&(r=je());var a=Lr(),o=Xr(ve())?void 0:Jr();return Ve(L.createVariableDeclaration(i,r,a,o),n)}function ri(t){var r,n=me(),i=0;switch(ve()){case 112:break;case 118:i|=1;break;case 84:i|=2;break;default:e.Debug.fail()}if(xe(),156===ve()&&Ae(ni))r=St();else{var a=ce();Z(t),r=xt(8,t?ti:ei),Z(a)}return Ve(L.createVariableDeclarationList(r,i),n)}function ni(){return ut()&&21===xe()}function ii(e,t,r,n){var i=ri(!1);ze();var a=L.createVariableStatement(n,i);return a.decorators=r,V(Ve(a,e),t)}function ai(t,r,n,i){var a=le(),o=e.modifiersToFlags(i);Ie(97);var s=Le(41),c=512&o?Nn():He(),u=s?1:0,l=256&o?2:0,_=Kt();1&o&&te(!0);var d=Yt(u|l),p=Xt(58,!1),f=Xn(u|l,e.Diagnostics.or_expected);return te(a),V(Ve(L.createFunctionDeclaration(n,i,s,c,_,d,p,f),t),r)}function oi(t,r,n,i){return Fe((function(){if(132===ve()?Ie(132):10===ve()&&20===Ae(xe)?Fe((function(){var e=It();return"constructor"===e.text?e:void 0})):void 0){var a=Kt(),o=Yt(0),s=Xt(58,!1),c=Xn(0,e.Diagnostics.or_expected),u=L.createConstructorDeclaration(n,i,o,c);return u.typeParameters=a,u.type=s,V(Ve(u,t),r)}}))}function si(t,r,n,i,a,o,s,c,u){var l=a?1:0,_=e.some(i,e.isAsyncModifier)?2:0,d=Kt(),p=Yt(l|_),f=Xt(58,!1),g=Xn(l|_,u),m=L.createMethodDeclaration(n,i,a,o,s,d,p,f,g);return m.exclamationToken=c,V(Ve(m,t),r)}function ci(e,t,r,n,i,a){var o=a||s.hasPrecedingLineBreak()?void 0:Le(53),c=Lr(),u=re(45056,Jr);return ze(),V(Ve(L.createPropertyDeclaration(r,n,i,a||o,c,u),e),t)}function ui(t,r,n,i){var a=Le(41),o=Ze(),s=Le(57);return a||20===ve()||29===ve()?si(t,r,n,i,a,o,s,void 0,e.Diagnostics.or_expected):ci(t,r,n,i,o,s)}function li(e,t,r,n,i){var a=Ze(),o=Kt(),s=Yt(0),c=Xt(58,!1),u=Xn(0),l=167===i?L.createGetAccessorDeclaration(r,n,a,s,c,u):L.createSetAccessorDeclaration(r,n,a,s,u);return l.typeParameters=o,c&&168===l.kind&&(l.type=c),V(Ve(l,e),t)}function _i(){var t;if(59===ve())return!0;for(;e.isModifierKind(ve());){if(t=ve(),e.isClassMemberModifier(t))return!0;xe()}if(41===ve())return!0;if(Qe()&&(t=ve(),xe()),22===ve())return!0;if(void 0!==t){if(!e.isKeyword(t)||146===t||134===t)return!0;switch(ve()){case 20:case 29:case 53:case 58:case 62:case 57:return!0;default:return Je()}}return!1}function di(){if(le()&&130===ve()){var t=me(),r=Ge(e.Diagnostics.Expression_expected);return xe(),vn(t,gn(t,r,!0))}return rn()}function pi(){var e=me();if(Me(59)){var t=ne(16384,di);return Ve(L.createDecorator(t),e)}}function fi(){for(var t,r,n=me();r=pi();)t=e.append(t,r);return t&&Ue(t,n)}function gi(t){var r=me(),n=ve();if(84===ve()&&t){if(!Fe(tt))return}else if(!e.isModifierKind(ve())||!Fe(rt))return;return Ve(L.createToken(n),r)}function mi(t){for(var r,n,i=me();n=gi(t);)r=e.append(r,n);return r&&Ue(r,i)}function yi(){var e;if(129===ve()){var t=me();xe(),e=Ue([Ve(L.createToken(129),t)],t)}return e}function vi(){var t=me();if(26===ve())return xe(),Ve(L.createSemicolonClassElement(),t);var r=ye(),n=fi(),i=mi(!0);if(et(134))return li(t,r,n,i,167);if(et(146))return li(t,r,n,i,168);if(132===ve()||10===ve()){var a=oi(t,r,n,i);if(a)return a}if(er())return rr(t,r,n,i);if(e.tokenIsIdentifierOrKeyword(ve())||10===ve()||8===ve()||41===ve()||22===ve()){if(e.some(i,qn)){for(var o=0,s=i;o<s.length;o++){s[o].flags|=8388608}return ne(8388608,(function(){return ui(t,r,n,i)}))}return ui(t,r,n,i)}if(n||i){var c=Ke(78,!0,e.Diagnostics.Declaration_expected);return ci(t,r,n,i,c,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function hi(e,t,r,n){return bi(e,t,r,n,252)}function bi(t,r,n,i,a){var o=le();Ie(83);var s=!Pe()||116===ve()&&Ae(lt)?void 0:We(Pe()),c=Kt();e.some(i,e.isExportModifier)&&te(!0);var u,l=xi();return Ie(18)?(u=mt(5,vi),Ie(19)):u=St(),te(o),V(Ve(252===a?L.createClassDeclaration(n,i,s,c,l,u):L.createClassExpression(n,i,s,c,l,u),t),r)}function xi(){if(Ci())return mt(22,Di)}function Di(){var t=me(),r=ve();e.Debug.assert(93===r||116===r),xe();var n=xt(7,Si);return Ve(L.createHeritageClause(r,n),t)}function Si(){var e=me(),t=rn(),r=Ti();return Ve(L.createExpressionWithTypeArguments(t,r),e)}function Ti(){return 29===ve()?Tt(20,Or,29,31):void 0}function Ci(){return 93===ve()||116===ve()}function Ei(){var e=me(),t=ye(),r=Ze(),n=ie(Jr);return V(Ve(L.createEnumMember(r,n),e),t)}function ki(){var e,t=me();return Ie(18)?(e=mt(1,Kn),Ie(19)):e=St(),Ve(L.createModuleBlock(e),t)}function Ni(e,t,r,n,i){var a=16&i,o=Ge(),s=Me(24)?Ni(me(),!1,void 0,void 0,4|a):ki();return V(Ve(L.createModuleDeclaration(r,n,o,s,i),e),t)}function Ai(e,t,r,n){var i,a,o=0;return 154===ve()?(i=Ge(),o|=1024):(i=It()).text=qe(i.text),18===ve()?a=ki():ze(),V(Ve(L.createModuleDeclaration(r,n,i,a,o),e),t)}function Fi(){return 20===xe()}function Pi(){return 43===xe()}function wi(){if(10===ve()){var e=It();return e.text=qe(e.text),e}return jr()}function Ii(e){var t=me();return Ve(264===e?L.createNamedImports(Tt(23,Mi,18,19)):L.createNamedExports(Tt(23,Oi,18,19)),t)}function Oi(){return Li(270)}function Mi(){return Li(265)}function Li(t){var r,n,i=me(),a=e.isKeyword(ve())&&!we(),o=s.getTokenPos(),c=s.getTextPos(),u=Xe();return 126===ve()?(r=u,Ie(126),a=e.isKeyword(ve())&&!we(),o=s.getTokenPos(),c=s.getTextPos(),n=Xe()):n=u,265===t&&a&&pe(o,c,e.Diagnostics.Identifier_expected),Ve(265===t?L.createImportSpecifier(r,n):L.createExportSpecifier(r,n),i)}function Ri(t){return function(t,r){return e.some(t.modifiers,(function(e){return e.kind===r}))}(t,92)||e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)||e.isImportDeclaration(t)||e.isExportAssignment(t)||e.isExportDeclaration(t)?t:void 0}function Bi(t){return function(t){return e.isMetaProperty(t)&&99===t.keywordToken&&"meta"===t.name.escapedText}(t)?t:p(t,Bi)}t.fixupParentReferences=X,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"}(K||(K={})),function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"}(q||(q={})),function(t){function r(e){var t=me(),r=(e?Me:Ie)(18),n=ne(4194304,Ut);e&&!r||Oe(19);var i=L.createJSDocTypeExpression(n);return X(i),Ve(i,t)}function n(){var e=me(),t=Me(18),r=Ct(!1);t&&Oe(19);var n=L.createJSDocNameReference(r);return X(n),Ve(n,e)}var i,a;function o(t,i){void 0===t&&(t=0);var a=h,o=void 0===i?a.length:t+i;if(i=o-t,e.Debug.assert(t>=0),e.Debug.assert(t<=o),e.Debug.assert(o<=a.length),d(a,t)){var c,u,l,p=[];return s.scanRange(t+3,i-5,(function(){var e,r,n,i=1,_=t-(a.lastIndexOf("\n",t)+1)+4;function d(t){e||(e=_),p.push(t),_+=t.length}for(De();J(5););J(4)&&(i=0,_=0);e:for(;;){switch(ve()){case 59:0===i||1===i?(g(p),T(b(_)),i=0,e=void 0):d(s.getTokenText());break;case 4:p.push(s.getTokenText()),i=0,_=0;break;case 41:var m=s.getTokenText();1===i||2===i?(i=2,d(m)):(i=1,_+=m.length);break;case 5:var y=s.getTokenText();2===i?p.push(y):void 0!==e&&_+y.length>e&&p.push(y.slice(e-_)),_+=y.length;break;case 1:break e;default:i=2,d(s.getTokenText())}De()}return f(p),g(p),r=p.length?p.join(""):void 0,n=c&&Ue(c,u,l),Ve(L.createJSDocComment(r,n),t,o)}))}function f(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function g(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function m(){for(;;){if(De(),1===ve())return!0;if(5!==ve()&&4!==ve())return!1}}function y(){if(5!==ve()&&4!==ve()||!Ae(m))for(;5===ve()||4===ve();)De()}function v(){if((5===ve()||4===ve())&&Ae(m))return"";for(var e=s.hasPrecedingLineBreak(),t=!1,r="";e&&41===ve()||5===ve()||4===ve();)r+=s.getTokenText(),4===ve()?(e=!0,t=!0,r=""):41===ve()&&(e=!1),De();return t?r:""}function b(t){e.Debug.assert(59===ve());var i=s.getTokenPos();De();var a,u=z(void 0),l=v();switch(u.escapedText){case"author":a=function(e,t,r,n){var i=function(){var e=[],t=!1,r=s.getToken();for(;1!==r&&4!==r;){if(29===r)t=!0;else{if(59===r&&!t)break;if(31===r&&t){e.push(s.getTokenText()),s.setTextPos(s.getTokenPos()+1);break}}e.push(s.getTokenText()),r=De()}return e.join("")}()+(x(e,o,r,n)||"");return Ve(L.createJSDocAuthorTag(t,i||void 0),e)}(i,u,t,l);break;case"implements":a=function(e,t,r,n){var i=F(),a=me();return Ve(L.createJSDocImplementsTag(t,i,x(e,a,r,n)),e,a)}(i,u,t,l);break;case"augments":case"extends":a=function(e,t,r,n){var i=F(),a=me();return Ve(L.createJSDocAugmentsTag(t,i,x(e,a,r,n)),e,a)}(i,u,t,l);break;case"class":case"constructor":a=w(i,L.createJSDocClassTag,u,t,l);break;case"public":a=w(i,L.createJSDocPublicTag,u,t,l);break;case"private":a=w(i,L.createJSDocPrivateTag,u,t,l);break;case"protected":a=w(i,L.createJSDocProtectedTag,u,t,l);break;case"readonly":a=w(i,L.createJSDocReadonlyTag,u,t,l);break;case"deprecated":H=!0,a=w(i,L.createJSDocDeprecatedTag,u,t,l);break;case"this":a=function(e,t,n,i){var a=r(!0);y();var o=me();return Ve(L.createJSDocThisTag(t,a,x(e,o,n,i)),e,o)}(i,u,t,l);break;case"enum":a=function(e,t,n,i){var a=r(!0);y();var o=me();return Ve(L.createJSDocEnumTag(t,a,x(e,o,n,i)),e,o)}(i,u,t,l);break;case"arg":case"argument":case"param":return N(i,u,2,t);case"return":case"returns":a=function(t,r,n,i){e.some(c,e.isJSDocReturnTag)&&pe(r.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=C(),o=me();return Ve(L.createJSDocReturnTag(r,a,x(t,o,n,i)),t,o)}(i,u,t,l);break;case"template":a=function(e,t,n,i){var a=18===ve()?r():void 0,o=function(){var e=me(),t=[];do{y(),t.push(j()),v()}while(J(27));return Ue(t,e)}(),s=me();return Ve(L.createJSDocTemplateTag(t,a,o,x(e,s,n,i)),e,s)}(i,u,t,l);break;case"type":a=A(i,u,t,l);break;case"typedef":a=function(t,r,n,i){var a,o=C();v();var s=I();y();var c,u=D(n);if(!o||k(o.type)){for(var l=void 0,d=void 0,p=void 0,f=!1;l=Fe((function(){return M(n)}));)if(f=!0,329===l.kind){if(d){_e(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var g=e.lastOrUndefined(S);g&&e.addRelatedInfo(g,e.createDetachedDiagnostic(_,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}d=l}else p=e.append(p,l);if(f){var m=o&&178===o.type.kind,h=L.createJSDocTypeLiteral(p,m);c=(o=d&&d.typeExpression&&!k(d.typeExpression.type)?d.typeExpression:Ve(h,t)).end}}c=c||void 0!==u?me():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,u||(u=x(t,c,n,i));return Ve(L.createJSDocTypedefTag(r,o,s,u),t,c)}(i,u,t,l);break;case"callback":a=function(t,r,n,i){var a=I();y();var o=D(n),s=function(t){var r,n,i=me();for(;r=Fe((function(){return R(4,t)}));)n=e.append(n,r);return Ue(n||[],i)}(n),c=Fe((function(){if(J(59)){var e=b(n);if(e&&327===e.kind)return e}})),u=Ve(L.createJSDocSignature(void 0,s,c),t),l=me();o||(o=x(t,l,n,i));return Ve(L.createJSDocCallbackTag(r,u,a,o),t,l)}(i,u,t,l);break;case"see":a=function(e,t,r,i){var a=n(),o=me(),s=void 0!==r&&void 0!==i?x(e,o,r,i):void 0;return Ve(L.createJSDocSeeTag(t,a,s),e,o)}(i,u,t,l);break;default:a=function(e,t,r,n){var i=me();return Ve(L.createJSDocUnknownTag(t,x(e,i,r,n)),e,i)}(i,u,t,l)}return a}function x(e,t,r,n){return n||(r+=t-e),D(r,n.slice(r))}function D(t,r){var n,i=[],a=0,o=!0;function c(e){n||(n=t),i.push(e),t+=e.length}void 0!==r&&(""!==r&&c(r),a=1);var u=ve();e:for(;;){switch(u){case 4:a=0,i.push(s.getTokenText()),t=0;break;case 59:if(3===a||!o&&2===a){i.push(s.getTokenText());break}s.setTextPos(s.getTextPos()-1);case 1:break e;case 5:if(2===a||3===a)c(s.getTokenText());else{var l=s.getTokenText();void 0!==n&&t+l.length>n&&i.push(l.slice(n-t)),t+=l.length}break;case 18:a=2,Ae((function(){return 59===De()&&e.tokenIsIdentifierOrKeyword(De())&&"link"===s.getTokenText()}))&&(c(s.getTokenText()),De(),c(s.getTokenText()),De()),c(s.getTokenText());break;case 61:a=3===a?2:3,c(s.getTokenText());break;case 41:if(0===a){a=1,t+=1;break}default:3!==a&&(a=2),c(s.getTokenText())}o=5===ve(),u=De()}return f(i),g(i),0===i.length?void 0:i.join("")}function T(e){e&&(c?c.push(e):(c=[e],u=e.pos),l=e.end)}function C(){return v(),18===ve()?r():void 0}function E(){var t=J(22);t&&y();var r,n=J(61),i=function(){var e=z();Me(22)&&Ie(23);for(;Me(24);){var t=z();Me(22)&&Ie(23),e=Et(e,t)}return e}();return n&&(Re(r=61)||Ke(r,!1,e.Diagnostics._0_expected,e.tokenToString(r))),t&&(y(),Le(62)&&jr(),Ie(23)),{name:i,isBracketed:t}}function k(t){switch(t.kind){case 145:return!0;case 178:return k(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function N(t,r,n,i){var a=C(),o=!a;v();var s=E(),c=s.name,u=s.isBracketed,l=v();o&&(a=C());var _=x(t,me(),i,l),d=4!==n&&function(t,r,n,i){if(t&&k(t.type)){for(var a=me(),o=void 0,s=void 0;o=Fe((function(){return R(n,i,r)}));)326!==o.kind&&333!==o.kind||(s=e.append(s,o));if(s){var c=Ve(L.createJSDocTypeLiteral(s,178===t.type.kind),a);return Ve(L.createJSDocTypeExpression(c),a)}}}(a,c,n,i);return d&&(a=d,o=!0),Ve(1===n?L.createJSDocPropertyTag(r,c,u,a,o,_):L.createJSDocParameterTag(r,c,u,a,o,_),t)}function A(t,n,i,a){e.some(c,e.isJSDocTypeTag)&&pe(n.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var o=r(!0),u=me(),l=void 0!==i&&void 0!==a?x(t,u,i,a):void 0;return Ve(L.createJSDocTypeTag(n,o,l),t,u)}function F(){var e=Me(18),t=me(),r=function(){var e=me(),t=z();for(;Me(24);){var r=z();t=Ve(L.createPropertyAccessExpression(t,r),e)}return t}(),n=Ti(),i=Ve(L.createExpressionWithTypeArguments(r,n),t);return e&&Ie(19),i}function w(e,t,r,n,i){var a=me();return Ve(t(r,x(e,a,n,i)),e,a)}function I(t){var r=s.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ve())){var n=z();if(Me(24)){var i=I(!0);return Ve(L.createModuleDeclaration(void 0,void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function O(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function M(e){return R(1,e)}function R(t,r,n){for(var i=!0,a=!1;;)switch(De()){case 59:if(i){var o=B(t,r);return!(o&&(326===o.kind||333===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!O(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 78:i=!1;break;case 1:return!1}}function B(t,r){e.Debug.assert(59===ve());var n=s.getStartPos();De();var i,a=z();switch(y(),a.escapedText){case"type":return 1===t&&A(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&N(n,a,t,r)}function j(){var t=me(),r=z(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);return Ve(L.createTypeParameterDeclaration(r,void 0,void 0),t)}function J(e){return ve()===e&&(De(),!0)}function z(t){if(!e.tokenIsIdentifierOrKeyword(ve()))return Ke(78,!t,t||e.Diagnostics.Identifier_expected);P++;var r=s.getTokenPos(),n=s.getTextPos(),i=ve(),a=qe(s.getTokenValue()),o=Ve(L.createIdentifier(a,void 0,i),r,n);return De(),o}}t.parseJSDocTypeExpressionForTests=function(t,n,i){J("file.js",t,99,void 0,1),s.setText(t,n,i),k=s.scan();var a=r(),o=Q("file.js",99,1,!1,[],L.createToken(1),0),c=e.attachFileToDiagnostics(S,o);return T&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(T,o)),z(),a?{jsDocTypeExpression:a,diagnostics:c}:void 0},t.parseJSDocTypeExpression=r,t.parseJSDocNameReference=n,t.parseIsolatedJSDocComment=function(t,r,n){J("",t,99,void 0,1);var i=ne(4194304,(function(){return o(r,n)})),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(S,a);return z(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=function(t,r,n){var i=k,a=S.length,s=B,c=ne(4194304,(function(){return o(r,n)}));return e.setParent(c,t),131072&O&&(T||(T=[]),T.push.apply(T,S)),k=i,S.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={}))}(W=t.JSDocParser||(t.JSDocParser={}))}(c||(c={})),function(t){function r(t,r,i,o,s,c){return void(r?l(t):u(t));function u(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),p(t,u,l),e.hasJSDocNodes(t))for(var _=0,d=t.jsDoc;_<d.length;_++){u(d[_])}a(t,c)}function l(t){t._children=void 0,e.setTextRangePosEnd(t,t.pos+i,t.end+i);for(var r=0,n=t;r<n.length;r++){u(n[r])}}}function n(e){switch(e.kind){case 10:case 8:case 78:return!0}return!1}function i(t,r,n,i,a){e.Debug.assert(t.end>=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;a<o.length;a++){i(o[a])}p(t,i),e.Debug.assert(n<=t.end)}}function o(t,r){var n,i=t;if(p(t,(function t(a){if(e.nodeIsMissing(a))return;if(!(a.pos<=r))return e.Debug.assert(a.pos>r),!0;if(a.pos>=i.pos&&(i=a),r<a.end)return p(a,t),!0;e.Debug.assert(a.end<=r),n=a})),n){var a=function(t){for(;;){var r=e.getLastChild(t);if(!r)return t;t=r}}(n);a.pos>i.pos&&(i=a)}return i}function s(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}function u(t){var r=t.statements,n=0;e.Debug.assert(n<r.length);var i=r[n],a=-1;return{currentNode:function(o){return o!==a&&(i&&i.end===o&&n<r.length-1&&(n++,i=r[n]),i&&i.pos===o||function(e){return r=void 0,n=-1,i=void 0,void p(t,a,o);function a(t){return e>=t.pos&&e<t.end&&(p(t,a,o),!0)}function o(t){if(e>=t.pos&&e<t.end)for(var s=0;s<t.length;s++){var c=t[s];if(c){if(c.pos===e)return r=t,n=s,i=c,!0;if(c.pos<e&&e<c.end)return p(c,a,o),!0}}return!1}}(o)),a=o,e.Debug.assert(!i||i.pos===o),i}}}var l;t.updateSourceFile=function(t,n,l,_){if(s(t,n,l,_=_||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(l))return t;if(0===t.statements.length)return c.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var d=t;e.Debug.assert(!d.hasBeenIncrementallyParsed),d.hasBeenIncrementallyParsed=!0,c.fixupParentReferences(d);var f=t.text,g=u(t),m=function(t,r){for(var n=1,i=r.span.start,a=0;i>0&&a<=n;a++){var s=o(t,i);e.Debug.assert(s.pos<=i);var c=s.pos;i=Math.max(0,c-1)}var u=e.createTextSpanFromBounds(i,e.textSpanEnd(r.span)),l=r.newLength+(r.span.start-i);return e.createTextChangeRange(u,l)}(t,l);s(t,n,m,_),e.Debug.assert(m.span.start<=l.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(l.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(l)));var y=e.textChangeRangeNewSpan(m).length-m.span.length;!function(t,n,o,s,c,u,l,_){return void d(t);function d(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,u,l,_);else{var g=t.end;if(g>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),p(t,d,f),e.hasJSDocNodes(t))for(var m=0,y=t.jsDoc;m<y.length;m++){d(y[m])}a(t,_)}else e.Debug.assert(g<n)}}function f(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!0,c,u,l,_);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var p=0,f=t;p<f.length;p++){d(f[p])}}else e.Debug.assert(a<n)}}}(d,m.span.start,e.textSpanEnd(m.span),e.textSpanEnd(e.textChangeRangeNewSpan(m)),y,f,n,_);var v=c.parseSourceFile(t.fileName,n,t.languageVersion,g,!0,t.scriptKind);return v.commentDirectives=function(t,r,n,i,a,o,s,c){if(!t)return r;for(var u,l=!1,_=0,d=t;_<d.length;_++){var p=d[_],f=p.range,g=p.type;if(f.end<n)u=e.append(u,p);else if(f.pos>i){y();var m={range:{pos:f.pos+a,end:f.end+a},type:g};u=e.append(u,m),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(m.range.pos,m.range.end))}}return y(),u;function y(){l||(l=!0,u?r&&u.push.apply(u,r):u=r)}}(t.commentDirectives,v.commentDirectives,m.span.start,e.textSpanEnd(m.span),y,f,n,_),v},t.createSyntaxCursor=u,function(e){e[e.Value=-1]="Value"}(l||(l={}))}(u||(u={})),e.isDeclarationFileName=m,e.processCommentPragmas=y,e.processPragmasIntoFields=v;var h=new e.Map;function b(e){if(h.has(e))return h.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return h.set(e,t),t}var x=/^\/\/\/\s*<(\S+)\s.*?\/>/im,D=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function S(t,r,n){var i=2===r.kind&&x.exec(n);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,u=o.args;c<u.length;c++){var l=u[c],_=b(l.name).exec(n);if(!_&&!l.optional)return;if(_)if(l.captureSpan){var d=r.pos+_.index+_[1].length+_[2].length;s[l.name]={value:_[3],pos:d,end:d+_[3].length}}else s[l.name]=_[3]}t.push({name:a,args:{arguments:s,range:r}})}else t.push({name:a,args:{arguments:{},range:r}})}else{var p=2===r.kind&&D.exec(n);if(p)return T(t,r,2,p);if(3===r.kind)for(var f=/\s*@(\S+)\s*(.*)\s*$/gim,g=void 0;g=f.exec(n);)T(t,r,4,g)}}function T(t,r,n,i){if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(o&&o.kind&n){var s=function(t,r){if(!r)return{};if(!t.args)return{};for(var n=r.split(/\s+/),i={},a=0;a<t.args.length;a++){var o=t.args[a];if(!n[a]&&!o.optional)return"fail";if(o.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");i[o.name]=n[a]}return i}(o,i[2]);"fail"!==s&&t.push({name:a,args:{arguments:s,range:r}})}}}function C(e,t){return e.kind===t.kind&&(78===e.kind?e.escapedText===t.escapedText:107===e.kind||e.name.escapedText===t.name.escapedText&&C(e.expression,t.expression))}e.tagNamesAreEquivalent=C}(ts||(ts={})),function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var t=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(t.entries(),(function(e){var t=e[0];return[""+e[1],t]}))));var r,n,i=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["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"],["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.esnext.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.esnext.weakref.d.ts"]];function a(t){var r=new e.Map,n=new e.Map;return e.forEach(t,(function(e){r.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:r,shortOptionNames:n}}function o(){return r||(r=a(e.optionDeclarations))}function s(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function c(t){return u(t,e.createCompilerDiagnostic)}function u(t,r){var n=e.arrayFrom(t.type.keys()).map((function(e){return"'"+e+"'"})).join(", ");return r(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,n)}function l(e,t,r){return le(e,_e(t||""),r)}function _(t,r,n){if(void 0===r&&(r=""),r=_e(r),!e.startsWith(r,"-")){if(""===r)return[];var i=r.split(",");switch(t.element.type){case"number":return e.mapDefined(i,(function(e){return ue(t.element,parseInt(e),n)}));case"string":return e.mapDefined(i,(function(e){return ue(t.element,e||"",n)}));default:return e.mapDefined(i,(function(e){return l(t.element,e,n)}))}}}function d(e){return e.name}function p(t,r,n,i){var a=e.getSpellingSuggestion(t,r.optionDeclarations,d);return a?n(r.unknownDidYouMeanDiagnostic,i||t,a.name):n(r.unknownOptionDiagnostic,i||t)}function f(t,r,n){var i,a={},o=[],s=[];return c(r),{options:a,watchOptions:i,fileNames:o,errors:s};function c(r){for(var n=0;n<r.length;){var c=r[n];if(n++,64===c.charCodeAt(0))u(c.slice(1));else if(45===c.charCodeAt(0)){var l=c.slice(45===c.charCodeAt(1)?2:1),_=y(t.getOptionsNameMap,l,!0);if(_)n=g(r,n,t,_,a,s);else{var d=y(F.getOptionsNameMap,l,!0);d?n=g(r,n,F,d,i||(i={}),s):s.push(p(l,t,e.createCompilerDiagnostic,c))}}else o.push(c)}}function u(t){var r=x(t,n||function(t){return e.sys.readFile(t)});if(e.isString(r)){for(var i=[],a=0;;){for(;a<r.length&&r.charCodeAt(a)<=32;)a++;if(a>=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a<r.length&&34!==r.charCodeAt(a);)a++;a<r.length?(i.push(r.substring(o+1,a)),a++):s.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}else{for(;r.charCodeAt(a)>32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function g(t,r,n,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[r])?(a[i.name]=void 0,r++):"boolean"===i.type?"false"===s?(a[i.name]=ue(i,!1,o),r++):("true"===s&&r++,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,"-")&&r++);else if(t[r]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,L(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=ue(i,parseInt(t[r]),o),r++;break;case"boolean":var s=t[r];a[i.name]=ue(i,"false"!==s,o),"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=ue(i,t[r]||"",o),r++;break;case"list":var c=_(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=l(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function m(e,t){return y(o,e,t)}function y(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionsNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}e.libs=i.map((function(e){return e[0]})),e.libMap=new e.Map(i),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Advanced_Options,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:he},category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:he},category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_and_the_reason_they_are_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Generates_a_CPU_profile},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us}],e.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,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT},e.optionDeclarations=__spreadArray(__spreadArray([],e.commonOptionsWithBuild),[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing},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.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:t,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_react_react_jsx_or_react_jsxdev},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files,transpileOptionValue:void 0},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation,transpileOptionValue:void 0},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_file_to_store_incremental_compilation_information,transpileOptionValue:void 0},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs,transpileOptionValue:void 0},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule,transpileOptionValue:!0},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!1,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Include_undefined_in_index_signature_results},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Require_undeclared_properties_from_index_signatures_to_use_element_accesses},{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.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime,transpileOptionValue:void 0},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts,transpileOptionValue:!0},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files,transpileOptionValue:!0},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_solution_searching_for_this_project},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_loading_referenced_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported,transpileOptionValue:void 0},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files,transpileOptionValue:void 0},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_class_fields_with_Define_instead_of_Set},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter((function(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.transpileOptionValueCompilerOptions=e.optionDeclarations.filter((function(t){return e.hasProperty(t,"transpileOptionValue")})),e.buildOpts=__spreadArray(__spreadArray([],e.commonOptionsWithBuild),[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean"}],e.createOptionNameMap=a,e.getOptionsNameMap=o,e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=s,e.createCompilerDiagnosticForInvalidCustomType=c,e.parseCustomTypeOption=l,e.parseListTypeOption=_,e.parseCommandLineWorker=f,e.compilerOptionsDidYouMeanDiagnostics={getOptionsNameMap:o,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(t,r){return f(e.compilerOptionsDidYouMeanDiagnostics,t,r)},e.getOptionFromName=m;var v={getOptionsNameMap:function(){return n||(n=a(e.buildOpts))},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 h(t,r){var n=e.parseJsonText(t,r);return{config:O(n,n.parseDiagnostics),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function b(t,r){var n=x(t,r);return e.isString(n)?e.parseJsonText(t,n):{fileName:t,parseDiagnostics:[n]}}function x(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function D(t){return e.arrayToMap(t,d)}e.parseBuildCommand=function(t){var r=f(v,t),n=r.options,i=r.watchOptions,a=r.fileNames,o=r.errors,s=n;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(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=e.createCompilerDiagnostic.apply(void 0,arguments);return i.messageText},e.getParsedCommandLineOfConfigFile=function(t,r,n,i,a,o){var s=x(t,(function(e){return n.readFile(e)}));if(e.isString(s)){var c=e.parseJsonText(t,s),u=n.getCurrentDirectory();return c.path=e.toPath(t,u,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames)),c.resolvedPath=c.path,c.originalFileName=c.fileName,q(c,n,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),u),r,e.getNormalizedAbsolutePath(t,u),void 0,o,i,a)}n.onUnRecoverableConfigFileDiagnostic(s)},e.readConfigFile=function(t,r){var n=x(t,r);return e.isString(n)?h(t,n):{config:{},error:n}},e.parseConfigFileTextToJson=h,e.readJsonConfigFile=b,e.tryReadFile=x;var S,T={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1};function C(){return S||(S=a(e.optionsForWatch))}var E,k,N,A,F={getOptionsNameMap:C,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 P(){return E||(E=D(e.optionDeclarations))}function w(){return k||(k=D(e.optionsForWatch))}function I(){return N||(N=D(e.typeAcquisitionDeclarations))}function O(e,t){return M(e,t,!0,void 0,void 0)}function M(t,r,n,i,a){return t.statements.length?c(t.statements[0].expression,i):n?{}:void 0;function o(e){return i&&i.elementOptions===e}function s(i,s,u,_){for(var d=n?{}:void 0,f=function(i){if(288!==i.kind)return r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.Property_assignment_expected)),"continue";i.questionToken&&r.push(e.createDiagnosticForNodeInSourceFile(t,i.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),l(i.name)||r.push(e.createDiagnosticForNodeInSourceFile(t,i.name,e.Diagnostics.String_literal_with_double_quotes_expected));var f=e.isComputedNonLiteralName(i.name)?void 0:e.getTextOfPropertyName(i.name),g=f&&e.unescapeLeadingUnderscores(f),m=g&&s?s.get(g):void 0;g&&u&&!m&&(s?r.push(p(g,u,(function(r,n,a){return e.createDiagnosticForNodeInSourceFile(t,i.name,r,n,a)}))):r.push(e.createDiagnosticForNodeInSourceFile(t,i.name,u.unknownOptionDiagnostic,g)));var y=c(i.initializer,m);if(void 0!==g&&(n&&(d[g]=y),a&&(_||o(s)))){var v=R(m,y);_?v&&a.onSetValidOptionKeyValueInParent(_,m,y):o(s)&&(v?a.onSetValidOptionKeyValueInRoot(g,i.name,y,i.initializer):m||a.onSetUnknownOptionKeyValueInRoot(g,i.name,y,i.initializer))}},g=0,m=i.properties;g<m.length;g++){f(m[g])}return d}function c(i,a){var o;switch(i.kind){case 109:return m(a&&"boolean"!==a.type),g(!0);case 94:return m(a&&"boolean"!==a.type),g(!1);case 103:return m(a&&"extends"===a.name),g(null);case 10:l(i)||r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.String_literal_with_double_quotes_expected)),m(a&&e.isString(a.type)&&"string"!==a.type);var _=i.text;if(a&&!e.isString(a.type)){var d=a;d.type.has(_.toLowerCase())||(r.push(u(d,(function(r,n,a){return e.createDiagnosticForNodeInSourceFile(t,i,r,n,a)}))),o=!0)}return g(_);case 8:return m(a&&"number"!==a.type),g(Number(i.text));case 214:if(40!==i.operator||8!==i.operand.kind)break;return m(a&&"number"!==a.type),g(-Number(i.operand.text));case 200:m(a&&"object"!==a.type);var p=i;if(a){var f=a;return g(s(p,f.elementOptions,f.extraKeyDiagnostics,f.name))}return g(s(p,void 0,void 0,void 0));case 199:return m(a&&"list"!==a.type),g(function(t,r){if(n)return e.filter(t.map((function(e){return c(e,r)})),(function(e){return void 0!==e}));t.forEach((function(e){return c(e,r)}))}(i.elements,a&&a.element))}return void(a?m(!0):r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function g(n){var s;if(!o){var c=null===(s=null==a?void 0:a.extraValidation)||void 0===s?void 0:s.call(a,n);if(c)return void r.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,__spreadArray([t,i],c)))}return n}function m(n){n&&(r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,a.name,L(a))),o=!0)}}function l(r){return e.isStringLiteral(r)&&e.isStringDoubleQuoted(r,t)}}function L(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function R(t,r){return!!t&&(!!H(r)||("list"===t.type?e.isArray(r):typeof r===(e.isString(t.type)?t.type:"string")))}function B(t){return __assign({},e.arrayFrom(t.entries()).reduce((function(e,t){var r;return __assign(__assign({},e),((r={})[t[0]]=t[1],r))}),{}))}function j(t){if(e.length(t)){if(1!==e.length(t))return t;if("**/*"!==t[0])return t}}function J(e){return"string"===e.type||"number"===e.type||"boolean"===e.type||"object"===e.type?void 0:"list"===e.type?J(e.element):e.type}function z(t,r){return e.forEachEntry(r,(function(e,r){if(e===t)return r}))}function U(e,t){return V(e,o(),t)}function V(t,r,n){var i=r.optionsNameMap,a=new e.Map,o=n&&e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),s=function(r){if(e.hasProperty(t,r)){if(i.has(r)&&i.get(r).category===e.Diagnostics.Command_line_Options)return"continue";var s=t[r],c=i.get(r.toLowerCase());if(c){var u=J(c);u?"list"===c.type?a.set(r,s.map((function(e){return z(e,u)}))):a.set(r,z(s,u)):n&&c.isFilePath?a.set(r,e.getRelativePathFromFile(n.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(n.configFilePath)),o)):a.set(r,s)}}};for(var c in t)s(c);return a}function K(e,t,r){if(e&&!H(t))if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function q(e,t,r,n,i,a,o,s,c){return X(void 0,e,t,r,n,c,i,a,o,s)}function W(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function H(e){return null==e}function G(t,r){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r))}function X(t,r,n,i,a,o,s,c,u,l){void 0===a&&(a={}),void 0===c&&(c=[]),void 0===u&&(u=[]),e.Debug.assert(void 0===t&&void 0!==r||void 0!==t&&void 0===r);var _=[],d=$(t,r,n,i,s,c,_,l),p=d.raw,f=e.extend(a,d.options||{}),g=o&&d.watchOptions?e.extend(o,d.watchOptions):d.watchOptions||o;f.configFilePath=s&&e.normalizeSlashes(s);var m=function(){var t=b("references",(function(e){return"object"==typeof e}),"object"),n=v(h("files"));if(n){var i="no-prop"===t||e.isArray(t)&&0===t.length,a=e.hasProperty(p,"extends");if(0===n.length&&i&&!a)if(r){var o=s||"tsconfig.json",c=e.Diagnostics.The_files_list_in_config_file_0_is_empty,u=e.firstDefined(e.getTsConfigPropArray(r,"files"),(function(e){return e.initializer})),l=u?e.createDiagnosticForNodeInSourceFile(r,u,c,o):e.createCompilerDiagnostic(c,o);_.push(l)}else x(e.Diagnostics.The_files_list_in_config_file_0_is_empty,s||"tsconfig.json")}var d,f,g=v(h("include")),m=h("exclude"),y=v(m);if("no-prop"===m&&p.compilerOptions){var D=p.compilerOptions.outDir,S=p.compilerOptions.declarationDir;(D||S)&&(y=[D,S].filter((function(e){return!!e})))}void 0===n&&void 0===g&&(g=["**/*"]);g&&(d=ve(g,_,!0,r,"include"));y&&(f=ve(y,_,!1,r,"exclude"));return{filesSpecs:n,includeSpecs:g,excludeSpecs:y,validatedFilesSpec:e.filter(n,e.isString),validatedIncludeSpecs:d,validatedExcludeSpecs:f}}();r&&(r.configFileSpecs=m),W(f,r);var y=e.normalizePath(s?G(s,i):i);return{options:f,watchOptions:g,fileNames:function(e){var t=me(m,e,f,n,u);Y(t,Z(p),c)&&_.push(Q(m,s));return t}(y),projectReferences:function(t){var r,n=b("references",(function(e){return"object"==typeof e}),"object");if(e.isArray(n))for(var i=0,a=n;i<a.length;i++){var o=a[i];"string"!=typeof o.path?x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(r||(r=[])).push({path:e.getNormalizedAbsolutePath(o.path,t),originalPath:o.path,prepend:o.prepend,circular:o.circular})}return r}(y),typeAcquisition:d.typeAcquisition||ne(),raw:p,errors:_,wildcardDirectories:be(m,y,n.useCaseSensitiveFileNames),compileOnSave:!!p.compileOnSave};function v(t){return e.isArray(t)?t:void 0}function h(t){return b(t,e.isString,"string")}function b(t,n,i){if(e.hasProperty(p,t)&&!H(p[t])){if(e.isArray(p[t])){var a=p[t];return r||e.every(a,n)||_.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,i)),a}return x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,"Array"),"not-array"}return"no-prop"}function x(t,n,i){r||_.push(e.createCompilerDiagnostic(t,n,i))}}function Q(t,r){var n=t.includeSpecs,i=t.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(n||[]),JSON.stringify(i||[]))}function Y(e,t,r){return 0===e.length&&t&&(!r||0===r.length)}function Z(t){return!e.hasProperty(t,"files")&&!e.hasProperty(t,"references")}function $(t,r,n,i,a,o,s,c){var u;i=e.normalizeSlashes(i);var l=e.getNormalizedAbsolutePath(a||"",i);if(o.indexOf(l)>=0)return s.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,__spreadArray(__spreadArray([],o),[l]).join(" -> "))),{raw:t||O(r,s)};var _=t?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=re(t.compilerOptions,n,a,i),c=ie(t.typeAcquisition||t.typingOptions,n,a,i),u=function(e,t,r){return ae(w(),e,t,void 0,F,r)}(t.watchOptions,n,a);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=oe(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var l=i?G(i,n):n;o=ee(t.extends,r,l,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,watchOptions:u,typeAcquisition:c,extendedConfigPath:o}}(t,n,i,a,s):function(t,r,n,i,a){var o,s,c,u,l=te(i),_={onSetValidOptionKeyValueInParent:function(t,r,a){var u;switch(t){case"compilerOptions":u=l;break;case"watchOptions":u=c||(c={});break;case"typeAcquisition":u=o||(o=ne(i));break;case"typingOptions":u=s||(s=ne(i));break;default:e.Debug.fail("Unknown option")}u[r.name]=se(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,l){switch(o){case"extends":var _=i?G(i,n):n;return void(u=ee(c,r,_,a,(function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)})))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,o){"excludes"===r&&a.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},d=M(t,a,!0,(void 0===A&&(A={name:void 0,type:"object",elementOptions:D([{name:"compilerOptions",type:"object",elementOptions:P(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:w(),extraKeyDiagnostics:F},{name:"typingOptions",type:"object",elementOptions:I(),extraKeyDiagnostics:T},{name:"typeAcquisition",type:"object",elementOptions:I(),extraKeyDiagnostics:T},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])}),A),_);o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:ne(i));return{raw:d,options:l,watchOptions:c,typeAcquisition:o,extendedConfigPath:u}}(r,n,i,a,s);if((null===(u=_.options)||void 0===u?void 0:u.paths)&&(_.options.pathsBasePath=i),_.extendedConfigPath){o=o.concat([l]);var d=function(t,r,n,i,a,o){var s,c,u,l,_=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);o&&(c=o.get(_))?(u=c.extendedResult,l=c.extendedConfig):((u=b(r,(function(e){return n.readFile(e)}))).parseDiagnostics.length||(l=$(void 0,u,n,e.getDirectoryPath(r),e.getBaseFileName(r),i,a,o)),o&&o.set(_,{extendedResult:u,extendedConfig:l}));t&&(t.extendedSourceFiles=[u.fileName],u.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,u.extendedSourceFiles));if(u.parseDiagnostics.length)return void a.push.apply(a,u.parseDiagnostics);return l}(r,_.extendedConfigPath,n,o,s,c);if(d&&d.options){var p,f=d.raw,g=_.raw,m=function(t){!g[t]&&f[t]&&(g[t]=e.map(f[t],(function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(p||(p=e.convertToRelativePath(e.getDirectoryPath(_.extendedConfigPath),i,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames))),t)})))};m("include"),m("exclude"),m("files"),void 0===g.compileOnSave&&(g.compileOnSave=f.compileOnSave),_.options=e.assign({},d.options,_.options),_.watchOptions=_.watchOptions&&d.watchOptions?e.assign({},d.watchOptions,_.watchOptions):_.watchOptions||d.watchOptions}}return _}function ee(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||(o+=".json",r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_not_found,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,t))}function te(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function re(t,r,n,i){var a=te(i);return ae(P(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ne(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function ie(e,t,r,n){var i=ne(n),a=s(e);return ae(I(),a,t,i,T,r),i}function ae(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=oe(c,r[s],n,o):o.push(p(s,a,e.createCompilerDiagnostic))}return i}}function oe(t,r,n,i){if(R(t,r)){var a=t.type;if("list"===a&&e.isArray(r))return function(t,r,n,i){return e.filter(e.map(r,(function(e){return oe(t.element,e,n,i)})),(function(e){return!!e}))}(t,r,n,i);if(!e.isString(a))return le(t,r,i);var o=ue(t,r,i);return H(o)?o:ce(t,n,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,L(t)))}function se(t,r,n){if(!H(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,(function(e){return se(i.element,r,e)})),(function(e){return!!e})):n}return e.isString(t.type)?ce(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function ce(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function ue(t,r,n){var i;if(!H(r)){var a=null===(i=t.extraValidation)||void 0===i?void 0:i.call(t,r);if(!a)return r;n.push(e.createCompilerDiagnostic.apply(void 0,a))}}function le(e,t,r){if(!H(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return ue(e,i,r);r.push(c(e))}}function _e(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.convertToObject=O,e.convertToObjectWorker=M,e.convertToTSConfig=function(t,r,n){var i,a,o,s=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),c=e.map(e.filter(t.fileNames,(null===(a=null===(i=t.options.configFile)||void 0===i?void 0:i.configFileSpecs)||void 0===a?void 0:a.validatedIncludeSpecs)?function(t,r,n,i){if(!r)return e.returnTrue;var a=e.getFileMatcherPatterns(t,n,r,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);if(s)return o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)};if(o)return function(e){return o.test(e)};return e.returnTrue}(r,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,n):e.returnTrue),(function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),s)})),u=U(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),l=t.watchOptions&&V(t.watchOptions,C());return __assign(__assign({compilerOptions:__assign(__assign({},B(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:l&&B(l),references:e.map(t.projectReferences,(function(e){return __assign(__assign({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(c)?c:void 0},(null===(o=t.options.configFile)||void 0===o?void 0:o.configFileSpecs)?{include:j(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.generateTSConfig=function(t,r,n){var i=U(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),c=0,u=e.optionDeclarations;c<u.length;c++){var l=u[c],_=l.category;s(l)&&t.add(e.getLocaleSpecificMessage(_),l)}var d=0,p=0,f=[];t.forEach((function(t,r){0!==f.length&&f.push({value:""}),f.push({value:"/* "+r+" */"});for(var n=0,o=t;n<o.length;n++){var s=o[n],c=void 0;c=i.has(s.name)?'"'+s.name+'": '+JSON.stringify(i.get(s.name))+((p+=1)===i.size?"":","):'// "'+s.name+'": '+JSON.stringify(a(s))+",",f.push({value:c,description:"/* "+(s.description&&e.getLocaleSpecificMessage(s.description)||s.name)+" */"}),d=Math.max(c.length,d)}}));var g=o(2),m=[];m.push("{"),m.push(g+'"compilerOptions": {'),m.push(""+g+g+"/* "+e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)+" */"),m.push("");for(var y=0,v=f;y<v.length;y++){var h=v[y],b=h.value,x=h.description,D=void 0===x?"":x;m.push(b&&""+g+g+b+(D&&o(d-b.length+2)+D))}if(r.length){m.push(g+"},"),m.push(g+'"files": [');for(var S=0;S<r.length;S++)m.push(""+g+g+JSON.stringify(r[S])+(S===r.length-1?"":","));m.push(g+"]")}else m.push(g+"}");return m.push("}"),m.join(n)+n}();function a(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":return t.isFilePath?"./":"";case"list":return[];case"object":return{};default:var r=t.type.keys().next();return r.done?e.Debug.fail("Expected 'option.type' to have entries."):r.value}}function o(e){return Array(e+1).join(" ")}function s(t){var r=t.category,n=t.name;return void 0!==r&&r!==e.Diagnostics.Command_line_Options&&(r!==e.Diagnostics.Advanced_Options||i.has(n))}},e.convertToOptionsWithAbsolutePaths=function(t,r){var n={},i=o().optionsNameMap;for(var a in t)e.hasProperty(t,a)&&(n[a]=K(i.get(a.toLowerCase()),t[a],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n},e.parseJsonConfigFileContent=function(e,t,r,n,i,a,o,s,c){return X(e,void 0,t,r,n,c,i,a,o,s)},e.parseJsonSourceFileConfigFileContent=q,e.setConfigFileInOptions=W,e.canJsonReportNoInputFiles=Z,e.updateErrorForNoInputFiles=function(t,r,n,i,a){var o=i.length;return Y(t,a)?i.push(Q(n,r)):e.filterMutate(i,(function(t){return!function(t){return t.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(t)})),o!==i.length},e.convertCompilerOptionsFromJson=function(e,t,r){var n=[];return{options:re(e,t,n,r),errors:n}},e.convertTypeAcquisitionFromJson=function(e,t,r){var n=[];return{options:ie(e,t,n,r),errors:n}},e.convertJsonOption=oe;var de=/(^|\/)\*\*\/?$/,pe=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,fe=/\/[^/]*?[*?][^/]*\//,ge=/^[^*?]*(?=\/[^/]*[*?])/;function me(t,r,n,i,a){void 0===a&&(a=e.emptyArray),r=e.normalizePath(r);var o,s=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),c=new e.Map,u=new e.Map,l=new e.Map,_=t.validatedFilesSpec,d=t.validatedIncludeSpecs,p=t.validatedExcludeSpecs,f=e.getSupportedExtensions(n,a),g=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(n,f);if(_)for(var m=0,y=_;m<y.length;m++){var v=y[m],h=e.getNormalizedAbsolutePath(v,r);c.set(s(h),h)}if(d&&d.length>0)for(var b=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var n=d.filter((function(t){return e.endsWith(t,".json")})),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),(function(e){return"^"+e+"$"}));o=a?a.map((function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)})):e.emptyArray}if(-1!==e.findIndex(o,(function(e){return e.test(t)}))){var _=s(t);c.has(_)||l.has(_)||l.set(_,t)}return"continue"}if(function(t,r,n,i,a){for(var o=e.getExtensionPriority(t,i),s=e.adjustExtensionPriority(o,i),c=0;c<s;c++){var u=i[c],l=a(e.changeExtension(t,u));if(r.has(l)||n.has(l))return!0}return!1}(t,c,u,f,s))return"continue";!function(t,r,n,i){for(var a=e.getExtensionPriority(t,n),o=e.getNextLowestExtensionPriority(a,n);o<n.length;o++){var s=n[o],c=i(e.changeExtension(t,s));r.delete(c)}}(t,u,f,s);var p=s(t);c.has(p)||u.has(p)||u.set(p,t)},x=0,D=i.readDirectory(r,g,p,d,void 0);x<D.length;x++){b(h=D[x])}var S=e.arrayFrom(c.values()),T=e.arrayFrom(u.values());return S.concat(T,e.arrayFrom(l.values()))}function ye(t,r,n,i,a){var o=e.getRegularExpressionForWildcard(r,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,n);return!!s&&(!!s.test(t)||!e.hasExtension(t)&&s.test(e.ensureTrailingDirectorySeparator(t)))}function ve(t,r,n,i,a){return t.filter((function(t){if(!e.isString(t))return!1;var i=he(t,n);return void 0!==i&&r.push(o.apply(void 0,i)),void 0===i}));function o(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}}function he(t,r){return r&&de.test(t)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:pe.test(t)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:void 0}function be(t,r,n){var i=t.validatedIncludeSpecs,a=t.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,r,"exclude"),s=o&&new RegExp(o,n?"":"i"),c={};if(void 0!==i){for(var u=[],l=0,_=i;l<_.length;l++){var d=_[l],p=e.normalizePath(e.combinePaths(r,d));if(!s||!s.test(p)){var f=xe(p,n);if(f){var g=f.key,m=f.flags,y=c[g];(void 0===y||y<m)&&(c[g]=m,1===m&&u.push(g))}}}for(var g in c)if(e.hasProperty(c,g))for(var v=0,h=u;v<h.length;v++){var b=h[v];g!==b&&e.containsPath(b,g,r,!n)&&delete c[g]}}return c}function xe(t,r){var n=ge.exec(t);return n?{key:r?n[0]:e.toFileNameLowerCase(n[0]),flags:fe.test(t)?1:0}:e.isImplicitGlob(t)?{key:r?t:e.toFileNameLowerCase(t),flags:1}:void 0}function De(t,r){switch(r.type){case"object":case"string":return"";case"number":return"number"==typeof t?t:"";case"boolean":return"boolean"==typeof t?t:"";case"list":var n=r.element;return e.isArray(t)?t.map((function(e){return De(e,n)})):"";default:return e.forEachEntry(r.type,(function(e,r){if(e===t)return r}))}}e.getFileNamesFromConfigSpecs=me,e.isExcludedFile=function(t,r,n,i,a){var o=r.validatedFilesSpec,s=r.validatedIncludeSpecs,c=r.validatedExcludeSpecs;if(!e.length(s)||!e.length(c))return!1;n=e.normalizePath(n);var u=e.createGetCanonicalFileName(i);if(o)for(var l=0,_=o;l<_.length;l++){var d=_[l];if(u(e.getNormalizedAbsolutePath(d,n))===t)return!1}return ye(t,c,i,a,n)},e.matchesExclude=function(t,r,n,i){return ye(t,e.filter(r,(function(e){return!pe.test(e)})),n,i)},e.convertCompilerOptionsForTelemetry=function(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=m(r);void 0!==n&&(t[r]=De(e[r],n))}return t}}(ts||(ts={})),function(e){function t(t){t.trace(e.formatMessage.apply(void 0,arguments))}function r(e,t){return!!e.traceResolution&&void 0!==t.trace}function n(t,r){var n;if(r&&t){var i=t.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(n={name:i.name,subModuleName:r.path.slice(t.packageDirectory.length+e.directorySeparator.length),version:i.version})}return r&&{path:r.path,extension:r.ext,packageId:n}}function i(e){return n(void 0,e)}function a(t){if(t)return e.Debug.assert(void 0===t.packageId),{path:t.path,ext:t.extension}}var o,s;function c(t){if(t)return e.Debug.assert(e.extensionIsTS(t.extension)),{fileName:t.path,packageId:t.packageId}}function u(e,t,r,n){var i;return n?((i=n.failedLookupLocations).push.apply(i,r),n):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:r}}function l(r,n,i,a){if(e.hasProperty(r,n)){var o=r[n];if(typeof o===i&&null!==o)return o;a.traceEnabled&&t(a.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,i,null===o?"null":typeof o)}else a.traceEnabled&&t(a.host,e.Diagnostics.package_json_does_not_have_a_0_field,n)}function _(r,n,i,a){var o=l(r,n,"string",a);if(void 0!==o){if(o){var s=e.normalizePath(e.combinePaths(i,o));return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,n,o,s),s}a.traceEnabled&&t(a.host,e.Diagnostics.package_json_had_a_falsy_0_field,n)}}function d(e,t,r){return _(e,"typings",t,r)||_(e,"types",t,r)}function p(e,t,r){return _(e,"main",t,r)}function f(r,n){var i=function(r,n){var i=l(r,"typesVersions","object",n);if(void 0!==i)return n.traceEnabled&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),i}(r,n);if(void 0!==i){if(n.traceEnabled)for(var a in i)e.hasProperty(i,a)&&!e.VersionRange.tryParse(a)&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,a);var o=g(i);if(o){var s=o.version,c=o.paths;if("object"==typeof c)return o;n.traceEnabled&&t(n.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+s+"']","object",typeof c)}else n.traceEnabled&&t(n.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor)}}function g(t){for(var r in s||(s=new e.Version(e.version)),t)if(e.hasProperty(t,r)){var n=e.VersionRange.tryParse(r);if(void 0!==n&&n.test(s))return{version:r,paths:t[r]}}}function m(t,r){return t.typeRoots?t.typeRoots:(t.configFilePath?n=e.getDirectoryPath(t.configFilePath):r.getCurrentDirectory&&(n=r.getCurrentDirectory()),void 0!==n?function(t,r){if(!r.directoryExists)return[e.combinePaths(t,y)];var n;return e.forEachAncestorDirectory(e.normalizePath(t),(function(t){var i=e.combinePaths(t,y);r.directoryExists(i)&&(n||(n=[])).push(i)})),n}(n,r):void 0);var n}e.trace=t,e.isTraceEnabled=r,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"}(o||(o={})),e.getPackageJsonTypesVersionsPaths=g,e.getEffectiveTypeRoots=m;var y=e.combinePaths("node_modules","@types");function v(t){var r=new e.Map,n=new e.Map;return{ownMap:r,redirectsMap:n,getOrCreateMapOfCacheRedirects:function(i){if(!i)return r;var a=i.sourceFile.path,o=n.get(a);o||(o=!t||e.optionsHaveModuleResolutionChanges(t,i.commandLine.options)?new e.Map:r,n.set(a,o));return o},clear:function(){r.clear(),n.clear()},setOwnOptions:function(e){t=e},setOwnMap:function(e){r=e}}}function h(t,r,n,i){return{getOrCreateCacheForDirectory:function(r,o){var s=e.toPath(r,n,i);return a(t,o,s,(function(){return new e.Map}))},getOrCreateCacheForModuleName:function(t,n){return e.Debug.assert(!e.isExternalModuleNameRelative(t)),a(r,n,t,o)},directoryToModuleNameMap:t,moduleNameToDirectoryMap:r};function a(e,t,r,n){var i=e.getOrCreateMapOfCacheRedirects(t),a=i.get(r);return a||(a=n(),i.set(r,a)),a}function o(){var t=new e.Map;return{get:function(r){return t.get(e.toPath(r,n,i))},set:function(r,a){var o=e.toPath(r,n,i);if(t.has(o))return;t.set(o,a);var s=a.resolvedModule&&(a.resolvedModule.originalPath||a.resolvedModule.resolvedFileName),c=s&&function(t,r){var a=e.toPath(e.getDirectoryPath(r),n,i),o=0,s=Math.min(t.length,a.length);for(;o<s&&t.charCodeAt(o)===a.charCodeAt(o);)o++;if(o===t.length&&(a.length===o||a[o]===e.directorySeparator))return t;var c=e.getRootLength(t);if(o<c)return;var u=t.lastIndexOf(e.directorySeparator,o-1);if(-1===u)return;return t.substr(0,Math.max(u,c))}(o,s),u=o;for(;u!==c;){var l=e.getDirectoryPath(u);if(l===u||t.has(l))break;t.set(l,a),u=l}}}}}function b(r,n,i,a,o){var s=function(r,n,i,a){var o=a.compilerOptions,s=o.baseUrl,c=o.paths;if(c&&!e.pathIsRelative(n)){return a.traceEnabled&&(s&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,n),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n)),K(r,n,e.getPathsBasePath(a.compilerOptions,a.host),c,i,!1,a)}}(r,n,a,o);return s?s.value:e.isExternalModuleNameRelative(n)?function(r,n,i,a,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var s,c,u=e.normalizePath(e.combinePaths(i,n)),l=0,_=o.compilerOptions.rootDirs;l<_.length;l++){var d=_[l],p=e.normalizePath(d);e.endsWith(p,e.directorySeparator)||(p+=e.directorySeparator);var f=e.startsWith(u,p)&&(void 0===c||c.length<p.length);o.traceEnabled&&t(o.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,p,u,f),f&&(c=p,s=d)}if(c){o.traceEnabled&&t(o.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,u,c);var g=u.substr(c.length);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,c,u);var m=a(r,u,!e.directoryProbablyExists(i,o.host),o);if(m)return m;o.traceEnabled&&t(o.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var y=0,v=o.compilerOptions.rootDirs;y<v.length;y++){if((d=v[y])!==s){var h=e.combinePaths(e.normalizePath(d),g);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,d,h);var b=e.getDirectoryPath(h),x=a(r,h,!e.directoryProbablyExists(b,o.host),o);if(x)return x}}o.traceEnabled&&t(o.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}(r,n,i,a,o):function(r,n,i,a){var o=a.compilerOptions.baseUrl;if(!o)return;a.traceEnabled&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,n);var s=e.normalizePath(e.combinePaths(o,n));a.traceEnabled&&t(a.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,n,o,s);return i(r,s,!e.directoryProbablyExists(e.getDirectoryPath(s),a.host),a)}(r,n,a,o)}e.resolveTypeReferenceDirective=function(n,i,a,s,u){var l=r(a,s);u&&(a=u.commandLine.options);var _=[],d={compilerOptions:a,host:s,traceEnabled:l,failedLookupLocations:_},p=m(a,s);l&&(void 0===i?void 0===p?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,n):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,n,p):void 0===p?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,n,i):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,n,i,p),u&&t(s,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,u.sourceFile.fileName));var f,g=function(){if(p&&p.length)return l&&t(s,e.Diagnostics.Resolving_with_primary_search_path_0,p.join(", ")),e.firstDefined(p,(function(r){var i=e.combinePaths(r,n),a=e.getDirectoryPath(i),u=e.directoryProbablyExists(a,s);return!u&&l&&t(s,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),c(L(o.DtsOnly,i,!u,d))}));l&&t(s,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),y=!0;if(g||(g=function(){var r=i&&e.getDirectoryPath(i);if(void 0!==r){l&&t(s,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,r);var a=void 0;if(e.isExternalModuleNameRelative(n)){var u=e.normalizePathAndParts(e.combinePaths(r,n)).path;a=A(o.DtsOnly,u,!1,d,!0)}else{var _=J(o.DtsOnly,n,r,d,void 0,void 0);a=_&&_.value}var p=c(a);return!p&&l&&t(s,e.Diagnostics.Type_reference_directive_0_was_not_resolved,n),p}l&&t(s,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),y=!1),g){var v=g.fileName,h=g.packageId,b=a.preserveSymlinks?v:N(v,s,l);l&&(h?t(s,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,n,b,e.packageIdToString(h),y):t(s,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,n,b,y)),f={primary:y,resolvedFileName:b,packageId:h,isExternalLibraryImport:F(v)}}return{resolvedTypeReferenceDirective:f,failedLookupLocations:_}},e.getAutomaticTypeDirectiveNames=function(t,r){if(t.types)return t.types;var n=[];if(r.directoryExists&&r.getDirectories){var i=m(t,r);if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];if(r.directoryExists(s))for(var c=0,u=r.getDirectories(s);c<u.length;c++){var l=u[c],_=e.normalizePath(l),d=e.combinePaths(s,_,"package.json");if(!(r.fileExists(d)&&null===e.readJson(d,r).typings)){var p=e.getBaseFileName(_);46!==p.charCodeAt(0)&&n.push(p)}}}}return n},e.createModuleResolutionCache=function(e,t,r){return h(v(r),v(r),e,t)},e.createCacheWithRedirects=v,e.createModuleResolutionCacheWithMaps=h,e.resolveModuleNameFromCache=function(t,r,n){var i=e.getDirectoryPath(r),a=n&&n.getOrCreateCacheForDirectory(i);return a&&a.get(t)},e.resolveModuleName=function(n,i,a,o,s,c){var u=r(a,o);c&&(a=c.commandLine.options),u&&(t(o,e.Diagnostics.Resolving_module_0_from_1,n,i),c&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName));var l=e.getDirectoryPath(i),_=s&&s.getOrCreateCacheForDirectory(l,c),d=_&&_.get(n);if(d)u&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,l);else{var p=a.moduleResolution;switch(void 0===p?(p=e.getEmitModuleKind(a)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,u&&t(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[p])):u&&t(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[p]),e.perfLogger.logStartResolveModule(n),p){case e.ModuleResolutionKind.NodeJs:d=E(n,i,a,o,s,c);break;case e.ModuleResolutionKind.Classic:d=X(n,i,a,o,s,c);break;default:return e.Debug.fail("Unexpected moduleResolution: "+p)}d&&d.resolvedModule&&e.perfLogger.logInfoEvent('Module "'+n+'" resolved to "'+d.resolvedModule.resolvedFileName+'"'),e.perfLogger.logStopResolveModule(d&&d.resolvedModule?""+d.resolvedModule.resolvedFileName:"null"),_&&(_.set(n,d),e.isExternalModuleNameRelative(n)||s.getOrCreateCacheForModuleName(n,c).set(l,d))}return u&&(d.resolvedModule?d.resolvedModule.packageId?t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,n,d.resolvedModule.resolvedFileName,e.packageIdToString(d.resolvedModule.packageId)):t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,n,d.resolvedModule.resolvedFileName):t(o,e.Diagnostics.Module_name_0_was_not_resolved,n)),d},e.resolveJSModule=function(e,t,r){var n=C(e,t,r),i=n.resolvedModule,a=n.failedLookupLocations;if(!i)throw new Error("Could not resolve JS module '"+e+"' starting at '"+t+"'. Looked in: "+a.join(", "));return i.resolvedFileName},e.tryResolveJSModule=function(e,t,r){var n=C(e,t,r).resolvedModule;return n&&n.resolvedFileName};var x=[o.JavaScript],D=[o.TypeScript,o.JavaScript],S=__spreadArray(__spreadArray([],D),[o.Json]),T=[o.TSConfig];function C(t,r,n){return k(t,r,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},n,void 0,x,void 0)}function E(t,r,n,i,a,o,s){return k(t,e.getDirectoryPath(r),n,i,a,s?T:n.resolveJsonModule?S:D,o)}function k(n,i,a,s,c,l,_){var d,p,f=r(a,s),g=[],m={compilerOptions:a,host:s,traceEnabled:f,failedLookupLocations:g},y=e.forEach(l,(function(r){return function(r){var u=b(r,n,i,(function(e,t,r,n){return A(e,t,r,n,!0)}),m);if(u)return Q({resolved:u,isExternalLibraryImport:F(u.path)});if(e.isExternalModuleNameRelative(n)){var l=e.normalizePathAndParts(e.combinePaths(i,n)),d=l.path,p=l.parts,g=A(r,d,!1,m,!0);return g&&Q({resolved:g,isExternalLibraryImport:e.contains(p,"node_modules")})}f&&t(s,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,n,o[r]);var y=J(r,n,i,m,c,_);if(!y)return;var v=y.value;if(!a.preserveSymlinks&&v&&!v.originalPath){var h=N(v.path,s,f),x=h===v.path?void 0:v.path;v=__assign(__assign({},v),{path:h,originalPath:x})}return{value:v&&{resolved:v,isExternalLibraryImport:!0}}}(r)}));return u(null===(d=null==y?void 0:y.value)||void 0===d?void 0:d.resolved,null===(p=null==y?void 0:y.value)||void 0===p?void 0:p.isExternalLibraryImport,g,m.resultFromCache)}function N(r,n,i){if(!n.realpath)return r;var a=e.normalizePath(n.realpath(r));return i&&t(n,e.Diagnostics.Resolving_real_path_for_0_result_1,r,a),e.Debug.assert(n.fileExists(a),r+" linked to nonexistent file "+a),a}function A(r,i,a,s,c){if(s.traceEnabled&&t(s.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,i,o[r]),!e.hasTrailingDirectorySeparator(i)){if(!a){var u=e.getDirectoryPath(i);e.directoryProbablyExists(u,s.host)||(s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),a=!0)}var l=I(r,i,a,s);if(l){var _=c?function(t){var r=e.normalizePath(t.path),n=r.lastIndexOf(e.nodeModulesPathPart);if(-1===n)return;var i=n+e.nodeModulesPathPart.length,a=P(r,i);64===r.charCodeAt(i)&&(a=P(r,a));return r.slice(0,a)}(l):void 0;return n(_?R(_,!1,s):void 0,l)}}a||(e.directoryProbablyExists(i,s.host)||(s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),a=!0));return L(r,i,a,s,c)}function F(t){return e.stringContains(t,e.nodeModulesPathPart)}function P(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function w(e,t,r,n){return i(I(e,t,r,n))}function I(r,n,i,a){if(r===o.Json||r===o.TSConfig){var s=e.tryRemoveExtension(n,".json");return void 0===s&&r===o.Json?void 0:O(s||n,r,i,a)}var c=O(n,r,i,a);if(c)return c;if(e.hasJSFileExtension(n)){var u=e.removeFileExtension(n);if(a.traceEnabled){var l=n.substring(u.length);t(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,l)}return O(u,r,i,a)}}function O(t,r,n,i){if(!n){var a=e.getDirectoryPath(t);a&&(n=!e.directoryProbablyExists(a,i.host))}switch(r){case o.DtsOnly:return s(".d.ts");case o.TypeScript:return s(".ts")||s(".tsx")||s(".d.ts");case o.JavaScript:return s(".js")||s(".jsx");case o.TSConfig:case o.Json:return s(".json")}function s(e){var r=M(t+e,n,i);return void 0===r?void 0:{path:r,ext:e}}}function M(r,n,i){if(!n){if(i.host.fileExists(r))return i.traceEnabled&&t(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,r),r;i.traceEnabled&&t(i.host,e.Diagnostics.File_0_does_not_exist,r)}i.failedLookupLocations.push(r)}function L(e,t,r,i,a){void 0===a&&(a=!0);var o=a?R(t,r,i):void 0;return n(o,B(e,t,r,i,o&&o.packageJsonContent,o&&o.versionPaths))}function R(r,n,i){var a=i.host,o=i.traceEnabled,s=!n&&e.directoryProbablyExists(r,a),c=e.combinePaths(r,"package.json");if(s&&a.fileExists(c)){var u=e.readJson(c,a);return o&&t(a,e.Diagnostics.Found_package_json_at_0,c),{packageDirectory:r,packageJsonContent:u,versionPaths:f(u,i)}}s&&o&&t(a,e.Diagnostics.File_0_does_not_exist,c),i.failedLookupLocations.push(c)}function B(r,n,s,c,u,l){var f;if(u)switch(r){case o.JavaScript:case o.Json:f=p(u,n,c);break;case o.TypeScript:f=d(u,n,c)||p(u,n,c);break;case o.DtsOnly:f=d(u,n,c);break;case o.TSConfig:f=function(e,t,r){return _(e,"tsconfig",t,r)}(u,n,c);break;default:return e.Debug.assertNever(r)}var g=function(r,n,a,s){var c=M(n,a,s);if(c){var u=function(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&function(e,t){switch(e){case o.JavaScript:return".js"===t||".jsx"===t;case o.TSConfig:case o.Json:return".json"===t;case o.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case o.DtsOnly:return".d.ts"===t}}(t,n)?{path:r,ext:n}:void 0}(r,c);if(u)return i(u);s.traceEnabled&&t(s.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,c)}return A(r===o.DtsOnly?o.TypeScript:r,n,a,s,!1)},m=f?!e.directoryProbablyExists(e.getDirectoryPath(f),c.host):void 0,y=s||!e.directoryProbablyExists(n,c.host),v=e.combinePaths(n,r===o.TSConfig?"tsconfig":"index");if(l&&(!f||e.containsPath(n,f))){var h=e.getRelativePathFromDirectory(n,f||v,!1);c.traceEnabled&&t(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,l.version,e.version,h);var b=K(r,h,n,l.paths,g,m||y,c);if(b)return a(b.value)}var x=f&&a(g(r,f,m,c));return x||I(r,v,y,c)}function j(t){var r=t.indexOf(e.directorySeparator);return"@"===t[0]&&(r=t.indexOf(e.directorySeparator,r+1)),-1===r?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function J(e,t,r,n,i,a){return z(e,t,r,n,!1,i,a)}function z(t,r,n,i,a,o,s){var c=o&&o.getOrCreateCacheForModuleName(r,s);return e.forEachAncestorDirectory(e.normalizeSlashes(n),(function(n){if("node_modules"!==e.getBaseFileName(n)){var o=G(c,r,n,i);return o||Q(U(t,r,n,i,a))}}))}function U(r,n,i,a,s){var c=e.combinePaths(i,"node_modules"),u=e.directoryProbablyExists(c,a.host);!u&&a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,c);var l=s?void 0:V(r,n,c,u,a);if(l)return l;if(r===o.TypeScript||r===o.DtsOnly){var _=e.combinePaths(c,"@types"),d=u;return u&&!e.directoryProbablyExists(_,a.host)&&(a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),d=!1),V(o.DtsOnly,function(r,n){var i=W(r);n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i);return i}(n,a),_,d,a)}}function V(r,a,o,s,c){var u=e.normalizePath(e.combinePaths(o,a)),l=R(u,!s,c);if(l){var _=I(r,u,!s,c);if(_)return i(_);var d=B(r,u,!s,c,l.packageJsonContent,l.versionPaths);return n(l,d)}var p=function(e,t,r,i){var a=I(e,t,r,i)||B(e,t,r,i,l&&l.packageJsonContent,l&&l.versionPaths);return n(l,a)},f=j(a),g=f.packageName,m=f.rest;if(""!==m){var y=e.combinePaths(o,g);if((l=R(y,!s,c))&&l.versionPaths){c.traceEnabled&&t(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,l.versionPaths.version,e.version,m);var v=s&&e.directoryProbablyExists(y,c.host),h=K(r,m,y,l.versionPaths.paths,p,!v,c);if(h)return h.value}}return p(r,u,!s,c)}function K(r,n,a,o,s,c,u){var l=e.matchPatternOrExact(e.getOwnKeys(o),n);if(l){var _=e.isString(l)?void 0:e.matchedText(l,n),d=e.isString(l)?l:e.patternText(l);return u.traceEnabled&&t(u.host,e.Diagnostics.Module_name_0_matched_pattern_1,n,d),{value:e.forEach(o[d],(function(n){var o=_?n.replace("*",_):n,l=e.normalizePath(e.combinePaths(a,o));u.traceEnabled&&t(u.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,n,o);var d=e.tryGetExtensionFromPath(n);if(void 0!==d){var p=M(l,c,u);if(void 0!==p)return i({path:p,ext:d})}return s(r,l,c||!e.directoryProbablyExists(e.getDirectoryPath(l),u.host),u)}))}}}e.nodeModuleNameResolver=E,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=F,e.parsePackageName=j;var q="__";function W(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,q);if(r!==t)return r.slice(1)}return t}function H(t){return e.stringContains(t,q)?"@"+t.replace(q,e.directorySeparator):t}function G(r,n,i,a){var o=r&&r.get(i);if(o)return a.traceEnabled&&t(a.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,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 X(t,n,i,a,s,c){var l=[],_={compilerOptions:i,host:a,traceEnabled:r(i,a),failedLookupLocations:l},d=e.getDirectoryPath(n),p=f(o.TypeScript)||f(o.JavaScript);return u(p&&p.value,!1,l,_.resultFromCache);function f(r){var n=b(r,t,d,w,_);if(n)return{value:n};if(e.isExternalModuleNameRelative(t)){var i=e.normalizePath(e.combinePaths(d,t));return Q(w(r,i,!1,_))}var a=s&&s.getOrCreateCacheForModuleName(t,c),u=e.forEachAncestorDirectory(d,(function(n){var i=G(a,t,n,_);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return Q(w(r,o,!1,_))}));return u||(r===o.TypeScript?function(e,t,r){return z(o.DtsOnly,e,t,r,!0,void 0,void 0)}(t,d,_):void 0)}}function Q(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/"+W(e)},e.mangleScopedPackageName=W,e.getPackageNameFromTypesPackageName=function(t){var r=e.removePrefix(t,"@types/");return r!==t?H(r):t},e.unmangleScopedPackageName=H,e.classicNameResolver=X,e.loadModuleFromGlobalCache=function(n,i,a,s,c){var l=r(a,s);l&&t(s,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,n,c);var _=[],d={compilerOptions:a,host:s,traceEnabled:l,failedLookupLocations:_};return u(U(o.DtsOnly,n,c,d,!1),!0,_,d.resultFromCache)}}(ts||(ts={})),function(e){var t;function r(t,r){return t.body&&!t.body.parent&&(e.setParent(t.body,t),e.setParentRecursive(t.body,!1)),t.body?n(t.body,r):1}function n(t,a){void 0===a&&(a=new e.Map);var o=e.getNodeId(t);if(a.has(o))return a.get(o)||0;a.set(o,void 0);var s=function(t,a){switch(t.kind){case 253:case 254:return 0;case 255:if(e.isEnumConst(t))return 2;break;case 261:case 260:if(!e.hasSyntacticModifier(t,1))return 0;break;case 267:var o=t;if(!o.moduleSpecifier&&o.exportClause&&268===o.exportClause.kind){for(var s=0,c=0,u=o.exportClause.elements;c<u.length;c++){var l=i(u[c],a);if(l>s&&(s=l),1===s)return s}return s}break;case 257:var _=0;return e.forEachChild(t,(function(t){var r=n(t,a);switch(r){case 0:return;case 2:return void(_=2);case 1:return _=1,!0;default:e.Debug.assertNever(r)}})),_;case 256:return r(t,a);case 78:if(t.isInJSDocNamespace)return 0}return 1}(t,a);return a.set(o,s),s}function i(t,r){for(var i=t.propertyName||t.name,a=t.parent;a;){if(e.isBlock(a)||e.isModuleBlock(a)||e.isSourceFile(a)){for(var o=void 0,s=0,c=a.statements;s<c.length;s++){var u=c[s];if(e.nodeHasName(u,i)){u.parent||(e.setParent(u,a),e.setParentRecursive(u,!1));var l=n(u,r);if((void 0===o||l>o)&&(o=l),1===o)return o}}if(void 0!==o)return o}a=a.parent}return 1}function a(t){return e.Debug.attachFlowNodeDebugInfo(t),t}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),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"}(t||(t={}));var o=function(){var t,n,i,o,l,_,d,p,f,g,m,y,v,h,b,x,D,S,T,C,E,k,N,A,F=!1,P=0,w={flags:1},I={flags:1};function O(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(r,s){t=r,n=s,i=e.getEmitScriptTarget(n),k=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,s),A=new e.Set,P=0,N=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(w),e.Debug.attachFlowNodeDebugInfo(I),t.locals||(Me(t),t.symbolCount=P,t.classifiableNames=A,function(){if(f){for(var r=l,n=p,i=d,s=o,u=m,_=0,g=f;_<g.length;_++){var y=g[_],v=e.getJSDocHost(y);l=v&&e.findAncestor(v.parent,(function(e){return!!(1&De(e))}))||t,d=v&&e.getEnclosingBlockScopeContainer(v)||t,m=a({flags:2}),o=y,Me(y.typeExpression);var h=e.getNameOfDeclaration(y);if((e.isJSDocEnumTag(y)||!y.fullName)&&h&&e.isPropertyAccessEntityNameExpression(h.parent)){var b=Qe(h.parent);if(b){Ge(t.symbol,h.parent,b,!!e.findAncestor(h,(function(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText})),!1);var x=l;switch(e.getAssignmentDeclarationPropertyAccessKind(h.parent)){case 1:case 2:l=e.isExternalOrCommonJsModule(t)?t:void 0;break;case 4:l=h.parent.expression;break;case 3:l=h.parent.expression.name;break;case 5:l=c(t,h.parent.expression)?t:e.isPropertyAccessExpression(h.parent.expression)?h.parent.expression.name:h.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}l&&J(y,524288,788968),l=x}}else e.isJSDocEnumTag(y)||!y.fullName||78===y.fullName.kind?(o=y.parent,Ne(y,524288,788968)):Me(y.fullName)}l=r,p=n,d=i,o=s,m=u}}()),t=void 0,n=void 0,i=void 0,o=void 0,l=void 0,_=void 0,d=void 0,p=void 0,f=void 0,g=!1,m=void 0,y=void 0,v=void 0,h=void 0,b=void 0,x=void 0,D=void 0,T=void 0,C=!1,F=!1,E=0};function M(e,t){return P++,new N(e,t)}function L(t,r,n){t.flags|=n,r.symbol=t,t.declarations=e.appendIfUnique(t.declarations,r),1955&n&&!t.exports&&(t.exports=e.createSymbolTable()),6240&n&&!t.members&&(t.members=e.createSymbolTable()),t.constEnumOnlyModule&&304&t.flags&&(t.constEnumOnlyModule=!1),111551&n&&e.setValueDeclaration(t,r)}function R(t){if(266===t.kind)return t.isExportEquals?"export=":"default";var r=e.getNameOfDeclaration(t);if(r){if(e.isAmbientModule(t)){var n=e.getTextOfIdentifierOrLiteral(r);return e.isGlobalScopeAugmentation(t)?"__global":'"'+n+'"'}if(158===r.kind){var i=r.expression;return e.isStringOrNumericLiteralLike(i)?e.escapeLeadingUnderscores(i.text):e.isSignedNumericLiteral(i)?e.tokenToString(i.operator)+i.operand.text:(e.Debug.assert(e.isWellKnownSymbolSyntactically(i)),e.getPropertyNameForKnownSymbolName(e.idText(i.name)))}if(e.isWellKnownSymbolSyntactically(r))return e.getPropertyNameForKnownSymbolName(e.idText(r.name));if(e.isPrivateIdentifier(r)){var a=e.getContainingClass(t);if(!a)return;var o=a.symbol;return e.getSymbolNameForPrivateIdentifier(o,r.escapedText)}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):void 0}switch(t.kind){case 166:return"__constructor";case 174:case 169:case 313:return"__call";case 175:case 170:return"__new";case 171:return"__index";case 267:return"__export";case 297:return"export=";case 216:if(2===e.getAssignmentDeclarationKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 308:return e.isJSDocConstructSignature(t)?"__new":"__call";case 160:return e.Debug.assert(308===t.parent.kind,"Impossible parameter parent kind",(function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[t.parent.kind]:t.parent.kind)+", expected JSDocFunctionType"})),"arg"+t.parent.parameters.indexOf(t)}}function B(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(R(t)))}function j(r,n,i,a,o,s){e.Debug.assert(!e.hasDynamicName(i));var c,u=e.hasSyntacticModifier(i,512)||e.isExportSpecifier(i)&&"default"===i.name.escapedText,l=u&&n?"default":R(i);if(void 0===l)c=M(0,"__missing");else if(c=r.get(l),2885600&a&&A.add(l),c){if(s&&!c.isReplaceableByMethod)return c;if(c.flags&o)if(c.isReplaceableByMethod)r.set(l,c=M(0,l));else if(!(3&a&&67108864&c.flags)){e.isNamedDeclaration(i)&&e.setParent(i.name,i);var _=2&c.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,d=!0;(384&c.flags||384&a)&&(_=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,d=!1);var p=!1;e.length(c.declarations)&&(u||c.declarations&&c.declarations.length&&266===i.kind&&!i.isExportEquals)&&(_=e.Diagnostics.A_module_cannot_have_multiple_default_exports,d=!1,p=!0);var f=[];e.isTypeAliasDeclaration(i)&&e.nodeIsMissing(i.type)&&e.hasSyntacticModifier(i,1)&&2887656&c.flags&&f.push(O(i,e.Diagnostics.Did_you_mean_0,"export type { "+e.unescapeLeadingUnderscores(i.name.escapedText)+" }"));var g=e.getNameOfDeclaration(i)||i;e.forEach(c.declarations,(function(r,n){var i=e.getNameOfDeclaration(r)||r,a=O(i,_,d?B(r):void 0);t.bindDiagnostics.push(p?e.addRelatedInfo(a,O(g,0===n?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a),p&&f.push(O(i,e.Diagnostics.The_first_export_default_is_here))}));var m=O(g,_,d?B(i):void 0);t.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,__spreadArray([m],f))),c=M(0,l)}}else r.set(l,c=M(0,l)),s&&(c.isReplaceableByMethod=!0);return L(c,i,a),c.parent?e.Debug.assert(c.parent===n,"Existing symbol parent should match new one"):c.parent=n,c}function J(t,r,n){var i=!!(1&e.getCombinedModifierFlags(t))||function(t){t.parent&&e.isModuleDeclaration(t)&&(t=t.parent);if(!e.isJSDocTypeAlias(t))return!1;if(!e.isJSDocEnumTag(t)&&t.fullName)return!0;var r=e.getNameOfDeclaration(t);return!!r&&(!(!e.isPropertyAccessEntityNameExpression(r.parent)||!Qe(r.parent))||!!(e.isDeclaration(r.parent)&&1&e.getCombinedModifierFlags(r.parent)))}(t);if(2097152&r)return 270===t.kind||260===t.kind&&i?j(l.symbol.exports,l.symbol,t,r,n):j(l.locals,void 0,t,r,n);if(e.isJSDocTypeAlias(t)&&e.Debug.assert(e.isInJSFile(t)),!e.isAmbientModule(t)&&(i||64&l.flags)){if(!l.locals||e.hasSyntacticModifier(t,512)&&!R(t))return j(l.symbol.exports,l.symbol,t,r,n);var a=111551&r?1048576:0,o=j(l.locals,void 0,t,a,n);return o.exportSymbol=j(l.symbol.exports,l.symbol,t,r,n),t.localSymbol=o,o}return j(l.locals,void 0,t,r,n)}function z(e){U(e,(function(e){return 251===e.kind?Me(e):void 0})),U(e,(function(e){return 251!==e.kind?Me(e):void 0}))}function U(t,r){void 0===r&&(r=Me),void 0!==t&&e.forEach(t,r)}function V(t){e.forEachChild(t,Me,U)}function K(t){var i=F;if(F=!1,function(t){if(!(1&m.flags))return!1;if(m===w){if((e.isStatementButNotDeclaration(t)&&231!==t.kind||252===t.kind||256===t.kind&&function(t){var i=r(t);return 1===i||2===i&&e.shouldPreserveConstEnums(n)}(t))&&(m=I,!n.allowUnreachableCode)){var i=e.unreachableCodeIsError(n)&&!(8388608&t.flags)&&(!e.isVariableStatement(t)||!!(3&e.getCombinedNodeFlags(t.declarationList))||t.declarationList.declarations.some((function(e){return!!e.initializer})));!function(t,r){if(e.isStatement(t)&&s(t)&&e.isBlock(t.parent)){var n=t.parent.statements,i=e.sliceAfter(n,t);e.getRangesWhere(i,s,(function(e,t){return r(i[e],i[t-1])}))}else r(t,t)}(t,(function(t,r){return Oe(i,t,r,e.Diagnostics.Unreachable_code_detected)}))}}return!0}(t))return V(t),Le(t),void(F=i);switch(t.kind>=232&&t.kind<=248&&!n.allowUnreachableCode&&(t.flowNode=m),t.kind){case 236:!function(e){var t=de(e,Y()),r=Q(),n=Q();ee(t,m),m=t,le(e.expression,r,n),m=ae(r),_e(e.statement,n,t),ee(t,m),m=ae(n)}(t);break;case 235:!function(e){var t=Y(),r=de(e,Q()),n=Q();ee(t,m),m=t,_e(e.statement,n,r),ee(r,m),m=ae(r),le(e.expression,t,n),m=ae(n)}(t);break;case 237:!function(e){var t=de(e,Y()),r=Q(),n=Q();Me(e.initializer),ee(t,m),m=t,le(e.condition,r,n),m=ae(r),_e(e.statement,n,t),Me(e.incrementor),ee(t,m),m=ae(n)}(t);break;case 238:case 239:!function(e){var t=de(e,Y()),r=Q();Me(e.expression),ee(t,m),m=t,239===e.kind&&Me(e.awaitModifier);ee(r,m),Me(e.initializer),250!==e.initializer.kind&&me(e.initializer);_e(e.statement,r,t),ee(t,m),m=ae(r)}(t);break;case 234:!function(e){var t=Q(),r=Q(),n=Q();le(e.expression,t,r),m=ae(t),Me(e.thenStatement),ee(n,m),m=ae(r),Me(e.elseStatement),ee(n,m),m=ae(n)}(t);break;case 242:case 246:!function(e){Me(e.expression),242===e.kind&&(C=!0,h&&ee(h,m));m=w}(t);break;case 241:case 240:!function(e){if(Me(e.label),e.label){var t=function(e){for(var t=T;t;t=t.next)if(t.name===e)return t;return}(e.label.escapedText);t&&(t.referenced=!0,pe(e,t.breakTarget,t.continueTarget))}else pe(e,y,v)}(t);break;case 247:!function(t){var r=h,n=D,i=Q(),a=Q(),o=Q();t.finallyBlock&&(h=a);ee(o,m),D=o,Me(t.tryBlock),ee(i,m),t.catchClause&&(m=ae(o),ee(o=Q(),m),D=o,Me(t.catchClause),ee(i,m));if(h=r,D=n,t.finallyBlock){var s=Q();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),m=s,Me(t.finallyBlock),1&m.flags?m=w:(h&&a.antecedents&&ee(h,Z(s,a.antecedents,m)),D&&o.antecedents&&ee(D,Z(s,o.antecedents,m)),m=i.antecedents?Z(s,i.antecedents,m):w)}else m=ae(i)}(t);break;case 244:!function(t){var r=Q();Me(t.expression);var n=y,i=S;y=r,S=m,Me(t.caseBlock),ee(r,m);var a=e.forEach(t.caseBlock.clauses,(function(e){return 285===e.kind}));t.possiblyExhaustive=!a&&!r.antecedents,a||ee(r,re(S,t,0,0));y=n,S=i,m=ae(r)}(t);break;case 258:!function(e){for(var t=e.clauses,r=q(e.parent.expression),i=w,a=0;a<t.length;a++){for(var o=a;!t[a].statements.length&&a+1<t.length;)Me(t[a]),a++;var s=Q();ee(s,r?re(S,e.parent,o,a+1):S),ee(s,i),m=ae(s);var c=t[a];Me(c),i=m,1&m.flags||a===t.length-1||!n.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=m)}}(t);break;case 284:!function(e){var t=m;m=S,Me(e.expression),m=t,U(e.statements)}(t);break;case 233:!function(e){Me(e.expression),fe(e.expression)}(t);break;case 245:!function(t){var r=Q();T={next:T,name:t.label.escapedText,breakTarget:r,continueTarget:void 0,referenced:!1},Me(t.label),Me(t.statement),T.referenced||n.allowUnusedLabels||function(e,t,r){Oe(e,t,t,r)}(e.unusedLabelIsError(n),t.label,e.Diagnostics.Unused_label);T=T.next,ee(r,m),m=ae(r)}(t);break;case 214:!function(e){if(53===e.operator){var t=b;b=x,x=t,V(e),x=b,b=t}else V(e),45!==e.operator&&46!==e.operator||me(e.operand)}(t);break;case 215:!function(e){V(e),(45===e.operator||46===e.operator)&&me(e.operand)}(t);break;case 216:if(e.isDestructuringAssignment(t))return F=i,void function(e){F?(F=!1,Me(e.operatorToken),Me(e.right),F=!0,Me(e.left)):(F=!0,Me(e.left),F=!1,Me(e.operatorToken),Me(e.right));me(e.left)}(t);!function(t){var r={expr:[t],state:[1],inStrictMode:[void 0],parent:[void 0]},n=0;for(;n>=0;)switch(t=r.expr[n],r.state[n]){case 0:e.setParent(t,o);var i=k;Be(t);var a=o;o=t,u(1,i,a);break;case 1:if(55===(c=t.operatorToken.kind)||56===c||60===c||e.isLogicalOrCoalescingAssignmentOperator(c)){if(ce(t)){var s=Q();ye(t,s,s),m=ae(s)}else ye(t,b,x);l()}else u(2),_(t.left);break;case 2:27===t.operatorToken.kind&&fe(t.left),u(3),_(t.operatorToken);break;case 3:u(4),_(t.right);break;case 4:var c=t.operatorToken.kind;if(e.isAssignmentOperator(c)&&!e.isAssignmentTarget(t))if(me(t.left),62===c&&202===t.left.kind)X(t.left.expression)&&(m=ne(256,m,t));l();break;default:return e.Debug.fail("Invalid state "+r.state[n]+" for bindBinaryExpressionFlow")}function u(e,t,i){r.state[n]=e,void 0!==t&&(r.inStrictMode[n]=t),void 0!==i&&(r.parent[n]=i)}function l(){void 0!==r.inStrictMode[n]&&(k=r.inStrictMode[n],o=r.parent[n]),n--}function _(t){t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t)?(n++,r.expr[n]=t,r.state[n]=0,r.inStrictMode[n]=void 0,r.parent[n]=void 0):Me(t)}}(t);break;case 210:!function(e){V(e),201===e.expression.kind&&me(e.expression)}(t);break;case 217:!function(e){var t=Q(),r=Q(),n=Q();le(e.condition,t,r),m=ae(t),Me(e.questionToken),Me(e.whenTrue),ee(n,m),m=ae(r),Me(e.colonToken),Me(e.whenFalse),ee(n,m),m=ae(n)}(t);break;case 249:!function(t){V(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&ve(t)}(t);break;case 201:case 202:!function(t){e.isOptionalChain(t)?xe(t):V(t)}(t);break;case 203:!function(t){if(e.isOptionalChain(t))xe(t);else{var r=e.skipParentheses(t.expression);208===r.kind||209===r.kind?(U(t.typeArguments),U(t.arguments),Me(t.expression)):(V(t),105===t.expression.kind&&(m=ie(m,t)))}if(201===t.expression.kind){var n=t.expression;e.isIdentifier(n.name)&&X(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(m=ne(256,m,t))}}(t);break;case 225:!function(t){e.isOptionalChain(t)?xe(t):V(t)}(t);break;case 331:case 324:case 325:!function(t){e.setParent(t.tagName,t),325!==t.kind&&t.fullName&&(e.setParent(t.fullName,t),e.setParentRecursive(t.fullName,!1))}(t);break;case 297:z(t.statements),Me(t.endOfFileToken);break;case 230:case 257:z(t.statements);break;case 198:!function(t){e.isBindingPattern(t.name)?(U(t.decorators),U(t.modifiers),Me(t.dotDotDotToken),Me(t.propertyName),Me(t.initializer),Me(t.name)):V(t)}(t);break;case 200:case 199:case 288:case 220:F=i;default:V(t)}Le(t),F=i}function q(t){switch(t.kind){case 78:case 79:case 107:case 201:case 202:return H(t);case 203:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++){if(H(r[t]))return!0}if(201===e.expression.kind&&H(e.expression.expression))return!0;return!1}(t);case 207:case 225:return q(t.expression);case 216:return function(t){switch(t.operatorToken.kind){case 62:case 74:case 75:case 76:return H(t.left);case 34:case 35:case 36:case 37:return X(t.left)||X(t.right)||G(t.right,t.left)||G(t.left,t.right);case 101:return X(t.left);case 100:return r=t.left,n=t.right,e.isStringLiteralLike(r)&&q(n);case 27:return q(t.right)}var r,n;return!1}(t);case 214:return 53===t.operator&&q(t.operand);case 211:return q(t.expression)}return!1}function W(t){return 78===t.kind||79===t.kind||107===t.kind||105===t.kind||(e.isPropertyAccessExpression(t)||e.isNonNullExpression(t)||e.isParenthesizedExpression(t))&&W(t.expression)||e.isBinaryExpression(t)&&27===t.operatorToken.kind&&W(t.right)||e.isElementAccessExpression(t)&&e.isStringOrNumericLiteralLike(t.argumentExpression)&&W(t.expression)||e.isAssignmentExpression(t)&&W(t.left)}function H(t){return W(t)||e.isOptionalChain(t)&&H(t.expression)}function G(t,r){return e.isTypeOfExpression(t)&&X(t.expression)&&e.isStringLiteralLike(r)}function X(e){switch(e.kind){case 207:return X(e.expression);case 216:switch(e.operatorToken.kind){case 62:return X(e.left);case 27:return X(e.right)}}return H(e)}function Q(){return a({flags:4,antecedents:void 0})}function Y(){return a({flags:8,antecedents:void 0})}function Z(e,t,r){return a({flags:1024,target:e,antecedents:t,antecedent:r})}function $(e){e.flags|=2048&e.flags?4096:2048}function ee(t,r){1&r.flags||e.contains(t.antecedents,r)||((t.antecedents||(t.antecedents=[])).push(r),$(r))}function te(t,r,n){return 1&r.flags?r:n?!(109===n.kind&&64&t||94===n.kind&&32&t)||e.isExpressionOfOptionalChainRoot(n)||e.isNullishCoalesce(n.parent)?q(n)?($(r),a({flags:t,antecedent:r,node:n})):r:w:32&t?r:w}function re(e,t,r,n){return $(e),a({flags:128,antecedent:e,switchStatement:t,clauseStart:r,clauseEnd:n})}function ne(e,t,r){$(t);var n=a({flags:e,antecedent:t,node:r});return D&&ee(D,n),n}function ie(e,t){return $(e),a({flags:512,antecedent:e,node:t})}function ae(e){var t=e.antecedents;return t?1===t.length?t[0]:e:w}function oe(e){for(;;)if(207===e.kind)e=e.expression;else{if(214!==e.kind||53!==e.operator)return 216===e.kind&&(55===e.operatorToken.kind||56===e.operatorToken.kind||60===e.operatorToken.kind);e=e.operand}}function se(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)&&e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)}function ce(t){for(;e.isParenthesizedExpression(t.parent)||e.isPrefixUnaryExpression(t.parent)&&53===t.parent.operator;)t=t.parent;return!(function(e){var t=e.parent;switch(t.kind){case 234:case 236:case 235:return t.expression===e;case 237:case 217:return t.condition===e}return!1}(t)||se(t.parent)||oe(t.parent)||e.isOptionalChain(t.parent)&&t.parent.expression===t)}function ue(e,t,r,n){var i=b,a=x;b=r,x=n,e(t),b=i,x=a}function le(t,r,n){ue(Me,t,r,n),t&&(se(t)||oe(t)||e.isOptionalChain(t)&&e.isOutermostOptionalChain(t))||(ee(r,te(32,m,t)),ee(n,te(64,m,t)))}function _e(e,t,r){var n=y,i=v;y=t,v=r,Me(e),y=n,v=i}function de(e,t){for(var r=T;r&&245===e.parent.kind;)r.continueTarget=t,r=r.next,e=e.parent;return t}function pe(e,t,r){var n=241===e.kind?t:r;n&&(ee(n,m),m=w)}function fe(t){if(203===t.kind){var r=t;e.isDottedName(r.expression)&&105!==r.expression.kind&&(m=ie(m,r))}}function ge(e){216===e.kind&&62===e.operatorToken.kind?me(e.left):me(e)}function me(e){if(W(e))m=ne(16,m,e);else if(199===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];220===n.kind?me(n.expression):ge(n)}else if(200===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];288===o.kind?ge(o.initializer):289===o.kind?me(o.name):290===o.kind&&me(o.expression)}}function ye(t,r,n){var i=Q();55===t.operatorToken.kind||75===t.operatorToken.kind?le(t.left,i,n):le(t.left,r,i),m=ae(i),Me(t.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)?(ue(Me,t.right,r,n),me(t.left),ee(r,te(32,m,t)),ee(n,te(64,m,t))):le(t.right,r,n)}function ve(t){var r=e.isOmittedExpression(t)?void 0:t.name;if(e.isBindingPattern(r))for(var n=0,i=r.elements;n<i.length;n++){ve(i[n])}else m=ne(16,m,t)}function he(e){switch(e.kind){case 201:Me(e.questionDotToken),Me(e.name);break;case 202:Me(e.questionDotToken),Me(e.argumentExpression);break;case 203:Me(e.questionDotToken),U(e.typeArguments),U(e.arguments)}}function be(t,r,n){var i=e.isOptionalChainRoot(t)?Q():void 0;!function(t,r,n){ue(Me,t,r,n),e.isOptionalChain(t)&&!e.isOutermostOptionalChain(t)||(ee(r,te(32,m,t)),ee(n,te(64,m,t)))}(t.expression,i||r,n),i&&(m=ae(i)),ue(he,t,r,n),e.isOutermostOptionalChain(t)&&(ee(r,te(32,m,t)),ee(n,te(64,m,t)))}function xe(e){if(ce(e)){var t=Q();be(e,t,t),m=ae(t)}else be(e,b,x)}function De(t){switch(t.kind){case 221:case 252:case 255:case 200:case 177:case 312:case 281:return 1;case 253:return 65;case 256:case 254:case 190:return 33;case 297:return 37;case 165:if(e.isObjectLiteralOrClassExpressionMethod(t))return 173;case 166:case 251:case 164:case 167:case 168:case 169:case 313:case 308:case 174:case 170:case 171:case 175:return 45;case 208:case 209:return 61;case 257:return 4;case 163:return t.initializer?4:0;case 287:case 237:case 238:case 239:case 258:return 2;case 230:return e.isFunctionLike(t.parent)?0:2}return 0}function Se(e){p&&(p.nextContainer=e),p=e}function Te(r,n,i){switch(l.kind){case 256:return J(r,n,i);case 297:return function(r,n,i){return e.isExternalModule(t)?J(r,n,i):j(t.locals,void 0,r,n,i)}(r,n,i);case 221:case 252:return function(t,r,n){return e.hasSyntacticModifier(t,32)?j(l.symbol.exports,l.symbol,t,r,n):j(l.symbol.members,l.symbol,t,r,n)}(r,n,i);case 255:return j(l.symbol.exports,l.symbol,r,n,i);case 177:case 312:case 200:case 253:case 281:return j(l.symbol.members,l.symbol,r,n,i);case 174:case 175:case 169:case 170:case 313:case 171:case 165:case 164:case 166:case 167:case 168:case 251:case 208:case 209:case 308:case 331:case 324:case 254:case 190:return j(l.locals,void 0,r,n,i)}}function Ce(t){8388608&t.flags&&!function(t){var r=e.isSourceFile(t)?t:e.tryCast(t.body,e.isModuleBlock);return!!r&&r.statements.some((function(t){return e.isExportDeclaration(t)||e.isExportAssignment(t)}))}(t)?t.flags|=64:t.flags&=-65}function Ee(e){var t=r(e),n=0!==t;return Te(e,n?512:1024,n?110735:0),t}function ke(e,t,r){var n=M(t,r);return 106508&t&&(n.parent=l.symbol),L(n,e,t),n}function Ne(t,r,n){switch(d.kind){case 256:J(t,r,n);break;case 297:if(e.isExternalOrCommonJsModule(l)){J(t,r,n);break}default:d.locals||(d.locals=e.createSymbolTable(),Se(d)),j(d.locals,void 0,t,r,n)}}function Ae(r){t.parseDiagnostics.length||8388608&r.flags||4194304&r.flags||e.isIdentifierName(r)||(k&&r.originalKeywordKind>=116&&r.originalKeywordKind<=124?t.bindDiagnostics.push(O(r,function(r){if(e.getContainingClass(r))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(r),e.declarationNameToString(r))):130===r.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(r)?t.bindDiagnostics.push(O(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(r))):32768&r.flags&&t.bindDiagnostics.push(O(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))):124===r.originalKeywordKind&&8192&r.flags&&t.bindDiagnostics.push(O(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))}function Fe(r,n){if(n&&78===n.kind){var i=n;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(r),e.idText(i)))}}var o}function Pe(e){k&&Fe(e,e.name)}function we(r){if(i<2&&297!==d.kind&&256!==d.kind&&!e.isFunctionLike(d)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){return e.getContainingClass(r)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.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}(r)))}}function Ie(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function Oe(r,n,i,a){!function(r,n,i){var a=e.createFileDiagnostic(t,n.pos,n.end-n.pos,i);r?t.bindDiagnostics.push(a):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,__assign(__assign({},a),{category:e.DiagnosticCategory.Suggestion}))}(r,{pos:e.getTokenPosOfNode(n,t),end:i.end},a)}function Me(t){if(t){e.setParent(t,o);var r=k;if(Be(t),t.kind>156){var n=o;o=t;var i=De(t);0===i?K(t):function(t,r){var n=l,i=_,o=d;if(1&r?(209!==t.kind&&(_=l),l=d=t,32&r&&(l.locals=e.createSymbolTable()),Se(l)):2&r&&((d=t).locals=void 0),4&r){var s=m,c=y,u=v,p=h,f=D,b=T,x=C,S=16&r&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);S||(m=a({flags:2}),144&r&&(m.node=t)),h=S||166===t.kind||e.isInJSFile(t)&&(251===t.kind||208===t.kind)?Q():void 0,D=void 0,y=void 0,v=void 0,T=void 0,C=!1,K(t),t.flags&=-2817,!(1&m.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,C&&(t.flags|=512),t.endFlowNode=m),297===t.kind&&(t.flags|=E),h&&(ee(h,m),m=ae(h),(166===t.kind||e.isInJSFile(t)&&(251===t.kind||208===t.kind))&&(t.returnFlowNode=m)),S||(m=s),y=c,v=u,h=p,D=f,T=b,C=x}else 64&r?(g=!1,K(t),t.flags=g?128|t.flags:-129&t.flags):K(t);l=n,_=i,d=o}(t,i),o=n}else{n=o;1===t.kind&&(o=t),Le(t),o=n}k=r}}function Le(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r<n.length;r++){Me(o=n[r])}else for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];e.setParent(o,t),e.setParentRecursive(o,!1)}}function Re(r){if(!k)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))return;if(o=a,s=void 0,'"use strict"'===(s=e.getSourceTextOfNodeFromSourceFile(t,o.expression))||"'use strict'"===s)return void(k=!0)}var o,s}function Be(r){switch(r.kind){case 78:if(r.isInJSDocNamespace){for(var i=r.parent;i&&!e.isJSDocTypeAlias(i);)i=i.parent;Ne(i,524288,788968);break}case 107:return m&&(e.isExpression(r)||289===o.kind)&&(r.flowNode=m),Ae(r);case 157:m&&176===o.kind&&(r.flowNode=m);break;case 105:r.flowNode=m;break;case 79:return function(r){"#constructor"===r.escapedText&&(t.parseDiagnostics.length||t.bindDiagnostics.push(O(r,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(r))))}(r);case 201:case 202:var a=r;m&&W(a)&&(a.flowNode=m),e.isSpecialPropertyDeclaration(a)&&function(t){107===t.expression.kind?Ve(t):e.isBindableStaticAccessExpression(t)&&297===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?We(t,t.parent):He(t))}(a),e.isInJSFile(a)&&t.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(a)&&!u(d,"module")&&j(t.locals,void 0,a.expression,134217729,111550);break;case 216:switch(e.getAssignmentDeclarationKind(r)){case 1:ze(r);break;case 2:!function(r){if(!Je(r))return;var n=e.getRightMostAssignedExpression(r.right);if(e.isEmptyObjectLiteral(n)||l===t&&c(t,n))return;if(e.isObjectLiteralExpression(n)&&e.every(n.properties,e.isShorthandPropertyAssignment))return void e.forEach(n.properties,Ue);var i=e.exportAssignmentIsAlias(r)?2097152:1049092,a=j(t.symbol.exports,t.symbol,r,67108864|i,0);e.setValueDeclaration(a,r)}(r);break;case 3:We(r.left,r);break;case 6:!function(t){e.setParent(t.left,t),e.setParent(t.right,t),Ye(t.left.expression,t.left,!1,!0)}(r);break;case 4:Ve(r);break;case 5:var s=r.left.expression;if(e.isInJSFile(r)&&e.isIdentifier(s)){var _=u(d,s.escapedText);if(e.isThisInitializedDeclaration(null==_?void 0:_.valueDeclaration)){Ve(r);break}}!function(r){var n,i=Ze(r.left.expression,l)||Ze(r.left.expression,d);if(!e.isInJSFile(r)&&!e.isFunctionSymbol(i))return;var a=e.getLeftmostAccessExpression(r.left);if(e.isIdentifier(a)&&2097152&(null===(n=u(l,a.escapedText))||void 0===n?void 0:n.flags))return;if(e.setParent(r.left,r),e.setParent(r.right,r),e.isIdentifier(r.left.expression)&&l===t&&c(t,r.left.expression))ze(r);else if(e.hasDynamicName(r)){ke(r,67108868,"__computed"),qe(r,Ge(i,r.left.expression,Qe(r.left),!1,!1))}else He(e.cast(r.left,e.isBindableStaticNameExpression))}(r);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(t){k&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Fe(t,t.left)}(r);case 287:return function(e){k&&e.variableDeclaration&&Fe(e,e.variableDeclaration.name)}(r);case 210:return function(r){if(k&&78===r.expression.kind){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(r);case 8:return function(r){k&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(O(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(r);case 215:return function(e){k&&Fe(e,e.operand)}(r);case 214:return function(e){k&&(45!==e.operator&&46!==e.operator||Fe(e,e.operand))}(r);case 243:return function(t){k&&Ie(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(r);case 245:return function(t){k&&n.target>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Ie(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(r);case 187:return void(g=!0);case 172:break;case 159:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.find(t.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),j(r.locals,void 0,t,262144,526824)):Te(t,262144,526824)}else if(185===t.parent.kind){var n=function(t){var r=e.findAncestor(t,(function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t}));return r&&r.parent}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),j(n.locals,void 0,t,262144,526824)):ke(t,262144,R(t))}else Te(t,262144,526824)}(r);case 160:return tt(r);case 249:return et(r);case 198:return r.flowNode=m,et(r);case 163:case 162:return function(e){return rt(e,4|(e.questionToken?16777216:0),0)}(r);case 288:case 289:return rt(r,4,0);case 291:return rt(r,8,900095);case 169:case 170:case 171:return Te(r,131072,0);case 165:case 164:return rt(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:103359);case 251:return function(r){t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(E|=2048);Pe(r),k?(we(r),Ne(r,16,110991)):Te(r,16,110991)}(r);case 166:return Te(r,16384,0);case 167:return rt(r,32768,46015);case 168:return rt(r,65536,78783);case 174:case 308:case 313:case 175:return function(t){var r=M(131072,R(t));L(r,t,131072);var n=M(2048,"__type");L(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(r);case 177:case 312:case 190:return function(e){return ke(e,2048,"__type")}(r);case 319:return function(t){V(t);var r=e.getHostSignatureFromJSDoc(t);r&&165!==r.kind&&L(r.symbol,r,32)}(r);case 200:return function(r){var n;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(n||(n={})),k&&!e.isAssignmentTarget(r))for(var i=new e.Map,a=0,o=r.properties;a<o.length;a++){var s=o[a];if(290!==s.kind&&78===s.name.kind){var c=s.name,u=288===s.kind||289===s.kind||165===s.kind?1:2,l=i.get(c.escapedText);if(l){if(1===u&&1===l){var _=e.getErrorSpanForNode(t,c);t.bindDiagnostics.push(e.createFileDiagnostic(t,_.start,_.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else i.set(c.escapedText,u)}}return ke(r,4096,"__object")}(r);case 208:case 209:return function(r){t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(E|=2048);m&&(r.flowNode=m);Pe(r);var n=r.name?r.name.escapedText:"__function";return ke(r,16,n)}(r);case 203:switch(e.getAssignmentDeclarationKind(r)){case 7:return function(e){var t=Ze(e.arguments[0]),r=297===e.parent.parent.kind;t=Ge(t,e.arguments[0],r,!1,!1),Xe(e,t,!1)}(r);case 8:return function(e){if(!Je(e))return;var t=$e(e.arguments[0],void 0,(function(e,t){return t&&L(t,e,67110400),t}));if(t){var r=1048580;j(t.exports,t,e,r,0)}}(r);case 9:return function(e){var t=Ze(e.arguments[0].expression);t&&t.valueDeclaration&&L(t,t.valueDeclaration,32);Xe(e,t,!0)}(r);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(r)&&function(r){!t.commonJsModuleIndicator&&e.isRequireCall(r,!1)&&Je(r)}(r);break;case 221:case 252:return k=!0,function(r){if(252===r.kind)Ne(r,32,899503);else{ke(r,32,r.name?r.name.escapedText:"__class"),r.name&&A.add(r.name.escapedText)}var n=r.symbol,i=M(4194308,"prototype"),a=n.exports.get(i.escapedName);a&&(r.name&&e.setParent(r.name,r),t.bindDiagnostics.push(O(a.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i))));n.exports.set(i.escapedName,i),i.parent=n}(r);case 253:return Ne(r,64,788872);case 254:return Ne(r,524288,788968);case 255:return function(t){return e.isEnumConst(t)?Ne(t,128,899967):Ne(t,256,899327)}(r);case 256:return function(r){if(Ce(r),e.isAmbientModule(r))if(e.hasSyntacticModifier(r,1)&&Ie(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(r))Ee(r);else{var n=void 0;if(10===r.name.kind){var i=r.name.text;e.hasZeroOrOneAsteriskCharacter(i)?n=e.tryParsePattern(i):Ie(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=Te(r,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&{pattern:n,symbol:a})}else{var o=Ee(r);0!==o&&((a=r.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule)}}(r);case 281:return function(e){return ke(e,4096,"__jsxAttributes")}(r);case 280:return function(e,t,r){return Te(e,t,r)}(r,4,0);case 260:case 263:case 265:case 270:return Te(r,2097152,2097152);case 259:return function(r){r.modifiers&&r.modifiers.length&&t.bindDiagnostics.push(O(r,e.Diagnostics.Modifiers_cannot_appear_here));var n=e.isSourceFile(r.parent)?e.isExternalModule(r.parent)?r.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;n?t.bindDiagnostics.push(O(r,n)):(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),j(t.symbol.globalExports,t.symbol,r,2097152,2097152))}(r);case 262:return function(e){e.name&&Te(e,2097152,2097152)}(r);case 267:return function(t){l.symbol&&l.symbol.exports?t.exportClause?e.isNamespaceExport(t.exportClause)&&(e.setParent(t.exportClause,t),j(l.symbol.exports,l.symbol,t.exportClause,2097152,2097152)):j(l.symbol.exports,l.symbol,t,8388608,0):ke(t,8388608,R(t))}(r);case 266:return function(t){if(l.symbol&&l.symbol.exports){var r=e.exportAssignmentIsAlias(t)?2097152:4,n=j(l.symbol.exports,l.symbol,t,r,67108863);t.isExportEquals&&e.setValueDeclaration(n,t)}else ke(t,2097152,R(t))}(r);case 297:return Re(r.statements),function(){if(Ce(t),e.isExternalModule(t))je();else if(e.isJsonSourceFile(t)){je();var r=t.symbol;j(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=r}}();case 230:if(!e.isFunctionLike(r.parent))return;case 257:return Re(r.statements);case 326:if(313===r.parent.kind)return tt(r);if(312!==r.parent.kind)break;case 333:var p=r;return Te(p,p.isBracketed||p.typeExpression&&307===p.typeExpression.type.kind?16777220:4,0);case 331:case 324:case 325:return(f||(f=[])).push(r)}}function je(){ke(t,512,'"'+e.removeFileExtension(t.fileName)+'"')}function Je(e){return!t.externalModuleIndicator&&(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,je()),!0)}function ze(t){if(Je(t)){var r=$e(t.left.expression,void 0,(function(e,t){return t&&L(t,e,67110400),t}));if(r){var n=e.isAliasableExpression(t.right)&&(e.isExportsIdentifier(t.left.expression)||e.isModuleExportsAccessExpression(t.left.expression))?2097152:1048580;e.setParent(t.left,t),j(r.exports,r,t.left,n,0)}}}function Ue(e){j(t.symbol.exports,t.symbol,e,69206016,0)}function Ve(t){if(e.Debug.assert(e.isInJSFile(t)),!(e.isBinaryExpression(t)&&e.isPropertyAccessExpression(t.left)&&e.isPrivateIdentifier(t.left.name)||e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))){var r=e.getThisContainer(t,!1);switch(r.kind){case 251:case 208:var n=r.symbol;if(e.isBinaryExpression(r.parent)&&62===r.parent.operatorToken.kind){var i=r.parent.left;e.isBindableStaticAccessExpression(i)&&e.isPrototypeAccess(i.expression)&&(n=Ze(i.expression.expression,_))}n&&n.valueDeclaration&&(n.members=n.members||e.createSymbolTable(),e.hasDynamicName(t)?Ke(t,n):j(n.members,n,t,67108868,0),L(n,n.valueDeclaration,32));break;case 166:case 163:case 165:case 167:case 168:var a=r.parent,o=e.hasSyntacticModifier(r,32)?a.symbol.exports:a.symbol.members;e.hasDynamicName(t)?Ke(t,a.symbol):j(o,a.symbol,t,67108868,0,!0);break;case 297:if(e.hasDynamicName(t))break;r.commonJsModuleIndicator?j(r.symbol.exports,r.symbol,t,1048580,0):Te(t,1,111550);break;default:e.Debug.failBadSyntaxKind(r)}}}function Ke(e,t){ke(e,4,"__computed"),qe(e,t)}function qe(t,r){r&&(r.assignmentDeclarationMembers||(r.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(t),t)}function We(t,r){var n=t.expression,i=n.expression;e.setParent(i,n),e.setParent(n,t),e.setParent(t,r),Ye(i,t,!0,!0)}function He(t){e.Debug.assert(!e.isIdentifier(t)),e.setParent(t.expression,t),Ye(t.expression,t,!1,!1)}function Ge(r,n,i,a,o){if(2097152&(null==r?void 0:r.flags))return r;if(i&&!a){var s=67110400;r=$e(n,r,(function(r,n,i){return n?(L(n,r,s),n):j(i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable()),i,r,s,110735)}))}return o&&r&&r.valueDeclaration&&L(r,r.valueDeclaration,32),r}function Xe(t,r,n){if(r&&function(t){if(1072&t.flags)return!0;var r=t.valueDeclaration;if(r&&e.isCallExpression(r))return!!e.getAssignedExpandoInitializer(r);var n=r?e.isVariableDeclaration(r)?r.initializer:e.isBinaryExpression(r)?r.right:e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)?r.parent.right:void 0:void 0;if(n=n&&e.getRightMostAssignedExpression(n)){var i=e.isPrototypeAccess(e.isVariableDeclaration(r)?r.name:e.isBinaryExpression(r)?r.left:r);return!!e.getExpandoInitializer(!e.isBinaryExpression(n)||56!==n.operatorToken.kind&&60!==n.operatorToken.kind?n:n.right,i)}return!1}(r)){var i=n?r.members||(r.members=e.createSymbolTable()):r.exports||(r.exports=e.createSymbolTable()),a=0,o=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(t))?(a=8192,o=103359):e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&(e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"set"===e.idText(r)}))&&(a|=65540,o|=78783),e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"get"===e.idText(r)}))&&(a|=32772,o|=46015)),0===a&&(a=4,o=0),j(i,r,t,67108864|a,-67108865&o)}}function Qe(t){return e.isBinaryExpression(t.parent)?297===function(t){for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent}(t.parent).parent.kind:297===t.parent.parent.kind}function Ye(e,t,r,n){var i=Ze(e,l)||Ze(e,d),a=Qe(t);Xe(t,i=Ge(i,t.expression,a,r,n),r)}function Ze(t,r){if(void 0===r&&(r=l),e.isIdentifier(t))return u(r,t.escapedText);var n=Ze(t.expression);return n&&n.exports&&n.exports.get(e.getElementOrPropertyAccessName(t))}function $e(r,n,i){if(c(t,r))return t.symbol;if(e.isIdentifier(r))return i(r,Ze(r),n);var a=$e(r.expression,n,i),o=e.getNameOrArgument(r);return e.isPrivateIdentifier(o)&&e.Debug.fail("unexpected PrivateIdentifier"),i(o,a&&a.exports&&a.exports.get(e.getElementOrPropertyAccessName(r)),a)}function et(t){k&&Fe(t,t.name),e.isBindingPattern(t.name)||(e.isInJSFile(t)&&e.isRequireVariableDeclaration(t,!0)&&!e.getJSDocTypeTag(t)?Te(t,2097152,2097152):e.isBlockOrCatchScoped(t)?Ne(t,2,111551):e.isParameterDeclaration(t)?Te(t,1,111551):Te(t,1,111550))}function tt(t){if((326!==t.kind||313===l.kind)&&(!k||8388608&t.flags||Fe(t,t.name),e.isBindingPattern(t.name)?ke(t,1,"__"+t.parent.parameters.indexOf(t)):Te(t,1,111551),e.isParameterPropertyDeclaration(t,t.parent))){var r=t.parent.parent;j(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function rt(r,n,i){return t.isDeclarationFile||8388608&r.flags||!e.isAsyncFunction(r)||(E|=2048),m&&e.isObjectLiteralOrClassExpressionMethod(r)&&(r.flowNode=m),e.hasDynamicName(r)?ke(r,n,"__computed"):Te(r,n,i)}}();function s(t){return!(e.isFunctionDeclaration(t)||function(t){switch(t.kind){case 253:case 254:return!0;case 256:return 1!==r(t);case 255:return e.hasSyntacticModifier(t,2048);default:return!1}}(t)||e.isEnumDeclaration(t)||e.isVariableStatement(t)&&!(3&e.getCombinedNodeFlags(t))&&t.declarationList.declarations.some((function(e){return!e.initializer})))}function c(t,r){for(var n=0,i=[r];i.length&&n<100;){if(n++,r=i.shift(),e.isExportsIdentifier(r)||e.isModuleExportsAccessExpression(r))return!0;if(e.isIdentifier(r)){var a=u(t,r.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 u(t,r){var n=t.locals&&t.locals.get(r);return n?n.exportSymbol||n:e.isSourceFile(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r)?t.jsGlobalAugmentations.get(r):t.symbol&&t.symbol.exports&&t.symbol.exports.get(r)}e.bindSourceFile=function(t,r){null===e.tracing||void 0===e.tracing||e.tracing.push("bind","bindSourceFile",{path:t.path},!0),e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+t.fileName),o(t,r),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=c}(ts||(ts={})),function(e){e.createGetSymbolWalker=function(t,r,n,i,a,o,s,c,u,l,_){return function(d){void 0===d&&(d=function(){return!0});var p=[],f=[];return{walkType:function(t){try{return g(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(p),e.clear(f)}},walkSymbol:function(t){try{return v(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(p),e.clear(f)}}};function g(t){if(t&&(!p[t.id]&&(p[t.id]=t,!v(t.symbol)))){if(524288&t.flags){var r=t,n=r.objectFlags;4&n&&function(t){g(t.target),e.forEach(_(t),g)}(t),32&n&&function(e){g(e.typeParameter),g(e.constraintType),g(e.templateType),g(e.modifiersType)}(t),3&n&&(y(a=t),e.forEach(a.typeParameters,g),e.forEach(i(a),g),g(a.thisType)),24&n&&y(r)}var a;262144&t.flags&&function(e){g(u(e))}(t),3145728&t.flags&&function(t){e.forEach(t.types,g)}(t),4194304&t.flags&&function(e){g(e.type)}(t),8388608&t.flags&&function(e){g(e.objectType),g(e.indexType),g(e.constraint)}(t)}}function m(i){var a=r(i);a&&g(a.type),e.forEach(i.typeParameters,g);for(var o=0,s=i.parameters;o<s.length;o++){v(s[o])}g(t(i)),g(n(i))}function y(e){g(c(e,0)),g(c(e,1));for(var t=a(e),r=0,n=t.callSignatures;r<n.length;r++){m(n[r])}for(var i=0,o=t.constructSignatures;i<o.length;i++){m(o[i])}for(var s=0,u=t.properties;s<u.length;s++){v(u[s])}}function v(t){if(!t)return!1;var r=e.getSymbolId(t);return!f[r]&&(f[r]=t,!d(t)||(g(o(t)),t.exports&&t.exports.forEach(v),e.forEach(t.declarations,(function(e){if(e.type&&176===e.type.kind){var t=e.type;v(s(l(t.exprName)))}})),!1))}}}}(ts||(ts={})),function(e){var t,r,n,i,a=/^".+"$/,o="(anonymous)",s=1,c=1,u=1,l=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"}(t||(t={})),function(e){e[e.Yield=0]="Yield",e[e.Return=1]="Return",e[e.Next=2]="Next"}(r||(r={})),function(e){e[e.Normal=0]="Normal",e[e.FunctionReturn=1]="FunctionReturn",e[e.GeneratorNext=2]="GeneratorNext",e[e.GeneratorYield=3]="GeneratorYield"}(n||(n={})),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"}(i||(i={}));var _,d,p,f,g,m,y,v,h,b=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),x=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"}(_||(_={})),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"}(d||(d={})),function(e){e[e.None=0]="None",e[e.NoIndexSignatures=1]="NoIndexSignatures",e[e.Writing=2]="Writing",e[e.CacheSymbol=4]="CacheSymbol",e[e.NoTupleBoundsCheck=8]="NoTupleBoundsCheck",e[e.ExpressionPosition=16]="ExpressionPosition"}(p||(p={})),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"}(f||(f={})),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"}(g||(g={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(m||(m={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(y||(y={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(v||(v={})),function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(h||(h={}));var D,S,T,C,E=e.and(O,(function(t){return!e.isAccessor(t)}));!function(e){e[e.GetAccessor=1]="GetAccessor",e[e.SetAccessor=2]="SetAccessor",e[e.PropertyAssignment=4]="PropertyAssignment",e[e.Method=8]="Method",e[e.GetOrSetAccessor=3]="GetOrSetAccessor",e[e.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"}(D||(D={})),function(e){e[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace"}(S||(S={})),function(e){e[e.None=0]="None",e[e.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",e[e.VoidIsNonOptional=2]="VoidIsNonOptional"}(T||(T={})),function(e){e[e.Uppercase=0]="Uppercase",e[e.Lowercase=1]="Lowercase",e[e.Capitalize=2]="Capitalize",e[e.Uncapitalize=3]="Uncapitalize"}(C||(C={}));var k,N=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function A(){}function F(){this.flags=0}function P(e){return e.id||(e.id=c,c++),e.id}function w(e){return e.id||(e.id=s,s++),e.id}function I(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function O(e){return 251!==e.kind&&165!==e.kind||!!e.body}function M(t){switch(t.parent.kind){case 265:case 270:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function L(e){switch(e.kind){case 262:case 260:case 263:case 265:return!0;case 78:return 265===e.parent.kind;default:return!1}}function R(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function B(e){return!!(1&e.flags)}function j(e){return!!(2&e.flags)}e.getNodeId=P,e.getSymbolId=w,e.isInstantiatedModule=I,e.createTypeChecker=function(t,r){var n,i,s,c,_=e.memoize((function(){var r=new e.Set;return t.getSourceFiles().forEach((function(t){t.resolvedModules&&e.forEachEntry(t.resolvedModules,(function(e){e&&e.packageId&&r.add(e.packageId.name)}))})),r})),d=e.objectAllocator.getSymbolConstructor(),p=e.objectAllocator.getTypeConstructor(),f=e.objectAllocator.getSignatureConstructor(),g=0,m=0,y=0,v=0,h=0,D=0,S=[],T=e.createSymbolTable(),C=[1],J=t.getCompilerOptions(),z=e.getEmitScriptTarget(J),U=e.getEmitModuleKind(J),V=e.getAllowSyntheticDefaultImports(J),K=e.getStrictOptionValue(J,"strictNullChecks"),q=e.getStrictOptionValue(J,"strictFunctionTypes"),W=e.getStrictOptionValue(J,"strictBindCallApply"),H=e.getStrictOptionValue(J,"strictPropertyInitialization"),G=e.getStrictOptionValue(J,"noImplicitAny"),X=e.getStrictOptionValue(J,"noImplicitThis"),Q=!!J.keyofStringsOnly,Y=J.suppressExcessPropertyErrors?0:32768,Z=function(){var r,n=t.getResolvedTypeReferenceDirectives();n&&(r=new e.Map,n.forEach((function(e,r){if(e&&e.resolvedFileName){var n=t.getSourceFile(e.resolvedFileName);n&&a(n,r)}})));return{getReferencedExportContainer:WD,getReferencedImportDeclaration:HD,getReferencedDeclarationWithCollidingName:XD,isDeclarationWithCollidingName:QD,isValueAliasDeclaration:function(t){var r=e.getParseTreeNode(t);return!r||YD(r)},hasGlobalName:mS,isReferencedAliasDeclaration:function(t,r){var n=e.getParseTreeNode(t);return!n||tS(n,r)},getNodeCheckFlags:function(t){var r=e.getParseTreeNode(t);return r?sS(r):0},isTopLevelValueImportEqualsWithEntityName:ZD,isDeclarationVisible:ha,isImplementationOfOverload:rS,isRequiredInitializedParameter:nS,isOptionalUninitializedParameterProperty:iS,isExpandoFunctionDeclaration:aS,getPropertiesOfContainerFunction:oS,createTypeOfDeclaration:pS,createReturnTypeOfSignatureDeclaration:fS,createTypeOfExpression:gS,createLiteralConstValue:bS,isSymbolAccessible:Zi,isEntityNameVisible:ia,getConstantValue:function(t){var r=e.getParseTreeNode(t,uS);return r?lS(r):void 0},collectLinkedAliases:ba,getReferencedValueDeclaration:vS,getTypeReferenceSerializationKind:dS,isOptionalParameter:Sc,moduleExportsSomeValue:qD,isArgumentsLocalBinding:KD,getExternalModuleFileFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.hasPossibleExternalModuleReference);return r&&SS(r)},getTypeReferenceDirectivesForEntityName:function(e){if(!r)return;var t=790504;(78===e.kind&&Ef(e)||201===e.kind&&!function(e){return e.parent&&223===e.parent.kind&&e.parent.parent&&286===e.parent.parent.kind}(e))&&(t=1160127);var n=ui(e,t,!0);return n&&n!==ve?i(n,t):void 0},getTypeReferenceDirectivesForSymbol:i,isLiteralConstDeclaration:hS,isLateBound:function(t){var r=e.getParseTreeNode(t,e.isDeclaration),n=r&&Ci(r);return!!(n&&4096&e.getCheckFlags(n))},getJsxFactoryEntity:xS,getJsxFragmentFactoryEntity:DS,getAllAccessorDeclarations:function(t){var r=168===(t=e.getParseTreeNode(t,e.isGetOrSetAccessorDeclaration)).kind?167:168,n=e.getDeclarationOfKind(Ci(t),r);return{firstAccessor:n&&n.pos<t.pos?n:t,secondAccessor:n&&n.pos<t.pos?t:n,setAccessor:168===t.kind?t:n,getAccessor:167===t.kind?t:n}},getSymbolOfExternalModuleSpecifier:function(e){return di(e,e,void 0)},isBindingCapturedByNode:function(t,r){var n=e.getParseTreeNode(t),i=e.getParseTreeNode(r);return!!n&&!!i&&(e.isVariableDeclaration(i)||e.isBindingElement(i))&&function(t,r){var n=Tn(t);return!!n&&e.contains(n.capturedBlockScopeBindings,Ci(r))}(n,i)},getDeclarationStatementsForSourceFile:function(t,r,n,i){var a=e.getParseTreeNode(t);e.Debug.assert(a&&297===a.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");var o=Ci(t);return o?o.exports?$.symbolTableToDeclarationStatements(o.exports,t,r,n,i):[]:t.locals?$.symbolTableToDeclarationStatements(t.locals,t,r,n,i):[]},isImportRequiredByAugmentation:function(t){var r=e.getSourceFileOfNode(t);if(!r.symbol)return!1;var n=SS(t);if(!n)return!1;if(n===r)return!1;for(var i=xi(r.symbol),a=0,o=e.arrayFrom(i.values());a<o.length;a++){var s=o[a];if(s.mergeId)for(var c=0,u=Ti(s).declarations;c<u.length;c++){var l=u[c];if(e.getSourceFileOfNode(l)===n)return!0}}return!1}};function i(t,n){if(r&&function(t){if(!t.declarations)return!1;var n=t;for(;;){var i=Ei(n);if(!i)break;n=i}if(n.valueDeclaration&&297===n.valueDeclaration.kind&&512&n.flags)return!1;for(var a=0,o=t.declarations;a<o.length;a++){var s=o[a],c=e.getSourceFileOfNode(s);if(r.has(c.path))return!0}return!1}(t)){for(var i,a=0,o=t.declarations;a<o.length;a++){var s=o[a];if(s.symbol&&s.symbol.flags&n){var c=e.getSourceFileOfNode(s),u=r.get(c.path);if(!u)return;(i||(i=[])).push(u)}}return i}}function a(n,i){if(!r.has(n.path)){r.set(n.path,i);for(var o=0,s=n.referencedFiles;o<s.length;o++){var c=s[o].fileName,u=e.resolveTripleslashReference(c,n.fileName),l=t.getSourceFile(u);l&&a(l,i)}}}}(),$=function(){return{typeToTypeNode:function(e,t,n,i){return r(t,n,i,(function(t){return o(e,t)}))},indexInfoToIndexSignatureDeclaration:function(e,t,n,i,a){return r(n,i,a,(function(r){return l(e,t,r,void 0)}))},signatureToSignatureDeclaration:function(e,t,n,i,a){return r(n,i,a,(function(r){return _(e,t,r)}))},symbolToEntityName:function(e,t,n,i,a){return r(n,i,a,(function(r){return C(e,r,t,!1)}))},symbolToExpression:function(e,t,n,i,a){return r(n,i,a,(function(r){return E(e,r,t)}))},symbolToTypeParameterDeclarations:function(e,t,n,i){return r(t,n,i,(function(t){return v(e,t)}))},symbolToParameterDeclaration:function(e,t,n,i){return r(t,n,i,(function(t){return f(e,t)}))},typeParameterToDeclaration:function(e,t,n,i){return r(t,n,i,(function(t){return p(e,t)}))},symbolTableToDeclarationStatements:function(t,n,i,a,s){return r(n,i,a,(function(r){return function(t,r,n){var i=ae(e.factory.createPropertyDeclaration,165,!0),a=ae((function(t,r,n,i,a){return e.factory.createPropertySignature(r,n,i,a)}),164,!1),s=r.enclosingDeclaration,c=[],u=new e.Set,d=[],f=r;r=__assign(__assign({},f),{usedSymbolNames:new e.Set(f.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:__assign(__assign({},f.tracker),{trackSymbol:function(e,t,n){if(0===Zi(e,t,n,!1).accessibility){var i=y(e,r,n);4&e.flags||j(i[0])}else f.tracker&&f.tracker.trackSymbol&&f.tracker.trackSymbol(e,t,n)}})}),e.forEachEntry(t,(function(t,r){fe(t,e.unescapeLeadingUnderscores(r))}));var g=!n,m=t.get("export=");m&&t.size>1&&2097152&m.flags&&(t=e.createSymbolTable()).set("export=",m);return P(t),T(c);function v(e){return!!e&&78===e.kind}function h(t){return e.isVariableStatement(t)?e.filter(e.map(t.declarationList.declarations,e.getNameOfDeclaration),v):e.filter([e.getNameOfDeclaration(t)],v)}function b(t){var r=e.find(t,e.isExportAssignment),n=e.findIndex(t,e.isModuleDeclaration),i=-1!==n?t[n]:void 0;if(i&&r&&r.isExportEquals&&e.isIdentifier(r.expression)&&e.isIdentifier(i.name)&&e.idText(i.name)===e.idText(r.expression)&&i.body&&e.isModuleBlock(i.body)){var a=e.filter(t,(function(t){return!!(1&e.getEffectiveModifierFlags(t))})),o=i.name,s=i.body;if(e.length(a)&&(i=e.factory.updateModuleDeclaration(i,i.decorators,i.modifiers,i.name,s=e.factory.updateModuleBlock(s,e.factory.createNodeArray(__spreadArray(__spreadArray([],i.body.statements),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(a,(function(e){return h(e)})),(function(t){return e.factory.createExportSpecifier(void 0,t)}))),void 0)])))),t=__spreadArray(__spreadArray(__spreadArray([],t.slice(0,n)),[i]),t.slice(n+1))),!e.find(t,(function(t){return t!==i&&e.nodeHasName(t,o)}))){c=[];var u=!e.some(s.statements,(function(t){return e.hasSyntacticModifier(t,1)||e.isExportAssignment(t)||e.isExportDeclaration(t)}));e.forEach(s.statements,(function(e){V(e,u?1:0)})),t=__spreadArray(__spreadArray([],e.filter(t,(function(e){return e!==i&&e!==r}))),c)}}return t}function D(t){var r=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(r)>1){var n=e.filter(t,(function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause}));t=__spreadArray(__spreadArray([],n),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),void 0)])}var i=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(i)>1){var a=e.group(i,(function(t){return e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"}));if(a.length!==i.length)for(var o=function(r){r.length>1&&(t=__spreadArray(__spreadArray([],e.filter(t,(function(e){return-1===r.indexOf(e)}))),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),r[0].moduleSpecifier)]))},s=0,c=a;s<c.length;s++){o(c[s])}}return t}function S(t){var r=e.findIndex(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(r>=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,(function(r){if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,(function(n){return e.nodeHasName(t[n],r.name)}));if(e.length(i)&&e.every(i,(function(e){return k(t[e])}))){for(var a=0,o=i;a<o.length;a++){var s=o[a];t[s]=N(t[s])}return}}return r}));e.length(i)?t[r]=e.factory.updateExportDeclaration(n,n.decorators,n.modifiers,n.isTypeOnly,e.factory.updateNamedExports(n.exportClause,i),n.moduleSpecifier):e.orderedRemoveItemAt(t,r)}return t}function T(t){return t=S(t=D(t=b(t))),s&&(e.isSourceFile(s)&&e.isExternalOrCommonJsModule(s)||e.isModuleDeclaration(s))&&(!e.some(t,e.isExternalModuleIndicator)||!e.hasScopeMarker(t)&&e.some(t,e.needsScopeMarker))&&t.push(e.createEmptyExports(e.factory)),t}function k(t){return e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t)&&!e.isExternalModuleAugmentation(t)&&!e.isGlobalScopeAugmentation(t)||e.isInterfaceDeclaration(t)||FD(t)}function N(t){var r=-3&(1|e.getEffectiveModifierFlags(t));return e.factory.updateModifiers(t,r)}function F(t){var r=-2&e.getEffectiveModifierFlags(t);return e.factory.updateModifiers(t,r)}function P(t,r,n){r||d.push(new e.Map),t.forEach((function(e){O(e,!1,!!n)})),r||(d[d.length-1].forEach((function(e){O(e,!0,!!n)})),d.pop())}function O(t,n,i){var a=Ti(t);if(!u.has(w(a))&&(u.add(w(a)),!n||e.length(t.declarations)&&e.some(t.declarations,(function(t){return!!e.findAncestor(t,(function(e){return e===s}))})))){var o=r;r=function(t){var r=__assign({},t);r.typeParameterNames&&(r.typeParameterNames=new e.Map(r.typeParameterNames));r.typeParameterNamesByText&&(r.typeParameterNamesByText=new e.Set(r.typeParameterNamesByText));r.typeParameterSymbolList&&(r.typeParameterSymbolList=new e.Set(r.typeParameterSymbolList));return r}(r);var c=B(t,n,i);return r=o,c}}function B(t,i,a){var o=e.unescapeLeadingUnderscores(t.escapedName),c="default"===t.escapedName;if(!i||131072&r.flags||!e.isStringANonContextualKeyword(o)||c){var u=c&&!!(-113&t.flags||16&t.flags&&e.length(zs(_o(t))))&&!(2097152&t.flags),l=!u&&!i&&e.isStringANonContextualKeyword(o)&&!c;(u||l)&&(i=!0);var _=(i?0:1)|(c&&!u?512:0),d=1536&t.flags&&7&t.flags&&"export="!==t.escapedName,p=d&&ie(_o(t),t);if((8208&t.flags||p)&&Q(_o(t),t,fe(t,o),_),524288&t.flags&&K(t,o,_),7&t.flags&&"export="!==t.escapedName&&!(4194304&t.flags)&&!(32&t.flags)&&!p)if(a){ne(t)&&(l=!1,u=!1)}else{var f=_o(t),g=fe(t,o);if(16&t.flags||!ie(f,t)){var m=2&t.flags?Og(t)?2:1:void 0,y=!u&&4&t.flags?de(g,t):g,v=t.declarations&&e.find(t.declarations,(function(t){return e.isVariableDeclaration(t)}));v&&e.isVariableDeclarationList(v.parent)&&1===v.parent.declarations.length&&(v=v.parent.parent);var h=e.find(t.declarations,e.isPropertyAccessExpression);if(h&&e.isBinaryExpression(h.parent)&&e.isIdentifier(h.parent.right)&&f.symbol&&e.isSourceFile(f.symbol.valueDeclaration)){var b=g===h.parent.right.escapedText?void 0:h.parent.right;V(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(b,g)])),0),r.tracker.trackSymbol(f.symbol,r.enclosingDeclaration,111551)}else{V(e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(y,void 0,M(r,f,t,s,j,n))],m)),v),y!==g?-2&_:_),y===g||i||(V(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(y,g)])),0),l=!1,u=!1)}}else Q(f,t,g,_)}if(384&t.flags&&X(t,o,_),32&t.flags&&(4&t.flags&&e.isBinaryExpression(t.valueDeclaration.parent)&&e.isClassExpression(t.valueDeclaration.parent.right)?te(t,fe(t,o),_):ee(t,fe(t,o),_)),(1536&t.flags&&(!d||H(t))||p)&&G(t,o,_),64&t.flags&&!(32&t.flags)&&q(t,o,_),2097152&t.flags&&te(t,fe(t,o),_),4&t.flags&&"export="===t.escapedName&&ne(t),8388608&t.flags)for(var D=0,S=t.declarations;D<S.length;D++){var T=S[D],C=_i(T,T.moduleSpecifier);C&&V(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(x(C,r))),0)}u?V(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier(fe(t,o))),0):l&&V(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(fe(t,o),o)])),0)}else r.encounteredError=!0}function j(t){if(!e.some(t.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(d[d.length-1]),de(e.unescapeLeadingUnderscores(t.escapedName),t);var r=!!(2097152&t.flags)&&!e.some(t.declarations,(function(t){return!!e.findAncestor(t,e.isExportDeclaration)||e.isNamespaceExport(t)||e.isImportEqualsDeclaration(t)&&!e.isExternalModuleReference(t.moduleReference)}));d[r?0:d.length-1].set(w(t),t)}}function U(t){return e.isSourceFile(t)&&(e.isExternalOrCommonJsModule(t)||e.isJsonSourceFile(t))||e.isAmbientModule(t)&&!e.isGlobalScopeAugmentation(t)}function V(t,n){if(e.canHaveModifiers(t)){var i=0,a=r.enclosingDeclaration&&(e.isJSDocTypeAlias(r.enclosingDeclaration)?e.getSourceFileOfNode(r.enclosingDeclaration):r.enclosingDeclaration);1&n&&a&&(U(a)||e.isModuleDeclaration(a))&&k(t)&&(i|=1),!g||1&i||a&&8388608&a.flags||!(e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t))||(i|=2),512&n&&(e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionDeclaration(t))&&(i|=512),i&&(t=e.factory.updateModifiers(t,i|e.getEffectiveModifierFlags(t)))}c.push(t)}function K(t,i,a){var s=Po(t),c=Sn(t).typeParameters,u=e.map(c,(function(e){return p(e,r)})),l=e.find(t.declarations,e.isJSDocTypeAlias),_=l?l.comment||l.parent.comment:void 0,d=r.flags;r.flags|=8388608;var f=r.enclosingDeclaration;r.enclosingDeclaration=l;var g=l&&l.typeExpression&&e.isJSDocTypeExpression(l.typeExpression)&&R(r,l.typeExpression.type,j,n)||o(s,r);V(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,fe(t,i),u,g),_?[{kind:3,text:"*\n * "+_.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),a),r.flags=d,r.enclosingDeclaration=f}function q(t,n,i){var a=Fo(t),o=ho(t),s=e.map(o,(function(e){return p(e,r)})),c=ko(a),u=e.length(c)?ul(c):void 0,l=e.flatMap(zs(a),(function(e){return oe(e,u)})),_=se(0,a,u,169),d=se(1,a,u,170),f=ce(a,u),g=e.length(c)?[e.factory.createHeritageClause(93,e.mapDefined(c,(function(e){return le(e,111551)})))]:void 0;V(e.factory.createInterfaceDeclaration(void 0,void 0,fe(t,n),s,g,__spreadArray(__spreadArray(__spreadArray(__spreadArray([],f),d),_),l)),i)}function W(t){return t.exports?e.filter(e.arrayFrom(t.exports.values()),Z):[]}function H(t){return e.every(W(t),(function(e){return!(111551&ei(e).flags)}))}function G(t,n,i){var a=W(t),o=e.arrayToMultiMap(a,(function(e){return e.parent&&e.parent===t?"real":"merged"})),s=o.get("real")||e.emptyArray,c=o.get("merged")||e.emptyArray;e.length(s)&&Y(s,l=fe(t,n),i,!!(67108880&t.flags));if(e.length(c)){var u=e.getSourceFileOfNode(r.enclosingDeclaration),l=fe(t,n),_=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(n){var i,a,o=e.unescapeLeadingUnderscores(n.escapedName),s=fe(n,o),c=n.declarations&&Jn(n);if(!u||(c?u===e.getSourceFileOfNode(c):e.some(n.declarations,(function(t){return e.getSourceFileOfNode(t)===u})))){var l=c&&Zn(c,!0);j(l||n);var _=l?fe(l,e.unescapeLeadingUnderscores(l.escapedName)):s;return e.factory.createExportSpecifier(o===_?void 0:_,o)}null===(a=null===(i=r.tracker)||void 0===i?void 0:i.reportNonlocalAugmentation)||void 0===a||a.call(i,u,t,n)}))))]);V(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(l),_,16),0)}}function X(t,r,n){V(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Fh(t)?2048:0),fe(t,r),e.map(e.filter(zs(_o(t)),(function(e){return!!(8&e.flags)})),(function(t){var r=t.declarations&&t.declarations[0]&&e.isEnumMember(t.declarations[0])?lS(t.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(t.escapedName),void 0===r?void 0:"string"==typeof r?e.factory.createStringLiteral(r):e.factory.createNumericLiteral(r))}))),n)}function Q(t,i,a,o){for(var s=0,c=pc(t,0);s<c.length;s++){var u=c[s],l=_(u,251,r,{name:e.factory.createIdentifier(a),privateSymbolVisitor:j,bundledImports:n});V(e.setTextRange(l,u.declaration&&e.isVariableDeclaration(u.declaration.parent)&&u.declaration.parent.parent||u.declaration),o)}1536&i.flags&&i.exports&&i.exports.size||Y(e.filter(zs(t),Z),a,o,!0)}function Y(t,n,i,a){if(e.length(t)){var o=e.arrayToMultiMap(t,(function(t){return!e.length(t.declarations)||e.some(t.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(r.enclosingDeclaration)}))?"local":"remote"})).get("local")||e.emptyArray,u=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(n),e.factory.createModuleBlock([]),16);e.setParent(u,s),u.locals=e.createSymbolTable(t),u.symbol=t[0].parent;var l=c;c=[];var _=g;g=!1;var d=__assign(__assign({},r),{enclosingDeclaration:u}),p=r;r=d,P(e.createSymbolTable(o),a,!0),r=p,g=_;var f=c;c=l;var m=e.map(f,(function(t){return e.isExportAssignment(t)&&!t.isExportEquals&&e.isIdentifier(t.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(t.expression,e.factory.createIdentifier("default"))])):t})),y=e.every(m,(function(t){return e.hasSyntacticModifier(t,1)}))?e.map(m,F):m;V(u=e.factory.updateModuleDeclaration(u,u.decorators,u.modifiers,u.name,e.factory.createModuleBlock(y)),i)}}function Z(t){return!!(2887656&t.flags)||!(4194304&t.flags||"prototype"===t.escapedName||t.valueDeclaration&&32&e.getEffectiveModifierFlags(t.valueDeclaration)&&e.isClassLike(t.valueDeclaration.parent))}function $(t){var i=e.mapDefined(t,(function(t){var i,a=r.enclosingDeclaration;r.enclosingDeclaration=t;var s=t.expression;if(e.isEntityNameExpression(s)){if(e.isIdentifier(s)&&""===e.idText(s))return u(void 0);var c=void 0;if(c=(i=L(s,r,j)).introducesError,s=i.node,c)return u(void 0)}return u(e.factory.createExpressionWithTypeArguments(s,e.map(t.typeArguments,(function(e){return R(r,e,j,n)||o(v_(e),r)}))));function u(e){return r.enclosingDeclaration=a,e}}));if(i.length===t.length)return i}function ee(t,n,a){var o,s=e.find(t.declarations,e.isClassLike),c=r.enclosingDeclaration;r.enclosingDeclaration=s||c;var u=ho(t),l=e.map(u,(function(e){return p(e,r)})),_=Fo(t),d=ko(_),f=s&&e.getEffectiveImplementsTypeNodes(s),g=f&&$(f)||e.mapDefined(function(t){for(var r=e.emptyArray,n=0,i=t.symbol.declarations;n<i.length;n++){var a=i[n],o=e.getEffectiveImplementsTypeNodes(a);if(o)for(var s=0,c=o;s<c.length;s++){var u=v_(c[s]);u!==Se&&(r===e.emptyArray?r=[u]:r.push(u))}}return r}(_),_e),m=_o(t),y=!!(null===(o=m.symbol)||void 0===o?void 0:o.valueDeclaration)&&e.isClassLike(m.symbol.valueDeclaration),v=y?Co(m):be,h=__spreadArray(__spreadArray([],e.length(d)?[e.factory.createHeritageClause(93,e.map(d,(function(e){return ue(e,v,n)})))]:[]),e.length(g)?[e.factory.createHeritageClause(116,g)]:[]),b=function(t,r,n){if(!e.length(r))return n;var i=new e.Map;e.forEach(n,(function(e){i.set(e.escapedName,e)}));for(var a=0,o=r;a<o.length;a++)for(var s=0,c=zs(as(o[a],t.thisType));s<c.length;s++){var u=c[s],l=i.get(u.escapedName);l&&!Gd(l,u)&&i.delete(u.escapedName)}return e.arrayFrom(i.values())}(_,d,zs(_)),x=e.filter(b,(function(t){var r=t.valueDeclaration;return r&&!(e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name))})),D=e.some(b,(function(t){var r=t.valueDeclaration;return r&&e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name)}))?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,S=e.flatMap(x,(function(e){return i(e,!1,d[0])})),T=e.flatMap(e.filter(zs(m),(function(e){return!(4194304&e.flags||"prototype"===e.escapedName||Z(e))})),(function(e){return i(e,!0,v)})),C=!y&&!!t.valueDeclaration&&e.isInJSFile(t.valueDeclaration)&&!e.some(pc(m,1))?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:se(1,m,v,166),E=ce(_,d[0]);r.enclosingDeclaration=c,V(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,n,l,h,__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],E),T),C),S),D)),t.declarations&&e.filter(t.declarations,(function(t){return e.isClassDeclaration(t)||e.isClassExpression(t)}))[0]),a)}function te(t,n,i){var a,o,s,c,u,l=Jn(t);if(!l)return e.Debug.fail();var _=Ti(Zn(l,!0));if(_){var d=e.unescapeLeadingUnderscores(_.escapedName);"export="===d&&(J.esModuleInterop||J.allowSyntheticDefaultImports)&&(d="default");var p=fe(_,d);switch(j(_),l.kind){case 198:if(249===(null===(o=null===(a=l.parent)||void 0===a?void 0:a.parent)||void 0===o?void 0:o.kind)){var f=x(_.parent||_,r),g=l.propertyName;V(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(g&&e.isIdentifier(g)?e.factory.createIdentifier(e.idText(g)):void 0,e.factory.createIdentifier(n))])),e.factory.createStringLiteral(f)),0);break}e.Debug.failBadSyntaxKind((null===(s=l.parent)||void 0===s?void 0:s.parent)||l,"Unhandled binding element grandparent kind in declaration serialization");break;case 289:216===(null===(u=null===(c=l.parent)||void 0===c?void 0:c.parent)||void 0===u?void 0:u.kind)&&re(e.unescapeLeadingUnderscores(t.escapedName),p);break;case 249:if(e.isPropertyAccessExpression(l.initializer)){var m=l.initializer,y=e.factory.createUniqueName(n),v=x(_.parent||_,r);V(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,y,e.factory.createExternalModuleReference(e.factory.createStringLiteral(v))),0),V(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(n),e.factory.createQualifiedName(y,m.name)),i);break}case 260:if("export="===_.escapedName&&e.some(_.declarations,e.isJsonSourceFile)){ne(t);break}var h=!(512&_.flags||e.isVariableDeclaration(l));V(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(n),h?C(_,r,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(x(_,r)))),h?i:0);break;case 259:V(e.factory.createNamespaceExportDeclaration(e.idText(l.name)),0);break;case 262:V(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(n),void 0),e.factory.createStringLiteral(x(_.parent||_,r))),0);break;case 263:V(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(n))),e.factory.createStringLiteral(x(_,r))),0);break;case 269:V(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(n)),e.factory.createStringLiteral(x(_,r))),0);break;case 265:V(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(n!==d?e.factory.createIdentifier(d):void 0,e.factory.createIdentifier(n))])),e.factory.createStringLiteral(x(_.parent||_,r))),0);break;case 270:var b=l.parent.parent.moduleSpecifier;re(e.unescapeLeadingUnderscores(t.escapedName),b?d:p,b&&e.isStringLiteralLike(b)?e.factory.createStringLiteral(b.text):void 0);break;case 266:ne(t);break;case 216:case 201:case 202:"default"===t.escapedName||"export="===t.escapedName?ne(t):re(n,p);break;default:return e.Debug.failBadSyntaxKind(l,"Unhandled alias declaration kind in symbol serializer!")}}}function re(t,r,n){V(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(t!==r?r:void 0,t)]),n),0)}function ne(t){if(4194304&t.flags)return!1;var i=e.unescapeLeadingUnderscores(t.escapedName),a="export="===i,o=a||"default"===i,u=t.declarations&&Jn(t),l=u&&Zn(u,!0);if(l&&e.length(l.declarations)&&e.some(l.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(s)}))){var _=u&&(e.isExportAssignment(u)||e.isBinaryExpression(u)?e.getExportAssignmentExpression(u):e.getPropertyAssignmentAliasLikeExpression(u)),d=_&&e.isEntityNameExpression(_)?function(t){switch(t.kind){case 78:return t;case 157:do{t=t.left}while(78!==t.kind);return t;case 201:do{if(e.isModuleExportsAccessExpression(t.expression)&&!e.isPrivateIdentifier(t.name))return t.name;t=t.expression}while(78!==t.kind);return t}}(_):void 0,p=d&&ui(d,67108863,!0,!0,s);(p||l)&&j(p||l);var f=r.tracker.trackSymbol;if(r.tracker.trackSymbol=e.noop,o)c.push(e.factory.createExportAssignment(void 0,void 0,a,E(l,r,67108863)));else if(d===_&&d)re(i,e.idText(d));else if(_&&e.isClassExpression(_))re(i,fe(l,e.symbolName(l)));else{var g=de(i,t);V(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(g),C(l,r,67108863,!1)),0),re(i,g)}return r.tracker.trackSymbol=f,!0}g=de(i,t);var m=Jp(_o(Ti(t)));return ie(m,t)?Q(m,t,g,o?0:1):V(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(g,void 0,M(r,m,t,s,j,n))],2)),l&&4&l.flags&&"export="===l.escapedName?2:i===g?1:0),o?(c.push(e.factory.createExportAssignment(void 0,void 0,a,e.factory.createIdentifier(g))),!0):i!==g&&(re(i,g),!0)}function ie(t,n){var i=e.getSourceFileOfNode(r.enclosingDeclaration);return 48&e.getObjectFlags(t)&&!mc(t,0)&&!mc(t,1)&&!da(t)&&!(!e.length(e.filter(zs(t),Z))&&!e.length(pc(t,0)))&&!e.length(pc(t,1))&&!I(n,s)&&!(t.symbol&&e.some(t.symbol.declarations,(function(t){return e.getSourceFileOfNode(t)!==i})))&&!e.some(zs(t),(function(e){return Yo(e.escapedName)}))&&!e.some(zs(t),(function(t){return e.some(t.declarations,(function(t){return e.getSourceFileOfNode(t)!==i}))}))&&e.every(zs(t),(function(t){return e.isIdentifierText(e.symbolName(t),z)}))}function ae(t,i,a){return function(o,c,u){var l=e.getDeclarationModifierFlagsFromSymbol(o),d=!!(8&l);if(c&&2887656&o.flags)return[];if(4194304&o.flags||u&&_c(u,o.escapedName)&&xh(_c(u,o.escapedName))===xh(o)&&(16777216&o.flags)==(16777216&_c(u,o.escapedName).flags)&&$_(_o(o),Ea(u,o.escapedName)))return[];var p=-257&l|(c?32:0),f=A(o,r),g=e.find(o.declarations,e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(98304&o.flags&&a){var m=[];if(65536&o.flags&&m.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(p),f,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,d?void 0:M(r,_o(o),o,s,j,n))],void 0),e.find(o.declarations,e.isSetAccessor)||g)),32768&o.flags){var y=8&l;m.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(p),f,[],y?void 0:M(r,_o(o),o,s,j,n),void 0),e.find(o.declarations,e.isGetAccessor)||g))}return m}if(98311&o.flags)return e.setTextRange(t(void 0,e.factory.createModifiersFromModifierFlags((xh(o)?64:0)|p),f,16777216&o.flags?e.factory.createToken(57):void 0,d?void 0:M(r,_o(o),o,s,j,n),void 0),e.find(o.declarations,e.or(e.isPropertyDeclaration,e.isVariableDeclaration))||g);if(8208&o.flags){var v=pc(_o(o),0);if(8&p)return e.setTextRange(t(void 0,e.factory.createModifiersFromModifierFlags((xh(o)?64:0)|p),f,16777216&o.flags?e.factory.createToken(57):void 0,void 0,void 0),e.find(o.declarations,e.isFunctionLikeDeclaration)||v[0]&&v[0].declaration||o.declarations[0]);for(var h=[],b=0,x=v;b<x.length;b++){var D=x[b],S=_(D,i,r,{name:f,questionToken:16777216&o.flags?e.factory.createToken(57):void 0,modifiers:p?e.factory.createModifiersFromModifierFlags(p):void 0});h.push(e.setTextRange(S,D.declaration))}return h}return e.Debug.fail("Unhandled class member kind! "+(o.__debugFlags||o.flags))}}function oe(e,t){return a(e,!1,t)}function se(t,n,i,a){var o=pc(n,t);if(1===t){if(!i&&e.every(o,(function(t){return 0===e.length(t.parameters)})))return[];if(i){var s=pc(i,1);if(!e.length(s)&&e.every(o,(function(t){return 0===e.length(t.parameters)})))return[];if(s.length===o.length){for(var c=!1,u=0;u<s.length;u++)if(!Qd(o[u],s[u],!1,!1,!0,ed)){c=!0;break}if(!c)return[]}}for(var l=0,d=0,p=o;d<p.length;d++){var f=p[d];f.declaration&&(l|=e.getSelectedEffectiveModifierFlags(f.declaration,24))}if(l)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(l),[],void 0),o[0].declaration)]}for(var g=[],m=0,y=o;m<y.length;m++){var v=y[m],h=_(v,a,r);g.push(e.setTextRange(h,v.declaration))}return g}function ce(e,t){for(var n=[],i=0,a=[0,1];i<a.length;i++){var o=a[i],s=mc(e,o);if(s){if(t){var c=mc(t,o);if(c&&$_(s.type,c.type))continue}n.push(l(s,o,r,void 0))}}return n}function ue(t,n,i){var a=le(t,111551);if(a)return a;var s=de(i+"_base");return V(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(s,void 0,o(n,r))],2)),0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(s),void 0)}function le(t,n){var i,a;if(t.target&&Qi(t.target.symbol,s,n)?(i=e.map(au(t),(function(e){return o(e,r)})),a=E(t.target.symbol,r,788968)):t.symbol&&Qi(t.symbol,s,n)&&(a=E(t.symbol,r,788968)),a)return e.factory.createExpressionWithTypeArguments(a,i)}function _e(t){var n=le(t,788968);return n||(t.symbol?e.factory.createExpressionWithTypeArguments(E(t.symbol,r,788968),void 0):void 0)}function de(e,t){var n,i,a=t?w(t):void 0;if(a&&r.remappedSymbolNames.has(a))return r.remappedSymbolNames.get(a);t&&(e=pe(t,e));for(var o=0,s=e;null===(n=r.usedSymbolNames)||void 0===n?void 0:n.has(e);)e=s+"_"+ ++o;return null===(i=r.usedSymbolNames)||void 0===i||i.add(e),a&&r.remappedSymbolNames.set(a,e),e}function pe(t,n){if("default"===n||"__class"===n||"__function"===n){var i=r.flags;r.flags|=16777216;var a=va(t,r);r.flags=i,n=a.length>0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===n?n="_default":"export="===n&&(n="_exports"),n=e.isIdentifierText(n,z)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function fe(e,t){var n=w(e);return r.remappedSymbolNames.has(n)?r.remappedSymbolNames.get(n):(t=pe(e,t),r.remappedSymbolNames.set(n,t),t)}}(t,r,s)}))}};function r(r,n,i,a){var o,s;e.Debug.assert(void 0===r||0==(8&r.flags));var c={enclosingDeclaration:r,flags:n||0,tracker:i&&i.trackSymbol?i:{trackSymbol:e.noop,moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?function(){return t.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return t.getSourceFiles()},getCurrentDirectory:function(){return t.getCurrentDirectory()},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return t.fileExists(e)},getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},u=a(c);return c.truncating&&1&c.flags&&(null===(s=null===(o=c.tracker)||void 0===o?void 0:o.reportTruncationError)||void 0===s||s.call(o)),c.encounteredError?void 0:u}function i(t){return t.truncating?t.truncating:t.truncating=t.approximateLength>(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function o(t,r){n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();var a=8388608&r.flags;if(r.flags&=-8388609,!t)return 262144&r.flags?(r.approximateLength+=3,e.factory.createKeywordTypeNode(128)):void(r.encounteredError=!0);if(536870912&r.flags||(t=oc(t)),1&t.flags)return r.approximateLength+=3,e.factory.createKeywordTypeNode(t===Ce?136:128);if(2&t.flags)return e.factory.createKeywordTypeNode(152);if(4&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(8&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(144);if(64&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(155);if(16&t.flags)return r.approximateLength+=7,e.factory.createKeywordTypeNode(131);if(1024&t.flags&&!(1048576&t.flags)){var p=Ei(t.symbol),f=D(p,r,788968);if(jo(p)===t)return f;var g=e.symbolName(t.symbol);return e.isIdentifierText(g,0)?K(f,e.factory.createTypeReferenceNode(g,void 0)):e.isImportTypeNode(f)?(f.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(f,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(g)))):e.isTypeReferenceNode(f)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(f.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(g))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&t.flags)return D(t.symbol,r,788968);if(128&t.flags)return r.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&r.flags)),16777216));if(256&t.flags){var m=t.value;return r.approximateLength+=(""+m).length,e.factory.createLiteralTypeNode(m<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-m)):e.factory.createNumericLiteral(m))}if(2048&t.flags)return r.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return r.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&r.flags)){if(Xi(t.symbol,r.enclosingDeclaration))return r.approximateLength+=6,D(t.symbol,r,111551);r.tracker.reportInaccessibleUniqueSymbolError&&r.tracker.reportInaccessibleUniqueSymbolError()}return r.approximateLength+=13,e.factory.createTypeOperatorNode(151,e.factory.createKeywordTypeNode(148))}if(16384&t.flags)return r.approximateLength+=4,e.factory.createKeywordTypeNode(113);if(32768&t.flags)return r.approximateLength+=9,e.factory.createKeywordTypeNode(150);if(65536&t.flags)return r.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return r.approximateLength+=5,e.factory.createKeywordTypeNode(141);if(4096&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(67108864&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(145);if(Il(t))return 4194304&r.flags&&(r.encounteredError||32768&r.flags||(r.encounteredError=!0),r.tracker.reportInaccessibleThisError&&r.tracker.reportInaccessibleThisError()),r.approximateLength+=4,e.factory.createThisTypeNode();if(!a&&t.aliasSymbol&&(16384&r.flags||Gi(t.aliasSymbol,r.enclosingDeclaration))){var y=u(t.aliasTypeArguments,r);return!Ji(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?D(t.aliasSymbol,r,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var v=e.getObjectFlags(t);if(4&v)return e.Debug.assert(!!(524288&t.flags)),t.node?z(t,V):V(t);if(262144&t.flags||3&v){if(262144&t.flags&&e.contains(r.inferTypeParameters,t))return r.approximateLength+=e.symbolName(t.symbol).length+6,e.factory.createInferTypeNode(d(t,r,void 0));if(4&r.flags&&262144&t.flags&&!Gi(t.symbol,r.enclosingDeclaration)){var h=T(t,r);return r.approximateLength+=e.idText(h).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(h)),void 0)}return t.symbol?D(t.symbol,r,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(1048576&t.flags&&t.origin&&(t=t.origin),3145728&t.flags){var b=1048576&t.flags?function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e[n];if(r|=i.flags,!(98304&i.flags)){if(1536&i.flags){var a=512&i.flags?je:Mo(i);if(1048576&a.flags){var o=a.types.length;if(n+o<=e.length&&__(e[n+o-1])===__(a.types[o-1])){t.push(a),n+=o-1;continue}}}t.push(i)}}65536&r&&t.push(Fe);32768&r&&t.push(ke);return t||e}(t.types):t.types;if(1===e.length(b))return o(b[0],r);var x=u(b,r,!0);return x&&x.length>0?1048576&t.flags?e.factory.createUnionTypeNode(x):e.factory.createIntersectionTypeNode(x):void(r.encounteredError||262144&r.flags||(r.encounteredError=!0))}if(48&v)return e.Debug.assert(!!(524288&t.flags)),J(t);if(4194304&t.flags){var S=t.type;r.approximateLength+=6;var C=o(S,r);return e.factory.createTypeOperatorNode(138,C)}if(134217728&t.flags){var E=t.texts,k=t.types,N=e.factory.createTemplateHead(E[0]),A=e.factory.createNodeArray(e.map(k,(function(t,n){return e.factory.createTemplateLiteralTypeSpan(o(t,r),(n<k.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(E[n+1]))})));return r.approximateLength+=2,e.factory.createTemplateLiteralType(N,A)}if(268435456&t.flags){var F=o(t.type,r);return D(t.symbol,r,788968,[F])}if(8388608&t.flags){var I=o(t.objectType,r);C=o(t.indexType,r);return r.approximateLength+=2,e.factory.createIndexedAccessTypeNode(I,C)}if(16777216&t.flags){var O=o(t.checkType,r),M=r.inferTypeParameters;r.inferTypeParameters=t.root.inferTypeParameters;var L=o(t.extendsType,r);r.inferTypeParameters=M;var R=j(Hl(t)),B=j(Gl(t));return r.approximateLength+=15,e.factory.createConditionalTypeNode(O,L,R,B)}return 33554432&t.flags?o(t.baseType,r):e.Debug.fail("Should be unreachable.");function j(e){var t,n,i;return 1048576&e.flags?(null===(t=r.visitedTypes)||void 0===t?void 0:t.has(Xu(e)))?(131072&r.flags||(r.encounteredError=!0,null===(i=null===(n=r.tracker)||void 0===n?void 0:n.reportCyclicStructureError)||void 0===i||i.call(n)),s(r)):z(e,(function(e){return o(e,r)})):o(e,r)}function J(t){var n,i=t.id,a=t.symbol;if(a){var o=da(t)?788968:111551;if(Av(a.valueDeclaration))return D(a,r,o);if(32&a.flags&&!so(a)&&!(221===a.valueDeclaration.kind&&2048&r.flags)||896&a.flags||function(){var t,n=!!(8192&a.flags)&&e.some(a.declarations,(function(t){return e.hasSyntacticModifier(t,32)})),o=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,(function(e){return 297===e.parent.kind||257===e.parent.kind})));if(n||o)return(!!(4096&r.flags)||(null===(t=r.visitedTypes)||void 0===t?void 0:t.has(i)))&&(!(8&r.flags)||Xi(a,r.enclosingDeclaration))}())return D(a,r,o);if(null===(n=r.visitedTypes)||void 0===n?void 0:n.has(i)){var c=function(t){if(t.symbol&&2048&t.symbol.flags){var r=e.walkUpParenthesizedTypes(t.symbol.declarations[0].parent);if(254===r.kind)return Ci(r)}return}(t);return c?D(c,r,788968):s(r)}return z(t,U)}return U(t)}function z(t,n){var i,a=t.id,o=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags,c=4&e.getObjectFlags(t)&&t.node?"N"+P(t.node):t.symbol?(o?"+":"")+w(t.symbol):void 0;if(r.visitedTypes||(r.visitedTypes=new e.Set),c&&!r.symbolDepth&&(r.symbolDepth=new e.Map),c){if((i=r.symbolDepth.get(c)||0)>10)return s(r);r.symbolDepth.set(c,i+1)}r.visitedTypes.add(a);var u=n(t);return r.visitedTypes.delete(a),c&&r.symbolDepth.set(c,i),u}function U(t){if(Ls(t)||t.containsError)return function(t){e.Debug.assert(!!(524288&t.flags));var n,i=t.declaration.readonlyToken?e.factory.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.factory.createToken(t.declaration.questionToken.kind):void 0;n=Ps(t)?e.factory.createTypeOperatorNode(138,o(ws(t),r)):o(ks(t),r);var s=d(Es(t),r,n),c=t.declaration.nameType?o(Ns(t),r):void 0,u=o(As(t),r),l=e.factory.createMappedTypeNode(i,s,c,a,u);return r.approximateLength+=10,e.setEmitFlags(l,1)}(t);var n=Rs(t);if(!n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo){if(!n.callSignatures.length&&!n.constructSignatures.length)return r.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length)return _(n.callSignatures[0],174,r);if(1===n.constructSignatures.length&&!n.callSignatures.length)return _(n.constructSignatures[0],175,r)}var a=e.filter(n.constructSignatures,(function(e){return!!(4&e.flags)}));if(e.some(a)){var u=e.map(a,qc);return n.callSignatures.length+(n.constructSignatures.length-a.length)+(n.stringIndexInfo?1:0)+(n.numberIndexInfo?1:0)+(2048&r.flags?e.countWhere(n.properties,(function(e){return!(4194304&e.flags)})):e.length(n.properties))&&u.push(function(t){if(0===t.constructSignatures.length)return t;if(t.objectTypeWithoutAbstractConstructSignatures)return t.objectTypeWithoutAbstractConstructSignatures;var r=e.filter(t.constructSignatures,(function(e){return!(4&e.flags)}));if(t.constructSignatures===r)return t;var n=Vi(t.symbol,t.members,t.callSignatures,e.some(r)?r:e.emptyArray,t.stringIndexInfo,t.numberIndexInfo);return t.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(n)),o(ul(u),r)}var p=r.flags;r.flags|=4194304;var f=function(t){if(i(r))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var n=[],a=0,o=t.callSignatures;a<o.length;a++){var u=o[a];n.push(_(u,169,r))}for(var d=0,p=t.constructSignatures;d<p.length;d++){4&(u=p[d]).flags||n.push(_(u,170,r))}if(t.stringIndexInfo){var f=void 0;f=2048&t.objectFlags?l(Gc(be,t.stringIndexInfo.isReadonly,t.stringIndexInfo.declaration),0,r,s(r)):l(t.stringIndexInfo,0,r,void 0),n.push(f)}t.numberIndexInfo&&n.push(l(t.numberIndexInfo,1,r,void 0));var g=t.properties;if(!g)return n;for(var m=0,y=0,v=g;y<v.length;y++){var h=v[y];if(m++,2048&r.flags){if(4194304&h.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(h)&&r.tracker.reportPrivateInBaseOfClassExpression&&r.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(h.escapedName))}if(i(r)&&m+2<g.length-1){n.push(e.factory.createPropertySignature(void 0,"... "+(g.length-m)+" more ...",void 0,void 0)),c(g[g.length-1],r,n);break}c(h,r,n)}return n.length?n:void 0}(n);r.flags=p;var g=e.factory.createTypeLiteralNode(f);return r.approximateLength+=2,e.setEmitFlags(g,1024&r.flags?0:1),g}function V(t){var n=au(t);if(t.target===ht||t.target===bt){if(2&r.flags){var i=o(n[0],r);return e.factory.createTypeReferenceNode(t.target===ht?"Array":"ReadonlyArray",[i])}var a=o(n[0],r),s=e.factory.createArrayTypeNode(a);return t.target===ht?s:e.factory.createTypeOperatorNode(142,s)}if(!(8&t.target.objectFlags)){if(2048&r.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!Xi(t.symbol,r.enclosingDeclaration))return J(t);var c=t.target.outerTypeParameters,l=(S=0,void 0);if(c)for(var _=c.length;S<_;){var d=S,p=Zc(c[S]);do{S++}while(S<_&&Zc(c[S])===p);if(!e.rangeEquals(c,n,d,S)){var f=u(n.slice(d,S),r),g=r.flags;r.flags|=16;var m=D(p,r,788968,f);r.flags=g,l=l?K(l,m):m}}var y=void 0;if(n.length>0){var v=(t.target.typeParameters||e.emptyArray).length;y=u(n.slice(S,v),r)}T=r.flags;r.flags|=16;var h=D(t.symbol,r,788968,y);return r.flags=T,l?K(l,h):h}if(n.length>0){var b=ou(t),x=u(n.slice(0,b),r);if(x){if(t.target.labeledElementDeclarations)for(var S=0;S<x.length;S++){var T=t.target.elementFlags[S];x[S]=e.factory.createNamedTupleMember(12&T?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(Kv(t.target.labeledElementDeclarations[S]))),2&T?e.factory.createToken(57):void 0,4&T?e.factory.createArrayTypeNode(x[S]):x[S])}else for(var S=0;S<Math.min(b,x.length);S++){var T=t.target.elementFlags[S];x[S]=12&T?e.factory.createRestTypeNode(4&T?e.factory.createArrayTypeNode(x[S]):x[S]):2&T?e.factory.createOptionalTypeNode(x[S]):x[S]}var C=e.setEmitFlags(e.factory.createTupleTypeNode(x),1);return t.target.readonly?e.factory.createTypeOperatorNode(142,C):C}}if(r.encounteredError||524288&r.flags){C=e.setEmitFlags(e.factory.createTupleTypeNode([]),1);return t.target.readonly?e.factory.createTypeOperatorNode(142,C):C}r.encounteredError=!0}function K(t,r){if(e.isImportTypeNode(t)){var n=t.typeArguments,i=t.qualifier;i&&(i=e.isIdentifier(i)?e.factory.updateIdentifier(i,n):e.factory.updateQualifiedName(i,i.left,e.factory.updateIdentifier(i.right,n))),n=r.typeArguments;for(var a=0,o=q(r);a<o.length;a++){var s=o[a];i=i?e.factory.createQualifiedName(i,s):s}return e.factory.updateImportTypeNode(t,t.argument,i,n,t.isTypeOf)}n=t.typeArguments;var c=t.typeName;c=e.isIdentifier(c)?e.factory.updateIdentifier(c,n):e.factory.updateQualifiedName(c,c.left,e.factory.updateIdentifier(c.right,n)),n=r.typeArguments;for(var u=0,l=q(r);u<l.length;u++){s=l[u];c=e.factory.createQualifiedName(c,s)}return e.factory.updateTypeReferenceNode(t,c,n)}function q(t){for(var r=t.typeName,n=[];!e.isIdentifier(r);)n.unshift(r.right),r=r.left;return n.unshift(r),n}}function s(t){return t.approximateLength+=3,1&t.flags?e.factory.createKeywordTypeNode(128):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function c(t,r,n){var i=!!(8192&e.getCheckFlags(t)),a=i&&33554432&r.flags?be:_o(t),o=r.enclosingDeclaration;if(r.enclosingDeclaration=void 0,r.tracker.trackSymbol&&4096&e.getCheckFlags(t)&&Yo(t.escapedName)){var c=e.first(t.declarations);if(Zo(c))if(e.isBinaryExpression(c)){var u=e.getNameOfDeclaration(c);u&&e.isElementAccessExpression(u)&&e.isPropertyAccessEntityNameExpression(u.argumentExpression)&&g(u.argumentExpression,o,r)}else g(c.name.expression,o,r)}r.enclosingDeclaration=o;var l=A(t,r);r.approximateLength+=e.symbolName(t).length+1;var d=16777216&t.flags?e.factory.createToken(57):void 0;if(8208&t.flags&&!Bs(a).length&&!xh(t))for(var p=0,f=pc(og(a,(function(e){return!(32768&e.flags)})),0);p<f.length;p++){var m=_(f[p],164,r,{name:l,questionToken:d});n.push(x(m))}else{var y=r.flags;r.flags|=i?33554432:0;var v=void 0;v=i&&33554432&y?s(r):a?M(r,a,t,o):e.factory.createKeywordTypeNode(128),r.flags=y;var h=xh(t)?[e.factory.createToken(142)]:void 0;h&&(r.approximateLength+=9);var b=e.factory.createPropertySignature(h,l,d,v);n.push(x(b))}function x(r){if(e.some(t.declarations,(function(e){return 333===e.kind}))){var n=e.find(t.declarations,(function(e){return 333===e.kind})).comment;n&&e.setSyntheticLeadingComments(r,[{kind:3,text:"*\n * "+n.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else t.valueDeclaration&&e.setCommentRange(r,t.valueDeclaration);return r}}function u(t,r,n){if(e.some(t)){if(i(r)){if(!n)return[e.factory.createTypeReferenceNode("...",void 0)];if(t.length>2)return[o(t[0],r),e.factory.createTypeReferenceNode("... "+(t.length-2)+" more ...",void 0),o(t[t.length-1],r)]}for(var a=!(64&r.flags)?e.createUnderscoreEscapedMultiMap():void 0,s=[],c=0,u=0,l=t;u<l.length;u++){var _=l[u];if(c++,i(r)&&c+2<t.length-1){s.push(e.factory.createTypeReferenceNode("... "+(t.length-c)+" more ...",void 0));var d=o(t[t.length-1],r);d&&s.push(d);break}r.approximateLength+=2;var p=o(_,r);p&&(s.push(p),a&&e.isIdentifierTypeReference(p)&&a.add(p.typeName.escapedText,[_,s.length-1]))}if(a){var f=r.flags;r.flags|=64,a.forEach((function(t){if(!e.arrayIsHomogeneous(t,(function(e,t){return function(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}(e[0],t[0])})))for(var n=0,i=t;n<i.length;n++){var a=i[n],c=a[0],u=a[1];s[u]=o(c,r)}})),r.flags=f}return s}}function l(t,r,n,i){var a=e.getNameFromIndexInfo(t)||"x",s=e.factory.createKeywordTypeNode(0===r?147:144),c=e.factory.createParameterDeclaration(void 0,void 0,void 0,a,void 0,s,void 0);return i||(i=o(t.type||be,n)),t.type||2097152&n.flags||(n.encounteredError=!0),n.approximateLength+=a.length+4,e.factory.createIndexSignature(void 0,t.isReadonly?[e.factory.createToken(142)]:void 0,[c],i)}function _(t,r,n,i){var a,s,c,u,l,_,d=256&n.flags;d&&(n.flags&=-257),32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?_=t.target.typeParameters.map((function(e){return o(V_(e,t.mapper),n)})):l=t.typeParameters&&t.typeParameters.map((function(e){return p(e,n)}));var g,m=_s(t,!0)[0],y=(e.some(m,(function(t){return t!==m[m.length-1]&&!!(32768&e.getCheckFlags(t))}))?t.parameters:m).map((function(e){return f(e,n,166===r,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}));if(t.thisParameter){var v=f(t.thisParameter,n);y.unshift(v)}var h=Oc(t);if(h){var b=2===h.kind||3===h.kind?e.factory.createToken(127):void 0,x=1===h.kind||3===h.kind?e.setEmitFlags(e.factory.createIdentifier(h.parameterName),16777216):e.factory.createThisTypeNode(),D=h.type&&o(h.type,n);g=e.factory.createTypePredicateNode(b,x,D)}else{var S=Mc(t);!S||d&&ka(S)?d||(g=e.factory.createKeywordTypeNode(128)):g=function(t,r,n,i,a){if(r!==Se&&t.enclosingDeclaration){var s=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration);if(e.findAncestor(s,(function(e){return e===t.enclosingDeclaration}))&&s&&V_(v_(s),n.mapper)===r&&O(s,r)){var c=R(t,s,i,a);if(c)return c}}return o(r,t)}(n,S,t,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}var T=null==i?void 0:i.modifiers;if(175===r&&4&t.flags){var C=e.modifiersToFlags(T);T=e.factory.createModifiersFromModifierFlags(128|C)}n.approximateLength+=3;var E=169===r?e.factory.createCallSignature(l,y,g):170===r?e.factory.createConstructSignature(l,y,g):164===r?e.factory.createMethodSignature(T,null!==(a=null==i?void 0:i.name)&&void 0!==a?a:e.factory.createIdentifier(""),null==i?void 0:i.questionToken,l,y,g):165===r?e.factory.createMethodDeclaration(void 0,T,void 0,null!==(s=null==i?void 0:i.name)&&void 0!==s?s:e.factory.createIdentifier(""),void 0,l,y,g,void 0):166===r?e.factory.createConstructorDeclaration(void 0,T,y,void 0):167===r?e.factory.createGetAccessorDeclaration(void 0,T,null!==(c=null==i?void 0:i.name)&&void 0!==c?c:e.factory.createIdentifier(""),y,g,void 0):168===r?e.factory.createSetAccessorDeclaration(void 0,T,null!==(u=null==i?void 0:i.name)&&void 0!==u?u:e.factory.createIdentifier(""),y,void 0):171===r?e.factory.createIndexSignature(void 0,T,y,g):308===r?e.factory.createJSDocFunctionType(y,g):174===r?e.factory.createFunctionTypeNode(l,y,null!=g?g:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):175===r?e.factory.createConstructorTypeNode(T,l,y,null!=g?g:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):251===r?e.factory.createFunctionDeclaration(void 0,T,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),l,y,g,void 0):208===r?e.factory.createFunctionExpression(T,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),l,y,g,e.factory.createBlock([])):209===r?e.factory.createArrowFunction(T,l,y,g,void 0,e.factory.createBlock([])):e.Debug.assertNever(r);return _&&(E.typeArguments=e.factory.createNodeArray(_)),E}function d(t,r,n){var i=r.flags;r.flags&=-513;var a=T(t,r),s=$s(t),c=s&&o(s,r);return r.flags=i,e.factory.createTypeParameterDeclaration(a,n,c)}function p(e,t,r){return void 0===r&&(r=Vs(e)),d(e,t,r&&o(r,t))}function f(t,r,n,i,a){var o=e.getDeclarationOfKind(t,160);o||e.isTransientSymbol(t)||(o=e.getDeclarationOfKind(t,326));var s,c=_o(t);o&&nS(o)&&(c=Cp(c)),1073741824&r.flags&&o&&!e.isJSDocParameterTag(o)&&(s=o,K&&Sc(s)&&!s.initializer)&&(c=zf(c,524288));var u=M(r,c,t,r.enclosingDeclaration,i,a),l=!(8192&r.flags)&&n&&o&&o.modifiers?o.modifiers.map(e.factory.cloneNode):void 0,_=o&&e.isRestParameter(o)||32768&e.getCheckFlags(t)?e.factory.createToken(25):void 0,d=o&&o.name?78===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name),16777216):157===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name.right),16777216):function t(n){r.tracker.trackSymbol&&e.isComputedPropertyName(n)&&Qo(n)&&g(n.expression,r.enclosingDeclaration,r);var i=e.visitEachChild(n,t,e.nullTransformationContext,void 0,t);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(t),p=o&&Sc(o)||16384&e.getCheckFlags(t)?e.factory.createToken(57):void 0,f=e.factory.createParameterDeclaration(void 0,l,_,d,p,u,void 0);return r.approximateLength+=e.symbolName(t).length+3,f}function g(t,r,n){if(n.tracker.trackSymbol){var i=e.getFirstIdentifier(t),a=An(i,i.escapedText,1160127,void 0,void 0,!0);a&&n.tracker.trackSymbol(a,r,111551)}}function m(e,t,r,n){return t.tracker.trackSymbol(e,t.enclosingDeclaration,r),y(e,t,r,n)}function y(t,r,n,i){var a;return 262144&t.flags||!(r.enclosingDeclaration||64&r.flags)||134217728&r.flags?a=[t]:(a=e.Debug.checkDefined(function t(n,a,o){var s,c=Wi(n,r.enclosingDeclaration,a,!!(128&r.flags));if(!c||Hi(c[0],r.enclosingDeclaration,1===c.length?a:qi(a))){var u=ki(c?c[0]:n,r.enclosingDeclaration,a);if(e.length(u)){s=u.map((function(t){return e.some(t.declarations,ra)?x(t,r):void 0}));var l=u.map((function(e,t){return t}));l.sort(g);for(var _=0,d=l.map((function(e){return u[e]}));_<d.length;_++){var p=d[_],f=t(p,qi(a),!1);if(f){if(p.exports&&p.exports.get("export=")&&Fi(p.exports.get("export="),n)){c=f;break}c=f.concat(c||[Ai(p,n)||n]);break}}}}if(c)return c;if(o||!(6144&n.flags)){if(!o&&!i&&e.forEach(n.declarations,ra))return;return[n]}function g(t,r){var n=s[t],i=s[r];if(n&&i){var a=e.pathIsRelative(i);return e.pathIsRelative(n)===a?e.moduleSpecifiers.countPathComponents(n)-e.moduleSpecifiers.countPathComponents(i):a?-1:1}return 0}}(t,n,!0)),e.Debug.assert(a&&a.length>0)),a}function v(t,r){var n;return 524384&tD(t).flags&&(n=e.factory.createNodeArray(e.map(ho(t),(function(e){return p(e,r)})))),n}function h(t,r,n){var i;e.Debug.assert(t&&0<=r&&r<t.length);var a=t[r],o=w(a);if(!(null===(i=n.typeParameterSymbolList)||void 0===i?void 0:i.has(o))){var s;if((n.typeParameterSymbolList||(n.typeParameterSymbolList=new e.Set)).add(o),512&n.flags&&r<t.length-1){var c=a,l=t[r+1];if(1&e.getCheckFlags(l)){var _=function(t){return e.concatenate(vo(t),ho(t))}(2097152&c.flags?ti(c):c);s=u(e.map(_,(function(e){return T_(e,l.mapper)})),n)}else s=v(a,n)}return s}}function b(t){return e.isIndexedAccessTypeNode(t.objectType)?b(t.objectType):t}function x(t,r){var n,i=e.getDeclarationOfKind(t,297);if(!i){var o=e.firstDefined(t.declarations,(function(e){return Ni(e,t)}));o&&(i=e.getDeclarationOfKind(o,297))}if(i&&void 0!==i.moduleName)return i.moduleName;if(!i){if(r.tracker.trackReferencedAmbientModule){var s=e.filter(t.declarations,e.isAmbientModule);if(e.length(s))for(var c=0,u=s;c<u.length;c++){var l=u[c];r.tracker.trackReferencedAmbientModule(l,t)}}if(a.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1)}if(!r.enclosingDeclaration||!r.tracker.moduleResolverHost)return a.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(t)).fileName;var _=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),d=Sn(t),p=d.specifierCache&&d.specifierCache.get(_.path);if(!p){var f=!!e.outFile(J),g=r.tracker.moduleResolverHost,m=f?__assign(__assign({},J),{baseUrl:g.getCommonSourceDirectory()}):J;p=e.first(e.moduleSpecifiers.getModuleSpecifiers(t,oe,m,_,g,{importModuleSpecifierPreference:f?"non-relative":"relative",importModuleSpecifierEnding:f?"minimal":void 0})),null!==(n=d.specifierCache)&&void 0!==n||(d.specifierCache=new e.Map),d.specifierCache.set(_.path,p)}return p}function D(t,r,n,i){var a=m(t,r,n,!(16384&r.flags)),o=111551===n;if(e.some(a[0].declarations,ra)){var s=a.length>1?y(a,a.length-1,1):void 0,c=i||h(a,0,r),u=x(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(J)===e.ModuleResolutionKind.NodeJs&&u.indexOf("/node_modules/")>=0&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(u));var l=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(u));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),r.approximateLength+=u.length+10,!s||e.isEntityName(s)){if(s)(f=e.isIdentifier(s)?s:s.right).typeArguments=void 0;return e.factory.createImportTypeNode(l,s,c,o)}var _=b(s),d=_.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(l,d,c,o),_.indexType)}var p=y(a,a.length-1,0);if(e.isIndexedAccessTypeNode(p))return p;if(o)return e.factory.createTypeQueryNode(p);var f,g=(f=e.isIdentifier(p)?p:p.right).typeArguments;return f.typeArguments=void 0,e.factory.createTypeReferenceNode(p,g);function y(t,n,a){var o,s=n===t.length-1?i:h(t,n,r),c=t[n],u=t[n-1];if(0===n)r.flags|=16777216,o=va(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(u&&bi(u)){var l=bi(u);e.forEachEntry(l,(function(t,r){if(Fi(t,c)&&!Yo(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(o||(o=va(c,r)),r.approximateLength+=o.length+1,!(16&r.flags)&&u&&ns(u)&&ns(u).get(c.escapedName)&&Fi(ns(u).get(c.escapedName),c)){var _=y(t,n-1,a);return e.isIndexedAccessTypeNode(_)?e.factory.createIndexedAccessTypeNode(_,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(_,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)))}var d=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);if(d.symbol=c,n>a){_=y(t,n-1,a);return e.isEntityName(_)?e.factory.createQualifiedName(_,d):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return d}}function S(e,t,r){var n=An(t.enclosingDeclaration,e,788968,void 0,e,!1);return!!n&&!(262144&n.flags&&n===r.symbol)}function T(t,r){var n;if(4&r.flags&&r.typeParameterNames){var i=r.typeParameterNames.get(Xu(t));if(i)return i}var a=C(t.symbol,r,788968,!0);if(!(78&a.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var o=a.escapedText,s=0,c=o;(null===(n=r.typeParameterNamesByText)||void 0===n?void 0:n.has(c))||S(c,r,t);)c=o+"_"+ ++s;c!==o&&(a=e.factory.createIdentifier(c,a.typeArguments)),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(Xu(t),a),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(a.escapedText)}return a}function C(t,r,n,i){var a=m(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=h(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=va(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function E(t,r,n){var i=m(t,r,n);return function t(n,i){var a=h(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=va(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,ra))return e.factory.createStringLiteral(x(o,r));var u=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),z):e.isIdentifierStart(c,z);if(0===i||u){var l=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return l.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),l):l}91===c&&(s=s.substring(1,s.length-1),c=s.charCodeAt(0));var _=void 0;return e.isSingleOrDoubleQuote(c)?_=e.factory.createStringLiteral(s.substring(1,s.length-1).replace(/\\./g,(function(e){return e.substring(1)})),39===c):""+ +s===s&&(_=e.factory.createNumericLiteral(+s)),_||((_=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(n,i-1),_)}(i,i.length-1)}function k(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function N(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function A(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,N),i=function(t,r,n){var i=Sn(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,J.target)||Pm(a)?Pm(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):F(a):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(E(i.symbol,r,111551))}}(t,r,n);return i||(e.isKnownSymbol(t)?e.factory.createComputedPropertyName(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("Symbol"),t.escapedName.substr(3))):F(e.unescapeLeadingUnderscores(t.escapedName),!!e.length(t.declarations)&&e.every(t.declarations,k),n))}function F(t,r,n){return e.isIdentifierText(t,J.target)?e.factory.createIdentifier(t):!r&&Pm(t)&&+t>=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n)}function I(t,r){return t.declarations&&e.find(t.declarations,(function(t){return!(!e.getEffectiveTypeAnnotationNode(t)||r&&!e.findAncestor(t,(function(e){return e===r})))}))}function O(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=Ec(r.target.typeParameters)}function M(t,r,n,i,a,s){if(r!==Se&&i){var c=I(n,i);if(c&&!e.isFunctionLikeDeclaration(c)){var u=e.getEffectiveTypeAnnotationNode(c);if(v_(u)===r&&O(u,r)){var l=R(t,u,a,s);if(l)return l}}}var _=t.flags;8192&r.flags&&r.symbol===n&&(!t.enclosingDeclaration||e.some(n.declarations,(function(r){return e.getSourceFileOfNode(r)===e.getSourceFileOfNode(t.enclosingDeclaration)})))&&(t.flags|=1048576);var d=o(r,t);return t.flags=_,d}function L(t,r,n){var i,a,o=!1,s=e.getFirstIdentifier(t);if(e.isInJSFile(t)&&(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:t};var c=ui(s,67108863,!0,!0);if(c&&(0!==Zi(c,r.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=r.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,r.enclosingDeclaration,67108863),null==n||n(c)),e.isIdentifier(t))){var u=262144&c.flags?T(jo(c),r):e.factory.cloneNode(t);return u.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(u,t),16777216)}}return{introducesError:o,node:t}}function R(r,i,a,s){n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();var c=!1,u=e.getSourceFileOfNode(i),l=e.visitNode(i,(function n(i){if(e.isJSDocAllType(i)||310===i.kind)return e.factory.createKeywordTypeNode(128);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(152);if(e.isJSDocNullableType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,n),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,n),e.factory.createKeywordTypeNode(150)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,n);if(e.isJSDocVariadicType(i))return e.factory.createArrayTypeNode(e.visitNode(i.type,n));if(e.isJSDocTypeLiteral(i))return e.factory.createTypeLiteralNode(e.map(i.jsDocPropertyTags,(function(t){var a=e.isIdentifier(t.name)?t.name:t.name.right,s=Ea(v_(i),a.escapedText),c=s&&t.typeExpression&&v_(t.typeExpression.type)!==s?o(s,r):void 0;return e.factory.createPropertySignature(void 0,a,t.isBracketed||t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,c||t.typeExpression&&e.visitNode(t.typeExpression.type,n)||e.factory.createKeywordTypeNode(128))})));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(128),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],n))],e.visitNode(i.typeArguments[1],n))]);if(e.isJSDocFunctionType(i)){var l;return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(i.modifiers,e.visitNodes(i.typeParameters,n),e.mapDefined(i.parameters,(function(t,r){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(l=t.type):e.factory.createParameterDeclaration(void 0,void 0,g(t),m(t,r),t.questionToken,e.visitNode(t.type,n),void 0)})),e.visitNode(l||i.type,n)||e.factory.createKeywordTypeNode(128)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,n),e.map(i.parameters,(function(t,r){return e.factory.createParameterDeclaration(void 0,void 0,g(t),m(t,r),t.questionToken,e.visitNode(t.type,n),void 0)})),e.visitNode(i.type,n)||e.factory.createKeywordTypeNode(128))}if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!O(i,v_(i))||vu(i)||ve===lu(uu(i),788968,!0)))return e.setOriginalNode(o(v_(i),r),i);if(e.isLiteralImportTypeNode(i)){var _=Tn(i).resolvedSymbol;return!e.isInJSDoc(i)||!_||(i.isTypeOf||788968&_.flags)&&e.length(i.typeArguments)>=Ec(ho(_))?e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,function(n,i){if(s){if(r.tracker&&r.tracker.moduleResolverHost){var a=SS(n);if(a){var o={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:function(){return r.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return r.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(o,a);return e.factory.createStringLiteral(c)}}}else if(r.tracker&&r.tracker.trackExternalModuleSymbolOfImportTypeNode){var u=di(i,i,void 0);u&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(u)}return i}(i,i.argument.literal)),i.qualifier,e.visitNodes(i.typeArguments,n,e.isTypeNode),i.isTypeOf):e.setOriginalNode(o(v_(i),r),i)}if(e.isEntityName(i)||e.isEntityNameExpression(i)){var d=L(i,r,a),p=d.introducesError,f=d.node;if(c=c||p,f!==i)return f}u&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(u,i.pos).line===e.getLineAndCharacterOfPosition(u,i.end).line&&e.setEmitFlags(i,1);return e.visitEachChild(i,n,e.nullTransformationContext);function g(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function m(t,r){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":g(t)?"args":"arg"+r}}));if(!c)return l===i?e.setTextRange(e.factory.cloneNode(i),i):l}}(),ee=e.createSymbolTable(),te=fn(4,"undefined");te.declarations=[];var re=fn(1536,"globalThis",8);re.exports=ee,re.declarations=[],ee.set(re.escapedName,re);var ne,ie=fn(4,"arguments"),ae=fn(4,"require"),oe={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+m},getTypeCatalog:function(){return S},getTypeCount:function(){return g},getInstantiationCount:function(){return v},getRelationCacheSizes:function(){return{assignable:en.size,identity:rn.size,subtype:Zr.size,strictSubtype:$r.size}},isUndefinedSymbol:function(e){return e===te},isArgumentsSymbol:function(e){return e===ie},isUnknownSymbol:function(e){return e===ve},getMergedSymbol:Ti,getDiagnostics:ND,getGlobalDiagnostics:function(){return AD(),Gr.getGlobalDiagnostics()},getRecursionIdentity:Hd,getTypeOfSymbolAtLocation:function(t,r){var n=e.getParseTreeNode(r);return n?function(t,r){if(t=t.exportSymbol||t,78===r.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&!e.isAssignmentTarget(r))){var n=tb(r);if(Pi(Tn(r).resolvedSymbol)===t)return n}return _o(t)}(t,n):Se},getSymbolsOfParameterPropertyDeclaration:function(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,r){var n=t.parent,i=t.parent.parent,a=En(n.locals,r,111551),o=En(ns(i.symbol),r,111551);if(a&&o)return[a,o];return e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:jo,getPropertiesOfType:zs,getPropertyOfType:function(t,r){return _c(t,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=by(e.escapeLeadingUnderscores(r),i);return a?xy(t,a):void 0}},getTypeOfPropertyOfType:function(t,r){return Ea(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:mc,getSignaturesOfType:pc,getIndexTypeOfType:yc,getBaseTypes:ko,getBaseTypeOfLiteralType:up,getWidenedType:Jp,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?v_(r):Se},getParameterType:Gv,getPromisedTypeOfPromise:Eb,getAwaitedType:function(e){return Nb(e)},getReturnTypeOfSignature:Mc,isNullableType:ly,getNullableType:Tp,getNonNullableType:Ep,getNonOptionalType:Ap,getTypeArguments:au,typeToTypeNode:$.typeToTypeNode,indexInfoToIndexSignatureDeclaration:$.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:$.signatureToSignatureDeclaration,symbolToEntityName:$.symbolToEntityName,symbolToExpression:$.symbolToExpression,symbolToTypeParameterDeclarations:$.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:$.symbolToParameterDeclaration,typeParameterToDeclaration:$.typeParameterToDeclaration,getSymbolsInScope:function(t,r){var n=e.getParseTreeNode(t);return n?function(t,r){if(16777216&t.flags)return[];var n=e.createSymbolTable(),i=!1;return a(),n.delete("this"),bc(n);function a(){for(;t;){switch(t.locals&&!Cn(t)&&s(t.locals,r),t.kind){case 297:if(!e.isExternalOrCommonJsModule(t))break;case 256:s(Ci(t).exports,2623475&r);break;case 255:s(Ci(t).exports,8&r);break;case 221:t.name&&o(t.symbol,r);case 252:case 253:i||s(ns(Ci(t)),788968&r);break;case 208:t.name&&o(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&o(ie,r),i=e.hasSyntacticModifier(t,32),t=t.parent}s(ee,r)}function o(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;n.has(i)||n.set(i,t)}}function s(e,t){t&&e.forEach((function(e){o(e,t)}))}}(n,r):[]},getSymbolAtLocation:function(t){var r=e.getParseTreeNode(t);return r?LD(r,!0):void 0},getShorthandAssignmentValueSymbol:function(t){var r=e.getParseTreeNode(t);return r?function(e){if(e&&289===e.kind)return ui(e.name,2208703);return}(r):void 0},getExportSpecifierLocalTargetSymbol:function(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?function(t){return e.isExportSpecifier(t)?t.parent.parent.moduleSpecifier?Gn(t.parent.parent,t):ui(t.propertyName||t.name,2998271):ui(t,2998271)}(r):void 0},getExportSymbolOfSymbol:function(e){return Ti(e.exportSymbol||e)},getTypeAtLocation:function(t){var r=e.getParseTreeNode(t);return r?RD(r):Se},getTypeOfAssignmentPattern:function(t){var r=e.getParseTreeNode(t,e.isAssignmentPattern);return r&&BD(r)||Se},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?function(t){var r=BD(e.cast(t.parent.parent,e.isAssignmentPattern));return r&&_c(r,t.escapedText)}(r):void 0},signatureToString:function(t,r,n,i){return oa(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return sa(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return aa(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return pa(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return oa(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return sa(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return aa(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return pa(t,e.getParseTreeNode(r),n,i)},getAugmentedPropertiesOfType:UD,getRootSymbols:function t(r){var n=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(Sn(t).containingType.types,(function(e){return _c(e,t.escapedName)}));if(33554432&t.flags){var r=t,n=r.leftSpread,i=r.rightSpread,a=r.syntheticOrigin;return n?[n,i]:a?[a]:e.singleElementArray(function(e){var t,r=e;for(;r=Sn(r).target;)t=r;return t}(t))}return}(r);return n?e.flatMap(n,t):[r]},getSymbolOfExpando:Pv,getContextualType:function(t,r){var n=e.getParseTreeNode(t,e.isExpression);if(n){var i=e.findAncestor(n,e.isCallLikeExpression),a=i&&Tn(i).resolvedSignature;if(4&r&&i){var o=n;do{Tn(o).skipDirectInference=!0,o=o.parent}while(o&&o!==i);Tn(i).resolvedSignature=void 0}var s=vm(n,r);if(4&r&&i){o=n;do{Tn(o).skipDirectInference=void 0,o=o.parent}while(o&&o!==i);Tn(i).resolvedSignature=a}return s}},getContextualTypeForObjectLiteralElement:function(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?lm(r):void 0},getContextualTypeForArgumentAtIndex:function(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&im(n,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&pm(r)},isContextSensitive:G_,getFullyQualifiedName:ci,getResolvedSignature:function(e,t,r){return se(e,t,r,0)},getResolvedSignatureForSignatureHelp:function(e,t,r){return se(e,t,r,16)},getExpandedParameters:_s,hasEffectiveRestParameter:$v,getConstantValue:function(t){var r=e.getParseTreeNode(t,uS);return r?lS(r):void 0},isValidPropertyAccess:function(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&function(e,t){switch(e.kind){case 201:return Oy(e,105===e.expression.kind,t,Jp(ib(e.expression)));case 157:return Oy(e,!1,t,Jp(ib(e.left)));case 195:return Oy(e,!1,t,v_(e))}}(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&function(e,t,r){return Oy(e,201===e.kind&&105===e.expression.kind,r.escapedName,t)}(i,r,n)},getSignatureFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?Nc(r):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?rS(r):void 0},getImmediateAliasedSymbol:Om,getAliasedSymbol:ti,getEmitResolver:function(e,t){return ND(e,t),Z},getExportsOfModule:vi,getExportsAndPropertiesOfModule:function(t){var r=vi(t),n=gi(t);n!==t&&e.addRange(r,zs(_o(n)));return r},getSymbolWalker:e.createGetSymbolWalker((function(e){return Bc(e)||be}),Oc,Mc,ko,Rs,_o,Cf,gc,Vs,e.getFirstIdentifier,au),getAmbientModules:function(){dt||(dt=[],ee.forEach((function(e,t){a.test(t)&&dt.push(e)})));return dt},getJsxIntrinsicTagNamesAt:function(t){var r=Vm(k.IntrinsicElements,t);return r?zs(r):e.emptyArray},isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&Sc(r)},tryGetMemberInModuleExports:function(t,r){return hi(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return function(t,r){var n=hi(t,r);if(n)return n;var i=gi(r);if(i===r)return;var a=_o(i);return 131068&a.flags||1&e.getObjectFlags(a)||ap(a)?void 0:_c(a,t)}(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(e){return Dc(e,!1)},getApparentType:tc,getUnionType:rl,isTypeAssignableTo:id,createAnonymousType:Vi,createSignature:ss,createSymbol:fn,createIndexInfo:Gc,getAnyType:function(){return be},getStringType:function(){return we},getNumberType:function(){return Ie},createPromiseType:sh,createArrayType:Ou,getElementTypeOfArrayType:tp,getBooleanType:function(){return je},getFalseType:function(e){return e?Me:Le},getTrueType:function(e){return e?Re:Be},getVoidType:function(){return ze},getUndefinedType:function(){return ke},getNullType:function(){return Fe},getESSymbolType:function(){return Je},getNeverType:function(){return Ue},getOptionalType:function(){return Ae},isSymbolAccessible:Zi,isArrayType:Zd,isTupleType:fp,isArrayLikeType:rp,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((function(t){var r=t.name&&gl(t.name),n=r&&Xo(r)?es(r):void 0,i=void 0===n?void 0:Ea(e,n);return!!i&&cp(i)&&!id(RD(t),i)}))},getAllPossiblePropertiesOfTypes:function(t){var r=rl(t);if(!(1048576&r.flags))return UD(r);for(var n=e.createSymbolTable(),i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=UD(o);s<c.length;s++){var u=c[s].escapedName;if(!n.has(u)){var l=nc(r,u);l&&n.set(u,l)}}return e.arrayFrom(n.values())},getSuggestedSymbolForNonexistentProperty:ky,getSuggestionForNonexistentProperty:Ay,getSuggestedSymbolForNonexistentJSXAttribute:Ny,getSuggestedSymbolForNonexistentSymbol:function(t,r,n){return Fy(t,e.escapeLeadingUnderscores(r),n)},getSuggestionForNonexistentSymbol:function(t,r,n){return function(t,r,n){var i=Fy(t,r,n);return i&&e.symbolName(i)}(t,e.escapeLeadingUnderscores(r),n)},getSuggestedSymbolForNonexistentModule:Py,getSuggestionForNonexistentExport:function(t,r){var n=Py(t,r);return n&&e.symbolName(n)},getBaseConstraintOfType:Gs,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?$s(e):void 0},resolveName:function(t,r,n,i){return An(r,e.escapeLeadingUnderscores(t),n,void 0,void 0,!1,i)},getJsxNamespace:function(t){return e.unescapeLeadingUnderscores(on(t))},getJsxFragmentFactory:function(t){var r=DS(t);return r&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(r).escapedText)},getAccessibleSymbolChain:Wi,getTypePredicateOfSignature:Oc,resolveExternalModuleName:function(t){var r=e.getParseTreeNode(t,e.isExpression);return r&&_i(r,r,!0)},resolveExternalModuleSymbol:gi,tryGetThisTypeAt:function(t,r){var n=e.getParseTreeNode(t);return n&&Wg(n,r)},getTypeArgumentConstraint:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r&&function(t){var r=e.tryCast(t.parent,e.isTypeReferenceType);if(!r)return;var n=yb(r),i=Vs(n[r.typeArguments.indexOf(t)]);return i&&V_(i,S_(n,gb(r,n)))}(r)},getSuggestionDiagnostics:function(r,i){var a,o=e.getParseTreeNode(r,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(o,J,t))return e.emptyArray;try{return n=i,CD(o),e.Debug.assert(!!(1&Tn(o).flags)),a=e.addRange(a,Xr.getDiagnostics(o.fileName)),Jb(kD(o),(function(t,r,n){e.containsParseError(t)||ED(r,!!(8388608&t.flags))||(a||(a=[])).push(__assign(__assign({},n),{category:e.DiagnosticCategory.Suggestion}))})),a||e.emptyArray}finally{n=void 0}},runWithCancellationToken:function(e,t){try{return n=e,t(oe)}finally{n=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:ho,isDeclarationVisible:ha};function se(t,r,n,i){var a=e.getParseTreeNode(t,e.isCallLikeExpression);ne=n;var o=a?Nv(a,r,i):void 0;return ne=void 0,o}var ce=new e.Map,ue=new e.Map,le=new e.Map,_e=new e.Map,de=new e.Map,pe=new e.Map,fe=new e.Map,ge=new e.Map,me=[],ye=new e.Map,ve=fn(4,"unknown"),he=fn(0,"__resolving__"),be=Li(1,"any"),xe=Li(1,"any"),De=Li(1,"any"),Se=Li(1,"error"),Te=Li(1,"any",524288),Ce=Li(1,"intrinsic"),Ee=Li(2,"unknown"),ke=Li(32768,"undefined"),Ne=K?ke:Li(32768,"undefined",524288),Ae=Li(32768,"undefined"),Fe=Li(65536,"null"),Pe=K?Fe:Li(65536,"null",524288),we=Li(4,"string"),Ie=Li(8,"number"),Oe=Li(64,"bigint"),Me=Li(512,"false"),Le=Li(512,"false"),Re=Li(512,"true"),Be=Li(512,"true");Re.regularType=Be,Re.freshType=Re,Be.regularType=Be,Be.freshType=Re,Me.regularType=Le,Me.freshType=Me,Le.regularType=Le,Le.freshType=Me;var je=Ri([Le,Be]);Ri([Le,Re]),Ri([Me,Be]),Ri([Me,Re]);var Je=Li(4096,"symbol"),ze=Li(16384,"void"),Ue=Li(131072,"never"),Ve=Li(131072,"never"),Ke=Li(131072,"never",2097152),qe=Li(131072,"never"),We=Li(131072,"never"),He=Li(67108864,"object"),Ge=rl([we,Ie,Je]),Xe=Q?we:Ge,Qe=rl([Ie,Oe]),Ye=rl([we,Ie,je,Oe,Fe,ke]),Ze=E_((function(e){return 262144&e.flags?(t=e).constraint===Ee?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=ji(t.symbol),t.restrictiveInstantiation.constraint=Ee,t.restrictiveInstantiation):e;var t})),$e=E_((function(e){return 262144&e.flags?De:e})),et=Vi(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0),tt=Vi(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0);tt.objectFlags|=4096;var rt=fn(2048,"__type");rt.members=e.createSymbolTable();var nt=Vi(rt,T,e.emptyArray,e.emptyArray,void 0,void 0),it=Vi(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0);it.instantiations=new e.Map;var at=Vi(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0);at.objectFlags|=2097152;var ot=Vi(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0),st=Vi(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0),ct=Vi(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0),ut=ji(),lt=ji();lt.constraint=ut;var _t,dt,pt,ft,gt,mt,yt,vt,ht,bt,xt,Dt,St,Tt,Ct,Et,kt,Nt,At,Ft,Pt,wt,It,Ot,Mt,Lt,Rt,Bt,jt,Jt,zt,Ut,Vt,Kt,qt,Wt,Ht,Gt,Xt,Qt,Yt,Zt,$t,er,tr,rr,nr,ir=ji(),ar=Cc(1,"<<unresolved>>",0,be),or=ss(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),sr=ss(void 0,void 0,void 0,e.emptyArray,Se,void 0,0,0),cr=ss(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),ur=ss(void 0,void 0,void 0,e.emptyArray,Ve,void 0,0,0),lr=Gc(we,!0),_r=new e.Map,dr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},pr=Dx(be,be,be),fr=Dx(be,be,Ee),gr=Dx(Ue,be,ke),mr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Kt||(Kt=Cu("AsyncIterator",3,e))||it},getGlobalIterableType:function(e){return Vt||(Vt=Cu("AsyncIterable",1,e))||it},getGlobalIterableIteratorType:function(e){return qt||(qt=Cu("AsyncIterableIterator",1,e))||it},getGlobalGeneratorType:function(e){return Wt||(Wt=Cu("AsyncGenerator",3,e))||it},resolveIterationType:Nb,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},yr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Bt||(Bt=Cu("Iterator",3,e))||it},getGlobalIterableType:Fu,getGlobalIterableIteratorType:function(e){return jt||(jt=Cu("IterableIterator",1,e))||it},getGlobalGeneratorType:function(e){return Jt||(Jt=Cu("Generator",3,e))||it},resolveIterationType:function(e,t){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},vr=new e.Map,hr=!1,br=new e.Map,xr=0,Dr=0,Sr=0,Tr=!1,Cr=0,Er=p_(""),kr=p_(0),Nr=p_({negative:!1,base10Value:"0"}),Ar=[],Fr=[],Pr=[],wr=0,Ir=[],Or=[],Mr=[],Lr=[],Rr=[],Br=[],jr=[],Jr=[],zr=[],Ur=[],Vr=[],Kr=[],qr=[],Wr=[],Hr=[],Gr=e.createDiagnosticCollection(),Xr=e.createDiagnosticCollection(),Qr=new e.Map(e.getEntries({string:we,number:Ie,bigint:Oe,boolean:je,symbol:Je,undefined:ke})),Yr=rl(e.arrayFrom(b.keys(),p_)),Zr=new e.Map,$r=new e.Map,en=new e.Map,tn=new e.Map,rn=new e.Map,nn=new e.Map,an=e.createSymbolTable();return an.set(te.escapedName,te),function(){for(var r=0,n=t.getSourceFiles();r<n.length;r++){var i=n[r];e.bindSourceFile(i,J)}var a;_t=new e.Map;for(var o=0,s=t.getSourceFiles();o<s.length;o++){if(!(i=s[o]).redirectInfo){if(!e.isExternalOrCommonJsModule(i)){var c=i.locals.get("globalThis");if(c)for(var u=0,l=c.declarations;u<l.length;u++){var _=l[u];Gr.add(e.createDiagnosticForNode(_,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}xn(ee,i.locals)}if(i.jsGlobalAugmentations&&xn(ee,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(pt=e.concatenate(pt,i.patternAmbientModules)),i.moduleAugmentations.length&&(a||(a=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports)i.symbol.globalExports.forEach((function(e,t){ee.has(t)||ee.set(t,e)}))}}if(a)for(var d=0,p=a;d<p.length;d++)for(var f=p[d],g=0,m=f;g<m.length;g++){var y=m[g];e.isGlobalScopeAugmentation(y.parent)&&Dn(y)}(function(t,r,n){r.forEach((function(r,i){var a=t.get(i);a?e.forEach(a.declarations,function(t,r){return function(n){return Gr.add(e.createDiagnosticForNode(n,r,t))}}(e.unescapeLeadingUnderscores(i),n)):t.set(i,r)}))})(ee,an,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),Sn(te).type=Ne,Sn(ie).type=Cu("IArguments",0,!0),Sn(ve).type=Se,Sn(re).type=Bi(16,re),ht=Cu("Array",1,!0),gt=Cu("Object",0,!0),mt=Cu("Function",0,!0),yt=W&&Cu("CallableFunction",0,!0)||mt,vt=W&&Cu("NewableFunction",0,!0)||mt,xt=Cu("String",0,!0),Dt=Cu("Number",0,!0),St=Cu("Boolean",0,!0),Tt=Cu("RegExp",0,!0),Et=Ou(be),(kt=Ou(xe))===et&&(kt=Vi(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0));if(bt=Pu("ReadonlyArray",1)||ht,Nt=bt?wu(bt,[be]):Et,Ct=Pu("ThisType",1),a)for(var v=0,h=a;v<h.length;v++){f=h[v];for(var b=0,x=f;b<x.length;b++){y=x[b];e.isGlobalScopeAugmentation(y.parent)||Dn(y)}}_t.forEach((function(t){var r=t.firstFile,n=t.secondFile,i=t.conflictingSymbols;if(i.size<8)i.forEach((function(t,r){for(var n=t.isBlockScoped,i=t.firstFileLocations,a=t.secondFileLocations,o=n?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,s=0,c=i;s<c.length;s++){bn(c[s],o,r,a)}for(var u=0,l=a;u<l.length;u++){bn(l[u],o,r,i)}}));else{var a=e.arrayFrom(i.keys()).join(", ");Gr.add(e.addRelatedInfo(e.createDiagnosticForNode(r,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(n,e.Diagnostics.Conflicts_are_in_this_file))),Gr.add(e.addRelatedInfo(e.createDiagnosticForNode(n,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)))}})),_t=void 0}(),oe;function on(t){if(t){var r=e.getSourceFileOfNode(t);if(r)if(e.isJsxOpeningFragment(t)){if(r.localJsxFragmentNamespace)return r.localJsxFragmentNamespace;var n=r.pragmas.get("jsxfrag");if(n){var i=e.isArray(n)?n[0]:n;if(r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,z),e.visitNode(r.localJsxFragmentFactory,s),r.localJsxFragmentFactory)return r.localJsxFragmentNamespace=e.getFirstIdentifier(r.localJsxFragmentFactory).escapedText}var a=DS(t);if(a)return r.localJsxFragmentFactory=a,r.localJsxFragmentNamespace=e.getFirstIdentifier(a).escapedText}else{if(r.localJsxNamespace)return r.localJsxNamespace;var o=r.pragmas.get("jsx");if(o){i=e.isArray(o)?o[0]:o;if(r.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,z),e.visitNode(r.localJsxFactory,s),r.localJsxFactory)return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}}return tr||(tr="React",J.jsxFactory?(rr=e.parseIsolatedEntityName(J.jsxFactory,z),e.visitNode(rr,s),rr&&(tr=e.getFirstIdentifier(rr).escapedText)):J.reactNamespace&&(tr=e.escapeLeadingUnderscores(J.reactNamespace))),rr||(rr=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(tr)),"createElement")),tr;function s(t){return e.setTextRangePosEnd(t,-1,-1),e.visitEachChild(t,s,e.nullTransformationContext)}}function sn(e,t,r,n,i,a,o){var s=cn(t,r,n,i,a,o);return s.skippedOn=e,s}function cn(t,r,n,i,a,o){var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);return Gr.add(s),s}function un(t,r){t?Gr.add(r):Xr.add(__assign(__assign({},r),{category:e.DiagnosticCategory.Suggestion}))}function ln(t,r,n,i,a,o,s){if(r.pos<0||r.end<0){if(!t)return;var c=e.getSourceFileOfNode(r);un(t,"message"in n?e.createFileDiagnostic(c,0,0,n,i,a,o,s):e.createDiagnosticForFileFromMessageChain(c,n))}else un(t,"message"in n?e.createDiagnosticForNode(r,n,i,a,o,s):e.createDiagnosticForNodeFromMessageChain(r,n))}function _n(t,r,n,i,a,o,s){var c=cn(t,n,i,a,o,s);if(r){var u=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(c,u)}return c}function dn(t,r){var n=Array.isArray(t)?e.forEach(t,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(t);return n&&e.addRelatedInfo(r,e.createDiagnosticForNode(n,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),Xr.add(r),r}function pn(t,r,n){return dn(r,e.createDiagnosticForNode(t,e.Diagnostics._0_is_deprecated,n))}function fn(e,t,r){m++;var n=new d(33554432|e,t);return n.checkFlags=r||0,n}function gn(e){var t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function mn(e,t){t.mergeId||(t.mergeId=u,u++),Ir[t.mergeId]=e}function yn(t){var r=fn(t.flags,t.escapedName);return r.declarations=t.declarations?t.declarations.slice():[],r.parent=t.parent,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),t.members&&(r.members=new e.Map(t.members)),t.exports&&(r.exports=new e.Map(t.exports)),mn(r,t),r}function vn(t,r,n){if(void 0===n&&(n=!1),!(t.flags&gn(r.flags))||67108864&(r.flags|t.flags)){if(r===t)return t;if(!(33554432&t.flags)){var i=ei(t);if(i===ve)return r;t=yn(i)}512&r.flags&&512&t.flags&&t.constEnumOnlyModule&&!r.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=r.flags,r.valueDeclaration&&e.setValueDeclaration(t,r.valueDeclaration),e.addRange(t.declarations,r.declarations),r.members&&(t.members||(t.members=e.createSymbolTable()),xn(t.members,r.members,n)),r.exports&&(t.exports||(t.exports=e.createSymbolTable()),xn(t.exports,r.exports,n)),n||mn(t,r)}else if(1024&t.flags)t!==re&&cn(e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,aa(t));else{var a=!!(384&t.flags||384&r.flags),o=!!(2&t.flags||2&r.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=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),u=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),l=aa(r);if(c&&u&&_t&&!a&&c!==u){var _=-1===e.comparePaths(c.path,u.path)?c:u,d=_===c?u:c,p=e.getOrUpdate(_t,_.path+"|"+d.path,(function(){return{firstFile:_,secondFile:d,conflictingSymbols:new e.Map}})),f=e.getOrUpdate(p.conflictingSymbols,l,(function(){return{isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]}}));g(f.firstFileLocations,r),g(f.secondFileLocations,t)}else hn(r,s,l,t),hn(t,s,l,r)}return t;function g(t,r){for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];e.pushIfUnique(t,a)}}}function hn(t,r,n,i){e.forEach(t.declarations,(function(e){bn(e,r,n,i.declarations)}))}function bn(t,r,n,i){for(var a=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t,o=function(t,r,n,i,a,o){var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);return Gr.lookup(s)||(Gr.add(s),s)}(a,r,n),s=function(t){var r=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t;if(r===a)return"continue";o.relatedInformation=o.relatedInformation||[];var i=e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,n),s=e.createDiagnosticForNode(r,e.Diagnostics.and_here);if(e.length(o.relatedInformation)>=5||e.some(o.relatedInformation,(function(t){return 0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,u=i||e.emptyArray;c<u.length;c++){s(u[c])}}function xn(e,t,r){void 0===r&&(r=!1),t.forEach((function(t,n){var i=e.get(n);e.set(n,i?vn(i,t,r):t)}))}function Dn(t){var r,n,i=t.parent;if(i.symbol.declarations[0]===i)if(e.isGlobalScopeAugmentation(i))xn(ee,i.symbol.exports);else{var a=di(t,t,8388608&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!a)return;if(1920&(a=gi(a)).flags)if(e.some(pt,(function(e){return a===e.symbol}))){var o=vn(i.symbol,a,!0);ft||(ft=new e.Map),ft.set(t.text,o)}else{if((null===(r=a.exports)||void 0===r?void 0:r.get("__export"))&&(null===(n=i.symbol.exports)||void 0===n?void 0:n.size))for(var s=rs(a,"resolvedExports"),c=0,u=e.arrayFrom(i.symbol.exports.entries());c<u.length;c++){var l=u[c],_=l[0],d=l[1];s.has(_)&&!a.exports.has(_)&&vn(s.get(_),d)}vn(a,i.symbol)}else cn(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}else e.Debug.assert(i.symbol.declarations.length>1)}function Sn(e){if(33554432&e.flags)return e;var t=w(e);return Or[t]||(Or[t]=new A)}function Tn(e){var t=P(e);return Mr[t]||(Mr[t]=new F)}function Cn(t){return 297===t.kind&&!e.isExternalOrCommonJsModule(t)}function En(t,r,n){if(n){var i=Ti(t.get(r));if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(2097152&i.flags){var a=ti(i);if(a===ve||a.flags&n)return i}}}}function kn(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(U&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(J)||Ef(n)||8388608&r.flags)return!0;if(u(n,r))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(r.pos<=n.pos&&(!e.isPropertyDeclaration(r)||!e.isThisProperty(n.parent)||r.initializer||r.exclamationToken)){if(198===r.kind){var c=e.getAncestor(n,198);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<c.pos:kn(e.getAncestor(r,249),n)}return 249===r.kind?!function(t,r){switch(t.parent.parent.kind){case 232:case 237:case 239:if(Bn(r,t,o))return!0}var n=t.parent.parent;return e.isForInOrOfStatement(n)&&Bn(r,n.expression,o)}(r,n):e.isClassDeclaration(r)?!e.findAncestor(n,(function(t){return e.isComputedPropertyName(t)&&t.parent.parent===r})):e.isPropertyDeclaration(r)?!l(r,n,!1):!e.isParameterPropertyDeclaration(r,r.parent)||!(99===J.target&&J.useDefineForClassFields&&e.getContainingClass(r)===e.getContainingClass(n)&&u(n,r))}return!!(270===n.parent.kind||266===n.parent.kind&&n.parent.isExportEquals)||(!(266!==n.kind||!n.isExportEquals)||(!!(4194304&n.flags||Ef(n)||e.findAncestor(n,(function(t){return e.isInterfaceDeclaration(t)||e.isTypeAliasDeclaration(t)})))||!!u(n,r)&&(99!==J.target||!J.useDefineForClassFields||!e.getContainingClass(r)||!e.isPropertyDeclaration(r)&&!e.isParameterPropertyDeclaration(r,r.parent)||!l(r,n,!0))));function u(t,r){return!!e.findAncestor(t,(function(n){if(n===o)return"quit";if(e.isFunctionLike(n))return!0;if(n.parent&&163===n.parent.kind&&n.parent.initializer===n)if(e.hasSyntacticModifier(n.parent,32)){if(165===r.kind)return!0}else if(!(163===r.kind&&!e.hasSyntacticModifier(r,32))||e.getContainingClass(t)!==e.getContainingClass(r))return!0;return!1}))}function l(t,r,n){return!(r.end>t.end)&&void 0===e.findAncestor(r,(function(r){if(r===t)return"quit";switch(r.kind){case 209:return!0;case 163:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 230:switch(r.parent.kind){case 167:case 165:case 168:return!0;default:return!1}default:return!1}}))}}function Nn(t,r,n){var i=e.getEmitScriptTarget(J),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=Tn(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(t){switch(t.kind){case 209:case 208:case 251:case 166:return!1;case 165:case 167:case 168:case 288:return s(t.name);case 163:return e.hasStaticModifier(t)?i<99||!J.useDefineForClassFields:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function An(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),Fn(e,t,r,n,i,a,o,En,s)}function Fn(t,r,n,i,a,o,s,c,u){var l,_,d,p,f,g,m=t,y=!1,v=t,h=!1;e:for(;t;){if(t.locals&&!Cn(t)&&(l=c(t.locals,r,n))){var b=!0;if(e.isFunctionLike(t)&&_&&_!==t.body?(n&l.flags&788968&&311!==_.kind&&(b=!!(262144&l.flags)&&(_===t.type||160===_.kind||159===_.kind)),n&l.flags&3&&(Nn(l,t,_)?b=!1:1&l.flags&&(b=160===_.kind||_===t.type&&!!e.findAncestor(l.valueDeclaration,e.isParameter)))):184===t.kind&&(b=_===t.trueType),b)break e;l=void 0}switch(y=y||Pn(t,_),t.kind){case 297:if(!e.isExternalOrCommonJsModule(t))break;h=!0;case 256:var x=Ci(t).exports||T;if(297===t.kind||e.isModuleDeclaration(t)&&8388608&t.flags&&!e.isGlobalScopeAugmentation(t)){if(l=x.get("default")){var D=e.getLocalSymbolForExportDefault(l);if(D&&l.flags&n&&D.escapedName===r)break e;l=void 0}var S=x.get(r);if(S&&2097152===S.flags&&(e.getDeclarationOfKind(S,270)||e.getDeclarationOfKind(S,269)))break}if("default"!==r&&(l=c(x,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||l.declarations.some(e.isJSDocTypeAlias))break e;l=void 0}break;case 255:if(l=c(Ci(t).exports,r,8&n))break e;break;case 163:if(!e.hasSyntacticModifier(t,32)){var C=Ii(t.parent);C&&C.locals&&c(C.locals,r,111551&n)&&(p=t)}break;case 252:case 221:case 253:if(l=c(Ci(t).members||T,r,788968&n)){if(!On(l,t)){l=void 0;break}if(_&&e.hasSyntacticModifier(_,32))return void cn(v,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(221===t.kind&&32&n){var E=t.name;if(E&&r===E.escapedText){l=t.symbol;break e}}break;case 223:if(_===t.expression&&93===t.parent.token){var k=t.parent.parent;if(e.isClassLike(k)&&(l=c(Ci(k).members,r,788968&n)))return void(i&&cn(v,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 158:if(g=t.parent.parent,(e.isClassLike(g)||253===g.kind)&&(l=c(Ci(g).members,r,788968&n)))return void cn(v,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 209:if(J.target>=2)break;case 165:case 166:case 167:case 168:case 251:if(3&n&&"arguments"===r){l=ie;break e}break;case 208:if(3&n&&"arguments"===r){l=ie;break e}if(16&n){var N=t.name;if(N&&r===N.escapedText){l=t.symbol;break e}}break;case 161:t.parent&&160===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||252===t.parent.kind)&&(t=t.parent);break;case 331:case 324:case 325:(O=e.getJSDocRoot(t))&&(t=O.parent);break;case 160:_&&(_===t.initializer||_===t.name&&e.isBindingPattern(_))&&(f||(f=t));break;case 198:_&&(_===t.initializer||_===t.name&&e.isBindingPattern(_))&&e.isParameterDeclaration(t)&&!f&&(f=t);break;case 185:if(262144&n){var A=t.typeParameter.name;if(A&&r===A.escapedText){l=t.typeParameter.symbol;break e}}}wn(t)&&(d=t),_=t,t=t.parent}if(!o||!l||d&&l===d.symbol||(l.isReferenced|=n),!l){if(_&&(e.Debug.assert(297===_.kind),_.commonJsModuleIndicator&&"exports"===r&&n&_.symbol.flags))return _.symbol;s||(l=c(ee,r,n))}if(!l&&m&&e.isInJSFile(m)&&m.parent&&e.isRequireCall(m.parent,!1))return ae;if(l){if(i){if(p&&(99!==J.target||!J.useDefineForClassFields)){var F=p.name;return void cn(v,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(F),In(a))}if(v&&(2&n||(32&n||384&n)&&111551==(111551&n))){var P=Pi(l);(2&P.flags||32&P.flags||384&P.flags)&&function(t,r){if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),67108881&t.flags&&32&t.flags)return;var n=e.find(t.declarations,(function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||255===t.kind}));if(void 0===n)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&n.flags||kn(n,r))){var i=void 0,a=e.declarationNameToString(e.getNameOfDeclaration(n));2&t.flags?i=cn(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,a):32&t.flags?i=cn(r,e.Diagnostics.Class_0_used_before_its_declaration,a):256&t.flags?i=cn(r,e.Diagnostics.Enum_0_used_before_its_declaration,a):(e.Debug.assert(!!(128&t.flags)),e.shouldPreserveConstEnums(J)&&(i=cn(r,e.Diagnostics.Enum_0_used_before_its_declaration,a))),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_here,a))}}(P,v)}if(l&&h&&111551==(111551&n)&&!(4194304&m.flags)){var w=Ti(l);e.length(w.declarations)&&e.every(w.declarations,(function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports}))&&ln(!J.allowUmdGlobalAccess,v,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(l&&f&&!y&&111551==(111551&n)){var I=Ti(is(l)),O=e.getRootDeclaration(f);I===Ci(f)?cn(v,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(f.name)):I.valueDeclaration&&I.valueDeclaration.pos>f.pos&&O.parent.locals&&c(O.parent.locals,I.escapedName,n)===I&&cn(v,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(f.name),e.declarationNameToString(v))}l&&v&&111551&n&&2097152&l.flags&&function(t,r,n){if(!e.isValidTypeOnlyAliasUseSite(n)){var i=ii(t);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(r);e.addRelatedInfo(cn(n,o,c),e.createDiagnosticForNode(i,s,c))}}}(l,r,v)}return l}if(i&&!(v&&(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||PD(t)||Ef(t))return!1;var i=e.getThisContainer(t,!1),a=i;for(;a;){if(e.isClassLike(a.parent)){var o=Ci(a.parent);if(!o)break;if(_c(_o(o),r))return cn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,In(n),aa(o)),!0;if(a===i&&!e.hasSyntacticModifier(a,32))if(_c(jo(o).thisType,r))return cn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,In(n)),!0}a=a.parent}return!1}(v,r,a)||Mn(v)||function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=ei(An(t,r,788968&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(_c(jo(a),s))return cn(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(r),e.unescapeLeadingUnderscores(s)),!0}return cn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(v,r,n)||function(t,r){if(Rn(r)&&270===t.parent.kind)return cn(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),!0;return!1}(v,r)||function(t,r,n){if(111551&n){if(Rn(r))return cn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=ei(An(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a=e.unescapeLeadingUnderscores(r);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?!function(t,r){var n=e.findAncestor(t.parent,(function(t){return!e.isComputedPropertyName(t)&&!e.isPropertySignature(t)&&(e.isTypeLiteralNode(t)||"quit")}));if(n&&1===n.members.length){var i=jo(r);return!!(1048576&i.flags)&&Nh(i,384,!0)}return!1}(t,i)?cn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,a):cn(t,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"):cn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,a),!0}}return!1}(v,r,n)||function(t,r,n){if(111127&n){if(ei(An(t,r,1024,void 0,void 0,!1)))return cn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n){if(ei(An(t,r,1536,void 0,void 0,!1)))return cn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0}return!1}(v,r,n)||function(t,r,n){if(788584&n){var i=ei(An(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return cn(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(r)),!0}return!1}(v,r,n)))){var M=void 0;if(u&&wr<10)if((M=Fy(m,r,n))&&M.valueDeclaration&&e.isAmbientModule(M.valueDeclaration)&&e.isGlobalScopeAugmentation(M.valueDeclaration)&&(M=void 0),M){var L=aa(M),R=cn(v,u,In(a),L);M.valueDeclaration&&e.addRelatedInfo(R,e.createDiagnosticForNode(M.valueDeclaration,e.Diagnostics._0_is_declared_here,L))}if(!M&&a){var B=function(t){for(var r=In(t),n=e.getScriptTargetFeatures(),i=e.getOwnKeys(n),a=0,o=i;a<o.length;a++){var s=o[a],c=e.getOwnKeys(n[s]);if(void 0!==c&&e.contains(c,r))return s}}(a);B?cn(v,i,In(a),B):cn(v,i,In(a))}wr++}}function Pn(t,r){return 209!==t.kind&&208!==t.kind?e.isTypeQueryNode(t)||(e.isFunctionLikeDeclaration(t)||163===t.kind&&!e.hasSyntacticModifier(t,32))&&(!r||r!==t.name):(!r||r!==t.name)&&(!(!t.asteriskToken&&!e.hasSyntacticModifier(t,256))||!e.getImmediatelyInvokedFunctionExpression(t))}function wn(e){switch(e.kind){case 251:case 252:case 253:case 255:case 254:case 256:return!0;default:return!1}}function In(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function On(t,r){for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(159===a.kind)if((e.isJSDocTemplateTag(a.parent)?e.getJSDocHost(a.parent):a.parent)===r)return!(e.isJSDocTemplateTag(a.parent)&&e.find(a.parent.parent.tags,e.isJSDocTypeAlias))}return!1}function Mn(t){var r=Ln(t);return!(!r||!ui(r,64,!0))&&(cn(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),!0)}function Ln(t){switch(t.kind){case 78:case 201:return t.parent?Ln(t.parent):void 0;case 223:if(e.isEntityNameExpression(t.expression))return t.expression;default:return}}function Rn(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function Bn(t,r,n){return!!r&&!!e.findAncestor(t,(function(t){return t===n||e.isFunctionLike(t)?"quit":t===r}))}function jn(e){switch(e.kind){case 260:return e;case 262:return e.parent;case 263:return e.parent.parent;case 265:return e.parent.parent.parent;default:return}}function Jn(t){return e.find(t.declarations,zn)}function zn(t){return 260===t.kind||259===t.kind||262===t.kind&&!!t.name||263===t.kind||269===t.kind||265===t.kind||270===t.kind||266===t.kind&&e.exportAssignmentIsAlias(t)||e.isBinaryExpression(t)&&2===e.getAssignmentDeclarationKind(t)&&e.exportAssignmentIsAlias(t)||e.isAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind&&Un(t.parent.right)||289===t.kind||288===t.kind&&Un(t.initializer)||e.isRequireVariableDeclaration(t,!0)}function Un(t){return e.isAliasableExpression(t)||e.isFunctionExpression(t)&&Av(t)}function Vn(t,r){var n=Xn(t);if(n){var i=e.getLeftmostAccessExpression(n.expression).arguments[0];return e.isIdentifier(n.name)?ei(_c(wc(i),n.name.escapedText)):void 0}if(e.isVariableDeclaration(t)||272===t.moduleReference.kind){var a=_i(t,e.getExternalModuleRequireArgument(t)||e.getExternalModuleImportEqualsDeclarationExpression(t)),o=gi(a);return ri(t,a,o,!1),o}var s=si(t.moduleReference,r);return function(t,r){if(ri(t,void 0,r,!1)&&!t.isTypeOnly){var n=ii(Ci(t)),i=e.typeOnlyDeclarationIsExport(n),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(n.name.escapedText);e.addRelatedInfo(cn(t.moduleReference,a),e.createDiagnosticForNode(n,o,s))}}(t,s),s}function Kn(e,t,r,n){var i=e.exports.get("export="),a=i?_c(_o(i),t):e.exports.get(t),o=ei(a,n);return ri(r,a,o,!1),o}function qn(t){return e.isExportAssignment(t)&&!t.isExportEquals||e.hasSyntacticModifier(t,512)||e.isExportSpecifier(t)}function Wn(t,r,n){if(!V)return!1;if(!t||t.isDeclarationFile){var i=Kn(r,"default",void 0,!0);return(!i||!e.some(i.declarations,qn))&&!Kn(r,e.escapeLeadingUnderscores("__esModule"),void 0,n)}return e.isSourceFileJS(t)?!t.externalModuleIndicator&&!Kn(r,e.escapeLeadingUnderscores("__esModule"),void 0,n):yi(r)}function Hn(t,r){var n=_i(t,t.parent.moduleSpecifier);if(n){var i=void 0;i=e.isShorthandAmbientModuleSymbol(n)?n:Kn(n,"default",t,r);var a=Wn(e.find(n.declarations,e.isSourceFile),n,r);if(i||a){if(a){var o=gi(n,r)||ei(n,r);return ri(t,n,o,!1),o}}else if(yi(n)){var s=U>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",c=n.exports.get("export=").valueDeclaration,u=cn(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,aa(n),s);e.addRelatedInfo(u,e.createDiagnosticForNode(c,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,s))}else!function(t,r){var n,i;if(null===(n=t.exports)||void 0===n?void 0:n.has(r.symbol.escapedName))cn(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,aa(t),aa(r.symbol));else{var a=cn(r.name,e.Diagnostics.Module_0_has_no_default_export,aa(t)),o=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(o){var s=e.find(o.declarations,(function(t){var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(n=null===(r=_i(t,t.moduleSpecifier))||void 0===r?void 0:r.exports)||void 0===n?void 0:n.has("default")))}));s&&e.addRelatedInfo(a,e.createDiagnosticForNode(s,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(n,t);return ri(t,i,void 0,!1),i}}function Gn(t,r,n){var i;void 0===n&&(n=!1);var a=e.getExternalModuleRequireArgument(t)||t.moduleSpecifier,o=_i(t,a),s=!e.isPropertyAccessExpression(r)&&r.propertyName||r.name;if(e.isIdentifier(s)){var c=mi(o,a,n,"default"===s.escapedText&&!(!J.allowSyntheticDefaultImports&&!J.esModuleInterop));if(c&&s.escapedText){if(e.isShorthandAmbientModuleSymbol(o))return o;var u=void 0;u=o&&o.exports&&o.exports.get("export=")?_c(_o(c),s.escapedText,!0):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return ei(_c(v_(r),t))}}(c,s.escapedText),u=ei(u,n);var l=function(e,t,r,n){if(1536&e.flags){var i=bi(e).get(t.escapedText),a=ei(i,n);return ri(r,i,a,!1),a}}(c,s,r,n);if(void 0===l&&"default"===s.escapedText)Wn(e.find(o.declarations,e.isSourceFile),o,n)&&(l=gi(o,n)||ei(o,n));var _=l&&u&&l!==u?function(t,r){if(t===ve&&r===ve)return ve;if(790504&t.flags)return t;var n=fn(t.flags|r.flags,t.escapedName);return n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=new e.Map(r.members)),t.exports&&(n.exports=new e.Map(t.exports)),n}(u,l):l||u;if(!_){var d=ci(o,t),p=e.declarationNameToString(s),f=Py(s,c);if(void 0!==f){var g=aa(f),m=cn(s,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,d,p,g);f.valueDeclaration&&e.addRelatedInfo(m,e.createDiagnosticForNode(f.valueDeclaration,e.Diagnostics._0_is_declared_here,g))}else(null===(i=o.exports)||void 0===i?void 0:i.has("default"))?cn(s,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,d,p):function(t,r,n,i,a){var o,s=null===(o=i.valueDeclaration.locals)||void 0===o?void 0:o.get(r.escapedText),c=i.exports;if(s){var u=null==c?void 0:c.get("export=");if(u)Fi(u,s)?function(t,r,n,i){if(U>=e.ModuleKind.ES2015){cn(r,J.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,n)}else{if(e.isInJSFile(t))cn(r,J.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,n);else cn(r,J.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,n,n,i)}}(t,r,n,a):cn(r,e.Diagnostics.Module_0_has_no_exported_member_1,a,n);else{var l=c?e.find(bc(c),(function(e){return!!Fi(e,s)})):void 0,_=l?cn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,a,n,aa(l)):cn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,a,n);e.addRelatedInfo.apply(void 0,__spreadArray([_],e.map(s.declarations,(function(t,r){return e.createDiagnosticForNode(t,0===r?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,n)}))))}}else cn(r,e.Diagnostics.Module_0_has_no_exported_member_1,a,n)}(t,s,p,o,d)}return _}}}function Xn(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer))return t.initializer}function Qn(e,t,r){var n=e.parent.parent.moduleSpecifier?Gn(e.parent.parent,e,r):ui(e.propertyName||e.name,t,!1,r);return ri(e,void 0,n,!1),n}function Yn(t,r){if(e.isClassExpression(t))return Jh(t).symbol;if(e.isEntityName(t)||e.isEntityNameExpression(t)){var n=ui(t,901119,!0,r);return n||(Jh(t),Tn(t).resolvedSymbol)}}function Zn(t,r){switch(void 0===r&&(r=!1),t.kind){case 260:case 249:return Vn(t,r);case 262:return Hn(t,r);case 263:return function(e,t){var r=e.parent.parent.moduleSpecifier,n=_i(e,r),i=mi(n,r,t,!1);return ri(e,n,i,!1),i}(t,r);case 269:return function(e,t){var r=e.parent.moduleSpecifier,n=r&&_i(e,r),i=r&&mi(n,r,t,!1);return ri(e,n,i,!1),i}(t,r);case 265:case 198:return function(t,r){var n=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent,i=Xn(n),a=Gn(n,i||t,r),o=t.propertyName||t.name;return i&&a&&e.isIdentifier(o)?ei(_c(_o(a),o.escapedText),r):(ri(t,void 0,a,!1),a)}(t,r);case 270:return Qn(t,901119,r);case 266:case 216:return function(t,r){var n=Yn(e.isExportAssignment(t)?t.expression:t.right,r);return ri(t,void 0,n,!1),n}(t,r);case 259:return function(e,t){var r=gi(e.parent.symbol,t);return ri(e,void 0,r,!1),r}(t,r);case 289:return ui(t.name,901119,!0,r);case 288:return function(e,t){return Yn(e.initializer,t)}(t,r);case 202:case 201:return function(t,r){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind)return Yn(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function $n(e,t){return void 0===t&&(t=901119),!!e&&(2097152==(e.flags&(2097152|t))||!!(2097152&e.flags&&67108864&e.flags))}function ei(e,t){return!t&&$n(e)?ti(e):e}function ti(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=Sn(t);if(r.target)r.target===he&&(r.target=ve);else{r.target=he;var n=Jn(t);if(!n)return e.Debug.fail();var i=Zn(n);r.target===he?r.target=i||ve:cn(n,e.Diagnostics.Circular_definition_of_import_alias_0,aa(t))}return r.target}function ri(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=Ci(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return Sn(a).typeOnlyDeclaration=t,!0;var o=Sn(a);return ni(o,r,i)||ni(o,n,i)}function ni(t,r,n){var i,a,o;if(r&&(void 0===t.typeOnlyDeclaration||n&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=r.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:r,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:Sn(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function ii(e){if(2097152&e.flags)return Sn(e).typeOnlyDeclaration||void 0}function ai(e){var t=Ci(e),r=ti(t);r&&((r===ve||111551&r.flags&&!eS(r)&&!ii(t))&&oi(t))}function oi(t){var r=Sn(t);if(!r.referenced){r.referenced=!0;var n=Jn(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=ei(t);(i===ve||111551&i.flags)&&Jh(n.moduleReference)}}}function si(t,r){return 78===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),78===t.kind||157===t.parent.kind?ui(t,1920,!1,r):(e.Debug.assert(260===t.parent.kind),ui(t,901119,!1,r))}function ci(e,t){return e.parent?ci(e.parent,t)+"."+aa(e):aa(e,t,void 0,20)}function ui(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(78===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:Tf(e.getFirstIdentifier(t)),u=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,r){if(mu(t.parent)){var n=function(t){if(e.findAncestor(t,(function(t){return e.isJSDocNode(t)||4194304&t.flags?e.isJSDocTypeAlias(t):"quit"})))return;var r=e.getJSDocHost(t);if(r&&e.isExpressionStatement(r)&&e.isBinaryExpression(r.expression)&&3===e.getAssignmentDeclarationKind(r.expression)){if(i=Ci(r.expression.left))return li(i)}if(r&&(e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)){if(i=Ci(r.parent.parent.left))return li(i)}var n=e.getEffectiveJSDocHost(t);if(n&&e.isFunctionLike(n)){var i;return(i=Ci(n))&&i.valueDeclaration}}(t.parent);if(n)return An(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=Ti(An(a||t,t.escapedText,r,n||u?void 0:c,t,!0))))return Ti(u)}else{if(157!==t.kind&&201!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var l=157===t.kind?t.left:t.expression,_=157===t.kind?t.right:t.name,d=ui(l,s,n,!1,a);if(!d||e.nodeIsMissing(_))return;if(d===ve)return d;if(e.isInJSFile(t)&&d.valueDeclaration&&e.isVariableDeclaration(d.valueDeclaration)&&d.valueDeclaration.initializer&&Rv(d.valueDeclaration.initializer)){var p=d.valueDeclaration.initializer.arguments[0],f=_i(p,p);if(f){var g=gi(f);g&&(d=g)}}if(!(o=Ti(En(bi(d),_.escapedText,r)))){if(!n){var m=ci(d),y=e.declarationNameToString(_),v=Py(_,d);v?cn(_,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,m,y,aa(v)):cn(_,e.Diagnostics.Namespace_0_has_no_exported_member_1,m,y)}return}}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||266===t.parent.kind)&&ri(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:ti(o)}}function li(t){var r=t.parent.valueDeclaration;if(r)return(e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):void 0)||r}function _i(t,r,n){var i=e.getEmitModuleResolutionKind(J)===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(t,r,n?void 0:i)}function di(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?pi(t,r.text,n,r,i):void 0}function pi(r,n,i,a,o){(void 0===o&&(o=!1),e.startsWith(n,"@types/"))&&cn(a,m=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var s=Dc(n,!0);if(s)return s;var c=e.getSourceFileOfNode(r),u=e.getResolvedModule(c,n),l=u&&e.getResolutionDiagnostic(J,u),_=u&&!l&&t.getSourceFile(u.resolvedFileName);if(_)return _.symbol?(u.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(u.extension)&&fi(!1,a,u,n),Ti(_.symbol)):void(i&&cn(a,e.Diagnostics.File_0_is_not_a_module,_.fileName));if(pt){var d=e.findBestPatternMatch(pt,(function(e){return e.pattern}),n);if(d){var p=ft&&ft.get(n);return Ti(p?p:d.symbol)}}if(u&&!e.resolutionExtensionIsTSOrJson(u.extension)&&void 0===l||l===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?cn(a,m=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,u.resolvedFileName):fi(G&&!!i,a,u,n);else if(i){if(u){var f=t.getProjectReferenceRedirect(u.resolvedFileName);if(f)return void cn(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,f,u.resolvedFileName)}if(l)cn(a,l,n,u.resolvedFileName);else{var g=e.tryExtractTSExtension(n);if(g){var m=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,y=e.removeExtension(n,g);e.getEmitModuleKind(J)>=e.ModuleKind.ES2015&&(y+=".js"),cn(a,m,g,y)}else!J.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(J)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(J)?cn(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n):cn(a,i,n)}}}function fi(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,_().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;ln(t,r,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function gi(t,r){if(null==t?void 0:t.exports){var n=function(t,r){if(!t||t===ve||t===r||1===r.exports.size||2097152&t.flags)return t;var n=Sn(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:yn(t);i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable());return r.exports.forEach((function(e,t){"export="!==t&&i.exports.set(t,i.exports.has(t)?vn(i.exports.get(t),e):e)})),Sn(i).cjsExportMerged=i,n.cjsExportMerged=i}(Ti(ei(t.exports.get("export="),r)),Ti(t));return Ti(n)||t}}function mi(t,r,n,i){var a=gi(t,n);if(!n&&a){if(!(i||1539&a.flags||e.getDeclarationOfKind(a,297))){var o=U>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return cn(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,o),a}if(J.esModuleInterop){var s=r.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=_o(a),u=dc(c,0);if(u&&u.length||(u=dc(c,1)),u&&u.length){var l=Lv(c,a,t),_=fn(a.flags,a.escapedName);_.declarations=a.declarations?a.declarations.slice():[],_.parent=a.parent,_.target=a,_.originatingImport=s,a.valueDeclaration&&(_.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(_.constEnumOnlyModule=!0),a.members&&(_.members=new e.Map(a.members)),a.exports&&(_.exports=new e.Map(a.exports));var d=Rs(l);return _.type=Vi(_,d.members,e.emptyArray,e.emptyArray,d.stringIndexInfo,d.numberIndexInfo),_}}}}return a}function yi(e){return void 0!==e.exports.get("export=")}function vi(e){return bc(xi(e))}function hi(e,t){var r=xi(t);if(r)return r.get(e)}function bi(e){return 6256&e.flags?rs(e,"resolvedExports"):1536&e.flags?xi(e):e.exports||T}function xi(e){var t=Sn(e);return t.resolvedExports||(t.resolvedExports=Si(e))}function Di(t,r,n,i){r&&r.forEach((function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&ei(o)!==ei(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}}))}function Si(t){var r=[];return function t(n){if(!(n&&n.exports&&e.pushIfUnique(r,n)))return;var i=new e.Map(n.exports),a=n.exports.get("__export");if(a){for(var o=e.createSymbolTable(),s=new e.Map,c=0,u=a.declarations;c<u.length;c++){var l=u[c],_=_i(l,l.moduleSpecifier),d=t(_);Di(o,d,s,l)}s.forEach((function(t,r){var n=t.exportsWithDuplicate;if("export="!==r&&n&&n.length&&!i.has(r))for(var a=0,o=n;a<o.length;a++){var c=o[a];Gr.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(r).specifierText,e.unescapeLeadingUnderscores(r)))}})),Di(i,o)}return i}(t=gi(t))||T}function Ti(e){var t;return e&&e.mergeId&&(t=Ir[e.mergeId])?t:e}function Ci(e){return Ti(e.symbol&&is(e.symbol))}function Ei(e){return Ti(e.parent&&is(e.parent))}function ki(r,n,i){var a=Ei(r);if(a&&!(262144&r.flags)){var o=e.mapDefined(a.declarations,(function(e){return a&&Ni(e,a)})),s=n&&function(r,n){var i,a=e.getSourceFileOfNode(n),o=P(a),s=Sn(r);if(s.extendedContainersByFile&&(i=s.extendedContainersByFile.get(o)))return i;if(a&&a.imports){for(var c=0,u=a.imports;c<u.length;c++){var l=u[c];if(!e.nodeIsSynthesized(l)){var _=_i(n,l,!0);_&&Ai(_,r)&&(i=e.append(i,_))}}if(e.length(i))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,i),i}if(s.extendedContainers)return s.extendedContainers;for(var d=0,p=t.getSourceFiles();d<p.length;d++){var f=p[d];if(e.isExternalModule(f)){var g=Ci(f);Ai(g,r)&&(i=e.append(i,g))}}return s.extendedContainers=i||e.emptyArray}(r,n),c=function(t,r){var n=!!e.length(t.declarations)&&e.first(t.declarations);if(111551&r&&n&&n.parent&&e.isVariableDeclaration(n.parent)&&(e.isObjectLiteralExpression(n)&&n===n.parent.initializer||e.isTypeLiteralNode(n)&&n===n.parent.type))return Ci(n.parent)}(a,i);if(n&&Wi(a,n,1920,!1))return e.append(e.concatenate(e.concatenate([a],o),s),c);var u=e.append(e.append(o,a),c);return e.concatenate(u,s)}var l=e.mapDefined(r.declarations,(function(t){return!e.isAmbientModule(t)&&t.parent&&ra(t.parent)?Ci(t.parent):e.isClassExpression(t)&&e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind&&e.isAccessExpression(t.parent.left)&&e.isEntityNameExpression(t.parent.left.expression)?e.isModuleExportsAccessExpression(t.parent.left)||e.isExportsIdentifier(t.parent.left.expression)?Ci(e.getSourceFileOfNode(t)):(Jh(t.parent.left.expression),Tn(t.parent.left.expression).resolvedSymbol):void 0}));if(e.length(l))return e.mapDefined(l,(function(e){return Ai(e,r)?e:void 0}))}function Ni(e,t){var r=ea(e),n=r&&r.exports&&r.exports.get("export=");return n&&Fi(n,t)?r:void 0}function Ai(t,r){if(t===Ei(r))return r;var n=t.exports&&t.exports.get("export=");if(n&&Fi(n,r))return t;var i=bi(t),a=i.get(r.escapedName);return a&&Fi(a,r)?a:e.forEachEntry(i,(function(e){if(Fi(e,r))return e}))}function Fi(e,t){if(Ti(ei(Ti(e)))===Ti(ei(Ti(t))))return e}function Pi(e){return Ti(e&&0!=(1048576&e.flags)?e.exportSymbol:e)}function wi(e){return!!(111551&e.flags||2097152&e.flags&&111551&ti(e).flags&&!ii(e))}function Ii(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];if(166===i.kind&&e.nodeIsPresent(i.body))return i}}function Oi(t){var r=new p(oe,t);return g++,r.id=g,e.tracing&&S.push(r),r}function Mi(e){return new p(oe,e)}function Li(e,t,r){void 0===r&&(r=0);var n=Oi(e);return n.intrinsicName=t,n.objectFlags=r,n}function Ri(e){var t=rl(e);return t.flags|=16,t.intrinsicName="boolean",t}function Bi(e,t){var r=Oi(524288);return r.objectFlags=e,r.symbol=t,r.members=void 0,r.properties=void 0,r.callSignatures=void 0,r.constructSignatures=void 0,r.stringIndexInfo=void 0,r.numberIndexInfo=void 0,r}function ji(e){var t=Oi(262144);return e&&(t.symbol=e),t}function Ji(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function zi(t){var r;return t.forEach((function(e,t){!Ji(t)&&wi(e)&&(r||(r=[])).push(e)})),r||e.emptyArray}function Ui(t,r,n,i,a,o){var s=t;return s.members=r,s.properties=e.emptyArray,s.callSignatures=n,s.constructSignatures=i,s.stringIndexInfo=a,s.numberIndexInfo=o,r!==T&&(s.properties=zi(r)),s}function Vi(e,t,r,n,i,a){return Ui(Bi(16,e),t,r,n,i,a)}function Ki(t,r){for(var n,i=function(t){if(t.locals&&!Cn(t)&&(n=r(t.locals)))return{value:n};switch(t.kind){case 297:if(!e.isExternalOrCommonJsModule(t))break;case 256:var i=Ci(t);if(n=r((null==i?void 0:i.exports)||T))return{value:n};break;case 252:case 221:case 253:var a;if((Ci(t).members||T).forEach((function(t,r){788968&t.flags&&(a||(a=e.createSymbolTable())).set(r,t)})),a&&(n=r(a)))return{value:n}}},a=t;a;a=a.parent){var o=i(a);if("object"==typeof o)return o.value}return r(ee)}function qi(e){return 111551===e?111551:1920}function Wi(t,r,n,i,a){if(void 0===a&&(a=new e.Map),t&&!function(e){if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++){switch(r[t].kind){case 163:case 165:case 167:case 168:continue;default:return!1}}return!0}return!1}(t)){var o=w(t),s=a.get(o);return s||a.set(o,s=[]),Ki(r,c)}function c(n,a){if(e.pushIfUnique(s,n)){var o=function(n,a){if(l(n.get(t.escapedName),void 0,a))return[t];return e.forEachEntry(n,(function(n){if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(e.isUMDExportSymbol(n)&&r&&e.isExternalModule(e.getSourceFileOfNode(r)))&&(!i||e.some(n.declarations,e.isExternalModuleImportEqualsDeclaration))&&(a||!e.getDeclarationOfKind(n,270))){var o=_(n,ti(n),a);if(o)return o}if(n.escapedName===t.escapedName&&n.exportSymbol&&l(Ti(n.exportSymbol),void 0,a))return[t]}))||(n===ee?_(re,re,a):void 0)}(n,a);return s.pop(),o}}function u(e,t){return!Hi(e,r,t)||!!Wi(e.parent,r,qi(t),i,a)}function l(r,i,a){return(t===(i||r)||Ti(t)===Ti(i||r))&&!e.some(r.declarations,ra)&&(a||u(Ti(r),n))}function _(e,t,r){if(l(e,t,r))return[e];var i=bi(t),a=i&&c(i,!0);return a&&u(e,qi(n))?[e].concat(a):void 0}}function Hi(t,r,n){var i=!1;return Ki(r,(function(r){var a=Ti(r.get(t.escapedName));return!!a&&(a===t||!!((a=2097152&a.flags&&!e.getDeclarationOfKind(a,270)?ti(a):a).flags&n)&&(i=!0,!0))})),i}function Gi(e,t){return 0===$i(e,t,788968,!1,!0).accessibility}function Xi(e,t){return 0===$i(e,t,111551,!1,!0).accessibility}function Qi(e,t,r){return 0===$i(e,t,r,!1,!1).accessibility}function Yi(t,r,n,i,a,o){if(e.length(t)){for(var s,c=!1,u=0,l=t;u<l.length;u++){var _=l[u],d=Wi(_,r,i,!1);if(d){s=_;var p=na(d[0],a);if(p)return p}else if(o&&e.some(_.declarations,ra)){if(a){c=!0;continue}return{accessibility:0}}var f=Yi(ki(_,r,i),r,n,n===_?qi(i):i,a,o);if(f)return f}return c?{accessibility:0}:s?{accessibility:1,errorSymbolName:aa(n,r,i),errorModuleName:s!==n?aa(s,r,1920):void 0}:void 0}}function Zi(e,t,r,n){return $i(e,t,r,n,!0)}function $i(t,r,n,i,a){if(t&&r){var o=Yi([t],r,t,n,i,a);if(o)return o;var s=e.forEach(t.declarations,ea);if(s)if(s!==ea(r))return{accessibility:2,errorSymbolName:aa(t,r,n),errorModuleName:aa(s),errorNode:e.isInJSFile(r)?r:void 0};return{accessibility:1,errorSymbolName:aa(t,r,n)}}return{accessibility:0}}function ea(t){var r=e.findAncestor(t,ta);return r&&Ci(r)}function ta(t){return e.isAmbientModule(t)||297===t.kind&&e.isExternalOrCommonJsModule(t)}function ra(t){return e.isModuleWithStringLiteralName(t)||297===t.kind&&e.isExternalOrCommonJsModule(t)}function na(t,r){var n;if(e.every(e.filter(t.declarations,(function(e){return 78!==e.kind})),(function(r){var n,a;if(!ha(r)){var o=jn(r);return o&&!e.hasSyntacticModifier(o,1)&&ha(o.parent)?i(r,o):e.isVariableDeclaration(r)&&e.isVariableStatement(r.parent.parent)&&!e.hasSyntacticModifier(r.parent.parent,1)&&ha(r.parent.parent.parent)?i(r,r.parent.parent):e.isLateVisibilityPaintedStatement(r)&&!e.hasSyntacticModifier(r,1)&&ha(r.parent)?i(r,r):!!(2097152&t.flags&&e.isBindingElement(r)&&e.isInJSFile(r)&&(null===(n=r.parent)||void 0===n?void 0:n.parent)&&e.isVariableDeclaration(r.parent.parent)&&(null===(a=r.parent.parent.parent)||void 0===a?void 0:a.parent)&&e.isVariableStatement(r.parent.parent.parent.parent)&&!e.hasSyntacticModifier(r.parent.parent.parent.parent,1)&&r.parent.parent.parent.parent.parent&&ha(r.parent.parent.parent.parent.parent))&&i(r,r.parent.parent.parent.parent)}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function i(t,i){return r&&(Tn(t).isVisible=!0,n=e.appendIfUnique(n,i)),!0}}function ia(t,r){var n;n=176===t.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)||158===t.parent.kind?1160127:157===t.kind||201===t.kind||260===t.parent.kind?1920:788968;var i=e.getFirstIdentifier(t),a=An(r,i.escapedText,n,void 0,void 0,!1);return a&&262144&a.flags&&788968&n?{accessibility:0}:a&&na(a,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function aa(t,r,n,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?$.symbolToExpression:$.symbolToEntityName;return a?c(a).getText():e.usingSingleLineStringWriter(c);function c(i){var a=s(t,n,r,o),c=297===(null==r?void 0:r.kind)?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),u=r&&e.getSourceFileOfNode(r);return c.writeNode(4,a,u,i),i}}function oa(t,r,n,i,a){return void 0===n&&(n=0),a?o(a).getText():e.usingSingleLineStringWriter(o);function o(a){var o;o=262144&n?1===i?175:174:1===i?170:169;var s=$.signatureToSignatureDeclaration(t,o,r,70222336|_a(n)),c=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),u=r&&e.getSourceFileOfNode(r);return c.writeNode(4,s,u,e.getTrailingSemicolonDeferringWriter(a)),a}}function sa(t,r,n,i){void 0===n&&(n=1064960),void 0===i&&(i=e.createTextWriter(""));var a=J.noErrorTruncation||1&n,o=$.typeToTypeNode(t,r,70221824|_a(n)|(a?1:0),i);if(void 0===o)return e.Debug.fail("should always get typenode");var s=e.createPrinter({removeComments:!0}),c=r&&e.getSourceFileOfNode(r);s.writeNode(4,o,c,i);var u=i.getText(),l=a?2*e.noTruncationMaximumTruncationLength:2*e.defaultMaximumTruncationLength;return l&&u&&u.length>=l?u.substr(0,l-"...".length)+"...":u}function ca(e,t){var r=la(e.symbol)?sa(e,e.symbol.valueDeclaration):sa(e),n=la(t.symbol)?sa(t,t.symbol.valueDeclaration):sa(t);return r===n&&(r=ua(e),n=ua(t)),[r,n]}function ua(e){return sa(e,void 0,64)}function la(t){return t&&t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!G_(t.valueDeclaration)}function _a(e){return void 0===e&&(e=0),814775659&e}function da(t){return!!(t.symbol&&32&t.symbol.flags&&(t===Fo(t.symbol)||1073741824&e.getObjectFlags(t)))}function pa(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(127):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&$.typeToTypeNode(t.type,r,70222336|_a(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function fa(e){return 8===e?"private":16===e?"protected":"public"}function ga(t){return t&&t.parent&&257===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function ma(t){return 297===t.kind||e.isAmbientModule(t)}function ya(t,r){var n=Sn(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,J.target)||Pm(i)?Pm(i)&&e.startsWith(i,"-")?"["+i+"]":i:'"'+e.escapeString(i,34)+'"'}if(8192&n.flags)return"["+va(n.symbol,r)+"]"}}function va(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],ma)!==e.findAncestor(r.enclosingDeclaration,ma)))return"default";if(t.declarations&&t.declarations.length){var n=e.firstDefined(t.declarations,(function(t){return e.getNameOfDeclaration(t)?t:void 0})),i=n&&e.getNameOfDeclaration(n);if(n&&i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=Sn(t).nameType;if(a&&384&a.flags){var o=ya(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&249===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 221:case 208:case 209:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),221===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=ya(t,r);return void 0!==s?s:e.symbolName(t)}function ha(t){if(t){var r=Tn(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 324:case 331:case 325:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 198:return ha(t.parent.parent);case 249:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 256:case 252:case 253:case 254:case 251:case 255:case 260:if(e.isExternalModuleAugmentation(t))return!0;var r=Ca(t);return 1&e.getCombinedModifierFlags(t)||260!==t.kind&&297!==r.kind&&8388608&r.flags?ha(r):Cn(r);case 163:case 162:case 167:case 168:case 165:case 164:if(e.hasEffectiveModifier(t,24))return!1;case 166:case 170:case 169:case 171:case 160:case 257:case 174:case 175:case 177:case 173:case 178:case 179:case 182:case 183:case 186:case 192:return ha(t.parent);case 262:case 263:case 265:return!1;case 159:case 297:case 259:return!0;case 266:default:return!1}}()),r.isVisible}return!1}function ba(t,r){var n,i,a;return t.parent&&266===t.parent.kind?n=An(t,t.escapedText,2998271,void 0,t,!1):270===t.parent.kind&&(n=Qn(t.parent,2998271)),n&&((a=new e.Set).add(w(n)),function t(n){e.forEach(n,(function(n){var o=jn(n)||n;if(r?Tn(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=An(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,w(c))&&t(c.declarations)}}))}(n.declarations)),i}function xa(e,t){var r=Da(e,t);if(r>=0){for(var n=Ar.length,i=r;i<n;i++)Fr[i]=!1;return!1}return Ar.push(e),Fr.push(!0),Pr.push(t),!0}function Da(e,t){for(var r=Ar.length-1;r>=0;r--){if(Sa(Ar[r],Pr[r]))return-1;if(Ar[r]===e&&Pr[r]===t)return r}return-1}function Sa(t,r){switch(r){case 0:return!!Sn(t).type;case 5:return!!Tn(t).resolvedEnumType;case 2:return!!Sn(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments;case 7:return!!t.baseTypesResolved}return e.Debug.assertNever(r)}function Ta(){return Ar.pop(),Pr.pop(),Fr.pop()}function Ca(t){return e.findAncestor(e.getRootDeclaration(t),(function(e){switch(e.kind){case 249:case 250:case 265:case 264:case 263:case 262:return!1;default:return!0}})).parent}function Ea(e,t){var r=_c(e,t);return r?_o(r):void 0}function ka(e){return e&&0!=(1&e.flags)}function Na(e){var t=Ci(e);return t&&Sn(t).type||Ra(e,!1)}function Aa(t,r,n){if(131072&(t=og(t,(function(e){return!(98304&e.flags)}))).flags)return et;if(1048576&t.flags)return cg(t,(function(e){return Aa(e,r,n)}));var i=rl(e.map(r,gl));if(Pl(t)||wl(i)){if(131072&i.flags)return t;var a=Qt||(Qt=Tu("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return a?cu(a,[t,i]):Se}for(var o=e.createSymbolTable(),s=0,c=zs(t);s<c.length;s++){var u=c[s];id(ml(u,8576),i)||24&e.getDeclarationModifierFlagsFromSymbol(u)||!o_(u)||o.set(u.escapedName,s_(u,!1))}var l=mc(t,0),_=mc(t,1),d=Vi(n,o,e.emptyArray,e.emptyArray,l,_);return d.objectFlags|=131072,d}function Fa(e,t){var r=Pa(e);return r?Fg(r,t):t}function Pa(t){var r=function(e){var t=e.parent.parent;switch(t.kind){case 198:case 288:return Pa(t);case 199:return Pa(e.parent);case 249:return t.initializer;case 216:return t.right}}(t);if(r&&r.flowNode){var n=function(e){var t=e.parent;if(198===e.kind&&196===t.kind)return wa(e.propertyName||e.name);if(288===e.kind||289===e.kind)return wa(e.name);return""+t.elements.indexOf(e)}(t);if(n){var i=e.setTextRange(e.parseNodeFactory.createStringLiteral(n),t),a=e.isLeftHandSideExpression(r)?r:e.parseNodeFactory.createParenthesizedExpression(r),o=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(a,i),t);return e.setParent(i,o),e.setParent(o,t),a!==r&&e.setParent(a,o),o.flowNode=r.flowNode,o}}}function wa(e){var t=gl(e);return 384&t.flags?""+t.value:void 0}function Ia(t){var r,n=t.parent,i=Na(n.parent);if(!i||ka(i))return i;if(K&&8388608&t.flags&&e.isParameterDeclaration(t)?i=Ep(i):!K||!n.parent.initializer||65536&Jf(Qf(n.parent.initializer))||(i=zf(i,524288)),196===n.kind)if(t.dotDotDotToken){if(2&(i=oc(i)).flags||!Lm(i))return cn(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),Se;for(var a=[],o=0,s=n.elements;o<s.length;o++){var c=s[o];c.dotDotDotToken||a.push(c.propertyName||c.name)}r=Aa(i,a,t.symbol)}else{var u=t.propertyName||t.name;r=Fa(t,Rg(Bl(i,d=gl(u),void 0,u,void 0,void 0,16),t.name))}else{var l=hx(65|(t.dotDotDotToken?0:128),i,ke,n),_=n.elements.indexOf(t);if(t.dotDotDotToken)r=ag(i,fp)?cg(i,(function(e){return qu(e,_)})):Ou(l);else if(rp(i)){var d=p_(_),p=Em(t)?8:0;r=Fa(t,Rg(Jl(i,d,void 0,t.name,16|p)||Se,t.name))}else r=l}return t.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(t))?!K||32768&xp(Uh(t))?r:zf(r,524288):Vh(t,rl([zf(r,524288),Uh(t)],2)):r}function Oa(t){var r=e.getJSDocType(t);if(r)return v_(r)}function Ma(t){var r=e.skipParentheses(t);return 199===r.kind&&0===r.elements.length}function La(e,t){return void 0===t&&(t=!0),K&&t?Cp(e):e}function Ra(t,r){if(e.isVariableDeclaration(t)&&238===t.parent.parent.kind){var n=hl(_y(ib(t.parent.parent.expression)));return 4456448&n.flags?bl(n):we}if(e.isVariableDeclaration(t)&&239===t.parent.parent.kind)return vx(t.parent.parent)||be;if(e.isBindingPattern(t.parent))return Ia(t);var i,a,o=r&&(e.isParameter(t)&&xc(t)||Tc(t)||!e.isBindingElement(t)&&!e.isVariableDeclaration(t)&&!!t.questionToken),s=eo(t);if(s)return La(s,o);if((G||e.isInJSFile(t))&&e.isVariableDeclaration(t)&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!(8388608&t.flags)){if(!(2&e.getCombinedNodeFlags(t)||t.initializer&&(i=t.initializer,a=e.skipParentheses(i),103!==a.kind&&(78!==a.kind||Cf(a)!==te))))return xe;if(t.initializer&&Ma(t.initializer))return kt}if(e.isParameter(t)){var c=t.parent;if(168===c.kind&&$o(c)){var u=e.getDeclarationOfKind(Ci(t.parent),167);if(u){var l=Nc(u),_=zS(c);return _&&t===_?(e.Debug.assert(!_.type),_o(l.thisParameter)):Mc(l)}}if(e.isInJSFile(t)){var d=e.getJSDocType(c);if(d&&e.isFunctionTypeNode(d)){var p=Nc(d),f=c.parameters.indexOf(t);return t.dotDotDotToken?Qv(p,f):Gv(p,f)}}if(m="this"===t.symbol.escapedName?Yg(c):Zg(t))return La(m,o)}if(e.hasOnlyExpressionInitializer(t)&&t.initializer){if(e.isInJSFile(t)&&!e.isParameter(t)){var g=Ka(t,Ci(t),e.getDeclaredExpandoInitializer(t));if(g)return g}return La(m=Vh(t,Uh(t)),o)}if(e.isPropertyDeclaration(t)&&!e.hasStaticModifier(t)&&(G||e.isInJSFile(t))){var m,y=Ii(t.parent);return(m=y?za(t.symbol,y):2&e.getEffectiveModifierFlags(t)?qd(t.symbol):void 0)&&La(m,o)}return e.isJsxAttribute(t)?Re:e.isBindingPattern(t.name)?Qa(t.name,!1,!0):void 0}function Ba(t){if(t.valueDeclaration&&e.isBinaryExpression(t.valueDeclaration)){var r=Sn(t);return void 0===r.isConstructorDeclaredProperty&&(r.isConstructorDeclaredProperty=!1,r.isConstructorDeclaredProperty=!!Ja(t)&&e.every(t.declarations,(function(r){return e.isBinaryExpression(r)&&om(r)&&(202!==r.left.kind||e.isStringOrNumericLiteralLike(r.left.argumentExpression))&&!qa(void 0,r,t,r)}))),r.isConstructorDeclaredProperty}return!1}function ja(t){var r=t.valueDeclaration;return r&&e.isPropertyDeclaration(r)&&!e.getEffectiveTypeAnnotationNode(r)&&!r.initializer&&(G||e.isInJSFile(r))}function Ja(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=e.getThisContainer(i,!1);if(a&&(166===a.kind||Av(a)))return a}}function za(t,r){var n=e.startsWith(t.escapedName,"__#")?e.factory.createPrivateIdentifier(t.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(t.escapedName),i=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(i.expression,i),e.setParent(i,r),i.flowNode=r.returnFlowNode;var a=Ua(i,t);return!G||a!==xe&&a!==kt||cn(t.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,aa(t),sa(a)),ag(a,ly)?void 0:ox(a)}function Ua(t,r){var n=r&&(!ja(r)||2&e.getEffectiveModifierFlags(r.valueDeclaration))&&qd(r)||ke;return Fg(t,xe,n)}function Va(t,r){var n,i=e.getAssignedExpandoInitializer(t.valueDeclaration);if(i){var a=e.getJSDocTypeTag(i);return a&&a.typeExpression?v_(a.typeExpression):Ka(t.valueDeclaration,t,i)||lp(Jh(i))}var o=!1,s=!1;if(Ba(t)&&(n=za(t,Ja(t))),!n){for(var c=void 0,u=void 0,l=0,_=t.declarations;l<_.length;l++){var d=_[l],p=e.isBinaryExpression(d)||e.isCallExpression(d)?d:e.isAccessExpression(d)?e.isBinaryExpression(d.parent)?d.parent:d:void 0;if(p){var f=e.isAccessExpression(p)?e.getAssignmentDeclarationPropertyAccessKind(p):e.getAssignmentDeclarationKind(p);(4===f||e.isBinaryExpression(p)&&om(p,f))&&(Ha(p)?o=!0:s=!0),e.isCallExpression(p)||(c=qa(c,p,t,d)),c||(u||(u=[])).push(e.isBinaryExpression(p)||e.isCallExpression(p)?Wa(t,r,p,f):Ue)}}if(!(n=c)){if(!e.length(u))return Se;var g=o?function(t,r){return e.Debug.assert(t.length===r.length),t.filter((function(t,n){var i=r[n],a=e.isBinaryExpression(i)?i:e.isBinaryExpression(i.parent)?i.parent:void 0;return a&&Ha(a)}))}(u,t.declarations):void 0;if(s){var m=qd(t);m&&((g||(g=[])).push(m),o=!0)}n=rl(e.some(g,(function(e){return!!(-98305&e.flags)}))?g:u,2)}}var y=Jp(La(n,s&&!o));return og(y,(function(e){return!!(-98305&e.flags)}))===Ue?(Vp(t.valueDeclaration,be),be):y}function Ka(t,r,n){var i,a;if(e.isInJSFile(t)&&n&&e.isObjectLiteralExpression(n)&&!n.properties.length){for(var o=e.createSymbolTable();e.isBinaryExpression(t)||e.isPropertyAccessExpression(t);){var s=Ci(t);(null===(i=null==s?void 0:s.exports)||void 0===i?void 0:i.size)&&xn(o,s.exports),t=e.isBinaryExpression(t)?t.parent:t.parent.parent}var c=Ci(t);(null===(a=null==c?void 0:c.exports)||void 0===a?void 0:a.size)&&xn(o,c.exports);var u=Vi(r,o,e.emptyArray,e.emptyArray,void 0,void 0);return u.objectFlags|=16384,u}}function qa(t,r,n,i){var a=e.getEffectiveTypeAnnotationNode(r.parent);if(a){var o=Jp(v_(a));if(!t)return o;t===Se||o===Se||$_(t,o)||cx(void 0,t,i,o)}if(n.parent){var s=e.getEffectiveTypeAnnotationNode(n.parent.valueDeclaration);if(s)return Ea(v_(s),n.escapedName)}return t}function Wa(t,r,n,i){if(e.isCallExpression(n)){if(r)return _o(r);var a=Jh(n.arguments[2]),o=Ea(a,"value");if(o)return o;var s=Ea(a,"get");if(s){var c=Gy(s);if(c)return Mc(c)}var u=Ea(a,"set");if(u){var l=Gy(u);if(l)return rh(l)}return be}if(function(t,r){return e.isPropertyAccessExpression(t)&&107===t.expression.kind&&e.forEachChildRecursively(r,(function(e){return Nf(t,e)}))}(n.left,n.right))return be;var _=r?_o(r):lp(Jh(n.right));if(524288&_.flags&&2===i&&"export="===t.escapedName){var d=Rs(_),p=e.createSymbolTable();e.copyEntries(d.members,p);var f=p.size;r&&!r.exports&&(r.exports=e.createSymbolTable()),(r||t).exports.forEach((function(t,r){var n,i=p.get(r);if(i&&i!==t)if(111551&t.flags&&111551&i.flags){if(e.getSourceFileOfNode(t.valueDeclaration)!==e.getSourceFileOfNode(i.valueDeclaration)){var a=e.unescapeLeadingUnderscores(t.escapedName),o=(null===(n=e.tryCast(i.valueDeclaration,e.isNamedDeclaration))||void 0===n?void 0:n.name)||i.valueDeclaration;e.addRelatedInfo(cn(t.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(o,e.Diagnostics._0_was_also_declared_here,a)),e.addRelatedInfo(cn(o,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(t.valueDeclaration,e.Diagnostics._0_was_also_declared_here,a))}var s=fn(t.flags|i.flags,r);s.type=rl([_o(t),_o(i)]),s.valueDeclaration=i.valueDeclaration,s.declarations=e.concatenate(i.declarations,t.declarations),p.set(r,s)}else p.set(r,vn(t,i));else p.set(r,t)}));var g=Vi(f!==p.size?void 0:d.symbol,p,d.callSignatures,d.constructSignatures,d.stringIndexInfo,d.numberIndexInfo);return g.objectFlags|=16384&e.getObjectFlags(_),g.symbol&&32&g.symbol.flags&&_===Fo(g.symbol)&&(g.objectFlags|=1073741824),g}return np(_)?(Vp(n,Et),Et):_}function Ha(t){var r=e.getThisContainer(t,!1);return 166===r.kind||251===r.kind||208===r.kind&&!e.isPrototypePropertyAssignment(r.parent)}function Ga(t,r,n){return t.initializer?La(Vh(t,Uh(t,e.isBindingPattern(t.name)?Qa(t.name,!0,!1):Ee))):e.isBindingPattern(t.name)?Qa(t.name,r,n):(n&&!$a(t)&&Vp(t,be),r?Te:be)}function Xa(t,r,n){var i,a=t.elements,o=e.lastOrUndefined(a),s=o&&198===o.kind&&o.dotDotDotToken?o:void 0;if(0===a.length||1===a.length&&s)return z>=2?(i=be,wu(Fu(!0),[i])):Et;var c=e.map(a,(function(t){return e.isOmittedExpression(t)?be:Ga(t,r,n)})),u=e.findLastIndex(a,(function(t){return!(t===s||e.isOmittedExpression(t)||Em(t))}),a.length-1)+1,l=zu(c,e.map(a,(function(e,t){return e===s?4:t>=u?2:1})));return r&&((l=nu(l)).pattern=t,l.objectFlags|=1048576),l}function Qa(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),196===t.kind?function(t,r,n){var i,a=e.createSymbolTable(),o=1048704;e.forEach(t.elements,(function(e){var t=e.propertyName||e.name;if(e.dotDotDotToken)i=Gc(be,!1);else{var s=gl(t);if(Xo(s)){var c=es(s),u=fn(4|(e.initializer?16777216:0),c);u.type=Ga(e,r,n),u.bindingElement=e,a.set(u.escapedName,u)}else o|=512}}));var s=Vi(void 0,a,e.emptyArray,e.emptyArray,i,void 0);return s.objectFlags|=o,r&&(s.pattern=t,s.objectFlags|=1048576),s}(t,r,n):Xa(t,r,n)}function Ya(e,t){return Za(Ra(e,!0),e,t)}function Za(t,r,n){return t?(n&&Kp(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==Ci(r)&&(t=Je),Jp(t)):(t=e.isParameter(r)&&r.dotDotDotToken?Et:be,n&&($a(r)||Vp(r,t)),t)}function $a(t){var r=e.getRootDeclaration(t);return xb(160===r.kind?r.parent:r)}function eo(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return v_(r)}function to(t){var r=Sn(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=jo(Ei(t))).typeParameters?ru(r,e.map(r.typeParameters,(function(e){return be}))):r;var r;if(t===ae)return be;if(134217728&t.flags){var n=Ci(e.getSourceFileOfNode(t.valueDeclaration)),i=fn(n.flags,"exports");i.declarations=n.declarations?n.declarations.slice():[],i.parent=t,i.target=n,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.members&&(i.members=new e.Map(n.members)),n.exports&&(i.exports=new e.Map(n.exports));var a=e.createSymbolTable();return a.set("exports",i),Vi(t,a,e.emptyArray,e.emptyArray,void 0,void 0)}var o,s=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=s;if(!c.type)return be;var u=RD(c.type);return ka(u)||u===Ee?u:Se}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?Jp(lp(ib(s.statements[0].expression))):et;if(!xa(t,0))return 512&t.flags&&!(67108864&t.flags)?co(t):lo(t);if(266===s.kind)o=Za(Jh(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=Va(t);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&t.flags)return co(t);o=e.isBinaryExpression(s.parent)?Va(t):eo(s)||be}else if(e.isPropertyAssignment(s))o=eo(s)||Hh(s);else if(e.isJsxAttribute(s))o=eo(s)||jm(s);else if(e.isShorthandPropertyAssignment(s))o=eo(s)||Wh(s.name,0);else if(e.isObjectLiteralMethod(s))o=eo(s)||Gh(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=Ya(s,!0);else if(e.isEnumDeclaration(s))o=co(t);else if(e.isEnumMember(s))o=uo(t);else{if(!e.isAccessor(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(t));o=oo(t)}if(!Ta())return 512&t.flags&&!(67108864&t.flags)?co(t):lo(t);return o}(t);r.type||(r.type=n)}return r.type}function ro(t){if(t)return 167===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function no(e){var t=ro(e);return t&&v_(t)}function io(e){return Ic(Nc(e))}function ao(t){var r=Sn(t);return r.type||(r.type=function(t){if(!xa(t,0))return Se;var r=oo(t);if(!Ta()){if(r=be,G)cn(e.getDeclarationOfKind(t,167),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,aa(t))}return r}(t))}function oo(t){var r=e.getDeclarationOfKind(t,167),n=e.getDeclarationOfKind(t,168);if(r&&e.isInJSFile(r)){var i=Oa(r);if(i)return i}var a=no(r);if(a)return a;var o=no(n);return o||(r&&r.body?lh(r):(n?xb(n)||ln(G,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,aa(t)):(e.Debug.assert(!!r,"there must exist a getter as we are current checking either setter or getter in this function"),xb(r)||ln(G,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,aa(t))),be))}function so(t){var r=Co(Fo(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(function(e){return!!(8650752&e.flags)})):void 0}function co(t){var r=Sn(t),n=r;if(!r.type){var i=t.valueDeclaration&&Pv(t.valueDeclaration,!1);if(i){var a=Fv(t,i);a&&(t=r=a)}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return be;if(r&&(216===r.kind||e.isAccessExpression(r)&&216===r.parent.kind))return Va(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=gi(t);if(n!==t){if(!xa(t,0))return Se;var i=Ti(t.exports.get("export=")),a=Va(i,i===n?void 0:n);return Ta()?a:lo(t)}}var o=Bi(16,t);if(32&t.flags){var s=so(t);return s?ul([o,s]):o}return K&&16777216&t.flags?Cp(o):o}(t)}return r.type}function uo(e){var t=Sn(e);return t.type||(t.type=Ro(e))}function lo(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(cn(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,aa(t)),Se):(G&&(160!==r.kind||r.initializer)&&cn(t.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,aa(t)),be)}function _o(t){var r=e.getCheckFlags(t);return 65536&r?function(t){var r=Sn(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?rl(r.deferralConstituents):ul(r.deferralConstituents)),r.type}(t):1&r?function(e){var t=Sn(e);if(!t.type){if(!xa(e,0))return t.type=Se;var r=V_(_o(t.target),t.mapper);Ta()||(r=lo(e)),t.type=r}return t.type}(t):262144&r?function(t){if(!t.type){var r=t.mappedType;if(!xa(t,0))return r.containsError=!0,Se;var n=V_(As(r.target||r),w_(r.mapper,Es(r),t.keyType)),i=K&&16777216&t.flags&&!Eh(n,49152)?Cp(n):524288&t.checkFlags?zf(n,524288):n;Ta()||(cn(c,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,aa(t),sa(r)),i=Se),t.type=i}return t.type}(t):8192&r?function(e){return of(e.propertyType,e.mappedType,e.constraintType)}(t):7&t.flags?to(t):9136&t.flags?co(t):8&t.flags?uo(t):98304&t.flags?ao(t):2097152&t.flags?function(e){var t=Sn(e);if(!t.type){var r=ti(e);t.type=111551&r.flags?_o(r):Se}return t.type}(t):Se}function po(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function fo(t){return 4&e.getObjectFlags(t)?t.target:t}function go(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=fo(n);return i===r||e.some(ko(i),t)}if(2097152&n.flags)return e.some(n.types,t);return!1}(t)}function mo(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=e.appendIfUnique(t,Bo(Ci(a)))}return t}function yo(t,r){for(;;){if((t=t.parent)&&e.isBinaryExpression(t)){var n=e.getAssignmentDeclarationKind(t);if(6===n||3===n){var i=Ci(t.left);i&&i.parent&&!e.findAncestor(i.parent.valueDeclaration,(function(e){return t===e}))&&(t=i.parent.valueDeclaration)}}if(!t)return;switch(t.kind){case 232:case 252:case 221:case 253:case 169:case 170:case 164:case 174:case 175:case 308:case 251:case 165:case 208:case 209:case 254:case 330:case 331:case 325:case 324:case 190:case 184:var a=yo(t,r);if(190===t.kind)return e.append(a,Bo(Ci(t.typeParameter)));if(184===t.kind)return e.concatenate(a,Xl(t));if(232===t.kind&&!e.isInJSFile(t))break;var o=mo(a,e.getEffectiveTypeParameterDeclarations(t)),s=r&&(252===t.kind||221===t.kind||253===t.kind||Av(t))&&Fo(Ci(t)).thisType;return s?e.append(o,s):o;case 326:var c=e.getParameterSymbolFromJSDoc(t);c&&(t=c.valueDeclaration)}}}function vo(t){var r=32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,253);return e.Debug.assert(!!r,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),yo(r)}function ho(t){for(var r,n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(253===a.kind||252===a.kind||221===a.kind||Av(a)||e.isTypeAlias(a)){var o=a;r=mo(r,e.getEffectiveTypeParameterDeclarations(o))}}return r}function bo(e){var t=pc(e,1);if(1===t.length){var r=t[0];if(!r.typeParameters&&1===r.parameters.length&&B(r)){var n=Vv(r.parameters[0]);return ka(n)||tp(n)===be}}return!1}function xo(e){if(pc(e,1).length>0)return!0;if(8650752&e.flags){var t=Gs(e);return!!t&&bo(t)}return!1}function Do(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function So(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(pc(t,1),(function(t){return(a||i>=Ec(t.typeParameters))&&i<=e.length(t.typeParameters)}))}function To(t,r,n){var i=So(t,r,n),a=e.map(r,v_);return e.sameMap(i,(function(t){return e.some(t.typeParameters)?jc(t,a,e.isInJSFile(n)):t}))}function Co(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=Do(t);if(!i)return t.resolvedBaseConstructorType=ke;if(!xa(t,1))return Se;var a=ib(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),ib(n.expression)),2621440&a.flags&&Rs(a),!Ta())return cn(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,aa(t.symbol)),t.resolvedBaseConstructorType=Se;if(!(1&a.flags||a===Pe||xo(a))){var o=cn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,sa(a));if(262144&a.flags){var s=Yc(a),c=Ee;if(s){var u=pc(s,1);u[0]&&(c=Mc(u[0]))}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,aa(a.symbol),sa(c)))}return t.resolvedBaseConstructorType=Se}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function Eo(t,r){cn(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,sa(r,void 0,2))}function ko(t){if(!t.baseTypesResolved){if(xa(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[No(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=tc(Co(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=Do(t),a=r.symbol?jo(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=au(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=su(i,r.symbol);else if(1&r.flags)n=r;else{var o=To(r,i.typeArguments,i);if(!o.length)return cn(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=Mc(o[0])}if(n===Se)return t.resolvedBaseTypes=e.emptyArray;var s=oc(n);if(!Ao(s)){var c=lc(void 0,n),u=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,sa(s));return Gr.add(e.createDiagnosticForNodeFromMessageChain(i.expression,u)),t.resolvedBaseTypes=e.emptyArray}if(t===s||go(s,t))return cn(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,sa(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0);t.resolvedBaseTypes=[s]}(t),64&t.symbol.flags&&function(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];if(253===i.kind&&e.getInterfaceBaseTypeNodes(i))for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a],c=oc(v_(s));c!==Se&&(Ao(c)?t===c||go(c,t)?Eo(i,t):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):cn(s,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}(t)):e.Debug.fail("type must be class or interface"),!Ta()))for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];252!==i.kind&&253!==i.kind||Eo(i,t)}t.baseTypesResolved=!0}return t.resolvedBaseTypes}function No(t){return Ou(rl(e.sameMap(t.typeParameters,(function(e,r){return 8&t.elementFlags[r]?Bl(e,Ie):e}))||e.emptyArray),t.readonly)}function Ao(t){if(262144&t.flags){var r=Gs(t);if(r)return Ao(r)}return!!(67633153&t.flags&&!Ls(t)||2097152&t.flags&&e.every(t.types,Ao))}function Fo(t){var r,n,i,a,o,s=Sn(t),c=s;if(!s.declaredType){var u=32&t.flags?1:2,l=Fv(t,(r=t.valueDeclaration,i=r&&Pv(r,!0),a=null===(n=null==i?void 0:i.exports)||void 0===n?void 0:n.get("prototype"),(o=(null==a?void 0:a.valueDeclaration)&&function(t){if(!t.parent)return!1;for(var r=t.parent;r&&201===r.kind;)r=r.parent;if(r&&e.isBinaryExpression(r)&&e.isPrototypeAccess(r.left)&&62===r.operatorToken.kind){var n=e.getInitializerOfBinaryExpression(r);return e.isObjectLiteralExpression(n)&&n}}(a.valueDeclaration))?Ci(o):void 0));l&&(t=s=l);var _=c.declaredType=s.declaredType=Bi(u,t),d=vo(t),p=ho(t);(d||p||1===u||!function(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(253===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 u=ui(c.expression,788968,!0);if(!u||!(64&u.flags)||Fo(u).thisType)return!1}}}}return!0}(t))&&(_.objectFlags|=4,_.typeParameters=e.concatenate(d,p),_.outerTypeParameters=d,_.localTypeParameters=p,_.instantiations=new e.Map,_.instantiations.set($c(_.typeParameters),_),_.target=_,_.resolvedTypeArguments=_.typeParameters,_.thisType=ji(t),_.thisType.isThisType=!0,_.thisType.constraint=_)}return s.declaredType}function Po(t){var r=Sn(t);if(!r.declaredType){if(!xa(t,2))return Se;var n=e.Debug.checkDefined(e.find(t.declarations,e.isTypeAlias),"Type alias symbol with no valid declaration found"),i=e.isJSDocTypeAlias(n)?n.typeExpression:n.type,a=i?v_(i):Se;if(Ta()){var o=ho(t);o&&(r.typeParameters=o,r.instantiations=new e.Map,r.instantiations.set($c(o),a))}else a=Se,cn(e.isNamedDeclaration(n)?n.name:n||n,e.Diagnostics.Type_alias_0_circularly_references_itself,aa(t));r.declaredType=a}return r.declaredType}function wo(t){return!!e.isStringLiteralLike(t)||216===t.kind&&(wo(t.left)&&wo(t.right))}function Io(t){var r=t.initializer;if(!r)return!(8388608&t.flags);switch(r.kind){case 10:case 8:case 14:return!0;case 214:return 40===r.operator&&8===r.operand.kind;case 78:return e.nodeIsMissing(r)||!!Ci(t.parent).exports.get(r.escapedText);case 216:return wo(r);default:return!1}}function Oo(t){var r=Sn(t);if(void 0!==r.enumKind)return r.enumKind;for(var n=!1,i=0,a=t.declarations;i<a.length;i++){var o=a[i];if(255===o.kind)for(var s=0,c=o.members;s<c.length;s++){var u=c[s];if(u.initializer&&e.isStringLiteralLike(u.initializer))return r.enumKind=1;Io(u)||(n=!0)}}return r.enumKind=n?0:1}function Mo(e){return 1024&e.flags&&!(1048576&e.flags)?jo(Ei(e.symbol)):e}function Lo(e){var t=Sn(e);if(t.declaredType)return t.declaredType;if(1===Oo(e)){y++;for(var r=[],n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(255===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],u=cS(c),l=l_(p_(void 0!==u?u:0,y,Ci(c)));Sn(Ci(c)).declaredType=l,r.push(__(l))}}if(r.length){var _=rl(r,1,e,void 0);return 1048576&_.flags&&(_.flags|=1024,_.symbol=e),t.declaredType=_}}var d=Oi(32);return d.symbol=e,t.declaredType=d}function Ro(e){var t=Sn(e);if(!t.declaredType){var r=Lo(Ei(e));t.declaredType||(t.declaredType=r)}return t.declaredType}function Bo(e){var t=Sn(e);return t.declaredType||(t.declaredType=ji(e))}function jo(e){return Jo(e)||Se}function Jo(e){return 96&e.flags?Fo(e):524288&e.flags?Po(e):262144&e.flags?Bo(e):384&e.flags?Lo(e):8&e.flags?Ro(e):2097152&e.flags?function(e){var t=Sn(e);return t.declaredType||(t.declaredType=jo(ti(e)))}(e):void 0}function zo(e){switch(e.kind){case 128:case 152:case 147:case 144:case 155:case 131:case 148:case 145:case 113:case 150:case 141:case 191:return!0;case 178:return zo(e.elementType);case 173:return!e.typeArguments||e.typeArguments.every(zo)}return!1}function Uo(t){var r=e.getEffectiveConstraintOfTypeParameter(t);return!r||zo(r)}function Vo(t){var r=e.getEffectiveTypeAnnotationNode(t);return r?zo(r):!e.hasInitializer(t)}function Ko(t){if(t.declarations&&1===t.declarations.length){var r=t.declarations[0];if(r)switch(r.kind){case 163:case 162:return Vo(r);case 165:case 164:case 166:case 167:case 168:return n=r,i=e.getEffectiveReturnTypeNode(n),a=e.getEffectiveTypeParameterDeclarations(n),(166===n.kind||!!i&&zo(i))&&n.parameters.every(Vo)&&a.every(Uo)}}var n,i,a;return!1}function qo(t,r,n){for(var i=e.createSymbolTable(),a=0,o=t;a<o.length;a++){var s=o[a];i.set(s.escapedName,n&&Ko(s)?s:M_(s,r))}return i}function Wo(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||Ho(i)||e.set(i.escapedName,i)}}function Ho(t){return!!t.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(t.valueDeclaration)&&e.hasSyntacticModifier(t.valueDeclaration,32)}function Go(t){if(!t.declaredProperties){var r=t.symbol,n=ns(r);t.declaredProperties=zi(n),t.declaredCallSignatures=e.emptyArray,t.declaredConstructSignatures=e.emptyArray,t.declaredCallSignatures=Pc(n.get("__call")),t.declaredConstructSignatures=Pc(n.get("__new")),t.declaredStringIndexInfo=Xc(r,0),t.declaredNumberIndexInfo=Xc(r,1)}return t}function Xo(e){return!!(8576&e.flags)}function Qo(t){if(!e.isComputedPropertyName(t)&&!e.isElementAccessExpression(t))return!1;var r=e.isComputedPropertyName(t)?t.expression:t.argumentExpression;return e.isEntityNameExpression(r)&&Xo(e.isComputedPropertyName(t)?wm(t):Jh(r))}function Yo(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Zo(t){var r=e.getNameOfDeclaration(t);return!!r&&Qo(r)}function $o(t){return!e.hasDynamicName(t)||Zo(t)}function es(t){return 8192&t.flags?t.escapedName:384&t.flags?e.escapeLeadingUnderscores(""+t.value):e.Debug.fail()}function ts(t,r,n,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=Tn(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=e.isBinaryExpression(i)?i.left:i.name,s=e.isElementAccessExpression(o)?Jh(o.argumentExpression):wm(o);if(Xo(s)){var c=es(s),u=i.symbol.flags,l=n.get(c);l||n.set(c,l=fn(0,c,4096));var _=r&&r.get(c);if(l.flags&gn(u)||_){var d=_?e.concatenate(_.declarations,l.declarations):l.declarations,p=!(8192&s.flags)&&e.unescapeLeadingUnderscores(c)||e.declarationNameToString(o);e.forEach(d,(function(t){return cn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Property_0_was_also_declared_here,p)})),cn(o||i,e.Diagnostics.Duplicate_property_0,p),l=fn(0,c,4096)}return l.nameType=s,function(t,r,n){e.Debug.assert(!!(4096&e.getCheckFlags(t)),"Expected a late-bound symbol."),t.flags|=n,Sn(r.symbol).lateSymbol=t,t.declarations?t.declarations.push(r):t.declarations=[r],111551&n&&(t.valueDeclaration&&t.valueDeclaration.kind===r.kind||(t.valueDeclaration=r))}(l,i,u),l.parent?e.Debug.assert(l.parent===t,"Existing symbol parent should match new one"):l.parent=t,a.resolvedSymbol=l}}return a.resolvedSymbol}function rs(t,r){var n=Sn(t);if(!n[r]){var i="resolvedExports"===r,a=i?1536&t.flags?Si(t):t.exports:t.members;n[r]=a||T;for(var o=e.createSymbolTable(),s=0,c=t.declarations||e.emptyArray;s<c.length;s++){var u=c[s],l=e.getMembersOfDeclaration(u);if(l)for(var _=0,d=l;_<d.length;_++){var p=d[_];i===e.hasStaticModifier(p)&&Zo(p)&&ts(t,a,o,p)}}var f=t.assignmentDeclarationMembers;if(f)for(var g=0,m=e.arrayFrom(f.values());g<m.length;g++){p=m[g];var y=e.getAssignmentDeclarationKind(p);i===!(3===y||e.isBinaryExpression(p)&&om(p,y)||9===y||6===y)&&Zo(p)&&ts(t,a,o,p)}n[r]=function(t,r){if(!(null==t?void 0:t.size))return r;if(!(null==r?void 0:r.size))return t;var n=e.createSymbolTable();return xn(n,t),xn(n,r),n}(a,o)||T}return n[r]}function ns(e){return 6256&e.flags?rs(e,"resolvedMembers"):e.members||T}function is(t){if(106500&t.flags&&"__computed"===t.escapedName){var r=Sn(t);if(!r.lateSymbol&&e.some(t.declarations,Zo)){var n=Ti(t.parent);e.some(t.declarations,e.hasStaticModifier)?bi(n):ns(n)}return r.lateSymbol||(r.lateSymbol=t)}return t}function as(t,r,n){if(4&e.getObjectFlags(t)){var i=t.target,a=au(t);if(e.length(i.typeParameters)===e.length(a)){var o=ru(i,e.concatenate(a,[r||i.thisType]));return n?tc(o):o}}else if(2097152&t.flags){var s=e.sameMap(t.types,(function(e){return as(e,r,n)}));return s!==t.types?ul(s):t}return n?tc(t):t}function os(t,r,n,i){var a,o,s,c,u,l;e.rangeEquals(n,i,0,n.length)?(o=r.symbol?ns(r.symbol):e.createSymbolTable(r.declaredProperties),s=r.declaredCallSignatures,c=r.declaredConstructSignatures,u=r.declaredStringIndexInfo,l=r.declaredNumberIndexInfo):(a=S_(n,i),o=qo(r.declaredProperties,a,1===n.length),s=D_(r.declaredCallSignatures,a),c=D_(r.declaredConstructSignatures,a),u=H_(r.declaredStringIndexInfo,a),l=H_(r.declaredNumberIndexInfo,a));var _=ko(r);if(_.length){r.symbol&&o===ns(r.symbol)&&(o=e.createSymbolTable(r.declaredProperties)),Ui(t,o,s,c,u,l);for(var d=e.lastOrUndefined(i),p=0,f=_;p<f.length;p++){var g=f[p],m=d?as(V_(g,a),d):g;Wo(o,zs(m)),s=e.concatenate(s,pc(m,0)),c=e.concatenate(c,pc(m,1)),u||(u=m===be?Gc(be,!1):mc(m,0)),l=l||mc(m,1)}}Ui(t,o,s,c,u,l)}function ss(e,t,r,n,i,a,o,s){var c=new f(oe,s);return c.declaration=e,c.typeParameters=t,c.parameters=n,c.thisParameter=r,c.resolvedReturnType=i,c.resolvedTypePredicate=a,c.minArgumentCount=o,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.unionSignatures=void 0,c}function cs(e){var t=ss(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,39&e.flags);return t.target=e.target,t.mapper=e.mapper,t.unionSignatures=e.unionSignatures,t}function us(e,t){var r=cs(e);return r.unionSignatures=t,r.target=void 0,r.mapper=void 0,r}function ls(t,r){if((24&t.flags)===r)return t;t.optionalCallSignatureCache||(t.optionalCallSignatureCache={});var n=8===r?"inner":"outer";return t.optionalCallSignatureCache[n]||(t.optionalCallSignatureCache[n]=function(t,r){e.Debug.assert(8===r||16===r,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var n=cs(t);return n.flags|=r,n}(t,r))}function _s(t,r){if(B(t)){var n=t.parameters.length-1,i=_o(t.parameters[n]);if(fp(i))return[a(i,n)];if(!r&&1048576&i.flags&&e.every(i.types,fp))return e.map(i.types,(function(e){return a(e,n)}))}return[t.parameters];function a(r,n){var i=au(r),a=r.target.labeledElementDeclarations,o=e.map(i,(function(e,i){var o=!!a&&Kv(a[i])||qv(t,n+i,r),s=r.target.elementFlags[i],c=fn(1,o,12&s?32768:2&s?16384:0);return c.type=4&s?Ou(e):e,c}));return e.concatenate(t.parameters.slice(0,n),o)}}function ds(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(Qd(s,t,r,n,i,r?rd:ed))return s}}function ps(t,r,n){if(r.typeParameters){if(n>0)return;for(var i=1;i<t.length;i++)if(!ds(t[i],r,!1,!1,!1))return;return[r]}var a;for(i=0;i<t.length;i++){var o=i===n?r:ds(t[i],r,!0,!1,!0);if(!o)return;a=e.appendIfUnique(a,o)}return a}function fs(t){for(var r,n,i=0;i<t.length;i++){if(0===t[i].length)return e.emptyArray;t[i].length>1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a<o.length;a++){var s=o[a];if(!r||!ds(r,s,!1,!1,!0)){var c=ps(t,s,i);if(c){var u=s;if(c.length>1){var l=s.thisParameter,_=e.forEach(c,(function(e){return e.thisParameter}));if(_)l=Ip(_,ul(e.mapDefined(c,(function(e){return e.thisParameter&&_o(e.thisParameter)}))));(u=us(s,c)).thisParameter=l}(r||(r=[])).push(u)}}}}if(!e.length(r)&&-1!==n){for(var d=t[void 0!==n?n:0],p=d.slice(),f=function(t){if(t!==d){var r=t[0];if(e.Debug.assert(!!r,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(p=r.typeParameters&&e.some(p,(function(e){return!!e.typeParameters&&!function(e,t){if(e.length!==t.length)return!1;for(var r=S_(t,e),n=0;n<e.length;n++){var i=e[n],a=t[n];if(i!==a&&!$_(Yc(i)||Ee,V_(Yc(a)||Ee,r)))return!1}return!0}(r.typeParameters,e.typeParameters)}))?void 0:e.map(p,(function(t){return function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=S_(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=Yv(e),i=Yv(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=$v(e)||$v(t),u=c&&!$v(a),l=new Array(s+(u?1:0)),_=0;_<s;_++){var d=Xv(a,_);a===t&&(d=V_(d,r));var p=Xv(o,_)||Ee;o===t&&(p=V_(p,r));var f=ul([d,p]),g=c&&!u&&_===s-1,m=_>=Zv(a)&&_>=Zv(o),y=_>=n?void 0:qv(e,_),v=_>=i?void 0:qv(t,_),h=fn(1|(m&&!g?16777216:0),(y===v?y:y?v?void 0:y:v)||"arg"+_);h.type=g?Ou(f):f,l[_]=h}if(u){var b=fn(1,"args");b.type=Ou(Gv(o,s)),o===t&&(b.type=V_(b.type,r)),l[s]=b}return l}(t,r,n),s=function(e,t,r){if(!e||!t)return e||t;var n=ul([_o(e),V_(_o(t),r)]);return Ip(e,n)}(t.thisParameter,r.thisParameter,n),c=Math.max(t.minArgumentCount,r.minArgumentCount),u=ss(a,i,s,o,void 0,void 0,c,39&(t.flags|r.flags));u.unionSignatures=e.concatenate(t.unionSignatures||[t],[r]),n&&(u.mapper=t.mapper&&t.unionSignatures?A_(t.mapper,n):n);return u}(t,r)}))))return"break"}},g=0,m=t;g<m.length;g++){if("break"===f(m[g]))break}r=p}return r||e.emptyArray}function gs(e,t){for(var r=[],n=!1,i=0,a=e;i<a.length;i++){var o=mc(tc(a[i]),t);if(!o)return;r.push(o.type),n=n||o.isReadonly}return Gc(rl(r,2),n)}function ms(e,t){return e?t?ul([e,t]):e:t}function ys(e,t){return e?t?Gc(ul([e.type,t.type]),e.isReadonly&&t.isReadonly):e:t}function vs(e,t){return e&&t&&Gc(rl([e.type,t.type]),e.isReadonly||t.isReadonly)}function hs(t){var r=e.countWhere(t,(function(e){return pc(e,1).length>0})),n=e.map(t,bo);if(r>0&&r===e.countWhere(n,(function(e){return e}))){var i=n.indexOf(!0);n[i]=!1}return n}function bs(t){for(var r,n,i,a,o=t.types,s=hs(o),c=e.countWhere(s,(function(e){return e})),u=function(u){var l=t.types[u];if(!s[u]){var _=pc(l,1);_.length&&c>0&&(_=e.map(_,(function(e){var t=cs(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a<t.length;a++)a===n?i.push(e):r[a]&&i.push(Mc(pc(t[a],1)[0]));return ul(i)}(Mc(e),o,s,u),t}))),n=xs(n,_)}r=xs(r,pc(l,0)),i=ys(i,mc(l,0)),a=ys(a,mc(l,1))},l=0;l<o.length;l++)u(l);Ui(t,T,r||e.emptyArray,n||e.emptyArray,i,a)}function xs(t,r){for(var n=function(r){t&&!e.every(t,(function(e){return!Qd(e,r,!1,!1,!1,ed)}))||(t=e.append(t,r))},i=0,a=r;i<a.length;i++){n(a[i])}return t}function Ds(t){var r=Ti(t.symbol);if(t.target)Ui(t,T,e.emptyArray,e.emptyArray,void 0,void 0),Ui(t,a=qo(Bs(t.target),t.mapper,!1),n=D_(pc(t.target,0),t.mapper),i=D_(pc(t.target,1),t.mapper),o=H_(mc(t.target,0),t.mapper),u=H_(mc(t.target,1),t.mapper));else if(2048&r.flags){Ui(t,T,e.emptyArray,e.emptyArray,void 0,void 0);var n=Pc((a=ns(r)).get("__call")),i=Pc(a.get("__new"));Ui(t,a,n,i,o=Xc(r,0),u=Xc(r,1))}else{var a=T,o=void 0;if(r.exports&&(a=bi(r),r===re)){var s=new e.Map;a.forEach((function(e){418&e.flags||s.set(e.escapedName,e)})),a=s}if(Ui(t,a,e.emptyArray,e.emptyArray,void 0,void 0),32&r.flags){var c=Co(Fo(r));11272192&c.flags?Wo(a=e.createSymbolTable(zi(a)),zs(c)):c===be&&(o=Gc(be,!1))}var u=384&r.flags&&(32&jo(r).flags||e.some(t.properties,(function(e){return!!(296&_o(e).flags)})))?lr:void 0;if(Ui(t,a,e.emptyArray,e.emptyArray,o,u),8208&r.flags&&(t.callSignatures=Pc(r)),32&r.flags){var l=Fo(r);i=r.members?Pc(r.members.get("__constructor")):e.emptyArray;16&r.flags&&(i=e.addRange(i.slice(),e.mapDefined(t.callSignatures,(function(e){return Av(e.declaration)?ss(e.declaration,e.typeParameters,e.thisParameter,e.parameters,l,void 0,e.minArgumentCount,39&e.flags):void 0})))),i.length||(i=function(t){var r=pc(Co(t),1),n=e.getClassLikeDeclarationOfSymbol(t.symbol),i=!!n&&e.hasSyntacticModifier(n,128);if(0===r.length)return[ss(void 0,t.localTypeParameters,void 0,e.emptyArray,t,void 0,0,i?4:0)];for(var a=Do(t),o=e.isInJSFile(a),s=bu(a),c=e.length(s),u=[],l=0,_=r;l<_.length;l++){var d=_[l],p=Ec(d.typeParameters),f=e.length(d.typeParameters);if(o||c>=p&&c<=f){var g=f?zc(d,kc(s,d.typeParameters,p,o)):cs(d);g.typeParameters=t.localTypeParameters,g.resolvedReturnType=t,g.flags=i?4|g.flags:-5&g.flags,u.push(g)}}return u}(l)),t.constructSignatures=i}}}function Ss(t){if(4194304&t.flags){var r=tc(t.type);return gp(r)?Wu(r):hl(r)}if(16777216&t.flags){if(t.root.isDistributive){var n=t.checkType,i=Ss(n);if(i!==n)return U_(t,P_(t.root.checkType,i,t.mapper))}return t}return 1048576&t.flags?cg(t,Ss):2097152&t.flags?ul(e.sameMap(t.types,Ss)):t}function Ts(t){return 4096&e.getCheckFlags(t)}function Cs(t){var r,n,i=e.createSymbolTable();Ui(t,T,e.emptyArray,e.emptyArray,void 0,void 0);var a=Es(t),o=ks(t),s=Ns(t.target||t),c=As(t.target||t),u=tc(ws(t)),l=Is(t),_=Q?128:8576;if(Ps(t)){for(var d=0,p=zs(u);d<p.length;d++){f(ml(p[d],_))}(1&u.flags||mc(u,0))&&f(we),!Q&&mc(u,1)&&f(Ie)}else ig(Ss(o),f);function f(e){ig(s?V_(s,w_(t.mapper,a,e)):e,(function(o){return function(e,o){if(Xo(o)){var s=es(o),_=i.get(s);if(_)_.nameType=rl([_.nameType,o]),_.keyType=rl([_.keyType,e]);else{var d=Xo(e)?_c(u,es(e)):void 0,p=!!(4&l||!(8&l)&&d&&16777216&d.flags),f=!!(1&l||!(2&l)&&d&&xh(d)),g=K&&!p&&d&&16777216&d.flags,m=fn(4|(p?16777216:0),s,262144|(d?Ts(d):0)|(f?8:0)|(g?524288:0));m.mappedType=t,m.nameType=o,m.keyType=e,d&&(m.syntheticOrigin=d,m.declarations=d.declarations),i.set(s,m)}}else if(45&o.flags){var y=V_(c,w_(t.mapper,a,e));5&o.flags?r=Gc(r?rl([r.type,y]):y,!!(1&l)):n=Gc(n?rl([n.type,y]):y,!!(1&l))}}(e,o)}))}Ui(t,i,e.emptyArray,e.emptyArray,r,n)}function Es(e){return e.typeParameter||(e.typeParameter=Bo(Ci(e.declaration.typeParameter)))}function ks(e){return e.constraintType||(e.constraintType=Vs(Es(e))||Se)}function Ns(e){return e.declaration.nameType?e.nameType||(e.nameType=V_(v_(e.declaration.nameType),e.mapper)):void 0}function As(e){return e.templateType||(e.templateType=e.declaration.type?V_(La(v_(e.declaration.type),!!(4&Is(e))),e.mapper):Se)}function Fs(t){return e.getEffectiveConstraintOfTypeParameter(t.declaration.typeParameter)}function Ps(e){var t=Fs(e);return 188===t.kind&&138===t.operator}function ws(e){if(!e.modifiersType)if(Ps(e))e.modifiersType=V_(v_(Fs(e).type),e.mapper);else{var t=ks(Ul(e.declaration)),r=t&&262144&t.flags?Vs(t):t;e.modifiersType=r&&4194304&r.flags?V_(r.type,e.mapper):Ee}return e.modifiersType}function Is(e){var t=e.declaration;return(t.readonlyToken?40===t.readonlyToken.kind?2:1:0)|(t.questionToken?40===t.questionToken.kind?8:4:0)}function Os(e){var t=Is(e);return 8&t?-1:4&t?1:0}function Ms(e){var t=Os(e),r=ws(e);return t||(Ls(r)?Os(r):0)}function Ls(t){return!!(32&e.getObjectFlags(t))&&wl(ks(t))}function Rs(t){return t.members||(524288&t.flags?4&t.objectFlags?function(t){var r=Go(t.target),n=e.concatenate(r.typeParameters,[r.thisType]),i=au(t);os(t,r,n,i.length===n.length?i:e.concatenate(i,[t]))}(t):3&t.objectFlags?function(t){os(t,Go(t),e.emptyArray,e.emptyArray)}(t):2048&t.objectFlags?function(t){for(var r=mc(t.source,0),n=Is(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r&&Gc(of(r.type,t.mappedType,t.constraintType),i&&r.isReadonly),s=e.createSymbolTable(),c=0,u=zs(t.source);c<u.length;c++){var l=u[c],_=8192|(i&&xh(l)?8:0),d=fn(4|l.flags&a,l.escapedName,_);d.declarations=l.declarations,d.nameType=Sn(l).nameType,d.propertyType=_o(l),d.mappedType=t.mappedType,d.constraintType=t.constraintType,s.set(l.escapedName,d)}Ui(t,s,e.emptyArray,e.emptyArray,o,void 0)}(t):16&t.objectFlags?Ds(t):32&t.objectFlags&&Cs(t):1048576&t.flags?function(t){var r=fs(e.map(t.types,(function(e){return e===mt?[sr]:pc(e,0)}))),n=fs(e.map(t.types,(function(e){return pc(e,1)}))),i=gs(t.types,0),a=gs(t.types,1);Ui(t,T,r,n,i,a)}(t):2097152&t.flags&&bs(t)),t}function Bs(t){return 524288&t.flags?Rs(t).properties:e.emptyArray}function js(e,t){if(524288&e.flags){var r=Rs(e).members.get(t);if(r&&wi(r))return r}}function Js(t){if(!t.resolvedProperties){for(var r=e.createSymbolTable(),n=0,i=t.types;n<i.length;n++){for(var a=i[n],o=0,s=zs(a);o<s.length;o++){var c=s[o];if(!r.has(c.escapedName)){var u=ac(t,c.escapedName);u&&r.set(c.escapedName,u)}}if(1048576&t.flags&&!mc(a,0)&&!mc(a,1))break}t.resolvedProperties=zi(r)}return t.resolvedProperties}function zs(e){return 3145728&(e=rc(e)).flags?Js(e):Bs(e)}function Us(e){return 262144&e.flags?Vs(e):8388608&e.flags?function(e){return Qs(e)?function(e){var t=Ks(e.indexType);if(t&&t!==e.indexType){var r=Jl(e.objectType,t,e.noUncheckedIndexedAccessCandidate);if(r)return r}var n=Ks(e.objectType);if(n&&n!==e.objectType)return Jl(n,e.indexType,e.noUncheckedIndexedAccessCandidate);return}(e):void 0}(e):16777216&e.flags?function(e){return Qs(e)?Hs(e):void 0}(e):Gs(e)}function Vs(e){return Qs(e)?Yc(e):void 0}function Ks(e){var t=Ol(e,!1);return t!==e?t:Us(e)}function qs(e){if(!e.resolvedDefaultConstraint){var t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?V_(v_(e.root.node.trueType),e.combinedMapper):Hl(e))}(e),r=Gl(e);e.resolvedDefaultConstraint=ka(t)?r:ka(r)?t:rl([t,r])}return e.resolvedDefaultConstraint}function Ws(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=Ol(e.checkType,!1),r=t===e.checkType?Us(t):t;if(r&&r!==e.checkType){var n=U_(e,P_(e.root.checkType,r,e.mapper));if(!(131072&n.flags))return n}}}function Hs(e){return Ws(e)||qs(e)}function Gs(e){if(464781312&e.flags){var t=Ys(e);return t!==ot&&t!==st?t:void 0}return 4194304&e.flags?Xe:void 0}function Xs(e){return Gs(e)||e}function Qs(e){return Ys(e)!==st}function Ys(t){if(t.resolvedBaseConstraint)return t.resolvedBaseConstraint;var r=[];return t.resolvedBaseConstraint=as(n(t),t);function n(t){if(!t.immediateBaseConstraint){if(!xa(t,4))return st;var n=void 0;if((r.length<10||r.length<50&&!Wd(t,r,r.length))&&(r.push(t),n=function(t){if(262144&t.flags){var r=Yc(t);return t.isThisType||!r?r:i(r)}if(3145728&t.flags){for(var n=[],a=!1,o=0,s=l=t.types;o<s.length;o++){var c=s[o],u=i(c);u?(u!==c&&(a=!0),n.push(u)):a=!0}return a?1048576&t.flags&&n.length===l.length?rl(n):2097152&t.flags&&n.length?ul(n):void 0:t}if(4194304&t.flags)return Xe;if(134217728&t.flags){var l=t.types,_=e.mapDefined(l,i);return _.length===l.length?xl(t.texts,_):we}if(268435456&t.flags){return(r=i(t.type))?Sl(t.symbol,r):we}if(8388608&t.flags){var d=i(t.objectType),p=i(t.indexType),f=d&&p&&Jl(d,p,t.noUncheckedIndexedAccessCandidate);return f&&i(f)}if(16777216&t.flags){return(r=Hs(t))&&i(r)}if(33554432&t.flags)return i(t.substitute);return t}(Ol(t,!1)),r.pop()),!Ta()){if(262144&t.flags){var a=Qc(t);if(a){var o=cn(a,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,sa(t));!c||e.isNodeDescendantOf(a,c)||e.isNodeDescendantOf(c,a)||e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}n=st}t.immediateBaseConstraint=n||ot}return t.immediateBaseConstraint}function i(e){var t=n(e);return t!==ot&&t!==st?t:void 0}}function Zs(t){if(t.default)t.default===ct&&(t.default=st);else if(t.target){var r=Zs(t.target);t.default=r?V_(r,t.mapper):ot}else{t.default=ct;var n=t.symbol&&e.forEach(t.symbol.declarations,(function(t){return e.isTypeParameterDeclaration(t)&&t.default})),i=n?v_(n):ot;t.default===ct&&(t.default=i)}return t.default}function $s(e){var t=Zs(e);return t!==ot&&t!==st?t:void 0}function ec(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var t=R_(e);if(t&&!e.declaration.nameType){var r=Vs(t);if(r&&(Zd(r)||fp(r)))return V_(e,P_(t,r,e.mapper))}return e}(e))}function tc(t){var r,n=465829888&t.flags?Gs(t)||Ee:t;return 32&e.getObjectFlags(n)?ec(n):2097152&n.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=as(e,e,!0))}(n):402653316&n.flags?xt:296&n.flags?Dt:2112&n.flags?(r=z>=7,Yt||(Yt=Cu("BigInt",0,r))||et):528&n.flags?St:12288&n.flags?ku(z>=2):67108864&n.flags?et:4194304&n.flags?Xe:2&n.flags&&!K?et:n}function rc(e){return oc(tc(oc(e)))}function nc(t,r,n){for(var i,a,o,s=1048576&t.flags,c=s?0:16777216,u=4,l=0,_=0,d=t.types;_<d.length;_++){if(!((C=tc(d[_]))===Se||131072&C.flags)){var p=(T=_c(C,r,n))?e.getDeclarationModifierFlagsFromSymbol(T):0;if(T){if(s?c|=16777216&T.flags:c&=T.flags,i){if(T!==i){a||(a=new e.Map).set(w(i),i);var f=w(T);a.has(f)||a.set(f,T)}}else i=T;l|=(xh(T)?8:0)|(24&p?0:256)|(16&p?512:0)|(8&p?1024:0)|(32&p?2048:0),oy(T)||(u=2)}else if(s){var g=!Yo(r)&&(Pm(r)&&mc(C,1)||mc(C,0));g?(l|=32|(g.isReadonly?8:0),o=e.append(o,fp(C)?yp(C)||ke:g.type)):yf(C)?(l|=32,o=e.append(o,ke)):l|=16}}}if(i&&!(s&&(a||48&l)&&1536&l)){if(!(a||16&l||o))return i;for(var m,y,v,h,b=[],x=!1,D=0,S=a?e.arrayFrom(a.values()):[i];D<S.length;D++){var T=S[D];h?T.valueDeclaration&&T.valueDeclaration!==h&&(x=!0):h=T.valueDeclaration,m=e.addRange(m,T.declarations);var C=_o(T);y?C!==y&&(l|=64):(y=C,v=Sn(T).nameType),cp(C)&&(l|=128),131072&C.flags&&(l|=131072),b.push(C)}e.addRange(b,o);var E=fn(4|c,r,u|l);return E.containingType=t,!x&&h&&(E.valueDeclaration=h,h.symbol.parent&&(E.parent=h.symbol.parent)),E.declarations=m,E.nameType=v,b.length>2?(E.checkFlags|=65536,E.deferralParent=t,E.deferralConstituents=b):E.type=s?rl(b):ul(b),E}}function ic(t,r,n){var i,a,o=(null===(i=t.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(r))||!n?null===(a=t.propertyCache)||void 0===a?void 0:a.get(r):void 0;o||(o=nc(t,r,n))&&(n?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable())).set(r,o);return o}function ac(t,r,n){var i=ic(t,r,n);return!i||16&e.getCheckFlags(i)?void 0:i}function oc(t){return 1048576&t.flags&&268435456&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var r=e.sameMap(t.types,oc);if(r===t.types)return t;var n=rl(r);1048576&n.flags&&(n.resolvedReducedType=n);return n}(t)):2097152&t.flags?(268435456&t.objectFlags||(t.objectFlags|=268435456|(e.some(Js(t),sc)?536870912:0)),536870912&t.objectFlags?Ue:t):t}function sc(e){return cc(e)||uc(e)}function cc(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&_o(t).flags))}function uc(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function lc(t,r){if(536870912&e.getObjectFlags(r)){var n=e.find(Js(r),cc);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,sa(r,void 0,536870912),aa(n));var i=e.find(Js(r),uc);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,sa(r,void 0,536870912),aa(i))}return t}function _c(e,t,r){if(524288&(e=rc(e)).flags){var n=Rs(e),i=n.members.get(t);if(i&&wi(i))return i;if(r)return;var a=n===at?mt:n.callSignatures.length?yt:n.constructSignatures.length?vt:void 0;if(a){var o=js(a,t);if(o)return o}return js(gt,t)}if(3145728&e.flags)return ac(e,t,r)}function dc(t,r){if(3670016&t.flags){var n=Rs(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function pc(e,t){return dc(rc(e),t)}function fc(e,t){if(3670016&e.flags){var r=Rs(e);return 0===t?r.stringIndexInfo:r.numberIndexInfo}}function gc(e,t){var r=fc(e,t);return r&&r.type}function mc(e,t){return fc(rc(e),t)}function yc(e,t){return gc(rc(e),t)}function vc(t,r){if(wp(t)){for(var n=[],i=0,a=zs(t);i<a.length;i++){var o=a[i];(0===r||Pm(o.escapedName))&&n.push(_o(o))}if(0===r&&e.append(n,yc(t,1)),n.length)return rl(n)}}function hc(t){for(var r,n=0,i=e.getEffectiveTypeParameterDeclarations(t);n<i.length;n++){var a=i[n];r=e.appendIfUnique(r,Bo(a.symbol))}return r}function bc(e){var t=[];return e.forEach((function(e,r){Ji(r)||t.push(e)})),t}function xc(t){return e.isInJSFile(t)&&(t.type&&307===t.type.kind||e.getJSDocParameterTags(t).some((function(e){var t=e.isBracketed,r=e.typeExpression;return t||!!r&&307===r.type.kind})))}function Dc(t,r){if(!e.isExternalModuleNameRelative(t)){var n=En(ee,'"'+t+'"',512);return n&&r?Ti(n):n}}function Sc(t){if(e.hasQuestionToken(t)||Tc(t)||xc(t))return!0;if(t.initializer){var r=Nc(t.parent),n=t.parent.parameters.indexOf(t);return e.Debug.assert(n>=0),n>=Zv(r,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length)}function Tc(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&307===n.type.kind}function Cc(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function Ec(t){var r,n=0;if(t)for(var i=0;i<t.length;i++)(r=t[i]).symbol&&e.forEach(r.symbol.declarations,(function(t){return e.isTypeParameterDeclaration(t)&&t.default}))||(n=i+1);return n}function kc(t,r,n,i){var a=e.length(r);if(!a)return[];var o=e.length(t);if(i||o>=n&&o<=a){for(var s=t?t.slice():[],c=o;c<a;c++)s[c]=Se;var u=Df(i);for(c=o;c<a;c++){var l=$s(r[c]);i&&l&&($_(l,Ee)||$_(l,et))&&(l=be),s[c]=l?V_(l,S_(r,s)):u}return s.length=r.length,s}return t&&t.slice()}function Nc(t){var r,n=Tn(t);if(!n.resolvedSignature){var i=[],a=0,o=0,s=void 0,c=!1,u=e.getImmediatelyInvokedFunctionExpression(t),l=e.isJSDocConstructSignature(t);!u&&e.isInJSFile(t)&&e.isValueSignatureDeclaration(t)&&!e.hasJSDocParameterTags(t)&&!e.getJSDocType(t)&&(a|=32);for(var _=l?1:0;_<t.parameters.length;_++){var d=t.parameters[_],p=d.symbol,f=e.isJSDocParameterTag(d)?d.typeExpression&&d.typeExpression.type:d.type;if(p&&4&p.flags&&!e.isBindingPattern(d.name))p=An(d,p.escapedName,111551,void 0,void 0,!1);0===_&&"this"===p.escapedName?(c=!0,s=d.symbol):i.push(p),f&&191===f.kind&&(a|=2),Tc(d)||d.initializer||d.questionToken||d.dotDotDotToken||u&&i.length>u.arguments.length&&!f||xc(d)||(o=i.length)}if((167===t.kind||168===t.kind)&&$o(t)&&(!c||!s)){var g=167===t.kind?168:167,m=e.getDeclarationOfKind(Ci(t),g);m&&(s=(r=zS(m))&&r.symbol)}var y=166===t.kind?Fo(Ti(t.parent.symbol)):void 0,v=y?y.localTypeParameters:hc(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!Fc(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,(function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0})),o=fn(3,"args",32768);o.type=a?Ou(v_(a.type)):Et,a&&r.pop();return r.push(o),!0}(t,i))&&(a|=1),(e.isConstructorTypeNode(t)&&e.hasSyntacticModifier(t,128)||e.isConstructorDeclaration(t)&&e.hasSyntacticModifier(t.parent,128))&&(a|=4),n.resolvedSignature=ss(t,v,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function Ac(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t),n=r&&r.typeExpression&&Gy(v_(r.typeExpression));return n&&Uc(n)}}function Fc(t){var r=Tn(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 78:return r.escapedText===ie.escapedName&&Cf(r)===ie;case 163:case 165:case 167:case 168:return 158===r.name.kind&&t(r.name);case 201:case 202:return t(r.expression);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function Pc(t){if(!t)return e.emptyArray;for(var r=[],n=0;n<t.declarations.length;n++){var i=t.declarations[n];if(e.isFunctionLike(i)){if(n>0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(Nc(i))}}return r}function wc(e){var t=_i(e,e);if(t){var r=gi(t);if(r)return _o(r)}return be}function Ic(e){if(e.thisParameter)return _o(e.thisParameter)}function Oc(t){if(!t.resolvedTypePredicate){if(t.target){var r=Oc(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,Cc(o.kind,o.parameterName,o.parameterIndex,V_(o.type,s))):ar}else if(t.unionSignatures)t.resolvedTypePredicate=function(e){for(var t,r=[],n=0,i=e;n<i.length;n++){var a=Oc(i[n]);if(a&&2!==a.kind&&3!==a.kind){if(t){if(!nl(t,a))return}else t=a;r.push(a.type)}}if(!t)return;var o=rl(r);return Cc(t.kind,t.parameterName,t.parameterIndex,o)}(t.unionSignatures)||ar;else{var n=t.declaration&&e.getEffectiveReturnTypeNode(t.declaration),i=void 0;if(!n&&e.isInJSFile(t.declaration)){var a=Ac(t.declaration);a&&t!==a&&(i=Oc(a))}t.resolvedTypePredicate=n&&e.isTypePredicateNode(n)?function(t,r){var n=t.parameterName,i=t.type&&v_(t.type);return 187===n.kind?Cc(t.assertsModifier?2:0,void 0,void 0,i):Cc(t.assertsModifier?3:1,n.escapedText,e.findIndex(r.parameters,(function(e){return e.escapedName===n.escapedText})),i)}(n,t):i||ar}e.Debug.assert(!!t.resolvedTypePredicate)}var o,s;return t.resolvedTypePredicate===ar?void 0:t.resolvedTypePredicate}function Mc(t){if(!t.resolvedReturnType){if(!xa(t,3))return Se;var r=t.target?V_(Mc(t.target),t.mapper):t.unionSignatures?V_(rl(e.map(t.unionSignatures,Mc),2),t.mapper):Lc(t.declaration)||(e.nodeIsMissing(t.declaration.body)?be:lh(t.declaration));if(8&t.flags?r=kp(r):16&t.flags&&(r=Cp(r)),!Ta()){if(t.declaration){var n=e.getEffectiveReturnTypeNode(t.declaration);if(n)cn(n,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(G){var i=t.declaration,a=e.getNameOfDeclaration(i);a?cn(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)):cn(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)}}r=be}t.resolvedReturnType=r}return t.resolvedReturnType}function Lc(t){if(166===t.kind)return Fo(Ti(t.parent.symbol));if(e.isJSDocConstructSignature(t))return v_(t.parameters[0].type);var r,n=e.getEffectiveReturnTypeNode(t);if(n)return v_(n);if(167===t.kind&&$o(t)){var i=e.isInJSFile(t)&&Oa(t);if(i)return i;var a=no(e.getDeclarationOfKind(Ci(t),168));if(a)return a}return(r=Ac(t))&&Mc(r)}function Rc(e){return!e.resolvedReturnType&&Da(e,3)>=0}function Bc(e){if(B(e)){var t=_o(e.parameters[e.parameters.length-1]),r=fp(t)?yp(t):t;return r&&yc(r,1)}}function jc(e,t,r,n){var i=Jc(e,kc(t,e.typeParameters,Ec(e.typeParameters),r));if(n){var a=Xy(Mc(i));if(a){var o=cs(a);o.typeParameters=n;var s=cs(i);return s.resolvedReturnType=qc(o),s}}return i}function Jc(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=$c(r),a=n.get(i);return a||n.set(i,a=zc(t,r)),a}function zc(e,t){return O_(e,function(e,t){return S_(e.typeParameters,t)}(e,t),!0)}function Uc(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return O_(e,N_(e.typeParameters),!0)}(e)):e}function Vc(t){return t.typeParameters?t.canonicalSignatureCache||(t.canonicalSignatureCache=function(t){return jc(t,e.map(t.typeParameters,(function(e){return e.target&&!Vs(e.target)?e.target:e})),e.isInJSFile(t.declaration))}(t)):t}function Kc(t){var r=t.typeParameters;if(r){var n=N_(r);return O_(t,S_(r,e.map(r,(function(e){return V_(Gs(e),n)||Ee}))),!0)}return t}function qc(t){if(!t.isolatedSignatureType){var r=t.declaration?t.declaration.kind:0,n=166===r||170===r||175===r,i=Bi(16);i.members=T,i.properties=e.emptyArray,i.callSignatures=n?e.emptyArray:[t],i.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=i}return t.isolatedSignatureType}function Wc(e){return e.members.get("__index")}function Hc(t,r){var n=1===r?144:147,i=Wc(t);if(i)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.cast(s,e.isIndexSignatureDeclaration);if(1===c.parameters.length){var u=c.parameters[0];if(u.type&&u.type.kind===n)return c}}}function Gc(e,t,r){return{type:e,isReadonly:t,declaration:r}}function Xc(t,r){var n=Hc(t,r);if(n)return Gc(n.type?v_(n.type):be,e.hasEffectiveModifier(n,64),n)}function Qc(t){return e.mapDefined(e.filter(t.symbol&&t.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function Yc(t){if(!t.constraint)if(t.target){var r=Vs(t.target);t.constraint=r?V_(r,t.mapper):ot}else{var n=Qc(t);if(n){var i=v_(n);1&i.flags&&i!==Se&&(i=190===n.parent.parent.kind?Xe:Ee),t.constraint=i}else t.constraint=function(t){var r;if(t.symbol)for(var n=0,i=t.symbol.declarations;n<i.length;n++){var a=i[n];if(185===a.parent.kind){var o=e.walkUpParenthesizedTypesAndGetParentAndChild(a.parent.parent),s=o[0],c=void 0===s?a.parent:s,u=o[1];if(173===u.kind){var l=u,_=yb(l);if(_){var d=l.typeArguments.indexOf(c);if(d<_.length){var p=Vs(_[d]);if(p){var f=V_(p,S_(_,gb(l,_)));f!==t&&(r=e.append(r,f))}}}}else 160===u.kind&&u.dotDotDotToken||181===u.kind||192===u.kind&&u.dotDotDotToken?r=e.append(r,Ou(Ee)):194===u.kind?r=e.append(r,we):159===u.kind&&190===u.parent.kind&&(r=e.append(r,Xe))}}return r&&ul(r)}(t)||ot}return t.constraint===ot?void 0:t.constraint}function Zc(t){var r=e.getDeclarationOfKind(t.symbol,159),n=e.isJSDocTemplateTag(r.parent)?e.getHostSignatureFromJSDoc(r.parent):r.parent;return n&&Ci(n)}function $c(e){var t="";if(e)for(var r=e.length,n=0;n<r;){for(var i=e[n].id,a=1;n+a<r&&e[n+a].id===i+a;)a++;t.length&&(t+=","),t+=i,a>1&&(t+=":"+a),n+=a}return t}function eu(e,t){return e?"@"+w(e)+(t?":"+$c(t):""):""}function tu(t,r){for(var n=0,i=0,a=t;i<a.length;i++){var o=a[i];o.flags&r||(n|=e.getObjectFlags(o))}return 3670016&n}function ru(e,t){var r=$c(t),n=e.instantiations.get(r);return n||(n=Bi(4,e.symbol),e.instantiations.set(r,n),n.objectFlags|=t?tu(t,0):0,n.target=e,n.resolvedTypeArguments=t),n}function nu(e){var t=Oi(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function iu(e,t,r,n,i){if(!n){var a=t_(n=e_(t));i=r?x_(a,r):a}var o=Bi(4,e.symbol);return o.target=e,o.node=t,o.mapper=r,o.aliasSymbol=n,o.aliasTypeArguments=i,o}function au(t){var r,n;if(!t.resolvedTypeArguments){if(!xa(t,6))return(null===(r=t.target.localTypeParameters)||void 0===r?void 0:r.map((function(){return Se})))||e.emptyArray;var i=t.node,a=i?173===i.kind?e.concatenate(t.target.outerTypeParameters,gb(i,t.target.localTypeParameters)):178===i.kind?[v_(i.elementType)]:e.map(i.elements,v_):e.emptyArray;Ta()?t.resolvedTypeArguments=t.mapper?x_(a,t.mapper):a:(t.resolvedTypeArguments=(null===(n=t.target.localTypeParameters)||void 0===n?void 0:n.map((function(){return Se})))||e.emptyArray,cn(t.node||c,t.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,t.target.symbol&&aa(t.target.symbol)))}return t.resolvedTypeArguments}function ou(t){return e.length(t.target.typeParameters)}function su(t,r){var n=jo(Ti(r)),i=n.localTypeParameters;if(i){var a=e.length(t.typeArguments),o=Ec(i),s=e.isInJSFile(t);if(!(!G&&s)&&(a<o||a>i.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(cn(t,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,sa(n,void 0,2),o,i.length),!s)return Se}return 173===t.kind&&Bu(t,e.length(t.typeArguments)!==i.length)?iu(n,t,void 0):ru(n,e.concatenate(n.outerTypeParameters,kc(bu(t),i,o,s)))}return yu(t,r)?n:Se}function cu(t,r,n,i){var a=jo(t);if(a===Ce&&N.has(t.escapedName)&&r&&1===r.length)return Sl(t,r[0]);var o=Sn(t),s=o.typeParameters,c=$c(r)+eu(n,i),u=o.instantiations.get(c);return u||o.instantiations.set(c,u=K_(a,S_(s,kc(r,s,Ec(s),e.isInJSFile(t.valueDeclaration))),n,i)),u}function uu(t){switch(t.kind){case 173:return t.typeName;case 223:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function lu(e,t,r){return e&&ui(e,t,r)||ve}function _u(t,r){if(r===ve)return Se;if(96&(r=function(t){var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)&&!e.getExpandoInitializer(r,!1)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=Ci(n);if(i)return Fv(i,t)}}}(r)||r).flags)return su(t,r);if(524288&r.flags)return function(t,r){var n=jo(r),i=Sn(r).typeParameters;if(i){var a=e.length(t.typeArguments),o=Ec(i);if(a<o||a>i.length)return cn(t,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,aa(r),o,i.length),Se;var s=e_(t);return cu(r,bu(t),s,t_(s))}return yu(t,r)?n:Se}(t,r);var n=Jo(r);if(n)return yu(t,r)?__(n):Se;if(111551&r.flags&&mu(t)){var i=function(e,t){var r=Tn(e);if(!r.resolvedJSDocType){var n=_o(t),i=n;if(t.valueDeclaration){var a=195===e.kind&&e.qualifier;n.symbol&&n.symbol!==t&&a&&(i=_u(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType}(t,r);return i||(lu(uu(t),788968),_o(r))}return Se}function du(e,t){if(3&t.flags||t===e)return e;var r=Xu(e)+">"+Xu(t),n=ge.get(r);if(n)return n;var i=Oi(33554432);return i.baseType=e,i.substitute=t,ge.set(r,i),i}function pu(e){return 179===e.kind&&1===e.elements.length}function fu(e,t,r){return pu(t)&&pu(r)?fu(e,t.elements[0],r.elements[0]):Vl(v_(t))===e?v_(r):void 0}function gu(t,r){for(var n;r&&!e.isStatement(r)&&311!==r.kind;){var i=r.parent;if(184===i.kind&&r===i.trueType){var a=fu(t,i.checkType,i.extendsType);a&&(n=e.append(n,a))}r=i}return n?du(t,ul(e.append(n,t))):t}function mu(e){return!!(4194304&e.flags)&&(173===e.kind||195===e.kind)}function yu(t,r){return!t.typeArguments||(cn(t,e.Diagnostics.Type_0_is_not_generic,r?aa(r):t.typeName?e.declarationNameToString(t.typeName):o),!1)}function vu(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return yu(t),we;case"Number":return yu(t),Ie;case"Boolean":return yu(t),je;case"Void":return yu(t),ze;case"Undefined":return yu(t),ke;case"Null":return yu(t),Fe;case"Function":case"function":return yu(t),mt;case"array":return r&&r.length||G?void 0:Et;case"promise":return r&&r.length||G?void 0:sh(be);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=v_(r[0]),i=Gc(v_(r[1]),!1);return Vi(void 0,T,e.emptyArray,e.emptyArray,n===we?i:void 0,n===Ie?i:void 0)}return be}return yu(t),G?void 0:be}}}function hu(t){var r=Tn(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=ve,r.resolvedType=Jh(t.parent.expression);var n=void 0,i=void 0,a=788968;mu(t)&&((i=vu(t))||((n=lu(uu(t),a,!0))===ve?n=lu(uu(t),900095):lu(uu(t),a),i=_u(t,n))),i||(i=_u(t,n=lu(uu(t),a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function bu(t){return e.map(t.typeArguments,v_)}function xu(e){var t=Tn(e);return t.resolvedType||(t.resolvedType=__(Jp(ib(e.exprName)))),t.resolvedType}function Du(t,r){function n(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 252:case 253:case 255:return n}}}if(!t)return r?it:et;var i=jo(t);return 524288&i.flags?e.length(i.typeParameters)!==r?(cn(n(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(t),r),r?it:et):i:(cn(n(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(t)),r?it:et)}function Su(t,r){return Tu(t,111551,r?e.Diagnostics.Cannot_find_global_value_0:void 0)}function Tu(e,t,r){return An(void 0,e,t,r,e,!1)}function Cu(t,r,n){var i=function(t,r){return Tu(t,788968,r?e.Diagnostics.Cannot_find_global_type_0:void 0)}(t,n);return i||n?Du(i,r):void 0}function Eu(e){return Ft||(Ft=Su("Symbol",e))}function ku(e){return Pt||(Pt=Cu("Symbol",0,e))||et}function Nu(e){return It||(It=Cu("Promise",1,e))||it}function Au(e){return Mt||(Mt=Su("Promise",e))}function Fu(e){return Rt||(Rt=Cu("Iterable",1,e))||it}function Pu(e,t){void 0===t&&(t=0);var r=Tu(e,788968,void 0);return r&&Du(r,t)}function wu(e,t){return e!==it?ru(e,t):et}function Iu(e){return wu(wt||(wt=Cu("TypedPropertyDescriptor",1,!0))||it,[e])}function Ou(e,t){return wu(t?bt:ht,[e])}function Mu(e){switch(e.kind){case 180:return 2;case 181:return Lu(e);case 192:return e.questionToken?2:e.dotDotDotToken?Lu(e):1;default:return 1}}function Lu(e){return y_(e.type)?4:8}function Ru(t){var r=function(t){return e.isTypeOperatorNode(t)&&142===t.operator}(t.parent);return y_(t)?r?bt:ht:Uu(e.map(t.elements,Mu),r,e.some(t.elements,(function(e){return 192!==e.kind}))?void 0:t.elements)}function Bu(t,r){return!!e_(t)||ju(t)&&(178===t.kind?Ju(t.elementType):179===t.kind?e.some(t.elements,Ju):r||e.some(t.typeArguments,Ju))}function ju(e){var t=e.parent;switch(t.kind){case 186:case 192:case 173:case 182:case 183:case 189:case 184:case 188:case 178:case 179:return ju(t);case 254:return!0}return!1}function Ju(t){switch(t.kind){case 173:return mu(t)||!!(524288&lu(t.typeName,788968).flags);case 176:return!0;case 188:return 151!==t.operator&&Ju(t.type);case 186:case 180:case 192:case 307:case 305:case 306:case 301:return Ju(t.type);case 181:return 178!==t.type.kind||Ju(t.type.elementType);case 182:case 183:return e.some(t.types,Ju);case 189:return Ju(t.objectType)||Ju(t.indexType);case 184:return Ju(t.checkType)||Ju(t.extendsType)||Ju(t.trueType)||Ju(t.falseType)}return!1}function zu(t,r,n,i){void 0===n&&(n=!1);var a=Uu(r||e.map(t,(function(e){return 1})),n,i);return a===it?et:t.length?Vu(a,t):a}function Uu(t,r,n){if(1===t.length&&4&t[0])return r?bt:ht;var i=e.map(t,(function(e){return 1&e?"#":2&e?"?":4&e?".":"*"})).join()+(r?"R":"")+(n&&n.length?","+e.map(n,P).join(","):""),a=ce.get(i);return a||ce.set(i,a=function(t,r,n){var i,a=t.length,o=e.countWhere(t,(function(e){return!!(9&e)})),s=[],c=0;if(a){i=new Array(a);for(var u=0;u<a;u++){var l=i[u]=ji(),_=t[u];if(!(12&(c|=_))){var d=fn(4|(2&_?16777216:0),""+u,r?8:0);d.tupleLabelDeclaration=null==n?void 0:n[u],d.type=l,s.push(d)}}}var p=s.length,f=fn(4,"length");if(12&c)f.type=Ie;else{var g=[];for(u=o;u<=a;u++)g.push(p_(u));f.type=rl(g)}s.push(f);var m=Bi(12);return m.typeParameters=i,m.outerTypeParameters=void 0,m.localTypeParameters=i,m.instantiations=new e.Map,m.instantiations.set($c(m.typeParameters),m),m.target=m,m.resolvedTypeArguments=m.typeParameters,m.thisType=ji(),m.thisType.isThisType=!0,m.thisType.constraint=m,m.declaredProperties=s,m.declaredCallSignatures=e.emptyArray,m.declaredConstructSignatures=e.emptyArray,m.declaredStringIndexInfo=void 0,m.declaredNumberIndexInfo=void 0,m.elementFlags=t,m.minLength=o,m.fixedLength=p,m.hasRestElement=!!(12&c),m.combinedFlags=c,m.readonly=r,m.labeledElementDeclarations=n,m}(t,r,n)),a}function Vu(e,t){return 8&e.objectFlags?Ku(e,t):ru(e,t)}function Ku(t,r){var n,i,a;if(!(14&t.combinedFlags))return ru(t,r);if(8&t.combinedFlags){var o=e.findIndex(r,(function(e,r){return!!(8&t.elementFlags[r]&&1179648&e.flags)}));if(o>=0)return _l(e.map(r,(function(e,r){return 8&t.elementFlags[r]?e:Ee})))?cg(r[o],(function(n){return Ku(t,e.replaceElement(r,o,n))})):Se}for(var s=[],u=[],l=[],_=-1,d=-1,p=-1,f=function(o){var u=r[o],l=t.elementFlags[o];if(8&l)if(58982400&u.flags||Ls(u))v(u,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]);else if(fp(u)){var _=au(u);if(_.length+s.length>=1e4)return cn(c,e.isPartOfTypeNode(c)?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:Se};e.forEach(_,(function(e,t){var r;return v(e,u.target.elementFlags[t],null===(r=u.target.labeledElementDeclarations)||void 0===r?void 0:r[t])}))}else v(rp(u)&&yc(u,1)||Se,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]);else v(u,l,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},g=0;g<r.length;g++){var m=f(g);if("object"==typeof m)return m.value}for(g=0;g<_;g++)2&u[g]&&(u[g]=1);d>=0&&d<p&&(s[d]=rl(e.sameMap(s.slice(d,p+1),(function(e,t){return 8&u[d+t]?Bl(e,Ie):e}))),s.splice(d+1,p-d),u.splice(d+1,p-d),null==l||l.splice(d+1,p-d));var y=Uu(u,t.readonly,l);return y===it?et:u.length?ru(y,s):y;function v(e,t,r){1&t&&(_=u.length),4&t&&d<0&&(d=u.length),6&t&&(p=u.length),s.push(e),u.push(t),l&&r?l.push(r):l=void 0}}function qu(t,r,n){void 0===n&&(n=0);var i=t.target,a=ou(t)-n;return r>i.fixedLength?function(e){var t=yp(e);return t&&Ou(t)}(t)||zu(e.emptyArray):zu(au(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function Wu(t){return rl(e.append(e.arrayOf(t.target.fixedLength,(function(e){return p_(""+e)})),hl(t.target.readonly?bt:ht)))}function Hu(t,r){var n=e.findIndex(t.elementFlags,(function(e){return!(e&r)}));return n>=0?n:t.elementFlags.length}function Gu(t,r){return t.elementFlags.length-e.findLastIndex(t.elementFlags,(function(e){return!(e&r)}))-1}function Xu(e){return e.id}function Qu(t,r){return e.binarySearch(t,r,Xu,e.compareValues)>=0}function Yu(t,r){var n=e.binarySearch(t,r,Xu,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function Zu(t,r,n){var i=n.flags;if(1048576&i)return $u(t,r|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(n)?1048576:0),n.types);if(!(131072&i))if(r|=205258751&i,469499904&i&&(r|=262144),n===De&&(r|=8388608),!K&&98304&i)524288&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,Xu,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function $u(e,t,r){for(var n=0,i=r;n<i.length;n++){t=Zu(e,t,i[n])}return t}function el(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];if(1048576&a.flags){var o=a.origin;a.aliasSymbol||o&&!(1048576&o.flags)?e.pushIfUnique(t,a):o&&1048576&o.flags&&el(t,o.types)}}}function tl(e,t){var r=Mi(e);return r.types=t,r}function rl(t,r,n,i,a){if(void 0===r&&(r=1),0===t.length)return Ue;if(1===t.length)return t[0];var o=[],s=$u(o,0,t);if(0!==r){if(3&s)return 1&s?8388608&s?De:be:Ee;if(3&r&&((11136&s||16384&s&&32768&s)&&function(t,r,n){for(var i=t.length;i>0;){var a=t[--i],o=a.flags;(128&o&&4&r||256&o&&8&r||2048&o&&64&r||8192&o&&4096&r||n&&32768&o&&16384&r||d_(a)&&Qu(t,a.regularType))&&e.orderedRemoveItemAt(t,i)}}(o,s,!!(2&r)),128&s&&134217728&s&&function(t){var r=e.filter(t,Fl);if(r.length)for(var n=t.length,i=function(){n--;var i=t[n];128&i.flags&&e.some(r,(function(e){return nd(i,e)}))&&e.orderedRemoveItemAt(t,n)};n>0;)i()}(o)),2&r&&!function(t,r){for(var n=r&&e.some(t,(function(e){return!!(524288&e.flags)&&!Ls(e)&&xd(Rs(e))})),i=t.length,a=i,o=0;a>0;){var s=t[--a];if(n||469499904&s.flags)for(var u=0,l=t;u<l.length;u++){var _=l[u];if(s!==_){if(1e5===o&&o/(i-a)*i>1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:t.map((function(e){return e.id}))}),cn(c,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1;if(o++,kd(s,_,$r)&&(!(1&e.getObjectFlags(fo(s)))||!(1&e.getObjectFlags(fo(_)))||ad(s,_))){e.orderedRemoveItemAt(t,a);break}}}}return!0}(o,!!(524288&s)))return Se;if(0===o.length)return 65536&s?4194304&s?Fe:Pe:32768&s?4194304&s?ke:Ne:Ue}if(!a&&1048576&s){var u=[];el(u,t);for(var l=[],_=function(t){e.some(u,(function(e){return Qu(e.types,t)}))||l.push(t)},d=0,p=o;d<p.length;d++){_(p[d])}if(!n&&1===u.length&&0===l.length)return u[0];if(e.reduceLeft(u,(function(e,t){return e+t.types.length}),0)+l.length===o.length){for(var f=0,g=u;f<g.length;f++){Yu(l,g[f])}a=tl(1048576,l)}}return il(o,(468598819&s?0:262144)|(2097152&s?268435456:0),n,i,a)}function nl(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function il(e,t,r,n,i){if(0===e.length)return Ue;if(1===e.length)return e[0];var a=(i?1048576&i.flags?"|"+$c(i.types):2097152&i.flags?"&"+$c(i.types):"#"+i.type.id:$c(e))+eu(r,n),o=ue.get(a);return o||((o=function(e,t,r,n){var i=Oi(1048576);return i.objectFlags=tu(e,98304),i.types=e,i.origin=n,i.aliasSymbol=t,i.aliasTypeArguments=r,i}(e,r,n,i)).objectFlags|=t,ue.set(a,o)),o}function al(e,t,r){var n=r.flags;return 2097152&n?ol(e,t,r.types):(Sd(r)?16777216&t||(t|=16777216,e.set(r.id.toString(),r)):(3&n?r===De&&(t|=8388608):!K&&98304&n||e.has(r.id.toString())||(109440&r.flags&&109440&t&&(t|=67108864),e.set(r.id.toString(),r)),t|=205258751&n),t)}function ol(e,t,r){for(var n=0,i=r;n<i.length;n++){t=al(e,t,__(i[n]))}return t}function sl(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!Qu(i.types,t)){var a=128&t.flags?we:256&t.flags?Ie:2048&t.flags?Oe:8192&t.flags?Je:void 0;if(!a||!Qu(i.types,a))return!1}}return!0}function cl(t,r){if(e.every(t,(function(t){return!!(1048576&t.flags)&&e.some(t.types,(function(e){return!!(e.flags&r)}))}))){for(var n=0;n<t.length;n++)t[n]=og(t[n],(function(e){return!(e.flags&r)}));return!0}return!1}function ul(t,r,n){var i=new e.Map,a=ol(i,0,t),o=e.arrayFrom(i.values());if(131072&a||K&&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 Ue;if(134217728&a&&128&a&&function(t){for(var r=t.length,n=e.filter(t,(function(e){return!!(128&e.flags)}));r>0;){var i=t[--r];if(134217728&i.flags)for(var a=0,o=n;a<o.length;a++){if(nd(o[a],i)){e.orderedRemoveItemAt(t,r);break}if(Fl(i))return!0}}return!1}(o))return Ue;if(1&a)return 8388608&a?De:be;if(!K&&98304&a)return 32768&a?ke:Fe;if((4&a&&128&a||8&a&&256&a||64&a&&2048&a||4096&a&&8192&a)&&function(t,r){for(var n=t.length;n>0;){var i=t[--n];(4&i.flags&&128&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r)&&e.orderedRemoveItemAt(t,n)}}(o,a),16777216&a&&524288&a&&e.orderedRemoveItemAt(o,e.findIndex(o,Sd)),0===o.length)return Ee;if(1===o.length)return o[0];var s=$c(o)+eu(r,n),c=le.get(s);if(!c){if(1048576&a)if(function(t){var r,n=e.findIndex(t,(function(t){return!!(262144&e.getObjectFlags(t))}));if(n<0)return!1;for(var i=n+1;i<t.length;){var a=t[i];262144&e.getObjectFlags(a)?((r||(r=[t[n]])).push(a),e.orderedRemoveItemAt(t,i)):i++}if(!r)return!1;for(var o=[],s=[],c=0,u=r;c<u.length;c++)for(var l=0,_=u[c].types;l<_.length;l++)Yu(o,a=_[l])&&sl(r,a)&&Yu(s,a);return t[n]=il(s,262144),!0}(o))c=ul(o,r,n);else if(cl(o,32768))c=rl([ul(o),ke],1,r,n);else if(cl(o,65536))c=rl([ul(o),Fe],1,r,n);else{if(!_l(o))return Se;var u=function(e){for(var t=ll(e),r=[],n=0;n<t;n++){for(var i=e.slice(),a=n,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 u=ul(i);131072&u.flags||r.push(u)}return r}(o);c=rl(u,1,r,n,e.some(u,(function(e){return!!(2097152&e.flags)}))?tl(2097152,o):void 0)}else c=function(e,t,r){var n=Oi(2097152);return n.objectFlags=tu(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n}(o,r,n);le.set(s,c)}return c}function ll(t){return e.reduceLeft(t,(function(e,t){return 1048576&t.flags?e*t.types.length:131072&t.flags?0:e}),1)}function _l(t){var r=ll(t);return!(r>=1e5)||(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:t.map((function(e){return e.id})),size:r}),cn(c,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function dl(e,t){var r=Oi(4194304);return r.type=e,r.stringsOnly=t,r}function pl(e,t,r){return V_(e,w_(t.mapper,Es(t),r))}function fl(t){return!(!t||!(16777216&t.flags&&(!t.root.isDistributive||fl(t.checkType))||137363456&t.flags&&e.some(t.types,fl)||272629760&t.flags&&fl(t.type)||8388608&t.flags&&fl(t.indexType)||33554432&t.flags&&fl(t.substitute)))}function gl(t){return e.isPrivateIdentifier(t)?Ue:e.isIdentifier(t)?p_(e.unescapeLeadingUnderscores(t.escapedText)):__(e.isComputedPropertyName(t)?wm(t):ib(t))}function ml(t,r){if(!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var n=Sn(is(t)).nameType;if(!n&&!e.isKnownSymbol(t))if("default"===t.escapedName)n=p_("default");else{var i=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);n=i&&gl(i)||p_(e.symbolName(t))}if(n&&n.flags&r)return n}return Ue}function yl(t,r,n){var i=n&&(7&e.getObjectFlags(t)||t.aliasSymbol)?function(e){var t=Mi(4194304);return t.type=e,t}(t):void 0;return rl(e.map(zs(t),(function(e){return ml(e,r)})),1,void 0,void 0,i)}function vl(e){var t=mc(e,1);return t!==lr?t:void 0}function hl(t,r,n){void 0===r&&(r=Q);var i=r===Q&&!n;return 1048576&(t=oc(t)).flags?ul(e.map(t.types,(function(e){return hl(e,r,n)}))):2097152&t.flags?rl(e.map(t.types,(function(e){return hl(e,r,n)}))):58982400&t.flags||gp(t)||Ls(t)&&fl(Ns(t))?function(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=dl(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=dl(e,!1))}(t,r):32&e.getObjectFlags(t)?function(t,r){var n=og(ks(t),(function(e){return!(r&&5&e.flags)})),i=t.declaration.nameType&&v_(t.declaration.nameType),a=i&&ag(n,(function(e){return!!(131084&e.flags)}))&&zs(tc(ws(t)));return i?rl([cg(n,(function(e){return pl(i,t,e)})),cg(rl(e.map(a||e.emptyArray,(function(e){return ml(e,8576)}))),(function(e){return pl(i,t,e)}))]):n}(t,n):t===De?De:2&t.flags?Ue:131073&t.flags?Xe:r?!n&&mc(t,0)?we:yl(t,128,i):!n&&mc(t,0)?rl([we,Ie,yl(t,8192,i)]):vl(t)?rl([Ie,yl(t,8320,i)]):yl(t,8576,i)}function bl(t){if(Q)return t;var r=Xt||(Xt=Tu("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return r?cu(r,[t,we]):we}function xl(t,r){var n=e.findIndex(r,(function(e){return!!(1179648&e.flags)}));if(n>=0)return _l(r)?cg(r[n],(function(i){return xl(t,e.replaceElement(r,n,i))})):Se;if(e.contains(r,De))return De;var i=[],a=[],o=t[0];if(!function e(t,r){for(var n=0;n<r.length;n++){var s=r[n];if(101248&s.flags)o+=Dl(s)||"",o+=t[n+1];else if(134217728&s.flags){if(o+=s.texts[0],!e(s.texts,s.types))return!1;o+=t[n+1]}else{if(!wl(s)&&!Al(s))return!1;i.push(s),a.push(o),o=t[n+1]}}return!0}(t,r))return we;if(0===i.length)return p_(o);if(a.push(o),e.every(a,(function(e){return""===e}))&&e.every(i,(function(e){return!!(4&e.flags)})))return we;var s=$c(i)+"|"+e.map(a,(function(e){return e.length})).join(",")+"|"+a.join(""),c=pe.get(s);return c||pe.set(s,c=function(e,t){var r=Oi(134217728);return r.texts=e,r.types=t,r}(a,i)),c}function Dl(t){return 128&t.flags?t.value:256&t.flags?""+t.value:2048&t.flags?e.pseudoBigIntToString(t.value):512&t.flags?t.intrinsicName:65536&t.flags?"null":32768&t.flags?"undefined":void 0}function Sl(e,t){return 1179648&t.flags?cg(t,(function(t){return Sl(e,t)})):wl(t)?function(e,t){var r=w(e)+","+Xu(t),n=fe.get(r);n||fe.set(r,n=function(e,t){var r=Oi(268435456);return r.symbol=e,r.type=t,r}(e,t));return n}(e,t):128&t.flags?p_(function(e,t){switch(N.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}(e,t.value)):t}function Tl(t){if(G)return!1;if(16384&e.getObjectFlags(t))return!0;if(1048576&t.flags)return e.every(t.types,Tl);if(2097152&t.flags)return e.some(t.types,Tl);if(465829888&t.flags){var r=Ys(t);return r!==t&&Tl(r)}return!1}function Cl(t,r){var n=r&&202===r.kind?r:void 0;return Xo(t)?es(t):n&&By(n.argumentExpression,t,!1)?e.getPropertyNameForKnownSymbolName(e.idText(n.argumentExpression.name)):r&&e.isPropertyName(r)?e.getPropertyNameForPropertyNameNode(r):void 0}function El(t,r){if(8208&r.flags){var n=e.findAncestor(t.parent,(function(t){return!e.isAccessExpression(t)}))||t.parent;return e.isCallLikeExpression(n)?e.isCallOrNewExpression(n)&&e.isIdentifier(t)&&Lf(n,t):e.every(r.declarations,(function(t){return!e.isFunctionLike(t)||!!(134217728&e.getCombinedNodeFlags(t))}))}return!0}function kl(t,r,n,i,a,o,s,c,u){var l,_=o&&202===o.kind?o:void 0,d=o&&e.isPrivateIdentifier(o)?void 0:Cl(n,o);if(void 0!==d){var p=_c(r,d);if(p){if(u&&o&&134217728&ay(p)&&El(o,p))pn(null!==(l=null==_?void 0:_.argumentExpression)&&void 0!==l?l:e.isIndexedAccessTypeNode(o)?o.indexType:o,p.declarations,d);if(_){if(Iy(p,_,107===_.expression.kind),Dh(_,p,e.getAssignmentTargetKind(_)))return void cn(_.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,aa(p));if(4&s&&(Tn(o).resolvedSymbol=p),Dy(_,p))return xe}var f=_o(p);return _&&1!==e.getAssignmentTargetKind(_)?Fg(_,f):f}if(ag(r,fp)&&Pm(d)&&+d>=0){if(o&&ag(r,(function(e){return!e.target.hasRestElement}))&&!(8&s)){var g=Nl(o);fp(r)?cn(g,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,sa(r),ou(r),e.unescapeLeadingUnderscores(d)):cn(g,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(d),sa(r))}return T(mc(r,1)),cg(r,(function(e){var t=yp(e)||ke;return c?rl([t,ke]):t}))}}if(!(98304&n.flags)&&kh(n,402665900)){if(131073&r.flags)return r;var m=mc(r,0),y=kh(n,296)&&mc(r,1)||m;if(y)return 1&s&&y===m?void(_&&cn(_,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,sa(n),sa(t))):o&&!kh(n,12)?(cn(g=Nl(o),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,sa(n)),c?rl([y.type,ke]):y.type):(T(y),c?rl([y.type,ke]):y.type);if(131072&n.flags)return Ue;if(Tl(r))return be;if(_&&!Ah(r)){if(yf(r)){if(G&&384&n.flags)return Gr.add(e.createDiagnosticForNode(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,sa(r))),ke;if(12&n.flags){var v=e.map(r.properties,(function(e){return _o(e)}));return rl(e.append(v,ke))}}if(r.symbol===re&&void 0!==d&&re.exports.has(d)&&418&re.exports.get(d).flags)cn(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(d),sa(r));else if(G&&!J.suppressImplicitAnyIndexErrors&&!a)if(void 0!==d&&Ey(d,r)){var h=sa(r);cn(_,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,d,h,h+"["+e.getTextOfNode(_.argumentExpression)+"]")}else if(yc(r,1))cn(_.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var b=void 0;if(void 0!==d&&(b=Ay(d,r)))void 0!==b&&cn(_.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,d,sa(r),b);else{var x=function(t,r,n){function i(e){var r=js(t,e);if(r){var i=Gy(_o(r));return!!i&&Zv(i)>=1&&id(n,Gv(i,0))}return!1}var a=e.isAssignmentTarget(r)?"set":"get";if(!i(a))return;var o=e.tryGetPropertyAccessOrIdentifierToString(r.expression);void 0===o?o=a:o+="."+a;return o}(r,_,n);if(void 0!==x)cn(_,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,sa(r),x);else{var D=void 0;if(1024&n.flags)D=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+sa(n)+"]",sa(r));else if(8192&n.flags){var S=ci(n.symbol,_);D=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+S+"]",sa(r))}else 128&n.flags||256&n.flags?D=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,sa(r)):12&n.flags&&(D=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,sa(n),sa(r)));D=e.chainDiagnosticMessages(D,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,sa(i),sa(r)),Gr.add(e.createDiagnosticForNodeFromMessageChain(_,D))}}}return}}if(Tl(r))return be;if(o){g=Nl(o);384&n.flags?cn(g,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,sa(r)):12&n.flags?cn(g,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,sa(r),sa(n)):cn(g,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,sa(n))}return ka(n)?n:void 0;function T(t){t&&t.isReadonly&&_&&(e.isAssignmentTarget(_)||e.isDeleteTarget(_))&&cn(_,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,sa(r))}}function Nl(e){return 202===e.kind?e.argumentExpression:189===e.kind?e.indexType:158===e.kind?e.expression:e}function Al(e){return-1!==Ye.types.indexOf(e)||!!(1&e.flags)}function Fl(t){return!!(134217728&t.flags)&&e.every(t.types,Al)}function Pl(t){return 3145728&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|(e.some(t.types,Pl)?8388608:0)),!!(8388608&t.objectFlags)):!!(58982400&t.flags)||Ls(t)||gp(t)}function wl(t){return 3145728&t.flags?(16777216&t.objectFlags||(t.objectFlags|=16777216|(e.some(t.types,wl)?33554432:0)),!!(33554432&t.objectFlags)):!!(465829888&t.flags)&&!Fl(t)}function Il(e){return!!(262144&e.flags&&e.isThisType)}function Ol(t,r){return 8388608&t.flags?function(t,r){var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===st?t:t[n];t[n]=st;var i=Ol(t.objectType,r),a=Ol(t.indexType,r),o=function(t,r,n){if(1048576&r.flags){var i=e.map(r.types,(function(e){return Ol(Bl(t,e),n)}));return n?ul(i):rl(i)}}(i,a,r);if(o)return t[n]=o;if(!(465829888&a.flags)){var s=Ml(i,a,r);if(s)return t[n]=s}if(gp(i)&&296&a.flags){var c=vp(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}if(Ls(i))return t[n]=cg(Rl(i,t.indexType),(function(e){return Ol(e,r)}));return t[n]=t}(t,r):16777216&t.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=Hl(e),a=Gl(e);if(131072&a.flags&&Vl(i)===Vl(r)){if(1&r.flags||id(W_(r),W_(n)))return Ol(i,t);if(Ll(r,n))return Ue}else if(131072&i.flags&&Vl(a)===Vl(r)){if(!(1&r.flags)&&id(W_(r),W_(n)))return Ue;if(1&r.flags||Ll(r,n))return Ol(a,t)}return e}(t,r):t}function Ml(t,r,n){if(3145728&t.flags){var i=e.map(t.types,(function(e){return Ol(Bl(e,r),n)}));return 2097152&t.flags||n?ul(i):rl(i)}}function Ll(e,t){return!!(131072&rl([ms(e,t),Ue]).flags)}function Rl(e,t){var r=S_([Es(e)],[t]),n=A_(e.mapper,r);return V_(As(e),n)}function Bl(e,t,r,n,i,a,o){return void 0===o&&(o=0),Jl(e,t,r,n,o,i,a)||(n?Se:Ee)}function jl(e,t){return ag(e,(function(e){if(384&e.flags){var r=es(e);if(Pm(r)){var n=+r;return n>=0&&n<t}}return!1}))}function Jl(e,t,r,n,i,a,o){if(void 0===i&&(i=0),e===De||t===De)return De;var s=r||!!J.noUncheckedIndexedAccess&&16==(18&i);if(!Td(e)||98304&t.flags||!kh(t,12)||(t=we),wl(t)||(n&&189!==n.kind?gp(e)&&!jl(t,e.target.fixedLength):Pl(e)&&(!fp(e)||!jl(t,e.target.fixedLength)))){if(3&e.flags)return e;var c=e.id+","+t.id+(s?"?":"")+eu(a,o),u=de.get(c);return u||de.set(c,u=function(e,t,r,n,i){var a=Oi(8388608);return a.objectType=e,a.indexType=t,a.aliasSymbol=r,a.aliasTypeArguments=n,a.noUncheckedIndexedAccessCandidate=i,a}(e,t,a,o,s)),u}var l=rc(e);if(1048576&t.flags&&!(16&t.flags)){for(var _=[],d=!1,p=0,f=t.types;p<f.length;p++){var g=kl(e,l,f[p],t,d,n,i,s);if(g)_.push(g);else{if(!n)return;d=!0}}if(d)return;return 2&i?ul(_,a,o):rl(_,1,a,o)}return kl(e,l,t,t,!1,n,4|i,s,!0)}function zl(e){var t=Tn(e);if(!t.resolvedType){var r=v_(e.objectType),n=v_(e.indexType),i=e_(e),a=Bl(r,n,void 0,e,i,t_(i));t.resolvedType=8388608&a.flags&&a.objectType===r&&a.indexType===n?gu(a,e):a}return t.resolvedType}function Ul(e){var t=Tn(e);if(!t.resolvedType){var r=Bi(32,e.symbol);r.declaration=e,r.aliasSymbol=e_(e),r.aliasTypeArguments=t_(r.aliasSymbol),t.resolvedType=r,ks(r)}return t.resolvedType}function Vl(e){return 33554432&e.flags?e.baseType:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?Bl(Vl(e.objectType),Vl(e.indexType)):e}function Kl(t){return!t.isDistributive&&179===t.node.checkType.kind&&1===e.length(t.node.checkType.elements)&&179===t.node.extendsType.kind&&1===e.length(t.node.extendsType.elements)}function ql(e,t){return Kl(e)&&fp(t)?au(t)[0]:t}function Wl(t,r,n,i){for(var a,o;;){var s=Kl(t),c=V_(ql(t,t.checkType),r),u=Pl(c)||wl(c),l=V_(ql(t,t.extendsType),r);if(c===De||l===De)return De;var _=void 0;if(t.inferTypeParameters){var d=Hp(t.inferTypeParameters,void 0,0);u||ff(d.inferences,c,l,768),_=F_(r,d.mapper)}var p=_?V_(ql(t,t.extendsType),_):l;if(!u&&!Pl(p)&&!wl(p)){if(!(3&p.flags)&&(1&c.flags&&!s||!id(q_(c),q_(p)))){1&c.flags&&!s&&(o||(o=[])).push(V_(v_(t.node.trueType),_||r));var f=v_(t.node.falseType);if(16777216&f.flags){var g=f.root;if(g.node.parent===t.node&&(!g.isDistributive||g.checkType===t.checkType)){t=g;continue}}a=V_(f,r);break}if(3&p.flags||id(W_(c),W_(p))){a=V_(v_(t.node.trueType),_||r);break}}(a=Oi(16777216)).root=t,a.checkType=V_(t.checkType,r),a.extendsType=V_(t.extendsType,r),a.mapper=r,a.combinedMapper=_,a.aliasSymbol=n||t.aliasSymbol,a.aliasTypeArguments=n?i:x_(t.aliasTypeArguments,r);break}return o?rl(e.append(o,a)):a}function Hl(e){return e.resolvedTrueType||(e.resolvedTrueType=V_(v_(e.root.node.trueType),e.mapper))}function Gl(e){return e.resolvedFalseType||(e.resolvedFalseType=V_(v_(e.root.node.falseType),e.mapper))}function Xl(t){var r;return t.locals&&t.locals.forEach((function(t){262144&t.flags&&(r=e.append(r,jo(t)))})),r}function Ql(t){return e.isIdentifier(t)?[t]:e.append(Ql(t.left),t.right)}function Yl(t){var r=Tn(t);if(!r.resolvedType){if(t.isTypeOf&&t.typeArguments)return cn(t,e.Diagnostics.Type_arguments_cannot_be_used_here),r.resolvedSymbol=ve,r.resolvedType=Se;if(!e.isLiteralImportTypeNode(t))return cn(t.argument,e.Diagnostics.String_literal_expected),r.resolvedSymbol=ve,r.resolvedType=Se;var n=t.isTypeOf?111551:4194304&t.flags?900095:788968,i=_i(t,t.argument.literal);if(!i)return r.resolvedSymbol=ve,r.resolvedType=Se;var a=gi(i,!1);if(e.nodeIsMissing(t.qualifier)){if(a.flags&n)r.resolvedType=Zl(t,r,a,n);else cn(t,111551===n?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,t.argument.literal.text),r.resolvedSymbol=ve,r.resolvedType=Se}else{for(var o=Ql(t.qualifier),s=a,c=void 0;c=o.shift();){var u=o.length?1920:n,l=Ti(ei(s)),_=t.isTypeOf?_c(_o(l),c.escapedText):En(bi(l),c.escapedText,u);if(!_)return cn(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,ci(s),e.declarationNameToString(c)),r.resolvedType=Se;Tn(c).resolvedSymbol=_,Tn(c.parent).resolvedSymbol=_,s=_}r.resolvedType=Zl(t,r,s,n)}}return r.resolvedType}function Zl(e,t,r,n){var i=ei(r);return t.resolvedSymbol=i,111551===n?_o(r):_u(e,i)}function $l(t){var r=Tn(t);if(!r.resolvedType){var n=e_(t);if(0!==ns(t.symbol).size||n){var i=Bi(16,t.symbol);i.aliasSymbol=n,i.aliasTypeArguments=t_(n),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=Ou(i)),r.resolvedType=i}else r.resolvedType=nt}return r.resolvedType}function e_(t){for(var r=t.parent;e.isParenthesizedTypeNode(r)||e.isJSDocTypeExpression(r)||e.isTypeOperatorNode(r)&&142===r.operator;)r=r.parent;return e.isTypeAlias(r)?Ci(r):void 0}function t_(e){return e?ho(e):void 0}function r_(e){return!!(524288&e.flags)&&!Ls(e)}function n_(e){return Dd(e)||!!(474058748&e.flags)}function i_(t,r){if(e.every(t.types,n_))return e.find(t.types,Dd)||et;var n=e.find(t.types,(function(e){return!n_(e)}));if(n&&!(n&&e.find(t.types,(function(e){return e!==n&&!n_(e)}))))return function(t){for(var n=e.createSymbolTable(),i=0,a=zs(t);i<a.length;i++){var o=a[i];if(24&e.getDeclarationModifierFlagsFromSymbol(o));else if(o_(o)){var s=65536&o.flags&&!(32768&o.flags),c=fn(16777220,o.escapedName,Ts(o)|(r?8:0));c.type=s?ke:rl([_o(o),ke]),c.declarations=o.declarations,c.nameType=Sn(o).nameType,c.syntheticOrigin=o,n.set(o.escapedName,c)}}var u=Vi(t.symbol,n,e.emptyArray,e.emptyArray,mc(t,0),mc(t,1));return u.objectFlags|=1048704,u}(n)}function a_(t,r,n,i,a){if(1&t.flags||1&r.flags)return be;if(2&t.flags||2&r.flags)return Ee;if(131072&t.flags)return r;if(131072&r.flags)return t;var o;if(1048576&t.flags)return(o=i_(t,a))?a_(o,r,n,i,a):_l([t,r])?cg(t,(function(e){return a_(e,r,n,i,a)})):Se;if(1048576&r.flags)return(o=i_(r,a))?a_(t,o,n,i,a):_l([t,r])?cg(r,(function(e){return a_(t,e,n,i,a)})):Se;if(473960444&r.flags)return t;if(Pl(t)||Pl(r)){if(Dd(t))return r;if(2097152&t.flags){var s=t.types,c=s[s.length-1];if(r_(c)&&r_(r))return ul(e.concatenate(s.slice(0,s.length-1),[a_(c,r,n,i,a)]))}return ul([t,r])}var u,l,_=e.createSymbolTable(),d=new e.Set;t===et?(u=mc(r,0),l=mc(r,1)):(u=vs(mc(t,0),mc(r,0)),l=vs(mc(t,1),mc(r,1)));for(var p=0,f=zs(r);p<f.length;p++){var g=f[p];24&e.getDeclarationModifierFlagsFromSymbol(g)?d.add(g.escapedName):o_(g)&&_.set(g.escapedName,s_(g,a))}for(var m=0,y=zs(t);m<y.length;m++){var v=y[m];if(!d.has(v.escapedName)&&o_(v))if(_.has(v.escapedName)){var h=_o(g=_.get(v.escapedName));if(16777216&g.flags){var b=e.concatenate(v.declarations,g.declarations),x=fn(4|16777216&v.flags,v.escapedName);x.type=rl([_o(v),zf(h,524288)]),x.leftSpread=v,x.rightSpread=g,x.declarations=b,x.nameType=Sn(v).nameType,_.set(v.escapedName,x)}}else _.set(v.escapedName,s_(v,a))}var D=Vi(n,_,e.emptyArray,e.emptyArray,c_(u,a),c_(l,a));return D.objectFlags|=1049728|i,D}function o_(t){return!(e.some(t.declarations,e.isPrivateIdentifierPropertyDeclaration)||106496&t.flags&&t.declarations.some((function(t){return e.isClassLike(t.parent)})))}function s_(e,t){var r=65536&e.flags&&!(32768&e.flags);if(!r&&t===xh(e))return e;var n=fn(4|16777216&e.flags,e.escapedName,Ts(e)|(t?8:0));return n.type=r?ke:_o(e),n.declarations=e.declarations,n.nameType=Sn(e).nameType,n.syntheticOrigin=e,n}function c_(e,t){return e&&e.isReadonly!==t?Gc(e.type,t,e.declaration):e}function u_(e,t,r){var n=Oi(e);return n.symbol=r,n.value=t,n}function l_(e){if(2944&e.flags){if(!e.freshType){var t=u_(e.flags,e.value,e.symbol);t.regularType=e,t.freshType=t,e.freshType=t}return e.freshType}return e}function __(e){return 2944&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=cg(e,__)):e}function d_(e){return!!(2944&e.flags)&&e.freshType===e}function p_(t,r,n){var i=(r||"")+("number"==typeof t?"#":"string"==typeof t?"@":"n")+("object"==typeof t?e.pseudoBigIntToString(t):t),a=_e.get(i);if(!a){var o=("number"==typeof t?256:"string"==typeof t?128:2048)|(r?1024:0);_e.set(i,a=u_(o,t,n)),a.regularType=a}return a}function f_(t){if(e.isValidESSymbolDeclaration(t)){var r=Ci(t),n=Sn(r);return n.uniqueESSymbolType||(n.uniqueESSymbolType=function(e){var t=Oi(8192);return t.symbol=e,t.escapedName="__@"+t.symbol.escapedName+"@"+w(t.symbol),t}(r))}return Je}function g_(t){var r=Tn(t);return r.resolvedType||(r.resolvedType=function(t){var r=e.getThisContainer(t,!1),n=r&&r.parent;if(n&&(e.isClassLike(n)||253===n.kind)&&!e.hasSyntacticModifier(r,32)&&(!e.isConstructorDeclaration(r)||e.isNodeDescendantOf(t,r.body)))return Fo(Ci(n)).thisType;if(n&&e.isObjectLiteralExpression(n)&&e.isBinaryExpression(n.parent)&&6===e.getAssignmentDeclarationKind(n.parent))return Fo(Ci(n.parent.left).parent).thisType;var i=4194304&t.flags?e.getHostSignatureFromJSDoc(t):void 0;return i&&e.isFunctionExpression(i)&&e.isBinaryExpression(i.parent)&&3===e.getAssignmentDeclarationKind(i.parent)?Fo(Ci(i.parent.left).parent).thisType:Av(r)&&e.isNodeDescendantOf(t,r.body)?Fo(Ci(r)).thisType:(cn(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Se)}(t)),r.resolvedType}function m_(e){return v_(y_(e.type)||e.type)}function y_(e){switch(e.kind){case 186:return y_(e.type);case 179:if(1===e.elements.length&&(181===(e=e.elements[0]).kind||192===e.kind&&e.dotDotDotToken))return y_(e.type);break;case 178:return e.elementType}}function v_(e){return gu(h_(e),e)}function h_(t){switch(t.kind){case 128:case 303:case 304:return be;case 152:return Ee;case 147:return we;case 144:return Ie;case 155:return Oe;case 131:return je;case 148:return Je;case 113:return ze;case 150:return ke;case 103:return Fe;case 141:return Ue;case 145:return 131072&t.flags&&!G?be:He;case 136:return Ce;case 187:case 107:return g_(t);case 191:return function(e){if(103===e.literal.kind)return Fe;var t=Tn(e);return t.resolvedType||(t.resolvedType=__(ib(e.literal))),t.resolvedType}(t);case 173:return hu(t);case 172:return t.assertsModifier?ze:je;case 223:return hu(t);case 176:return xu(t);case 178:case 179:return function(t){var r=Tn(t);if(!r.resolvedType){var n=Ru(t);if(n===it)r.resolvedType=et;else if(179===t.kind&&e.some(t.elements,(function(e){return!!(8&Mu(e))}))||!Bu(t)){var i=178===t.kind?[v_(t.elementType)]:e.map(t.elements,v_);r.resolvedType=Vu(n,i)}else r.resolvedType=179===t.kind&&0===t.elements.length?n:iu(n,t,void 0)}return r.resolvedType}(t);case 180:return function(e){var t=v_(e.type);return K?Cp(t):t}(t);case 182:return function(t){var r=Tn(t);if(!r.resolvedType){var n=e_(t);r.resolvedType=rl(e.map(t.types,v_),1,n,t_(n))}return r.resolvedType}(t);case 183:return function(t){var r=Tn(t);if(!r.resolvedType){var n=e_(t);r.resolvedType=ul(e.map(t.types,v_),n,t_(n))}return r.resolvedType}(t);case 305:return function(e){var t=v_(e.type);return K?Tp(t,65536):t}(t);case 307:return La(v_(t.type));case 192:return function(e){var t=Tn(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?m_(e):e.questionToken&&K?Cp(v_(e.type)):v_(e.type))}(t);case 186:case 306:case 301:return v_(t.type);case 181:return m_(t);case 309:return function(t){var r=v_(t.type),n=t.parent,i=t.parent.parent;if(e.isJSDocTypeExpression(t.parent)&&e.isJSDocParameterTag(i)){var a=e.getHostSignatureFromJSDoc(i);if(a){var o=e.lastOrUndefined(a.parameters),s=e.getParameterSymbolFromJSDoc(i);if(!o||s&&o.symbol===s&&e.isRestParameter(o))return Ou(r)}}if(e.isParameter(n)&&e.isJSDocFunctionType(n.parent))return Ou(r);return La(r)}(t);case 174:case 175:case 177:case 312:case 308:case 313:return $l(t);case 188:return function(t){var r=Tn(t);if(!r.resolvedType)switch(t.operator){case 138:r.resolvedType=hl(v_(t.type));break;case 151:r.resolvedType=148===t.type.kind?f_(e.walkUpParenthesizedTypes(t.parent)):Se;break;case 142:r.resolvedType=v_(t.type);break;default:throw e.Debug.assertNever(t.operator)}return r.resolvedType}(t);case 189:return zl(t);case 190:return Ul(t);case 184:return function(t){var r=Tn(t);if(!r.resolvedType){var n=v_(t.checkType),i=e_(t),a=t_(i),o=yo(t,!0),s=a?o:e.filter(o,(function(e){return L_(e,t)})),c={node:t,checkType:n,extendsType:v_(t.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:Xl(t),outerTypeParameters:s,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:a};r.resolvedType=Wl(c,void 0),s&&(c.instantiations=new e.Map,c.instantiations.set($c(s),r.resolvedType))}return r.resolvedType}(t);case 185:return function(e){var t=Tn(e);return t.resolvedType||(t.resolvedType=Bo(Ci(e.typeParameter))),t.resolvedType}(t);case 193:return function(t){var r=Tn(t);return r.resolvedType||(r.resolvedType=xl(__spreadArray([t.head.text],e.map(t.templateSpans,(function(e){return e.literal.text}))),e.map(t.templateSpans,(function(e){return v_(e.type)})))),r.resolvedType}(t);case 195:return Yl(t);case 78:case 157:case 201:var r=LD(t);return r?jo(r):Se;default:return Se}}function b_(e,t,r){if(e&&e.length)for(var n=0;n<e.length;n++){var i=e[n],a=r(i,t);if(i!==a){var o=0===n?[]:e.slice(0,n);for(o.push(a),n++;n<e.length;n++)o.push(r(e[n],t));return o}}return e}function x_(e,t){return b_(e,t,V_)}function D_(e,t){return b_(e,t,O_)}function S_(e,t){return 1===e.length?C_(e[0],t?t[0]:be):function(e,t){return{kind:1,sources:e,targets:t}}(e,t)}function T_(e,t){switch(t.kind){case 0:return e===t.source?t.target:e;case 1:for(var r=t.sources,n=t.targets,i=0;i<r.length;i++)if(e===r[i])return n?n[i]:be;return e;case 2:return t.func(e);case 3:case 4:var a=T_(e,t.mapper1);return a!==e&&3===t.kind?V_(a,t.mapper2):T_(a,t.mapper2)}}function C_(e,t){return{kind:0,source:e,target:t}}function E_(e){return{kind:2,func:e}}function k_(e,t,r){return{kind:e,mapper1:t,mapper2:r}}function N_(e){return S_(e,void 0)}function A_(e,t){return e?k_(3,e,t):t}function F_(e,t){return e?k_(4,e,t):t}function P_(e,t,r){return r?k_(4,C_(e,t),r):C_(e,t)}function w_(e,t,r){return e?k_(4,e,C_(t,r)):C_(t,r)}function I_(e){var t=ji(e.symbol);return t.target=e,t}function O_(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,I_),r=A_(S_(t.typeParameters,i),r);for(var a=0,o=i;a<o.length;a++){o[a].mapper=r}}var s=ss(t.declaration,i,t.thisParameter&&M_(t.thisParameter,r),b_(t.parameters,r,M_),void 0,void 0,t.minArgumentCount,39&t.flags);return s.target=t,s.mapper=r,s}function M_(t,r){var n=Sn(t);if(n.type&&!ef(n.type))return t;1&e.getCheckFlags(t)&&(t=n.target,r=A_(n.mapper,r));var i=fn(t.flags,t.escapedName,1|53256&e.getCheckFlags(t));return i.declarations=t.declarations,i.parent=t.parent,i.target=t,i.mapper=r,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),n.nameType&&(i.nameType=n.nameType),i}function L_(t,r){if(t.symbol&&t.symbol.declarations&&1===t.symbol.declarations.length){for(var n=t.symbol.declarations[0].parent,i=r;i!==n;i=i.parent)if(!i||230===i.kind||184===i.kind&&e.forEachChild(i.extendsType,a))return!0;return!!e.forEachChild(r,a)}return!0;function a(r){switch(r.kind){case 187:return!!t.isThisType;case 78:return!t.isThisType&&e.isPartOfTypeNode(r)&&function(e){return!(157===e.kind||173===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||195===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(r)&&h_(r)===t;case 176:return!0}return!!e.forEachChild(r,a)}}function R_(e){var t=ks(e);if(4194304&t.flags){var r=Vl(t.type);if(262144&r.flags)return r}}function B_(t,r,n,i){var a=R_(t);if(a){var o=V_(a,r);if(a!==o)return ug(oc(o),(function(n){if(61603843&n.flags&&n!==De&&n!==Se){if(!t.declaration.nameType){if(Zd(n))return function(e,t,r){var n=J_(t,Ie,!0,r);return n===Se?Se:Ou(n,j_($d(e),Is(t)))}(n,t,P_(a,n,r));if(gp(n))return function(t,r,n,i){var a=t.target.elementFlags,o=e.map(au(t),(function(e,t){var o=8&a[t]?e:4&a[t]?Ou(e):zu([e],[a[t]]);return B_(r,P_(n,o,i))})),s=j_(t.target.readonly,Is(r));return zu(o,e.map(o,(function(e){return 8})),s)}(n,t,a,r);if(fp(n))return function(t,r,n){var i=t.target.elementFlags,a=e.map(au(t),(function(e,t){return J_(r,p_(""+t),!!(2&i[t]),n)})),o=Is(r),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=j_(t.target.readonly,o);return e.contains(a,Se)?Se:zu(a,s,c,t.target.labeledElementDeclarations)}(n,t,P_(a,n,r))}return z_(t,P_(a,n,r))}return n}),n,i)}return V_(ks(t),r)===De?De:z_(t,r,n,i)}function j_(e,t){return!!(1&t)||!(2&t)&&e}function J_(e,t,r,n){var i=w_(n,Es(e),t),a=V_(As(e.target||e),i),o=Is(e);return K&&4&o&&!Eh(a,49152)?Cp(a):K&&8&o&&r?zf(a,524288):a}function z_(e,t,r,n){var i=Bi(64|e.objectFlags,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;var a=Es(e),o=I_(a);i.typeParameter=o,t=A_(C_(a,o),t),o.mapper=t}return i.target=e,i.mapper=t,i.aliasSymbol=r||e.aliasSymbol,i.aliasTypeArguments=r?n:x_(e.aliasTypeArguments,t),i}function U_(t,r,n,i){var a=t.root;if(a.outerTypeParameters){var o=e.map(a.outerTypeParameters,(function(e){return T_(e,r)})),s=$c(o)+eu(n,i),c=a.instantiations.get(s);if(!c)c=function(e,t,r,n){if(e.isDistributive){var i=e.checkType,a=T_(i,t);if(i!==a&&1179648&a.flags)return ug(a,(function(r){return Wl(e,P_(i,r,t))}),r,n)}return Wl(e,t,r,n)}(a,S_(a.outerTypeParameters,o),n,i),a.instantiations.set(s,c);return c}return t}function V_(e,t){return e&&t?K_(e,t,void 0,void 0):e}function K_(t,r,n,i){if(!ef(t))return t;if(50===D||h>=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:D,instantiationCount:h}),cn(c,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Se;v++,h++,D++;var a=function(t,r,n,i){var a=t.flags;if(262144&a)return T_(t,r);if(524288&a){var o=t.objectFlags;if(52&o){if(4&o&&!t.node){var s=t.resolvedTypeArguments,c=x_(s,r);return c!==s?Vu(t.target,c):t}return function(t,r,n,i){var a=4&t.objectFlags?t.node:t.symbol.declarations[0],o=Tn(a),s=4&t.objectFlags?o.resolvedType:64&t.objectFlags?t.target:t,c=o.outerTypeParameters;if(!c){var u=yo(a,!0);if(Av(a)){var l=hc(a);u=e.addRange(u,l)}c=u||e.emptyArray,c=(4&s.objectFlags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(function(e){return L_(e,a)})):c,o.outerTypeParameters=c}if(c.length){var _=A_(t.mapper,r),d=e.map(c,(function(e){return T_(e,_)})),p=n||t.aliasSymbol,f=n?i:x_(t.aliasTypeArguments,r),g=$c(d)+eu(p,f);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set($c(c)+eu(s.aliasSymbol,s.aliasTypeArguments),s));var m=s.instantiations.get(g);if(!m){var y=S_(c,d);m=4&s.objectFlags?iu(t.target,t.node,y,p,f):32&s.objectFlags?B_(s,y,p,f):z_(s,y,p,f),s.instantiations.set(g,m)}return m}return t}(t,r,n,i)}return t}if(3145728&a){var u=1048576&t.flags?t.origin:void 0,l=u&&3145728&u.flags?u.types:t.types,_=x_(l,r);if(_===l&&n===t.aliasSymbol)return t;var d=n||t.aliasSymbol,p=n?i:x_(t.aliasTypeArguments,r);return 2097152&a||u&&2097152&u.flags?ul(_,d,p):rl(_,1,d,p)}if(4194304&a)return hl(V_(t.type,r));if(134217728&a)return xl(t.texts,x_(t.types,r));if(268435456&a)return Sl(t.symbol,V_(t.type,r));if(8388608&a){d=n||t.aliasSymbol,p=n?i:x_(t.aliasTypeArguments,r);return Bl(V_(t.objectType,r),V_(t.indexType,r),t.noUncheckedIndexedAccessCandidate,void 0,d,p)}if(16777216&a)return U_(t,A_(t.mapper,r),n,i);if(33554432&a){var f=V_(t.baseType,r);if(8650752&f.flags)return du(f,V_(t.substitute,r));var g=V_(t.substitute,r);return 3&g.flags||id(W_(f),W_(g))?f:g}return t}(t,r,n,i);return D--,a}function q_(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=V_(e,$e))}function W_(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=V_(e,Ze),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function H_(e,t){return e&&Gc(V_(e.type,t),e.isReadonly,e.declaration)}function G_(t){switch(e.Debug.assert(165!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 208:case 209:case 165:case 251:return X_(t);case 200:return e.some(t.properties,G_);case 199:return e.some(t.elements,G_);case 217:return G_(t.whenTrue)||G_(t.whenFalse);case 216:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(G_(t.left)||G_(t.right));case 288:return G_(t.initializer);case 207:return G_(t.expression);case 281:return e.some(t.properties,G_)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,G_);case 280:var r=t.initializer;return!!r&&G_(r);case 283:var n=t.expression;return!!n&&G_(n)}return!1}function X_(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!Oa(t))&&(Q_(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&230!==t.body.kind&&G_(t.body)}(t))}function Q_(t){if(!t.typeParameters){if(e.some(t.parameters,(function(t){return!e.getEffectiveTypeAnnotationNode(t)})))return!0;if(209!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!e.parameterIsThisKeyword(r))return!0}}return!1}function Y_(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||Sm(t)||e.isObjectLiteralMethod(t))&&X_(t)}function Z_(t){if(524288&t.flags){var r=Rs(t);if(r.constructSignatures.length||r.callSignatures.length){var n=Bi(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n}}else if(2097152&t.flags)return ul(e.map(t.types,Z_));return t}function $_(e,t){return kd(e,t,rn)}function ed(e,t){return kd(e,t,rn)?-1:0}function td(e,t){return kd(e,t,en)?-1:0}function rd(e,t){return kd(e,t,Zr)?-1:0}function nd(e,t){return kd(e,t,Zr)}function id(e,t){return kd(e,t,en)}function ad(t,r){return 1048576&t.flags?e.every(t.types,(function(e){return ad(e,r)})):1048576&r.flags?e.some(r.types,(function(e){return ad(t,e)})):58982400&t.flags?ad(Gs(t)||Ee,r):r===gt?!!(67633152&t.flags):r===mt?!!(524288&t.flags)&&jf(t):go(t,fo(r))||Zd(r)&&!$d(r)&&ad(t,bt)}function od(e,t){return kd(e,t,tn)}function sd(e,t){return od(e,t)||od(t,e)}function cd(e,t,r,n,i,a){return Fd(e,t,en,r,n,i,a)}function ud(e,t,r,n,i,a){return ld(e,t,en,r,n,i,a,void 0)}function ld(e,t,r,n,i,a,o,s){return!!kd(e,t,r)||(!n||!dd(i,e,t,r,a,o,s))&&Fd(e,t,r,n,a,o,s)}function _d(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,_d))}function dd(t,r,n,i,a,o,s){if(!t||_d(n))return!1;if(!Fd(r,n,i,void 0)&&function(t,r,n,i,a,o,s){for(var c=pc(r,0),u=pc(r,1),l=0,_=[u,c];l<_.length;l++){var d=_[l];if(e.some(d,(function(e){var t=Mc(e);return!(131073&t.flags)&&Fd(t,n,i,void 0)}))){var p=s||{};cd(r,n,t,a,o,p);var f=p.errors[p.errors.length-1];return e.addRelatedInfo(f,e.createDiagnosticForNode(t,d===u?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(t,r,n,i,a,o,s))return!0;switch(t.kind){case 283:case 207:return dd(t.expression,r,n,i,a,o,s);case 216:switch(t.operatorToken.kind){case 62:case 27:return dd(t.right,r,n,i,a,o,s)}break;case 200:return function(t,r,n,i,a,o){return!(131068&n.flags)&&gd(function(t){var r,n,i,a;return __generator(this,(function(o){switch(o.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,o.label=1;case 1:if(!(r<n.length))return[3,8];if(i=n[r],e.isSpreadAssignment(i))return[3,7];if(!(a=ml(Ci(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 168:case 167:case 165:case 289:return[3,2];case 288: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 r++,[3,1];case 8:return[2]}}))}(t),r,n,i,a,o)}(t,r,n,i,o,s);case 199:return function(e,t,r,n,i,a){if(131068&r.flags)return!1;if(ip(t))return gd(yd(e,r),t,r,n,i,a);var o=e.contextualType;e.contextualType=r;try{var s=km(e,1,!0);return e.contextualType=o,!!ip(s)&&gd(yd(e,r),s,r,n,i,a)}finally{e.contextualType=o}}(t,r,n,i,o,s);case 281:return function(t,r,n,i,a,o){var s,c=gd(function(t){var r,n,i;return __generator(this,(function(a){switch(a.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,a.label=1;case 1:return r<n.length?(i=n[r],e.isJsxSpreadAttribute(i)?[3,3]:[4,{errorNode:i.name,innerExpression:i.initializer,nameType:p_(e.idText(i.name))}]):[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}(t),r,n,i,a,o);if(e.isJsxOpeningElement(t.parent)&&e.isJsxElement(t.parent.parent)){var u=t.parent.parent,l=Gm(Wm(t)),_=void 0===l?"children":e.unescapeLeadingUnderscores(l),d=p_(_),p=Bl(n,d),f=e.getSemanticJsxChildren(u.children);if(!e.length(f))return c;var g=e.length(f)>1,m=og(p,ap),y=og(p,(function(e){return!ap(e)}));if(g){if(m!==Ue){var v=zu(Jm(u,0));c=gd(function(t,r){var n,i,a,o,s;return __generator(this,(function(c){switch(c.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,c.label=1;case 1:return i<t.children.length?(a=t.children[i],o=p_(i-n),(s=md(a,o,r))?[4,s]:[3,3]):[3,5];case 2:return c.sent(),[3,4];case 3:n++,c.label=4;case 4:return i++,[3,1];case 5:return[2]}}))}(u,x),v,m,i,a,o)||c}else if(!kd(Bl(r,d),p,i)){c=!0;var h=cn(u.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,_,sa(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(h)}}else if(y!==Ue){var b=md(f[0],d,x);b&&(c=gd(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,b];case 1:return e.sent(),[2]}}))}(),r,n,i,a,o)||c)}else if(!kd(Bl(r,d),p,i)){c=!0;h=cn(u.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,_,sa(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(h)}}return c;function x(){if(!s){var r=e.getTextOfNode(t.parent.tagName),i=Gm(Wm(t)),a=void 0===i?"children":e.unescapeLeadingUnderscores(i),o=Bl(n,p_(a)),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;s=__assign(__assign({},c),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,c,r,a,sa(o))})}return s}}(t,r,n,i,o,s);case 209:return function(t,r,n,i,a,o){if(e.isBlock(t.body))return!1;if(e.some(t.parameters,e.hasType))return!1;var s=Gy(r);if(!s)return!1;var c=pc(n,0);if(!e.length(c))return!1;var u=t.body,l=Mc(s),_=rl(e.map(c,Mc));if(!Fd(l,_,i,void 0)){var d=u&&dd(u,l,_,i,void 0,a,o);if(d)return d;var p=o||{};if(Fd(l,_,i,u,void 0,a,p),p.errors)return n.symbol&&e.length(n.symbol.declarations)&&e.addRelatedInfo(p.errors[p.errors.length-1],e.createDiagnosticForNode(n.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&e.getFunctionFlags(t))&&!Ea(l,"then")&&Fd(sh(l),_,i,void 0)&&e.addRelatedInfo(p.errors[p.errors.length-1],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(t,r,n,i,o,s)}return!1}function pd(e,t,r){var n=Jl(t,r);if(n)return n;if(1048576&t.flags){var i=wd(e,t);if(i)return Jl(i,r)}}function fd(e,t){e.contextualType=t;try{return Wh(e,1,t)}finally{e.contextualType=void 0}}function gd(t,r,n,i,a,o){for(var s=!1,c=t.next();!c.done;c=t.next()){var u=c.value,l=u.errorNode,_=u.innerExpression,d=u.nameType,p=u.errorMessage,f=pd(r,n,d);if(f&&!(8388608&f.flags)){var g=Jl(r,d);if(g&&!Fd(g,f,i,void 0))if(_&&dd(_,g,f,i,void 0,a,o))s=!0;else{var m=o||{},y=_?fd(_,g):g;if(Fd(y,f,i,l,p,a,m)&&y!==g&&Fd(g,f,i,l,p,a,m),m.errors){var v=m.errors[m.errors.length-1],h=Xo(d)?es(d):void 0,b=void 0!==h?_c(n,h):void 0,x=!1;if(!b){var D=kh(d,296)&&mc(n,1)||mc(n,0)||void 0;D&&D.declaration&&!e.getSourceFileOfNode(D.declaration).hasNoDefaultLib&&(x=!0,e.addRelatedInfo(v,e.createDiagnosticForNode(D.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!x&&(b&&e.length(b.declarations)||n.symbol&&e.length(n.symbol.declarations))){var S=b&&e.length(b.declarations)?b.declarations[0]:n.symbol.declarations[0];e.getSourceFileOfNode(S).hasNoDefaultLib||e.addRelatedInfo(v,e.createDiagnosticForNode(S,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!h||8192&d.flags?sa(d):e.unescapeLeadingUnderscores(h),sa(n)))}}s=!0}}}return s}function md(t,r,n){switch(t.kind){case 283:return{errorNode:t,innerExpression:t.expression,nameType:r};case 11:if(t.containsOnlyTriviaWhiteSpaces)break;return{errorNode:t,innerExpression:void 0,nameType:r,errorMessage:n()};case 273:case 274:case 277:return{errorNode:t,innerExpression:t,nameType:r};default:return e.Debug.assertNever(t,"Found invalid jsx child")}}function yd(t,r){var n,i,a,o;return __generator(this,(function(s){switch(s.label){case 0:if(!(n=e.length(t.elements)))return[2];i=0,s.label=1;case 1:return i<n?ip(r)&&!_c(r,""+i)?[3,3]:(a=t.elements[i],e.isOmittedExpression(a)?[3,3]:(o=p_(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 vd(e,t,r,n,i){return Fd(e,t,tn,r,n,i)}function hd(t,r,n,i,a,o,s,c){if(t===r)return-1;if(!(u=r).typeParameters&&(!u.thisParameter||ka(Vv(u.thisParameter)))&&1===u.parameters.length&&B(u)&&(Vv(u.parameters[0])===Et||ka(Vv(u.parameters[0])))&&ka(Mc(u)))return-1;var u,l=Yv(r);if(!$v(r)&&(8&n?$v(t)||Yv(t)>l:Zv(t)>l))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Yy(t,r=Vc(r),void 0,s));var _=Yv(t),d=th(t),p=th(r);if((d||p)&&V_(d||p,c),d&&p&&_!==l)return 0;var f=r.declaration?r.declaration.kind:0,g=!(3&n)&&q&&165!==f&&164!==f&&166!==f,m=-1,y=Ic(t);if(y&&y!==ze){var v=Ic(r);if(v){if(!(T=!g&&s(y,v,!1)||s(v,y,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;m&=T}}for(var h=d||p?Math.min(_,l):Math.max(_,l),b=d||p?h-1:-1,x=0;x<h;x++){var D=x===b?Qv(t,x):Xv(t,x),S=x===b?Qv(r,x):Xv(r,x);if(D&&S){var T,C=3&n?void 0:Gy(Ep(D)),E=3&n?void 0:Gy(Ep(S));if((T=C&&E&&!Oc(C)&&!Oc(E)&&(98304&xp(D))==(98304&xp(S))?hd(E,C,8&n|(g?2:1),i,a,o,s,c):!(3&n)&&!g&&s(D,S,!1)||s(S,D,i))&&8&n&&x>=Zv(t)&&x<Zv(r)&&s(D,S,!1)&&(T=0),!T)return i&&a(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(qv(t,x)),e.unescapeLeadingUnderscores(qv(r,x))),0;m&=T}}if(!(4&n)){var k=Rc(r)?be:r.declaration&&Av(r.declaration)?Fo(Ti(r.declaration.symbol)):Mc(r);if(k===ze)return m;var N=Rc(t)?be:t.declaration&&Av(t.declaration)?Fo(Ti(t.declaration.symbol)):Mc(t),A=Oc(r);if(A){var F=Oc(t);if(F)m&=function(t,r,n,i,a){if(t.kind!==r.kind)return n&&(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,pa(t),pa(r))),0;if((1===t.kind||3===t.kind)&&t.parameterIndex!==r.parameterIndex)return n&&(i(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,t.parameterName,r.parameterName),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,pa(t),pa(r))),0;var o=t.type===r.type?-1:t.type&&r.type?a(t.type,r.type,n):0;0===o&&n&&i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,pa(t),pa(r));return o}(F,A,i,a,s);else if(e.isIdentifierTypePredicate(A))return i&&a(e.Diagnostics.Signature_0_must_be_a_type_predicate,oa(t)),0}else!(m&=1&n&&s(k,N,!1)||s(N,k,i))&&i&&o&&o(N,k)}return m}function bd(e,t){var r=Uc(e),n=Uc(t),i=Mc(r),a=Mc(n);return!(a!==ze&&!kd(a,i,en)&&!kd(i,a,en))&&0!==hd(r,n,!0?4:0,!1,void 0,void 0,td,void 0)}function xd(e){return e!==at&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&!e.stringIndexInfo&&!e.numberIndexInfo}function Dd(t){return 524288&t.flags?!Ls(t)&&xd(Rs(t)):!!(67108864&t.flags)||(1048576&t.flags?e.some(t.types,Dd):!!(2097152&t.flags)&&e.every(t.types,Dd))}function Sd(t){return!!(16&e.getObjectFlags(t)&&(t.members&&xd(t)||t.symbol&&2048&t.symbol.flags&&0===ns(t.symbol).size))}function Td(t){return 524288&t.flags&&!Ls(t)&&0===zs(t).length&&mc(t,0)&&!mc(t,1)||3145728&t.flags&&e.every(t.types,Td)||!1}function Cd(t,r,n){if(t===r)return!0;var i=w(t)+","+w(r),a=nn.get(i);if(void 0!==a&&(4&a||!(2&a)||!n))return!!(1&a);if(!(t.escapedName===r.escapedName&&256&t.flags&&256&r.flags))return nn.set(i,6),!1;for(var o=_o(r),s=0,c=zs(_o(t));s<c.length;s++){var u=c[s];if(8&u.flags){var l=_c(o,u.escapedName);if(!(l&&8&l.flags))return n?(n(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(u),sa(jo(r),void 0,64)),nn.set(i,6)):nn.set(i,2),!1}}return nn.set(i,1),!0}function Ed(e,t,r,n){var i=e.flags,a=t.flags;if(3&a||131072&i||e===De)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===t.value)return!0;if(296&i&&8&a)return!0;if(256&i&&1024&i&&256&a&&!(1024&a)&&e.value===t.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&&Cd(e.symbol,t.symbol,n))return!0;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&Cd(e.symbol,t.symbol,n))return!0;if(2944&i&&2944&a&&e.value===t.value&&Cd(Ei(e.symbol),Ei(t.symbol),n))return!0}if(32768&i&&(!K||49152&a))return!0;if(65536&i&&(!K||65536&a))return!0;if(524288&i&&67108864&a)return!0;if(r===en||r===tn){if(1&i)return!0;if(264&i&&!(1024&i)&&(32&a||256&a&&1024&a))return!0}return!1}function kd(e,t,r){if(d_(e)&&(e=e.regularType),d_(t)&&(t=t.regularType),e===t)return!0;if(r!==rn){if(r===tn&&!(131072&t.flags)&&Ed(t,e,r)||Ed(e,t,r))return!0}else if(!(3145728&e.flags||3145728&t.flags||e.flags===t.flags||469237760&e.flags))return!1;if(524288&e.flags&&524288&t.flags){var n=r.get(Ud(e,t,0,r));if(void 0!==n)return!!(1&n)}return!!(469499904&e.flags||469499904&t.flags)&&Fd(e,t,r,void 0)}function Nd(t,r){return 4096&e.getObjectFlags(t)&&!Rm(r.escapedName)}function Ad(t,r){for(;;){var n=d_(t)?t.regularType:4&e.getObjectFlags(t)&&t.node?ru(t.target,au(t)):3145728&t.flags?oc(t):33554432&t.flags?r?t.baseType:t.substitute:25165824&t.flags?Ol(t,r):t;if(n===t)break;t=n}return t}function Fd(t,r,n,i,a,s,u){var l,_,d,p,f,g,m=0,y=0,v=0,h=!1,b=0,x=[],D=!1;e.Debug.assert(n!==rn||!i,"no error reporting in identity checking");var S=R(t,r,!!i,a);if(x.length&&I(),h){null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:t.id,targetId:r.id,depth:y});var T=cn(i||c,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,sa(t),sa(r));u&&(u.errors||(u.errors=[])).push(T)}else if(l){if(s){var C=s();C&&(e.concatenateDiagnosticMessageChains(C,l),l=C)}var E=void 0;if(a&&i&&!S&&t.symbol){var N=Sn(t.symbol);if(N.originatingImport&&!e.isImportCall(N.originatingImport))if(Fd(_o(N.target),r,n,void 0)){var A=e.createDiagnosticForNode(N.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);E=e.append(E,A)}}T=e.createDiagnosticForNodeFromMessageChain(i,l,E);_&&e.addRelatedInfo.apply(void 0,__spreadArray([T],_)),u&&(u.errors||(u.errors=[])).push(T),u&&u.skipLogging||Gr.add(T)}return i&&u&&u.skipLogging&&0===S&&e.Debug.assert(!!u.errors,"missed opportunity to interact with error."),0!==S;function F(e){l=e.errorInfo,g=e.lastSkippedInfo,x=e.incompatibleStack,b=e.overrideNextErrorInfo,_=e.relatedInfo}function P(){return{errorInfo:l,lastSkippedInfo:g,incompatibleStack:x.slice(),overrideNextErrorInfo:b,relatedInfo:_?_.slice():void 0}}function w(e,t,r,n,i){b++,g=void 0,x.push([e,t,r,n,i])}function I(){var t=x;x=[];var r=g;if(g=void 0,1===t.length)return O.apply(void 0,t[0]),void(r&&M.apply(void 0,__spreadArray([void 0],r)));for(var n="",i=[];t.length;){var a=t.pop(),o=a[0],s=a.slice(1);switch(o.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===n.indexOf("new ")&&(n="("+n+")");var c=""+s[0];n=0===n.length?""+c:e.isIdentifierText(c,J.target)?n+"."+c:"["===c[0]&&"]"===c[c.length-1]?""+n+c:n+"["+c+"]";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===n.length){var u=o;o.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:o.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),i.unshift([u,s[0],s[1]])}else{n=""+(o.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"")+n+"("+(o.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...")+")"}break;default:return e.Debug.fail("Unhandled Diagnostic: "+o.code)}}n?O(")"===n[n.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,n):i.shift();for(var l=0,_=i;l<_.length;l++){var d=_[l],p=(o=d[0],s=d.slice(1),o.elidedInCompatabilityPyramid);o.elidedInCompatabilityPyramid=!1,O.apply(void 0,__spreadArray([o],s)),o.elidedInCompatabilityPyramid=p}r&&M.apply(void 0,__spreadArray([void 0],r))}function O(t,r,n,a,o){e.Debug.assert(!!i),x.length&&I(),t.elidedInCompatabilityPyramid||(l=e.chainDiagnosticMessages(l,t,r,n,a,o))}function M(t,r,i){x.length&&I();var a=ca(r,i),o=a[0],s=a[1],c=r,u=o;if(cp(r)&&!Pd(i)&&(c=up(r),e.Debug.assert(!id(c,i),"generalized source shouldn't be assignable"),u=ua(c)),262144&i.flags){var l=Gs(i),_=void 0;l&&(id(c,l)||(_=id(r,l)))?O(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,_?o:u,s,sa(l)):O(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,s,u)}t||(t=n===tn?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),O(t,u,s)}function L(t,r,n){return fp(t)?t.target.readonly&&ep(r)?(n&&O(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,sa(t),sa(r)),!1):fp(r)||Zd(r):$d(t)&&ep(r)?(n&&O(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,sa(t),sa(r)),!1):!fp(r)||Zd(t)}function R(t,r,a,o,s){if(void 0===a&&(a=!1),void 0===s&&(s=0),524288&t.flags&&131068&r.flags)return Ed(t,r,n,a?O:void 0)?-1:(C(t,r,0,!!(4096&e.getObjectFlags(t))),0);var c=Ad(t,!1),u=Ad(r,!0);if(c===u)return-1;if(n===rn)return function(e,t){var r=e.flags&t.flags;if(!(469237760&r))return 0;if(B(e,t),3145728&r){var n=j(e,t);return n&&(n&=j(t,e)),n}return q(e,t,!1,0)}(c,u);if(262144&c.flags&&Us(c)===u)return-1;if(1048576&u.flags&&524288&c.flags&&u.types.length<=3&&Eh(u,98304)){var _=_g(u,-98305);if(!(1179648&_.flags)){if(c===_)return-1;u=_}}if(n===tn&&!(131072&u.flags)&&Ed(u,c,n)||Ed(c,u,n,a?O:void 0))return-1;var d=!!(4096&e.getObjectFlags(c)),p=!(2&s)&&yf(c)&&32768&e.getObjectFlags(c);if(p&&function(t,r,a){if(!ny(r)||!G&&16384&e.getObjectFlags(r))return!1;var o=!!(4096&e.getObjectFlags(t));if((n===en||n===tn)&&(ng(gt,r)||!o&&Dd(r)))return!1;var s,c=r;1048576&r.flags&&(c=nT(t,r,R)||function(e){if(Eh(e,67108864)){var t=og(e,(function(e){return!(131068&e.flags)}));if(!(131072&t.flags))return t}return e}(r),s=1048576&c.flags?c.types:[c]);for(var u=function(r){if(function(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}(r,t.symbol)&&!Nd(t,r)){if(!ry(c,r.escapedName,o)){if(a){var n=og(c,ny);if(!i)return{value:e.Debug.fail()};if(e.isJsxAttributes(i)||e.isJsxOpeningLikeElement(i)||e.isJsxOpeningLikeElement(i.parent)){r.valueDeclaration&&e.isJsxAttribute(r.valueDeclaration)&&e.getSourceFileOfNode(i)===e.getSourceFileOfNode(r.valueDeclaration.name)&&(i=r.valueDeclaration.name);var u=aa(r),l=Ny(u,n);(d=l?aa(l):void 0)?O(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,sa(n),d):O(e.Diagnostics.Property_0_does_not_exist_on_type_1,u,sa(n))}else{var _=t.symbol&&e.firstOrUndefined(t.symbol.declarations),d=void 0;if(r.valueDeclaration&&e.findAncestor(r.valueDeclaration,(function(e){return e===_}))&&e.getSourceFileOfNode(_)===e.getSourceFileOfNode(i)){var p=r.valueDeclaration;e.Debug.assertNode(p,e.isObjectLiteralElementLike),i=p;var f=p.name;e.isIdentifier(f)&&(d=Ay(f,n))}void 0!==d?O(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,aa(r),sa(n),d):O(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,aa(r),sa(n))}}return{value:!0}}if(s&&!R(_o(r),function(t,r){var n=function(t,n){var i=3145728&(n=tc(n)).flags?ac(n,r):js(n,r),a=i&&_o(i)||Pm(r)&&yc(n,1)||yc(n,0)||ke;return e.append(t,a)};return rl(e.reduceLeft(t,n,void 0)||e.emptyArray)}(s,r.escapedName),a))return a&&w(e.Diagnostics.Types_of_property_0_are_incompatible,aa(r)),{value:!0}}},l=0,_=zs(t);l<_.length;l++){var d=u(_[l]);if("object"==typeof d)return d.value}return!1}(c,u,a))return a&&M(o,c,r.aliasSymbol?r:u),0;var f=n!==tn&&!(2&s)&&2752508&c.flags&&c!==gt&&2621440&u.flags&&Od(u)&&(zs(c).length>0||VD(c));if(f&&!function(e,t,r){for(var n=0,i=zs(e);n<i.length;n++){if(ry(t,i[n].escapedName,r))return!0}return!1}(c,u,d)){if(a){var m=sa(t.aliasSymbol?t:c),y=sa(r.aliasSymbol?r:u),v=pc(c,0),h=pc(c,1);v.length>0&&R(Mc(v[0]),u,!1)||h.length>0&&R(Mc(h[0]),u,!1)?O(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,m,y):O(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,m,y)}return 0}B(c,u);var x=0,S=P();if((3145728&c.flags||3145728&u.flags)&&(x=lg(c)*lg(u)>=4?q(c,u,a,8|s):W(c,u,a,8|s)),x||1048576&c.flags||!(469499904&c.flags||469499904&u.flags)||(x=q(c,u,a,s))&&F(S),!x&&2359296&c.flags){var T=function(t,r){for(var n,i=!1,a=0,o=t;a<o.length;a++)if(465829888&(l=o[a]).flags){for(var s=Us(l);s&&21233664&s.flags;)s=Us(s);s&&(n=e.append(n,s),r&&(n=e.append(n,l)))}else 469892092&l.flags&&(i=!0);if(n&&(r||i)){if(i)for(var c=0,u=t;c<u.length;c++){var l;469892092&(l=u[c]).flags&&(n=e.append(n,l))}return ul(n)}}(2097152&c.flags?c.types:[c],!!(1048576&u.flags));T&&(2097152&c.flags||1048576&u.flags)&&ag(T,(function(e){return e!==c}))&&(x=R(T,u,!1,void 0,s))&&F(S)}return x&&!D&&(2097152&u.flags&&(p||f)||r_(u)&&!Zd(u)&&!fp(u)&&2097152&c.flags&&3670016&tc(c).flags&&!e.some(c.types,(function(t){return!!(2097152&e.getObjectFlags(t))})))&&(D=!0,x&=q(c,u,a,4),D=!1),C(c,u,x,d),x;function C(n,s,c,u){if(!c&&a){n=t.aliasSymbol?t:n,s=r.aliasSymbol?r:s;var _=b>0;if(_&&b--,524288&n.flags&&524288&s.flags){var d=l;L(n,s,a),l!==d&&(_=!!l)}if(524288&n.flags&&131068&s.flags)!function(t,r){var n=la(t.symbol)?sa(t,t.symbol.valueDeclaration):sa(t),i=la(r.symbol)?sa(r,r.symbol.valueDeclaration):sa(r);(xt===t&&we===r||Dt===t&&Ie===r||St===t&&je===r||ku(!1)===t&&Je===r)&&O(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(n,s);else if(n.symbol&&524288&n.flags&>===n)O(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(u&&2097152&s.flags){var p=s.types,f=Vm(k.IntrinsicAttributes,i),m=Vm(k.IntrinsicClassAttributes,i);if(f!==Se&&m!==Se&&(e.contains(p,f)||e.contains(p,m)))return c}else l=lc(l,r);if(!o&&_)return g=[n,s],c;M(o,n,s)}}}function B(t,r){if(e.tracing&&3145728&t.flags&&3145728&r.flags){var n=t,a=r;if(n.objectFlags&a.objectFlags&262144)return;var o=n.types.length,s=a.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:t.id,sourceSize:o,targetId:r.id,targetSize:s,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function j(e,t){for(var r=-1,n=0,i=e.types;n<i.length;n++){var a=z(i[n],t,!1);if(!a)return 0;r&=a}return r}function z(e,t,r){var n=t.types;if(1048576&t.flags&&Qu(n,e))return-1;for(var i=0,a=n;i<a.length;i++){var o=R(e,a[i],!1);if(o)return o}r&&R(e,wd(e,t,R)||n[n.length-1],!0);return 0}function U(e,t,r,n){var i=e.types;if(1048576&e.flags&&Qu(i,t))return-1;for(var a=i.length,o=0;o<a;o++){var s=R(i[o],t,r&&o===a-1,void 0,n);if(s)return s}return 0}function V(e,t,r,n){for(var i=-1,a=e.types,o=function(e,t){return 1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?_g(t,-32769):t}(e,t),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 u=R(c,o.types[s%o.types.length],!1,void 0,n);if(u){i&=u;continue}}var l=R(c,t,r,void 0,n);if(!l)return 0;i&=l}return i}function q(t,r,i,a){if(h)return 0;var o=Ud(t,r,a|(D?16:0),n),s=n.get(o);if(void 0!==s&&(!(i&&2&s)||4&s)){if(nr){var c=24&s;8&c&&V_(t,E_(H)),16&c&&V_(t,E_(X))}return 1&s?-1:0}if(d){for(var u=0;u<m;u++)if(o===d[u])return 3;if(100===y)return h=!0,0}else d=[],p=[],f=[];var l=m;d[m]=o,m++,p[y]=t,f[y]=r,y++;var _,g=v;1&v||!Wd(t,p,y)||(v|=1),2&v||!Wd(r,f,y)||(v|=2);var b=0;nr&&(_=nr,nr=function(e){return b|=e?16:8,_(e)}),3===v&&(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:t.id,sourceIdStack:p.map((function(e){return e.id})),targetId:r.id,targetIdStack:f.map((function(e){return e.id})),depth:y}));var x=3!==v?W(t,r,i,a):3;if(nr&&(nr=_),v=g,y--,x){if(-1===x||0===y){if(-1===x||3===x)for(u=l;u<m;u++)n.set(d[u],1|b);m=l}}else n.set(o,2|(i?4:0)|b),m=l;return x}function W(t,r,i,a){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:t.id,targetId:r.id});var o=function(t,r,i,a){if(4&a)return $(t,r,i,void 0,0);if(8&a)return 1048576&t.flags?n===tn?U(t,r,i&&!(131068&t.flags),-9&a):V(t,r,i&&!(131068&t.flags),-9&a):1048576&r.flags?z(Op(t),r,i&&!(131068&t.flags)&&!(131068&r.flags)):2097152&r.flags?function(e,t,r,n){for(var i=-1,a=0,o=t.types;a<o.length;a++){var s=R(e,o[a],r,void 0,n);if(!s)return 0;i&=s}return i}(Op(t),r,i,2):U(t,r,!1,1);var o,s,c=t.flags&r.flags;if(n===rn&&!(524288&c)){if(4194304&c)return R(t.type,r.type,!1);var u=0;return 8388608&c&&(u=R(t.objectType,r.objectType,!1))&&(u&=R(t.indexType,r.indexType,!1))||16777216&c&&t.root.isDistributive===r.root.isDistributive&&(u=R(t.checkType,r.checkType,!1))&&(u&=R(t.extendsType,r.extendsType,!1))&&(u&=R(Hl(t),Hl(r),!1))&&(u&=R(Gl(t),Gl(r),!1))?u:33554432&c?R(t.substitute,r.substitute,!1):0}var _=!1,d=P();if(17301504&t.flags&&t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol&&!t.aliasTypeArgumentsContainsMarker&&!r.aliasTypeArgumentsContainsMarker){if((q=Ld(t.aliasSymbol))===e.emptyArray)return 1;if(void 0!==(W=re(t.aliasTypeArguments,r.aliasTypeArguments,q,a)))return W}if(mp(t)&&!t.target.readonly&&(o=R(au(t)[0],r))||mp(r)&&(r.target.readonly||ep(Gs(t)||t))&&(o=R(t,au(r)[0])))return o;if(262144&r.flags){if(32&e.getObjectFlags(t)&&!t.declaration.nameType&&R(hl(r),ks(t))&&!(4&Is(t))){var p=As(t),f=Bl(r,Es(t));if(o=R(p,f,i))return o}}else if(4194304&r.flags){var g=r.type;if(4194304&t.flags&&(o=R(g,t.type,!1)))return o;if(fp(g)){if(o=R(t,Wu(g),i))return o}else if((w=Ks(g))&&-1===R(t,hl(w,r.stringsOnly),i))return-1}else if(8388608&r.flags){if(n===en||n===tn){var m=r.objectType,y=r.indexType,v=Gs(m)||m,h=Gs(y)||y;if(!Pl(v)&&!wl(h)){var b=2|(v!==m?1:0);if((w=Jl(v,h,r.noUncheckedIndexedAccessCandidate,void 0,b))&&(o=R(t,w,i)))return o}}}else if(Ls(r)&&!r.declaration.nameType){var x=As(r),D=Is(r);if(!(8&D)){if(8388608&x.flags&&x.objectType===t&&x.indexType===Es(r))return-1;if(!Ls(t)){var S=ks(r),T=hl(t,void 0,!0),C=4&D,E=C?ms(S,T):void 0;if(C?!(131072&E.flags):R(S,T)){p=As(r);var k=Es(r),N=_g(p,-98305);if(8388608&N.flags&&N.indexType===k){if(o=R(t,N.objectType,i))return o}else{f=Bl(t,E?ul([E,k]):k);if(o=R(f,p,i))return o}}s=l,F(d)}}}else if(134217728&r.flags&&128&t.flags&&Fl(r)){var A=pf(t,r);if(A&&e.every(A,(function(e,t){return df(e,r.types[t])})))return-1}if(8650752&t.flags){if(8388608&t.flags&&8388608&r.flags){if((o=R(t.objectType,r.objectType,i))&&(o&=R(t.indexType,r.indexType,i)),o)return F(d),o}else if(!(w=Us(t))||262144&t.flags&&1&w.flags){if(o=R(et,_g(r,-67108865)))return F(d),o}else{if(o=R(w,r,!1,void 0,a))return F(d),o;if(o=R(as(w,t),r,i,void 0,a))return F(d),o}}else if(4194304&t.flags){if(o=R(Xe,r,i))return F(d),o}else if(134217728&t.flags){if(134217728&r.flags&&t.texts.length===r.texts.length&&t.types.length===r.types.length&&e.every(t.texts,(function(e,t){return e===r.texts[t]}))&&e.every(V_(t,E_(X)).types,(function(e,t){return!!(5&r.types[t].flags)||!!R(e,r.types[t],!1)})))return-1;if((w=Gs(t))&&w!==t&&(o=R(w,r,i)))return F(d),o}else if(268435456&t.flags){var w;if(268435456&r.flags&&t.symbol===r.symbol){if(o=R(t.type,r.type,i))return F(d),o}else if((w=Gs(t))&&(o=R(w,r,i)))return F(d),o}else if(16777216&t.flags){if(16777216&r.flags){var I=t.root.inferTypeParameters,O=t.extendsType,M=void 0;if(I){var L=Hp(I,void 0,0,R);ff(L.inferences,r.extendsType,O,768),O=V_(O,L.mapper),M=L.mapper}if($_(O,r.extendsType)&&(R(t.checkType,r.checkType)||R(r.checkType,t.checkType))&&((o=R(V_(Hl(t),M),Hl(r),i))&&(o&=R(Gl(t),Gl(r),i)),o))return F(d),o}else{var B=Ws(t);if(B&&(o=R(B,r,i)))return F(d),o}var j=qs(t);if(j&&(o=R(j,r,i)))return F(d),o}else{if(n!==Zr&&n!==$r&&(te=r,32&e.getObjectFlags(te)&&4&Is(te))&&Dd(t))return-1;if(Ls(r))return Ls(t)&&(o=function(e,t,r){if(n===tn||(n===rn?Is(e)===Is(t):Ms(e)<=Ms(t))){var i;if(i=R(ks(t),V_(ks(e),E_(Ms(e)<0?H:X)),r)){var a=S_([Es(e)],[Es(t)]);if(V_(Ns(e),a)===V_(Ns(t),a))return i&R(V_(As(e),a),As(t),r)}}return 0}(t,r,i))?(F(d),o):0;var J=!!(131068&t.flags);if(n!==rn)t=tc(t);else if(Ls(t))return 0;if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&t.target===r.target&&!(8192&e.getObjectFlags(t)||8192&e.getObjectFlags(r))){var q,W;if((q=Bd(t.target))===e.emptyArray)return 1;if(void 0!==(W=re(au(t),au(r),q,a)))return W}else{if($d(r)?Zd(t)||fp(t):Zd(r)&&fp(t)&&!t.target.readonly)return n!==rn?R(yc(t,1)||be,yc(r,1)||be,i):0;if((n===Zr||n===$r)&&Dd(r)&&32768&e.getObjectFlags(r)&&!Dd(t))return 0}if(2621440&t.flags&&524288&r.flags){var G=i&&l===d.errorInfo&&!J;if((o=$(t,r,G,void 0,a))&&(o&=ee(t,r,0,G))&&(o&=ee(t,r,1,G))&&(o&=ae(t,r,0,J,G,a))&&(o&=ae(t,r,1,J,G,a)),_&&o)l=s||l||d.errorInfo;else if(o)return o}if(2621440&t.flags&&1048576&r.flags){var Q=_g(r,36175872);if(1048576&Q.flags){var Z=function(t,r){var i=Of(zs(t),r);if(!i)return 0;for(var a=1,o=0,s=i;o<s.length;o++){if((a*=sg(_o(_=s[o])))>25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:r.id,numCombinations:a}),0}for(var c=new Array(i.length),u=new e.Set,l=0;l<i.length;l++){var _,d=_o(_=i[l]);c[l]=1048576&d.flags?d.types:[d],u.add(_.escapedName)}for(var p=e.cartesianProduct(c),f=[],g=function(a){var o=!1;e:for(var s=0,c=r.types;s<c.length;s++){for(var u=c[s],l=function(e){var o=i[e],s=_c(u,o.escapedName);return s?o===s?"continue":Y(t,r,o,s,(function(t){return a[e]}),!1,0,K||n===tn)?void 0:"continue-outer":"continue-outer"},_=0;_<i.length;_++){switch(l(_)){case"continue-outer":continue e}}e.pushIfUnique(f,u,e.equateValues),o=!0}if(!o)return{value:0}},m=0,y=p;m<y.length;m++){var v=g(y[m]);if("object"==typeof v)return v.value}for(var h=-1,b=0,x=f;b<x.length;b++){var D=x[b];if((h&=$(t,D,!1,u,0))&&(h&=ee(t,D,0,!1))&&(h&=ee(t,D,1,!1))&&(!(h&=ae(t,D,0,!1,!1,0))||fp(t)&&fp(D)||(h&=ae(t,D,1,!1,!1,0))),!h)return h}return h}(t,Q);if(Z)return Z}}}var te;return 0;function re(t,r,a,c){if(o=function(t,r,i,a,o){if(void 0===t&&(t=e.emptyArray),void 0===r&&(r=e.emptyArray),void 0===i&&(i=e.emptyArray),t.length!==r.length&&n===rn)return 0;for(var s=t.length<=r.length?t.length:r.length,c=-1,u=0;u<s;u++){var l=u<i.length?i[u]:1,_=7&l;if(4!==_){var d=t[u],p=r[u],f=-1;if(8&l?f=n===rn?R(d,p,!1):ed(d,p):1===_?f=R(d,p,a,void 0,o):2===_?f=R(p,d,a,void 0,o):3===_?(f=R(p,d,!1))||(f=R(d,p,a,void 0,o)):(f=R(d,p,a,void 0,o))&&(f&=R(p,d,a,void 0,o)),!f)return 0;c&=f}}return c}(t,r,a,i,c))return o;if(e.some(a,(function(e){return!!(24&e)})))return s=void 0,void F(d);var u=r&&function(e,t){for(var r=0;r<t.length;r++)if(1==(7&t[r])&&16384&e[r].flags)return!0;return!1}(r,a);if(_=!u,a!==e.emptyArray&&!u){if(_&&(!i||!e.some(a,(function(e){return 0==(7&e)}))))return 0;s=l,F(d)}}}(t,r,i,a);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function H(e){return!nr||e!==ut&&e!==lt&&e!==ir||nr(!1),e}function X(e){return!nr||e!==ut&&e!==lt&&e!==ir||nr(!0),e}function Q(e,t){if(!t||0===e.length)return e;for(var r,n=0;n<e.length;n++)t.has(e[n].escapedName)?r||(r=e.slice(0,n)):r&&r.push(e[n]);return r||e}function Y(t,r,n,i,a,o,s,c){var u=e.getDeclarationModifierFlagsFromSymbol(n),l=e.getDeclarationModifierFlagsFromSymbol(i);if(8&u||8&l){if(n.valueDeclaration!==i.valueDeclaration)return o&&(8&u&&8&l?O(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,aa(i)):O(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,aa(i),sa(8&u?t:r),sa(8&u?r:t))),0}else if(16&l){if(!function(t,r){return!Vd(r,(function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&(n=t,i=Kd(r),!Vd(n,(function(e){var t=Kd(e);return!!t&&go(t,i)})));var n,i}))}(n,i))return o&&O(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,aa(i),sa(Kd(n)||t),sa(Kd(i)||r)),0}else if(16&u)return o&&O(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,aa(i),sa(t),sa(r)),0;var _=function(t,r,n,i,a){var o=K&&!!(48&e.getCheckFlags(r)),s=n(t);if(65536&e.getCheckFlags(r)&&!Sn(r).type){var c=Sn(r);e.Debug.assertIsDefined(c.deferralParent),e.Debug.assertIsDefined(c.deferralConstituents);for(var u=!!(1048576&c.deferralParent.flags),l=u?0:-1,_=0,d=c.deferralConstituents;_<d.length;_++){var p=R(s,d[_],!1,void 0,u?0:2);if(u){if(p)return p}else{if(!p)return R(s,La(_o(r),o),i);l&=p}}return u&&!l&&o&&(l=R(s,ke)),u&&!l&&i?R(s,La(_o(r),o),i):l}return R(s,La(_o(r),o),i,void 0,a)}(n,i,a,o,s);return _?c||!(16777216&n.flags)||16777216&i.flags?_:(o&&O(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,aa(i),sa(t),sa(r)),0):(o&&w(e.Diagnostics.Types_of_property_0_are_incompatible,aa(i)),0)}function Z(t,r,n,i){var s=!1;if(n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name)&&t.symbol&&32&t.symbol.flags){var c=n.valueDeclaration.name.escapedText,u=e.getSymbolNameForPrivateIdentifier(t.symbol,c);if(u&&_c(t,u)){var d=e.factory.getDeclarationName(t.symbol.valueDeclaration),p=e.factory.getDeclarationName(r.symbol.valueDeclaration);return void O(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,In(c),In(""===d.escapedText?o:d),In(""===p.escapedText?o:p))}}var f,g=e.arrayFrom(sf(t,r,i,!1));if((!a||a.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&a.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 m=aa(n);O.apply(void 0,__spreadArray([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,m],ca(t,r))),e.length(n.declarations)&&(f=e.createDiagnosticForNode(n.declarations[0],e.Diagnostics._0_is_declared_here,m),e.Debug.assert(!!l),_?_.push(f):_=[f]),s&&l&&b++}else L(t,r,!1)&&(g.length>5?O(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,sa(t),sa(r),e.map(g.slice(0,4),(function(e){return aa(e)})).join(", "),g.length-4):O(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,sa(t),sa(r),e.map(g,(function(e){return aa(e)})).join(", ")),s&&l&&b++)}function $(t,r,i,a,o){if(n===rn)return function(e,t,r){if(!(524288&e.flags&&524288&t.flags))return 0;var n=Q(Bs(e),r),i=Q(Bs(t),r);if(n.length!==i.length)return 0;for(var a=-1,o=0,s=n;o<s.length;o++){var c=s[o],u=js(t,c.escapedName);if(!u)return 0;var l=Xd(c,u,R);if(!l)return 0;a&=l}return a}(t,r,a);var s=-1;if(fp(r)){if(Zd(t)||fp(t)){if(!r.target.readonly&&($d(t)||fp(t)&&t.target.readonly))return 0;var c=ou(t),u=ou(r),l=fp(t)?4&t.target.combinedFlags:4,_=4&r.target.combinedFlags,d=fp(t)?t.target.minLength:0,p=r.target.minLength;if(!l&&c<p)return i&&O(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,c,p),0;if(!_&&u<d)return i&&O(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,d,u),0;if(!_&&l)return i&&(d<p?O(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,p):O(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,u)),0;for(var f=au(t),g=au(r),m=Math.min(fp(t)?Hu(t.target,11):0,Hu(r.target,11)),y=Math.min(fp(t)?Gu(t.target,11):0,_?Gu(r.target,11):0),v=!!a,h=0;h<u;h++){var b=h<u-y?h:h+c-u,x=fp(t)&&(h<m||h>=u-y)?t.target.elementFlags[b]:4,D=r.target.elementFlags[h];if(8&D&&!(8&x))return i&&O(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,h),0;if(8&x&&!(12&D))return i&&O(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,b,h),0;if(1&D&&!(1&x))return i&&O(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,h),0;if(!(v&&((12&x||12&D)&&(v=!1),v&&(null==a?void 0:a.has(""+h))))){var S=fp(t)?h<m||h>=u-y?f[b]:vp(t,m,y)||Ue:f[0],T=g[h];if(!(j=R(S,8&x&&4&D?Ou(T):T,i,void 0,o)))return i&&(h<m||h>=u-y||c-m-y==1?w(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,b,h):w(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,m,c-y-1,h)),0;s&=j}}return s}if(12&r.target.combinedFlags)return 0}var C=!(n!==Zr&&n!==$r||yf(t)||np(t)||fp(t)),E=cf(t,r,C,!1);if(E)return i&&Z(t,r,E,C),0;if(yf(r))for(var k=0,N=Q(zs(t),a);k<N.length;k++){if(!js(r,(M=N[k]).escapedName))if((S=_o(M))!==ke&&S!==Ne&&S!==Ae)return i&&O(e.Diagnostics.Property_0_does_not_exist_on_type_1,aa(M),sa(r)),0}for(var A=zs(r),F=fp(t)&&fp(r),P=0,I=Q(A,a);P<I.length;P++){var M,L=I[P],B=L.escapedName;if(!(4194304&L.flags)&&(!F||Pm(B)||"length"===B))if((M=_c(t,B))&&M!==L){var j;if(!(j=Y(t,r,M,L,_o,i,o,n===tn)))return 0;s&=j}}return s}function ee(t,r,i,a){var o,s;if(n===rn)return function(e,t,r){var n=pc(e,r),i=pc(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=Qd(n[o],i[o],!1,!1,!1,R);if(!s)return 0;a&=s}return a}(t,r,i);if(r===at||t===at)return-1;var c=t.symbol&&Av(t.symbol.valueDeclaration),u=r.symbol&&Av(r.symbol.valueDeclaration),l=pc(t,c&&1===i?0:i),_=pc(r,u&&1===i?0:i);if(1===i&&l.length&&_.length){var d=!!(4&l[0].flags),p=!!(4&_[0].flags);if(d&&!p)return a&&O(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(t,r,n){if(!t.declaration||!r.declaration)return!0;var i=e.getSelectedEffectiveModifierFlags(t.declaration,24),a=e.getSelectedEffectiveModifierFlags(r.declaration,24);if(8===a)return!0;if(16===a&&8!==i)return!0;if(16!==a&&!i)return!0;n&&O(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,fa(i),fa(a));return!1}(l[0],_[0],a))return 0}var f=-1,g=P(),m=1===i?re:te,y=e.getObjectFlags(t),v=e.getObjectFlags(r);if(64&y&&64&v&&t.symbol===r.symbol)for(var h=0;h<_.length;h++){if(!(w=ne(l[h],_[h],!0,a,m(l[h],_[h]))))return 0;f&=w}else if(1===l.length&&1===_.length){var b=n===tn||!!J.noStrictGenericChecks,x=e.first(l),D=e.first(_);if(!(f=ne(x,D,b,a,m(x,D)))&&a&&1===i&&y&v&&(166===(null===(o=D.declaration)||void 0===o?void 0:o.kind)||166===(null===(s=x.declaration)||void 0===s?void 0:s.kind))){var S=function(e){return oa(e,void 0,262144,i)};return O(e.Diagnostics.Type_0_is_not_assignable_to_type_1,S(x),S(D)),O(e.Diagnostics.Types_of_construct_signatures_are_incompatible),f}}else e:for(var T=0,C=_;T<C.length;T++){for(var E=C[T],k=a,N=0,A=l;N<A.length;N++){var w,I=A[N];if(w=ne(I,E,!0,k,m(I,E))){f&=w,F(g);continue e}k=!1}return k&&O(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,sa(t),oa(E,void 0,void 0,i)),0}return f}function te(t,r){return 0===t.parameters.length&&0===r.parameters.length?function(t,r){return w(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,sa(t),sa(r))}:function(t,r){return w(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,sa(t),sa(r))}}function re(t,r){return 0===t.parameters.length&&0===r.parameters.length?function(t,r){return w(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,sa(t),sa(r))}:function(t,r){return w(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,sa(t),sa(r))}}function ne(e,t,r,i,a){return hd(r?Uc(e):e,r?Uc(t):t,n===$r?8:0,i,O,a,R,E_(X))}function ie(t,r,n){var i=R(t,r,n);return!i&&n&&O(e.Diagnostics.Index_signatures_are_incompatible),i}function ae(t,r,i,a,o,s){if(n===rn)return function(e,t,r){var n=mc(t,r),i=mc(e,r);if(!i&&!n)return-1;if(i&&n&&i.isReadonly===n.isReadonly)return R(i.type,n.type);return 0}(t,r,i);var c=yc(r,i);if(!c||1&c.flags&&!a)return-1;if(Ls(t))return yc(r,0)?R(As(t),c,o):0;var u=yc(t,i)||1===i&&yc(t,0);if(u)return ie(u,c,o);if(!(1&s)&&wp(t)){var l=function(t,r,n,i){for(var a=-1,o=0,s=2097152&t.flags?Js(t):Bs(t);o<s.length;o++){var c=s[o];if(!Nd(t,c)){var u=Sn(c).nameType;if(!(u&&8192&u.flags)&&(0===n||Pm(c.escapedName))){var l=_o(c),_=R(32768&l.flags||!(0===n&&16777216&c.flags)?l:zf(l,524288),r,i);if(!_)return i&&O(e.Diagnostics.Property_0_is_incompatible_with_index_signature,aa(c)),0;a&=_}}}return a}(t,c,i,o);if(l&&0===i){var _=yc(t,1);_&&(l&=ie(_,c,o))}return l}return o&&O(e.Diagnostics.Index_signature_is_missing_in_type_0,sa(t)),0}}function Pd(t){if(16&t.flags)return!1;if(3145728&t.flags)return!!e.forEach(t.types,Pd);if(465829888&t.flags){var r=Us(t);if(r&&r!==t)return Pd(r)}return sp(t)||!!(134217728&t.flags)}function wd(t,r,n){return void 0===n&&(n=td),nT(t,r,n,!0)||function(t,r){var n=e.getObjectFlags(t);if(20&n&&1048576&r.flags)return e.find(r.types,(function(r){if(524288&r.flags){var i=n&e.getObjectFlags(r);if(4&i)return t.target===r.target;if(16&i)return!!t.aliasSymbol&&t.aliasSymbol===r.aliasSymbol}return!1}))}(t,r)||function(t,r){if(128&e.getObjectFlags(t)&&ig(r,rp))return e.find(r.types,(function(e){return!rp(e)}))}(t,r)||function(t,r){var n=0;if(pc(t,n).length>0||pc(t,n=1).length>0)return e.find(r.types,(function(e){return pc(e,n).length>0}))}(t,r)||function(t,r){for(var n,i=0,a=0,o=r.types;a<o.length;a++){var s=o[a],c=ul([hl(t),hl(s)]);if(4194304&c.flags)n=s,i=1/0;else if(1048576&c.flags){var u=e.length(e.filter(c.types,sp));u>=i&&(n=s,i=u)}else sp(c)&&1>=i&&(n=s,i=1)}return n}(t,r)}function Id(t,r,n,i,a){for(var o=t.types.map((function(e){})),s=0,c=r;s<c.length;s++){var u=c[s],l=u[0],_=u[1],d=ic(t,_);if(!(a&&d&&16&e.getCheckFlags(d)))for(var p=0,f=0,g=t.types;f<g.length;f++){var m=Ea(g[f],_);m&&n(l(),m)?o[p]=void 0===o[p]||o[p]:o[p]=!1,p++}}var y=o.indexOf(!0);if(-1===y)return i;for(var v=o.indexOf(!0,y+1);-1!==v;){if(!$_(t.types[y],t.types[v]))return i;v=o.indexOf(!0,v+1)}return t.types[y]}function Od(t){if(524288&t.flags){var r=Rs(t);return 0===r.callSignatures.length&&0===r.constructSignatures.length&&!r.stringIndexInfo&&!r.numberIndexInfo&&r.properties.length>0&&e.every(r.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&t.flags)&&e.every(t.types,Od)}function Md(t,r,n){var i=ru(t,e.map(t.typeParameters,(function(e){return e===r?n:e})));return i.objectFlags|=8192,i}function Ld(e){var t=Sn(e);return Rd(t.typeParameters,t,(function(r,n,i){var a=cu(e,x_(t.typeParameters,C_(n,i)));return a.aliasTypeArgumentsContainsMarker=!0,a}))}function Rd(t,r,n){var i,a,o;void 0===t&&(t=e.emptyArray);var s=r.variances;if(!s){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:t.length,id:null!==(o=null!==(i=r.id)&&void 0!==i?i:null===(a=r.declaredType)||void 0===a?void 0:a.id)&&void 0!==o?o:-1}),r.variances=e.emptyArray,s=[];for(var c=function(e){var t=!1,i=!1,a=nr;nr=function(e){return e?i=!0:t=!0};var o=n(r,e,ut),c=n(r,e,lt),u=(id(c,o)?1:0)|(id(o,c)?2:0);3===u&&id(n(r,e,ir),o)&&(u=4),nr=a,(t||i)&&(t&&(u|=8),i&&(u|=16)),s.push(u)},u=0,l=t;u<l.length;u++){c(l[u])}r.variances=s,null===e.tracing||void 0===e.tracing||e.tracing.pop()}return s}function Bd(e){return e===ht||e===bt||8&e.objectFlags?C:Rd(e.typeParameters,e,Md)}function jd(e){return 262144&e.flags&&!Vs(e)}function Jd(t){return function(t){return!!(4&e.getObjectFlags(t))&&!t.node}(t)&&e.some(au(t),(function(e){return jd(e)||Jd(e)}))}function zd(e,t,r){void 0===r&&(r=0);for(var n=""+e.target.id,i=0,a=au(e);i<a.length;i++){var o=a[i];if(jd(o)){var s=t.indexOf(o);s<0&&(s=t.length,t.push(o)),n+="="+s}else r<4&&Jd(o)?n+="<"+zd(o,t,r+1)+">":n+="-"+o.id}return n}function Ud(e,t,r,n){if(n===rn&&e.id>t.id){var i=e;e=t,t=i}var a=r?":"+r:"";if(Jd(e)&&Jd(t)){var o=[];return zd(e,o)+","+zd(t,o)+a}return e.id+","+t.id+a}function Vd(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n<i.length;n++){var a=_c(i[n],t.escapedName),o=a&&Vd(a,r);if(o)return o}}function Kd(e){return e.parent&&32&e.parent.flags?jo(Ei(e)):void 0}function qd(e){var t=Kd(e),r=t&&ko(t)[0];return r&&Ea(r,e.escapedName)}function Wd(e,t,r){if(r>=5){var n=Hd(e);if(n)for(var i=0,a=0;a<r;a++)if(Hd(t[a])===n&&++i>=5)return!0}return!1}function Hd(t){if(524288&t.flags&&!vf(t)){if(e.getObjectFlags(t)&&t.node)return t.node;if(t.symbol&&!(16&e.getObjectFlags(t)&&32&t.symbol.flags))return t.symbol;if(fp(t))return t.target}if(8388608&t.flags){do{t=t.objectType}while(8388608&t.flags);return t}if(16777216&t.flags)return t.root}function Gd(e,t){return 0!==Xd(e,t,ed)}function Xd(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(r)))return 0;if(i){if(tD(t)!==tD(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return xh(t)!==xh(r)?0:n(_o(t),_o(r))}function Qd(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=Yv(e),i=Yv(t),a=Zv(e),o=Zv(t),s=$v(e),c=$v(t);return n===i&&a===o&&s===c||!!(r&&a<=o)}(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;if(r.typeParameters){for(var s=S_(t.typeParameters,r.typeParameters),c=0;c<r.typeParameters.length;c++){if(!((g=t.typeParameters[c])===(p=r.typeParameters[c])||o(V_(Yc(g),s)||Ee,Yc(p)||Ee)&&o(V_($s(g),s)||Ee,$s(p)||Ee)))return 0}t=O_(t,s,!0)}var u=-1;if(!i){var l=Ic(t);if(l){var _=Ic(r);if(_){if(!(f=o(l,_)))return 0;u&=f}}}var d=Yv(r);for(c=0;c<d;c++){var p,f,g=Gv(t,c);if(!(f=o(p=Gv(r,c),g)))return 0;u&=f}if(!a){var m=Oc(t),y=Oc(r);u&=m||y?function(e,t,r){return e&&t&&nl(e,t)?e.type===t.type?-1:e.type&&t.type?r(e.type,t.type):0:0}(m,y,o):o(Mc(t),Mc(r))}return u}function Yd(t){return function(e){for(var t,r=0,n=e;r<n.length;r++){var i=n[r],a=up(i);if(t||(t=a),a===i||a!==t)return!1}return!0}(t)?rl(t):e.reduceLeft(t,(function(e,t){return nd(e,t)?t:e}))}function Zd(t){return!!(4&e.getObjectFlags(t))&&(t.target===ht||t.target===bt)}function $d(t){return!!(4&e.getObjectFlags(t))&&t.target===bt}function ep(e){return Zd(e)&&!$d(e)||fp(e)&&!e.target.readonly}function tp(e){return Zd(e)?au(e)[0]:void 0}function rp(e){return Zd(e)||!(98304&e.flags)&&id(e,Nt)}function np(e){var t=Zd(e)?au(e)[0]:void 0;return t===Ne||t===qe}function ip(e){return fp(e)||!!_c(e,"0")}function ap(e){return rp(e)||ip(e)}function op(e){return!(240512&e.flags)}function sp(e){return!!(109440&e.flags)}function cp(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,sp):sp(t))}function up(e){return 1024&e.flags?Mo(e):128&e.flags?we:256&e.flags?Ie:2048&e.flags?Oe:512&e.flags?je:1048576&e.flags?cg(e,up):e}function lp(e){return 1024&e.flags&&d_(e)?Mo(e):128&e.flags&&d_(e)?we:256&e.flags&&d_(e)?Ie:2048&e.flags&&d_(e)?Oe:512&e.flags&&d_(e)?je:1048576&e.flags?cg(e,lp):e}function _p(e){return 8192&e.flags?Je:1048576&e.flags?cg(e,_p):e}function dp(e,t){return Kh(e,t)||(e=_p(lp(e))),e}function pp(e,t,r,n){e&&sp(e)&&(e=dp(e,t?Ux(r,t,n):void 0));return e}function fp(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function gp(e){return fp(e)&&!!(8&e.target.combinedFlags)}function mp(e){return gp(e)&&1===e.target.elementFlags.length}function yp(e){return vp(e,e.target.fixedLength)}function vp(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=ou(e)-r;if(t<i){for(var a=au(e),o=[],s=t;s<i;s++){var c=a[s];o.push(8&e.target.elementFlags[s]?Bl(c,Ie):c)}return n?ul(o):rl(o)}}function hp(e){return"0"===e.value.base10Value}function bp(e){for(var t=0,r=0,n=e;r<n.length;r++){t|=xp(n[r])}return t}function xp(e){return 1048576&e.flags?bp(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?hp(e)?2048:0:512&e.flags?e===Me||e===Le?512:0:117724&e.flags}function Dp(e){return 117632&xp(e)?og(e,(function(e){return!(117632&xp(e))})):e}function Sp(e){return 4&e.flags?Er:8&e.flags?kr:64&e.flags?Nr:e===Le||e===Me||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&hp(e)?e:Ue}function Tp(e,t){var r=t&~e.flags&98304;return 0===r?e:rl(32768===r?[e,ke]:65536===r?[e,Fe]:[e,ke,Fe])}function Cp(t){return e.Debug.assert(K),32768&t.flags?t:rl([t,ke])}function Ep(e){return K?function(e){return At||(At=Tu("NonNullable",524288,void 0)||ve),At!==ve?cu(At,[e]):zf(e,2097152)}(e):e}function kp(e){return K?rl([e,Ae]):e}function Np(e){return e!==Ae}function Ap(e){return K?og(e,Np):e}function Fp(t,r,n){return n?e.isOutermostOptionalChain(r)?Cp(t):kp(t):t}function Pp(t,r){return e.isExpressionOfOptionalChainRoot(r)?Ep(t):e.isOptionalChain(r)?Ap(t):t}function wp(t){return 2097152&t.flags?e.every(t.types,wp):!(!t.symbol||0==(7040&t.symbol.flags)||VD(t))||!!(2048&e.getObjectFlags(t)&&wp(t.source))}function Ip(t,r){var n=fn(t.flags,t.escapedName,8&e.getCheckFlags(t));n.declarations=t.declarations,n.parent=t.parent,n.type=r,n.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration);var i=Sn(t).nameType;return i&&(n.nameType=i),n}function Op(t){if(!(yf(t)&&32768&e.getObjectFlags(t)))return t;var r=t.regularType;if(r)return r;var n=t,i=function(t,r){for(var n=e.createSymbolTable(),i=0,a=Bs(t);i<a.length;i++){var o=a[i],s=_o(o),c=r(s);n.set(o.escapedName,c===s?o:Ip(o,c))}return n}(t,Op),a=Vi(n.symbol,i,n.callSignatures,n.constructSignatures,n.stringIndexInfo,n.numberIndexInfo);return a.flags=n.flags,a.objectFlags|=-32769&n.objectFlags,t.regularType=a,a}function Mp(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function Lp(e){if(!e.siblings){for(var t=[],r=0,n=Lp(e.parent);r<n.length;r++){var i=n[r];if(yf(i)){var a=js(i,e.propertyName);a&&ig(_o(a),(function(e){t.push(e)}))}}e.siblings=t}return e.siblings}function Rp(t){if(!t.resolvedProperties){for(var r=new e.Map,n=0,i=Lp(t);n<i.length;n++){var a=i[n];if(yf(a)&&!(1024&e.getObjectFlags(a)))for(var o=0,s=zs(a);o<s.length;o++){var c=s[o];r.set(c.escapedName,c)}}t.resolvedProperties=e.arrayFrom(r.values())}return t.resolvedProperties}function Bp(e,t){if(!(4&e.flags))return e;var r=_o(e),n=zp(r,t&&Mp(t,e.escapedName,void 0));return n===r?e:Ip(e,n)}function jp(e){var t=ye.get(e.escapedName);if(t)return t;var r=Ip(e,ke);return r.flags|=16777216,ye.set(e.escapedName,r),r}function Jp(e){return zp(e,void 0)}function zp(t,r){if(1572864&e.getObjectFlags(t)){if(void 0===r&&t.widened)return t.widened;var n=void 0;if(98305&t.flags)n=be;else if(yf(t))n=function(t,r){for(var n=e.createSymbolTable(),i=0,a=Bs(t);i<a.length;i++){var o=a[i];n.set(o.escapedName,Bp(o,r))}if(r)for(var s=0,c=Rp(r);s<c.length;s++)o=c[s],n.has(o.escapedName)||n.set(o.escapedName,jp(o));var u=mc(t,0),l=mc(t,1),_=Vi(t.symbol,n,e.emptyArray,e.emptyArray,u&&Gc(Jp(u.type),u.isReadonly),l&&Gc(Jp(l.type),l.isReadonly));return _.objectFlags|=2113536&e.getObjectFlags(t),_}(t,r);else if(1048576&t.flags){var i=r||Mp(void 0,void 0,t.types),a=e.sameMap(t.types,(function(e){return 98304&e.flags?e:zp(e,i)}));n=rl(a,e.some(a,Dd)?2:1)}else 2097152&t.flags?n=ul(e.sameMap(t.types,Jp)):(Zd(t)||fp(t))&&(n=ru(t.target,e.sameMap(au(t),Jp)));return n&&void 0===r&&(t.widened=n),n||t}return t}function Up(t){var r=!1;if(524288&e.getObjectFlags(t)){if(1048576&t.flags)if(e.some(t.types,Dd))r=!0;else for(var n=0,i=t.types;n<i.length;n++){Up(l=i[n])&&(r=!0)}if(Zd(t)||fp(t))for(var a=0,o=au(t);a<o.length;a++){Up(l=o[a])&&(r=!0)}if(yf(t))for(var s=0,c=Bs(t);s<c.length;s++){var u=c[s],l=_o(u);524288&e.getObjectFlags(l)&&(Up(l)||cn(u.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,aa(u),sa(Jp(l))),r=!0)}}return r}function Vp(t,r,n){var i=sa(Jp(r));if(!e.isInJSFile(t)||e.isCheckJsEnabledForFile(e.getSourceFileOfNode(t),J)){var a;switch(t.kind){case 216:case 163:case 162:a=G?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 160:var o=t;if(e.isIdentifier(o.name)&&(e.isCallSignatureDeclaration(o.parent)||e.isMethodSignature(o.parent)||e.isFunctionTypeNode(o.parent))&&o.parent.parameters.indexOf(o)>-1&&(An(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 ln(G,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}a=t.dotDotDotToken?G?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:G?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 198:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!G)return;break;case 308:return void cn(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 251:case 165:case 164:case 167:case 168:case 208:case 209:if(G&&!t.name)return void cn(t,3===n?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=G?3===n?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 190:return void(G&&cn(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=G?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}ln(G,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function Kp(t,n,i){!(r&&G&&524288&e.getObjectFlags(n))||i&&Tm(t)||Up(n)||Vp(t,n,i)}function qp(e,t,r){var n=Yv(e),i=Yv(t),a=eh(e),o=eh(t),s=o?i-1:i,c=a?s:Math.min(n,s),u=Ic(e);if(u){var l=Ic(t);l&&r(u,l)}for(var _=0;_<c;_++)r(Gv(e,_),Gv(t,_));o&&r(Qv(e,c),o)}function Wp(e,t,r){var n=Oc(e),i=Oc(t);n&&i&&nl(n,i)&&n.type&&i.type?r(n.type,i.type):r(Mc(e),Mc(t))}function Hp(e,t,r,n){return Gp(e.map(Yp),t,r,n||td)}function Gp(e,t,r,n){var i={inferences:e,signature:t,flags:r,compareTypes:n,mapper:E_((function(e){return Xp(i,e,!0)})),nonFixingMapper:E_((function(e){return Xp(i,e,!1)}))};return i}function Xp(e,t,r){for(var n=e.inferences,i=0;i<n.length;i++){var a=n[i];if(t===a.typeParameter)return r&&!a.isFixed&&(Qp(n),a.isFixed=!0),xf(e,i)}return t}function Qp(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];n.isFixed||(n.inferredType=void 0)}}function Yp(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Zp(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 $p(e){return e&&e.mapper}function ef(t){var r=e.getObjectFlags(t);if(67108864&r)return!!(134217728&r);var n=!!(465829888&t.flags||524288&t.flags&&!tf(t)&&(4&r&&(t.node||e.forEach(au(t),ef))||16&r&&t.symbol&&14384&t.symbol.flags&&t.symbol.declarations||131104&r)||3145728&t.flags&&!(1024&t.flags)&&!tf(t)&&e.some(t.types,ef));return 3899393&t.flags&&(t.objectFlags|=67108864|(n?134217728:0)),n}function tf(t){if(t.aliasSymbol&&!t.aliasTypeArguments){var r=e.getDeclarationOfKind(t.aliasSymbol,254);return!(!r||!e.findAncestor(r.parent,(function(e){return 297===e.kind||256!==e.kind&&"quit"})))}return!1}function rf(t,r){return!!(t===r||3145728&t.flags&&e.some(t.types,(function(e){return rf(e,r)}))||16777216&t.flags&&(Hl(t)===r||Gl(t)===r))}function nf(t,r,n){if(!hr){var i=t.id+","+r.id+","+n.id;if(vr.has(i))return vr.get(i);hr=!0;var a=function(t,r,n){if(!(mc(t,0)||0!==zs(t).length&&af(t)))return;if(Zd(t))return Ou(of(au(t)[0],r,n),$d(t));if(fp(t)){return zu(e.map(au(t),(function(e){return of(e,r,n)})),4&Is(r)?e.sameMap(t.target.elementFlags,(function(e){return 2&e?1:e})):t.target.elementFlags,t.target.readonly,t.target.labeledElementDeclarations)}var i=Bi(2064,void 0);return i.source=t,i.mappedType=r,i.constraintType=n,i}(t,r,n);return hr=!1,vr.set(i,a),a}}function af(t){return!(2097152&e.getObjectFlags(t))||yf(t)&&e.some(zs(t),(function(e){return af(_o(e))}))||fp(t)&&e.some(au(t),af)}function of(e,t,r){var n=Bl(r.type,Es(t)),i=As(t),a=Yp(n);return ff([a],e,i),uf(a)||Ee}function sf(t,r,n,i){var a,o,s,c,u,l,_;return __generator(this,(function(d){switch(d.label){case 0:a=zs(r),o=0,s=a,d.label=1;case 1:return o<s.length?Ho(c=s[o])||!n&&(16777216&c.flags||48&e.getCheckFlags(c))?[3,5]:(u=_c(t,c.escapedName))?[3,3]:[4,c]:[3,6];case 2:return d.sent(),[3,5];case 3:return i&&109440&(l=_o(c)).flags?1&(_=_o(u)).flags||__(_)===__(l)?[3,5]:[4,c]:[3,5];case 4:d.sent(),d.label=5;case 5:return o++,[3,1];case 6:return[2]}}))}function cf(e,t,r,n){var i=sf(e,t,r,n).next();if(!i.done)return i.value}function uf(e){return e.candidates?rl(e.candidates,2):e.contraCandidates?ul(e.contraCandidates):void 0}function lf(e){return!!Tn(e).skipDirectInference}function _f(t){return!(!t.symbol||!e.some(t.symbol.declarations,lf))}function df(t,r){if(1048576&r.flags)return!!ig(r,(function(e){return df(t,e)}));switch(r){case we:return!0;case Ie:return""!==t.value&&isFinite(+t.value);case Oe:return""!==t.value&&function(t){var r=e.createScanner(99,!1),n=!0;r.setOnError((function(){return n=!1})),r.setText(t+"n");var i=r.scan();40===i&&(i=r.scan());var a=r.getTokenFlags();return n&&9===i&&r.getTextPos()===t.length+1&&!(512&a)}(t.value);case Re:return"true"===t.value;case Me:return"false"===t.value;case ke:return"undefined"===t.value;case Fe:return"null"===t.value;default:return!!(1&r.flags)}}function pf(e,t){var r=e.value,n=t.texts,i=n.length-1,a=n[0],o=n[i];if(r.startsWith(a)&&r.slice(a.length).endsWith(o)){for(var s=[],c=r.slice(a.length,r.length-o.length),u=0,l=1;l<i;l++){var _=n[l],d=_.length>0?c.indexOf(_,u):u<c.length?u+1:-1;if(d<0)return;s.push(p_(c.slice(u,d))),u=d+_.length}return s.push(p_(c.slice(u))),s}}function ff(t,r,n,i,a){void 0===i&&(i=0),void 0===a&&(a=!1);var o,s,c,u,l=!1,_=1024,d=!0,p=0;function f(r,s){if(ef(s)){if(r===De){var c=o;return o=r,f(s,s),void(o=c)}if(r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===s.aliasSymbol)v(r.aliasTypeArguments,s.aliasTypeArguments,Ld(r.aliasSymbol));else if(r===s&&3145728&r.flags)for(var u=0,p=r.types;u<p.length;u++){var h=p[u];f(h,h)}else{if(1048576&s.flags){var D=y(1048576&r.flags?r.types:[r],s.types,gf),C=y(D[0],D[1],mf),E=C[0];if(0===(N=C[1]).length)return;if(s=rl(N),0===E.length)return void g(r,s,1);r=rl(E)}else if(2097152&s.flags&&e.some(s.types,(function(e){return!!b(e)||Ls(e)&&!!b(R_(e)||Ue)}))){if(!(1048576&r.flags)){var k=y(2097152&r.flags?r.types:[r],s.types,$_),N=(E=k[0],k[1]);if(0===E.length||0===N.length)return;r=ul(E),s=ul(N)}}else 41943040&s.flags&&(s=Vl(s));if(8650752&s.flags){if(2097152&e.getObjectFlags(r)||r===Te||r===Ve||64&i&&(r===xe||r===kt)||_f(r))return;var A=b(s);if(A){if(!A.isFixed){if((void 0===A.priority||i<A.priority)&&(A.candidates=void 0,A.contraCandidates=void 0,A.topLevel=!0,A.priority=i),i===A.priority){var F=o||r;a&&!l?e.contains(A.contraCandidates,F)||(A.contraCandidates=e.append(A.contraCandidates,F),Qp(t)):e.contains(A.candidates,F)||(A.candidates=e.append(A.candidates,F),Qp(t))}!(64&i)&&262144&s.flags&&A.topLevel&&!rf(n,s)&&(A.topLevel=!1,Qp(t))}return void(_=Math.min(_,i))}var P=Ol(s,!1);if(P!==s)m(r,P,f);else if(8388608&s.flags){var w=Ol(s.indexType,!1);if(465829888&w.flags){var I=Ml(Ol(s.objectType,!1),w,!1);I&&I!==s&&m(r,I,f)}}}if(!(4&e.getObjectFlags(r)&&4&e.getObjectFlags(s)&&(r.target===s.target||Zd(r)&&Zd(s)))||r.node&&s.node)if(4194304&r.flags&&4194304&s.flags)a=!a,f(r.type,s.type),a=!a;else if((cp(r)||4&r.flags)&&4194304&s.flags){var O=function(t){var r=e.createSymbolTable();ig(t,(function(t){if(128&t.flags){var n=e.escapeLeadingUnderscores(t.value),i=fn(4,n);i.type=be,t.symbol&&(i.declarations=t.symbol.declarations,i.valueDeclaration=t.symbol.valueDeclaration),r.set(n,i)}}));var n=4&t.flags?Gc(et,!1):void 0;return Vi(void 0,r,e.emptyArray,e.emptyArray,n,void 0)}(r);a=!a,g(O,s.type,128),a=!a}else if(8388608&r.flags&&8388608&s.flags)f(r.objectType,s.objectType),f(r.indexType,s.indexType);else if(268435456&r.flags&&268435456&s.flags)r.symbol===s.symbol&&f(r.type,s.type);else if(16777216&s.flags)m(r,s,S);else if(3145728&s.flags)x(r,s.types,s.flags);else if(1048576&r.flags)for(var M=0,L=r.types;M<L.length;M++){f(L[M],s)}else if(134217728&s.flags)!function(t,r){for(var n=128&t.flags?pf(t,r):134217728&t.flags&&e.arraysEqual(t.texts,r.texts)?t.types:void 0,i=r.types,a=0;a<i.length;a++)f(n?n[a]:Ue,i[a])}(r,s);else{if(r=oc(r),!(256&i&&467927040&r.flags)){var R=tc(r);if(R!==r&&d&&!(2621440&R.flags))return d=!1,f(R,s);r=R}2621440&r.flags&&m(r,s,T)}else v(au(r),au(s),Bd(r.target))}}}function g(e,t,r){var n=i;i|=r,f(e,t),i=n}function m(t,r,n){var i=t.id+","+r.id,a=s&&s.get(i);if(void 0===a){(s||(s=new e.Map)).set(i,-1);var o=_;_=1024;var l=p,d=Hd(t)||t,f=Hd(r)||r;d&&e.contains(c,d)&&(p|=1),f&&e.contains(u,f)&&(p|=2),3!==p?(d&&(c||(c=[])).push(d),f&&(u||(u=[])).push(f),n(t,r),f&&u.pop(),d&&c.pop()):_=-1,p=l,s.set(i,_),_=Math.min(_,o)}else _=Math.min(_,a)}function y(t,r,n){for(var i,a,o=0,s=r;o<s.length;o++)for(var c=s[o],u=0,l=t;u<l.length;u++){var _=l[u];n(_,c)&&(f(_,c),i=e.appendIfUnique(i,_),a=e.appendIfUnique(a,c))}return[i?e.filter(t,(function(t){return!e.contains(i,t)})):t,a?e.filter(r,(function(t){return!e.contains(a,t)})):r]}function v(e,t,r){for(var n=e.length<t.length?e.length:t.length,i=0;i<n;i++)i<r.length&&2==(7&r[i])?h(e[i],t[i]):f(e[i],t[i])}function h(e,t){q||512&i?(a=!a,f(e,t),a=!a):f(e,t)}function b(e){if(8650752&e.flags)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(e===i.typeParameter)return i}}function x(t,r,n){var a=0;if(1048576&n){for(var o=void 0,s=1048576&t.flags?t.types:[t],c=new Array(s.length),u=!1,l=0,d=r;l<d.length;l++){if(b(T=d[l]))o=T,a++;else for(var p=0;p<s.length;p++){var m=_;_=1024,f(s[p],T),_===i&&(c[p]=!0),u=u||-1===_,_=Math.min(_,m)}}if(0===a){var y=function(t){for(var r,n=0,i=t;n<i.length;n++){var a=i[n],o=2097152&a.flags&&e.find(a.types,(function(e){return!!b(e)}));if(!o||r&&o!==r)return;r=o}return r}(r);return void(y&&g(t,y,1))}if(1===a&&!u){var v=e.flatMap(s,(function(e,t){return c[t]?void 0:e}));if(v.length)return void f(rl(v),o)}}else for(var h=0,x=r;h<x.length;h++){b(T=x[h])?a++:f(t,T)}if(2097152&n?1===a:a>0)for(var D=0,S=r;D<S.length;D++){var T;b(T=S[D])&&g(t,T,1)}}function D(t,r,n){if(1048576&n.flags){for(var i=!1,a=0,o=n.types;a<o.length;a++){i=D(t,r,o[a])||i}return i}if(4194304&n.flags){var s=b(n.type);if(s&&!s.isFixed&&!_f(t)){var c=nf(t,r,n);c&&g(c,s.typeParameter,2097152&e.getObjectFlags(t)?8:4)}return!0}if(262144&n.flags){g(hl(t),n,16);var u=Us(n);if(u&&D(t,r,u))return!0;var l=e.map(zs(t),_o),_=yc(t,0),d=vl(t),p=d&&d.type;return f(rl(e.append(e.append(l,_),p)),As(r)),!0}return!1}function S(e,t){if(16777216&e.flags)f(e.checkType,t.checkType),f(e.extendsType,t.extendsType),f(Hl(e),Hl(t)),f(Gl(e),Gl(t));else{var r=i;i|=a?32:0,x(e,[Hl(t),Gl(t)],t.flags),i=r}}function T(t,r){if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&(t.target===r.target||Zd(t)&&Zd(r)))v(au(t),au(r),Bd(t.target));else{if(Ls(t)&&Ls(r)){f(ks(t),ks(r)),f(As(t),As(r));var n=Ns(t),i=Ns(r);n&&i&&f(n,i)}var a,o;if(32&e.getObjectFlags(r)&&!r.declaration.nameType)if(D(t,r,ks(r)))return;if(!function(e,t){return fp(e)&&fp(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength<e.target.fixedLength)}(e,t):!!cf(e,t,!1,!0)&&!!cf(t,e,!1,!1)}(t,r)){if(Zd(t)||fp(t)){if(fp(r)){var s=ou(t),c=ou(r),u=au(r),l=r.target.elementFlags;if(fp(t)&&(o=r,ou(a=t)===ou(o)&&e.every(a.target.elementFlags,(function(e,t){return(12&e)==(12&o.target.elementFlags[t])})))){for(var _=0;_<c;_++)f(au(t)[_],u[_]);return}var d=fp(t)?Math.min(t.target.fixedLength,r.target.fixedLength):0,p=Math.min(fp(t)?Gu(t.target,3):0,r.target.hasRestElement?Gu(r.target,3):0);for(_=0;_<d;_++)f(au(t)[_],u[_]);if(!fp(t)||s-d-p==1&&4&t.target.elementFlags[d]){var m=au(t)[d];for(_=d;_<c-p;_++)f(8&l[_]?Ou(m):m,u[_])}else{var y=c-d-p;if(2===y&&l[d]&l[d+1]&8&&fp(t)){var h=b(u[d]);h&&void 0!==h.impliedArity&&(f(qu(t,d,p+s-h.impliedArity),u[d]),f(qu(t,d+h.impliedArity,p),u[d+1]))}else if(1===y&&8&l[d]){var x=2&r.target.elementFlags[c-1];g(fp(t)?qu(t,d,p):Ou(au(t)[0]),u[d],x?2:0)}else if(1===y&&4&l[d]){(m=fp(t)?vp(t,d,p):au(t)[0])&&f(m,u[d])}}for(_=0;_<p;_++)f(au(t)[s-_-1],u[c-_-1]);return}if(Zd(r))return void k(t,r)}!function(e,t){for(var r=Bs(t),n=0,i=r;n<i.length;n++){var a=i[n],o=_c(e,a.escapedName);o&&f(_o(o),_o(a))}}(t,r),C(t,r,0),C(t,r,1),k(t,r)}}}function C(t,r,n){for(var i=pc(t,n),a=pc(r,n),o=i.length,s=a.length,c=o<s?o:s,u=!!(2097152&e.getObjectFlags(t)),l=0;l<c;l++)E(Kc(i[o-c+l]),Uc(a[s-c+l]),u)}function E(e,t,r){if(!r){var n=l,i=t.declaration?t.declaration.kind:0;l=l||165===i||164===i||166===i,qp(e,t,h),l=n}Wp(e,t,f)}function k(e,t){var r=yc(t,0);r&&((n=yc(e,0)||vc(e,0))&&f(n,r));var n,i=yc(t,1);i&&((n=yc(e,1)||yc(e,0)||vc(e,1))&&f(n,i))}f(r,n)}function gf(e,t){return $_(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function mf(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function yf(t){return!!(128&e.getObjectFlags(t))}function vf(t){return!!(65664&e.getObjectFlags(t))}function hf(t){return 208&t.priority?ul(t.contraCandidates):(r=t.contraCandidates,e.reduceLeft(r,(function(e,t){return nd(t,e)?t:e})));var r}function bf(t,r){var n,i,a=function(t){if(t.length>1){var r=e.filter(t,vf);if(r.length){var n=rl(r,2);return e.concatenate(e.filter(t,(function(e){return!vf(e)})),[n])}}return t}(t.candidates),o=(n=t.typeParameter,!!(i=Vs(n))&&Eh(16777216&i.flags?qs(i):i,406978556)),s=!o&&t.topLevel&&(t.isFixed||!rf(Mc(r),t.typeParameter)),c=o?e.sameMap(a,__):s?e.sameMap(a,lp):a;return Jp(208&t.priority?rl(c,2):function(t){if(!K)return Yd(t);var r=e.filter(t,(function(e){return!(98304&e.flags)}));return r.length?Tp(Yd(r),98304&bp(t)):rl(t,2)}(c))}function xf(t,r){var n=t.inferences[r];if(!n.inferredType){var i=void 0,a=t.signature;if(a){var o=n.candidates?bf(n,a):void 0;if(n.contraCandidates){var s=hf(n);i=!o||131072&o.flags||!nd(o,s)?s:o}else if(o)i=o;else if(1&t.flags)i=Ve;else{var c=$s(n.typeParameter);c&&(i=V_(c,F_(function(t,r){return E_((function(n){return e.findIndex(t.inferences,(function(e){return e.typeParameter===n}))>=r?Ee:n}))}(t,r),t.nonFixingMapper)))}}else i=uf(n);n.inferredType=i||Df(!!(2&t.flags));var u=Vs(n.typeParameter);if(u){var l=V_(u,t.nonFixingMapper);i&&t.compareTypes(i,as(l,i))||(n.inferredType=i=l)}}return n.inferredType}function Df(e){return e?be:Ee}function Sf(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(xf(e,r));return t}function Tf(t){switch(t.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 J.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 J.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 J.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 289===t.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 Cf(t){var r=Tn(t);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(t)&&An(t,t.escapedText,1160127,Tf(t),t,!e.isWriteOnlyAccess(t),!1,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||ve),r.resolvedSymbol}function Ef(t){return!!e.findAncestor(t,(function(e){return 176===e.kind||78!==e.kind&&157!==e.kind&&"quit"}))}function kf(e,t,r,n){switch(e.kind){case 78:var i=Cf(e);return i!==ve?(n?P(n):"-1")+"|"+Xu(t)+"|"+Xu(r)+"|"+(Mg(e)?"@":"")+w(i):void 0;case 107:return"0|"+(n?P(n):"-1")+"|"+Xu(t)+"|"+Xu(r);case 225:case 207:return kf(e.expression,t,r,n);case 201:case 202:var a=Ff(e);if(void 0!==a){var o=kf(e.expression,t,r,n);return o&&o+"."+a}}}function Nf(t,r){switch(r.kind){case 207:case 225:return Nf(t,r.expression);case 216:return e.isAssignmentExpression(r)&&Nf(t,r.left)||e.isBinaryExpression(r)&&27===r.operatorToken.kind&&Nf(t,r.right)}switch(t.kind){case 78:case 79:return 78===r.kind&&Cf(t)===Cf(r)||(249===r.kind||198===r.kind)&&Pi(Cf(t))===Ci(r);case 107:return 107===r.kind;case 105:return 105===r.kind;case 225:case 207:return Nf(t.expression,r);case 201:case 202:return e.isAccessExpression(r)&&Ff(t)===Ff(r)&&Nf(t.expression,r.expression);case 157:return e.isAccessExpression(r)&&t.right.escapedText===Ff(r)&&Nf(t.left,r.expression);case 216:return e.isBinaryExpression(t)&&27===t.operatorToken.kind&&Nf(t.right,r)}return!1}function Af(e,t){return Nf(e,t)||216===t.kind&&55===t.operatorToken.kind&&(Af(e,t.left)||Af(e,t.right))}function Ff(t){return 201===t.kind?t.name.escapedText:e.isStringOrNumericLiteralLike(t.argumentExpression)?e.escapeLeadingUnderscores(t.argumentExpression.text):void 0}function Pf(t,r){for(;e.isAccessExpression(t);)if(Nf(t=t.expression,r))return!0;return!1}function wf(t,r){for(;e.isOptionalChain(t);)if(Nf(t=t.expression,r))return!0;return!1}function If(t,r){if(t&&1048576&t.flags){var n=ic(t,r);if(n&&2&e.getCheckFlags(n))return void 0===n.isDiscriminantProperty&&(n.isDiscriminantProperty=192==(192&n.checkFlags)&&!Eh(_o(n),465829888)),!!n.isDiscriminantProperty}return!1}function Of(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(If(t,a.escapedName)){if(r){r.push(a);continue}r=[a]}}return r}function Mf(e,t){return Nf(e,t)||Pf(e,t)}function Lf(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++){if(Mf(t,n[r]))return!0}return!(201!==e.expression.kind||!Mf(t,e.expression.expression))}function Rf(e){return(!e.id||e.id<0)&&(e.id=l,l++),e.id}function Bf(e,t){if(e!==t){if(131072&t.flags)return t;var r=og(e,(function(e){return function(e,t){if(!(1048576&e.flags))return id(e,t);for(var r=0,n=e.types;r<n.length;r++)if(id(n[r],t))return!0;return!1}(t,e)}));if(512&t.flags&&d_(t)&&(r=cg(r,l_)),id(t,r))return r}return e}function jf(e){var t=Rs(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&nd(e,mt))}function Jf(t){var r=t.flags;if(4&r)return K?16317953:16776705;if(128&r){var n=""===t.value;return K?n?12123649:7929345:n?12582401:16776705}if(40&r)return K?16317698:16776450;if(256&r){var i=0===t.value;return K?i?12123394:7929090:i?12582146:16776450}if(64&r)return K?16317188:16775940;if(2048&r){i=hp(t);return K?i?12122884:7928580:i?12581636:16775940}return 16&r?K?16316168:16774920:528&r?K?t===Me||t===Le?12121864:7927560:t===Me||t===Le?12580616:16774920:524288&r?16&e.getObjectFlags(t)&&Dd(t)?K?16318463:16777215:jf(t)?K?7880640:16728e3:K?7888800:16736160:49152&r?9830144:65536&r?9363232:12288&r?K?7925520:16772880:67108864&r?K?7888800:16736160:131072&r?0:465829888&r?Fl(t)?K?7929345:16776705:Jf(Gs(t)||Ee):3145728&r?function(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=Jf(n[r]);return t}(t.types):16777215}function zf(e,t){return og(e,(function(e){return 0!=(Jf(e)&t)}))}function Uf(e,t){if(t){var r=tb(t);return rl([zf(e,524288),r])}return e}function Vf(e,t){var r=gl(t);if(!Xo(r))return Se;var n=es(r);return Rg(Ea(e,n),t)||Pm(n)&&qf(yc(e,1))||qf(yc(e,0))||Se}function Kf(e,t){return ag(e,ip)&&function(e,t){return Ea(e,""+t)||(ag(e,fp)?cg(e,(function(e){return yp(e)||ke})):void 0)}(e,t)||qf(hx(65,e,ke,void 0))||Se}function qf(e){return e&&J.noUncheckedIndexedAccess?rl([e,ke]):e}function Wf(e){return Ou(hx(65,e,ke,void 0)||Se)}function Hf(e){return 216===e.parent.kind&&e.parent.left===e||239===e.parent.kind&&e.parent.initializer===e}function Gf(e){return Vf(Xf(e.parent),e.name)}function Xf(e){var t=e.parent;switch(t.kind){case 238:return we;case 239:return vx(t)||Se;case 216:return function(e){return 199===e.parent.kind&&Hf(e.parent)||288===e.parent.kind&&Hf(e.parent.parent)?Uf(Xf(e),e.right):tb(e.right)}(t);case 210:return ke;case 199:return function(e,t){return Kf(Xf(e),e.elements.indexOf(t))}(t,e);case 220:return function(e){return Wf(Xf(e.parent))}(t);case 288:return Gf(t);case 289:return function(e){return Uf(Gf(e),e.objectAssignmentInitializer)}(t)}return Se}function Qf(e){return Tn(e).resolvedType||tb(e)}function Yf(e){return 249===e.kind?function(e){return e.initializer?Qf(e.initializer):238===e.parent.parent.kind?we:239===e.parent.parent.kind&&vx(e.parent.parent)||Se}(e):function(e){var t=e.parent,r=Yf(t.parent);return Uf(196===t.kind?Vf(r,e.propertyName||e.name):e.dotDotDotToken?Wf(r):Kf(r,t.elements.indexOf(e)),e.initializer)}(e)}function Zf(e){switch(e.kind){case 207:return Zf(e.expression);case 216:switch(e.operatorToken.kind){case 62:case 74:case 75:case 76:return Zf(e.left);case 27:return Zf(e.right)}}return e}function $f(e){var t=e.parent;return 207===t.kind||216===t.kind&&62===t.operatorToken.kind&&t.left===e||216===t.kind&&27===t.operatorToken.kind&&t.right===e?$f(t):e}function eg(e){return 284===e.kind?__(tb(e.expression)):Ue}function tg(e){var t=Tn(e);if(!t.switchTypes){t.switchTypes=[];for(var r=0,n=e.caseBlock.clauses;r<n.length;r++){var i=n[r];t.switchTypes.push(eg(i))}}return t.switchTypes}function rg(t,r){for(var n=[],i=0,a=t.caseBlock.clauses;i<a.length;i++){var o=a[i];if(284===o.kind){if(e.isStringLiteralLike(o.expression)){n.push(o.expression.text);continue}return e.emptyArray}r&&n.push(void 0)}return n}function ng(e,t){return e===t||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(!Qu(t.types,i))return!1}return!0}if(1024&e.flags&&Mo(e)===t)return!0;return Qu(t.types,e)}(e,t)}function ig(t,r){return 1048576&t.flags?e.forEach(t.types,r):r(t)}function ag(t,r){return 1048576&t.flags?e.every(t.types,r):r(t)}function og(t,r){if(1048576&t.flags){var n=t.types,i=e.filter(n,r);if(i===n)return t;var a=t.origin,o=void 0;if(a&&1048576&a.flags){var s=a.types,c=e.filter(s,(function(e){return!!(1048576&e.flags)||r(e)}));if(s.length-c.length==n.length-i.length){if(1===c.length)return c[0];o=tl(1048576,c)}}return il(i,t.objectFlags,void 0,void 0,o)}return 131072&t.flags||r(t)?t:Ue}function sg(e){return 1048576&e.flags?e.types.length:1}function cg(e,t,r){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);for(var n,i=e.origin,a=!1,o=0,s=i&&1048576&i.flags?i.types:e.types;o<s.length;o++){var c=s[o],u=1048576&c.flags?cg(c,t,r):t(c);a||(a=c!==u),u&&(n?n.push(u):n=[u])}return a?n&&rl(n,r?0:1):e}function ug(t,r,n,i){return 1048576&t.flags&&n?rl(e.map(t.types,r),1,n,i):cg(t,r)}function lg(e){return 3145728&e.flags?e.types.length:1}function _g(e,t){return og(e,(function(e){return 0!=(e.flags&t)}))}function dg(e,t){return ng(we,e)&&Eh(t,128)||ng(Ie,e)&&Eh(t,256)||ng(Oe,e)&&Eh(t,2048)?cg(e,(function(e){return 4&e.flags?_g(t,132):8&e.flags?_g(t,264):64&e.flags?_g(t,2112):e})):e}function pg(e){return 0===e.flags}function fg(e){return 0===e.flags?e.type:e}function gg(e,t){return t?{flags:0,type:131072&e.flags?Ve:e}:e}function mg(e){return me[e.id]||(me[e.id]=function(e){var t=Bi(256);return t.elementType=e,t}(e))}function yg(e,t){var r=Op(up(nb(t)));return ng(r,e.elementType)?e:mg(rl([e.elementType,r]))}function vg(e){return e.finalArrayType||(e.finalArrayType=131072&(t=e.elementType).flags?kt:Ou(1048576&t.flags?rl(t.types,2):t));var t}function hg(t){return 256&e.getObjectFlags(t)?vg(t):t}function bg(t){return 256&e.getObjectFlags(t)?t.elementType:Ue}function xg(t){var r=$f(t),n=r.parent,i=e.isPropertyAccessExpression(n)&&("length"===n.name.escapedText||203===n.parent.kind&&e.isIdentifier(n.name)&&e.isPushOrUnshiftIdentifier(n.name)),a=202===n.kind&&n.expression===r&&216===n.parent.kind&&62===n.parent.operatorToken.kind&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&kh(tb(n.argumentExpression),296);return i||a}function Dg(t,r){if(8752&t.flags)return _o(t);if(7&t.flags){if(262144&e.getCheckFlags(t)){var n=t.syntheticOrigin;if(n&&Dg(n))return _o(t)}var i=t.valueDeclaration;if(i){if(function(t){return(249===t.kind||160===t.kind||163===t.kind||162===t.kind)&&!!e.getEffectiveTypeAnnotationNode(t)}(i))return _o(t);if(e.isVariableDeclaration(i)&&239===i.parent.parent.kind){var a=i.parent.parent,o=Sg(a.expression,void 0);if(o)return hx(a.awaitModifier?15:13,o,ke,void 0)}r&&e.addRelatedInfo(r,e.createDiagnosticForNode(i,e.Diagnostics._0_needs_an_explicit_type_annotation,aa(t)))}}}function Sg(t,r){if(!(16777216&t.flags))switch(t.kind){case 78:var n=Pi(Cf(t));return Dg(2097152&n.flags?ti(n):n,r);case 107:return function(t){var r=e.getThisContainer(t,!1);if(e.isFunctionLike(r)){var n=Nc(r);if(n.thisParameter)return Dg(n.thisParameter)}if(e.isClassLike(r.parent)){var i=Ci(r.parent);return e.hasSyntacticModifier(r,32)?_o(i):jo(i).thisType}}(t);case 105:return Gg(t);case 201:var i=Sg(t.expression,r);if(i){var a=t.name,o=void 0;if(e.isPrivateIdentifier(a)){if(!i.symbol)return;o=_c(i,e.getSymbolNameForPrivateIdentifier(i.symbol,a.escapedText))}else o=_c(i,a.escapedText);return o&&Dg(o,r)}return;case 207:return Sg(t.expression,r)}}function Tg(t){var r=Tn(t),n=r.effectsSignature;if(void 0===n){var i=void 0;233===t.parent.kind?i=Sg(t.expression,void 0):105!==t.expression.kind&&(i=e.isOptionalChain(t)?gy(Pp(ib(t.expression),t.expression),t.expression):uy(t.expression));var a=pc(i&&tc(i)||Ee,0),o=1!==a.length||a[0].typeParameters?e.some(a,Cg)?Nv(t):void 0:a[0];n=r.effectsSignature=o&&Cg(o)?o:sr}return n===sr?void 0:n}function Cg(e){return!!(Oc(e)||e.declaration&&131072&(Lc(e.declaration)||Ee).flags)}function Eg(e){var t=Ng(e,!1);return Zt=e,$t=t,t}function kg(t){var r=e.skipParentheses(t);return 94===r.kind||216===r.kind&&(55===r.operatorToken.kind&&(kg(r.left)||kg(r.right))||56===r.operatorToken.kind&&kg(r.left)&&kg(r.right))}function Ng(t,r){for(;;){if(t===Zt)return $t;var n=t.flags;if(4096&n){if(!r){var i=Rf(t),a=Ur[i];return void 0!==a?a:Ur[i]=Ng(t,!0)}r=!1}if(368&n)t=t.antecedent;else if(512&n){var o=Tg(t.node);if(o){var s=Oc(o);if(s&&3===s.kind&&!s.type){var c=t.node.arguments[s.parameterIndex];if(c&&kg(c))return!1}if(131072&Mc(o).flags)return!1}t=t.antecedent}else{if(4&n)return e.some(t.antecedents,(function(e){return Ng(e,!1)}));if(8&n){var u=t.antecedents;if(void 0===u||0===u.length)return!1;t=u[0]}else{if(!(128&n)){if(1024&n){Zt=void 0;var l=t.target,_=l.antecedents;l.antecedents=t.antecedents;var d=Ng(t.antecedent,!1);return l.antecedents=_,d}return!(1&n)}if(t.clauseStart===t.clauseEnd&&fh(t.switchStatement))return!1;t=t.antecedent}}}}function Ag(t,r){for(;;){var n=t.flags;if(4096&n){if(!r){var i=Rf(t),a=Vr[i];return void 0!==a?a:Vr[i]=Ag(t,!0)}r=!1}if(496&n)t=t.antecedent;else if(512&n){if(105===t.node.expression.kind)return!0;t=t.antecedent}else{if(4&n)return e.every(t.antecedents,(function(e){return Ag(e,!1)}));if(!(8&n)){if(1024&n){var o=t.target,s=o.antecedents;o.antecedents=t.antecedents;var c=Ag(t.antecedent,!1);return o.antecedents=s,c}return!!(1&n)}t=t.antecedents[0]}}}function Fg(t,r,n,i,a){var o;void 0===n&&(n=r);var s=!1,c=0;if(Tr)return Se;if(!t.flowNode||!a&&!(536624127&r.flags))return r;Cr++;var u=Sr,l=fg(p(t.flowNode));Sr=u;var _=256&e.getObjectFlags(l)&&xg(t)?kt:hg(l);return _===We||t.parent&&225===t.parent.kind&&131072&zf(_,2097152).flags?r:_;function d(){return s?o:(s=!0,o=kf(t,r,n,i))}function p(a){if(2e3===c)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:a.id}),Tr=!0,o=t,s=e.findAncestor(o,e.isFunctionOrModuleBlock),l=e.getSourceFileOfNode(o),_=e.getSpanOfTokenAtPosition(l,s.statements.pos),Gr.add(e.createFileDiagnostic(l,_.start,_.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),Se;var o,s,l,_,d;for(c++;;){var f=a.flags;if(4096&f){for(var m=u;m<Sr;m++)if(Jr[m]===a)return c--,zr[m];d=a}var b=void 0;if(16&f){if(!(b=g(a))){a=a.antecedent;continue}}else if(512&f){if(!(b=y(a))){a=a.antecedent;continue}}else if(96&f)b=h(a);else if(128&f)b=D(a);else if(12&f){if(1===a.antecedents.length){a=a.antecedents[0];continue}b=4&f?S(a):T(a)}else if(256&f){if(!(b=v(a))){a=a.antecedent;continue}}else if(1024&f){var x=a.target,C=x.antecedents;x.antecedents=a.antecedents,b=p(a.antecedent),x.antecedents=C}else if(2&f){var E=a.node;if(E&&E!==i&&201!==t.kind&&202!==t.kind&&107!==t.kind){a=E.flowNode;continue}b=n}else b=ox(r);return d&&(Jr[Sr]=d,zr[Sr]=b,Sr++),c--,b}}function f(e){var r=e.node;return Rg(249===r.kind||198===r.kind?Yf(r):Xf(r),t)}function g(n){var i=n.node;if(Nf(t,i)){if(!Eg(n))return We;if(2===e.getAssignmentTargetKind(i)){var a=p(n.antecedent);return gg(up(fg(a)),pg(a))}if(r===xe||r===kt){if(function(e){return 249===e.kind&&e.initializer&&Ma(e.initializer)||198!==e.kind&&216===e.parent.kind&&Ma(e.parent.right)}(i))return mg(Ue);var o=lp(f(n));return id(o,r)?o:Et}return 1048576&r.flags?Bf(r,f(n)):r}if(Pf(t,i)){if(!Eg(n))return We;if(e.isVariableDeclaration(i)&&(e.isInJSFile(i)||e.isVarConst(i))){var s=e.getDeclaredExpandoInitializer(i);if(s&&(208===s.kind||209===s.kind))return p(n.antecedent)}return r}if(e.isVariableDeclaration(i)&&238===i.parent.parent.kind&&Nf(t,i.parent.parent.expression))return _y(fg(p(n.antecedent)))}function m(t,r){var n=e.skipParentheses(r);if(94===n.kind)return We;if(216===n.kind){if(55===n.operatorToken.kind)return m(m(t,n.left),n.right);if(56===n.operatorToken.kind)return rl([m(t,n.left),m(t,n.right)])}return U(t,n,!0)}function y(e){var t=Tg(e.node);if(t){var r=Oc(t);if(r&&(2===r.kind||3===r.kind)){var n=p(e.antecedent),i=hg(fg(n)),a=r.type?z(i,r,e.node,!0):3===r.kind&&r.parameterIndex>=0&&r.parameterIndex<e.node.arguments.length?m(i,e.node.arguments[r.parameterIndex]):i;return a===i?n:gg(a,pg(n))}if(131072&Mc(t).flags)return We}}function v(n){if(r===xe||r===kt){var i=n.node,a=203===i.kind?i.expression.expression:i.left.expression;if(Nf(t,Zf(a))){var o=p(n.antecedent),s=fg(o);if(256&e.getObjectFlags(s)){var c=s;if(203===i.kind)for(var u=0,l=i.arguments;u<l.length;u++){c=yg(c,l[u])}else kh(nb(i.left.argumentExpression),296)&&(c=yg(c,i.right));return c===s?o:gg(c,pg(o))}return o}}}function h(e){var t=p(e.antecedent),r=fg(t);if(131072&r.flags)return t;var n=0!=(32&e.flags),i=hg(r),a=U(i,e.node,n);return a===i?t:gg(a,pg(t))}function D(r){var n=r.switchStatement.expression,i=p(r.antecedent),a=fg(i);return Nf(t,n)?a=M(a,r.switchStatement,r.clauseStart,r.clauseEnd):211===n.kind&&Nf(t,n.expression)?a=function(t,r,n,i){var a=rg(r,!0);if(!a.length)return t;var o,s,c=e.findIndex(a,(function(e){return void 0===e})),u=n===i||c>=n&&c<i;if(c>-1){var l=a.filter((function(e){return void 0!==e})),_=c<n?n-1:n,d=c<i?i-1:i;o=l.slice(_,d),s=ph(_,d,l,u)}else o=a.slice(n,i),s=ph(n,i,a,u);if(u)return og(t,(function(e){return(Jf(e)&s)===s}));var p=zf(rl(o.map((function(e){return L(t,e)||t}))),s);return zf(cg(t,R(p)),s)}(a,r.switchStatement,r.clauseStart,r.clauseEnd):(K&&(wf(n,t)?a=O(a,r.switchStatement,r.clauseStart,r.clauseEnd,(function(e){return!(163840&e.flags)})):211===n.kind&&wf(n.expression,t)&&(a=O(a,r.switchStatement,r.clauseStart,r.clauseEnd,(function(e){return!(131072&e.flags||128&e.flags&&"undefined"===e.value)})))),E(n,a)&&(a=k(a,n,(function(e){return M(e,r.switchStatement,r.clauseStart,r.clauseEnd)})))),gg(a,pg(i))}function S(t){for(var i,a=[],o=!1,s=!1,c=0,u=t.antecedents;c<u.length;c++){var l=u[c];if(!i&&128&l.flags&&l.clauseStart===l.clauseEnd)i=l;else{if((d=fg(_=p(l)))===r&&r===n)return d;e.pushIfUnique(a,d),ng(d,r)||(o=!0),pg(_)&&(s=!0)}}if(i){var _,d=fg(_=p(i));if(!e.contains(a,d)&&!fh(i.switchStatement)){if(d===r&&r===n)return d;a.push(d),ng(d,r)||(o=!0),pg(_)&&(s=!0)}}return gg(C(a,o?2:1),s)}function T(t){var n=Rf(t),i=Lr[n]||(Lr[n]=new e.Map),a=d();if(!a)return r;var o=i.get(a);if(o)return o;for(var s=xr;s<Dr;s++)if(Rr[s]===t&&Br[s]===a&&jr[s].length)return gg(C(jr[s],1),!0);for(var c,u=[],l=!1,_=0,f=t.antecedents;_<f.length;_++){var g=f[_],m=void 0;if(c){Rr[Dr]=t,Br[Dr]=a,jr[Dr]=u,Dr++;var y=er;er=void 0,m=p(g),er=y,Dr--;var v=i.get(a);if(v)return v}else m=c=p(g);var h=fg(m);if(e.pushIfUnique(u,h),ng(h,r)||(l=!0),h===r)break}var b=C(u,l?2:1);return pg(c)?gg(b,!0):(i.set(a,b),b)}function C(t,n){if(function(t){for(var r=!1,n=0,i=t;n<i.length;n++){var a=i[n];if(!(131072&a.flags)){if(!(256&e.getObjectFlags(a)))return!1;r=!0}}return r}(t))return mg(rl(e.map(t,bg)));var i=rl(e.sameMap(t,hg),n);return i!==r&&i.flags&r.flags&1048576&&e.arraysEqual(i.types,r.types)?r:i}function E(n,i){var a=1048576&r.flags?r:i;if(!(1048576&a.flags&&e.isAccessExpression(n)))return!1;var o=Ff(n);return void 0!==o&&(Nf(t,n.expression)&&If(a,o))}function k(t,r,n){var i=Ff(r);if(void 0===i)return t;var a=K&&Eh(t,98304)&&e.isOptionalChain(r),o=Ea(a?zf(t,2097152):t,i);if(!o)return t;var s=n(o=a?Cp(o):o);return og(t,(function(e){var t=function(e,t){return Ea(e,t)||Pm(t)&&yc(e,1)||yc(e,0)||Ee}(e,i);return!(131072&t.flags)&&od(t,s)}))}function N(e,r,n){return Nf(t,r)?zf(e,n?4194304:8388608):(K&&n&&wf(r,t)&&(e=zf(e,2097152)),E(r,e)?k(e,r,(function(e){return zf(e,n?4194304:8388608)})):e)}function A(t,r,n){if(1572864&t.flags||Il(t)||2097152&t.flags&&e.every(t.types,(function(e){return e.symbol!==re}))){var i=e.escapeLeadingUnderscores(r.text);return og(t,(function(e){return function(e,t,r){if(mc(e,0))return!0;var n=_c(e,t);return n?!!(16777216&n.flags)||r:!r}(e,i,n)}))}return t}function F(r,n,i){switch(n.operatorToken.kind){case 62:case 74:case 75:case 76:return N(U(r,n.right,i),n.left,i);case 34:case 35:case 36:case 37:var a=n.operatorToken.kind,o=Zf(n.left),s=Zf(n.right);if(211===o.kind&&e.isStringLiteralLike(s))return I(r,o,a,s,i);if(211===s.kind&&e.isStringLiteralLike(o))return I(r,s,a,o,i);if(Nf(t,o))return w(r,a,s,i);if(Nf(t,s))return w(r,a,o,i);if(K&&(wf(o,t)?r=P(r,a,s,i):wf(s,t)&&(r=P(r,a,o,i))),E(o,r))return k(r,o,(function(e){return w(e,a,s,i)}));if(E(s,r))return k(r,s,(function(e){return w(e,a,o,i)}));if(B(o))return j(r,a,s,i);if(B(s))return j(r,a,o,i);break;case 101:return function(r,n,i){var a=Zf(n.left);if(!Nf(t,a))return i&&K&&wf(a,t)?zf(r,2097152):r;var o,s=tb(n.right);if(!ad(s,mt))return r;var c=_c(s,"prototype");if(c){var u=_o(c);ka(u)||(o=u)}if(ka(r)&&(o===gt||o===mt))return r;if(!o){var l=pc(s,1);o=l.length?rl(e.map(l,(function(e){return Mc(Uc(e))}))):et}if(!i&&1048576&s.flags){if(!e.find(s.types,(function(e){return!xo(e)})))return r}return J(r,o,i,ad)}(r,n,i);case 100:var c=Zf(n.right);if(e.isStringLiteralLike(n.left)&&Nf(t,c))return A(r,n.left,i);break;case 27:return U(r,n.right,i)}return r}function P(e,t,r,n){var i=34===t||36===t,a=34===t||35===t?98304:32768,o=tb(r);return i!==n&&ag(o,(function(e){return!!(e.flags&a)}))||i===n&&ag(o,(function(e){return!(e.flags&(3|a))}))?zf(e,2097152):e}function w(e,t,r,n){if(1&e.flags)return e;35!==t&&37!==t||(n=!n);var i=tb(r);if(2&e.flags&&n&&(36===t||37===t))return 67239932&i.flags?i:524288&i.flags?He:e;if(98304&i.flags)return K?zf(e,34===t||35===t?n?262144:2097152:65536&i.flags?n?131072:1048576:n?65536:524288):e;if(n)return dg(og(e,34===t?function(e){return sd(e,i)||(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t}:function(e){return sd(e,i)}),i);if(sp(i)){var a=__(i);return og(e,(function(e){return sp(e)?!sd(e,i):__(e)!==a}))}return e}function I(e,r,n,i,a){35!==n&&37!==n||(a=!a);var o=Zf(r.expression);if(!Nf(t,o))return K&&wf(o,t)&&a===("undefined"!==i.text)?zf(e,2097152):e;if(1&e.flags&&"function"===i.text)return e;if(a&&2&e.flags&&"object"===i.text){if(216===r.parent.parent.kind){var s=r.parent.parent;if(55===s.operatorToken.kind&&s.right===r.parent&&Af(t,s.left))return He}return rl([He,Fe])}var c=a?b.get(i.text)||128:x.get(i.text)||32768,u=L(e,i.text);return zf(a&&u?cg(e,R(u)):e,c)}function O(t,r,n,i,a){return n!==i&&e.every(tg(r).slice(n,i),a)?zf(t,2097152):t}function M(t,r,n,i){var a=tg(r);if(!a.length)return t;var o=a.slice(n,i),s=n===i||e.contains(o,Ue);if(2&t.flags&&!s){for(var c=void 0,u=0;u<o.length;u+=1){var l=o[u];if(67239932&l.flags)void 0!==c&&c.push(l);else{if(!(524288&l.flags))return t;void 0===c&&(c=o.slice(0,u)),c.push(He)}}return rl(void 0===c?o:c)}var _=rl(o),d=131072&_.flags?Ue:dg(og(t,(function(e){return sd(_,e)})),_);if(!s)return d;var p=og(t,(function(t){return!(sp(t)&&e.contains(a,__(t)))}));return 131072&d.flags?p:rl([d,p])}function L(e,t){switch(t){case"function":return 1&e.flags?e:mt;case"object":return 2&e.flags?rl([He,Fe]):e;default:return Qr.get(t)}}function R(e){return function(t){if(nd(t,e))return t;if(nd(e,t))return e;if(465829888&t.flags){var r=Gs(t)||be;if(nd(e,r))return ul([t,e])}return t}}function B(r){return(e.isPropertyAccessExpression(r)&&"constructor"===e.idText(r.name)||e.isElementAccessExpression(r)&&e.isStringLiteralLike(r.argumentExpression)&&"constructor"===r.argumentExpression.text)&&Nf(t,r.expression)}function j(t,r,n,i){if(i?34!==r&&36!==r:35!==r&&37!==r)return t;var a=tb(n);if(!_S(a)&&!xo(a))return t;var o=_c(a,"prototype");if(!o)return t;var s=_o(o),c=ka(s)?void 0:s;return c&&c!==gt&&c!==mt?ka(t)?c:og(t,(function(t){return function(t,r){if(524288&t.flags&&1&e.getObjectFlags(t)||524288&r.flags&&1&e.getObjectFlags(r))return t.symbol===r.symbol;return nd(t,r)}(t,c)})):t}function J(e,t,r,n){if(!r)return og(e,(function(e){return!n(e,t)}));if(1048576&e.flags){var i=og(e,(function(e){return n(e,t)}));if(!(131072&i.flags))return i}return nd(t,e)?t:id(e,t)?e:id(t,e)?t:ul([e,t])}function z(r,n,i,a){if(n.type&&(!ka(r)||n.type!==gt&&n.type!==mt)){var o=function(t,r){if(1===t.kind||3===t.kind)return r.arguments[t.parameterIndex];var n=e.skipParentheses(r.expression);return e.isAccessExpression(n)?e.skipParentheses(n.expression):void 0}(n,i);if(o){if(Nf(t,o))return J(r,n.type,a,nd);if(K&&a&&wf(o,t)&&!(65536&Jf(n.type))&&(r=zf(r,2097152)),E(o,r))return k(r,o,(function(e){return J(e,n.type,a,nd)}))}}return r}function U(r,n,i){if(e.isExpressionOfOptionalChainRoot(n)||e.isBinaryExpression(n.parent)&&60===n.parent.operatorToken.kind&&n.parent.left===n)return function(e,r,n){if(Nf(t,r))return zf(e,n?2097152:262144);if(E(r,e))return k(e,r,(function(e){return zf(e,n?2097152:262144)}));return e}(r,n,i);switch(n.kind){case 78:case 107:case 105:case 201:case 202:return N(r,n,i);case 203:return function(r,n,i){if(Lf(n,t)){var a=i||!e.isCallChain(n)?Tg(n):void 0,o=a&&Oc(a);if(o&&(0===o.kind||1===o.kind))return z(r,o,n,i)}return r}(r,n,i);case 207:case 225:return U(r,n.expression,i);case 216:return F(r,n,i);case 214:if(53===n.operator)return U(r,n.operand,!i)}return r}}function Pg(t){return e.findAncestor(t.parent,(function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||257===t.kind||297===t.kind||163===t.kind}))}function wg(t){var r,n=e.getRootDeclaration(t.valueDeclaration).parent,i=Tn(n);return 8388608&i.flags||(i.flags|=8388608,r=n,e.findAncestor(r.parent,(function(t){return e.isFunctionLike(t)&&!!(8388608&Tn(t).flags)}))||Ig(n)),t.isAssigned||!1}function Ig(t){if(78===t.kind){if(e.isAssignmentTarget(t)){var r=Cf(t);r.valueDeclaration&&160===e.getRootDeclaration(r.valueDeclaration).kind&&(r.isAssigned=!0)}}else e.forEachChild(t,Ig)}function Og(e){return 3&e.flags&&0!=(2&ay(e))&&_o(e)!==kt}function Mg(e){var t=e.parent;return 201===t.kind||203===t.kind&&t.expression===e||202===t.kind&&t.expression===e||198===t.kind&&t.name===e&&!!t.initializer}function Lg(e){return 58982400&e.flags&&Eh(Gs(e)||Ee,98304)}function Rg(e,t){return e&&Mg(t)&&ig(e,Lg)?cg(Jp(e),Xs):e}function Bg(t){return!!e.findAncestor(t,(function(t){return t.parent&&e.isExportAssignment(t.parent)&&t.parent.expression===t&&e.isEntityNameExpression(t)}))}function jg(t,r){if($n(t,111551)&&!Ef(r)&&!ii(t)){var n=ti(t);111551&n.flags&&(J.isolatedModules||e.shouldPreserveConstEnums(J)&&Bg(r)||!eS(n)?oi(t):function(e){var t=Sn(e);t.constEnumReferenced||(t.constEnumReferenced=!0)}(t))}}function Jg(t){var r=Cf(t);if(r===ve)return Se;if(r===ie){var n=e.getContainingFunction(t);return z<2&&(209===n.kind?cn(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(n,256)&&cn(t,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)),Tn(n).flags|=8192,_o(r)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||jg(r,t);var i=Pi(r),a=2097152&i.flags?ti(i):i;134217728&ay(a)&&El(t,a)&&pn(t,a.declarations,t.escapedText);var o=i.valueDeclaration;if(32&i.flags)if(252===o.kind&&e.nodeIsDecorated(o))for(n=e.getContainingClass(t);void 0!==n;){if(n===o&&n.name!==t){Tn(o).flags|=16777216,Tn(t).flags|=33554432;break}n=e.getContainingClass(n)}else if(221===o.kind)for(n=e.getThisContainer(t,!1);297!==n.kind;){if(n.parent===o){163===n.kind&&e.hasSyntacticModifier(n,32)&&(Tn(o).flags|=16777216,Tn(t).flags|=33554432);break}n=e.getThisContainer(n,!1)}!function(t,r){if(z>=2||0==(34&r.flags)||e.isSourceFile(r.valueDeclaration)||287===r.valueDeclaration.parent.kind)return;var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=function(t,r){return!!e.findAncestor(t,(function(t){return t===r?"quit":e.isFunctionLike(t)}))}(t.parent,n),a=n,o=!1;for(;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}if(o){if(i){var s=!0;if(e.isForStatement(n))if((_=e.getAncestor(r.valueDeclaration,250))&&_.parent===n){var c=function(t,r){return e.findAncestor(t,(function(e){return e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement}))}(t.parent,n);if(c){var u=Tn(c);u.flags|=131072;var l=u.capturedBlockScopeBindings||(u.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),c===n.initializer&&(s=!1)}}s&&(Tn(a).flags|=65536)}var _;if(e.isForStatement(n))(_=e.getAncestor(r.valueDeclaration,250))&&_.parent===n&&function(t,r){var n=t;for(;207===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(214===n.parent.kind||215===n.parent.kind){var a=n.parent;i=45===a.operator||46===a.operator}if(!i)return!1;return!!e.findAncestor(n,(function(e){return e===r?"quit":e===r.statement}))}(t,n)&&(Tn(r.valueDeclaration).flags|=4194304);Tn(r.valueDeclaration).flags|=524288}i&&(Tn(r.valueDeclaration).flags|=262144)}(t,r);var s=Rg(_o(i),t),c=e.getAssignmentTargetKind(t);if(c){if(!(3&i.flags||e.isInJSFile(t)&&512&i.flags))return cn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,aa(r)),Se;if(xh(i))return 3&i.flags?cn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,aa(r)):cn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,aa(r)),Se}var u=2097152&i.flags;if(3&i.flags){if(1===c)return s}else{if(!u)return s;o=e.find(r.declarations,L)}if(!o)return s;for(var l=160===e.getRootDeclaration(o).kind,_=Pg(o),d=Pg(t),p=d!==_,f=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&Hf(t.parent.parent),g=134217728&r.flags;d!==_&&(208===d.kind||209===d.kind||e.isObjectLiteralOrClassExpressionMethod(d))&&(Og(i)||l&&!wg(i));)d=Pg(d);var m=l||u||p||f||g||e.isBindingElement(o)||s!==xe&&s!==kt&&(!K||0!=(16387&s.flags)||Ef(t)||270===t.parent.kind)||225===t.parent.kind||249===o.kind&&o.exclamationToken||8388608&o.flags,y=Fg(t,s,m?l?function(e,t){if(xa(t.symbol,2)){var r=K&&160===t.kind&&t.initializer&&32768&xp(e)&&!(32768&xp(ib(t.initializer)));return Ta(),r?zf(e,524288):e}return lo(t.symbol),e}(s,o):s:s===xe||s===kt?ke:Cp(s),d,!m);if(xg(t)||s!==xe&&s!==kt){if(!m&&!(32768&xp(s))&&32768&xp(y))return cn(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,aa(r)),s}else if(y===xe||y===kt)return G&&(cn(e.getNameOfDeclaration(o),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,aa(r),sa(y)),cn(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,aa(r),sa(y))),ox(y);return c?up(y):y}function zg(e,t){(Tn(e).flags|=2,163===t.kind||166===t.kind)?Tn(t.parent).flags|=4:Tn(t).flags|=4}function Ug(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,Ug)}function Vg(e){return Co(jo(Ci(e)))===Pe}function Kg(t,r,n){var i=r.parent;e.getClassExtendsHeritageElement(i)&&!Vg(i)&&t.flowNode&&!Ag(t.flowNode,!1)&&cn(t,n)}function qg(t){var r=e.getThisContainer(t,!0),n=!1;switch(166===r.kind&&Kg(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),209===r.kind&&(r=e.getThisContainer(r,!1),n=!0),r.kind){case 256:cn(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 255:cn(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 166:Hg(t,r)&&cn(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 163:case 162:!e.hasSyntacticModifier(r,32)||99===J.target&&J.useDefineForClassFields||cn(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 158:cn(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}n&&z<2&&zg(t,r);var i=Wg(t,!0,r);if(X){var a=_o(re);if(i===a&&n)cn(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!i){var o=cn(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(r)){var s=Wg(r);s&&s!==a&&e.addRelatedInfo(o,e.createDiagnosticForNode(r,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return i||be}function Wg(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=e.getThisContainer(t,!1));var i=e.isInJSFile(t);if(e.isFunctionLike(n)&&(!em(t)||e.getThisParameter(n))){var a=io(n)||i&&function(t){var r=e.getJSDocType(t);if(r&&308===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return v_(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return v_(i.typeExpression)}(n);if(!a){var o=function(t){if(208===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent))return t.parent.left.expression.expression;if(165===t.kind&&200===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.left.expression;if(208===t.kind&&288===t.parent.kind&&200===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent))return t.parent.parent.parent.left.expression;if(208===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent))return t.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.arguments[0].expression}(n);if(i&&o){var s=ib(o).symbol;s&&s.members&&16&s.flags&&(a=jo(s).thisType)}else Av(n)&&(a=jo(Ti(n.symbol)).thisType);a||(a=Yg(n))}if(a)return Fg(t,a)}if(e.isClassLike(n.parent)){var c=Ci(n.parent);return Fg(t,e.hasSyntacticModifier(n,32)?_o(c):jo(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var u=Ci(n);return u&&_o(u)}if(n.externalModuleIndicator)return ke;if(r)return _o(re)}}function Hg(t,r){return!!e.findAncestor(t,(function(t){return e.isFunctionLikeDeclaration(t)?"quit":160===t.kind&&t.parent===r}))}function Gg(t){var r=203===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=n,a=!1;if(!r)for(;i&&209===i.kind;)i=e.getSuperContainer(i,!0),a=z<2;var o=0;if(!function(t){if(!t)return!1;if(r)return 166===t.kind;if(e.isClassLike(t.parent)||200===t.parent.kind)return e.hasSyntacticModifier(t,32)?165===t.kind||164===t.kind||167===t.kind||168===t.kind:165===t.kind||164===t.kind||167===t.kind||168===t.kind||163===t.kind||162===t.kind||166===t.kind;return!1}(i)){var s=e.findAncestor(t,(function(e){return e===i?"quit":158===e.kind}));return s&&158===s.kind?cn(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?cn(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||200===i.parent.kind)?cn(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):cn(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Se}if(r||166!==n.kind||Kg(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),o=e.hasSyntacticModifier(i,32)||r?512:256,Tn(t).flags|=o,165===i.kind&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?Tn(i).flags|=4096:Tn(i).flags|=2048),a&&zg(t.parent,i),200===i.parent.kind)return z<2?(cn(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Se):be;var c=i.parent;if(!e.getClassExtendsHeritageElement(c))return cn(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Se;var u=jo(Ci(c)),l=u&&ko(u)[0];return l?166===i.kind&&Hg(t,i)?(cn(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Se):512===o?Co(u):as(l,u.thisType):Se}function Xg(t){return 4&e.getObjectFlags(t)&&t.target===Ct?au(t)[0]:void 0}function Qg(t){return cg(t,(function(t){return 2097152&t.flags?e.forEach(t.types,Xg):Xg(t)}))}function Yg(t){if(209!==t.kind){if(Y_(t)){var r=Cm(t);if(r){var n=r.thisParameter;if(n)return _o(n)}}var i=e.isInJSFile(t);if(X||i){var a=function(e){return 165!==e.kind&&167!==e.kind&&168!==e.kind||200!==e.parent.kind?208===e.kind&&288===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=gm(a),s=a,c=o;c;){var u=Qg(c);if(u)return V_(u,$p(hm(a)));if(288!==s.parent.kind)break;c=gm(s=s.parent.parent)}return Jp(o?Ep(o):Jh(a))}var l=e.walkUpParenthesizedExpressions(t.parent);if(216===l.kind&&62===l.operatorToken.kind){var _=l.left;if(e.isAccessExpression(_)){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&Cf(d)===p.symbol)return}return Jp(Jh(d))}}}}}function Zg(t){var r=t.parent;if(Y_(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=sv(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return tv(i,a,i.length,be,void 0,0);var o=Tn(n),s=o.resolvedSignature;o.resolvedSignature=or;var c=a<i.length?lp(ib(i[a])):t.initializer?void 0:Ne;return o.resolvedSignature=s,c}var u=Cm(r);if(u){var l=r.parameters.indexOf(t)-(e.getThisParameter(r)?1:0);return t.dotDotDotToken&&e.lastOrUndefined(r.parameters)===t?Qv(u,l):Xv(u,l)}}}function $g(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return v_(r);switch(t.kind){case 160:return Zg(t);case 198:return function(t){var r=t.parent.parent,n=t.propertyName||t.name,i=$g(r)||198!==r.kind&&r.initializer&&Uh(r);if(!i||e.isBindingPattern(n)||e.isComputedNonLiteralName(n))return;if(197===r.name.kind){var a=e.indexOfNode(t.parent.elements,t);if(a<0)return;return _m(i,a)}var o=gl(n);if(Xo(o)){return Ea(i,es(o))}}(t);case 163:if(e.hasSyntacticModifier(t,32))return function(t){var r=e.isExpression(t.parent)&&vm(t.parent);return r?cm(r,Ci(t).escapedName):void 0}(t)}}function em(t){for(var r=!1;t.parent&&!e.isFunctionLike(t.parent);){if(e.isParameter(t.parent)&&(r||t.parent.initializer===t))return!0;e.isBindingElement(t.parent)&&t.parent.initializer===t&&(r=!0),t=t.parent}return!1}function tm(t,r){var n=!!(2&e.getFunctionFlags(r)),i=rm(r);if(i)return Ux(t,i,n)||void 0}function rm(e){var t=Lc(e);if(t)return t;var r=Tm(e);return r&&!Rc(r)?Mc(r):void 0}function nm(e,t){var r=sv(e).indexOf(t);return-1===r?void 0:im(e,r)}function im(t,r){var n=Tn(t).resolvedSignature===cr?cr:Nv(t);return e.isJsxOpeningLikeElement(t)&&0===r?bm(n,t):Gv(n,r)}function am(t,r){var n=t.parent,i=n.left,a=n.operatorToken,o=n.right;switch(a.kind){case 62:case 75:case 74:case 76:return t===o?function(t){var r=e.getAssignmentDeclarationKind(t);switch(r){case 0:return tb(t.left);case 5:case 1:case 6:case 3:if(om(t,r))return sm(t,r);if(t.left.symbol){var n=t.left.symbol.valueDeclaration;if(!n)return;var i=e.cast(t.left,e.isAccessExpression),a=e.getEffectiveTypeAnnotationNode(n);if(a)return v_(a);if(e.isIdentifier(i.expression)){var o=i.expression,s=An(o,o.escapedText,111551,void 0,o.escapedText,!0);if(s){var c=s.valueDeclaration&&e.getEffectiveTypeAnnotationNode(s.valueDeclaration);if(c){var u=e.getElementOrPropertyAccessName(i);if(void 0!==u)return cm(v_(c),u)}return}}return e.isInJSFile(n)?void 0:tb(t.left)}return tb(t.left);case 2:case 4:return sm(t,r);case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(r)}}(n):void 0;case 56:case 60:var s=vm(n,r);return t===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(n))?tb(i):s;case 55:case 27:return t===o?vm(n,r):void 0;default:return}}function om(t,r){if(void 0===r&&(r=e.getAssignmentDeclarationKind(t)),4===r)return!0;if(!e.isInJSFile(t)||5!==r||!e.isIdentifier(t.left.expression))return!1;var n=t.left.expression.escapedText,i=An(t.left,n,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function sm(t,r){if(!t.symbol)return tb(t.left);if(t.symbol.valueDeclaration){var n=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(n){var i=v_(n);if(i)return i}}if(2!==r){var a=e.cast(t.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(a.expression,!1))){var o=qg(a.expression),s=e.getElementOrPropertyAccessName(a);return void 0!==s&&cm(o,s)||void 0}}}function cm(t,r){return cg(t,(function(t){if(Ls(t)){var n=ks(t),i=Gs(n)||n,a=p_(e.unescapeLeadingUnderscores(r));if(id(a,i))return Rl(t,a)}else if(3670016&t.flags){var o=_c(t,r);if(o)return c=o,262144&e.getCheckFlags(c)&&!c.type&&Da(c,0)>=0?void 0:_o(o);if(fp(t)){var s=yp(t);if(s&&Pm(r)&&+r>=0)return s}return Pm(r)&&um(t,1)||um(t,0)}var c}),!0)}function um(e,t){return cg(e,(function(e){return gc(e,t)}),!0)}function lm(e,t){var r=gm(e.parent,t);if(r){if($o(e)){var n=cm(r,Ci(e).escapedName);if(n)return n}return Am(e.name)&&um(r,1)||um(r,0)}}function _m(e,t){return e&&(cm(e,""+t)||cg(e,(function(e){return bx(1,e,ke,void 0,!1)}),!0))}function dm(t){var r=t.parent;return e.isJsxAttributeLike(r)?vm(t):e.isJsxElement(r)?function(t,r){var n=gm(t.openingElement.tagName),i=Gm(Wm(t));if(n&&!ka(n)&&i&&""!==i){var a=e.getSemanticJsxChildren(t.children),o=a.indexOf(r),s=cm(n,i);return s&&(1===a.length?s:cg(s,(function(e){return rp(e)?Bl(e,p_(o)):e}),!0))}}(r,t):void 0}function pm(t){if(e.isJsxAttribute(t)){var r=gm(t.parent);if(!r||ka(r))return;return cm(r,t.name.escapedText)}return vm(t.parent)}function fm(e){switch(e.kind){case 10:case 8:case 9:case 14:case 109:case 94:case 103:case 78:case 150:return!0;case 201:case 207:return fm(e.expression);case 283:return!e.expression||fm(e.expression)}return!1}function gm(t,r){var n=mm(e.isObjectLiteralMethod(t)?function(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(16777216&t.flags))return lm(t,r)}(t,r):vm(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=cg(n,tc,!0);if(1048576&i.flags){if(e.isObjectLiteralExpression(t))return function(t,r){return Id(r,e.map(e.filter(t.properties,(function(e){return!!e.symbol&&288===e.kind&&fm(e.initializer)&&If(r,e.symbol.escapedName)})),(function(e){return[function(){return ib(e.initializer)},e.symbol.escapedName]})),id,r)}(t,i);if(e.isJsxAttributes(t))return function(t,r){return Id(r,e.map(e.filter(t.properties,(function(e){return!!e.symbol&&280===e.kind&&If(r,e.symbol.escapedName)&&(!e.initializer||fm(e.initializer))})),(function(e){return[e.initializer?function(){return ib(e.initializer)}:function(){return Re},e.symbol.escapedName]})),id,r)}(t,i)}return i}}function mm(t,r,n){if(t&&Eh(t,465829888)){var i=hm(r);if(i&&e.some(i.inferences,Yh)){if(n&&1&n)return ym(t,i.nonFixingMapper);if(i.returnMapper)return ym(t,i.returnMapper)}}return t}function ym(t,r){return 465829888&t.flags?V_(t,r):1048576&t.flags?rl(e.map(t.types,(function(e){return ym(e,r)})),0):2097152&t.flags?ul(e.map(t.types,(function(e){return ym(e,r)}))):t}function vm(t,r){if(16777216&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 249:case 160:case 163:case 162:case 198:return function(t,r){var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=$g(n);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name))return Qa(n.name,!0,!1)}}(t,r);case 209:case 242:return function(t){var r=e.getContainingFunction(t);if(r){var n=rm(r);if(n){var i=e.getFunctionFlags(r);if(1&i){var a=Ex(n,2&i?2:1,void 0);if(!a)return;n=a.returnType}if(2&i){var o=cg(n,Nb);return o&&rl([o,ch(o)])}return n}}}(t);case 219:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=rm(r);if(i)return t.asteriskToken?i:Ux(0,i,0!=(2&n))}}(n);case 213:return function(e,t){var r=vm(e,t);if(r){var n=Nb(r);return n&&rl([n,ch(n)])}}(n,r);case 203:if(99===n.expression.kind)return we;case 204:return nm(n,t);case 206:case 224:return e.isConstTypeReference(n.type)?function(e){return vm(e)}(n):v_(n.type);case 216:return am(t,r);case 288:case 289:return lm(n,r);case 290:return gm(n.parent,r);case 199:var i=n;return _m(gm(i,r),e.indexOfNode(i.elements,t));case 217:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?vm(r,t):void 0}(t,r);case 228:return e.Debug.assert(218===n.parent.kind),function(e,t){if(205===e.parent.kind)return nm(e.parent,t)}(n.parent,t);case 207:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?v_(a.typeExpression.type):vm(n,r);case 225:return vm(n,r);case 283:return dm(n);case 280:case 282:return pm(n);case 275:case 274:return function(t,r){if(e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r)return t.parent.contextualType;return im(t,0)}(n,r)}}}function hm(t){var r=e.findAncestor(t,(function(e){return!!e.inferenceContext}));return r&&r.inferenceContext}function bm(t,r){return 0!==nv(r)?function(e,t){var r=nh(e,Ee);r=xm(t,Wm(t),r);var n=Vm(k.IntrinsicAttributes,t);n!==Se&&(r=ms(n,r));return r}(t,r):function(t,r){var n=Wm(r),i=(o=n,Hm(k.ElementAttributesPropertyNameContainer,o)),a=void 0===i?nh(t,Ee):""===i?Mc(t):function(e,t){if(e.unionSignatures){for(var r=[],n=0,i=e.unionSignatures;n<i.length;n++){var a=Mc(i[n]);if(ka(a))return a;var o=Ea(a,t);if(!o)return;r.push(o)}return ul(r)}var s=Mc(e);return ka(s)?s:Ea(s,t)}(t,i);var o;if(!a)return i&&e.length(r.attributes.properties)&&cn(r,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(i)),Ee;if(ka(a=xm(r,n,a)))return a;var s=a,c=Vm(k.IntrinsicClassAttributes,r);if(c!==Se){var u=ho(c.symbol),l=Mc(t);s=ms(u?ru(c,kc([l],u,Ec(u),e.isInJSFile(r))):c,s)}var _=Vm(k.IntrinsicAttributes,r);return _!==Se&&(s=ms(_,s)),s}(t,r)}function xm(t,r,n){var i,a=(i=r)&&En(i.exports,k.LibraryManagedAttributes,788968);if(a){var o=jo(a),s=function(e){if(Bm(e.tagName))return qc(Cv(e,t=Ym(e)));var t,r=Jh(e.tagName);return 128&r.flags?(t=Qm(r,e))?qc(Cv(e,t)):Se:r}(t);if(524288&a.flags){var c=Sn(a).typeParameters;if(e.length(c)>=2)return cu(a,kc([s,n],c,2,e.isInJSFile(t)))}if(e.length(o.typeParameters)>=2)return ru(o,kc([s,n],o.typeParameters,2,e.isInJSFile(t)))}return n}function Dm(t,r){var n=pc(t,0);if(1===n.length){var i=n[0];if(!function(t,r){for(var n=0;n<r.parameters.length;n++){var i=r.parameters[n];if(i.initializer||i.questionToken||i.dotDotDotToken||xc(i))break}r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])&&n--;return!$v(t)&&Yv(t)<n}(i,r))return i}}function Sm(e){return 208===e.kind||209===e.kind}function Tm(t){return Sm(t)||e.isObjectLiteralMethod(t)?Cm(t):void 0}function Cm(t){e.Debug.assert(165!==t.kind||e.isObjectLiteralMethod(t));var r=Ac(t);if(r)return r;var n=gm(t,1);if(n){if(!(1048576&n.flags))return Dm(n,t);for(var i,a=0,o=n.types;a<o.length;a++){var s=Dm(o[a],t);if(s)if(i){if(!Qd(i[0],s,!1,!0,!0,ed))return;i.push(s)}else i=[s]}return i?1===i.length?i[0]:us(i[0],i):void 0}}function Em(e){return 198===e.kind&&!!e.initializer||216===e.kind&&62===e.operatorToken.kind}function km(t,r,n){for(var i=t.elements,a=i.length,o=[],s=[],c=gm(t),u=e.isAssignmentTarget(t),l=qh(t),_=0;_<a;_++){var d=i[_];if(220===d.kind){z<2&&TS(d,J.downlevelIteration?1536:1024);var p=ib(d.expression,r,n);if(rp(p))o.push(p),s.push(8);else if(u){var f=yc(p,1)||bx(65,p,ke,void 0,!1)||Ee;o.push(f),s.push(4)}else o.push(hx(33,p,ke,d.expression)),s.push(4)}else{var g=Wh(d,r,_m(c,o.length),n);o.push(g),s.push(1)}}return u?zu(o,s):n||l||c&&ig(c,ip)?Nm(zu(o,s,l)):Nm(Ou(o.length?rl(e.sameMap(o,(function(e,t){return 8&s[t]?Jl(e,Ie)||be:e})),2):K?qe:Ne,l))}function Nm(t){if(!(4&e.getObjectFlags(t)))return t;var r=t.literalType;return r||((r=t.literalType=nu(t)).objectFlags|=1114112),r}function Am(e){switch(e.kind){case 158:return function(e){return kh(wm(e),296)}(e);case 78:return Pm(e.escapedText);case 8:case 10:return Pm(e.text);default:return!1}}function Fm(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function Pm(e){return(+e).toString()===e}function wm(t){var r=Tn(t.expression);return r.resolvedType||(r.resolvedType=ib(t.expression),98304&r.resolvedType.flags||!kh(r.resolvedType,402665900)&&!id(r.resolvedType,Ge)?cn(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):By(t.expression,r.resolvedType,!0)),r.resolvedType}function Im(t,r,n,i){for(var a,o,s,c=[],u=r;u<n.length;u++)(0===i||(a=n[u],o=void 0,s=void 0,s=null===(o=a.declarations)||void 0===o?void 0:o[0],Pm(a.escapedName)||s&&e.isNamedDeclaration(s)&&Am(s.name)))&&c.push(_o(n[u]));return Gc(c.length?rl(c,2):ke,qh(t))}function Om(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=Sn(t);if(!r.immediateTarget){var n=Jn(t);if(!n)return e.Debug.fail();r.immediateTarget=Zn(n,!0)}return r.immediateTarget}function Mm(t,r){var n=e.isAssignmentTarget(t);!function(t,r){for(var n=new e.Map,i=0,a=t.properties;i<a.length;i++){var o=a[i];if(290!==o.kind){var s=o.name;if(158===s.kind&&LS(s),289===o.kind&&!r&&o.objectAssignmentInitializer)return $S(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(79===s.kind)return $S(s,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(o.modifiers)for(var c=0,u=o.modifiers;c<u.length;c++){var l=u[c];129===l.kind&&165===o.kind||$S(l,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(l))}var _=void 0;switch(o.kind){case 289:jS(o.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 288:BS(o.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===s.kind&&rT(s),_=4;break;case 165:_=8;break;case 167:_=1;break;case 168:_=2;break;default:throw e.Debug.assertNever(o,"Unexpected syntax kind:"+o.kind)}if(!r){var d=e.getPropertyNameForPropertyNameNode(s);if(void 0===d)continue;var p=n.get(d);if(p)if(12&_&&12&p)$S(s,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(s));else{if(!(3&_&&3&p))return $S(s,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===p||_===p)return $S(s,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(d,_|p)}else n.set(d,_)}}else if(r){var f=e.skipParentheses(o.expression);if(e.isArrayLiteralExpression(f)||e.isObjectLiteralExpression(f))return $S(o.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}}(t,n);for(var i=K?e.createSymbolTable():void 0,a=e.createSymbolTable(),o=[],s=et,c=gm(t),u=c&&c.pattern&&(196===c.pattern.kind||200===c.pattern.kind),l=qh(t),_=l?8:0,d=e.isInJSFile(t)&&!e.isInJsonFile(t),p=e.getJSDocEnumTag(t),f=!c&&d&&!p,g=Y,m=!1,y=!1,v=!1,h=0,b=t.properties;h<b.length;h++){var x=b[h];x.name&&e.isComputedPropertyName(x.name)&&!e.isWellKnownSymbolSyntactically(x.name)&&wm(x.name)}for(var D=0,S=0,T=t.properties;S<T.length;S++){var C=T[S],E=Ci(C),k=C.name&&158===C.name.kind&&!e.isWellKnownSymbolSyntactically(C.name.expression)?wm(C.name):void 0;if(288===C.kind||289===C.kind||e.isObjectLiteralMethod(C)){var N=288===C.kind?Hh(C,r):289===C.kind?Wh(!n&&C.objectAssignmentInitializer?C.objectAssignmentInitializer:C.name,r):Gh(C,r);if(d){var A=Oa(C);A?(cd(N,A,C),N=A):p&&p.typeExpression&&cd(N,v_(p.typeExpression),C)}g|=3670016&e.getObjectFlags(N);var F=k&&Xo(k)?k:void 0,P=F?fn(4|E.flags,es(F),4096|_):fn(4|E.flags,E.escapedName,_);if(F&&(P.nameType=F),n)(288===C.kind&&Em(C.initializer)||289===C.kind&&C.objectAssignmentInitializer)&&(P.flags|=16777216);else if(u&&!(512&e.getObjectFlags(c))){var w=_c(c,E.escapedName);w?P.flags|=16777216&w.flags:J.suppressExcessPropertyErrors||mc(c,0)||cn(C.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,aa(E),sa(c))}P.declarations=E.declarations,P.parent=E.parent,E.valueDeclaration&&(P.valueDeclaration=E.valueDeclaration),P.type=N,P.target=E,E=P,null==i||i.set(P.escapedName,P)}else{if(290===C.kind){if(z<2&&TS(C,2),o.length>0&&(s=a_(s,M(),t.symbol,g,l),o=[],a=e.createSymbolTable(),y=!1,v=!1),!Lm(N=oc(ib(C.expression))))return cn(C,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Se;i&&zm(N,i,C),s=a_(s,N,t.symbol,g,l),D=o.length;continue}e.Debug.assert(167===C.kind||168===C.kind),SD(C)}!k||8576&k.flags?a.set(E.escapedName,E):id(k,Ge)&&(id(k,Ie)?v=!0:y=!0,n&&(m=!0)),o.push(E)}if(u&&290!==t.parent.kind)for(var I=0,O=zs(c);I<O.length;I++){P=O[I];a.get(P.escapedName)||_c(s,P.escapedName)||(16777216&P.flags||cn(P.valueDeclaration||P.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.set(P.escapedName,P),o.push(P))}return s!==et?(o.length>0&&(s=a_(s,M(),t.symbol,g,l),o=[],a=e.createSymbolTable(),y=!1,v=!1),cg(s,(function(e){return e===et?M():e}))):M();function M(){var r=y?Im(t,D,o,0):void 0,i=v?Im(t,D,o,1):void 0,s=Vi(t.symbol,a,e.emptyArray,e.emptyArray,r,i);return s.objectFlags|=1048704|g,f&&(s.objectFlags|=16384),m&&(s.objectFlags|=512),n&&(s.pattern=t),s}}function Lm(t){if(465829888&t.flags){var r=Gs(t);if(void 0!==r)return Lm(r)}return!!(126615553&t.flags||117632&xp(t)&&Lm(Dp(t))||3145728&t.flags&&e.every(t.types,Lm))}function Rm(t){return!e.stringContains(t,"-")}function Bm(t){return 78===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function jm(e,t){return e.initializer?Wh(e.initializer,t):Re}function Jm(e,t){for(var r=[],n=0,i=e.children;n<i.length;n++){var a=i[n];if(11===a.kind)a.containsOnlyTriviaWhiteSpaces||r.push(we);else{if(283===a.kind&&!a.expression)continue;r.push(Wh(a,t))}}return r}function zm(t,r,n){for(var i=0,a=zs(t);i<a.length;i++){var o=a[i],s=r.get(o.escapedName),c=_o(o);if(s&&!Eh(c,98304)&&!(Eh(c,3)&&16777216&o.flags)){var u=cn(s.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(s.escapedName));e.addRelatedInfo(u,e.createDiagnosticForNode(n,e.Diagnostics.This_spread_always_overwrites_this_property))}}}function Um(t,r){return function(t,r){for(var n,i=t.attributes,a=K?e.createSymbolTable():void 0,o=e.createSymbolTable(),s=tt,c=!1,u=!1,l=4096,_=Gm(Wm(t)),d=0,p=i.properties;d<p.length;d++){var f=p[d],g=f.symbol;if(e.isJsxAttribute(f)){var m=jm(f,r);l|=3670016&e.getObjectFlags(m);var y=fn(4|g.flags,g.escapedName);y.declarations=g.declarations,y.parent=g.parent,g.valueDeclaration&&(y.valueDeclaration=g.valueDeclaration),y.type=m,y.target=g,o.set(y.escapedName,y),null==a||a.set(y.escapedName,y),f.name.escapedText===_&&(u=!0)}else e.Debug.assert(282===f.kind),o.size>0&&(s=a_(s,T(),i.symbol,l,!1),o=e.createSymbolTable()),ka(m=oc(Jh(f.expression,r)))&&(c=!0),Lm(m)?(s=a_(s,m,i.symbol,l,!1),a&&zm(m,a,f)):n=n?ul([n,m]):m}c||o.size>0&&(s=a_(s,T(),i.symbol,l,!1));var v=273===t.parent.kind?t.parent:void 0;if(v&&v.openingElement===t&&v.children.length>0){var h=Jm(v,r);if(!c&&_&&""!==_){u&&cn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(_));var b=gm(t.attributes),x=b&&cm(b,_),D=fn(4,_);D.type=1===h.length?h[0]:x&&ig(x,ip)?zu(h):Ou(rl(h)),D.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(_),void 0,void 0),e.setParent(D.valueDeclaration,i),D.valueDeclaration.symbol=D;var S=e.createSymbolTable();S.set(_,D),s=a_(s,Vi(i.symbol,S,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,l,!1)}}return c?be:n&&s!==tt?ul([n,s]):n||(s===tt?T():s);function T(){l|=Y;var t=Vi(i.symbol,o,e.emptyArray,e.emptyArray,void 0,void 0);return t.objectFlags|=1048704|l,t}}(t.parent,r)}function Vm(e,t){var r=Wm(t),n=r&&bi(r),i=n&&En(n,e,788968);return i?jo(i):Se}function Km(t){var r=Tn(t);if(!r.resolvedSymbol){var n=Vm(k.IntrinsicElements,t);if(n!==Se){if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=_c(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):yc(n,0)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(cn(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+k.IntrinsicElements),r.resolvedSymbol=ve)}return G&&cn(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(k.IntrinsicElements)),r.resolvedSymbol=ve}return r.resolvedSymbol}function qm(t){var r=t&&e.getSourceFileOfNode(t),n=r&&Tn(r);if(!n||!1!==n.jsxImplicitImportContainer){if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;var i=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(J,r),J);if(i){var a=pi(t,i,e.getEmitModuleResolutionKind(J)===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,t),o=a&&a!==ve?Ti(ei(a)):void 0;return n&&(n.jsxImplicitImportContainer=o||!1),o}}}function Wm(e){var t=e&&Tn(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=qm(e);if(!r||r===ve){var n=on(e);r=An(e,n,1920,void 0,n,!1)}if(r){var i=ei(En(bi(ei(r)),k.JSX,1920));if(i&&i!==ve)return t&&(t.jsxNamespace=i),i}t&&(t.jsxNamespace=!1)}var a=ei(Tu(k.JSX,1920,void 0));return a!==ve?a:void 0}function Hm(t,r){var n=r&&En(r.exports,t,788968),i=n&&jo(n),a=i&&zs(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&cn(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Gm(e){return Hm(k.ElementChildrenAttributeNameContainer,e)}function Xm(t,r){if(4&t.flags)return[or];if(128&t.flags){var n=Qm(t,r);return n?[Cv(r,n)]:(cn(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+k.IntrinsicElements),e.emptyArray)}var i=tc(t),a=pc(i,1);return 0===a.length&&(a=pc(i,0)),0===a.length&&1048576&i.flags&&(a=fs(e.map(i.types,(function(e){return Xm(e,r)})))),a}function Qm(t,r){var n=Vm(k.IntrinsicElements,r);if(n!==Se){var i=t.value,a=_c(n,e.escapeLeadingUnderscores(i));if(a)return _o(a);var o=yc(n,0);return o||void 0}return be}function Ym(t){e.Debug.assert(Bm(t.tagName));var r=Tn(t);if(!r.resolvedJsxElementAttributesType){var n=Km(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=_o(n):2&r.jsxFlags?r.resolvedJsxElementAttributesType=yc(jo(n),0):r.resolvedJsxElementAttributesType=Se}return r.resolvedJsxElementAttributesType}function Zm(e){var t=Vm(k.ElementClass,e);if(t!==Se)return t}function $m(e){return Vm(k.Element,e)}function ey(e){var t=$m(e);if(t)return rl([t,Fe])}function ty(t){var r,n=e.isJsxOpeningLikeElement(t);if(n&&function(t){wS(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(282!==a.kind){var o=a.name,s=a.initializer;if(r.get(o.escapedText))return $S(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(r.set(o.escapedText,!0),s&&283===s.kind&&!s.expression)return $S(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(t),r=t,0===(J.jsx||0)&&cn(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===$m(r)&&G&&cn(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),!qm(t)){var i=Gr&&2===J.jsx?e.Diagnostics.Cannot_find_name_0:void 0,a=on(t),o=n?t.tagName:t,s=void 0;e.isJsxOpeningFragment(t)&&"null"===a||(s=An(o,a,111551,i,a,!0)),s&&(s.isReferenced=67108863,2097152&s.flags&&!ii(s)&&oi(s))}if(n){var c=t,u=Nv(c);wv(u,t),function(t,r,n){if(1===t)(i=ey(n))&&Fd(r,i,en,n.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,o);else if(0===t)(a=Zm(n))&&Fd(r,a,en,n.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,o);else{var i=ey(n),a=Zm(n);if(!i||!a)return;Fd(r,rl([i,a]),en,n.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,o)}function o(){var t=e.getTextOfNode(n.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,t)}}(nv(c),Mc(u),c)}}function ry(e,t,r){if(524288&e.flags){var n=Rs(e);if(n.stringIndexInfo||n.numberIndexInfo&&Pm(t)||js(e,t)||r&&!Rm(t))return!0}else if(3145728&e.flags&&ny(e))for(var i=0,a=e.types;i<a.length;i++){if(ry(a[i],t,r))return!0}return!1}function ny(t){return!!(524288&t.flags&&!(512&e.getObjectFlags(t))||67108864&t.flags||1048576&t.flags&&e.some(t.types,ny)||2097152&t.flags&&e.every(t.types,ny))}function iy(t,r){if(function(t){if(t.expression&&e.isCommaSequence(t.expression))$S(t.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(t),t.expression){var n=ib(t.expression,r);return t.dotDotDotToken&&n!==be&&!Zd(n)&&cn(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return Se}function ay(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function oy(t){if(8192&t.flags||4&e.getCheckFlags(t))return!0;if(e.isInJSFile(t.valueDeclaration)){var r=t.valueDeclaration.parent;return r&&e.isBinaryExpression(r)&&3===e.getAssignmentDeclarationKind(r)}}function sy(t,r,n,i){var a,o=e.getDeclarationModifierFlagsFromSymbol(i),s=157===t.kind?t.right:195===t.kind?t:t.name;if(r){if(z<2&&cy(i))return cn(s,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&o)return cn(s,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,aa(i),sa(Kd(i))),!1}if(128&o&&e.isThisProperty(t)&&cy(i)&&((a=e.getClassLikeDeclarationOfSymbol(Ei(i)))&&function(t){return!!e.findAncestor(t,(function(t){return!!(e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t))||!(!e.isClassLike(t)&&!e.isFunctionLikeDeclaration(t))&&"quit"}))}(t)))return cn(s,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,aa(i),e.getTextOfIdentifierOrLiteral(a.name)),!1;if(e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))return!!e.getContainingClass(t)||(cn(s,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),!1);if(!(24&o))return!0;if(8&o)return!!ID(t,a=e.getClassLikeDeclarationOfSymbol(Ei(i)))||(cn(s,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,aa(i),sa(Kd(i))),!1);if(r)return!0;var c=wD(t,(function(t){var r=jo(Ci(t));return function(t,r){return Vd(r,(function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&!go(t,Kd(r))}))?void 0:t}(r,i)?r:void 0}));if(!c){var u=void 0;if(32&o||!(u=function(t){var r=e.getThisContainer(t,!1);return r&&e.isFunctionLike(r)?e.getThisParameter(r):void 0}(t))||!u.type)return cn(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,aa(i),sa(Kd(i)||n)),!1;var l=v_(u.type);c=(262144&l.flags?Vs(l):l).target}return!!(32&o)||(262144&n.flags&&(n=n.isThisType?Vs(n):Gs(n)),!(!n||!go(n,c))||(cn(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,aa(i),sa(c)),!1))}function cy(e){return!!Vd(e,(function(e){return!(8192&e.flags)}))}function uy(e){return gy(ib(e),e)}function ly(e){return!!(98304&(K?xp(e):e.flags))}function _y(e){return ly(e)?Ep(e):e}function dy(t,r){cn(t,32768&r?65536&r?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function py(t,r){cn(t,32768&r?65536&r?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(t,r,n){if(K&&2&t.flags)return cn(r,e.Diagnostics.Object_is_of_type_unknown),Se;var i=98304&(K?xp(t):t.flags);if(i){n(r,i);var a=Ep(t);return 229376&a.flags?Se:a}return t}function gy(e,t){return fy(e,t,dy)}function my(t,r){var n=gy(t,r);return n!==Se&&16384&n.flags&&cn(r,e.Diagnostics.Object_is_possibly_undefined),n}function yy(e){return 32&e.flags?function(e){var t=ib(e.expression),r=Pp(t,e.expression);return Fp(Sy(e,e.expression,gy(r,e.expression),e.name),e,r!==t)}(e):Sy(e,e.expression,uy(e.expression),e.name)}function vy(e){return Sy(e,e.left,uy(e.left),e.right)}function hy(t){for(;207===t.parent.kind;)t=t.parent;return e.isCallOrNewExpression(t.parent)&&t.parent.expression===t}function by(t,r){for(var n=e.getContainingClass(r);n;n=e.getContainingClass(n)){var i=n.symbol,a=e.getSymbolNameForPrivateIdentifier(i,t),o=i.members&&i.members.get(a)||i.exports&&i.exports.get(a);if(o)return o}}function xy(e,t){return _c(e,t.escapedName)}function Dy(t,r){return(Ba(r)||e.isThisProperty(t)&&ja(r))&&e.getThisContainer(t,!0)===Ja(r)}function Sy(t,r,n,i){var a=Tn(r).resolvedSymbol,s=e.getAssignmentTargetKind(t),c=tc(0!==s||hy(t)?Jp(n):n);e.isPrivateIdentifier(i)&&TS(t,524288);var u,l,_=ka(c)||c===Ve;if(e.isPrivateIdentifier(i)){var d=by(i.escapedText,i);if(_){if(d)return c;if(!e.getContainingClass(i))return $S(i,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),be}if(!(u=d?xy(n,d):void 0)&&function(t,r,n){var i,a=zs(t);a&&e.forEach(a,(function(t){var n=t.valueDeclaration;if(n&&e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name)&&n.name.escapedText===r.escapedText)return i=t,!0}));var s=In(r);if(i){var c=i.valueDeclaration,u=e.getContainingClass(c);if(e.Debug.assert(!!u),n){var l=n.valueDeclaration,_=e.getContainingClass(l);if(e.Debug.assert(!!_),e.findAncestor(_,(function(e){return u===e}))){var d=cn(r,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,s,sa(t));return e.addRelatedInfo(d,e.createDiagnosticForNode(l,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,s),e.createDiagnosticForNode(c,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,s)),!0}}return cn(r,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,s,In(u.name||o)),!0}return!1}(n,i,d))return Se}else{if(_)return e.isIdentifier(r)&&a&&jg(a,t),c;u=_c(c,i.escapedText)}if(e.isIdentifier(r)&&a&&(J.isolatedModules||!u||!eS(u)||e.shouldPreserveConstEnums(J)&&Bg(t))&&jg(a,t),u){if(134217728&ay(u)&&El(t,u)&&pn(i,u.declarations,i.escapedText),function(t,r,n){var i,a=t.valueDeclaration;if(!a||e.getSourceFileOfNode(r).isDeclarationFile)return;var o=e.idText(n);!function(t){return!!e.findAncestor(t,(function(t){switch(t.kind){case 163:return!0;case 288:case 165:case 167:case 168:case 290:case 158:case 228:case 283:case 280:case 281:case 282:case 275:case 223:case 286:return!1;default:return!e.isExpressionNode(t)&&"quit"}}))}(r)||e.isAccessExpression(r)&&e.isAccessExpression(r.expression)||kn(a,n)||function(e){if(!(32&e.parent.flags))return!1;var t=_o(e.parent);for(;;){if(!(t=t.symbol&&Cy(t)))return!1;var r=_c(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(t)?252!==a.kind||173===r.parent.kind||8388608&a.flags||kn(a,n)||(i=cn(n,e.Diagnostics.Class_0_used_before_its_declaration,o)):i=cn(n,e.Diagnostics.Property_0_is_used_before_its_initialization,o);i&&e.addRelatedInfo(i,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,o))}(u,t,i),Iy(u,t,107===r.kind),Tn(t).resolvedSymbol=u,sy(t,105===r.kind,c,u),Dh(t,u,s))return cn(i,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(i)),Se;l=Dy(t,u)?xe:Rg(_o(u),t)}else{var p=e.isPrivateIdentifier(i)||0!==s&&Pl(n)&&!Il(n)?void 0:mc(c,0);if(!p||!p.type)return Tl(n)?be:n.symbol===re?(re.exports.has(i.escapedText)&&418&re.exports.get(i.escapedText).flags?cn(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(i.escapedText),sa(n)):G&&cn(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,sa(n)),be):(i.escapedText&&!Mn(t)&&function(t,r){var n,i;if(!e.isPrivateIdentifier(t)&&1048576&r.flags&&!(131068&r.flags))for(var a=0,o=r.types;a<o.length;a++){var s=o[a];if(!_c(s,t.escapedText)&&!mc(s,0)){n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),sa(s));break}}if(Ey(t.escapedText,r)){var c=e.declarationNameToString(t),u=sa(r);n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,c,u,u+"."+c)}else{var l=Eb(r);if(l&&_c(l,t.escapedText))n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),sa(r)),i=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);else{var _=e.declarationNameToString(t),d=sa(r),p=function(t,r){var n=tc(r).symbol;if(!n)return;for(var i=e.getScriptTargetFeatures(),a=e.getOwnKeys(i),o=0,s=a;o<s.length;o++){var c=s[o],u=i[c][e.symbolName(n)];if(void 0!==u&&e.contains(u,t))return c}}(_,r);if(void 0!==p)n=e.chainDiagnosticMessages(n,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,_,d,p);else{var f=ky(t,r);if(void 0!==f){var g=e.symbolName(f);n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,_,d,g),i=f.valueDeclaration&&e.createDiagnosticForNode(f.valueDeclaration,e.Diagnostics._0_is_declared_here,g)}else n=e.chainDiagnosticMessages(lc(n,r),e.Diagnostics.Property_0_does_not_exist_on_type_1,_,d)}}}var m=e.createDiagnosticForNodeFromMessageChain(t,n);i&&e.addRelatedInfo(m,i);Gr.add(m)}(i,Il(n)?c:n),Se);p.isReadonly&&(e.isAssignmentTarget(t)||e.isDeleteTarget(t))&&cn(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,sa(c)),l=J.noUncheckedIndexedAccess&&!e.isAssignmentTarget(t)?rl([p.type,ke]):p.type,J.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(t)&&cn(i,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(i.escapedText))}return Ty(t,u,l,i)}function Ty(t,r,n,i){var a=e.getAssignmentTargetKind(t);if(1===a||r&&!(98311&r.flags)&&!(8192&r.flags&&1048576&n.flags))return n;if(n===xe)return Ua(t,r);var o=!1;if(K&&H&&e.isAccessExpression(t)&&107===t.expression.kind){var s=r&&r.valueDeclaration;if(s&&rD(s)){var c=Pg(t);166!==c.kind||c.parent!==s.parent||8388608&s.flags||(o=!0)}}else K&&r&&r.valueDeclaration&&e.isPropertyAccessExpression(r.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(r.valueDeclaration)&&Pg(t)===Pg(r.valueDeclaration)&&(o=!0);var u=Fg(t,n,o?Cp(n):n);return o&&!(32768&xp(n))&&32768&xp(u)?(cn(i,e.Diagnostics.Property_0_is_used_before_being_assigned,aa(r)),n):a?up(u):u}function Cy(e){var t=ko(e);if(0!==t.length)return ul(t)}function Ey(t,r){var n=r.symbol&&_c(_o(r.symbol),t);return void 0!==n&&n.valueDeclaration&&e.hasSyntacticModifier(n.valueDeclaration,32)}function ky(t,r){return wy(e.isString(t)?t:e.idText(t),zs(r),111551)}function Ny(t,r){var n=e.isString(t)?t:e.idText(t),i=zs(r),a="for"===n?e.find(i,(function(t){return"htmlFor"===e.symbolName(t)})):"class"===n?e.find(i,(function(t){return"className"===e.symbolName(t)})):void 0;return null!=a?a:wy(n,i,111551)}function Ay(t,r){var n=ky(t,r);return n&&e.symbolName(n)}function Fy(t,r,n){return e.Debug.assert(void 0!==r,"outername should always be defined"),Fn(t,r,n,void 0,r,!1,!1,(function(t,n,i){return e.Debug.assertEqual(r,n,"name should equal outerName"),En(t,n,i)||wy(e.unescapeLeadingUnderscores(n),e.arrayFrom(t.values()),i)}))}function Py(t,r){return r.exports&&wy(e.idText(t),vi(r),2623475)}function wy(t,r,n){return e.getSpellingSuggestion(t,r,(function(t){var r=e.symbolName(t);if(e.startsWith(r,'"'))return;if(t.flags&n)return r;if(2097152&t.flags){var i=function(e){if(Sn(e).target!==he)return ti(e)}(t);if(i&&i.flags&n)return r}return}))}function Iy(t,r,n){var i=t&&106500&t.flags&&t.valueDeclaration;if(i){var a=e.hasEffectiveModifier(i,8),o=e.isNamedDeclaration(t.valueDeclaration)&&e.isPrivateIdentifier(t.valueDeclaration.name);if((a||o)&&(!r||!e.isWriteOnlyAccess(r)||65536&t.flags)){if(n){var s=e.findAncestor(r,e.isFunctionLikeDeclaration);if(s&&s.symbol===t)return}(1&e.getCheckFlags(t)?Sn(t).target:t).isReferenced=67108863}}}function Oy(t,r,n,i){if(i===Se||ka(i))return!0;var a=_c(i,n);if(a){if(e.isPropertyAccessExpression(t)&&a.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(a.valueDeclaration)){var o=e.getContainingClass(a.valueDeclaration);return!e.isOptionalChain(t)&&!!e.findAncestor(t,(function(e){return e===o}))}return sy(t,r,i,a)}return e.isInJSFile(t)&&0!=(1048576&i.flags)&&i.types.some((function(e){return Oy(t,r,n,e)}))}function My(t){var r=t.initializer;if(250===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return Ci(n)}else if(78===r.kind)return Cf(r)}function Ly(e){return 32&e.flags?function(e){var t=ib(e.expression),r=Pp(t,e.expression);return Fp(Ry(e,gy(r,e.expression)),e,r!==t)}(e):Ry(e,uy(e.expression))}function Ry(t,r){var n=0!==e.getAssignmentTargetKind(t)||hy(t)?Jp(r):r,i=t.argumentExpression,a=ib(i);if(n===Se||n===Ve)return n;if(Ah(n)&&!e.isStringLiteralLike(i))return cn(i,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Se;var o=Jl(n,function(t){var r,n=e.skipParentheses(t);if(78===n.kind){var i=Cf(n);if(3&i.flags)for(var a=t,o=t.parent;o;){if(238===o.kind&&a===o.statement&&My(o)===i&&yc(r=tb(o.expression),1)&&!yc(r,0))return!0;a=o,o=o.parent}}return!1}(i)?Ie:a,void 0,t,16|(e.isAssignmentTarget(t)?2|(Pl(n)&&!Il(n)?1:0):0))||Se;return hb(Ty(t,o.symbol,o,i),t)}function By(t,r,n){if(r===Se)return!1;if(!e.isWellKnownSymbolSyntactically(t))return!1;if(0==(12288&r.flags))return n&&cn(t,e.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,e.getTextOfNode(t)),!1;var i=t.expression,a=Cf(i);if(!a)return!1;var o=Eu(!0);return!!o&&(a===o||(n&&cn(i,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),!1))}function jy(t){return e.isCallOrNewExpression(t)||e.isTaggedTemplateExpression(t)||e.isJsxOpeningLikeElement(t)}function Jy(t){return jy(t)&&e.forEach(t.typeArguments,xD),205===t.kind?ib(t.template):e.isJsxOpeningLikeElement(t)?ib(t.attributes):161!==t.kind&&e.forEach(t.arguments,(function(e){ib(e)})),or}function zy(e){return Jy(e),sr}function Uy(e){return!!e&&(220===e.kind||227===e.kind&&e.isSpread)}function Vy(t){return e.findIndex(t,Uy)}function Ky(e){return!!(16384&e.flags)}function qy(e){return!!(49155&e.flags)}function Wy(t,r,n,i){var a;void 0===i&&(i=!1);var o=!1,s=Yv(n),c=Zv(n);if(205===t.kind)if(a=r.length,218===t.template.kind){var u=e.last(t.template.templateSpans);o=e.nodeIsMissing(u.literal)||!!u.literal.isUnterminated}else{var l=t.template;e.Debug.assert(14===l.kind),o=!!l.isUnterminated}else if(161===t.kind)a=cv(t,n);else if(e.isJsxOpeningLikeElement(t)){if(o=t.attributes.end===t.end)return!0;a=0===c?r.length:1,s=0===r.length?s:1,c=Math.min(c,1)}else{if(!t.arguments)return e.Debug.assert(204===t.kind),0===Zv(n);a=i?r.length+1:r.length,o=t.arguments.end===t.end;var _=Vy(r);if(_>=0)return _>=Zv(n)&&($v(n)||_<Yv(n))}if(!$v(n)&&a>s)return!1;if(o||a>=c)return!0;for(var d=a;d<c;d++){if(131072&og(Gv(n,d),e.isInJSFile(t)&&!K?qy:Ky).flags)return!1}return!0}function Hy(t,r){var n=e.length(t.typeParameters),i=Ec(t.typeParameters);return!e.some(r)||r.length>=i&&r.length<=n}function Gy(e){return Qy(e,0,!1)}function Xy(e){return Qy(e,0,!1)||Qy(e,1,!1)}function Qy(e,t,r){if(524288&e.flags){var n=Rs(e);if(r||0===n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo){if(0===t&&1===n.callSignatures.length&&0===n.constructSignatures.length)return n.callSignatures[0];if(1===t&&1===n.constructSignatures.length&&0===n.callSignatures.length)return n.constructSignatures[0]}}}function Yy(t,r,n,i){var a=Hp(t.typeParameters,t,0,i),o=eh(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return qp(s?O_(r,s):r,t,(function(e,t){ff(a.inferences,e,t)})),n||Wp(r,t,(function(e,t){ff(a.inferences,e,t,64)})),jc(t,Sf(a),e.isInJSFile(r.declaration))}function Zy(t){if(!t)return ze;var r=ib(t);return e.isOptionalChainRoot(t.parent)?Ep(r):e.isOptionalChain(t.parent)?Ap(r):r}function $y(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=bm(t,e),a=jh(e.attributes,i,n,r);return ff(n.inferences,a,i),Sf(n)}(t,r,i,a);if(161!==t.kind){var o=vm(t,e.every(r.typeParameters,(function(e){return!!$s(e)}))?8:0);if(o){var s=hm(t),c=V_(o,$p(function(t,r){return void 0===r&&(r=0),t&&Gp(e.map(t.inferences,Zp),t.signature,t.flags|r,t.compareTypes)}(s,1))),u=Gy(c),l=u&&u.typeParameters?qc(Jc(u,u.typeParameters)):c,_=Mc(r);ff(a.inferences,l,_,64);var d=Hp(r.typeParameters,r,a.flags),p=V_(o,s&&s.returnMapper);ff(d.inferences,p,_),a.returnMapper=e.some(d.inferences,Yh)?$p(function(t){var r=e.filter(t.inferences,Yh);return r.length?Gp(e.map(r,Zp),t.signature,t.flags,t.compareTypes):void 0}(d)):void 0}}var f=th(r),g=f?Math.min(Yv(r)-1,n.length):n.length;if(f&&262144&f.flags){var m=e.find(a.inferences,(function(e){return e.typeParameter===f}));m&&(m.impliedArity=e.findIndex(n,Uy,g)<0?n.length-g:void 0)}var y=Ic(r);if(y){var v=av(t);ff(a.inferences,Zy(v),y)}for(var h=0;h<g;h++){var b=n[h];if(222!==b.kind){var x=Gv(r,h),D=jh(b,x,a,i);ff(a.inferences,D,x)}}if(f){var S=tv(n,g,n.length,f,a,i);ff(a.inferences,S,f)}return Sf(a)}function ev(e){return 1048576&e.flags?cg(e,ev):1&e.flags||ep(Gs(e)||e)?e:fp(e)?zu(au(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):zu([e],[8])}function tv(t,r,n,i,a,o){if(r>=n-1&&Uy(_=t[n-1]))return ev(227===_.kind?_.type:jh(_.expression,i,a,o));for(var s=[],c=[],u=[],l=r;l<n;l++){var _;if(Uy(_=t[l])){var d=227===_.kind?_.type:ib(_.expression);rp(d)?(s.push(d),c.push(8)):(s.push(hx(33,d,ke,220===_.kind?_.expression:_)),c.push(4))}else{var p=Bl(i,p_(l-r)),f=jh(_,p,a,o),g=Eh(p,406978556);s.push(g?__(f):lp(f)),c.push(1)}227===_.kind&&_.tupleNameSource&&u.push(_.tupleNameSource)}return zu(s,c,!1,e.length(u)===e.length(s)?u:void 0)}function rv(t,r,n,i){for(var a,o=e.isInJSFile(t.declaration),s=t.typeParameters,c=kc(e.map(r,v_),s,Ec(s),o),u=0;u<r.length;u++){e.Debug.assert(void 0!==s[u],"Should not call checkTypeArguments with too many type arguments");var l=Vs(s[u]);if(l){var _=n&&i?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,d=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a||(a=S_(s,c));var p=c[u];if(!cd(p,as(V_(l,a),p),n?r[u]:void 0,d,_))return}}return c}function nv(t){if(Bm(t.tagName))return 2;var r=tc(ib(t.tagName));return e.length(pc(r,1))?0:e.length(pc(r,0))?1:2}function iv(t,r,n,i,a,o,s){var c={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(t))return function(t,r,n,i,a,o,s){var c=bm(r,t),u=jh(t.attributes,c,void 0,i);return function(){var r;if(qm(t))return!0;var n=e.isJsxOpeningElement(t)||e.isJsxSelfClosingElement(t)&&!Bm(t.tagName)?ib(t.tagName):void 0;if(!n)return!0;var i=pc(n,0);if(!e.length(i))return!0;var o=xS(t);if(!o)return!0;var c=ui(o,111551,!0,!1,t);if(!c)return!0;var u=pc(_o(c),0);if(!e.length(u))return!0;for(var l=!1,_=0,d=0,p=u;d<p.length;d++){var f=pc(Gv(p[d],0),0);if(e.length(f))for(var g=0,m=f;g<m.length;g++){var y=m[g];if(l=!0,$v(y))return!0;var v=Yv(y);v>_&&(_=v)}}if(!l)return!0;for(var h=1/0,b=0,x=i;b<x.length;b++){var D=Zv(x[b]);D<h&&(h=D)}if(h<=_)return!0;if(a){var S=e.createDiagnosticForNode(t.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(t.tagName),h,e.entityNameToString(o),_),T=null===(r=LD(t.tagName))||void 0===r?void 0:r.valueDeclaration;T&&e.addRelatedInfo(S,e.createDiagnosticForNode(T,e.Diagnostics._0_is_declared_here,e.entityNameToString(t.tagName))),s&&s.skipLogging&&(s.errors||(s.errors=[])).push(S),s.skipLogging||Gr.add(S)}return!1}()&&ld(u,c,n,a?t.tagName:void 0,t.attributes,void 0,o,s)}(t,n,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 u=Ic(n);if(u&&u!==ze&&204!==t.kind){var l=av(t),_=Zy(l),d=o?l||t:void 0,p=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Fd(_,u,i,d,p,s,c))return e.Debug.assert(!o||!!c.errors,"this parameter should have errors when reporting errors"),c.errors||e.emptyArray}for(var f=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,g=th(n),m=g?Math.min(Yv(n)-1,r.length):r.length,y=0;y<m;y++){var v=r[y];if(222!==v.kind){var h=Gv(n,y),b=jh(v,h,void 0,a),x=4&a?Op(b):b;if(!ld(x,h,i,o?v:void 0,v,f,s,c))return e.Debug.assert(!o||!!c.errors,"parameter should have errors when reporting errors"),T(v,x,h),c.errors||e.emptyArray}}if(g){var D=tv(r,m,r.length,g,void 0,a),S=r.length-m;d=o?0===S?t:1===S?r[m]:e.setTextRangePosEnd(ov(t,D),r[m].pos,r[r.length-1].end):void 0;if(!Fd(D,g,i,d,f,void 0,c))return e.Debug.assert(!o||!!c.errors,"rest parameter should have errors when reporting errors"),T(d,D,g),c.errors||e.emptyArray}return;function T(t,r,n){if(t&&o&&c.errors&&c.errors.length){if(Cb(n))return;var a=Cb(r);a&&kd(a,n,i)&&e.addRelatedInfo(c.errors[0],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await))}}}function av(t){if(203===t.kind){var r=e.skipOuterExpressions(t.expression);if(e.isAccessExpression(r))return r.expression}}function ov(t,r,n,i){var a=e.parseNodeFactory.createSyntheticExpression(r,n,i);return e.setTextRange(a,t),e.setParent(a,t),a}function sv(t){if(205===t.kind){var r=t.template,n=[ov(r,Ht||(Ht=Cu("TemplateStringsArray",0,!0))||et)];return 218===r.kind&&e.forEach(r.templateSpans,(function(e){n.push(e.expression)})),n}if(161===t.kind)return function(t){var r=t.parent,n=t.expression;switch(r.kind){case 252:case 221:return[ov(n,_o(Ci(r)))];case 160:var i=r.parent;return[ov(n,166===r.parent.kind?_o(Ci(i)):Se),ov(n,be),ov(n,Ie)];case 163:case 165:case 167:case 168:var a=163!==r.kind&&0!==z;return[ov(n,JD(r)),ov(n,zD(r)),ov(n,a?Iu(RD(r)):be)]}return e.Debug.fail()}(t);if(e.isJsxOpeningLikeElement(t))return t.attributes.properties.length>0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=Vy(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var r=i[t],n=220===r.kind&&(Dr?ib(r.expression):Jh(r.expression));n&&fp(n)?e.forEach(au(n),(function(e,t){var i,a=n.target.elementFlags[t],s=ov(r,4&a?Ou(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)})):o.push(r)},c=a;c<i.length;c++)s(c);return o}return i}function cv(t,r){switch(t.parent.kind){case 252:case 221:return 1;case 163:return 2;case 165:case 167:case 168:return 0===z||r.parameters.length<=2?2:3;case 160:return 3;default:return e.Debug.fail()}}function uv(t,r){var n,i,a=e.getSourceFileOfNode(t);if(e.isPropertyAccessExpression(t.expression)){var o=e.getErrorSpanForNode(a,t.expression.name);n=o.start,i=r?o.length:t.end-n}else{var s=e.getErrorSpanForNode(a,t.expression);n=s.start,i=r?s.length:t.end-n}return{start:n,length:i,sourceFile:a}}function lv(t,r,n,i,a,o){if(e.isCallExpression(t)){var s=uv(t),c=s.sourceFile,u=s.start,l=s.length;return e.createFileDiagnostic(c,u,l,r,n,i,a,o)}return e.createDiagnosticForNode(t,r,n,i,a,o)}function _v(t,r,n){for(var i,a=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY,u=n.length,l=0,_=r;l<_.length;l++){var d=_[l],p=Zv(d),f=Yv(d);p<u&&p>s&&(s=p),u<f&&f<c&&(c=f),p<a&&(a=p,i=d),o=Math.max(o,f)}var g,m,y=e.some(r,$v),v=y?a:a<o?a+"-"+o:a,h=Vy(n)>-1;u<=o&&h&&u--;var b=y||h?y&&h?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:y?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more:1===v&&0===u&&function(t){if(!e.isCallExpression(t)||!e.isIdentifier(t.expression))return!1;var r=An(t.expression,t.expression.escapedText,111551,void 0,void 0,!1),n=null==r?void 0:r.valueDeclaration;if(!(n&&e.isParameter(n)&&Sm(n.parent)&&e.isNewExpression(n.parent.parent)&&e.isIdentifier(n.parent.parent.expression)))return!1;var i=Au(!1);return!!i&&LD(n.parent.parent.expression,!0)===i}(t)?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(i&&Zv(i)>u&&i.declaration){var x=i.declaration.parameters[i.thisParameter?u+1:u];x&&(m=e.createDiagnosticForNode(x,e.isBindingPattern(x.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(x)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,x.name?e.isBindingPattern(x.name)?void 0:e.idText(e.getFirstIdentifier(x.name)):u))}if(a<u&&u<o)return lv(t,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,u,s,c);if(!h&&u<a){var D=lv(t,b,v,u);return m?e.addRelatedInfo(D,m):D}if(y||h){if(g=e.factory.createNodeArray(n),h&&u){var S=e.elementAt(n,Vy(n)+1)||void 0;g=e.factory.createNodeArray(n.slice(o>u&&S?n.indexOf(S):Math.min(o,n.length-1)))}}else g=e.factory.createNodeArray(n.slice(o));var T=e.first(g).pos,C=e.last(g).end;C===T&&C++,e.setTextRangePosEnd(g,T,C);var E=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),g,b,v,u);return m?e.addRelatedInfo(E,m):E}function dv(t,n,i,a,o,s){var c,u=205===t.kind,l=161===t.kind,_=e.isJsxOpeningLikeElement(t),d=!i&&r;l||(c=t.typeArguments,(u||_||105!==t.expression.kind)&&e.forEach(c,xD));var p=i||[];if(function(t,r,n){var i,a,o,s,c=0,u=-1;e.Debug.assert(!r.length);for(var l=0,_=t;l<_.length;l++){var d=_[l],p=d.declaration&&Ci(d.declaration),f=d.declaration&&d.declaration.parent;a&&p!==a?(o=c=r.length,i=f):i&&f===i?o+=1:(i=f,o=c),a=p,j(d)?(s=++u,c++):s=o,r.splice(s,0,n?ls(d,n):d)}}(n,p,o),!p.length)return d&&Gr.add(lv(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),zy(t);var f,g,m,y,v=sv(t),h=1===p.length&&!p[0].typeParameters,b=l||h||!e.some(v,G_)?0:4,x=!!(16&a)&&203===t.kind&&t.arguments.hasTrailingComma;if(p.length>1&&(y=q(p,Zr,h,x)),y||(y=q(p,en,h,x)),y)return y;if(d)if(f)if(1===f.length||f.length>3){var D,S=f[f.length-1];f.length>3&&(D=e.chainDiagnosticMessages(D,e.Diagnostics.The_last_overload_gave_the_following_error),D=e.chainDiagnosticMessages(D,e.Diagnostics.No_overload_matches_this_call));var T=iv(t,v,S,en,0,!0,(function(){return D}));if(T)for(var C=0,E=T;C<E.length;C++){var k=E[C];S.declaration&&f.length>3&&e.addRelatedInfo(k,e.createDiagnosticForNode(S.declaration,e.Diagnostics.The_last_overload_is_declared_here)),K(S,k),Gr.add(k)}else e.Debug.fail("No error for last overload signature")}else{for(var N=[],A=0,F=Number.MAX_VALUE,P=0,w=0,I=function(r){var n=iv(t,v,r,en,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,w+1,p.length,oa(r))}));n?(n.length<=F&&(F=n.length,P=w),A=Math.max(A,n.length),N.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),w++},O=0,M=f;O<M.length;O++){I(M[O])}var L=A>1?N[P]:e.flatten(N);e.Debug.assert(L.length>0,"No errors reported for 3 or fewer overload signatures");var R=e.chainDiagnosticMessages(e.map(L,(function(e){return"string"==typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),J=__spreadArray([],e.flatMap(L,(function(e){return e.relatedInformation}))),z=void 0;if(e.every(L,(function(e){return e.start===L[0].start&&e.length===L[0].length&&e.file===L[0].file}))){var U=L[0];z={file:U.file,start:U.start,length:U.length,code:R.code,category:R.category,messageText:R,relatedInformation:J}}else z=e.createDiagnosticForNodeFromMessageChain(t,R,J);K(f[0],z),Gr.add(z)}else if(g)Gr.add(_v(t,[g],v));else if(m)rv(m,t.typeArguments,!0,s);else{var V=e.filter(n,(function(e){return Hy(e,c)}));0===V.length?Gr.add(function(t,r,n){var i=n.length;if(1===r.length){var a=Ec((_=r[0]).typeParameters),o=e.length(_.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,a<o?a+"-"+o:a,i)}for(var s=-1/0,c=1/0,u=0,l=r;u<l.length;u++){var _,d=Ec((_=l[u]).typeParameters);o=e.length(_.typeParameters),d>i?c=Math.min(c,d):o<i&&(s=Math.max(s,o))}return s!==-1/0&&c!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,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(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,s===-1/0?c:s,i)}(t,n,c)):l?s&&Gr.add(lv(t,s)):Gr.add(_v(t,V,v))}return function(t,r,n,i){return e.Debug.assert(r.length>0),SD(t),i||1===r.length||r.some((function(e){return!!e.typeParameters}))?function(t,r,n){var i=function(e,t){for(var r=-1,n=-1,i=0;i<e.length;i++){var a=e[i],o=Yv(a);if($v(a)||o>=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===ne?n.length:ne),a=r[i],o=a.typeParameters;if(!o)return a;var s=jy(t)?t.typeArguments:void 0,c=s?zc(a,function(e,t,r){var n=e.map(RD);for(;n.length>t.length;)n.pop();for(;n.length<t.length;)n.push(Vs(t[n.length])||Df(r));return n}(s,o,e.isInJSFile(t))):function(t,r,n,i){var a=Hp(r,n,e.isInJSFile(t)?2:0),o=$y(t,n,i,12,a);return zc(n,o)}(t,o,a,n);return r[i]=c,c}(t,r,n):function(t){var r,n=e.mapDefined(t,(function(e){return e.thisParameter}));n.length&&(r=fv(n,n.map(Vv)));for(var i=e.minAndMax(t,pv),a=i.min,o=i.max,s=[],c=function(r){var n=e.mapDefined(t,(function(t){return B(t)?r<t.parameters.length-1?t.parameters[r]:e.last(t.parameters):r<t.parameters.length?t.parameters[r]:void 0}));e.Debug.assert(0!==n.length),s.push(fv(n,e.mapDefined(t,(function(e){return Xv(e,r)}))))},u=0;u<o;u++)c(u);var l=e.mapDefined(t,(function(t){return B(t)?e.last(t.parameters):void 0})),_=0;if(0!==l.length){var d=Ou(rl(e.mapDefined(t,Bc),2));s.push(gv(l,d)),_|=1}t.some(j)&&(_|=2);return ss(t[0].declaration,void 0,r,s,ul(t.map(Mc)),void 0,a,_)}(r)}(t,p,v,!!i);function K(t,r){var n,i,a=f,o=g,s=m,c=(null===(i=null===(n=t.declaration)||void 0===n?void 0:n.symbol)||void 0===i?void 0:i.declarations)||e.emptyArray,u=c.length>1?e.find(c,(function(t){return e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body)})):void 0;if(u){var l=Nc(u),_=!l.typeParameters;q([l],en,_)&&e.addRelatedInfo(r,e.createDiagnosticForNode(u,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}f=a,g=o,m=s}function q(r,n,i,a){if(void 0===a&&(a=!1),f=void 0,g=void 0,m=void 0,i){var o=r[0];if(e.some(c)||!Wy(t,v,o,a))return;return iv(t,v,o,n,0,!1,void 0)?void(f=[o]):o}for(var s=0;s<r.length;s++){if(Hy(o=r[s],c)&&Wy(t,v,o,a)){var u=void 0,l=void 0;if(o.typeParameters){var _=void 0;if(e.some(c)){if(!(_=rv(o,c,!1))){m=o;continue}}else l=Hp(o.typeParameters,o,e.isInJSFile(t)?2:0),_=$y(t,o,v,8|b,l),b|=4&l.flags?8:0;if(u=jc(o,_,e.isInJSFile(o.declaration),l&&l.inferredTypeParameters),th(o)&&!Wy(t,v,u,a)){g=u;continue}}else u=o;if(!iv(t,v,u,n,b,!1,void 0)){if(b){if(b=0,l)if(u=jc(o,_=$y(t,o,v,b,l),e.isInJSFile(o.declaration),l&&l.inferredTypeParameters),th(o)&&!Wy(t,v,u,a)){g=u;continue}if(iv(t,v,u,n,b,!1,void 0)){(f||(f=[])).push(u);continue}}return r[s]=u,u}(f||(f=[])).push(u)}}}}function pv(e){var t=e.parameters.length;return B(e)?t-1:t}function fv(e,t){return gv(e,rl(t,2))}function gv(t,r){return Ip(e.first(t),r)}function mv(e){return!(!e.typeParameters||!_S(Mc(e)))}function yv(e,t,r,n){return ka(e)||ka(t)&&!!(262144&e.flags)||!r&&!n&&!(1179648&t.flags)&&id(e,mt)}function vv(t,r,n){if(t.arguments&&z<1){var i=Vy(t.arguments);i>=0&&cn(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=uy(t.expression);if(a===Ve)return ur;if((a=tc(a))===Se)return zy(t);if(ka(a))return t.typeArguments&&cn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Jy(t);var o=pc(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedEffectiveModifierFlags(n,24);if(!i||166!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=jo(n.parent.symbol);if(!ID(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=RD(s);if(hv(n.parent.symbol,c))return!0}return 8&i&&cn(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,sa(o)),16&i&&cn(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,sa(o)),!1}return!0}(t,o[0]))return zy(t);if(o.some((function(e){return 4&e.flags})))return cn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),zy(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(cn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),zy(t)):dv(t,o,r,n,0)}var c=pc(a,0);if(c.length){var u=dv(t,c,r,n,0);return G||(u.declaration&&!Av(u.declaration)&&Mc(u)!==ze&&cn(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Ic(u)===ze&&cn(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),u}return xv(t.expression,a,1),zy(t)}function hv(t,r){var n=ko(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=hs(i.types),o=0,s=0,c=i.types;s<c.length;s++){var u=c[s];if(!a[o]&&3&e.getObjectFlags(u)){if(u.symbol===t)return!0;if(hv(t,u))return!0}o++}return!1}return i.symbol===t||hv(t,i)}function bv(t,r,n){var i,a=0===n,o=Nb(r),s=o&&pc(o,n).length>0;if(1048576&r.flags){for(var c=!1,u=0,l=r.types;u<l.length;u++){var _=l[u];if(0!==pc(_,n).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,sa(_)),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,sa(r))),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,sa(r))),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,sa(r)))}else i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,sa(r));var d=a?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(t.parent)&&0===t.parent.arguments.length){var p=Tn(t).resolvedSymbol;p&&32768&p.flags&&(d=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,d),relatedMessage:s?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function xv(t,r,n,i){var a=bv(t,r,n),o=a.messageChain,s=a.relatedMessage,c=e.createDiagnosticForNodeFromMessageChain(t,o);if(s&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,s)),e.isCallExpression(t.parent)){var u=uv(t.parent,!0),l=u.start,_=u.length;c.start=l,c.length=_}Gr.add(c),Dv(r,n,i?e.addRelatedInfo(c,i):c)}function Dv(t,r,n){if(t.symbol){var i=Sn(t.symbol).originatingImport;if(i&&!e.isImportCall(i)){var a=pc(_o(Sn(t.symbol).target),r);if(!a||!a.length)return;e.addRelatedInfo(n,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 Sv(t){switch(t.parent.kind){case 252:case 221:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 160:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 163:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 165:case 167:case 168:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function Tv(t,r,n){var i=ib(t.expression),a=tc(i);if(a===Se)return zy(t);var o,s,c=pc(a,0),u=pc(a,1).length;if(yv(i,a,c.length,u))return Jy(t);if(o=t,(s=c).length&&e.every(s,(function(e){return 0===e.minArgumentCount&&!B(e)&&e.parameters.length<cv(o,e)}))){var l=e.getTextOfNode(t.expression,!1);return cn(t,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,l),zy(t)}var _=Sv(t);if(!c.length){var d=bv(t.expression,a,0),p=e.chainDiagnosticMessages(d.messageChain,_),f=e.createDiagnosticForNodeFromMessageChain(t.expression,p);return d.relatedMessage&&e.addRelatedInfo(f,e.createDiagnosticForNode(t.expression,d.relatedMessage)),Gr.add(f),Dv(a,0,f),zy(t)}return dv(t,c,r,n,0,_)}function Cv(t,r){var n=Wm(t),i=n&&bi(n),a=i&&En(i,k.Element,788968),o=a&&$.symbolToEntityName(a,788968,t),s=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,$.typeToTypeNode(r,t))],o?e.factory.createTypeReferenceNode(o,void 0):e.factory.createKeywordTypeNode(128)),c=fn(1,"props");return c.type=r,ss(s,void 0,void 0,[c],a?jo(a):Se,void 0,1,0)}function Ev(t,r,n){if(Bm(t.tagName)){var i=Ym(t),a=Cv(t,i);return ud(jh(t.attributes,bm(a,t),void 0,0),i,t.tagName,t.attributes),e.length(t.typeArguments)&&(e.forEach(t.typeArguments,xD),Gr.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),t.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(t.typeArguments)))),a}var o=ib(t.tagName),s=tc(o);if(s===Se)return zy(t);var c=Xm(o,t);return yv(o,s,c.length,0)?Jy(t):0===c.length?(cn(t.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(t.tagName)),zy(t)):dv(t,c,r,n,0)}function kv(t,r,n){switch(t.kind){case 203:return function(t,r,n){if(105===t.expression.kind){var i=Gg(t.expression);if(ka(i)){for(var a=0,o=t.arguments;a<o.length;a++)ib(o[a]);return or}if(i!==Se){var s=e.getEffectiveBaseTypeNode(e.getContainingClass(t));if(s)return dv(t,To(i,s.typeArguments,s),r,n,0)}return Jy(t)}var c,u=ib(t.expression);if(e.isCallChain(t)){var l=Pp(u,t.expression);c=l===u?0:e.isOutermostOptionalChain(t)?16:8,u=l}else c=0;if((u=fy(u,t.expression,py))===Ve)return ur;var _=tc(u);if(_===Se)return zy(t);var d=pc(_,0),p=pc(_,1).length;if(yv(u,_,d.length,p))return u!==Se&&t.typeArguments&&cn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Jy(t);if(!d.length){if(p)cn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,sa(u));else{var f=void 0;if(1===t.arguments.length){var g=e.getSourceFileOfNode(t).text;e.isLineBreak(g.charCodeAt(e.skipTrivia(g,t.expression.end,!0)-1))&&(f=e.createDiagnosticForNode(t.expression,e.Diagnostics.Are_you_missing_a_semicolon))}xv(t.expression,_,0,f)}return zy(t)}return 8&n&&!t.typeArguments&&d.some(mv)?(Qh(t,n),cr):d.some((function(t){return e.isInJSFile(t.declaration)&&!!e.getJSDocClassTag(t.declaration)}))?(cn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,sa(u)),zy(t)):dv(t,d,r,n,c)}(t,r,n);case 204:return vv(t,r,n);case 205:return function(t,r,n){var i=ib(t.tag),a=tc(i);if(a===Se)return zy(t);var o=pc(a,0),s=pc(a,1).length;if(yv(i,a,o.length,s))return Jy(t);if(!o.length){if(e.isArrayLiteralExpression(t.parent)){var c=e.createDiagnosticForNode(t.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 Gr.add(c),zy(t)}return xv(t.tag,a,0),zy(t)}return dv(t,o,r,n,0)}(t,r,n);case 161:return Tv(t,r,n);case 275:case 274:return Ev(t,r,n)}throw e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function Nv(e,t,r){var n=Tn(e),i=n.resolvedSignature;if(i&&i!==cr&&!t)return i;n.resolvedSignature=cr;var a=kv(e,t,r||0);return a!==cr&&(n.resolvedSignature=xr===Dr?a:i),a}function Av(t){var r;if(!t||!e.isInJSFile(t))return!1;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?t:e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?t.initializer:void 0;if(n){if(e.getJSDocClassTag(t))return!0;var i=Ci(n);return!!(null===(r=null==i?void 0:i.members)||void 0===r?void 0:r.size)}return!1}function Fv(t,r){var n,i;if(r){var a=Sn(r);if(!a.inferredClassSymbol||!a.inferredClassSymbol.has(w(t))){var o=e.isTransientSymbol(t)?t:yn(t);return o.exports=o.exports||e.createSymbolTable(),o.members=o.members||e.createSymbolTable(),o.flags|=32&r.flags,(null===(n=r.exports)||void 0===n?void 0:n.size)&&xn(o.exports,r.exports),(null===(i=r.members)||void 0===i?void 0:i.size)&&xn(o.members,r.members),(a.inferredClassSymbol||(a.inferredClassSymbol=new e.Map)).set(w(o),o),o}return a.inferredClassSymbol.get(w(t))}}function Pv(t,r){if(t.parent){var n,i;if(e.isVariableDeclaration(t.parent)&&t.parent.initializer===t){if(!(e.isInJSFile(t)||e.isVarConst(t.parent)&&e.isFunctionLikeDeclaration(t)))return;n=t.parent.name,i=t.parent}else if(e.isBinaryExpression(t.parent)){var a=t.parent,o=t.parent.operatorToken.kind;if(62!==o||!r&&a.right!==t){if(!(56!==o&&60!==o||(e.isVariableDeclaration(a.parent)&&a.parent.initializer===a?(n=a.parent.name,i=a.parent):e.isBinaryExpression(a.parent)&&62===a.parent.operatorToken.kind&&(r||a.parent.right===a)&&(i=n=a.parent.left),n&&e.isBindableStaticNameExpression(n)&&e.isSameEntityName(n,a.left))))return}else i=n=a.left}else r&&e.isFunctionDeclaration(t)&&(n=t.name,i=t);if(i&&n&&(r||e.getExpandoInitializer(t,e.isPrototypeAccess(n))))return Ci(i)}}function wv(t,r){if(t.declaration&&134217728&t.declaration.flags){var n=Iv(r),i=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(r));a=n,o=t.declaration,s=i,c=oa(t),dn(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(t){switch((t=e.skipParentheses(t)).kind){case 203:case 161:case 204:return Iv(t.expression);case 205:return Iv(t.tag);case 275:case 274:return Iv(t.tagName);case 202:return t.argumentExpression;case 201:return t.name;case 173:var r=t;return e.isQualifiedName(r.typeName)?r.typeName.right:r;default:return t}}function Ov(t){if(!e.isCallExpression(t))return!1;var r=t.expression;if(e.isPropertyAccessExpression(r)&&"for"===r.name.escapedText&&(r=r.expression),!e.isIdentifier(r)||"Symbol"!==r.escapedText)return!1;var n=Eu(!1);return!!n&&n===An(r,"Symbol",111551,void 0,void 0,!1)}function Mv(t){if(IS(t.arguments)||function(t){if(U===e.ModuleKind.ES2015)return $S(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd);if(t.typeArguments)return $S(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;if(1!==r.length)return $S(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument);if(NS(r),e.isSpreadElement(r[0]))return $S(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return uh(t,be);for(var r=t.arguments[0],n=Jh(r),i=1;i<t.arguments.length;++i)Jh(t.arguments[i]);(32768&n.flags||65536&n.flags||!id(n,we))&&cn(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,sa(n));var a=_i(t,r);if(a){var o=mi(a,r,!0,!1);if(o)return uh(t,Lv(_o(o),o,a))}return uh(t,be)}function Lv(t,r,n){if(V&&t&&t!==Se){var i=t;if(!i.syntheticType)if(Wn(e.find(n.declarations,e.isSourceFile),n,!1)){var a=e.createSymbolTable(),o=fn(2097152,"default");o.parent=n,o.nameType=p_("default"),o.target=ei(r),a.set("default",o);var s=fn(2048,"__type"),c=Vi(s,a,e.emptyArray,e.emptyArray,void 0,void 0);s.type=c,i.syntheticType=Lm(t)?a_(t,c,s,0,!1):c}else i.syntheticType=t;return i.syntheticType}return t}function Rv(t){if(!e.isRequireCall(t,!0))return!1;if(!e.isIdentifier(t.expression))return e.Debug.fail();var r=An(t.expression,t.expression.escapedText,111551,void 0,void 0,!0);if(r===ae)return!0;if(2097152&r.flags)return!1;var n=16&r.flags?251:3&r.flags?249:0;if(0!==n){var i=e.getDeclarationOfKind(r,n);return!!i&&!!(8388608&i.flags)}return!1}function Bv(t){(function(t){if(t.questionDotToken||32&t.flags)return $S(t.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);return!1})(t)||wS(t,t.typeArguments),z<2&&TS(t,262144);var r=Nv(t);return wv(r,t),Mc(r)}function jv(t){switch(t.kind){case 10:case 14:case 8:case 9:case 109:case 94:case 199:case 200:case 218:return!0;case 207:return jv(t.expression);case 214:var r=t.operator,n=t.operand;return 40===r&&(8===n.kind||9===n.kind)||39===r&&8===n.kind;case 201:case 202:var i=t.expression;if(e.isIdentifier(i)){var a=LD(i);return a&&2097152&a.flags&&(a=ti(a)),!!(a&&384&a.flags&&1===Oo(a))}}return!1}function Jv(t,n,i,a){var o=ib(i,a);if(e.isConstTypeReference(n))return jv(i)||cn(i,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),__(o);xD(n),o=Op(up(o));var s=v_(n);r&&s!==Se&&(od(s,Jp(o))||vd(o,s,t,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first));return s}function zv(e){return 32&e.flags?function(e){var t=ib(e.expression),r=Pp(t,e.expression);return Fp(Ep(r),e,r!==t)}(e):Ep(ib(e.expression))}function Uv(t){return function(t){var r=t.name.escapedText;switch(t.keywordToken){case 102:if("target"!==r)return $S(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"target");break;case 99:if("meta"!==r)$S(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"meta")}}(t),102===t.keywordToken?function(t){var r=e.getNewTargetContainer(t);return r?166===r.kind?_o(Ci(r.parent)):_o(Ci(r)):(cn(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Se)}(t):99===t.keywordToken?function(t){U!==e.ModuleKind.ES2020&&U!==e.ModuleKind.ESNext&&U!==e.ModuleKind.System&&cn(t,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system);var r=e.getSourceFileOfNode(t);return e.Debug.assert(!!(2097152&r.flags),"Containing file is missing import meta node flag."),e.Debug.assert(!!r.externalModuleIndicator,"Containing file should be a module."),"meta"===t.name.escapedText?function(){return Gt||(Gt=Cu("ImportMeta",0,!0))||et}():Se}(t):e.Debug.assertNever(t.keywordToken)}function Vv(t){var r=_o(t);if(K){var n=t.valueDeclaration;if(n&&e.hasInitializer(n))return Cp(r)}return r}function Kv(t){return e.Debug.assert(e.isIdentifier(t.name)),t.name.escapedText}function qv(e,t,r){var n=e.parameters.length-(B(e)?1:0);if(t<n)return e.parameters[t].escapedName;var i=e.parameters[n]||ve,a=r||_o(i);if(fp(a)){var o=a.target.labeledElementDeclarations,s=t-n;return o&&Kv(o[s])||i.escapedName+"_"+s}return i.escapedName}function Wv(t){return 192===t.kind||e.isParameter(t)&&t.name&&e.isIdentifier(t.name)}function Hv(e,t){var r=e.parameters.length-(B(e)?1:0);if(t<r){var n=e.parameters[t].valueDeclaration;return n&&Wv(n)?n:void 0}var i=e.parameters[r]||ve,a=_o(i);if(fp(a)){var o=a.target.labeledElementDeclarations;return o&&o[t-r]}return i.valueDeclaration&&Wv(i.valueDeclaration)?i.valueDeclaration:void 0}function Gv(e,t){return Xv(e,t)||be}function Xv(e,t){var r=e.parameters.length-(B(e)?1:0);if(t<r)return Vv(e.parameters[t]);if(B(e)){var n=_o(e.parameters[r]),i=t-r;if(!fp(n)||n.target.hasRestElement||i<n.target.fixedLength)return Bl(n,p_(i))}}function Qv(t,r){var n=Yv(t),i=Zv(t),a=eh(t);if(a&&r>=n-1)return r===n-1?a:Ou(Bl(a,Ie));for(var o=[],s=[],c=[],u=r;u<n;u++){!a||u<n-1?(o.push(Gv(t,u)),s.push(u<i?1:2)):(o.push(a),s.push(8));var l=Hv(t,u);l&&c.push(l)}return zu(o,s,!1,e.length(c)===e.length(o)?c:void 0)}function Yv(e){var t=e.parameters.length;if(B(e)){var r=_o(e.parameters[t-1]);if(fp(r))return t+r.target.fixedLength-(r.target.hasRestElement?0:1)}return t}function Zv(t,r){var n=1&r,i=2&r;if(i||void 0===t.resolvedMinArgumentCount){var a=void 0;if(B(t)){var o=_o(t.parameters[t.parameters.length-1]);if(fp(o)){var s=e.findIndex(o.target.elementFlags,(function(e){return!(1&e)})),c=s<0?o.target.fixedLength:s;c>0&&(a=t.parameters.length-1+c)}}if(void 0===a){if(!n&&32&t.flags)return 0;a=t.minArgumentCount}if(i)return a;for(var u=a-1;u>=0;u--){if(131072&og(Gv(t,u),Ky).flags)break;a=u}t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function $v(e){if(B(e)){var t=_o(e.parameters[e.parameters.length-1]);return!fp(t)||t.target.hasRestElement}return!1}function eh(e){if(B(e)){var t=_o(e.parameters[e.parameters.length-1]);if(!fp(t))return t;if(t.target.hasRestElement)return qu(t,t.target.fixedLength)}}function th(e){var t=eh(e);return!t||Zd(t)||ka(t)||0!=(131072&oc(t).flags)?void 0:t}function rh(e){return nh(e,Ue)}function nh(e,t){return e.parameters.length>0?Gv(e,0):t}function ih(t,r){(t.typeParameters=r.typeParameters,r.thisParameter)&&((!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=Ip(r.thisParameter,void 0)),ah(t.thisParameter,_o(r.thisParameter))));for(var n=t.parameters.length-(B(t)?1:0),i=0;i<n;i++){var a=t.parameters[i];if(!e.getEffectiveTypeAnnotationNode(a.valueDeclaration))ah(a,Xv(r,i))}if(B(t)){a=e.last(t.parameters);if(e.isTransientSymbol(a)||!e.getEffectiveTypeAnnotationNode(a.valueDeclaration))ah(a,Qv(r,n))}}function ah(e,t){var r=Sn(e);if(!r.type){var n=e.valueDeclaration;r.type=t||Ya(n,!0),78!==n.name.kind&&(r.type===Ee&&(r.type=Qa(n.name)),oh(n.name))}}function oh(t){for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];e.isOmittedExpression(i)||(78===i.name.kind?Sn(Ci(i)).type=Ia(i):oh(i.name))}}function sh(e){var t=Nu(!0);return t!==it?ru(t,[e=Nb(e)||Ee]):Ee}function ch(e){var t,r=(t=!0,Ot||(Ot=Cu("PromiseLike",1,t))||it);return r!==it?ru(r,[e=Nb(e)||Ee]):Ee}function uh(t,r){var n=sh(r);return n===Ee?(cn(t,e.isImportCall(t)?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),Se):(Au(!0)||cn(t,e.isImportCall(t)?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),n)}function lh(t,r){if(!t.body)return Se;var n,i,a,o=e.getFunctionFlags(t),s=0!=(2&o),c=0!=(1&o),u=ze;if(230!==t.body.kind)n=Jh(t.body,r&&-9&r),s&&(n=kb(n,t,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 l=mh(t,r);l?l.length>0&&(n=rl(l,2)):u=Ue;var _=function(t,r){var n=[],i=[],a=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,(function(t){var o,s=t.expression?ib(t.expression,r):Ne;if(e.pushIfUnique(n,dh(t,s,be,a)),t.asteriskToken){var c=Ex(s,a?19:17,t.expression);o=c&&c.nextType}else o=vm(t);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}}(t,r),d=_.yieldTypes,p=_.nextTypes;i=e.some(d)?rl(d,2):void 0,a=e.some(p)?ul(p):void 0}else{var f=mh(t,r);if(!f)return 2&o?uh(t,Ue):Ue;if(0===f.length)return 2&o?uh(t,ze):ze;n=rl(f,2)}if(n||i||a){if(i&&Kp(t,i,3),n&&Kp(t,n,1),a&&Kp(t,a,2),n&&sp(n)||i&&sp(i)||a&&sp(a)){var g=Tm(t),m=g?g===Nc(t)?c?void 0:n:mm(Mc(g),t):void 0;c?(i=pp(i,m,0,s),n=pp(n,m,1,s),a=pp(a,m,2,s)):n=function(e,t,r){return e&&sp(e)&&(e=dp(e,t?r?Eb(t):t:void 0)),e}(n,m,s)}i&&(i=Jp(i)),n&&(n=Jp(n)),a&&(a=Jp(a))}return c?_h(i||Ue,n||u,a||tm(2,t)||Ee,s):s?sh(n||u):n||u}function _h(e,t,r,n){var i=n?mr:yr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Ee,t=i.resolveIterationType(t,void 0)||Ee,r=i.resolveIterationType(r,void 0)||Ee,a===it){var o=i.getGlobalIterableIteratorType(!1),s=o!==it?Fx(o,i):void 0,c=s?s.returnType:be,u=s?s.nextType:ke;return id(t,c)&&id(u,r)?o!==it?wu(o,[e]):(i.getGlobalIterableIteratorType(!0),et):(i.getGlobalGeneratorType(!0),et)}return wu(a,[e,t,r])}function dh(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?hx(i?19:17,r,n,a):r;return i?Nb(o,a,t.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 ph(e,t,r,n){var i=0;if(n){for(var a=t;a<r.length;a++)i|=x.get(r[a])||32768;for(a=e;a<t;a++)i&=~(x.get(r[a])||0);for(a=0;a<e;a++)i|=x.get(r[a])||32768}else{for(a=e;a<t;a++)i|=b.get(r[a])||128;for(a=0;a<e;a++)i&=~(b.get(r[a])||0)}return i}function fh(t){var r=Tn(t);return void 0!==r.isExhaustive?r.isExhaustive:r.isExhaustive=function(t){if(211===t.expression.kind){var r=tb(t.expression.expression),n=ph(0,0,rg(t,!1),!0),i=Gs(r)||r;return 3&i.flags?556800==(556800&n):!!(131072&og(i,(function(e){return(Jf(e)&n)===n})).flags)}var a=tb(t.expression);if(!cp(a))return!1;var o=tg(t);if(!o.length||e.some(o,op))return!1;return s=cg(a,__),c=o,1048576&s.flags?!e.forEach(s.types,(function(t){return!e.contains(c,t)})):e.contains(c,s);var s,c}(t)}function gh(e){return e.endFlowNode&&Eg(e.endFlowNode)}function mh(t,r){var n=e.getFunctionFlags(t),i=[],a=gh(t),o=!1;if(e.forEachReturnStatement(t.body,(function(s){var c=s.expression;if(c){var u=Jh(c,r&&-9&r);2&n&&(u=kb(u,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),131072&u.flags&&(o=!0),e.pushIfUnique(i,u)}else a=!0})),0!==i.length||a||!o&&!function(e){switch(e.kind){case 208:case 209:return!0;case 165:return 200===e.parent.kind;default:return!1}}(t))return!(K&&i.length&&a)||Av(t)&&i.some((function(e){return e.symbol===t.symbol}))||e.pushIfUnique(i,ke),i}function yh(t,n){if(r){var i=e.getFunctionFlags(t),a=n&&qx(n,i);if((!a||!Eh(a,16385))&&164!==t.kind&&!e.nodeIsMissing(t.body)&&230===t.body.kind&&gh(t)){var o=512&t.flags;if(a&&131072&a.flags)cn(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(a&&!o)cn(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(a&&K&&!id(ke,a))cn(e.getEffectiveReturnTypeNode(t)||t,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(J.noImplicitReturns){if(!a){if(!o)return;if(Wx(t,Mc(Nc(t))))return}cn(e.getEffectiveReturnTypeNode(t)||t,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function vh(t,r){if(e.Debug.assert(165!==t.kind||e.isObjectLiteralMethod(t)),SD(t),r&&4&r&&G_(t)){if(!e.getEffectiveReturnTypeNode(t)&&!Q_(t)){var n=Cm(t);if(n&&ef(Mc(n))){var i=Tn(t);if(i.contextFreeType)return i.contextFreeType;var a=lh(t,r),o=ss(void 0,void 0,void 0,e.emptyArray,a,void 0,0,0),s=Vi(t.symbol,T,[o],e.emptyArray,void 0,void 0);return s.objectFlags|=2097152,i.contextFreeType=s}}return at}return PS(t)||208!==t.kind||RS(t),function(t,r){var n=Tn(t);if(!(1024&n.flags)){var i=Cm(t);if(!(1024&n.flags)){n.flags|=1024;var a=e.firstOrUndefined(pc(_o(Ci(t)),0));if(!a)return;if(G_(t))if(i){var o=hm(t);r&&2&r&&function(t,r,n){for(var i=t.parameters.length-(B(t)?1:0),a=0;a<i;a++){var o=t.parameters[a].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&ff(n.inferences,v_(s),Gv(r,a))}}var c=eh(r);if(c&&262144&c.flags){ih(t,O_(r,n.nonFixingMapper));var u=Yv(r)-1;ff(n.inferences,Qv(t,u),c)}}(a,i,o),ih(a,o?O_(i,o.mapper):i)}else!function(e){e.thisParameter&&ah(e.thisParameter);for(var t=0,r=e.parameters;t<r.length;t++)ah(r[t])}(a);if(i&&!Lc(t)&&!a.resolvedReturnType){var s=lh(t,r);a.resolvedReturnType||(a.resolvedReturnType=s)}cb(t)}}}(t,r),_o(Ci(t))}function hh(e,t,r,n){if(void 0===n&&(n=!1),!id(t,Qe)){var i=n&&Cb(t);return _n(e,!!i&&id(i,Qe),r),!1}return!0}function bh(t){if(!e.isCallExpression(t))return!1;if(!e.isBindableObjectDefinePropertyCall(t))return!1;var r=Jh(t.arguments[2]);if(Ea(r,"value")){var n=_c(r,"writable"),i=n&&_o(n);if(!i||i===Me||i===Le)return!0;if(n&&n.valueDeclaration&&e.isPropertyAssignment(n.valueDeclaration)){var a=ib(n.valueDeclaration.initializer);if(a===Me||a===Le)return!0}return!1}return!_c(r,"set")}function xh(t){return!!(8&e.getCheckFlags(t)||4&t.flags&&64&e.getDeclarationModifierFlagsFromSymbol(t)||3&t.flags&&2&ay(t)||98304&t.flags&&!(65536&t.flags)||8&t.flags||e.some(t.declarations,bh))}function Dh(t,r,n){var i,a;if(0===n)return!1;if(xh(r)){if(4&r.flags&&e.isAccessExpression(t)&&107===t.expression.kind){var o=e.getContainingFunction(t);if(!o||166!==o.kind&&!Av(o))return!0;if(r.valueDeclaration){var s=e.isBinaryExpression(r.valueDeclaration),c=o.parent===r.valueDeclaration.parent,u=o===r.valueDeclaration.parent,l=s&&(null===(i=r.parent)||void 0===i?void 0:i.valueDeclaration)===o.parent,_=s&&(null===(a=r.parent)||void 0===a?void 0:a.valueDeclaration)===o;return!(c||u||l||_)}}return!0}if(e.isAccessExpression(t)){var d=e.skipParentheses(t.expression);if(78===d.kind){var p=Tn(d).resolvedSymbol;if(2097152&p.flags){var f=Jn(p);return!!f&&263===f.kind}}}return!1}function Sh(t,r,n){var i=e.skipOuterExpressions(t,7);return 78===i.kind||e.isAccessExpression(i)?!(32&i.flags)||(cn(t,n),!1):(cn(t,r),!1)}function Th(t){ib(t.expression);var r=e.skipParentheses(t.expression);if(!e.isAccessExpression(r))return cn(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),je;e.isPropertyAccessExpression(r)&&e.isPrivateIdentifier(r.name)&&cn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var n=Pi(Tn(r).resolvedSymbol);return n&&(xh(n)&&cn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),function(t,r){var n=131075;!K||r.flags&n||32768&xp(r)||cn(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}(r,_o(n))),je}function Ch(e){return Eh(e,2112)?kh(e,3)||Eh(e,296)?Qe:Oe:Ie}function Eh(e,t){if(e.flags&t)return!0;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++){if(Eh(n[r],t))return!0}return!1}function kh(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&id(e,Ie)||!!(2112&t)&&id(e,Oe)||!!(402653316&t)&&id(e,we)||!!(528&t)&&id(e,je)||!!(16384&t)&&id(e,ze)||!!(131072&t)&&id(e,Ue)||!!(65536&t)&&id(e,Fe)||!!(32768&t)&&id(e,ke)||!!(4096&t)&&id(e,Je)||!!(67108864&t)&&id(e,He))}function Nh(t,r,n){return 1048576&t.flags?e.every(t.types,(function(e){return Nh(e,r,n)})):kh(t,r,n)}function Ah(t){return!!(16&e.getObjectFlags(t))&&!!t.symbol&&Fh(t.symbol)}function Fh(e){return 0!=(128&e.flags)}function Ph(t,r,n,i,a){void 0===a&&(a=!1);var o=t.properties,s=o[n];if(288===s.kind||289===s.kind){var c=s.name,u=gl(c);if(Xo(u)){var l=_c(r,es(u));l&&(Iy(l,s,a),sy(s,!1,r,l))}var _=Fa(s,Bl(r,u,void 0,c,void 0,void 0,16));return Ih(289===s.kind?s:s.initializer,_)}if(290===s.kind){if(!(n<o.length-1)){z<99&&TS(s,4);var d=[];if(i)for(var p=0,f=i;p<f.length;p++){var g=f[p];e.isSpreadAssignment(g)||d.push(g.name)}_=Aa(r,d,r.symbol);return NS(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Ih(s.expression,_)}cn(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else cn(s,e.Diagnostics.Property_assignment_expected)}function wh(t,r,n,i,a){var o=t.elements,s=o[n];if(222!==s.kind){if(220!==s.kind){var c=p_(n);if(rp(r)){var u=16|(Em(s)?8:0),l=Jl(r,c,void 0,ov(s,c),u)||Se;return Ih(s,Fa(s,Em(s)?zf(l,524288):l),a)}return Ih(s,i,a)}if(n<o.length-1)cn(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var _=s.expression;if(216!==_.kind||62!==_.operatorToken.kind)return NS(t.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Ih(_,ag(r,fp)?cg(r,(function(e){return qu(e,n)})):Ou(i),a);cn(_.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function Ih(t,r,n,i){var a;if(289===t.kind){var o=t;o.objectAssignmentInitializer&&(!K||32768&xp(ib(o.objectAssignmentInitializer))||(r=zf(r,524288)),function(e,t,r,n,i){var a,o=t.kind;if(62===o&&(200===e.kind||199===e.kind))return Ih(e,ib(r,n),n,107===r.kind);a=55===o||56===o||60===o?gx(e,n):ib(e,n);var s=ib(r,n);Bh(e,t,r,a,s,i)}(o.name,o.equalsToken,o.objectAssignmentInitializer,n)),a=t.name}else a=t;return 216===a.kind&&62===a.operatorToken.kind&&(Lh(a,n),a=a.left),200===a.kind?function(e,t,r){var n=e.properties;if(K&&0===n.length)return gy(t,e);for(var i=0;i<n.length;i++)Ph(e,t,i,n,r);return t}(a,r,i):199===a.kind?function(e,t,r){var n=e.elements;z<2&&J.downlevelIteration&&TS(e,512);for(var i=hx(193,t,ke,e)||Se,a=J.noUncheckedIndexedAccess?void 0:i,o=0;o<n.length;o++){var s=i;220===e.elements[o].kind&&(s=a=null!=a?a:hx(65,t,ke,e)||Se),wh(e,t,o,s,r)}return t}(a,r,n):function(t,r,n){var i=ib(t,n),a=290===t.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,o=290===t.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;Sh(t,a,o)&&ud(r,i,t,t);e.isPrivateIdentifierPropertyAccessExpression(t)&&TS(t.parent,1048576);return r}(a,r,n)}function Oh(t){switch((t=e.skipParentheses(t)).kind){case 78:case 10:case 13:case 205:case 218:case 14:case 8:case 9:case 109:case 94:case 103:case 150:case 208:case 221:case 209:case 199:case 200:case 211:case 225:case 274:case 273:return!0;case 217:return Oh(t.whenTrue)&&Oh(t.whenFalse);case 216:return!e.isAssignmentOperator(t.operatorToken.kind)&&(Oh(t.left)&&Oh(t.right));case 214:case 215:switch(t.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 212:case 206:case 224:default:return!1}}function Mh(e,t){return 0!=(98304&t.flags)||od(e,t)}function Lh(t,r){for(var n,i={expr:[t],state:[0],leftType:[void 0]},a=0;a>=0;)switch(t=i.expr[a],i.state[a]){case 0:if(e.isInJSFile(t)&&e.getAssignedExpandoInitializer(t)){l(ib(t.right,r));break}if(Rh(t),62===(o=t.operatorToken.kind)&&(200===t.left.kind||199===t.left.kind)){l(Ih(t.left,ib(t.right,r),r,107===t.right.kind));break}_(1),d(t.left);break;case 1:var o,s=n;if(i.leftType[a]=s,55===(o=t.operatorToken.kind)||56===o||60===o){if(55===o){var c=e.walkUpParenthesizedExpressions(t.parent);px(t.left,s,e.isIfStatement(c)?c.thenStatement:void 0)}fx(s,t.left)}_(2),d(t.right);break;case 2:s=i.leftType[a];var u=n;l(Bh(t.left,t.operatorToken,t.right,s,u,t));break;default:return e.Debug.fail("Invalid state "+i.state[a]+" for checkBinaryExpression")}return n;function l(e){n=e,a--}function _(e){i.state[a]=e}function d(t){e.isBinaryExpression(t)?(a++,i.expr[a]=t,i.state[a]=0,i.leftType[a]=void 0):n=ib(t,r)}}function Rh(t){var r=t.left,n=t.operatorToken,i=t.right;60===n.kind&&(!e.isBinaryExpression(r)||56!==r.operatorToken.kind&&55!==r.operatorToken.kind||$S(r,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(r.operatorToken.kind),e.tokenToString(n.kind)),!e.isBinaryExpression(i)||56!==i.operatorToken.kind&&55!==i.operatorToken.kind||$S(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(n.kind)))}function Bh(t,n,i,a,o,s){var c,u,l=n.kind;switch(l){case 41:case 42:case 65:case 66:case 43:case 67:case 44:case 68:case 40:case 64:case 47:case 69:case 48:case 70:case 49:case 71:case 51:case 73:case 52:case 77:case 50:case 72:if(a===Ve||o===Ve)return Ve;a=gy(a,t),o=gy(o,i);var _=void 0;if(528&a.flags&&528&o.flags&&void 0!==(_=function(e){switch(e){case 51:case 73:return 56;case 52:case 77:return 37;case 50:case 72:return 55;default:return}}(n.kind)))return cn(s||n,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(n.kind),e.tokenToString(_)),Ie;var d,p=hh(t,a,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),f=hh(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(kh(a,3)&&kh(o,3)||!Eh(a,2112)&&!Eh(o,2112))d=Ie;else if(T(a,o)){switch(l){case 49:case 71:N();break;case 42:case 66:z<3&&cn(s,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}d=Oe}else N(T),d=Se;return p&&f&&E(d),d;case 39:case 63:if(a===Ve||o===Ve)return Ve;kh(a,402653316)||kh(o,402653316)||(a=gy(a,t),o=gy(o,i));var g=void 0;if(kh(a,296,!0)&&kh(o,296,!0)?g=Ie:kh(a,2112,!0)&&kh(o,2112,!0)?g=Oe:kh(a,402653316,!0)||kh(o,402653316,!0)?g=we:(ka(a)||ka(o))&&(g=a===Se||o===Se?Se:be),g&&!C(l))return g;if(!g){var m=402655727;return N((function(e,t){return kh(e,m)&&kh(t,m)})),be}return 63===l&&E(g),g;case 29:case 31:case 32:case 33:return C(l)&&(a=up(gy(a,t)),o=up(gy(o,i)),k((function(e,t){return od(e,t)||od(t,e)||id(e,Qe)&&id(t,Qe)}))),je;case 34:case 35:case 36:case 37:return k((function(e,t){return Mh(e,t)||Mh(t,e)})),je;case 101:return function(t,r,n,i){return n===Ve||i===Ve?Ve:(!ka(n)&&Nh(n,131068)&&cn(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),ka(i)||VD(i)||nd(i,mt)||cn(r,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),je)}(t,i,a,o);case 100:return function(t,r,n,i){if(n===Ve||i===Ve)return Ve;n=gy(n,t),i=gy(i,r),Nh(n,402665900)||kh(n,407109632)||cn(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol);var a=Us(i);return(!Nh(i,126091264)||a&&(kh(i,3145728)&&!Nh(a,126091264)||!Eh(a,126615552)))&&cn(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),je}(t,i,a,o);case 55:case 75:var y=4194304&Jf(a)?rl([(u=K?a:up(o),cg(u,Sp)),o]):a;return 75===l&&E(o),y;case 56:case 74:var v=8388608&Jf(a)?rl([Dp(a),o],2):a;return 74===l&&E(o),v;case 60:case 76:var h=262144&Jf(a)?rl([Ep(a),o],2):a;return 76===l&&E(o),h;case 62:var b=e.isBinaryExpression(t.parent)?e.getAssignmentDeclarationKind(t.parent):0;return function(t,r){if(2===t)for(var n=0,i=Bs(r);n<i.length;n++){var a=i[n],o=_o(a);if(o.symbol&&32&o.symbol.flags){var s=a.escapedName,c=An(a.valueDeclaration,s,788968,void 0,s,!1);c&&c.declarations.some(e.isJSDocTypedefTag)&&(hn(c,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),a),hn(a,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),c))}}}(b,o),function(r){var n;switch(r){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var a=Ci(t),o=e.getAssignedExpandoInitializer(i);return!!o&&e.isObjectLiteralExpression(o)&&!!(null===(n=null==a?void 0:a.exports)||void 0===n?void 0:n.size);default:return!1}}(b)?(524288&o.flags&&(2===b||6===b||Dd(o)||jf(o)||1&e.getObjectFlags(o))||E(o),a):(E(o),Op(o));case 27:if(!J.allowUnreachableCode&&Oh(t)&&(78!==(c=i).kind||"eval"!==c.escapedText)){var x=e.getSourceFileOfNode(t),D=x.text,S=e.skipTrivia(D,t.pos);x.parseDiagnostics.some((function(t){return t.code===e.Diagnostics.JSX_expressions_must_have_one_parent_element.code&&e.textSpanContainsPosition(t,S)}))||cn(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return o;default:return e.Debug.fail()}function T(e,t){return kh(e,2112)&&kh(t,2112)}function C(r){var n=Eh(a,12288)?t:Eh(o,12288)?i:void 0;return!n||(cn(n,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r)),!1)}function E(n){r&&e.isAssignmentOperator(l)&&(!Sh(t,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(t)&&"exports"===e.unescapeLeadingUnderscores(t.escapedText)||ud(n,a,t,i))}function k(e){return!e(a,o)&&(N(e),!0)}function N(t){var r,i=!1,c=s||n;if(t){var u=Nb(a),l=Nb(o);i=!(u===a&&l===o)&&!(!u||!l)&&t(u,l)}var _=a,d=o;!i&&t&&(r=function(e,t,r){var n=e,i=t,a=up(e),o=up(t);r(a,o)||(n=a,i=o);return[n,i]}(a,o,t),_=r[0],d=r[1]);var p=ca(_,d),f=p[0],g=p[1];(function(t,r,i,a){var o;switch(n.kind){case 36:case 34:o="false";break;case 37:case 35:o="true"}if(o)return _n(t,r,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,o,i,a);return})(c,i,f,g)||_n(c,i,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(n.kind),f,g)}}function jh(t,r,n,i){var a=function(t){return 281!==t.kind||e.isJsxSelfClosingElement(t.parent)?t:t.parent.parent}(t),o=a.contextualType,s=a.inferenceContext;try{a.contextualType=r,a.inferenceContext=n;var c=ib(t,1|i|(n?2:0));return Eh(c,2944)&&Kh(c,mm(r,t))?__(c):c}finally{a.contextualType=o,a.inferenceContext=s}}function Jh(e,t){var r=Tn(e);if(!r.resolvedType){if(t&&0!==t)return ib(e,t);var n=xr,i=er;xr=Dr,er=void 0,r.resolvedType=ib(e,t),er=i,xr=n}return r.resolvedType}function zh(t){return 206===(t=e.skipParentheses(t)).kind||224===t.kind}function Uh(t,r){var n=e.getEffectiveInitializer(t),i=rb(n)||(r?jh(n,r,void 0,0):Jh(n));return e.isParameter(t)&&197===t.name.kind&&fp(i)&&!i.target.hasRestElement&&ou(i)<t.name.elements.length?function(t,r){for(var n=r.elements,i=au(t).slice(),a=t.target.elementFlags.slice(),o=ou(t);o<n.length;o++){var s=n[o];(o<n.length-1||198!==s.kind||!s.dotDotDotToken)&&(i.push(!e.isOmittedExpression(s)&&Em(s)?Ga(s,!1,!1):be),a.push(2),e.isOmittedExpression(s)||Em(s)||Vp(s,be))}return zu(i,a,t.target.readonly)}(i,t.name):i}function Vh(t,r){var n=2&e.getCombinedNodeFlags(t)||e.isDeclarationReadonly(t)?r:lp(r);if(e.isInJSFile(t)){if(98304&n.flags)return Vp(t,be),be;if(np(n))return Vp(t,Et),Et}return n}function Kh(t,r){if(r){if(3145728&r.flags){var n=r.types;return e.some(n,(function(e){return Kh(t,e)}))}if(58982400&r.flags){var i=Gs(r)||Ee;return Eh(i,4)&&Eh(t,128)||Eh(i,8)&&Eh(t,256)||Eh(i,64)&&Eh(t,2048)||Eh(i,4096)&&Eh(t,8192)||Kh(t,i)}return!!(406847616&r.flags&&Eh(t,128)||256&r.flags&&Eh(t,256)||2048&r.flags&&Eh(t,2048)||512&r.flags&&Eh(t,512)||8192&r.flags&&Eh(t,8192))}return!1}function qh(t){var r=t.parent;return e.isAssertionExpression(r)&&e.isConstTypeReference(r.type)||(e.isParenthesizedExpression(r)||e.isArrayLiteralExpression(r)||e.isSpreadElement(r))&&qh(r)||(e.isPropertyAssignment(r)||e.isShorthandPropertyAssignment(r)||e.isTemplateSpan(r))&&qh(r.parent)}function Wh(e,t,r,n){var i=ib(e,t,n);return qh(e)?__(i):zh(e)?i:dp(i,mm(2===arguments.length?vm(e):r,e))}function Hh(e,t){return 158===e.name.kind&&wm(e.name),Wh(e.initializer,t)}function Gh(e,t){return VS(e),158===e.name.kind&&wm(e.name),Xh(e,vh(e,t),t)}function Xh(t,r,n){if(n&&10&n){var i=Qy(r,0,!0),a=Qy(r,1,!0),o=i||a;if(o&&o.typeParameters){var s=gm(t,2);if(s){var c=Qy(Ep(s),i?0:1,!1);if(c&&!c.typeParameters){if(8&n)return Qh(t,n),at;var u=hm(t),l=u.signature&&Mc(u.signature),_=l&&Xy(l);if(_&&!_.typeParameters&&!e.every(u.inferences,Yh)){var d=function(t,r){for(var n,i,a=[],o=0,s=r;o<s.length;o++){var c=(p=s[o]).symbol.escapedName;if(Zh(t.inferredTypeParameters,c)||Zh(a,c)){var u=ji(fn(262144,$h(e.concatenate(t.inferredTypeParameters,a),c)));u.target=p,n=e.append(n,p),i=e.append(i,u),a.push(u)}else a.push(p)}if(i)for(var l=S_(n,i),_=0,d=i;_<d.length;_++){var p;(p=d[_]).mapper=l}return a}(u,o.typeParameters),p=Jc(o,d),f=e.map(u.inferences,(function(e){return Yp(e.typeParameter)}));if(qp(p,c,(function(e,t){ff(f,e,t,0,!0)})),e.some(f,Yh)&&(Wp(p,c,(function(e,t){ff(f,e,t)})),!function(e,t){for(var r=0;r<e.length;r++)if(Yh(e[r])&&Yh(t[r]))return!0;return!1}(u.inferences,f)))return function(e,t){for(var r=0;r<e.length;r++)!Yh(e[r])&&Yh(t[r])&&(e[r]=t[r])}(u.inferences,f),u.inferredTypeParameters=e.concatenate(u.inferredTypeParameters,d),qc(p)}return qc(Yy(o,c,u))}}}}return r}function Qh(e,t){2&t&&(hm(e).flags|=4)}function Yh(e){return!(!e.candidates&&!e.contraCandidates)}function Zh(t,r){return e.some(t,(function(e){return e.symbol.escapedName===r}))}function $h(e,t){for(var r=t.length;r>1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!Zh(e,a))return a}}function eb(e){var t=Gy(e);if(t&&!t.typeParameters)return Mc(t)}function tb(t){var r=rb(t);if(r)return r;if(67108864&t.flags&&er){var n=er[P(t)];if(n)return n}var i=Cr,a=ib(t);Cr!==i&&((er||(er=[]))[P(t)]=a,e.setNodeFlags(t,67108864|t.flags));return a}function rb(t){var r=e.skipParentheses(t);if(!e.isCallExpression(r)||105===r.expression.kind||e.isRequireCall(r,!0)||Ov(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return v_(r.type);if(8===t.kind||10===t.kind||109===t.kind||94===t.kind)return ib(t)}else{var n=e.isCallChain(r)?function(e){var t=ib(e.expression),r=Pp(t,e.expression),n=eb(t);return n&&Fp(n,e,r!==t)}(r):eb(uy(r.expression));if(n)return n}}function nb(e){var t=Tn(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=be;try{return t.contextFreeType=ib(e,4)}finally{e.contextualType=r}}function ib(t,i,a){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end});var o=c;c=t,h=0;var s=Xh(t,function(t,i,a){var o=t.kind;if(n)switch(o){case 221:case 208:case 209:n.throwIfCancellationRequested()}switch(o){case 78:return Jg(t);case 107:return qg(t);case 105:return Gg(t);case 103:return Pe;case 14:case 10:return l_(p_(t.text));case 8:return rT(t),l_(p_(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&z<7&&$S(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(t),l_(function(t){return p_({negative:!1,base10Value:e.parsePseudoBigInt(t.text)})}(t));case 109:return Re;case 94:return Me;case 218:return function(t){for(var r=[t.head.text],n=[],i=0,a=t.templateSpans;i<a.length;i++){var o=a[i],s=ib(o.expression);Eh(s,12288)&&cn(o.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),r.push(o.literal.text),n.push(id(s,Ye)?s:we)}return qh(t)?xl(r,n):we}(t);case 13:return Tt;case 199:return km(t,i,a);case 200:return Mm(t,i);case 201:return yy(t);case 157:return vy(t);case 202:return Ly(t);case 203:if(99===t.expression.kind)return Mv(t);case 204:return function(t,r){var n;wS(t,t.typeArguments)||IS(t.arguments);var i=Nv(t,void 0,r);if(i===cr)return Ke;if(wv(i,t),105===t.expression.kind)return ze;if(204===t.kind){var a=i.declaration;if(a&&166!==a.kind&&170!==a.kind&&175!==a.kind&&!e.isJSDocConstructSignature(a)&&!Av(a))return G&&cn(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),be}if(e.isInJSFile(t)&&Rv(t))return wc(t.arguments[0]);var o=Mc(i);if(12288&o.flags&&Ov(t))return f_(e.walkUpParenthesizedExpressions(t.parent));if(203===t.kind&&!t.questionDotToken&&233===t.parent.kind&&16384&o.flags&&Oc(i))if(e.isDottedName(t.expression)){if(!Tg(t)){var s=cn(t.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);Sg(t.expression,s)}}else cn(t.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(e.isInJSFile(t)){var c=Pv(t,!1);if(null===(n=null==c?void 0:c.exports)||void 0===n?void 0:n.size){var u=Vi(c,c.exports,e.emptyArray,e.emptyArray,void 0,void 0);return u.objectFlags|=16384,ul([o,u])}}return o}(t,i);case 205:return Bv(t);case 207:return function(t,r){var n=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0;if(n)return Jv(n,n.typeExpression.type,t.expression,r);return ib(t.expression,r)}(t,i);case 221:return function(e){return $x(e),SD(e),_o(Ci(e))}(t);case 208:case 209:return vh(t,i);case 211:return function(e){return ib(e.expression),Yr}(t);case 206:case 224:return function(e){return Jv(e,e.type,e.expression)}(t);case 225:return zv(t);case 226:return Uv(t);case 210:return Th(t);case 212:return function(e){return ib(e.expression),Ne}(t);case 213:return function(t){if(r){var n;if(!(32768&t.flags))if(e.isInTopLevelContext(t)){if(!QS(n=e.getSourceFileOfNode(t))){var i=void 0;if(!e.isEffectiveExternalModule(n,J)){i||(i=e.getSpanOfTokenAtPosition(n,t.pos));var a=e.createFileDiagnostic(n,i.start,i.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);Gr.add(a)}(U!==e.ModuleKind.ESNext&&U!==e.ModuleKind.System||z<4)&&(i=e.getSpanOfTokenAtPosition(n,t.pos),a=e.createFileDiagnostic(n,i.start,i.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),Gr.add(a))}}else if(!QS(n=e.getSourceFileOfNode(t))){i=e.getSpanOfTokenAtPosition(n,t.pos),a=e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);var o=e.getContainingFunction(t);if(o&&166!==o.kind&&0==(2&e.getFunctionFlags(o))){var s=e.createDiagnosticForNode(o,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(a,s)}Gr.add(a)}em(t)&&cn(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var c=ib(t.expression),u=kb(c,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return u!==c||u===Se||3&c.flags||un(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),u}(t);case 214:return function(t){var r=ib(t.operand);if(r===Ve)return Ve;switch(t.operand.kind){case 8:switch(t.operator){case 40:return l_(p_(-t.operand.text));case 39:return l_(p_(+t.operand.text))}break;case 9:if(40===t.operator)return l_(p_({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return gy(r,t.operand),Eh(r,12288)&&cn(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(Eh(r,2112)&&cn(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),sa(up(r))),Ie):Ch(r);case 53:gx(t.operand);var n=12582912&Jf(r);return 4194304===n?Me:8388608===n?Re:je;case 45:case 46:return hh(t.operand,gy(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Sh(t.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),Ch(r)}return Se}(t);case 215:return function(t){var r=ib(t.operand);return r===Ve?Ve:(hh(t.operand,gy(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Sh(t.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),Ch(r))}(t);case 216:return Lh(t,i);case 217:return function(e,t){var r=gx(e.condition);return px(e.condition,r,e.whenTrue),rl([ib(e.whenTrue,t),ib(e.whenFalse,t)],2)}(t,i);case 220:return function(e,t){return z<2&&TS(e,J.downlevelIteration?1536:1024),hx(33,ib(e.expression,t),ke,e.expression)}(t,i);case 222:return Ne;case 219:return function(t){r&&(8192&t.flags||YS(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),em(t)&&cn(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var n=e.getContainingFunction(t);if(!n)return be;var i=e.getFunctionFlags(n);if(!(1&i))return be;var a=0!=(2&i);t.asteriskToken&&(a&&z<99&&TS(t,26624),!a&&z<2&&J.downlevelIteration&&TS(t,256));var o=Lc(n),s=o&&Vx(o,a),c=s&&s.yieldType||be,u=s&&s.nextType||be,l=a?Nb(u)||be:u,_=t.expression?ib(t.expression):Ne,d=dh(t,_,l,a);if(o&&d&&ud(d,c,t.expression||t,t.expression),t.asteriskToken)return xx(a?19:17,1,_,t.expression)||be;if(o)return Ux(2,o,a)||be;var p=tm(2,n);if(!p&&(p=be,r&&G&&!e.expressionResultIsUnused(t))){var f=vm(t);f&&!ka(f)||cn(t,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return p}(t);case 227:return function(e){return e.isSpread?Bl(e.type,Ie):e.type}(t);case 283:return iy(t,i);case 273:case 274:return function(e,t){return SD(e),$m(e)||be}(t);case 277:return function(t){ty(t.openingFragment);var r=e.getSourceFileOfNode(t);return!e.getJSXTransformEnabled(J)||!J.jsxFactory&&!r.pragmas.has("jsx")||J.jsxFragmentFactory||r.pragmas.has("jsxfrag")||cn(t,J.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),Jm(t),$m(t)||be}(t);case 281:return Um(t,i);case 275:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Se}(t,i,a),i);return Ah(s)&&function(t,r){201===t.parent.kind&&t.parent.expression===t||202===t.parent.kind&&t.parent.expression===t||(78===t.kind||157===t.kind)&&OD(t)||176===t.parent.kind&&t.parent.exprName===t||270===t.parent.kind||cn(t,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);if(J.isolatedModules){e.Debug.assert(!!(128&r.symbol.flags)),8388608&r.symbol.valueDeclaration.flags&&cn(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(t,s),c=o,null===e.tracing||void 0===e.tracing||e.tracing.pop(),s}function ab(t){t.expression&&YS(t.expression,e.Diagnostics.Type_expected),xD(t.constraint),xD(t.default);var n=Bo(Ci(t));Gs(n),function(e){return Zs(e)!==st}(n)||cn(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,sa(n));var i=Vs(n),a=$s(n);i&&a&&cd(a,as(V_(i,C_(n,a)),a),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),r&&Xx(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function ob(t){ES(t),sx(t);var r=e.getContainingFunction(t);e.hasSyntacticModifier(t,92)&&(166===r.kind&&e.nodeIsPresent(r.body)||cn(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),166===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&cn(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&cn(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==r.parameters.indexOf(t)&&cn(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),166!==r.kind&&170!==r.kind&&175!==r.kind||cn(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),209===r.kind&&cn(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),167!==r.kind&&168!==r.kind||cn(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||id(oc(_o(t.symbol)),Nt)||cn(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function sb(t,r,n){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){var s=o.name;if(78===s.kind&&s.escapedText===n)return cn(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((197===s.kind||196===s.kind)&&sb(s,r,n))return!0}}}function cb(t){171===t.kind?function(t){ES(t)||function(t){var r=t.parameters[0];if(1!==t.parameters.length)return $S(r?r.name:t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(NS(t.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),r.dotDotDotToken)return $S(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(r))return $S(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(r.questionToken)return $S(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(r.initializer)return $S(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!r.type)return $S(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(147!==r.type.kind&&144!==r.type.kind){var n=v_(r.type);return 4&n.flags||8&n.flags?$S(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,e.getTextOfNode(r.name),sa(n),sa(t.type?v_(t.type):be)):1048576&n.flags&&Nh(n,384,!0)?$S(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):$S(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_either_string_or_number)}if(!t.type)return $S(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}(t)}(t):174!==t.kind&&251!==t.kind&&175!==t.kind&&169!==t.kind&&166!==t.kind&&170!==t.kind||PS(t);var n=e.getFunctionFlags(t);if(4&n||(3==(3&n)&&z<99&&TS(t,6144),2==(3&n)&&z<4&&TS(t,64),0!=(3&n)&&z<2&&TS(t,128)),Qx(t.typeParameters),e.forEach(t.parameters,ob),t.type&&xD(t.type),r){!function(t){if(z>=2||!e.hasRestParameter(t)||8388608&t.flags||e.nodeIsMissing(t.body))return;e.forEach(t.parameters,(function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===ie.escapedName&&sn("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(t);var i=e.getEffectiveReturnTypeNode(t);if(G&&!i)switch(t.kind){case 170:cn(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 169:cn(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(i){var a=e.getFunctionFlags(t);if(1==(5&a)){var o=v_(i);if(o===ze)cn(i,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=Ux(0,o,0!=(2&a))||be;cd(_h(s,Ux(1,o,0!=(2&a))||s,Ux(2,o,0!=(2&a))||Ee,!!(2&a)),o,i)}}else 2==(3&a)&&function(t,r){var n=v_(r);if(z>=2){if(n===Se)return;var i=Nu(!0);if(i!==it&&!po(n,i))return void cn(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,sa(Nb(n)||ze))}else{if(function(t){Pb(t&&e.getEntityNameFromTypeNode(t))}(r),n===Se)return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void cn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,sa(n));var o=ui(a,111551,!0),s=o?_o(o):Se;if(s===Se)return void(78===a.kind&&"Promise"===a.escapedText&&fo(n)===Nu(!1)?cn(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):cn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)));var c=(_=!0,Lt||(Lt=Cu("PromiseConstructorLike",0,_))||et);if(c===et)return void cn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));if(!cd(s,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var u=a&&e.getFirstIdentifier(a),l=En(t.locals,u.escapedText,111551);if(l)return void cn(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a))}var _;kb(n,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t,i)}171!==t.kind&&308!==t.kind&&jb(t)}}function ub(t){for(var r=new e.Map,n=0,i=t.members;n<i.length;n++){var a=i[n];if(162===a.kind){var o=void 0,s=a.name;switch(s.kind){case 10:case 8:o=s.text;break;case 78:o=e.idText(s);break;default:continue}r.get(o)?(cn(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),cn(a.name,e.Diagnostics.Duplicate_identifier_0,o)):r.set(o,!0)}}}function lb(t){if(253===t.kind){var r=Ci(t);if(r.declarations.length>0&&r.declarations[0]!==t)return}var n=Wc(Ci(t));if(n)for(var i=!1,a=!1,o=0,s=n.declarations;o<s.length;o++){var c=s[o];if(1===c.parameters.length&&c.parameters[0].type)switch(c.parameters[0].type.kind){case 147:a?cn(c,e.Diagnostics.Duplicate_string_index_signature):a=!0;break;case 144:i?cn(c,e.Diagnostics.Duplicate_number_index_signature):i=!0}}}function _b(t){if(ES(t)||function(t){if(e.isClassLike(t.parent)){if(e.isStringLiteral(t.name)&&"constructor"===t.name.text)return $S(t.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(US(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(z<2&&e.isPrivateIdentifier(t.name))return $S(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(253===t.parent.kind){if(US(t.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(t.initializer)return $S(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(177===t.parent.kind){if(US(t.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(t.initializer)return $S(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}8388608&t.flags&&qS(t);if(e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||8388608&t.flags||e.hasSyntacticModifier(t,160))){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.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 $S(t.exclamationToken,r)}}(t)||LS(t.name),sx(t),e.isPrivateIdentifier(t.name)&&z<99)for(var r=e.getEnclosingBlockScopeContainer(t);r;r=e.getEnclosingBlockScopeContainer(r))Tn(r).flags|=67108864}function db(t){cb(t),function(t){var r=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):void 0,n=t.typeParameters||r&&e.firstOrUndefined(r);if(n){var i=n.pos===n.end?n.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,n.pos);return ZS(t,i,n.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(t)||function(t){var r=e.getEffectiveReturnTypeNode(t);if(r)$S(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),xD(t.body);var n=Ci(t);if(t===e.getDeclarationOfKind(n,t.kind)&&Sb(n),!e.nodeIsMissing(t.body)&&r){var i=t.parent;if(e.getClassExtendsHeritageElement(i)){zg(t.parent,i);var a=Vg(i),o=Ug(t.body);if(o){if(a&&cn(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==J.target||!J.useDefineForClassFields)&&(e.some(t.parent.members,(function(t){return!!e.isPrivateIdentifierPropertyDeclaration(t)||163===t.kind&&!e.hasSyntacticModifier(t,32)&&!!t.initializer}))||e.some(t.parameters,(function(t){return e.hasSyntacticModifier(t,92)})))){for(var s=void 0,c=0,u=t.body.statements;c<u.length;c++){var l=u[c];if(233===l.kind&&e.isSuperCall(l.expression)){s=l;break}if(!e.isPrologueDirective(l))break}s||cn(t,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||cn(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function pb(t){if(r){if(PS(t)||function(t){if(!(8388608&t.flags)){if(z<1)return $S(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(void 0===t.body&&!e.hasSyntacticModifier(t,128))return ZS(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(t.body&&e.hasSyntacticModifier(t,128))return $S(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return $S(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return zS(e)||e.parameters.length===(167===e.kind?0:1)}(t))return $S(t.name,167===t.kind?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(168===t.kind){if(t.type)return $S(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=e.Debug.checkDefined(e.getSetAccessorValueParameter(t),"Return value does not match parameter count assertion.");if(r.dotDotDotToken)return $S(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return $S(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return $S(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(t)||LS(t.name),Lb(t),cb(t),167===t.kind&&!(8388608&t.flags)&&e.nodeIsPresent(t.body)&&256&t.flags&&(512&t.flags||cn(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),158===t.name.kind&&wm(t.name),e.isPrivateIdentifier(t.name)&&cn(t.name,e.Diagnostics.An_accessor_cannot_be_named_with_a_private_identifier),$o(t)){var n=167===t.kind?168:167,i=e.getDeclarationOfKind(Ci(t),n);if(i){var a=e.getEffectiveModifierFlags(t),o=e.getEffectiveModifierFlags(i);(28&a)!=(28&o)&&cn(t.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&a)!=(128&o)&&cn(t.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),fb(t,i,no,e.Diagnostics.get_and_set_accessor_must_have_the_same_type),fb(t,i,io,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var s=ao(Ci(t));167===t.kind&&yh(t,s)}xD(t.body)}function fb(e,t,r,n){var i=r(e),a=r(t);i&&a&&!$_(i,a)&&cn(e,n)}function gb(t,r){return kc(e.map(t.typeArguments,v_),r,Ec(r),e.isInJSFile(t))}function mb(t,r){for(var n,i,a=!0,o=0;o<r.length;o++){var s=Vs(r[o]);s&&(n||(i=S_(r,n=gb(t,r))),a=a&&cd(n[o],V_(s,i),t.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function yb(t){var r=hu(t);if(r!==Se){var n=Tn(t).resolvedSymbol;if(n)return 524288&n.flags&&Sn(n).typeParameters||(4&e.getObjectFlags(r)?r.target.localTypeParameters:void 0)}}function vb(t){wS(t,t.typeArguments),173!==t.kind||void 0===t.typeName.jsdocDotPos||e.isInJSFile(t)||e.isInJSDoc(t)||ZS(t,t.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(t.typeArguments,xD);var n=hu(t);if(n!==Se){if(t.typeArguments&&r){var i=yb(t);i&&mb(t,i)}var a=Tn(t).resolvedSymbol;a&&(e.some(a.declarations,(function(e){return FD(e)&&!!(134217728&e.flags)}))&&pn(Iv(t),a.declarations,a.escapedName),32&n.flags&&8&a.flags&&cn(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,sa(n)))}}function hb(t,r){if(!(8388608&t.flags))return t;var n=t.objectType,i=t.indexType;if(id(i,hl(n,!1)))return 202===r.kind&&e.isAssignmentTarget(r)&&32&e.getObjectFlags(n)&&1&Is(n)&&cn(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,sa(n)),t;var a=tc(n);if(mc(a,1)&&kh(i,296))return t;if(Pl(n)){var o=Cl(i,r);if(o){var s=ig(a,(function(e){return _c(e,o)}));if(s&&24&e.getDeclarationModifierFlagsFromSymbol(s))return cn(r,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(o)),Se}}return cn(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,sa(i),sa(n)),Se}function bb(t){!function(t){if(151===t.operator){if(148!==t.type.kind)return $S(t.type,e.Diagnostics._0_expected,e.tokenToString(148));var r=e.walkUpParenthesizedTypes(t.parent);switch(e.isInJSFile(r)&&e.isJSDocTypeExpression(r)&&(r=r.parent,e.isJSDocTypeTag(r)&&(r=r.parent.parent)),r.kind){case 249:var n=r;if(78!==n.name.kind)return $S(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(n))return $S(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return $S(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 163:if(!e.hasSyntacticModifier(r,32)||!e.hasEffectiveModifier(r,64))return $S(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 162:if(!e.hasSyntacticModifier(r,64))return $S(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:$S(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(142===t.operator&&178!==t.type.kind&&179!==t.type.kind)YS(t,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(148))}(t),xD(t.type)}function xb(t){return(e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierPropertyDeclaration(t))&&!!(8388608&t.flags)}function Db(t,r){var n=e.getCombinedModifierFlags(t);return 253!==t.parent.kind&&252!==t.parent.kind&&221!==t.parent.kind&&8388608&t.flags&&(2&n||e.isModuleBlock(t.parent)&&e.isModuleDeclaration(t.parent.parent)&&e.isGlobalScopeAugmentation(t.parent.parent)||(n|=1),n|=2),n&r}function Sb(t){if(r){for(var n,i,a,o=0,s=155,c=!1,u=!0,l=!1,_=t.declarations,d=0!=(16384&t.flags),p=!1,f=!1,g=!1,m=[],y=0,v=_;y<v.length;y++){var h=v[y],b=8388608&h.flags,x=h.parent&&(253===h.parent.kind||177===h.parent.kind)||b;if(x&&(a=void 0),252!==h.kind&&221!==h.kind||b||(g=!0),251===h.kind||165===h.kind||164===h.kind||166===h.kind){m.push(h);var D=Db(h,155);o|=D,s&=D,c=c||e.hasQuestionToken(h),u=u&&e.hasQuestionToken(h);var S=e.nodeIsPresent(h.body);S&&n?d?f=!0:p=!0:(null==a?void 0:a.parent)===h.parent&&a.end!==h.pos&&F(a),S?n||(n=h):l=!0,a=h,x||(i=h)}}if(f&&e.forEach(m,(function(t){cn(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)})),p&&e.forEach(m,(function(t){cn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Duplicate_function_implementation)})),g&&!d&&16&t.flags&&e.forEach(_,(function(r){bn(r,e.Diagnostics.Duplicate_identifier_0,e.symbolName(t),_)})),!i||i.body||e.hasSyntacticModifier(i,128)||i.questionToken||F(i),l&&(function(t,r,n,i,a){if(0!=(i^a)){var o=Db(A(t,r),n);e.forEach(t,(function(t){var r=Db(t,n)^o;1&r?cn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&r?cn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&r?cn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&r&&cn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}}(_,n,155,o,s),function(t,r,n,i){if(n!==i){var a=e.hasQuestionToken(A(t,r));e.forEach(t,(function(t){e.hasQuestionToken(t)!==a&&cn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)}))}}(_,n,c,u),n))for(var T=Pc(t),C=Nc(n),E=0,k=T;E<k.length;E++){var N=k[E];if(!bd(C,N)){e.addRelatedInfo(cn(N.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(n,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function A(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function F(t){if(!t.name||!e.nodeIsMissing(t.name)){var r=!1,n=e.forEachChild(t.parent,(function(e){if(r)return e;r=e===t}));if(n&&n.pos===t.end&&n.kind===t.kind){var i=n.name||n,a=n.name;if(t.name&&a&&(e.isPrivateIdentifier(t.name)&&e.isPrivateIdentifier(a)&&t.name.escapedText===a.escapedText||e.isComputedPropertyName(t.name)&&e.isComputedPropertyName(a)||e.isPropertyNameLiteral(t.name)&&e.isPropertyNameLiteral(a)&&e.getEscapedTextOfIdentifierOrLiteral(t.name)===e.getEscapedTextOfIdentifierOrLiteral(a))){if((165===t.kind||164===t.kind)&&e.hasSyntacticModifier(t,32)!==e.hasSyntacticModifier(n,32))cn(i,e.hasSyntacticModifier(t,32)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static);return}if(e.nodeIsPresent(n.body))return void cn(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var o=t.name||t;d?cn(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(t,128)?cn(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):cn(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function Tb(t){if(r){var n=t.localSymbol;if((n||(n=Ci(t)).exportSymbol)&&e.getDeclarationOfKind(n,t.kind)===t){for(var i=0,a=0,o=0,s=0,c=n.declarations;s<c.length;s++){var u=y(g=c[s]),l=Db(g,513);1&l?512&l?o|=u:i|=u:a|=u}var _=i&a,d=o&(i|a);if(_||d)for(var p=0,f=n.declarations;p<f.length;p++){u=y(g=f[p]);var g,m=e.getNameOfDeclaration(g);u&d?cn(m,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(m)):u&_&&cn(m,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(m))}}}function y(t){var r=t;switch(r.kind){case 253:case 254:case 331:case 324:case 325:return 2;case 256:return e.isAmbientModule(r)||0!==e.getModuleInstanceState(r)?5:4;case 252:case 255:case 291:return 3;case 297:return 7;case 266:if(!e.isEntityNameExpression(r.expression))return 1;r=r.expression;case 260:case 263:case 262:var n=0,i=ti(Ci(r));return e.forEach(i.declarations,(function(e){n|=y(e)})),n;case 249:case 198:case 251:case 265:case 78:return 1;default:return e.Debug.failBadSyntaxKind(r)}}}function Cb(e,t,r,n){var i=Eb(e,t);return i&&Nb(i,t,r,n)}function Eb(t,r){if(!ka(t)){var n=t;if(n.promisedTypeOfPromise)return n.promisedTypeOfPromise;if(po(t,Nu(!1)))return n.promisedTypeOfPromise=au(t)[0];var i=Ea(t,"then");if(!ka(i)){var a=i?pc(i,0):e.emptyArray;if(0!==a.length){var o=zf(rl(e.map(a,rh)),2097152);if(!ka(o)){var s=pc(o,0);if(0!==s.length)return n.promisedTypeOfPromise=rl(e.map(s,rh),2);r&&cn(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else r&&cn(r,e.Diagnostics.A_promise_must_have_a_then_method)}}}function kb(e,t,r,n){return Nb(e,t,r,n)||Se}function Nb(e,t,r,n){if(ka(e))return e;var i=e;return i.awaitedTypeOfType?i.awaitedTypeOfType:i.awaitedTypeOfType=cg(e,t?function(e){return Ab(e,t,r,n)}:Ab)}function Ab(t,r,n,i){var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;var o=Eb(t);if(o){if(t.id===o.id||Hr.lastIndexOf(o.id)>=0)return void(r&&cn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Hr.push(t.id);var s=Nb(o,r,n,i);if(Hr.pop(),!s)return;return a.awaitedTypeOfType=s}if(!function(e){var t=Ea(e,"then");return!!t&&pc(zf(t,2097152),0).length>0}(t))return a.awaitedTypeOfType=t;if(r){if(!n)return e.Debug.fail();cn(r,n,i)}}function Fb(t){var r=Nv(t);wv(r,t);var n=Mc(r);if(!(1&n.flags)){var i,a,o=Sv(t);switch(t.parent.kind){case 252:i=rl([_o(Ci(t.parent)),ze]);break;case 160:i=ze,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 163:i=ze,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 165:case 167:case 168:i=rl([Iu(RD(t.parent)),ze]);break;default:return e.Debug.fail()}cd(n,i,t,o,(function(){return a}))}}function Pb(t){if(t){var r=e.getFirstIdentifier(t),n=2097152|(78===t.kind?788968:1920),i=An(r,r.escapedText,n,void 0,void 0,!0);i&&2097152&i.flags&&wi(i)&&!eS(ti(i))&&!ii(i)&&oi(i)}}function wb(t){var r=Ib(t);r&&e.isEntityName(r)&&Pb(r)}function Ib(e){if(e)switch(e.kind){case 183:case 182:return Ob(e.types);case 184:return Ob([e.trueType,e.falseType]);case 186:case 192:return Ib(e.type);case 173:return e.typeName}}function Ob(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];186===a.kind||192===a.kind;)a=a.type;if(141!==a.kind&&(K||(191!==a.kind||103!==a.literal.kind)&&150!==a.kind)){var o=Ib(a);if(!o)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return}else r=o}}return r}function Mb(t){var r=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(r):r}function Lb(t){if(t.decorators&&e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){J.experimentalDecorators||cn(t,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var r=t.decorators[0];if(TS(r,8),160===t.kind&&TS(r,32),J.emitDecoratorMetadata)switch(TS(r,16),t.kind){case 252:var n=e.getFirstConstructorWithBody(t);if(n)for(var i=0,a=n.parameters;i<a.length;i++){wb(Mb(a[i]))}break;case 167:case 168:var o=167===t.kind?168:167,s=e.getDeclarationOfKind(Ci(t),o);wb(ro(t)||s&&ro(s));break;case 165:for(var c=0,u=t.parameters;c<u.length;c++){wb(Mb(u[c]))}wb(e.getEffectiveReturnTypeNode(t));break;case 163:wb(e.getEffectiveTypeAnnotationNode(t));break;case 160:wb(Mb(t));for(var l=0,_=t.parent.parameters;l<_.length;l++){wb(Mb(_[l]))}}e.forEach(t.decorators,Fb)}}function Rb(e){switch(e.kind){case 78:return e;case 201:return e.name;default:return}}function Bb(t){Lb(t),cb(t);var n=e.getFunctionFlags(t);if(t.name&&158===t.name.kind&&wm(t.name),$o(t)){var i=Ci(t),a=t.localSymbol||i,o=e.find(a.declarations,(function(e){return e.kind===t.kind&&!(131072&e.flags)}));t===o&&Sb(a),i.parent&&Sb(i)}var s=164===t.kind?void 0:t.body;if(xD(s),yh(t,Lc(t)),r&&!e.getEffectiveReturnTypeNode(t)&&(e.nodeIsMissing(s)&&!xb(t)&&Vp(t,be),1&n&&e.nodeIsPresent(s)&&Mc(Nc(t))),e.isInJSFile(t)){var c=e.getJSDocTypeTag(t);c&&c.typeExpression&&!Dm(v_(c.typeExpression),t)&&cn(c.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function jb(t){if(r){var n=e.getSourceFileOfNode(t),i=br.get(n.path);i||(i=[],br.set(n.path,i)),i.push(t)}}function Jb(t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];switch(a.kind){case 252:case 221:Vb(a,r),qb(a,r);break;case 297:case 256:case 230:case 258:case 237:case 238:case 239:Qb(a,r);break;case 166:case 208:case 251:case 209:case 165:case 167:case 168:a.body&&Qb(a,r),qb(a,r);break;case 164:case 169:case 170:case 174:case 175:case 254:case 253:qb(a,r);break;case 185:Kb(a,r);break;default:e.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function zb(t,r,n){var i=e.getNameOfDeclaration(t)||t,a=FD(t)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;n(t,0,e.createDiagnosticForNode(i,a,r))}function Ub(t){return e.isIdentifier(t)&&95===e.idText(t).charCodeAt(0)}function Vb(t,r){for(var n=0,i=t.members;n<i.length;n++){var a=i[n];switch(a.kind){case 165:case 163:case 167:case 168:if(168===a.kind&&32768&a.symbol.flags)break;var o=Ci(a);o.isReferenced||!(e.hasEffectiveModifier(a,8)||e.isNamedDeclaration(a)&&e.isPrivateIdentifier(a.name))||8388608&a.flags||r(a,0,e.createDiagnosticForNode(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,aa(o)));break;case 166:for(var s=0,c=a.parameters;s<c.length;s++){var u=c[s];!u.symbol.isReferenced&&e.hasSyntacticModifier(u,8)&&r(u,0,e.createDiagnosticForNode(u.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(u.symbol)))}break;case 171:case 229:break;default:e.Debug.fail()}}}function Kb(t,r){var n=t.typeParameter;Wb(n)&&r(t,1,e.createDiagnosticForNode(t,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(n.name)))}function qb(t,r){if(e.last(Ci(t).declarations)===t)for(var n=e.getEffectiveTypeParameterDeclarations(t),i=new e.Set,a=0,o=n;a<o.length;a++){var s=o[a];if(Wb(s)){var c=e.idText(s.name),u=s.parent;if(185!==u.kind&&u.typeParameters.every(Wb)){if(e.tryAddToSet(i,u)){var l=e.getSourceFileOfNode(u),_=e.isJSDocTemplateTag(u)?e.rangeOfNode(u):e.rangeOfTypeParameters(l,u.typeParameters),d=1===u.typeParameters.length,p=d?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,f=d?c:void 0;r(s,1,e.createFileDiagnostic(l,_.pos,_.end-_.pos,p,f))}}else r(s,1,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,c))}}}function Wb(e){return!(262144&Ti(e.symbol).isReferenced||Ub(e.name))}function Hb(e,t,r,n){var i=String(n(t)),a=e.get(i);a?a[1].push(r):e.set(i,[t,[r]])}function Gb(t){return e.tryCast(e.getRootDeclaration(t),e.isParameter)}function Xb(t){return e.isBindingElement(t)?e.isObjectBindingPattern(t.parent)?!(!t.propertyName||!Ub(t.name)):Ub(t.name):e.isAmbientModule(t)||(e.isVariableDeclaration(t)&&e.isForInOrOfStatement(t.parent.parent)||Zb(t))&&Ub(t.name)}function Qb(t,r){var n=new e.Map,i=new e.Map,a=new e.Map;t.locals.forEach((function(t){var o;if(!(262144&t.flags?!(3&t.flags)||3&t.isReferenced:t.isReferenced||t.exportSymbol))for(var s=0,c=t.declarations;s<c.length;s++){var u=c[s];if(!Xb(u))if(Zb(u))Hb(n,262===(o=u).kind?o:263===o.kind?o.parent:o.parent.parent,u,P);else if(e.isBindingElement(u)&&e.isObjectBindingPattern(u.parent)){u!==e.last(u.parent.elements)&&e.last(u.parent.elements).dotDotDotToken||Hb(i,u.parent,u,P)}else if(e.isVariableDeclaration(u))Hb(a,u.parent,u,P);else{var l=t.valueDeclaration&&Gb(t.valueDeclaration),_=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);l&&_?e.isParameterPropertyDeclaration(l,l.parent)||e.parameterIsThisKeyword(l)||Ub(_)||(e.isBindingElement(u)&&e.isArrayBindingPattern(u.parent)?Hb(i,u.parent,u,P):r(l,1,e.createDiagnosticForNode(_,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(t)))):zb(u,e.symbolName(t),r)}}})),n.forEach((function(t){var n=t[0],i=t[1],a=n.parent;if((n.name?1:0)+(n.namedBindings?263===n.namedBindings.kind?1:n.namedBindings.elements.length:0)===i.length)r(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];zb(c,e.idText(c.name),r)}})),i.forEach((function(t){var n=t[0],i=t[1],o=Gb(n.parent)?1:0;if(n.elements.length===i.length)1===i.length&&249===n.parent.kind&&250===n.parent.parent.kind?Hb(a,n.parent.parent,n.parent,P):r(n,o,1===i.length?e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Yb(e.first(i).name)):e.createDiagnosticForNode(n,e.Diagnostics.All_destructured_elements_are_unused));else for(var s=0,c=i;s<c.length;s++){var u=c[s];r(u,o,e.createDiagnosticForNode(u,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Yb(u.name)))}})),a.forEach((function(t){var n=t[0],i=t[1];if(n.declarations.length===i.length)r(n,0,1===i.length?e.createDiagnosticForNode(e.first(i).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Yb(e.first(i).name)):e.createDiagnosticForNode(232===n.parent.kind?n.parent:n,e.Diagnostics.All_variables_are_unused));else for(var a=0,o=i;a<o.length;a++){var s=o[a];r(s,0,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Yb(s.name)))}}))}function Yb(t){switch(t.kind){case 78:return e.idText(t);case 197:case 196:return Yb(e.cast(e.first(t.elements),e.isBindingElement).name);default:return e.Debug.assertNever(t)}}function Zb(e){return 262===e.kind||265===e.kind||263===e.kind}function $b(t){if(230===t.kind&&tT(t),e.isFunctionOrModuleBlock(t)){var r=Tr;e.forEach(t.statements,xD),Tr=r}else e.forEach(t.statements,xD);t.locals&&jb(t)}function ex(t,r,n){if(!r||r.escapedText!==n)return!1;if(163===t.kind||162===t.kind||165===t.kind||164===t.kind||167===t.kind||168===t.kind)return!1;if(8388608&t.flags)return!1;var i=e.getRootDeclaration(t);return 160!==i.kind||!e.nodeIsMissing(i.parent.body)}function tx(t){e.findAncestor(t,(function(r){return!!(4&sS(r))&&(78!==t.kind?cn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):cn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)}))}function rx(t){e.findAncestor(t,(function(r){return!!(8&sS(r))&&(78!==t.kind?cn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):cn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)}))}function nx(t){67108864&sS(e.getEnclosingBlockScopeContainer(t))&&sn("noEmit",t,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,"WeakMap")}function ix(t,r){if(!(U>=e.ModuleKind.ES2015)&&(ex(t,r,"require")||ex(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ca(t);297===n.kind&&e.isExternalOrCommonJsModule(n)&&sn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function ax(t,r){if(!(z>=4)&&ex(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ca(t);297===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&sn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function ox(e){return e===xe?be:e===kt?Et:e}function sx(t){var r;if(Lb(t),e.isBindingElement(t)||xD(t.type),t.name){if(158===t.name.kind&&(wm(t.name),t.initializer&&Jh(t.initializer)),198===t.kind){196===t.parent.kind&&z<99&&TS(t,4),t.propertyName&&158===t.propertyName.kind&&wm(t.propertyName);var n=t.parent.parent,i=Na(n),a=t.propertyName||t.name;if(i&&!e.isBindingPattern(a)){var o=gl(a);if(Xo(o)){var s=_c(i,es(o));s&&(Iy(s,void 0,!1),sy(n,!!n.initializer&&105===n.initializer.kind,i,s))}}}if(e.isBindingPattern(t.name)&&(197===t.name.kind&&z<2&&J.downlevelIteration&&TS(t,512),e.forEach(t.name.elements,xD)),t.initializer&&e.isParameterDeclaration(t)&&e.nodeIsMissing(e.getContainingFunction(t).body))cn(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(t.name)){var c=t.initializer&&238!==t.parent.parent.kind,u=0===t.name.elements.length;if(c||u){var l=Ya(t);if(c){var _=Jh(t.initializer);K&&u?my(_,t):ud(_,Ya(t),t,t.initializer)}u&&(e.isArrayBindingPattern(t.name)?hx(65,l,ke,t):K&&my(l,t))}}else{var d=Ci(t);if(2097152&d.flags&&e.isRequireVariableDeclaration(t,!0))dD(t);else{var p=ox(_o(d));if(t===d.valueDeclaration){var f=e.getEffectiveInitializer(t);if(f)e.isInJSFile(t)&&e.isObjectLiteralExpression(f)&&(0===f.properties.length||e.isPrototypeAccess(t.name))&&!!(null===(r=d.exports)||void 0===r?void 0:r.size)||238===t.parent.parent.kind||ud(Jh(f),p,t,f,void 0);d.declarations.length>1&&e.some(d.declarations,(function(r){return r!==t&&e.isVariableLike(r)&&!ux(r,t)}))&&cn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var g=ox(Ya(t));p===Se||g===Se||$_(p,g)||67108864&d.flags||cx(d.valueDeclaration,p,t,g),t.initializer&&ud(Jh(t.initializer),g,t,t.initializer,void 0),ux(t,d.valueDeclaration)||cn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}163!==t.kind&&162!==t.kind&&(Tb(t),249!==t.kind&&198!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(249!==t.kind||t.initializer)){var r=Ci(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=An(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&ay(n)){var i=e.getAncestor(n.valueDeclaration,250),a=232===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(230===a.kind&&e.isFunctionLike(a.parent)||257===a.kind||256===a.kind||297===a.kind)){var o=aa(n);cn(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),ix(t,t.name),ax(t,t.name),z<99&&ex(t,t.name,"WeakMap")&&Wr.push(t))}}}}function cx(t,r,n,i){var a=e.getNameOfDeclaration(n),o=163===n.kind||162===n.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=cn(a,o,s,sa(r),sa(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function ux(t,r){if(160===t.kind&&249===r.kind||249===t.kind&&160===r.kind)return!0;if(e.hasQuestionToken(t)!==e.hasQuestionToken(r))return!1;return e.getSelectedEffectiveModifierFlags(t,504)===e.getSelectedEffectiveModifierFlags(r,504)}function lx(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end}),function(t){if(238!==t.parent.parent.kind&&239!==t.parent.parent.kind)if(8388608&t.flags)qS(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return $S(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return $S(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(232!==t.parent.parent.kind||!t.type||t.initializer||8388608&t.flags)){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.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 $S(t.exclamationToken,r)}var n=e.getEmitModuleKind(J);n<e.ModuleKind.ES2015&&n!==e.ModuleKind.System&&!(8388608&t.parent.parent.flags)&&e.hasSyntacticModifier(t.parent.parent,1)&&WS(t.name);(e.isLet(t)||e.isVarConst(t))&&HS(t.name)}(t),sx(t),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function _x(t){return function(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r))return $S(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(NS(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),t.propertyName)return $S(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(t.dotDotDotToken&&t.initializer)ZS(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}(t),sx(t)}function dx(t){ES(t)||GS(t.declarationList)||function(t){if(!XS(t.parent)){if(e.isLet(t.declarationList))return $S(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(t.declarationList))$S(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(t),e.forEach(t.declarationList.declarations,xD)}function px(t,r,n){if(K){var i=e.isBinaryExpression(t)?t.right:t,a=e.isIdentifier(i)?i:e.isPropertyAccessExpression(i)?i.name:e.isBinaryExpression(i)&&e.isIdentifier(i.right)?i.right:void 0,o=e.isPropertyAccessExpression(i)&&e.isAssertionExpression(e.skipParentheses(i.expression));if(a&&!o)if(!xp(r))if(0!==pc(r,0).length){var s=LD(a);if(s)e.isBinaryExpression(t.parent)&&function(t,r){for(;e.isBinaryExpression(t)&&55===t.operatorToken.kind;){if(e.forEachChild(t.right,(function t(n){if(e.isIdentifier(n)){var i=LD(n);if(i&&i===r)return!0}return e.forEachChild(n,t)})))return!0;t=t.parent}return!1}(t.parent,s)||n&&function(t,r,n,i){return!!e.forEachChild(r,(function r(a){if(e.isIdentifier(a)){var o=LD(a);if(o&&o===i){if(e.isIdentifier(t))return!0;for(var s=n.parent,c=a.parent;s&&c;){if(e.isIdentifier(s)&&e.isIdentifier(c)||107===s.kind&&107===c.kind)return LD(s)===LD(c);if(e.isPropertyAccessExpression(s)&&e.isPropertyAccessExpression(c)){if(LD(s.name)!==LD(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,r)}))}(t,n,a,s)||cn(i,e.Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead)}}}function fx(t,r){return 16384&t.flags&&cn(r,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),t}function gx(e,t){return fx(ib(e,t),e)}function mx(t){JS(t);var r,n=_y(ib(t.expression));if(250===t.initializer.kind){var i=t.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&cn(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),yx(t)}else{var a=t.initializer,o=ib(a);199===a.kind||200===a.kind?cn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):id(131072&(r=bl(hl(n))).flags?we:r,o)?Sh(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):cn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}n!==Ue&&kh(n,126091264)||cn(t.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,sa(n)),xD(t.statement),t.locals&&jb(t)}function yx(e){var t=e.initializer;t.declarations.length>=1&&lx(t.declarations[0])}function vx(e){return hx(e.awaitModifier?15:13,uy(e.expression),ke,e.expression)}function hx(e,t,r,n){return ka(t)?t:bx(e,t,r,n,!0)||be}function bx(t,r,n,i,a){var o=0!=(2&t);if(r!==Ue){var s=z>=2,c=!s&&J.downlevelIteration,u=J.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var l=Ex(r,t,s?i:void 0);if(a&&l){var _=8&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&t?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;_&&cd(n,l.nextType,i,_)}if(l||s)return u?qf(l&&l.yieldType):l&&l.yieldType}var d=r,p=!1,f=!1;if(4&t){if(1048576&d.flags){var g=r.types,m=e.filter(g,(function(e){return!(402653316&e.flags)}));m!==g&&(d=rl(m,2))}else 402653316&d.flags&&(d=Ue);if((f=d!==r)&&(z<1&&i&&(cn(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),p=!0),131072&d.flags))return u?qf(we):we}if(!rp(d)){if(i&&!p){var y=xx(t,0,r,void 0),v=4&t&&!f?c?[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]:y?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:c?[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:y?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type,!0],h=v[0];_n(i,v[1]&&!!Cb(d),h,sa(d))}return f?u?qf(we):we:void 0}var b=yc(d,1);return f&&b?402653316&b.flags&&!J.noUncheckedIndexedAccess?we:rl(u?[b,we,ke]:[b,we],2):128&t?qf(b):b}Ix(i,r,o)}function xx(e,t,r,n){if(!ka(r)){var i=Ex(r,e,n);return i&&i[R(t)]}}function Dx(e,t,r){if(void 0===e&&(e=Ue),void 0===t&&(t=Ue),void 0===r&&(r=Ee),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=$c([e,t,r]),i=_r.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},_r.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function Sx(t){for(var r,n,i,a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s&&s!==dr){if(s===pr)return pr;r=e.append(r,s.yieldType),n=e.append(n,s.returnType),i=e.append(i,s.nextType)}}return r||n||i?Dx(r&&rl(r),n&&rl(n),i&&ul(i)):dr}function Tx(e,t){return e[t]}function Cx(e,t,r){return e[t]=r}function Ex(t,r,n){if(ka(t))return pr;if(!(1048576&t.flags)){var i=Nx(t,r,n);return i===dr?void(n&&Ix(n,t,!!(2&r))):i}var a,o=2&r?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",s=Tx(t,o);if(s)return s===dr?void 0:s;for(var c=0,u=t.types;c<u.length;c++){var l=Nx(u[c],r,n);if(l===dr)return n&&Ix(n,t,!!(2&r)),void Cx(t,o,dr);a=e.append(a,l)}var _=a?Sx(a):dr;return Cx(t,o,_),_===dr?void 0:_}function kx(e,t){if(e===dr)return dr;if(e===pr)return pr;var r=e.yieldType,n=e.returnType,i=e.nextType;return Dx(Nb(r,t)||be,Nb(n,t)||be,i)}function Nx(e,t,r){if(ka(e))return pr;var n;if(2&t&&(n=Ax(e,mr)||Px(e,mr)))return n;if(1&t&&(n=Ax(e,yr)||Px(e,yr))){if(!(2&t))return n;if(n!==dr)return Cx(e,"iterationTypesOfAsyncIterable",kx(n,r))}if(2&t&&(n=wx(e,mr,r))!==dr)return n;if(1&t&&(n=wx(e,yr,r))!==dr)return 2&t?Cx(e,"iterationTypesOfAsyncIterable",n?kx(n,r):dr):n;return dr}function Ax(e,t){return Tx(e,t.iterableCacheKey)}function Fx(e,t){var r=Ax(e,t)||wx(e,t,void 0);return r===dr?gr:r}function Px(e,t){var r;if(po(e,r=t.getGlobalIterableType(!1))||po(e,r=t.getGlobalIterableIteratorType(!1))){var n=au(e)[0],i=Fx(r,t),a=i.returnType,o=i.nextType;return Cx(e,t.iterableCacheKey,Dx(n,a,o))}if(po(e,t.getGlobalGeneratorType(!1))){var s=au(e);n=s[0],a=s[1],o=s[2];return Cx(e,t.iterableCacheKey,Dx(n,a,o))}}function wx(t,r,n){var i,a=_c(t,e.getPropertyNameForKnownSymbolName(r.iteratorSymbolName)),o=!a||16777216&a.flags?void 0:_o(a);if(ka(o))return Cx(t,r.iterableCacheKey,pr);var s=o?pc(o,0):void 0;if(!e.some(s))return Cx(t,r.iterableCacheKey,dr);var c=null!==(i=Ox(ul(e.map(s,Mc)),r,n))&&void 0!==i?i:dr;return Cx(t,r.iterableCacheKey,c)}function Ix(t,r,n){var i=n?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;_n(t,!!Cb(r),i,sa(r))}function Ox(e,t,r){if(ka(e))return pr;var n=Mx(e,t)||function(e,t){var r=t.getGlobalIterableIteratorType(!1);if(po(e,r)){var n=au(e)[0],i=Mx(r,t)||zx(r,t,void 0),a=i===dr?gr:i,o=a.returnType,s=a.nextType;return Cx(e,t.iteratorCacheKey,Dx(n,o,s))}if(po(e,t.getGlobalIteratorType(!1))||po(e,t.getGlobalGeneratorType(!1))){var c=au(e);n=c[0],o=c[1],s=c[2];return Cx(e,t.iteratorCacheKey,Dx(n,o,s))}}(e,t)||zx(e,t,r);return n===dr?void 0:n}function Mx(e,t){return Tx(e,t.iteratorCacheKey)}function Lx(e,t){var r=Ea(e,"done")||Me;return id(0===t?Me:Re,r)}function Rx(e){return Lx(e,0)}function Bx(e){return Lx(e,1)}function jx(e){if(ka(e))return pr;var t,r=Tx(e,"iterationTypesOfIteratorResult");if(r)return r;if(po(e,(t=!1,zt||(zt=Cu("IteratorYieldResult",1,t))||it)))return Cx(e,"iterationTypesOfIteratorResult",Dx(au(e)[0],void 0,void 0));if(po(e,function(e){return Ut||(Ut=Cu("IteratorReturnResult",1,e))||it}(!1)))return Cx(e,"iterationTypesOfIteratorResult",Dx(void 0,au(e)[0],void 0));var n=og(e,Rx),i=n!==Ue?Ea(n,"value"):void 0,a=og(e,Bx),o=a!==Ue?Ea(a,"value"):void 0;return Cx(e,"iterationTypesOfIteratorResult",i||o?Dx(i,o||ze,void 0):dr)}function Jx(t,r,n,i){var a,o,s,c,u=_c(t,n);if(u||"next"===n){var l=!u||"next"===n&&16777216&u.flags?void 0:"next"===n?_o(u):zf(_o(u),2097152);if(ka(l))return"next"===n?pr:fr;var _,d,p,f,g,m=l?pc(l,0):e.emptyArray;if(0===m.length){if(i)cn(i,"next"===n?r.mustHaveANextMethodDiagnostic:r.mustBeAMethodDiagnostic,n);return"next"===n?pr:void 0}if((null==l?void 0:l.symbol)&&1===m.length){var y=r.getGlobalGeneratorType(!1),v=r.getGlobalIteratorType(!1),h=(null===(o=null===(a=y.symbol)||void 0===a?void 0:a.members)||void 0===o?void 0:o.get(n))===l.symbol,b=!h&&(null===(c=null===(s=v.symbol)||void 0===s?void 0:s.members)||void 0===c?void 0:c.get(n))===l.symbol;if(h||b){var x=h?y:v,D=l.mapper;return Dx(T_(x.typeParameters[0],D),T_(x.typeParameters[1],D),"next"===n?T_(x.typeParameters[2],D):void 0)}}for(var S=0,T=m;S<T.length;S++){var C=T[S];"throw"!==n&&e.some(C.parameters)&&(_=e.append(_,Gv(C,0))),d=e.append(d,Mc(C))}if("throw"!==n){var E=_?rl(_):Ee;if("next"===n)f=E;else if("return"===n){var k=r.resolveIterationType(E,i)||be;p=e.append(p,k)}}var N=d?ul(d):Ue,A=jx(r.resolveIterationType(N,i)||be);return A===dr?(i&&cn(i,r.mustHaveAValueDiagnostic,n),g=be,p=e.append(p,be)):(g=A.yieldType,p=e.append(p,A.returnType)),Dx(g,rl(p),f)}}function zx(e,t,r){var n=Sx([Jx(e,t,"next",r),Jx(e,t,"return",r),Jx(e,t,"throw",r)]);return Cx(e,t.iteratorCacheKey,n)}function Ux(e,t,r){if(!ka(t)){var n=Vx(t,r);return n&&n[R(e)]}}function Vx(e,t){if(ka(e))return pr;var r=t?mr:yr;return Ex(e,t?2:1,void 0)||Ox(e,r,void 0)}function Kx(t){tT(t)||function(t){var r=t;for(;r;){if(e.isFunctionLike(r))return $S(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 245:if(t.label&&r.label.escapedText===t.label.escapedText)return!!(240===t.kind&&!e.isIterationStatement(r.statement,!0))&&$S(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 244:if(241===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}t.label?$S(t,241===t.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):$S(t,241===t.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)}(t)}function qx(e,t){var r,n,i=!!(2&t);return!!(1&t)?null!==(r=Ux(1,e,i))&&void 0!==r?r:Se:i?null!==(n=Nb(e))&&void 0!==n?n:Se:e}function Wx(t,r){var n=qx(r,e.getFunctionFlags(t));return!!n&&Eh(n,16387)}function Hx(t){tT(t)||e.isIdentifier(t.expression)&&!t.expression.escapedText&&function(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!QS(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Gr.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,i,a)),!0}}(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&ib(t.expression)}function Gx(t){var r,n=Hc(t.symbol,1),i=Hc(t.symbol,0),a=yc(t,0),o=yc(t,1);if(a||o){e.forEach(Bs(t),(function(e){var r=_o(e);p(e,r,t,i,a,0),p(e,r,t,n,o,1)}));var s=t.symbol.valueDeclaration;if(1&e.getObjectFlags(t)&&e.isClassLike(s))for(var c=0,u=s.members;c<u.length;c++){var l=u[c];if(!e.hasSyntacticModifier(l,32)&&!$o(l)){var _=Ci(l),d=_o(_);p(_,d,t,i,a,0),p(_,d,t,n,o,1)}}}a&&o&&(!(r=n||i)&&2&e.getObjectFlags(t)&&(r=e.forEach(ko(t),(function(e){return yc(e,0)&&yc(e,1)}))?void 0:t.symbol.declarations[0]));function p(t,r,n,i,a,o){if(a&&!e.isKnownSymbol(t)){var s=t.valueDeclaration,c=s&&e.getNameOfDeclaration(s);if((!c||!e.isPrivateIdentifier(c))&&(1!==o||(c?Am(c):Pm(t.escapedName)))){var u;if(s&&c&&(216===s.kind||158===c.kind||t.parent===n.symbol))u=s;else if(i)u=i;else if(2&e.getObjectFlags(n)){u=e.forEach(ko(n),(function(e){return js(e,t.escapedName)&&yc(e,o)}))?void 0:n.symbol.declarations[0]}if(u&&!id(r,a))cn(u,0===o?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,aa(t),sa(r),sa(a))}}}r&&!id(o,a)&&cn(r,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,sa(o),sa(a))}function Xx(e,t){switch(e.escapedText){case"any":case"unknown":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":cn(e,t,e.escapedText)}}function Qx(t){if(t)for(var n=!1,i=0;i<t.length;i++){var a=t[i];if(ab(a),r){a.default?(n=!0,Yx(a.default,t,i)):n&&cn(a,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var o=0;o<i;o++)t[o].symbol===a.symbol&&cn(a.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(a.name))}}}function Yx(t,r,n){!function t(i){if(173===i.kind){var a=hu(i);if(262144&a.flags)for(var o=n;o<r.length;o++)a.symbol===Ci(r[o])&&cn(i,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(i,t)}(t)}function Zx(t){if(1!==t.declarations.length){var r=Sn(t);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=function(t){return e.filter(t.declarations,(function(e){return 252===e.kind||253===e.kind}))}(t);if(n.length<=1)return;if(!function(t,r){for(var n=e.length(r),i=Ec(r),a=0,o=t;a<o.length;a++){var s=o[a],c=e.getEffectiveTypeParameterDeclarations(s),u=c.length;if(u<i||u>n)return!1;for(var l=0;l<u;l++){var _=c[l],d=r[l];if(_.name.escapedText!==d.symbol.escapedName)return!1;var p=e.getEffectiveConstraintOfTypeParameter(_),f=p&&v_(p),g=Vs(d);if(f&&g&&!$_(f,g))return!1;var m=_.default&&v_(_.default),y=$s(d);if(m&&y&&!$_(m,y))return!1}}return!0}(n,jo(t).localTypeParameters))for(var i=aa(t),a=0,o=n;a<o.length;a++){cn(o[a].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}}function $x(t){var n;!function(t){var r=e.getSourceFileOfNode(t);(function(t){var r=!1,n=!1;if(!ES(t)&&t.heritageClauses)for(var i=0,a=t.heritageClauses;i<a.length;i++){var o=a[i];if(93===o.token){if(r)return YS(o,e.Diagnostics.extends_clause_already_seen);if(n)return YS(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return YS(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(116===o.token),n)return YS(o,e.Diagnostics.implements_clause_already_seen);n=!0}OS(o)}})(t)||AS(t.typeParameters,r)}(t),Lb(t),t.name&&(Xx(t.name,e.Diagnostics.Class_name_cannot_be_0),ix(t,t.name),ax(t,t.name),8388608&t.flags||(n=t.name,1===z&&"Object"===n.escapedText&&U<e.ModuleKind.ES2015&&cn(n,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[U]))),Qx(e.getEffectiveTypeParameterDeclarations(t)),Tb(t);var i=Ci(t),a=jo(i),o=as(a),s=_o(i);Zx(i),Sb(i),function(t){for(var r=new e.Map,n=new e.Map,i=new e.Map,a=0,o=t.members;a<o.length;a++){var s=o[a];if(166===s.kind)for(var c=0,u=s.parameters;c<u.length;c++){var l=u[c];e.isParameterPropertyDeclaration(l,s)&&!e.isBindingPattern(l.name)&&g(r,l.name,l.name.escapedText,3)}else{var _=e.hasSyntacticModifier(s,32),d=s.name;if(!d)return;var p=e.isPrivateIdentifier(d)?i:_?n:r,f=d&&e.getPropertyNameForPropertyNameNode(d);if(f)switch(s.kind){case 167:g(p,d,f,1);break;case 168:g(p,d,f,2);break;case 163:g(p,d,f,3);break;case 165:g(p,d,f,8)}}}function g(t,r,n,i){var a=t.get(n);a?8&a?8!==i&&cn(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):a&i?cn(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):t.set(n,a|i):t.set(n,i)}}(t),8388608&t.flags||function(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r],a=i.name;if(e.hasSyntacticModifier(i,32)&&a){var o=e.getPropertyNameForPropertyNameNode(a);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":cn(a,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,va(Ci(t)))}}}}(t);var c=e.getEffectiveBaseTypeNode(t);if(c){e.forEach(c.typeArguments,xD),z<2&&TS(c.parent,1);var u=e.getClassExtendsHeritageElement(t);u&&u!==c&&ib(u.expression);var l=ko(a);if(l.length&&r){var _=l[0],d=Co(a),p=tc(d);if(function(t,r){var n=pc(t,1);if(n.length){var i=n[0].declaration;if(i&&e.hasEffectiveModifier(i,8))ID(r,e.getClassLikeDeclarationOfSymbol(t.symbol))||cn(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,ci(t.symbol))}}(p,c),xD(c.expression),e.some(c.typeArguments)){e.forEach(c.typeArguments,xD);for(var f=0,g=So(p,c.typeArguments,c);f<g.length;f++){if(!mb(c,g[f].typeParameters))break}}if(cd(o,D=as(_,a.thisType),void 0)?cd(s,Z_(p),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):eD(t,o,D,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&d.flags)if(bo(s))pc(d,1).some((function(e){return 4&e.flags}))&&!e.hasSyntacticModifier(t,128)&&cn(t.name||t,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract);else cn(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);if(!(p.symbol&&32&p.symbol.flags||8650752&d.flags)){var m=To(p,c.typeArguments,c);e.forEach(m,(function(e){return!Av(e.declaration)&&!$_(Mc(e),_)}))&&cn(c.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(t,r){var n=zs(r);e:for(var i=0,a=n;i<a.length;i++){var o=a[i],s=tD(o);if(!(4194304&s.flags)){var c=js(t,s.escapedName);if(c){var u=tD(c),l=e.getDeclarationModifierFlagsFromSymbol(s);if(e.Debug.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===s){var _=e.getClassLikeDeclarationOfSymbol(t.symbol);if(128&l&&(!_||!e.hasSyntacticModifier(_,128))){for(var d=0,p=ko(t);d<p.length;d++){var f=p[d];if(f!==r){var g=js(f,s.escapedName),m=g&&tD(g);if(m&&m!==s)continue e}}221===_.kind?cn(_,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,aa(o),sa(r)):cn(_,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,sa(t),aa(o),sa(r))}}else{var y=e.getDeclarationModifierFlagsFromSymbol(u);if(8&l||8&y)continue;var v=void 0,h=98308&s.flags,b=98308&u.flags;if(h&&b){if(128&l&&!(s.valueDeclaration&&e.isPropertyDeclaration(s.valueDeclaration)&&s.valueDeclaration.initializer)||s.valueDeclaration&&253===s.valueDeclaration.parent.kind||u.valueDeclaration&&e.isBinaryExpression(u.valueDeclaration))continue;var x=4!==h&&4===b;if(x||4===h&&4!==b){var D=x?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;cn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,D,aa(s),sa(r),sa(t))}else if(J.useDefineForClassFields){var S=e.find(u.declarations,(function(e){return 163===e.kind&&!e.initializer}));if(S&&!(33554432&u.flags)&&!(128&l)&&!(128&y)&&!u.declarations.some((function(e){return!!(8388608&e.flags)}))){var T=Ii(e.getClassLikeDeclarationOfSymbol(t.symbol)),C=S.name;if(S.exclamationToken||!T||!e.isIdentifier(C)||!K||!nD(C,t,T)){var E=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;cn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,E,aa(s),sa(r))}}}continue}if(oy(s)){if(oy(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&s.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;cn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,v,sa(r),aa(s),sa(t))}}}}}(a,_)}}var y=e.getEffectiveImplementsTypeNodes(t);if(y)for(var v=0,h=y;v<h.length;v++){var b=h[v];if(e.isEntityNameExpression(b.expression)&&!e.isOptionalChain(b.expression)||cn(b.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),vb(b),r){var x=oc(v_(b));if(x!==Se)if(Ao(x)){var D,S=x.symbol&&32&x.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;cd(o,D=as(x,a.thisType),void 0)||eD(t,o,D,S)}else cn(b,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}r&&(Gx(a),lb(t),function(t){if(!K||!H||8388608&t.flags)return;for(var r=Ii(t),n=0,i=t.members;n<i.length;n++){var a=i[n];if(!(2&e.getEffectiveModifierFlags(a))&&rD(a)){var o=a.name;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)){var s=_o(Ci(a));3&s.flags||32768&xp(s)||r&&nD(o,s,r)||cn(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}(t))}function eD(t,r,n,i){for(var a=!1,o=function(t){if(e.hasStaticModifier(t))return"continue";var i=t.name&&LD(t.name)||LD(t);if(i){var o=_c(r,i.escapedName),s=_c(n,i.escapedName);if(o&&s){cd(_o(o),_o(s),t.name||t,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,aa(i),sa(r),sa(n))}))||(a=!0)}}},s=0,c=t.members;s<c.length;s++){o(c[s])}a||cd(r,n,t.name||t,i)}function tD(t){return 1&e.getCheckFlags(t)?t.target:t}function rD(t){return 163===t.kind&&!e.hasSyntacticModifier(t,160)&&!t.exclamationToken&&!t.initializer}function nD(t,r,n){var i=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);return e.setParent(i.expression,i),e.setParent(i,n),i.flowNode=n.returnFlowNode,!(32768&xp(Fg(i,r,Cp(r))))}function iD(t){if(ES(t)||function(t){var r=!1;if(t.heritageClauses)for(var n=0,i=t.heritageClauses;n<i.length;n++){var a=i[n];if(93!==a.token)return e.Debug.assert(116===a.token),YS(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(r)return YS(a,e.Diagnostics.extends_clause_already_seen);r=!0,OS(a)}}(t),Qx(t.typeParameters),r){Xx(t.name,e.Diagnostics.Interface_name_cannot_be_0),Tb(t);var n=Ci(t);if(Zx(n),t===e.getDeclarationOfKind(n,253)){var i=jo(n),a=as(i);if(function(t,r){var n=ko(t);if(n.length<2)return!0;var i=new e.Map;e.forEach(Go(t).declaredProperties,(function(e){i.set(e.escapedName,{prop:e,containingType:t})}));for(var a=!0,o=0,s=n;o<s.length;o++)for(var c=s[o],u=0,l=zs(as(c,t.thisType));u<l.length;u++){var _=l[u],d=i.get(_.escapedName);if(d){if(d.containingType!==t&&!Gd(d.prop,_)){a=!1;var p=sa(d.containingType),f=sa(c),g=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,aa(_),p,f);g=e.chainDiagnosticMessages(g,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,sa(t),p,f),Gr.add(e.createDiagnosticForNodeFromMessageChain(r,g))}}else i.set(_.escapedName,{prop:_,containingType:c})}return a}(i,t.name)){for(var o=0,s=ko(i);o<s.length;o++){cd(a,as(s[o],i.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}Gx(i)}}ub(t)}e.forEach(e.getInterfaceBaseTypeNodes(t),(function(t){e.isEntityNameExpression(t.expression)&&!e.isOptionalChain(t.expression)||cn(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),vb(t)})),e.forEach(t.members,xD),r&&(lb(t),jb(t))}function aD(e){var t=Tn(e);if(!(16384&t.flags)){t.flags|=16384;for(var r=0,n=0,i=e.members;n<i.length;n++){var a=i[n],o=oD(a,r);Tn(a).enumMemberValue=o,r="number"==typeof o?o+1:void 0}}}function oD(t,r){if(e.isComputedNonLiteralName(t.name))cn(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var n=e.getTextOfPropertyName(t.name);Pm(n)&&!Fm(n)&&cn(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return t.initializer?function(t){var r=Oo(Ci(t.parent)),n=e.isEnumConst(t.parent),i=t.initializer,a=1!==r||Io(t)?s(i):void 0;if(void 0!==a)n&&"number"==typeof a&&!isFinite(a)&&cn(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===r)return cn(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(n)cn(i,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(8388608&t.parent.flags)cn(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var o=ib(i);kh(o,296)?cd(o,jo(Ci(t.parent)),i,void 0):cn(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,sa(o))}}return a;function s(r){switch(r.kind){case 214:var n=s(r.operand);if("number"==typeof n)switch(r.operator){case 39:return n;case 40:return-n;case 54:return~n}break;case 216:var i=s(r.left),a=s(r.right);if("number"==typeof i&&"number"==typeof a)switch(r.operatorToken.kind){case 51:return i|a;case 50:return i&a;case 48:return i>>a;case 49:return i>>>a;case 47:return i<<a;case 52:return i^a;case 41:return i*a;case 43:return i/a;case 39:return i+a;case 40:return i-a;case 44:return i%a;case 42:return Math.pow(i,a)}else if("string"==typeof i&&"string"==typeof a&&39===r.operatorToken.kind)return i+a;break;case 10:case 14:return r.text;case 8:return rT(r),+r.text;case 207:return s(r.expression);case 78:var o=r;return Fm(o.escapedText)?+o.escapedText:e.nodeIsMissing(r)?0:c(r,Ci(t.parent),o.escapedText);case 202:case 201:var u=r;if(sD(u)){var l=tb(u.expression);if(l.symbol&&384&l.symbol.flags){var _=void 0;return _=201===u.kind?u.name.escapedText:e.escapeLeadingUnderscores(e.cast(u.argumentExpression,e.isLiteralExpression).text),c(r,l.symbol,_)}}}}function c(r,n,i){var a=n.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==t)return kn(o,t)?cS(o):(cn(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);cn(r,e.Diagnostics.Property_0_is_used_before_being_assigned,aa(a))}}}(t):8388608&t.parent.flags&&!e.isEnumConst(t.parent)&&0===Oo(Ci(t.parent))?void 0:void 0!==r?r:void cn(t.name,e.Diagnostics.Enum_member_must_have_initializer)}function sD(t){return 78===t.kind||201===t.kind&&sD(t.expression)||202===t.kind&&sD(t.expression)&&e.isStringLiteralLike(t.argumentExpression)}function cD(t){e.isPrivateIdentifier(t.name)&&cn(t,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function uD(t){if(r){var n=e.isGlobalScopeAugmentation(t),i=8388608&t.flags;n&&!i&&cn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var a=e.isAmbientModule(t);if(mD(t,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;ES(t)||i||10!==t.name.kind||$S(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&(ix(t,t.name),ax(t,t.name)),Tb(t);var o=Ci(t);if(512&o.flags&&!i&&o.declarations.length>1&&I(t,e.shouldPreserveConstEnums(J))){var s=function(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if((252===i.kind||251===i.kind&&e.nodeIsPresent(i.body))&&!(8388608&i.flags))return i}}(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?cn(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos<s.pos&&cn(t.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,252);c&&(_=t,d=c,p=e.getEnclosingBlockScopeContainer(_),f=e.getEnclosingBlockScopeContainer(d),Cn(p)?Cn(f):!Cn(f)&&p===f)&&(Tn(t).flags|=32768)}if(a)if(e.isExternalModuleAugmentation(t)){if((n||33554432&Ci(t).flags)&&t.body)for(var u=0,l=t.body.statements;u<l.length;u++){lD(l[u],n)}}else Cn(t.parent)?n?cn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name))&&cn(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):cn(t.name,n?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;t.body&&(xD(t.body),e.isGlobalScopeAugmentation(t)||jb(t))}function lD(t,r){switch(t.kind){case 232:for(var n=0,i=t.declarationList.declarations;n<i.length;n++){lD(i[n],r)}break;case 266:case 267:YS(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 260:case 261:YS(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 198:case 249:var a=t.name;if(e.isBindingPattern(a)){for(var o=0,s=a.elements;o<s.length;o++){lD(s[o],r)}break}case 252:case 255:case 251:case 253:case 256:case 254:if(r)return;var c=Ci(t);if(c){var u=!(33554432&c.flags);u||(u=!!c.parent&&e.isExternalModuleAugmentation(c.parent.declarations[0]))}}}function _D(t){var r=e.getExternalModuleName(t);if(!r||e.nodeIsMissing(r))return!1;if(!e.isStringLiteral(r))return cn(r,e.Diagnostics.String_literal_expected),!1;var n=257===t.parent.kind&&e.isAmbientModule(t.parent.parent);return 297===t.parent.kind||n?!(n&&e.isExternalModuleNameRelative(r.text)&&!ga(t))||(cn(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):(cn(r,267===t.kind?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1)}function dD(t){var r,n=Ci(t),i=ti(n);if(i!==ve){var a=(1160127&(n=Ti(n.exportSymbol||n)).flags?111551:0)|(788968&n.flags?788968:0)|(1920&n.flags?1920:0);if(i.flags&a)cn(t,270===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,aa(n));!J.isolatedModules||270!==t.kind||t.parent.parent.isTypeOnly||111551&i.flags||8388608&t.flags||cn(t,e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type),e.isImportSpecifier(t)&&(null===(r=i.declarations)||void 0===r?void 0:r.every((function(t){return!!(134217728&e.getCombinedNodeFlags(t))})))&&pn(t.name,i.declarations,n.escapedName)}}function pD(t){ix(t,t.name),ax(t,t.name),dD(t),265===t.kind&&"default"===e.idText(t.propertyName||t.name)&&J.esModuleInterop&&U!==e.ModuleKind.System&&U<e.ModuleKind.ES2015&&TS(t,131072)}function fD(t){if(!mD(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!ES(t)&&e.hasEffectiveModifiers(t)&&YS(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),_D(t))){var r=t.importClause;if(r&&!function(t){if(t.isTypeOnly&&t.name&&t.namedBindings)return $S(t,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);return!1}(r))if(r.name&&pD(r),r.namedBindings)if(263===r.namedBindings.kind)pD(r.namedBindings),U!==e.ModuleKind.System&&U<e.ModuleKind.ES2015&&J.esModuleInterop&&TS(t,65536);else _i(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,pD)}}function gD(t){if(!mD(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!ES(t)&&e.hasEffectiveModifiers(t)&&YS(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&0===z&&TS(t,2097152),function(t){var r,n=t.isTypeOnly&&268!==(null===(r=t.exportClause)||void 0===r?void 0:r.kind);n&&$S(t,e.Diagnostics.Only_named_exports_may_use_export_type)}(t),!t.moduleSpecifier||_D(t)))if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,hD);var r=257===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&257===t.parent.kind&&!t.moduleSpecifier&&8388608&t.flags;297===t.parent.kind||r||n||cn(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=_i(t,t.moduleSpecifier);i&&yi(i)?cn(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,aa(i)):t.exportClause&&dD(t.exportClause),U!==e.ModuleKind.System&&U<e.ModuleKind.ES2015&&(t.exportClause?J.esModuleInterop&&TS(t,65536):TS(t,32768))}}function mD(e,t){var r=297===e.parent.kind||257===e.parent.kind||256===e.parent.kind;return r||YS(e,t),!r}function yD(t){return e.isImportDeclaration(t)&&t.importClause&&!t.importClause.isTypeOnly&&(r=t.importClause,e.forEachImportClauseDeclaration(r,(function(e){return!!Ci(e).isReferenced})))&&!tS(t.importClause,!0)&&!function(t){return e.forEachImportClauseDeclaration(t,(function(e){return!!Sn(Ci(e)).constEnumReferenced}))}(t.importClause);var r}function vD(t){return e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)&&!t.isTypeOnly&&Ci(t).isReferenced&&!tS(t,!1)&&!Sn(Ci(t)).constEnumReferenced}function hD(t){if(dD(t),e.getEmitDeclarations(J)&&ba(t.propertyName||t.name,!0),t.parent.parent.moduleSpecifier)J.esModuleInterop&&U!==e.ModuleKind.System&&U<e.ModuleKind.ES2015&&"default"===e.idText(t.propertyName||t.name)&&TS(t,131072);else{var r=t.propertyName||t.name,n=An(r,r.escapedText,2998271,void 0,void 0,!0);if(n&&(n===te||n===re||Cn(Ca(n.declarations[0]))))cn(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r));else{ai(t);var i=n&&(2097152&n.flags?ti(n):n);(!i||i===ve||111551&i.flags)&&Jh(t.propertyName||t.name)}}}function bD(t){var r=Ci(t),n=Sn(r);if(!n.exportsChecked){var i=r.exports.get("export=");if(i&&function(t){return e.forEachEntry(t.exports,(function(e,t){return"export="!==t}))}(r)){var a=Jn(i)||i.valueDeclaration;ga(a)||e.isInJSFile(a)||cn(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=xi(r);o&&o.forEach((function(t,r){var n=t.declarations,i=t.flags;if("__export"!==r&&!(1984&i)){var a=e.countWhere(n,E);if(!(524288&i&&a<=2)&&a>1)for(var o=0,s=n;o<s.length;o++){var c=s[o];O(c)&&Gr.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(r)))}}})),n.exportsChecked=!0}}function xD(t){if(t){var i=c;c=t,h=0,function(t){e.isInJSFile(t)&&e.forEach(t.jsDoc,(function(t){var r=t.tags;return e.forEach(r,xD)}));var i=t.kind;if(n)switch(i){case 256:case 252:case 253:case 251:n.throwIfCancellationRequested()}i>=232&&i<=248&&t.flowNode&&!Eg(t.flowNode)&&ln(!1===J.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected);switch(i){case 159:return ab(t);case 160:return ob(t);case 163:return _b(t);case 162:return function(t){return e.isPrivateIdentifier(t.name)&&cn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),_b(t)}(t);case 175:case 174:case 169:case 170:case 171:return cb(t);case 165:case 164:return function(t){VS(t)||LS(t.name),e.isPrivateIdentifier(t.name)&&cn(t,e.Diagnostics.A_method_cannot_be_named_with_a_private_identifier),Bb(t),e.hasSyntacticModifier(t,128)&&165===t.kind&&t.body&&cn(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name))}(t);case 166:return db(t);case 167:case 168:return pb(t);case 173:return vb(t);case 172:return function(t){var r=function(e){switch(e.parent.kind){case 209:case 169:case 251:case 208:case 174:case 165:case 164:var t=e.parent;if(e===t.type)return t}}(t);if(r){var n=Nc(r),i=Oc(n);if(i){xD(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)g_(a);else if(i.parameterIndex>=0)B(n)&&i.parameterIndex===n.parameters.length-1?cn(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&cd(i.type,_o(n.parameters[i.parameterIndex]),t.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=r.parameters;s<c.length;s++){var u=c[s].name;if(e.isBindingPattern(u)&&sb(u,a,i.parameterName)){o=!0;break}}o||cn(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,i.parameterName)}}}else cn(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(t);case 176:return function(e){xu(e)}(t);case 177:return function(t){e.forEach(t.members,xD),r&&(Gx($l(t)),lb(t),ub(t))}(t);case 178:return function(e){xD(e.elementType)}(t);case 179:return function(t){for(var r=t.elements,n=!1,i=!1,a=e.some(r,e.isNamedTupleMember),o=0,s=r;o<s.length;o++){var c=s[o];if(192!==c.kind&&a){$S(c,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var u=Mu(c);if(8&u){var l=v_(c.type);if(!rp(l)){cn(c,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(Zd(l)||fp(l)&&4&l.target.combinedFlags)&&(i=!0)}else if(4&u){if(i){$S(c,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}i=!0}else if(2&u){if(i){$S(c,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}n=!0}else if(n){$S(c,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(t.elements,xD),v_(t)}(t);case 182:case 183:return function(t){e.forEach(t.types,xD),v_(t)}(t);case 186:case 180:case 181:return xD(t.type);case 187:return function(e){g_(e)}(t);case 188:return bb(t);case 184:return function(t){e.forEachChild(t,xD)}(t);case 185:return function(t){e.findAncestor(t,(function(e){return e.parent&&184===e.parent.kind&&e.parent.extendsType===e}))||$S(t,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),xD(t.typeParameter),jb(t)}(t);case 193:return function(e){for(var t=0,r=e.templateSpans;t<r.length;t++){var n=r[t];xD(n.type),cd(v_(n.type),Ye,n.type)}v_(e)}(t);case 195:return function(e){xD(e.argument),v_(e)}(t);case 192:return function(t){t.dotDotDotToken&&t.questionToken&&$S(t,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),180===t.type.kind&&$S(t.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),181===t.type.kind&&$S(t.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),xD(t.type),v_(t)}(t);case 315:return function(t){var r=e.getEffectiveJSDocHost(t);if(r&&(e.isClassDeclaration(r)||e.isClassExpression(r))){var n=e.getJSDocTags(r).filter(e.isJSDocAugmentsTag);e.Debug.assert(n.length>0),n.length>1&&cn(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Rb(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=Rb(a.expression);o&&i.escapedText!==o.escapedText&&cn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else cn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 316:return function(t){var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||cn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 331:case 324:case 325:return function(t){t.typeExpression||cn(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&Xx(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),xD(t.typeExpression)}(t);case 330:return function(e){xD(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++)xD(r[t])}(t);case 329:return function(e){xD(e.typeExpression)}(t);case 326:return function(t){if(xD(t.typeExpression),!e.getParameterSymbolFromJSDoc(t)){var r=e.getHostSignatureFromJSDoc(t);if(r){var n=e.getJSDocTags(r).filter(e.isJSDocParameterTag).indexOf(t);if(n>-1&&n<r.parameters.length&&e.isBindingPattern(r.parameters[n].name))return;Fc(r)?e.findLast(e.getJSDocTags(r),e.isJSDocParameterTag)===t&&t.typeExpression&&t.typeExpression.type&&!Zd(v_(t.typeExpression.type))&&cn(t.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(157===t.name.kind?t.name.right:t.name)):e.isQualifiedName(t.name)?cn(t.name,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(t.name),e.entityNameToString(t.name.left)):cn(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(t.name))}}}(t);case 333:return function(e){xD(e.typeExpression)}(t);case 308:!function(t){!r||t.type||e.isJSDocConstructSignature(t)||Vp(t,be),cb(t)}(t);case 306:case 305:case 303:case 304:case 312:return DD(t),void e.forEachChild(t,xD);case 309:return void function(t){DD(t),xD(t.type);var r=t.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent))return void(e.last(r.parent.parameters)!==r&&cn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list));e.isJSDocTypeExpression(r)||cn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var n=t.parent.parent;if(!e.isJSDocParameterTag(n))return void cn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var i=e.getParameterSymbolFromJSDoc(n);if(!i)return;var a=e.getHostSignatureFromJSDoc(n);a&&e.last(a.parameters).symbol===i||cn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}(t);case 301:return xD(t.type);case 189:return function(e){xD(e.objectType),xD(e.indexType),hb(zl(e),e)}(t);case 190:return function(t){xD(t.typeParameter),xD(t.nameType),xD(t.type),t.type||Vp(t,be);var r=Ul(t),n=Ns(r);n?cd(n,Xe,t.nameType):cd(ks(r),Xe,e.getEffectiveConstraintOfTypeParameter(t.typeParameter))}(t);case 251:return function(e){r&&(Bb(e),RS(e),ix(e,e.name),ax(e,e.name))}(t);case 230:case 257:return $b(t);case 232:return dx(t);case 233:return function(e){tT(e),ib(e.expression)}(t);case 234:return function(t){tT(t);var r=gx(t.expression);px(t.expression,r,t.thenStatement),xD(t.thenStatement),231===t.thenStatement.kind&&cn(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),xD(t.elseStatement)}(t);case 235:return function(e){tT(e),xD(e.statement),gx(e.expression)}(t);case 236:return function(e){tT(e),gx(e.expression),xD(e.statement)}(t);case 237:return function(t){tT(t)||t.initializer&&250===t.initializer.kind&&GS(t.initializer),t.initializer&&(250===t.initializer.kind?e.forEach(t.initializer.declarations,lx):ib(t.initializer)),t.condition&&gx(t.condition),t.incrementor&&ib(t.incrementor),xD(t.statement),t.locals&&jb(t)}(t);case 238:return mx(t);case 239:return function(t){if(JS(t),t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&z<99&&TS(t,16384):J.downlevelIteration&&z<2&&TS(t,256),250===t.initializer.kind)yx(t);else{var r=t.initializer,n=vx(t);if(199===r.kind||200===r.kind)Ih(r,n||Se);else{var i=ib(r);Sh(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),n&&ud(n,i,r,t.expression)}}xD(t.statement),t.locals&&jb(t)}(t);case 240:case 241:return Kx(t);case 242:return function(t){var r;if(!tT(t)){var n=e.getContainingFunction(t);if(n){var i=Mc(Nc(n)),a=e.getFunctionFlags(n);if(K||t.expression||131072&i.flags){var o=t.expression?Jh(t.expression):ke;if(168===n.kind)t.expression&&cn(t,e.Diagnostics.Setters_cannot_return_a_value);else if(166===n.kind)t.expression&&!ud(o,i,t,t.expression)&&cn(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Lc(n)){var s=null!==(r=qx(i,a))&&void 0!==r?r:i,c=2&a?kb(o,t,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&&ud(c,s,t,t.expression)}}else 166!==n.kind&&J.noImplicitReturns&&!Wx(n,i)&&cn(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else YS(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(t);case 243:return function(t){tT(t)||32768&t.flags&&YS(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),ib(t.expression);var r=e.getSourceFileOfNode(t);if(!QS(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start;ZS(r,n,t.statement.pos-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(t);case 244:return function(t){var n;tT(t);var i=!1,a=ib(t.expression),o=cp(a);e.forEach(t.caseBlock.clauses,(function(t){if(285!==t.kind||i||(void 0===n?n=t:($S(t,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),i=!0)),r&&284===t.kind){var s=ib(t.expression),c=cp(s),u=a;c&&o||(s=c?up(s):s,u=up(a)),Mh(u,s)||vd(s,u,t.expression,void 0)}e.forEach(t.statements,xD),J.noFallthroughCasesInSwitch&&t.fallthroughFlowNode&&Eg(t.fallthroughFlowNode)&&cn(t,e.Diagnostics.Fallthrough_case_in_switch)})),t.caseBlock.locals&&jb(t.caseBlock)}(t);case 245:return function(t){tT(t)||e.findAncestor(t.parent,(function(r){return e.isFunctionLike(r)?"quit":245===r.kind&&r.label.escapedText===t.label.escapedText&&($S(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0)})),xD(t.statement)}(t);case 246:return Hx(t);case 247:return function(t){tT(t),$b(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration){var n=r.variableDeclaration;if(n.type){var i=Ra(n,!1);!i||3&i.flags||YS(n.type,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(n.initializer)YS(n.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var a=r.block.locals;a&&e.forEachKey(r.locals,(function(t){var r=a.get(t);r&&0!=(2&r.flags)&&$S(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)}))}}$b(r.block)}t.finallyBlock&&$b(t.finallyBlock)}(t);case 249:return lx(t);case 198:return _x(t);case 252:return function(t){t.name||e.hasSyntacticModifier(t,512)||YS(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),$x(t),e.forEach(t.members,xD),jb(t)}(t);case 253:return iD(t);case 254:return function(t){ES(t),Xx(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Tb(t),Qx(t.typeParameters),136===t.type.kind?N.has(t.name.escapedText)&&1===e.length(t.typeParameters)||cn(t.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(xD(t.type),jb(t))}(t);case 255:return function(t){if(r){ES(t),Xx(t.name,e.Diagnostics.Enum_name_cannot_be_0),ix(t,t.name),ax(t,t.name),Tb(t),t.members.forEach(cD),aD(t);var n=Ci(t);if(t===e.getDeclarationOfKind(n,t.kind)){if(n.declarations.length>1){var i=e.isEnumConst(t);e.forEach(n.declarations,(function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==i&&cn(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var a=!1;e.forEach(n.declarations,(function(t){if(255!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(a?cn(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)}))}}}(t);case 256:return uD(t);case 261:return fD(t);case 260:return function(t){if(!mD(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(ES(t),e.isInternalModuleImportEqualsDeclaration(t)||_D(t)))if(pD(t),e.hasSyntacticModifier(t,1)&&ai(t),272!==t.moduleReference.kind){var r=ti(Ci(t));if(r!==ve){if(111551&r.flags){var n=e.getFirstIdentifier(t.moduleReference);1920&ui(n,112575).flags||cn(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}788968&r.flags&&Xx(t.name,e.Diagnostics.Import_name_cannot_be_0)}t.isTypeOnly&&$S(t,e.Diagnostics.An_import_alias_cannot_use_import_type)}else!(U>=e.ModuleKind.ES2015)||t.isTypeOnly||8388608&t.flags||$S(t,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)}(t);case 267:return gD(t);case 266:return function(t){if(!mD(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var r=297===t.parent.kind?t.parent:t.parent.parent;if(256!==r.kind||e.isAmbientModule(r)){if(!ES(t)&&e.hasEffectiveModifiers(t)&&YS(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),78===t.expression.kind){var n=t.expression,i=ui(n,67108863,!0,!0,t);if(i){jg(i,n);var a=2097152&i.flags?ti(i):i;(a===ve||111551&a.flags)&&Jh(t.expression)}else Jh(t.expression);e.getEmitDeclarations(J)&&ba(t.expression,!0)}else Jh(t.expression);bD(r),8388608&t.flags&&!e.isEntityNameExpression(t.expression)&&$S(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||8388608&t.flags||(U>=e.ModuleKind.ES2015?$S(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):U===e.ModuleKind.System&&$S(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?cn(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):cn(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 231:case 248:return void tT(t);case 271:(function(e){Lb(e)})(t)}}(t),c=i}}function DD(t){e.isInJSFile(t)||$S(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function SD(t){var r=Tn(e.getSourceFileOfNode(t));if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||new e.Map;var n=P(t);r.deferredNodes.set(n,t)}}function TD(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:t.kind,pos:t.pos,end:t.end});var r=c;switch(c=t,h=0,t.kind){case 203:case 204:case 205:case 161:case 275:Jy(t);break;case 208:case 209:case 165:case 164:!function(t){e.Debug.assert(165!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=Lc(t);if(yh(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||Mc(Nc(t)),230===t.body.kind)xD(t.body);else{var i=ib(t.body),a=n&&qx(n,r);a&&ud(2==(3&r)?kb(i,t.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,t.body,t.body)}}(t);break;case 167:case 168:pb(t);break;case 221:!function(t){e.forEach(t.members,xD),jb(t)}(t);break;case 274:!function(e){ty(e)}(t);break;case 273:!function(e){ty(e.openingElement),Bm(e.closingElement.tagName)?Km(e.closingElement):ib(e.closingElement.tagName),Jm(e)}(t)}c=r,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function CD(r){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),function(r){var n=Tn(r);if(!(1&n.flags)){if(e.skipTypeChecking(r,J,t))return;!function(t){!!(8388608&t.flags)&&function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if((e.isDeclaration(i)||232===i.kind)&&eT(i))return!0}}(t)}(r),e.clear(Kr),e.clear(qr),e.clear(Wr),e.forEach(r.statements,xD),xD(r.endOfFileToken),function(e){var t=Tn(e);t.deferredNodes&&t.deferredNodes.forEach(TD)}(r),e.isExternalOrCommonJsModule(r)&&jb(r),r.isDeclarationFile||!J.noUnusedLocals&&!J.noUnusedParameters||Jb(kD(r),(function(t,r,n){!e.containsParseError(t)&&ED(r,!!(8388608&t.flags))&&Gr.add(n)})),2===J.importsNotUsedAsValues&&!r.isDeclarationFile&&e.isExternalModule(r)&&function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];(yD(i)||vD(i))&&cn(i,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}(r),e.isExternalOrCommonJsModule(r)&&bD(r),Kr.length&&(e.forEach(Kr,tx),e.clear(Kr)),qr.length&&(e.forEach(qr,rx),e.clear(qr)),Wr.length&&(e.forEach(Wr,nx),e.clear(Wr)),n.flags|=1}}(r),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function ED(t,r){if(r)return!1;switch(t){case 0:return!!J.noUnusedLocals;case 1:return!!J.noUnusedParameters;default:return e.Debug.assertNever(t)}}function kD(t){return br.get(t.path)||e.emptyArray}function ND(r,i){try{return n=i,function(r){if(AD(),r){var n=Gr.getGlobalDiagnostics(),i=n.length;CD(r);var a=Gr.getDiagnostics(r.fileName),o=Gr.getGlobalDiagnostics();if(o!==n){var s=e.relativeComplement(n,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),CD),Gr.getDiagnostics()}(r)}finally{n=void 0}}function AD(){if(!r)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function FD(e){switch(e.kind){case 159:case 252:case 253:case 254:case 255:case 331:case 324:case 325:return!0;case 262:return e.isTypeOnly;case 265:case 270:return e.parent.parent.isTypeOnly;default:return!1}}function PD(e){for(;157===e.parent.kind;)e=e.parent;return 173===e.parent.kind}function wD(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function ID(e,t){return!!wD(e,(function(e){return e===t}))}function OD(e){return void 0!==function(e){for(;157===e.parent.kind;)e=e.parent;return 260===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:266===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function MD(t){if(e.isDeclarationName(t))return Ci(t.parent);if(e.isInJSFile(t)&&201===t.parent.kind&&t.parent===t.parent.parent.left&&!e.isPrivateIdentifier(t)){var r=function(t){switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return Ci(t.parent);case 4:case 2:case 5:return Ci(t.parent.parent)}}(t);if(r)return r}if(266===t.parent.kind&&e.isEntityNameExpression(t)){var n=ui(t,2998271,!0);if(n&&n!==ve)return n}else if(!e.isPropertyAccessExpression(t)&&!e.isPrivateIdentifier(t)&&OD(t)){var i=e.getAncestor(t,260);return e.Debug.assert(void 0!==i),si(t,!0)}if(!e.isPropertyAccessExpression(t)&&!e.isPrivateIdentifier(t)){var a=function(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&195===r.kind&&r.qualifier===t)return r}(t);if(a){v_(a);var o=Tn(t).resolvedSymbol;return o===ve?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;if(function(e){for(;201===e.parent.kind;)e=e.parent;return 223===e.parent.kind}(t)){var s=0;223===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?ui(t,s):void 0;if(c)return c}if(326===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(159===t.parent.kind&&330===t.parent.parent.kind){e.Debug.assert(!e.isInJSFile(t));var u=e.getTypeParameterFromJsDoc(t.parent);return u&&u.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;if(78===t.kind){if(e.isJSXTagName(t)&&Bm(t)){var l=Km(t.parent);return l===ve?void 0:l}return ui(t,111551,!1,!0)}if(201===t.kind||157===t.kind){var _=Tn(t);return _.resolvedSymbol||(201===t.kind?yy(t):vy(t)),_.resolvedSymbol}}else{if(PD(t))return ui(t,s=173===t.parent.kind?788968:1920,!1,!0);if(function(e){for(;157===e.parent.kind;)e=e.parent;for(;201===e.parent.kind;)e=e.parent;return 302===e.parent.kind}(t))return ui(t,s=901119,!1,!0,e.getHostSignatureFromJSDoc(t))}return 172===t.parent.kind?ui(t,1):void 0}function LD(t,r){if(297===t.kind)return e.isExternalModule(t)?Ti(t.symbol):void 0;var n=t.parent,i=n.parent;if(!(16777216&t.flags)){if(M(t)){var a=Ci(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?Om(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return Ci(n.parent);if(78===t.kind){if(OD(t))return MD(t);if(198===n.kind&&196===i.kind&&t===n.propertyName){var o=_c(RD(i),t.escapedText);if(o)return o}}switch(t.kind){case 78:case 79:case 201:case 157:return MD(t);case 107:var s=e.getThisContainer(t,!1);if(e.isFunctionLike(s)){var c=Nc(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(t))return ib(t).symbol;case 187:return g_(t).symbol;case 105:return ib(t).symbol;case 132:var u=t.parent;return u&&166===u.kind?u.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(261===t.parent.kind||267===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJSFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return _i(t,t,r);if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t)return Ci(n);case 8:var l=e.isElementAccessExpression(n)?n.argumentExpression===t?tb(n.expression):void 0:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?v_(i.objectType):void 0;return l&&_c(l,e.escapeLeadingUnderscores(t.text));case 87:case 97:case 38:case 83:return Ci(t.parent);case 195:return e.isLiteralImportTypeNode(t)?LD(t.argument.literal,r):void 0;case 92:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):void 0;default:return}}}function RD(t){if(e.isSourceFile(t)&&!e.isExternalModule(t))return Se;if(16777216&t.flags)return Se;var r,n,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),a=i&&Fo(Ci(i.class));if(e.isPartOfTypeNode(t)){var o=v_(t);return a?as(o,a.thisType):o}if(e.isExpressionNode(t))return jD(t);if(a&&!i.isImplements){var s=e.firstOrUndefined(ko(a));return s?as(s,a.thisType):Se}if(FD(t))return jo(n=Ci(t));if(78===(r=t).kind&&FD(r.parent)&&e.getNameOfDeclaration(r.parent)===r)return(n=LD(t))?jo(n):Se;if(e.isDeclaration(t))return _o(n=Ci(t));if(M(t))return(n=LD(t))?_o(n):Se;if(e.isBindingPattern(t))return Ra(t.parent,!0)||Se;if(OD(t)&&(n=LD(t))){var c=jo(n);return c!==Se?c:_o(n)}return Se}function BD(t){if(e.Debug.assert(200===t.kind||199===t.kind),239===t.parent.kind)return Ih(t,vx(t.parent)||Se);if(216===t.parent.kind)return Ih(t,tb(t.parent.right)||Se);if(288===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return Ph(r,BD(r)||Se,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=BD(n)||Se,a=hx(65,i,ke,t.parent)||Se;return wh(n,i,n.elements.indexOf(t),a)}function jD(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),__(tb(t))}function JD(t){var r=Ci(t.parent);return e.hasSyntacticModifier(t,32)?_o(r):jo(r)}function zD(t){var r=t.name;switch(r.kind){case 78:return p_(e.idText(r));case 8:case 10:return p_(r.text);case 158:var n=wm(r);return kh(n,12288)?n:we;default:return e.Debug.fail("Unsupported property name.")}}function UD(t){t=tc(t);var r=e.createSymbolTable(zs(t)),n=pc(t,0).length?yt:pc(t,1).length?vt:void 0;return n&&e.forEach(zs(n),(function(e){r.has(e.escapedName)||r.set(e.escapedName,e)})),zi(r)}function VD(t){return e.typeHasCallOrConstructSignatures(t,oe)}function KD(t){if(e.isGeneratedIdentifier(t))return!1;var r=e.getParseTreeNode(t,e.isIdentifier);if(!r)return!1;var n=r.parent;return!!n&&(!((e.isPropertyAccessExpression(n)||e.isPropertyAssignment(n))&&n.name===r)&&yS(r)===ie)}function qD(t){var r=_i(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=yi(r),i=Sn(r=gi(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry(xi(r),(function(e){return(e=ei(e))&&!!(111551&e.flags)}))),i.exportsSomeValue}function WD(t,r){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var i=yS(n,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(n));if(i){if(1048576&i.flags){var a=Ti(i.exportSymbol);if(!r&&944&a.flags&&!(3&a.flags))return;i=a}var o=Ei(i);if(o){if(512&o.flags&&297===o.valueDeclaration.kind){var s=o.valueDeclaration;return s!==e.getSourceFileOfNode(n)?void 0:s}return e.findAncestor(n.parent,(function(t){return e.isModuleOrEnumDeclaration(t)&&Ci(t)===o}))}}}}function HD(t){if(t.generatedImportReference)return t.generatedImportReference;var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=yS(r);if($n(n,111551)&&!ii(n))return Jn(n)}}function GD(t){if(418&t.flags&&!e.isSourceFile(t.valueDeclaration)){var r=Sn(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||function(t){return e.isBindingElement(t.valueDeclaration)&&287===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind}(t)){var i=Tn(t.valueDeclaration);if(An(n.parent,t.escapedName,111551,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(n,!1),s=230===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||a&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function XD(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=yS(r);if(n&&GD(n))return n.valueDeclaration}}}function QD(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=Ci(r);if(n)return GD(n)}return!1}function YD(t){switch(t.kind){case 260:return $D(Ci(t)||ve);case 262:case 263:case 265:case 270:var r=Ci(t)||ve;return $D(r)&&!ii(r);case 267:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,YD));case 266:return!t.expression||78!==t.expression.kind||$D(Ci(t)||ve)}return!1}function ZD(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||297!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&($D(Ci(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference))}function $D(t){var r=ti(t);return r===ve||!!(111551&r.flags)&&(e.shouldPreserveConstEnums(J)||!eS(r))}function eS(e){return Fh(e)||!!e.constEnumOnlyModule}function tS(t,r){if(zn(t)){var n=Ci(t),i=n&&Sn(n);if(null==i?void 0:i.referenced)return!0;var a=Sn(n).target;if(a&&1&e.getEffectiveModifierFlags(t)&&111551&a.flags&&(e.shouldPreserveConstEnums(J)||!eS(a)))return!0}return!!r&&!!e.forEachChild(t,(function(e){return tS(e,r)}))}function rS(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=Pc(Ci(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function nS(t){return!(!K||Sc(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,92))}function iS(t){return K&&Sc(t)&&!t.initializer&&e.hasSyntacticModifier(t,92)}function aS(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=Ci(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(bi(n),(function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)}))}function oS(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=Ci(r);return n&&zs(_o(n))||e.emptyArray}function sS(e){return Tn(e).flags||0}function cS(e){return aD(e.parent),Tn(e).enumMemberValue}function uS(e){switch(e.kind){case 291:case 201:case 202:return!0}return!1}function lS(t){if(291===t.kind)return cS(t);var r=Tn(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return cS(n)}}function _S(e){return!!(524288&e.flags)&&pc(e,0).length>0}function dS(t,r){var n,i=e.getParseTreeNode(t,e.isEntityName);if(!i)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var a=ui(i,111551,!0,!0,r),o=(null===(n=null==a?void 0:a.declarations)||void 0===n?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))||!1,s=a&&2097152&a.flags?ti(a):a,c=ui(i,788968,!0,!1,r);if(s&&s===c){var u=Au(!1);if(u&&s===u)return e.TypeReferenceSerializationKind.Promise;var l=_o(s);if(l&&xo(l))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!c)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var _=jo(c);return _===Se?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&_.flags?e.TypeReferenceSerializationKind.ObjectType:kh(_,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:kh(_,528)?e.TypeReferenceSerializationKind.BooleanType:kh(_,296)?e.TypeReferenceSerializationKind.NumberLikeType:kh(_,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:kh(_,402653316)?e.TypeReferenceSerializationKind.StringLikeType:fp(_)?e.TypeReferenceSerializationKind.ArrayLikeType:kh(_,12288)?e.TypeReferenceSerializationKind.ESSymbolType:_S(_)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Zd(_)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function pS(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(128);var s=Ci(o),c=!s||133120&s.flags?Se:lp(_o(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=Cp(c)),$.typeToTypeNode(c,r,1024|n,i)}function fS(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(128);var o=Nc(a);return $.typeToTypeNode(Mc(o),r,1024|n,i)}function gS(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(128);var o=Jp(jD(a));return $.typeToTypeNode(o,r,1024|n,i)}function mS(t){return ee.has(e.escapeLeadingUnderscores(t))}function yS(t,r){var n=Tn(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=Ca(a))}return An(i,t.escapedText,3257279,void 0,void 0,!0)}function vS(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=yS(r);if(n)return Pi(n).valueDeclaration}}}function hS(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&d_(_o(Ci(t)))}function bS(t,r){return function(t,r,n){var i=1024&t.flags?$.symbolToExpression(t.symbol,111551,r,void 0,n):t===Re?e.factory.createTrue():t===Me&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}(_o(Ci(t)),t,r)}function xS(t){return t?(on(t),e.getSourceFileOfNode(t).localJsxFactory||rr):rr}function DS(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var n=r.pragmas.get("jsxfrag"),i=e.isArray(n)?n[0]:n;if(i)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,z),r.localJsxFragmentFactory}}if(J.jsxFragmentFactory)return e.parseIsolatedEntityName(J.jsxFragmentFactory,z)}function SS(t){var r=256===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=di(r,r,void 0);if(n)return e.getDeclarationOfKind(n,297)}function TS(t,r){if((i&r)!==r&&J.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,J)&&!(8388608&t.flags)){var a=function(t,r){s||(s=pi(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||ve);return s}(n,t);if(a!==ve)for(var o=r&~i,c=1;c<=2097152;c<<=1)if(o&c){var u=CS(c);En(a.exports,e.escapeLeadingUnderscores(u),111551)||cn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,u)}i|=r}}}function CS(t){switch(t){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 ES(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 165!==t.kind||e.nodeIsPresent(t.body)?YS(t,e.Diagnostics.Decorators_are_not_valid_here):YS(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(167===t.kind||168===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return YS(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||function(t){var r,n,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 167:case 168:case 166:case 163:case 162:case 165:case 164:case 171:case 256:case 261:case 260:case 267:case 266:case 208:case 209:case 160:return!1;default:if(257===t.parent.kind||297===t.parent.kind)return!1;switch(t.kind){case 251:return kS(t,129);case 252:case 175:return kS(t,125);case 253:case 232:case 254:return!0;case 255:return kS(t,84);default:e.Debug.fail()}}}(t)?YS(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,u=t.modifiers;c<u.length;c++){var l=u[c];if(142!==l.kind){if(162===t.kind||164===t.kind)return $S(l,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(l.kind));if(171===t.kind)return $S(l,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(l.kind))}switch(l.kind){case 84:if(255!==t.kind)return $S(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(84));break;case 122:case 121:case 120:var _=fa(e.modifierToFlag(l.kind));if(28&s)return $S(l,e.Diagnostics.Accessibility_modifier_already_seen);if(32&s)return $S(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"static");if(64&s)return $S(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"readonly");if(256&s)return $S(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"async");if(257===t.parent.kind||297===t.parent.kind)return $S(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,_);if(128&s)return 120===l.kind?$S(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,_,"abstract"):$S(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"abstract");if(e.isPrivateIdentifierPropertyDeclaration(t))return $S(l,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);s|=e.modifierToFlag(l.kind);break;case 123:if(32&s)return $S(l,e.Diagnostics._0_modifier_already_seen,"static");if(64&s)return $S(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return $S(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(257===t.parent.kind||297===t.parent.kind)return $S(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(160===t.kind)return $S(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return $S(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(e.isPrivateIdentifierPropertyDeclaration(t))return $S(l,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"static");s|=32,r=l;break;case 142:if(64&s)return $S(l,e.Diagnostics._0_modifier_already_seen,"readonly");if(163!==t.kind&&162!==t.kind&&171!==t.kind&&160!==t.kind)return $S(l,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64,a=l;break;case 92:if(1&s)return $S(l,e.Diagnostics._0_modifier_already_seen,"export");if(2&s)return $S(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return $S(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return $S(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(t.parent))return $S(l,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(160===t.kind)return $S(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 87:var d=297===t.parent.kind?t.parent:t.parent.parent;if(256===d.kind&&!e.isAmbientModule(d))return $S(l,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);s|=512;break;case 133:if(2&s)return $S(l,e.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return $S(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(e.isClassLike(t.parent)&&!e.isPropertyDeclaration(t))return $S(l,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(160===t.kind)return $S(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(8388608&t.parent.flags&&257===t.parent.kind)return $S(l,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierPropertyDeclaration(t))return $S(l,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");s|=2,n=l;break;case 125:if(128&s)return $S(l,e.Diagnostics._0_modifier_already_seen,"abstract");if(252!==t.kind&&175!==t.kind){if(165!==t.kind&&163!==t.kind&&167!==t.kind&&168!==t.kind)return $S(l,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(252!==t.parent.kind||!e.hasSyntacticModifier(t.parent,128))return $S(l,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return $S(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return $S(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(256&s&&i)return $S(i,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract")}if(e.isNamedDeclaration(t)&&79===t.name.kind)return $S(l,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");s|=128;break;case 129:if(256&s)return $S(l,e.Diagnostics._0_modifier_already_seen,"async");if(2&s||8388608&t.parent.flags)return $S(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(160===t.kind)return $S(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(128&s)return $S(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");s|=256,i=l}}if(166===t.kind)return 32&s?$S(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&s?$S(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&s?$S(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&s)&&$S(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly");if((261===t.kind||260===t.kind)&&2&s)return $S(n,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare");if(160===t.kind&&92&s&&e.isBindingPattern(t.name))return $S(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern);if(160===t.kind&&92&s&&t.dotDotDotToken)return $S(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter);if(256&s)return function(t,r){switch(t.kind){case 165:case 251:case 208:case 209:return!1}return $S(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}(t,i);return!1}(t)}function kS(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function NS(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&ZS(t[0],t.end-",".length,",".length,r)}function AS(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return ZS(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function FS(t){if(z>=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=(a=t.parameters,e.filter(a,(function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})));if(e.length(n)){e.forEach(n,(function(t){e.addRelatedInfo(cn(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))}));var i=n.map((function(t,r){return 0===r?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)}));return e.addRelatedInfo.apply(void 0,__spreadArray([cn(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],i)),!0}}}var a;return!1}function PS(t){var r=e.getSourceFileOfNode(t);return ES(t)||AS(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i<n;i++){var a=t[i];if(a.dotDotDotToken){if(i!==n-1)return $S(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(8388608&a.flags||NS(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),a.questionToken)return $S(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return $S(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(Sc(a)){if(r=!0,a.questionToken&&a.initializer)return $S(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!a.initializer)return $S(a.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(t.parameters)||function(t,r){if(!e.isArrowFunction(t))return!1;var n=t.equalsGreaterThanToken,i=e.getLineAndCharacterOfPosition(r,n.pos).line,a=e.getLineAndCharacterOfPosition(r,n.end).line;return i!==a&&$S(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,r)||e.isFunctionLikeDeclaration(t)&&FS(t)}function wS(t,r){return NS(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return ZS(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function IS(t){return function(t){if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(222===i.kind)return ZS(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}(t)}function OS(t){var r=t.types;if(NS(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return ZS(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,MS)}function MS(e){return wS(e,e.typeArguments)}function LS(t){if(158!==t.kind)return!1;var r=t;return 216===r.expression.kind&&27===r.expression.operatorToken.kind&&$S(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function RS(t){if(t.asteriskToken){if(e.Debug.assert(251===t.kind||208===t.kind||165===t.kind),8388608&t.flags)return $S(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return $S(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function BS(e,t){return!!e&&$S(e,t)}function jS(e,t){return!!e&&$S(e,t)}function JS(t){if(tT(t))return!0;if(239===t.kind&&t.awaitModifier&&!(32768&t.flags)){var r=e.getSourceFileOfNode(t);if(e.isInTopLevelContext(t))QS(r)||(e.isEffectiveExternalModule(r,J)||Gr.add(e.createDiagnosticForNode(t.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)),(U!==e.ModuleKind.ESNext&&U!==e.ModuleKind.System||z<4)&&Gr.add(e.createDiagnosticForNode(t.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(!QS(r)){var n=e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),i=e.getContainingFunction(t);if(i&&166!==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(n,a)}return Gr.add(n),!0}return!1}if(250===t.initializer.kind){var o=t.initializer;if(!GS(o)){var s=o.declarations;if(!s.length)return!1;if(s.length>1){n=238===t.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;return YS(o.declarations[1],n)}var c=s[0];if(c.initializer){var n=238===t.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 $S(c.name,n)}if(c.type)return $S(c,n=238===t.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 zS(t){if(t.parameters.length===(167===t.kind?1:2))return e.getThisParameter(t)}function US(t,r){if(function(t){return e.isDynamicName(t)&&!Qo(t)}(t))return $S(t,r)}function VS(t){if(PS(t))return!0;if(165===t.kind){if(200===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||129!==e.first(t.modifiers).kind))return YS(t,e.Diagnostics.Modifiers_cannot_appear_here);if(BS(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(jS(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return ZS(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(RS(t))return!0}if(e.isClassLike(t.parent)){if(8388608&t.flags)return US(t.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(165===t.kind&&!t.body)return US(t.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(253===t.parent.kind)return US(t.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(177===t.parent.kind)return US(t.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 KS(t){return e.isStringOrNumericLiteralLike(t)||214===t.kind&&40===t.operator&&8===t.operand.kind}function qS(t){var r,n=t.initializer;if(n){var i=!(KS(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&KS(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&Jh(t).flags)}(n)||109===n.kind||94===n.kind||(r=n,9===r.kind||214===r.kind&&40===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return $S(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return $S(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!a||i)return $S(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function WS(t){if(78===t.kind){if("__esModule"===e.idText(t))return function(t,r,n,i,a,o){if(!QS(e.getSourceFileOfNode(r)))return sn(t,r,n,i,a,o),!0;return!1}("noEmit",t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];if(!e.isOmittedExpression(i))return WS(i.name)}return!1}function HS(t){if(78===t.kind){if(118===t.originalKeywordKind)return $S(t,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];e.isOmittedExpression(i)||HS(i.name)}return!1}function GS(t){var r=t.declarations;return!!NS(t.declarations)||!t.declarations.length&&ZS(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function XS(e){switch(e.kind){case 234:case 235:case 236:case 243:case 237:case 238:case 239:return!1;case 245:return XS(e.parent)}return!0}function QS(e){return e.parseDiagnostics.length>0}function YS(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!QS(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Gr.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function ZS(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!QS(c)&&(Gr.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function $S(t,r,n,i,a){return!QS(e.getSourceFileOfNode(t))&&(Gr.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function eT(t){return 253!==t.kind&&254!==t.kind&&261!==t.kind&&260!==t.kind&&267!==t.kind&&266!==t.kind&&259!==t.kind&&!e.hasSyntacticModifier(t,515)&&YS(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function tT(t){if(8388608&t.flags){if(!Tn(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return Tn(t).hasReportedStatementInAmbientContext=YS(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(230===t.parent.kind||257===t.parent.kind||297===t.parent.kind){var r=Tn(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=YS(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function rT(t){if(32&t.numericLiteralFlags){var r=void 0;if(z>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,191)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,291)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&40===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return $S(n?t.parent:t,r,i)}}return function(t){if(16&t.numericLiteralFlags||t.text.length<=15||-1!==t.text.indexOf("."))return;var r=+e.getTextOfNode(t);if(r<=Math.pow(2,53)-1&&r+1>r)return;un(!1,e.createDiagnosticForNode(t,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}(t),!1}function nT(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=zs(t);if(a){var o=Of(a,r);if(o)return Id(r,e.map(o,(function(e){return[function(){return _o(e)},e.escapedName]})),n,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"}(k||(k={})),e.signatureHasRestParameter=B,e.signatureHasLiteralTypes=j}(ts||(ts={})),function(e){var t=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function r(t,r,n,i){if(void 0===t||void 0===r)return t;var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||c)(o):o,e.Debug.assertNode(a,n),a):void 0}function n(t,r,n,i,a){if(void 0===t||void 0===r)return t;var o,s,c=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>c-i)&&(a=c-i);var u=-1,l=-1;(i>0||a<c)&&(o=[],s=t.hasTrailingComma&&i+a===c);for(var _=0;_<a;_++){var d=t[_+i],p=void 0!==d?r(d):void 0;if((void 0!==o||void 0===p||p!==d)&&(void 0===o&&(o=t.slice(0,_),s=t.hasTrailingComma,u=t.pos,l=t.end),p))if(e.isArray(p))for(var f=0,g=p;f<g.length;f++){var m=g[f];e.Debug.assertNode(m,n),o.push(m)}else e.Debug.assertNode(p,n),o.push(p)}if(o){var y=e.factory.createNodeArray(o,s);return e.setTextRangePosEnd(y,u,l),y}return t}function i(t,r,i,a,o,s){return void 0===s&&(s=n),i.startLexicalEnvironment(),t=s(t,r,e.isStatement,a),o&&(t=i.factory.ensureUseStrict(t)),e.factory.mergeLexicalEnvironment(t,i.endLexicalEnvironment())}function a(t,r,i,a){var s;return void 0===a&&(a=n),i.startLexicalEnvironment(),t&&(i.setLexicalEnvironmentFlags(1,!0),s=a(t,r,e.isParameterDeclaration),2&i.getLexicalEnvironmentFlags()&&e.getEmitScriptTarget(i.getCompilerOptions())>=2&&(s=function(t,r){for(var n,i=0;i<t.length;i++){var a=t[i],s=o(a,r);(n||s!==a)&&(n||(n=t.slice(0,i)),n[i]=s)}if(n)return e.setTextRange(r.factory.createNodeArray(n,t.hasTrailingComma),t);return t}(s,i)),i.setLexicalEnvironmentFlags(1,!1)),i.suspendLexicalEnvironment(),s}function o(t,r){return t.dotDotDotToken?t:e.isBindingPattern(t.name)?function(e,t){var r=t.factory;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.decorators,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(t,r):t.initializer?function(t,r,n,i){var a=i.factory;return i.addInitializationStatement(a.createIfStatement(a.createTypeCheck(a.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(a.createBlock([a.createExpressionStatement(e.setEmitFlags(e.setTextRange(a.createAssignment(e.setEmitFlags(a.cloneNode(r),48),e.setEmitFlags(n,1584|e.getEmitFlags(n))),t),1536))]),t),1953))),a.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,void 0)}(t,t.name,t.initializer,r):t}function s(t,n,i,a){void 0===a&&(a=r),i.resumeLexicalEnvironment();var o=a(t,n,e.isConciseBody),s=i.endLexicalEnvironment();if(e.some(s)){if(!o)return i.factory.createBlock(s);var c=i.factory.converters.convertToFunctionBlock(o),u=e.factory.mergeLexicalEnvironment(c.statements,s);return i.factory.updateBlock(c,u)}return o}function c(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=r,e.visitNodes=n,e.visitLexicalEnvironment=i,e.visitParameterList=a,e.visitFunctionBody=s,e.visitEachChild=function(o,c,u,l,_,d){if(void 0===l&&(l=n),void 0===d&&(d=r),void 0!==o){var p=o.kind;if(p>0&&p<=156||187===p)return o;var f=u.factory;switch(p){case 78:return f.updateIdentifier(o,l(o.typeArguments,c,t));case 157:return f.updateQualifiedName(o,d(o.left,c,e.isEntityName),d(o.right,c,e.isIdentifier));case 158:return f.updateComputedPropertyName(o,d(o.expression,c,e.isExpression));case 159:return f.updateTypeParameterDeclaration(o,d(o.name,c,e.isIdentifier),d(o.constraint,c,e.isTypeNode),d(o.default,c,e.isTypeNode));case 160:return f.updateParameterDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.dotDotDotToken,_,e.isToken),d(o.name,c,e.isBindingName),d(o.questionToken,_,e.isToken),d(o.type,c,e.isTypeNode),d(o.initializer,c,e.isExpression));case 161:return f.updateDecorator(o,d(o.expression,c,e.isExpression));case 162:return f.updatePropertySignature(o,l(o.modifiers,c,e.isToken),d(o.name,c,e.isPropertyName),d(o.questionToken,_,e.isToken),d(o.type,c,e.isTypeNode));case 163:return f.updatePropertyDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isPropertyName),d(o.questionToken||o.exclamationToken,_,e.isToken),d(o.type,c,e.isTypeNode),d(o.initializer,c,e.isExpression));case 164:return f.updateMethodSignature(o,l(o.modifiers,c,e.isModifier),d(o.name,c,e.isPropertyName),d(o.questionToken,_,e.isToken),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 165:return f.updateMethodDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.asteriskToken,_,e.isToken),d(o.name,c,e.isPropertyName),d(o.questionToken,_,e.isToken),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),s(o.body,c,u,d));case 166:return f.updateConstructorDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),a(o.parameters,c,u,l),s(o.body,c,u,d));case 167:return f.updateGetAccessorDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isPropertyName),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),s(o.body,c,u,d));case 168:return f.updateSetAccessorDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isPropertyName),a(o.parameters,c,u,l),s(o.body,c,u,d));case 169:return f.updateCallSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 170:return f.updateConstructSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 171:return f.updateIndexSignature(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 172:return f.updateTypePredicateNode(o,d(o.assertsModifier,c),d(o.parameterName,c),d(o.type,c,e.isTypeNode));case 173:return f.updateTypeReferenceNode(o,d(o.typeName,c,e.isEntityName),l(o.typeArguments,c,e.isTypeNode));case 174:return f.updateFunctionTypeNode(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 175:return f.updateConstructorTypeNode(o,l(o.modifiers,c,e.isModifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 176:return f.updateTypeQueryNode(o,d(o.exprName,c,e.isEntityName));case 177:return f.updateTypeLiteralNode(o,l(o.members,c,e.isTypeElement));case 178:return f.updateArrayTypeNode(o,d(o.elementType,c,e.isTypeNode));case 179:return f.updateTupleTypeNode(o,l(o.elements,c,e.isTypeNode));case 180:return f.updateOptionalTypeNode(o,d(o.type,c,e.isTypeNode));case 181:return f.updateRestTypeNode(o,d(o.type,c,e.isTypeNode));case 182:return f.updateUnionTypeNode(o,l(o.types,c,e.isTypeNode));case 183:return f.updateIntersectionTypeNode(o,l(o.types,c,e.isTypeNode));case 184:return f.updateConditionalTypeNode(o,d(o.checkType,c,e.isTypeNode),d(o.extendsType,c,e.isTypeNode),d(o.trueType,c,e.isTypeNode),d(o.falseType,c,e.isTypeNode));case 185:return f.updateInferTypeNode(o,d(o.typeParameter,c,e.isTypeParameterDeclaration));case 195:return f.updateImportTypeNode(o,d(o.argument,c,e.isTypeNode),d(o.qualifier,c,e.isEntityName),n(o.typeArguments,c,e.isTypeNode),o.isTypeOf);case 192:return f.updateNamedTupleMember(o,r(o.dotDotDotToken,c,e.isToken),r(o.name,c,e.isIdentifier),r(o.questionToken,c,e.isToken),r(o.type,c,e.isTypeNode));case 186:return f.updateParenthesizedType(o,d(o.type,c,e.isTypeNode));case 188:return f.updateTypeOperatorNode(o,d(o.type,c,e.isTypeNode));case 189:return f.updateIndexedAccessTypeNode(o,d(o.objectType,c,e.isTypeNode),d(o.indexType,c,e.isTypeNode));case 190:return f.updateMappedTypeNode(o,d(o.readonlyToken,_,e.isToken),d(o.typeParameter,c,e.isTypeParameterDeclaration),d(o.nameType,c,e.isTypeNode),d(o.questionToken,_,e.isToken),d(o.type,c,e.isTypeNode));case 191:return f.updateLiteralTypeNode(o,d(o.literal,c,e.isExpression));case 193:return f.updateTemplateLiteralType(o,d(o.head,c,e.isTemplateHead),l(o.templateSpans,c,e.isTemplateLiteralTypeSpan));case 194:return f.updateTemplateLiteralTypeSpan(o,d(o.type,c,e.isTypeNode),d(o.literal,c,e.isTemplateMiddleOrTemplateTail));case 196:return f.updateObjectBindingPattern(o,l(o.elements,c,e.isBindingElement));case 197:return f.updateArrayBindingPattern(o,l(o.elements,c,e.isArrayBindingElement));case 198:return f.updateBindingElement(o,d(o.dotDotDotToken,_,e.isToken),d(o.propertyName,c,e.isPropertyName),d(o.name,c,e.isBindingName),d(o.initializer,c,e.isExpression));case 199:return f.updateArrayLiteralExpression(o,l(o.elements,c,e.isExpression));case 200:return f.updateObjectLiteralExpression(o,l(o.properties,c,e.isObjectLiteralElementLike));case 201:return 32&o.flags?f.updatePropertyAccessChain(o,d(o.expression,c,e.isExpression),d(o.questionDotToken,_,e.isToken),d(o.name,c,e.isIdentifier)):f.updatePropertyAccessExpression(o,d(o.expression,c,e.isExpression),d(o.name,c,e.isIdentifierOrPrivateIdentifier));case 202:return 32&o.flags?f.updateElementAccessChain(o,d(o.expression,c,e.isExpression),d(o.questionDotToken,_,e.isToken),d(o.argumentExpression,c,e.isExpression)):f.updateElementAccessExpression(o,d(o.expression,c,e.isExpression),d(o.argumentExpression,c,e.isExpression));case 203:return 32&o.flags?f.updateCallChain(o,d(o.expression,c,e.isExpression),d(o.questionDotToken,_,e.isToken),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression)):f.updateCallExpression(o,d(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression));case 204:return f.updateNewExpression(o,d(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression));case 205:return f.updateTaggedTemplateExpression(o,d(o.tag,c,e.isExpression),n(o.typeArguments,c,e.isExpression),d(o.template,c,e.isTemplateLiteral));case 206:return f.updateTypeAssertion(o,d(o.type,c,e.isTypeNode),d(o.expression,c,e.isExpression));case 207:return f.updateParenthesizedExpression(o,d(o.expression,c,e.isExpression));case 208:return f.updateFunctionExpression(o,l(o.modifiers,c,e.isModifier),d(o.asteriskToken,_,e.isToken),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),s(o.body,c,u,d));case 209:return f.updateArrowFunction(o,l(o.modifiers,c,e.isModifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),d(o.equalsGreaterThanToken,_,e.isToken),s(o.body,c,u,d));case 210:return f.updateDeleteExpression(o,d(o.expression,c,e.isExpression));case 211:return f.updateTypeOfExpression(o,d(o.expression,c,e.isExpression));case 212:return f.updateVoidExpression(o,d(o.expression,c,e.isExpression));case 213:return f.updateAwaitExpression(o,d(o.expression,c,e.isExpression));case 214:return f.updatePrefixUnaryExpression(o,d(o.operand,c,e.isExpression));case 215:return f.updatePostfixUnaryExpression(o,d(o.operand,c,e.isExpression));case 216:return f.updateBinaryExpression(o,d(o.left,c,e.isExpression),d(o.operatorToken,_,e.isToken),d(o.right,c,e.isExpression));case 217:return f.updateConditionalExpression(o,d(o.condition,c,e.isExpression),d(o.questionToken,_,e.isToken),d(o.whenTrue,c,e.isExpression),d(o.colonToken,_,e.isToken),d(o.whenFalse,c,e.isExpression));case 218:return f.updateTemplateExpression(o,d(o.head,c,e.isTemplateHead),l(o.templateSpans,c,e.isTemplateSpan));case 219:return f.updateYieldExpression(o,d(o.asteriskToken,_,e.isToken),d(o.expression,c,e.isExpression));case 220:return f.updateSpreadElement(o,d(o.expression,c,e.isExpression));case 221:return f.updateClassExpression(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isClassElement));case 223:return f.updateExpressionWithTypeArguments(o,d(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode));case 224:return f.updateAsExpression(o,d(o.expression,c,e.isExpression),d(o.type,c,e.isTypeNode));case 225:return 32&o.flags?f.updateNonNullChain(o,d(o.expression,c,e.isExpression)):f.updateNonNullExpression(o,d(o.expression,c,e.isExpression));case 226:return f.updateMetaProperty(o,d(o.name,c,e.isIdentifier));case 228:return f.updateTemplateSpan(o,d(o.expression,c,e.isExpression),d(o.literal,c,e.isTemplateMiddleOrTemplateTail));case 230:return f.updateBlock(o,l(o.statements,c,e.isStatement));case 232:return f.updateVariableStatement(o,l(o.modifiers,c,e.isModifier),d(o.declarationList,c,e.isVariableDeclarationList));case 233:return f.updateExpressionStatement(o,d(o.expression,c,e.isExpression));case 234:return f.updateIfStatement(o,d(o.expression,c,e.isExpression),d(o.thenStatement,c,e.isStatement,f.liftToBlock),d(o.elseStatement,c,e.isStatement,f.liftToBlock));case 235:return f.updateDoStatement(o,d(o.statement,c,e.isStatement,f.liftToBlock),d(o.expression,c,e.isExpression));case 236:return f.updateWhileStatement(o,d(o.expression,c,e.isExpression),d(o.statement,c,e.isStatement,f.liftToBlock));case 237:return f.updateForStatement(o,d(o.initializer,c,e.isForInitializer),d(o.condition,c,e.isExpression),d(o.incrementor,c,e.isExpression),d(o.statement,c,e.isStatement,f.liftToBlock));case 238:return f.updateForInStatement(o,d(o.initializer,c,e.isForInitializer),d(o.expression,c,e.isExpression),d(o.statement,c,e.isStatement,f.liftToBlock));case 239:return f.updateForOfStatement(o,d(o.awaitModifier,_,e.isToken),d(o.initializer,c,e.isForInitializer),d(o.expression,c,e.isExpression),d(o.statement,c,e.isStatement,f.liftToBlock));case 240:return f.updateContinueStatement(o,d(o.label,c,e.isIdentifier));case 241:return f.updateBreakStatement(o,d(o.label,c,e.isIdentifier));case 242:return f.updateReturnStatement(o,d(o.expression,c,e.isExpression));case 243:return f.updateWithStatement(o,d(o.expression,c,e.isExpression),d(o.statement,c,e.isStatement,f.liftToBlock));case 244:return f.updateSwitchStatement(o,d(o.expression,c,e.isExpression),d(o.caseBlock,c,e.isCaseBlock));case 245:return f.updateLabeledStatement(o,d(o.label,c,e.isIdentifier),d(o.statement,c,e.isStatement,f.liftToBlock));case 246:return f.updateThrowStatement(o,d(o.expression,c,e.isExpression));case 247:return f.updateTryStatement(o,d(o.tryBlock,c,e.isBlock),d(o.catchClause,c,e.isCatchClause),d(o.finallyBlock,c,e.isBlock));case 249:return f.updateVariableDeclaration(o,d(o.name,c,e.isBindingName),d(o.exclamationToken,_,e.isToken),d(o.type,c,e.isTypeNode),d(o.initializer,c,e.isExpression));case 250:return f.updateVariableDeclarationList(o,l(o.declarations,c,e.isVariableDeclaration));case 251:return f.updateFunctionDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.asteriskToken,_,e.isToken),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),s(o.body,c,u,d));case 252:return f.updateClassDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isClassElement));case 253:return f.updateInterfaceDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isTypeElement));case 254:return f.updateTypeAliasDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),d(o.type,c,e.isTypeNode));case 255:return f.updateEnumDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.members,c,e.isEnumMember));case 256:return f.updateModuleDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),d(o.body,c,e.isModuleBody));case 257:return f.updateModuleBlock(o,l(o.statements,c,e.isStatement));case 258:return f.updateCaseBlock(o,l(o.clauses,c,e.isCaseOrDefaultClause));case 259:return f.updateNamespaceExportDeclaration(o,d(o.name,c,e.isIdentifier));case 260:return f.updateImportEqualsDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),o.isTypeOnly,d(o.name,c,e.isIdentifier),d(o.moduleReference,c,e.isModuleReference));case 261:return f.updateImportDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.importClause,c,e.isImportClause),d(o.moduleSpecifier,c,e.isExpression));case 262:return f.updateImportClause(o,o.isTypeOnly,d(o.name,c,e.isIdentifier),d(o.namedBindings,c,e.isNamedImportBindings));case 263:return f.updateNamespaceImport(o,d(o.name,c,e.isIdentifier));case 269:return f.updateNamespaceExport(o,d(o.name,c,e.isIdentifier));case 264:return f.updateNamedImports(o,l(o.elements,c,e.isImportSpecifier));case 265:return f.updateImportSpecifier(o,d(o.propertyName,c,e.isIdentifier),d(o.name,c,e.isIdentifier));case 266:return f.updateExportAssignment(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.expression,c,e.isExpression));case 267:return f.updateExportDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),o.isTypeOnly,d(o.exportClause,c,e.isNamedExportBindings),d(o.moduleSpecifier,c,e.isExpression));case 268:return f.updateNamedExports(o,l(o.elements,c,e.isExportSpecifier));case 270:return f.updateExportSpecifier(o,d(o.propertyName,c,e.isIdentifier),d(o.name,c,e.isIdentifier));case 272:return f.updateExternalModuleReference(o,d(o.expression,c,e.isExpression));case 273:return f.updateJsxElement(o,d(o.openingElement,c,e.isJsxOpeningElement),l(o.children,c,e.isJsxChild),d(o.closingElement,c,e.isJsxClosingElement));case 274:return f.updateJsxSelfClosingElement(o,d(o.tagName,c,e.isJsxTagNameExpression),l(o.typeArguments,c,e.isTypeNode),d(o.attributes,c,e.isJsxAttributes));case 275:return f.updateJsxOpeningElement(o,d(o.tagName,c,e.isJsxTagNameExpression),l(o.typeArguments,c,e.isTypeNode),d(o.attributes,c,e.isJsxAttributes));case 276:return f.updateJsxClosingElement(o,d(o.tagName,c,e.isJsxTagNameExpression));case 277:return f.updateJsxFragment(o,d(o.openingFragment,c,e.isJsxOpeningFragment),l(o.children,c,e.isJsxChild),d(o.closingFragment,c,e.isJsxClosingFragment));case 280:return f.updateJsxAttribute(o,d(o.name,c,e.isIdentifier),d(o.initializer,c,e.isStringLiteralOrJsxExpression));case 281:return f.updateJsxAttributes(o,l(o.properties,c,e.isJsxAttributeLike));case 282:return f.updateJsxSpreadAttribute(o,d(o.expression,c,e.isExpression));case 283:return f.updateJsxExpression(o,d(o.expression,c,e.isExpression));case 284:return f.updateCaseClause(o,d(o.expression,c,e.isExpression),l(o.statements,c,e.isStatement));case 285:return f.updateDefaultClause(o,l(o.statements,c,e.isStatement));case 286:return f.updateHeritageClause(o,l(o.types,c,e.isExpressionWithTypeArguments));case 287:return f.updateCatchClause(o,d(o.variableDeclaration,c,e.isVariableDeclaration),d(o.block,c,e.isBlock));case 288:return f.updatePropertyAssignment(o,d(o.name,c,e.isPropertyName),d(o.initializer,c,e.isExpression));case 289:return f.updateShorthandPropertyAssignment(o,d(o.name,c,e.isIdentifier),d(o.objectAssignmentInitializer,c,e.isExpression));case 290:return f.updateSpreadAssignment(o,d(o.expression,c,e.isExpression));case 291:return f.updateEnumMember(o,d(o.name,c,e.isPropertyName),d(o.initializer,c,e.isExpression));case 297:return f.updateSourceFile(o,i(o.statements,c,u));case 336:return f.updatePartiallyEmittedExpression(o,d(o.expression,c,e.isExpression));case 337:return f.updateCommaListExpression(o,l(o.elements,c,e.isExpression));default:return o}}}}(ts||(ts={})),function(e){e.createSourceMapGenerator=function(t,r,n,i,o){var c,u,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,_=l.enter,d=l.exit,p=[],f=[],g=new e.Map,m=[],y="",v=0,h=0,b=0,x=0,D=0,S=0,T=!1,C=0,E=0,k=0,N=0,A=0,F=0,P=!1,w=!1,I=!1;return{getSources:function(){return p},addSource:O,setSourceContent:M,addName:L,addMapping:R,appendSourceMap:function(t,r,n,i,o,s){e.Debug.assert(t>=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),_();for(var c,u=[],l=a(n.mappings),p=l.next();!p.done;p=l.next()){var f=p.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character))break;if(!o||!(f.generatedLine<o.line||o.line===f.generatedLine&&f.generatedCharacter<o.character)){var g=void 0,m=void 0,y=void 0,v=void 0;if(void 0!==f.sourceIndex){if(void 0===(g=u[f.sourceIndex])){var h=n.sources[f.sourceIndex],b=n.sourceRoot?e.combinePaths(n.sourceRoot,h):h,x=e.combinePaths(e.getDirectoryPath(i),b);u[f.sourceIndex]=g=O(x),n.sourcesContent&&"string"==typeof n.sourcesContent[f.sourceIndex]&&M(g,n.sourcesContent[f.sourceIndex])}m=f.sourceLine,y=f.sourceCharacter,n.names&&void 0!==f.nameIndex&&(c||(c=[]),void 0===(v=c[f.nameIndex])&&(c[f.nameIndex]=v=L(n.names[f.nameIndex])))}var D=f.generatedLine-(o?o.line:0),S=D+t,T=o&&o.line===f.generatedLine?f.generatedCharacter-o.character:f.generatedCharacter;R(S,0===D?T+r:T,g,m,y,v)}}d()},toJSON:j,toString:function(){return JSON.stringify(j())}};function O(r){_();var n=e.getRelativePathToDirectoryOrUrl(i,r,t.getCurrentDirectory(),t.getCanonicalFileName,!0),a=g.get(n);return void 0===a&&(a=f.length,f.push(n),p.push(r),g.set(n,a)),d(),a}function M(e,t){if(_(),null!==t){for(c||(c=[]);c.length<e;)c.push(null);c[e]=t}d()}function L(t){_(),u||(u=new e.Map);var r=u.get(t);return void 0===r&&(r=m.length,m.push(t),u.set(t,r)),d(),r}function R(t,r,n,i,a,o){e.Debug.assert(t>=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=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"),_(),(function(e,t){return!P||C!==e||E!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(N>t||N===t&&A>r)}(n,i,a))&&(B(),C=t,E=r,w=!1,I=!1,P=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,N=i,A=a,w=!0,void 0!==o&&(F=o,I=!0)),d()}function B(){if(P&&(!T||v!==C||h!==E||b!==k||x!==N||D!==A||S!==F)){if(_(),v<C)do{y+=";",v++,h=0}while(v<C);else e.Debug.assertEqual(v,C,"generatedLine cannot backtrack"),T&&(y+=",");y+=s(E-h),h=E,w&&(y+=s(k-b),b=k,y+=s(N-x),x=N,y+=s(A-D),D=A,I&&(y+=s(F-S),S=F)),T=!0,d()}}function j(){return B(),{version:3,file:r,sourceRoot:n,sources:f,names:m,mappings:y,sourcesContent:c}}};var t=/^\/\/[@#] source[M]appingURL=(.+)\s*$/,r=/^\s*(\/\/[@#] .*)?$/;function n(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,n))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,r=!1,n=0,i=0,a=0,o=0,s=0,c=0,u=0;return{get pos(){return n},get error(){return t},get state(){return l(!0,!0)},next:function(){for(;!r&&n<e.length;){var t=e.charCodeAt(n);if(59!==t){if(44!==t){var d=!1,y=!1;if(a+=m(),f())return _();if(a<0)return p("Invalid generatedCharacter found");if(!g()){if(d=!0,o+=m(),f())return _();if(o<0)return p("Invalid sourceIndex found");if(g())return p("Unsupported Format: No entries after sourceIndex");if(s+=m(),f())return _();if(s<0)return p("Invalid sourceLine found");if(g())return p("Unsupported Format: No entries after sourceLine");if(c+=m(),f())return _();if(c<0)return p("Invalid sourceCharacter found");if(!g()){if(y=!0,u+=m(),f())return _();if(u<0)return p("Invalid nameIndex found");if(!g())return p("Unsupported Error Format: Entries after nameIndex")}}return{value:l(d,y),done:r}}n++}else i++,a=0,n++}return _()}};function l(e,t){return{generatedLine:i,generatedCharacter:a,sourceIndex:e?o:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:t?u:void 0}}function _(){return r=!0,{value:void 0,done:!0}}function d(e){void 0===t&&(t=e)}function p(e){return d(e),_()}function f(){return void 0!==t}function g(){return n===e.length||44===e.charCodeAt(n)||59===e.charCodeAt(n)}function m(){for(var t,r=!0,i=0,a=0;r;n++){if(n>=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return d("Invalid character in VLQ"),-1;r=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(t){t<0?t=1+(-t<<1):t<<=1;var r,n="";do{var i=31&t;(t>>=5)>0&&(i|=32),n+=String.fromCharCode((r=i)>=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(t>0);return n}function c(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function u(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function _(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function d(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(r){return e.substring(t[r],t[r+1])}}},e.tryGetSourceMappingURL=function(e){for(var n=e.getLineCount()-1;n>=0;n--){var i=e.getLineText(n),a=t.exec(i);if(a)return a[1];if(!i.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,r,n){var i,s,f,g=e.getDirectoryPath(n),m=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,g):g,y=e.getNormalizedAbsolutePath(r.file,g),v=t.getSourceFileLike(y),h=r.sources.map((function(t){return e.getNormalizedAbsolutePath(t,m)})),b=new e.Map(h.map((function(e,r){return[t.getCanonicalFileName(e),r]})));return{getSourcePosition:function(t){var r=T();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,p,e.compareValues);n<0&&(n=~n);var i=r[n];if(void 0===i||!c(i))return t;return{fileName:h[i.sourceIndex],pos:i.sourcePosition}},getGeneratedPosition:function(r){var n=b.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=S(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,d,e.compareValues);a<0&&(a=~a);var o=i[a];if(void 0===o||o.sourceIndex!==n)return r;return{fileName:y,pos:o.generatedPosition}}};function x(n){var i,a,s=void 0!==v?e.getPositionOfLineAndCharacter(v,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(h[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function D(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,x);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: "+n.error),i=e.emptyArray):i=o}return i}function S(t){if(void 0===f){for(var r=[],n=0,i=D();n<i.length;n++){var a=i[n];if(c(a)){var o=r[a.sourceIndex];o||(r[a.sourceIndex]=o=[]),o.push(a)}}f=r.map((function(t){return e.sortAndDeduplicate(t,l,u)}))}return f[t]}function T(){if(void 0===s){for(var t=[],r=0,n=D();r<n.length;r++){var i=n[r];t.push(i)}s=e.sortAndDeduplicate(t,_,u)}return s}},e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}}(ts||(ts={})),function(e){function t(t){return(t=e.getOriginalNode(t))?e.getNodeId(t):0}function r(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function n(t){if(e.getNamespaceDeclarationNode(t))return!0;var n=t.importClause&&t.importClause.namedBindings;if(!n)return!1;if(!e.isNamedImports(n))return!1;for(var i=0,a=0,o=n.elements;a<o.length;a++){r(o[a])&&i++}return i>0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r)}(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||(n=a(s,r,n))}else if(!e.isGeneratedIdentifier(t.name)){var c=e.idText(t.name);r.get(c)||(r.set(c,!0),n=e.append(n,t.name))}return n}function o(e,t,r){var n=e[t];return n?n.push(r):e[t]=n=[r],n}function s(t){return e.isStringLiteralLike(t)||8===t.kind||e.isKeyword(t.kind)||e.isIdentifier(t)}e.getOriginalNodeId=t,e.chainBundle=function(t,r){return function(n){return 297===n.kind?r(n):function(n){return t.factory.createBundle(e.map(n.sourceFiles,r),n.prepends)}(n)}},e.getExportNeedsImportStarHelper=function(t){return!!e.getNamespaceDeclarationNode(t)},e.getImportNeedsImportStarHelper=n,e.getImportNeedsImportDefaultHelper=i,e.collectExternalModuleInfo=function(r,s,c,u){for(var l,_,d=[],p=e.createMultiMap(),f=[],g=new e.Map,m=!1,y=!1,v=!1,h=!1,b=0,x=s.statements;b<x.length;b++){var D=x[b];switch(D.kind){case 261:d.push(D),!v&&n(D)&&(v=!0),!h&&i(D)&&(h=!0);break;case 260:272===D.moduleReference.kind&&d.push(D);break;case 267:if(D.moduleSpecifier)if(D.exportClause)if(d.push(D),e.isNamedExports(D.exportClause))N(D);else{var S=D.exportClause.name;g.get(e.idText(S))||(o(f,t(D),S),g.set(e.idText(S),!0),l=e.append(l,S)),v=!0}else d.push(D),y=!0;else N(D);break;case 266:D.isExportEquals&&!_&&(_=D);break;case 232:if(e.hasSyntacticModifier(D,1))for(var T=0,C=D.declarationList.declarations;T<C.length;T++){var E=C[T];l=a(E,g,l)}break;case 251:if(e.hasSyntacticModifier(D,1))if(e.hasSyntacticModifier(D,512))m||(o(f,t(D),r.factory.getDeclarationName(D)),m=!0);else{S=D.name;g.get(e.idText(S))||(o(f,t(D),S),g.set(e.idText(S),!0),l=e.append(l,S))}break;case 252:if(e.hasSyntacticModifier(D,1))if(e.hasSyntacticModifier(D,512))m||(o(f,t(D),r.factory.getDeclarationName(D)),m=!0);else(S=D.name)&&!g.get(e.idText(S))&&(o(f,t(D),S),g.set(e.idText(S),!0),l=e.append(l,S))}}var k=e.createExternalHelpersImportDeclarationIfNeeded(r.factory,r.getEmitHelperFactory(),s,u,y,v,h);return k&&d.unshift(k),{externalImports:d,exportSpecifiers:p,exportEquals:_,hasExportStarsToExportValues:y,exportedBindings:f,exportedNames:l,externalHelpersImportDeclaration:k};function N(r){for(var n=0,i=e.cast(r.exportClause,e.isNamedExports).elements;n<i.length;n++){var a=i[n];if(!g.get(e.idText(a.name))){var s=a.propertyName||a.name;r.moduleSpecifier||p.add(e.idText(s),a);var u=c.getReferencedImportDeclaration(s)||c.getReferencedValueDeclaration(s);u&&o(f,t(u),a.name),g.set(e.idText(a.name),!0),l=e.append(l,a.name)}}}},e.isSimpleCopiableExpression=s,e.isSimpleInlineableExpression=function(t){return!e.isIdentifier(t)&&s(t)||e.isWellKnownSymbolSyntactically(t)},e.isCompoundAssignment=function(e){return e>=63&&e<=77},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 63:return 39;case 64:return 40;case 65:return 41;case 66:return 42;case 67:return 43;case 68:return 44;case 69:return 47;case 70:return 48;case 71:return 49;case 72:return 50;case 73:return 51;case 77:return 52;case 74:return 56;case 75:return 55;case 76:return 60}},e.addPrologueDirectivesAndInitialSuperCall=function(t,r,n,i){if(r.body){var a=r.body.statements,o=t.copyPrologue(a,n,!1,i);if(o===a.length)return o;var s=e.findIndex(a,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}),o);if(s>-1){for(var c=o;c<=s;c++)n.push(e.visitNode(a[c],i,e.isStatement));return s+1}return o}return 0},e.getProperties=function(t,r,n){return e.filter(t.members,(function(t){return function(t,r,n){return e.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&e.hasStaticModifier(t)===n}(t,r,n)}))},e.isInitializedProperty=function(e){return 163===e.kind&&void 0!==e.initializer}}(ts||(ts={})),function(e){function t(r,n){var i=e.getTargetOfBindingOrAssignmentElement(r);return e.isBindingOrAssignmentPattern(i)?function(r,n){for(var i=e.getElementsOfBindingOrAssignmentPattern(r),a=0,o=i;a<o.length;a++){if(t(o[a],n))return!0}return!1}(i,n):!!e.isIdentifier(i)&&i.escapedText===n}function r(t){var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&e.isComputedPropertyName(n)&&!e.isLiteralExpression(n.expression))return!0;var i,a=e.getTargetOfBindingOrAssignmentElement(t);return!!a&&e.isBindingOrAssignmentPattern(a)&&(i=a,!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(i),r))}function n(t,r,s,c,u){var l=e.getTargetOfBindingOrAssignmentElement(r);if(!u){var _=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(r),t.visitor,e.isExpression);_?s?(s=function(e,t,r,n){return t=o(e,t,!0,n),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}(t,s,_,c),!e.isSimpleInlineableExpression(_)&&e.isBindingOrAssignmentPattern(l)&&(s=o(t,s,!0,c))):s=_:s||(s=t.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(l)?function(t,r,i,s,c){var u,l,_=e.getElementsOfBindingOrAssignmentPattern(i),d=_.length;if(1!==d){s=o(t,s,!e.isDeclarationBindingElement(r)||0!==d,c)}for(var p=0;p<d;p++){var f=_[p];if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===d-1){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,i),u=void 0);m=t.context.getEmitHelperFactory().createRestHelper(s,_,l,i);n(t,f,m,f)}}else{var g=e.getPropertyNameOfBindingOrAssignmentElement(f);if(!(t.level>=1)||24576&f.transformFlags||24576&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,i),u=void 0);var m=a(t,s,g);e.isComputedPropertyName(g)&&(l=e.append(l,m.argumentExpression)),n(t,f,m,f)}else u=e.append(u,e.visitNode(f,t.visitor))}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,i)}(t,r,l,s,c):e.isArrayBindingOrAssignmentPattern(l)?function(t,r,a,s,c){var u,l,_=e.getElementsOfBindingOrAssignmentPattern(a),d=_.length;if(t.level<1&&t.downlevelIteration)s=o(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(s,d>0&&e.getRestIndicatorOfBindingOrAssignmentElement(_[d-1])?void 0:d),c),!1,c);else if(1!==d&&(t.level<1||0===d)||e.every(_,e.isOmittedExpression)){s=o(t,s,!e.isDeclarationBindingElement(r)||0!==d,c)}for(var p=0;p<d;p++){var f=_[p];if(t.level>=1)if(16384&f.transformFlags||t.hasTransformedPriorElement&&!i(f)){t.hasTransformedPriorElement=!0;var g=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(g),l=e.append(l,[g,f]),u=e.append(u,t.createArrayBindingOrAssignmentElement(g))}else u=e.append(u,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===d-1){m=t.context.factory.createArraySliceCall(s,p);n(t,f,m,f)}}else{var m=t.context.factory.createElementAccessExpression(s,p);n(t,f,m,f)}}}u&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(u),s,c,a);if(l)for(var y=0,v=l;y<v.length;y++){var h=v[y],b=h[0];n(t,f=h[1],b,f)}}(t,r,l,s,c):t.emitBindingOrAssignment(l,s,c,r)}function i(t){var r=e.getTargetOfBindingOrAssignmentElement(t);if(!r||e.isOmittedExpression(r))return!0;var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&!e.isPropertyNameLiteral(n))return!1;var a=e.getInitializerOfBindingOrAssignmentElement(t);return!(a&&!e.isSimpleInlineableExpression(a))&&(e.isBindingOrAssignmentPattern(r)?e.every(e.getElementsOfBindingOrAssignmentPattern(r),i):e.isIdentifier(r))}function a(t,r,n){if(e.isComputedPropertyName(n)){var i=o(t,e.visitNode(n.expression,t.visitor),!1,n);return t.context.factory.createElementAccessExpression(r,i)}if(e.isStringOrNumericLiteralLike(n)){i=e.factory.cloneNode(n);return t.context.factory.createElementAccessExpression(r,i)}var a=t.context.factory.createIdentifier(e.idText(n));return t.context.factory.createPropertyAccessExpression(r,a)}function o(t,r,n,i){if(e.isIdentifier(r)&&n)return r;var a=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(a),t.emitExpression(e.setTextRange(t.context.factory.createAssignment(a,r),i))):t.emitBindingOrAssignment(a,r,i,void 0),a}function s(e){return e}!function(e){e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest"}(e.FlattenLevel||(e.FlattenLevel={})),e.flattenDestructuringAssignment=function(i,a,c,u,l,_){var d,p,f=i;if(e.isDestructuringAssignment(i))for(d=i.right;e.isEmptyArrayLiteral(i.left)||e.isEmptyObjectLiteral(i.left);){if(!e.isDestructuringAssignment(d))return e.visitNode(d,a,e.isExpression);f=i=d,d=i.right}var g={context:c,level:u,downlevelIteration:!!c.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:function(t,r,n,i){e.Debug.assertNode(t,_?e.isIdentifier:e.isExpression);var o=_?_(t,r,n):e.setTextRange(c.factory.createAssignment(e.visitNode(t,a,e.isExpression),r),n);o.original=i,m(o)},createArrayBindingOrAssignmentPattern:function(t){return function(t,r){return t.createArrayLiteralExpression(e.map(r,t.converters.convertToArrayAssignmentElement))}(c.factory,t)},createObjectBindingOrAssignmentPattern:function(t){return function(t,r){return t.createObjectLiteralExpression(e.map(r,t.converters.convertToObjectAssignmentElement))}(c.factory,t)},createArrayBindingOrAssignmentElement:s,visitor:a};if(d&&(d=e.visitNode(d,a,e.isExpression),e.isIdentifier(d)&&t(i,d.escapedText)||r(i)?d=o(g,d,!1,f):l?d=o(g,d,!0,f):e.nodeIsSynthesized(i)&&(f=d)),n(g,i,d,f,e.isDestructuringAssignment(i)),d&&l){if(!e.some(p))return d;p.push(d)}return c.factory.inlineExpressions(p)||c.factory.createOmittedExpression();function m(t){p=e.append(p,t)}},e.flattenDestructuringBinding=function(i,a,s,c,u,l,_){var d;void 0===l&&(l=!1);var p=[],f=[],g={context:s,level:c,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:l,emitExpression:function(t){d=e.append(d,t)},emitBindingOrAssignment:N,createArrayBindingOrAssignmentPattern:function(t){return function(t,r){return e.Debug.assertEachNode(r,e.isArrayBindingElement),t.createArrayBindingPattern(r)}(s.factory,t)},createObjectBindingOrAssignmentPattern:function(t){return function(t,r){return e.Debug.assertEachNode(r,e.isBindingElement),t.createObjectBindingPattern(r)}(s.factory,t)},createArrayBindingOrAssignmentElement:function(e){return function(e,t){return e.createBindingElement(void 0,void 0,t)}(s.factory,e)},visitor:a};if(e.isVariableDeclaration(i)){var m=e.getInitializerOfBindingOrAssignmentElement(i);m&&(e.isIdentifier(m)&&t(i,m.escapedText)||r(i))&&(m=o(g,e.visitNode(m,g.visitor),!1,m),i=s.factory.updateVariableDeclaration(i,i.name,void 0,void 0,m))}if(n(g,i,u,i,_),d){var y=s.factory.createTempVariable(void 0);if(l){var v=s.factory.inlineExpressions(d);d=void 0,N(y,v,void 0,void 0)}else{s.hoistVariableDeclaration(y);var h=e.last(p);h.pendingExpressions=e.append(h.pendingExpressions,s.factory.createAssignment(y,h.value)),e.addRange(h.pendingExpressions,d),h.value=y}}for(var b=0,x=p;b<x.length;b++){var D=x[b],S=D.pendingExpressions,T=D.name,C=(v=D.value,D.location),E=D.original,k=s.factory.createVariableDeclaration(T,void 0,void 0,S?s.factory.inlineExpressions(e.append(S,v)):v);k.original=E,e.setTextRange(k,C),f.push(k)}return f;function N(t,r,n,i){e.Debug.assertNode(t,e.isBindingName),d&&(r=s.factory.inlineExpressions(e.append(d,r)),d=void 0),p.push({pendingExpressions:d,name:t,value:r,location:n,original:i})}}}(ts||(ts={})),function(e){var t;function r(t){return t.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(t.text)}function n(t,r){var n=t.rawText;if(void 0===n){n=e.getSourceTextOfNodeFromSourceFile(r,t);var i=14===t.kind||17===t.kind;n=n.substring(1,n.length-(i?1:2))}return n=n.replace(/\r\n?/g,"\n"),e.setTextRange(e.factory.createStringLiteral(n),t)}!function(e){e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All"}(t=e.ProcessLevel||(e.ProcessLevel={})),e.processTaggedTemplateExpression=function(i,a,o,s,c,u){var l=e.visitNode(a.tag,o,e.isExpression),_=[void 0],d=[],p=[],f=a.template;if(u===t.LiftRestriction&&!e.hasInvalidEscape(f))return e.visitEachChild(a,o,i);if(e.isNoSubstitutionTemplateLiteral(f))d.push(r(f)),p.push(n(f,s));else{d.push(r(f.head)),p.push(n(f.head,s));for(var g=0,m=f.templateSpans;g<m.length;g++){var y=m[g];d.push(r(y.literal)),p.push(n(y.literal,s)),_.push(e.visitNode(y.expression,o,e.isExpression))}}var v=i.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(d),e.factory.createArrayLiteralExpression(p));if(e.isExternalModule(s)){var h=e.factory.createUniqueName("templateObject");c(h),_[0]=e.factory.createLogicalOr(h,e.factory.createAssignment(h,v))}else _[0]=v;return e.factory.createCallExpression(l,void 0,_)}}(ts||(ts={})),function(e){var t,r;!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"}(t||(t={})),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"}(r||(r={})),e.transformTypeScript=function(t){var r,n,i,a,o,s,c,u,l,_,d=t.factory,p=t.getEmitHelperFactory,f=t.startLexicalEnvironment,g=t.resumeLexicalEnvironment,m=t.endLexicalEnvironment,y=t.hoistVariableDeclaration,v=t.getEmitResolver(),h=t.getCompilerOptions(),b=e.getStrictOptionValue(h,"strictNullChecks"),x=e.getEmitScriptTarget(h),D=e.getEmitModuleKind(h),S=t.onEmitNode,T=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){var a=_,o=r;e.isSourceFile(n)&&(r=n);2&u&&function(t){return 256===e.getOriginalNode(t).kind}(n)&&(_|=2);8&u&&function(t){return 255===e.getOriginalNode(t).kind}(n)&&(_|=8);S(t,n,i),_=a,r=o},t.onSubstituteNode=function(t,r){if(r=T(t,r),1===t)return function(t){switch(t.kind){case 78:return function(t){return function(t){if(1&u&&33554432&v.getNodeCheckFlags(t)){var r=v.getReferencedValueDeclaration(t);if(r){var n=l[r.id];if(n){var i=d.cloneNode(n);return e.setSourceMapRange(i,t),e.setCommentRange(i,t),i}}}return}(t)||Je(t)||t}(t);case 201:case 202:return function(e){return ze(e)}(t)}return t}(r);if(e.isShorthandPropertyAssignment(r))return function(t){if(2&u){var r=t.name,n=Je(r);if(n){if(t.objectAssignmentInitializer){var i=d.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(d.createPropertyAssignment(r,i),t)}return e.setTextRange(d.createPropertyAssignment(r,n),t)}}return t}(r);return r},t.enableSubstitution(201),t.enableSubstitution(202),function(t){if(298===t.kind)return function(t){return d.createBundle(t.sourceFiles.map(C),e.mapDefined(t.prepends,(function(t){return 300===t.kind?e.createUnparsedSourceFile(t,"js"):t})))}(t);return C(t)};function C(n){if(n.isDeclarationFile)return n;r=n;var i=E(n,R);return e.addEmitHelpers(i,t.readEmitHelpers()),r=void 0,i}function E(t,r){var n=a,i=o,u=s,l=c;!function(t){switch(t.kind){case 297:case 258:case 257:case 230:a=t,o=void 0,s=void 0;break;case 252:case 251:if(e.hasSyntacticModifier(t,2))break;t.name?be(t):e.Debug.assert(252===t.kind||e.hasSyntacticModifier(t,512)),e.isClassDeclaration(t)&&(o=t)}}(t);var _=r(t);return a!==n&&(s=u),a=n,o=i,c=l,_}function k(e){return E(e,N)}function N(e){return 1&e.transformFlags?L(e):e}function A(e){return E(e,F)}function F(r){switch(r.kind){case 261:case 260:case 266:case 267:return function(r){if(e.getParseTreeNode(r)!==r)return 1&r.transformFlags?e.visitEachChild(r,k,t):r;switch(r.kind){case 261:return function(t){if(!t.importClause)return t;if(t.importClause.isTypeOnly)return;var r=e.visitNode(t.importClause,Ce,e.isImportClause);return r||1===h.importsNotUsedAsValues||2===h.importsNotUsedAsValues?d.updateImportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}(r);case 260:return Fe(r);case 266:return function(r){return v.isValueAliasDeclaration(r)?e.visitEachChild(r,k,t):void 0}(r);case 267:return function(t){if(t.isTypeOnly)return;if(!t.exportClause||e.isNamespaceExport(t.exportClause))return t;if(!v.isValueAliasDeclaration(t))return;var r=e.visitNode(t.exportClause,Ne,e.isNamedExportBindings);return r?d.updateExportDeclaration(t,void 0,void 0,t.isTypeOnly,r,t.moduleSpecifier):void 0}(r);default:e.Debug.fail("Unhandled ellided statement")}}(r);default:return N(r)}}function P(e){return E(e,w)}function w(t){if(267!==t.kind&&261!==t.kind&&262!==t.kind&&(260!==t.kind||272!==t.moduleReference.kind))return 1&t.transformFlags||e.hasSyntacticModifier(t,1)?L(t):t}function I(e){return E(e,O)}function O(t){switch(t.kind){case 166:return fe(t);case 163:return pe(t);case 171:case 167:case 168:case 165:return N(t);case 229:return t;default:return e.Debug.failBadSyntaxKind(t)}}function M(t){if(!(2270&e.modifierToFlag(t.kind)||n&&92===t.kind))return t}function L(o){if(e.isStatement(o)&&e.hasSyntacticModifier(o,2))return d.createNotEmittedStatement(o);switch(o.kind){case 92:case 87:return n?void 0:o;case 122:case 120:case 121:case 125:case 84:case 133:case 142:case 178:case 179:case 180:case 181:case 177:case 172:case 159:case 128:case 152:case 131:case 147:case 144:case 141:case 113:case 148:case 175:case 174:case 176:case 173:case 182:case 183:case 184:case 186:case 187:case 188:case 189:case 190:case 191:case 171:case 161:case 254:return;case 163:return pe(o);case 259:return;case 166:return fe(o);case 253:return d.createNotEmittedStatement(o);case 252:return function(i){if(!(J(i)||n&&e.hasSyntacticModifier(i,1)))return e.visitEachChild(i,k,t);var a=e.getProperties(i,!0,!0),o=function(t,r){var n=0;e.some(r)&&(n|=1);var i=e.getEffectiveBaseTypeNode(t);i&&103!==e.skipOuterExpressions(i.expression).kind&&(n|=64);(function(t){if(t.decorators&&t.decorators.length>0)return!0;var r=e.getFirstConstructorWithBody(t);if(r)return e.forEach(r.parameters,B);return!1})(t)&&(n|=2);e.childIsDecorated(t)&&(n|=4);Pe(t)?n|=8:!function(t){return we(t)&&e.hasSyntacticModifier(t,512)}(t)?Ie(t)&&(n|=16):n|=32;x<=1&&7&n&&(n|=128);return n}(i,a);128&o&&t.startLexicalEnvironment();var s=i.name||(5&o?d.getGeneratedNameForNode(i):void 0),c=2&o?function(r,n){var i=e.moveRangePastDecorators(r),a=function(r){if(16777216&v.getNodeCheckFlags(r)){0==(1&u)&&(u|=1,t.enableSubstitution(78),l=[]);var n=d.createUniqueName(r.name&&!e.isGeneratedIdentifier(r.name)?e.idText(r.name):"default");return l[e.getOriginalNodeId(r)]=n,y(n),n}}(r),o=d.getLocalName(r,!1,!0),s=e.visitNodes(r.heritageClauses,k,e.isHeritageClause),c=z(r),_=d.createClassExpression(void 0,void 0,n,void 0,s,c);e.setOriginalNode(_,r),e.setTextRange(_,i);var p=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(o,void 0,void 0,a?d.createAssignment(a,_):_)],1));return e.setOriginalNode(p,r),e.setTextRange(p,i),e.setCommentRange(p,r),p}(i,s):function(t,r,n){var i=128&n?void 0:e.visitNodes(t.modifiers,M,e.isModifier),a=d.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,k,e.isHeritageClause),z(t)),o=e.getEmitFlags(t);1&n&&(o|=32);return e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(i,s,o),_=[c];if(H(_,i,!1),H(_,i,!0),function(t,r){var n=function(t){var r=function(t){var r=t.decorators,n=K(e.getFirstConstructorWithBody(t));if(!r&&!n)return;return{decorators:r,parameters:n}}(t),n=W(t,t,r);if(!n)return;var i=l&&l[e.getOriginalNodeId(t)],a=d.getLocalName(t,!1,!0),o=p().createDecorateHelper(n,a),s=d.createAssignment(a,i?d.createAssignment(i,o):o);return e.setEmitFlags(s,1536),e.setSourceMapRange(s,e.moveRangePastDecorators(t)),s}(r);n&&t.push(e.setOriginalNode(d.createExpressionStatement(n),r))}(_,i),128&o){var f=e.createTokenRange(e.skipTrivia(r.text,i.members.end),19),g=d.getInternalName(i),m=d.createPartiallyEmittedExpression(g);e.setTextRangeEnd(m,f.end),e.setEmitFlags(m,1536);var h=d.createReturnStatement(m);e.setTextRangePos(h,f.pos),e.setEmitFlags(h,1920),_.push(h),e.insertStatementsAfterStandardPrologue(_,t.endLexicalEnvironment());var b=d.createImmediatelyInvokedArrowFunction(_);e.setEmitFlags(b,33554432);var D=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(i,!1,!1),void 0,void 0,b)]));e.setOriginalNode(D,i),e.setCommentRange(D,i),e.setSourceMapRange(D,e.moveRangePastDecorators(i)),e.startOnNewLine(D),_=[D]}8&o?Me(_,i):(128&o||2&o)&&(32&o?_.push(d.createExportDefault(d.getLocalName(i,!1,!0))):16&o&&_.push(d.createExternalModuleExport(d.getLocalName(i,!1,!0))));_.length>1&&(_.push(d.createEndOfDeclarationMarker(i)),e.setEmitFlags(c,4194304|e.getEmitFlags(c)));return e.singleOrMany(_)}(o);case 221:return function(r){if(!J(r))return e.visitEachChild(r,k,t);var n=d.createClassExpression(void 0,void 0,r.name,void 0,e.visitNodes(r.heritageClauses,k,e.isHeritageClause),z(r));return e.setOriginalNode(n,r),e.setTextRange(n,r),n}(o);case 286:return function(r){if(116===r.token)return;return e.visitEachChild(r,k,t)}(o);case 223:return function(t){return d.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,k,e.isLeftHandSideExpression),void 0)}(o);case 165:return function(r){if(!de(r))return;var n=d.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,_e(r),void 0,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(o);case 167:return function(r){if(!me(r))return;var n=d.updateGetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),_e(r),e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([]));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(o);case 168:return function(r){if(!me(r))return;var n=d.updateSetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),_e(r),e.visitParameterList(r.parameters,k,t),e.visitFunctionBody(r.body,k,t)||d.createBlock([]));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(o);case 251:return function(r){if(!de(r))return d.createNotEmittedStatement(r);var n=d.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([]));if(Pe(r)){var i=[n];return Me(i,r),i}return n}(o);case 208:return function(r){if(!de(r))return d.createOmittedExpression();return d.updateFunctionExpression(r,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([]))}(o);case 209:return function(r){return d.updateArrowFunction(r,e.visitNodes(r.modifiers,M,e.isModifier),void 0,e.visitParameterList(r.parameters,k,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,k,t))}(o);case 160:return function(t){if(e.parameterIsThisKeyword(t))return;var r=d.updateParameterDeclaration(t,void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression));r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32));return r}(o);case 207:return function(n){var i=e.skipOuterExpressions(n.expression,-7);if(e.isAssertionExpression(i)){var a=e.visitNode(n.expression,k,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(a,r))?d.updateParenthesizedExpression(n,a):d.createPartiallyEmittedExpression(a,n)}return e.visitEachChild(n,k,t)}(o);case 206:case 224:return function(t){var r=e.visitNode(t.expression,k,e.isExpression);return d.createPartiallyEmittedExpression(r,t)}(o);case 203:return function(t){return d.updateCallExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 204:return function(t){return d.updateNewExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 205:return function(t){return d.updateTaggedTemplateExpression(t,e.visitNode(t.tag,k,e.isExpression),void 0,e.visitNode(t.template,k,e.isExpression))}(o);case 225:return function(t){var r=e.visitNode(t.expression,k,e.isLeftHandSideExpression);return d.createPartiallyEmittedExpression(r,t)}(o);case 255:return function(t){if(!function(t){return!e.isEnumConst(t)||e.shouldPreserveConstEnums(h)}(t))return d.createNotEmittedStatement(t);var n=[],o=2,s=De(n,t);s&&(D===e.ModuleKind.System&&a===r||(o|=512));var c=Be(t),u=je(t),l=e.hasSyntacticModifier(t,1)?d.getExternalModuleOrNamespaceExportName(i,t,!1,!0):d.getLocalName(t,!1,!0),_=d.createLogicalOr(l,d.createAssignment(l,d.createObjectLiteralExpression()));if(he(t)){var p=d.getLocalName(t,!1,!0);_=d.createAssignment(p,_)}var g=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,function(t,r){var n=i;i=r;var a=[];f();var o=e.map(t.members,ve);return e.insertStatementsAfterStandardPrologue(a,m()),e.addRange(a,o),i=n,d.createBlock(e.setTextRange(d.createNodeArray(a),t.members),!0)}(t,u)),void 0,[_]));e.setOriginalNode(g,t),s&&(e.setSyntheticLeadingComments(g,void 0),e.setSyntheticTrailingComments(g,void 0));return e.setTextRange(g,t),e.addEmitFlags(g,o),n.push(g),n.push(d.createEndOfDeclarationMarker(t)),n}(o);case 232:return function(r){if(Pe(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(d.createExpressionStatement(d.inlineExpressions(e.map(n,ye))),r)}return e.visitEachChild(r,k,t)}(o);case 249:return function(t){return d.updateVariableDeclaration(t,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression))}(o);case 256:return Se(o);case 260:return Fe(o);case 274:return function(t){return d.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes))}(o);case 275:return function(t){return d.updateJsxOpeningElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes))}(o);default:return e.visitEachChild(o,k,t)}}function R(r){var n=e.getStrictOptionValue(h,"alwaysStrict")&&!(e.isExternalModule(r)&&D>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return d.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,A,t,0,n))}function B(e){return void 0!==e.decorators&&e.decorators.length>0}function j(e){return!!(2048&e.transformFlags)}function J(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,j)||e.some(t.members,j)}function z(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];e.isIdentifier(s.name)&&r.push(e.setOriginalNode(d.createPropertyDeclaration(void 0,void 0,s.name,void 0,void 0,void 0),s))}return e.addRange(r,e.visitNodes(t.members,I,e.isClassElement)),e.setTextRange(d.createNodeArray(r),t.members)}function U(t,r){return e.filter(t.members,r?function(e){return V(e,!0,t)}:function(e){return V(e,!1,t)})}function V(t,r,n){return e.nodeOrChildIsDecorated(t,n)&&r===e.hasSyntacticModifier(t,32)}function K(t){var r;if(t)for(var n=t.parameters,i=n.length>0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s<o;s++){var c=n[s+a];(r||c.decorators)&&(r||(r=new Array(o)),r[s]=c.decorators)}return r}function q(t,r){switch(r.kind){case 167:case 168:return function(t,r){if(!r.body)return;var n=e.getAllAccessorDeclarations(t.members,r),i=n.firstAccessor,a=n.secondAccessor,o=n.setAccessor,s=i.decorators?i:a&&a.decorators?a:void 0;if(!s||r!==s)return;var c=s.decorators,u=K(o);if(!c&&!u)return;return{decorators:c,parameters:u}}(t,r);case 165:return function(e){if(!e.body)return;var t=e.decorators,r=K(e);if(!t&&!r)return;return{decorators:t,parameters:r}}(r);case 163:return function(e){var t=e.decorators;if(!t)return;return{decorators:t}}(r);default:return}}function W(t,r,n){if(n){var i=[];return e.addRange(i,e.map(n.decorators,X)),e.addRange(i,e.flatMap(n.parameters,Q)),function(e,t,r){(function(e,t,r){h.emitDecoratorMetadata&&(Y(e)&&r.push(p().createMetadataHelper("design:type",ee(e))),$(e)&&r.push(p().createMetadataHelper("design:paramtypes",te(e,t))),Z(e)&&r.push(p().createMetadataHelper("design:returntype",re(e))))})(e,t,r)}(t,r,i),i}}function H(t,r,n){e.addRange(t,e.map(function(e,t){for(var r,n=U(e,t),i=0,a=n;i<a.length;i++){var o=G(e,a[i]);o&&(r?r.push(o):r=[o])}return r}(r,n),Oe))}function G(t,r){var n=W(r,t,q(t,r));if(n){var i=function(t,r){return e.hasSyntacticModifier(r,32)?d.getDeclarationName(t):function(e){return d.createPropertyAccessExpression(d.getDeclarationName(e),"prototype")}(t)}(t,r),a=le(r,!0),o=x>0?163===r.kind?d.createVoidZero():d.createNull():void 0,s=p().createDecorateHelper(n,i,a,o);return e.setTextRange(s,e.moveRangePastDecorators(r)),e.setEmitFlags(s,1536),s}}function X(t){return e.visitNode(t.expression,k,e.isExpression)}function Q(t,r){var n;if(t){n=[];for(var i=0,a=t;i<a.length;i++){var o=a[i],s=p().createParamHelper(X(o),r);e.setTextRange(s,o.expression),e.setEmitFlags(s,1536),n.push(s)}}return n}function Y(e){var t=e.kind;return 165===t||167===t||168===t||163===t}function Z(e){return 165===e.kind}function $(t){switch(t.kind){case 252:case 221:return void 0!==e.getFirstConstructorWithBody(t);case 165:case 167:case 168:return!0}return!1}function ee(t){switch(t.kind){case 163:case 160:return ne(t.type);case 168:case 167:return ne(function(t){var r=v.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)}(t));case 252:case 221:case 165:return d.createIdentifier("Function");default:return d.createVoidZero()}}function te(t,r){var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(n)for(var a=function(t,r){if(r&&167===t.kind){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n)return n.parameters}return t.parameters}(n,r),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(ne(e.getRestParameterElementType(c.type))):i.push(ee(c)))}return d.createArrayLiteralExpression(i)}function re(t){return e.isFunctionLike(t)&&t.type?ne(t.type):e.isAsyncFunction(t)?d.createIdentifier("Promise"):d.createVoidZero()}function ne(t){if(void 0===t)return d.createIdentifier("Object");switch(t.kind){case 113:case 150:case 141:return d.createVoidZero();case 186:return ne(t.type);case 174:case 175:return d.createIdentifier("Function");case 178:case 179:return d.createIdentifier("Array");case 172:case 131:return d.createIdentifier("Boolean");case 147:return d.createIdentifier("String");case 145:return d.createIdentifier("Object");case 191:switch(t.literal.kind){case 10:case 14:return d.createIdentifier("String");case 214:case 8:return d.createIdentifier("Number");case 9:return ue();case 109:case 94:return d.createIdentifier("Boolean");case 103:return d.createVoidZero();default:return e.Debug.failBadSyntaxKind(t.literal)}case 144:return d.createIdentifier("Number");case 155:return ue();case 148:return x<2?ce():d.createIdentifier("Symbol");case 173:return function(t){var r=v.getTypeReferenceSerializationKind(t.typeName,o||a);switch(r){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(t,(function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&(t.parent.trueType===t||t.parent.falseType===t)})))return d.createIdentifier("Object");var n=oe(t.typeName),i=d.createTempVariable(y);return d.createConditionalExpression(d.createTypeCheck(d.createAssignment(i,n),"function"),void 0,i,void 0,d.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return se(t.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return d.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return ue();case e.TypeReferenceSerializationKind.BooleanType:return d.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return d.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return d.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return d.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return x<2?ce():d.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return d.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return d.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return d.createIdentifier("Object");default:return e.Debug.assertNever(r)}}(t);case 183:case 182:return ie(t.types);case 184:return ie([t.trueType,t.falseType]);case 188:if(142===t.operator)return ne(t.type);break;case 176:case 189:case 190:case 177:case 128:case 152:case 187:case 195:break;case 303:case 304:case 308:case 309:case 310:break;case 305:case 306:case 307:return ne(t.type);default:return e.Debug.failBadSyntaxKind(t)}return d.createIdentifier("Object")}function ie(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];186===a.kind;)a=a.type;if(141!==a.kind&&(b||(191!==a.kind||103!==a.literal.kind)&&150!==a.kind)){var o=ne(a);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return d.createIdentifier("Object")}else r=o}}return r||d.createVoidZero()}function ae(e,t){return d.createLogicalAnd(d.createStrictInequality(d.createTypeOfExpression(e),d.createStringLiteral("undefined")),t)}function oe(e){if(78===e.kind){var t=se(e);return ae(t,t)}if(78===e.left.kind)return ae(se(e.left),se(e));var r=oe(e.left),n=d.createTempVariable(y);return d.createLogicalAnd(d.createLogicalAnd(r.left,d.createStrictInequality(d.createAssignment(n,r.right),d.createVoidZero())),d.createPropertyAccessExpression(n,e.right))}function se(t){switch(t.kind){case 78:var r=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(t),t),t.parent);return r.original=void 0,e.setParent(r,e.getParseTreeNode(a)),r;case 157:return function(e){return d.createPropertyAccessExpression(se(e.left),e.right)}(t)}}function ce(){return d.createConditionalExpression(d.createTypeCheck(d.createIdentifier("Symbol"),"function"),void 0,d.createIdentifier("Symbol"),void 0,d.createIdentifier("Object"))}function ue(){return x<99?d.createConditionalExpression(d.createTypeCheck(d.createIdentifier("BigInt"),"function"),void 0,d.createIdentifier("BigInt"),void 0,d.createIdentifier("Object")):d.createIdentifier("BigInt")}function le(t,r){var n=t.name;return e.isPrivateIdentifier(n)?d.createIdentifier(""):e.isComputedPropertyName(n)?r&&!e.isSimpleInlineableExpression(n.expression)?d.getGeneratedNameForNode(n):n.expression:e.isIdentifier(n)?d.createStringLiteral(e.idText(n)):d.cloneNode(n)}function _e(t){var r=t.name;if(e.isComputedPropertyName(r)&&(!e.hasStaticModifier(t)&&c||e.some(t.decorators))){var n=e.visitNode(r.expression,k,e.isExpression),i=e.skipPartiallyEmittedExpressions(n);if(!e.isSimpleInlineableExpression(i)){var a=d.getGeneratedNameForNode(r);return y(a),d.updateComputedPropertyName(r,d.createAssignment(a,n))}}return e.visitNode(r,k,e.isPropertyName)}function de(t){return!e.nodeIsMissing(t.body)}function pe(t){if(!(8388608&t.flags||e.hasSyntacticModifier(t,128))){var r=d.updatePropertyDeclaration(t,void 0,e.visitNodes(t.modifiers,k,e.isModifier),_e(t),void 0,void 0,e.visitNode(t.initializer,k));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}function fe(r){if(de(r))return d.updateConstructorDeclaration(r,void 0,void 0,e.visitParameterList(r.parameters,k,t),function(r,n){var i=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(!e.some(i))return e.visitFunctionBody(r,k,t);var a=[],o=0;g(),o=e.addPrologueDirectivesAndInitialSuperCall(d,n,a,k),e.addRange(a,e.map(i,ge)),e.addRange(a,e.visitNodes(r.statements,k,e.isStatement,o)),a=d.mergeLexicalEnvironment(a,m());var s=d.createBlock(e.setTextRange(d.createNodeArray(a),r.statements),!0);return e.setTextRange(s,r),e.setOriginalNode(s,r),s}(r.body,r))}function ge(t){var r=t.name;if(e.isIdentifier(r)){var n=e.setParent(e.setTextRange(d.cloneNode(r),r),r.parent);e.setEmitFlags(n,1584);var i=e.setParent(e.setTextRange(d.cloneNode(r),r),r.parent);return e.setEmitFlags(i,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(d.createExpressionStatement(d.createAssignment(e.setTextRange(d.createPropertyAccessExpression(d.createThis(),n),t.name),i)),t),e.moveRangePos(t,-1))))}}function me(t){return!(e.nodeIsMissing(t.body)&&e.hasSyntacticModifier(t,128))}function ye(r){var n=r.name;return e.isBindingPattern(n)?e.flattenDestructuringAssignment(r,k,t,0,!1,Le):e.setTextRange(d.createAssignment(Re(n),e.visitNode(r.initializer,k,e.isExpression)),r)}function ve(r){var n=le(r,!1),a=function(r){var n=v.getConstantValue(r);return void 0!==n?"string"==typeof n?d.createStringLiteral(n):d.createNumericLiteral(n):(0==(8&u)&&(u|=8,t.enableSubstitution(78)),r.initializer?e.visitNode(r.initializer,k,e.isExpression):d.createVoidZero())}(r),o=d.createAssignment(d.createElementAccessExpression(i,n),a),s=10===a.kind?o:d.createAssignment(d.createElementAccessExpression(i,o),n);return e.setTextRange(d.createExpressionStatement(e.setTextRange(s,r)),r)}function he(t){return Pe(t)||we(t)&&D!==e.ModuleKind.ES2015&&D!==e.ModuleKind.ES2020&&D!==e.ModuleKind.ESNext&&D!==e.ModuleKind.System}function be(t){s||(s=new e.Map);var r=xe(t);s.has(r)||s.set(r,t)}function xe(t){return e.Debug.assertNode(t.name,e.isIdentifier),t.name.escapedText}function De(t,r){var n=d.createVariableStatement(e.visitNodes(r.modifiers,M,e.isModifier),d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(r,!1,!0))],297===a.kind?0:1));if(e.setOriginalNode(n,r),be(r),function(e){if(s){var t=xe(e);return s.get(t)===e}return!0}(r))return 255===r.kind?e.setSourceMapRange(n.declarationList,r):e.setSourceMapRange(n,r),e.setCommentRange(n,r),e.addEmitFlags(n,4195328),t.push(n),!0;var i=d.createMergeDeclarationMarker(n);return e.setEmitFlags(i,4195840),t.push(i),!1}function Se(o){if(!function(t){var r=e.getParseTreeNode(t,e.isModuleDeclaration);return!r||e.isInstantiatedModule(r,e.shouldPreserveConstEnums(h))}(o))return d.createNotEmittedStatement(o);e.Debug.assertNode(o.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&u)&&(u|=2,t.enableSubstitution(78),t.enableSubstitution(289),t.enableEmitNotification(256));var c=[],l=2,_=De(c,o);_&&(D===e.ModuleKind.System&&a===r||(l|=512));var p=Be(o),g=je(o),y=e.hasSyntacticModifier(o,1)?d.getExternalModuleOrNamespaceExportName(i,o,!1,!0):d.getLocalName(o,!1,!0),v=d.createLogicalOr(y,d.createAssignment(y,d.createObjectLiteralExpression()));if(he(o)){var b=d.getLocalName(o,!1,!0);v=d.createAssignment(b,v)}var x=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,p)],void 0,function(t,r){var a=i,o=n,c=s;i=r,n=t,s=void 0;var u,l,_=[];if(f(),t.body)if(257===t.body.kind)E(t.body,(function(t){return e.addRange(_,e.visitNodes(t.statements,P,e.isStatement))})),u=t.body.statements,l=t.body;else{var p=Se(t.body);p&&(e.isArray(p)?e.addRange(_,p):_.push(p));var g=Te(t).body;u=e.moveRangePos(g.statements,-1)}e.insertStatementsAfterStandardPrologue(_,m()),i=a,n=o,s=c;var y=d.createBlock(e.setTextRange(d.createNodeArray(_),u),!0);e.setTextRange(y,l),t.body&&257===t.body.kind||e.setEmitFlags(y,1536|e.getEmitFlags(y));return y}(o,g)),void 0,[v]));return e.setOriginalNode(x,o),_&&(e.setSyntheticLeadingComments(x,void 0),e.setSyntheticTrailingComments(x,void 0)),e.setTextRange(x,o),e.addEmitFlags(x,l),c.push(x),c.push(d.createEndOfDeclarationMarker(o)),c}function Te(e){if(256===e.body.kind)return Te(e.body)||e.body}function Ce(t){if(!t.isTypeOnly){var r=v.isReferencedAliasDeclaration(t)?t.name:void 0,n=e.visitNode(t.namedBindings,Ee,e.isNamedImportBindings);return r||n?d.updateImportClause(t,!1,r,n):void 0}}function Ee(t){if(263===t.kind)return v.isReferencedAliasDeclaration(t)?t:void 0;var r=e.visitNodes(t.elements,ke,e.isImportSpecifier);return e.some(r)?d.updateNamedImports(t,r):void 0}function ke(e){return v.isReferencedAliasDeclaration(e)?e:void 0}function Ne(t){return e.isNamespaceExport(t)?function(t){return d.updateNamespaceExport(t,e.visitNode(t.name,k,e.isIdentifier))}(t):function(t){var r=e.visitNodes(t.elements,Ae,e.isExportSpecifier);return e.some(r)?d.updateNamedExports(t,r):void 0}(t)}function Ae(e){return v.isValueAliasDeclaration(e)?e:void 0}function Fe(n){if(!n.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(n)){var a=v.isReferencedAliasDeclaration(n);return a||1!==h.importsNotUsedAsValues?a?e.visitEachChild(n,k,t):void 0:e.setOriginalNode(e.setTextRange(d.createImportDeclaration(void 0,void 0,void 0,n.moduleReference.expression),n),n)}if(function(t){return v.isReferencedAliasDeclaration(t)||!e.isExternalModule(r)&&v.isTopLevelValueImportEqualsWithEntityName(t)}(n)){var o,s,c,u=e.createExpressionFromEntityName(d,n.moduleReference);return e.setEmitFlags(u,3584),Ie(n)||!Pe(n)?e.setOriginalNode(e.setTextRange(d.createVariableStatement(e.visitNodes(n.modifiers,M,e.isModifier),d.createVariableDeclarationList([e.setOriginalNode(d.createVariableDeclaration(n.name,void 0,void 0,u),n)])),n),n):e.setOriginalNode((o=n.name,s=u,c=n,e.setTextRange(d.createExpressionStatement(d.createAssignment(d.getNamespaceMemberName(i,o,!1,!0),s)),c)),n)}}}function Pe(t){return void 0!==n&&e.hasSyntacticModifier(t,1)}function we(t){return void 0===n&&e.hasSyntacticModifier(t,1)}function Ie(t){return we(t)&&!e.hasSyntacticModifier(t,512)}function Oe(e){return d.createExpressionStatement(e)}function Me(t,r){var n=d.createAssignment(d.getExternalModuleOrNamespaceExportName(i,r,!1,!0),d.getLocalName(r));e.setSourceMapRange(n,e.createRange(r.name?r.name.pos:r.pos,r.end));var a=d.createExpressionStatement(n);e.setSourceMapRange(a,e.createRange(-1,r.end)),t.push(a)}function Le(t,r,n){return e.setTextRange(d.createAssignment(Re(t),r),n)}function Re(e){return d.getNamespaceMemberName(i,e,!1,!0)}function Be(t){var r=d.getGeneratedNameForNode(t);return e.setSourceMapRange(r,t.name),r}function je(e){return d.getGeneratedNameForNode(e)}function Je(t){if(u&_&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=v.getReferencedExportContainer(t,!1);if(r&&297!==r.kind)if(2&_&&256===r.kind||8&_&&255===r.kind)return e.setTextRange(d.createPropertyAccessExpression(d.getGeneratedNameForNode(r),t),t)}}function ze(t){var r=function(t){if(h.isolatedModules)return;return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?v.getConstantValue(t):void 0}(t);if(void 0!==r){e.setConstantValue(t,r);var n="string"==typeof r?d.createStringLiteral(r):d.createNumericLiteral(r);if(!h.removeComments){var i=e.getOriginalNode(t,e.isAccessExpression),a=e.isPropertyAccessExpression(i)?e.declarationNameToString(i.name):e.getTextOfNode(i.argumentExpression);e.addSyntheticTrailingComment(n,3," "+a+" ")}return n}return t}}}(ts||(ts={})),function(e){var t,r;!function(e){e[e.ClassAliases=1]="ClassAliases"}(t||(t={})),function(e){e[e.InstanceField=0]="InstanceField"}(r||(r={})),e.transformClassFields=function(t){var r,n,i,a,o=t.factory,s=t.hoistVariableDeclaration,c=t.endLexicalEnvironment,u=t.resumeLexicalEnvironment,l=t.getEmitResolver(),_=t.getCompilerOptions(),d=e.getEmitScriptTarget(_),p=d<99,f=t.onSubstituteNode;t.onSubstituteNode=function(t,i){if(i=f(t,i),1===t)return function(t){switch(t.kind){case 78:return function(t){return function(t){if(1&r&&33554432&l.getNodeCheckFlags(t)){var i=l.getReferencedValueDeclaration(t);if(i){var a=n[i.id];if(a){var s=o.cloneNode(a);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}return}(t)||t}(t)}return t}(i);return i};var g,m=[];return e.chainBundle(t,(function(r){var n=t.getCompilerOptions();if(r.isDeclarationFile||n.useDefineForClassFields&&99===n.target)return r;var i=e.visitEachChild(r,y,t);return e.addEmitHelpers(i,t.readEmitHelpers()),i}));function y(c){if(!(4194304&c.transformFlags))return c;switch(c.kind){case 221:case 252:return function(c){var u=i;i=void 0,p&&(m.push(g),g=void 0);var _=e.isClassDeclaration(c)?function(r){if(!e.forEach(r.members,C))return e.visitEachChild(r,y,t);var n=e.getEffectiveBaseTypeNode(r),a=!(!n||103===e.skipOuterExpressions(n.expression).kind),s=[o.updateClassDeclaration(r,void 0,r.modifiers,r.name,void 0,e.visitNodes(r.heritageClauses,y,e.isHeritageClause),E(r,a))];e.some(i)&&s.push(o.createExpressionStatement(o.inlineExpressions(i)));var c=e.getProperties(r,!0,!0);e.some(c)&&N(s,c,o.getInternalName(r));return s}(c):function(c){if(!e.forEach(c.members,C))return e.visitEachChild(c,y,t);var u=e.isClassDeclaration(e.getOriginalNode(c)),_=e.getProperties(c,!0,!0),d=e.getEffectiveBaseTypeNode(c),p=!(!d||103===e.skipOuterExpressions(d.expression).kind),f=o.updateClassExpression(c,e.visitNodes(c.decorators,y,e.isDecorator),c.modifiers,c.name,void 0,e.visitNodes(c.heritageClauses,y,e.isHeritageClause),E(c,p));if(e.some(_)||e.some(i)){if(u)return e.Debug.assertIsDefined(a,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),a&&i&&e.some(i)&&a.push(o.createExpressionStatement(o.inlineExpressions(i))),a&&e.some(_)&&N(a,_,o.getInternalName(c)),f;var g=[],m=16777216&l.getNodeCheckFlags(c),v=o.createTempVariable(s,!!m);if(m){0==(1&r)&&(r|=1,t.enableSubstitution(78),n=[]);var h=o.cloneNode(v);h.autoGenerateFlags&=-9,n[e.getOriginalNodeId(c)]=h}return e.setEmitFlags(f,65536|e.getEmitFlags(f)),g.push(e.startOnNewLine(o.createAssignment(v,f))),e.addRange(g,e.map(i,e.startOnNewLine)),e.addRange(g,function(t,r){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=A(o,r);s&&(e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),n.push(s))}return n}(_,v)),g.push(e.startOnNewLine(v)),o.inlineExpressions(g)}return f}(c);p&&(g=m.pop());return i=u,_}(c);case 163:return b(c);case 232:return function(r){var n=a;a=[];var i=e.visitEachChild(r,y,t),o=e.some(a)?__spreadArray([i],a):i;return a=n,o}(c);case 201:return function(r){if(p&&e.isPrivateIdentifier(r.name)){var n=w(r.name);if(n)return e.setOriginalNode(x(n,r.expression),r)}return e.visitEachChild(r,y,t)}(c);case 214:return function(r){if(p&&e.isPrivateIdentifierPropertyAccessExpression(r.operand)){var n=45===r.operator?39:46===r.operator?40:void 0,i=void 0;if(n&&(i=w(r.operand.name))){var a=S(e.visitNode(r.operand.expression,y,e.isExpression)),s=a.readExpression,c=a.initializeExpression,u=o.createPrefixUnaryExpression(39,x(i,s));return e.setOriginalNode(T(i,c||s,o.createBinaryExpression(u,n,o.createNumericLiteral(1)),62),r)}}return e.visitEachChild(r,y,t)}(c);case 215:return D(c,!1);case 203:return function(r){if(p&&e.isPrivateIdentifierPropertyAccessExpression(r.expression)){var n=o.createCallBinding(r.expression,s,d),i=n.thisArg,a=n.target;return e.isCallChain(r)?o.updateCallChain(r,o.createPropertyAccessChain(e.visitNode(a,y),r.questionDotToken,"call"),void 0,void 0,__spreadArray([e.visitNode(i,y,e.isExpression)],e.visitNodes(r.arguments,y,e.isExpression))):o.updateCallExpression(r,o.createPropertyAccessExpression(e.visitNode(a,y),"call"),void 0,__spreadArray([e.visitNode(i,y,e.isExpression)],e.visitNodes(r.arguments,y,e.isExpression)))}return e.visitEachChild(r,y,t)}(c);case 216:return function(r){if(p){if(e.isDestructuringAssignment(r)){var n=i;i=void 0,r=o.updateBinaryExpression(r,e.visitNode(r.left,v),r.operatorToken,e.visitNode(r.right,y));var a=e.some(i)?o.inlineExpressions(e.compact(__spreadArray(__spreadArray([],i),[r]))):r;return i=n,a}if(e.isAssignmentExpression(r)&&e.isPrivateIdentifierPropertyAccessExpression(r.left)){var s=w(r.left.name);if(s)return e.setOriginalNode(T(s,r.left.expression,r.right,r.operatorToken.kind),r)}}return e.visitEachChild(r,y,t)}(c);case 79:return function(t){if(!p)return t;return e.setOriginalNode(o.createIdentifier(""),t)}(c);case 233:return function(r){if(e.isPostfixUnaryExpression(r.expression))return o.updateExpressionStatement(r,D(r.expression,!0));return e.visitEachChild(r,y,t)}(c);case 237:return function(r){if(r.incrementor&&e.isPostfixUnaryExpression(r.incrementor))return o.updateForStatement(r,e.visitNode(r.initializer,y,e.isForInitializer),e.visitNode(r.condition,y,e.isExpression),D(r.incrementor,!0),e.visitNode(r.statement,y,e.isStatement));return e.visitEachChild(r,y,t)}(c);case 205:return function(r){if(p&&e.isPrivateIdentifierPropertyAccessExpression(r.tag)){var n=o.createCallBinding(r.tag,s,d),i=n.thisArg,a=n.target;return o.updateTaggedTemplateExpression(r,o.createCallExpression(o.createPropertyAccessExpression(e.visitNode(a,y),"bind"),void 0,[e.visitNode(i,y,e.isExpression)]),void 0,e.visitNode(r.template,y,e.isTemplateLiteral))}return e.visitEachChild(r,y,t)}(c)}return e.visitEachChild(c,y,t)}function v(t){switch(t.kind){case 200:case 199:return function(t){return e.isArrayLiteralExpression(t)?o.updateArrayLiteralExpression(t,e.visitNodes(t.elements,O,e.isExpression)):o.updateObjectLiteralExpression(t,e.visitNodes(t.properties,M,e.isObjectLiteralElementLike))}(t);default:return y(t)}}function h(r){switch(r.kind){case 166:return;case 167:case 168:case 165:return e.visitEachChild(r,h,t);case 163:return b(r);case 158:return function(r){var n=e.visitEachChild(r,y,t);if(e.some(i)){var a=i;a.push(n.expression),i=[],n=o.updateComputedPropertyName(n,o.inlineExpressions(a))}return n}(r);case 229:return r;default:return y(r)}}function b(r){if(e.Debug.assert(!e.some(r.decorators)),!p&&e.isPrivateIdentifier(r.name))return o.updatePropertyDeclaration(r,void 0,e.visitNodes(r.modifiers,y,e.isModifier),r.name,void 0,void 0,void 0);var n=function(t,r){if(e.isComputedPropertyName(t)){var n=e.visitNode(t.expression,y,e.isExpression),i=e.skipPartiallyEmittedExpressions(n),a=e.isSimpleInlineableExpression(i);if(!(e.isAssignmentExpression(i)&&e.isGeneratedIdentifier(i.left))&&!a&&r){var c=o.getGeneratedNameForNode(t);return s(c),o.createAssignment(c,n)}return a||e.isIdentifier(i)?void 0:n}}(r.name,!!r.initializer||!!t.getCompilerOptions().useDefineForClassFields);n&&!e.isSimpleInlineableExpression(n)&&F().push(n)}function x(r,n){switch(n=e.visitNode(n,y,e.isExpression),r.placement){case 0:return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(e.nodeIsSynthesized(n)?n:o.cloneNode(n),r.weakMapName);default:return e.Debug.fail("Unexpected private identifier placement")}}function D(r,n){if(p&&e.isPrivateIdentifierPropertyAccessExpression(r.operand)){var i=45===r.operator?39:46===r.operator?40:void 0,a=void 0;if(i&&(a=w(r.operand.name))){var c=S(e.visitNode(r.operand.expression,y,e.isExpression)),u=c.readExpression,l=c.initializeExpression,_=o.createPrefixUnaryExpression(39,x(a,u)),d=n?void 0:o.createTempVariable(s);return e.setOriginalNode(o.inlineExpressions(e.compact([T(a,l||u,o.createBinaryExpression(d?o.createAssignment(d,_):_,i,o.createNumericLiteral(1)),62),d])),r)}}return e.visitEachChild(r,y,t)}function S(t){var r=e.nodeIsSynthesized(t)?t:o.cloneNode(t);if(e.isSimpleInlineableExpression(t))return{readExpression:r,initializeExpression:void 0};var n=o.createTempVariable(s);return{readExpression:n,initializeExpression:o.createAssignment(n,r)}}function T(r,n,i,a){switch(r.placement){case 0:return function(r,n,i,a){if(n=e.visitNode(n,y,e.isExpression),i=e.visitNode(i,y,e.isExpression),e.isCompoundAssignment(a)){var s=S(n),c=s.readExpression,u=s.initializeExpression;return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(u||c,r.weakMapName,o.createBinaryExpression(t.getEmitHelperFactory().createClassPrivateFieldGetHelper(c,r.weakMapName),e.getNonAssignmentOperatorForCompoundAssignment(a),i))}return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(n,r.weakMapName,i)}(r,n,i,a);default:return e.Debug.fail("Unexpected private identifier placement")}}function C(t){return e.isPropertyDeclaration(t)||p&&t.name&&e.isPrivateIdentifier(t.name)}function E(r,n){if(p)for(var i=0,a=r.members;i<a.length;i++){var s=a[i];e.isPrivateIdentifierPropertyDeclaration(s)&&P(s.name)}var l=[],_=function(r,n){var i=e.visitNode(e.getFirstConstructorWithBody(r),y,e.isConstructorDeclaration),a=r.members.filter(k);if(!e.some(a))return i;var s=e.visitParameterList(i?i.parameters:void 0,y,t),l=function(r,n,i){var a=t.getCompilerOptions().useDefineForClassFields,s=e.getProperties(r,!1,!1);a||(s=e.filter(s,(function(t){return!!t.initializer||e.isPrivateIdentifier(t.name)})));if(!n&&!e.some(s))return e.visitFunctionBody(void 0,y,t);u();var l=0,_=[];!n&&i&&_.push(o.createExpressionStatement(o.createCallExpression(o.createSuper(),void 0,[o.createSpreadElement(o.createIdentifier("arguments"))])));n&&(l=e.addPrologueDirectivesAndInitialSuperCall(o,n,_,y));if(null==n?void 0:n.body){var d=e.findIndex(n.body.statements,(function(t){return!e.isParameterPropertyDeclaration(e.getOriginalNode(t),n)}),l);-1===d&&(d=n.body.statements.length),d>l&&(a||e.addRange(_,e.visitNodes(n.body.statements,y,e.isStatement,l,d-l)),l=d)}N(_,s,o.createThis()),n&&e.addRange(_,e.visitNodes(n.body.statements,y,e.isStatement,l));return _=o.mergeLexicalEnvironment(_,c()),e.setTextRange(o.createBlock(e.setTextRange(o.createNodeArray(_),n?n.body.statements:r.members),!0),n?n.body:void 0)}(r,i,n);if(!l)return;return e.startOnNewLine(e.setOriginalNode(e.setTextRange(o.createConstructorDeclaration(void 0,void 0,null!=s?s:[],l),i||r),i))}(r,n);return _&&l.push(_),e.addRange(l,e.visitNodes(r.members,h,e.isClassElement)),e.setTextRange(o.createNodeArray(l),r.members)}function k(r){return!(!e.isPropertyDeclaration(r)||e.hasStaticModifier(r)||e.hasSyntacticModifier(e.getOriginalNode(r),128))&&(t.getCompilerOptions().useDefineForClassFields?d<99:e.isInitializedProperty(r)||p&&e.isPrivateIdentifierPropertyDeclaration(r))}function N(t,r,n){for(var i=0,a=r;i<a.length;i++){var s=a[i],c=A(s,n);if(c){var u=o.createExpressionStatement(c);e.setSourceMapRange(u,e.moveRangePastModifiers(s)),e.setCommentRange(u,s),e.setOriginalNode(u,s),t.push(u)}}}function A(r,n){var i,a=!t.getCompilerOptions().useDefineForClassFields,s=e.isComputedPropertyName(r.name)&&!e.isSimpleInlineableExpression(r.name.expression)?o.updateComputedPropertyName(r.name,o.getGeneratedNameForNode(r.name)):r.name;if(p&&e.isPrivateIdentifier(s)){var c=w(s);if(c)switch(c.placement){case 0:return function(t,r,n){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(n,"set"),void 0,[t,r||e.factory.createVoidZero()])}(n,e.visitNode(r.initializer,y,e.isExpression),c.weakMapName)}else e.Debug.fail("Undeclared private name for property declaration.")}if((!e.isPrivateIdentifier(s)||r.initializer)&&(!e.isPrivateIdentifier(s)||r.initializer)){var u=e.getOriginalNode(r);if(!e.hasSyntacticModifier(u,128)){var l=r.initializer||a?null!==(i=e.visitNode(r.initializer,y,e.isExpression))&&void 0!==i?i:o.createVoidZero():e.isParameterPropertyDeclaration(u,u.parent)&&e.isIdentifier(s)?s:o.createVoidZero();if(a||e.isPrivateIdentifier(s)){var _=e.createMemberAccessForPropertyName(o,n,s,s);return o.createAssignment(_,l)}var d=e.isComputedPropertyName(s)?s.expression:e.isIdentifier(s)?o.createStringLiteral(e.unescapeLeadingUnderscores(s.escapedText)):s,f=o.createPropertyDescriptor({value:l,configurable:!0,writable:!0,enumerable:!0});return o.createObjectDefinePropertyCall(n,d,f)}}}function F(){return i||(i=[])}function P(t){var r=e.getTextOfPropertyName(t),n=o.createUniqueName("_"+r.substring(1),24);s(n),(g||(g=new e.Map)).set(t.escapedText,{placement:0,weakMapName:n}),F().push(o.createAssignment(n,o.createNewExpression(o.createIdentifier("WeakMap"),void 0,[])))}function w(e){if(g&&(r=g.get(e.escapedText)))return r;for(var t=m.length-1;t>=0;--t){var r,n=m[t];if(n)if(r=n.get(e.escapedText))return r}}function I(r){var n=o.getGeneratedNameForNode(r),i=w(r.name);if(!i)return e.visitEachChild(r,y,t);var a=r.expression;return(e.isThisProperty(r)||e.isSuperProperty(r)||!e.isSimpleCopiableExpression(r.expression))&&(a=o.createTempVariable(s,!0),F().push(o.createBinaryExpression(a,62,r.expression))),o.createPropertyAccessExpression(o.createParenthesizedExpression(o.createObjectLiteralExpression([o.createSetAccessorDeclaration(void 0,void 0,"value",[o.createParameterDeclaration(void 0,void 0,void 0,n,void 0,void 0,void 0)],o.createBlock([o.createExpressionStatement(T(i,a,n,62))]))])),"value")}function O(t){var r=e.getTargetOfBindingOrAssignmentElement(t);if(r&&e.isPrivateIdentifierPropertyAccessExpression(r)){var n=I(r);return e.isAssignmentExpression(t)?o.updateBinaryExpression(t,n,t.operatorToken,e.visitNode(t.right,y,e.isExpression)):e.isSpreadElement(t)?o.updateSpreadElement(t,n):n}return e.visitNode(t,v)}function M(t){if(e.isPropertyAssignment(t)){var r=e.getTargetOfBindingOrAssignmentElement(t);if(r&&e.isPrivateIdentifierPropertyAccessExpression(r)){var n=e.getInitializerOfBindingOrAssignmentElement(t),i=I(r);return o.updatePropertyAssignment(t,e.visitNode(t.name,y),n?o.createAssignment(i,e.visitNode(n,y)):i)}return o.updatePropertyAssignment(t,e.visitNode(t.name,y),e.visitNode(t.initializer,v))}return e.visitNode(t,y)}}}(ts||(ts={})),function(e){var t,r;function n(t,r,n,i){var a=0!=(4096&r.getNodeCheckFlags(n)),o=[];return i.forEach((function(r,n){var i=e.unescapeLeadingUnderscores(n),s=[];s.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4)))),a&&s.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4),t.createIdentifier("v"))))),o.push(t.createPropertyAssignment(i,t.createObjectLiteralExpression(s)))})),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(o,!0)]))],2))}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"}(r||(r={})),e.transformES2017=function(t){var r,i,a,o,s=t.factory,c=t.getEmitHelperFactory,u=t.resumeLexicalEnvironment,l=t.endLexicalEnvironment,_=t.hoistVariableDeclaration,d=t.getEmitResolver(),p=t.getCompilerOptions(),f=e.getEmitScriptTarget(p),g=0,m=[],y=0,v=t.onEmitNode,h=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){if(1&r&&function(e){var t=e.kind;return 252===t||166===t||165===t||167===t||168===t}(n)){var a=6144&d.getNodeCheckFlags(n);if(a!==g){var o=g;return g=a,v(t,n,i),void(g=o)}}else if(r&&m[e.getNodeId(n)]){o=g;return g=0,v(t,n,i),void(g=o)}v(t,n,i)},t.onSubstituteNode=function(t,r){if(r=h(t,r),1===t&&g)return function(t){switch(t.kind){case 201:return j(t);case 202:return J(t);case 203:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?j(r):J(r);return s.createCallExpression(s.createPropertyAccessExpression(n,"call"),void 0,__spreadArray([s.createThis()],t.arguments))}return t}(t)}return t}(r);return r},e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;b(1,!1),b(2,!e.isEffectiveStrictModeSourceFile(r,p));var n=e.visitEachChild(r,C,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function b(e,t){y=t?y|e:y&~e}function x(e){return 0!=(y&e)}function D(){return x(2)}function S(e,t,r){var n=e&~y;if(n){b(n,!0);var i=t(r);return b(n,!1),i}return t(r)}function T(r){return e.visitEachChild(r,C,t)}function C(r){if(0==(64&r.transformFlags))return r;switch(r.kind){case 129:return;case 213:return function(r){if(!x(1))return e.visitEachChild(r,C,t);return e.setOriginalNode(e.setTextRange(s.createYieldExpression(void 0,e.visitNode(r.expression,C,e.isExpression)),r),r)}(r);case 165:return S(3,k,r);case 251:return S(3,N,r);case 208:return S(3,A,r);case 209:return S(1,F,r);case 201:return a&&e.isPropertyAccessExpression(r)&&105===r.expression.kind&&a.add(r.name.escapedText),e.visitEachChild(r,C,t);case 202:return a&&105===r.expression.kind&&(o=!0),e.visitEachChild(r,C,t);case 167:case 168:case 166:case 252:case 221:return S(3,T,r);default:return e.visitEachChild(r,C,t)}}function E(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 232:return function(r){if(w(r.declarationList)){var n=I(r.declarationList,!1);return n?s.createExpressionStatement(n):void 0}return e.visitEachChild(r,C,t)}(r);case 237:return function(t){var r=t.initializer;return s.updateForStatement(t,w(r)?I(r,!1):e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.condition,C,e.isExpression),e.visitNode(t.incrementor,C,e.isExpression),e.visitNode(t.statement,E,e.isStatement,s.liftToBlock))}(r);case 238:return function(t){return s.updateForInStatement(t,w(t.initializer)?I(t.initializer,!0):e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.expression,C,e.isExpression),e.visitNode(t.statement,E,e.isStatement,s.liftToBlock))}(r);case 239:return function(t){return s.updateForOfStatement(t,e.visitNode(t.awaitModifier,C,e.isToken),w(t.initializer)?I(t.initializer,!0):e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.expression,C,e.isExpression),e.visitNode(t.statement,E,e.isStatement,s.liftToBlock))}(r);case 287:return function(r){var n,a=new e.Set;if(P(r.variableDeclaration,a),a.forEach((function(t,r){i.has(r)&&(n||(n=new e.Set(i)),n.delete(r))})),n){var o=i;i=n;var s=e.visitEachChild(r,E,t);return i=o,s}return e.visitEachChild(r,E,t)}(r);case 230:case 244:case 258:case 284:case 285:case 247:case 235:case 236:case 234:case 243:case 245:return e.visitEachChild(r,E,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return C(r)}function k(r){return s.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?R(r):e.visitFunctionBody(r.body,C,t))}function N(r){return s.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?R(r):e.visitFunctionBody(r.body,C,t))}function A(r){return s.updateFunctionExpression(r,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?R(r):e.visitFunctionBody(r.body,C,t))}function F(r){return s.updateArrowFunction(r,e.visitNodes(r.modifiers,C,e.isModifier),void 0,e.visitParameterList(r.parameters,C,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?R(r):e.visitFunctionBody(r.body,C,t))}function P(t,r){var n=t.name;if(e.isIdentifier(n))r.add(n.escapedText);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||P(o,r)}}function w(t){return!!t&&e.isVariableDeclarationList(t)&&!(3&t.flags)&&t.declarations.some(L)}function I(t,r){!function(t){e.forEach(t.declarations,O)}(t);var n=e.getInitializedVariables(t);return 0===n.length?r?e.visitNode(s.converters.convertToAssignmentElementTarget(t.declarations[0].name),C,e.isExpression):void 0:s.inlineExpressions(e.map(n,M))}function O(t){var r=t.name;if(e.isIdentifier(r))_(r);else for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||O(a)}}function M(t){var r=e.setSourceMapRange(s.createAssignment(s.converters.convertToAssignmentElementTarget(t.name),t.initializer),t);return e.visitNode(r,C,e.isExpression)}function L(t){var r=t.name;if(e.isIdentifier(r))return i.has(r.escapedText);for(var n=0,a=r.elements;n<a.length;n++){var o=a[n];if(!e.isOmittedExpression(o)&&L(o))return!0}return!1}function R(_){u();var p=e.getOriginalNode(_,e.isFunctionLike).type,g=f<2?function(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=d.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}return}(p):void 0,y=209===_.kind,v=0!=(8192&d.getNodeCheckFlags(_)),h=i;i=new e.Set;for(var b=0,x=_.parameters;b<x.length;b++){P(x[b],i)}var S,T=a,E=o;if(y||(a=new e.Set,o=!1),y){var k=c().createAwaiterHelper(D(),v,g,B(_.body)),N=l();if(e.some(N)){O=s.converters.convertToFunctionBlock(k);S=s.updateBlock(O,e.setTextRange(s.createNodeArray(e.concatenate(N,O.statements)),O.statements))}else S=k}else{var A=[],F=s.copyPrologue(_.body.statements,A,!1,C);A.push(s.createReturnStatement(c().createAwaiterHelper(D(),v,g,B(_.body,F)))),e.insertStatementsAfterStandardPrologue(A,l());var w=f>=2&&6144&d.getNodeCheckFlags(_);if(w&&(0==(1&r)&&(r|=1,t.enableSubstitution(203),t.enableSubstitution(201),t.enableSubstitution(202),t.enableEmitNotification(252),t.enableEmitNotification(165),t.enableEmitNotification(167),t.enableEmitNotification(168),t.enableEmitNotification(166),t.enableEmitNotification(232)),a.size)){var I=n(s,d,_,a);m[e.getNodeId(I)]=!0,e.insertStatementsAfterStandardPrologue(A,[I])}var O=s.createBlock(A,!0);e.setTextRange(O,_.body),w&&o&&(4096&d.getNodeCheckFlags(_)?e.addEmitHelper(O,e.advancedAsyncSuperHelper):2048&d.getNodeCheckFlags(_)&&e.addEmitHelper(O,e.asyncSuperHelper)),S=O}return i=h,y||(a=T,o=E),S}function B(t,r){return e.isBlock(t)?s.updateBlock(t,e.visitNodes(t.statements,E,e.isStatement,r)):s.converters.convertToFunctionBlock(e.visitNode(t,E,e.isConciseBody))}function j(t){return 105===t.expression.kind?e.setTextRange(s.createPropertyAccessExpression(s.createUniqueName("_super",48),t.name),t):t}function J(t){return 105===t.expression.kind?(r=t.argumentExpression,n=t,4096&g?e.setTextRange(s.createPropertyAccessExpression(s.createCallExpression(s.createUniqueName("_superIndex",48),void 0,[r]),"value"),n):e.setTextRange(s.createCallExpression(s.createUniqueName("_superIndex",48),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=n}(ts||(ts={})),function(e){var t,r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),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"}(r||(r={})),e.transformES2018=function(t){var r=t.factory,n=t.getEmitHelperFactory,i=t.resumeLexicalEnvironment,a=t.endLexicalEnvironment,o=t.hoistVariableDeclaration,s=t.getEmitResolver(),c=t.getCompilerOptions(),u=e.getEmitScriptTarget(c),l=t.onEmitNode;t.onEmitNode=function(t,r,n){if(1&d&&function(e){var t=e.kind;return 252===t||166===t||165===t||167===t||168===t}(r)){var i=6144&s.getNodeCheckFlags(r);if(i!==h){var a=h;return h=i,l(t,r,n),void(h=a)}}else if(d&&x[e.getNodeId(r)]){a=h;return h=0,l(t,r,n),void(h=a)}l(t,r,n)};var _=t.onSubstituteNode;t.onSubstituteNode=function(t,n){if(n=_(t,n),1===t&&h)return function(t){switch(t.kind){case 201:return q(t);case 202:return W(t);case 203:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var i=e.isPropertyAccessExpression(n)?q(n):W(n);return r.createCallExpression(r.createPropertyAccessExpression(i,"call"),void 0,__spreadArray([r.createThis()],t.arguments))}return t}(t)}return t}(n);return n};var d,p,f,g,m,y,v=!1,h=0,b=0,x=[];return e.chainBundle(t,(function(n){if(n.isDeclarationFile)return n;f=n;var i=function(n){var i=D(2,e.isEffectiveStrictModeSourceFile(n,c)?0:1);v=!1;var a=e.visitEachChild(n,C,t),o=e.concatenate(a.statements,g&&[r.createVariableStatement(void 0,r.createVariableDeclarationList(g))]),s=r.updateSourceFile(a,e.setTextRange(r.createNodeArray(o),n.statements));return S(i),s}(n);return e.addEmitHelpers(i,t.readEmitHelpers()),f=void 0,g=void 0,i}));function D(e,t){var r=b;return b=3&(b&~e|t),r}function S(e){b=e}function T(t){g=e.append(g,r.createVariableDeclaration(t))}function C(e){return F(e,!1)}function E(e){return F(e,!0)}function k(e){if(129!==e.kind)return e}function N(e,t,r,n){if(function(e,t){return b!==(b&~e|t)}(r,n)){var i=D(r,n),a=e(t);return S(i),a}return e(t)}function A(r){return e.visitEachChild(r,C,t)}function F(i,a){if(0==(32&i.transformFlags))return i;switch(i.kind){case 213:return function(i){if(2&p&&1&p)return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(e.visitNode(i.expression,C,e.isExpression))),i),i);return e.visitEachChild(i,C,t)}(i);case 219:return function(i){if(2&p&&1&p){if(i.asteriskToken){var a=e.visitNode(e.Debug.assertDefined(i.expression),C,e.isExpression);return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(r.updateYieldExpression(i,i.asteriskToken,e.setTextRange(n().createAsyncDelegatorHelper(e.setTextRange(n().createAsyncValuesHelper(a),a)),a)))),i),i)}return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,O(i.expression?e.visitNode(i.expression,C,e.isExpression):r.createVoidZero())),i),i)}return e.visitEachChild(i,C,t)}(i);case 242:return function(n){if(2&p&&1&p)return r.updateReturnStatement(n,O(n.expression?e.visitNode(n.expression,C,e.isExpression):r.createVoidZero()));return e.visitEachChild(n,C,t)}(i);case 245:return function(n){if(2&p){var i=e.unwrapInnermostStatementOfLabel(n);return 239===i.kind&&i.awaitModifier?I(i,n):r.restoreEnclosingLabel(e.visitNode(i,C,e.isStatement,r.liftToBlock),n)}return e.visitEachChild(n,C,t)}(i);case 200:return function(i){if(16384&i.transformFlags){var a=function(t){for(var n,i=[],a=0,o=t;a<o.length;a++){var s=o[a];if(290===s.kind){n&&(i.push(r.createObjectLiteralExpression(n)),n=void 0);var c=s.expression;i.push(e.visitNode(c,C,e.isExpression))}else n=e.append(n,288===s.kind?r.createPropertyAssignment(s.name,e.visitNode(s.initializer,C,e.isExpression)):e.visitNode(s,C,e.isObjectLiteralElementLike))}n&&i.push(r.createObjectLiteralExpression(n));return i}(i.properties);a.length&&200!==a[0].kind&&a.unshift(r.createObjectLiteralExpression());var o=a[0];if(a.length>1){for(var s=1;s<a.length;s++)o=n().createAssignHelper([o,a[s]]);return o}return n().createAssignHelper(a)}return e.visitEachChild(i,C,t)}(i);case 216:return function(n,i){if(e.isDestructuringAssignment(n)&&16384&n.left.transformFlags)return e.flattenDestructuringAssignment(n,C,t,1,!i);if(27===n.operatorToken.kind)return r.updateBinaryExpression(n,e.visitNode(n.left,E,e.isExpression),n.operatorToken,e.visitNode(n.right,i?E:C,e.isExpression));return e.visitEachChild(n,C,t)}(i,a);case 337:return function(n,i){if(i)return e.visitEachChild(n,E,t);for(var a,o=0;o<n.elements.length;o++){var s=n.elements[o],c=e.visitNode(s,o<n.elements.length-1?E:C,e.isExpression);(a||c!==s)&&(a||(a=n.elements.slice(0,o)),a.push(c))}var u=a?e.setTextRange(r.createNodeArray(a),n.elements):n.elements;return r.updateCommaListExpression(n,u)}(i,a);case 287:return function(n){if(n.variableDeclaration&&e.isBindingPattern(n.variableDeclaration.name)&&16384&n.variableDeclaration.name.transformFlags){var i=r.getGeneratedNameForNode(n.variableDeclaration.name),a=r.updateVariableDeclaration(n.variableDeclaration,n.variableDeclaration.name,void 0,void 0,i),o=e.flattenDestructuringBinding(a,C,t,1),s=e.visitNode(n.block,C,e.isBlock);return e.some(o)&&(s=r.updateBlock(s,__spreadArray([r.createVariableStatement(void 0,o)],s.statements))),r.updateCatchClause(n,r.updateVariableDeclaration(n.variableDeclaration,i,void 0,void 0,void 0),s)}return e.visitEachChild(n,C,t)}(i);case 232:return function(r){if(e.hasSyntacticModifier(r,1)){var n=v;v=!0;var i=e.visitEachChild(r,C,t);return v=n,i}return e.visitEachChild(r,C,t)}(i);case 249:return function(e){if(v){var t=v;v=!1;var r=P(e,!0);return v=t,r}return P(e,!1)}(i);case 235:case 236:case 238:return N(A,i,0,2);case 239:return I(i,void 0);case 237:return N(w,i,0,2);case 212:return function(r){return e.visitEachChild(r,E,t)}(i);case 166:return N(M,i,2,1);case 165:return N(B,i,2,1);case 167:return N(L,i,2,1);case 168:return N(R,i,2,1);case 251:return N(j,i,2,1);case 208:return N(z,i,2,1);case 209:return N(J,i,2,0);case 160:return function(n){if(16384&n.transformFlags)return r.updateParameterDeclaration(n,void 0,void 0,n.dotDotDotToken,r.getGeneratedNameForNode(n),void 0,void 0,e.visitNode(n.initializer,C,e.isExpression));return e.visitEachChild(n,C,t)}(i);case 233:return function(r){return e.visitEachChild(r,E,t)}(i);case 207:return function(r,n){return e.visitEachChild(r,n?E:C,t)}(i,a);case 205:return function(r){return e.processTaggedTemplateExpression(t,r,C,f,T,e.ProcessLevel.LiftRestriction)}(i);case 201:return m&&e.isPropertyAccessExpression(i)&&105===i.expression.kind&&m.add(i.name.escapedText),e.visitEachChild(i,C,t);case 202:return m&&105===i.expression.kind&&(y=!0),e.visitEachChild(i,C,t);case 252:case 221:return N(A,i,2,1);default:return e.visitEachChild(i,C,t)}}function P(r,n){return e.isBindingPattern(r.name)&&16384&r.name.transformFlags?e.flattenDestructuringBinding(r,C,t,1,void 0,n):e.visitEachChild(r,C,t)}function w(t){return r.updateForStatement(t,e.visitNode(t.initializer,E,e.isForInitializer),e.visitNode(t.condition,C,e.isExpression),e.visitNode(t.incrementor,E,e.isExpression),e.visitNode(t.statement,C,e.isStatement))}function I(i,a){var s=D(0,2);16384&i.initializer.transformFlags&&(i=function(t){var n=e.skipParentheses(t.initializer);if(e.isVariableDeclarationList(n)||e.isAssignmentPattern(n)){var i=void 0,a=void 0,o=r.createTempVariable(void 0),s=[e.createForOfBindingStatement(r,n,o)];return e.isBlock(t.statement)?(e.addRange(s,t.statement.statements),i=t.statement,a=t.statement.statements):t.statement&&(e.append(s,t.statement),i=t.statement,a=t.statement),r.updateForOfStatement(t,t.awaitModifier,e.setTextRange(r.createVariableDeclarationList([e.setTextRange(r.createVariableDeclaration(o),t.initializer)],1),t.initializer),t.expression,e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(s),a),!0),i))}return t}(i));var c=i.awaitModifier?function(t,i,a){var s=e.visitNode(t.expression,C,e.isExpression),c=e.isIdentifier(s)?r.getGeneratedNameForNode(s):r.createTempVariable(void 0),u=e.isIdentifier(s)?r.getGeneratedNameForNode(c):r.createTempVariable(void 0),l=r.createUniqueName("e"),_=r.getGeneratedNameForNode(l),d=r.createTempVariable(void 0),p=e.setTextRange(n().createAsyncValuesHelper(s),t.expression),f=r.createCallExpression(r.createPropertyAccessExpression(c,"next"),void 0,[]),g=r.createPropertyAccessExpression(u,"done"),m=r.createPropertyAccessExpression(u,"value"),y=r.createFunctionCallCall(d,c,[]);o(l),o(d);var v=2&a?r.inlineExpressions([r.createAssignment(l,r.createVoidZero()),p]):p,h=e.setEmitFlags(e.setTextRange(r.createForStatement(e.setEmitFlags(e.setTextRange(r.createVariableDeclarationList([e.setTextRange(r.createVariableDeclaration(c,void 0,void 0,v),t.expression),r.createVariableDeclaration(u)]),t.expression),2097152),r.createComma(r.createAssignment(u,O(f)),r.createLogicalNot(g)),void 0,function(t,n){var i,a,o=e.createForOfBindingStatement(r,t.initializer,n),s=[e.visitNode(o,C,e.isStatement)],c=e.visitNode(t.statement,C,e.isStatement);e.isBlock(c)?(e.addRange(s,c.statements),i=c,a=c.statements):s.push(c);return e.setEmitFlags(e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(s),a),!0),i),432)}(t,m)),t),256);return r.createTryStatement(r.createBlock([r.restoreEnclosingLabel(h,i)]),r.createCatchClause(r.createVariableDeclaration(_),e.setEmitFlags(r.createBlock([r.createExpressionStatement(r.createAssignment(l,r.createObjectLiteralExpression([r.createPropertyAssignment("error",_)])))]),1)),r.createBlock([r.createTryStatement(r.createBlock([e.setEmitFlags(r.createIfStatement(r.createLogicalAnd(r.createLogicalAnd(u,r.createLogicalNot(g)),r.createAssignment(d,r.createPropertyAccessExpression(c,"return"))),r.createExpressionStatement(O(y))),1)]),void 0,e.setEmitFlags(r.createBlock([e.setEmitFlags(r.createIfStatement(l,r.createThrowStatement(r.createPropertyAccessExpression(l,"error"))),1)]),1))]))}(i,a,s):r.restoreEnclosingLabel(e.visitEachChild(i,C,t),a);return S(s),c}function O(e){return 1&p?r.createYieldExpression(void 0,n().createAwaitHelper(e)):r.createAwaitExpression(e)}function M(n){var i=p;p=0;var a=r.updateConstructorDeclaration(n,void 0,n.modifiers,e.visitParameterList(n.parameters,C,t),V(n));return p=i,a}function L(n){var i=p;p=0;var a=r.updateGetAccessorDeclaration(n,void 0,n.modifiers,e.visitNode(n.name,C,e.isPropertyName),e.visitParameterList(n.parameters,C,t),void 0,V(n));return p=i,a}function R(n){var i=p;p=0;var a=r.updateSetAccessorDeclaration(n,void 0,n.modifiers,e.visitNode(n.name,C,e.isPropertyName),e.visitParameterList(n.parameters,C,t),V(n));return p=i,a}function B(n){var i=p;p=e.getFunctionFlags(n);var a=r.updateMethodDeclaration(n,void 0,1&p?e.visitNodes(n.modifiers,k,e.isModifier):n.modifiers,2&p?void 0:n.asteriskToken,e.visitNode(n.name,C,e.isPropertyName),e.visitNode(void 0,C,e.isToken),void 0,e.visitParameterList(n.parameters,C,t),void 0,2&p&&1&p?U(n):V(n));return p=i,a}function j(n){var i=p;p=e.getFunctionFlags(n);var a=r.updateFunctionDeclaration(n,void 0,1&p?e.visitNodes(n.modifiers,k,e.isModifier):n.modifiers,2&p?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,C,t),void 0,2&p&&1&p?U(n):V(n));return p=i,a}function J(n){var i=p;p=e.getFunctionFlags(n);var a=r.updateArrowFunction(n,n.modifiers,void 0,e.visitParameterList(n.parameters,C,t),void 0,n.equalsGreaterThanToken,V(n));return p=i,a}function z(n){var i=p;p=e.getFunctionFlags(n);var a=r.updateFunctionExpression(n,1&p?e.visitNodes(n.modifiers,k,e.isModifier):n.modifiers,2&p?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,C,t),void 0,2&p&&1&p?U(n):V(n));return p=i,a}function U(o){i();var c=[],l=r.copyPrologue(o.body.statements,c,!1,C);K(c,o);var _=m,p=y;m=new e.Set,y=!1;var f=r.createReturnStatement(n().createAsyncGeneratorHelper(r.createFunctionExpression(void 0,r.createToken(41),o.name&&r.getGeneratedNameForNode(o.name),void 0,[],void 0,r.updateBlock(o.body,e.visitLexicalEnvironment(o.body.statements,C,t,l))),!!(1&b))),g=u>=2&&6144&s.getNodeCheckFlags(o);if(g){0==(1&d)&&(d|=1,t.enableSubstitution(203),t.enableSubstitution(201),t.enableSubstitution(202),t.enableEmitNotification(252),t.enableEmitNotification(165),t.enableEmitNotification(167),t.enableEmitNotification(168),t.enableEmitNotification(166),t.enableEmitNotification(232));var v=e.createSuperAccessVariableStatement(r,s,o,m);x[e.getNodeId(v)]=!0,e.insertStatementsAfterStandardPrologue(c,[v])}c.push(f),e.insertStatementsAfterStandardPrologue(c,a());var h=r.updateBlock(o.body,c);return g&&y&&(4096&s.getNodeCheckFlags(o)?e.addEmitHelper(h,e.advancedAsyncSuperHelper):2048&s.getNodeCheckFlags(o)&&e.addEmitHelper(h,e.asyncSuperHelper)),m=_,y=p,h}function V(t){var n;i();var o=0,s=[],c=null!==(n=e.visitNode(t.body,C,e.isConciseBody))&&void 0!==n?n:r.createBlock([]);e.isBlock(c)&&(o=r.copyPrologue(c.statements,s,!1,C)),e.addRange(s,K(void 0,t));var u=a();if(o>0||e.some(s)||e.some(u)){var l=r.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,u),e.addRange(s,l.statements.slice(o)),r.updateBlock(l,e.setTextRange(r.createNodeArray(s),l.statements))}return c}function K(n,i){for(var a=0,o=i.parameters;a<o.length;a++){var s=o[a];if(16384&s.transformFlags){var c=r.getGeneratedNameForNode(s),u=e.flattenDestructuringBinding(s,C,t,1,c,!1,!0);if(e.some(u)){var l=r.createVariableStatement(void 0,r.createVariableDeclarationList(u));e.setEmitFlags(l,1048576),n=e.append(n,l)}}}return n}function q(t){return 105===t.expression.kind?e.setTextRange(r.createPropertyAccessExpression(r.createUniqueName("_super",48),t.name),t):t}function W(t){return 105===t.expression.kind?(n=t.argumentExpression,i=t,4096&h?e.setTextRange(r.createPropertyAccessExpression(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),"value"),i):e.setTextRange(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),i)):t;var n,i}}}(ts||(ts={})),function(e){e.transformES2019=function(t){var r=t.factory;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,n,t)}));function n(i){if(0==(16&i.transformFlags))return i;switch(i.kind){case 287:return function(i){if(!i.variableDeclaration)return r.updateCatchClause(i,r.createVariableDeclaration(r.createTempVariable(void 0)),e.visitNode(i.block,n,e.isBlock));return e.visitEachChild(i,n,t)}(i);default:return e.visitEachChild(i,n,t)}}}}(ts||(ts={})),function(e){e.transformES2020=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,i,t)}));function i(c){if(0==(8&c.transformFlags))return c;switch(c.kind){case 201:case 202:case 203:if(32&c.flags){var u=o(c,!1,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u}return e.visitEachChild(c,i,t);case 216:return 60===c.operatorToken.kind?function(t){var a=e.visitNode(t.left,i,e.isExpression),o=a;e.isSimpleCopiableExpression(a)||(o=r.createTempVariable(n),a=r.createAssignment(o,a));return e.setTextRange(r.createConditionalExpression(s(a,o),void 0,o,void 0,e.visitNode(t.right,i,e.isExpression)),t)}(c):e.visitEachChild(c,i,t);case 210:return function(t){return e.isOptionalChain(e.skipParentheses(t.expression))?e.setOriginalNode(a(t.expression,!1,!0),t):r.updateDeleteExpression(t,e.visitNode(t.expression,i,e.isExpression))}(c);default:return e.visitEachChild(c,i,t)}}function a(s,c,u){switch(s.kind){case 207:return function(t,n,i){var o=a(t.expression,n,i);return e.isSyntheticReference(o)?r.createSyntheticReferenceExpression(r.updateParenthesizedExpression(t,o.expression),o.thisArg):r.updateParenthesizedExpression(t,o)}(s,c,u);case 201:case 202:return function(t,a,s){if(e.isOptionalChain(t))return o(t,a,s);var c,u=e.visitNode(t.expression,i,e.isExpression);return e.Debug.assertNotNode(u,e.isSyntheticReference),a&&(e.isSimpleCopiableExpression(u)?c=u:(c=r.createTempVariable(n),u=r.createAssignment(c,u))),u=201===t.kind?r.updatePropertyAccessExpression(t,u,e.visitNode(t.name,i,e.isIdentifier)):r.updateElementAccessExpression(t,u,e.visitNode(t.argumentExpression,i,e.isExpression)),c?r.createSyntheticReferenceExpression(u,c):u}(s,c,u);case 203:return function(r,n){return e.isOptionalChain(r)?o(r,n,!1):e.visitEachChild(r,i,t)}(s,c);default:return e.visitNode(s,i,e.isExpression)}}function o(t,o,c){var u=function(t){e.Debug.assertNotNode(t,e.isNonNullChain);for(var r=[t];!t.questionDotToken&&!e.isTaggedTemplateExpression(t);)t=e.cast(e.skipPartiallyEmittedExpressions(t.expression),e.isOptionalChain),e.Debug.assertNotNode(t,e.isNonNullChain),r.unshift(t);return{expression:t.expression,chain:r}}(t),l=u.expression,_=u.chain,d=a(l,e.isCallChain(_[0]),!1),p=e.isSyntheticReference(d)?d.thisArg:void 0,f=e.isSyntheticReference(d)?d.expression:d,g=f;e.isSimpleCopiableExpression(f)||(g=r.createTempVariable(n),f=r.createAssignment(g,f));for(var m,y=g,v=0;v<_.length;v++){var h=_[v];switch(h.kind){case 201:case 202:v===_.length-1&&o&&(e.isSimpleCopiableExpression(y)?m=y:(m=r.createTempVariable(n),y=r.createAssignment(m,y))),y=201===h.kind?r.createPropertyAccessExpression(y,e.visitNode(h.name,i,e.isIdentifier)):r.createElementAccessExpression(y,e.visitNode(h.argumentExpression,i,e.isExpression));break;case 203:y=0===v&&p?r.createFunctionCallCall(y,105===p.kind?r.createThis():p,e.visitNodes(h.arguments,i,e.isExpression)):r.createCallExpression(y,void 0,e.visitNodes(h.arguments,i,e.isExpression))}e.setOriginalNode(y,h)}var b=c?r.createConditionalExpression(s(f,g,!0),void 0,r.createTrue(),void 0,r.createDeleteExpression(y)):r.createConditionalExpression(s(f,g,!0),void 0,r.createVoidZero(),void 0,y);return e.setTextRange(b,t),m?r.createSyntheticReferenceExpression(b,m):b}function s(e,t,n){return r.createBinaryExpression(r.createBinaryExpression(e,r.createToken(n?36:37),r.createNull()),r.createToken(n?56:55),r.createBinaryExpression(t,r.createToken(n?36:37),r.createVoidZero()))}}}(ts||(ts={})),function(e){e.transformESNext=function(t){var r=t.hoistVariableDeclaration,n=t.factory;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,i,t)}));function i(a){if(0==(4&a.transformFlags))return a;switch(a.kind){case 216:var o=a;if(e.isLogicalOrCoalescingAssignmentExpression(o))return function(t){var a=t.operatorToken,o=e.getNonAssignmentOperatorForCompoundAssignment(a.kind),s=e.skipParentheses(e.visitNode(t.left,i,e.isLeftHandSideExpression)),c=s,u=e.skipParentheses(e.visitNode(t.right,i,e.isExpression));if(e.isAccessExpression(s)){var l=e.isSimpleCopiableExpression(s.expression),_=l?s.expression:n.createTempVariable(r),d=l?s.expression:n.createAssignment(_,s.expression);if(e.isPropertyAccessExpression(s))c=n.createPropertyAccessExpression(_,s.name),s=n.createPropertyAccessExpression(d,s.name);else{var p=e.isSimpleCopiableExpression(s.argumentExpression),f=p?s.argumentExpression:n.createTempVariable(r);c=n.createElementAccessExpression(_,f),s=n.createElementAccessExpression(d,p?s.argumentExpression:n.createAssignment(f,s.argumentExpression))}}return n.createBinaryExpression(s,o,n.createParenthesizedExpression(n.createAssignment(c,u)))}(o);default:return e.visitEachChild(a,i,t)}}}}(ts||(ts={})),function(e){e.transformJsx=function(r){var n,i,a=r.factory,o=r.getEmitHelperFactory,s=r.getCompilerOptions();return e.chainBundle(r,(function(t){if(t.isDeclarationFile)return t;n=t,(i={}).importSpecifier=e.getJSXImplicitImportBase(s,t);var o=e.visitEachChild(t,_,r);e.addEmitHelpers(o,r.readEmitHelpers());var c=o.statements;i.filenameDeclaration&&(c=e.insertStatementAfterCustomPrologue(c.slice(),a.createVariableStatement(void 0,a.createVariableDeclarationList([i.filenameDeclaration],2))));if(i.utilizedImplicitRuntimeImports)for(var u=0,l=e.arrayFrom(i.utilizedImplicitRuntimeImports.entries());u<l.length;u++){var d=l[u],p=d[0],f=d[1];if(e.isExternalModule(t)){var g=a.createImportDeclaration(void 0,void 0,a.createImportClause(!1,void 0,a.createNamedImports(e.arrayFrom(f.values()))),a.createStringLiteral(p));e.setParentRecursive(g,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),g)}else if(e.isExternalOrCommonJsModule(t)){var m=a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.createObjectBindingPattern(e.map(e.arrayFrom(f.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(p)]))],2));e.setParentRecursive(m,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),m)}}c!==o.statements&&(o=a.updateSourceFile(o,c));return 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(n.fileName));return i.filenameDeclaration=e,i.filenameDeclaration.name}function u(e){return l(function(e){return 5===s.jsx?"jsxDEV":e>1?"jsxs":"jsx"}(e))}function l(t){var r,n,o="createElement"===t?i.importSpecifier:e.getJSXRuntimeImport(i.importSpecifier,s),c=null===(n=null===(r=i.utilizedImplicitRuntimeImports)||void 0===r?void 0:r.get(o))||void 0===n?void 0:n.get(t);if(c)return c.name;i.utilizedImplicitRuntimeImports||(i.utilizedImplicitRuntimeImports=e.createMap());var u=i.utilizedImplicitRuntimeImports.get(o);u||(u=e.createMap(),i.utilizedImplicitRuntimeImports.set(o,u));var l=a.createUniqueName("_"+t,112),_=a.createImportSpecifier(a.createIdentifier(t),l);return l.generatedImportReference=_,u.set(t,_),l}function _(t){return 2&t.transformFlags?function(t){switch(t.kind){case 273:return f(t,!1);case 274:return g(t,!1);case 277:return m(t,!1);case 283:return A(t);default:return e.visitEachChild(t,_,r)}}(t):t}function d(t){switch(t.kind){case 11:return function(t){var r=function(t){for(var r,n=0,i=-1,a=0;a<t.length;a++){var o=t.charCodeAt(a);e.isLineBreak(o)?(-1!==n&&-1!==i&&(r=E(r,t.substr(n,i-n+1))),n=-1):e.isWhiteSpaceSingleLine(o)||(i=a,-1===n&&(n=a))}return-1!==n?E(r,t.substr(n)):r}(t.text);return void 0===r?void 0:a.createStringLiteral(r)}(t);case 283:return A(t);case 273:return f(t,!0);case 274:return g(t,!0);case 277:return m(t,!0);default:return e.Debug.failBadSyntaxKind(t)}}function p(t){return void 0===i.importSpecifier||function(t){for(var r=!1,n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(e.isJsxSpreadAttribute(a))r=!0;else if(r&&e.isJsxAttribute(a)&&"key"===a.name.escapedText)return!0}return!1}(t)}function f(e,t){return(p(e.openingElement)?b:v)(e.openingElement,e.children,t,e)}function g(e,t){return(p(e)?b:v)(e,void 0,t,e)}function m(e,t){return(void 0===i.importSpecifier?D:x)(e.openingFragment,e.children,t,e)}function y(t){var r=e.getSemanticJsxChildren(t);if(1===e.length(r)){var n=d(r[0]);return n&&a.createObjectLiteralExpression([a.createPropertyAssignment("children",n)])}var i=e.mapDefined(t,d);return i.length?a.createObjectLiteralExpression([a.createPropertyAssignment("children",a.createArrayLiteralExpression(i))]):void 0}function v(t,r,n,i){var s=N(t),c=e.find(t.attributes.properties,(function(t){return!!t.name&&e.isIdentifier(t.name)&&"key"===t.name.escapedText})),u=c?e.filter(t.attributes.properties,(function(e){return e!==c})):t.attributes.properties,l=[];if(u.length&&(l=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,S):a.createObjectLiteralExpression(e.map(t,T))}))),e.isJsxSpreadAttribute(u[0])&&l.unshift(a.createObjectLiteralExpression())),r&&r.length){var _=y(r);_&&l.push(_)}return h(s,0===l.length?a.createObjectLiteralExpression([]):e.singleOrUndefined(l)||o().createAssignHelper(l),c,e.length(e.getSemanticJsxChildren(r||e.emptyArray)),n,i)}function h(t,r,i,o,l,_){var d=[t,r,i?C(i.initializer):a.createVoidZero()];if(5===s.jsx){var p=e.getOriginalNode(n);if(p&&e.isSourceFile(p)){d.push(o>1?a.createTrue():a.createFalse());var f=e.getLineAndCharacterOfPosition(p,_.pos);d.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(f.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(f.character+1))])),d.push(a.createThis())}}var g=e.setTextRange(a.createCallExpression(u(o),void 0,d),_);return l&&e.startOnNewLine(g),g}function b(t,c,u,_){var p,f=N(t),g=t.attributes.properties;if(0===g.length)p=a.createNull();else{var m=e.flatten(e.spanMap(g,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,S):a.createObjectLiteralExpression(e.map(t,T))})));e.isJsxSpreadAttribute(g[0])&&m.unshift(a.createObjectLiteralExpression()),(p=e.singleOrUndefined(m))||(p=o().createAssignHelper(m))}var y=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,r.getEmitResolver().getJsxFactoryEntity(n),s.reactNamespace,t):l("createElement"),v=e.createExpressionForJsxElement(a,y,f,p,e.mapDefined(c,d),_);return u&&e.startOnNewLine(v),v}function x(t,r,n,i){var o;if(r&&r.length){var s=y(r);s&&(o=s)}return h(l("Fragment"),o||a.createObjectLiteralExpression([]),void 0,e.length(e.getSemanticJsxChildren(r)),n,i)}function D(t,i,o,c){var u=e.createExpressionForJsxFragment(a,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),s.reactNamespace,e.mapDefined(i,d),t,c);return o&&e.startOnNewLine(u),u}function S(t){return e.visitNode(t.expression,_,e.isExpression)}function T(t){var r=function(t){var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:a.createStringLiteral(n)}(t),n=C(t.initializer);return a.createPropertyAssignment(r,n)}function C(t){if(void 0===t)return a.createTrue();if(10===t.kind){var r=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),i=a.createStringLiteral((o=t.text,((s=k(o))===o?void 0:s)||t.text),r);return e.setTextRange(i,t)}return 283===t.kind?void 0===t.expression?a.createTrue():e.visitNode(t.expression,_,e.isExpression):e.Debug.failBadSyntaxKind(t);var o,s}function E(e,t){var r=k(t);return void 0===e?r:e+" "+r}function k(r){return r.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(function(r,n,i,a,o,s,c){if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var u=t.get(c);return u?e.utf16EncodeAsString(u):r}))}function N(t){if(273===t.kind)return N(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?a.createStringLiteral(e.idText(r)):e.createExpressionFromEntityName(a,r)}function A(t){return e.visitNode(t.expression,_,e.isExpression)}};var t=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}))}(ts||(ts={})),function(e){e.transformES2016=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,i,t)}));function i(a){if(0==(128&a.transformFlags))return a;switch(a.kind){case 216:return function(a){switch(a.operatorToken.kind){case 66:return function(t){var a,o,s=e.visitNode(t.left,i,e.isExpression),c=e.visitNode(t.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var u=r.createTempVariable(n),l=r.createTempVariable(n);a=e.setTextRange(r.createElementAccessExpression(e.setTextRange(r.createAssignment(u,s.expression),s.expression),e.setTextRange(r.createAssignment(l,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(r.createElementAccessExpression(u,l),s)}else if(e.isPropertyAccessExpression(s)){u=r.createTempVariable(n);a=e.setTextRange(r.createPropertyAccessExpression(e.setTextRange(r.createAssignment(u,s.expression),s.expression),s.name),s),o=e.setTextRange(r.createPropertyAccessExpression(u,s.name),s)}else a=s,o=s;return e.setTextRange(r.createAssignment(a,e.setTextRange(r.createGlobalMethodCall("Math","pow",[o,c]),t)),t)}(a);case 42:return function(t){var n=e.visitNode(t.left,i,e.isExpression),a=e.visitNode(t.right,i,e.isExpression);return e.setTextRange(r.createGlobalMethodCall("Math","pow",[n,a]),t)}(a);default:return e.visitEachChild(a,i,t)}}(a);default:return e.visitEachChild(a,i,t)}}}}(ts||(ts={})),function(e){var t,r,n,i,a;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(t||(t={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(r||(r={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(n||(n={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(i||(i={})),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.AncestorFactsMask=16383]="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=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="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.NewTarget=16384]="NewTarget",e[e.CapturedLexicalThis=32768]="CapturedLexicalThis",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=49152]="FunctionSubtreeExcludes"}(a||(a={})),e.transformES2015=function(t){var r,n,i,a,o,s,c=t.factory,u=t.getEmitHelperFactory,l=t.startLexicalEnvironment,_=t.resumeLexicalEnvironment,d=t.endLexicalEnvironment,p=t.hoistVariableDeclaration,f=t.getCompilerOptions(),g=t.getEmitResolver(),m=t.onSubstituteNode,y=t.onEmitNode;function v(t){a=e.append(a,c.createVariableDeclaration(t))}return t.onEmitNode=function(t,r,n){if(1&s&&e.isFunctionLike(r)){var i=h(16286,8&e.getEmitFlags(r)?81:65);return y(t,r,n),void b(i,0,0)}y(t,r,n)},t.onSubstituteNode=function(t,r){if(r=m(t,r),1===t)return function(t){switch(t.kind){case 78:return function(t){if(2&s&&!e.isInternalName(t)){var r=g.getReferencedDeclarationWithCollidingName(t);if(r&&(!e.isClassLike(r)||!function(t,r){var n=e.getParseTreeNode(r);if(!n||n===t||n.end<=t.pos||n.pos>=t.end)return!1;var i=e.getEnclosingBlockScopeContainer(t);for(;n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}(r,t)))return e.setTextRange(c.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 107:return function(t){if(1&s&&16&i)return e.setTextRange(c.createUniqueName("_this",48),t);return t}(t)}return t}(r);if(e.isIdentifier(r))return function(t){if(2&s&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 198:case 252:case 255:case 249:return e.parent.name===e&&g.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(c.getGeneratedNameForNode(r),t)}return t}(r);return r},e.chainBundle(t,(function(o){if(o.isDeclarationFile)return o;r=o,n=o.text;var s=function(t){var r=h(8064,64),n=[],i=[];l();var o=c.copyPrologue(t.statements,n,!1,S);e.addRange(i,e.visitNodes(t.statements,S,e.isStatement,o)),a&&i.push(c.createVariableStatement(void 0,c.createVariableDeclarationList(a)));return c.mergeLexicalEnvironment(n,d()),B(n,t),b(r,0,0),c.updateSourceFile(t,e.setTextRange(c.createNodeArray(e.concatenate(n,i)),t.statements))}(o);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,a=void 0,i=0,s}));function h(e,t){var r=i;return i=16383&(i&~e|t),r}function b(e,t,r){i=-16384&(i&~t|r)|e}function x(e){return 0!=(8192&i)&&242===e.kind&&!e.expression}function D(t){return 0!=(256&t.transformFlags)||void 0!==o||8192&i&&function(t){return 1048576&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t))}(t)||e.isIterationStatement(t,!1)&&le(t)||0!=(33554432&e.getEmitFlags(t))}function S(e){return D(e)?E(e,!1):e}function T(e){return D(e)?E(e,!0):e}function C(e){return 105===e.kind?Ae(!0):S(e)}function E(n,a){switch(n.kind){case 123:return;case 252:return function(t){var r=c.createVariableDeclaration(c.getLocalName(t,!0),void 0,void 0,A(t));e.setOriginalNode(r,t);var n=[],i=c.createVariableStatement(void 0,c.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,512)?c.createExportDefault(c.getLocalName(t)):c.createExternalModuleExport(c.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);0==(4194304&o)&&(n.push(c.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o));return e.singleOrMany(n)}(n);case 221:return function(e){return A(e)}(n);case 160:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(c.createParameterDeclaration(void 0,void 0,void 0,c.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(c.createParameterDeclaration(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 251:return function(r){var n=o;o=void 0;var a=h(16286,65),s=e.visitParameterList(r.parameters,S,t),u=W(r),l=16384&i?c.getLocalName(r):r.name;return b(a,49152,0),o=n,c.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,S,e.isModifier),r.asteriskToken,l,void 0,s,void 0,u)}(n);case 209:return function(r){4096&r.transformFlags&&(i|=32768);var n=o;o=void 0;var a=h(15232,66),s=c.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,S,t),void 0,W(r));e.setTextRange(s,r),e.setOriginalNode(s,r),e.setEmitFlags(s,8),32768&i&&Pe();return b(a,0,0),o=n,s}(n);case 208:return function(r){var n=262144&e.getEmitFlags(r)?h(16278,69):h(16286,65),a=o;o=void 0;var s=e.visitParameterList(r.parameters,S,t),u=W(r),l=16384&i?c.getLocalName(r):r.name;return b(n,49152,0),o=a,c.updateFunctionExpression(r,void 0,r.asteriskToken,l,void 0,s,void 0,u)}(n);case 249:return X(n);case 78:return N(n);case 250:return function(r){if(3&r.flags||131072&r.transformFlags){3&r.flags&&Fe();var n=e.flatMap(r.declarations,1&r.flags?G:X),i=c.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),131072&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i<a.length;i++){var o=a[i];r=-1===r?o.pos:-1===o.pos?r:Math.min(r,o.pos),n=Math.max(n,o.end)}return e.createRange(r,n)}(n)),i}return e.visitEachChild(r,S,t)}(n);case 244:return function(r){if(void 0!==o){var n=o.allowedNonLabeledJumps;o.allowedNonLabeledJumps|=2;var i=e.visitEachChild(r,S,t);return o.allowedNonLabeledJumps=n,i}return e.visitEachChild(r,S,t)}(n);case 258:return function(r){var n=h(7104,0),i=e.visitEachChild(r,S,t);return b(n,0,0),i}(n);case 230:return function(r,n){if(n)return e.visitEachChild(r,S,t);var a=256&i?h(7104,512):h(6976,128),o=e.visitEachChild(r,S,t);return b(a,0,0),o}(n,!1);case 241:case 240:return function(r){if(o){var n=241===r.kind?2:4;if(!(r.label&&o.labels&&o.labels.get(e.idText(r.label))||!r.label&&o.allowedNonLabeledJumps&n)){var i=void 0,a=r.label;a?241===r.kind?(i="break-"+a.escapedText,ye(o,!0,e.idText(a),i)):(i="continue-"+a.escapedText,ye(o,!1,e.idText(a),i)):241===r.kind?(o.nonLocalJumps|=2,i="break"):(o.nonLocalJumps|=4,i="continue");var s=c.createStringLiteral(i);if(o.loopOutParameters.length){for(var u=o.loopOutParameters,l=void 0,_=0;_<u.length;_++){var d=ge(u[_],1);l=0===_?d:c.createBinaryExpression(l,27,d)}s=c.createBinaryExpression(l,27,s)}return c.createReturnStatement(s)}}return e.visitEachChild(r,S,t)}(n);case 245:return function(t){o&&!o.labels&&(o.labels=new e.Map);var r=e.unwrapInnermostStatementOfLabel(t,o&&Q);return e.isIterationStatement(r,!1)?function(e,t){switch(e.kind){case 235:case 236:return $(e,t);case 237:return ee(e,t);case 238:return te(e,t);case 239:return re(e,t)}}(r,t):c.restoreEnclosingLabel(e.visitNode(r,S,e.isStatement,c.liftToBlock),t,o&&Y)}(n);case 235:case 236:return $(n,void 0);case 237:return ee(n,void 0);case 238:return te(n,void 0);case 239:return re(n,void 0);case 233:return function(r){return e.visitEachChild(r,T,t)}(n);case 200:return function(r){for(var n=r.properties,a=-1,o=!1,s=0;s<n.length;s++){var u=n[s];if(262144&u.transformFlags&&4&i||(o=158===e.Debug.checkDefined(u.name).kind)){a=s;break}}if(a<0)return e.visitEachChild(r,S,t);var l=c.createTempVariable(p),_=[],d=c.createAssignment(l,e.setEmitFlags(c.createObjectLiteralExpression(e.visitNodes(n,S,e.isObjectLiteralElementLike,0,a),r.multiLine),o?65536:0));r.multiLine&&e.startOnNewLine(d);return _.push(d),function(t,r,n,i){for(var a=r.properties,o=a.length,s=i;s<o;s++){var c=a[s];switch(c.kind){case 167:case 168:var u=e.getAllAccessorDeclarations(r.properties,c);c===u.firstAccessor&&t.push(K(n,u,r,!!r.multiLine));break;case 165:t.push(De(c,n,r,r.multiLine));break;case 288:t.push(be(c,n,r.multiLine));break;case 289:t.push(xe(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r)}}}(_,r,l,a),_.push(r.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(c.cloneNode(l),l),l.parent)):l),c.inlineExpressions(_)}(n);case 287:return function(r){var n,i=h(7104,0);if(e.Debug.assert(!!r.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(r.variableDeclaration.name)){var a=c.createTempVariable(void 0),o=c.createVariableDeclaration(a);e.setTextRange(o,r.variableDeclaration);var s=e.flattenDestructuringBinding(r.variableDeclaration,S,t,0,a),u=c.createVariableDeclarationList(s);e.setTextRange(u,r.variableDeclaration);var l=c.createVariableStatement(void 0,u);n=c.updateCatchClause(r,o,(_=r.block,d=l,p=e.visitNodes(_.statements,S,e.isStatement),c.updateBlock(_,__spreadArray([d],p))))}else n=e.visitEachChild(r,S,t);var _,d,p;return b(i,0,0),n}(n);case 289:return function(t){return e.setTextRange(c.createPropertyAssignment(t.name,N(c.cloneNode(t.name))),t)}(n);case 158:return function(r){return e.visitEachChild(r,S,t)}(n);case 199:return function(r){if(e.some(r.elements,e.isSpreadElement))return Te(r.elements,!0,!!r.multiLine,!!r.elements.hasTrailingComma);return e.visitEachChild(r,S,t)}(n);case 203:return function(t){if(33554432&e.getEmitFlags(t))return function(t){var r=e.cast(e.cast(e.skipOuterExpressions(t.expression),e.isArrowFunction).body,e.isBlock),n=function(t){return e.isVariableStatement(t)&&!!e.first(t.declarationList.declarations).initializer},i=o;o=void 0;var a=e.visitNodes(r.statements,S,e.isStatement);o=i;var s=e.filter(a,n),u=e.filter(a,(function(e){return!n(e)})),l=e.cast(e.first(s),e.isVariableStatement).declarationList.declarations[0],_=e.skipOuterExpressions(l.initializer),d=e.tryCast(_,e.isAssignmentExpression),p=e.cast(d?e.skipOuterExpressions(d.right):_,e.isCallExpression),f=e.cast(e.skipOuterExpressions(p.expression),e.isFunctionExpression),g=f.body.statements,m=0,y=-1,v=[];if(d){var h=e.tryCast(g[m],e.isExpressionStatement);h&&(v.push(h),m++),v.push(g[m]),m++,v.push(c.createExpressionStatement(c.createAssignment(d.left,e.cast(l.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(g,y));)y--;e.addRange(v,g,m,y),y<-1&&e.addRange(v,g,y+1);return e.addRange(v,u),e.addRange(v,s,1),c.restoreOuterExpressions(t.expression,c.restoreOuterExpressions(l.initializer,c.restoreOuterExpressions(d&&d.right,c.updateCallExpression(p,c.restoreOuterExpressions(p.expression,c.updateFunctionExpression(f,void 0,void 0,void 0,void 0,f.parameters,void 0,c.updateBlock(f.body,v))),void 0,p.arguments))))}(t);var r=e.skipOuterExpressions(t.expression);if(105===r.kind||e.isSuperProperty(r)||e.some(t.arguments,e.isSpreadElement))return Se(t,!0);return c.updateCallExpression(t,e.visitNode(t.expression,C,e.isExpression),void 0,e.visitNodes(t.arguments,S,e.isExpression))}(n);case 204:return function(r){if(e.some(r.arguments,e.isSpreadElement)){var n=c.createCallBinding(c.createPropertyAccessExpression(r.expression,"bind"),p),i=n.target,a=n.thisArg;return c.createNewExpression(c.createFunctionApplyCall(e.visitNode(i,S,e.isExpression),a,Te(c.createNodeArray(__spreadArray([c.createVoidZero()],r.arguments)),!1,!1,!1)),void 0,[])}return e.visitEachChild(r,S,t)}(n);case 207:return function(r,n){return e.visitEachChild(r,n?T:S,t)}(n,a);case 216:return H(n,a);case 337:return function(r,n){if(n)return e.visitEachChild(r,T,t);for(var i,a=0;a<r.elements.length;a++){var o=r.elements[a],s=e.visitNode(o,a<r.elements.length-1?T:S,e.isExpression);(i||s!==o)&&(i||(i=r.elements.slice(0,a)),i.push(s))}var u=i?e.setTextRange(c.createNodeArray(i),r.elements):r.elements;return c.updateCommaListExpression(r,u)}(n,a);case 14:case 15:case 16:case 17:return function(t){return e.setTextRange(c.createStringLiteral(t.text),t)}(n);case 10:return function(t){if(t.hasExtendedUnicodeEscape)return e.setTextRange(c.createStringLiteral(t.text),t);return t}(n);case 8:return function(t){if(384&t.numericLiteralFlags)return e.setTextRange(c.createNumericLiteral(t.text),t);return t}(n);case 205:return function(n){return e.processTaggedTemplateExpression(t,n,S,r,v,e.ProcessLevel.All)}(n);case 218:return function(t){var r=[];(function(t,r){if(!function(t){return e.Debug.assert(0!==t.templateSpans.length),0!==t.head.text.length||0===t.templateSpans[0].literal.text.length}(r))return;t.push(c.createStringLiteral(r.head.text))})(r,t),function(t,r){for(var n=0,i=r.templateSpans;n<i.length;n++){var a=i[n];t.push(e.visitNode(a.expression,S,e.isExpression)),0!==a.literal.text.length&&t.push(c.createStringLiteral(a.literal.text))}}(r,t);var n=e.reduceLeft(r,c.createAdd);e.nodeIsSynthesized(n)&&e.setTextRange(n,t);return n}(n);case 219:return function(r){return e.visitEachChild(r,S,t)}(n);case 220:return function(t){return e.visitNode(t.expression,S,e.isExpression)}(n);case 105:return Ae(!1);case 107:return function(e){2&i&&(i|=32768);if(o)return 2&i?(o.containsLexicalThis=!0,e):o.thisName||(o.thisName=c.createUniqueName("this"));return e}(n);case 226:return function(e){if(102===e.keywordToken&&"target"===e.name.escapedText)return i|=16384,c.createUniqueName("_newTarget",48);return e}(n);case 165:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=q(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(c.createPropertyAssignment(t.name,r),t)}(n);case 167:case 168:return function(r){e.Debug.assert(!e.isComputedPropertyName(r.name));var n=o;o=void 0;var i,a=h(16286,65),s=e.visitParameterList(r.parameters,S,t),u=W(r);i=167===r.kind?c.updateGetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,s,r.type,u):c.updateSetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,s,u);return b(a,49152,0),o=n,i}(n);case 232:return function(r){var n,i=h(0,e.hasSyntacticModifier(r,1)?32:0);if(o&&0==(3&r.declarationList.flags)&&!function(t){return 1===t.declarationList.declarations.length&&!!t.declarationList.declarations[0].initializer&&!!(33554432&e.getEmitFlags(t.declarationList.declarations[0].initializer))}(r)){for(var a=void 0,s=0,u=r.declarationList.declarations;s<u.length;s++){var l=u[s];if(de(o,l),l.initializer){var _=void 0;e.isBindingPattern(l.name)?_=e.flattenDestructuringAssignment(l,S,t,0):(_=c.createBinaryExpression(l.name,62,e.visitNode(l.initializer,S,e.isExpression)),e.setTextRange(_,l)),a=e.append(a,_)}}n=a?e.setTextRange(c.createExpressionStatement(c.inlineExpressions(a)),r):void 0}else n=e.visitEachChild(r,S,t);return b(i,0,0),n}(n);case 242:return function(r){if(o)return o.nonLocalJumps|=8,x(r)&&(r=k(r)),c.createReturnStatement(c.createObjectLiteralExpression([c.createPropertyAssignment(c.createIdentifier("value"),r.expression?e.visitNode(r.expression,S,e.isExpression):c.createVoidZero())]));if(x(r))return k(r);return e.visitEachChild(r,S,t)}(n);case 212:return function(r){return e.visitEachChild(r,T,t)}(n);default:return e.visitEachChild(n,S,t)}}function k(t){return e.setOriginalNode(c.createReturnStatement(c.createUniqueName("_this",48)),t)}function N(e){return o&&g.isArgumentsLocalBinding(e)?o.argumentsName||(o.argumentsName=c.createUniqueName("arguments")):e}function A(a){a.name&&Fe();var s=e.getClassExtendsHeritageElement(a),p=c.createFunctionExpression(void 0,void 0,void 0,void 0,s?[c.createParameterDeclaration(void 0,void 0,void 0,c.createUniqueName("_super",48))]:[],void 0,function(a,s){var p=[],f=c.getInternalName(a),g=e.isIdentifierANonContextualKeyword(f)?c.getGeneratedNameForNode(f):f;l(),function(t,r,n){n&&t.push(e.setTextRange(c.createExpressionStatement(u().createExtendsHelper(c.getInternalName(r))),n))}(p,a,s),function(r,n,a,s){var u=o;o=void 0;var l=h(16278,73),p=e.getFirstConstructorWithBody(n),f=function(t,r){if(!t||!r)return!1;if(e.some(t.parameters))return!1;var n=e.firstOrUndefined(t.body.statements);if(!n||!e.nodeIsSynthesized(n)||233!==n.kind)return!1;var i=n.expression;if(!e.nodeIsSynthesized(i)||203!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||105!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||220!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}(p,void 0!==s),g=c.createFunctionDeclaration(void 0,void 0,void 0,a,void 0,function(r,n){return e.visitParameterList(r&&!n?r.parameters:void 0,S,t)||[]}(p,f),void 0,function(t,r,n,a){var o=!!n&&103!==e.skipOuterExpressions(n.expression).kind;if(!t)return function(t,r){var n=[];_(),c.mergeLexicalEnvironment(n,d()),r&&n.push(c.createReturnStatement(w()));var i=c.createNodeArray(n);e.setTextRange(i,t.members);var a=c.createBlock(i,!0);return e.setTextRange(a,t),e.setEmitFlags(a,1536),a}(r,o);var s=[],u=[];_();var l,p=0;a||(p=c.copyStandardPrologue(t.body.statements,s,!1));O(u,t),R(u,t,a),a||(p=c.copyCustomPrologue(t.body.statements,u,p,S));if(a)l=w();else if(o&&p<t.body.statements.length){var f=t.body.statements[p];e.isExpressionStatement(f)&&e.isSuperCall(f.expression)&&(l=function(e){return Se(e,!1)}(f.expression))}l&&(i|=8192,p++);if(e.addRange(u,e.visitNodes(t.body.statements,S,e.isStatement,p)),c.mergeLexicalEnvironment(s,d()),J(s,t,!1),o)if(!l||p!==t.body.statements.length||4096&t.body.transformFlags)j(u,t,l||P()),F(t.body)||u.push(c.createReturnStatement(c.createUniqueName("_this",48)));else{var g=e.cast(e.cast(l,e.isBinaryExpression).left,e.isCallExpression),m=c.createReturnStatement(l);e.setCommentRange(m,e.getCommentRange(g)),e.setEmitFlags(g,1536),u.push(m)}else B(s,t);var y=c.createBlock(e.setTextRange(c.createNodeArray(e.concatenate(s,u)),t.body.statements),!0);return e.setTextRange(y,t.body),y}(p,n,s,f));e.setTextRange(g,p||n),s&&e.setEmitFlags(g,8);r.push(g),b(l,49152,0),o=u}(p,a,g,s),function(t,n){for(var i=0,a=n.members;i<a.length;i++){var o=a[i];switch(o.kind){case 229:t.push(z(o));break;case 165:t.push(U(we(n,o),o,n));break;case 167:case 168:var s=e.getAllAccessorDeclarations(n.members,o);o===s.firstAccessor&&t.push(V(we(n,o),s,n));break;case 166:break;default:e.Debug.failBadSyntaxKind(o,r&&r.fileName)}}}(p,a);var m=e.createTokenRange(e.skipTrivia(n,a.members.end),19),y=c.createPartiallyEmittedExpression(g);e.setTextRangeEnd(y,m.end),e.setEmitFlags(y,1536);var v=c.createReturnStatement(y);e.setTextRangePos(v,m.pos),e.setEmitFlags(v,1920),p.push(v),e.insertStatementsAfterStandardPrologue(p,d());var x=c.createBlock(e.setTextRange(c.createNodeArray(p),a.members),!0);return e.setEmitFlags(x,1536),x}(a,s));e.setEmitFlags(p,65536&e.getEmitFlags(a)|524288);var f=c.createPartiallyEmittedExpression(p);e.setTextRangeEnd(f,a.end),e.setEmitFlags(f,1536);var g=c.createPartiallyEmittedExpression(f);e.setTextRangeEnd(g,e.skipTrivia(n,a.pos)),e.setEmitFlags(g,1536);var m=c.createParenthesizedExpression(c.createCallExpression(g,void 0,s?[e.visitNode(s.expression,S,e.isExpression)]:[]));return e.addSyntheticLeadingComment(m,3,"* @class "),m}function F(t){if(242===t.kind)return!0;if(234===t.kind){var r=t;if(r.elseStatement)return F(r.thenStatement)&&F(r.elseStatement)}else if(230===t.kind){var n=e.lastOrUndefined(t.statements);if(n&&F(n))return!0}return!1}function P(){return e.setEmitFlags(c.createThis(),4)}function w(){return c.createLogicalOr(c.createLogicalAnd(c.createStrictInequality(c.createUniqueName("_super",48),c.createNull()),c.createFunctionApplyCall(c.createUniqueName("_super",48),P(),c.createIdentifier("arguments"))),P())}function I(t){return void 0!==t.initializer||e.isBindingPattern(t.name)}function O(t,r){if(!e.some(r.parameters,I))return!1;for(var n=!1,i=0,a=r.parameters;i<a.length;i++){var o=a[i],s=o.name,c=o.initializer;o.dotDotDotToken||(e.isBindingPattern(s)?n=M(t,o,s,c)||n:c&&(L(t,o,s,c),n=!0))}return n}function M(r,n,i,a){return i.elements.length>0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(c.createVariableStatement(void 0,c.createVariableDeclarationList(e.flattenDestructuringBinding(n,S,t,0,c.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(c.createExpressionStatement(c.createAssignment(c.getGeneratedNameForNode(n),e.visitNode(a,S,e.isExpression))),1048576)),!0)}function L(t,r,n,i){i=e.visitNode(i,S,e.isExpression);var a=c.createIfStatement(c.createTypeCheck(c.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(c.createBlock([c.createExpressionStatement(e.setEmitFlags(e.setTextRange(c.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(c.cloneNode(n),n),n.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function R(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=78===o.name.kind?e.setParent(e.setTextRange(c.cloneNode(o.name),o.name),o.name.parent):c.createTempVariable(void 0);e.setEmitFlags(s,48);var u=78===o.name.kind?c.cloneNode(o.name):s,l=n.parameters.length-1,_=c.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(s,void 0,void 0,c.createArrayLiteralExpression([]))])),o),1048576));var d=c.createForStatement(e.setTextRange(c.createVariableDeclarationList([c.createVariableDeclaration(_,void 0,void 0,c.createNumericLiteral(l))]),o),e.setTextRange(c.createLessThan(_,c.createPropertyAccessExpression(c.createIdentifier("arguments"),"length")),o),e.setTextRange(c.createPostfixIncrement(_),o),c.createBlock([e.startOnNewLine(e.setTextRange(c.createExpressionStatement(c.createAssignment(c.createElementAccessExpression(u,0===l?_:c.createSubtract(_,c.createNumericLiteral(l))),c.createElementAccessExpression(c.createIdentifier("arguments"),_))),o))]));return e.setEmitFlags(d,1048576),e.startOnNewLine(d),a.push(d),78!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(c.createVariableStatement(void 0,c.createVariableDeclarationList(e.flattenDestructuringBinding(o,S,t,0,u))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function B(e,t){return!!(32768&i&&209!==t.kind)&&(j(e,t,c.createThis()),!0)}function j(t,r,n){Pe();var i=c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(c.createUniqueName("_this",48),void 0,void 0,n)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),e.insertStatementAfterCustomPrologue(t,i)}function J(t,r,n){if(16384&i){var a=void 0;switch(r.kind){case 209:return t;case 165:case 167:case 168:a=c.createVoidZero();break;case 166:a=c.createPropertyAccessExpression(e.setEmitFlags(c.createThis(),4),"constructor");break;case 251:case 208:a=c.createConditionalExpression(c.createLogicalAnd(e.setEmitFlags(c.createThis(),4),c.createBinaryExpression(e.setEmitFlags(c.createThis(),4),101,c.getLocalName(r))),void 0,c.createPropertyAccessExpression(e.setEmitFlags(c.createThis(),4),"constructor"),void 0,c.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(c.createUniqueName("_newTarget",48),void 0,void 0,a)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function z(t){return e.setTextRange(c.createEmptyStatement(),t)}function U(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),u=q(n,n,void 0,i),l=e.visitNode(n.name,S,e.isPropertyName);if(!e.isPrivateIdentifier(l)&&t.getCompilerOptions().useDefineForClassFields){var _=e.isComputedPropertyName(l)?l.expression:e.isIdentifier(l)?c.createStringLiteral(e.unescapeLeadingUnderscores(l.escapedText)):l;a=c.createObjectDefinePropertyCall(r,_,c.createPropertyDescriptor({value:u,enumerable:!1,writable:!0,configurable:!0}))}else{var d=e.createMemberAccessForPropertyName(c,r,l,n.name);a=c.createAssignment(d,u)}e.setEmitFlags(u,1536),e.setSourceMapRange(u,s);var p=e.setTextRange(c.createExpressionStatement(a),n);return e.setOriginalNode(p,n),e.setCommentRange(p,o),e.setEmitFlags(p,48),p}function V(t,r,n){var i=c.createExpressionStatement(K(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function K(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,u=e.setParent(e.setTextRange(c.cloneNode(t),t),t.parent);e.setEmitFlags(u,1568),e.setSourceMapRange(u,a.name);var l=e.visitNode(a.name,S,e.isPropertyName);if(e.isPrivateIdentifier(l))return e.Debug.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");var _=e.createExpressionForPropertyName(c,l);e.setEmitFlags(_,1552),e.setSourceMapRange(_,a.name);var d=[];if(o){var p=q(o,void 0,void 0,n);e.setSourceMapRange(p,e.getSourceMapRange(o)),e.setEmitFlags(p,512);var f=c.createPropertyAssignment("get",p);e.setCommentRange(f,e.getCommentRange(o)),d.push(f)}if(s){var g=q(s,void 0,void 0,n);e.setSourceMapRange(g,e.getSourceMapRange(s)),e.setEmitFlags(g,512);var m=c.createPropertyAssignment("set",g);e.setCommentRange(m,e.getCommentRange(s)),d.push(m)}d.push(c.createPropertyAssignment("enumerable",o||s?c.createFalse():c.createTrue()),c.createPropertyAssignment("configurable",c.createTrue()));var y=c.createCallExpression(c.createPropertyAccessExpression(c.createIdentifier("Object"),"defineProperty"),void 0,[u,_,c.createObjectLiteralExpression(d,!0)]);return i&&e.startOnNewLine(y),y}function q(r,n,a,s){var u=o;o=void 0;var l=s&&e.isClassLike(s)&&!e.hasSyntacticModifier(r,32)?h(16286,73):h(16286,65),_=e.visitParameterList(r.parameters,S,t),d=W(r);return 16384&i&&!a&&(251===r.kind||208===r.kind)&&(a=c.getGeneratedNameForNode(r)),b(l,49152,0),o=u,e.setOriginalNode(e.setTextRange(c.createFunctionExpression(void 0,r.asteriskToken,a,void 0,_,void 0,d),n),r)}function W(t){var n,i,a,o=!1,s=!1,u=[],l=[],p=t.body;if(_(),e.isBlock(p)&&(a=c.copyStandardPrologue(p.statements,u,!1),a=c.copyCustomPrologue(p.statements,l,a,S,e.isHoistedFunction),a=c.copyCustomPrologue(p.statements,l,a,S,e.isHoistedVariableStatement)),o=O(l,t)||o,o=R(l,t,!1)||o,e.isBlock(p))a=c.copyCustomPrologue(p.statements,l,a,S),n=p.statements,e.addRange(l,e.visitNodes(p.statements,S,e.isStatement,a)),!o&&p.multiLine&&(o=!0);else{e.Debug.assert(209===t.kind),n=e.moveRangeEnd(p,-1);var f=t.equalsGreaterThanToken;e.nodeIsSynthesized(f)||e.nodeIsSynthesized(p)||(e.rangeEndIsOnSameLineAsRangeStart(f,p,r)?s=!0:o=!0);var g=e.visitNode(p,S,e.isExpression),m=c.createReturnStatement(g);e.setTextRange(m,p),e.moveSyntheticComments(m,p),e.setEmitFlags(m,1440),l.push(m),i=p}if(c.mergeLexicalEnvironment(u,d()),J(u,t,!1),B(u,t),e.some(u)&&(o=!0),l.unshift.apply(l,u),e.isBlock(p)&&e.arrayIsEqualTo(l,p.statements))return p;var y=c.createBlock(e.setTextRange(c.createNodeArray(l),n),o);return e.setTextRange(y,t.body),!o&&s&&e.setEmitFlags(y,1),i&&e.setTokenSourceMapRange(y,19,i),e.setOriginalNode(y,t.body),y}function H(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,S,t,0,!n):27===r.operatorToken.kind?c.updateBinaryExpression(r,e.visitNode(r.left,T,e.isExpression),r.operatorToken,e.visitNode(r.right,n?T:S,e.isExpression)):e.visitEachChild(r,S,t)}function G(r){var n=r.name;return e.isBindingPattern(n)?X(r):!r.initializer&&function(e){var t=g.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&i)||r&&n&&0!=(512&i))&&0==(4096&i)&&(!g.isDeclarationWithCollidingName(e)||n&&!r&&0==(6144&i))}(r)?c.updateVariableDeclaration(r,r.name,void 0,void 0,c.createVoidZero()):e.visitEachChild(r,S,t)}function X(r){var n,i=h(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,S,t,0,void 0,0!=(32&i)):e.visitEachChild(r,S,t),b(i,0,0),n}function Q(t){o.labels.set(e.idText(t.label),!0)}function Y(t){o.labels.set(e.idText(t.label),!1)}function Z(r,n,a,s,u){var _=h(r,n),p=function(r,n,a,s){if(!le(r)){var u=void 0;o&&(u=o.allowedNonLabeledJumps,o.allowedNonLabeledJumps=6);var _=s?s(r,n,void 0,a):c.restoreEnclosingLabel(e.isForStatement(r)?function(t){return c.updateForStatement(t,e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.condition,S,e.isExpression),e.visitNode(t.incrementor,T,e.isExpression),e.visitNode(t.statement,S,e.isStatement,c.liftToBlock))}(r):e.visitEachChild(r,S,t),n,o&&Y);return o&&(o.allowedNonLabeledJumps=u),_}var p=function(t){var r;switch(t.kind){case 237:case 238:case 239:var n=t.initializer;n&&250===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var s=ce(t),c=0,u=r.declarations;c<u.length;c++){he(t,u[c],i,a,s)}var l={loopParameters:i,loopOutParameters:a};o&&(o.argumentsName&&(l.argumentsName=o.argumentsName),o.thisName&&(l.thisName=o.thisName),o.hoistedLocalVariables&&(l.hoistedLocalVariables=o.hoistedLocalVariables));return l}(r),f=[],g=o;o=p;var m,y=ce(r)?function(t,r){var n=c.createUniqueName("_loop_init"),a=0!=(262144&t.initializer.transformFlags),o=0;r.containsLexicalThis&&(o|=8);a&&4&i&&(o|=262144);var s=[];s.push(c.createVariableStatement(void 0,t.initializer)),me(r.loopOutParameters,2,1,s);var u=c.createVariableStatement(void 0,e.setEmitFlags(c.createVariableDeclarationList([c.createVariableDeclaration(n,void 0,void 0,e.setEmitFlags(c.createFunctionExpression(void 0,a?c.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(c.createBlock(s,!0),S,e.isBlock)),o))]),2097152)),l=c.createVariableDeclarationList(e.map(r.loopOutParameters,fe));return{functionName:n,containsYield:a,functionDeclaration:u,part:l}}(r,p):void 0,v=_e(r)?function(t,r,n){var a=c.createUniqueName("_loop");l();var o=e.visitNode(t.statement,S,e.isStatement,c.liftToBlock),s=d(),u=[];(ue(t)||function(t){return e.isForStatement(t)&&!!t.incrementor&&se(t.incrementor)}(t))&&(r.conditionVariable=c.createUniqueName("inc"),t.incrementor?u.push(c.createIfStatement(r.conditionVariable,c.createExpressionStatement(e.visitNode(t.incrementor,S,e.isExpression)),c.createExpressionStatement(c.createAssignment(r.conditionVariable,c.createTrue())))):u.push(c.createIfStatement(c.createLogicalNot(r.conditionVariable),c.createExpressionStatement(c.createAssignment(r.conditionVariable,c.createTrue())))),ue(t)&&u.push(c.createIfStatement(c.createPrefixUnaryExpression(53,e.visitNode(t.condition,S,e.isExpression)),e.visitNode(c.createBreakStatement(),S,e.isStatement))));e.isBlock(o)?e.addRange(u,o.statements):u.push(o);me(r.loopOutParameters,1,1,u),e.insertStatementsAfterStandardPrologue(u,s);var _=c.createBlock(u,!0);e.isBlock(o)&&e.setOriginalNode(_,o);var p=0!=(262144&t.statement.transformFlags),f=524288;r.containsLexicalThis&&(f|=8);p&&0!=(4&i)&&(f|=262144);var g=c.createVariableStatement(void 0,e.setEmitFlags(c.createVariableDeclarationList([c.createVariableDeclaration(a,void 0,void 0,e.setEmitFlags(c.createFunctionExpression(void 0,p?c.createToken(41):void 0,void 0,void 0,r.loopParameters,void 0,_),f))]),2097152)),m=function(t,r,n,i){var a=[],o=!(-5&r.nonLocalJumps||r.labeledNonLocalBreaks||r.labeledNonLocalContinues),s=c.createCallExpression(t,void 0,e.map(r.loopParameters,(function(e){return e.name}))),u=i?c.createYieldExpression(c.createToken(41),e.setEmitFlags(s,8388608)):s;if(o)a.push(c.createExpressionStatement(u)),me(r.loopOutParameters,1,0,a);else{var l=c.createUniqueName("state"),_=c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(l,void 0,void 0,u)]));if(a.push(_),me(r.loopOutParameters,1,0,a),8&r.nonLocalJumps){var d=void 0;n?(n.nonLocalJumps|=8,d=c.createReturnStatement(l)):d=c.createReturnStatement(c.createPropertyAccessExpression(l,"value")),a.push(c.createIfStatement(c.createTypeCheck(l,"object"),d))}if(2&r.nonLocalJumps&&a.push(c.createIfStatement(c.createStrictEquality(l,c.createStringLiteral("break")),c.createBreakStatement())),r.labeledNonLocalBreaks||r.labeledNonLocalContinues){var p=[];ve(r.labeledNonLocalBreaks,!0,l,n,p),ve(r.labeledNonLocalContinues,!1,l,n,p),a.push(c.createSwitchStatement(l,c.createCaseBlock(p)))}}return a}(a,r,n,p);return{functionName:a,containsYield:p,functionDeclaration:g,part:m}}(r,p,g):void 0;o=g,y&&f.push(y.functionDeclaration);v&&f.push(v.functionDeclaration);(function(e,t,r){var n;t.argumentsName&&(r?r.argumentsName=t.argumentsName:(n||(n=[])).push(c.createVariableDeclaration(t.argumentsName,void 0,void 0,c.createIdentifier("arguments"))));t.thisName&&(r?r.thisName=t.thisName:(n||(n=[])).push(c.createVariableDeclaration(t.thisName,void 0,void 0,c.createIdentifier("this"))));if(t.hoistedLocalVariables)if(r)r.hoistedLocalVariables=t.hoistedLocalVariables;else{n||(n=[]);for(var i=0,a=t.hoistedLocalVariables;i<a.length;i++){var o=a[i];n.push(c.createVariableDeclaration(o))}}if(t.loopOutParameters.length){n||(n=[]);for(var s=0,u=t.loopOutParameters;s<u.length;s++){var l=u[s];n.push(c.createVariableDeclaration(l.outParamName))}}t.conditionVariable&&(n||(n=[]),n.push(c.createVariableDeclaration(t.conditionVariable,void 0,void 0,c.createFalse())));n&&e.push(c.createVariableStatement(void 0,c.createVariableDeclarationList(n)))})(f,p,g),y&&f.push((h=y.functionName,b=y.containsYield,x=c.createCallExpression(h,void 0,[]),D=b?c.createYieldExpression(c.createToken(41),e.setEmitFlags(x,8388608)):x,c.createExpressionStatement(D)));var h,b,x,D;if(v)if(s)m=s(r,n,v.part,a);else{var C=pe(r,y,c.createBlock(v.part,!0));m=c.restoreEnclosingLabel(C,n,o&&Y)}else{var E=pe(r,y,e.visitNode(r.statement,S,e.isStatement,c.liftToBlock));m=c.restoreEnclosingLabel(E,n,o&&Y)}return f.push(m),f}(a,s,_,u);return b(_,0,0),p}function $(e,t){return Z(0,1280,e,t)}function ee(e,t){return Z(5056,3328,e,t)}function te(e,t){return Z(3008,5376,e,t)}function re(e,t){return Z(3008,5376,e,t,f.downlevelIteration?oe:ae)}function ne(r,n,i){var a=[],o=r.initializer;if(e.isVariableDeclarationList(o)){3&r.initializer.flags&&Fe();var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var u=e.flattenDestructuringBinding(s,S,t,0,n),l=e.setTextRange(c.createVariableDeclarationList(u),r.initializer);e.setOriginalNode(l,r.initializer),e.setSourceMapRange(l,e.createRange(u[0].pos,e.last(u).end)),a.push(c.createVariableStatement(void 0,l))}else a.push(e.setTextRange(c.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(c.createVariableDeclarationList([c.createVariableDeclaration(s?s.name:c.createTempVariable(void 0),void 0,void 0,n)]),e.moveRangePos(o,-1)),o)),e.moveRangeEnd(o,-1)))}else{var _=c.createAssignment(o,n);e.isDestructuringAssignment(_)?a.push(c.createExpressionStatement(H(_,!0))):(e.setTextRangeEnd(_,o.end),a.push(e.setTextRange(c.createExpressionStatement(e.visitNode(_,S,e.isExpression)),e.moveRangeEnd(o,-1))))}if(i)return ie(e.addRange(a,i));var d=e.visitNode(r.statement,S,e.isStatement,c.liftToBlock);return e.isBlock(d)?c.updateBlock(d,e.setTextRange(c.createNodeArray(e.concatenate(a,d.statements)),d.statements)):(a.push(d),ie(a))}function ie(t){return e.setEmitFlags(c.createBlock(c.createNodeArray(t),!0),432)}function ae(t,r,n){var i=e.visitNode(t.expression,S,e.isExpression),a=c.createLoopVariable(),s=e.isIdentifier(i)?c.getGeneratedNameForNode(i):c.createTempVariable(void 0);e.setEmitFlags(i,48|e.getEmitFlags(i));var u=e.setTextRange(c.createForStatement(e.setEmitFlags(e.setTextRange(c.createVariableDeclarationList([e.setTextRange(c.createVariableDeclaration(a,void 0,void 0,c.createNumericLiteral(0)),e.moveRangePos(t.expression,-1)),e.setTextRange(c.createVariableDeclaration(s,void 0,void 0,i),t.expression)]),t.expression),2097152),e.setTextRange(c.createLessThan(a,c.createPropertyAccessExpression(s,"length")),t.expression),e.setTextRange(c.createPostfixIncrement(a),t.expression),ne(t,c.createElementAccessExpression(s,a),n)),t);return e.setEmitFlags(u,256),e.setTextRange(u,t),c.restoreEnclosingLabel(u,r,o&&Y)}function oe(t,r,n,i){var a=e.visitNode(t.expression,S,e.isExpression),s=e.isIdentifier(a)?c.getGeneratedNameForNode(a):c.createTempVariable(void 0),l=e.isIdentifier(a)?c.getGeneratedNameForNode(s):c.createTempVariable(void 0),_=c.createUniqueName("e"),d=c.getGeneratedNameForNode(_),f=c.createTempVariable(void 0),g=e.setTextRange(u().createValuesHelper(a),t.expression),m=c.createCallExpression(c.createPropertyAccessExpression(s,"next"),void 0,[]);p(_),p(f);var y=1024&i?c.inlineExpressions([c.createAssignment(_,c.createVoidZero()),g]):g,v=e.setEmitFlags(e.setTextRange(c.createForStatement(e.setEmitFlags(e.setTextRange(c.createVariableDeclarationList([e.setTextRange(c.createVariableDeclaration(s,void 0,void 0,y),t.expression),c.createVariableDeclaration(l,void 0,void 0,m)]),t.expression),2097152),c.createLogicalNot(c.createPropertyAccessExpression(l,"done")),c.createAssignment(l,m),ne(t,c.createPropertyAccessExpression(l,"value"),n)),t),256);return c.createTryStatement(c.createBlock([c.restoreEnclosingLabel(v,r,o&&Y)]),c.createCatchClause(c.createVariableDeclaration(d),e.setEmitFlags(c.createBlock([c.createExpressionStatement(c.createAssignment(_,c.createObjectLiteralExpression([c.createPropertyAssignment("error",d)])))]),1)),c.createBlock([c.createTryStatement(c.createBlock([e.setEmitFlags(c.createIfStatement(c.createLogicalAnd(c.createLogicalAnd(l,c.createLogicalNot(c.createPropertyAccessExpression(l,"done"))),c.createAssignment(f,c.createPropertyAccessExpression(s,"return"))),c.createExpressionStatement(c.createFunctionCallCall(f,s,[]))),1)]),void 0,e.setEmitFlags(c.createBlock([e.setEmitFlags(c.createIfStatement(_,c.createThrowStatement(c.createPropertyAccessExpression(_,"error"))),1)]),1))]))}function se(e){return 0!=(131072&g.getNodeCheckFlags(e))}function ce(t){return e.isForStatement(t)&&!!t.initializer&&se(t.initializer)}function ue(t){return e.isForStatement(t)&&!!t.condition&&se(t.condition)}function le(e){return _e(e)||ce(e)}function _e(e){return 0!=(65536&g.getNodeCheckFlags(e))}function de(t,r){t.hoistedLocalVariables||(t.hoistedLocalVariables=[]),function r(n){if(78===n.kind)t.hoistedLocalVariables.push(n);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||r(o.name)}}(r.name)}function pe(t,r,n){switch(t.kind){case 237:return function(t,r,n){var i=t.condition&&se(t.condition),a=i||t.incrementor&&se(t.incrementor);return c.updateForStatement(t,e.visitNode(r?r.part:t.initializer,T,e.isForInitializer),e.visitNode(i?void 0:t.condition,S,e.isExpression),e.visitNode(a?void 0:t.incrementor,T,e.isExpression),n)}(t,r,n);case 238:return function(t,r){return c.updateForInStatement(t,e.visitNode(t.initializer,S,e.isForInitializer),e.visitNode(t.expression,S,e.isExpression),r)}(t,n);case 239:return function(t,r){return c.updateForOfStatement(t,void 0,e.visitNode(t.initializer,S,e.isForInitializer),e.visitNode(t.expression,S,e.isExpression),r)}(t,n);case 235:return function(t,r){return c.updateDoStatement(t,r,e.visitNode(t.expression,S,e.isExpression))}(t,n);case 236:return function(t,r){return c.updateWhileStatement(t,e.visitNode(t.expression,S,e.isExpression),r)}(t,n);default:return e.Debug.failBadSyntaxKind(t,"IterationStatement expected")}}function fe(e){return c.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function ge(e,t){var r=0===t?e.outParamName:e.originalName,n=0===t?e.originalName:e.outParamName;return c.createBinaryExpression(n,62,r)}function me(e,t,r,n){for(var i=0,a=e;i<a.length;i++){var o=a[i];o.flags&t&&n.push(c.createExpressionStatement(ge(o,r)))}}function ye(t,r,n,i){r?(t.labeledNonLocalBreaks||(t.labeledNonLocalBreaks=new e.Map),t.labeledNonLocalBreaks.set(n,i)):(t.labeledNonLocalContinues||(t.labeledNonLocalContinues=new e.Map),t.labeledNonLocalContinues.set(n,i))}function ve(e,t,r,n,i){e&&e.forEach((function(e,a){var o=[];if(!n||n.labels&&n.labels.get(a)){var s=c.createIdentifier(a);o.push(t?c.createBreakStatement(s):c.createContinueStatement(s))}else ye(n,t,a,e),o.push(c.createReturnStatement(r));i.push(c.createCaseClause(c.createStringLiteral(e),o))}))}function he(t,r,n,i,a){var o=r.name;if(e.isBindingPattern(o))for(var s=0,u=o.elements;s<u.length;s++){var l=u[s];e.isOmittedExpression(l)||he(t,l,n,i,a)}else{n.push(c.createParameterDeclaration(void 0,void 0,void 0,o));var _=g.getNodeCheckFlags(r);if(4194304&_||a){var d=c.createUniqueName("out_"+e.idText(o)),p=0;4194304&_&&(p|=1),e.isForStatement(t)&&t.initializer&&g.isBindingCapturedByNode(t.initializer,r)&&(p|=2),i.push({flags:p,originalName:o,outParamName:d})}}}function be(t,r,n){var i=c.createAssignment(e.createMemberAccessForPropertyName(c,r,e.visitNode(t.name,S,e.isPropertyName)),e.visitNode(t.initializer,S,e.isExpression));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function xe(t,r,n){var i=c.createAssignment(e.createMemberAccessForPropertyName(c,r,e.visitNode(t.name,S,e.isPropertyName)),c.cloneNode(t.name));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function De(t,r,n,i){var a=c.createAssignment(e.createMemberAccessForPropertyName(c,r,e.visitNode(t.name,S,e.isPropertyName)),q(t,t,void 0,n));return e.setTextRange(a,t),i&&e.startOnNewLine(a),a}function Se(r,n){if(8192&r.transformFlags||105===r.expression.kind||e.isSuperProperty(e.skipOuterExpressions(r.expression))){var i=c.createCallBinding(r.expression,p),a=i.target,o=i.thisArg;105===r.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=8192&r.transformFlags?c.createFunctionApplyCall(e.visitNode(a,C,e.isExpression),105===r.expression.kind?o:e.visitNode(o,S,e.isExpression),Te(r.arguments,!1,!1,!1)):e.setTextRange(c.createFunctionCallCall(e.visitNode(a,C,e.isExpression),105===r.expression.kind?o:e.visitNode(o,S,e.isExpression),e.visitNodes(r.arguments,S,e.isExpression)),r),105===r.expression.kind){var u=c.createLogicalOr(s,P());s=n?c.createAssignment(c.createUniqueName("_this",48),u):u}return e.setOriginalNode(s,r)}return e.visitEachChild(r,S,t)}function Te(t,r,n,i){var a=t.length,o=e.flatten(e.spanMap(t,Ce,(function(e,t,r,o){return t(e,n,i&&o===a)})));if(1===o.length){var s=o[0];if(!r&&!f.downlevelIteration||e.isPackedArrayLiteral(s)||e.isCallToHelper(s,"___spreadArray"))return o[0]}for(var l=u(),_=e.isSpreadElement(t[0]),d=_?c.createArrayLiteralExpression():o[0],p=_?0:1;p<o.length;p++)d=l.createSpreadArrayHelper(d,f.downlevelIteration&&!e.isPackedArrayLiteral(o[p])?l.createReadHelper(o[p],void 0):o[p]);return d}function Ce(t){return e.isSpreadElement(t)?Ee:ke}function Ee(t){return e.map(t,Ne)}function ke(t,r,n){return c.createArrayLiteralExpression(e.visitNodes(c.createNodeArray(t,n),S,e.isExpression),r)}function Ne(t){return e.visitNode(t.expression,S,e.isExpression)}function Ae(e){return 8&i&&!e?c.createPropertyAccessExpression(c.createUniqueName("_super",48),"prototype"):c.createUniqueName("_super",48)}function Fe(){0==(2&s)&&(s|=2,t.enableSubstitution(78))}function Pe(){0==(1&s)&&(s|=1,t.enableSubstitution(107),t.enableEmitNotification(166),t.enableEmitNotification(165),t.enableEmitNotification(167),t.enableEmitNotification(168),t.enableEmitNotification(209),t.enableEmitNotification(208),t.enableEmitNotification(251))}function we(t,r){return e.hasSyntacticModifier(r,32)?c.getInternalName(t):c.createPropertyAccessExpression(c.getInternalName(t),"prototype")}}}(ts||(ts={})),function(e){e.transformES5=function(t){var r,n,i=t.factory,a=t.getCompilerOptions();1!==a.jsx&&3!==a.jsx||(r=t.onEmitNode,t.onEmitNode=function(t,i,a){switch(i.kind){case 275:case 276:case 274:var o=i.tagName;n[e.getOriginalNodeId(o)]=!0}r(t,i,a)},t.enableEmitNotification(275),t.enableEmitNotification(276),t.enableEmitNotification(274),n=[]);var o=t.onSubstituteNode;return t.onSubstituteNode=function(t,r){if(r.id&&n&&n[r.id])return o(t,r);if(r=o(t,r),e.isPropertyAccessExpression(r))return function(t){if(e.isPrivateIdentifier(t.name))return t;var r=s(t.name);if(r)return e.setTextRange(i.createElementAccessExpression(t.expression,r),t);return t}(r);if(e.isPropertyAssignment(r))return function(t){var r=e.isIdentifier(t.name)&&s(t.name);if(r)return i.updatePropertyAssignment(t,r,t.initializer);return t}(r);return r},t.enableSubstitution(201),t.enableSubstitution(288),e.chainBundle(t,(function(e){return e}));function s(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(void 0!==r&&r>=80&&r<=115)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(ts||(ts={})),function(e){var t,r,n,i,a;!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"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(r||(r={})),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"}(n||(n={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(i||(i={})),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"}(a||(a={})),e.transformGenerators=function(t){var r,n,i,a,o,s,c,u,l,_,d=t.factory,p=t.getEmitHelperFactory,f=t.resumeLexicalEnvironment,g=t.endLexicalEnvironment,m=t.hoistFunctionDeclaration,y=t.hoistVariableDeclaration,v=t.getCompilerOptions(),h=e.getEmitScriptTarget(v),b=t.getEmitResolver(),x=t.onSubstituteNode;t.onSubstituteNode=function(t,i){if(i=x(t,i),1===t)return function(t){if(e.isIdentifier(t))return function(t){if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=b.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(d.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t);return t}(i);return i};var D,S,T,C,E,k,N,A,F,P,w,I,O=1,M=0,L=0;return e.chainBundle(t,(function(r){if(r.isDeclarationFile||0==(512&r.transformFlags))return r;var n=e.visitEachChild(r,R,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function R(r){var n=r.transformFlags;return a?function(r){switch(r.kind){case 235:case 236:return function(r){return a?(ae(),r=e.visitEachChild(r,R,t),se(),r):e.visitEachChild(r,R,t)}(r);case 244:return function(r){a&&te({kind:2,isScript:!0,breakLabel:-1});r=e.visitEachChild(r,R,t),a&&ce();return r}(r);case 245:return function(r){a&&te({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1});r=e.visitEachChild(r,R,t),a&&ue();return r}(r);default:return B(r)}}(r):i?B(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 251:return j(t);case 208:return J(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):512&n?e.visitEachChild(r,R,t):r}function B(r){switch(r.kind){case 251:return j(r);case 208:return J(r);case 167:case 168:return function(r){var n=i,o=a;return i=!1,a=!1,r=e.visitEachChild(r,R,t),i=n,a=o,r}(r);case 232:return function(t){if(262144&t.transformFlags)return void H(t.declarationList);if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){var i=n[r];y(i.name)}var a=e.getInitializedVariables(t.declarationList);if(0===a.length)return;return e.setSourceMapRange(d.createExpressionStatement(d.inlineExpressions(e.map(a,G))),t)}(r);case 237:return function(r){a&&ae();var n=r.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];y(s.name)}var c=e.getInitializedVariables(n);r=d.updateForStatement(r,c.length>0?d.inlineExpressions(e.map(c,G)):void 0,e.visitNode(r.condition,R,e.isExpression),e.visitNode(r.incrementor,R,e.isExpression),e.visitNode(r.statement,R,e.isStatement,d.liftToBlock))}else r=e.visitEachChild(r,R,t);a&&se();return r}(r);case 238:return function(r){a&&ae();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];y(s.name)}r=d.updateForInStatement(r,n.declarations[0].name,e.visitNode(r.expression,R,e.isExpression),e.visitNode(r.statement,R,e.isStatement,d.liftToBlock))}else r=e.visitEachChild(r,R,t);a&&se();return r}(r);case 241:return function(r){if(a){var n=fe(r.label&&e.idText(r.label));if(n>0)return ve(n,r)}return e.visitEachChild(r,R,t)}(r);case 240:return function(r){if(a){var n=ge(r.label&&e.idText(r.label));if(n>0)return ve(n,r)}return e.visitEachChild(r,R,t)}(r);case 242:return function(t){return r=e.visitNode(t.expression,R,e.isExpression),n=t,e.setTextRange(d.createReturnStatement(d.createArrayLiteralExpression(r?[ye(2),r]:[ye(2)])),n);var r,n}(r);default:return 262144&r.transformFlags?function(r){switch(r.kind){case 216:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){if(X(r.right))return e.isLogicalOperator(r.operatorToken.kind)?function(t){var r=$(),n=Z();xe(n,e.visitNode(t.left,R,e.isExpression),t.left),55===t.operatorToken.kind?Te(r,n,t.left):Se(r,n,t.left);return xe(n,e.visitNode(t.right,R,e.isExpression),t.right),ee(r),n}(r):27===r.operatorToken.kind?U(r):d.updateBinaryExpression(r,Y(e.visitNode(r.left,R,e.isExpression)),r.operatorToken,e.visitNode(r.right,R,e.isExpression));return e.visitEachChild(r,R,t)}(r);case 1:return function(r){var n=r.left,i=r.right;if(X(i)){var a=void 0;switch(n.kind){case 201:a=d.updatePropertyAccessExpression(n,Y(e.visitNode(n.expression,R,e.isLeftHandSideExpression)),n.name);break;case 202:a=d.updateElementAccessExpression(n,Y(e.visitNode(n.expression,R,e.isLeftHandSideExpression)),Y(e.visitNode(n.argumentExpression,R,e.isExpression)));break;default:a=e.visitNode(n,R,e.isExpression)}var o=r.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(d.createAssignment(a,e.setTextRange(d.createBinaryExpression(Y(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,R,e.isExpression)),r)),r):d.updateBinaryExpression(r,a,r.operatorToken,e.visitNode(i,R,e.isExpression))}return e.visitEachChild(r,R,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 337:return function(t){for(var r=[],n=0,i=t.elements;n<i.length;n++){var a=i[n];e.isBinaryExpression(a)&&27===a.operatorToken.kind?r.push(U(a)):(X(a)&&r.length>0&&(Ce(1,[d.createExpressionStatement(d.inlineExpressions(r))]),r=[]),r.push(e.visitNode(a,R,e.isExpression)))}return d.inlineExpressions(r)}(r);case 217:return function(r){if(X(r.whenTrue)||X(r.whenFalse)){var n=$(),i=$(),a=Z();return Te(n,e.visitNode(r.condition,R,e.isExpression),r.condition),xe(a,e.visitNode(r.whenTrue,R,e.isExpression),r.whenTrue),De(i),ee(n),xe(a,e.visitNode(r.whenFalse,R,e.isExpression),r.whenFalse),ee(i),a}return e.visitEachChild(r,R,t)}(r);case 219:return function(t){var r=$(),n=e.visitNode(t.expression,R,e.isExpression);if(t.asteriskToken){!function(e,t){Ce(7,[e],t)}(0==(8388608&e.getEmitFlags(t.expression))?e.setTextRange(p().createValuesHelper(n),t):n,t)}else!function(e,t){Ce(6,[e],t)}(n,t);return ee(r),function(t){return e.setTextRange(d.createCallExpression(d.createPropertyAccessExpression(C,"sent"),void 0,[]),t)}(t)}(r);case 199:return function(e){return V(e.elements,void 0,void 0,e.multiLine)}(r);case 200:return function(t){var r=t.properties,n=t.multiLine,i=Q(r),a=Z();xe(a,d.createObjectLiteralExpression(e.visitNodes(r,R,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,s,[],i);return o.push(n?e.startOnNewLine(e.setParent(e.setTextRange(d.cloneNode(a),a),a.parent)):a),d.inlineExpressions(o);function s(r,i){X(i)&&r.length>0&&(be(d.createExpressionStatement(d.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(d,t,i,a),s=e.visitNode(o,R,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r}}(r);case 202:return function(r){if(X(r.argumentExpression))return d.updateElementAccessExpression(r,Y(e.visitNode(r.expression,R,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,R,e.isExpression));return e.visitEachChild(r,R,t)}(r);case 203:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,X)){var n=d.createCallBinding(r.expression,y,h,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(d.createFunctionApplyCall(Y(e.visitNode(i,R,e.isLeftHandSideExpression)),a,V(r.arguments)),r),r)}return e.visitEachChild(r,R,t)}(r);case 204:return function(r){if(e.forEach(r.arguments,X)){var n=d.createCallBinding(d.createPropertyAccessExpression(r.expression,"bind"),y),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(d.createNewExpression(d.createFunctionApplyCall(Y(e.visitNode(i,R,e.isExpression)),a,V(r.arguments,d.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,R,t)}(r);default:return e.visitEachChild(r,R,t)}}(r):1049088&r.transformFlags?e.visitEachChild(r,R,t):r}}function j(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(d.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,R,t),void 0,z(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,R,t),i=n,a=o}return i?void m(r):r}function J(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(d.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,R,t),void 0,z(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,R,t),i=n,a=o}return r}function z(t){var r=[],n=i,p=a,m=o,y=s,v=c,h=u,b=l,x=_,E=O,k=D,N=S,A=T,F=C;i=!0,a=!1,o=void 0,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0,O=1,D=void 0,S=void 0,T=void 0,C=d.createTempVariable(void 0),f();var P=d.copyPrologue(t.statements,r,!1,R);K(t.statements,P);var w=Ee();return e.insertStatementsAfterStandardPrologue(r,g()),r.push(d.createReturnStatement(w)),i=n,a=p,o=m,s=y,c=v,u=h,l=b,_=x,O=E,D=k,S=N,T=A,C=F,e.setTextRange(d.createBlock(r,t.multiLine),t)}function U(t){var r=[];return n(t.left),n(t.right),d.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(X(t)&&r.length>0&&(Ce(1,[d.createExpressionStatement(d.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,R,e.isExpression)))}}function V(t,r,n,i){var a,o=Q(t);if(o>0){a=Z();var s=e.visitNodes(t,R,e.isExpression,0,o);xe(a,d.createArrayLiteralExpression(r?__spreadArray([r],s):s)),r=void 0}var c=e.reduceLeft(t,(function(t,n){if(X(n)&&t.length>0){var o=void 0!==a;a||(a=Z()),xe(a,o?d.createArrayConcatCall(a,[d.createArrayLiteralExpression(t,i)]):d.createArrayLiteralExpression(r?__spreadArray([r],t):t,i)),r=void 0,t=[]}return t.push(e.visitNode(n,R,e.isExpression)),t}),[],o);return a?d.createArrayConcatCall(a,[d.createArrayLiteralExpression(c,i)]):e.setTextRange(d.createArrayLiteralExpression(r?__spreadArray([r],c):c,i),n)}function K(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)W(e[n])}function q(t){e.isBlock(t)?K(t.statements):W(t)}function W(i){var o=a;a||(a=X(i)),function(i){switch(i.kind){case 230:return function(t){X(t)?K(t.statements):be(e.visitNode(t,R,e.isStatement))}(i);case 233:return function(t){be(e.visitNode(t,R,e.isStatement))}(i);case 234:return function(t){if(X(t))if(X(t.thenStatement)||X(t.elseStatement)){var r=$(),n=t.elseStatement?$():void 0;Te(t.elseStatement?n:r,e.visitNode(t.expression,R,e.isExpression),t.expression),q(t.thenStatement),t.elseStatement&&(De(r),ee(n),q(t.elseStatement)),ee(r)}else be(e.visitNode(t,R,e.isStatement));else be(e.visitNode(t,R,e.isStatement))}(i);case 235:return function(t){if(X(t)){var r=$(),n=$();oe(r),ee(n),q(t.statement),ee(r),Se(n,e.visitNode(t.expression,R,e.isExpression)),se()}else be(e.visitNode(t,R,e.isStatement))}(i);case 236:return function(t){if(X(t)){var r=$(),n=oe(r);ee(r),Te(n,e.visitNode(t.expression,R,e.isExpression)),q(t.statement),De(r),se()}else be(e.visitNode(t,R,e.isStatement))}(i);case 237:return function(t){if(X(t)){var r=$(),n=$(),i=oe(n);if(t.initializer){var a=t.initializer;e.isVariableDeclarationList(a)?H(a):be(e.setTextRange(d.createExpressionStatement(e.visitNode(a,R,e.isExpression)),a))}ee(r),t.condition&&Te(i,e.visitNode(t.condition,R,e.isExpression)),q(t.statement),ee(n),t.incrementor&&be(e.setTextRange(d.createExpressionStatement(e.visitNode(t.incrementor,R,e.isExpression)),t.incrementor)),De(r),se()}else be(e.visitNode(t,R,e.isStatement))}(i);case 238:return function(t){if(X(t)){var r=Z(),n=Z(),i=d.createLoopVariable(),a=t.initializer;y(i),xe(r,d.createArrayLiteralExpression()),be(d.createForInStatement(n,e.visitNode(t.expression,R,e.isExpression),d.createExpressionStatement(d.createCallExpression(d.createPropertyAccessExpression(r,"push"),void 0,[n])))),xe(i,d.createNumericLiteral(0));var o=$(),s=$(),c=oe(s);ee(o),Te(c,d.createLessThan(i,d.createPropertyAccessExpression(r,"length")));var u=void 0;if(e.isVariableDeclarationList(a)){for(var l=0,_=a.declarations;l<_.length;l++){var p=_[l];y(p.name)}u=d.cloneNode(a.declarations[0].name)}else u=e.visitNode(a,R,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(u));xe(u,d.createElementAccessExpression(r,i)),q(t.statement),ee(s),be(d.createExpressionStatement(d.createPostfixIncrement(i))),De(o),se()}else be(e.visitNode(t,R,e.isStatement))}(i);case 240:return function(t){var r=ge(t.label?e.idText(t.label):void 0);r>0?De(r,t):be(t)}(i);case 241:return function(t){var r=fe(t.label?e.idText(t.label):void 0);r>0?De(r,t):be(t)}(i);case 242:return function(t){r=e.visitNode(t.expression,R,e.isExpression),n=t,Ce(8,[r],n);var r,n}(i);case 243:return function(t){X(t)?(r=Y(e.visitNode(t.expression,R,e.isExpression)),n=$(),i=$(),ee(n),te({kind:1,expression:r,startLabel:n,endLabel:i}),q(t.statement),e.Debug.assert(1===ie()),ee(re().endLabel)):be(e.visitNode(t,R,e.isStatement));var r,n,i}(i);case 244:return function(t){if(X(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(te({kind:2,isScript:!1,breakLabel:f=$()}),f),a=Y(e.visitNode(t.expression,R,e.isExpression)),o=[],s=-1,c=0;c<n;c++){var u=r.clauses[c];o.push($()),285===u.kind&&-1===s&&(s=c)}for(var l=0,_=[];l<n;){var p=0;for(c=l;c<n;c++){if(284===(u=r.clauses[c]).kind){if(X(u.expression)&&_.length>0)break;_.push(d.createCaseClause(e.visitNode(u.expression,R,e.isExpression),[ve(o[c],u.expression)]))}else p++}_.length&&(be(d.createSwitchStatement(a,d.createCaseBlock(_))),l+=_.length,_=[]),p>0&&(l+=p,p=0)}De(s>=0?o[s]:i);for(c=0;c<n;c++)ee(o[c]),K(r.clauses[c].statements);ce()}else be(e.visitNode(t,R,e.isStatement));var f}(i);case 245:return function(t){X(t)?(r=e.idText(t.label),n=$(),te({kind:4,isScript:!1,labelText:r,breakLabel:n}),q(t.statement),ue()):be(e.visitNode(t,R,e.isStatement));var r,n}(i);case 246:return function(t){var r;n=e.visitNode(null!==(r=t.expression)&&void 0!==r?r:d.createVoidZero(),R,e.isExpression),i=t,Ce(9,[n],i);var n,i}(i);case 247:return function(i){X(i)?(a=$(),o=$(),ee(a),te({kind:0,state:0,startLabel:a,endLabel:o}),he(),q(i.tryBlock),i.catchClause&&(!function(i){var a;if(e.Debug.assert(0===ie()),e.isGeneratedIdentifier(i.name))a=i.name,y(i.name);else{var o=e.idText(i.name);a=Z(o),r||(r=new e.Map,n=[],t.enableSubstitution(78)),r.set(o,!0),n[e.getOriginalNodeId(i)]=a}var s=ne();e.Debug.assert(s.state<1),De(s.endLabel);var c=$();ee(c),s.state=1,s.catchVariable=a,s.catchLabel=c,xe(a,d.createCallExpression(d.createPropertyAccessExpression(C,"sent"),void 0,[])),he()}(i.catchClause.variableDeclaration),q(i.catchClause.block)),i.finallyBlock&&(!function(){e.Debug.assert(0===ie());var t=ne();e.Debug.assert(t.state<2),De(t.endLabel);var r=$();ee(r),t.state=2,t.finallyLabel=r}(),q(i.finallyBlock)),function(){e.Debug.assert(0===ie());var t=re();t.state<2?De(t.endLabel):Ce(10);ee(t.endLabel),he(),t.state=3}()):be(e.visitEachChild(i,R,t));var a,o}(i);default:be(e.visitNode(i,R,e.isStatement))}}(i),a=o}function H(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=d.cloneNode(i.name);e.setCommentRange(a,i.name),y(a)}for(var o=e.getInitializedVariables(t),s=o.length,c=0,u=[];c<s;){for(var l=c;l<s;l++){if(X((i=o[l]).initializer)&&u.length>0)break;u.push(G(i))}u.length&&(be(d.createExpressionStatement(d.inlineExpressions(u))),c+=u.length,u=[])}}function G(t){return e.setSourceMapRange(d.createAssignment(e.setSourceMapRange(d.cloneNode(t.name),t.name),e.visitNode(t.initializer,R,e.isExpression)),t)}function X(e){return!!e&&0!=(262144&e.transformFlags)}function Q(e){for(var t=e.length,r=0;r<t;r++)if(X(e[r]))return r;return-1}function Y(t){if(e.isGeneratedIdentifier(t)||4096&e.getEmitFlags(t))return t;var r=d.createTempVariable(y);return xe(r,t,t),r}function Z(e){var t=e?d.createUniqueName(e):d.createTempVariable(void 0);return y(t),t}function $(){l||(l=[]);var e=O;return O++,l[e]=-1,e}function ee(t){e.Debug.assert(void 0!==l,"No labels were defined."),l[t]=D?D.length:0}function te(e){o||(o=[],c=[],s=[],u=[]);var t=c.length;return c[t]=0,s[t]=D?D.length:0,o[t]=e,u.push(e),t}function re(){var t=ne();if(void 0===t)return e.Debug.fail("beginBlock was never called.");var r=c.length;return c[r]=1,s[r]=D?D.length:0,o[r]=t,u.pop(),t}function ne(){return e.lastOrUndefined(u)}function ie(){var e=ne();return e&&e.kind}function ae(){te({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function oe(e){var t=$();return te({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function se(){e.Debug.assert(3===ie());var t=re(),r=t.breakLabel;t.isScript||ee(r)}function ce(){e.Debug.assert(2===ie());var t=re(),r=t.breakLabel;t.isScript||ee(r)}function ue(){e.Debug.assert(4===ie());var t=re();t.isScript||ee(t.breakLabel)}function le(e){return 2===e.kind||3===e.kind}function _e(e){return 4===e.kind}function de(e){return 3===e.kind}function pe(e,t){for(var r=t;r>=0;r--){var n=u[r];if(!_e(n))break;if(n.labelText===e)return!0}return!1}function fe(e){if(u)if(e)for(var t=u.length-1;t>=0;t--){if(_e(r=u[t])&&r.labelText===e)return r.breakLabel;if(le(r)&&pe(e,t-1))return r.breakLabel}else for(t=u.length-1;t>=0;t--){var r;if(le(r=u[t]))return r.breakLabel}return 0}function ge(e){if(u)if(e)for(var t=u.length-1;t>=0;t--){if(de(r=u[t])&&pe(e,t-1))return r.continueLabel}else for(t=u.length-1;t>=0;t--){var r;if(de(r=u[t]))return r.continueLabel}return 0}function me(e){if(void 0!==e&&e>0){void 0===_&&(_=[]);var t=d.createNumericLiteral(-1);return void 0===_[e]?_[e]=[t]:_[e].push(t),t}return d.createOmittedExpression()}function ye(t){var r=d.createNumericLiteral(t);return e.addSyntheticTrailingComment(r,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}}(t)),r}function ve(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(d.createReturnStatement(d.createArrayLiteralExpression([ye(3),me(t)])),r)}function he(){Ce(0)}function be(e){e?Ce(1,[e]):he()}function xe(e,t,r){Ce(2,[e,t],r)}function De(e,t){Ce(3,[e],t)}function Se(e,t,r){Ce(4,[e,t],r)}function Te(e,t,r){Ce(5,[e,t],r)}function Ce(e,t,r){void 0===D&&(D=[],S=[],T=[]),void 0===l&&ee($());var n=D.length;D[n]=e,S[n]=t,T[n]=r}function Ee(){M=0,L=0,E=void 0,k=!1,N=!1,A=void 0,F=void 0,P=void 0,w=void 0,I=void 0;var t=function(){if(D){for(var t=0;t<D.length;t++)Fe(t);ke(D.length)}else ke(0);if(A){var r=d.createPropertyAccessExpression(C,"label"),n=d.createSwitchStatement(r,d.createCaseBlock(A));return[e.startOnNewLine(n)]}if(F)return F;return[]}();return p().createGeneratorHelper(e.setEmitFlags(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,C)],void 0,d.createBlock(t,t.length>0)),524288))}function ke(e){(function(e){if(!N)return!0;if(!l||!_)return!1;for(var t=0;t<l.length;t++)if(l[t]===e&&_[t])return!0;return!1})(e)&&(Ae(e),I=void 0,we(void 0,void 0)),F&&A&&Ne(!1),function(){if(void 0!==_&&void 0!==E)for(var e=0;e<E.length;e++){var t=E[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var i=n[r],a=_[i];if(void 0!==a)for(var o=0,s=a;o<s.length;o++){s[o].text=String(e)}}}}()}function Ne(e){if(A||(A=[]),F){if(I)for(var t=I.length-1;t>=0;t--){var r=I[t];F=[d.createWithStatement(r.expression,d.createBlock(F))]}if(w){var n=w.startLabel,i=w.catchLabel,a=w.finallyLabel,o=w.endLabel;F.unshift(d.createExpressionStatement(d.createCallExpression(d.createPropertyAccessExpression(d.createPropertyAccessExpression(C,"trys"),"push"),void 0,[d.createArrayLiteralExpression([me(n),me(i),me(a),me(o)])]))),w=void 0}e&&F.push(d.createExpressionStatement(d.createAssignment(d.createPropertyAccessExpression(C,"label"),d.createNumericLiteral(L+1))))}A.push(d.createCaseClause(d.createNumericLiteral(L),F||[])),F=void 0}function Ae(e){if(l)for(var t=0;t<l.length;t++)l[t]===e&&(F&&(Ne(!k),k=!1,N=!1,L++),void 0===E&&(E=[]),void 0===E[L]?E[L]=[t]:E[L].push(t))}function Fe(t){if(Ae(t),function(e){if(o)for(;M<c.length&&s[M]<=e;M++){var t=o[M],r=c[M];switch(t.kind){case 0:0===r?(P||(P=[]),F||(F=[]),P.push(w),w=t):1===r&&(w=P.pop());break;case 1:0===r?(I||(I=[]),I.push(t)):1===r&&I.pop()}}}(t),!k){k=!1,N=!1;var r=D[t];if(0!==r){if(10===r)return k=!0,void Pe(d.createReturnStatement(d.createArrayLiteralExpression([ye(7)])));var n=S[t];if(1===r)return Pe(n[0]);var i,a,u,l=T[t];switch(r){case 2:return i=n[0],a=n[1],u=l,void Pe(e.setTextRange(d.createExpressionStatement(d.createAssignment(i,a)),u));case 3:return function(t,r){k=!0,Pe(e.setEmitFlags(e.setTextRange(d.createReturnStatement(d.createArrayLiteralExpression([ye(3),me(t)])),r),384))}(n[0],l);case 4:return function(t,r,n){Pe(e.setEmitFlags(d.createIfStatement(r,e.setEmitFlags(e.setTextRange(d.createReturnStatement(d.createArrayLiteralExpression([ye(3),me(t)])),n),384)),1))}(n[0],n[1],l);case 5:return function(t,r,n){Pe(e.setEmitFlags(d.createIfStatement(d.createLogicalNot(r),e.setEmitFlags(e.setTextRange(d.createReturnStatement(d.createArrayLiteralExpression([ye(3),me(t)])),n),384)),1))}(n[0],n[1],l);case 6:return function(t,r){k=!0,Pe(e.setEmitFlags(e.setTextRange(d.createReturnStatement(d.createArrayLiteralExpression(t?[ye(4),t]:[ye(4)])),r),384))}(n[0],l);case 7:return function(t,r){k=!0,Pe(e.setEmitFlags(e.setTextRange(d.createReturnStatement(d.createArrayLiteralExpression([ye(5),t])),r),384))}(n[0],l);case 8:return we(n[0],l);case 9:return function(t,r){k=!0,N=!0,Pe(e.setTextRange(d.createThrowStatement(t),r))}(n[0],l)}}}}function Pe(e){e&&(F?F.push(e):F=[e])}function we(t,r){k=!0,N=!0,Pe(e.setEmitFlags(e.setTextRange(d.createReturnStatement(d.createArrayLiteralExpression(t?[ye(2),t]:[ye(2)])),r),384))}}}(ts||(ts={})),function(e){e.transformModule=function(r){var n=r.factory,i=r.getEmitHelperFactory,a=r.startLexicalEnvironment,o=r.endLexicalEnvironment,s=r.hoistVariableDeclaration,c=r.getCompilerOptions(),u=r.getEmitResolver(),l=r.getEmitHost(),_=e.getEmitScriptTarget(c),d=e.getEmitModuleKind(c),p=r.onSubstituteNode,f=r.onEmitNode;r.onSubstituteNode=function(t,r){if((r=p(t,r)).id&&y[r.id])return r;if(1===t)return function(t){switch(t.kind){case 78:return X(t);case 216:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=Q(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];y[e.getNodeId(n)]=!0,n=H(o,n,t)}return n}}return t}(t);case 215:case 214:return function(t){if((45===t.operator||46===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var r=Q(t.operand);if(r){for(var i=215===t.kind?e.setTextRange(n.createBinaryExpression(t.operand,n.createToken(45===t.operator?63:64),n.createNumericLiteral(1)),t):t,a=0,o=r;a<o.length;a++){var s=o[a];y[e.getNodeId(i)]=!0,i=n.createParenthesizedExpression(H(s,i))}return i}}return t}(t)}return t}(r);if(e.isShorthandPropertyAssignment(r))return function(t){var r=t.name,i=X(r);if(i!==r){if(t.objectAssignmentInitializer){var a=n.createAssignment(i,t.objectAssignmentInitializer);return e.setTextRange(n.createPropertyAssignment(r,a),t)}return e.setTextRange(n.createPropertyAssignment(r,i),t)}return t}(r);return r},r.onEmitNode=function(t,r,n){297===r.kind?(g=r,m=h[e.getOriginalNodeId(g)],y=[],f(t,r,n),g=void 0,m=void 0,y=void 0):f(t,r,n)},r.enableSubstitution(78),r.enableSubstitution(216),r.enableSubstitution(214),r.enableSubstitution(215),r.enableSubstitution(289),r.enableEmitNotification(297);var g,m,y,v,h=[],b=[];return e.chainBundle(r,(function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,c)||2097152&t.transformFlags||e.isJsonSourceFile(t)&&e.hasJsonModuleEmitEnabled(c)&&e.outFile(c)))return t;g=t,m=e.collectExternalModuleInfo(r,t,u,c),h[e.getOriginalNodeId(t)]=m;var n=function(t){switch(t){case e.ModuleKind.AMD:return S;case e.ModuleKind.UMD:return T;default:return D}}(d)(t);return g=void 0,m=void 0,v=!1,n}));function x(){return!(m.exportEquals||!e.isExternalModule(g))}function D(t){a();var i=[],s=e.getStrictOptionValue(c,"alwaysStrict")||!c.noImplicitUseStrict&&e.isExternalModule(g),u=n.copyPrologue(t.statements,i,s&&!e.isJsonSourceFile(t),A);if(x()&&e.append(i,W()),e.length(m.exportedNames))for(var l=0;l<m.exportedNames.length;l+=50)e.append(i,n.createExpressionStatement(e.reduceLeft(m.exportedNames.slice(l,l+50),(function(t,r){return n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(e.idText(r))),t)}),n.createVoidZero())));e.append(i,e.visitNode(m.externalHelpersImportDeclaration,A,e.isStatement)),e.addRange(i,e.visitNodes(t.statements,A,e.isStatement,u)),N(i,!1),e.insertStatementsAfterStandardPrologue(i,o());var _=n.updateSourceFile(t,e.setTextRange(n.createNodeArray(i),t.statements));return e.addEmitHelpers(_,r.readEmitHelpers()),_}function S(t){var i=n.createIdentifier("define"),a=e.tryGetModuleNameFromFile(n,t,l,c),o=e.isJsonSourceFile(t)&&t,s=C(t,!0),u=s.aliasedModuleNames,_=s.unaliasedModuleNames,d=s.importAliasNames,p=n.updateSourceFile(t,e.setTextRange(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(i,void 0,__spreadArray(__spreadArray([],a?[a]:[]),[n.createArrayLiteralExpression(o?e.emptyArray:__spreadArray(__spreadArray([n.createStringLiteral("require"),n.createStringLiteral("exports")],u),_)),o?o.statements.length?o.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,__spreadArray([n.createParameterDeclaration(void 0,void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,void 0,"exports")],d),void 0,k(t))])))]),t.statements));return e.addEmitHelpers(p,r.readEmitHelpers()),p}function T(t){var i=C(t,!1),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,s=i.importAliasNames,u=e.tryGetModuleNameFromFile(n,t,l,c),_=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),e.setEmitFlags(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,__spreadArray(__spreadArray([],u?[u]:[]),[n.createArrayLiteralExpression(__spreadArray(__spreadArray([n.createStringLiteral("require"),n.createStringLiteral("exports")],a),o)),n.createIdentifier("factory")])))])))],!0),void 0)),d=n.updateSourceFile(t,e.setTextRange(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(_,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,__spreadArray([n.createParameterDeclaration(void 0,void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,void 0,"exports")],s),void 0,k(t))]))]),t.statements));return e.addEmitHelpers(d,r.readEmitHelpers()),d}function C(t,r){for(var i=[],a=[],o=[],s=0,_=t.amdDependencies;s<_.length;s++){var d=_[s];d.name?(i.push(n.createStringLiteral(d.path)),o.push(n.createParameterDeclaration(void 0,void 0,void 0,d.name))):a.push(n.createStringLiteral(d.path))}for(var p=0,f=m.externalImports;p<f.length;p++){var y=f[p],v=e.getExternalModuleNameLiteral(n,y,g,l,u,c),h=e.getLocalNameForExternalImport(n,y,g);v&&(r&&h?(e.setEmitFlags(h,4),i.push(v),o.push(n.createParameterDeclaration(void 0,void 0,void 0,h))):a.push(v))}return{aliasedModuleNames:i,unaliasedModuleNames:a,importAliasNames:o}}function E(t){if(!e.isImportEqualsDeclaration(t)&&!e.isExportDeclaration(t)&&e.getExternalModuleNameLiteral(n,t,g,l,u,c)){var r=e.getLocalNameForExternalImport(n,t,g),i=O(t,r);if(i!==r)return n.createExpressionStatement(n.createAssignment(r,i))}}function k(r){a();var i=[],s=n.copyPrologue(r.statements,i,!c.noImplicitUseStrict,A);x()&&e.append(i,W()),e.length(m.exportedNames)&&e.append(i,n.createExpressionStatement(e.reduceLeft(m.exportedNames,(function(t,r){return n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(e.idText(r))),t)}),n.createVoidZero()))),e.append(i,e.visitNode(m.externalHelpersImportDeclaration,A,e.isStatement)),d===e.ModuleKind.AMD&&e.addRange(i,e.mapDefined(m.externalImports,E)),e.addRange(i,e.visitNodes(r.statements,A,e.isStatement,s)),N(i,!0),e.insertStatementsAfterStandardPrologue(i,o());var u=n.createBlock(i,!0);return v&&e.addEmitHelper(u,t),u}function N(t,r){if(m.exportEquals){var i=e.visitNode(m.exportEquals.expression,F);if(i)if(r){var a=n.createReturnStatement(i);e.setTextRange(a,m.exportEquals),e.setEmitFlags(a,1920),t.push(a)}else{a=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),i));e.setTextRange(a,m.exportEquals),e.setEmitFlags(a,1536),t.push(a)}}}function A(t){switch(t.kind){case 261:return function(t){var r,i=e.getNamespaceDeclarationNode(t);if(d!==e.ModuleKind.AMD){if(!t.importClause)return e.setOriginalNode(e.setTextRange(n.createExpressionStatement(M(t)),t),t);var a=[];i&&!e.isDefaultImport(t)?a.push(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,O(t,M(t)))):(a.push(n.createVariableDeclaration(n.getGeneratedNameForNode(t),void 0,void 0,O(t,M(t)))),i&&e.isDefaultImport(t)&&a.push(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)))),r=e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList(a,_>=2?2:0)),t),t))}else i&&e.isDefaultImport(t)&&(r=e.append(r,n.createVariableStatement(void 0,n.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)),t),t)],_>=2?2:0))));if(B(t)){var o=e.getOriginalNodeId(t);b[o]=j(b[o],t)}else r=j(r,t);return e.singleOrMany(r)}(t);case 260:return function(t){var r;e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),d!==e.ModuleKind.AMD?r=e.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(H(t.name,M(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(t.name),void 0,void 0,M(t))],_>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(H(n.getExportName(t),n.getLocalName(t))),t),t)));if(B(t)){var i=e.getOriginalNodeId(t);b[i]=J(b[i],t)}else r=J(r,t);return e.singleOrMany(r)}(t);case 267:return function(t){if(!t.moduleSpecifier)return;var r=n.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var a=[];d!==e.ModuleKind.AMD&&a.push(e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,M(t))])),t),t));for(var o=0,s=t.exportClause.elements;o<s.length;o++){var u=s[o];if(0===_)a.push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(i().createCreateBindingHelper(r,n.createStringLiteralFromNode(u.propertyName||u.name),u.propertyName?n.createStringLiteralFromNode(u.name):void 0)),u),u));else{var l=!(!c.esModuleInterop||67108864&e.getEmitFlags(t)||"default"!==e.idText(u.propertyName||u.name)),p=n.createPropertyAccessExpression(l?i().createImportDefaultHelper(r):r,u.propertyName||u.name);a.push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(H(n.getExportName(u),p,void 0,!0)),u),u))}}return e.singleOrMany(a)}return t.exportClause?((a=[]).push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(H(n.cloneNode(t.exportClause.name),function(t,r){if(!c.esModuleInterop||67108864&e.getEmitFlags(t))return r;if(e.getExportNeedsImportStarHelper(t))return i().createImportStarHelper(r);return r}(t,d!==e.ModuleKind.AMD?M(t):e.isExportNamespaceAsDefaultDeclaration(t)?r:n.createIdentifier(e.idText(t.exportClause.name))))),t),t)),e.singleOrMany(a)):e.setOriginalNode(e.setTextRange(n.createExpressionStatement(i().createExportStarHelper(d!==e.ModuleKind.AMD?M(t):r)),t),t)}(t);case 266:return function(t){if(t.isExportEquals)return;var r,i=t.original;if(i&&B(i)){var a=e.getOriginalNodeId(t);b[a]=q(b[a],n.createIdentifier("default"),e.visitNode(t.expression,F),t,!0)}else r=q(r,n.createIdentifier("default"),e.visitNode(t.expression,F),t,!0);return e.singleOrMany(r)}(t);case 232:return function(t){var i,a,o;if(e.hasSyntacticModifier(t,1)){for(var s=void 0,c=!1,u=0,l=t.declarationList.declarations;u<l.length;u++){var _=l[u];if(e.isIdentifier(_.name)&&e.isLocalName(_.name))s||(s=e.visitNodes(t.modifiers,G,e.isModifier)),a=e.append(a,_);else if(_.initializer)if(!e.isBindingPattern(_.name)&&(e.isArrowFunction(_.initializer)||e.isFunctionExpression(_.initializer)||e.isClassExpression(_.initializer))){var d=n.createAssignment(e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),_.name),_.name),n.createIdentifier(e.getTextOfIdentifierOrLiteral(_.name))),p=n.createVariableDeclaration(_.name,_.exclamationToken,_.type,e.visitNode(_.initializer,F));a=e.append(a,p),o=e.append(o,d),c=!0}else o=e.append(o,R(_))}if(a&&(i=e.append(i,n.updateVariableStatement(t,s,n.updateVariableDeclarationList(t.declarationList,a)))),o){var f=e.setOriginalNode(e.setTextRange(n.createExpressionStatement(n.inlineExpressions(o)),t),t);c&&e.removeAllComments(f),i=e.append(i,f)}}else i=e.append(i,e.visitEachChild(t,F,r));if(B(t)){var g=e.getOriginalNodeId(t);b[g]=z(b[g],t)}else i=z(i,t);return e.singleOrMany(i)}(t);case 251:return function(t){var i;i=e.hasSyntacticModifier(t,1)?e.append(i,e.setOriginalNode(e.setTextRange(n.createFunctionDeclaration(void 0,e.visitNodes(t.modifiers,G,e.isModifier),t.asteriskToken,n.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,F),void 0,e.visitEachChild(t.body,F,r)),t),t)):e.append(i,e.visitEachChild(t,F,r));if(B(t)){var a=e.getOriginalNodeId(t);b[a]=V(b[a],t)}else i=V(i,t);return e.singleOrMany(i)}(t);case 252:return function(t){var i;i=e.hasSyntacticModifier(t,1)?e.append(i,e.setOriginalNode(e.setTextRange(n.createClassDeclaration(void 0,e.visitNodes(t.modifiers,G,e.isModifier),n.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.heritageClauses,F),e.visitNodes(t.members,F)),t),t)):e.append(i,e.visitEachChild(t,F,r));if(B(t)){var a=e.getOriginalNodeId(t);b[a]=V(b[a],t)}else i=V(i,t);return e.singleOrMany(i)}(t);case 338:return function(t){if(B(t)&&232===t.original.kind){var r=e.getOriginalNodeId(t);b[r]=z(b[r],t.original)}return t}(t);case 339:return function(t){var r=e.getOriginalNodeId(t),n=b[r];if(n)return delete b[r],e.append(n,t);return t}(t);default:return e.visitEachChild(t,F,r)}}function F(t){return 2097152&t.transformFlags||1024&t.transformFlags?e.isImportCall(t)?function(t){var r=e.getExternalModuleNameLiteral(n,t,g,l,u,c),i=e.visitNode(e.firstOrUndefined(t.arguments),F),a=!r||i&&e.isStringLiteral(i)&&i.text===r.text?i:r,o=!!(4096&t.transformFlags);switch(c.module){case e.ModuleKind.AMD:return w(a,o);case e.ModuleKind.UMD:return function(t,r){if(v=!0,e.isSimpleCopiableExpression(t)){var i=e.isGeneratedIdentifier(t)?t:e.isStringLiteral(t)?n.createStringLiteralFromNode(t):e.setEmitFlags(e.setTextRange(n.cloneNode(t),t),1536);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,I(t,r),void 0,w(i,r))}var a=n.createTempVariable(s);return n.createComma(n.createAssignment(a,t),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,I(a,r),void 0,w(a,r)))}(null!=a?a:n.createVoidZero(),o);case e.ModuleKind.CommonJS:default:return I(a,o)}}(t):e.isDestructuringAssignment(t)?function(t){if(P(t.left))return e.flattenDestructuringAssignment(t,F,r,0,!1,L);return e.visitEachChild(t,F,r)}(t):e.visitEachChild(t,F,r):t}function P(t){if(e.isObjectLiteralExpression(t))for(var r=0,n=t.properties;r<n.length;r++){switch((o=n[r]).kind){case 288:if(P(o.initializer))return!0;break;case 289:if(P(o.name))return!0;break;case 290:if(P(o.expression))return!0;break;case 165:case 167:case 168:return!1;default:e.Debug.assertNever(o,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(t))for(var i=0,a=t.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(t))return e.length(Q(t))>(e.isExportName(t)?1:0);return!1}function w(t,r){var a,o=n.createUniqueName("resolve"),s=n.createUniqueName("reject"),u=[n.createParameterDeclaration(void 0,void 0,void 0,o),n.createParameterDeclaration(void 0,void 0,void 0,s)],l=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([t||n.createOmittedExpression()]),o,s]))]);_>=2?a=n.createArrowFunction(void 0,void 0,u,void 0,void 0,l):(a=n.createFunctionExpression(void 0,void 0,void 0,void 0,u,void 0,l),r&&e.setEmitFlags(a,8));var d=n.createNewExpression(n.createIdentifier("Promise"),void 0,[a]);return c.esModuleInterop?n.createCallExpression(n.createPropertyAccessExpression(d,n.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):d}function I(t,r){var a,o=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,[]),s=n.createCallExpression(n.createIdentifier("require"),void 0,t?[t]:[]);return c.esModuleInterop&&(s=i().createImportStarHelper(s)),_>=2?a=n.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(a=n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(s)])),r&&e.setEmitFlags(a,8)),n.createCallExpression(n.createPropertyAccessExpression(o,"then"),void 0,[a])}function O(t,r){return!c.esModuleInterop||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?i().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?i().createImportDefaultHelper(r):r}function M(t){var r=e.getExternalModuleNameLiteral(n,t,g,l,u,c),i=[];return r&&i.push(r),n.createCallExpression(n.createIdentifier("require"),void 0,i)}function L(t,r,i){var a=Q(t);if(a){for(var o=e.isExportName(t)?r:n.createAssignment(t,r),s=0,c=a;s<c.length;s++){var u=c[s];e.setEmitFlags(o,4),o=H(u,o,i)}return o}return n.createAssignment(t,r)}function R(t){return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(e.visitNode(t,F),void 0,r,0,!1,L):n.createAssignment(e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),t.name),t.name),t.initializer?e.visitNode(t.initializer,F):n.createVoidZero())}function B(t){return 0!=(4194304&e.getEmitFlags(t))}function j(e,t){if(m.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=K(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 263:e=K(e,n);break;case 264:for(var i=0,a=n.elements;i<a.length;i++){e=K(e,a[i],!0)}}return e}function J(e,t){return m.exportEquals?e:K(e,t)}function z(e,t){if(m.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){e=U(e,n[r])}return e}function U(t,r){if(m.exportEquals)return t;if(e.isBindingPattern(r.name))for(var n=0,i=r.name.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||(t=U(t,a))}else e.isGeneratedIdentifier(r.name)||(t=K(t,r));return t}function V(t,r){if(m.exportEquals)return t;e.hasSyntacticModifier(r,1)&&(t=q(t,e.hasSyntacticModifier(r,512)?n.createIdentifier("default"):n.getDeclarationName(r),n.getLocalName(r),r));return r.name&&(t=K(t,r)),t}function K(t,r,i){var a=n.getDeclarationName(r),o=m.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var u=c[s];t=q(t,u.name,a,u.name,void 0,i)}return t}function q(t,r,i,a,o,s){return t=e.append(t,function(t,r,i,a,o){var s=e.setTextRange(n.createExpressionStatement(H(t,r,void 0,o)),i);e.startOnNewLine(s),a||e.setEmitFlags(s,1536);return s}(r,i,a,o,s))}function W(){var t;return t=0===_?n.createExpressionStatement(H(n.createIdentifier("__esModule"),n.createTrue())):n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])])),e.setEmitFlags(t,1048576),t}function H(t,r,i,a){return e.setTextRange(a&&0!==_?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(t),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(r)])))])]):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(t)),r),i)}function G(e){switch(e.kind){case 92:case 87:return}return e}function X(t){var r,i;if(4096&e.getEmitFlags(t)){var a=e.getExternalHelpersModuleName(g);return a?n.createPropertyAccessExpression(a,t):t}if((!e.isGeneratedIdentifier(t)||64&t.autoGenerateFlags)&&!e.isLocalName(t)){var o=u.getReferencedExportContainer(t,e.isExportName(t));if(o&&297===o.kind)return e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(t)),t);var s=u.getReferencedImportDeclaration(t);if(s){if(e.isImportClause(s))return e.setTextRange(n.createPropertyAccessExpression(n.getGeneratedNameForNode(s.parent),n.createIdentifier("default")),t);if(e.isImportSpecifier(s)){var c=s.propertyName||s.name;return e.setTextRange(n.createPropertyAccessExpression(n.getGeneratedNameForNode((null===(i=null===(r=s.parent)||void 0===r?void 0:r.parent)||void 0===i?void 0:i.parent)||s),n.cloneNode(c)),t)}}}return t}function Q(t){if(!e.isGeneratedIdentifier(t)){var r=u.getReferencedImportDeclaration(t)||u.getReferencedValueDeclaration(t);if(r)return m&&m.exportedBindings[e.getOriginalNodeId(r)]}}};var t={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}(ts||(ts={})),function(e){e.transformSystemModule=function(t){var r=t.factory,n=t.startLexicalEnvironment,i=t.endLexicalEnvironment,a=t.hoistVariableDeclaration,o=t.getCompilerOptions(),s=t.getEmitResolver(),c=t.getEmitHost(),u=t.onSubstituteNode,l=t.onEmitNode;t.onSubstituteNode=function(t,n){if(function(e){return y&&e.id&&y[e.id]}(n=u(t,n)))return n;if(1===t)return function(t){switch(t.kind){case 78:return function(t){var n,i;if(4096&e.getEmitFlags(t)){var a=e.getExternalHelpersModuleName(_);return a?r.createPropertyAccessExpression(a,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var o=s.getReferencedImportDeclaration(t);if(o){if(e.isImportClause(o))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode(o.parent),r.createIdentifier("default")),t);if(e.isImportSpecifier(o))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(i=null===(n=o.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i.parent)||o),r.cloneNode(o.propertyName||o.name)),t)}}return t}(t);case 216:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=H(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){n=z(a[i],G(n))}return n}}return t}(t);case 214:case 215:return function(t){if((45===t.operator||46===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var n=H(t.operand);if(n){for(var i=215===t.kind?e.setTextRange(r.createPrefixUnaryExpression(t.operator,t.operand),t):t,a=0,o=n;a<o.length;a++){i=z(o[a],G(i))}return 215===t.kind&&(i=45===t.operator?r.createSubtract(G(i),r.createNumericLiteral(1)):r.createAdd(G(i),r.createNumericLiteral(1))),i}}return t}(t);case 226:return function(t){if(e.isImportMeta(t))return r.createPropertyAccessExpression(f,r.createIdentifier("meta"));return t}(t)}return t}(n);if(4===t)return function(t){switch(t.kind){case 289:return function(t){var n,i,a=t.name;if(!e.isGeneratedIdentifier(a)&&!e.isLocalName(a)){var o=s.getReferencedImportDeclaration(a);if(o){if(e.isImportClause(o))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(a),r.createPropertyAccessExpression(r.getGeneratedNameForNode(o.parent),r.createIdentifier("default"))),t);if(e.isImportSpecifier(o))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(a),r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(i=null===(n=o.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i.parent)||o),r.cloneNode(o.propertyName||o.name))),t)}}return t}(t)}return t}(n);return n},t.onEmitNode=function(t,r,n){if(297===r.kind){var i=e.getOriginalNodeId(r);_=r,d=v[i],p=b[i],y=x[i],f=D[i],y&&delete x[i],l(t,r,n),_=void 0,d=void 0,p=void 0,f=void 0,y=void 0}else l(t,r,n)},t.enableSubstitution(78),t.enableSubstitution(289),t.enableSubstitution(216),t.enableSubstitution(214),t.enableSubstitution(215),t.enableSubstitution(226),t.enableEmitNotification(297);var _,d,p,f,g,m,y,v=[],h=[],b=[],x=[],D=[];return e.chainBundle(t,(function(a){if(a.isDeclarationFile||!(e.isEffectiveExternalModule(a,o)||2097152&a.transformFlags))return a;var u=e.getOriginalNodeId(a);_=a,m=a,d=v[u]=e.collectExternalModuleInfo(t,a,s,o),p=r.createUniqueName("exports"),b[u]=p,f=D[u]=r.createUniqueName("context");var l=function(t){for(var n=new e.Map,i=[],a=0,u=t;a<u.length;a++){var l=u[a],d=e.getExternalModuleNameLiteral(r,l,_,c,s,o);if(d){var p=d.text,f=n.get(p);void 0!==f?i[f].externalImports.push(l):(n.set(p,i.length),i.push({name:d,externalImports:[l]}))}}return i}(d.externalImports),h=function(t,a){var s=[];n();var c=e.getStrictOptionValue(o,"alwaysStrict")||!o.noImplicitUseStrict&&e.isExternalModule(_),u=r.copyPrologue(t.statements,s,c,C);s.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration("__moduleName",void 0,void 0,r.createLogicalAnd(f,r.createPropertyAccessExpression(f,"id")))]))),e.visitNode(d.externalHelpersImportDeclaration,C,e.isStatement);var l=e.visitNodes(t.statements,C,e.isStatement,u);e.addRange(s,g),e.insertStatementsAfterStandardPrologue(s,i());var p=function(e){if(!d.hasExportStarsToExportValues)return;if(!d.exportedNames&&0===d.exportSpecifiers.size){for(var t=!1,n=0,i=d.externalImports;n<i.length;n++){var a=i[n];if(267===a.kind&&a.exportClause){t=!0;break}}if(!t){var o=S(void 0);return e.push(o),o.name}}var s=[];if(d.exportedNames)for(var c=0,u=d.exportedNames;c<u.length;c++){var l=u[c];"default"!==l.escapedText&&s.push(r.createPropertyAssignment(r.createStringLiteralFromNode(l),r.createTrue()))}var _=r.createUniqueName("exportedNames");e.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(_,void 0,void 0,r.createObjectLiteralExpression(s,!0))])));var p=S(_);return e.push(p),p.name}(s),m=524288&t.transformFlags?r.createModifiersFromModifierFlags(256):void 0,y=r.createObjectLiteralExpression([r.createPropertyAssignment("setters",T(p,a)),r.createPropertyAssignment("execute",r.createFunctionExpression(m,void 0,void 0,void 0,[],void 0,r.createBlock(l,!0)))],!0);return s.push(r.createReturnStatement(y)),r.createBlock(s,!0)}(a,l),E=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,p),r.createParameterDeclaration(void 0,void 0,void 0,f)],void 0,h),k=e.tryGetModuleNameFromFile(r,a,c,o),N=r.createArrayLiteralExpression(e.map(l,(function(e){return e.name}))),A=e.setEmitFlags(r.updateSourceFile(a,e.setTextRange(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("System"),"register"),void 0,k?[k,N,E]:[N,E]))]),a.statements)),1024);e.outFile(o)||e.moveEmitHelpers(A,h,(function(e){return!e.scoped}));y&&(x[u]=y,y=void 0);return _=void 0,d=void 0,p=void 0,f=void 0,g=void 0,m=void 0,A}));function S(t){var n=r.createUniqueName("exportStar"),i=r.createIdentifier("m"),a=r.createIdentifier("n"),o=r.createIdentifier("exports"),s=r.createStrictInequality(a,r.createStringLiteral("default"));return t&&(s=r.createLogicalAnd(s,r.createLogicalNot(r.createCallExpression(r.createPropertyAccessExpression(t,"hasOwnProperty"),void 0,[a])))),r.createFunctionDeclaration(void 0,void 0,void 0,n,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,i)],void 0,r.createBlock([r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(o,void 0,void 0,r.createObjectLiteralExpression([]))])),r.createForInStatement(r.createVariableDeclarationList([r.createVariableDeclaration(a)]),i,r.createBlock([e.setEmitFlags(r.createIfStatement(s,r.createExpressionStatement(r.createAssignment(r.createElementAccessExpression(o,a),r.createElementAccessExpression(i,a)))),1)])),r.createExpressionStatement(r.createCallExpression(p,void 0,[o]))],!0))}function T(t,n){for(var i=[],a=0,o=n;a<o.length;a++){for(var s=o[a],c=e.forEach(s.externalImports,(function(t){return e.getLocalNameForExternalImport(r,t,_)})),u=c?r.getGeneratedNameForNode(c):r.createUniqueName(""),l=[],d=0,f=s.externalImports;d<f.length;d++){var g=f[d],m=e.getLocalNameForExternalImport(r,g,_);switch(g.kind){case 261:if(!g.importClause)break;case 260:e.Debug.assert(void 0!==m),l.push(r.createExpressionStatement(r.createAssignment(m,u)));break;case 267:if(e.Debug.assert(void 0!==m),g.exportClause)if(e.isNamedExports(g.exportClause)){for(var y=[],v=0,h=g.exportClause.elements;v<h.length;v++){var b=h[v];y.push(r.createPropertyAssignment(r.createStringLiteral(e.idText(b.name)),r.createElementAccessExpression(u,r.createStringLiteral(e.idText(b.propertyName||b.name)))))}l.push(r.createExpressionStatement(r.createCallExpression(p,void 0,[r.createObjectLiteralExpression(y,!0)])))}else l.push(r.createExpressionStatement(r.createCallExpression(p,void 0,[r.createStringLiteral(e.idText(g.exportClause.name)),u])));else l.push(r.createExpressionStatement(r.createCallExpression(t,void 0,[u])))}}i.push(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,u)],void 0,r.createBlock(l,!0)))}return r.createArrayLiteralExpression(i,!0)}function C(t){switch(t.kind){case 261:return function(t){var n;t.importClause&&a(e.getLocalNameForExternalImport(r,t,_));if(w(t)){var i=e.getOriginalNodeId(t);h[i]=I(h[i],t)}else n=I(n,t);return e.singleOrMany(n)}(t);case 260:return function(t){var n;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),a(e.getLocalNameForExternalImport(r,t,_)),w(t)){var i=e.getOriginalNodeId(t);h[i]=O(h[i],t)}else n=O(n,t);return e.singleOrMany(n)}(t);case 267:return function(t){return void e.Debug.assertIsDefined(t)}(t);case 266:return function(t){if(t.isExportEquals)return;var n=e.visitNode(t.expression,K,e.isExpression),i=t.original;if(!i||!w(i))return J(r.createIdentifier("default"),n,!0);var a=e.getOriginalNodeId(t);h[a]=j(h[a],r.createIdentifier("default"),n,!0)}(t);default:return U(t)}}function E(t){if(e.isBindingPattern(t.name))for(var n=0,i=t.name.elements;n<i.length;n++){var o=i[n];e.isOmittedExpression(o)||E(o)}else a(r.cloneNode(t.name))}function k(t){return 0==(2097152&e.getEmitFlags(t))&&(297===m.kind||0==(3&e.getOriginalNode(t).flags))}function N(r,n){var i=n?A:F;return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(r,K,t,0,!1,i):r.initializer?i(r.name,e.visitNode(r.initializer,K,e.isExpression)):r.name}function A(e,t,r){return P(e,t,r,!0)}function F(e,t,r){return P(e,t,r,!1)}function P(t,n,i,o){return a(r.cloneNode(t)),o?z(t,G(e.setTextRange(r.createAssignment(t,n),i))):G(e.setTextRange(r.createAssignment(t,n),i))}function w(t){return 0!=(4194304&e.getEmitFlags(t))}function I(e,t){if(d.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=B(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 263:e=B(e,n);break;case 264:for(var i=0,a=n.elements;i<a.length;i++){e=B(e,a[i])}}return e}function O(e,t){return d.exportEquals?e:B(e,t)}function M(e,t,r){if(d.exportEquals)return e;for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];(a.initializer||r)&&(e=L(e,a,r))}return e}function L(t,n,i){if(d.exportEquals)return t;if(e.isBindingPattern(n.name))for(var a=0,o=n.name.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(t=L(t,s,i))}else if(!e.isGeneratedIdentifier(n.name)){var c=void 0;i&&(t=j(t,n.name,r.getLocalName(n)),c=e.idText(n.name)),t=B(t,n,c)}return t}function R(t,n){if(d.exportEquals)return t;var i;if(e.hasSyntacticModifier(n,1)){var a=e.hasSyntacticModifier(n,512)?r.createStringLiteral("default"):n.name;t=j(t,a,r.getLocalName(n)),i=e.getTextOfIdentifierOrLiteral(a)}return n.name&&(t=B(t,n,i)),t}function B(t,n,i){if(d.exportEquals)return t;var a=r.getDeclarationName(n),o=d.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var u=c[s];u.name.escapedText!==i&&(t=j(t,u.name,a))}return t}function j(t,r,n,i){return t=e.append(t,J(r,n,i))}function J(t,n,i){var a=r.createExpressionStatement(z(t,n));return e.startOnNewLine(a),i||e.setEmitFlags(a,1536),a}function z(t,n){var i=e.isIdentifier(t)?r.createStringLiteralFromNode(t):t;return e.setEmitFlags(n,1536|e.getEmitFlags(n)),e.setCommentRange(r.createCallExpression(p,void 0,[i,n]),n)}function U(n){switch(n.kind){case 232:return function(t){if(!k(t.declarationList))return e.visitNode(t,K,e.isStatement);for(var n,i,a=e.hasSyntacticModifier(t,1),o=w(t),s=0,c=t.declarationList.declarations;s<c.length;s++){var u=c[s];u.initializer?n=e.append(n,N(u,a&&!o)):E(u)}if(n&&(i=e.append(i,e.setTextRange(r.createExpressionStatement(r.inlineExpressions(n)),t))),o){var l=e.getOriginalNodeId(t);h[l]=M(h[l],t,a)}else i=M(i,t,!1);return e.singleOrMany(i)}(n);case 251:return function(n){if(g=e.hasSyntacticModifier(n,1)?e.append(g,r.updateFunctionDeclaration(n,n.decorators,e.visitNodes(n.modifiers,W,e.isModifier),n.asteriskToken,r.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.parameters,K,e.isParameterDeclaration),void 0,e.visitNode(n.body,K,e.isBlock))):e.append(g,e.visitEachChild(n,K,t)),w(n)){var i=e.getOriginalNodeId(n);h[i]=R(h[i],n)}else g=R(g,n)}(n);case 252:return function(t){var n,i=r.getLocalName(t);if(a(i),n=e.append(n,e.setTextRange(r.createExpressionStatement(r.createAssignment(i,e.setTextRange(r.createClassExpression(e.visitNodes(t.decorators,K,e.isDecorator),void 0,t.name,void 0,e.visitNodes(t.heritageClauses,K,e.isHeritageClause),e.visitNodes(t.members,K,e.isClassElement)),t))),t)),w(t)){var o=e.getOriginalNodeId(t);h[o]=R(h[o],t)}else n=R(n,t);return e.singleOrMany(n)}(n);case 237:return function(t){var n=m;return m=t,t=r.updateForStatement(t,t.initializer&&V(t.initializer),e.visitNode(t.condition,K,e.isExpression),e.visitNode(t.incrementor,K,e.isExpression),e.visitNode(t.statement,U,e.isStatement)),m=n,t}(n);case 238:return function(t){var n=m;return m=t,t=r.updateForInStatement(t,V(t.initializer),e.visitNode(t.expression,K,e.isExpression),e.visitNode(t.statement,U,e.isStatement,r.liftToBlock)),m=n,t}(n);case 239:return function(t){var n=m;return m=t,t=r.updateForOfStatement(t,t.awaitModifier,V(t.initializer),e.visitNode(t.expression,K,e.isExpression),e.visitNode(t.statement,U,e.isStatement,r.liftToBlock)),m=n,t}(n);case 235:return function(t){return r.updateDoStatement(t,e.visitNode(t.statement,U,e.isStatement,r.liftToBlock),e.visitNode(t.expression,K,e.isExpression))}(n);case 236:return function(t){return r.updateWhileStatement(t,e.visitNode(t.expression,K,e.isExpression),e.visitNode(t.statement,U,e.isStatement,r.liftToBlock))}(n);case 245:return function(t){return r.updateLabeledStatement(t,t.label,e.visitNode(t.statement,U,e.isStatement,r.liftToBlock))}(n);case 243:return function(t){return r.updateWithStatement(t,e.visitNode(t.expression,K,e.isExpression),e.visitNode(t.statement,U,e.isStatement,r.liftToBlock))}(n);case 244:return function(t){return r.updateSwitchStatement(t,e.visitNode(t.expression,K,e.isExpression),e.visitNode(t.caseBlock,U,e.isCaseBlock))}(n);case 258:return function(t){var n=m;return m=t,t=r.updateCaseBlock(t,e.visitNodes(t.clauses,U,e.isCaseOrDefaultClause)),m=n,t}(n);case 284:return function(t){return r.updateCaseClause(t,e.visitNode(t.expression,K,e.isExpression),e.visitNodes(t.statements,U,e.isStatement))}(n);case 285:case 247:return function(r){return e.visitEachChild(r,U,t)}(n);case 287:return function(t){var n=m;return m=t,t=r.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,U,e.isBlock)),m=n,t}(n);case 230:return function(r){var n=m;return m=r,r=e.visitEachChild(r,U,t),m=n,r}(n);case 338:return function(t){if(w(t)&&232===t.original.kind){var r=e.getOriginalNodeId(t),n=e.hasSyntacticModifier(t.original,1);h[r]=M(h[r],t.original,n)}return t}(n);case 339:return function(t){var r=e.getOriginalNodeId(t),n=h[r];if(n)return delete h[r],e.append(n,t);var i=e.getOriginalNode(t);return e.isModuleOrEnumDeclaration(i)?e.append(B(n,i),t):t}(n);default:return K(n)}}function V(n){if(function(t){return e.isVariableDeclarationList(t)&&k(t)}(n)){for(var i=void 0,a=0,o=n.declarations;a<o.length;a++){var s=o[a];i=e.append(i,N(s,!1)),s.initializer||E(s)}return i?r.inlineExpressions(i):r.createOmittedExpression()}return e.visitEachChild(n,U,t)}function K(n){return e.isDestructuringAssignment(n)?function(r){if(q(r.left))return e.flattenDestructuringAssignment(r,K,t,0,!0);return e.visitEachChild(r,K,t)}(n):e.isImportCall(n)?function(t){var n=e.getExternalModuleNameLiteral(r,t,_,c,s,o),i=e.visitNode(e.firstOrUndefined(t.arguments),K),a=!n||i&&e.isStringLiteral(i)&&i.text===n.text?i:n;return r.createCallExpression(r.createPropertyAccessExpression(f,r.createIdentifier("import")),void 0,a?[a]:[])}(n):1024&n.transformFlags||2097152&n.transformFlags?e.visitEachChild(n,K,t):n}function q(t){if(e.isAssignmentExpression(t,!0))return q(t.left);if(e.isSpreadElement(t))return q(t.expression);if(e.isObjectLiteralExpression(t))return e.some(t.properties,q);if(e.isArrayLiteralExpression(t))return e.some(t.elements,q);if(e.isShorthandPropertyAssignment(t))return q(t.name);if(e.isPropertyAssignment(t))return q(t.initializer);if(e.isIdentifier(t)){var r=s.getReferencedExportContainer(t);return void 0!==r&&297===r.kind}return!1}function W(e){switch(e.kind){case 92:case 87:return}return e}function H(t){var n;if(!e.isGeneratedIdentifier(t)){var i=s.getReferencedImportDeclaration(t)||s.getReferencedValueDeclaration(t);if(i){var a=s.getReferencedExportContainer(t,!1);a&&297===a.kind&&(n=e.append(n,r.getDeclarationName(i))),n=e.addRange(n,d&&d.exportedBindings[e.getOriginalNodeId(i)])}}return n}function G(t){return void 0===y&&(y=[]),y[e.getNodeId(t)]=!0,t}}}(ts||(ts={})),function(e){e.transformECMAScriptModule=function(t){var r,n=t.factory,i=t.getEmitHelperFactory,a=t.getCompilerOptions(),o=t.onEmitNode,s=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){e.isSourceFile(n)?((e.isExternalModule(n)||a.isolatedModules)&&a.importHelpers&&(r=new e.Map),o(t,n,i),r=void 0):o(t,n,i)},t.onSubstituteNode=function(t,i){if(i=s(t,i),r&&e.isIdentifier(i)&&4096&e.getEmitFlags(i))return function(t){var i=e.idText(t),a=r.get(i);a||r.set(i,a=n.createUniqueName(i,48));return a}(i);return i},t.enableEmitNotification(297),t.enableSubstitution(78),e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;if(e.isExternalModule(r)||a.isolatedModules){var o=function(r){var o=e.createExternalHelpersImportDeclarationIfNeeded(n,i(),r,a);if(o){var s=[],u=n.copyPrologue(r.statements,s);return e.append(s,o),e.addRange(s,e.visitNodes(r.statements,c,e.isStatement,u)),n.updateSourceFile(r,e.setTextRange(n.createNodeArray(s),r.statements))}return e.visitEachChild(r,c,t)}(r);return!e.isExternalModule(r)||e.some(o.statements,e.isExternalModuleIndicator)?o:n.updateSourceFile(o,e.setTextRange(n.createNodeArray(__spreadArray(__spreadArray([],o.statements),[e.createEmptyExports(n)])),o.statements))}return r}));function c(t){switch(t.kind){case 260:return;case 266:return function(e){return e.isExportEquals?void 0:e}(t);case 267:return function(t){if(void 0!==a.module&&a.module>e.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,i=n.getGeneratedNameForNode(r),o=n.createImportDeclaration(void 0,void 0,n.createImportClause(!1,void 0,n.createNamespaceImport(i)),t.moduleSpecifier);e.setOriginalNode(o,t.exportClause);var s=e.isExportNamespaceAsDefaultDeclaration(t)?n.createExportDefault(i):n.createExportDeclaration(void 0,void 0,!1,n.createNamedExports([n.createExportSpecifier(i,r)]));return e.setOriginalNode(s,t),[o,s]}(t)}return t}}}(ts||(ts={})),function(e){function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?r:e.isSetAccessor(t)||e.isGetAccessor(t)?function(r){var n;n=168===t.kind?e.hasSyntacticModifier(t,32)?r.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:r.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.hasSyntacticModifier(t,32)?r.errorModuleName?2===r.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:r.errorModuleName?2===r.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;return{diagnosticMessage:n,errorNode:t.name,typeName:t.name}}:e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?function(r){var n;switch(t.kind){case 170:n=r.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 169:n=r.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 171:n=r.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 165:case 164:n=e.hasSyntacticModifier(t,32)?r.errorModuleName?2===r.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:252===t.parent.kind?r.errorModuleName?2===r.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:r.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 251:n=r.errorModuleName?2===r.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: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?r:function(r){var n=function(r){switch(t.parent.kind){case 166:return r.errorModuleName?2===r.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 170:case 175:return r.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 169:return r.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 171:return r.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 165:case 164:return e.hasSyntacticModifier(t.parent,32)?r.errorModuleName?2===r.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:252===t.parent.parent.kind?r.errorModuleName?2===r.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:r.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 251:case 174:return r.errorModuleName?2===r.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 168:case 167:return r.errorModuleName?2===r.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[t.parent.kind])}}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?function(){var r;switch(t.parent.kind){case 252:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 253:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 190:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 175:case 170:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 169:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 165:case 164:r=e.hasSyntacticModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:252===t.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 174:case 251:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 254:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?function(){var r;r=e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&116===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}:e.isImportEqualsDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}:e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)?function(r){return{diagnosticMessage:r.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}}:e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[t.kind]);function r(r){var n=function(r){return 249===t.kind||198===t.kind?r.errorModuleName?2===r.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:163===t.kind||201===t.kind||162===t.kind||160===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.hasSyntacticModifier(t,32)?r.errorModuleName?2===r.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:252===t.parent.kind||160===t.kind?r.errorModuleName?2===r.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:r.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}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)||e.isJSDocTypeAlias(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return e.isSetAccessor(r)||e.isGetAccessor(r)?function(t){var n=function(t){return e.hasSyntacticModifier(r,32)?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:252===r.parent.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}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:e.isMethodSignature(r)||e.isMethodDeclaration(r)?function(t){var n=function(t){return e.hasSyntacticModifier(r,32)?t.errorModuleName?2===t.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:252===r.parent.kind?t.errorModuleName?2===t.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:t.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}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:t(r)},e.createGetSymbolAccessibilityDiagnosticForNode=t}(ts||(ts={})),function(e){function t(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function r(r,n){var i=e.getParseTreeNode(r);if(i&&160===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var u=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(u,(function(e){return t(e,n)}))}e.getDeclarationDiagnostics=function(t,r,n){var a=t.getCompilerOptions();return e.transformNodes(r,t,e.factory,a,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[i],!1).diagnostics},e.isInternalDeclaration=r;var n=531469;function i(t){var i,s,c,u,l,_,d,p,f,g,m,y,v=function(){return e.Debug.fail("Diagnostic emitted without context")},h=v,b=!0,x=!1,D=!1,S=!1,T=!1,C=t.factory,E=t.getEmitHost(),k={trackSymbol:function(e,t,r){if(262144&e.flags)return;I(N.isSymbolAccessible(e,t,r,!0)),w(N.getTypeReferenceDirectivesForSymbol(e,r))},reportInaccessibleThisError:function(){d&&t.addDiagnostic(e.createDiagnosticForNode(d,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(d),"this"))},reportInaccessibleUniqueSymbolError:function(){d&&t.addDiagnostic(e.createDiagnosticForNode(d,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(d),"unique symbol"))},reportCyclicStructureError:function(){d&&t.addDiagnostic(e.createDiagnosticForNode(d,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,e.declarationNameToString(d)))},reportPrivateInBaseOfClassExpression:function(r){(d||p)&&t.addDiagnostic(e.createDiagnosticForNode(d||p,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){d&&t.addDiagnostic(e.createDiagnosticForNode(d,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,e.declarationNameToString(d),r))},reportTruncationError:function(){(d||p)&&t.addDiagnostic(e.createDiagnosticForNode(d||p,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:E,trackReferencedAmbientModule:function(t,r){var n=N.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return w(n);var i=e.getSourceFileOfNode(t);g.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){x||(_||(_=[])).push(e)},reportNonlocalAugmentation:function(r,n,i){for(var a=e.find(n.declarations,(function(t){return e.getSourceFileOfNode(t)===r})),o=e.filter(i.declarations,(function(t){return e.getSourceFileOfNode(t)!==r})),s=0,c=o;s<c.length;s++){var u=c[s];t.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(u,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(a,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}}},N=t.getEmitResolver(),A=t.getCompilerOptions(),F=A.noResolve,P=A.stripInternal;return function(r){if(297===r.kind&&r.isDeclarationFile)return r;if(298===r.kind){x=!0,g=new e.Map,m=new e.Map;var n=!1,a=C.createBundle(e.map(r.sourceFiles,(function(r){if(!r.isDeclarationFile){if(n=n||r.hasNoDefaultLib,f=r,i=r,c=void 0,l=!1,u=new e.Map,h=v,S=!1,T=!1,M(r,g),L(r,m),e.isExternalOrCommonJsModule(r)||e.isJsonSourceFile(r)){D=!1,b=!1;var a=e.isSourceFileJS(r)?C.createNodeArray(O(r,!0)):e.visitNodes(r.statements,$);return C.updateSourceFile(r,[C.createModuleDeclaration([],[C.createModifier(133)],C.createStringLiteral(e.getResolvedExternalModuleName(t.getEmitHost(),r)),C.createModuleBlock(e.setTextRange(C.createNodeArray(Y(a)),r.statements)))],!0,[],[],!1,[])}b=!0;var o=e.isSourceFileJS(r)?C.createNodeArray(O(r)):e.visitNodes(r.statements,$);return C.updateSourceFile(r,Y(o),!0,[],[],!1,[])}})),e.mapDefined(r.prepends,(function(t){if(300===t.kind){var r=e.createUnparsedSourceFile(t,"dts",P);return n=n||!!r.hasNoDefaultLib,M(r,g),w(r.typeReferenceDirectives),L(r,m),r}return t})));a.syntheticFileReferences=[],a.syntheticTypeReferences=j(),a.syntheticLibReferences=B(),a.hasNoDefaultLib=n;var o=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,E,!0).declarationFilePath)),d=z(a.syntheticFileReferences,o);return g.forEach(d),a}b=!0,S=!1,T=!1,i=r,f=r,h=v,x=!1,D=!1,l=!1,c=void 0,u=new e.Map,s=void 0,g=M(f,new e.Map),m=L(f,new e.Map);var p,k=[],N=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,E,!0).declarationFilePath)),F=z(k,N);if(e.isSourceFileJS(f))p=C.createNodeArray(O(r)),g.forEach(F),y=e.filter(p,e.isAnyImportSyntax);else{var I=e.visitNodes(r.statements,$);p=e.setTextRange(C.createNodeArray(Y(I)),r.statements),g.forEach(F),y=e.filter(p,e.isAnyImportSyntax),e.isExternalModule(r)&&(!D||S&&!T)&&(p=e.setTextRange(C.createNodeArray(__spreadArray(__spreadArray([],p),[e.createEmptyExports(C)])),p))}var R=C.updateSourceFile(r,p,!0,k,j(),r.hasNoDefaultLib,B());return R.exportedModulesFromDeclarationEmit=_,R;function B(){return e.map(e.arrayFrom(m.keys()),(function(e){return{fileName:e,pos:-1,end:-1}}))}function j(){return s?e.mapDefined(e.arrayFrom(s.keys()),J):[]}function J(t){if(y)for(var r=0,n=y;r<n.length;r++){var i=n[r];if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference)){var a=i.moduleReference.expression;if(e.isStringLiteralLike(a)&&a.text===t)return}else if(e.isImportDeclaration(i)&&e.isStringLiteral(i.moduleSpecifier)&&i.moduleSpecifier.text===t)return}return{fileName:t,pos:-1,end:-1}}function z(t,n){return function(i){var a;if(i.isDeclarationFile)a=i.fileName;else{if(x&&e.contains(r.sourceFiles,i))return;var o=e.getOutputPathsFor(i,E,!0);a=o.declarationFilePath||o.jsFilePath||i.fileName}if(a){var s=e.moduleSpecifiers.getModuleSpecifier(__assign(__assign({},A),{baseUrl:A.baseUrl&&e.toPath(A.baseUrl,E.getCurrentDirectory(),E.getCanonicalFileName)}),f,e.toPath(n,E.getCurrentDirectory(),E.getCanonicalFileName),e.toPath(a,E.getCurrentDirectory(),E.getCanonicalFileName),E,void 0);if(!e.pathIsRelative(s))return void w([s]);var c=e.getRelativePathToDirectoryOrUrl(n,a,E.getCurrentDirectory(),E.getCanonicalFileName,!1);if(e.startsWith(c,"./")&&e.hasExtension(c)&&(c=c.substring(2)),e.startsWith(c,"node_modules/")||e.pathContainsNodeModules(c))return;t.push({pos:-1,end:-1,fileName:c})}}}};function w(t){if(t){s=s||new e.Set;for(var r=0,n=t;r<n.length;r++){var i=n[r];s.add(i)}}}function I(r){if(0===r.accessibility){if(r&&r.aliasesToMakeVisible)if(c)for(var n=0,i=r.aliasesToMakeVisible;n<i.length;n++){var a=i[n];e.pushIfUnique(c,a)}else c=r.aliasesToMakeVisible}else{var o=h(r);o&&(o.typeName?t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,e.getTextOfNode(o.typeName),r.errorSymbolName,r.errorModuleName)):t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,r.errorSymbolName,r.errorModuleName)))}}function O(t,r){var i=h;h=function(r){return r.errorNode&&e.canProduceDiagnostics(r.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(r.errorNode)(r):{diagnosticMessage:r.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:r.errorNode||t}};var a=N.getDeclarationStatementsForSourceFile(t,n,k,r);return h=i,a}function M(t,r){return F||!e.isUnparsedSource(t)&&e.isSourceFileJS(t)||e.forEach(t.referencedFiles,(function(n){var i=E.getSourceFileFromReference(t,n);i&&r.set(e.getOriginalNodeId(i),i)})),r}function L(t,r){return e.forEach(t.libReferenceDirectives,(function(t){E.getLibFileFromReference(t)&&r.set(e.toFileNameLowerCase(t.fileName),!0)})),r}function R(t){return 78===t.kind?t:197===t.kind?C.updateArrayBindingPattern(t,e.visitNodes(t.elements,r)):C.updateObjectBindingPattern(t,e.visitNodes(t.elements,r));function r(e){return 222===e.kind?e:C.updateBindingElement(e,e.dotDotDotToken,e.propertyName,R(e.name),j(e)?e.initializer:void 0)}}function B(t,r,n){var i;l||(i=h,h=e.createGetSymbolAccessibilityDiagnosticForNode(t));var o=C.updateParameterDeclaration(t,void 0,function(t,r,n){return e.factory.createModifiersFromModifierFlags(a(t,r,n))}(t,r),t.dotDotDotToken,R(t.name),N.isOptionalParameter(t)?t.questionToken||C.createToken(57):void 0,z(t,n||t.type,!0),J(t));return l||(h=i),o}function j(t){return function(t){switch(t.kind){case 163:case 162:return!e.hasEffectiveModifier(t,8);case 160:case 249:return!0}return!1}(t)&&N.isLiteralConstDeclaration(e.getParseTreeNode(t))}function J(t){if(j(t))return N.createLiteralConstValue(e.getParseTreeNode(t),k)}function z(t,r,a){if((a||!e.hasEffectiveModifier(t,8))&&!j(t)){var o,s=160===t.kind&&(N.isRequiredInitializedParameter(t)||N.isOptionalUninitializedParameterProperty(t));return r&&!s?e.visitNode(r,Z):e.getParseTreeNode(t)?168===t.kind?C.createKeywordTypeNode(128):(d=t.name,l||(o=h,h=e.createGetSymbolAccessibilityDiagnosticForNode(t)),249===t.kind||198===t.kind?c(N.createTypeOfDeclaration(t,i,n,k)):160===t.kind||163===t.kind||162===t.kind?t.initializer?c(N.createTypeOfDeclaration(t,i,n,k,s)||N.createTypeOfExpression(t.initializer,i,n,k)):c(N.createTypeOfDeclaration(t,i,n,k,s)):c(N.createReturnTypeOfSignatureDeclaration(t,i,n,k))):r?e.visitNode(r,Z):C.createKeywordTypeNode(128)}function c(e){return d=void 0,l||(h=o),e||C.createKeywordTypeNode(128)}}function U(t){switch((t=e.getParseTreeNode(t)).kind){case 251:case 256:case 253:case 252:case 254:case 255:return!N.isDeclarationVisible(t);case 249:return!V(t);case 260:case 261:case 267:case 266:return!1}return!1}function V(t){return!e.isOmittedExpression(t)&&(e.isBindingPattern(t.name)?e.some(t.name.elements,V):N.isDeclarationVisible(t))}function K(t,r,n){if(!e.hasEffectiveModifier(t,8)){var i=e.map(r,(function(e){return B(e,n)}));if(i)return C.createNodeArray(i,r.hasTrailingComma)}}function q(t,r){var n;if(!r){var i=e.getThisParameter(t);i&&(n=[B(i)])}if(e.isSetAccessorDeclaration(t)){var a=void 0;if(!r){var o=e.getSetAccessorValueParameter(t);if(o)a=B(o,void 0,oe(t,N.getAllAccessorDeclarations(t)))}a||(a=C.createParameterDeclaration(void 0,void 0,void 0,"value")),n=e.append(n,a)}return C.createNodeArray(n||e.emptyArray)}function W(t,r){return e.hasEffectiveModifier(t,8)?void 0:e.visitNodes(r,Z)}function H(t){return e.isSourceFile(t)||e.isTypeAliasDeclaration(t)||e.isModuleDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionLike(t)||e.isIndexSignatureDeclaration(t)||e.isMappedTypeNode(t)}function G(e,t){I(N.isEntityNameVisible(e,t)),w(N.getTypeReferenceDirectivesForEntityName(e))}function X(t,r){return e.hasJSDocNodes(t)&&e.hasJSDocNodes(r)&&(t.jsDoc=r.jsDoc),e.setCommentRange(t,e.getCommentRange(r))}function Q(r,n){if(n){if(D=D||256!==r.kind&&195!==r.kind,e.isStringLiteralLike(n))if(x){var i=e.getExternalModuleNameFromDeclaration(t.getEmitHost(),N,r);if(i)return C.createStringLiteral(i)}else{var a=N.getSymbolOfExternalModuleSpecifier(n);a&&(_||(_=[])).push(a)}return n}}function Y(t){for(;e.length(c);){var r=c.shift();if(!e.isLateVisibilityPaintedStatement(r))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(e.SyntaxKind?e.SyntaxKind[r.kind]:r.kind));var n=b;b=r.parent&&e.isSourceFile(r.parent)&&!(e.isExternalModule(r.parent)&&x);var i=te(r);b=n,u.set(e.getOriginalNodeId(r),i)}return e.visitNodes(t,(function(t){if(e.isLateVisibilityPaintedStatement(t)){var r=e.getOriginalNodeId(t);if(u.has(r)){var n=u.get(r);return u.delete(r),n&&((e.isArray(n)?e.some(n,e.needsScopeMarker):e.needsScopeMarker(n))&&(S=!0),e.isSourceFile(t.parent)&&(e.isArray(n)?e.some(n,e.isExternalModuleIndicator):e.isExternalModuleIndicator(n))&&(D=!0)),n}}return t}))}function Z(r){if(!ne(r)){if(e.isDeclaration(r)){if(U(r))return;if(e.hasDynamicName(r)&&!N.isLateBound(e.getParseTreeNode(r)))return}if(!(e.isFunctionLike(r)&&N.isImplementationOfOverload(r)||e.isSemicolonClassElement(r))){var n;H(r)&&(n=i,i=r);var a=h,o=e.canProduceDiagnostics(r),s=l,c=(177===r.kind||190===r.kind)&&254!==r.parent.kind;if((e.isMethodDeclaration(r)||e.isMethodSignature(r))&&e.hasEffectiveModifier(r,8)){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations[0]!==r)return;return b(C.createPropertyDeclaration(void 0,ae(r),r.name,void 0,void 0,void 0))}if(o&&!l&&(h=e.createGetSymbolAccessibilityDiagnosticForNode(r)),e.isTypeQueryNode(r)&&G(r.exprName,i),c&&(l=!0),function(e){switch(e.kind){case 170:case 166:case 165:case 167:case 168:case 163:case 162:case 164:case 169:case 171:case 249:case 159:case 223:case 173:case 184:case 174:case 175:case 195:return!0}return!1}(r))switch(r.kind){case 223:(e.isEntityName(r.expression)||e.isEntityNameExpression(r.expression))&&G(r.expression,i);var u=e.visitEachChild(r,Z,t);return b(C.updateExpressionWithTypeArguments(u,u.expression,u.typeArguments));case 173:G(r.typeName,i);u=e.visitEachChild(r,Z,t);return b(C.updateTypeReferenceNode(u,u.typeName,u.typeArguments));case 170:return b(C.updateConstructSignature(r,W(r,r.typeParameters),K(r,r.parameters),z(r,r.type)));case 166:return b(C.createConstructorDeclaration(void 0,ae(r),K(r,r.parameters,0),void 0));case 165:return e.isPrivateIdentifier(r.name)?b(void 0):b(C.createMethodDeclaration(void 0,ae(r),void 0,r.name,r.questionToken,W(r,r.typeParameters),K(r,r.parameters),z(r,r.type),void 0));case 167:if(e.isPrivateIdentifier(r.name))return b(void 0);var _=oe(r,N.getAllAccessorDeclarations(r));return b(C.updateGetAccessorDeclaration(r,void 0,ae(r),r.name,q(r,e.hasEffectiveModifier(r,8)),z(r,_),void 0));case 168:return e.isPrivateIdentifier(r.name)?b(void 0):b(C.updateSetAccessorDeclaration(r,void 0,ae(r),r.name,q(r,e.hasEffectiveModifier(r,8)),void 0));case 163:return e.isPrivateIdentifier(r.name)?b(void 0):b(C.updatePropertyDeclaration(r,void 0,ae(r),r.name,r.questionToken,z(r,r.type),J(r)));case 162:return e.isPrivateIdentifier(r.name)?b(void 0):b(C.updatePropertySignature(r,ae(r),r.name,r.questionToken,z(r,r.type)));case 164:return e.isPrivateIdentifier(r.name)?b(void 0):b(C.updateMethodSignature(r,ae(r),r.name,r.questionToken,W(r,r.typeParameters),K(r,r.parameters),z(r,r.type)));case 169:return b(C.updateCallSignature(r,W(r,r.typeParameters),K(r,r.parameters),z(r,r.type)));case 171:return b(C.updateIndexSignature(r,void 0,ae(r),K(r,r.parameters),e.visitNode(r.type,Z)||C.createKeywordTypeNode(128)));case 249:return e.isBindingPattern(r.name)?re(r.name):(c=!0,l=!0,b(C.updateVariableDeclaration(r,r.name,void 0,z(r,r.type),J(r))));case 159:return function(t){return 165===t.parent.kind&&e.hasEffectiveModifier(t.parent,8)}(r)&&(r.default||r.constraint)?b(C.updateTypeParameterDeclaration(r,r.name,void 0,void 0)):b(e.visitEachChild(r,Z,t));case 184:var p=e.visitNode(r.checkType,Z),g=e.visitNode(r.extendsType,Z),m=i;i=r.trueType;var y=e.visitNode(r.trueType,Z);i=m;var v=e.visitNode(r.falseType,Z);return b(C.updateConditionalTypeNode(r,p,g,y,v));case 174:return b(C.updateFunctionTypeNode(r,e.visitNodes(r.typeParameters,Z),K(r,r.parameters),e.visitNode(r.type,Z)));case 175:return b(C.updateConstructorTypeNode(r,ae(r),e.visitNodes(r.typeParameters,Z),K(r,r.parameters),e.visitNode(r.type,Z)));case 195:return e.isLiteralImportTypeNode(r)?b(C.updateImportTypeNode(r,C.updateLiteralTypeNode(r.argument,Q(r,r.argument.literal)),r.qualifier,e.visitNodes(r.typeArguments,Z,e.isTypeNode),r.isTypeOf)):b(r);default:e.Debug.assertNever(r,"Attempted to process unhandled node kind: "+e.SyntaxKind[r.kind])}return e.isTupleTypeNode(r)&&e.getLineAndCharacterOfPosition(f,r.pos).line===e.getLineAndCharacterOfPosition(f,r.end).line&&e.setEmitFlags(r,1),b(e.visitEachChild(r,Z,t))}}function b(t){return t&&o&&e.hasDynamicName(r)&&function(t){var r;l||(r=h,h=e.createGetSymbolAccessibilityDiagnosticForNodeName(t));d=t.name,e.Debug.assert(N.isLateBound(e.getParseTreeNode(t))),G(t.name.expression,i),l||(h=r);d=void 0}(r),H(r)&&(i=n),o&&!l&&(h=a),c&&(l=s),t===r?t:t&&e.setOriginalNode(X(t,r),r)}}function $(t){if(function(e){switch(e.kind){case 251:case 256:case 260:case 253:case 252:case 254:case 255:case 232:case 261:case 267:case 266:return!0}return!1}(t)&&!ne(t)){switch(t.kind){case 267:return e.isSourceFile(t.parent)&&(D=!0),T=!0,C.updateExportDeclaration(t,void 0,t.modifiers,t.isTypeOnly,t.exportClause,Q(t,t.moduleSpecifier));case 266:if(e.isSourceFile(t.parent)&&(D=!0),T=!0,78===t.expression.kind)return t;var r=C.createUniqueName("_default",16);h=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t}},p=t;var i=C.createVariableDeclaration(r,void 0,N.createTypeOfExpression(t.expression,t,n,k),void 0);return p=void 0,[C.createVariableStatement(b?[C.createModifier(133)]:[],C.createVariableDeclarationList([i],2)),C.updateExportAssignment(t,t.decorators,t.modifiers,r)]}var a=te(t);return u.set(e.getOriginalNodeId(t),a),t}}function ee(t){if(e.isImportEqualsDeclaration(t)||e.hasEffectiveModifier(t,512)||!e.canHaveModifiers(t))return t;var r=C.createModifiersFromModifierFlags(11262&e.getEffectiveModifierFlags(t));return C.updateModifiers(t,r)}function te(t){if(!ne(t)){switch(t.kind){case 260:return function(t){if(N.isDeclarationVisible(t)){if(272===t.moduleReference.kind){var r=e.getExternalModuleImportEqualsDeclarationExpression(t);return C.updateImportEqualsDeclaration(t,void 0,t.modifiers,t.isTypeOnly,t.name,C.updateExternalModuleReference(t.moduleReference,Q(t,r)))}var n=h;return h=e.createGetSymbolAccessibilityDiagnosticForNode(t),G(t.moduleReference,i),h=n,t}}(t);case 261:return function(t){if(!t.importClause)return C.updateImportDeclaration(t,void 0,t.modifiers,t.importClause,Q(t,t.moduleSpecifier));var r=t.importClause&&t.importClause.name&&N.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return r&&C.updateImportDeclaration(t,void 0,t.modifiers,C.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,void 0),Q(t,t.moduleSpecifier));if(263===t.importClause.namedBindings.kind){var n=N.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||n?C.updateImportDeclaration(t,void 0,t.modifiers,C.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),Q(t,t.moduleSpecifier)):void 0}var i=e.mapDefined(t.importClause.namedBindings.elements,(function(e){return N.isDeclarationVisible(e)?e:void 0}));return i&&i.length||r?C.updateImportDeclaration(t,void 0,t.modifiers,C.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,i&&i.length?C.updateNamedImports(t.importClause.namedBindings,i):void 0),Q(t,t.moduleSpecifier)):N.isImportRequiredByAugmentation(t)?C.updateImportDeclaration(t,void 0,t.modifiers,void 0,Q(t,t.moduleSpecifier)):void 0}(t)}if(!(e.isDeclaration(t)&&U(t)||e.isFunctionLike(t)&&N.isImplementationOfOverload(t))){var r;H(t)&&(r=i,i=t);var a=e.canProduceDiagnostics(t),o=h;a&&(h=e.createGetSymbolAccessibilityDiagnosticForNode(t));var s=b;switch(t.kind){case 254:return pe(C.updateTypeAliasDeclaration(t,void 0,ae(t),t.name,e.visitNodes(t.typeParameters,Z,e.isTypeParameterDeclaration),e.visitNode(t.type,Z,e.isTypeNode)));case 253:return pe(C.updateInterfaceDeclaration(t,void 0,ae(t),t.name,W(t,t.typeParameters),se(t.heritageClauses),e.visitNodes(t.members,Z)));case 251:var c=pe(C.updateFunctionDeclaration(t,void 0,ae(t),void 0,t.name,W(t,t.typeParameters),K(t,t.parameters),z(t,t.type),void 0));if(c&&N.isExpandoFunctionDeclaration(t)){var l=N.getPropertiesOfContainerFunction(t),_=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,c.name||C.createIdentifier("_default"),C.createModuleBlock([]),16);e.setParent(_,i),_.locals=e.createSymbolTable(l),_.symbol=l[0].parent;var f=[],g=e.mapDefined(l,(function(t){if(e.isPropertyAccessExpression(t.valueDeclaration)){h=e.createGetSymbolAccessibilityDiagnosticForNode(t.valueDeclaration);var r=N.createTypeOfDeclaration(t.valueDeclaration,_,n,k);h=o;var i=e.unescapeLeadingUnderscores(t.escapedName),a=e.isStringANonContextualKeyword(i),s=a?C.getGeneratedNameForNode(t.valueDeclaration):C.createIdentifier(i);a&&f.push([s,i]);var c=C.createVariableDeclaration(s,void 0,r,void 0);return C.createVariableStatement(a?void 0:[C.createToken(92)],C.createVariableDeclarationList([c]))}}));f.length?g.push(C.createExportDeclaration(void 0,void 0,!1,C.createNamedExports(e.map(f,(function(e){var t=e[0],r=e[1];return C.createExportSpecifier(t,r)}))))):g=e.mapDefined(g,(function(e){return C.updateModifiers(e,0)}));var m=C.createModuleDeclaration(void 0,ae(t),t.name,C.createModuleBlock(g),16);if(!e.hasEffectiveModifier(c,512))return[c,m];var y=C.createModifiersFromModifierFlags(-514&e.getEffectiveModifierFlags(c)|2),v=C.updateFunctionDeclaration(c,void 0,y,void 0,c.name,c.typeParameters,c.parameters,c.type,void 0),x=C.updateModuleDeclaration(m,void 0,y,m.name,m.body),E=C.createExportAssignment(void 0,void 0,!1,m.name);return e.isSourceFile(t.parent)&&(D=!0),T=!0,[v,x,E]}return c;case 256:b=!1;var A=t.body;if(A&&257===A.kind){var F=S,P=T;T=!1,S=!1;var w=Y(e.visitNodes(A.statements,$));8388608&t.flags&&(S=!1),e.isGlobalScopeAugmentation(t)||function(t){return e.some(t,ie)}(w)||T||(w=S?C.createNodeArray(__spreadArray(__spreadArray([],w),[e.createEmptyExports(C)])):e.visitNodes(w,ee));var I=C.updateModuleBlock(A,w);b=s,S=F,T=P;var O=ae(t);return pe(C.updateModuleDeclaration(t,void 0,O,e.isExternalModuleAugmentation(t)?Q(t,t.name):t.name,I))}b=s;O=ae(t);b=!1,e.visitNode(A,$);var M=e.getOriginalNodeId(A);I=u.get(M);return u.delete(M),pe(C.updateModuleDeclaration(t,void 0,O,t.name,I));case 252:d=t.name,p=t;y=C.createNodeArray(ae(t));var L=W(t,t.typeParameters),R=e.getFirstConstructorWithBody(t),B=void 0;if(R){var j=h;B=e.compact(e.flatMap(R.parameters,(function(t){if(e.hasSyntacticModifier(t,92)&&!ne(t))return h=e.createGetSymbolAccessibilityDiagnosticForNode(t),78===t.name.kind?X(C.createPropertyDeclaration(void 0,ae(t),t.name,t.questionToken,z(t,t.type),J(t)),t):function r(n){for(var i,a=0,o=n.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(e.isBindingPattern(s.name)&&(i=e.concatenate(i,r(s.name))),(i=i||[]).push(C.createPropertyDeclaration(void 0,ae(t),s.name,void 0,z(s,void 0),void 0)))}return i}(t.name)}))),h=j}var q=e.some(t.members,(function(t){return!!t.name&&e.isPrivateIdentifier(t.name)}))?[C.createPropertyDeclaration(void 0,void 0,C.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,te=e.concatenate(e.concatenate(q,B),e.visitNodes(t.members,Z)),re=C.createNodeArray(te),oe=e.getEffectiveBaseTypeNode(t);if(oe&&!e.isEntityNameExpression(oe.expression)&&103!==oe.expression.kind){var ce=t.name?e.unescapeLeadingUnderscores(t.name.escapedText):"default",ue=C.createUniqueName(ce+"_base",16);h=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:oe,typeName:t.name}};var le=C.createVariableDeclaration(ue,void 0,N.createTypeOfExpression(oe.expression,t,n,k),void 0),_e=C.createVariableStatement(b?[C.createModifier(133)]:[],C.createVariableDeclarationList([le],2)),de=C.createNodeArray(e.map(t.heritageClauses,(function(t){if(93===t.token){var r=h;h=e.createGetSymbolAccessibilityDiagnosticForNode(t.types[0]);var n=C.updateHeritageClause(t,e.map(t.types,(function(t){return C.updateExpressionWithTypeArguments(t,ue,e.visitNodes(t.typeArguments,Z))})));return h=r,n}return C.updateHeritageClause(t,e.visitNodes(C.createNodeArray(e.filter(t.types,(function(t){return e.isEntityNameExpression(t.expression)||103===t.expression.kind}))),Z))})));return[_e,pe(C.updateClassDeclaration(t,void 0,y,t.name,L,de,re))]}de=se(t.heritageClauses);return pe(C.updateClassDeclaration(t,void 0,y,t.name,L,de,re));case 232:return pe(function(t){if(!e.forEach(t.declarationList.declarations,V))return;var r=e.visitNodes(t.declarationList.declarations,Z);if(!e.length(r))return;return C.updateVariableStatement(t,C.createNodeArray(ae(t)),C.updateVariableDeclarationList(t.declarationList,r))}(t));case 255:return pe(C.updateEnumDeclaration(t,void 0,C.createNodeArray(ae(t)),t.name,C.createNodeArray(e.mapDefined(t.members,(function(e){if(!ne(e)){var t=N.getConstantValue(e);return X(C.updateEnumMember(e,e.name,void 0!==t?"string"==typeof t?C.createStringLiteral(t):C.createNumericLiteral(t):void 0),e)}})))))}return e.Debug.assertNever(t,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[t.kind])}}function pe(n){return H(t)&&(i=r),a&&(h=o),256===t.kind&&(b=s),n===t?n:(p=void 0,d=void 0,n&&e.setOriginalNode(X(n,t),t))}}function re(t){return e.flatten(e.mapDefined(t.elements,(function(t){return function(t){if(222===t.kind)return;if(t.name){if(!V(t))return;return e.isBindingPattern(t.name)?re(t.name):C.createVariableDeclaration(t.name,void 0,z(t,void 0),void 0)}}(t)})))}function ne(e){return!!P&&!!e&&r(e,f)}function ie(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ae(t){var r=e.getEffectiveModifierFlags(t),n=function(t){var r=11003,n=b&&!function(e){if(253===e.kind)return!0;return!1}(t)?2:0,i=297===t.parent.kind;(!i||x&&i&&e.isExternalModule(t.parent))&&(r^=2,n=0);return a(t,r,n)}(t);return r===n?t.modifiers:C.createModifiersFromModifierFlags(n)}function oe(t,r){var n=o(t);return n||t===r.firstAccessor||(n=o(r.firstAccessor),h=e.createGetSymbolAccessibilityDiagnosticForNode(r.firstAccessor)),!n&&r.secondAccessor&&t!==r.secondAccessor&&(n=o(r.secondAccessor),h=e.createGetSymbolAccessibilityDiagnosticForNode(r.secondAccessor)),n}function se(t){return C.createNodeArray(e.filter(e.map(t,(function(t){return C.updateHeritageClause(t,e.visitNodes(C.createNodeArray(e.filter(t.types,(function(r){return e.isEntityNameExpression(r.expression)||93===t.token&&103===r.expression.kind}))),Z))})),(function(e){return e.types&&!!e.types.length})))}}function a(t,r,n){void 0===r&&(r=11259),void 0===n&&(n=0);var i=e.getEffectiveModifierFlags(t)&r|n;return 512&i&&!(1&i)&&(i^=1),512&i&&2&i&&(i^=2),i}function o(e){if(e)return 167===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=i}(ts||(ts={})),function(e){var t,r;function n(t,r,n){if(n)return e.emptyArray;var i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),s=[];return e.addRange(s,r&&e.map(r.before,o)),s.push(e.transformTypeScript),s.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&s.push(e.transformJsx),i<99&&s.push(e.transformESNext),i<7&&s.push(e.transformES2020),i<6&&s.push(e.transformES2019),i<5&&s.push(e.transformES2018),i<4&&s.push(e.transformES2017),i<3&&s.push(e.transformES2016),i<2&&(s.push(e.transformES2015),s.push(e.transformGenerators)),s.push(function(t){switch(t){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&&s.push(e.transformES5),e.addRange(s,r&&e.map(r.after,o)),s}function i(t){var r=[];return r.push(e.transformDeclarations),e.addRange(r,t&&e.map(t.afterDeclarations,s)),r}function a(t,r){return function(n){var i=t(n);return"function"==typeof i?r(n,i):function(t){return function(r){return e.isBundle(r)?t.transformBundle(r):t.transformSourceFile(r)}}(i)}}function o(t){return a(t,e.chainBundle)}function s(e){return a(e,(function(e,t){return t}))}function c(e,t){return t}function u(e,t,r){r(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(r||(r={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,t,r){return{scriptTransformers:n(e,t,r),declarationTransformers:i(t)}},e.noEmitSubstitution=c,e.noEmitNotification=u,e.transformNodes=function(t,r,n,i,a,o,s){for(var l,_,d,p,f=new Array(341),g=0,m=[],y=[],v=[],h=[],b=0,x=!1,D=c,S=u,T=0,C=[],E={factory:n,getCompilerOptions:function(){return i},getEmitResolver:function(){return t},getEmitHost:function(){return r},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(E)})),startLexicalEnvironment:function(){e.Debug.assert(T>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!x,"Lexical environment is suspended."),m[b]=l,y[b]=_,v[b]=d,h[b]=g,b++,l=void 0,_=void 0,d=void 0,g=0},suspendLexicalEnvironment:function(){e.Debug.assert(T>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!x,"Lexical environment is already suspended."),x=!0},resumeLexicalEnvironment:function(){e.Debug.assert(T>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(x,"Lexical environment is not suspended."),x=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(T>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!x,"Lexical environment is suspended."),l||_||d){if(_&&(t=__spreadArray([],_)),l){var r=n.createVariableStatement(void 0,n.createVariableDeclarationList(l));e.setEmitFlags(r,1048576),t?t.push(r):t=[r]}d&&(t=__spreadArray(t?__spreadArray([],t):[],d))}b--,l=m[b],_=y[b],d=v[b],g=h[b],0===b&&(m=[],y=[],v=[],h=[]);return t},setLexicalEnvironmentFlags:function(e,t){g=t?g|e:g&~e},getLexicalEnvironmentFlags:function(){return g},hoistVariableDeclaration:function(t){e.Debug.assert(T>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(n.createVariableDeclaration(t),64);l?l.push(r):l=[r];1&g&&(g|=2)},hoistFunctionDeclaration:function(t){e.Debug.assert(T>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),_?_.push(t):_=[t]},addInitializationStatement:function(t){e.Debug.assert(T>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(T<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),d?d.push(t):d=[t]},requestEmitHelper:function t(r){if(e.Debug.assert(T>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(T<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n<i.length;n++){var a=i[n];t(a)}p=e.append(p,r)},readEmitHelpers:function(){e.Debug.assert(T>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(T<2,"Cannot modify the transformation context after transformation has completed.");var t=p;return p=void 0,t},enableSubstitution:function(t){e.Debug.assert(T<2,"Cannot modify the transformation context after transformation has completed."),f[t]|=1},enableEmitNotification:function(t){e.Debug.assert(T<2,"Cannot modify the transformation context after transformation has completed."),f[t]|=2},isSubstitutionEnabled:L,isEmitNotificationEnabled:R,get onSubstituteNode(){return D},set onSubstituteNode(t){e.Debug.assert(T<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),D=t},get onEmitNode(){return S},set onEmitNode(t){e.Debug.assert(T<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),S=t},addDiagnostic:function(e){C.push(e)}},k=0,N=a;k<N.length;k++){var A=N[k];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(A)))}e.performance.mark("beforeTransform");var F=o.map((function(e){return e(E)})),P=function(e){for(var t=0,r=F;t<r.length;t++){e=(0,r[t])(e)}return e};T=1;for(var w=[],I=0,O=a;I<O.length;I++){A=O[I];null===e.tracing||void 0===e.tracing||e.tracing.push("emit","transformNodes",297===A.kind?{path:A.path}:{kind:A.kind,pos:A.pos,end:A.end}),w.push((s?P:M)(A)),null===e.tracing||void 0===e.tracing||e.tracing.pop()}return T=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:w,substituteNode:function(t,r){return e.Debug.assert(T<3,"Cannot substitute a node after the result is disposed."),r&&L(r)&&D(t,r)||r},emitNodeWithNotification:function(t,r,n){e.Debug.assert(T<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),r&&(R(r)?S(t,r,n):n(t,r))},isEmitNotificationEnabled:R,dispose:function(){if(T<3){for(var t=0,r=a;t<r.length;t++){var n=r[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n)))}l=void 0,m=void 0,_=void 0,y=void 0,D=void 0,S=void 0,p=void 0,T=3}},diagnostics:C};function M(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:P(t)}function L(t){return 0!=(1&f[t.kind])&&0==(4&e.getEmitFlags(t))}function R(t){return 0!=(2&f[t.kind])||0!=(2&e.getEmitFlags(t))}},e.nullTransformationContext={get factory(){return e.factory},enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:e.returnUndefined,getCompilerOptions:function(){return{}},getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,getEmitHelperFactory:e.notImplemented,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:function(){return 0},hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,addInitializationStatement:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,addDiagnostic:e.noop}}(ts||(ts={})),function(e){var t,r,n=function(){var e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}(),i={pos:-1,end:-1};function a(t,r,n,i,a,s){void 0===i&&(i=!1);var u=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),l=t.getCompilerOptions();if(e.outFile(l)){var _=t.getPrependNodes();if(u.length||_.length){var d=e.factory.createBundle(u,_);if(g=r(c(d,t,i),d))return g}}else{if(!a)for(var p=0,f=u;p<f.length;p++){var g,m=f[p];if(g=r(c(m,t,i),m))return g}if(s){var y=o(l);if(y)return r({buildInfoPath:y},void 0)}}}function o(t){var r=t.configFilePath;if(e.isIncrementalCompilation(t)){if(t.tsBuildInfoFile)return t.tsBuildInfoFile;var n,i=e.outFile(t);if(i)n=e.removeFileExtension(i);else{if(!r)return;var a=e.removeFileExtension(r);n=t.outDir?t.rootDir?e.resolvePath(t.outDir,e.getRelativePathFromDirectory(t.rootDir,a,!0)):e.combinePaths(t.outDir,e.getBaseFileName(a)):a}return n+".tsbuildinfo"}}function s(t,r){var n=e.outFile(t),i=t.emitDeclarationOnly?void 0:n,a=i&&u(i,t),s=r||e.getEmitDeclarations(t)?e.removeFileExtension(n)+".d.ts":void 0;return{jsFilePath:i,sourceMapFilePath:a,declarationFilePath:s,declarationMapPath:s&&e.getAreDeclarationMapsEnabled(t)?s+".map":void 0,buildInfoPath:o(t)}}function c(t,r,n){var i=r.getCompilerOptions();if(298===t.kind)return s(i,n);var a=e.getOwnEmitOutputFilePath(t.fileName,r,l(t,i)),o=e.isJsonSourceFile(t),c=o&&0===e.comparePaths(t.fileName,a,r.getCurrentDirectory(),!r.useCaseSensitiveFileNames()),_=i.emitDeclarationOnly||c?void 0:a,d=!_||e.isJsonSourceFile(t)?void 0:u(_,i),p=n||e.getEmitDeclarations(i)&&!o?e.getDeclarationEmitOutputFilePath(t.fileName,r):void 0;return{jsFilePath:_,sourceMapFilePath:d,declarationFilePath:p,declarationMapPath:p&&e.getAreDeclarationMapsEnabled(i)?p+".map":void 0,buildInfoPath:void 0}}function u(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function l(t,r){if(e.isJsonSourceFile(t))return".json";if(1===r.jsx)if(e.isSourceFileJS(t)){if(e.fileExtensionIs(t.fileName,".jsx"))return".jsx"}else if(1===t.languageVariant)return".jsx";return".js"}function _(t,r,n,i,a){return i?e.resolvePath(i,e.getRelativePathFromDirectory(a?a():v(r,n),t,n)):t}function d(t,r,n,i){return e.Debug.assert(!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json")),e.changeExtension(_(t,r,n,r.options.declarationDir||r.options.outDir,i),".d.ts")}function p(t,r,n,i){if(!r.options.emitDeclarationOnly){var a=e.fileExtensionIs(t,".json"),o=e.changeExtension(_(t,r,n,r.options.outDir,i),a?".json":1===r.options.jsx&&(e.fileExtensionIs(t,".tsx")||e.fileExtensionIs(t,".jsx"))?".jsx":".js");return a&&0===e.comparePaths(t,o,e.Debug.checkDefined(r.options.configFilePath),n)?void 0:o}}function f(){var t;return{addOutput:function(e){e&&(t||(t=[])).push(e)},getOutputs:function(){return t||e.emptyArray}}}function g(e,t){var r=s(e.options,!1),n=r.jsFilePath,i=r.sourceMapFilePath,a=r.declarationFilePath,o=r.declarationMapPath,c=r.buildInfoPath;t(n),t(i),t(a),t(o),t(c)}function m(t,r,n,i,a){if(!e.fileExtensionIs(r,".d.ts")){var o=p(r,t,n,a);if(i(o),!e.fileExtensionIs(r,".json")&&(o&&t.options.sourceMap&&i(o+".map"),e.getEmitDeclarations(t.options))){var s=d(r,t,n,a);i(s),t.options.declarationMap&&i(s+".map")}}}function y(t,r,n,i,a){var o;return t.rootDir?(o=e.getNormalizedAbsolutePath(t.rootDir,n),null==a||a(t.rootDir)):t.composite&&t.configFilePath?(o=e.getDirectoryPath(e.normalizeSlashes(t.configFilePath)),null==a||a(o)):o=e.computeCommonSourceDirectoryOfFilenames(r(),n,i),o&&o[o.length-1]!==e.directorySeparator&&(o+=e.directorySeparator),o}function v(t,r){var n=t.options,i=t.fileNames;return y(n,(function(){return e.filter(i,(function(t){return!(n.noEmitForJsFiles&&e.fileExtensionIsOneOf(t,e.supportedJSExtensions)||e.fileExtensionIs(t,".d.ts"))}))}),e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(n.configFilePath))),e.createGetCanonicalFileName(!r))}function h(t,r,n,i,o,s,c){var u,l,_=i.scriptTransformers,d=i.declarationTransformers,p=r.getCompilerOptions(),f=p.sourceMap||p.inlineSourceMap||e.getAreDeclarationMapsEnabled(p)?[]:void 0,g=p.listEmittedFiles?[]:void 0,m=e.createDiagnosticCollection(),y=e.getNewLineCharacter(p,(function(){return r.getNewLine()})),v=e.createTextWriter(y),h=e.performance.createTimer("printTime","beforePrint","afterPrint"),x=h.enter,S=h.exit,T=!1;return x(),a(r,(function(i,a){var s,f=i.jsFilePath,y=i.sourceMapFilePath,v=i.declarationFilePath,h=i.declarationMapPath,x=i.buildInfoPath;x&&a&&e.isBundle(a)&&(s=e.getDirectoryPath(e.getNormalizedAbsolutePath(x,r.getCurrentDirectory())),u={commonSourceDirectory:S(r.getCommonSourceDirectory()),sourceFiles:a.sourceFiles.map((function(t){return S(e.getNormalizedAbsolutePath(t.fileName,r.getCurrentDirectory()))}))});null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:f}),function(n,i,a,s){if(!n||o||!i)return;if(i&&r.isEmitBlocked(i)||p.noEmit)return void(T=!0);var c=e.transformNodes(t,r,e.factory,p,[n],_,!1),l=D({removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!u,relativeToBuildInfo:s},{hasGlobalName:t.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"),E(i,a,c.transformed[0],l,p),c.dispose(),u&&(u.js=l.bundleFileInfo)}(a,f,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:v}),function(n,i,a,s){if(!n)return;if(!i)return void((o||p.emitDeclarationOnly)&&(T=!0));var _=e.isSourceFile(n)?[n]:n.sourceFiles,f=c?_:e.filter(_,e.isSourceFileNotJson),g=e.outFile(p)?[e.factory.createBundle(f,e.isSourceFile(n)?void 0:n.prepends)]:f;o&&!e.getEmitDeclarations(p)&&f.forEach(C);var y=e.transformNodes(t,r,e.factory,p,g,d,!1);if(e.length(y.diagnostics))for(var v=0,h=y.diagnostics;v<h.length;v++){var b=h[v];m.add(b)}var x=D({removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!u,recordInternalSection:!!u,relativeToBuildInfo:s},{hasGlobalName:t.hasGlobalName,onEmitNode:y.emitNodeWithNotification,isEmitNotificationEnabled:y.isEmitNotificationEnabled,substituteNode:y.substituteNode}),S=!!y.diagnostics&&!!y.diagnostics.length||!!r.isEmitBlocked(i)||!!p.noEmit;if(T=T||S,(!S||c)&&(e.Debug.assert(1===y.transformed.length,"Should only see one output from the decl transform"),E(i,a,y.transformed[0],x,{sourceMap:p.declarationMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),c&&297===y.transformed[0].kind)){var k=y.transformed[0];l=k.exportedModulesFromDeclarationEmit}y.dispose(),u&&(u.dts=x.bundleFileInfo)}(a,v,h,S),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:x}),function(t,i){if(!i||n||T)return;var a=r.getProgramBuildInfo();if(r.isEmitBlocked(i))return void(T=!0);var o=e.version;e.writeFile(r,m,i,b({bundle:t,program:a,version:o}),!1)}(u,x),null===e.tracing||void 0===e.tracing||e.tracing.pop(),!T&&g&&(o||(f&&g.push(f),y&&g.push(y),x&&g.push(x)),v&&g.push(v),h&&g.push(h));function S(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,t,r.getCanonicalFileName))}}),e.getSourceFilesToEmit(r,n,c),c,s,!n),S(),{emitSkipped:T,diagnostics:m.getDiagnostics(),emittedFiles:g,sourceMaps:f,exportedModulesFromDeclarationEmit:l};function C(r){e.isExportAssignment(r)?78===r.expression.kind&&t.collectLinkedAliases(r.expression,!0):e.isExportSpecifier(r)?t.collectLinkedAliases(r.propertyName||r.name,!0):e.forEachChild(r,C)}function E(t,n,i,a,o){var s,c=298===i.kind?i:void 0,u=297===i.kind?i:void 0,l=c?c.sourceFiles:[u];if(function(t,r){return(t.sourceMap||t.inlineSourceMap)&&(297!==r.kind||!e.fileExtensionIs(r.fileName,".json"))}(o,i)&&(s=e.createSourceMapGenerator(r,e.getBaseFileName(e.normalizeSlashes(t)),function(t){var r=e.normalizeSlashes(t.sourceRoot||"");return r?e.ensureTrailingDirectorySeparator(r):r}(o),function(t,n,i){if(t.sourceRoot)return r.getCommonSourceDirectory();if(t.mapRoot){var a=e.normalizeSlashes(t.mapRoot);return i&&(a=e.getDirectoryPath(e.getSourceFilePathInNewDir(i.fileName,r,a))),0===e.getRootLength(a)&&(a=e.combinePaths(r.getCommonSourceDirectory(),a)),a}return e.getDirectoryPath(e.normalizePath(n))}(o,t,u),o)),c?a.writeBundle(c,v,s):a.writeFile(u,v,s),s){f&&f.push({inputSourceFileNames:s.getSources(),sourceMap:s.toJSON()});var _=function(t,n,i,a,o){if(t.inlineSourceMap){var s=n.toString();return"data:application/json;base64,"+e.base64encode(e.sys,s)}var c=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(a)));if(t.mapRoot){var u=e.normalizeSlashes(t.mapRoot);return o&&(u=e.getDirectoryPath(e.getSourceFilePathInNewDir(o.fileName,r,u))),0===e.getRootLength(u)?(u=e.combinePaths(r.getCommonSourceDirectory(),u),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(i)),e.combinePaths(u,c),r.getCurrentDirectory(),r.getCanonicalFileName,!0))):encodeURI(e.combinePaths(u,c))}return encodeURI(c)}(o,s,t,n,u);if(_&&(v.isAtStartOfLine()||v.rawWrite(y),v.writeComment("//# sourceMappingURL="+_)),n){var d=s.toString();e.writeFile(r,m,n,d,!1,l)}}else v.writeLine();e.writeFile(r,m,t,v.getText(),!!p.emitBOM,l),v.clear()}}function b(e){return JSON.stringify(e,void 0,2)}function x(e){return JSON.parse(e)}function D(t,r){void 0===t&&(t={}),void 0===r&&(r={});var a,o,s,c,u,l,_,d,p,f,g,m,y,v,h,b,x,D,S,T=r.hasGlobalName,C=r.onEmitNode,E=void 0===C?e.noEmitNotification:C,k=r.isEmitNotificationEnabled,N=r.substituteNode,A=void 0===N?e.noEmitSubstitution:N,F=r.onBeforeEmitNodeArray,P=r.onAfterEmitNodeArray,w=r.onBeforeEmitToken,I=r.onAfterEmitToken,O=!!t.extendedDiagnostics,M=e.getNewLineCharacter(t),L=e.getEmitModuleKind(t),R=new e.Map,B=t.preserveSourceNewlines,j=function(e){f.write(e)},J=t.writeBundleFileInfo?{sections:[]}:void 0,z=J?e.Debug.checkDefined(t.relativeToBuildInfo):void 0,U=t.recordInternalSection,V=0,K="text",q=!0,W=-1,H=-1,G=-1,X=-1,Q=-1,Y=!1,Z=!!t.removeComments,$=e.performance.createTimerIf(O,"commentTime","beforeComment","afterComment"),ee=$.enter,te=$.exit;return ve(),{printNode:function(t,r,n){switch(t){case 0:e.Debug.assert(e.isSourceFile(r),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(r),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(r),"Expected an Expression node.")}switch(r.kind){case 297:return ne(r);case 298:return re(r);case 299:return function(e,t){var r=f;ye(t,void 0),ge(4,e,void 0),ve(),f=r}(r,pe()),fe()}return ie(t,r,n,pe()),fe()},printList:function(e,t,r){return ae(e,t,r,pe()),fe()},printFile:ne,printBundle:re,writeNode:ie,writeList:ae,writeFile:de,writeBundle:_e,bundleFileInfo:J};function re(e){return _e(e,pe(),void 0),fe()}function ne(e){return de(e,pe(),void 0),fe()}function ie(e,t,r,n){var i=f;ye(n,void 0),ge(e,t,r),ve(),f=i}function ae(e,t,r,n){var a=f;ye(n,void 0),r&&me(r),Dt(i,t,e),ve(),f=a}function oe(){return f.getTextPosWithWriteLine?f.getTextPosWithWriteLine():f.getTextPos()}function se(t,r,n){var i=e.lastOrUndefined(J.sections);i&&i.kind===n?i.end=r:J.sections.push({pos:t,end:r,kind:n})}function ce(t){if(U&&J&&a&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,a)&&"internal"!==K){var r=K;return le(f.getTextPos()),V=oe(),K="internal",r}}function ue(e){e&&(le(f.getTextPos()),V=oe(),K=e)}function le(e){return V<e&&(se(V,e,K),!0)}function _e(r,n,i){var a;m=!1;var o=f;ye(n,i),ut(r),ct(r),Fe(r),function(t){it(!!t.hasNoDefaultLib,t.syntheticFileReferences||[],t.syntheticTypeReferences||[],t.syntheticLibReferences||[]);for(var r=0,n=t.prepends;r<n.length;r++){var i=n[r];if(e.isUnparsedSource(i)&&i.syntheticReferences)for(var a=0,o=i.syntheticReferences;a<o.length;a++){be(o[a]),Mt()}}}(r);for(var s=0,c=r.prepends;s<c.length;s++){var u=c[s];Mt();var l=f.getTextPos(),_=J&&J.sections;if(_&&(J.sections=[]),ge(4,u,void 0),J){var d=J.sections;J.sections=_,u.oldFileOfCurrentEmit?(a=J.sections).push.apply(a,d):(d.forEach((function(t){return e.Debug.assert(e.isBundleFileTextLike(t))})),J.sections.push({pos:l,end:f.getTextPos(),kind:"prepend",data:z(u.fileName),texts:d}))}}V=oe();for(var p=0,g=r.sourceFiles;p<g.length;p++){var y=g[p];ge(0,y,y)}if(J&&r.sourceFiles.length&&le(f.getTextPos())){var v=function(t){for(var r,n=new e.Set,i=0;i<t.sourceFiles.length;i++){for(var a=t.sourceFiles[i],o=void 0,s=0,c=0,u=a.statements;c<u.length;c++){var l=u[c];if(!e.isPrologueDirective(l))break;n.has(l.expression.text)||(n.add(l.expression.text),(o||(o=[])).push({pos:l.pos,end:l.end,expression:{pos:l.expression.pos,end:l.expression.end,text:l.expression.text}}),s=s<l.end?l.end:s)}o&&(r||(r=[])).push({file:i,text:a.text.substring(0,s),directives:o})}return r}(r);v&&(J.sources||(J.sources={}),J.sources.prologues=v);var h=function(r){var n;if(L===e.ModuleKind.None||t.noEmitHelpers)return;for(var i=new e.Map,a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a],c=void 0!==e.getExternalHelpersModuleName(s),u=Pe(s);if(u)for(var l=0,_=u;l<_.length;l++){var d=_[l];d.scoped||c||i.get(d.name)||(i.set(d.name,!0),(n||(n=[])).push(d.name))}}return n}(r);h&&(J.sources||(J.sources={}),J.sources.helpers=h)}ve(),f=o}function de(e,t,r){m=!0;var n=f;ye(t,r),ut(e),ct(e),ge(0,e,e),ve(),f=n}function pe(){return g||(g=e.createTextWriter(M))}function fe(){var e=g.getText();return g.clear(),e}function ge(e,t,r){r&&me(r),Te(e,t)}function me(e){a=e,b=void 0,x=void 0,e&&jr(e)}function ye(r,n){r&&t.omitTrailingSemicolon&&(r=e.getTrailingSemicolonDeferringWriter(r)),y=n,q=!(f=r)||!y}function ve(){o=[],s=[],c=new e.Set,u=[],l=0,_=[],a=void 0,b=void 0,x=void 0,D=void 0,S=void 0,ye(void 0,void 0)}function he(){return b||(b=e.getLineStarts(a))}function be(e){if(void 0!==e){var t=ce(e),r=Te(4,e);return ue(t),r}}function xe(e){if(void 0!==e)return Te(2,e)}function De(e){if(void 0!==e)return Te(1,e)}function Se(t){return Te(e.isStringLiteral(t)?6:4,t)}function Te(t,r){var n=D,i=S,a=B;D=r,S=void 0,B&&134217728&e.getEmitFlags(r)&&(B=!1),Ce(0,t,r)(t,r),e.Debug.assert(D===r);var o=S;return D=n,S=i,B=a,o||r}function Ce(t,r,n){switch(t){case 0:if(E!==e.noEmitNotification&&(!k||k(n)))return ke;case 1:if(A!==e.noEmitSubstitution&&(S=A(r,n))!==n)return Ae;case 2:if(!Z&&297!==n.kind)return mr;case 3:if(!q&&297!==n.kind&&!e.isInJsonFile(n))return Mr;case 4:return Ne;default:return e.Debug.assertNever(t)}}function Ee(e,t,r){return Ce(e+1,t,r)}function ke(t,r){e.Debug.assert(D===r);var n=Ee(0,t,r);E(t,r,n),e.Debug.assert(D===r)}function Ne(t,r){if(e.Debug.assert(D===r||S===r),0===t)return function(t){Mt();var r=t.statements;if(br){if(0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0]))return void br(t,r,at)}at(t)}(e.cast(r,e.isSourceFile));if(2===t)return Oe(e.cast(r,e.isIdentifier));if(6===t)return we(e.cast(r,e.isStringLiteral),!0);if(3===t)return function(e){be(e.name),It(),At("in"),It(),be(e.constraint)}(e.cast(r,e.isTypeParameterDeclaration));if(5===t)return e.Debug.assertNode(r,e.isEmptyStatement),Re(!0);if(4===t){if(e.isKeyword(r.kind))return jt(r,At);switch(r.kind){case 15:case 16:case 17:return we(r,!1);case 299:case 293:return function(e){for(var t=0,r=e.texts;t<r.length;t++){var n=r[t];Mt(),be(n)}}(r);case 292:return Ie(r);case 294:case 295:return o=r,s=oe(),Ie(o),void(J&&se(s,f.getTextPos(),294===o.kind?"text":"internal"));case 296:return function(t){var r=oe();if(Ie(t),J){var n=e.clone(t.section);n.pos=r,n.end=f.getTextPos(),J.sections.push(n)}}(r);case 78:return Oe(r);case 79:return function(e){(e.symbol?Et:j)(tr(e,!1),e.symbol)}(r);case 157:return function(e){(function(e){78===e.kind?De(e):be(e)})(e.left),kt("."),be(e.right)}(r);case 158:return function(e){kt("["),De(e.expression),kt("]")}(r);case 159:return function(e){be(e.name),e.constraint&&(It(),At("extends"),It(),be(e.constraint));e.default&&(It(),Ft("="),It(),be(e.default))}(r);case 160:return function(e){yt(e,e.decorators),_t(e,e.modifiers),be(e.dotDotDotToken),lt(e.name,Pt),be(e.questionToken),e.parent&&308===e.parent.kind&&!e.name?be(e.type):dt(e.type);pt(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)}(r);case 161:return i=r,kt("@"),void De(i.expression);case 162:return function(e){yt(e,e.decorators),_t(e,e.modifiers),lt(e.name,Ot),be(e.questionToken),dt(e.type),Nt()}(r);case 163:return function(e){yt(e,e.decorators),_t(e,e.modifiers),be(e.name),be(e.questionToken),be(e.exclamationToken),dt(e.type),pt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Nt()}(r);case 164:return function(e){nr(e),yt(e,e.decorators),_t(e,e.modifiers),be(e.name),be(e.questionToken),ht(e,e.typeParameters),bt(e,e.parameters),dt(e.type),Nt(),ir(e)}(r);case 165:return function(e){yt(e,e.decorators),_t(e,e.modifiers),be(e.asteriskToken),be(e.name),be(e.questionToken),Ve(e,Ke)}(r);case 166:return function(e){_t(e,e.modifiers),At("constructor"),Ve(e,Ke)}(r);case 167:case 168:return function(e){yt(e,e.decorators),_t(e,e.modifiers),At(167===e.kind?"get":"set"),It(),be(e.name),Ve(e,Ke)}(r);case 169:return function(e){nr(e),yt(e,e.decorators),_t(e,e.modifiers),ht(e,e.typeParameters),bt(e,e.parameters),dt(e.type),Nt(),ir(e)}(r);case 170:return function(e){nr(e),yt(e,e.decorators),_t(e,e.modifiers),At("new"),It(),ht(e,e.typeParameters),bt(e,e.parameters),dt(e.type),Nt(),ir(e)}(r);case 171:return function(e){yt(e,e.decorators),_t(e,e.modifiers),t=e,r=e.parameters,Dt(t,r,8848),dt(e.type),Nt();var t,r}(r);case 194:return function(e){be(e.type),be(e.literal)}(r);case 172:return function(e){e.assertsModifier&&(be(e.assertsModifier),It());be(e.parameterName),e.type&&(It(),At("is"),It(),be(e.type))}(r);case 173:return function(e){be(e.typeName),vt(e,e.typeArguments)}(r);case 174:return function(e){nr(e),ht(e,e.typeParameters),xt(e,e.parameters),It(),kt("=>"),It(),be(e.type),ir(e)}(r);case 308:return function(e){At("function"),bt(e,e.parameters),kt(":"),be(e.type)}(r);case 175:return function(e){nr(e),_t(e,e.modifiers),At("new"),It(),ht(e,e.typeParameters),bt(e,e.parameters),It(),kt("=>"),It(),be(e.type),ir(e)}(r);case 176:return function(e){At("typeof"),It(),be(e.exprName)}(r);case 177:return function(t){kt("{");var r=1&e.getEmitFlags(t)?768:32897;Dt(t,t.members,524288|r),kt("}")}(r);case 178:return function(e){be(e.elementType),kt("["),kt("]")}(r);case 179:return function(t){Je(22,t.pos,kt,t);var r=1&e.getEmitFlags(t)?528:657;Dt(t,t.elements,524288|r),Je(23,t.elements.end,kt,t)}(r);case 180:return function(e){be(e.type),kt("?")}(r);case 182:return function(e){Dt(e,e.types,516)}(r);case 183:return function(e){Dt(e,e.types,520)}(r);case 184:return function(e){be(e.checkType),It(),At("extends"),It(),be(e.extendsType),It(),kt("?"),It(),be(e.trueType),It(),kt(":"),It(),be(e.falseType)}(r);case 185:return function(e){At("infer"),It(),be(e.typeParameter)}(r);case 186:return function(e){kt("("),be(e.type),kt(")")}(r);case 223:return function(e){De(e.expression),vt(e,e.typeArguments)}(r);case 187:return void At("this");case 188:return function(e){Jt(e.operator,At),It(),be(e.type)}(r);case 189:return function(e){be(e.objectType),kt("["),be(e.indexType),kt("]")}(r);case 190:return function(t){var r=e.getEmitFlags(t);kt("{"),1&r?It():(Mt(),Lt());t.readonlyToken&&(be(t.readonlyToken),142!==t.readonlyToken.kind&&At("readonly"),It());kt("["),Te(3,t.typeParameter),t.nameType&&(It(),At("as"),It(),be(t.nameType));kt("]"),t.questionToken&&(be(t.questionToken),57!==t.questionToken.kind&&kt("?"));kt(":"),It(),be(t.type),Nt(),1&r?It():(Mt(),Rt());kt("}")}(r);case 191:return function(e){De(e.literal)}(r);case 193:return function(e){be(e.head),Dt(e,e.templateSpans,262144)}(r);case 195:return function(e){e.isTypeOf&&(At("typeof"),It());At("import"),kt("("),be(e.argument),kt(")"),e.qualifier&&(kt("."),be(e.qualifier));vt(e,e.typeArguments)}(r);case 303:return void kt("*");case 304:return void kt("?");case 305:return function(e){kt("?"),be(e.type)}(r);case 306:return function(e){kt("!"),be(e.type)}(r);case 307:return function(e){be(e.type),kt("=")}(r);case 181:case 309:return function(e){kt("..."),be(e.type)}(r);case 192:return function(e){be(e.dotDotDotToken),be(e.name),be(e.questionToken),Je(58,e.name.end,kt,e),It(),be(e.type)}(r);case 196:return function(e){kt("{"),Dt(e,e.elements,525136),kt("}")}(r);case 197:return function(e){kt("["),Dt(e,e.elements,524880),kt("]")}(r);case 198:return function(e){be(e.dotDotDotToken),e.propertyName&&(be(e.propertyName),kt(":"),It());be(e.name),pt(e.initializer,e.name.end,e)}(r);case 228:return function(e){De(e.expression),be(e.literal)}(r);case 229:return void Nt();case 230:return function(e){Le(e,!e.multiLine&&$t(e))}(r);case 232:return function(e){_t(e,e.modifiers),be(e.declarationList),Nt()}(r);case 231:return Re(!1);case 233:return function(t){De(t.expression),(!e.isJsonSourceFile(a)||e.nodeIsSynthesized(t.expression))&&Nt()}(r);case 234:return function(e){var t=Je(98,e.pos,At,e);It(),Je(20,t,kt,e),De(e.expression),Je(21,e.expression.end,kt,e),mt(e,e.thenStatement),e.elseStatement&&(zt(e,e.thenStatement,e.elseStatement),Je(90,e.thenStatement.end,At,e),234===e.elseStatement.kind?(It(),be(e.elseStatement)):mt(e,e.elseStatement))}(r);case 235:return function(t){Je(89,t.pos,At,t),mt(t,t.statement),e.isBlock(t.statement)&&!B?It():zt(t,t.statement,t.expression);Be(t,t.statement.end),Nt()}(r);case 236:return function(e){Be(e,e.pos),mt(e,e.statement)}(r);case 237:return function(e){var t=Je(96,e.pos,At,e);It();var r=Je(20,t,kt,e);je(e.initializer),r=Je(26,e.initializer?e.initializer.end:r,kt,e),gt(e.condition),r=Je(26,e.condition?e.condition.end:r,kt,e),gt(e.incrementor),Je(21,e.incrementor?e.incrementor.end:r,kt,e),mt(e,e.statement)}(r);case 238:return function(e){var t=Je(96,e.pos,At,e);It(),Je(20,t,kt,e),je(e.initializer),It(),Je(100,e.initializer.end,At,e),It(),De(e.expression),Je(21,e.expression.end,kt,e),mt(e,e.statement)}(r);case 239:return function(e){var t=Je(96,e.pos,At,e);It(),function(e){e&&(be(e),It())}(e.awaitModifier),Je(20,t,kt,e),je(e.initializer),It(),Je(156,e.initializer.end,At,e),It(),De(e.expression),Je(21,e.expression.end,kt,e),mt(e,e.statement)}(r);case 240:return function(e){Je(85,e.pos,At,e),ft(e.label),Nt()}(r);case 241:return function(e){Je(80,e.pos,At,e),ft(e.label),Nt()}(r);case 242:return function(e){Je(104,e.pos,At,e),gt(e.expression),Nt()}(r);case 243:return function(e){var t=Je(115,e.pos,At,e);It(),Je(20,t,kt,e),De(e.expression),Je(21,e.expression.end,kt,e),mt(e,e.statement)}(r);case 244:return function(e){var t=Je(106,e.pos,At,e);It(),Je(20,t,kt,e),De(e.expression),Je(21,e.expression.end,kt,e),It(),be(e.caseBlock)}(r);case 245:return function(e){be(e.label),Je(58,e.label.end,kt,e),It(),be(e.statement)}(r);case 246:return function(e){Je(108,e.pos,At,e),gt(e.expression),Nt()}(r);case 247:return function(e){Je(110,e.pos,At,e),It(),be(e.tryBlock),e.catchClause&&(zt(e,e.tryBlock,e.catchClause),be(e.catchClause));e.finallyBlock&&(zt(e,e.catchClause||e.tryBlock,e.finallyBlock),Je(95,(e.catchClause||e.tryBlock).end,At,e),It(),be(e.finallyBlock))}(r);case 248:return function(e){Bt(86,e.pos,At),Nt()}(r);case 249:return function(e){be(e.name),be(e.exclamationToken),dt(e.type),pt(e.initializer,e.type?e.type.end:e.name.end,e)}(r);case 250:return function(t){At(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),It(),Dt(t,t.declarations,528)}(r);case 251:return function(e){ze(e)}(r);case 252:return function(e){Ge(e)}(r);case 253:return function(e){yt(e,e.decorators),_t(e,e.modifiers),At("interface"),It(),be(e.name),ht(e,e.typeParameters),Dt(e,e.heritageClauses,512),It(),kt("{"),Dt(e,e.members,129),kt("}")}(r);case 254:return function(e){yt(e,e.decorators),_t(e,e.modifiers),At("type"),It(),be(e.name),ht(e,e.typeParameters),It(),kt("="),It(),be(e.type),Nt()}(r);case 255:return function(e){_t(e,e.modifiers),At("enum"),It(),be(e.name),It(),kt("{"),Dt(e,e.members,145),kt("}")}(r);case 256:return function(e){_t(e,e.modifiers),1024&~e.flags&&(At(16&e.flags?"namespace":"module"),It());be(e.name);var t=e.body;if(!t)return Nt();for(;256===t.kind;)kt("."),be(t.name),t=t.body;It(),be(t)}(r);case 257:return function(t){nr(t),e.forEach(t.statements,or),Le(t,$t(t)),ir(t)}(r);case 258:return function(e){Je(18,e.pos,kt,e),Dt(e,e.clauses,129),Je(19,e.clauses.end,kt,e,!0)}(r);case 259:return function(e){var t=Je(92,e.pos,At,e);It(),t=Je(126,t,At,e),It(),t=Je(140,t,At,e),It(),be(e.name),Nt()}(r);case 260:return function(e){_t(e,e.modifiers),Je(99,e.modifiers?e.modifiers.end:e.pos,At,e),It(),e.isTypeOnly&&(Je(149,e.pos,At,e),It());be(e.name),It(),Je(62,e.name.end,kt,e),It(),function(e){78===e.kind?De(e):be(e)}(e.moduleReference),Nt()}(r);case 261:return function(e){_t(e,e.modifiers),Je(99,e.modifiers?e.modifiers.end:e.pos,At,e),It(),e.importClause&&(be(e.importClause),It(),Je(153,e.importClause.end,At,e),It());De(e.moduleSpecifier),Nt()}(r);case 262:return function(e){e.isTypeOnly&&(Je(149,e.pos,At,e),It());be(e.name),e.name&&e.namedBindings&&(Je(27,e.name.end,kt,e),It());be(e.namedBindings)}(r);case 263:return function(e){var t=Je(41,e.pos,kt,e);It(),Je(126,t,At,e),It(),be(e.name)}(r);case 269:return function(e){var t=Je(41,e.pos,kt,e);It(),Je(126,t,At,e),It(),be(e.name)}(r);case 264:return function(e){Xe(e)}(r);case 265:return function(e){Qe(e)}(r);case 266:return function(e){var t=Je(92,e.pos,At,e);It(),e.isExportEquals?Je(62,t,Ft,e):Je(87,t,At,e);It(),De(e.expression),Nt()}(r);case 267:return function(e){var t=Je(92,e.pos,At,e);It(),e.isTypeOnly&&(t=Je(149,t,At,e),It());e.exportClause?be(e.exportClause):t=Je(41,t,kt,e);if(e.moduleSpecifier){It(),Je(153,e.exportClause?e.exportClause.end:t,At,e),It(),De(e.moduleSpecifier)}Nt()}(r);case 268:return function(e){Xe(e)}(r);case 270:return function(e){Qe(e)}(r);case 271:return;case 272:return function(e){At("require"),kt("("),De(e.expression),kt(")")}(r);case 11:return function(e){f.writeLiteral(e.text)}(r);case 275:case 278:return function(t){if(kt("<"),e.isJsxOpeningElement(t)){var r=Xt(t.tagName,t);Ye(t.tagName),vt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&It(),be(t.attributes),Qt(t.attributes,t),Kt(r)}kt(">")}(r);case 276:case 279:return function(t){kt("</"),e.isJsxClosingElement(t)&&Ye(t.tagName);kt(">")}(r);case 280:return function(e){be(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",kt,e.initializer,Se)}(r);case 281:return function(e){Dt(e,e.properties,262656)}(r);case 282:return function(e){kt("{..."),De(e.expression),kt("}")}(r);case 283:return function(t){var r;if(t.expression||!Z&&!e.nodeIsSynthesized(t)&&function(t){return function(t){var r=!1;return e.forEachTrailingCommentRange((null==a?void 0:a.text)||"",t+1,(function(){return r=!0})),r}(t)||function(t){var r=!1;return e.forEachLeadingCommentRange((null==a?void 0:a.text)||"",t+1,(function(){return r=!0})),r}(t)}(t.pos)){var n=a&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(a,t.pos).line!==e.getLineAndCharacterOfPosition(a,t.end).line;n&&f.increaseIndent();var i=Je(18,t.pos,kt,t);be(t.dotDotDotToken),De(t.expression),Je(19,(null===(r=t.expression)||void 0===r?void 0:r.end)||i,kt,t),n&&f.decreaseIndent()}}(r);case 284:return function(e){Je(81,e.pos,At,e),It(),De(e.expression),Ze(e,e.statements,e.expression.end)}(r);case 285:return function(e){var t=Je(87,e.pos,At,e);Ze(e,e.statements,t)}(r);case 286:return function(e){It(),Jt(e.token,At),It(),Dt(e,e.types,528)}(r);case 287:return function(e){var t=Je(82,e.pos,At,e);It(),e.variableDeclaration&&(Je(20,t,kt,e),be(e.variableDeclaration),Je(21,e.variableDeclaration.end,kt,e),It());be(e.block)}(r);case 288:return function(t){be(t.name),kt(":"),It();var r=t.initializer;if(0==(512&e.getEmitFlags(r))){Nr(e.getCommentRange(r).pos)}De(r)}(r);case 289:return function(e){be(e.name),e.objectAssignmentInitializer&&(It(),kt("="),It(),De(e.objectAssignmentInitializer))}(r);case 290:return function(e){e.expression&&(Je(25,e.pos,kt,e),De(e.expression))}(r);case 291:return function(e){be(e.name),pt(e.initializer,e.name.end,e)}(r);case 326:case 333:return function(e){tt(e.tagName),nt(e.typeExpression),It(),e.isBracketed&&kt("[");be(e.name),e.isBracketed&&kt("]");rt(e.comment)}(r);case 327:case 329:case 328:case 325:return tt((n=r).tagName),nt(n.typeExpression),void rt(n.comment);case 316:case 315:return function(e){tt(e.tagName),It(),kt("{"),be(e.class),kt("}"),rt(e.comment)}(r);case 330:return function(e){tt(e.tagName),nt(e.constraint),It(),Dt(e,e.typeParameters,528),rt(e.comment)}(r);case 331:return function(e){tt(e.tagName),e.typeExpression&&(301===e.typeExpression.kind?nt(e.typeExpression):(It(),kt("{"),j("Object"),e.typeExpression.isArrayType&&(kt("["),kt("]")),kt("}")));e.fullName&&(It(),be(e.fullName));rt(e.comment),e.typeExpression&&312===e.typeExpression.kind&&$e(e.typeExpression)}(r);case 324:return function(e){tt(e.tagName),e.name&&(It(),be(e.name));rt(e.comment),et(e.typeExpression)}(r);case 313:return et(r);case 312:return $e(r);case 319:case 314:return function(e){tt(e.tagName),rt(e.comment)}(r);case 332:return function(e){tt(e.tagName),be(e.name),rt(e.comment)}(r);case 302:return function(e){It(),kt("{"),be(e.name),kt("}")}(r);case 311:return function(e){if(j("/**"),e.comment)for(var t=0,r=e.comment.split(/\r\n?|\n/g);t<r.length;t++){var n=r[t];Mt(),It(),kt("*"),It(),j(n)}e.tags&&(1!==e.tags.length||329!==e.tags[0].kind||e.comment?Dt(e,e.tags,33):(It(),be(e.tags[0])));It(),j("*/")}(r)}if(e.isExpression(r))t=1,A!==e.noEmitSubstitution&&(S=r=A(t,r));else if(e.isToken(r))return jt(r,kt)}var n,i,o,s;if(1===t)switch(r.kind){case 8:case 9:return function(e){we(e,!1)}(r);case 10:case 13:case 14:return we(r,!1);case 78:return Oe(r);case 94:case 103:case 105:case 109:case 107:case 99:return void jt(r,At);case 199:return function(e){var t=e.elements,r=e.multiLine?65536:0;St(e,t,8914|r)}(r);case 200:return function(t){e.forEach(t.properties,sr);var r=65536&e.getEmitFlags(t);r&&Lt();var n=t.multiLine?65536:0,i=a.languageVersion>=1&&!e.isJsonSourceFile(a)?64:0;Dt(t,t.properties,526226|i|n),r&&Rt()}(r);case 201:return function(t){var r=e.cast(De(t.expression),e.isExpression),n=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),i=Zt(t,t.expression,n),a=Zt(t,n,t.name);Vt(i,!1),28===n.kind||!function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=rr(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(24))}if(e.isAccessExpression(t)){var n=e.getConstantValue(t);return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}}(r)||f.hasTrailingComment()||f.hasTrailingWhitespace()||kt(".");t.questionDotToken?be(n):Je(n.kind,t.expression.end,kt,t);Vt(a,!1),be(t.name),Kt(i,a)}(r);case 202:return function(e){De(e.expression),be(e.questionDotToken),Je(22,e.expression.end,kt,e),De(e.argumentExpression),Je(23,e.argumentExpression.end,kt,e)}(r);case 203:return function(e){De(e.expression),be(e.questionDotToken),vt(e,e.typeArguments),St(e,e.arguments,2576)}(r);case 204:return function(e){Je(102,e.pos,At,e),It(),De(e.expression),vt(e,e.typeArguments),St(e,e.arguments,18960)}(r);case 205:return function(e){De(e.tag),vt(e,e.typeArguments),It(),De(e.template)}(r);case 206:return function(e){kt("<"),be(e.type),kt(">"),De(e.expression)}(r);case 207:return function(e){var t=Je(20,e.pos,kt,e),r=Xt(e.expression,e);De(e.expression),Qt(e.expression,e),Kt(r),Je(21,e.expression?e.expression.end:t,kt,e)}(r);case 208:return function(e){cr(e.name),ze(e)}(r);case 209:return function(e){yt(e,e.decorators),_t(e,e.modifiers),Ve(e,Me)}(r);case 210:return function(e){Je(88,e.pos,At,e),It(),De(e.expression)}(r);case 211:return function(e){Je(111,e.pos,At,e),It(),De(e.expression)}(r);case 212:return function(e){Je(113,e.pos,At,e),It(),De(e.expression)}(r);case 213:return function(e){Je(130,e.pos,At,e),It(),De(e.expression)}(r);case 214:return function(e){Jt(e.operator,Ft),function(e){var t=e.operand;return 214===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&It();De(e.operand)}(r);case 215:return function(e){De(e.operand),Jt(e.operator,Ft)}(r);case 216:return function(t){var r=[t],n=[0],i=0;for(;i>=0;)switch(t=r[i],n[i]){case 0:c(t.left);break;case 1:var a=27!==t.operatorToken.kind,o=Zt(t,t.left,t.operatorToken),s=Zt(t,t.operatorToken,t.right);Vt(o,a),Er(t.operatorToken.pos),jt(t.operatorToken,100===t.operatorToken.kind?At:Ft),Nr(t.operatorToken.end,!0),Vt(s,!0),c(t.right);break;case 2:Kt(o=Zt(t,t.left,t.operatorToken),s=Zt(t,t.operatorToken,t.right)),i--;break;default:return e.Debug.fail("Invalid state "+n[i]+" for emitBinaryExpressionWorker")}function c(t){n[i]++;var a=D,o=S;D=t,S=void 0;var s=Ce(0,1,t);s===Ne&&e.isBinaryExpression(t)?(i++,n[i]=0,r[i]=t):s(1,t),e.Debug.assert(D===t),D=a,S=o}}(r);case 217:return function(e){var t=Zt(e,e.condition,e.questionToken),r=Zt(e,e.questionToken,e.whenTrue),n=Zt(e,e.whenTrue,e.colonToken),i=Zt(e,e.colonToken,e.whenFalse);De(e.condition),Vt(t,!0),be(e.questionToken),Vt(r,!0),De(e.whenTrue),Kt(t,r),Vt(n,!0),be(e.colonToken),Vt(i,!0),De(e.whenFalse),Kt(n,i)}(r);case 218:return function(e){be(e.head),Dt(e,e.templateSpans,262144)}(r);case 219:return function(e){Je(124,e.pos,At,e),be(e.asteriskToken),gt(e.expression)}(r);case 220:return function(e){Je(25,e.pos,kt,e),De(e.expression)}(r);case 221:return function(e){cr(e.name),Ge(e)}(r);case 222:return;case 224:return function(e){De(e.expression),e.type&&(It(),At("as"),It(),be(e.type))}(r);case 225:return function(e){De(e.expression),Ft("!")}(r);case 226:return function(e){Bt(e.keywordToken,e.pos,kt),kt("."),be(e.name)}(r);case 273:return function(e){be(e.openingElement),Dt(e,e.children,262144),be(e.closingElement)}(r);case 274:return function(e){kt("<"),Ye(e.tagName),vt(e,e.typeArguments),It(),be(e.attributes),kt("/>")}(r);case 277:return function(e){be(e.openingFragment),Dt(e,e.children,262144),be(e.closingFragment)}(r);case 336:return function(e){De(e.expression)}(r);case 337:return function(e){St(e,e.elements,528)}(r)}}function Ae(t,r){e.Debug.assert(D===r||S===r),Ee(1,t,r)(t,S),e.Debug.assert(D===r||S===r)}function Fe(r){var n=!1,i=298===r.kind?r:void 0;if(!i||L!==e.ModuleKind.None){for(var o=i?i.prepends.length:0,s=i?i.sourceFiles.length+o:1,c=0;c<s;c++){var u=i?c<o?i.prepends[c]:i.sourceFiles[c-o]:r,l=e.isSourceFile(u)?u:e.isUnparsedSource(u)?void 0:a,_=t.noEmitHelpers||!!l&&e.hasRecordedExternalHelpers(l),d=(e.isSourceFile(u)||e.isUnparsedSource(u))&&!m,p=e.isUnparsedSource(u)?u.helpers:Pe(u);if(p)for(var g=0,y=p;g<y.length;g++){var v=y[g];if(v.scoped){if(i)continue}else{if(_)continue;if(d){if(R.get(v.name))continue;R.set(v.name,!0)}}var h=oe();"string"==typeof v.text?Ut(v.text):Ut(v.text(gr)),J&&J.sections.push({pos:h,end:f.getTextPos(),kind:"emitHelpers",data:v.name}),n=!0}}return n}}function Pe(t){var r=e.getEmitHelpers(t);return r&&e.stableSort(r,e.compareEmitHelpers)}function we(r,n){var i,a=rr(r,t.neverAsciiEscape,n);!t.sourceMap&&!t.inlineSourceMap||10!==r.kind&&!e.isTemplateLiteralKind(r.kind)?function(e){f.writeStringLiteral(e)}(a):(i=a,f.writeLiteral(i))}function Ie(e){f.rawWrite(e.parent.text.substring(e.pos,e.end))}function Oe(e){(e.symbol?Et:j)(tr(e,!1),e.symbol),Dt(e,e.typeArguments,53776)}function Me(e){ht(e,e.typeParameters),xt(e,e.parameters),dt(e.type),It(),be(e.equalsGreaterThanToken)}function Le(t,r){Je(18,t.pos,kt,t);var n=r||1&e.getEmitFlags(t)?768:129;Dt(t,t.statements,n),Je(19,t.statements.end,kt,t,!!(1&n))}function Re(e){e?kt(";"):Nt()}function Be(e,t){var r=Je(114,t,At,e);It(),Je(20,r,kt,e),De(e.expression),Je(21,e.expression.end,kt,e)}function je(e){void 0!==e&&(250===e.kind?be(e):De(e))}function Je(t,r,n,i,o){var s=e.getParseTreeNode(i),c=s&&s.kind===i.kind,u=r;if(c&&a&&(r=e.skipTrivia(a.text,r)),c&&i.pos!==u){var l=o&&a&&!e.positionsAreOnSameLine(u,r,a);l&&Lt(),Er(u),l&&Rt()}if(r=Jt(t,n,r),c&&i.end!==r){var _=283===i.kind;Nr(r,!_,_)}return r}function ze(e){yt(e,e.decorators),_t(e,e.modifiers),At("function"),be(e.asteriskToken),It(),xe(e.name),Ve(e,Ke)}function Ue(e,t){qe(t)}function Ve(t,r){var n=t.body;if(n)if(e.isBlock(n)){var i=65536&e.getEmitFlags(t);i&&Lt(),nr(t),e.forEach(t.parameters,or),or(t.body),r(t),E?E(4,n,Ue):qe(n),ir(t),i&&Rt()}else r(t),It(),De(n);else r(t),Nt()}function Ke(e){ht(e,e.typeParameters),bt(e,e.parameters),dt(e.type)}function qe(t){It(),kt("{"),Lt();var r=function(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,a))return!1;if(qt(t,t.statements,2)||Ht(t,t.statements,2))return!1;for(var r,n=0,i=t.statements;n<i.length;n++){var o=i[n];if(Wt(r,o,2)>0)return!1;r=o}return!0}(t)?We:He;br?br(t,t.statements,r):r(t),Rt(),Bt(19,t.statements.end,kt,t)}function We(e){He(e,!0)}function He(e,t){var r=ot(e.statements),n=f.getTextPos();Fe(e),0===r&&n===f.getTextPos()&&t?(Rt(),Dt(e,e.statements,768),Lt()):Dt(e,e.statements,1,r)}function Ge(t){e.forEach(t.members,sr),yt(t,t.decorators),_t(t,t.modifiers),At("class"),t.name&&(It(),xe(t.name));var r=65536&e.getEmitFlags(t);r&&Lt(),ht(t,t.typeParameters),Dt(t,t.heritageClauses,0),It(),kt("{"),Dt(t,t.members,129),kt("}"),r&&Rt()}function Xe(e){kt("{"),Dt(e,e.elements,525136),kt("}")}function Qe(e){e.propertyName&&(be(e.propertyName),It(),Je(126,e.propertyName.end,At,e),It()),be(e.name)}function Ye(e){78===e.kind?De(e):be(e)}function Ze(t,r,n){var i=163969;1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],a))?(Bt(58,n,kt,t),It(),i&=-130):Je(58,n,kt,t),Dt(t,r,i)}function $e(t){Dt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function et(t){t.typeParameters&&Dt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&Dt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(Mt(),It(),kt("*"),It(),be(t.type))}function tt(e){kt("@"),be(e)}function rt(e){e&&(It(),j(e))}function nt(e){e&&(It(),kt("{"),be(e.type),kt("}"))}function it(e,t,r,n){if(e){var i=f.getTextPos();wt('/// <reference no-default-lib="true"/>'),J&&J.sections.push({pos:i,end:f.getTextPos(),kind:"no-default-lib"}),Mt()}if(a&&a.moduleName&&(wt('/// <amd-module name="'+a.moduleName+'" />'),Mt()),a&&a.amdDependencies)for(var o=0,s=a.amdDependencies;o<s.length;o++){var c=s[o];c.name?wt('/// <amd-dependency name="'+c.name+'" path="'+c.path+'" />'):wt('/// <amd-dependency path="'+c.path+'" />'),Mt()}for(var u=0,l=t;u<l.length;u++){var _=l[u];i=f.getTextPos();wt('/// <reference path="'+_.fileName+'" />'),J&&J.sections.push({pos:i,end:f.getTextPos(),kind:"reference",data:_.fileName}),Mt()}for(var d=0,p=r;d<p.length;d++){_=p[d],i=f.getTextPos();wt('/// <reference types="'+_.fileName+'" />'),J&&J.sections.push({pos:i,end:f.getTextPos(),kind:"type",data:_.fileName}),Mt()}for(var g=0,m=n;g<m.length;g++){_=m[g],i=f.getTextPos();wt('/// <reference lib="'+_.fileName+'" />'),J&&J.sections.push({pos:i,end:f.getTextPos(),kind:"lib",data:_.fileName}),Mt()}}function at(t){var r=t.statements;nr(t),e.forEach(t.statements,or),Fe(t);var n=e.findIndex(r,(function(t){return!e.isPrologueDirective(t)}));!function(e){e.isDeclarationFile&&it(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),Dt(t,r,1,-1===n?r.length:n),ir(t)}function ot(t,r,n,i){for(var a=!!r,o=0;o<t.length;o++){var s=t[o];if(!e.isPrologueDirective(s))return o;if(!n||!n.has(s.expression.text)){a&&(a=!1,me(r)),Mt();var c=f.getTextPos();be(s),i&&J&&J.sections.push({pos:c,end:f.getTextPos(),kind:"prologue",data:s.expression.text}),n&&n.add(s.expression.text)}}return t.length}function st(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!t.has(i.data)){Mt();var a=f.getTextPos();be(i),J&&J.sections.push({pos:a,end:f.getTextPos(),kind:"prologue",data:i.data}),t&&t.add(i.data)}}}function ct(t){if(e.isSourceFile(t))ot(t.statements,t);else{for(var r=new e.Set,n=0,i=t.prepends;n<i.length;n++){st(i[n].prologues,r)}for(var a=0,o=t.sourceFiles;a<o.length;a++){var s=o[a];ot(s.statements,s,r,!0)}me(void 0)}}function ut(t){if(e.isSourceFile(t)||e.isUnparsedSource(t)){var r=e.getShebang(t.text);if(r)return wt(r),Mt(),!0}else{for(var n=0,i=t.prepends;n<i.length;n++){var a=i[n];if(e.Debug.assertNode(a,e.isUnparsedSource),ut(a))return!0}for(var o=0,s=t.sourceFiles;o<s.length;o++){if(ut(s[o]))return!0}}}function lt(e,t){if(e){var r=j;j=t,be(e),j=r}}function _t(e,t){t&&t.length&&(Dt(e,t,262656),It())}function dt(e){e&&(kt(":"),It(),be(e))}function pt(e,t,r){e&&(It(),Je(62,t,Ft,r),It(),De(e))}function ft(e){e&&(It(),be(e))}function gt(e){e&&(It(),De(e))}function mt(t,r){e.isBlock(r)||1&e.getEmitFlags(t)?(It(),be(r)):(Mt(),Lt(),e.isEmptyStatement(r)?Te(5,r):be(r),Rt())}function yt(e,t){Dt(e,t,2146305)}function vt(e,t){Dt(e,t,53776)}function ht(t,r){if(e.isFunctionLike(t)&&t.typeArguments)return vt(t,t.typeArguments);Dt(t,r,53776)}function bt(e,t){Dt(e,t,2576)}function xt(t,r){!function(t,r){var n=e.singleOrUndefined(r);return n&&n.pos===t.pos&&e.isArrowFunction(t)&&!t.type&&!e.some(t.decorators)&&!e.some(t.modifiers)&&!e.some(t.typeParameters)&&!e.some(n.decorators)&&!e.some(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&e.isIdentifier(n.name)}(t,r)?bt(t,r):Dt(t,r,528)}function Dt(e,t,r,n,i){Ct(be,e,t,r,n,i)}function St(e,t,r,n,i){Ct(De,e,t,r,n,i)}function Tt(e){switch(60&e){case 0:break;case 16:kt(",");break;case 4:It(),kt("|");break;case 32:It(),kt("*"),It();break;case 8:It(),kt("&")}}function Ct(t,r,i,o,s,c){void 0===s&&(s=0),void 0===c&&(c=i?i.length-s:0);var u=void 0===i;if(!(u&&16384&o)){var l=void 0===i||s>=i.length||0===c;if(l&&32768&o)return F&&F(i),void(P&&P(i));if(15360&o&&(kt(function(e){return n[15360&e][0]}(o)),l&&!u&&Nr(i.pos,!0)),F&&F(i),l)!(1&o)||B&&e.rangeIsOnSingleLine(r,a)?256&o&&!(524288&o)&&It():Mt();else{var _=0==(262144&o),d=_,f=qt(r,i,o);f?(Mt(f),d=!1):256&o&&It(),128&o&&Lt();for(var g=void 0,m=void 0,y=!1,v=0;v<c;v++){var h=i[s+v];if(32&o)Mt(),Tt(o);else if(g){60&o&&g.end!==r.end&&Er(g.end),Tt(o),ue(m);var b=Wt(g,h,o);b>0?(0==(131&o)&&(Lt(),y=!0),Mt(b),d=!1):g&&512&o&&It()}if(m=ce(h),d){if(Nr)Nr(e.getCommentRange(h).pos)}else d=_;p=h.pos,t(h),y&&(Rt(),y=!1),g=h}var x=g?e.getEmitFlags(g):0,D=Z||!!(1024&x),S=(null==i?void 0:i.hasTrailingComma)&&64&o&&16&o;S&&(g&&!D?Je(27,g.end,kt,g):kt(",")),g&&r.end!==g.end&&60&o&&!D&&Er(S&&(null==i?void 0:i.end)?i.end:g.end),128&o&&Rt(),ue(m);var T=Ht(r,i,o);T?Mt(T):2097408&o&&It()}P&&P(i),15360&o&&(l&&!u&&Er(i.end),kt(function(e){return n[15360&e][1]}(o)))}}function Et(e,t){f.writeSymbol(e,t)}function kt(e){f.writePunctuation(e)}function Nt(){f.writeTrailingSemicolon(";")}function At(e){f.writeKeyword(e)}function Ft(e){f.writeOperator(e)}function Pt(e){f.writeParameter(e)}function wt(e){f.writeComment(e)}function It(){f.writeSpace(" ")}function Ot(e){f.writeProperty(e)}function Mt(e){void 0===e&&(e=1);for(var t=0;t<e;t++)f.writeLine(t>0)}function Lt(){f.increaseIndent()}function Rt(){f.decreaseIndent()}function Bt(t,r,n,i){return q?Jt(t,n,r):function(t,r,n,i,a){if(q||t&&e.isInJsonFile(t))return a(r,n,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[r],u=c&&c.source||v;i=Lr(u,c?c.pos:i),0==(128&s)&&i>=0&&Br(u,i);i=a(r,n,i),c&&(i=c.end);0==(256&s)&&i>=0&&Br(u,i);return i}(i,t,n,r,Jt)}function jt(t,r){w&&w(t),r(e.tokenToString(t.kind)),I&&I(t)}function Jt(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function zt(t,r,n){if(1&e.getEmitFlags(t))It();else if(B){var i=Zt(t,r,n);i?Mt(i):It()}else Mt()}function Ut(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i<a.length;i++){var o=a[i],s=n?o.slice(n):o;s.length&&(Mt(),j(s))}}function Vt(e,t){e?(Lt(),Mt(e)):t&&It()}function Kt(e,t){e&&Rt(),t&&Rt()}function qt(t,r,n){if(2&n||B){if(65536&n)return 1;var i=r[0];if(void 0===i)return e.rangeIsOnSingleLine(t,a)?0:1;if(i.pos===p)return 0;if(11===i.kind)return 0;if(!(e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(i)||i.parent&&e.getOriginalNode(i.parent)!==e.getOriginalNode(t)))return B?Gt((function(r){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(i.pos,t.pos,a,r)})):e.rangeStartPositionsAreOnSameLine(t,i,a)?0:1;if(Yt(i,n))return 1}return 1&n?1:0}function Wt(t,r,n){if(2&n||B){if(void 0===t||void 0===r)return 0;if(11===r.kind)return 0;if(!e.nodeIsSynthesized(t)&&!e.nodeIsSynthesized(r)&&t.parent===r.parent)return B?Gt((function(n){return e.getLinesBetweenRangeEndAndRangeStart(t,r,a,n)})):e.rangeEndIsOnSameLineAsRangeStart(t,r,a)?0:1;if(Yt(t,n)||Yt(r,n))return 1}else if(e.getStartsOnNewLine(r))return 1;return 1&n?1:0}function Ht(t,r,n){if(2&n||B){if(65536&n)return 1;var i=e.lastOrUndefined(r);if(void 0===i)return e.rangeIsOnSingleLine(t,a)?0:1;if(!(e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(i)||i.parent&&i.parent!==t)){if(B){var o=e.isNodeArray(r)&&!e.positionIsSynthesized(r.end)?r.end:i.end;return Gt((function(r){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,a,r)}))}return e.rangeEndPositionsAreOnSameLine(t,i,a)?0:1}if(Yt(i,n))return 1}return 1&n&&!(131072&n)?1:0}function Gt(t){e.Debug.assert(!!B);var r=t(!0);return 0===r?t(!1):r}function Xt(e,t){var r=B&&qt(t,[e],0);return r&&Vt(r,!1),!!r}function Qt(e,t){var r=B&&Ht(t,[e],0);r&&Mt(r)}function Yt(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(65536&r):n}return 0!=(65536&r)}function Zt(t,r,n){return 131072&e.getEmitFlags(t)?0:(t=er(t),r=er(r),n=er(n),e.getStartsOnNewLine(n)?1:e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)?0:B?Gt((function(t){return e.getLinesBetweenRangeEndAndRangeStart(r,n,a,t)})):e.rangeEndIsOnSameLineAsRangeStart(r,n,a)?0:1)}function $t(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,a)}function er(t){for(;207===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function tr(t,r){return e.isGeneratedIdentifier(t)?ur(t):(e.isIdentifier(t)||e.isPrivateIdentifier(t))&&(e.nodeIsSynthesized(t)||!t.parent||!a||t.parent&&a&&e.getSourceFileOfNode(t)!==e.getOriginalNode(a))?e.idText(t):10===t.kind&&t.textSourceNode?tr(t.textSourceNode,r):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(a,t,r):t.text}function rr(r,n,i){if(10===r.kind&&r.textSourceNode){var o=r.textSourceNode;if(e.isIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:tr(o);return i?'"'+e.escapeJsxAttributeString(s)+'"':n||16777216&e.getEmitFlags(r)?'"'+e.escapeString(s)+'"':'"'+e.escapeNonAsciiString(s)+'"'}return rr(o,n,i)}var c=(n?1:0)|(i?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&99===t.target?8:0);return e.getLiteralText(r,a,c)}function nr(t){t&&524288&e.getEmitFlags(t)||(u.push(l),l=0,_.push(d))}function ir(t){t&&524288&e.getEmitFlags(t)||(l=u.pop(),d=_.pop())}function ar(t){d&&d!==e.lastOrUndefined(_)||(d=new e.Set),d.add(t)}function or(t){if(t)switch(t.kind){case 230:e.forEach(t.statements,or);break;case 245:case 243:case 235:case 236:or(t.statement);break;case 234:or(t.thenStatement),or(t.elseStatement);break;case 237:case 239:case 238:or(t.initializer),or(t.statement);break;case 244:or(t.caseBlock);break;case 258:e.forEach(t.clauses,or);break;case 284:case 285:e.forEach(t.statements,or);break;case 247:or(t.tryBlock),or(t.catchClause),or(t.finallyBlock);break;case 287:or(t.variableDeclaration),or(t.block);break;case 232:or(t.declarationList);break;case 250:e.forEach(t.declarations,or);break;case 249:case 160:case 198:case 252:cr(t.name);break;case 251:cr(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,or),or(t.body));break;case 196:case 197:e.forEach(t.elements,or);break;case 261:or(t.importClause);break;case 262:cr(t.name),or(t.namedBindings);break;case 263:case 269:cr(t.name);break;case 264:e.forEach(t.elements,or);break;case 265:cr(t.propertyName||t.name)}}function sr(e){if(e)switch(e.kind){case 288:case 289:case 163:case 165:case 167:case 168:cr(e.name)}}function cr(t){t&&(e.isGeneratedIdentifier(t)?ur(t):e.isBindingPattern(t)&&or(t))}function ur(t){if(4==(7&t.autoGenerateFlags))return lr(function(t){var r=t.autoGenerateId,n=t,i=n.original;for(;i&&(n=i,!(e.isIdentifier(n)&&4&n.autoGenerateFlags&&n.autoGenerateId!==r));)i=n.original;return n}(t),t.autoGenerateFlags);var r=t.autoGenerateId;return s[r]||(s[r]=function(t){switch(7&t.autoGenerateFlags){case 1:return pr(0,!!(8&t.autoGenerateFlags));case 2:return pr(268435456,!!(8&t.autoGenerateFlags));case 3:return fr(e.idText(t),32&t.autoGenerateFlags?dr:_r,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(t))}function lr(t,r){var n=e.getNodeId(t);return o[n]||(o[n]=function(t,r){switch(t.kind){case 78:return fr(tr(t),_r,!!(16&r),!!(8&r));case 256:case 255:return function(t){var r=tr(t.name);return function(t,r){for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&3257279&i.flags)return!1}return!0}(r,t)?r:fr(r)}(t);case 261:case 267:return function(t){var r=e.getExternalModuleName(t);return fr(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")}(t);case 251:case 252:case 266:return fr("default");case 221:return fr("class");case 165:case 167:case 168:return function(t){if(e.isIdentifier(t.name))return lr(t.name);return pr(0)}(t);case 158:return pr(0,!0);default:return pr(0)}}(t,r))}function _r(e){return dr(e)&&!c.has(e)&&!(d&&d.has(e))}function dr(t){return!a||e.isFileLevelUniqueName(a,t,T)}function pr(e,t){if(e&&!(l&e)&&_r(r=268435456===e?"_i":"_n"))return l|=e,t&&ar(r),r;for(;;){var r,n=268435455&l;if(l++,8!==n&&13!==n)if(_r(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&ar(r),r}}function fr(e,t,r,n){if(void 0===t&&(t=_r),r&&t(e))return n?ar(e):c.add(e),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return n?ar(a):c.add(a),a;i++}}function gr(e){return fr(e,dr,!0)}function mr(t,r){e.Debug.assert(D===r||S===r),ee(),Y=!1;var n=e.getEmitFlags(r),i=e.getCommentRange(r),a=i.pos,o=i.end,s=335!==r.kind,c=a<0||0!=(512&n)||11===r.kind,u=o<0||0!=(1024&n)||11===r.kind,l=G,_=X,d=Q;(a>0||o>0)&&a!==o&&(c||xr(a,s),(!c||a>=0&&0!=(512&n))&&(G=a),(!u||o>=0&&0!=(1024&n))&&(X=o,250===r.kind&&(Q=o))),e.forEach(e.getSyntheticLeadingComments(r),yr),te();var p=Ee(2,t,r);2048&n?(Z=!0,p(t,r),Z=!1):p(t,r),ee(),e.forEach(e.getSyntheticTrailingComments(r),vr),(a>0||o>0)&&a!==o&&(G=l,X=_,Q=d,!u&&s&&function(e){wr(e,kr)}(o)),te(),e.Debug.assert(D===r||S===r)}function yr(e){(e.hasLeadingNewline||2===e.kind)&&f.writeLine(),hr(e),e.hasTrailingNewLine||2===e.kind?f.writeLine():f.writeSpace(" ")}function vr(e){f.isAtStartOfLine()||f.writeSpace(" "),hr(e),e.hasTrailingNewLine&&f.writeLine()}function hr(t){var r=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,f,0,r.length,M)}function br(t,r,n){ee();var i,o,s=r.pos,c=r.end,u=e.getEmitFlags(t),l=Z||c<0||0!=(1024&u);s<0||0!=(512&u)||(i=r,(o=e.emitDetachedComments(a.text,he(),f,Ir,i,M,Z))&&(x?x.push(o):x=[o])),te(),2048&u&&!Z?(Z=!0,n(t),Z=!1):n(t),ee(),l||(xr(r.end,!0),Y&&!f.isAtStartOfLine()&&f.writeLine()),te()}function xr(e,t){Y=!1,t?0===e&&(null==a?void 0:a.isDeclarationFile)?Pr(e,Sr):Pr(e,Cr):0===e&&Pr(e,Dr)}function Dr(e,t,r,n,i){Or(e,t)&&Cr(e,t,r,n,i)}function Sr(e,t,r,n,i){Or(e,t)||Cr(e,t,r,n,i)}function Tr(r,n){return!t.onlyPrintJsDocStyle||(e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n))}function Cr(t,r,n,i,o){Tr(a.text,t)&&(Y||(e.emitNewLineBeforeLeadingCommentOfPosition(he(),f,o,t),Y=!0),Rr(t),e.writeCommentRange(a.text,he(),f,t,r,M),Rr(r),i?f.writeLine():3===n&&f.writeSpace(" "))}function Er(e){Z||-1===e||xr(e,!0)}function kr(t,r,n,i){Tr(a.text,t)&&(f.isAtStartOfLine()||f.writeSpace(" "),Rr(t),e.writeCommentRange(a.text,he(),f,t,r,M),Rr(r),i&&f.writeLine())}function Nr(e,t,r){Z||(ee(),wr(e,t?kr:r?Ar:Fr),te())}function Ar(t,r,n){Rr(t),e.writeCommentRange(a.text,he(),f,t,r,M),Rr(r),2===n&&f.writeLine()}function Fr(t,r,n,i){Rr(t),e.writeCommentRange(a.text,he(),f,t,r,M),Rr(r),i?f.writeLine():f.writeSpace(" ")}function Pr(t,r){!a||-1!==G&&t===G||(function(t){return void 0!==x&&e.last(x).nodePos===t}(t)?function(t){var r=e.last(x).detachedCommentEndPos;x.length-1?x.pop():x=void 0;e.forEachLeadingCommentRange(a.text,r,t,r)}(r):e.forEachLeadingCommentRange(a.text,t,r,t))}function wr(t,r){a&&(-1===X||t!==X&&t!==Q)&&e.forEachTrailingCommentRange(a.text,t,r)}function Ir(t,r,n,i,o,s){Tr(a.text,i)&&(Rr(i),e.writeCommentRange(t,r,n,i,o,s),Rr(o))}function Or(t,r){return e.isRecognizedTripleSlashComment(a.text,t,r)}function Mr(t,r){e.Debug.assert(D===r||S===r);var n=Ee(3,t,r);if(e.isUnparsedSource(r)||e.isUnparsedPrepend(r))n(t,r);else if(e.isUnparsedNode(r)){var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(r.parent);i&&y&&y.appendSourceMap(f.getLine(),f.getColumn(),i,r.parent.sourceMapPath,r.parent.getLineAndCharacterOfPosition(r.pos),r.parent.getLineAndCharacterOfPosition(r.end)),n(t,r)}else{var a=e.getSourceMapRange(r),o=a.pos,s=a.end,c=a.source,u=void 0===c?v:c,l=e.getEmitFlags(r);335!==r.kind&&0==(16&l)&&o>=0&&Br(u,Lr(u,o)),64&l?(q=!0,n(t,r),q=!1):n(t,r),335!==r.kind&&0==(32&l)&&s>=0&&Br(u,s)}e.Debug.assert(D===r||S===r)}function Lr(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function Rr(t){if(!(q||e.positionIsSynthesized(t)||Jr(v))){var r=e.getLineAndCharacterOfPosition(v,t),n=r.line,i=r.character;y.addMapping(f.getLine(),f.getColumn(),W,n,i,void 0)}}function Br(e,t){if(e!==v){var r=v,n=W;jr(e),Rr(t),function(e,t){v=e,W=t}(r,n)}else Rr(t)}function jr(e){q||(v=e,e!==h?Jr(e)||(W=y.addSource(e.fileName),t.inlineSources&&y.setSourceContent(W,e.text),h=e,H=W):W=H)}function Jr(t){return e.fileExtensionIs(t.fileName,".json")}}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=a,e.getTsBuildInfoEmitOutputFilePath=o,e.getOutputPathsForBundle=s,e.getOutputPathsFor=c,e.getOutputExtension=l,e.getOutputDeclarationFileName=d,e.getCommonSourceDirectory=y,e.getCommonSourceDirectoryOfConfig=v,e.getAllProjectOutputs=function(t,r){var n=f(),i=n.addOutput,a=n.getOutputs;if(e.outFile(t.options))g(t,i);else{for(var s=e.memoize((function(){return v(t,r)})),c=0,u=t.fileNames;c<u.length;c++){var l=u[c];m(t,l,r,i,s)}i(o(t.options))}return a()},e.getOutputFileNames=function(t,r,n){r=e.normalizePath(r),e.Debug.assert(e.contains(t.fileNames,r),"Expected fileName to be present in command line");var i=f(),a=i.addOutput,o=i.getOutputs;return e.outFile(t.options)?g(t,a):m(t,r,n,a),o()},e.getFirstProjectOutput=function(t,r){if(e.outFile(t.options)){var n=s(t.options,!1).jsFilePath;return e.Debug.checkDefined(n,"project "+t.options.configFilePath+" expected to have at least one output")}for(var i=e.memoize((function(){return v(t,r)})),a=0,c=t.fileNames;a<c.length;a++){var u=c[a];if(!e.fileExtensionIs(u,".d.ts")){if(n=p(u,t,r,i))return n;if(!e.fileExtensionIs(u,".json")&&e.getEmitDeclarations(t.options))return d(u,t,r,i)}}var l=o(t.options);return l||e.Debug.fail("project "+t.options.configFilePath+" expected to have at least one output")},e.emitFiles=h,e.getBuildInfoText=b,e.getBuildInfo=x,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(t,r,n,i){var a=s(t.options,!1),o=a.buildInfoPath,c=a.jsFilePath,u=a.sourceMapFilePath,l=a.declarationFilePath,_=a.declarationMapPath,d=r.readFile(e.Debug.checkDefined(o));if(!d)return o;var p=r.readFile(e.Debug.checkDefined(c));if(!p)return c;var f=u&&r.readFile(u);if(u&&!f||t.options.inlineSourceMap)return u||"inline sourcemap decoding";var g=l&&r.readFile(l);if(l&&!g)return l;var m=_&&r.readFile(_);if(_&&!m||t.options.inlineSourceMap)return _||"inline sourcemap decoding";var y=x(d);if(!y.bundle||!y.bundle.js||g&&!y.bundle.dts)return o;var v=e.getDirectoryPath(e.getNormalizedAbsolutePath(o,r.getCurrentDirectory())),D=e.createInputFiles(p,g,u,f,_,m,c,l,o,y,!0),S=[],T=e.createPrependNodes(t.projectReferences,n,(function(e){return r.readFile(e)})),C=function(t,r,n){var i,a=e.Debug.checkDefined(t.js),o=(null===(i=a.sources)||void 0===i?void 0:i.prologues)&&e.arrayToMap(a.sources.prologues,(function(e){return e.file}));return t.sourceFiles.map((function(t,i){var a,s,c=null==o?void 0:o.get(i),u=null==c?void 0:c.directives.map((function(t){var r=e.setTextRange(e.factory.createStringLiteral(t.expression.text),t.expression),n=e.setTextRange(e.factory.createExpressionStatement(r),t);return e.setParent(r,n),n})),l=e.factory.createToken(1),_=e.factory.createSourceFile(null!=u?u:[],l,0);return _.fileName=e.getRelativePathFromDirectory(n.getCurrentDirectory(),e.getNormalizedAbsolutePath(t,r),!n.useCaseSensitiveFileNames()),_.text=null!==(a=null==c?void 0:c.text)&&void 0!==a?a:"",e.setTextRangePosWidth(_,0,null!==(s=null==c?void 0:c.text.length)&&void 0!==s?s:0),e.setEachParent(_.statements,_),e.setTextRangePosWidth(l,_.end,0),e.setParent(l,_),_}))}(y.bundle,v,r),E={getPrependNodes:e.memoize((function(){return __spreadArray(__spreadArray([],T),[D])})),getCanonicalFileName:r.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(y.bundle.commonSourceDirectory,v)},getCompilerOptions:function(){return t.options},getCurrentDirectory:function(){return r.getCurrentDirectory()},getNewLine:function(){return r.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return C},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(t,r,n){switch(t){case c:if(p===r)return;break;case u:if(f===r)return;break;case o:var i=x(r);i.program=y.program;var a=y.bundle,s=a.js,d=a.dts,v=a.sourceFiles;return i.bundle.js.sources=s.sources,d&&(i.bundle.dts.sources=d.sources),i.bundle.sourceFiles=v,void S.push({name:t,text:b(i),writeByteOrderMark:n});case l:if(g===r)return;break;case _:if(m===r)return;break;default:e.Debug.fail("Unexpected path: "+t)}S.push({name:t,text:r,writeByteOrderMark:n})},isEmitBlocked:e.returnFalse,readFile:function(e){return r.readFile(e)},fileExists:function(e){return r.fileExists(e)},useCaseSensitiveFileNames:function(){return r.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return h(e.notImplementedResolver,E,void 0,e.getTransformers(t.options,i)),S},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"}(t||(t={})),e.createPrinter=D,function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(r||(r={}))}(ts||(ts={})),function(e){var t;function r(e){e.watcher.close()}e.createCachedDirectoryStructureHost=function(t,r,n){if(t.getDirectories&&t.readDirectory){var i=new e.Map,a=e.createGetCanonicalFileName(n);return{useCaseSensitiveFileNames:n,fileExists:function(e){var r=c(o(e));return r&&d(r.files,u(e))||t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:t.directoryExists&&function(r){var n=o(r);return i.has(e.ensureTrailingDirectorySeparator(n))||t.directoryExists(r)},getDirectories:function(e){var r=o(e),n=l(e,r);if(n)return n.directories.slice();return t.getDirectories(e)},readDirectory:function(i,a,s,c,u){var _=o(i),d=l(i,_);if(d)return e.matchFiles(i,a,s,c,n,r,u,(function(t){var r=o(t);if(r===_)return d;return l(t,r)||e.emptyFileSystemEntries}),f);return t.readDirectory(i,a,s,c,u)},createDirectory:t.createDirectory&&function(e){var r=c(o(e)),n=u(e);r&&p(r.directories,n,!0);t.createDirectory(e)},writeFile:t.writeFile&&function(e,r,n){var i=c(o(e));i&&g(i,u(e),!0);return t.writeFile(e,r,n)},addOrDeleteFileOrDirectory:function(e,r){if(s(r))return void m();var n=c(r);if(!n)return;if(!t.directoryExists)return void m();var i=u(e),a={fileExists:t.fileExists(r),directoryExists:t.directoryExists(r)};a.directoryExists||d(n.directories,i)?m():g(n,i,a.fileExists);return a},addOrDeleteFile:function(t,r,n){if(n===e.FileWatcherEventKind.Changed)return;var i=c(r);i&&g(i,u(t),n===e.FileWatcherEventKind.Created)},clearCache:m,realpath:t.realpath&&f}}function o(t){return e.toPath(t,r,a)}function s(t){return i.get(e.ensureTrailingDirectorySeparator(t))}function c(t){return s(e.getDirectoryPath(t))}function u(t){return e.getBaseFileName(e.normalizePath(t))}function l(r,n){var a=s(n=e.ensureTrailingDirectorySeparator(n));if(a)return a;try{return function(r,n){var a={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),u)||[],directories:t.getDirectories(r)||[]};return i.set(e.ensureTrailingDirectorySeparator(n),a),a}(r,n)}catch(t){return void e.Debug.assert(!i.has(e.ensureTrailingDirectorySeparator(n)))}}function _(e,t){return a(e)===a(t)}function d(t,r){return e.some(t,(function(e){return _(e,r)}))}function p(t,r,n){if(d(t,r)){if(!n)return e.filterMutate(t,(function(e){return!_(e,r)}))}else if(n)return t.push(r)}function f(e){return t.realpath?t.realpath(e):e}function g(e,t,r){p(e.files,t,r)}function m(){i.clear()}},function(e){e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full"}(e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={})),e.updateSharedExtendedConfigFileWatcher=function(t,r,n,i,a){var o,s=e.arrayToMap((null===(o=null==r?void 0:r.options.configFile)||void 0===o?void 0:o.extendedSourceFiles)||e.emptyArray,a);n.forEach((function(e,r){s.has(r)||(e.projects.delete(t),e.close())})),s.forEach((function(r,a){var o=n.get(a);o?o.projects.add(t):n.set(a,{projects:new e.Set([t]),fileWatcher:i(r,a),close:function(){var e=n.get(a);e&&0===e.projects.size&&(e.fileWatcher.close(),n.delete(a))}})}))},e.updateMissingFilePathsWatch=function(t,r,n){var i=t.getMissingFilePaths(),a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(t,n,i){function a(e,t){return{watcher:i(e,t),flags:t}}e.mutateMap(t,n,{createNewValue:a,onDeleteValue:r,onExistingValue:function(e,r,n){if(e.flags===r)return;e.watcher.close(),t.set(n,a(n,r))}})},e.isIgnoredFileFromWildCardWatching=function(t){var r=t.watchedDirPath,n=t.fileOrDirectory,i=t.fileOrDirectoryPath,a=t.configFileName,o=t.options,s=t.program,c=t.extraFileExtensions,u=t.currentDirectory,l=t.useCaseSensitiveFileNames,_=t.writeLog,d=e.removeIgnoredPath(i);if(!d)return _("Project: "+a+" Detected ignored path: "+n),!0;if((i=d)===r)return!1;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(n,o,c))return _("Project: "+a+" Detected file add/remove of non supported extension: "+n),!0;if(e.isExcludedFile(n,o.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),u),l,u))return _("Project: "+a+" Detected excluded file: "+n),!0;if(!s)return!1;if(o.outFile||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 p=e.removeFileExtension(i),f=function(e){return!!e.getState}(s)?s.getProgramOrUndefined():s;return!(!g(p+".ts")&&!g(p+".tsx"))&&(_("Project: "+a+" Detected output file: "+n),!0);function g(e){return f?!!f.getSourceFileByPath(e):s.getState().fileInfos.has(e)}},e.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(t=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(r,n,i,a){e.setSysLog(n===t.Verbose?i:e.noop);var o={watchFile:function(e,t,n,i){return r.watchFile(e,t,n,i)},watchDirectory:function(e,t,n,i){return r.watchDirectory(e,t,0!=(1&n),i)}},s=n!==t.None?{watchFile:_("watchFile"),watchDirectory:_("watchDirectory")}:void 0,c=n===t.Verbose?{watchFile:function(e,t,r,n,o,c){i("FileWatcher:: Added:: "+d(e,r,n,o,c,a));var u=s.watchFile(e,t,r,n,o,c);return{close:function(){i("FileWatcher:: Close:: "+d(e,r,n,o,c,a)),u.close()}}},watchDirectory:function(t,r,n,o,c,u){var l="DirectoryWatcher:: Added:: "+d(t,n,o,c,u,a);i(l);var _=e.timestamp(),p=s.watchDirectory(t,r,n,o,c,u),f=e.timestamp()-_;return i("Elapsed:: "+f+"ms "+l),{close:function(){var r="DirectoryWatcher:: Close:: "+d(t,n,o,c,u,a);i(r);var s=e.timestamp();p.close();var l=e.timestamp()-s;i("Elapsed:: "+l+"ms "+r)}}}}:s||o,u=n===t.Verbose?function(e,t,r,n,o){return i("ExcludeWatcher:: Added:: "+d(e,t,r,n,o,a)),{close:function(){return i("ExcludeWatcher:: Close:: "+d(e,t,r,n,o,a))}}}:e.returnNoopFileWatcher;return{watchFile:l("watchFile"),watchDirectory:l("watchDirectory")};function l(t){return function(n,i,a,o,s,l){var _;return e.matchesExclude(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames:r.useCaseSensitiveFileNames(),(null===(_=r.getCurrentDirectory)||void 0===_?void 0:_.call(r))||"")?u(n,a,o,s,l):c[t].call(void 0,n,i,a,o,s,l)}}function _(t){return function(r,n,s,c,u,l){return o[t].call(void 0,r,(function(){for(var o=[],_=0;_<arguments.length;_++)o[_]=arguments[_];var p=("watchFile"===t?"FileWatcher":"DirectoryWatcher")+":: Triggered with "+o[0]+" "+(void 0!==o[1]?o[1]:"")+":: "+d(r,s,c,u,l,a);i(p);var f=e.timestamp();n.call.apply(n,__spreadArray([void 0],o));var g=e.timestamp()-f;i("Elapsed:: "+g+"ms "+p)}),s,c,u,l)}}function d(e,t,r,n,i,a){return"WatchInfo: "+e+" "+t+" "+JSON.stringify(r)+" "+(a?a(n,i):void 0===i?n:n+" "+i)}},e.getFallbackOptions=function(t){var r=null==t?void 0:t.fallbackPolling;return{watchFile:void 0!==r?r:e.WatchFileKind.PriorityPollingInterval}},e.closeFileWatcherOf=r}(ts||(ts={})),function(e){function t(t,r){var n=e.getDirectoryPath(r),i=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(i)}function r(e,t){return n(e,t)}function n(t,r,n){void 0===n&&(n=e.sys);var i,a=new e.Map,o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),s=e.maybeBind(n,n.createHash)||e.generateDjb2Hash;function c(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}var u=e.getNewLineCharacter(t,(function(){return n.newLine})),l=n.realpath&&function(e){return n.realpath(e)},_={getSourceFile:function(t,n,i){var a;try{e.performance.mark("beforeIORead"),a=_.readFile(t),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(t,a,n,r):void 0},getDefaultLibLocation:c,getDefaultLibFileName:function(t){return e.combinePaths(c(),e.getDefaultLibFileName(t))},writeFile:function(r,o,c,u){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,o,c,(function(r,a,o){return function(r,a,o){if(!e.isWatchSet(t)||!n.getModifiedTime)return void n.writeFile(r,a,o);i||(i=new e.Map);var c=s(a),u=n.getModifiedTime(r);if(u){var l=i.get(r);if(l&&l.byteOrderMark===o&&l.hash===c&&l.mtime.getTime()===u.getTime())return}n.writeFile(r,a,o);var _=n.getModifiedTime(r)||e.missingFileModifiedTime;i.set(r,{hash:c,byteOrderMark:o,mtime:_})}(r,a,o)}),(function(e){return(_.createDirectory||n.createDirectory)(e)}),(function(e){return t=e,!!a.has(t)||!!(_.directoryExists||n.directoryExists)(t)&&(a.set(t,!0),!0);var t})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){u&&u(e.message)}},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getCanonicalFileName:o,getNewLine:function(){return u},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:function(e){return n.write(e+u)},directoryExists:function(e){return n.directoryExists(e)},getEnvironmentVariable:function(e){return n.getEnvironmentVariable?n.getEnvironmentVariable(e):""},getDirectories:function(e){return n.getDirectories(e)},realpath:l,readDirectory:function(e,t,r,i,a){return n.readDirectory(e,t,r,i,a)},createDirectory:function(e){return n.createDirectory(e)},createHash:e.maybeBind(n,n.createHash)};return _}function i(t,r){var n=e.diagnosticCategoryName(t)+" TS"+t.code+": "+p(t.messageText,r.getNewLine())+r.getNewLine();if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character,s=t.file.fileName;return e.convertToRelativePath(s,r.getCurrentDirectory(),(function(e){return r.getCanonicalFileName(e)}))+"("+(a+1)+","+(o+1)+"): "+n}return n}var a;e.findConfigFile=function(t,r,n){return void 0===n&&(n="tsconfig.json"),e.forEachAncestorDirectory(t,(function(t){var i=e.combinePaths(t,n);return r(i)?i:void 0}))},e.resolveTripleslashReference=t,e.computeCommonSourceDirectoryOfFilenames=function(t,r,n){var i;return e.forEach(t,(function(t){var a=e.getNormalizedPathComponents(t,r);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;s<o;s++)if(n(i[s])!==n(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):r},e.createCompilerHost=r,e.createCompilerHostWorker=n,e.changeCompilerHostLikeToUseCache=function(t,r,n){var i=t.readFile,a=t.fileExists,o=t.directoryExists,s=t.createDirectory,c=t.writeFile,u=new e.Map,l=new e.Map,_=new e.Map,d=new e.Map,p=function(e,r){var n=i.call(t,r);return u.set(e,void 0!==n&&n),n};t.readFile=function(n){var a=r(n),o=u.get(a);return void 0!==o?!1!==o?o:void 0:e.fileExtensionIs(n,".json")||e.isBuildInfoFile(n)?p(a,n):i.call(t,n)};var f=n?function(t,i,a,o){var s=r(t),c=d.get(s);if(c)return c;var u=n(t,i,a,o);return u&&(e.isDeclarationFileName(t)||e.fileExtensionIs(t,".json"))&&d.set(s,u),u}:void 0;return t.fileExists=function(e){var n=r(e),i=l.get(n);if(void 0!==i)return i;var o=a.call(t,e);return l.set(n,!!o),o},c&&(t.writeFile=function(e,n,i,a,o){var s=r(e);l.delete(s);var _=u.get(s);if(void 0!==_&&_!==n)u.delete(s),d.delete(s);else if(f){var p=d.get(s);p&&p.text!==n&&d.delete(s)}c.call(t,e,n,i,a,o)}),o&&s&&(t.directoryExists=function(e){var n=r(e),i=_.get(n);if(void 0!==i)return i;var a=o.call(t,e);return _.set(n,!!a),a},t.createDirectory=function(e){var n=r(e);_.delete(n),s.call(t,e)}),{originalReadFile:i,originalFileExists:a,originalDirectoryExists:o,originalCreateDirectory:s,originalWriteFile:c,getSourceFileWithCache:f,readFileWithCache:function(e){var t=r(e),n=u.get(t);return void 0!==n?!1!==n?n:void 0:p(t,e)}}},e.getPreEmitDiagnostics=function(t,r,n){var i;return i=e.addRange(i,t.getConfigFileParsingDiagnostics()),i=e.addRange(i,t.getOptionsDiagnostics(n)),i=e.addRange(i,t.getSyntacticDiagnostics(r,n)),i=e.addRange(i,t.getGlobalDiagnostics(n)),i=e.addRange(i,t.getSemanticDiagnostics(r,n)),e.getEmitDeclarations(t.getCompilerOptions())&&(i=e.addRange(i,t.getDeclarationDiagnostics(r,n))),e.sortAndDeduplicateDiagnostics(i||e.emptyArray)},e.formatDiagnostics=function(e,t){for(var r="",n=0,a=e;n<a.length;n++){r+=i(a[n],t)}return r},e.formatDiagnostic=i,function(e){e.Grey="[90m",e.Red="[91m",e.Yellow="[93m",e.Blue="[94m",e.Cyan="[96m"}(a=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var o="[7m",s="[0m",c=" ";function u(t){switch(t){case e.DiagnosticCategory.Error:return a.Red;case e.DiagnosticCategory.Warning:return a.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return a.Blue}}function l(e,t){return t+e+s}function _(t,r,n,i,a,c){var u=e.getLineAndCharacterOfPosition(t,r),_=u.line,d=u.character,p=e.getLineAndCharacterOfPosition(t,r+n),f=p.line,g=p.character,m=e.getLineAndCharacterOfPosition(t,t.text.length).line,y=f-_>=4,v=(f+1+"").length;y&&(v=Math.max("...".length,v));for(var h="",b=_;b<=f;b++){h+=c.getNewLine(),y&&_+1<b&&b<f-1&&(h+=i+l(e.padLeft("...",v),o)+" "+c.getNewLine(),b=f-1);var x=e.getPositionOfLineAndCharacter(t,b,0),D=b<m?e.getPositionOfLineAndCharacter(t,b+1,0):t.text.length,S=t.text.slice(x,D);if(S=(S=S.replace(/\s+$/g,"")).replace(/\t/g," "),h+=i+l(e.padLeft(b+1+"",v),o)+" ",h+=S+c.getNewLine(),h+=i+l(e.padLeft("",v),o)+" ",h+=a,b===_){var T=b===f?g:void 0;h+=S.slice(0,d).replace(/\S/g," "),h+=S.slice(d,T).replace(/./g,"~")}else h+=b===f?S.slice(0,g).replace(/./g,"~"):S.replace(/./g,"~");h+=s}return h}function d(t,r,n,i){void 0===i&&(i=l);var o=e.getLineAndCharacterOfPosition(t,r),s=o.line,c=o.character,u="";return u+=i(n?e.convertToRelativePath(t.fileName,n.getCurrentDirectory(),(function(e){return n.getCanonicalFileName(e)})):t.fileName,a.Cyan),u+=":",u+=i(""+(s+1),a.Yellow),u+=":",u+=i(""+(c+1),a.Yellow)}function p(t,r,n){if(void 0===n&&(n=0),e.isString(t))return t;if(void 0===t)return"";var i="";if(n){i+=r;for(var a=0;a<n;a++)i+=" "}if(i+=t.messageText,n++,t.next)for(var o=0,s=t.next;o<s.length;o++){i+=p(s[o],r,n)}return i}function f(t,r,n,i){if(0===t.length)return[];for(var a=[],o=new e.Map,s=0,c=t;s<c.length;s++){var u=c[s],l=void 0;o.has(u)?l=o.get(u):o.set(u,l=i(u,r,n)),a.push(l)}return a}function g(t,r,n,i){var a;return function t(r,o,s){if(i){var c=i(r,s);if(c)return c}return e.forEach(o,(function(r,i){if(!r||!(null==a?void 0:a.has(r.sourceFile.path))){var o=n(r,s,i);return o||!r?o:((a||(a=new e.Set)).add(r.sourceFile.path),t(r.commandLine.projectReferences,r.references,r))}}))}(t,r,void 0)}function m(t){switch(null==t?void 0:t.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}function y(e){return void 0!==e.pos}function v(t,r){var n,i,a,o,s,c,u,l,_,d,p=e.Debug.checkDefined(t(r.file)),f=r.kind,g=r.index;switch(f){case e.FileIncludeKind.Import:var m=E(p,g);if(d=null===(s=null===(o=p.resolvedModules)||void 0===o?void 0:o.get(m.text))||void 0===s?void 0:s.packageId,-1===m.pos)return{file:p,packageId:d,text:m.text};l=e.skipTrivia(p.text,m.pos),_=m.end;break;case e.FileIncludeKind.ReferenceFile:l=(n=p.referencedFiles[g]).pos,_=n.end;break;case e.FileIncludeKind.TypeReferenceDirective:l=(i=p.typeReferenceDirectives[g]).pos,_=i.end,d=null===(u=null===(c=p.resolvedTypeReferenceDirectiveNames)||void 0===c?void 0:c.get(e.toFileNameLowerCase(p.typeReferenceDirectives[g].fileName)))||void 0===u?void 0:u.packageId;break;case e.FileIncludeKind.LibReferenceDirective:l=(a=p.libReferenceDirectives[g]).pos,_=a.end;break;default:return e.Debug.assertNever(f)}return{file:p,pos:l,end:_,packageId:d}}function h(t,r,n,i){var a=t.getCompilerOptions();if(a.noEmit)return t.getSemanticDiagnostics(r,i),r||e.outFile(a)?e.emitSkippedWithNoDiagnostics:t.emitBuildInfo(n,i);if(a.noEmitOnError){var o=__spreadArray(__spreadArray(__spreadArray(__spreadArray([],t.getOptionsDiagnostics(i)),t.getSyntacticDiagnostics(r,i)),t.getGlobalDiagnostics(i)),t.getSemanticDiagnostics(r,i));if(0===o.length&&e.getEmitDeclarations(t.getCompilerOptions())&&(o=t.getDeclarationDiagnostics(void 0,i)),o.length){var s;if(!r&&!e.outFile(a)){var c=t.emitBuildInfo(n,i);c.diagnostics&&(o=__spreadArray(__spreadArray([],o),c.diagnostics)),s=c.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:s,emitSkipped:!0}}}}function b(t,r){return e.filter(t,(function(e){return!e.skippedOn||!r[e.skippedOn]}))}function x(t,r){return void 0===r&&(r=t),{fileExists:function(e){return r.fileExists(e)},readDirectory:function(t,n,i,a,o){return e.Debug.assertIsDefined(r.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),r.readDirectory(t,n,i,a,o)},readFile:function(e){return r.readFile(e)},useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return t.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:t.trace?function(e){return t.trace(e)}:void 0}}function D(t,r,n){if(!t)return e.emptyArray;for(var i,a=0;a<t.length;a++){var o=t[a],s=r(o,a);if(o.prepend&&s&&s.options){if(!e.outFile(s.options))continue;var c=e.getOutputPathsForBundle(s.options,!0),u=c.jsFilePath,l=c.sourceMapFilePath,_=c.declarationFilePath,d=c.declarationMapPath,p=c.buildInfoPath,f=e.createInputFiles(n,u,l,_,d,p);(i||(i=[])).push(f)}}return i||e.emptyArray}function S(t,r){var n=r||t;return e.resolveConfigFileProjectName(n.path)}function T(t,r){switch(r.extension){case".ts":case".d.ts":return;case".tsx":return n();case".jsx":return n()||i();case".js":return i();case".json":return t.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function n(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return e.getAllowJSCompilerOption(t)||!e.getStrictOptionValue(t,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function C(e){for(var t=e.imports,r=e.moduleAugmentations,n=t.map((function(e){return e.text})),i=0,a=r;i<a.length;i++){var o=a[i];10===o.kind&&n.push(o.text)}return n}function E(t,r){var n=t.imports,i=t.moduleAugmentations;if(r<n.length)return n[r];for(var a=n.length,o=0,s=i;o<s.length;o++){var c=s[o];if(10===c.kind){if(r===a)return c;a++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.formatColorAndReset=l,e.formatLocation=d,e.formatDiagnosticsWithColorAndContext=function(t,r){for(var n="",i=0,o=t;i<o.length;i++){var s=o[i];if(s.file)n+=d(y=s.file,v=s.start,r),n+=" - ";if(n+=l(e.diagnosticCategoryName(s),u(s.category)),n+=l(" TS"+s.code+": ",a.Grey),n+=p(s.messageText,r.getNewLine()),s.file&&(n+=r.getNewLine(),n+=_(s.file,s.start,s.length,"",u(s.category),r)),s.relatedInformation){n+=r.getNewLine();for(var f=0,g=s.relatedInformation;f<g.length;f++){var m=g[f],y=m.file,v=m.start,h=m.length,b=m.messageText;y&&(n+=r.getNewLine(),n+=" "+d(y,v,r),n+=_(y,v,h,c,a.Cyan,r)),n+=r.getNewLine(),n+=c+p(b,r.getNewLine())}}n+=r.getNewLine()}return n},e.flattenDiagnosticMessageText=p,e.loadWithLocalCache=f,e.forEachResolvedProjectReference=function(e,t){return g(void 0,e,(function(e,r){return e&&t(e,r)}))},e.inferredTypesContainingFile="__inferred type names__.ts",e.isReferencedFile=m,e.isReferenceFileLocation=y,e.getReferencedFileLocation=v,e.isProgramUptoDate=function(t,r,n,i,a,o,s,c){if(!t||(null==s?void 0:s()))return!1;if(!e.arrayIsEqualTo(t.getRootFileNames(),r))return!1;var u;if(!e.arrayIsEqualTo(t.getProjectReferences(),c,(function(r,n,i){if(!e.projectReferenceIsEqualTo(r,n))return!1;return d(t.getResolvedProjectReferences()[i],r)})))return!1;if(t.getSourceFiles().some((function(e){return!_(e)||o(e.path)})))return!1;if(t.getMissingFilePaths().some(a))return!1;var l=t.getCompilerOptions();return!!e.compareDataObjects(l,n)&&(!l.configFile||!n.configFile||l.configFile.text===n.configFile.text);function _(e){return e.version===i(e.resolvedPath,e.fileName)}function d(t,r){return t?!!e.contains(u,t)||!!_(t.sourceFile)&&((u||(u=[])).push(t),!e.forEach(t.references,(function(e,r){return!d(e,t.commandLine.projectReferences[r])}))):!a(S(r))}},e.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?__spreadArray(__spreadArray([],e.options.configFile.parseDiagnostics),e.errors):e.errors},e.createProgram=function(n,i,a,o,s){var c,u,l,_,d,p,E,k,N,A,F,P,w=e.isArray(n)?function(e,t,r,n,i){return{rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}}(n,i,a,o,s):n,I=w.rootNames,O=w.options,M=w.configFileParsingDiagnostics,L=w.projectReferences,R=w.oldProgram,B=new e.Map,j=e.createMultiMap(),J={},z={},U=new e.Map,V="number"==typeof O.maxNodeModuleJsDepth?O.maxNodeModuleJsDepth:0,K=0,q=new e.Map,W=new e.Map;null===e.tracing||void 0===e.tracing||e.tracing.push("program","createProgram",{configFilePath:O.configFilePath,rootDir:O.rootDir},!0),e.performance.mark("beforeProgram");var H,G,X,Q,Y=w.host||r(O),Z=x(Y),$=O.noLib,ee=e.memoize((function(){return Y.getDefaultLibFileName(O)})),te=Y.getDefaultLibLocation?Y.getDefaultLibLocation():e.getDirectoryPath(ee()),re=e.createDiagnosticCollection(),ne=Y.getCurrentDirectory(),ie=e.getSupportedExtensions(O),ae=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(O,ie),oe=new e.Map,se=Y.hasInvalidatedResolution||e.returnFalse;if(Y.resolveModuleNames)X=function(t,r,n,i){return Y.resolveModuleNames(e.Debug.checkEachDefined(t),r,n,i,O).map((function(t){if(!t||void 0!==t.extension)return t;var r=e.clone(t);return r.extension=e.extensionFromPath(t.resolvedFileName),r}))};else{G=e.createModuleResolutionCache(ne,(function(e){return Y.getCanonicalFileName(e)}),O);var ce=function(t,r,n){return e.resolveModuleName(t,r,O,Y,G,n).resolvedModule};X=function(t,r,n,i){return f(e.Debug.checkEachDefined(t),r,i,ce)}}if(Y.resolveTypeReferenceDirectives)Q=function(t,r,n){return Y.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(t),r,n,O)};else{var ue=function(t,r,n){return e.resolveTypeReferenceDirective(t,r,O,Y,n).resolvedTypeReferenceDirective};Q=function(t,r,n){return f(e.Debug.checkEachDefined(t),r,n,ue)}}var le,_e,de,pe,fe,ge=new e.Map,me=new e.Map,ye=e.createMultiMap(),ve=new e.Map,he=Y.useCaseSensitiveFileNames()?new e.Map:void 0,be=!!(null===(c=Y.useSourceOfProjectReferenceRedirect)||void 0===c?void 0:c.call(Y))&&!O.disableSourceOfProjectReferenceRedirect,xe=function(t){var r,n,i=t.compilerHost.fileExists,a=t.compilerHost.directoryExists,o=t.compilerHost.getDirectories,s=t.compilerHost.realpath;if(!t.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:e.noop,fileExists:u};t.compilerHost.fileExists=u,a&&(n=t.compilerHost.directoryExists=function(n){return a.call(t.compilerHost,n)?(d(n),!0):!!t.getResolvedProjectReferences()&&(r||(r=new e.Set,t.forEachResolvedProjectReference((function(n){var i=e.outFile(n.commandLine.options);if(i)r.add(e.getDirectoryPath(t.toPath(i)));else{var a=n.commandLine.options.declarationDir||n.commandLine.options.outDir;a&&r.add(t.toPath(a))}}))),p(n,!1))});o&&(t.compilerHost.getDirectories=function(e){return!t.getResolvedProjectReferences()||a&&a.call(t.compilerHost,e)?o.call(t.compilerHost,e):[]});s&&(t.compilerHost.realpath=function(e){var r;return(null===(r=t.getSymlinkCache().getSymlinkedFiles())||void 0===r?void 0:r.get(t.toPath(e)))||s.call(t.compilerHost,e)});return{onProgramCreateComplete:c,fileExists:u,directoryExists:n};function c(){t.compilerHost.fileExists=i,t.compilerHost.directoryExists=a,t.compilerHost.getDirectories=o}function u(r){return!!i.call(t.compilerHost,r)||!!t.getResolvedProjectReferences()&&(!!e.isDeclarationFileName(r)&&p(r,!0))}function l(r){var n=t.getSourceOfProjectReferenceRedirect(r);return void 0!==n?!e.isString(n)||i.call(t.compilerHost,n):void 0}function _(n){var i=t.toPath(n),a=""+i+e.directorySeparator;return e.forEachKey(r,(function(t){return i===t||e.startsWith(t,a)||e.startsWith(i,t+"/")}))}function d(r){var n;if(t.getResolvedProjectReferences()&&!e.containsIgnoredPath(r)&&s&&e.stringContains(r,e.nodeModulesPathPart)){var i=t.getSymlinkCache(),a=e.ensureTrailingDirectorySeparator(t.toPath(r));if(!(null===(n=i.getSymlinkedDirectories())||void 0===n?void 0:n.has(a))){var o,c=e.normalizePath(s.call(t.compilerHost,r));c!==r&&(o=e.ensureTrailingDirectorySeparator(t.toPath(c)))!==a?i.setSymlinkedDirectory(r,{real:e.ensureTrailingDirectorySeparator(c),realPath:o}):i.setSymlinkedDirectory(a,!1)}}}function p(r,n){var i,a=n?function(e){return l(e)}:function(e){return _(e)},o=a(r);if(void 0!==o)return o;var s=t.getSymlinkCache(),c=s.getSymlinkedDirectories();if(!c)return!1;var u=t.toPath(r);return!!e.stringContains(u,e.nodeModulesPathPart)&&(!(!n||!(null===(i=s.getSymlinkedFiles())||void 0===i?void 0:i.has(u)))||(e.firstDefinedIterator(c.entries(),(function(i){var o=i[0],c=i[1];if(c&&e.startsWith(u,o)){var l=a(u.replace(o,c.realPath));if(n&&l){var _=e.getNormalizedAbsolutePath(r,t.compilerHost.getCurrentDirectory());s.setSymlinkedFile(u,""+c.real+_.replace(new RegExp(o,"i"),""))}return l}}))||!1))}}({compilerHost:Y,getSymlinkCache:tr,useSourceOfProjectReferenceRedirect:be,toPath:Ue,getResolvedProjectReferences:We,getSourceOfProjectReferenceRedirect:At,forEachResolvedProjectReference:Nt}),De=xe.onProgramCreateComplete,Se=xe.fileExists,Te=xe.directoryExists;null===e.tracing||void 0===e.tracing||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!R});var Ce,Ee=function(t,r){if(!t)return!1;var n=t.getCompilerOptions();return!!e.sourceFileAffectingCompilerOptions.some((function(t){return!e.isJsonEqual(e.getCompilerOptionValue(n,t),e.getCompilerOptionValue(r,t))}))}(R,O);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 t;if(!R)return 0;var r=R.getCompilerOptions();if(e.changesAffectModuleResolution(r,O))return 0;var n=R.getRootFileNames();if(!e.arrayIsEqualTo(n,I))return 0;if(!e.arrayIsEqualTo(O.types,r.types))return 0;if(g(R.getProjectReferences(),R.getResolvedProjectReferences(),(function(e,t,r){var n=Bt((t?t.commandLine.projectReferences:L)[r]);return e?!n||n.sourceFile!==e.sourceFile:void 0!==n}),(function(t,r){var n=r?Pt(r.sourceFile.path).commandLine.projectReferences:L;return!e.arrayIsEqualTo(t,n,e.projectReferenceIsEqualTo)})))return 0;L&&(_e=L.map(Bt));var i=[],a=[];if(Ce=2,R.getMissingFilePaths().some((function(e){return Y.fileExists(e)})))return 0;var o,s=R.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}(o||(o={}));for(var c=new e.Map,u=0,l=s;u<l.length;u++){var _=l[u];if(!(V=Y.getSourceFileByPath?Y.getSourceFileByPath(_.fileName,_.resolvedPath,O.target,void 0,Ee):Y.getSourceFile(_.fileName,O.target,void 0,Ee)))return 0;e.Debug.assert(!V.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var d=void 0;if(_.redirectInfo){if(V!==_.redirectInfo.unredirected)return 0;d=!1,V=_}else if(R.redirectTargetsMap.has(_.path)){if(V!==_)return 0;d=!1}else d=V!==_;V.path=_.path,V.originalFileName=_.originalFileName,V.resolvedPath=_.resolvedPath,V.fileName=_.fileName;var f=R.sourceFileToPackageName.get(_.path);if(void 0!==f){var m=c.get(f),y=d?1:0;if(void 0!==m&&1===y||1===m)return 0;c.set(f,y)}if(d){if(!e.arrayIsEqualTo(_.libReferenceDirectives,V.libReferenceDirectives,pt))return 0;_.hasNoDefaultLib!==V.hasNoDefaultLib&&(Ce=1),e.arrayIsEqualTo(_.referencedFiles,V.referencedFiles,pt)||(Ce=1),mt(V),e.arrayIsEqualTo(_.imports,V.imports,ft)||(Ce=1),e.arrayIsEqualTo(_.moduleAugmentations,V.moduleAugmentations,ft)||(Ce=1),(3145728&_.flags)!=(3145728&V.flags)&&(Ce=1),e.arrayIsEqualTo(_.typeReferenceDirectives,V.typeReferenceDirectives,pt)||(Ce=1),a.push({oldFile:_,newFile:V})}else se(_.path)&&(Ce=1,a.push({oldFile:_,newFile:V}));i.push(V)}if(2!==Ce)return Ce;for(var v=a.map((function(e){return e.oldFile})),h=0,b=s;h<b.length;h++){var x=b[h];if(!e.contains(v,x))for(var D=0,S=x.ambientModuleNames;D<S.length;D++){var T=S[D];B.set(T,x.fileName)}}for(var E=0,k=a;E<k.length;E++){var N=k[E],A=(_=N.oldFile,C(V=N.newFile)),F=Ke(A,V);e.hasChangesInResolutions(A,F,_.resolvedModules,e.moduleResolutionIsEqualTo)?(Ce=1,V.resolvedModules=e.zipToMap(A,F)):V.resolvedModules=_.resolvedModules;var w=e.map(V.typeReferenceDirectives,(function(t){return e.toFileNameLowerCase(t.fileName)})),M=Be(w,V);e.hasChangesInResolutions(w,M,_.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo)?(Ce=1,V.resolvedTypeReferenceDirectiveNames=e.zipToMap(w,M)):V.resolvedTypeReferenceDirectiveNames=_.resolvedTypeReferenceDirectiveNames}if(2!==Ce)return Ce;if(null===(t=Y.hasChangedAutomaticTypeDirectiveNames)||void 0===t?void 0:t.call(Y))return 1;le=R.getMissingFilePaths(),e.Debug.assert(i.length===R.getSourceFiles().length);for(var J=0,z=i;J<z.length;J++){var V=z[J];ve.set(V.path,V)}return R.getFilesByNameMap().forEach((function(e,t){e?e.path!==t?ve.set(t,ve.get(e.path)):R.isSourceFileFromExternalLibrary(e)&&W.set(e.path,!0):ve.set(t,e)})),p=i,j=R.getFileIncludeReasons(),P=R.getFileProcessingDiagnostics(),U=R.getResolvedTypeReferenceDirectives(),me=R.sourceFileToPackageName,ye=R.redirectTargetsMap,2}(),null===e.tracing||void 0===e.tracing||e.tracing.pop(),2!==Ce){_=[],d=[],L&&(_e||(_e=L.map(Bt)),I.length&&(null==_e||_e.forEach((function(t,r){if(t){var n=e.outFile(t.commandLine.options);if(be){if(n||e.getEmitModuleKind(t.commandLine.options)===e.ModuleKind.None)for(var i=0,a=t.commandLine.fileNames;i<a.length;i++){ht(u=a[i],{kind:e.FileIncludeKind.SourceFromProjectReference,index:r})}}else if(n)ht(e.changeExtension(n,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:r});else if(e.getEmitModuleKind(t.commandLine.options)===e.ModuleKind.None)for(var o=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!Y.useCaseSensitiveFileNames())})),s=0,c=t.commandLine.fileNames;s<c.length;s++){var u=c[s];e.fileExtensionIs(u,".d.ts")||e.fileExtensionIs(u,".json")||ht(e.getOutputDeclarationFileName(u,t.commandLine,!Y.useCaseSensitiveFileNames(),o),{kind:e.FileIncludeKind.OutputFromProjectReference,index:r})}}})))),null===e.tracing||void 0===e.tracing||e.tracing.push("program","processRootFiles",{count:I.length}),e.forEach(I,(function(t,r){return dt(t,!1,!1,{kind:e.FileIncludeKind.RootFile,index:r})})),null===e.tracing||void 0===e.tracing||e.tracing.pop();var ke=I.length?e.getAutomaticTypeDirectiveNames(O,Y):e.emptyArray;if(ke.length){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferences",{count:ke.length});for(var Ne=O.configFilePath?e.getDirectoryPath(O.configFilePath):Y.getCurrentDirectory(),Ae=Be(ke,e.combinePaths(Ne,e.inferredTypesContainingFile)),Fe=0;Fe<ke.length;Fe++)Ot(ke[Fe],Ae[Fe],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:ke[Fe],packageId:null===(u=Ae[Fe])||void 0===u?void 0:u.packageId});null===e.tracing||void 0===e.tracing||e.tracing.pop()}if(I.length&&!$){var Pe=ee();!O.lib&&Pe?dt(Pe,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(O.lib,(function(t,r){dt(e.combinePaths(te,t),!0,!1,{kind:e.FileIncludeKind.LibFile,index:r})}))}le=e.arrayFrom(e.mapDefinedIterator(ve.entries(),(function(e){var t=e[0];return void 0===e[1]?t:void 0}))),p=e.stableSort(_,(function(t,r){return e.compareValues(ze(t),ze(r))})).concat(d),_=void 0,d=void 0}if(e.Debug.assert(!!le),R&&Y.onReleaseOldSourceFile){for(var we=0,Ie=R.getSourceFiles();we<Ie.length;we++){var Oe=Ie[we],Me=$e(Oe.resolvedPath);(Ee||!Me||Oe.resolvedPath===Oe.path&&Me.resolvedPath!==Oe.path)&&Y.onReleaseOldSourceFile(Oe,R.getCompilerOptions(),!!$e(Oe.path))}R.forEachResolvedProjectReference((function(e){Pt(e.sourceFile.path)||Y.onReleaseOldSourceFile(e.sourceFile,R.getCompilerOptions(),!1)}))}R=void 0;var Le={getRootFileNames:function(){return I},getSourceFile:Ze,getSourceFileByPath:$e,getSourceFiles:function(){return p},getMissingFilePaths:function(){return le},getFilesByNameMap:function(){return ve},getCompilerOptions:function(){return O},getSyntacticDiagnostics:function(e,t){return et(e,rt,t)},getOptionsDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(e.concatenate(re.getGlobalDiagnostics(),function(){if(!O.configFile)return e.emptyArray;var t=re.getDiagnostics(O.configFile.fileName);return Nt((function(r){t=e.concatenate(t,re.getDiagnostics(r.sourceFile.fileName))})),t}()))},getGlobalDiagnostics:function(){return I.length?e.sortAndDeduplicateDiagnostics(Xe().getGlobalDiagnostics().slice()):e.emptyArray},getSemanticDiagnostics:function(e,t){return et(e,it,t)},getCachedSemanticDiagnostics:function(e){var t;return e?null===(t=J.perFile)||void 0===t?void 0:t.get(e.path):J.allDiagnostics},getSuggestionDiagnostics:function(e,t){return nt((function(){return Xe().getSuggestionDiagnostics(e,t)}))},getDeclarationDiagnostics:function(t,r){var n=Le.getCompilerOptions();return!t||e.outFile(n)?ct(t,r):et(t,_t,r)},getBindAndCheckDiagnostics:function(e,t){return at(e,t)},getProgramDiagnostics:tt,getTypeChecker:Qe,getClassifiableNames:function(){var t;if(!F){Qe(),F=new e.Set;for(var r=0,n=p;r<n.length;r++){var i=n[r];null===(t=i.classifiableNames)||void 0===t||t.forEach((function(e){return F.add(e)}))}}return F},getDiagnosticsProducingTypeChecker:Xe,getCommonSourceDirectory:Ve,emit:function(t,r,n,i,a,o){null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emit",{path:null==t?void 0:t.path},!0);var s=nt((function(){return function(t,r,n,i,a,o,s){if(!s){var c=h(t,r,n,i);if(c)return c}var u=Xe().getEmitResolver(e.outFile(O)?void 0:r,i);e.performance.mark("beforeEmit");var l=e.emitFiles(u,qe(n),r,e.getTransformers(O,o,a),a,!1,s);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),l}(Le,t,r,n,i,a,o)}));return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s},getCurrentDirectory:function(){return ne},getNodeCount:function(){return Xe().getNodeCount()},getIdentifierCount:function(){return Xe().getIdentifierCount()},getSymbolCount:function(){return Xe().getSymbolCount()},getTypeCatalog:function(){return Xe().getTypeCatalog()},getTypeCount:function(){return Xe().getTypeCount()},getInstantiationCount:function(){return Xe().getInstantiationCount()},getRelationCacheSizes:function(){return Xe().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return P},getResolvedTypeReferenceDirectives:function(){return U},isSourceFileFromExternalLibrary:Ge,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!O.noLib)return!1;var r=Y.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return O.lib?e.some(O.lib,(function(n){return r(t.fileName,e.combinePaths(te,n))})):r(t.fileName,ee())},dropDiagnosticsProducingTypeChecker:function(){N=void 0},getSourceFileFromReference:function(e,r){return yt(t(r.fileName,e.fileName),Ze)},getLibFileFromReference:function(t){var r=e.toFileNameLowerCase(t.fileName),n=e.libMap.get(r);if(n)return Ze(e.combinePaths(te,n))},sourceFileToPackageName:me,redirectTargetsMap:ye,isEmittedFile:function(t){if(O.noEmit)return!1;var r=Ue(t);if($e(r))return!1;var n=e.outFile(O);if(n)return er(r,n)||er(r,e.removeFileExtension(n)+".d.ts");if(O.declarationDir&&e.containsPath(O.declarationDir,r,ne,!Y.useCaseSensitiveFileNames()))return!0;if(O.outDir)return e.containsPath(O.outDir,r,ne,!Y.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJSExtensions)||e.fileExtensionIs(r,".d.ts")){var i=e.removeFileExtension(r);return!!$e(i+".ts")||!!$e(i+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return M||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(t,r){return G&&e.resolveModuleNameFromCache(t,r,G)},getProjectReferences:function(){return L},getResolvedProjectReferences:We,getProjectReferenceRedirect:Tt,getResolvedProjectReferenceToRedirect:kt,getResolvedProjectReferenceByPath:Pt,forEachResolvedProjectReference:Nt,isSourceOfProjectReferenceRedirect:Ft,emitBuildInfo:function(t){e.Debug.assert(!e.outFile(O)),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var r=e.emitFiles(e.notImplementedResolver,qe(t),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(),r},fileExists:Se,directoryExists:Te,getSymlinkCache:tr,realpath:null===(l=Y.realpath)||void 0===l?void 0:l.bind(Y),useCaseSensitiveFileNames:function(){return Y.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return j},structureIsReused:Ce};return De(),null==P||P.forEach((function(t){switch(t.kind){case 1:return re.add(jt(t.file&&$e(t.file),t.fileProcessingReason,t.diagnostic,t.args||e.emptyArray));case 0:var r=v($e,t.reason),n=r.file,i=r.pos,a=r.end;return re.add(e.createFileDiagnostic.apply(void 0,__spreadArray([n,e.Debug.checkDefined(i),e.Debug.checkDefined(a)-i,t.diagnostic],t.args||e.emptyArray)));default:e.Debug.assertNever(t)}})),function(){O.strictPropertyInitialization&&!e.getStrictOptionValue(O,"strictNullChecks")&&Ht(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks");O.isolatedModules&&(O.out&&Ht(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),O.outFile&&Ht(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules"));O.inlineSourceMap&&(O.sourceMap&&Ht(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),O.mapRoot&&Ht(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"));O.composite&&(!1===O.declaration&&Ht(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===O.incremental&&Ht(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var t=e.outFile(O);O.tsBuildInfoFile?e.isIncrementalCompilation(O)||Ht(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!O.incremental||t||O.configFilePath||re.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));if(function(){var t=O.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(O);g(L,_e,(function(r,n,i){var a=(n?n.commandLine.projectReferences:L)[i],o=n&&n.sourceFile;if(r){var s=r.commandLine.options;if(!s.composite||s.noEmit)(n?n.commandLine.fileNames:I).length&&(s.composite||Xt(o,i,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,a.path),s.noEmit&&Xt(o,i,e.Diagnostics.Referenced_project_0_may_not_disable_emit,a.path));if(a.prepend){var c=e.outFile(s);c?Y.fileExists(c)||Xt(o,i,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,a.path):Xt(o,i,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)}!n&&t&&t===e.getTsBuildInfoEmitOutputFilePath(s)&&(Xt(o,i,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,t,a.path),oe.set(Ue(t),!0))}else Xt(o,i,e.Diagnostics.File_0_not_found,a.path)}))}(),O.composite)for(var r=new e.Set(I.map(Ue)),n=0,i=p;n<i.length;n++){var a=i[n];e.sourceFileMayBeEmitted(a,Le)&&!r.has(a.path)&&zt(a,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[a.fileName,O.configFilePath||""])}if(O.paths)for(var o in O.paths)if(e.hasProperty(O.paths,o))if(e.hasZeroOrOneAsteriskCharacter(o)||Vt(!0,o,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,o),e.isArray(O.paths[o])){var s=O.paths[o].length;0===s&&Vt(!1,o,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,o);for(var c=0;c<s;c++){var u=O.paths[o][c],l=typeof u;"string"===l?(e.hasZeroOrOneAsteriskCharacter(u)||Ut(o,c,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,u,o),O.baseUrl||e.pathIsRelative(u)||e.pathIsAbsolute(u)||Ut(o,c,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Ut(o,c,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,u,o,l)}}else Vt(!1,o,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,o);O.sourceMap||O.inlineSourceMap||(O.inlineSources&&Ht(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),O.sourceRoot&&Ht(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot"));O.out&&O.outFile&&Ht(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile");!O.mapRoot||O.sourceMap||O.declarationMap||Ht(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap");O.declarationDir&&(e.getEmitDeclarations(O)||Ht(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),t&&Ht(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",O.out?"out":"outFile"));O.declarationMap&&!e.getEmitDeclarations(O)&&Ht(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite");O.lib&&O.noLib&&Ht(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib");O.noImplicitUseStrict&&e.getStrictOptionValue(O,"alwaysStrict")&&Ht(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var _=O.target||0,d=e.find(p,(function(t){return e.isExternalModule(t)&&!t.isDeclarationFile}));if(O.isolatedModules){O.module===e.ModuleKind.None&&_<2&&Ht(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===O.preserveConstEnums&&Ht(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var f=e.find(p,(function(t){return!e.isExternalModule(t)&&!e.isSourceFileJS(t)&&!t.isDeclarationFile&&6!==t.scriptKind}));if(f){var m=e.getErrorSpanForNode(f,f);re.add(e.createFileDiagnostic(f,m.start,m.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(f.fileName)))}}else if(d&&_<2&&O.module===e.ModuleKind.None){m=e.getErrorSpanForNode(d,d.externalModuleIndicator);re.add(e.createFileDiagnostic(d,m.start,m.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(t&&!O.emitDeclarationOnly)if(O.module&&O.module!==e.ModuleKind.AMD&&O.module!==e.ModuleKind.System)Ht(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,O.out?"out":"outFile","module");else if(void 0===O.module&&d){m=e.getErrorSpanForNode(d,d.externalModuleIndicator);re.add(e.createFileDiagnostic(d,m.start,m.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,O.out?"out":"outFile"))}O.resolveJsonModule&&(e.getEmitModuleResolutionKind(O)!==e.ModuleResolutionKind.NodeJs?Ht(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(O)||Ht(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module"));if(O.outDir||O.sourceRoot||O.mapRoot){var y=Ve();O.outDir&&""===y&&p.some((function(t){return e.getRootLength(t.fileName)>1}))&&Ht(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}O.useDefineForClassFields&&0===_&&Ht(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");O.checkJs&&!e.getAllowJSCompilerOption(O)&&re.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));O.emitDeclarationOnly&&(e.getEmitDeclarations(O)||Ht(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),O.noEmit&&Ht(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));O.emitDecoratorMetadata&&!O.experimentalDecorators&&Ht(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");O.jsxFactory?(O.reactNamespace&&Ht(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==O.jsx&&5!==O.jsx||Ht(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+O.jsx)),e.parseIsolatedEntityName(O.jsxFactory,_)||Gt("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,O.jsxFactory)):O.reactNamespace&&!e.isIdentifierText(O.reactNamespace,_)&&Gt("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,O.reactNamespace);O.jsxFragmentFactory&&(O.jsxFactory||Ht(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==O.jsx&&5!==O.jsx||Ht(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+O.jsx)),e.parseIsolatedEntityName(O.jsxFragmentFactory,_)||Gt("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,O.jsxFragmentFactory));O.reactNamespace&&(4!==O.jsx&&5!==O.jsx||Ht(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+O.jsx)));O.jsxImportSource&&2===O.jsx&&Ht(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+O.jsx));if(!O.noEmit&&!O.suppressOutputPathCheck){var v=qe(),h=new e.Set;e.forEachEmittedFile(v,(function(e){O.emitDeclarationOnly||b(e.jsFilePath,h),b(e.declarationFilePath,h)}))}function b(t,r){if(t){var n=Ue(t);if(ve.has(n)){var i=void 0;O.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,t),$t(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=Y.useCaseSensitiveFileNames()?n:e.toFileNameLowerCase(n);r.has(a)?$t(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.add(a)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),Le;function Re(t,r,n){if(!t.length)return e.emptyArray;var i=e.getNormalizedAbsolutePath(r.originalFileName,ne),a=je(r);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:i}),e.performance.mark("beforeResolveModule");var o=X(t,i,n,a);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Be(t,r){if(!t.length)return[];var n=e.isString(r)?r:e.getNormalizedAbsolutePath(r.originalFileName,ne),i=e.isString(r)?void 0:je(r);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:n}),e.performance.mark("beforeResolveTypeReference");var a=Q(t,n,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(t){var r=kt(t.originalFileName);if(r||!e.fileExtensionIs(t.originalFileName,".d.ts"))return r;var n=Je(t.originalFileName,t.path);if(n)return n;if(Y.realpath&&O.preserveSymlinks&&e.stringContains(t.originalFileName,e.nodeModulesPathPart)){var i=Y.realpath(t.originalFileName),a=Ue(i);return a===t.path?void 0:Je(i,a)}}function Je(t,r){var n=At(t);return e.isString(n)?kt(n):n?Nt((function(t){var n=e.outFile(t.commandLine.options);if(n)return Ue(n)===r?t:void 0})):void 0}function ze(t){if(e.containsPath(te,t.fileName,!1)){var r=e.getBaseFileName(t.fileName);if("lib.d.ts"===r||"lib.es6.d.ts"===r)return 0;var n=e.removeSuffix(e.removePrefix(r,"lib."),".d.ts"),i=e.libs.indexOf(n);if(-1!==i)return i+1}return e.libs.length+2}function Ue(t){return e.toPath(t,ne,Lt)}function Ve(){if(void 0===k){var t=e.filter(p,(function(t){return e.sourceFileMayBeEmitted(t,Le)}));k=e.getCommonSourceDirectory(O,(function(){return e.mapDefined(t,(function(e){return e.isDeclarationFile?void 0:e.fileName}))}),ne,Lt,(function(r){return function(t,r){for(var n=!0,i=Y.getCanonicalFileName(e.getNormalizedAbsolutePath(r,ne)),a=0,o=t;a<o.length;a++){var s=o[a];if(!s.isDeclarationFile)0!==Y.getCanonicalFileName(e.getNormalizedAbsolutePath(s.fileName,ne)).indexOf(i)&&(zt(s,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[s.fileName,r]),n=!1)}return n}(t,r)}))}return k}function Ke(t,r){if(0===Ce&&!r.ambientModuleNames.length)return Re(t,r,void 0);var n,i,a,o=R&&R.getSourceFile(r.fileName);if(o!==r&&r.resolvedModules){for(var s=[],c=0,u=t;c<u.length;c++){var l=u[c],_=r.resolvedModules.get(l);s.push(_)}return s}for(var d={},p=0;p<t.length;p++){l=t[p];if(r===o&&!se(o.path)){var f=e.getResolvedModule(o,l);if(f){e.isTraceEnabled(O,Y)&&e.trace(Y,e.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,l,e.getNormalizedAbsolutePath(r.originalFileName,ne)),(i||(i=new Array(t.length)))[p]=f,(a||(a=[])).push(l);continue}}var g=!1;e.contains(r.ambientModuleNames,l)?(g=!0,e.isTraceEnabled(O,Y)&&e.trace(Y,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,l,e.getNormalizedAbsolutePath(r.originalFileName,ne))):g=v(l),g?(i||(i=new Array(t.length)))[p]=d:(n||(n=[])).push(l)}var m=n&&n.length?Re(n,r,a):e.emptyArray;if(!i)return e.Debug.assert(m.length===t.length),m;var y=0;for(p=0;p<i.length;p++)i[p]?i[p]===d&&(i[p]=void 0):(i[p]=m[y],y++);return e.Debug.assert(y===m.length),i;function v(t){var r=e.getResolvedModule(o,t),n=r&&R.getSourceFile(r.resolvedFileName);if(r&&n)return!1;var i=B.get(t);return!!i&&(e.isTraceEnabled(O,Y)&&e.trace(Y,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,i),!0)}}function qe(t){return{getPrependNodes:He,getCanonicalFileName:Lt,getCommonSourceDirectory:Le.getCommonSourceDirectory,getCompilerOptions:Le.getCompilerOptions,getCurrentDirectory:function(){return ne},getNewLine:function(){return Y.getNewLine()},getSourceFile:Le.getSourceFile,getSourceFileByPath:Le.getSourceFileByPath,getSourceFiles:Le.getSourceFiles,getLibFileFromReference:Le.getLibFileFromReference,isSourceFileFromExternalLibrary:Ge,getResolvedProjectReferenceToRedirect:kt,getProjectReferenceRedirect:Tt,isSourceOfProjectReferenceRedirect:Ft,getSymlinkCache:tr,writeFile:t||function(e,t,r,n,i){return Y.writeFile(e,t,r,n,i)},isEmitBlocked:Ye,readFile:function(e){return Y.readFile(e)},fileExists:function(t){var r=Ue(t);return!!$e(r)||!e.contains(le,r)&&Y.fileExists(t)},useCaseSensitiveFileNames:function(){return Y.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Le.getProgramBuildInfo&&Le.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return Le.getSourceFileFromReference(e,t)},redirectTargetsMap:ye,getFileIncludeReasons:Le.getFileIncludeReasons}}function We(){return _e}function He(){return D(L,(function(e,t){var r;return null===(r=_e[t])||void 0===r?void 0:r.commandLine}),(function(e){var t=Ue(e),r=$e(t);return r?r.text:ve.has(t)?void 0:Y.readFile(t)}))}function Ge(e){return!!W.get(e.path)}function Xe(){return N||(N=e.createTypeChecker(Le,!0))}function Qe(){return A||(A=e.createTypeChecker(Le,!1))}function Ye(e){return oe.has(Ue(e))}function Ze(e){return $e(Ue(e))}function $e(e){return ve.get(e)||void 0}function et(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(Le.getSourceFiles(),(function(e){return n&&n.throwIfCancellationRequested(),r(e,n)})))}function tt(t){var r;if(e.skipTypeChecking(t,O,Le))return e.emptyArray;var n=re.getDiagnostics(t.fileName);return(null===(r=t.commentDirectives)||void 0===r?void 0:r.length)?st(t,t.commentDirectives,n).diagnostics:n}function rt(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return nt((function(){var r=[];return n(t,t),e.forEachChildRecursively(t,n,i),r;function n(t,n){switch(n.kind){case 160:case 163:case 165:if(n.questionToken===t)return r.push(s(t,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 164:case 166:case 167:case 168:case 208:case 251:case 209:case 249:if(n.type===t)return r.push(s(t,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(t.kind){case 262:if(t.isTypeOnly)return r.push(s(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 267:if(t.isTypeOnly)return r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 260:return r.push(s(t,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 266:if(t.isExportEquals)return r.push(s(t,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 286:if(116===t.token)return r.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 253:var i=e.tokenToString(117);return e.Debug.assertIsDefined(i),r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 256:var a=16&t.flags?e.tokenToString(140):e.tokenToString(139);return e.Debug.assertIsDefined(a),r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 254:return r.push(s(t,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 255:var o=e.Debug.checkDefined(e.tokenToString(91));return r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 225:return r.push(s(t,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 224:return r.push(s(t.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 206:e.Debug.fail()}}function i(t,n){switch(n.decorators!==t||O.experimentalDecorators||r.push(s(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)),n.kind){case 252:case 221:case 165:case 166:case 167:case 168:case 208:case 251:case 209:if(t===n.typeParameters)return r.push(o(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 232:if(t===n.modifiers)return a(n.modifiers,232===n.kind),"skip";break;case 163:if(t===n.modifiers){for(var i=0,c=t;i<c.length;i++){var u=c[i];123!==u.kind&&r.push(s(u,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(u.kind)))}return"skip"}break;case 160:if(t===n.modifiers)return r.push(o(t,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 203:case 204:case 223:case 274:case 275:case 205:if(t===n.typeArguments)return r.push(o(t,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}function a(t,n){for(var i=0,a=t;i<a.length;i++){var o=a[i];switch(o.kind){case 84:if(n)continue;case 122:case 120:case 121:case 142:case 133:case 125:r.push(s(o,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(o.kind)))}}}function o(r,n,i,a,o){var s=r.pos;return e.createFileDiagnostic(t,s,r.end-s,n,i,a,o)}function s(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a,o)}}))}(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function nt(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(A=void 0,N=void 0),t}}function it(t,r){return e.concatenate(b(at(t,r),O),tt(t))}function at(e,t){return lt(e,t,J,ot)}function ot(t,r){return nt((function(){if(e.skipTypeChecking(t,O,Le))return e.emptyArray;var n=Xe();e.Debug.assert(!!t.bindDiagnostics);var i=e.isCheckJsEnabledForFile(t,O),a=!(!!t.checkJsDirective&&!1===t.checkJsDirective.enabled)&&(3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||i||7===t.scriptKind),o=a?t.bindDiagnostics:e.emptyArray,s=a?n.getDiagnostics(t,r):e.emptyArray;return function(t,r){for(var n,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var o=e.flatten(i);if(!r||!(null===(n=t.commentDirectives)||void 0===n?void 0:n.length))return o;for(var s=st(t,t.commentDirectives,o),c=s.diagnostics,u=s.directives,l=0,_=u.getUnusedExpectations();l<_.length;l++){var d=_[l];c.push(e.createDiagnosticForRange(t,d.range,e.Diagnostics.Unused_ts_expect_error_directive))}return c}(t,a,o,s,i?t.jsDocDiagnostics:void 0)}))}function st(t,r,n){var i=e.createCommentDirectivesMap(t,r);return{diagnostics:n.filter((function(t){return-1===function(t,r){var n=t.file,i=t.start;if(!n)return-1;var a=e.getLineStarts(n),o=e.computeLineAndCharacterOfPosition(a,i).line-1;for(;o>=0;){if(r.markUsed(o))return o;var s=n.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(t,i)})),directives:i}}function ct(e,t){return lt(e,t,z,ut)}function ut(t,r){return nt((function(){var n=Xe().getEmitResolver(t,r);return e.getDeclarationDiagnostics(qe(e.noop),n,t)||e.emptyArray}))}function lt(t,r,n,i){var a,o=t?null===(a=n.perFile)||void 0===a?void 0:a.get(t.path):n.allDiagnostics;if(o)return o;var s=i(t,r);return t?(n.perFile||(n.perFile=new e.Map)).set(t.path,s):n.allDiagnostics=s,s}function _t(e,t){return e.isDeclarationFile?[]:ct(e,t)}function dt(t,r,n,i){vt(e.normalizePath(t),r,n,void 0,i)}function pt(e,t){return e.fileName===t.fileName}function ft(e,t){return 78===e.kind?78===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function gt(t,r){var n=e.factory.createStringLiteral(t),i=e.factory.createImportDeclaration(void 0,void 0,void 0,n);return e.addEmitFlags(i,67108864),e.setParent(n,i),e.setParent(i,r),n.flags&=-9,i.flags&=-9,n}function mt(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((O.isolatedModules||o)&&!t.isDeclarationFile){O.importHelpers&&(r=[gt(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(O,t),O);s&&(r||(r=[])).push(gt(s,t))}for(var c=0,u=t.statements;c<u.length;c++){l(u[c],!1)}return(1048576&t.flags||a)&&function(t){var n=/import|require/g;for(;null!==n.exec(t.text);){var i=_(t,n.lastIndex);a&&e.isRequireCall(i,!0)||e.isImportCall(i)&&1===i.arguments.length&&e.isStringLiteralLike(i.arguments[0])?r=e.append(r,i.arguments[0]):e.isLiteralImportTypeNode(i)&&(r=e.append(r,i.argument.literal))}}(t),t.imports=r||e.emptyArray,t.moduleAugmentations=n||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function l(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(r=e.append(r,c))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasSyntacticModifier(a,2)||t.isDeclarationFile)){var u=e.getTextOfIdentifierOrLiteral(a.name);if(o||s&&!e.isExternalModuleNameRelative(u))(n||(n=[])).push(a.name);else if(!s){t.isDeclarationFile&&(i||(i=[])).push(u);var _=a.body;if(_)for(var d=0,p=_.statements;d<p.length;d++){l(p[d],!0)}}}}function _(t,r){for(var n=t,i=function(e){if(e.pos<=r&&(r<e.end||r===e.end&&1===e.kind))return e};;){var o=a&&e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,i)||e.forEachChild(n,i);if(!o)return n;n=o}}}function yt(t,r,n,i){if(e.hasExtension(t)){var a=Y.getCanonicalFileName(t);if(!O.allowNonTsExtensions&&!e.forEach(ae,(function(t){return e.fileExtensionIs(a,t)})))return void(n&&(e.hasJSFileExtension(a)?n(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,t):n(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+ie.join("', '")+"'")));var o=r(t);if(n)if(o)m(i)&&a===Y.getCanonicalFileName($e(i.file).fileName)&&n(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var s=Tt(t);s?n(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,s,t):n(e.Diagnostics.File_0_not_found,t)}return o}var c=O.allowNonTsExtensions&&r(t);if(c)return c;if(!n||!O.allowNonTsExtensions){var u=e.forEach(ie,(function(e){return r(t+e)}));return n&&!u&&n(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,t,"'"+ie.join("', '")+"'"),u}n(e.Diagnostics.File_0_not_found,t)}function vt(e,t,r,n,i){yt(e,(function(e){return xt(e,Ue(e),t,r,i,n)}),(function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Jt(void 0,i,e,t)}),i)}function ht(e,t){return vt(e,!1,!1,void 0,t)}function bt(t,r,n){!m(n)&&e.some(j.get(r.path),m)?Jt(r,n,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[r.fileName,t]):Jt(r,n,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[t,r.fileName])}function xt(t,r,n,i,a,o){null===e.tracing||void 0===e.tracing||e.tracing.push("program","findSourceFile",{fileName:t,isDefaultLib:n||void 0,fileIncludeKind:e.FileIncludeKind[a.kind]});var s=function(t,r,n,i,a,o){if(be){var s=At(t);if(!s&&Y.realpath&&O.preserveSymlinks&&e.isDeclarationFileName(t)&&e.stringContains(t,e.nodeModulesPathPart)){var c=Y.realpath(t);c!==t&&(s=At(c))}if(s){var u=e.isString(s)?xt(s,Ue(s),n,i,a,o):void 0;return u&&St(u,r,void 0),u}}var l,p=t;if(ve.has(r)){var f=ve.get(r);if(Dt(f||void 0,a),f&&O.forceConsistentCasingInFileNames){var g=f.fileName;Ue(g)!==Ue(t)&&(t=Tt(t)||t),e.getNormalizedAbsolutePathWithoutRoot(g,ne)!==e.getNormalizedAbsolutePathWithoutRoot(t,ne)&&bt(t,f,a)}return f&&W.get(f.path)&&0===K?(W.set(f.path,!1),O.noResolve||(wt(f,n),It(f)),O.noLib||Mt(f),q.set(f.path,!1),Rt(f)):f&&q.get(f.path)&&K<V&&(q.set(f.path,!1),Rt(f)),f||void 0}if(m(a)&&!be){var y=Ct(t);if(y){if(e.outFile(y.commandLine.options))return;var v=Et(y,t);t=v,l=Ue(v)}}var h=Y.getSourceFile(t,O.target,(function(r){return Jt(void 0,a,e.Diagnostics.Cannot_read_file_0_Colon_1,[t,r])}),Ee);if(o){var b=e.packageIdToString(o),x=ge.get(b);if(x){var D=function(e,t,r,n,i,a){var o=Object.create(e);return o.fileName=r,o.path=n,o.resolvedPath=i,o.originalFileName=a,o.redirectInfo={redirectTarget:e,unredirected:t},W.set(n,K>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}(x,h,t,r,Ue(t),p);return ye.add(x.path,t),St(D,r,l),Dt(D,a),me.set(r,o.name),d.push(D),D}h&&(ge.set(b,h),me.set(r,o.name))}if(St(h,r,l),h){if(W.set(r,K>0),h.fileName=t,h.path=r,h.resolvedPath=Ue(t),h.originalFileName=p,Dt(h,a),Y.useCaseSensitiveFileNames()){var S=e.toFileNameLowerCase(r),T=he.get(S);T?bt(t,T,a):he.set(S,h)}$=$||h.hasNoDefaultLib&&!i,O.noResolve||(wt(h,n),It(h)),O.noLib||Mt(h),Rt(h),n?_.push(h):d.push(h)}return h}(t,r,n,i,a,o);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s}function Dt(e,t){e&&j.add(e.path,t)}function St(e,t,r){r?(ve.set(r,e),ve.set(t,e||!1)):ve.set(t,e)}function Tt(e){var t=Ct(e);return t&&Et(t,e)}function Ct(t){if(_e&&_e.length&&!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json"))return kt(t)}function Et(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!Y.useCaseSensitiveFileNames())}function kt(t){void 0===pe&&(pe=new e.Map,Nt((function(e){Ue(O.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(t){return pe.set(Ue(t),e.sourceFile.path)}))})));var r=pe.get(Ue(t));return r&&Pt(r)}function Nt(t){return e.forEachResolvedProjectReference(_e,t)}function At(t){if(e.isDeclarationFileName(t))return void 0===fe&&(fe=new e.Map,Nt((function(t){var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");fe.set(Ue(n),!0)}else{var i=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!Y.useCaseSensitiveFileNames())}));e.forEach(t.commandLine.fileNames,(function(r){if(!e.fileExtensionIs(r,".d.ts")&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,!Y.useCaseSensitiveFileNames(),i);fe.set(Ue(n),r)}}))}}))),fe.get(Ue(t))}function Ft(e){return be&&!!kt(e)}function Pt(e){if(de)return de.get(e)||void 0}function wt(r,n){e.forEach(r.referencedFiles,(function(i,a){vt(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:r.path,index:a})}))}function It(t){var r=e.map(t.typeReferenceDirectives,(function(t){return e.toFileNameLowerCase(t.fileName)}));if(r)for(var n=Be(r,t),i=0;i<r.length;i++){var a=t.typeReferenceDirectives[i],o=n[i],s=e.toFileNameLowerCase(a.fileName);e.setResolvedTypeReferenceDirective(t,s,o),Ot(s,o,{kind:e.FileIncludeKind.TypeReferenceDirective,file:t.path,index:i})}}function Ot(t,r,n){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferenceDirective",{directive:t,hasResolved:!!Ke,refKind:n.kind,refPath:m(n)?n.file:void 0}),function(t,r,n){var i=U.get(t);if(i&&i.primary)return;var a=!0;if(r){if(r.isExternalLibraryImport&&K++,r.primary)vt(r.resolvedFileName,!1,!1,r.packageId,n);else if(i){if(r.resolvedFileName!==i.resolvedFileName){var o=Y.readFile(r.resolvedFileName),s=Ze(i.resolvedFileName);o!==s.text&&Jt(s,n,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[t,r.resolvedFileName,i.resolvedFileName])}a=!1}else vt(r.resolvedFileName,!1,!1,r.packageId,n);r.isExternalLibraryImport&&K--}else Jt(void 0,n,e.Diagnostics.Cannot_find_type_definition_file_for_0,[t]);a&&U.set(t,r)}(t,r,n),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function Mt(t){e.forEach(t.libReferenceDirectives,(function(r,n){var i=e.toFileNameLowerCase(r.fileName),a=e.libMap.get(i);if(a)dt(e.combinePaths(te,a),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:t.path,index:n});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;(P||(P=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:t.path,index:n},diagnostic:c,args:[i,s]})}}))}function Lt(e){return Y.getCanonicalFileName(e)}function Rt(t){if(mt(t),t.imports.length||t.moduleAugmentations.length){var r=C(t),n=Ke(r,t);e.Debug.assert(n.length===r.length);for(var i=0;i<r.length;i++){var a=n[i];if(e.setResolvedModule(t,r[i],a),a){var o=a.isExternalLibraryImport,s=!e.resolutionExtensionIsTSOrJson(a.extension),c=o&&s,u=a.resolvedFileName;o&&K++;var l=c&&K>V,_=u&&!T(O,a)&&!O.noResolve&&i<t.imports.length&&!l&&!(s&&!e.getAllowJSCompilerOption(O))&&(e.isInJSFile(t.imports[i])||!(4194304&t.imports[i].flags));if(l)q.set(t.path,!0);else if(_){xt(u,Ue(u),!1,!1,{kind:e.FileIncludeKind.Import,file:t.path,index:i},a.packageId)}o&&K--}}}else t.resolvedModules=void 0}function Bt(t){de||(de=new e.Map);var r,n,i=S(t),a=Ue(i),o=de.get(a);if(void 0!==o)return o||void 0;if(Y.getParsedCommandLine){if(!(r=Y.getParsedCommandLine(i)))return St(void 0,a,void 0),void de.set(a,!1);n=e.Debug.checkDefined(r.options.configFile),e.Debug.assert(!n.path||n.path===a),St(n,a,void 0)}else{var s=e.getNormalizedAbsolutePath(e.getDirectoryPath(i),Y.getCurrentDirectory());if(St(n=Y.getSourceFile(i,100),a,void 0),void 0===n)return void de.set(a,!1);r=e.parseJsonSourceFileConfigFileContent(n,Z,s,void 0,i)}n.fileName=i,n.path=a,n.resolvedPath=a,n.originalFileName=i;var c={commandLine:r,sourceFile:n};return de.set(a,c),r.projectReferences&&(c.references=r.projectReferences.map(Bt)),c}function jt(t,r,n,i){var a,o,s,c=m(r)?r:void 0;t&&(null===(a=j.get(t.path))||void 0===a||a.forEach(p)),r&&p(r),c&&1===(null==o?void 0:o.length)&&(o=void 0);var u=c&&v($e,c),l=o&&e.chainDiagnosticMessages(o,e.Diagnostics.The_file_is_in_the_program_because_Colon),_=t&&e.explainIfFileIsRedirect(t),d=e.chainDiagnosticMessages.apply(void 0,__spreadArray([_?l?__spreadArray([l],_):_:l,n],i||e.emptyArray));return u&&y(u)?e.createFileDiagnosticFromMessageChain(u.file,u.pos,u.end-u.pos,d,s):e.createCompilerDiagnosticFromMessageChain(d,s);function p(t){(o||(o=[])).push(e.fileIncludeReasonToDiagnostics(Le,t)),!c&&m(t)?c=t:c!==t&&(s=e.append(s,function(t){if(m(t)){var r,n=v($e,t);switch(t.kind){case e.FileIncludeKind.Import:r=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:r=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:r=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:r=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(t)}return y(n)?e.createFileDiagnostic(n.file,n.pos,n.end-n.pos,r):void 0}if(!O.configFile)return;var i,a;switch(t.kind){case e.FileIncludeKind.RootFile:if(!O.configFile.configFileSpecs)return;var o=e.getNormalizedAbsolutePath(I[t.index],ne),s=e.getMatchedFileSpec(Le,o);if(s){i=e.getTsConfigPropArrayElementValue(O.configFile,"files",s),a=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var c=e.getMatchedIncludeSpec(Le,o);if(!c)return;i=e.getTsConfigPropArrayElementValue(O.configFile,"include",c),a=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var u=e.Debug.checkDefined(null==_e?void 0:_e[t.index]),l=g(L,_e,(function(e,t,r){return e===u?{sourceFile:(null==t?void 0:t.sourceFile)||O.configFile,index:r}:void 0}));if(!l)return;var _=l.sourceFile,d=l.index,p=e.firstDefined(e.getTsConfigPropArray(_,"references"),(function(t){return e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0}));return p&&p.elements.length>d?e.createDiagnosticForNodeInSourceFile(_,p.elements[d],t.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(!O.types)return;i=Wt("types",t.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==t.index){i=Wt("lib",O.lib[t.index]),a=e.Diagnostics.File_is_library_specified_here;break}var f=e.forEachEntry(e.targetOptionDeclaration.type,(function(e,t){return e===O.target?t:void 0}));i=f?(h=f,(b=Kt("target"))&&e.firstDefined(b,(function(t){return e.isStringLiteral(t.initializer)&&t.initializer.text===h?t.initializer:void 0}))):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}var h,b;return i&&e.createDiagnosticForNodeInSourceFile(O.configFile,i,a)}(t))),t===r&&(r=void 0)}}function Jt(e,t,r,n){(P||(P=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function zt(e,t,r){re.add(jt(e,void 0,t,r))}function Ut(t,r,n,i,a,o){for(var s=!0,c=0,u=qt();c<u.length;c++){var l=u[c];if(e.isObjectLiteralExpression(l.initializer))for(var _=0,d=e.getPropertyAssignment(l.initializer,t);_<d.length;_++){var p=d[_].initializer;e.isArrayLiteralExpression(p)&&p.elements.length>r&&(re.add(e.createDiagnosticForNodeInSourceFile(O.configFile,p.elements[r],n,i,a,o)),s=!1)}}s&&re.add(e.createCompilerDiagnostic(n,i,a,o))}function Vt(t,r,n,i){for(var a=!0,o=0,s=qt();o<s.length;o++){var c=s[o];e.isObjectLiteralExpression(c.initializer)&&Zt(c.initializer,t,r,void 0,n,i)&&(a=!1)}a&&re.add(e.createCompilerDiagnostic(n,i))}function Kt(t){var r=Yt();return r&&e.getPropertyAssignment(r,t)}function qt(){return Kt("paths")||e.emptyArray}function Wt(t,r){var n=Yt();return n&&e.getPropertyArrayElementValue(n,t,r)}function Ht(e,t,r,n){Qt(!0,t,r,e,t,r,n)}function Gt(e,t,r){Qt(!1,e,void 0,t,r)}function Xt(t,r,n,i,a){var o=e.firstDefined(e.getTsConfigPropArray(t||O.configFile,"references"),(function(t){return e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0}));o&&o.elements.length>r?re.add(e.createDiagnosticForNodeInSourceFile(t||O.configFile,o.elements[r],n,i,a)):re.add(e.createCompilerDiagnostic(n,i,a))}function Qt(t,r,n,i,a,o,s){var c=Yt();(!c||!Zt(c,t,r,n,i,a,o,s))&&re.add(e.createCompilerDiagnostic(i,a,o,s))}function Yt(){if(void 0===H){H=!1;var t=e.getTsConfigObjectLiteralExpression(O.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r<n.length;r++){var i=n[r];if(e.isObjectLiteralExpression(i.initializer)){H=i.initializer;break}}}return H||void 0}function Zt(t,r,n,i,a,o,s,c){for(var u=e.getPropertyAssignment(t,n,i),l=0,_=u;l<_.length;l++){var d=_[l];re.add(e.createDiagnosticForNodeInSourceFile(O.configFile,r?d.name:d.initializer,a,o,s,c))}return!!u.length}function $t(e,t){oe.set(Ue(e),!0),re.add(t)}function er(t,r){return 0===e.comparePaths(t,r,ne,!Y.useCaseSensitiveFileNames())}function tr(){return Y.getSymlinkCache?Y.getSymlinkCache():E||(E=e.discoverProbableSymlinks(p,Lt,Y.getCurrentDirectory()))}},e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0},e.handleNoEmitOptions=h,e.filterSemanticDiagnotics=b,e.parseConfigHostFromCompilerHostLike=x,e.createPrependNodes=D,e.resolveProjectReferencePath=S,e.getResolutionDiagnostic=T,e.getModuleNameStringLiteralAt=E}(ts||(ts={})),function(e){function t(e,t,r,n,i,a){var o=[],s=e.emit(t,(function(e,t,r){o.push({name:e,writeByteOrderMark:r,text:t})}),n,r,i,a),c=s.emitSkipped,u=s.diagnostics,l=s.exportedModulesFromDeclarationEmit;return{outputFiles:o,emitSkipped:c,diagnostics:u,exportedModulesFromDeclarationEmit:l}}e.getFileEmitOutput=t,function(r){function n(t){if(t.declarations&&t.declarations[0]){var r=e.getSourceFileOfNode(t.declarations[0]);return r&&r.resolvedPath}}function i(e,t){var r=e.getSymbolAtLocation(t);return r&&n(r)}function a(t,r,n,i){return e.toPath(t.getProjectReferenceRedirect(r)||r,n,i)}function o(t,r,n){var o;if(r.imports&&r.imports.length>0)for(var s=t.getTypeChecker(),c=0,u=r.imports;c<u.length;c++){var l=i(s,u[c]);l&&S(l)}var _=e.getDirectoryPath(r.resolvedPath);if(r.referencedFiles&&r.referencedFiles.length>0)for(var d=0,p=r.referencedFiles;d<p.length;d++){var f=p[d];S(a(t,f.fileName,_,n))}if(r.resolvedTypeReferenceDirectiveNames&&r.resolvedTypeReferenceDirectiveNames.forEach((function(e){if(e){var r=e.resolvedFileName;S(a(t,r,_,n))}})),r.moduleAugmentations.length){s=t.getTypeChecker();for(var g=0,m=r.moduleAugmentations;g<m.length;g++){var y=m[g];if(e.isStringLiteral(y)){var v=s.getSymbolAtLocation(y);v&&D(v)}}}for(var h=0,b=t.getTypeChecker().getAmbientModules();h<b.length;h++){var x=b[h];x.declarations.length>1&&D(x)}return o;function D(t){for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n],o=e.getSourceFileOfNode(a);o&&o!==r&&S(o.resolvedPath)}}function S(t){(o||(o=new e.Set)).add(t)}}function s(e,t){return t&&!t.referencedMap==!e}function c(e,t){t.forEach((function(t,r){return u(e,t,r)}))}function u(e,t,r){e.fileInfos.get(r).signature=t,e.hasCalledUpdateShapeSignature.add(r)}function l(r,i,a,o,s,c,u){if(e.Debug.assert(!!a),e.Debug.assert(!u||!!r.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),r.hasCalledUpdateShapeSignature.has(a.resolvedPath)||o.has(a.resolvedPath))return!1;var l=r.fileInfos.get(a.resolvedPath);if(!l)return e.Debug.fail();var _,d=l.signature;if(a.isDeclarationFile){if(_=a.version,u&&_!==d){var p=r.referencedMap?r.referencedMap.get(a.resolvedPath):void 0;u.set(a.resolvedPath,p||!1)}}else{var f=t(i,a,!0,s,void 0,!0),g=f.outputFiles&&i.getCompilerOptions().declarationMap?f.outputFiles.length>1?f.outputFiles[1]:void 0:f.outputFiles.length>0?f.outputFiles[0]:void 0;g?(e.Debug.assert(e.fileExtensionIs(g.name,".d.ts"),"File extension for signature expected to be dts",(function(){return"Found: "+e.getAnyExtensionFromPath(g.name)+" for "+g.name+":: All output files: "+JSON.stringify(f.outputFiles.map((function(e){return e.name})))})),_=(c||e.generateDjb2Hash)(g.text),u&&_!==d&&function(t,r,i){if(!r)return void i.set(t.resolvedPath,!1);var a;function o(t){t&&(a||(a=new e.Set),a.add(t))}r.forEach((function(e){return o(n(e))})),i.set(t.resolvedPath,a||!1)}(a,f.exportedModulesFromDeclarationEmit,u)):_=d}return o.set(a.resolvedPath,_),!d||_!==d}function _(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map((function(e){return e.fileName}))}return t.allFileNames}function d(t,r){return e.arrayFrom(e.mapDefinedIterator(t.referencedMap.entries(),(function(e){var t=e[0];return e[1].has(r)?t:void 0})))}function p(t){return function(t){return e.some(t.moduleAugmentations,(function(t){return e.isGlobalScopeAugmentation(t.parent)}))}(t)||!e.isExternalModule(t)&&!function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if(!e.isModuleWithStringLiteralName(i))return!1}return!0}(t)}function f(t,r,n){if(t.allFilesExcludingDefaultLibraryFile)return t.allFilesExcludingDefaultLibraryFile;var i;n&&c(n);for(var a=0,o=r.getSourceFiles();a<o.length;a++){var s=o[a];s!==n&&c(s)}return t.allFilesExcludingDefaultLibraryFile=i||e.emptyArray,t.allFilesExcludingDefaultLibraryFile;function c(e){r.isSourceFileDefaultLibrary(e)||(i||(i=[])).push(e)}}function g(t,r,n){var i=r.getCompilerOptions();return i&&e.outFile(i)?[n]:f(t,r,n)}function m(t,r,n,i,a,o,s){if(p(n))return f(t,r,n);var c=r.getCompilerOptions();if(c&&(c.isolatedModules||e.outFile(c)))return[n];var u=new e.Map;u.set(n.resolvedPath,n);for(var _=d(t,n.resolvedPath);_.length>0;){var g=_.pop();if(!u.has(g)){var m=r.getSourceFileByPath(g);u.set(g,m),m&&l(t,r,m,i,a,o,s)&&_.push.apply(_,d(t,m.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(u.values(),(function(e){return e})))}r.canReuseOldState=s,r.create=function(t,r,n){var i=new e.Map,a=t.getCompilerOptions().module!==e.ModuleKind.None?new e.Map:void 0,c=a?new e.Map:void 0,u=new e.Set,l=s(a,n);t.getTypeChecker();for(var _=0,d=t.getSourceFiles();_<d.length;_++){var f=d[_],g=e.Debug.checkDefined(f.version,"Program intended to be used with Builder should have source files with versions set"),m=l?n.fileInfos.get(f.resolvedPath):void 0;if(a){var y=o(t,f,r);if(y&&a.set(f.resolvedPath,y),l){var v=n.exportedModulesMap.get(f.resolvedPath);v&&c.set(f.resolvedPath,v)}}i.set(f.resolvedPath,{version:g,signature:m&&m.signature,affectsGlobalScope:p(f)})}return{fileInfos:i,referencedMap:a,exportedModulesMap:c,hasCalledUpdateShapeSignature:u}},r.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},r.clone=function(t){return{fileInfos:new e.Map(t.fileInfos),referencedMap:t.referencedMap&&new e.Map(t.referencedMap),exportedModulesMap:t.exportedModulesMap&&new e.Map(t.exportedModulesMap),hasCalledUpdateShapeSignature:new e.Set(t.hasCalledUpdateShapeSignature)}},r.getFilesAffectedBy=function(t,r,n,i,a,o,s){var u=o||new e.Map,_=r.getSourceFileByPath(n);if(!_)return e.emptyArray;if(!l(t,r,_,u,i,a,s))return[_];var d=(t.referencedMap?m:g)(t,r,_,u,i,a,s);return o||c(t,u),d},r.updateSignaturesFromCache=c,r.updateSignatureOfFile=u,r.updateShapeSignature=l,r.updateExportedFilesMapFromCache=function(t,r){r&&(e.Debug.assert(!!t.exportedModulesMap),r.forEach((function(e,r){e?t.exportedModulesMap.set(r,e):t.exportedModulesMap.delete(r)})))},r.getAllDependencies=function(t,r,n){var i=r.getCompilerOptions();if(e.outFile(i))return _(t,r);if(!t.referencedMap||p(n))return _(t,r);for(var a=new e.Set,o=[n.resolvedPath];o.length;){var s=o.pop();if(!a.has(s)){a.add(s);var c=t.referencedMap.get(s);if(c)for(var u=c.keys(),l=u.next();!l.done;l=u.next())o.push(l.value)}}return e.arrayFrom(e.mapDefinedIterator(a.keys(),(function(e){var t,n;return null!==(n=null===(t=r.getSourceFileByPath(e))||void 0===t?void 0:t.fileName)&&void 0!==n?n:e})))},r.getReferencedByPaths=d,r.getAllFilesExcludingDefaultLibraryFile=f}(e.BuilderState||(e.BuilderState={}))}(ts||(ts={})),function(e){var t;function r(t,r,i){var a=e.BuilderState.create(t,r,i);a.program=t;var o=t.getCompilerOptions();a.compilerOptions=o,e.outFile(o)||(a.semanticDiagnosticsPerFile=new e.Map),a.changedFilesSet=new e.Set;var s=e.BuilderState.canReuseOldState(a.referencedMap,i),c=s?i.compilerOptions:void 0,u=s&&i.semanticDiagnosticsPerFile&&!!a.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(o,c);if(s){if(!i.currentChangedFilePath){var l=i.currentAffectedFilesSignatures;e.Debug.assert(!(i.affectedFiles||l&&l.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var _=i.changedFilesSet;u&&e.Debug.assert(!_||!e.forEachKey(_,(function(e){return i.semanticDiagnosticsPerFile.has(e)})),"Semantic diagnostics shouldnt be available for changed files"),null==_||_.forEach((function(e){return a.changedFilesSet.add(e)})),!e.outFile(o)&&i.affectedFilesPendingEmit&&(a.affectedFilesPendingEmit=i.affectedFilesPendingEmit.slice(),a.affectedFilesPendingEmitKind=i.affectedFilesPendingEmitKind&&new e.Map(i.affectedFilesPendingEmitKind),a.affectedFilesPendingEmitIndex=i.affectedFilesPendingEmitIndex,a.seenAffectedFiles=new e.Set)}var d=a.referencedMap,p=s?i.referencedMap:void 0,f=u&&!o.skipLibCheck==!c.skipLibCheck,g=f&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;return a.fileInfos.forEach((function(o,c){var l,_,m,y;if(!s||!(l=i.fileInfos.get(c))||l.version!==o.version||(m=_=d&&d.get(c),y=p&&p.get(c),m!==y&&(void 0===m||void 0===y||m.size!==y.size||e.forEachKey(m,(function(e){return!y.has(e)}))))||_&&e.forEachKey(_,(function(e){return!a.fileInfos.has(e)&&i.fileInfos.has(e)})))a.changedFilesSet.add(c);else if(u){var v=t.getSourceFileByPath(c);if(v.isDeclarationFile&&!f)return;if(v.hasNoDefaultLib&&!g)return;var h=i.semanticDiagnosticsPerFile.get(c);h&&(a.semanticDiagnosticsPerFile.set(c,i.hasReusableDiagnostic?function(t,r,i){if(!t.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()),r.getCurrentDirectory()));return t.map((function(e){var t=n(e,r,o);t.reportsUnnecessary=e.reportsUnnecessary,t.reportsDeprecated=e.reportDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var i=e.relatedInformation;return t.relatedInformation=i?i.length?i.map((function(e){return n(e,r,o)})):[]:void 0,t}));function o(t){return e.toPath(t,a,i)}}(h,t,r):h),a.semanticDiagnosticsFromOldState||(a.semanticDiagnosticsFromOldState=new e.Set),a.semanticDiagnosticsFromOldState.add(c))}})),s&&e.forEachEntry(i.fileInfos,(function(e,t){return e.affectsGlobalScope&&!a.fileInfos.has(t)}))?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(a,t,void 0).forEach((function(e){return a.changedFilesSet.add(e.resolvedPath)})):c&&!e.outFile(o)&&e.compilerOptionsAffectEmit(o,c)&&(t.getSourceFiles().forEach((function(e){return h(a,e.resolvedPath,1)})),e.Debug.assert(!a.seenAffectedFiles||!a.seenAffectedFiles.size),a.seenAffectedFiles=a.seenAffectedFiles||new e.Set),a.buildInfoEmitPending=!!a.changedFilesSet.size,a}function n(e,t,r){var n=e.file;return __assign(__assign({},e),{file:n?t.getSourceFileByPath(r(n)):void 0})}function i(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.resolvedPath))}function a(t,r,n){for(;;){var i=t.affectedFiles;if(i){for(var a=t.seenAffectedFiles,s=t.affectedFilesIndex;s<i.length;){var c=i[s];if(!a.has(c.resolvedPath))return t.affectedFilesIndex=s,o(t,c,r,n),c;s++}t.changedFilesSet.delete(t.currentChangedFilePath),t.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(t,t.currentAffectedFilesSignatures),t.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(t,t.currentAffectedFilesExportedModulesMap),t.affectedFiles=void 0}var u=t.changedFilesSet.keys().next();if(u.done)return;var l=e.Debug.checkDefined(t.program),_=l.getCompilerOptions();if(e.outFile(_))return e.Debug.assert(!t.semanticDiagnosticsPerFile),l;t.currentAffectedFilesSignatures||(t.currentAffectedFilesSignatures=new e.Map),t.exportedModulesMap&&(t.currentAffectedFilesExportedModulesMap||(t.currentAffectedFilesExportedModulesMap=new e.Map)),t.affectedFiles=e.BuilderState.getFilesAffectedBy(t,l,u.value,r,n,t.currentAffectedFilesSignatures,t.currentAffectedFilesExportedModulesMap),t.currentChangedFilePath=u.value,t.affectedFilesIndex=0,t.seenAffectedFiles||(t.seenAffectedFiles=new e.Set)}}function o(t,r,n,i){if(s(t,r.resolvedPath),t.allFilesExcludingDefaultLibraryFile!==t.affectedFiles)t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(t,r,n){if(!t.exportedModulesMap||!t.changedFilesSet.has(r.resolvedPath))return;if(!c(t,r.resolvedPath))return;if(t.compilerOptions.isolatedModules){var i=new e.Map;i.set(r.resolvedPath,!0);for(var a=e.BuilderState.getReferencedByPaths(t,r.resolvedPath);a.length>0;){var o=a.pop();if(!i.has(o))if(i.set(o,!0),n(t,o)&&c(t,o)){var s=e.Debug.checkDefined(t.program).getSourceFileByPath(o);a.push.apply(a,e.BuilderState.getReferencedByPaths(t,s.resolvedPath))}}}e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var l=new e.Set;if(e.forEachEntry(t.currentAffectedFilesExportedModulesMap,(function(e,i){return e&&e.has(r.resolvedPath)&&u(t,i,l,n)})))return;e.forEachEntry(t.exportedModulesMap,(function(e,i){return!t.currentAffectedFilesExportedModulesMap.has(i)&&e.has(r.resolvedPath)&&u(t,i,l,n)}))}(t,r,(function(t,r){return function(t,r,n,i){if(s(t,r),!t.changedFilesSet.has(r)){var a=e.Debug.checkDefined(t.program),o=a.getSourceFileByPath(r);o&&(e.BuilderState.updateShapeSignature(t,a,o,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap),e.getEmitDeclarations(t.compilerOptions)&&h(t,r,0))}return!1}(t,r,n,i)}));else if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var a=e.Debug.checkDefined(t.program),o=a.getCompilerOptions();e.forEach(a.getSourceFiles(),(function(r){return a.isSourceFileDefaultLibrary(r)&&!e.skipTypeChecking(r,o,a)&&s(t,r.resolvedPath)}))}}function s(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function c(t,r){return e.Debug.checkDefined(t.currentAffectedFilesSignatures).get(r)!==e.Debug.checkDefined(t.fileInfos.get(r)).signature}function u(t,r,n,i){return e.forEachEntry(t.referencedMap,(function(e,a){return e.has(r)&&l(t,a,n,i)}))}function l(t,r,n,i){return!!e.tryAddToSet(n,r)&&(!!i(t,r)||(e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap),!!e.forEachEntry(t.currentAffectedFilesExportedModulesMap,(function(e,a){return e&&e.has(r)&&l(t,a,n,i)}))||(!!e.forEachEntry(t.exportedModulesMap,(function(e,a){return!t.currentAffectedFilesExportedModulesMap.has(a)&&e.has(r)&&l(t,a,n,i)}))||!!e.forEachEntry(t.referencedMap,(function(e,a){return e.has(r)&&!n.has(a)&&i(t,a)})))))}function _(t,r,n,i,a){a?t.buildInfoEmitPending=!1:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(r.resolvedPath),void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n),i?(t.affectedFilesPendingEmitIndex++,t.buildInfoEmitPending=!0):t.affectedFilesIndex++)}function d(e,t,r){return _(e,r),{result:t,affected:r}}function p(e,t,r,n,i,a){return _(e,r,n,i,a),{result:t,affected:r}}function f(t,r,n){return e.concatenate(function(t,r,n){var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnotics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o);return e.filterSemanticDiagnotics(o,t.compilerOptions)}(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function g(t,r){var n={},i=e.getOptionsNameMap().optionsNameMap;for(var a in t)e.hasProperty(t,a)&&(n[a]=m(i.get(a.toLowerCase()),t[a],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n}function m(e,t,r){if(e)if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function y(t,r){return e.Debug.assert(!!t.length),t.map((function(e){var t=v(e,r);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var n=e.relatedInformation;return t.relatedInformation=n?n.length?n.map((function(e){return v(e,r)})):[]:void 0,t}))}function v(e,t){var r=e.file;return __assign(__assign({},e),{file:r?t(r.resolvedPath):void 0})}function h(t,r,n){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=new e.Map);var i=t.affectedFilesPendingEmitKind.get(r);t.affectedFilesPendingEmit.push(r),t.affectedFilesPendingEmitKind.set(r,i||n),void 0===t.affectedFilesPendingEmitIndex&&(t.affectedFilesPendingEmitIndex=0)}function b(t,r){if(t){var n=new e.Map;for(var i in t)e.hasProperty(t,i)&&n.set(r(i),new e.Set(t[i].map(r)));return n}}function x(t,r){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:n,getProgramOrUndefined:function(){return t.program},releaseProgram:function(){return t.program=void 0},getCompilerOptions:function(){return t.compilerOptions},getSourceFile:function(e){return n().getSourceFile(e)},getSourceFiles:function(){return n().getSourceFiles()},getOptionsDiagnostics:function(e){return n().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return n().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return r},getSyntacticDiagnostics:function(e,t){return n().getSyntacticDiagnostics(e,t)},getDeclarationDiagnostics:function(e,t){return n().getDeclarationDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){return n().getSemanticDiagnostics(e,t)},emit:function(e,t,r,i,a){return n().emit(e,t,r,i,a)},emitBuildInfo:function(e,t){return n().emitBuildInfo(e,t)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return n().getCurrentDirectory()},close:e.noop};function n(){return e.Debug.checkDefined(t.program)}}!function(e){e[e.DtsOnly=0]="DtsOnly",e[e.Full=1]="Full"}(e.BuilderFileEmit||(e.BuilderFileEmit={})),function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(t=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,r,n,i,a,o){var s,c,u;return void 0===t?(e.Debug.assert(void 0===r),s=n,u=i,e.Debug.assert(!!u),c=u.getProgram()):e.isArray(t)?(u=i,c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:u&&u.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=n):(c=t,s=r,u=n,a=i),{host:s,newProgram:c,oldProgram:u,configFileParsingDiagnostics:a||e.emptyArray}},e.createBuilderProgram=function(n,o){var s=o.newProgram,c=o.host,u=o.oldProgram,l=o.configFileParsingDiagnostics,m=u&&u.getState();if(m&&s===m.program&&l===s.getConfigFileParsingDiagnostics())return s=void 0,m=void 0,u;var v,b=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),D=e.maybeBind(c,c.createHash),S=r(s,b,m);s.getProgramBuildInfo=function(){return function(t,r){if(!e.outFile(t.compilerOptions)){var n=e.Debug.checkDefined(t.program).getCurrentDirectory(),i=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),n)),a={};t.fileInfos.forEach((function(e,r){var n=t.currentAffectedFilesSignatures&&t.currentAffectedFilesSignatures.get(r);a[E(r)]=void 0===n?e:{version:e.version,signature:n,affectsGlobalScope:e.affectsGlobalScope}}));var o={fileInfos:a,options:g(t.compilerOptions,(function(t){return E(e.getNormalizedAbsolutePath(t,n))}))};if(t.referencedMap){for(var s={},c=0,u=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive);c<u.length;c++)s[E(p=u[c])]=e.arrayFrom(t.referencedMap.get(p).keys(),E).sort(e.compareStringsCaseSensitive);o.referencedMap=s}if(t.exportedModulesMap){for(var l={},_=0,d=e.arrayFrom(t.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive);_<d.length;_++){var p=d[_],f=t.currentAffectedFilesExportedModulesMap&&t.currentAffectedFilesExportedModulesMap.get(p);void 0===f?l[E(p)]=e.arrayFrom(t.exportedModulesMap.get(p).keys(),E).sort(e.compareStringsCaseSensitive):f&&(l[E(p)]=e.arrayFrom(f.keys(),E).sort(e.compareStringsCaseSensitive))}o.exportedModulesMap=l}if(t.semanticDiagnosticsPerFile){for(var m=[],v=0,h=e.arrayFrom(t.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);v<h.length;v++){p=h[v];var b=t.semanticDiagnosticsPerFile.get(p);m.push(b.length?[E(p),t.hasReusableDiagnostic?b:y(b,E)]:E(p))}o.semanticDiagnosticsPerFile=m}if(t.affectedFilesPendingEmit){for(var x=[],D=new e.Set,S=0,T=t.affectedFilesPendingEmit.slice(t.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);S<T.length;S++){var C=T[S];e.tryAddToSet(D,C)&&x.push([E(C),t.affectedFilesPendingEmitKind.get(C)])}o.affectedFilesPendingEmit=x}return o}function E(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(i,t,r))}}(S,b)},s=void 0,u=void 0,m=void 0;var T=x(S,l);return T.getState=function(){return S},T.backupState=function(){e.Debug.assert(void 0===v),v=function(t){var r=e.BuilderState.clone(t);return r.semanticDiagnosticsPerFile=t.semanticDiagnosticsPerFile&&new e.Map(t.semanticDiagnosticsPerFile),r.changedFilesSet=new e.Set(t.changedFilesSet),r.affectedFiles=t.affectedFiles,r.affectedFilesIndex=t.affectedFilesIndex,r.currentChangedFilePath=t.currentChangedFilePath,r.currentAffectedFilesSignatures=t.currentAffectedFilesSignatures&&new e.Map(t.currentAffectedFilesSignatures),r.currentAffectedFilesExportedModulesMap=t.currentAffectedFilesExportedModulesMap&&new e.Map(t.currentAffectedFilesExportedModulesMap),r.seenAffectedFiles=t.seenAffectedFiles&&new e.Set(t.seenAffectedFiles),r.cleanedDiagnosticsOfLibFiles=t.cleanedDiagnosticsOfLibFiles,r.semanticDiagnosticsFromOldState=t.semanticDiagnosticsFromOldState&&new e.Set(t.semanticDiagnosticsFromOldState),r.program=t.program,r.compilerOptions=t.compilerOptions,r.affectedFilesPendingEmit=t.affectedFilesPendingEmit&&t.affectedFilesPendingEmit.slice(),r.affectedFilesPendingEmitKind=t.affectedFilesPendingEmitKind&&new e.Map(t.affectedFilesPendingEmitKind),r.affectedFilesPendingEmitIndex=t.affectedFilesPendingEmitIndex,r.seenEmittedFiles=t.seenEmittedFiles&&new e.Map(t.seenEmittedFiles),r.programEmitComplete=t.programEmitComplete,r}(S)},T.restoreState=function(){S=e.Debug.checkDefined(v),v=void 0},T.getAllDependencies=function(t){return e.BuilderState.getAllDependencies(S,e.Debug.checkDefined(S.program),t)},T.getSemanticDiagnostics=function(t,r){i(S,t);var n,a=e.Debug.checkDefined(S.program).getCompilerOptions();if(e.outFile(a))return e.Debug.assert(!S.semanticDiagnosticsPerFile),e.Debug.checkDefined(S.program).getSemanticDiagnostics(t,r);if(t)return f(S,t,r);for(;E(r););for(var o=0,s=e.Debug.checkDefined(S.program).getSourceFiles();o<s.length;o++){var c=s[o];n=e.addRange(n,f(S,c,r))}return n||e.emptyArray},T.emit=function(r,a,o,s,u){var l,_,d,p=!1;n===t.EmitAndSemanticDiagnosticsBuilderProgram||r||e.outFile(S.compilerOptions)||S.compilerOptions.noEmit||!S.compilerOptions.noEmitOnError||(p=!0,l=S.affectedFilesPendingEmit&&S.affectedFilesPendingEmit.slice(),_=S.affectedFilesPendingEmitKind&&new e.Map(S.affectedFilesPendingEmitKind),d=S.affectedFilesPendingEmitIndex);n===t.EmitAndSemanticDiagnosticsBuilderProgram&&i(S,r);var f=e.handleNoEmitOptions(T,r,a,o);if(f)return f;p&&(S.affectedFilesPendingEmit=l,S.affectedFilesPendingEmitKind=_,S.affectedFilesPendingEmitIndex=d);if(!r&&n===t.EmitAndSemanticDiagnosticsBuilderProgram){for(var g=[],m=!1,y=void 0,v=[],h=void 0;h=C(a,o,s,u);)m=m||h.result.emitSkipped,y=e.addRange(y,h.result.diagnostics),v=e.addRange(v,h.result.emittedFiles),g=e.addRange(g,h.result.sourceMaps);return{emitSkipped:m,diagnostics:y||e.emptyArray,emittedFiles:v,sourceMaps:g}}return e.Debug.checkDefined(S.program).emit(r,a||e.maybeBind(c,c.writeFile),o,s,u)},T.releaseProgram=function(){!function(t){e.BuilderState.releaseCache(t),t.program=void 0}(S),v=void 0},n===t.SemanticDiagnosticsBuilderProgram?T.getSemanticDiagnosticsOfNextAffectedFile=E:n===t.EmitAndSemanticDiagnosticsBuilderProgram?(T.getSemanticDiagnosticsOfNextAffectedFile=E,T.emitNextAffectedFile=C,T.emitBuildInfo=function(t,r){if(S.buildInfoEmitPending){var n=e.Debug.checkDefined(S.program).emitBuildInfo(t||e.maybeBind(c,c.writeFile),r);return S.buildInfoEmitPending=!1,n}return e.emitSkippedWithNoDiagnostics}):e.notImplemented(),T;function C(t,r,n,i){var o=a(S,r,D),s=1,u=!1;if(!o)if(e.outFile(S.compilerOptions)){var l=e.Debug.checkDefined(S.program);if(S.programEmitComplete)return;o=l}else{var _=function(t){var r=t.affectedFilesPendingEmit;if(r){for(var n=t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map),i=t.affectedFilesPendingEmitIndex;i<r.length;i++){var a=e.Debug.checkDefined(t.program).getSourceFileByPath(r[i]);if(a){var o=n.get(a.resolvedPath),s=e.Debug.checkDefined(e.Debug.checkDefined(t.affectedFilesPendingEmitKind).get(a.resolvedPath));if(void 0===o||o<s)return t.affectedFilesPendingEmitIndex=i,{affectedFile:a,emitKind:s}}}t.affectedFilesPendingEmit=void 0,t.affectedFilesPendingEmitKind=void 0,t.affectedFilesPendingEmitIndex=void 0}}(S);if(!_){if(!S.buildInfoEmitPending)return;var d=e.Debug.checkDefined(S.program);return p(S,d.emitBuildInfo(t||e.maybeBind(c,c.writeFile),r),d,1,!1,!0)}o=_.affectedFile,s=_.emitKind,u=!0}return p(S,e.Debug.checkDefined(S.program).emit(o===S.program?void 0:o,t||e.maybeBind(c,c.writeFile),r,n||0===s,i),o,s,u)}function E(e,r){for(;;){var i=a(S,e,D);if(!i)return;if(i===S.program)return d(S,S.program.getSemanticDiagnostics(void 0,e),i);if((n===t.EmitAndSemanticDiagnosticsBuilderProgram||S.compilerOptions.noEmit||S.compilerOptions.noEmitOnError)&&h(S,i.resolvedPath,1),!r||!r(i))return d(S,f(S,i,e),i);_(S,i)}}},e.createBuildProgramUsingProgramBuildInfo=function(t,r,n){var i=e.getDirectoryPath(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory())),a=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),o=new e.Map;for(var s in t.fileInfos)e.hasProperty(t.fileInfos,s)&&o.set(u(s),t.fileInfos[s]);var c={fileInfos:o,compilerOptions:e.convertToOptionsWithAbsolutePaths(t.options,(function(t){return e.getNormalizedAbsolutePath(t,i)})),referencedMap:b(t.referencedMap,u),exportedModulesMap:b(t.exportedModulesMap,u),semanticDiagnosticsPerFile:t.semanticDiagnosticsPerFile&&e.arrayToMap(t.semanticDiagnosticsPerFile,(function(t){return u(e.isString(t)?t:t[0])}),(function(t){return e.isString(t)?e.emptyArray:t[1]})),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(t.affectedFilesPendingEmit,(function(e){return u(e[0])})),affectedFilesPendingEmitKind:t.affectedFilesPendingEmit&&e.arrayToMap(t.affectedFilesPendingEmit,(function(e){return u(e[0])}),(function(e){return e[1]})),affectedFilesPendingEmitIndex:t.affectedFilesPendingEmit&&0};return{getState:function(){return c},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return c.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 u(t){return e.toPath(t,i,a)}},e.createRedirectedBuilderProgram=x}(ts||(ts={})),function(e){e.createSemanticDiagnosticsBuilderProgram=function(t,r,n,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o))},e.createEmitAndSemanticDiagnosticsBuilderProgram=function(t,r,n,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o))},e.createAbstractBuilder=function(t,r,n,i,a,o){var s=e.getBuilderCreationParameters(t,r,n,i,a,o),c=s.newProgram,u=s.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram({program:c,compilerOptions:c.getCompilerOptions()},u)}}(ts||(ts={})),function(e){function t(t){return e.endsWith(t,"/node_modules/.staging")?e.removeSuffix(t,"/.staging"):e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))?void 0:t}function r(t){var r=e.getRootLength(t);if(t.length===r)return!1;var n=t.indexOf(e.directorySeparator,r);if(-1===n)return!1;var i=t.substring(r,n+1),a=r>1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-z]\$\//)){if(-1===(n=t.indexOf(e.directorySeparator,n+1)))return!1;i=t.substring(r+i.length,n+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=n+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}e.removeIgnoredPath=t,e.canWatchDirectory=r,e.createResolutionCache=function(n,i,a){var o,s,c,u=e.createMultiMap(),l=[],_=e.createMultiMap(),d=!1,p=[],f=[],g=[],m=e.memoize((function(){return n.getCurrentDirectory()})),y=n.getCachedDirectoryStructureHost(),v=new e.Map,h=e.createCacheWithRedirects(),b=e.createCacheWithRedirects(),x=e.createModuleResolutionCacheWithMaps(h,b,m(),n.getCanonicalFileName),D=new e.Map,S=e.createCacheWithRedirects(),T=[".ts",".tsx",".js",".jsx",".json"],C=new e.Map,E=new e.Map,k=i&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(i,m())),N=k&&n.toPath(k),A=void 0!==N?N.split(e.directorySeparator).length:0,F=new e.Map;return{startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:M,finishCachingPerDirectoryResolution:function(){c=void 0,M(),E.forEach((function(e,t){0===e.refCount&&(E.delete(t),e.watcher.close())})),d=!1},resolveModuleNames:function(t,r,n,i){return R({names:t,containingFile:r,redirectedReference:i,cache:v,perDirectoryCacheWithRedirects:h,loader:L,getResolutionWithResolvedFileName:P,shouldRetryResolution:function(t){return!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension)},reusedNames:n,logChanges:a})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){var r=v.get(n.toPath(t));return r&&r.get(e)},resolveTypeReferenceDirectives:function(t,r,n){return R({names:t,containingFile:r,redirectedReference:n,cache:D,perDirectoryCacheWithRedirects:S,loader:e.resolveTypeReferenceDirective,getResolutionWithResolvedFileName:w,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(t){if(!e.fileExtensionIs(t,".json"))return;var r=n.getCurrentProgram();if(!r)return;var i=r.getResolvedProjectReferenceByPath(t);if(!i)return;i.commandLine.fileNames.forEach((function(e){return Q(n.toPath(e))}))},removeResolutionsOfFile:Q,hasChangedAutomaticTypeDirectiveNames:function(){return d},invalidateResolutionOfFile:function(t){Q(t);var r=d;Y(_.get(t),e.returnTrue)&&d&&!r&&n.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:$,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(t){e.Debug.assert(c===t||void 0===c),c=t},createHasInvalidatedResolution:function(t){if($(),t)return s=void 0,e.returnTrue;var r=s;return s=void 0,function(e){return!!r&&r.has(e)||O(e)}},isFileWithInvalidatedNonRelativeUnresolvedImports:O,updateTypeRootsWatch:function(){var t=n.getCompilationSettings();if(t.types)return void te();var r=e.getEffectiveTypeRoots(t,{directoryExists:ne,getCurrentDirectory:m});r?e.mutateMap(F,e.arrayToMap(r,(function(e){return n.toPath(e)})),{createNewValue:re,onDeleteValue:e.closeFileWatcher}):te()},closeTypeRootsWatch:te,clear:function(){e.clearMap(E,e.closeFileWatcherOf),C.clear(),u.clear(),te(),v.clear(),D.clear(),_.clear(),l.length=0,p.length=0,f.length=0,g.length=0,M(),d=!1}};function P(e){return e.resolvedModule}function w(e){return e.resolvedTypeReferenceDirective}function I(t,r){return!(void 0===t||r.length<=t.length)&&(e.startsWith(r,t)&&r[t.length]===e.directorySeparator)}function O(e){if(!c)return!1;var t=c.get(e);return!!t&&!!t.length}function M(){h.clear(),b.clear(),S.clear(),u.forEach(K),u.clear()}function L(t,r,i,a,o){var s,c=e.resolveModuleName(t,r,i,a,x,o);if(!n.getGlobalCache)return c;var u=n.getGlobalCache();if(!(void 0===u||e.isExternalModuleNameRelative(t)||c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var l=e.loadModuleFromGlobalCache(e.Debug.checkDefined(n.globalCacheResolutionModuleName)(t),n.projectName,i,a,u),_=l.resolvedModule,d=l.failedLookupLocations;if(_)return c.resolvedModule=_,(s=c.failedLookupLocations).push.apply(s,d),c}return c}function R(t){var r,i=t.names,a=t.containingFile,s=t.redirectedReference,c=t.cache,u=t.perDirectoryCacheWithRedirects,l=t.loader,_=t.getResolutionWithResolvedFileName,d=t.shouldRetryResolution,p=t.reusedNames,f=t.logChanges,g=n.toPath(a),m=c.get(g)||c.set(g,new e.Map).get(g),y=e.getDirectoryPath(g),v=u.getOrCreateMapOfCacheRedirects(s),h=v.get(y);h||(h=new e.Map,v.set(y,h));for(var b=[],x=n.getCompilationSettings(),D=f&&O(g),S=n.getCurrentProgram(),T=S&&S.getResolvedProjectReferenceToRedirect(a),C=T?!s||s.sourceFile.path!==T.sourceFile.path:!!s,E=new e.Map,k=0,N=i;k<N.length;k++){var A=N[k],F=m.get(A);if(!E.has(A)&&C||!F||F.isInvalidated||D&&!e.isExternalModuleNameRelative(A)&&d(F)){var P=F,w=h.get(A);w?F=w:(F=l(A,a,x,(null===(r=n.getCompilerHost)||void 0===r?void 0:r.call(n))||n,s),h.set(A,F)),m.set(A,F),U(A,F,g,_),P&&W(P,g,_),f&&o&&!I(P,F)&&(o.push(g),f=!1)}e.Debug.assert(void 0!==F&&!F.isInvalidated),E.set(A,!0),b.push(_(F))}return m.forEach((function(t,r){E.has(r)||e.contains(p,r)||(W(t,g,_),m.delete(r))})),b;function I(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=_(e),n=_(t);return r===n||!(!r||!n)&&r.resolvedFileName===n.resolvedFileName}}function B(t){return e.endsWith(t,"/node_modules/@types")}function j(t,r){if(I(N,r)){t=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,m());var n=r.split(e.directorySeparator),i=t.split(e.directorySeparator);return e.Debug.assert(i.length===n.length,"FailedLookup: "+t+" failedLookupLocationPath: "+r),n.length>A+1?{dir:i.slice(0,A+1).join(e.directorySeparator),dirPath:n.slice(0,A+1).join(e.directorySeparator)}:{dir:k,dirPath:N,nonRecursive:!1}}return J(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,m())),e.getDirectoryPath(r))}function J(t,n){for(;e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(e.isNodeModulesDirectory(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var i,a,o=!0;if(void 0!==N)for(;!I(n,N);){var s=e.getDirectoryPath(n);if(s===n)break;o=!1,i=n,a=t,n=s,t=e.getDirectoryPath(t)}return r(n)?{dir:a||t,dirPath:i||n,nonRecursive:o}:void 0}function z(t){return e.fileExtensionIsOneOf(t,T)}function U(t,r,i,a){if(r.refCount)r.refCount++,e.Debug.assertDefined(r.files);else{r.refCount=1,e.Debug.assert(0===e.length(r.files)),e.isExternalModuleNameRelative(t)?V(r):u.add(t,r);var o=a(r);o&&o.resolvedFileName&&_.add(n.toPath(o.resolvedFileName),r)}(r.files||(r.files=[])).push(i)}function V(t){e.Debug.assert(!!t.refCount);var r=t.failedLookupLocations;if(r.length){l.push(t);for(var i=!1,a=0,o=r;a<o.length;a++){var s=o[a],c=n.toPath(s),u=j(s,c);if(u){var _=u.dir,d=u.dirPath,p=u.nonRecursive;if(!z(c)){var f=C.get(c)||0;C.set(c,f+1)}d===N?(e.Debug.assert(!p),i=!0):q(_,d,p)}}i&&q(k,N,!0)}}function K(e,t){var r=n.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)||e.forEach(V)}function q(t,r,n){var i=E.get(r);i?(e.Debug.assert(!!n==!!i.nonRecursive),i.refCount++):E.set(r,{watcher:G(t,r,n),refCount:1,nonRecursive:n})}function W(t,r,i){if(e.unorderedRemoveItem(e.Debug.assertDefined(t.files),r),t.refCount--,!t.refCount){var a=i(t);if(a&&a.resolvedFileName&&_.remove(n.toPath(a.resolvedFileName),t),e.unorderedRemoveItem(l,t)){for(var o=!1,s=0,c=t.failedLookupLocations;s<c.length;s++){var u=c[s],d=n.toPath(u),p=j(u,d);if(p){var f=p.dirPath,g=C.get(d);g&&(1===g?C.delete(d):(e.Debug.assert(g>1),C.set(d,g-1))),f===N?o=!0:H(f)}}o&&H(N)}}}function H(e){E.get(e).refCount--}function G(e,t,r){return n.watchDirectoryOfFailedLookupLocation(e,(function(e){var r=n.toPath(e);y&&y.addOrDeleteFileOrDirectory(e,r),Z(r,t===r)}),r?0:1)}function X(e,t,r){var n=e.get(t);n&&(n.forEach((function(e){return W(e,t,r)})),e.delete(t))}function Q(e){X(v,e,P),X(D,e,w)}function Y(t,r){if(!t)return!1;for(var n=!1,i=0,a=t;i<a.length;i++){var o=a[i];if(!o.isInvalidated&&r(o)){o.isInvalidated=n=!0;for(var c=0,u=e.Debug.assertDefined(o.files);c<u.length;c++){var l=u[c];(s||(s=new e.Set)).add(l),d=d||e.endsWith(l,e.inferredTypesContainingFile)}}}return n}function Z(r,i){if(i)g.push(r);else{var a=t(r);if(!a)return!1;if(r=a,n.fileIsOpen(r))return!1;var o=e.getDirectoryPath(r);if(B(r)||e.isNodeModulesDirectory(r)||B(o)||e.isNodeModulesDirectory(o))p.push(r),f.push(r);else{if(!z(r)&&!C.has(r))return!1;if(e.isEmittedFileOfProgram(n.getCurrentProgram(),r))return!1;p.push(r)}}n.scheduleInvalidateResolutionsOfFailedLookupLocations()}function $(){if(!p.length&&!f.length&&!g.length)return!1;var e=Y(l,ee);return p.length=0,f.length=0,g.length=0,e}function ee(t){return t.failedLookupLocations.some((function(t){var r=n.toPath(t);return e.contains(p,r)||f.some((function(t){return e.startsWith(r,t)}))||g.some((function(e){return I(e,r)}))}))}function te(){e.clearMap(F,e.closeFileWatcher)}function re(e,t){return n.watchTypeRootsDirectory(t,(function(r){var i=n.toPath(r);y&&y.addOrDeleteFileOrDirectory(r,i),d=!0,n.onChangedAutomaticTypeDirectiveNames();var a=function(e,t){if(I(N,t))return N;var r=J(e,t);return r&&E.has(r.dirPath)?r.dirPath:void 0}(t,e);a&&Z(i,a===i)}),1)}function ne(t){var i=e.getDirectoryPath(e.getDirectoryPath(t)),a=n.toPath(i);return a===N||r(a)}}}(ts||(ts={})),function(e){!function(t){var r,n;function i(t,r,n){var i=t.importModuleSpecifierPreference,a=t.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(t){var r=t.imports;return e.firstDefined(r,(function(t){var r=t.text;return e.pathIsRelative(r)?e.hasJSFileExtension(r):void 0}))||!1}(n)?2:e.getEmitModuleResolutionKind(r)!==e.ModuleResolutionKind.NodeJs?1:0}}()}}function a(t,r,n,i,a){var c=o(r,i),u=d(r,n,i);return e.firstDefined(u,(function(e){return f(e,c,i,t)}))||s(n,c,t,i,a)}function o(t,r){return{getCanonicalFileName:e.createGetCanonicalFileName(!r.useCaseSensitiveFileNames||r.useCaseSensitiveFileNames()),importingSourceFileName:t,sourceDirectory:e.getDirectoryPath(t)}}function s(t,r,n,i,a){var o=a.ending,s=a.relativePreference,u=n.baseUrl,_=n.paths,d=n.rootDirs,f=r.sourceDirectory,h=r.getCanonicalFileName,b=d&&function(t,r,n,i,a,o){var s=g(r,t,i);if(void 0===s)return;var c=g(n,t,i),u=void 0!==c?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(c,s,i)):s;return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeJs?m(u,a,o):e.removeFileExtension(u)}(d,t,f,h,o,n)||m(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(f,t,h)),o,n);if(!u&&!_||0===s)return b;var x=y(t,e.getPathsBasePath(n,i)||u,h);if(!x)return b;var D=m(x,o,n),S=_&&p(e.removeFileExtension(x),D,_),T=void 0===S&&void 0!==u?D:S;if(!T)return b;if(1===s)return T;if(3===s){var C=i.getCurrentDirectory(),E=e.toPath(t,C,h),k=e.startsWith(f,C),N=e.startsWith(E,C);if(k&&!N||!k&&N)return T;var A=l(i,e.getDirectoryPath(E));return l(i,f)!==A?T:b}return 2!==s&&e.Debug.assertNever(s),v(T)||c(b)<c(T)?b:T}function c(t){for(var r=0,n=e.startsWith(t,"./")?2:0;n<t.length;n++)47===t.charCodeAt(n)&&r++;return r}function u(t,r){return e.compareBooleans(r.isRedirect,t.isRedirect)||e.compareNumberOfDirectorySeparators(t.path,r.path)}function l(t,r){return t.getNearestAncestorDirectoryWithPackageJson?t.getNearestAncestorDirectoryWithPackageJson(r):!!e.forEachAncestorDirectory(r,(function(r){return!!t.fileExists(e.combinePaths(r,"package.json"))||void 0}))}function _(t,r,n,i,a){var o=e.hostGetCanonicalFileName(n),s=n.getCurrentDirectory(),c=n.isSourceOfProjectReferenceRedirect(r)?n.getProjectReferenceRedirect(r):void 0,u=e.toPath(r,s,o),l=n.redirectTargetsMap.get(u)||e.emptyArray,_=__spreadArray(__spreadArray(__spreadArray([],c?[c]:e.emptyArray),[r]),l).map((function(t){return e.getNormalizedAbsolutePath(t,s)})),d=!e.every(_,e.containsIgnoredPath);if(!i){var p=e.forEach(_,(function(t){return!(d&&e.containsIgnoredPath(t))&&a(t,c===t)}));if(p)return p}var f=(n.getSymlinkCache?n.getSymlinkCache():e.discoverProbableSymlinks(n.getSourceFiles(),o,s)).getSymlinkedDirectoriesByRealpath(),g=e.getNormalizedAbsolutePath(r,s);return f&&e.forEachAncestorDirectory(e.getDirectoryPath(g),(function(r){var n=f.get(e.ensureTrailingDirectorySeparator(e.toPath(r,s,o)));if(n)return!e.startsWithDirectory(t,r,o)&&e.forEach(_,(function(t){if(e.startsWithDirectory(t,r,o))for(var i=e.getRelativePathFromDirectory(r,t,o),s=0,u=n;s<u.length;s++){var l=u[s],_=e.resolvePath(l,i),p=a(_,t===c);if(d=!0,p)return p}}))}))||(i?e.forEach(_,(function(t){return d&&e.containsIgnoredPath(t)?void 0:a(t,t===c)})):void 0)}function d(t,r,n){var i=n.getCurrentDirectory(),a=e.hostGetCanonicalFileName(n),o=new e.Map,s=!1;_(t,r,n,!0,(function(t,r){var n=e.pathContainsNodeModules(t);o.set(t,{path:a(t),isRedirect:r,isInNodeModules:n}),s=s||n}));for(var c,l=[],d=function(t){var r,n=e.ensureTrailingDirectorySeparator(t);o.forEach((function(t,i){var a=t.path,s=t.isRedirect,c=t.isInNodeModules;e.startsWith(a,n)&&((r||(r=[])).push({path:i,isRedirect:s,isInNodeModules:c}),o.delete(i))})),r&&(r.length>1&&r.sort(u),l.push.apply(l,r));var i=e.getDirectoryPath(t);if(i===t)return c=t,"break";c=t=i},p=e.getDirectoryPath(e.toPath(t,i,a));0!==o.size;){var f=d(p);if(p=c,"break"===f)break}if(o.size){var g=e.arrayFrom(o.values());g.length>1&&g.sort(u),l.push.apply(l,g)}return l}function p(t,r,n){for(var i in n)for(var a=0,o=n[i];a<o.length;a++){var s=o[a],c=e.removeFileExtension(e.normalizePath(s)),u=c.indexOf("*");if(-1!==u){var l=c.substr(0,u),_=c.substr(u+1);if(r.length>=l.length+_.length&&e.startsWith(r,l)&&e.endsWith(r,_)||!_&&r===e.removeTrailingDirectorySeparator(l)){var d=r.substr(l.length,r.length-_.length);return i.replace("*",d)}}else if(c===r||c===t)return i}}function f(t,r,n,i,a){var o=t.path,s=t.isRedirect,c=r.getCanonicalFileName,u=r.sourceDirectory;if(n.fileExists&&n.readFile){var l=function(t){var r,n=0,i=0,a=0,o=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(r||(r={}));var s=0,c=0,u=0;for(;c>=0;)switch(s=c,c=t.indexOf("/",s+1),u){case 0:t.indexOf(e.nodeModulesPathPart,s)===s&&(n=s,i=c,u=1);break;case 1:case 2:1===u&&"@"===t.charAt(s+1)?u=2:(a=c,u=3);break;case 3:u=t.indexOf(e.nodeModulesPathPart,s)===s?1:3}return o=s,u>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0}(o);if(l){var _=o,d=!1;if(!a)for(var f=l.packageRootIndex,g=void 0;;){var y=T(f),v=y.moduleFileToTry,h=y.packageRootPath;if(h){_=h,d=!0;break}if(g||(g=v),-1===(f=o.indexOf(e.directorySeparator,f+1))){_=C(g);break}}if(!s||d){var b=n.getGlobalTypingsCacheLocation&&n.getGlobalTypingsCacheLocation(),x=c(_.substring(0,l.topLevelNodeModulesIndex));if(e.startsWith(u,x)||b&&e.startsWith(c(b),x)){var D=_.substring(l.topLevelPackageNameIndex+1),S=e.getPackageNameFromTypesPackageName(D);return e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.NodeJs&&S===D?void 0:S}}}}function T(t){var r=o.substring(0,t),a=e.combinePaths(r,"package.json"),s=o;if(n.fileExists(a)){var u=JSON.parse(n.readFile(a)),l=u.typesVersions?e.getPackageJsonTypesVersionsPaths(u.typesVersions):void 0;if(l){var _=o.slice(r.length+1),d=p(e.removeFileExtension(_),m(_,0,i),l.paths);void 0!==d&&(s=e.combinePaths(r,d))}var f=u.typings||u.types||u.main;if(e.isString(f)){var g=e.toPath(f,r,c);if(e.removeFileExtension(g)===e.removeFileExtension(c(s)))return{packageRootPath:r,moduleFileToTry:s}}}return{moduleFileToTry:s}}function C(t){var r=e.removeFileExtension(t);return"/index"!==c(r.substring(l.fileNameIndex))||function(t,r){if(!t.fileExists)return;for(var n=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),i=0,a=n;i<a.length;i++){var o=r+a[i];if(t.fileExists(o))return o}}(n,r.substring(0,l.fileNameIndex))?r:r.substring(0,l.fileNameIndex)}}function g(t,r,n){return e.firstDefined(r,(function(e){var r=y(t,e,n);return v(r)?void 0:r}))}function m(t,r,n){if(e.fileExtensionIs(t,".json"))return t;var i=e.removeFileExtension(t);switch(r){case 0:return e.removeSuffix(i,"/index");case 1:return i;case 2:return i+function(t,r){var n=e.extensionFromPath(t);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===r.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;case".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported:: FileName:: "+t);default:return e.Debug.assertNever(n)}}(t,n);default:return e.Debug.assertNever(r)}}function y(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1);return e.isRootedDiskPath(i)?void 0:i}function v(t){return e.startsWith(t,"..")}!function(e){e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative"}(r||(r={})),function(e){e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension"}(n||(n={})),t.updateModuleSpecifier=function(t,r,n,i,o){var s=a(t,r,n,i,function(t,r){return{relativePreference:e.isExternalModuleNameRelative(r)?0:1,ending:e.hasJSFileExtension(r)?2:e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs||e.endsWith(r,"index")?1:0}}(t,o));if(s!==o)return s},t.getModuleSpecifier=function(e,t,r,n,o,s){return void 0===s&&(s={}),a(e,r,n,o,i(s,e,t))},t.getNodeModulesPackageName=function(t,r,n,i){var a=o(r,i),s=d(r,n,i);return e.firstDefined(s,(function(e){return f(e,a,i,t,!0)}))},t.getModuleSpecifiers=function(t,r,n,a,c,u){var l=function(t,r){var n=e.find(t.declarations,(function(t){return e.isNonGlobalAmbientModule(t)&&(!e.isExternalModuleAugmentation(t)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name)))}));if(n)return n.name.text;var i=e.mapDefined(t.declarations,(function(t){var n,i,a,o;if(e.isModuleDeclaration(t)){var s=l(t);if((null===(n=null==s?void 0:s.parent)||void 0===n?void 0:n.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 u=r.getSymbolAtLocation(c);if(u)if((2097152&(null==u?void 0:u.flags)?r.getAliasedSymbol(u):u)===t.symbol)return s.parent.parent}}}function l(e){for(;4&e.flags;)e=e.parent;return e}}))[0];if(i)return i.name.text}(t,r);if(l)return[l];var _=o(a.path,c),p=e.getSourceFileOfNode(t.valueDeclaration||e.getNonAugmentationDeclaration(t)),g=d(a.path,p.originalFileName,c),m=i(u,n,a),y=e.forEach(g,(function(t){return e.forEach(c.getFileIncludeReasons().get(e.toPath(t.path,c.getCurrentDirectory(),_.getCanonicalFileName)),(function(t){if(t.kind===e.FileIncludeKind.Import&&t.file===a.path){var r=e.getModuleNameStringLiteralAt(a,t.index).text;return 1===m.relativePreference&&e.pathIsRelative(r)?void 0:r}}))}));if(y)return[y];for(var v,h,b,x=e.some(g,(function(e){return e.isInNodeModules})),D=0,S=g;D<S.length;D++){var T=S[D],C=f(T,_,c,n);if(v=e.append(v,C),C&&T.isRedirect)return v;if(!C&&!T.isRedirect){var E=s(T.path,_,n,c,m);e.pathIsBareSpecifier(E)?h=e.append(h,E):x&&!T.isInNodeModules||(b=e.append(b,E))}}return(null==h?void 0:h.length)?h:(null==v?void 0:v.length)?v:e.Debug.checkDefined(b)},t.countPathComponents=c,t.forEachFileNameOfModule=_}(e.moduleSpecifiers||(e.moduleSpecifiers={}))}(ts||(ts={})),function(e){var t=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function r(r,n){var i=r===e.sys?t:{getCurrentDirectory:function(){return r.getCurrentDirectory()},getNewLine:function(){return r.newLine},getCanonicalFileName:e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)};if(!n)return function(t){return r.write(e.formatDiagnostic(t,i))};var a=new Array(1);return function(t){a[0]=t,r.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function n(t,r,n){return!(!t.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!e.contains(e.screenStartingMessageCodes,r.code))&&(t.clearScreen(),!0)}function i(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):(new Date).toLocaleTimeString()}function a(t,r){return r?function(r,a,o){n(t,r,o);var s="["+e.formatColorAndReset(i(t),e.ForegroundColorEscapeSequences.Grey)+"] ";s+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+(a+a),t.write(s)}:function(r,a,o){var s="";n(t,r,o)||(s+=a),s+=i(t)+" - ",s+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+function(t,r){return e.contains(e.screenStartingMessageCodes,t.code)?r+r:r}(r,a),t.write(s)}}function o(t){return e.countWhere(t,(function(t){return t.category===e.DiagnosticCategory.Error}))}function s(t){return 1===t?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}function c(t,r){if(0===t)return"";var n=e.createCompilerDiagnostic(1===t?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,t);return""+r+e.flattenDiagnosticMessageText(n.messageText,r)+r+r}function u(e){return!!e.getState}function l(t,r){var n=t.getCompilerOptions();n.explainFiles?_(u(t)?t.getProgram():t,r):(n.listFiles||n.listFilesOnly)&&e.forEach(t.getSourceFiles(),(function(e){r(e.fileName)}))}function _(t,r){for(var n,i,a=t.getFileIncludeReasons(),o=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),s=function(r){return e.convertToRelativePath(r,t.getCurrentDirectory(),o)},c=0,u=t.getSourceFiles();c<u.length;c++){var l=u[c];r(""+m(l,s)),null===(n=a.get(l.path))||void 0===n||n.forEach((function(e){return r(" "+g(t,e,s).messageText)})),null===(i=d(l,s))||void 0===i||i.forEach((function(e){return r(" "+e.messageText)}))}}function d(t,r){var n;return t.path!==t.resolvedPath&&(n||(n=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,m(t.originalFileName,r))),t.redirectInfo&&(n||(n=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,m(t.redirectInfo.redirectTarget,r))),n}function p(t,r){var n,i=t.getCompilerOptions().configFile;if(null===(n=null==i?void 0:i.configFileSpecs)||void 0===n?void 0:n.validatedFilesSpec){var a=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),o=a(r),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(i.fileName,t.getCurrentDirectory()));return e.find(i.configFileSpecs.validatedFilesSpec,(function(t){return a(e.getNormalizedAbsolutePath(t,s))===o}))}}function f(t,r){var n,i,a=t.getCompilerOptions().configFile;if(null===(n=null==a?void 0:a.configFileSpecs)||void 0===n?void 0:n.validatedIncludeSpecs){var o=e.fileExtensionIs(r,".json"),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(a.fileName,t.getCurrentDirectory())),c=t.useCaseSensitiveFileNames();return e.find(null===(i=null==a?void 0:a.configFileSpecs)||void 0===i?void 0:i.validatedIncludeSpecs,(function(t){if(o&&!e.endsWith(t,".json"))return!1;var n=e.getPatternFromSpec(t,s,"files");return!!n&&e.getRegexFromPattern("("+n+")$",c).test(r)}))}}function g(t,r,n){var i,a,o=t.getCompilerOptions();if(e.isReferencedFile(r)){var s=e.getReferencedFileLocation((function(e){return t.getSourceFileByPath(e)}),r),c=e.isReferenceFileLocation(s)?s.file.text.substring(s.pos,s.end):'"'+s.text+'"',u=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(s)||r.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),r.kind){case e.FileIncludeKind.Import:u=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),u=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:u=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),u=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(r)}return e.chainDiagnosticMessages(void 0,u,c,m(s.file,n),s.packageId&&e.packageIdToString(s.packageId))}switch(r.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 l=e.getNormalizedAbsolutePath(t.getRootFileNames()[r.index],t.getCurrentDirectory());if(p(t,l))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var _=f(t,l);return _?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,_,m(o.configFile,n)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var d=r.kind===e.FileIncludeKind.OutputFromProjectReference,g=e.Debug.checkDefined(null===(a=t.getResolvedProjectReferences())||void 0===a?void 0:a[r.index]);return e.chainDiagnosticMessages(void 0,e.outFile(o)?d?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:d?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,m(g.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,o.types?r.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:r.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,r.typeReference,r.packageId&&e.packageIdToString(r.packageId));case e.FileIncludeKind.LibFile:if(void 0!==r.index)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,o.lib[r.index]);var y=e.forEachEntry(e.targetOptionDeclaration.type,(function(e,t){return e===o.target?t:void 0}));return e.chainDiagnosticMessages(void 0,y?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,y);default:e.Debug.assertNever(r)}}function m(t,r){var n=e.isString(t)?t:t.fileName;return r?r(n):n}function y(t,r,n,i,a,s,c,u){var _=!!t.getCompilerOptions().listFilesOnly,d=t.getConfigFileParsingDiagnostics().slice(),p=d.length;e.addRange(d,t.getSyntacticDiagnostics(void 0,s)),d.length===p&&(e.addRange(d,t.getOptionsDiagnostics(s)),_||(e.addRange(d,t.getGlobalDiagnostics(s)),d.length===p&&e.addRange(d,t.getSemanticDiagnostics(void 0,s))));var f=_?{emitSkipped:!0,diagnostics:e.emptyArray}:t.emit(void 0,a,s,c,u),g=f.emittedFiles,m=f.diagnostics;e.addRange(d,m);var y=e.sortAndDeduplicateDiagnostics(d);if(y.forEach(r),n){var v=t.getCurrentDirectory();e.forEach(g,(function(t){var r=e.getNormalizedAbsolutePath(t,v);n("TSFILE: "+r)})),l(t,n)}return i&&i(o(y)),{emitResult:f,diagnostics:y}}function v(t,r,n,i,a,o,s,c){var u=y(t,r,n,i,a,o,s,c),l=u.emitResult,_=u.diagnostics;return l.emitSkipped&&_.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:_.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function h(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||a(t),watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function b(t,r){var n=e.memoize((function(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}));return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),getDefaultLibLocation:n,getDefaultLibFileName:function(t){return e.combinePaths(n(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,i,a)},realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:function(e){return t.write(e+t.newLine)},createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,r,n){return t.writeFile(e,r,n)},createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram}}function x(t,r,n,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=b(t,r);return e.copyProperties(o,h(t,i)),o.afterProgramCreate=function(r){var i=r.getCompilerOptions(),c=e.getNewLineCharacter(i,(function(){return t.newLine}));y(r,n,a,(function(t){return o.onWatchStatusChange(e.createCompilerDiagnostic(s(t),t),c,i,t)}))},o}function D(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=r,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=i,e.createWatchStatusReporter=a,e.parseConfigFileWithSystem=function(t,r,n,i,a){var o=i;o.onUnRecoverableConfigFileDiagnostic=function(e){return D(i,a,e)};var s=e.getParsedCommandLineOfConfigFile(t,r,o,void 0,n);return o.onUnRecoverableConfigFileDiagnostic=void 0,s},e.getErrorCountForSummary=o,e.getWatchErrorSummaryDiagnosticMessage=s,e.getErrorSummaryText=c,e.isBuilderProgram=u,e.listFiles=l,e.explainFiles=_,e.explainIfFileIsRedirect=d,e.getMatchedFileSpec=p,e.getMatchedIncludeSpec=f,e.fileIncludeReasonToDiagnostics=g,e.emitFilesAndReportErrors=y,e.emitFilesAndReportErrorsAndGetExitStatus=v,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=h,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"},e.createWatchFactory=function(t,r){var n=t.trace?r.extendedDiagnostics?e.WatchLogLevel.Verbose:r.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=n!==e.WatchLogLevel.None?function(e){return t.trace(e)}:e.noop,a=e.getWatchFactory(t,n,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=function(t,r,n){void 0===n&&(n=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize((function(){return t.getNewLine()}));return{getSourceFile:function(n,i,a){var o;try{e.performance.mark("beforeIORead"),o=t.readFile(n,r().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(n,o,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(r,n,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,n,i,(function(e,r,n){return t.writeFile(e,r,n)}),(function(e){return t.createDirectory(e)}),(function(e){return t.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 t.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory)}},e.setGetSourceFileAsHashVersioned=function(t,r){var n=t.getSourceFile,i=e.maybeBind(r,r.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var a=n.call.apply(n,__spreadArray([t],e));return a&&(a.version=i(a.text)),a}},e.createProgramHost=b,e.createWatchCompilerHostOfConfigFile=function(e){var t=e.configFileName,n=e.optionsToExtend,i=e.watchOptionsToExtend,a=e.extraFileExtensions,o=e.system,s=e.createProgram,c=e.reportDiagnostic,u=e.reportWatchStatus,l=c||r(o),_=x(o,s,l,u);return _.onUnRecoverableConfigFileDiagnostic=function(e){return D(o,l,e)},_.configFileName=t,_.optionsToExtend=n,_.watchOptionsToExtend=i,_.extraFileExtensions=a,_},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e){var t=e.rootFiles,n=e.options,i=e.watchOptions,a=e.projectReferences,o=e.system,s=e.createProgram,c=e.reportDiagnostic,u=e.reportWatchStatus,l=x(o,s,c||r(o),u);return l.rootFiles=t,l.options=n,l.watchOptions=i,l.projectReferences=a,l},e.performIncrementalCompilation=function(t){var n=t.system||e.sys,i=t.host||(t.host=e.createIncrementalCompilerHost(t.options,n)),a=e.createIncrementalProgram(t),o=v(a,t.reportDiagnostic||r(n),(function(e){return i.trace&&i.trace(e)}),t.reportErrorSummary||t.options.pretty?function(e){return n.write(c(e,n.newLine))}:void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(a),o}}(ts||(ts={})),function(e){function t(t,r){if(!e.outFile(t)){var n=e.getTsBuildInfoEmitOutputFilePath(t);if(n){var i=r.readFile(n);if(i){var a=e.getBuildInfo(i);if(a.version===e.version&&a.program)return e.createBuildProgramUsingProgramBuildInfo(a.program,n,r)}}}}function r(t,r){void 0===r&&(r=e.sys);var n=e.createCompilerHostWorker(t,void 0,r);return n.createHash=e.maybeBind(r,r.createHash),e.setGetSourceFileAsHashVersioned(n,r),e.changeCompilerHostLikeToUseCache(n,(function(t){return e.toPath(t,n.getCurrentDirectory(),n.getCanonicalFileName)})),n}e.readBuilderProgram=t,e.createIncrementalCompilerHost=r,e.createIncrementalProgram=function(n){var i=n.rootNames,a=n.options,o=n.configFileParsingDiagnostics,s=n.projectReferences,c=n.host,u=n.createProgram;return c=c||r(a),(u=u||e.createEmitAndSemanticDiagnosticsBuilderProgram)(i,a,c,t(a,c),o,s)},e.createWatchCompilerHost=function(t,r,n,i,a,o,s,c){return e.isArray(t)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:t,options:r,watchOptions:c,projectReferences:s,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o}):e.createWatchCompilerHostOfConfigFile({configFileName:t,optionsToExtend:r,watchOptionsToExtend:s,extraFileExtensions:c,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o})},e.createWatchProgram=function(r){var n,i,a,o,s,c,u,l,_,d,p=new e.Map,f=!1,g=r.useCaseSensitiveFileNames(),m=r.getCurrentDirectory(),y=r.configFileName,v=r.optionsToExtend,h=void 0===v?{}:v,b=r.watchOptionsToExtend,x=r.extraFileExtensions,D=r.createProgram,S=r.rootFiles,T=r.options,C=r.watchOptions,E=r.projectReferences,k=!1,N=!1,A=void 0===y?void 0:e.createCachedDirectoryStructureHost(r,m,g),F=A||r,P=e.parseConfigHostFromCompilerHostLike(r,F),w=H();y&&r.configFileParsingResult&&(ue(r.configFileParsingResult),w=H()),ee(e.Diagnostics.Starting_compilation_in_watch_mode),y&&!r.configFileParsingResult&&(w=e.getNewLineCharacter(h,(function(){return r.getNewLine()})),e.Debug.assert(!S),ce(),w=H());var I,O=e.createWatchFactory(r,T),M=O.watchFile,L=O.watchDirectory,R=O.writeLog,B=e.createGetCanonicalFileName(g);R("Current directory: "+m+" CaseSensitiveFileNames: "+g),y&&(I=M(y,ae,e.PollingInterval.High,C,e.WatchType.ConfigFile));var j=e.createCompilerHostFromProgramHost(r,(function(){return T}),F);e.setGetSourceFileAsHashVersioned(j,r);var J=j.getSourceFile;j.getSourceFile=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Y.apply(void 0,__spreadArray([e,G(e)],t))},j.getSourceFileByPath=Y,j.getNewLine=function(){return w},j.fileExists=Q,j.onReleaseOldSourceFile=function(e,t,r){var n=p.get(e.resolvedPath);void 0!==n&&(X(n)?(l||(l=[])).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),p.delete(e.resolvedPath),r||z.removeResolutionsOfFile(e.path)))},j.toPath=G,j.getCompilationSettings=function(){return T},j.useSourceOfProjectReferenceRedirect=e.maybeBind(r,r.useSourceOfProjectReferenceRedirect),j.watchDirectoryOfFailedLookupLocation=function(t,r,n){return L(t,r,n,C,e.WatchType.FailedLookupLocations)},j.watchTypeRootsDirectory=function(t,r,n){return L(t,r,n,C,e.WatchType.TypeRoots)},j.getCachedDirectoryStructureHost=function(){return A},j.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!r.setTimeout||!r.clearTimeout)return z.invalidateResolutionsOfFailedLookupLocations();var e=re();R("Scheduling invalidateFailedLookup"+(e?", Cancelled earlier one":"")),u=r.setTimeout(ne,250)},j.onInvalidatedResolution=ie,j.onChangedAutomaticTypeDirectiveNames=ie,j.fileIsOpen=e.returnFalse,j.getCurrentProgram=q,j.writeLog=R;var z=e.createResolutionCache(j,y?e.getDirectoryPath(e.getNormalizedAbsolutePath(y,m)):m,!1);j.resolveModuleNames=r.resolveModuleNames?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.resolveModuleNames.apply(r,e)}:function(e,t,r,n){return z.resolveModuleNames(e,t,r,n)},j.resolveTypeReferenceDirectives=r.resolveTypeReferenceDirectives?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.resolveTypeReferenceDirectives.apply(r,e)}:function(e,t,r){return z.resolveTypeReferenceDirectives(e,t,r)};var U=!!r.resolveModuleNames||!!r.resolveTypeReferenceDirectives;return n=t(T,j),W(),ge(),ye(),y?{getCurrentProgram:K,getProgram:se,close:V}:{getCurrentProgram:K,getProgram:se,updateRootFileNames:function(t){e.Debug.assert(!y,"Cannot update root file names with config file watch mode"),S=t,ie()},close:V};function V(){re(),z.clear(),e.clearMap(p,(function(e){e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),I&&(I.close(),I=void 0),a&&(e.clearMap(a,e.closeFileWatcher),a=void 0),s&&(e.clearMap(s,e.closeFileWatcherOf),s=void 0),o&&(e.clearMap(o,e.closeFileWatcher),o=void 0)}function K(){return n}function q(){return n&&n.getProgramOrUndefined()}function W(){R("Synchronizing program"),re();var t=K();f&&(w=H(),t&&e.changesAffectModuleResolution(t.getCompilerOptions(),T)&&z.clear());var i=z.createHasInvalidatedResolution(U);return e.isProgramUptoDate(q(),S,T,$,Q,i,te,E)?N&&(n=D(void 0,void 0,j,n,d,E),N=!1):function(t){R("CreatingProgramWith::"),R(" roots: "+JSON.stringify(S)),R(" options: "+JSON.stringify(T));var r=f||!q();f=!1,N=!1,z.startCachingPerDirectoryResolution(),j.hasInvalidatedResolution=t,j.hasChangedAutomaticTypeDirectiveNames=te,n=D(S,T,j,n,d,E),z.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(n.getProgram(),o||(o=new e.Map),pe),r&&z.updateTypeRootsWatch();if(l){for(var i=0,a=l;i<a.length;i++){var s=a[i];o.has(s)||p.delete(s)}l=void 0}}(i),r.afterProgramCreate&&t!==n&&r.afterProgramCreate(n),n}function H(){return e.getNewLineCharacter(T||h,(function(){return r.getNewLine()}))}function G(t){return e.toPath(t,m,B)}function X(e){return"boolean"==typeof e}function Q(e){var t=G(e);return!X(p.get(t))&&F.fileExists(e)}function Y(t,r,n,i,a){var o=p.get(r);if(!X(o)){if(void 0===o||a||function(e){return"boolean"==typeof e.version}(o)){var s=J(t,n,i);if(o)s?(o.sourceFile=s,o.version=s.version,o.fileWatcher||(o.fileWatcher=le(r,t,_e,e.PollingInterval.Low,C,e.WatchType.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),p.set(r,!1));else if(s){var c=le(r,t,_e,e.PollingInterval.Low,C,e.WatchType.SourceFile);p.set(r,{sourceFile:s,version:s.version,fileWatcher:c})}else p.set(r,!1);return s}return o.sourceFile}}function Z(e){var t=p.get(e);void 0!==t&&(X(t)?p.set(e,{version:!1}):t.version=!1)}function $(e){var t=p.get(e);return t&&t.version?t.version:void 0}function ee(t){r.onWatchStatusChange&&r.onWatchStatusChange(e.createCompilerDiagnostic(t),w,T||h)}function te(){return z.hasChangedAutomaticTypeDirectiveNames()}function re(){return!!u&&(r.clearTimeout(u),u=void 0,!0)}function ne(){u=void 0,z.invalidateResolutionsOfFailedLookupLocations()&&ie()}function ie(){r.setTimeout&&r.clearTimeout&&(c&&r.clearTimeout(c),R("Scheduling update"),c=r.setTimeout(oe,250))}function ae(){e.Debug.assert(!!y),i=e.ConfigFileProgramReloadLevel.Full,ie()}function oe(){c=void 0,ee(e.Diagnostics.File_change_detected_Starting_incremental_compilation),se()}function se(){switch(i){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),function(){R("Reloading new file names and options"),S=e.getFileNamesFromConfigSpecs(T.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(y),m),T,P,x),e.updateErrorForNoInputFiles(S,e.getNormalizedAbsolutePath(y,m),T.configFile.configFileSpecs,d,k)&&(N=!0);W()}();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),function(){R("Reloading config file: "+y),i=e.ConfigFileProgramReloadLevel.None,A&&A.clearCache();ce(),f=!0,W(),ge(),ye()}();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),W()}return e.perfLogger.logStopUpdateProgram("Done"),K()}function ce(){ue(e.getParsedCommandLineOfConfigFile(y,h,P,void 0,b,x))}function ue(t){S=t.fileNames,T=t.options,C=t.watchOptions,E=t.projectReferences,_=t.wildcardDirectories,d=e.getConfigFileParsingDiagnostics(t).slice(),k=e.canJsonReportNoInputFiles(t.raw),N=!0}function le(e,t,r,n,i,a){return M(t,(function(t,n){return r(t,n,e)}),n,i,a)}function _e(t,r,n){de(t,n,r),r===e.FileWatcherEventKind.Deleted&&p.has(n)&&z.invalidateResolutionOfFile(n),z.removeResolutionsFromProjectReferenceRedirects(n),Z(n),ie()}function de(e,t,r){A&&A.addOrDeleteFile(e,t,r)}function pe(t){return le(t,t,fe,e.PollingInterval.Medium,C,e.WatchType.MissingFile)}function fe(t,r,n){de(t,n,r),r===e.FileWatcherEventKind.Created&&o.has(n)&&(o.get(n).close(),o.delete(n),Z(n),ie())}function ge(){_?e.updateWatchingWildcardDirectories(s||(s=new e.Map),new e.Map(e.getEntries(_)),me):s&&e.clearMap(s,e.closeFileWatcherOf)}function me(t,r){return L(t,(function(r){e.Debug.assert(!!y);var n=G(r);A&&A.addOrDeleteFileOrDirectory(r,n),Z(n),e.isIgnoredFileFromWildCardWatching({watchedDirPath:G(t),fileOrDirectory:r,fileOrDirectoryPath:n,configFileName:y,extraFileExtensions:x,options:T,program:K(),currentDirectory:m,useCaseSensitiveFileNames:g,writeLog:R})||i!==e.ConfigFileProgramReloadLevel.Full&&(i=e.ConfigFileProgramReloadLevel.Partial,ie())}),r,C,e.WatchType.WildcardDirectory)}function ye(){var t;e.mutateMap(a||(a=new e.Map),e.arrayToMap((null===(t=T.configFile)||void 0===t?void 0:t.extendedSourceFiles)||e.emptyArray,G),{createNewValue:ve,onDeleteValue:e.closeFileWatcher})}function ve(t){return M(t,ae,e.PollingInterval.High,C,e.WatchType.ExtendedConfigFile)}}}(ts||(ts={})),function(e){!function(e){e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.UpstreamOutOfDate=7]="UpstreamOutOfDate",e[e.UpstreamBlocked=8]="UpstreamBlocked",e[e.ComputingUpstream=9]="ComputingUpstream",e[e.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",e[e.ContainerOnly=11]="ContainerOnly"}(e.UpToDateStatusType||(e.UpToDateStatusType={})),e.resolveConfigFileProjectName=function(t){return e.fileExtensionIs(t,".json")?t:e.combinePaths(t,"tsconfig.json")}}(ts||(ts={})),function(e){var t,r,n,i=new Date(-864e13),a=new Date(864e13);function o(t,r){return function(e,t,r){var n,i=e.get(t);return i||(n=r(),e.set(t,n)),i||n}(t,r,(function(){return new e.Map}))}function s(e,t){return t>e?t:e}function c(t){return e.fileExtensionIs(t,".d.ts")}function u(e){return!!e&&!!e.buildOrder}function l(e){return u(e)?e.buildOrder:e}function _(t,r){return function(n){var i=r?"["+e.formatColorAndReset(e.getLocaleTimeString(t),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(t)+" - ";i+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(t.newLine+t.newLine),t.write(i)}}function d(t,r,n,i){var a=e.createProgramHost(t,r);return a.getModifiedTime=t.getModifiedTime?function(e){return t.getModifiedTime(e)}:e.returnUndefined,a.setModifiedTime=t.setModifiedTime?function(e,r){return t.setModifiedTime(e,r)}:e.noop,a.deleteFile=t.deleteFile?function(e){return t.deleteFile(e)}:e.noop,a.reportDiagnostic=n||e.createDiagnosticReporter(t),a.reportSolutionBuilderStatus=i||_(t),a.now=e.maybeBind(t,t.now),a}function p(t,r,n,i,a){var o,s,c=r,u=r,l=c.getCurrentDirectory(),_=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),d=(o=i,s={},e.commonOptionsWithBuild.forEach((function(t){e.hasProperty(o,t.name)&&(s[t.name]=o[t.name])})),s),p=e.createCompilerHostFromProgramHost(c,(function(){return D.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(p,c),p.getParsedCommandLine=function(e){return y(D,e,g(D,e))},p.resolveModuleNames=e.maybeBind(c,c.resolveModuleNames),p.resolveTypeReferenceDirectives=e.maybeBind(c,c.resolveTypeReferenceDirectives);var f=p.resolveModuleNames?void 0:e.createModuleResolutionCache(l,_);if(!p.resolveModuleNames){var m=function(t,r,n){return e.resolveModuleName(t,r,D.projectCompilerOptions,p,f,n).resolvedModule};p.resolveModuleNames=function(t,r,n,i){return e.loadWithLocalCache(e.Debug.checkEachDefined(t),r,i,m)}}var v=e.createWatchFactory(u,i),h=v.watchFile,b=v.watchDirectory,x=v.writeLog,D={host:c,hostWithWatch:u,currentDirectory:l,getCanonicalFileName:_,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(c),write:e.maybeBind(c,c.trace),options:i,baseCompilerOptions:d,rootNames:n,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:p,moduleResolutionCache:f,buildOrder:void 0,readFileWithCache:function(e){return c.readFile(e)},projectCompilerOptions:d,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,currentInvalidatedProject:void 0,watch:t,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:h,watchDirectory:b,writeLog:x};return D}function f(t,r){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function g(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;var i=f(e,t);return r.set(t,i),i}function m(e){return!!e.options}function y(t,r,n){var i,a=t.configFileCache,o=a.get(n);if(o)return m(o)?o:void 0;var s,c=t.parseConfigFileHost,u=t.baseCompilerOptions,l=t.baseWatchOptions,_=t.extendedConfigCache,d=t.host;return d.getParsedCommandLine?(s=d.getParsedCommandLine(r))||(i=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,r)):(c.onUnRecoverableConfigFileDiagnostic=function(e){return i=e},s=e.getParsedCommandLineOfConfigFile(r,u,c,_,l),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(n,s||i),s}function v(t,r){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,r))}function h(t,r){for(var n,i,a=new e.Map,o=new e.Map,s=[],c=0,u=r;c<u.length;c++){l(u[c])}return i?{buildOrder:n||e.emptyArray,circularDiagnostics:i}:n||e.emptyArray;function l(r,c){var u=g(t,r);if(!o.has(u))if(a.has(u))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(u,!0),s.push(r);var _=y(t,r,u);if(_&&_.projectReferences)for(var d=0,p=_.projectReferences;d<p.length;d++){var f=p[d];l(v(t,f.path),c||f.circular)}s.pop(),o.set(u,!0),(n||(n=[])).push(r)}}}function b(t){return t.buildOrder||function(t){var r=h(t,t.rootNames.map((function(e){return v(t,e)})));t.resolvedConfigFilePaths.clear();var n=new e.Map(l(r).map((function(e){return[g(t,e),!0]}))),i={onDeleteValue:e.noop};e.mutateMapSkippingNewValues(t.configFileCache,n,i),e.mutateMapSkippingNewValues(t.projectStatus,n,i),e.mutateMapSkippingNewValues(t.buildInfoChecked,n,i),e.mutateMapSkippingNewValues(t.builderPrograms,n,i),e.mutateMapSkippingNewValues(t.diagnostics,n,i),e.mutateMapSkippingNewValues(t.projectPendingBuild,n,i),e.mutateMapSkippingNewValues(t.projectErrorsReported,n,i),t.watch&&(e.mutateMapSkippingNewValues(t.allWatchedConfigFiles,n,{onDeleteValue:e.closeFileWatcher}),t.allWatchedExtendedConfigFiles.forEach((function(e){e.projects.forEach((function(t){n.has(t)||e.projects.delete(t)})),e.close()})),e.mutateMapSkippingNewValues(t.allWatchedWildcardDirectories,n,{onDeleteValue:function(t){return t.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(t.allWatchedInputFiles,n,{onDeleteValue:function(t){return t.forEach(e.closeFileWatcher)}}));return t.buildOrder=r}(t)}function x(t,r,n){var i=r&&v(t,r),a=b(t);if(u(a))return a;if(i){var o=g(t,i);if(-1===e.findIndex(a,(function(e){return g(t,e)===o})))return}var s=i?h(t,[i]):a;return e.Debug.assert(!u(s)),e.Debug.assert(!n||void 0!==i),e.Debug.assert(!n||s[s.length-1]===i),n?s.slice(0,s.length-1):s}function D(t){t.cache&&S(t);var r=t.compilerHost,n=t.host,i=t.readFileWithCache,a=r.getSourceFile,o=e.changeCompilerHostLikeToUseCache(n,(function(e){return f(t,e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.call.apply(a,__spreadArray([r],e))})),s=o.originalReadFile,c=o.originalFileExists,u=o.originalDirectoryExists,l=o.originalCreateDirectory,_=o.originalWriteFile,d=o.getSourceFileWithCache,p=o.readFileWithCache;t.readFileWithCache=p,r.getSourceFile=d,t.cache={originalReadFile:s,originalFileExists:c,originalDirectoryExists:u,originalCreateDirectory:l,originalWriteFile:_,originalReadFileWithCache:i,originalGetSourceFile:a}}function S(e){if(e.cache){var t=e.cache,r=e.host,n=e.compilerHost,i=e.extendedConfigCache,a=e.moduleResolutionCache;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,n.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),a&&(a.directoryToModuleNameMap.clear(),a.moduleNameToDirectoryMap.clear()),e.cache=void 0}}function T(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function C(e,t,r){var n=e.projectPendingBuild,i=n.get(t);(void 0===i||i<r)&&n.set(t,r)}function E(t,r){t.allProjectBuildPending&&(t.allProjectBuildPending=!1,t.options.watch&&$(t,e.Diagnostics.Starting_compilation_in_watch_mode),D(t),l(b(t)).forEach((function(r){return t.projectPendingBuild.set(g(t,r),e.ConfigFileProgramReloadLevel.None)})),r&&r.throwIfCancellationRequested())}function k(t,r){return t.projectPendingBuild.delete(r),t.currentInvalidatedProject=void 0,t.diagnostics.has(r)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function N(e,t,n,i,a){var o=!0;return{kind:r.UpdateOutputFileStamps,project:t,projectPath:n,buildOrder:a,getCompilerOptions:function(){return i.options},getCurrentDirectory:function(){return e.currentDirectory},updateOutputFileStatmps:function(){B(e,i,n),o=!1},done:function(){return o&&B(e,i,n),k(e,n)}}}function A(o,u,l,_,d,p,m){var h,b,x,D=o===r.Build?n.CreateProgram:n.EmitBundle;return o===r.Build?{kind:o,project:l,projectPath:_,buildOrder:m,getCompilerOptions:function(){return p.options},getCurrentDirectory:function(){return u.currentDirectory},getBuilderProgram:function(){return T(e.identity)},getProgram:function(){return T((function(e){return e.getProgramOrUndefined()}))},getSourceFile:function(e){return T((function(t){return t.getSourceFile(e)}))},getSourceFiles:function(){return C((function(e){return e.getSourceFiles()}))},getOptionsDiagnostics:function(e){return C((function(t){return t.getOptionsDiagnostics(e)}))},getGlobalDiagnostics:function(e){return C((function(t){return t.getGlobalDiagnostics(e)}))},getConfigFileParsingDiagnostics:function(){return C((function(e){return e.getConfigFileParsingDiagnostics()}))},getSyntacticDiagnostics:function(e,t){return C((function(r){return r.getSyntacticDiagnostics(e,t)}))},getAllDependencies:function(e){return C((function(t){return t.getAllDependencies(e)}))},getSemanticDiagnostics:function(e,t){return C((function(r){return r.getSemanticDiagnostics(e,t)}))},getSemanticDiagnosticsOfNextAffectedFile:function(e,t){return T((function(r){return r.getSemanticDiagnosticsOfNextAffectedFile&&r.getSemanticDiagnosticsOfNextAffectedFile(e,t)}))},emit:function(e,t,r,i,a){return e||i?T((function(n){return n.emit(e,t,r,i,a)})):(z(n.SemanticDiagnostics,r),D===n.EmitBuildInfo?L(t,r):D===n.Emit?M(t,r,a):void 0)},done:S}:{kind:o,project:l,projectPath:_,buildOrder:m,getCompilerOptions:function(){return p.options},getCurrentDirectory:function(){return u.currentDirectory},emit:function(e,t){return D!==n.EmitBundle?x:J(e,t)},done:S};function S(e,t,r){return z(n.Done,e,t,r),k(u,_)}function T(e){return z(n.CreateProgram),h&&e(h)}function C(t){return T(t)||e.emptyArray}function E(){if(e.Debug.assert(void 0===h),u.options.dry)return Z(u,e.Diagnostics.A_non_dry_build_would_build_project_0,l),b=t.Success,void(D=n.QueueReferencingProjects);if(u.options.verbose&&Z(u,e.Diagnostics.Building_project_0,l),0===p.fileNames.length)return te(u,_,e.getConfigFileParsingDiagnostics(p)),b=t.None,void(D=n.QueueReferencingProjects);var r=u.host,i=u.compilerHost;u.projectCompilerOptions=p.options,function(t,r,n){if(!t.moduleResolutionCache)return;var i=t.moduleResolutionCache,a=f(t,r);if(0===i.directoryToModuleNameMap.redirectsMap.size)e.Debug.assert(0===i.moduleNameToDirectoryMap.redirectsMap.size),i.directoryToModuleNameMap.redirectsMap.set(a,i.directoryToModuleNameMap.ownMap),i.moduleNameToDirectoryMap.redirectsMap.set(a,i.moduleNameToDirectoryMap.ownMap);else{e.Debug.assert(i.moduleNameToDirectoryMap.redirectsMap.size>0);var o={sourceFile:n.options.configFile,commandLine:n};i.directoryToModuleNameMap.setOwnMap(i.directoryToModuleNameMap.getOrCreateMapOfCacheRedirects(o)),i.moduleNameToDirectoryMap.setOwnMap(i.moduleNameToDirectoryMap.getOrCreateMapOfCacheRedirects(o))}i.directoryToModuleNameMap.setOwnOptions(n.options),i.moduleNameToDirectoryMap.setOwnOptions(n.options)}(u,l,p),h=r.createProgram(p.fileNames,p.options,i,function(t,r,n){var i=t.options,a=t.builderPrograms,o=t.compilerHost;if(i.force)return;var s=a.get(r);return s||e.readBuilderProgram(n.options,o)}(u,_,p),e.getConfigFileParsingDiagnostics(p),p.projectReferences),u.watch&&u.builderPrograms.set(_,h),D++}function N(e,t,r){var n;e.length?(n=O(u,_,h,p,e,t,r),b=n.buildResult,D=n.step):D++}function F(r){e.Debug.assertIsDefined(h),N(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],h.getConfigFileParsingDiagnostics()),h.getOptionsDiagnostics(r)),h.getGlobalDiagnostics(r)),h.getSyntacticDiagnostics(void 0,r)),t.SyntaxErrors,"Syntactic")}function P(r){N(e.Debug.checkDefined(h).getSemanticDiagnostics(void 0,r),t.TypeErrors,"Semantic")}function M(r,a,o){var l,d;e.Debug.assertIsDefined(h),e.Debug.assert(D===n.Emit),h.backupState();var g=[],m=e.emitFilesAndReportErrors(h,(function(e){return(d||(d=[])).push(e)}),void 0,void 0,(function(e,t,r){return g.push({name:e,text:t,writeByteOrderMark:r})}),a,!1,o).emitResult;if(d)return h.restoreState(),l=O(u,_,h,p,d,t.DeclarationEmitErrors,"Declaration file"),b=l.buildResult,D=l.step,{emitSkipped:!0,diagnostics:m.diagnostics};var y=u.host,v=u.compilerHost,x=t.DeclarationOutputUnchanged,S=i,T=!1,C=e.createDiagnosticCollection(),E=new e.Map;return g.forEach((function(n){var i,a=n.name,o=n.text,l=n.writeByteOrderMark;!T&&c(a)&&(y.fileExists(a)&&u.readFileWithCache(a)===o?i=y.getModifiedTime(a):(x&=~t.DeclarationOutputUnchanged,T=!0)),E.set(f(u,a),a),e.writeFile(r?{writeFile:r}:v,C,a,o,l),void 0!==i&&(S=s(i,S))})),B(C,E,S,T,g.length?g[0].name:e.getFirstProjectOutput(p,!y.useCaseSensitiveFileNames()),x),m}function L(r,i){e.Debug.assertIsDefined(h),e.Debug.assert(D===n.EmitBuildInfo);var a=h.emitBuildInfo(r,i);return a.diagnostics.length&&(ee(u,a.diagnostics),u.diagnostics.set(_,__spreadArray(__spreadArray([],u.diagnostics.get(_)),a.diagnostics)),b=t.EmitErrors&b),a.emittedFiles&&u.write&&a.emittedFiles.forEach((function(e){return w(u,p,e)})),I(u,h,p),D=n.QueueReferencingProjects,a}function B(r,i,o,s,c,l){var d,f=r.getDiagnostics();if(f.length)return d=O(u,_,h,p,f,t.EmitErrors,"Emit"),b=d.buildResult,D=d.step,f;u.write&&i.forEach((function(e){return w(u,p,e)}));var g=R(u,p,o,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,i);return u.diagnostics.delete(_),u.projectStatus.set(_,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:s?a:g,oldestOutputFileName:c}),I(u,h,p),D=n.QueueReferencingProjects,b=l,f}function J(a,s){if(e.Debug.assert(o===r.UpdateBundle),u.options.dry)return Z(u,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,l),b=t.Success,void(D=n.QueueReferencingProjects);u.options.verbose&&Z(u,e.Diagnostics.Updating_output_of_project_0,l);var c=u.compilerHost;u.projectCompilerOptions=p.options;var h=e.emitUsingBuildInfo(p,c,(function(e){var t=v(u,e.path);return y(u,t,g(u,t))}),s);if(e.isString(h))return Z(u,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,l,Y(u,h)),D=n.BuildInvalidatedProjectOfBundle,x=A(r.Build,u,l,_,d,p,m);e.Debug.assert(!!h.length);var S=e.createDiagnosticCollection(),T=new e.Map;return h.forEach((function(t){var r=t.name,n=t.text,i=t.writeByteOrderMark;T.set(f(u,r),r),e.writeFile(a?{writeFile:a}:c,S,r,n,i)})),{emitSkipped:!1,diagnostics:B(S,T,i,!1,h[0].name,t.DeclarationOutputUnchanged)}}function z(t,r,i,a){for(;D<=t&&D<n.Done;){var o=D;switch(D){case n.CreateProgram:E();break;case n.SyntaxDiagnostics:F(r);break;case n.SemanticDiagnostics:P(r);break;case n.Emit:M(i,r,a);break;case n.EmitBuildInfo:L(i,r);break;case n.EmitBundle:J(i,a);break;case n.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(x).done(r),D=n.Done;break;case n.QueueReferencingProjects:j(u,l,_,d,p,m,e.Debug.checkDefined(b)),D++;break;case n.Done:default:e.assertType(D)}e.Debug.assert(D>o)}}}function F(t,r,n){var i=t.options;return!(r.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force)||(0===n.fileNames.length||!!e.getConfigFileParsingDiagnostics(n).length||!e.isIncrementalCompilation(n.options))}function P(t,n,i){if(t.projectPendingBuild.size&&!u(n)){if(t.currentInvalidatedProject)return e.arrayIsEqualTo(t.currentInvalidatedProject.buildOrder,n)?t.currentInvalidatedProject:void 0;for(var a=t.options,o=t.projectPendingBuild,s=0;s<n.length;s++){var c=n[s],l=g(t,c),_=t.projectPendingBuild.get(l);if(void 0!==_){i&&(i=!1,ie(t,n));var d=y(t,c,l);if(d){_===e.ConfigFileProgramReloadLevel.Full?(W(t,c,l,d),H(t,l,d),G(t,c,l,d),X(t,c,l,d)):_===e.ConfigFileProgramReloadLevel.Partial&&(d.fileNames=e.getFileNamesFromConfigSpecs(d.options.configFile.configFileSpecs,e.getDirectoryPath(c),d.options,t.parseConfigFileHost),e.updateErrorForNoInputFiles(d.fileNames,c,d.options.configFile.configFileSpecs,d.errors,e.canJsonReportNoInputFiles(d.raw)),X(t,c,l,d));var p=L(t,d,l);if(ae(t,c,p),!a.force){if(p.type===e.UpToDateStatusType.UpToDate){te(t,l,e.getConfigFileParsingDiagnostics(d)),o.delete(l),a.dry&&Z(t,e.Diagnostics.Project_0_is_up_to_date,c);continue}if(p.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return te(t,l,e.getConfigFileParsingDiagnostics(d)),N(t,c,l,d,n)}if(p.type!==e.UpToDateStatusType.UpstreamBlocked){if(p.type!==e.UpToDateStatusType.ContainerOnly)return A(F(t,p,d)?r.Build:r.UpdateBundle,t,c,l,s,d,n);te(t,l,e.getConfigFileParsingDiagnostics(d)),o.delete(l)}else te(t,l,e.getConfigFileParsingDiagnostics(d)),o.delete(l),a.verbose&&Z(t,p.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,p.upstreamProjectName)}else re(t,l),o.delete(l)}}}}function w(e,t,r){var n=e.write;n&&t.options.listEmittedFiles&&n("TSFILE: "+r)}function I(t,r,n){r?(r&&t.write&&e.listFiles(r,t.write),t.host.afterProgramEmitAndDiagnostics&&t.host.afterProgramEmitAndDiagnostics(r),r.releaseProgram()):t.host.afterEmitBundle&&t.host.afterEmitBundle(n),t.projectCompilerOptions=t.baseCompilerOptions}function O(r,i,a,o,s,c,u){var l=!(c&t.SyntaxErrors)&&a&&!e.outFile(a.getCompilerOptions());return te(r,i,s),r.projectStatus.set(i,{type:e.UpToDateStatusType.Unbuildable,reason:u+" errors"}),l?{buildResult:c,step:n.EmitBuildInfo}:(I(r,a,o),{buildResult:c,step:n.QueueReferencingProjects})}function M(t,r,n,i){if(n<(t.host.getModifiedTime(r)||e.missingFileModifiedTime))return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:i,newerInputFileName:r}}function L(t,r,n){if(void 0===r)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var o=t.projectStatus.get(n);if(void 0!==o)return o;var u=function(t,r,n){for(var o=void 0,u=i,l=t.host,_=0,d=r.fileNames;_<d.length;_++){var p=d[_];if(!l.fileExists(p))return{type:e.UpToDateStatusType.Unbuildable,reason:p+" does not exist"};var f=l.getModifiedTime(p)||e.missingFileModifiedTime;f>u&&(o=p,u=f)}if(!r.fileNames.length&&!e.canJsonReportNoInputFiles(r.raw))return{type:e.UpToDateStatusType.ContainerOnly};for(var m,v=e.getAllProjectOutputs(r,!l.useCaseSensitiveFileNames()),h="(none)",b=a,x="(none)",D=i,S=i,T=!1,C=0,E=v;C<E.length;C++){var k=E[C];if(!l.fileExists(k)){m=k;break}var N=l.getModifiedTime(k)||e.missingFileModifiedTime;if(N<b&&(b=N,h=k),N<u){T=!0;break}N>D&&(D=N,x=k),c(k)&&(S=s(S,l.getModifiedTime(k)||e.missingFileModifiedTime))}var A,F=!1,P=!1;if(r.projectReferences){t.projectStatus.set(n,{type:e.UpToDateStatusType.ComputingUpstream});for(var w=0,I=r.projectReferences;w<I.length;w++){var O=I[w];P=P||!!O.prepend;var R=e.resolveProjectReferencePath(O),B=g(t,R),j=L(t,y(t,R,B),B);if(j.type!==e.UpToDateStatusType.ComputingUpstream&&j.type!==e.UpToDateStatusType.ContainerOnly){if(j.type===e.UpToDateStatusType.Unbuildable||j.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:O.path,upstreamProjectBlocked:j.type===e.UpToDateStatusType.UpstreamBlocked};if(j.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:O.path};if(!m){if(j.newestInputFileTime&&j.newestInputFileTime<=b)continue;if(j.newestDeclarationFileContentChangedTime&&j.newestDeclarationFileContentChangedTime<=b){F=!0,A=O.path;continue}return e.Debug.assert(void 0!==h,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:h,newerProjectName:O.path}}}}}if(void 0!==m)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:m};if(T)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:h,newerInputFileName:o};var J=M(t,r.options.configFilePath,b,h);if(J)return J;var z=e.forEach(r.options.configFile.extendedSourceFiles||e.emptyArray,(function(e){return M(t,e,b,h)}));if(z)return z;if(!t.buildInfoChecked.has(n)){t.buildInfoChecked.set(n,!0);var U=e.getTsBuildInfoEmitOutputFilePath(r.options);if(U){var V=t.readFileWithCache(U),K=V&&e.getBuildInfo(V);if(K&&(K.bundle||K.program)&&K.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:K.version}}}return P&&F?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:h,newerProjectName:A}:{type:F?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:S,newestInputFileTime:u,newestOutputFileTime:D,newestInputFileName:o,newestOutputFileName:x,oldestOutputFileName:h}}(t,r,n);return t.projectStatus.set(n,u),u}function R(t,r,n,i,a){var o=t.host,u=e.getAllProjectOutputs(r,!o.useCaseSensitiveFileNames());if(!a||u.length!==a.size)for(var l=!!t.options.verbose,_=o.now?o.now():new Date,d=0,p=u;d<p.length;d++){var g=p[d];a&&a.has(f(t,g))||(l&&(l=!1,Z(t,i,r.options.configFilePath)),c(g)&&(n=s(n,o.getModifiedTime(g)||e.missingFileModifiedTime)),o.setModifiedTime(g,_))}return n}function B(t,r,n){if(t.options.dry)return Z(t,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,r.options.configFilePath);var a=R(t,r,i,e.Diagnostics.Updating_output_timestamps_of_project_0);t.projectStatus.set(n,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:a,oldestOutputFileName:e.getFirstProjectOutput(r,!t.host.useCaseSensitiveFileNames())})}function j(r,n,i,a,o,s,c){if(!(c&t.AnyErrors)&&o.options.composite)for(var u=a+1;u<s.length;u++){var l=s[u],_=g(r,l);if(!r.projectPendingBuild.has(_)){var d=y(r,l,_);if(d&&d.projectReferences)for(var p=0,f=d.projectReferences;p<f.length;p++){var m=f[p];if(g(r,v(r,m.path))===i){var h=r.projectStatus.get(_);if(h)switch(h.type){case e.UpToDateStatusType.UpToDate:if(c&t.DeclarationOutputUnchanged){m.prepend?r.projectStatus.set(_,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:h.oldestOutputFileName,newerProjectName:n}):h.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:c&t.DeclarationOutputUnchanged||r.projectStatus.set(_,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:h.type===e.UpToDateStatusType.OutOfDateWithPrepend?h.outOfDateOutputFileName:h.oldestOutputFileName,newerProjectName:n});break;case e.UpToDateStatusType.UpstreamBlocked:g(r,v(r,h.upstreamProjectName))===i&&T(r,_)}C(r,_,e.ConfigFileProgramReloadLevel.None);break}}}}}function J(t,r,n,i){var a=x(t,r,i);if(!a)return e.ExitStatus.InvalidProject_OutputsSkipped;E(t,n);for(var o=!0,s=0;;){var c=P(t,a,o);if(!c)break;o=!1,c.done(n),t.diagnostics.has(c.projectPath)||s++}return S(t),ne(t,a),function(e,t){if(!e.watchAllProjectsPending)return;e.watchAllProjectsPending=!1;for(var r=0,n=l(t);r<n.length;r++){var i=n[r],a=g(e,i),o=y(e,i,a);W(e,i,a,o),H(e,a,o),o&&(G(e,i,a,o),X(e,i,a,o))}}(t,a),u(a)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:a.some((function(e){return t.diagnostics.has(g(t,e))}))?s?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function z(t,r,n){var i=x(t,r,n);if(!i)return e.ExitStatus.InvalidProject_OutputsSkipped;if(u(i))return ee(t,i.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var a=t.options,o=t.host,s=a.dry?[]:void 0,c=0,l=i;c<l.length;c++){var _=l[c],d=g(t,_),p=y(t,_,d);if(void 0!==p)for(var f=0,m=e.getAllProjectOutputs(p,!o.useCaseSensitiveFileNames());f<m.length;f++){var v=m[f];o.fileExists(v)&&(s?s.push(v):(o.deleteFile(v),U(t,d,e.ConfigFileProgramReloadLevel.None)))}else re(t,d)}return s&&Z(t,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 U(t,r,n){t.host.getParsedCommandLine&&n===e.ConfigFileProgramReloadLevel.Partial&&(n=e.ConfigFileProgramReloadLevel.Full),n===e.ConfigFileProgramReloadLevel.Full&&(t.configFileCache.delete(r),t.buildOrder=void 0),t.needsSummary=!0,T(t,r),C(t,r,n),D(t)}function V(e,t,r){e.reportFileChangeDetected=!0,U(e,t,r),K(e)}function K(e){var t=e.hostWithWatch;t.setTimeout&&t.clearTimeout&&(e.timerToBuildInvalidatedProject&&t.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=t.setTimeout(q,250,e))}function q(t){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),$(t,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var r=b(t),n=P(t,r,!1);n&&(n.done(),t.projectPendingBuild.size)?t.watch&&!t.timerToBuildInvalidatedProject&&K(t):(S(t),ne(t,r))}function W(t,r,n,i){t.watch&&!t.allWatchedConfigFiles.has(n)&&t.allWatchedConfigFiles.set(n,t.watchFile(r,(function(){V(t,n,e.ConfigFileProgramReloadLevel.Full)}),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.ConfigFile,r))}function H(t,r,n){e.updateSharedExtendedConfigFileWatcher(r,n,t.allWatchedExtendedConfigFiles,(function(r,i){return t.watchFile(r,(function(){var r;return null===(r=t.allWatchedExtendedConfigFiles.get(i))||void 0===r?void 0:r.projects.forEach((function(r){return V(t,r,e.ConfigFileProgramReloadLevel.Full)}))}),e.PollingInterval.High,null==n?void 0:n.watchOptions,e.WatchType.ExtendedConfigFile)}),(function(e){return f(t,e)}))}function G(t,r,n,i){t.watch&&e.updateWatchingWildcardDirectories(o(t.allWatchedWildcardDirectories,n),new e.Map(e.getEntries(i.wildcardDirectories)),(function(a,o){return t.watchDirectory(a,(function(o){e.isIgnoredFileFromWildCardWatching({watchedDirPath:f(t,a),fileOrDirectory:o,fileOrDirectoryPath:f(t,o),configFileName:r,currentDirectory:t.currentDirectory,options:i.options,program:t.builderPrograms.get(n),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(e){return t.writeLog(e)}})||V(t,n,e.ConfigFileProgramReloadLevel.Partial)}),o,null==i?void 0:i.watchOptions,e.WatchType.WildcardDirectory,r)}))}function X(t,r,n,i){t.watch&&e.mutateMap(o(t.allWatchedInputFiles,n),e.arrayToMap(i.fileNames,(function(e){return f(t,e)})),{createNewValue:function(a,o){return t.watchFile(o,(function(){return V(t,n,e.ConfigFileProgramReloadLevel.None)}),e.PollingInterval.Low,null==i?void 0:i.watchOptions,e.WatchType.SourceFile,r)},onDeleteValue:e.closeFileWatcher})}function Q(t,r,n,i,a){var o=p(t,r,n,i,a);return{build:function(e,t){return J(o,e,t)},clean:function(e){return z(o,e)},buildReferences:function(e,t){return J(o,e,t,!0)},cleanReferences:function(e){return z(o,e,!0)},getNextInvalidatedProject:function(e){return E(o,e),P(o,b(o),!1)},getBuildOrder:function(){return b(o)},getUpToDateStatusOfProject:function(e){var t=v(o,e),r=g(o,t);return L(o,y(o,t,r),r)},invalidateProject:function(t,r){return U(o,t,r||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return q(o)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(o.configFileCache.values(),(function(e){return m(e)?e:void 0})))},close:function(){return function(t){e.clearMap(t.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(t.allWatchedExtendedConfigFiles,(function(e){e.projects.clear(),e.close()})),e.clearMap(t.allWatchedWildcardDirectories,(function(t){return e.clearMap(t,e.closeFileWatcherOf)})),e.clearMap(t.allWatchedInputFiles,(function(t){return e.clearMap(t,e.closeFileWatcher)}))}(o)}}}function Y(t,r){return e.convertToRelativePath(r,t.currentDirectory,(function(e){return t.getCanonicalFileName(e)}))}function Z(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,__spreadArray([r],n)))}function $(t,r){for(var n,i,a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];null===(i=(n=t.hostWithWatch).onWatchStatusChange)||void 0===i||i.call(n,e.createCompilerDiagnostic.apply(void 0,__spreadArray([r],a)),t.host.getNewLine(),t.baseCompilerOptions)}function ee(e,t){var r=e.host;t.forEach((function(e){return r.reportDiagnostic(e)}))}function te(e,t,r){ee(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function re(e,t){te(e,t,[e.configFileCache.get(t)])}function ne(t,r){if(t.needsSummary){t.needsSummary=!1;var n=t.watch||!!t.host.reportErrorSummary,i=t.diagnostics,a=0;u(r)?(ie(t,r.buildOrder),ee(t,r.circularDiagnostics),n&&(a+=e.getErrorCountForSummary(r.circularDiagnostics))):(r.forEach((function(r){var n=g(t,r);t.projectErrorsReported.has(n)||ee(t,i.get(n)||e.emptyArray)})),n&&i.forEach((function(t){return a+=e.getErrorCountForSummary(t)}))),t.watch?$(t,e.getWatchErrorSummaryDiagnosticMessage(a),a):t.host.reportErrorSummary&&t.host.reportErrorSummary(a)}}function ie(t,r){t.options.verbose&&Z(t,e.Diagnostics.Projects_in_this_build_Colon_0,r.map((function(e){return"\r\n * "+Y(t,e)})).join(""))}function ae(t,r,n){t.options.verbose&&function(t,r,n){switch(n.type){case e.UpToDateStatusType.OutOfDateWithSelf:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Y(t,r),Y(t,n.outOfDateOutputFileName),Y(t,n.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Y(t,r),Y(t,n.outOfDateOutputFileName),Y(t,n.newerProjectName));case e.UpToDateStatusType.OutputMissing:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Y(t,r),Y(t,n.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(void 0!==n.newestInputFileTime)return Z(t,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,Y(t,r),Y(t,n.newestInputFileName||""),Y(t,n.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Y(t,r),Y(t,n.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return Z(t,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Y(t,r));case e.UpToDateStatusType.UpstreamOutOfDate:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Y(t,r),Y(t,n.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return Z(t,n.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,Y(t,r),Y(t,n.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Z(t,e.Diagnostics.Failed_to_parse_file_0_Colon_1,Y(t,r),n.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Y(t,r),n.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(n)}}(t,r,n)}!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"}(t||(t={})),e.isCircularBuildOrder=u,e.getBuildOrderFromAnyBuildOrder=l,e.createBuilderStatusReporter=_,e.createSolutionBuilderHost=function(t,r,n,i,a){void 0===t&&(t=e.sys);var o=d(t,r,n,i);return o.reportErrorSummary=a,o},e.createSolutionBuilderWithWatchHost=function(t,r,n,i,a){void 0===t&&(t=e.sys);var o=d(t,r,n,i),s=e.createWatchHost(t,a);return e.copyProperties(o,s),o},e.createSolutionBuilder=function(e,t,r){return Q(!1,e,t,r)},e.createSolutionBuilderWithWatch=function(e,t,r,n){return Q(!0,e,t,r,n)},function(e){e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"}(r=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"}(n||(n={}))}(ts||(ts={})),function(e){!function(t){t.ActionSet="action::set",t.ActionInvalidate="action::invalidate",t.ActionPackageInstalled="action::packageInstalled",t.EventTypesRegistry="event::typesRegistry",t.EventBeginInstallTypes="event::beginInstallTypes",t.EventEndInstallTypes="event::endInstallTypes",t.EventInitializationFailed="event::initializationFailed",function(e){e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"}(t.Arguments||(t.Arguments={})),t.hasArgument=function(t){return e.sys.args.indexOf(t)>=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&r<e.sys.args.length-1?e.sys.args[r+1]:void 0},t.nowString=function(){var t=new Date;return e.padLeft(t.getHours().toString(),2,"0")+":"+e.padLeft(t.getMinutes().toString(),2,"0")+":"+e.padLeft(t.getSeconds().toString(),2,"0")+"."+e.padLeft(t.getMilliseconds().toString(),3,"0")}}(e.server||(e.server={}))}(ts||(ts={})),function(e){!function(t){function r(t,r){return new e.Version(e.getProperty(r,"ts"+e.versionMajorMinor)||e.getProperty(r,"latest")).compareTo(t.version)<=0}function n(e){return t.nodeCoreModules.has(e)?"node":e}t.isTypingUpToDate=r,t.nodeCoreModuleList=["assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","http2","inspector","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"],t.nodeCoreModules=new e.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=n,t.loadSafeList=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));return new e.Map(e.getEntries(n.config))},t.loadTypesMap=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));if(n.config)return new e.Map(e.getEntries(n.config.simpleMap))},t.discoverTypings=function(t,i,a,o,s,c,u,l,_){if(!u||!u.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var d=new e.Map;a=e.mapDefined(a,(function(t){var r=e.normalizePath(t);if(e.hasJSFileExtension(r))return r}));var p=[];u.include&&S(u.include,"Explicitly included types");var f=u.exclude||[],g=new e.Set(a.map(e.getDirectoryPath));g.add(o),g.forEach((function(t){T(e.combinePaths(t,"package.json"),p),T(e.combinePaths(t,"bower.json"),p),C(e.combinePaths(t,"bower_components"),p),C(e.combinePaths(t,"node_modules"),p)})),u.disableFilenameBasedTypeAcquisition||function(t){var r=e.mapDefined(t,(function(t){if(e.hasJSFileExtension(t)){var r=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),n=e.removeMinAndVersionNumbers(r);return s.get(n)}}));r.length&&S(r,"Inferred typings from file names");e.some(t,(function(t){return e.fileExtensionIs(t,".jsx")}))&&(i&&i("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}(a),l&&S(e.deduplicate(l.map(n),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach((function(e,t){var n=_.get(t);d.has(t)&&void 0===d.get(t)&&void 0!==n&&r(e,n)&&d.set(t,e.typingLocation)}));for(var m=0,y=f;m<y.length;m++){var v=y[m];d.delete(v)&&i&&i("Typing for "+v+" is in exclude list, will be ignored.")}var h=[],b=[];d.forEach((function(e,t){void 0!==e?b.push(e):h.push(t)}));var x={cachedTypingPaths:b,newTypingNames:h,filesToWatch:p};return i&&i("Result: "+JSON.stringify(x)),x;function D(e){d.has(e)||d.set(e,void 0)}function S(t,r){i&&i(r+": "+JSON.stringify(t)),e.forEach(t,D)}function T(r,n){if(t.fileExists(r)){n.push(r);var i=e.readConfigFile(r,(function(e){return t.readFile(e)})).config;S(e.flatMap([i.dependencies,i.devDependencies,i.optionalDependencies,i.peerDependencies],e.getOwnKeys),"Typing names in '"+r+"' dependencies")}}function C(r,n){if(n.push(r),t.directoryExists(r)){var a=t.readDirectory(r,[".json"],void 0,void 0,2);i&&i("Searching for typing names in "+r+"; all files: "+JSON.stringify(a));for(var o=[],s=0,c=a;s<c.length;s++){var u=c[s],l=e.normalizePath(u),_=e.getBaseFileName(l);if("package.json"===_||"bower.json"===_){var p=e.readConfigFile(l,(function(e){return t.readFile(e)})).config;if(("package.json"!==_||!p._requiredBy||0!==e.filter(p._requiredBy,(function(e){return"#"===e[0]||"/"===e})).length)&&p.name){var f=p.types||p.typings;if(f){var g=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(l));i&&i(" Package '"+p.name+"' provides its own types."),d.set(p.name,g)}else o.push(p.name)}}}S(o," Found package names")}}},function(e){e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"}(t.NameValidationResult||(t.NameValidationResult={}));function i(e,t){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(t){var r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){var n=i(r[1],!1);if(0!==n)return{name:r[1],isScopeName:!0,result:n};var a=i(r[2],!1);return 0!==a?{name:r[2],isScopeName:!1,result:a}:0}}return encodeURIComponent(e)!==e?5:0}function a(t,r,n,i){var a=i?"Scope":"Package";switch(r){case 1:return"'"+t+"':: "+a+" name '"+n+"' cannot be empty";case 2:return"'"+t+"':: "+a+" name '"+n+"' should be less than 214 characters";case 3:return"'"+t+"':: "+a+" name '"+n+"' cannot start with '.'";case 4:return"'"+t+"':: "+a+" name '"+n+"' cannot start with '_'";case 5:return"'"+t+"':: "+a+" name '"+n+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}t.validatePackageName=function(e){return i(e,!0)},t.renderPackageNameValidationFailure=function(e,t){return"object"==typeof e?a(t,e.result,e.name,e.isScopeName):a(t,e,t,!1)}}(e.JsTyping||(e.JsTyping={}))}(ts||(ts={})),function(e){var t,r;function n(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:t.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:r.Ignore,trimTrailingWhitespace:!0}}!function(e){var t=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}();e.fromString=function(e){return new t(e)}}(e.ScriptSnapshot||(e.ScriptSnapshot={})),function(e){e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All"}(e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto"}(e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={})),function(e){e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic"}(e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={},function(e){e.Original="original",e.TwentyTwenty="2020"}(e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})),function(e){e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={})),function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(t=e.IndentStyle||(e.IndentStyle={})),function(e){e.Ignore="ignore",e.Insert="insert",e.Remove="remove"}(r=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=n,e.testFormatSettings=n("\n"),function(e){e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(e){e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(e){e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(e){e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(e){e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(e){e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(e){e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(e){e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(e){e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral"}(e.ClassificationType||(e.ClassificationType={}))}(ts||(ts={})),function(e){function t(t){switch(t.kind){case 249:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 160:case 198:case 163:case 162:case 288:case 289:case 165:case 164:case 166:case 167:case 168:case 251:case 208:case 209:case 287:case 280:return 1;case 159:case 253:case 254:case 177:return 2;case 331:return void 0===t.name?3:2;case 291:case 252:return 3;case 256:return e.isAmbientModule(t)||1===e.getModuleInstanceState(t)?5:4;case 255:case 264:case 265:case 260:case 261:case 266:case 267:return 7;case 297:return 5}return 7}function r(t){for(;157===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e){return e.expression}function i(e){return e.tag}function a(e){return e.tagName}function o(t,r,n,i,a){var o=i?c(t):s(t);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&r(o.parent)&&n(o.parent)===o}function s(e){return _(e)?e.parent:e}function c(e){return _(e)||d(e)?e.parent:e}function u(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isBreakOrContinueStatement))||void 0===r?void 0:r.label)===t}function l(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isLabeledStatement))||void 0===r?void 0:r.label)===t}function _(t){var r;return(null===(r=e.tryCast(t.parent,e.isPropertyAccessExpression))||void 0===r?void 0:r.name)===t}function d(t){var r;return(null===(r=e.tryCast(t.parent,e.isElementAccessExpression))||void 0===r?void 0:r.argumentExpression)===t}e.scanner=e.createScanner(99,!0),function(e){e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=function(n){return 297===(n=F(n)).kind?1:266===n.parent.kind||272===n.parent.kind||265===n.parent.kind||262===n.parent.kind||e.isImportEqualsDeclaration(n.parent)&&n===n.parent.name?7:r(n)?function(t){var r=157===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&260===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(n.parent):e.isEntityName(n)&&e.isJSDocNameReference(n.parent)?7:function(t){e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent);switch(t.kind){case 107:return!e.isExpressionNode(t);case 187:return!0}switch(t.parent.kind){case 173:return!0;case 195:return!t.parent.isTypeOf;case 223:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(157===t.parent.kind){for(;t.parent&&157===t.parent.kind;)t=t.parent;r=t.right===e}return 173===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(201===t.parent.kind){for(;t.parent&&201===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&223===t.parent.kind&&286===t.parent.parent.kind){var n=t.parent.parent.parent;return 252===n.kind&&116===t.parent.parent.token||253===n.kind&&93===t.parent.parent.token}return!1}(e)}(n)?4:e.isTypeParameterDeclaration(n.parent)?(e.Debug.assert(e.isJSDocTemplateTag(n.parent.parent)),2):e.isLiteralTypeNode(n.parent)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isCallExpression,n,r,i)},e.isNewExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isNewExpression,n,r,i)},e.isCallOrNewExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isCallOrNewExpression,n,r,i)},e.isTaggedTemplateTag=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),o(t,e.isTaggedTemplateExpression,i,r,n)},e.isDecoratorTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isDecorator,n,r,i)},e.isJsxOpeningLikeElementTagName=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),o(t,e.isJsxOpeningLikeElement,a,r,n)},e.climbPastPropertyAccess=s,e.climbPastPropertyOrElementAccess=c,e.getTargetLabel=function(e,t){for(;e;){if(245===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(t,r){return!!e.isPropertyAccessExpression(t.expression)&&t.expression.name.text===r},e.isJumpStatementTarget=u,e.isLabelOfLabeledStatement=l,e.isLabelName=function(e){return l(e)||u(e)},e.isTagName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isJSDocTag))||void 0===r?void 0:r.tagName)===t},e.isRightSideOfQualifiedName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isQualifiedName))||void 0===r?void 0:r.right)===t},e.isRightSideOfPropertyAccess=_,e.isArgumentExpressionOfElementAccess=d,e.isNameOfModuleDeclaration=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isModuleDeclaration))||void 0===r?void 0:r.name)===t},e.isNameOfFunctionDeclaration=function(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isFunctionLike))||void 0===r?void 0:r.name)===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 163:case 162:case 288:case 291:case 165:case 164:case 167:case 168:case 256:return e.getNameOfDeclaration(t.parent)===t;case 202:return t.parent.argumentExpression===t;case 158:return!0;case 191:return 189===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(t){for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 297:case 165:case 164:case 251:case 208:case 167:case 168:case 252:case 253:case 255:case 256:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 297:return e.isExternalModule(r)?"module":"script";case 256:return"module";case 252:case 221:return"class";case 253:return"interface";case 254:case 324:case 331:return"type";case 255:return"enum";case 249:return c(r);case 198:return c(e.getRootDeclaration(r));case 209:case 251:case 208:return"function";case 167:return"getter";case 168:return"setter";case 165:case 164:return"method";case 288:var n=r.initializer;return e.isFunctionLike(n)?"method":"property";case 163:case 162:case 289:case 290:return"property";case 171:return"index";case 170:return"construct";case 169:return"call";case 166:return"constructor";case 159:return"type parameter";case 291:return"enum member";case 160:return e.hasSyntacticModifier(r,92)?"property":"parameter";case 260:case 265:case 270:case 263:case 269:return"alias";case 216:var i=e.getAssignmentDeclarationKind(r),a=r.right;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=t(a);return""===o?"const":o;case 3:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(a)?"method":"property";case 6:return"local class";default:return e.assertType(i),""}case 78:return e.isImportClause(r.parent)?"alias":"";case 266:var s=t(r.expression);return""===s?"const":s;default:return""}function c(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 107:return!0;case 78:return e.identifierIsThisKeyword(t)&&160===t.parent.kind;default:return!1}};var p=/^\/\/\/\s*</;function f(e,t){return m(e.pos,e.end,t)}function g(e,t){return e.pos<t&&t<e.end}function m(e,t,r){return e<=r.pos&&t>=r.end}function y(e,t,r,n){return Math.max(e,r)<Math.min(t,n)}function v(t,r){if(void 0===t||e.nodeIsMissing(t))return!1;switch(t.kind){case 252:case 253:case 255:case 200:case 196:case 177:case 230:case 257:case 258:case 264:case 268:return h(t,19,r);case 287:return v(t.block,r);case 204:if(!t.arguments)return!0;case 203:case 207:case 186:return h(t,21,r);case 174:case 175:return v(t.type,r);case 166:case 167:case 168:case 251:case 208:case 165:case 164:case 170:case 169:case 209:return t.body?v(t.body,r):t.type?v(t.type,r):b(t,21,r);case 256:return!!t.body&&v(t.body,r);case 234:return t.elseStatement?v(t.elseStatement,r):v(t.thenStatement,r);case 233:return v(t.expression,r)||b(t,26,r);case 199:case 197:case 202:case 158:case 179:return h(t,23,r);case 171:return t.type?v(t.type,r):b(t,23,r);case 284:case 285:return!1;case 237:case 238:case 239:case 236:return v(t.statement,r);case 235:return b(t,114,r)?h(t,21,r):v(t.statement,r);case 176:return v(t.exprName,r);case 211:case 210:case 212:case 219:case 220:return v(t.expression,r);case 205:return v(t.template,r);case 218:return v(e.lastOrUndefined(t.templateSpans),r);case 228:return e.nodeIsPresent(t.literal);case 267:case 261:return e.nodeIsPresent(t.moduleSpecifier);case 214:return v(t.operand,r);case 216:return v(t.right,r);case 217:return v(t.whenFalse,r);default:return!0}}function h(t,r,n){var i=t.getChildren(n);if(i.length){var a=e.last(i);if(a.kind===r)return!0;if(26===a.kind&&1!==i.length)return i[i.length-2].kind===r}return!1}function b(e,t,r){return!!x(e,t,r)}function x(t,r,n){return e.find(t.getChildren(n),(function(e){return e.kind===r}))}function D(t){var r=e.find(t.parent.getChildren(),(function(r){return e.isSyntaxList(r)&&f(r,t)}));return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function S(e){return 87===e.kind}function T(e){return 83===e.kind}function C(e){return 97===e.kind}function E(t,r){if(!r)switch(t.kind){case 252:case 221:return function(t){if(e.isNamedDeclaration(t))return t.name;if(e.isClassDeclaration(t)){var r=e.find(t.modifiers,S);if(r)return r}if(e.isClassExpression(t)){var n=e.find(t.getChildren(),T);if(n)return n}}(t);case 251:case 208:return function(t){if(e.isNamedDeclaration(t))return t.name;if(e.isFunctionDeclaration(t)){var r=e.find(t.modifiers,S);if(r)return r}if(e.isFunctionExpression(t)){var n=e.find(t.getChildren(),C);if(n)return n}}(t)}if(e.isNamedDeclaration(t))return t.name}function k(t,r){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(e.isNamedImports(t.importClause.namedBindings)){var n=e.singleOrUndefined(t.importClause.namedBindings.elements);if(!n)return;return n.name}if(e.isNamespaceImport(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!r)return t.moduleSpecifier}function N(t,r){if(t.exportClause){if(e.isNamedExports(t.exportClause)){if(!e.singleOrUndefined(t.exportClause.elements))return;return t.exportClause.elements[0].name}if(e.isNamespaceExport(t.exportClause))return t.exportClause.name}if(!r)return t.moduleSpecifier}function A(t,r){var n=t.parent;if((e.isModifier(t)&&(r||87!==t.kind)?e.contains(n.modifiers,t):83===t.kind?e.isClassDeclaration(n)||e.isClassExpression(t):97===t.kind?e.isFunctionDeclaration(n)||e.isFunctionExpression(t):117===t.kind?e.isInterfaceDeclaration(n):91===t.kind?e.isEnumDeclaration(n):149===t.kind?e.isTypeAliasDeclaration(n):140===t.kind||139===t.kind?e.isModuleDeclaration(n):99===t.kind?e.isImportEqualsDeclaration(n):134===t.kind?e.isGetAccessorDeclaration(n):146===t.kind&&e.isSetAccessorDeclaration(n))&&(a=E(n,r)))return a;if((112===t.kind||84===t.kind||118===t.kind)&&e.isVariableDeclarationList(n)&&1===n.declarations.length){var i=n.declarations[0];if(e.isIdentifier(i.name))return i.name}if(149===t.kind){if(e.isImportClause(n)&&n.isTypeOnly)if(a=k(n.parent,r))return a;if(e.isExportDeclaration(n)&&n.isTypeOnly)if(a=N(n,r))return a}if(126===t.kind){if(e.isImportSpecifier(n)&&n.propertyName||e.isExportSpecifier(n)&&n.propertyName||e.isNamespaceImport(n)||e.isNamespaceExport(n))return n.name;if(e.isExportDeclaration(n)&&n.exportClause&&e.isNamespaceExport(n.exportClause))return n.exportClause.name}if(99===t.kind&&e.isImportDeclaration(n)&&(a=k(n,r)))return a;if(92===t.kind){var a;if(e.isExportDeclaration(n))if(a=N(n,r))return a;if(e.isExportAssignment(n))return e.skipOuterExpressions(n.expression)}if(143===t.kind&&e.isExternalModuleReference(n))return n.expression;if(153===t.kind&&(e.isImportDeclaration(n)||e.isExportDeclaration(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((93===t.kind||116===t.kind)&&e.isHeritageClause(n)&&n.token===t.kind&&(a=function(e){if(1===e.types.length)return e.types[0].expression}(n)))return a;if(93===t.kind){if(e.isTypeParameterDeclaration(n)&&n.constraint&&e.isTypeReferenceNode(n.constraint))return n.constraint.typeName;if(e.isConditionalTypeNode(n)&&e.isTypeReferenceNode(n.extendsType))return n.extendsType.typeName}if(135===t.kind&&e.isInferTypeNode(n))return n.typeParameter.name;if(100===t.kind&&e.isTypeParameterDeclaration(n)&&e.isMappedTypeNode(n.parent))return n.name;if(138===t.kind&&e.isTypeOperatorNode(n)&&138===n.operator&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(142===t.kind&&e.isTypeOperatorNode(n)&&142===n.operator&&e.isArrayTypeNode(n.type)&&e.isTypeReferenceNode(n.type.elementType))return n.type.elementType.typeName;if(!r){if((102===t.kind&&e.isNewExpression(n)||113===t.kind&&e.isVoidExpression(n)||111===t.kind&&e.isTypeOfExpression(n)||130===t.kind&&e.isAwaitExpression(n)||124===t.kind&&e.isYieldExpression(n)||88===t.kind&&e.isDeleteExpression(n))&&n.expression)return e.skipOuterExpressions(n.expression);if((100===t.kind||101===t.kind)&&e.isBinaryExpression(n)&&n.operatorToken===t)return e.skipOuterExpressions(n.right);if(126===t.kind&&e.isAsExpression(n)&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(100===t.kind&&e.isForInStatement(n)||156===t.kind&&e.isForOfStatement(n))return e.skipOuterExpressions(n.expression)}return t}function F(e){return A(e,!1)}function P(e,t,r){return I(e,t,!1,r,!1)}function w(e,t){return I(e,t,!0,void 0,!1)}function I(e,t,r,n,i){var a=e;e:for(;;){for(var o=0,s=a.getChildren(e);o<s.length;o++){var c=s[o];if((r?c.getFullStart():c.getStart(e,!0))>t)break;var u=c.getEnd();if(t<u||t===u&&(1===c.kind||i)){a=c;continue e}if(n&&u===t){var l=M(t,e,c);if(l&&n(l))return l}}return a}}function O(t,r,n){return function r(i){if(e.isToken(i)&&i.pos===t.end)return i;return e.firstDefined(i.getChildren(n),(function(e){return(e.pos<=t.pos&&e.end>t.end||e.pos===t.end)&&q(e,n)?r(e):void 0}))}(r)}function M(t,r,n,i){var a=function a(o){if(L(o)&&1!==o.kind)return o;var s=o.getChildren(r),c=e.binarySearchKey(s,t,(function(e,t){return t}),(function(e,r){return t<s[e].end?!s[e-1]||t>=s[e-1].end?0:1:-1}));if(c>=0&&s[c]){var u=s[c];if(t<u.end){if(u.getStart(r,!i)>=t||!q(u,r)||j(u)){var l=B(s,c,r);return l&&R(l,r)}return a(u)}}e.Debug.assert(void 0!==n||297===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var _=B(s,s.length,r);return _&&R(_,r)}(n||r);return e.Debug.assert(!(a&&j(a))),a}function L(t){return e.isToken(t)&&!j(t)}function R(e,t){if(L(e))return e;var r=e.getChildren(t);if(0===r.length)return e;var n=B(r,r.length,t);return n&&R(n,t)}function B(t,r,n){for(var i=r-1;i>=0;i--){if(j(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(q(t[i],n))return t[i]}}function j(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function J(t,r,n){var i=e.tokenToString(t.kind),a=e.tokenToString(r),o=t.getFullStart(),s=n.text.lastIndexOf(a,o);if(-1!==s){if(n.text.lastIndexOf(i,o-1)<s){var c=M(s+1,n);if(c&&c.kind===r)return c}for(var u=t.kind,l=0;;){var _=M(t.getFullStart(),n);if(!_)return;if((t=_).kind===r){if(0===l)return t;l--}else t.kind===u&&l++}}}function z(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function U(t,r,n){var i=n.getTypeAtLocation(t);return e.isOptionalChain(t.parent)&&(i=z(i,e.isOptionalChainRoot(t.parent),!0)),(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter((function(e){return!!e.typeParameters&&e.typeParameters.length>=r}))}function V(t,r){if(-1!==r.text.lastIndexOf("<",t?t.pos:r.text.length))for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=M(n.getFullStart(),r))&&28===n.kind&&(n=M(n.getFullStart(),r)),!n||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(n=J(n,18,r)))return;break;case 21:if(!(n=J(n,20,r)))return;break;case 23:if(!(n=J(n,22,r)))return;break;case 27:a++;break;case 38:case 78:case 10:case 8:case 9:case 109:case 94:case 111:case 93:case 138:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=M(n.getFullStart(),r)}}function K(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function q(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function W(e,t,r){var n=K(e,t,void 0);return!!n&&r===p.test(e.text.substring(n.pos,n.end))}function H(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function G(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function X(e,t){return{span:e,newText:t}}function Q(e){return 149===e.kind}function Y(t,r){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return r.getCurrentDirectory()},readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),getSourceFiles:function(){return t.getSourceFiles()},redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}}function Z(e,t){return __assign(__assign({},Y(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function $(t,r,n,i,a){return e.factory.createImportDeclaration(void 0,void 0,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):void 0):void 0,"string"==typeof n?ee(n,i):n)}function ee(t,r){return e.factory.createStringLiteral(t,0===r)}function te(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function re(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,(function(t){return e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)}));return n?te(n,t):1}function ne(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,(function(t){var r=e.getNameOfDeclaration(t);return r&&78===r.kind?r.escapedText:void 0}))}function ie(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function ae(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function oe(e){return e.declarations&&e.declarations.length>0&&160===e.declarations[0].kind}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=f,e.rangeContainsRangeExclusive=function(e,t){return g(e,t.pos)&&g(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=g,e.startEndContainsRange=m,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return y(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return y(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=y,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),r<t.end||!v(t,n)},e.findListItemInfo=function(t){var r=D(t);if(r){var n=r.getChildren();return{listItemIndex:e.indexOfNode(n,t),list:r}}},e.hasChildOfKind=b,e.findChildOfKind=x,e.findContainingList=D,e.getContextualTypeOrAncestorTypeNodeType=function(t,r){var n=r.getContextualType(t);if(n)return n;var i=function(t){var r;return e.findAncestor(t,(function(t){return e.isTypeNode(t)&&(r=t),!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)})),r}(t);return i&&r.getTypeAtLocation(i)},e.getAdjustedReferenceLocation=F,e.getAdjustedRenameLocation=function(e){return A(e,!0)},e.getTouchingPropertyName=function(t,r){return P(t,r,(function(t){return e.isPropertyNameLiteral(t)||e.isKeyword(t.kind)||e.isPrivateIdentifier(t)}))},e.getTouchingToken=P,e.getTokenAtPosition=w,e.findTokenOnLeftOfPosition=function(t,r){var n=w(t,r);return e.isToken(n)&&r>n.getStart(t)&&r<n.getEnd()?n:M(r,t)},e.findNextToken=O,e.findPrecedingToken=M,e.isInString=function(t,r,n){if(void 0===n&&(n=M(r,t)),n&&e.isStringTextContainingNode(n)){var i=n.getStart(t),a=n.getEnd();if(i<r&&r<a)return!0;if(r===a)return!!n.isUnterminated}return!1},e.isInsideJsxElementOrAttribute=function(e,t){var r=w(e,t);return!!r&&(11===r.kind||(29===r.kind&&11===r.parent.kind||(29===r.kind&&283===r.parent.kind||(!(!r||19!==r.kind||283!==r.parent.kind)||29===r.kind&&276===r.parent.kind))))},e.isInTemplateString=function(t,r){var n=w(t,r);return e.isTemplateLiteralKind(n.kind)&&r>n.getStart(t)},e.isInJSXText=function(t,r){var n=w(t,r);return!!e.isJsxText(n)||(!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(29!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent)))},e.isInsideJsxElement=function(e,t){return function(r){for(;r;)if(r.kind>=274&&r.kind<=283||11===r.kind||29===r.kind||31===r.kind||78===r.kind||19===r.kind||18===r.kind||43===r.kind)r=r.parent;else{if(273!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1}(w(e,t))},e.findPrecedingMatchingToken=J,e.removeOptionality=z,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=V(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==U(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=U,e.getPossibleTypeArgumentsInfo=V,e.isInComment=K,e.hasDocComment=function(t,r){var n=w(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t,r){void 0===r&&(r=0);var n=[],i=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)&~r:0;return 8&i&&n.push("private"),16&i&&n.push("protected"),4&i&&n.push("public"),32&i&&n.push("static"),128&i&&n.push("abstract"),1&i&&n.push("export"),8192&i&&n.push("deprecated"),8388608&t.flags&&n.push("declare"),266===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 173===t.kind||203===t.kind?t.typeArguments:e.isFunctionLike(t)||252===t.kind||253===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=77},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)<r&&r<t.end||!!t.isUnterminated&&r===t.end},e.isAccessibilityModifier=function(e){switch(e){case 122:case 120:case 121:return!0}return!1},e.cloneCompilerOptions=function(t){var r=e.clone(t);return e.setConfigFileInOptions(r,t&&t.configFile),r},e.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(t){if(199===t.kind||200===t.kind){if(216===t.parent.kind&&t.parent.left===t&&62===t.parent.operatorToken.kind)return!0;if(239===t.parent.kind&&t.parent.initializer===t)return!0;if(e(288===t.parent.kind?t.parent.parent:t.parent))return!0}return!1},e.isInReferenceComment=function(e,t){return W(e,t,!0)},e.isInNonReferenceComment=function(e,t){return W(e,t,!1)},e.getReplacementSpanForContextToken=function(e){if(e)switch(e.kind){case 10:case 14:return G(e);default:return H(e)}},e.createTextSpanFromNode=H,e.createTextSpanFromStringLiteralLikeContent=G,e.createTextRangeFromNode=function(t,r){return e.createRange(t.getStart(r),t.end)},e.createTextSpanFromRange=function(t){return e.createTextSpanFromBounds(t.pos,t.end)},e.createTextRangeFromSpan=function(t){return e.createRange(t.start,t.start+t.length)},e.createTextChangeFromStartLength=function(t,r,n){return X(e.createTextSpan(t,r),n)},e.createTextChange=X,e.typeKeywords=[128,127,155,131,94,135,138,141,103,144,145,142,147,148,109,113,150,151,152],e.isTypeKeyword=function(t){return e.contains(e.typeKeywords,t)},e.isTypeKeywordToken=Q,e.isExternalModuleSymbol=function(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)},e.nodeSeenTracker=function(){var t=[];return function(r){var n=e.getNodeId(r);return!t[n]&&(t[n]=!0)}},e.getSnapshotText=function(e){return e.getText(0,e.getLength())},e.repeatString=function(e,t){for(var r="",n=0;n<t;n++)r+=e;return r},e.skipConstraint=function(e){return e.isTypeParameter()&&e.getConstraint()||e},e.getNameFromPropertyName=function(t){return 158===t.kind?e.isStringOrNumericLiteralLike(t.expression)?t.expression.text:void 0:e.isPrivateIdentifier(t)?e.idText(t):e.getTextOfIdentifierOrLiteral(t)},e.programContainsModules=function(e){return e.getSourceFiles().some((function(t){return!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator)}))},e.programContainsEs6Modules=function(e){return e.getSourceFiles().some((function(t){return!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator}))},e.compilerOptionsIndicateEs6Modules=function(e){return!!e.module||e.target>=2||!!e.noEmit},e.createModuleSpecifierResolutionHost=Y,e.getModuleSpecifierResolverHost=Z,e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?$(e,t,r,n):void 0},e.makeImport=$,e.makeStringLiteral=ee,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=te,e.getQuotePreference=re,e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=ne(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=ne,e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!ie(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return t.modifiers&&e.find(t.modifiers,(function(e){return e.kind===r}))},e.insertImports=function(t,r,n,i){var a=232===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(r.statements,a),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,u=s;c<u.length;c++){var l=u[c],_=e.OrganizeImports.getImportDeclarationInsertionIndex(o,l);if(0===_){var d=o[0]===r.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(r,o[0],l,!1,d)}else{var p=o[_-1];t.insertNodeAfter(r,p,l)}}else{var f=e.lastOrUndefined(o);f?t.insertNodesAfter(r,f,s):t.insertNodesAtTopOfFile(r,s,i)}else t.insertNodesAtTopOfFile(r,s,i)},e.getTypeKeywordOfTypeOnlyImport=function(t,r){return e.Debug.assert(t.isTypeOnly),e.cast(t.getChildAt(0,r),Q)},e.textSpansEqual=ae,e.documentSpansEqual=function(e,t){return e.fileName===t.fileName&&ae(e.textSpan,t.textSpan)},e.forEachUnique=function(e,t){if(e)for(var r=0;r<e.length;r++)if(e.indexOf(e[r])===r){var n=t(e[r],r);if(n)return n}},e.isTextWhiteSpaceLike=function(t,r,n){for(var i=r;i<n;i++)if(!e.isWhiteSpaceLike(t.charCodeAt(i)))return!1;return!0},e.isFirstDeclarationOfSymbolParameter=oe;var se=function(){var t,r,n,i,a=10*e.defaultMaximumTruncationLength;u();var o=function(t){return c(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var r=t.length&&t[t.length-1].text;return i>a&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(ue(" ",e.SymbolDisplayPartKind.space)),t.push(ue("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return c(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return c(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return c(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return c(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return c(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){if(i>a)return;s(),i+=e.length,t.push(ce(e,r))},writeLine:function(){if(i>a)return;i+=1,t.push(de()),r=!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 n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:u,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&r){var o=e.getIndentString(n);o&&(i+=o.length,t.push(ue(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(ue(e,r)))}function u(){t=[],r=!0,n=0,i=0}}();function ce(t,r){return ue(t,function(t){var r=t.flags;if(3&r)return oe(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&r)return e.SymbolDisplayPartKind.propertyName;if(32768&r)return e.SymbolDisplayPartKind.propertyName;if(65536&r)return e.SymbolDisplayPartKind.propertyName;if(8&r)return e.SymbolDisplayPartKind.enumMemberName;if(16&r)return e.SymbolDisplayPartKind.functionName;if(32&r)return e.SymbolDisplayPartKind.className;if(64&r)return e.SymbolDisplayPartKind.interfaceName;if(384&r)return e.SymbolDisplayPartKind.enumName;if(1536&r)return e.SymbolDisplayPartKind.moduleName;if(8192&r)return e.SymbolDisplayPartKind.methodName;if(262144&r)return e.SymbolDisplayPartKind.typeParameterName;if(524288&r)return e.SymbolDisplayPartKind.aliasName;if(2097152&r)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(r))}function ue(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function le(t){return ue(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function _e(t){return ue(t,e.SymbolDisplayPartKind.text)}e.symbolPart=ce,e.displayPart=ue,e.spacePart=function(){return ue(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=le,e.punctuationPart=function(t){return ue(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return ue(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?_e(t):le(r)},e.textPart=_e;function de(){return ue("\n",e.SymbolDisplayPartKind.lineBreak)}function pe(e){try{return e(se),se.displayParts()}finally{se.clear()}}function fe(e){return 0!=(33554432&e.flags)}function ge(e){return 0!=(2097152&e.flags)}function me(e,t){void 0===t&&(t=!0);var r=e&&ve(e);return r&&!t&&he(r),r}function ye(t,r,n){var i=n(t);return i?e.setOriginalNode(i,t):i=ve(t,n),i&&!r&&he(i),i}function ve(t,r){var n=r?e.visitEachChild(t,(function(e){return ye(e,!0,r)}),e.nullTransformationContext):e.visitEachChild(t,me,e.nullTransformationContext);if(n===t){var i=e.isStringLiteral(t)?e.setOriginalNode(e.factory.createStringLiteralFromNode(t),t):e.isNumericLiteral(t)?e.setOriginalNode(e.factory.createNumericLiteral(t.text,t.numericLiteralFlags),t):e.factory.cloneNode(t);return e.setTextRange(i,t)}return n.parent=void 0,n}function he(e){be(e),xe(e)}function be(e){De(e,512,Se)}function xe(t){De(t,1024,e.getLastChild)}function De(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&De(i,r,n)}function Se(e){return e.forEachChild((function(e){return e}))}function Te(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,ke(r,n,i,a,e.addSyntheticLeadingComment))}function Ce(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,ke(r,n,i,a,e.addSyntheticTrailingComment))}function Ee(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,ke(r,n,i,a,e.addSyntheticLeadingComment))}function ke(e,t,r,n,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,r||s,t.text.slice(a,o),void 0!==n?n:c)}}function Ne(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);return-1===n&&(n=t.indexOf("."+r)),-1===n&&(n=t.indexOf('"'+r)),-1===n?-1:n+1}function Ae(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Fe(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Pe(e){return 169===e||170===e||171===e||162===e||164===e}function we(e){return 251===e||166===e||165===e||167===e||168===e}function Ie(e){return 256===e}function Oe(e){return 232===e||233===e||235===e||240===e||241===e||242===e||246===e||248===e||163===e||254===e||261===e||260===e||267===e||259===e||266===e}function Me(e,t){return Re(e,e.fileExists,t)}function Le(e){try{return e()}catch(e){return}}function Re(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return Le((function(){return t&&t.apply(e,r)}))}function Be(t,r){if(r.readFile){var n=function(e){try{return JSON.parse(e)}catch(e){return}}(r.readFile(t)||""),i={};if(n)for(var a=0,o=["dependencies","devDependencies","optionalDependencies","peerDependencies"];a<o.length;a++){var s=o[a],c=n[s];if(c){var u=new e.Map;for(var l in c)u.set(l,c[l]);i[s]=u}}var _=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return __assign(__assign({},i),{parseable:!!n,fileName:t,get:d,has:function(e,t){return!!d(e,t)}})}function d(e,t){void 0===t&&(t=15);for(var r=0,n=_;r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(o&&t&a){var s=o.get(e);if(void 0!==s)return s}}}}function je(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function Je(t){var r=t.getSourceFile();return!(!r.externalModuleIndicator&&!r.commonJsModuleIndicator)&&(e.isInJSFile(t)||!e.findAncestor(t,e.isGlobalScopeAugmentation))}e.getNewLineOrDefaultFromHost=function(e,t){var r;return(null==t?void 0:t.newLineCharacter)||(null===(r=e.getNewLine)||void 0===r?void 0:r.call(e))||"\r\n"},e.lineBreakPart=de,e.mapToDisplayParts=pe,e.typeToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),pe((function(i){e.writeType(t,r,17408|n,i)}))},e.symbolToDisplayParts=function(e,t,r,n,i){return void 0===i&&(i=0),pe((function(a){e.writeSymbol(t,r,n,8|i,a)}))},e.signatureToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),n|=25632,pe((function(i){e.writeSignature(t,r,n,void 0,i)}))},e.isImportOrExportSpecifierName=function(t){return!!t.parent&&e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t},e.getScriptKind=function(t,r){return e.ensureScriptKind(t,r.getScriptKind&&r.getScriptKind(t))},e.getSymbolTarget=function(t,r){for(var n=t;ge(n)||fe(n)&&n.target;)n=fe(n)&&n.target?n.target:e.skipAlias(n,r);return n},e.getUniqueSymbolId=function(t,r){return e.getSymbolId(e.skipAlias(t,r))},e.getFirstNonSpaceCharacterPosition=function(t,r){for(;e.isWhiteSpaceLike(t.charCodeAt(r));)r+=1;return r},e.getPrecedingNonSpaceCharacterPosition=function(t,r){for(;r>-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=me,e.getSynthesizedDeepCloneWithReplacements=ye,e.getSynthesizedDeepClones=function(t,r){return void 0===r&&(r=!0),t&&e.factory.createNodeArray(t.map((function(e){return me(e,r)})),t.hasTrailingComma)},e.getSynthesizedDeepClonesWithReplacements=function(t,r,n){return e.factory.createNodeArray(t.map((function(e){return ye(e,r,n)})),t.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=he,e.suppressLeadingTrivia=be,e.suppressTrailingTrivia=xe,e.copyComments=function(e,t){var r=e.getSourceFile();!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i<n;i++)if(10===t.charCodeAt(i))return!0;return!1}(e,r.text)?Ee(e,t,r):Te(e,t,r),Ce(e,t,r)},e.getUniqueName=function(t,r){for(var n=t,i=1;!e.isFileLevelUniqueName(r,n);i++)n=t+"_"+i;return n},e.getRenameLocation=function(t,r,n,i){for(var a=0,o=-1,s=0,c=t;s<c.length;s++){var u=c[s],l=u.fileName,_=u.textChanges;e.Debug.assert(l===r);for(var d=0,p=_;d<p.length;d++){var f=p[d],g=f.span,m=f.newText,y=Ne(m,n);if(-1!==y&&(o=g.start+a+y,!i))return o;a+=m.length-g.length}}return e.Debug.assert(i),e.Debug.assert(o>=0),o},e.copyLeadingComments=Te,e.copyTrailingComments=Ce,e.copyTrailingAsLeadingComments=Ee,e.needsParentheses=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)},e.getContextualTypeFromParent=function(e,t){var r=e.parent;switch(r.kind){case 204:return t.getContextualType(r);case 216:var n=r,i=n.left,a=n.operatorToken,o=n.right;return Ae(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 284:return r.expression===e?Fe(r,t):void 0;default:return t.getContextualType(e)}},e.quote=function(t,r,n){var i=re(t,r),a=JSON.stringify(n);return 0===i?"'"+e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"')+"'":a},e.isEqualityOperatorKind=Ae,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 218:case 205: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,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){a=!1},s=i.typeToTypeNode(e,t,1,{trackSymbol:function(e,t,r){a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:Z(r,n)});return a?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Pe,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=we,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Ie,e.syntaxRequiresTrailingSemicolonOrASI=Oe,e.syntaxMayBeASICandidate=e.or(Pe,we,Ie,Oe),e.positionIsASICandidate=function(t,r,n){var i=e.findAncestor(r,(function(r){return r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)}));return!!i&&function(t,r){var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(Pe(t.kind)){if(n&&27===n.kind)return!1}else if(Ie(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(we(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!Oe(t.kind))return!1;if(235===t.kind)return!0;var a=O(t,e.findAncestor(t,(function(e){return!e.parent})),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line}(i,n)},e.probablyUsesSemicolons=function(t){var r=0,n=0;return e.forEachChild(t,(function i(a){if(Oe(a.kind)){var o=a.getLastToken(t);o&&26===o.kind?r++:n++}return r+n>=5||e.forEachChild(a,i)})),0===r&&n<=1||r/n>.2},e.tryGetDirectories=function(e,t){return Re(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return Re(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=Me,e.tryDirectoryExists=function(t,r){return Le((function(){return e.directoryProbablyExists(r,t)}))||!1},e.tryAndIgnoreErrors=Le,e.tryIOAndConsumeErrors=Re,e.findPackageJsons=function(t,r,n){var i=[];return e.forEachAncestorDirectory(t,(function(t){if(t===n)return!0;var a=e.combinePaths(t,"package.json");Me(r,a)&&i.push(a)})),i},e.findPackageJson=function(t,r){var n;return e.forEachAncestorDirectory(t,(function(t){return"node_modules"===t||(!!(n=e.findConfigFile(t,(function(e){return Me(r,e)}),"package.json"))||void 0)})),n},e.getPackageJsonsVisibleToFile=function(t,r){if(!r.fileExists)return[];var n=[];return e.forEachAncestorDirectory(e.getDirectoryPath(t),(function(t){var i=e.combinePaths(t,"package.json");if(r.fileExists(i)){var a=Be(i,r);a&&n.push(a)}})),n},e.createPackageJsonInfo=Be,e.consumesNodeCoreModules=function(t){return e.some(t.imports,(function(t){var r=t.text;return e.JsTyping.nodeCoreModules.has(r)}))},e.isInsideNodeModules=function(t){return e.contains(e.getPathComponents(t),"node_modules")},e.isDiagnosticWithLocation=je,e.findDiagnosticForNode=function(t,r){var n=H(t),i=e.binarySearchKey(r,n,e.identity,e.compareTextSpans);if(i>=0){var a=r[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,je)}},e.getDiagnosticsWithinSpan=function(t,r){var n,i=e.binarySearchKey(r,t.start,(function(e){return e.start}),e.compareValues);for(i<0&&(i=~i);(null===(n=r[i-1])||void 0===n?void 0:n.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(r[i],je);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.mapOneOrMany=function(t,r,n){return void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0},e.firstOrOnly=function(t){return e.isArray(t)?e.first(t):t},e.getNameForExportedSymbol=function(t,r){return 33554432&t.flags||"export="!==t.escapedName&&"default"!==t.escapedName?t.name:e.firstDefined(t.declarations,(function(t){var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:void 0}))||e.codefix.moduleSymbolToValidIdentifier(function(t){var r;return e.Debug.checkDefined(t.parent,"Symbol parent was undefined. Flags: "+e.Debug.formatSymbolFlags(t.flags)+". Declarations: "+(null===(r=t.declarations)||void 0===r?void 0:r.map((function(t){var r=e.Debug.formatSyntaxKind(t.kind),n=e.isInJSFile(t),i=t.expression;return(n?"[JS]":"")+r+(i?" (expression: "+e.Debug.formatSyntaxKind(i.kind)+")":"")})).join(", "))+".")}(t),r)},e.stringContainsAt=function(e,t,r){var n=t.length;if(n+r>e.length)return!1;for(var i=0;i<n;i++)if(t.charCodeAt(i)!==e.charCodeAt(i+r))return!1;return!0},e.startsWithUnderscore=function(e){return 95===e.charCodeAt(0)},e.isGlobalDeclaration=function(e){return!Je(e)},e.isNonGlobalDeclaration=Je}(ts||(ts={})),function(e){e.createClassifier=function(){var o=e.createScanner(99,!1);function s(i,s,c){var u=0,l=0,_=[],d=function(t){switch(t){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(t)}}(s),p=d.prefix,f=d.pushTemplate;i=p+i;var g=p.length;f&&_.push(15),o.setText(i);var m=0,y=[],v=0;do{u=o.scan(),e.isTrivia(u)||(x(),l=u);var h=o.getTextPos();if(n(o.getTokenPos(),h,g,a(u),y),h>=i.length){var b=r(o,u,e.lastOrUndefined(_));void 0!==b&&(m=b)}}while(1!==u);function x(){switch(u){case 43:case 67:t[l]||13!==o.reScanSlashToken()||(u=13);break;case 29:78===l&&v++;break;case 31:v>0&&v--;break;case 128:case 147:case 144:case 131:case 148:v>0&&!c&&(u=78);break;case 15:_.push(u);break;case 18:_.length>0&&_.push(u);break;case 19:if(_.length>0){var r=e.lastOrUndefined(_);15===r?17===(u=o.reScanTemplateToken(!1))?_.pop():e.Debug.assertEqual(u,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),_.pop())}break;default:if(!e.isKeyword(u))break;(24===l||e.isKeyword(l)&&e.isKeyword(u)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 134:case 146:case 132:case 123:return!0;default:return!1}}(l,u))&&(u=78)}}return{endOfLineState:m,spans:y}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s<a.length;s+=3){var c=a[s],u=a[s+1],l=a[s+2];if(o>=0){var _=c-o;_>0&&n.push({length:_,classification:e.TokenClass.Whitespace})}n.push({length:u,classification:i(l)}),o=c+u}var d=r.length-o;d>0&&n.push({length:d,classification:e.TokenClass.Whitespace});return{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([78,10,8,9,13,107,45,46,21,23,19,109,94],(function(e){return e}),(function(){return!0}));function r(t,r,n){switch(r){case 10:if(!t.isUnterminated())return;for(var i=t.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 t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){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(t){if(e.isKeyword(t))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 101:case 100:case 126:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 73:case 72:case 77:case 69:case 70:case 71:case 63:case 64:case 65:case 67:case 68:case 62:case 27:case 60:case 74:case 75:case 76:return!0;default:return!1}}(t)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=77)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 78:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 256:case 252:case 253:case 251:case 221:case 208:case 209:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function u(l){if(l&&e.textSpanIntersectsWith(a,l.pos,l.getFullWidth())){if(o(r,l.kind),e.isIdentifier(l)&&!e.nodeIsMissing(l)&&i.has(l.escapedText)){var _=t.getSymbolAtLocation(l),d=_&&c(_,e.getMeaningFromLocation(l),t);d&&function(t,r,n){var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of "+i),s.push(t),s.push(i),s.push(n)}(l.getStart(n),l.getEnd(),d)}l.forEachChild(u)}})),{spans:s,endOfLineState:0}}function c(t,r,n){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&function(t){return e.some(t.declarations,(function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)}))}(t)?14:void 0:2097152&i?c(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0}function u(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 l(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i<r.length;i+=3)n.push({textSpan:e.createTextSpan(r[i],r[i+1]),classificationType:u(r[i+2])});return n}function _(t,r,n){var i=n.start,a=n.length,s=e.createScanner(99,!1,r.languageVariant,r.text),c=e.createScanner(99,!1,r.languageVariant,r.text),u=[];return v(r),{spans:u,endOfLineState:0};function l(e,t,r){u.push(e),u.push(t),u.push(r)}function _(t,n,i,a){if(3===n){var o=e.parseIsolatedJSDocComment(r.text,i,a);if(o&&o.jsDoc)return e.setParent(o.jsDoc,t),void function(e){var t=e.pos;if(e.tags)for(var r=0,n=e.tags;r<n.length;r++){var i=n[r];switch(i.pos!==t&&d(t,i.pos-t),l(i.pos,1,10),l(i.tagName.pos,i.tagName.end-i.tagName.pos,18),t=i.tagName.end,i.kind){case 326:a(i);break;case 330:p(i),t=i.end;break;case 329:case 327:v(i.typeExpression),t=i.end}}t!==e.end&&d(t,e.end-t);return;function a(e){e.isNameFirst&&(d(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end),e.typeExpression&&(d(t,e.typeExpression.pos-t),v(e.typeExpression),t=e.typeExpression.end),e.isNameFirst||(d(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end)}}(o.jsDoc)}else if(2===n&&function(t,n){var i=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,a=/(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,o=r.text.substr(t,n),s=i.exec(o);if(!s)return!1;if(!s[3]||!(s[3]in e.commentPragmas))return!1;var c=t;d(c,s[1].length),l(c+=s[1].length,s[2].length,10),l(c+=s[2].length,s[3].length,21),c+=s[3].length;var u=s[4],_=c;for(;;){var p=a.exec(u);if(!p)break;var f=c+p.index;f>_&&(d(_,f-_),_=f),l(_,p[1].length,22),_+=p[1].length,p[2].length&&(d(_,p[2].length),_+=p[2].length),l(_,p[3].length,5),_+=p[3].length,p[4].length&&(d(_,p[4].length),_+=p[4].length),l(_,p[5].length,24),_+=p[5].length}(c+=s[4].length)>_&&d(_,c-_);s[5]&&(l(c,s[5].length,10),c+=s[5].length);var g=t+n;c<g&&d(c,g-c);return!0}(i,a))return;d(i,a)}function d(e,t){l(e,t,1)}function p(e){for(var t=0,r=e.getChildren();t<r.length;t++){v(r[t])}}function f(t,r,n){var i;for(i=r;i<n&&!e.isLineBreak(t.charCodeAt(i));i++);for(l(r,i-r,1),c.setTextPos(i);c.getTextPos()<n;)g()}function g(){var e=c.getTextPos(),t=c.scan(),r=c.getTextPos(),n=y(t);n&&l(e,r-e,n)}function m(t){if(e.isJSDoc(t))return!0;if(e.nodeIsMissing(t))return!0;var n=function(e){switch(e.parent&&e.parent.kind){case 275:if(e.parent.tagName===e)return 19;break;case 276:if(e.parent.tagName===e)return 20;break;case 274:if(e.parent.tagName===e)return 21;break;case 280:if(e.parent.name===e)return 22}return}(t);if(!e.isToken(t)&&11!==t.kind&&void 0===n)return!1;var i=11===t.kind?t.pos:function(t){for(s.setTextPos(t.pos);;){var n=s.getTextPos();if(!e.couldStartTrivia(r.text,n))return n;var i=s.scan(),a=s.getTextPos(),o=a-n;if(!e.isTrivia(i))return n;switch(i){case 4:case 5:continue;case 2:case 3:_(t,i,n,o),s.setTextPos(a);continue;case 7:var c=r.text,u=c.charCodeAt(n);if(60===u||62===u){l(n,o,1);continue}e.Debug.assert(124===u||61===u),f(c,n,a);break;case 6:break;default:e.Debug.assertNever(i)}}}(t),a=t.end-i;if(e.Debug.assert(a>=0),a>0){var o=n||y(t.kind,t);o&&l(i,a,o)}return!0}function y(t,r){if(e.isKeyword(t))return 3;if((29===t||31===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(62===t&&(249===n.kind||163===n.kind||160===n.kind||280===n.kind))return 5;if(216===n.kind||214===n.kind||215===n.kind||217===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&280===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(78===t){if(r)switch(r.parent.kind){case 252:return r.parent.name===r?11:void 0;case 159:return r.parent.name===r?15:void 0;case 253:return r.parent.name===r?13:void 0;case 255:return r.parent.name===r?12:void 0;case 256:return r.parent.name===r?14:void 0;case 160:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}return 2}}function v(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s<c.length;s++){var u=c[s];m(u)||v(u)}}}}e.getSemanticClassifications=function(e,t,r,n,i){return l(s(e,t,r,n,i))},e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=function(e,t,r){return l(_(e,t,r))},e.getEncodedSyntacticClassifications=_}(ts||(ts={})),function(e){!function(t){!function(t){function r(e,t,r,i){return{spans:n(e,r,i,t),endOfLineState:0}}function n(t,r,n,s){var c=[];return t&&r&&function(t,r,n,s,c){var u=t.getTypeChecker(),l=!1;function _(d){switch(d.kind){case 256:case 252:case 253:case 251:case 221:case 208:case 209:c.throwIfCancellationRequested()}if(d&&e.textSpanIntersectsWith(n,d.pos,d.getFullWidth())&&0!==d.getFullWidth()){var p=l;if((e.isJsxElement(d)||e.isJsxSelfClosingElement(d))&&(l=!0),e.isJsxExpression(d)&&(l=!1),e.isIdentifier(d)&&!l&&!function(t){var r=t.parent;return r&&(e.isImportClause(r)||e.isImportSpecifier(r)||e.isNamespaceImport(r))}(d)){var f=u.getSymbolAtLocation(d);if(f){2097152&f.flags&&(f=u.getAliasedSymbol(f));var g=function(t,r){var n=t.getFlags();if(32&n)return 0;if(384&n)return 1;if(524288&n)return 5;if(64&n){if(2&r)return 2}else if(262144&n)return 4;var a=t.valueDeclaration||t.declarations&&t.declarations[0];a&&e.isBindingElement(a)&&(a=i(a));return a&&o.get(a.kind)}(f,e.getMeaningFromLocation(d));if(void 0!==g){var m=0;if(d.parent)(e.isBindingElement(d.parent)||o.get(d.parent.kind)===g)&&d.parent.name===d&&(m=1);6===g&&a(d)&&(g=9),g=function(t,r,n){if(7===n||9===n||6===n){var i=t.getTypeAtLocation(r);if(i){var o=function(e){return e(i)||i.isUnion()&&i.types.some(e)};if(6!==n&&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(t){for(;a(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t}(r))return 9===n?11:10}}return n}(u,d,g);var y=f.valueDeclaration;if(y){var v=e.getCombinedModifierFlags(y),h=e.getCombinedNodeFlags(y);32&v&&(m|=2),256&v&&(m|=4),0!==g&&2!==g&&(64&v||2&h||8&f.getFlags())&&(m|=8),7!==g&&10!==g||!function(t,r){e.isBindingElement(t)&&(t=i(t));if(e.isVariableDeclaration(t))return(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===r;if(e.isFunctionDeclaration(t))return!e.isSourceFile(t.parent)&&t.getSourceFile()===r;return!1}(y,r)||(m|=32),t.isSourceFileDefaultLibrary(y.getSourceFile())&&(m|=16)}else f.declarations&&f.declarations.some((function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}))&&(m|=16);s(d,g,m)}}}e.forEachChild(d,_),l=p}}_(r)}(t,r,n,(function(e,t,n){c.push(e.getStart(r),e.getWidth(r),(t+1<<8)+n)}),s),c}function i(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function a(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}!function(e){e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask"}(t.TokenEncodingConsts||(t.TokenEncodingConsts={})),function(e){e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member"}(t.TokenType||(t.TokenType={})),function(e){e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local"}(t.TokenModifier||(t.TokenModifier={})),t.getSemanticClassifications=function(t,n,i,a){var o=r(t,n,i,a);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],u=0;u<s.length;u+=3)c.push({textSpan:e.createTextSpan(s[u],s[u+1]),classificationType:s[u+2]});return c},t.getEncodedSemanticClassifications=r;var o=new e.Map([[249,7],[160,6],[163,9],[256,3],[255,1],[291,8],[252,0],[165,11],[251,10],[208,10],[164,11],[167,9],[168,9],[162,9],[253,2],[254,5],[159,4],[288,9],[289,9]])}(t.v2020||(t.v2020={}))}(e.classifier||(e.classifier={}))}(ts||(ts={})),function(e){!function(t){!function(r){function n(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((function(e){var r=e.name,n=e.kind,a=e.span;return{name:r,kind:n,kindModifiers:i(e.extension),sortText:t.SortText.LocationPriority,replacementSpan:a}}))}}function i(t){switch(t){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(t)}}var a;function o(r,n,i,a,o,l){var _,d,f=s(n.parent);switch(f.kind){case 191:var g=s(f.parent);switch(g.kind){case 173:var m=g,y=e.findAncestor(f,(function(e){return e.parent===m}));return y?{kind:2,types:u(a.getTypeArgumentConstraint(y)),isNewIdentifier:!1}:void 0;case 189:var v=g,h=v.indexType,b=v.objectType;if(!e.rangeContainsPosition(h,i))return;return c(a.getTypeFromTypeNode(b));case 195:return{kind:0,paths:p(r,n,o,l,a)};case 182:if(!e.isTypeReferenceNode(g.parent))return;var x=(_=g,d=f,e.mapDefined(_.types,(function(t){return t!==d&&e.isLiteralTypeNode(t)&&e.isStringLiteral(t.literal)?t.literal.text:void 0})));return{kind:2,types:u(a.getTypeArgumentConstraint(g)).filter((function(t){return!e.contains(x,t.value)})),isNewIdentifier:!1};default:return}case 288:return e.isObjectLiteralExpression(f.parent)&&f.name===n?function(r,n){var i=r.getContextualType(n);if(!i)return;var a=r.getContextualType(n,4);return{kind:1,symbols:t.getPropertiesForObjectExpression(i,a,n,r),hasIndexSignature:e.hasIndexSignature(i)}}(a,f.parent):E();case 202:var D=f,S=D.expression,T=D.argumentExpression;return n===e.skipParentheses(T)?c(a.getTypeAtLocation(S)):void 0;case 203:case 204:if(!e.isRequireCall(f,!1)&&!e.isImportCall(f)){var C=e.SignatureHelp.getArgumentInfoForCompletions(n,i,r);return C?function(t,r){var n=!1,i=new e.Map,a=[];return r.getResolvedSignature(t.invocation,a,t.argumentCount),{kind:2,types:e.flatMap(a,(function(a){if(e.signatureHasRestParameter(a)||!(t.argumentCount>a.parameters.length)){var o=r.getParameterType(a,t.argumentIndex);return n=n||!!(4&o.flags),u(o,i)}})),isNewIdentifier:n}}(C,a):E()}case 261:case 267:case 272:return{kind:0,paths:p(r,n,o,l,a)};default:return E()}function E(){return{kind:2,types:u(e.getContextualTypeFromParent(n,a)),isNewIdentifier:!1}}}function s(t){switch(t.kind){case 186:return e.walkUpParenthesizedTypes(t);case 207:return e.walkUpParenthesizedExpressions(t);default:return t}}function c(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),(function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(t.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(t)}}function u(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,(function(e){return u(e,r)})):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function l(e,t,r){return{name:e,kind:t,extension:r}}function _(e){return l(e,"directory",void 0)}function d(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf(e.altDirectorySeparator)),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(r+i,a)}(t,r),a=0===t.length?void 0:e.createTextSpan(r,t.length);return n.map((function(t){var r=t.name,n=t.kind,o=t.extension;return-1!==Math.max(r.indexOf(e.directorySeparator),r.indexOf(e.altDirectorySeparator))?{name:r,kind:n,extension:o,span:a}:{name:r,kind:n,extension:o,span:i}}))}function p(t,r,n,i,a){return d(r.text,r.getStart(t)+1,function(t,r,n,i,a){var o=e.normalizeSlashes(r.text),s=t.path,c=e.getDirectoryPath(s);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(o)||!n.baseUrl&&(e.isRootedDiskPath(o)||e.isUrl(o))?function(t,r,n,i,a){var o=f(n);return n.rootDirs?function(t,r,n,i,a,o,s){var c=a.project||o.getCurrentDirectory(),u=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),l=function(t,r,n,i){t=t.map((function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))}));var a=e.firstDefined(t,(function(t){return e.containsPath(t,n,r,i)?n.substr(t.length):void 0}));return e.deduplicate(__spreadArray(__spreadArray([],t.map((function(t){return e.combinePaths(t,a)}))),[n]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,c,n,u);return e.flatMap(l,(function(e){return m(r,e,i,o,s)}))}(n.rootDirs,t,r,o,n,i,a):m(t,r,o,i,a)}(o,c,n,i,s):function(t,r,n,i,a){var o=n.baseUrl,s=n.paths,c=[],u=f(n);if(o){var _=n.project||i.getCurrentDirectory(),d=e.normalizePath(e.combinePaths(_,o));m(t,d,u,i,void 0,c),s&&y(c,t,d,u.extensions,s,i)}for(var p=v(t),g=0,h=function(t,r,n){var i=n.getAmbientModules().map((function(t){return e.stripQuotes(t.name)})).filter((function(r){return e.startsWith(r,t)}));if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map((function(t){return e.removePrefix(t,a)}))}return i}(t,p,a);g<h.length;g++){var x=h[g];c.push(l(x,"external module name",void 0))}if(b(i,n,r,p,u,c),e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs){var S=!1;if(void 0===p)for(var T=function(e){c.some((function(t){return t.name===e}))||(S=!0,c.push(l(e,"external module name",void 0)))},C=0,E=function(t,r){if(!t.readFile||!t.fileExists)return e.emptyArray;for(var n=[],i=0,a=e.findPackageJsons(r,t);i<a.length;i++)for(var o=a[i],s=e.readJson(o,t),c=0,u=D;c<u.length;c++){var l=s[u[c]];if(l)for(var _ in l)l.hasOwnProperty(_)&&!e.startsWith(_,"@types/")&&n.push(_)}return n}(i,r);C<E.length;C++){T(E[C])}S||e.forEachAncestorDirectory(r,(function(r){var n=e.combinePaths(r,"node_modules");e.tryDirectoryExists(i,n)&&m(t,n,u,i,void 0,c)}))}return c}(o,c,n,i,a)}(t,r,n,i,a))}function f(e,t){return void 0===t&&(t=!1),{extensions:g(e),includeExtensions:t}}function g(t){var r=e.getSupportedExtensions(t);return t.resolveJsonModule&&e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs?r.concat(".json"):r}function m(t,r,n,i,a,o){var s=n.extensions,c=n.includeExtensions;void 0===o&&(o=[]),void 0===t&&(t=""),t=e.normalizeSlashes(t),e.hasTrailingDirectorySeparator(t)||(t=e.getDirectoryPath(t)),""===t&&(t="."+e.directorySeparator),t=e.ensureTrailingDirectorySeparator(t);var u=e.resolvePath(r,t),d=e.hasTrailingDirectorySeparator(u)?u:e.getDirectoryPath(u),p=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(i,d))return o;var f=e.tryReadDirectory(i,d,s,void 0,["./*"]);if(f){for(var g=new e.Map,m=0,v=f;m<v.length;m++){var h=v[m];if(h=e.normalizePath(h),!a||0!==e.comparePaths(h,a,r,p)){var b=c||e.fileExtensionIs(h,".json")?e.getBaseFileName(h):e.removeFileExtension(e.getBaseFileName(h));g.set(b,e.tryGetExtensionFromPath(h))}}g.forEach((function(e,t){o.push(l(t,"script",e))}))}var x=e.tryGetDirectories(i,d);if(x)for(var D=0,S=x;D<S.length;D++){var T=S[D],C=e.getBaseFileName(e.normalizePath(T));"@types"!==C&&o.push(_(C))}var E=e.findPackageJson(d,i);if(E){var k=e.readJson(E,i).typesVersions;if("object"==typeof k){var N=e.getPackageJsonTypesVersionsPaths(k),A=N&&N.paths,F=u.slice(e.ensureTrailingDirectorySeparator(d).length);A&&y(o,F,d,s,A,i)}}return o}function y(t,r,n,i,a,o){for(var s in a)if(e.hasProperty(a,s)){var c=a[s];if(c)for(var u=function(e,r,n){t.some((function(t){return t.name===e}))||t.push(l(e,r,n))},_=0,d=h(s,c,r,n,i,o);_<d.length;_++){var p=d[_];u(p.name,p.kind,p.extension)}}}function v(t){return S(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0}function h(t,r,n,i,a,o){if(!e.endsWith(t,"*"))return e.stringContains(t,"*")?e.emptyArray:u(t);var s=t.slice(0,t.length-1),c=e.tryRemovePrefix(n,s);return void 0===c?u(s):e.flatMap(r,(function(t){return function(t,r,n,i,a){if(!a.readDirectory)return;var o=e.hasZeroOrOneAsteriskCharacter(n)?e.tryParsePattern(n):void 0;if(!o)return;var s=e.resolvePath(o.prefix),c=e.hasTrailingDirectorySeparator(o.prefix)?s:e.getDirectoryPath(s),u=e.hasTrailingDirectorySeparator(o.prefix)?"":e.getBaseFileName(s),d=S(t),p=d?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0,f=d?e.combinePaths(c,u+p):c,g=e.normalizePath(o.suffix),m=e.normalizePath(e.combinePaths(r,f)),y=d?m:e.ensureTrailingDirectorySeparator(m)+u,v=g?"**/*":"./*",h=e.mapDefined(e.tryReadDirectory(a,m,i,void 0,[v]),(function(t){var r=e.tryGetExtensionFromPath(t),n=x(t);return void 0===n?void 0:l(e.removeFileExtension(n),"script",r)})),b=e.mapDefined(e.tryGetDirectories(a,m).map((function(t){return e.combinePaths(m,t)})),(function(e){var t=x(e);return void 0===t?void 0:_(t)}));return __spreadArray(__spreadArray([],h),b);function x(t){var r,n,i,a=(r=e.normalizePath(t),n=y,i=g,e.startsWith(r,n)&&e.endsWith(r,i)?r.slice(n.length,r.length-i.length):void 0);return void 0===a?void 0:function(t){return t[0]===e.directorySeparator?t.slice(1):t}(a)}}(c,i,t,a,o)}));function u(t){return e.startsWith(t,n)?[_(t)]:e.emptyArray}}function b(t,r,n,i,a,o){void 0===o&&(o=[]);for(var s=new e.Map,c=0,u=e.tryAndIgnoreErrors((function(){return e.getEffectiveTypeRoots(r,t)}))||e.emptyArray;c<u.length;c++){f(u[c])}for(var _=0,d=e.findPackageJsons(n,t);_<d.length;_++){var p=d[_];f(e.combinePaths(e.getDirectoryPath(p),"node_modules/@types"))}return o;function f(n){if(e.tryDirectoryExists(t,n))for(var c=0,u=e.tryGetDirectories(t,n);c<u.length;c++){var _=u[c],d=e.unmangleScopedPackageName(_);if(!r.types||e.contains(r.types,d))if(void 0===i)s.has(d)||(o.push(l(d,"external module name",void 0)),s.set(d,!0));else{var p=e.combinePaths(n,_),f=e.tryRemoveDirectoryPrefix(i,d,e.hostGetCanonicalFileName(t));void 0!==f&&m(f,p,a,t,void 0,o)}}}}r.getStringLiteralCompletions=function(r,i,a,s,c,u,l,_){if(e.isInReferenceComment(r,i))return(p=function(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=e.getLeadingCommentRanges(t.text,a.pos),s=o&&e.find(o,(function(e){return r>=e.pos&&r<=e.end}));if(!s)return;var c=t.text.slice(s.pos,r),u=x.exec(c);if(!u)return;var l=u[1],_=u[2],p=u[3],g=e.getDirectoryPath(t.path),y="path"===_?m(p,g,f(n,!0),i,t.path):"types"===_?b(i,n,g,v(p),f(n)):e.Debug.fail();return d(p,s.pos+l.length,y)}(r,i,c,u))&&n(p);if(e.isInString(r,i,a)){if(!a||!e.isStringLiteralLike(a))return;var p;return function(r,i,a,o,s,c){if(void 0===r)return;var u=e.createTextSpanFromStringLiteralLikeContent(i);switch(r.kind){case 0:return n(r.paths);case 1:var l=[];return t.getCompletionEntriesFromSymbols(r.symbols,l,i,a,a,o,99,s,4,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,optionalReplacementSpan:u,entries:l};case 2:l=r.types.map((function(r){return{name:r.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(i)}}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,optionalReplacementSpan:u,entries:l};default:return e.Debug.assertNever(r)}}(p=o(r,a,i,s,c,u),a,r,s,l,_)}},r.getStringLiteralCompletionDetails=function(r,n,a,s,c,u,l,_){if(s&&e.isStringLiteralLike(s)){var d=o(n,s,a,c,u,l);return d&&function(r,n,a,o,s,c){switch(a.kind){case 0:return(u=e.find(a.paths,(function(e){return e.name===r})))&&t.createCompletionDetails(r,i(u.extension),u.kind,[e.textPart(r)]);case 1:var u;return(u=e.find(a.symbols,(function(e){return e.name===r})))&&t.createCompletionDetailsForSymbol(u,s,o,n,c);case 2:return e.find(a.types,(function(e){return e.value===r}))?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(a)}}(r,s,d,n,c,_)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(a||(a={}));var x=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,D=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function S(t){return e.stringContains(t,e.directorySeparator)}}(t.StringCompletions||(t.StringCompletions={}))}(e.Completions||(e.Completions={}))}(ts||(ts={})),function(e){!function(t){var r,n,i,a,o,s;function c(e){return!!(e&&4&e.kind)}function u(e){return c(e)&&!!e.isFromPackageJson}function l(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function _(t){return 78===(null==t?void 0:t.kind)?e.createTextSpanFromNode(t):void 0}function d(t,r){return e.isSourceFileJS(t)&&!e.isCheckJsEnabledForFile(t,r)}function p(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function f(t,r,n){return"object"==typeof n?e.pseudoBigIntToString(n)+"n":e.isString(n)?e.quote(t,r,n):JSON.stringify(n)}function g(e,t,n){return{name:f(e,t,n),kind:"string",kindModifiers:"",sortText:r.LocationPriority}}function m(t,r,n,i,a,o,s,l,_,d,p,f,g){var m,b=e.getReplacementSpanForContextToken(n),x=_&&function(e){return!!(16&e.kind)}(_),D=_&&function(e){return!!(2&e.kind)}(_)||l;if(_&&function(e){return!!(1&e.kind)}(_))m=l?"this"+(x?"?.":"")+"["+y(a,g,s)+"]":"this"+(x?"?.":".")+s;else if((D||x)&&p){m=D?l?"["+y(a,g,s)+"]":"["+s+"]":s,(x||p.questionDotToken)&&(m="?."+m);var S=e.findChildOfKind(p,24,a)||e.findChildOfKind(p,28,a);if(!S)return;var T=e.startsWith(s,p.name.text)?p.name.end:S.end;b=e.createTextSpanFromBounds(S.getStart(a),T)}if(f&&(void 0===m&&(m=s),m="{"+m+"}","boolean"!=typeof f&&(b=e.createTextSpanFromNode(f,a))),_&&function(e){return!!(8&e.kind)}(_)&&p){void 0===m&&(m=s);var C=e.findPrecedingToken(p.pos,a),E="";C&&e.positionIsASICandidate(C.end,C.parent,a)&&(E=";"),E+="(await "+p.expression.getText()+")",m=l?""+E+m:E+(x?"?.":".")+m,b=e.createTextSpanFromBounds(p.getStart(a),p.end)}if(void 0===m||g.includeCompletionsWithInsertText)return{name:s,kind:e.SymbolDisplay.getSymbolKind(o,t,i),kindModifiers:e.SymbolDisplay.getSymbolModifiers(o,t),sortText:r,source:h(_),hasAction:_&&c(_)||void 0,isRecommended:v(t,d,o)||void 0,insertText:m,replacementSpan:b,isPackageJsonImport:u(_)||void 0}}function y(t,r,n){return/^\d+$/.test(n)?n:e.quote(t,r,n)}function v(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}function h(t){return c(t)?e.stripQuotes(t.moduleSymbol.name):1===(null==t?void 0:t.kind)?n.ThisProperty:void 0}function b(t,n,i,a,o,s,c,u,l,_,d,p,f,g,y,v){for(var h=e.timestamp(),b=new e.Map,x=0,D=t;x<D.length;x++){var S=D[x],T=y?y[e.getSymbolId(S)]:void 0,C=k(S,c,T,l,!!p);if(C){var E=C.name,N=C.needsConvertPropertyAccess;if(!b.get(E)){var A=m(S,v&&v[e.getSymbolId(S)]||r.LocationPriority,i,a,o,s,E,N,T,g,d,f,_);if(A){var F=!(T||void 0===S.parent&&!e.some(S.declarations,(function(e){return e.getSourceFile()===a.getSourceFile()})));b.set(E,F),n.push(A)}}}}return u("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-h)),{has:function(e){return b.has(e)},add:function(e){return b.set(e,!0)}}}function x(t,r,n,i,a,o,s){var c=t.getCompilerOptions(),u=E(t,r,n,d(n,c),i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},a,o);if(!u)return{type:"none"};if(0!==u.kind)return{type:"request",request:u};var l=u.symbols,_=u.literals,p=u.location,g=u.completionKind,m=u.symbolToOriginInfoMap,y=u.previousToken,v=u.isJsxInitializer,b=u.isTypeOnlyLocation,x=e.find(_,(function(e){return f(n,s,e)===a.name}));return void 0!==x?{type:"literal",literal:x}:e.firstDefined(l,(function(t){var r=m[e.getSymbolId(t)],n=k(t,c.target,r,g,u.isJsxIdentifierExpected);return n&&n.name===a.name&&h(r)===a.source?{type:"symbol",symbol:t,location:p,symbolToOriginInfoMap:m,previousToken:y,isJsxInitializer:v,isTypeOnlyLocation:b}:void 0}))||{type:"none"}}function D(t,r,n){return T(t,"",r,[e.displayPart(t,n)])}function S(t,r,n,i,a,o,s){var c=r.runWithCancellationToken(a,(function(r){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,n,i,i,7)})),u=c.displayParts,l=c.documentation,_=c.symbolKind,d=c.tags;return T(t.name,e.SymbolDisplay.getSymbolModifiers(r,t),_,u,l,d,o,s)}function T(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s}}function C(t,r,n){var i=n.getAccessibleSymbolChain(t,r,67108863,!1);return i?e.first(i):t.parent&&(function(e){return e.declarations.some((function(e){return 297===e.kind}))}(t.parent)?t:C(t.parent,r,n))}function E(t,n,i,a,o,s,c,u){var l=t.getTypeChecker(),_=t.getCompilerOptions(),d=e.timestamp(),p=e.getTokenAtPosition(i,o);n("getCompletionData: Get current token: "+(e.timestamp()-d)),d=e.timestamp();var f=e.isInComment(i,o,p);n("getCompletionData: Is inside comment: "+(e.timestamp()-d));var g=!1,m=!1;if(f){if(e.hasDocComment(i,o)){if(64===i.text.charCodeAt(o-1))return{kind:1};var y=e.getLineStartPositionForPosition(o,i);if(!/[^\*|\s(/)]/.test(i.text.substring(y,o)))return{kind:2}}var v=function(t,r){var n=e.findAncestor(t,e.isJSDoc);return n&&n.tags&&(e.rangeContainsPosition(n,r)?e.findLast(n.tags,(function(e){return e.pos<r})):void 0)}(p,o);if(v){if(v.tagName.pos<=o&&o<=v.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 326:case 333:case 327:case 329:case 331:return!0;default:return!1}}(v)&&v.typeExpression&&301===v.typeExpression.kind&&((p=e.getTokenAtPosition(i,o))&&(e.isDeclarationName(p)||333===p.parent.kind&&p.parent.name===p)||(g=fe(v.typeExpression))),!g&&e.isJSDocParameterTag(v)&&(e.nodeIsMissing(v.name)||v.name.pos<=o&&o<=v.name.end))return{kind:3,tag:v}}if(!g)return void n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}d=e.timestamp();var h=e.findPrecedingToken(o,i,void 0);n("getCompletionData: Get previous token 1: "+(e.timestamp()-d));var b=h;if(b&&o<=b.end&&(e.isIdentifierOrPrivateIdentifier(b)||e.isKeyword(b.kind))){var x=e.timestamp();b=e.findPrecedingToken(b.getFullStart(),i,void 0),n("getCompletionData: Get previous token 2: "+(e.timestamp()-x))}var D,S=p,T=!1,E=!1,k=!1,N=!1,A=!1,F=!1,I=e.getTouchingPropertyName(i,o);if(b){if(function(t){var r=e.timestamp(),a=function(t){return(e.isRegularExpressionLiteral(t)||e.isStringTextContainingNode(t))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(t)),o)||o===t.end&&(!!t.isUnterminated||e.isRegularExpressionLiteral(t)))}(t)||function(t){var r=t.parent,n=r.kind;switch(t.kind){case 27:return 249===n||function(t){return 250===t.parent.kind&&!e.isPossiblyTypeArgumentPosition(t,i,l)}(t)||232===n||255===n||le(n)||253===n||197===n||254===n||e.isClassLike(r)&&!!r.typeParameters&&r.typeParameters.end>=t.pos;case 24:return 197===n;case 58:return 198===n;case 22:return 197===n;case 20:return 287===n||le(n);case 18:return 255===n;case 29:return 252===n||221===n||253===n||254===n||e.isFunctionLikeKind(n);case 123:return 163===n&&!e.isClassLike(r.parent);case 25:return 160===n||!!r.parent&&197===r.parent.kind;case 122:case 120:case 121:return 160===n&&!e.isConstructorDeclaration(r.parent);case 126:return 265===n||270===n||263===n;case 134:case 146:return!R(t);case 83:case 91:case 117:case 97:case 112:case 99:case 118:case 84:case 135:case 149:return!0;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(w(O(t))&&R(t))return!1;if(ue(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(O(t))||fe(t)))return!1;switch(O(t)){case 125:case 83:case 84:case 133:case 91:case 97:case 117:case 118:case 120:case 121:case 122:case 123:case 112:return!0;case 129:return e.isPropertyDeclaration(t.parent)}return e.isDeclarationName(t)&&!e.isShorthandPropertyAssignment(t.parent)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==h||o>h.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(275===e.parent.kind)return 275!==I.parent.kind;if(276===e.parent.kind||274===e.parent.kind)return!!e.parent.parent&&273===e.parent.parent.kind}return!1}(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a}(b))return void n("Returning an empty list because completion was requested in an invalid position.");var j=b.parent;if(24===b.kind||28===b.kind)switch(T=24===b.kind,E=28===b.kind,j.kind){case 201:if(S=(D=j).expression,(e.isCallExpression(S)||e.isFunctionLike(S))&&S.end===b.pos&&S.getChildCount(i)&&21!==e.last(S.getChildren(i)).kind)return;break;case 157:S=j.left;break;case 256:S=j.name;break;case 195:case 226:S=j;break;default:return}else if(1===i.languageVariant){if(j&&201===j.kind&&(b=j,j=j.parent),p.parent===I)switch(p.kind){case 31:273!==p.parent.kind&&275!==p.parent.kind||(I=p);break;case 43:274===p.parent.kind&&(I=p)}switch(j.kind){case 276:43===b.kind&&(N=!0,I=b);break;case 216:if(!B(j))break;case 274:case 273:case 275:F=!0,29===b.kind&&(k=!0,I=b);break;case 283:19===h.kind&&31===p.kind&&(F=!0);break;case 280:if(j.initializer===h&&h.end<o){F=!0;break}switch(h.kind){case 62:A=!0;break;case 78:F=!0,j!==h.parent&&!j.initializer&&e.findChildOfKind(j,62,i)&&(A=h)}}}}var J=e.timestamp(),z=5,U=!1,V=!1,K=0,q=[],W=[],H=[],G=u.getImportSuggestionsCache&&u.getImportSuggestionsCache(),X=oe();if(T||E)!function(){z=2;var t=e.isLiteralImportTypeNode(S),r=g||t&&!S.isTypeOf||e.isPartOfTypeNode(S.parent)||e.isPossiblyTypeArgumentPosition(b,i,l),n=e.isInRightSideOfInternalImportEqualsDeclaration(S);if(e.isEntityName(S)||t||e.isPropertyAccessExpression(S)){var a=e.isModuleDeclaration(S.parent);a&&(U=!0);var o=l.getSymbolAtLocation(S);if(o&&1920&(o=e.skipAlias(o,l)).flags){var c=l.getExportsOfModule(o);e.Debug.assertEachIsDefined(c,"getExportsOfModule() should all be defined");for(var u=function(e){return l.isValidPropertyAccess(t?S:S.parent,e.name)},_=function(e){return se(e)},d=a?function(e){return!!(1920&e.flags)&&!e.declarations.every((function(e){return e.parent===S.parent}))}:n?function(e){return _(e)||u(e)}:r?_:u,p=0,f=c;p<f.length;p++){var m=f[p];d(m)&&q.push(m)}if(!r&&o.declarations&&o.declarations.some((function(e){return 297!==e.kind&&256!==e.kind&&255!==e.kind}))){var y=!1;if((h=l.getTypeOfSymbolAtLocation(o,S).getNonOptionalType()).isNullableType())((x=T&&!E&&!1!==s.includeAutomaticOptionalChainCompletions)||E)&&(h=h.getNonNullableType(),x&&(y=!0));re(h,!!(32768&S.flags),y)}return}}if(e.isMetaProperty(S)&&(102===S.keywordToken||99===S.keywordToken)&&b===S.getChildAt(1)){var v=102===S.keywordToken?"target":"meta";return void q.push(l.createSymbol(4,e.escapeLeadingUnderscores(v)))}if(!r){var h,x;y=!1;if((h=l.getTypeAtLocation(S).getNonOptionalType()).isNullableType())((x=T&&!E&&!1!==s.includeAutomaticOptionalChainCompletions)||E)&&(h=h.getNonNullableType(),x&&(y=!0));re(h,!!(32768&S.flags),y)}}();else if(k){var Q=l.getJsxIntrinsicTagNamesAt(I);e.Debug.assertEachIsDefined(Q,"getJsxIntrinsicTagNames() should all be defined"),ae(),q=Q.concat(q),z=3,K=0}else if(N){var Y=b.parent.parent.openingElement.tagName,Z=l.getSymbolAtLocation(Y);Z&&(q=[Z]),z=3,K=0}else if(!ae())return;n("getCompletionData: Semantic work: "+(e.timestamp()-J));var $=h&&function(t,r,n,i){var a=t.parent;switch(t.kind){case 78:return e.getContextualTypeFromParent(t,i);case 62:switch(a.kind){case 249:return i.getContextualType(a.initializer);case 216:return i.getTypeAtLocation(a.left);case 280:return i.getContextualTypeForJsxAttribute(a);default:return}case 102:return i.getContextualType(a);case 81:return e.getSwitchedType(e.cast(a,e.isCaseClause),i);case 18:return e.isJsxExpression(a)&&273!==a.parent.kind?i.getContextualTypeForJsxAttribute(a.parent):void 0;default:var o=e.SignatureHelp.getArgumentInfoForCompletions(t,r,n);return o?i.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(27===t.kind?1:0)):e.isEqualityOperatorKind(t.kind)&&e.isBinaryExpression(a)&&e.isEqualityOperatorKind(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}}(h,o,i,l),ee=e.mapDefined($&&($.isUnion()?$.types:[$]),(function(e){return e.isLiteral()?e.value:void 0})),te=h&&$&&function(t,r,n){return e.firstDefined(r&&(r.isUnion()?r.types:[r]),(function(r){var i=r&&r.symbol;return i&&424&i.flags&&!e.isAbstractConstructorSymbol(i)?C(i,t,n):void 0}))}(h,$,l);return{kind:0,symbols:q,completionKind:z,isInSnippetScope:m,propertyAccessToConvert:D,isNewIdentifierLocation:U,location:I,keywordFilters:K,literals:ee,symbolToOriginInfoMap:W,recommendedCompletion:te,previousToken:h,isJsxInitializer:A,insideJsDocTagTypeExpression:g,symbolToSortTextMap:H,isTypeOnlyLocation:X,isJsxIdentifierExpected:F};function re(t,r,n){U=!!t.getStringIndexType(),E&&e.some(t.getCallSignatures())&&(U=!0);var i=195===S.kind?S:S.parent;if(a)q.push.apply(q,e.filter(L(t,l),(function(e){return l.isValidPropertyAccessForCompletions(i,t,e)})));else for(var o=0,c=t.getApparentProperties();o<c.length;o++){var u=c[o];l.isValidPropertyAccessForCompletions(i,t,u)&&ne(u,!1,n)}if(r&&s.includeCompletionsWithInsertText){var _=l.getPromisedTypeOfPromise(t);if(_)for(var d=0,p=_.getApparentProperties();d<p.length;d++){u=p[d];l.isValidPropertyAccessForCompletions(i,_,u)&&ne(u,!0,n)}}}function ne(t,n,i){var a=e.firstDefined(t.declarations,(function(t){return e.tryCast(e.getNameOfDeclaration(t),e.isComputedPropertyName)}));if(a){var o=ie(a.expression),c=o&&l.getSymbolAtLocation(o),u=c&&C(c,b,l);if(u&&!W[e.getSymbolId(u)]){q.push(u);var _=u.parent;W[e.getSymbolId(u)]=_&&e.isExternalModuleSymbol(_)?{kind:f(6),moduleSymbol:_,isDefaultExport:!1}:{kind:f(2)}}else s.includeCompletionsWithInsertText&&(p(t),d(t),q.push(t))}else p(t),d(t),q.push(t);function d(t){(function(t){return!!(t.valueDeclaration&&32&e.getEffectiveModifierFlags(t.valueDeclaration)&&e.isClassLike(t.valueDeclaration.parent))})(t)&&(H[e.getSymbolId(t)]=r.LocalDeclarationPriority)}function p(t){s.includeCompletionsWithInsertText&&(n&&!W[e.getSymbolId(t)]?W[e.getSymbolId(t)]={kind:f(8)}:i&&(W[e.getSymbolId(t)]={kind:16}))}function f(e){return i?16|e:e}}function ie(t){return e.isIdentifier(t)?t:e.isPropertyAccessExpression(t)?ie(t.expression):void 0}function ae(){return 1===(function(){var t,r,n=function(t){if(t){var r=t.parent;switch(t.kind){case 18:case 27:if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r))return r;break;case 41:return e.isMethodDeclaration(r)?e.tryCast(r.parent,e.isObjectLiteralExpression):void 0;case 78:return"async"===t.text&&e.isShorthandPropertyAssignment(t.parent)?t.parent.parent:void 0}}return}(b);if(!n)return 0;if(z=0,200===n.kind){var i=function(t,r){var n=r.getContextualType(t);if(n)return n;if(e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind)return r.getTypeAtLocation(t.parent);return}(n,l);if(void 0===i)return 16777216&n.flags?2:(V=!0,0);var a=l.getContextualType(n,4),o=(a||i).getStringIndexType(),s=(a||i).getNumberIndexType();if(U=!!o||!!s,t=M(i,a,n,l),r=n.properties,0===t.length&&!s)return V=!0,0}else{e.Debug.assert(196===n.kind),U=!1;var c=e.getRootDeclaration(n.parent);if(!e.isVariableLike(c))return e.Debug.fail("Root declaration is not variable-like.");var u=e.hasInitializer(c)||e.hasType(c)||239===c.parent.parent.kind;if(u||160!==c.kind||(e.isExpression(c.parent)?u=!!l.getContextualType(c.parent):165!==c.parent.kind&&168!==c.parent.kind||(u=e.isExpression(c.parent.parent)&&!!l.getContextualType(c.parent.parent))),u){var _=l.getTypeAtLocation(n);if(!_)return 2;var d=e.getContainingClass(n);t=l.getPropertiesOfType(_).filter((function(t){return!(24&e.getDeclarationModifierFlagsFromSymbol(t))||d&&e.contains(_.symbol.declarations,d)})),r=n.elements}}t&&t.length>0&&(q=function(t,r){if(0===r.length)return t;for(var n=new e.Set,i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];if((288===s.kind||289===s.kind||198===s.kind||165===s.kind||167===s.kind||168===s.kind||290===s.kind)&&!fe(s)){var c=void 0;if(e.isSpreadAssignment(s))_e(s,n);else if(e.isBindingElement(s)&&s.propertyName)78===s.propertyName.kind&&(c=s.propertyName.escapedText);else{var u=e.getNameOfDeclaration(s);c=u&&e.isPropertyNameLiteral(u)?e.getEscapedTextOfIdentifierOrLiteral(u):void 0}void 0!==c&&i.add(c)}}var l=t.filter((function(e){return!i.has(e.escapedName)}));return pe(n,l),l}(t,e.Debug.checkDefined(r)));return de(),1}()||function(){var t=!b||18!==b.kind&&27!==b.kind?void 0:e.tryCast(b.parent,e.isNamedImportsOrExports);if(!t)return 0;var r=(264===t.kind?t.parent.parent:t.parent).moduleSpecifier;if(!r)return 264===t.kind?2:0;var n=l.getSymbolAtLocation(r);if(!n)return 2;z=3,U=!1;var i=l.getExportsAndPropertiesOfModule(n),a=new e.Set(t.elements.filter((function(e){return!fe(e)})).map((function(e){return(e.propertyName||e.name).escapedText})));return q=i.filter((function(e){return"default"!==e.escapedName&&!a.has(e.escapedName)})),1}()||function(){var t,n=!b||18!==b.kind&&27!==b.kind?void 0:e.tryCast(b.parent,e.isNamedExports);if(!n)return 0;var i=e.findAncestor(n,e.or(e.isSourceFile,e.isModuleDeclaration));return z=5,U=!1,null===(t=i.locals)||void 0===t||t.forEach((function(t,n){var a,o;q.push(t),(null===(o=null===(a=i.symbol)||void 0===a?void 0:a.exports)||void 0===o?void 0:o.has(n))&&(H[e.getSymbolId(t)]=r.OptionalMember)})),1}()||(function(t){if(t){var r=t.parent;switch(t.kind){case 20:case 27:return e.isConstructorDeclaration(t.parent)?t.parent:void 0;default:if(ue(t))return r.parent}}}(b)?(z=5,U=!0,K=4,1):0)||function(){var t=function(t,r,n,i){switch(n.kind){case 334:return e.tryCast(n.parent,e.isObjectTypeDeclaration);case 1:var a=e.tryCast(e.lastOrUndefined(e.cast(n.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(a&&!e.findChildOfKind(a,19,t))return a;break;case 78:if(e.isPropertyDeclaration(n.parent)&&n.parent.initializer===n)return;if(R(n))return e.findAncestor(n,e.isObjectTypeDeclaration)}if(!r)return;switch(r.kind){case 62:return;case 26:case 19:return R(n)&&n.parent.name===n?n.parent.parent:e.tryCast(n,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(r.parent,e.isObjectTypeDeclaration);default:if(!R(r))return e.getLineAndCharacterOfPosition(t,r.getEnd()).line!==e.getLineAndCharacterOfPosition(t,i).line&&e.isObjectTypeDeclaration(n)?n:void 0;var o=e.isClassLike(r.parent.parent)?w:P;return o(r.kind)||41===r.kind||e.isIdentifier(r)&&o(e.stringToToken(r.text))?r.parent.parent:void 0}}(i,b,I,o);if(!t)return 0;if(z=3,U=!0,K=41===b.kind?0:e.isClassLike(t)?2:3,!e.isClassLike(t))return 1;var r=26===b.kind?b.parent.parent:b.parent,n=e.isClassElement(r)?e.getEffectiveModifierFlags(r):0;if(78===b.kind&&!fe(b))switch(b.getText()){case"private":n|=8;break;case"static":n|=32}if(!(8&n)){var a=e.flatMap(e.getAllSuperTypeNodes(t),(function(e){var r=l.getTypeAtLocation(e);return 32&n?(null==r?void 0:r.symbol)&&l.getPropertiesOfType(l.getTypeOfSymbolAtLocation(r.symbol,t)):r&&l.getPropertiesOfType(r)}));q=function(t,r,n){for(var i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];if((163===s.kind||165===s.kind||167===s.kind||168===s.kind)&&(!fe(s)&&!e.hasEffectiveModifier(s,8)&&e.hasEffectiveModifier(s,32)===!!(32&n))){var c=e.getPropertyNameForPropertyNameNode(s.name);c&&i.add(c)}}return t.filter((function(t){return!(i.has(t.escapedName)||!t.declarations||8&e.getDeclarationModifierFlagsFromSymbol(t)||t.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(t.valueDeclaration))}))}(a,t.members,n)}return 1}()||function(){var t=function(t){if(t){var r=t.parent;switch(t.kind){case 31:case 30:case 43:case 78:case 201:case 281:case 280:case 282:if(r&&(274===r.kind||275===r.kind)){if(31===t.kind){var n=e.findPrecedingToken(t.pos,i,void 0);if(!r.typeArguments||n&&43===n.kind)break}return r}if(280===r.kind)return r.parent.parent;break;case 10:if(r&&(280===r.kind||282===r.kind))return r.parent.parent;break;case 19:if(r&&283===r.kind&&r.parent&&280===r.parent.kind)return r.parent.parent.parent;if(r&&282===r.kind)return r.parent.parent}}return}(b),r=t&&l.getContextualType(t.attributes);if(!r)return 0;var n=t&&l.getContextualType(t.attributes,4);return q=function(t,r){for(var n=new e.Set,i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];fe(s)||(280===s.kind?n.add(s.name.escapedText):e.isJsxSpreadAttribute(s)&&_e(s,i))}var c=t.filter((function(e){return!n.has(e.escapedName)}));return pe(i,c),c}(M(r,n,t.attributes,l),t.attributes.properties),de(),z=3,U=!1,1}()||(function(){K=function(t){if(t){var r,n=e.findAncestor(t.parent,(function(t){return e.isClassLike(t)?"quit":!(!e.isFunctionLikeDeclaration(t)||r!==t.body)||(r=t,!1)}));return n&&n}}(b)?5:1,z=1,U=function(){if(b){var e=b.parent.kind;switch(O(b)){case 27:return 203===e||166===e||204===e||199===e||216===e||174===e||200===e;case 20:return 203===e||166===e||204===e||207===e||186===e;case 22:return 199===e||171===e||158===e;case 139:case 140:return!0;case 24:return 256===e;case 18:return 252===e||200===e;case 62:return 249===e||216===e;case 15:return 218===e;case 16:return 228===e;case 122:case 120:case 121:return 163===e}}return!1}(),h!==b&&e.Debug.assert(!!h,"Expected 'contextToken' to be defined when different from 'previousToken'.");var a=h!==b?h.getStart():o,d=function(t,r,n){var i=t;for(;i&&!e.positionBelongsToNode(i,r,n);)i=i.parent;return i}(b,a,i)||i;m=function(t){switch(t.kind){case 297:case 218:case 283:case 230:return!0;default:return e.isStatement(t)}}(d);var p=2887656|(X?0:111551);q=l.getSymbolsInScope(d,p),e.Debug.assertEachIsDefined(q,"getSymbolsInScope() should all be defined");for(var f=0,g=q;f<g.length;f++){var y=g[f];l.isArgumentsSymbol(y)||e.some(y.declarations,(function(e){return e.getSourceFile()===i}))||(H[e.getSymbolId(y)]=r.GlobalsOrKeywords)}if(s.includeCompletionsWithInsertText&&297!==d.kind){var v=l.tryGetThisTypeAt(d,!1);if(v&&!function(e,t,r){var n=r.resolveName("self",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return!0;var i=r.resolveName("global",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;var a=r.resolveName("globalThis",void 0,111551,!1);if(a&&r.getTypeOfSymbolAtLocation(a,t)===e)return!0;return!1}(v,i,l))for(var x=0,D=L(v,l);x<D.length;x++){y=D[x];W[e.getSymbolId(y)]={kind:1},q.push(y),H[e.getSymbolId(y)]=r.SuggestedClassMembers}}if(!V&&!!s.includeCompletionsForModuleExports&&(!(!i.externalModuleIndicator&&!i.commonJsModuleIndicator)||!!e.compilerOptionsIndicateEs6Modules(t.getCompilerOptions())||e.programContainsModules(t))){var S=h&&e.isIdentifier(h)?h.text.toLowerCase():"",T=function(r,a){var o=G&&G.get(i.fileName,l,c&&a.getProjectVersion?a.getProjectVersion():void 0);if(o)return n("getSymbolsFromOtherSourceFileExports: Using cached list"),o;var s=e.timestamp();n("getSymbolsFromOtherSourceFileExports: Recomputing list"+(c?" for details entry":""));var u=new e.Map,_=new e.Map,d=new e.Map,p=new e.Map,f=[],g=new e.Map;return e.codefix.forEachExternalModuleToImportFrom(t,a,i,!c,!0,(function(t,r,n,i){if(!c||!c.source||e.stripQuotes(t.name)===c.source){var a=n.getTypeChecker(),o=a.resolveExternalModuleSymbol(t);if(e.addToSeen(u,e.getSymbolId(o))){o!==t&&e.every(o.declarations,e.isNonGlobalDeclaration)&&m(o,t,i,!0);for(var s=0,l=a.getExportsAndPropertiesOfModule(t);s<l.length;s++){var f=l[s],y=e.getSymbolId(f).toString();if(e.addToSeen(_,y)&&!e.some(f.declarations,(function(t){return e.isExportSpecifier(t)&&!!t.propertyName&&e.isIdentifierANonContextualKeyword(t.name)}))){var v=a.getMergedSymbol(f.parent)!==o;if(v||e.some(f.declarations,(function(t){return e.isExportSpecifier(t)&&!t.propertyName&&!!t.parent.parent.moduleSpecifier}))){var h=v?f:ce(f);if(!h)continue;var b=e.getSymbolId(h).toString();g.has(b)||d.has(b)?e.addToSeen(d,y):(p.set(b,{alias:f,moduleSymbol:t,isFromPackageJson:i}),d.set(y,!0))}else p.delete(y),m(f,t,i,!1)}}}}})),p.forEach((function(e){return m(e.alias,e.moduleSymbol,e.isFromPackageJson,!1)})),n("getSymbolsFromOtherSourceFileExports: "+(e.timestamp()-s)),f;function m(t,n,i,a){var o="default"===t.escapedName;if(o&&(t=e.getLocalSymbolForExportDefault(t)||t),!l.isUndefinedSymbol(t)){e.addToSeen(g,e.getSymbolId(t));var s={kind:4,moduleSymbol:n,isDefaultExport:o,isFromPackageJson:i};f.push({symbol:t,symbolName:e.getNameForExportedSymbol(t,r),origin:s,skipFilter:a})}}}(t.getCompilerOptions().target,u);!c&&G&&G.set(i.fileName,T,u.getProjectVersion&&u.getProjectVersion()),T.forEach((function(t){var n=t.symbol,i=t.symbolName,a=t.skipFilter,o=t.origin;if(c){if(c.source&&e.stripQuotes(o.moduleSymbol.name)!==c.source)return}else if(!a&&!function(e,t){if(0===t.length)return!0;for(var r=0,n=0;n<e.length;n++)if(e.charCodeAt(n)===t.charCodeAt(r)&&++r===t.length)return!0;return!1}(i.toLowerCase(),S))return;var s=e.getSymbolId(n);q.push(n),W[s]=o,H[s]=r.AutoImportSuggestions}))}!function(t){var n=oe();n&&(K=b&&e.isAssertionExpression(b.parent)?6:7);var a=(o=I,e.findAncestor(o,(function(t){return e.isFunctionBlock(t)||function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t}(t)||e.isBindingPattern(t)?"quit":e.isVariableDeclaration(t)})));var o;e.filterMutate(t,(function(t){if(!e.isSourceFile(I)){if(e.isExportAssignment(I.parent))return!0;if(a&&t.valueDeclaration===a)return!1;var o=e.skipAlias(t,l);if(i.externalModuleIndicator&&!_.allowUmdGlobalAccess&&H[e.getSymbolId(t)]===r.GlobalsOrKeywords&&H[e.getSymbolId(o)]===r.AutoImportSuggestions)return!1;if(t=o,e.isInRightSideOfInternalImportEqualsDeclaration(I))return!!(1920&t.flags);if(n)return se(t)}return!!(111551&e.getCombinedLocalAndExportSymbolFlags(t))}))}(q)}(),1))}function oe(){return g||!function(t){return t&&111===t.kind&&(176===t.parent.kind||e.isTypeOfExpression(t.parent))}(b)&&(e.isPossiblyTypeArgumentPosition(b,i,l)||e.isPartOfTypeNode(I)||function(t){if(t){var r=t.parent.kind;switch(t.kind){case 58:return 163===r||162===r||160===r||249===r||e.isFunctionLikeKind(r);case 62:return 254===r;case 126:return 224===r;case 29:return 173===r||206===r;case 93:return 159===r}}return!1}(b))}function se(t,r){void 0===r&&(r=new e.Map);var n=e.skipAlias(t.exportSymbol||t,l);return!!(788968&n.flags)||!!(1536&n.flags)&&e.addToSeen(r,e.getSymbolId(n))&&l.getExportsOfModule(n).some((function(e){return se(e,r)}))}function ce(t){return function(e,t,r){var n=t;for(;2097152&n.flags&&(n=e.getImmediateAliasedSymbol(n));)if(r(n))return n}(l,t,(function(t){return e.some(t.declarations,(function(t){return e.isExportSpecifier(t)||!!t.localSymbol}))}))}function ue(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function le(t){return e.isFunctionLikeKind(t)&&166!==t}function _e(e,t){var r=e.expression,n=l.getSymbolAtLocation(r),i=n&&l.getTypeOfSymbolAtLocation(n,r),a=i&&i.properties;a&&a.forEach((function(e){t.add(e.name)}))}function de(){q.forEach((function(t){16777216&t.flags&&(H[e.getSymbolId(t)]=H[e.getSymbolId(t)]||r.OptionalMember)}))}function pe(t,n){if(0!==t.size)for(var i=0,a=n;i<a.length;i++){var o=a[i];t.has(o.name)&&(H[e.getSymbolId(o)]=r.MemberDeclaredBySpreadAssignment)}}function fe(e){return e.getStart(i)<=o&&o<=e.getEnd()}}function k(t,r,n,i,a){var o=c(n)?e.getNameForExportedSymbol(t,r):t.name;if(!(void 0===o||1536&t.flags&&e.isSingleOrDoubleQuote(o.charCodeAt(0))||e.isKnownSymbol(t))){var s={name:o,needsConvertPropertyAccess:!1};if(e.isIdentifierText(o,r,a?1:0)||t.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(t.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)}}}!function(e){e.LocalDeclarationPriority="0",e.LocationPriority="1",e.OptionalMember="2",e.MemberDeclaredBySpreadAssignment="3",e.SuggestedClassMembers="4",e.GlobalsOrKeywords="5",e.AutoImportSuggestions="6",e.JavascriptIdentifiers="7"}(r=t.SortText||(t.SortText={})),function(e){e.ThisProperty="ThisProperty/"}(n=t.CompletionSource||(t.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.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport"}(i||(i={})),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"}(a||(a={})),function(e){e[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail"}(o||(o={})),t.createImportSuggestionsForFileCache=function(){var t,r,n;return{isEmpty:function(){return!t},clear:function(){t=void 0,n=void 0,r=void 0},set:function(e,i,a){t=i,n=e,a&&(r=a)},get:function(i,a,o){if(i===n)return o?r===o?t:void 0:(e.forEach(t,(function(e){var t,r,n;(null===(t=e.symbol.declarations)||void 0===t?void 0:t.length)&&(e.symbol=a.getMergedSymbol(e.origin.isDefaultExport&&null!==(r=e.symbol.declarations[0].localSymbol)&&void 0!==r?r:e.symbol.declarations[0].symbol)),(null===(n=e.origin.moduleSymbol.declarations)||void 0===n?void 0:n.length)&&(e.origin.moduleSymbol=a.getMergedSymbol(e.origin.moduleSymbol.declarations[0].symbol))})),t)}}},t.getCompletionsAtPosition=function(n,i,a,o,s,c,u){var f=i.getTypeChecker(),m=i.getCompilerOptions(),y=e.findPrecedingToken(s,o);if(!u||e.isInString(o,s,y)||function(t,r,n,i){switch(r){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&e.isStringLiteralOrTemplate(n)&&i===n.getStart(t)+1;case"#":return!!n&&e.isPrivateIdentifier(n)&&!!e.getContainingClass(n);case"<":return!!n&&29===n.kind&&(!e.isBinaryExpression(n.parent)||B(n.parent));case"/":return!!n&&(e.isStringLiteralLike(n)?!!e.tryGetImportFromModuleSpecifier(n):43===n.kind&&e.isJsxClosingElement(n.parent));default:return e.Debug.assertNever(r)}}(o,u,y,s)){var v=t.StringCompletions.getStringLiteralCompletions(o,s,y,f,m,n,a,c);if(v)return v;if(y&&e.isBreakOrContinueStatement(y.parent)&&(80===y.kind||85===y.kind||78===y.kind))return function(t){var n=function(t){var n=[],i=new e.Map,a=t;for(;a&&!e.isFunctionLike(a);){if(e.isLabeledStatement(a)){var o=a.label.text;i.has(o)||(i.set(o,!0),n.push({name:o,kindModifiers:"",kind:"label",sortText:r.LocationPriority}))}a=a.parent}return n}(t);if(n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:n}}(y.parent);var h=E(i,a,o,d(o,m),s,c,void 0,n);if(h)switch(h.kind){case 0:return function(t,n,i,a,o,s){var c=o.symbols,u=o.completionKind,l=o.isInSnippetScope,f=o.isNewIdentifierLocation,m=o.location,y=o.propertyAccessToConvert,v=o.keywordFilters,h=o.literals,x=o.symbolToOriginInfoMap,D=o.recommendedCompletion,S=o.isJsxInitializer,T=o.insideJsDocTagTypeExpression,C=o.symbolToSortTextMap;if(m&&m.parent&&e.isJsxClosingElement(m.parent)){var E=m.parent.parent.openingElement.tagName,k=!!e.findChildOfKind(m.parent,31,t),A={name:E.getFullText(t)+(k?"":">"),kind:"class",kindModifiers:void 0,sortText:r.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:_(m),entries:[A]}}var P=[];if(d(t,i)){var w=b(c,P,void 0,m,t,n,i.target,a,u,s,y,o.isJsxIdentifierExpected,S,D,x,C);!function(t,n,i,a,o){e.getNameTable(t).forEach((function(t,s){if(t!==n){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:r.JavascriptIdentifiers,isFromUncheckedFile:!0}))}}))}(t,m.pos,w,i.target,P)}else{if(!(f||c&&0!==c.length||0!==v))return;b(c,P,void 0,m,t,n,i.target,a,u,s,y,o.isJsxIdentifierExpected,S,D,x,C)}if(0!==v)for(var I=new e.Set(P.map((function(e){return e.name}))),O=0,M=function(t,r){if(!r)return F(t);var n=t+7+1;return N[n]||(N[n]=F(t).filter((function(t){return!function(e){switch(e){case 125:case 128:case 155:case 131:case 133:case 91:case 154:case 116:case 135:case 117:case 137:case 138:case 139:case 140:case 141:case 144:case 145:case 120:case 121:case 122:case 142:case 147:case 148:case 149:case 151:case 152:return!0;default:return!1}}(e.stringToToken(t.name))})))}(v,!T&&e.isSourceFileJS(t));O<M.length;O++){var L=M[O];I.has(L.name)||P.push(L)}for(var R=0,B=h;R<B.length;R++){var j=B[R];P.push(g(t,s,j))}return{isGlobalCompletion:l,isMemberCompletion:p(u),isNewIdentifierLocation:f,optionalReplacementSpan:_(m),entries:P}}(o,f,m,a,h,c);case 1:return l(e.JsDoc.getJSDocTagNameCompletions());case 2:return l(e.JsDoc.getJSDocTagCompletions());case 3:return l(e.JsDoc.getJSDocParameterNameCompletions(h.tag));default:return e.Debug.assertNever(h)}}},t.getCompletionEntriesFromSymbols=b,t.getCompletionEntryDetails=function(r,n,i,a,o,s,u,l,_){var d=r.getTypeChecker(),p=r.getCompilerOptions(),g=o.name,m=e.findPrecedingToken(a,i);if(e.isInString(i,a,m))return t.StringCompletions.getStringLiteralCompletionDetails(g,i,a,m,d,p,s,_);var y=x(r,n,i,a,o,s,l);switch(y.type){case"request":var v=y.request;switch(v.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(g);case 2:return e.JsDoc.getJSDocTagCompletionDetails(g);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(g);default:return e.Debug.assertNever(v)}case"symbol":var h=y.symbol,b=y.location,T=function(t,r,n,i,a,o,s,u,l,_,d){var p=t[e.getSymbolId(r)];if(!p||!c(p))return{codeActions:void 0,sourceDisplay:void 0};var f=p.moduleSymbol,g=i.getMergedSymbol(e.skipAlias(r.exportSymbol||r,i)),m=e.codefix.getImportCompletionAction(g,f,s,e.getNameForExportedSymbol(r,o.target),a,n,_,l&&e.isIdentifier(l)?l.getStart(s):u,d),y=m.moduleSpecifier,v=m.codeAction;return{sourceDisplay:[e.textPart(y)],codeActions:[v]}}(y.symbolToOriginInfoMap,h,r,d,s,p,i,a,y.previousToken,u,l);return S(h,d,i,b,_,T.codeActions,T.sourceDisplay);case"literal":var C=y.literal;return D(f(i,l,C),"string","string"==typeof C?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return A().some((function(e){return e.name===g}))?D(g,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(y)}},t.createCompletionDetailsForSymbol=S,t.createCompletionDetails=T,t.getCompletionEntrySymbol=function(e,t,r,n,i,a,o){var s=x(e,t,r,n,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"}(s||(s={})),function(e){e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None"}(t.CompletionKind||(t.CompletionKind={}));var N=[],A=e.memoize((function(){for(var t=[],n=80;n<=156;n++)t.push({name:e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:r.GlobalsOrKeywords});return t}));function F(t){return N[t]||(N[t]=A().filter((function(r){var n=e.stringToToken(r.name);switch(t){case 0:return!1;case 1:return I(n)||133===n||139===n||149===n||140===n||e.isTypeKeyword(n)&&150!==n;case 5:return I(n);case 2:return w(n);case 3:return P(n);case 4:return e.isParameterPropertyModifier(n);case 6:return e.isTypeKeyword(n)||84===n;case 7:return e.isTypeKeyword(n);default:return e.Debug.assertNever(t)}})))}function P(e){return 142===e}function w(t){switch(t){case 125:case 132:case 134:case 146:case 129:case 133:return!0;default:return e.isClassMemberModifier(t)}}function I(t){return 129===t||130===t||126===t||!e.isContextualKeyword(t)&&!w(t)}function O(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function M(t,r,n,i){var a=r&&r!==t,o=!a||3&r.flags?t:i.getUnionType([t,r]),s=o.isUnion()?i.getAllPossiblePropertiesOfTypes(o.types.filter((function(t){return!(131068&t.flags||i.isArrayLikeType(t)||e.typeHasCallOrConstructSignatures(t,i)||i.isTypeInvalidDueToUnionDiscriminant(t,n))}))):o.getApparentProperties();return a?s.filter((function(t){return e.some(t.declarations,(function(e){return e.parent!==n}))})):s}function L(t,r){return t.isUnion()?e.Debug.checkEachDefined(r.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function R(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function B(t){var r=t.left;return e.nodeIsMissing(r)}t.getPropertiesForObjectExpression=M}(e.Completions||(e.Completions={}))}(ts||(ts={})),function(e){!function(t){function r(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:"none"}}function n(t){return e.isThrowStatement(t)?[t]:e.isTryStatement(t)?e.concatenate(t.catchClause?n(t.catchClause):t.tryBlock&&n(t.tryBlock),t.finallyBlock&&n(t.finallyBlock)):e.isFunctionLike(t)?void 0:a(t,n)}function i(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?void 0:a(t,i)}function a(t,r){var n=[];return t.forEachChild((function(t){var i=r(t);void 0!==i&&n.push.apply(n,e.toArray(i))})),n}function o(e,t){var r=s(t);return!!r&&r===e}function s(t){return e.findAncestor(t,(function(r){switch(r.kind){case 244:if(240===t.kind)return!1;case 237:case 238:case 239:case 236:case 235:return!t.label||function(t,r){return!!e.findAncestor(t.parent,(function(t){return e.isLabeledStatement(t)?t.label.escapedText===r:"quit"}))}(r,t.label.escapedText);default:return e.isFunctionLike(r)&&"quit"}}))}function c(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return!(!r||!e.contains(n,r.kind))&&(t.push(r),!0)}function u(t){var r=[];if(c(r,t.getFirstToken(),96,114,89)&&235===t.kind)for(var n=t.getChildren(),a=n.length-1;a>=0&&!c(r,n[a],114);a--);return e.forEach(i(t.statement),(function(e){o(t,e)&&c(r,e.getFirstToken(),80,85)})),r}function l(e){var t=s(e);if(t)switch(t.kind){case 237:case 238:case 239:case 235:case 236:return u(t);case 244:return _(t)}}function _(t){var r=[];return c(r,t.getFirstToken(),106),e.forEach(t.caseBlock.clauses,(function(n){c(r,n.getFirstToken(),81,87),e.forEach(i(n),(function(e){o(t,e)&&c(r,e.getFirstToken(),80)}))})),r}function d(t,r){var n=[];(c(n,t.getFirstToken(),110),t.catchClause&&c(n,t.catchClause.getFirstToken(),82),t.finallyBlock)&&c(n,e.findChildOfKind(t,95,r),95);return n}function p(t,r){var i=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||297===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(i){var a=[];return e.forEach(n(i),(function(t){a.push(e.findChildOfKind(t,108,r))})),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,(function(t){a.push(e.findChildOfKind(t,104,r))})),a}}function f(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),(function(t){a.push(e.findChildOfKind(t,104,r))})),e.forEach(n(i.body),(function(t){a.push(e.findChildOfKind(t,108,r))})),a}}function g(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((function(e){c(n,e,129)})),e.forEachChild(r,(function(t){m(t,(function(t){e.isAwaitExpression(t)&&c(n,t.getFirstToken(),130)}))})),n}}function m(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,(function(e){return m(e,r)}))}t.getDocumentHighlights=function(t,n,i,a,o){var s=e.getTouchingPropertyName(i,a);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var y=s.parent.parent,v=[y.openingElement,y.closingElement].map((function(e){return r(e.tagName,i)}));return[{fileName:i.fileName,highlightSpans:v}]}return function(t,r,n,i,a){var o=new e.Set(a.map((function(e){return e.fileName}))),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(!s)return;var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(function(e){return e.fileName}),(function(e){return e.span}));return e.arrayFrom(c.entries(),(function(t){var r=t[0],i=t[1];if(!o.has(r)){e.Debug.assert(n.redirectTargetsMap.has(r));var s=n.getSourceFile(r);r=e.find(a,(function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s})).fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}}))}(a,s,t,n,o)||function(t,n){var i=function(t,n){switch(t.kind){case 98:case 90:return e.isIfStatement(t.parent)?function(t,n){for(var i=function(t,r){var n=[];for(;e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);c(n,i[0],98);for(var a=i.length-1;a>=0&&!c(n,i[a],90);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o<i.length;o++){if(90===i[o].kind&&o<i.length-1){for(var s=i[o],u=i[o+1],l=!0,_=u.getStart(n)-1;_>=s.end;_--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(_))){l=!1;break}if(l){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),u.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 104:return s(t.parent,e.isReturnStatement,f);case 108:return s(t.parent,e.isThrowStatement,p);case 110:case 82:case 95:return s(82===t.kind?t.parent.parent:t.parent,e.isTryStatement,d);case 106:return s(t.parent,e.isSwitchStatement,_);case 81:case 87:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?s(t.parent.parent.parent,e.isSwitchStatement,_):void 0;case 80:case 85:return s(t.parent,e.isBreakOrContinueStatement,l);case 96:case 114:case 89:return s(t.parent,(function(t){return e.isIterationStatement(t,!0)}),u);case 132:return o(e.isConstructorDeclaration,[132]);case 134:case 146:return o(e.isAccessor,[134,146]);case 130:return s(t.parent,e.isAwaitExpression,g);case 129:return y(g(t));case 124:return y(function(t){var r=e.getContainingFunction(t);if(!r)return;var n=[];return e.forEachChild(r,(function(t){m(t,(function(t){e.isYieldExpression(t)&&c(n,t.getFirstToken(),124)}))})),n}(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?y((i=t.kind,a=t.parent,e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 257:case 297:case 230:case 284:case 285:return 128&r&&e.isClassDeclaration(t)?__spreadArray(__spreadArray([],t.members),[t]):n.statements;case 166:case 165:case 251:return __spreadArray(__spreadArray([],n.parameters),e.isClassLike(n.parent)?n.parent.members:[]);case 252:case 221:case 253:case 177:var i=n.members;if(92&r){var a=e.find(n.members,e.isConstructorDeclaration);if(a)return __spreadArray(__spreadArray([],i),a.parameters)}else if(128&r)return __spreadArray(__spreadArray([],i),[n]);return i;case 200:return;default:e.Debug.assertNever(n,"Invalid container kind.")}}(a,e.modifierToFlag(i)),(function(t){return e.findModifier(t,i)})))):void 0}var i,a;function o(r,i){return s(t.parent,r,(function(t){return e.mapDefined(t.symbol.declarations,(function(t){return r(t)?e.find(t.getChildren(n),(function(t){return e.contains(i,t.kind)})):void 0}))}))}function s(e,t,r){return t(e)?y(r(e,n)):void 0}function y(e){return e&&e.map((function(e){return r(e,n)}))}}(t,n);return i&&[{fileName:n.fileName,highlightSpans:i}]}(s,i)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(ts||(ts={})),function(e){function t(t,n,i){void 0===n&&(n="");var a=new e.Map,o=e.createGetCanonicalFileName(!!t);function s(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!0,o)}function c(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!1,o)}function u(t,r,n,o,s,c,u,l){var _=e.getOrUpdate(a,o,(function(){return new e.Map})),d=_.get(r),p=6===l?100:n.target||1;!d&&i&&((f=i.getDocument(o,r))&&(e.Debug.assert(u),d={sourceFile:f,languageServiceRefCount:0},_.set(r,d)));if(d)d.sourceFile.version!==c&&(d.sourceFile=e.updateLanguageServiceSourceFile(d.sourceFile,s,c,s.getChangeRange(d.sourceFile.scriptSnapshot)),i&&i.setDocument(o,r,d.sourceFile)),u&&d.languageServiceRefCount++;else{var f=e.createLanguageServiceSourceFile(t,s,p,c,!1,l);i&&i.setDocument(o,r,f),d={sourceFile:f,languageServiceRefCount:1},_.set(r,d)}return e.Debug.assert(0!==d.languageServiceRefCount),d.sourceFile}function l(t,r){var n=e.Debug.checkDefined(a.get(r)),i=n.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&n.delete(t)}return{acquireDocument:function(t,i,a,c,u){return s(t,e.toPath(t,n,o),i,r(i),a,c,u)},acquireDocumentWithKey:s,updateDocument:function(t,i,a,s,u){return c(t,e.toPath(t,n,o),i,r(i),a,s,u)},updateDocumentWithKey:c,releaseDocument:function(t,i){return l(e.toPath(t,n,o),r(i))},releaseDocumentWithKey:l,getLanguageServiceRefCounts:function(t){return e.arrayFrom(a.entries(),(function(e){var r=e[0],n=e[1].get(t);return[r,n&&n.languageServiceRefCount]}))},reportStats:function(){var t=e.arrayFrom(a.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var t=a.get(e),r=[];return t.forEach((function(e,t){r.push({name:t,refCount:e.languageServiceRefCount})})),r.sort((function(e,t){return t.refCount-e.refCount})),{bucket:e,sourceFiles:r}}));return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:r}}function r(t){return e.sourceFileAffectingCompilerOptions.map((function(r){return e.getCompilerOptionValue(t,r)})).join("|")}e.createDocumentRegistry=function(e,r){return t(e,r)},e.createDocumentRegistryInternal=t}(ts||(ts={})),function(e){!function(t){function r(t,r){return e.forEach(297===t.kind?t.statements:t.body.statements,(function(t){return r(t)||s(t)&&e.forEach(t.body&&t.body.statements,r)}))}function n(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i<a.length;i++){var o=a[i];n(e.importFromModuleSpecifier(o),o)}else r(t,(function(t){switch(t.kind){case 267:case 261:(r=t).moduleSpecifier&&e.isStringLiteral(r.moduleSpecifier)&&n(r,r.moduleSpecifier);break;case 260:var r;c(r=t)&&n(r,r.moduleReference.expression)}}))}function i(t,r,n){var i=t.parent;if(i){var a=n.getMergedSymbol(i);return e.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:r}:void 0}}function a(e,t){return t.getMergedSymbol(o(e).symbol)}function o(t){if(203===t.kind)return t.getSourceFile();var r=t.parent;return 297===r.kind?r:(e.Debug.assert(257===r.kind),e.cast(r.parent,s))}function s(e){return 256===e.kind&&10===e.name.kind}function c(e){return 272===e.moduleReference.kind&&10===e.moduleReference.expression.kind}t.createImportTracker=function(t,i,u,l){var _=function(t,r,i){for(var a=new e.Map,o=0,s=t;o<s.length;o++){var c=s[o];i&&i.throwIfCancellationRequested(),n(c,(function(t,n){var i=r.getSymbolAtLocation(n);if(i){var o=e.getSymbolId(i).toString(),s=a.get(o);s||a.set(o,s=[]),s.push(t)}}))}return a}(t,u,l);return function(n,d,p){var f=function(t,n,i,c,u,l){var _=c.exportingModuleSymbol,d=c.exportKind,p=e.nodeSeenTracker(),f=e.nodeSeenTracker(),g=[],m=!!_.globalExports,y=m?void 0:[];return h(_),{directImports:g,indirectUsers:v()};function v(){if(m)return t;for(var r=0,i=_.declarations;r<i.length;r++){var a=i[r];e.isExternalModuleAugmentation(a)&&n.has(a.getSourceFile().fileName)&&S(a)}return y.map(e.getSourceFileOfNode)}function h(t){var r=T(t);if(r)for(var n=0,i=r;n<i.length;n++){var s=i[n];if(p(s))switch(l&&l.throwIfCancellationRequested(),s.kind){case 203:if(e.isImportCall(s)){b(s);break}if(!m){var c=s.parent;if(2===d&&249===c.kind){var _=c.name;if(78===_.kind){g.push(_);break}}}break;case 78:break;case 260:D(s,s.name,e.hasSyntacticModifier(s,1),!1);break;case 261:g.push(s);var f=s.importClause&&s.importClause.namedBindings;f&&263===f.kind?D(s,f.name,!1,!0):!m&&e.isDefaultImport(s)&&S(o(s));break;case 267:s.exportClause?269===s.exportClause.kind?S(o(s),!0):g.push(s):h(a(s,u));break;case 195:s.isTypeOf&&!s.qualifier&&x(s)&&S(s.getSourceFile(),!0),g.push(s);break;default:e.Debug.failBadSyntaxKind(s,"Unexpected import kind.")}}}function b(t){S(e.findAncestor(t,s)||t.getSourceFile(),!!x(t,!0))}function x(t,r){return void 0===r&&(r=!1),e.findAncestor(t,(function(t){return r&&s(t)?"quit":e.some(t.modifiers,(function(e){return 92===e.kind}))}))}function D(t,n,i,a){if(2===d)a||g.push(t);else if(!m){var s=o(t);e.Debug.assert(297===s.kind||256===s.kind),i||function(t,n,i){var a=i.getSymbolAtLocation(n);return!!r(t,(function(t){if(e.isExportDeclaration(t)){var r=t.exportClause;return!t.moduleSpecifier&&r&&e.isNamedExports(r)&&r.elements.some((function(e){return i.getExportSpecifierLocalTargetSymbol(e)===a}))}}))}(s,n,u)?S(s,!0):S(s)}}function S(t,r){if(void 0===r&&(r=!1),e.Debug.assert(!m),f(t)&&(y.push(t),r)){var n=u.getMergedSymbol(t.symbol);if(n){e.Debug.assert(!!(1536&n.flags));var i=T(n);if(i)for(var a=0,s=i;a<s.length;a++){var c=s[a];e.isImportTypeNode(c)||S(o(c),!0)}}}}function T(t){return i.get(e.getSymbolId(t).toString())}}(t,i,_,d,u,l),g=f.directImports,m=f.indirectUsers;return __assign({indirectUsers:m},function(t,r,n,i,a){var o=[],s=[];function u(e,t){o.push([e,t])}if(t)for(var l=0,_=t;l<_.length;l++){d(_[l])}return{importSearches:o,singleReferences:s};function d(t){if(260!==t.kind)if(78!==t.kind)if(195!==t.kind){if(10===t.moduleSpecifier.kind)if(267!==t.kind){var o=t.importClause||{name:void 0,namedBindings:void 0},l=o.name,_=o.namedBindings;if(_)switch(_.kind){case 263:p(_.name);break;case 264:0!==n&&1!==n||f(_);break;default:e.Debug.assertNever(_)}if(l&&(1===n||2===n)&&(!a||l.escapedText===e.symbolEscapedNameNoDefault(r)))u(l,i.getSymbolAtLocation(l))}else t.exportClause&&e.isNamedExports(t.exportClause)&&f(t.exportClause)}else if(t.qualifier){var d=e.getFirstIdentifier(t.qualifier);d.escapedText===e.symbolName(r)&&s.push(d)}else 2===n&&s.push(t.argument.literal);else p(t);else c(t)&&p(t.name)}function p(e){2!==n||a&&!g(e.escapedText)||u(e,i.getSymbolAtLocation(e))}function f(e){if(e)for(var t=0,n=e.elements;t<n.length;t++){var o=n[t],c=o.name,l=o.propertyName;if(g((l||c).escapedText))if(l)s.push(l),a&&c.escapedText!==r.escapedName||u(c,i.getSymbolAtLocation(c));else u(c,270===o.kind&&o.propertyName?i.getExportSpecifierLocalTargetSymbol(o):i.getSymbolAtLocation(c))}}function g(e){return e===r.escapedName||0!==n&&"default"===e}}(g,n,d.exportKind,u,p))}},function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals"}(t.ExportKind||(t.ExportKind={})),function(e){e[e.Import=0]="Import",e[e.Export=1]="Export"}(t.ImportExport||(t.ImportExport={})),t.findModuleReferences=function(e,t,r){for(var i=[],a=e.getTypeChecker(),o=0,s=t;o<s.length;o++){var c=s[o],u=r.valueDeclaration;if(297===u.kind){for(var l=0,_=c.referencedFiles;l<_.length;l++){var d=_[l];e.getSourceFileFromReference(c,d)===u&&i.push({kind:"reference",referencingFile:c,ref:d})}for(var p=0,f=c.typeReferenceDirectives;p<f.length;p++){d=f[p];var g=e.getResolvedTypeReferenceDirectives().get(d.fileName);void 0!==g&&g.resolvedFileName===u.fileName&&i.push({kind:"reference",referencingFile:c,ref:d})}}n(c,(function(e,t){a.getSymbolAtLocation(t)===r&&i.push({kind:"import",literal:t})}))}return i},t.getImportOrExportSymbol=function(t,r,n,a){return a?o():o()||function(){if(!function(t){var r=t.parent;switch(r.kind){case 260:return r.name===t&&c(r);case 265:return!r.propertyName;case 262:case 263:return e.Debug.assert(r.name===t),!0;case 198:return e.isInJSFile(t)&&e.isRequireVariableDeclaration(r,!0);default:return!1}}(t))return;var i=n.getImmediateAliasedSymbol(r);if(!i)return;"export="===(i=function(t,r){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(e.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return r.getExportSpecifierLocalTargetSymbol(a);if(e.isPropertyAccessExpression(a)&&e.isModuleExportsAccessExpression(a.expression)&&!e.isPrivateIdentifier(a.name))return r.getExportSpecifierLocalTargetSymbol(a.name);if(e.isShorthandPropertyAssignment(a)&&e.isBinaryExpression(a.parent.parent)&&2===e.getAssignmentDeclarationKind(a.parent.parent))return r.getExportSpecifierLocalTargetSymbol(a.name)}return t}(i,n)).escapedName&&(i=function(t,r){if(2097152&t.flags)return e.Debug.checkDefined(r.getImmediateAliasedSymbol(t));var n=t.valueDeclaration;if(e.isExportAssignment(n))return e.Debug.checkDefined(n.expression.symbol);if(e.isBinaryExpression(n))return e.Debug.checkDefined(n.right.symbol);if(e.isSourceFile(n))return e.Debug.checkDefined(n.symbol);return e.Debug.fail()}(i,n));var a=e.symbolEscapedNameNoDefault(i);if(void 0===a||"default"===a||a===r.escapedName)return{kind:0,symbol:i}}();function o(){var i=t.parent,o=i.parent;if(r.exportSymbol)return 201===i.kind?r.declarations.some((function(e){return e===i}))&&e.isBinaryExpression(o)?_(o,!1):void 0:s(r.exportSymbol,u(i));var c=function(t,r){var n=e.isVariableDeclaration(t)?t:e.isBindingElement(t)?e.walkUpBindingElementsAndPatterns(t):void 0;return n?t.name!==r||e.isCatchClause(n.parent)?void 0:e.isVariableStatement(n.parent.parent)?n.parent.parent:void 0:t}(i,t);if(c&&e.hasSyntacticModifier(c,1)){if(e.isImportEqualsDeclaration(c)&&c.moduleReference===t){if(a)return;return{kind:0,symbol:n.getSymbolAtLocation(c.name)}}return s(r,u(c))}if(e.isNamespaceExport(i))return s(r,0);if(e.isExportAssignment(i))return l(i);if(e.isExportAssignment(o))return l(o);if(e.isBinaryExpression(i))return _(i,!0);if(e.isBinaryExpression(o))return _(o,!0);if(e.isJSDocTypedefTag(i))return s(r,0);function l(t){var n=e.Debug.checkDefined(t.symbol.parent,"Expected export symbol to have a parent"),i=t.isExportEquals?2:1;return{kind:1,symbol:r,exportInfo:{exportingModuleSymbol:n,exportKind:i}}}function _(t,i){var a;switch(e.getAssignmentDeclarationKind(t)){case 1:a=0;break;case 2:a=2;break;default:return}var o=i?n.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(t.left,e.isAccessExpression))):r;return o&&s(o,a)}}function s(e,t){var r=i(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function u(t){return e.hasSyntacticModifier(t,512)?1:0}},t.getExportInfo=i}(e.FindAllReferences||(e.FindAllReferences={}))}(ts||(ts={})),function(e){!function(t){var r;function n(e,t){return void 0===t&&(t=1),{kind:t,node:e.name||e,context:a(e)}}function i(e){return e&&void 0===e.kind}function a(t){if(e.isDeclaration(t))return o(t);if(t.parent){if(!e.isDeclaration(t.parent)&&!e.isExportAssignment(t.parent)){if(e.isInJSFile(t)){var r=e.isBinaryExpression(t.parent)?t.parent:e.isAccessExpression(t.parent)&&e.isBinaryExpression(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(r&&0!==e.getAssignmentDeclarationKind(r))return o(r)}if(e.isJsxOpeningElement(t.parent)||e.isJsxClosingElement(t.parent))return t.parent.parent;if(e.isJsxSelfClosingElement(t.parent)||e.isLabeledStatement(t.parent)||e.isBreakOrContinueStatement(t.parent))return t.parent;if(e.isStringLiteralLike(t)){var n=e.tryGetImportFromModuleSpecifier(t);if(n){var i=e.findAncestor(n,(function(t){return e.isDeclaration(t)||e.isStatement(t)||e.isJSDocTag(t)}));return e.isDeclaration(i)?o(i):i}}var a=e.findAncestor(t,e.isComputedPropertyName);return a?o(a.parent):void 0}return t.parent.name===t||e.isConstructorDeclaration(t.parent)||e.isExportAssignment(t.parent)||(e.isImportOrExportSpecifier(t.parent)||e.isBindingElement(t.parent))&&t.parent.propertyName===t||87===t.kind&&e.hasSyntacticModifier(t.parent,513)?o(t.parent):void 0}}function o(t){if(t)switch(t.kind){case 249:return e.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?e.isVariableStatement(t.parent.parent)?t.parent.parent:e.isForInOrOfStatement(t.parent.parent)?o(t.parent.parent):t.parent:t;case 198:return o(t.parent.parent);case 265:return t.parent.parent.parent;case 270:case 263:return t.parent.parent;case 262:case 269:return t.parent;case 216:return e.isExpressionStatement(t.parent)?t.parent:t;case 239:case 238:return{start:t.initializer,end:t.expression};case 288:case 289:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)?o(e.findAncestor(t.parent,(function(t){return e.isBinaryExpression(t)||e.isForInOrOfStatement(t)}))):t;default:return t}}function s(e,t,r){if(r){var n=i(r)?g(r.start,t,r.end):g(r,t);return n.start!==e.start||n.length!==e.length?{contextSpan:n}:void 0}}function c(t,i,a,o,s){if(297!==o.kind){var c=t.getTypeChecker();if(289===o.parent.kind){var l=[];return r.getReferenceEntriesForShorthandPropertyAssignment(o,c,(function(e){return l.push(n(e))})),l}if(105===o.kind||e.isSuperProperty(o.parent)){var _=c.getSymbolAtLocation(o);return _.valueDeclaration&&[n(_.valueDeclaration)]}return u(s,o,t,a,i,{implementations:!0,use:1})}}function u(t,n,i,a,o,s,c){return void 0===s&&(s={}),void 0===c&&(c=new e.Set(a.map((function(e){return e.fileName})))),l(r.getReferencedSymbolsForNode(t,n,i,a,o,s,c))}function l(t){return t&&e.flatMap(t,(function(e){return e.references}))}function _(t){var r=t.getSourceFile();return{sourceFile:r,textSpan:g(e.isComputedPropertyName(t)?t.expression:t,r)}}function d(t,n,i){var a=r.getIntersectingMeaningFromDeclarations(i,t),o=t.declarations&&e.firstOrUndefined(t.declarations)||i,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,t,o.getSourceFile(),o,o,a);return{displayParts:s.displayParts,kind:s.symbolKind}}function p(e){var t=f(e);if(0===e.kind)return __assign(__assign({},t),{isWriteAccess:!1,isDefinition:!1});var r=e.kind,n=e.node;return __assign(__assign({},t),{isWriteAccess:y(n),isDefinition:v(n),isInString:2===r||void 0})}function f(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile(),r=g(e.node,t);return __assign({textSpan:r,fileName:t.fileName},s(r,t,e.context))}function g(t,r,n){var i=t.getStart(r),a=(n||t).getEnd();return e.isStringLiteralLike(t)&&(e.Debug.assert(void 0===n),i+=1,a-=1),e.createTextSpanFromBounds(i,a)}function m(e){return 0===e.kind?e.textSpan:g(e.node,e.node.getSourceFile())}function y(t){var r=e.getDeclarationFromName(t);return!!r&&function(t){if(8388608&t.flags)return!0;switch(t.kind){case 216:case 198:case 252:case 221:case 87:case 255:case 291:case 270:case 262:case 260:case 265:case 253:case 324:case 331:case 280:case 256:case 259:case 263:case 269:case 160:case 289:case 254:case 159:return!0;case 288:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 251:case 208:case 166:case 165:case 167:case 168:return!!t.body;case 249:case 163:return!!t.initializer||e.isCatchClause(t.parent);case 164:case 162:case 333:case 326:return!1;default:return e.Debug.failBadSyntaxKind(t)}}(r)||87===t.kind||e.isWriteAccess(t)}function v(t){return 87===t.kind||!!e.getDeclarationFromName(t)||e.isLiteralComputedPropertyDeclarationName(t)||132===t.kind&&e.isConstructorDeclaration(t.parent)}!function(e){e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference"}(t.DefinitionKind||(t.DefinitionKind={})),function(e){e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"}(t.EntryKind||(t.EntryKind={})),t.nodeEntry=n,t.isContextWithStartAndEndNode=i,t.getContextNode=o,t.toContextSpan=s,function(e){e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename"}(t.FindReferencesUse||(t.FindReferencesUse={})),t.findReferencedSymbols=function(t,n,i,a,c){var u=e.getTouchingPropertyName(a,c),l=r.getReferencedSymbolsForNode(c,u,t,i,n,{use:1}),f=t.getTypeChecker();return l&&l.length?e.mapDefined(l,(function(t){var r=t.definition,i=t.references;return r&&{definition:f.runWithCancellationToken(n,(function(t){return function(t,r,n){var i=function(){switch(t.type){case 0:var i=d(f=t.symbol,r,n),a=i.displayParts,s=i.kind,c=a.map((function(e){return e.text})).join(""),u=f.declarations&&e.firstOrUndefined(f.declarations),l=u?e.getNameOfDeclaration(u)||u:n;return __assign(__assign({},_(l)),{name:c,kind:s,displayParts:a,context:o(u)});case 1:l=t.node;return __assign(__assign({},_(l)),{name:l.text,kind:"label",displayParts:[e.displayPart(l.text,e.SymbolDisplayPartKind.text)]});case 2:l=t.node;var p=e.tokenToString(l.kind);return __assign(__assign({},_(l)),{name:p,kind:"keyword",displayParts:[{text:p,kind:"keyword"}]});case 3:l=t.node;var f,g=(f=r.getSymbolAtLocation(l))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,f,l.getSourceFile(),e.getContainerNode(l),l).displayParts||[e.textPart("this")];return __assign(__assign({},_(l)),{name:"this",kind:"var",displayParts:g});case 4:l=t.node;return __assign(__assign({},_(l)),{name:l.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(l),e.SymbolDisplayPartKind.stringLiteral)]});case 5:return{textSpan:e.createTextSpanFromRange(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[e.displayPart('"'+t.reference.fileName+'"',e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}}(),a=i.sourceFile,c=i.textSpan,u=i.name,l=i.kind,p=i.displayParts,f=i.context;return __assign({containerKind:"",containerName:"",fileName:a.fileName,kind:l,name:u,textSpan:c,displayParts:p},s(c,a,f))}(r,t,u)})),references:i.map(p)}})):void 0},t.getImplementationsAtPosition=function(t,r,n,i,a){var o,s=e.getTouchingPropertyName(i,a),u=c(t,r,n,s,a);if(201===s.parent.kind||198===s.parent.kind||202===s.parent.kind||105===s.kind)o=u&&__spreadArray([],u);else for(var l=u&&__spreadArray([],u),_=new e.Map;l&&l.length;){var p=l.shift();if(e.addToSeen(_,e.getNodeId(p.node))){o=e.append(o,p);var g=c(t,r,n,p.node,p.node.pos);g&&l.push.apply(l,g)}}var m=t.getTypeChecker();return e.map(o,(function(t){return function(t,r){var n=f(t);if(0!==t.kind){var i=t.node;return __assign(__assign({},n),function(t,r){var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?d(n,r,t):200===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:221===t.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(t),displayParts:[]}}(i,r))}return __assign(__assign({},n),{kind:"",displayParts:[]})}(t,m)}))},t.findReferenceOrRenameEntries=function(t,n,i,a,o,s,c){return e.map(l(r.getReferencedSymbolsForNode(o,a,t,i,n,s)),(function(e){return c(e,a,t.getTypeChecker())}))},t.getReferenceEntriesForNode=u,t.toRenameLocation=function(t,r,n,i){return __assign(__assign({},f(t)),i&&function(t,r,n){if(0!==t.kind&&e.isIdentifier(r)){var i=t.node,a=t.kind,o=i.parent,s=r.text,c=e.isShorthandPropertyAssignment(o);if(c||e.isObjectBindingElementWithoutPropertyName(o)&&o.name===i&&void 0===o.dotDotDotToken){var u={prefixText:s+": "},l={suffixText:": "+s};if(3===a)return u;if(4===a)return l;if(c){var _=o.parent;return e.isObjectLiteralExpression(_)&&e.isBinaryExpression(_.parent)&&e.isModuleExportsAccessExpression(_.parent.left)?u:l}return u}if(e.isImportSpecifier(o)&&!o.propertyName){var d=e.isExportSpecifier(r.parent)?n.getExportSpecifierLocalTargetSymbol(r.parent):n.getSymbolAtLocation(r);return e.contains(d.declarations,o)?{prefixText:s+" as "}:e.emptyOptions}if(e.isExportSpecifier(o)&&!o.propertyName)return r===t.node||n.getSymbolAtLocation(r)===n.getSymbolAtLocation(t.node)?{prefixText:s+" as "}:{suffixText:" as "+s}}return e.emptyOptions}(t,r,n))},t.toReferenceEntry=p,t.toHighlightSpan=function(e){var t=f(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=y(e.node),n=__assign({textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:n}},t.getTextSpanOfEntry=m,function(r){function i(t,r,n){for(var i,a=0,o=r.get(t.path)||e.emptyArray;a<o.length;a++){var s=o[a];if(e.isReferencedFile(s)){var c=n.getSourceFileByPath(s.file),u=e.getReferencedFileLocation(n.getSourceFileByPath,s);e.isReferenceFileLocation(u)&&(i=e.append(i,{kind:0,fileName:c.fileName,textSpan:e.createTextSpanFromRange(u)}))}}return i}function a(t,r,n){if(t.parent&&e.isNamespaceExportDeclaration(t.parent)){var i=n.getAliasedSymbol(r),a=n.getMergedSymbol(i);if(i!==a)return a}}function o(t,r,n,i,a,o){var c=1536&t.flags&&t.declarations&&e.find(t.declarations,e.isSourceFile);if(c){var l=t.exports.get("export="),d=u(r,t,!!l,n,o);if(!l||!o.has(c.fileName))return d;var p=r.getTypeChecker();return s(r,d,_(t=e.skipAlias(l,p),void 0,n,o,p,i,a))}}function s(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var a=0,o=n;a<o.length;a++){var s=o[a];if(s&&s.length)if(r)for(var u=function(n){if(!n.definition||0!==n.definition.type)return r.push(n),"continue";var i=n.definition.symbol,a=e.findIndex(r,(function(e){return!!e.definition&&0===e.definition.type&&e.definition.symbol===i}));if(-1===a)return r.push(n),"continue";var o=r[a];r[a]={definition:o.definition,references:o.references.concat(n.references).sort((function(r,n){var i=c(t,r),a=c(t,n);if(i!==a)return e.compareValues(i,a);var o=m(r),s=m(n);return o.start!==s.start?e.compareValues(o.start,s.start):e.compareValues(o.length,s.length)}))}},l=0,_=s;l<_.length;l++){var d=_[l];u(d)}else r=s}return r}function c(e,t){var r=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(r)}function u(r,i,a,o,s){e.Debug.assert(!!i.valueDeclaration);var c=e.mapDefined(t.findModuleReferences(r,o,i),(function(t){if("import"===t.kind){var r=t.literal.parent;if(e.isLiteralTypeNode(r)){var i=e.cast(r.parent,e.isImportTypeNode);if(a&&!i.qualifier)return}return n(t.literal)}return{kind:0,fileName:t.referencingFile.fileName,textSpan:e.createTextSpanFromRange(t.ref)}}));if(i.declarations)for(var u=0,l=i.declarations;u<l.length;u++){switch((f=l[u]).kind){case 297:break;case 256:s.has(f.getSourceFile().fileName)&&c.push(n(f.name));break;default:e.Debug.assert(!!(33554432&i.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var _=i.exports.get("export=");if(_)for(var d=0,p=_.declarations;d<p.length;d++){var f,g=(f=p[d]).getSourceFile();if(s.has(g.fileName)){var m=e.isBinaryExpression(f)&&e.isPropertyAccessExpression(f.left)?f.left.expression:e.isExportAssignment(f)?e.Debug.checkDefined(e.findChildOfKind(f,92,g)):e.getNameOfDeclaration(f)||f;c.push(n(m))}}return c.length?[{definition:{type:0,symbol:i},references:c}]:e.emptyArray}function l(t){return 142===t.kind&&e.isTypeOperatorNode(t.parent)&&142===t.parent.operator}function _(t,r,n,i,a,o,s){var c=r&&function(t,r,n,i){var a=r.parent;if(e.isExportSpecifier(a)&&i)return A(r,t,a,n);return e.firstDefined(t.declarations,(function(i){if(!i.parent){if(33554432&t.flags)return;e.Debug.fail("Unexpected symbol at "+e.Debug.formatSyntaxKind(r.kind)+": "+e.Debug.formatSymbol(t))}return e.isTypeLiteralNode(i.parent)&&e.isUnionTypeNode(i.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(i.parent.parent),t.name):void 0}))}(t,r,a,!U(s))||t,u=r?j(r,c):7,l=[],_=new f(n,i,r?function(t){switch(t.kind){case 166:case 132:return 1;case 78:if(e.isClassLike(t.parent))return e.Debug.assert(t.parent.name===t),2;default:return 0}}(r):0,a,o,u,s,l),p=U(s)?e.find(c.declarations,e.isExportSpecifier):void 0;if(p)N(p.name,c,p,_.createSearch(r,t,void 0),_,!0,!0);else if(r&&87===r.kind)F(r,c,_),g(r,c,{exportingModuleSymbol:e.Debug.checkDefined(c.parent,"Expected export symbol to have a parent"),exportKind:1},_);else{var m=_.createSearch(r,c,void 0,{allSearchSymbols:r?L(c,r,a,2===s.use,!!s.providePrefixAndSuffixTextForRename,!!s.implementations):[c]});d(c,_,m)}return l}function d(t,r,n){var i=function(t){var r=t.declarations,n=t.flags,i=t.parent,a=t.valueDeclaration;if(a&&(208===a.kind||221===a.kind))return a;if(!r)return;if(8196&n){var o=e.find(r,(function(t){return e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierPropertyDeclaration(t)}));return o?e.getAncestor(o,252):void 0}if(r.some(e.isObjectBindingElementWithoutPropertyName))return;var s,c=i&&!(262144&t.flags);if(c&&(!e.isExternalModuleSymbol(i)||i.globalExports))return;for(var u=0,l=r;u<l.length;u++){var _=l[u],d=e.getContainerNode(_);if(s&&s!==d)return;if(!d||297===d.kind&&!e.isExternalOrCommonJsModule(d))return;if(s=d,e.isFunctionExpression(s))for(var p=void 0;p=e.getNextJSDocCommentLocation(s);)s=p}return c?s.getSourceFile():s}(t);if(i)C(i,i.getSourceFile(),n,r,!(e.isSourceFile(i)&&!e.contains(r.sourceFiles,i)));else for(var a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a];r.cancellationToken.throwIfCancellationRequested(),h(s,n,r)}}var p;r.getReferencedSymbolsForNode=function(t,r,c,d,p,f,g){var m,y;if(void 0===f&&(f={}),void 0===g&&(g=new e.Set(d.map((function(e){return e.fileName})))),1===f.use?r=e.getAdjustedReferenceLocation(r):2===f.use&&(r=e.getAdjustedRenameLocation(r)),e.isSourceFile(r)){var v=e.GoToDefinition.getReferenceAtPosition(r,t,c);if(!v)return;var h=c.getTypeChecker().getMergedSymbol(v.file.symbol);if(h)return u(c,h,!1,d,g);if(!(N=c.getFileIncludeReasons()))return;return[{definition:{type:5,reference:v.reference,file:r},references:i(v.file,N,c)||e.emptyArray}]}if(!f.implementations){var b=function(t,r,i){if(e.isTypeKeyword(t.kind)){if(113===t.kind&&e.isVoidExpression(t.parent))return;if(142===t.kind&&!l(t))return;return function(t,r,i,a){var o=e.flatMap(t,(function(t){return i.throwIfCancellationRequested(),e.mapDefined(x(t,e.tokenToString(r),t),(function(e){if(e.kind===r&&(!a||a(e)))return n(e)}))}));return o.length?[{definition:{type:2,node:o[0].node},references:o}]:void 0}(r,t.kind,i,142===t.kind?l:void 0)}if(e.isJumpStatementTarget(t)){var a=e.getTargetLabel(t.parent,t.text);return a&&S(a.parent,a)}if(e.isLabelOfLabeledStatement(t))return S(t.parent,t);if(e.isThis(t))return function(t,r,i){var a=e.getThisContainer(t,!1),o=32;switch(a.kind){case 165:case 164:if(e.isObjectLiteralMethod(a))break;case 163:case 162:case 166:case 167:case 168:o&=e.getSyntacticModifierFlags(a),a=a.parent;break;case 297:if(e.isExternalModule(a)||M(t))return;case 251:case 208:break;default:return}var s=e.flatMap(297===a.kind?r:[a.getSourceFile()],(function(t){return i.throwIfCancellationRequested(),x(t,"this",e.isSourceFile(a)?t:a).filter((function(t){if(!e.isThis(t))return!1;var r=e.getThisContainer(t,!1);switch(a.kind){case 208:case 251:return a.symbol===r.symbol;case 165:case 164:return e.isObjectLiteralMethod(a)&&a.symbol===r.symbol;case 221:case 252:return r.parent&&a.symbol===r.parent.symbol&&(32&e.getSyntacticModifierFlags(r))===o;case 297:return 297===r.kind&&!e.isExternalModule(r)&&!M(t)}}))})).map((function(e){return n(e)}));return[{definition:{type:3,node:e.firstDefined(s,(function(t){return e.isParameter(t.node.parent)?t.node:void 0}))||t},references:s}]}(t,r,i);if(105===t.kind)return function(t){var r=e.getSuperContainer(t,!1);if(!r)return;var i=32;switch(r.kind){case 163:case 162:case 165:case 164:case 166:case 167:case 168:i&=e.getSyntacticModifierFlags(r),r=r.parent;break;default:return}var a=r.getSourceFile(),o=e.mapDefined(x(a,"super",r),(function(t){if(105===t.kind){var a=e.getSuperContainer(t,!1);return a&&(32&e.getSyntacticModifierFlags(a))===i&&a.parent.symbol===r.symbol?n(t):void 0}}));return[{definition:{type:0,symbol:r.symbol},references:o}]}(t);return}(r,d,p);if(b)return b}var D=c.getTypeChecker(),T=D.getSymbolAtLocation(e.isConstructorDeclaration(r)&&r.parent.name||r);if(T){if("export="===T.escapedName)return u(c,T.parent,!1,d,g);var C=o(T,c,d,p,f,g);if(C&&!(33554432&T.flags))return C;var E=a(r,T,D),k=E&&o(E,c,d,p,f,g);return s(c,C,_(T,r,d,g,D,p,f),k)}if(!f.implementations&&e.isStringLiteralLike(r)){if(e.isRequireCall(r.parent,!0)||e.isExternalModuleReference(r.parent)||e.isImportDeclaration(r.parent)||e.isImportCall(r.parent)){var N=c.getFileIncludeReasons(),A=null===(y=null===(m=r.getSourceFile().resolvedModules)||void 0===m?void 0:m.get(r.text))||void 0===y?void 0:y.resolvedFileName,F=A?c.getSourceFile(A):void 0;if(F)return[{definition:{type:4,node:r},references:i(F,N,c)||e.emptyArray}]}return function(t,r,i,a){var o=e.getContextualTypeOrAncestorTypeNodeType(t,i),s=e.flatMap(r,(function(r){return a.throwIfCancellationRequested(),e.mapDefined(x(r,t.text),(function(r){if(e.isStringLiteralLike(r)&&r.text===t.text){if(!o)return n(r,2);var a=e.getContextualTypeOrAncestorTypeNodeType(r,i);if(o!==i.getStringType()&&o===a)return n(r,2)}}))}));return[{definition:{type:4,node:t},references:s}]}(r,d,D,p)}},r.getReferencesForFileName=function(t,r,n,a){var o,s;void 0===a&&(a=new e.Set(n.map((function(e){return e.fileName}))));var c=null===(o=r.getSourceFile(t))||void 0===o?void 0:o.symbol;if(c)return(null===(s=u(r,c,!1,n,a)[0])||void 0===s?void 0:s.references)||e.emptyArray;var l=r.getFileIncludeReasons(),_=r.getSourceFile(t);return _&&l&&i(_,l,r)||e.emptyArray},function(e){e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"}(p||(p={}));var f=function(){function r(t,r,n,i,a,o,s,c){this.sourceFiles=t,this.sourceFilesSet=r,this.specialSearchKind=n,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 r.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},r.prototype.getImportSearches=function(e,r){return this.importTracker||(this.importTracker=t.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,r,2===this.options.use)},r.prototype.createSearch=function(t,r,n,i){void 0===i&&(i={});var a=i.text,o=void 0===a?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(r)||function(t){if(33555968&t.flags){var r=t.declarations&&e.find(t.declarations,(function(t){return!e.isSourceFile(t)&&!e.isModuleDeclaration(t)}));return r&&r.symbol}}(r)||r)):a,s=i.allSearchSymbols,c=void 0===s?[r]:s;return{symbol:r,comingFrom:n,text:o,escapedText:e.escapeLeadingUnderscores(o),parents:this.options.implementations&&t?function(t,r,n){var i=e.isRightSideOfPropertyAccess(t)?t.parent:void 0,a=i&&n.getTypeAtLocation(i.expression),o=e.mapDefined(a&&(a.isUnionOrIntersection()?a.types:a.symbol===r.parent?void 0:[a]),(function(e){return e.symbol&&96&e.symbol.flags?e.symbol:void 0}));return 0===o.length?void 0:o}(t,r,this.checker):void 0,allSearchSymbols:c,includes:function(t){return e.contains(c,t)}}},r.prototype.referenceAdder=function(t){var r=e.getSymbolId(t),i=this.symbolIdToReferences[r];return i||(i=this.symbolIdToReferences[r]=[],this.result.push({definition:{type:0,symbol:t},references:i})),function(e,t){return i.push(n(e,t))}},r.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})},r.prototype.markSearchedSymbols=function(t,r){for(var n=e.getNodeId(t),i=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new e.Set),a=!1,o=0,s=r;o<s.length;o++){var c=s[o];a=e.tryAddToSet(i,e.getSymbolId(c))||a}return a},r}();function g(e,t,r,n){var i=n.getImportSearches(t,r),a=i.importSearches,o=i.singleReferences,s=i.indirectUsers;if(o.length)for(var c=n.referenceAdder(t),u=0,l=o;u<l.length;u++){var _=l[u];y(_,n)&&c(_)}for(var d=0,p=a;d<p.length;d++){var f=p[d],g=f[0],m=f[1];T(g.getSourceFile(),n.createSearch(g,m,1),n)}if(s.length){var v=void 0;switch(r.exportKind){case 0:v=n.createSearch(e,t,1);break;case 1:v=2===n.options.use?void 0:n.createSearch(e,t,1,{text:"default"})}if(v)for(var b=0,x=s;b<x.length;b++){h(x[b],v,n)}}}function y(t,r){return!!E(t,r)&&(2!==r.options.use||!!e.isIdentifier(t)&&!(e.isImportOrExportSpecifier(t.parent)&&"default"===t.escapedText))}function v(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();T(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function h(t,r,n){void 0!==e.getNameTable(t).get(r.escapedText)&&T(t,r,n)}function b(t,r,n,i,a){void 0===a&&(a=n);var o=e.isParameterPropertyDeclaration(t.parent,t.parent.parent)?e.first(r.getSymbolsOfParameterPropertyDeclaration(t.parent,t.text)):r.getSymbolAtLocation(t);if(o)for(var s=0,c=x(n,o.name,a);s<c.length;s++){var u=c[s];if(e.isIdentifier(u)&&u!==t&&u.escapedText===t.escapedText){var l=r.getSymbolAtLocation(u);if(l===o||r.getShorthandAssignmentValueSymbol(u.parent)===o||e.isExportSpecifier(u.parent)&&A(u,l,u.parent,r)===o){var _=i(u);if(_)return _}}}}function x(t,r,n){return void 0===n&&(n=t),D(t,r,n).map((function(r){return e.getTouchingPropertyName(t,r)}))}function D(t,r,n){void 0===n&&(n=t);var i=[];if(!r||!r.length)return i;for(var a=t.text,o=a.length,s=r.length,c=a.indexOf(r,n.pos);c>=0&&!(c>n.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),99)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function S(t,r){var i=t.getSourceFile(),a=r.text,o=e.mapDefined(x(i,a,t),(function(t){return t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,a)===r?n(t):void 0}));return[{definition:{type:1,node:r},references:o}]}function T(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),C(e,e,t,r,n)}function C(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=D(t,r.text,e);a<o.length;a++){k(t,o[a],r,n,i)}}function E(t,r){return!!(e.getMeaningFromLocation(t)&r.searchMeaning)}function k(r,n,i,a,o){var s=e.getTouchingPropertyName(r,n);if(function(t,r){switch(t.kind){case 79:case 78:return t.text.length===r.length;case 14:case 10:var n=t;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t)||e.isCallExpression(t.parent)&&e.isBindableObjectDefinePropertyCall(t.parent)&&t.parent.arguments[1]===t)&&n.text.length===r.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===r.length;case 87:return"default".length===r.length;default:return!1}}(s,i.text)){if(E(s,a)){var c=a.checker.getSymbolAtLocation(s);if(c){var u=s.parent;if(!e.isImportSpecifier(u)||u.propertyName!==s){if(e.isExportSpecifier(u))return e.Debug.assert(78===s.kind),void N(s,c,u,i,a,o);var l=function(t,r,n,i){var a=i.checker;return R(r,n,a,!1,2!==i.options.use||!!i.options.providePrefixAndSuffixTextForRename,(function(n,i,a,o){return a&&B(r)!==B(a)&&(a=void 0),t.includes(a||i||n)?{symbol:!i||6&e.getCheckFlags(n)?n:i,kind:o}:void 0}),(function(e){return!(t.parents&&!t.parents.some((function(t){return O(e.parent,t,i.inheritsFromCache,a)})))}))}(i,c,s,a);if(l){switch(a.specialSearchKind){case 0:o&&F(s,l,a);break;case 1:!function(t,r,n,i){e.isNewExpressionTarget(t)&&F(t,n.symbol,i);var a=function(){return i.referenceAdder(n.symbol)};if(e.isClassLike(t.parent))e.Debug.assert(87===t.kind||t.parent.name===t),function(t,r,n){var i=P(t);if(i&&i.declarations)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.findChildOfKind(s,132,r);e.Debug.assert(166===s.kind&&!!c),n(c)}t.exports&&t.exports.forEach((function(t){var r=t.valueDeclaration;if(r&&165===r.kind){var i=r.body;i&&z(i,107,(function(t){e.isNewExpressionTarget(t)&&n(t)}))}}))}(n.symbol,r,a());else{var o=(s=t,e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(s).parent));o&&(function(t,r){var n=P(t.symbol);if(!n||!n.declarations)return;for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i];e.Debug.assert(166===o.kind);var s=o.body;s&&z(s,105,(function(t){e.isCallExpressionTarget(t)&&r(t)}))}}(o,a()),function(e,t){if(function(e){return!!P(e.symbol)}(e))return;var r=e.symbol,n=t.createSearch(void 0,r,void 0);d(r,t,n)}(o,i))}var s}(s,r,i,a);break;case 2:!function(t,r,n){F(t,r.symbol,n);var i=t.parent;if(2===n.options.use||!e.isClassLike(i))return;e.Debug.assert(i.name===t);for(var a=n.referenceAdder(r.symbol),o=0,s=i.members;o<s.length;o++){var c=s[o];e.isMethodOrAccessor(c)&&e.hasSyntacticModifier(c,32)&&(c.body&&c.body.forEachChild((function t(r){107===r.kind?a(r):e.isFunctionLike(r)||e.isClassLike(r)||r.forEachChild(t)})))}}(s,i,a);break;default:e.Debug.assertNever(a.specialSearchKind)}!function(e,r,n,i){var a=t.getImportOrExportSymbol(e,r,i.checker,1===n.comingFrom);if(!a)return;var o=a.symbol;0===a.kind?U(i.options)||v(o,i):g(e,o,a.exportInfo,i)}(s,c,i,a)}else!function(t,r,n){var i=t.flags,a=t.valueDeclaration,o=n.checker.getShorthandAssignmentValueSymbol(a),s=a&&e.getNameOfDeclaration(a);33554432&i||!s||!r.includes(o)||F(s,o,n)}(c,i,a)}}}}else!a.options.implementations&&(a.options.findInStrings&&e.isInString(r,n)||a.options.findInComments&&e.isInNonReferenceComment(r,n))&&a.addStringOrCommentReference(r.fileName,e.createTextSpan(n,i.text.length))}function N(r,n,i,a,o,s,c){e.Debug.assert(!c||!!o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var u=i.parent,l=i.propertyName,_=i.name,d=u.parent,p=A(r,n,i,o.checker);if(c||a.includes(p)){if(l?r===l?(d.moduleSpecifier||b(),s&&2!==o.options.use&&o.markSeenReExportRHS(_)&&F(_,e.Debug.checkDefined(i.symbol),o)):o.markSeenReExportRHS(r)&&b():2===o.options.use&&"default"===_.escapedText||b(),!U(o.options)||c){var f=87===r.originalKeywordKind||87===i.name.originalKeywordKind?1:0,m=e.Debug.checkDefined(i.symbol),y=t.getExportInfo(m,f,o.checker);y&&g(r,m,y,o)}if(1!==a.comingFrom&&d.moduleSpecifier&&!l&&!U(o.options)){var h=o.checker.getExportSpecifierLocalTargetSymbol(i);h&&v(h,o)}}function b(){s&&F(r,p,o)}}function A(t,r,n,i){return function(t,r){var n=r.parent,i=r.propertyName,a=r.name;return e.Debug.assert(i===t||a===t),i?i===t:!n.parent.moduleSpecifier}(t,n)&&i.getExportSpecifierLocalTargetSymbol(n)||r}function F(t,r,n){var i="kind"in r?r:{kind:void 0,symbol:r},a=i.kind,o=i.symbol,s=n.referenceAdder(o);n.options.implementations?function(t,r,n){if(e.isDeclarationName(t)&&(i=t.parent,8388608&i.flags?!e.isInterfaceDeclaration(i)&&!e.isTypeAliasDeclaration(i):e.isVariableLike(i)?e.hasInitializer(i):e.isFunctionLikeDeclaration(i)?i.body:e.isClassLike(i)||e.isModuleOrEnumDeclaration(i)))return void r(t);var i;if(78!==t.kind)return;289===t.parent.kind&&J(t,n.checker,r);var a=w(t);if(a)return void r(a);var o=e.findAncestor(t,(function(t){return!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)})),s=o.parent;if(e.hasType(s)&&s.type===o&&n.markSeenContainingTypeReference(s))if(e.hasInitializer(s))u(s.initializer);else if(e.isFunctionLike(s)&&s.body){var c=s.body;230===c.kind?e.forEachReturnStatement(c,(function(e){e.expression&&u(e.expression)})):u(c)}else e.isAssertionExpression(s)&&u(s.expression);function u(e){I(e)&&r(e)}}(t,s,n):s(t,a)}function P(e){return e.members&&e.members.get("__constructor")}function w(t){return e.isIdentifier(t)||e.isPropertyAccessExpression(t)?w(t.parent):e.isExpressionWithTypeArguments(t)?e.tryCast(t.parent.parent,e.isClassLike):void 0}function I(e){switch(e.kind){case 207:return I(e.expression);case 209:case 208:case 200:case 221:case 199:return!0;default:return!1}}function O(t,r,n,i){if(t===r)return!0;var a=e.getSymbolId(t)+","+e.getSymbolId(r),o=n.get(a);if(void 0!==o)return o;n.set(a,!1);var s=!!t.declarations&&t.declarations.some((function(t){return e.getAllSuperTypeNodes(t).some((function(e){var t=i.getTypeAtLocation(e);return!!t&&!!t.symbol&&O(t.symbol,r,n,i)}))}));return n.set(a,s),s}function M(e){return 78===e.kind&&160===e.parent.kind&&e.parent.name===e}function L(e,t,r,n,i,a){var o=[];return R(e,t,r,n,!(n&&i),(function(t,r,n){n&&B(e)!==B(n)&&(n=void 0),o.push(n||r||t)}),(function(){return!a})),o}function R(t,r,n,i,o,s,c){var u=e.getContainingObjectLiteralElement(r);if(u){var l=n.getShorthandAssignmentValueSymbol(r.parent);if(l&&i)return s(l,void 0,void 0,3);var _=n.getContextualType(u.parent),d=_&&e.firstDefined(e.getPropertySymbolsFromContextualType(u,n,_,!0),(function(e){return T(e,4)}));if(d)return d;var p=function(t,r){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)?r.getPropertySymbolOfDestructuringAssignment(t):void 0}(r,n),f=p&&s(p,void 0,void 0,4);if(f)return f;var g=l&&s(l,void 0,void 0,3);if(g)return g}var m=a(r,t,n);if(m){var y=s(m,void 0,void 0,1);if(y)return y}var v=T(t);if(v)return v;if(t.valueDeclaration&&e.isParameterPropertyDeclaration(t.valueDeclaration,t.valueDeclaration.parent)){var h=n.getSymbolsOfParameterPropertyDeclaration(e.cast(t.valueDeclaration,e.isParameter),t.name);return e.Debug.assert(2===h.length&&!!(1&h[0].flags)&&!!(4&h[1].flags)),T(1&t.flags?h[1]:h[0])}var b=e.getDeclarationOfKind(t,270);if(!i||b&&!b.propertyName){var x=b&&n.getExportSpecifierLocalTargetSymbol(b);if(x){var D=s(x,void 0,void 0,1);if(D)return D}}if(!i){var S=void 0;return(S=o?e.isObjectBindingElementWithoutPropertyName(r.parent)?e.getPropertySymbolFromBindingElement(n,r.parent):void 0:C(t,n))&&T(S,4)}if(e.Debug.assert(i),o)return(S=C(t,n))&&T(S,4);function T(t,r){return e.firstDefined(n.getRootSymbols(t),(function(i){return s(t,i,void 0,r)||(i.parent&&96&i.parent.flags&&c(i)?function(t,r,n,i){var a=new e.Map;return o(t);function o(t){if(96&t.flags&&e.addToSeen(a,e.getSymbolId(t)))return e.firstDefined(t.declarations,(function(t){return e.firstDefined(e.getAllSuperTypeNodes(t),(function(t){var a=n.getTypeAtLocation(t),s=a&&a.symbol&&n.getPropertyOfType(a,r);return a&&s&&(e.firstDefined(n.getRootSymbols(s),i)||o(a.symbol))}))}))}}(i.parent,i.name,n,(function(e){return s(t,i,e,r)})):void 0)}))}function C(t,r){var n=e.getDeclarationOfKind(t,198);if(n&&e.isObjectBindingElementWithoutPropertyName(n))return e.getPropertySymbolFromBindingElement(r,n)}}function B(t){return!!t.valueDeclaration&&!!(32&e.getEffectiveModifierFlags(t.valueDeclaration))}function j(t,r){var n=e.getMeaningFromLocation(t),i=r.declarations;if(i){var a=void 0;do{a=n;for(var o=0,s=i;o<s.length;o++){var c=s[o],u=e.getMeaningFromDeclaration(c);u&n&&(n|=u)}}while(n!==a)}return n}function J(t,r,n){var i=r.getSymbolAtLocation(t),a=r.getShorthandAssignmentValueSymbol(i.valueDeclaration);if(a)for(var o=0,s=a.getDeclarations();o<s.length;o++){var c=s[o];1&e.getMeaningFromDeclaration(c)&&n(c)}}function z(t,r,n){e.forEachChild(t,(function(e){e.kind===r&&n(e),z(e,r,n)}))}function U(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}r.eachExportReference=function(r,n,i,a,o,s,c,u){for(var l=t.createImportTracker(r,new e.Set(r.map((function(e){return e.fileName}))),n,i)(a,{exportKind:c?1:0,exportingModuleSymbol:o},!1),_=l.importSearches,d=l.indirectUsers,p=0,f=_;p<f.length;p++){u(f[p][0])}for(var g=0,m=d;g<m.length;g++)for(var y=0,v=x(m[g],c?"default":s);y<v.length;y++){var h=v[y];e.isIdentifier(h)&&!e.isImportOrExportSpecifier(h.parent)&&n.getSymbolAtLocation(h)===a&&u(h)}},r.isSymbolReferencedInFile=function(e,t,r,n){return void 0===n&&(n=r),b(e,t,r,(function(){return!0}),n)||!1},r.eachSymbolReferenceInFile=b,r.someSignatureUsage=function(t,r,n,i){if(!t.name||!e.isIdentifier(t.name))return!1;for(var a=e.Debug.checkDefined(n.getSymbolAtLocation(t.name)),o=0,s=r;o<s.length;o++)for(var c=0,u=x(s[o],a.name);c<u.length;c++){var l=u[c];if(e.isIdentifier(l)&&l!==t.name&&l.escapedText===t.name.escapedText){var _=e.climbPastPropertyAccess(l),d=e.isCallExpression(_.parent)&&_.parent.expression===_?_.parent:void 0,p=n.getSymbolAtLocation(l);if(p&&n.getRootSymbols(p).some((function(e){return e===a}))&&i(l,d))return!0}}return!1},r.getIntersectingMeaningFromDeclarations=j,r.getReferenceEntriesForShorthandPropertyAssignment=J}(r=t.Core||(t.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(ts||(ts={})),function(e){!function(t){function r(t){return(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t))&&e.isVariableDeclaration(t.parent)&&t===t.parent.initializer&&e.isIdentifier(t.parent.name)&&!!(2&e.getCombinedNodeFlags(t.parent))}function n(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)||e.isFunctionDeclaration(t)||e.isFunctionExpression(t)||e.isClassDeclaration(t)||e.isClassExpression(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)}function i(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)&&e.isIdentifier(t.name)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)||function(t){return(e.isFunctionExpression(t)||e.isClassExpression(t))&&e.isNamedDeclaration(t)}(t)||r(t)}function a(t){return e.isSourceFile(t)?t:e.isNamedDeclaration(t)?t.name:r(t)?t.parent.name:e.Debug.checkDefined(t.modifiers&&e.find(t.modifiers,o))}function o(e){return 87===e.kind}function s(e,t){var r=a(t);return r&&e.getSymbolAtLocation(r)}function c(t,r){if(r.body)return r;if(e.isConstructorDeclaration(r))return e.getFirstConstructorWithBody(r.parent);if(e.isFunctionDeclaration(r)||e.isMethodDeclaration(r)){var n=s(t,r);return n&&n.valueDeclaration&&e.isFunctionLikeDeclaration(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return r}function u(t,r){var n,a=s(t,r);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(t,r){return e.compareStringsCaseSensitive(c[t].file,c[r].file)||c[t].pos-c[r].pos}));for(var u=void 0,l=0,_=e.map(o,(function(e){return a.declarations[e]}));l<_.length;l++){var d=_[l];i(d)&&(u&&u.parent===d.parent&&u.end===d.pos||(n=e.append(n,d)),u=d)}}return n}function l(t,r){var n,i,a;return e.isFunctionLikeDeclaration(r)?null!==(i=null!==(n=c(t,r))&&void 0!==n?n:u(t,r))&&void 0!==i?i:r:null!==(a=u(t,r))&&void 0!==a?a:r}function _(t,a){for(var o=t.getTypeChecker(),s=!1;;){if(i(a))return l(o,a);var c;if(n(a))return(c=e.findAncestor(a,i))&&l(o,c);if(e.isDeclarationName(a))return i(a.parent)?l(o,a.parent):n(a.parent)?(c=e.findAncestor(a.parent,i))&&l(o,c):e.isVariableDeclaration(a.parent)&&a.parent.initializer&&r(a.parent.initializer)?a.parent.initializer:void 0;if(e.isConstructorDeclaration(a))return i(a.parent)?a.parent:void 0;if(e.isVariableDeclaration(a)&&a.initializer&&r(a.initializer))return a.initializer;if(!s){var u=o.getSymbolAtLocation(a);if(u&&(2097152&u.flags&&(u=o.getAliasedSymbol(u)),u.valueDeclaration)){s=!0,a=u.valueDeclaration;continue}}return}}function d(t,n){var i=n.getSourceFile(),a=function(t,n){if(e.isSourceFile(n))return{text:n.fileName,pos:0,end:0};if((e.isFunctionDeclaration(n)||e.isClassDeclaration(n))&&!e.isNamedDeclaration(n)){var i=n.modifiers&&e.find(n.modifiers,o);if(i)return{text:"default",pos:i.getStart(),end:i.getEnd()}}var a=r(n)?n.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(n),"Expected call hierarchy item to have a name"),s=e.isIdentifier(a)?e.idText(a):e.isStringOrNumericLiteralLike(a)?a.text:e.isComputedPropertyName(a)&&e.isStringOrNumericLiteralLike(a.expression)?a.expression.text:void 0;if(void 0===s){var c=t.getTypeChecker(),u=c.getSymbolAtLocation(a);u&&(s=c.symbolToString(u,n))}if(void 0===s){var l=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});s=e.usingSingleLineStringWriter((function(e){return l.writeNode(4,n,n.getSourceFile(),e)}))}return{text:s,pos:a.getStart(),end:a.getEnd()}}(t,n),s=function(t){var n,i;if(r(t))return e.isModuleBlock(t.parent.parent.parent.parent)&&e.isIdentifier(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 167:case 168:case 165:return 200===t.parent.kind?null===(n=e.getAssignedName(t.parent))||void 0===n?void 0:n.getText():null===(i=e.getNameOfDeclaration(t.parent))||void 0===i?void 0:i.getText();case 251:case 252:case 256:if(e.isModuleBlock(t.parent)&&e.isIdentifier(t.parent.parent.name))return t.parent.parent.name.getText()}}(n),c=e.getNodeKind(n),u=e.getNodeModifiers(n),l=e.createTextSpanFromBounds(e.skipTrivia(i.text,n.getFullStart(),!1,!0),n.getEnd()),_=e.createTextSpanFromBounds(a.pos,a.end);return{file:i.fileName,kind:c,kindModifiers:u,name:a.text,containerName:s,span:l,selectionSpan:_}}function p(e){return void 0!==e}function f(t){if(1===t.kind){var r=t.node;if(e.isCallOrNewExpressionTarget(r,!0,!0)||e.isTaggedTemplateTag(r,!0,!0)||e.isDecoratorTarget(r,!0,!0)||e.isJsxOpeningLikeElementTagName(r,!0,!0)||e.isRightSideOfPropertyAccess(r)||e.isArgumentExpressionOfElementAccess(r)){var n=r.getSourceFile();return{declaration:e.findAncestor(r,i)||n,range:e.createTextRangeFromNode(r,n)}}}}function g(t){return e.getNodeId(t.declaration)}function m(t,r){var n=[],a=function(t,r){function n(n){var i=e.isTaggedTemplateExpression(n)?n.tag:e.isJsxOpeningLikeElement(n)?n.tagName:e.isAccessExpression(n)?n:n.expression,a=_(t,i);if(a){var o=e.createTextRangeFromNode(i,n.getSourceFile());if(e.isArray(a))for(var s=0,c=a;s<c.length;s++){var u=c[s];r.push({declaration:u,range:o})}else r.push({declaration:a,range:o})}}return function t(r){if(r&&!(8388608&r.flags))if(i(r)){if(e.isClassLike(r))for(var a=0,o=r.members;a<o.length;a++){var s=o[a];s.name&&e.isComputedPropertyName(s.name)&&t(s.name.expression)}}else{switch(r.kind){case 78:case 260:case 261:case 267:case 253:case 254:return;case 206:case 224:return void t(r.expression);case 249:case 160:return t(r.name),void t(r.initializer);case 203:case 204:return n(r),t(r.expression),void e.forEach(r.arguments,t);case 205:return n(r),t(r.tag),void t(r.template);case 275:case 274:return n(r),t(r.tagName),void t(r.attributes);case 161:return n(r),void t(r.expression);case 201:case 202:n(r),e.forEachChild(r,t)}e.isPartOfTypeNode(r)||e.forEachChild(r,t)}}}(t,n);switch(r.kind){case 297:!function(t,r){e.forEach(t.statements,r)}(r,a);break;case 256:!function(t,r){!e.hasSyntacticModifier(t,2)&&t.body&&e.isModuleBlock(t.body)&&e.forEach(t.body.statements,r)}(r,a);break;case 251:case 208:case 209:case 165:case 167:case 168:!function(t,r,n){var i=c(t,r);i&&(e.forEach(i.parameters,n),n(i.body))}(t.getTypeChecker(),r,a);break;case 252:case 221:!function(t,r){e.forEach(t.decorators,r);var n=e.getClassExtendsHeritageElement(t);n&&r(n.expression);for(var i=0,a=t.members;i<a.length;i++){var o=a[i];e.forEach(o.decorators,r),e.isPropertyDeclaration(o)?r(o.initializer):e.isConstructorDeclaration(o)&&o.body&&(e.forEach(o.parameters,r),r(o.body))}}(r,a);break;default:e.Debug.assertNever(r)}return n}t.resolveCallHierarchyDeclaration=_,t.createCallHierarchyItem=d,t.getIncomingCalls=function(t,r,n){if(e.isSourceFile(r)||e.isModuleDeclaration(r))return[];var i=a(r),o=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(t,n,t.getSourceFiles(),i,0,{use:1},f),p);return o?e.group(o,g,(function(r){return function(t,r){return n=d(t,r[0].declaration),i=e.map(r,(function(t){return e.createTextSpanFromRange(t.range)})),{from:n,fromSpans:i};var n,i}(t,r)})):[]},t.getOutgoingCalls=function(t,r){return 8388608&r.flags||e.isMethodSignature(r)?[]:e.group(m(t,r),g,(function(r){return function(t,r){return n=d(t,r[0].declaration),i=e.map(r,(function(t){return e.createTextSpanFromRange(t.range)})),{to:n,fromSpans:i};var n,i}(t,r)}))}}(e.CallHierarchy||(e.CallHierarchy={}))}(ts||(ts={})),function(e){function t(t,n,i,a){var o=i(t);return function(t){var s=a&&a.tryGetSourcePosition({fileName:t,pos:0}),c=function(t){if(i(t)===o)return n;var r=e.tryRemoveDirectoryPrefix(t,o,i);return void 0===r?void 0:n+"/"+r}(s?s.fileName:t);return s?void 0===c?void 0:function(t,n,i,a){var o=e.getRelativePathFromFile(t,n,a);return r(e.getDirectoryPath(i),o)}(s.fileName,c,t,i):c}}function r(t,r){return e.ensurePathIsNonModuleName(function(t,r){return e.normalizePath(e.combinePaths(t,r))}(t,r))}function n(t,r,n,i){if(r){if(r.resolvedModule){var a=c(r.resolvedModule.resolvedFileName);if(a)return a}var o=e.forEach(r.failedLookupLocations,(function(t){var r=n(t);return r&&e.find(i,(function(e){return e.fileName===r}))?s(t):void 0}))||e.pathIsRelative(t.text)&&e.forEach(r.failedLookupLocations,s);return o||r.resolvedModule&&{newFileName:r.resolvedModule.resolvedFileName,updated:!1}}function s(t){return e.endsWith(t,"/package.json")?void 0:c(t)}function c(e){var t=n(e);return t&&{newFileName:t,updated:!0}}}function i(t,r){return e.createRange(t.getStart(r)+1,t.end-1)}function a(t,r){if(e.isObjectLiteralExpression(t))for(var n=0,i=t.properties;n<i.length;n++){var a=i[n];e.isPropertyAssignment(a)&&e.isStringLiteral(a.name)&&r(a,a.name.text)}}e.getEditsForFileRename=function(o,s,c,u,l,_,d){var p=e.hostUsesCaseSensitiveFileNames(u),f=e.createGetCanonicalFileName(p),g=t(s,c,f,d),m=t(c,s,f,d);return e.textChanges.ChangeTracker.with({host:u,formatContext:l,preferences:_},(function(t){!function(t,n,o,s,c,u,l){var _=t.getCompilerOptions().configFile;if(!_)return;var d=e.getDirectoryPath(_.fileName),p=e.getTsConfigObjectLiteralExpression(_);if(!p)return;function f(t){for(var r=!1,n=0,i=e.isArrayLiteralExpression(t.initializer)?t.initializer.elements:[t.initializer];n<i.length;n++){r=g(i[n])||r}return r}function g(t){if(!e.isStringLiteral(t))return!1;var a=r(d,t.text),s=o(a);return void 0!==s&&(n.replaceRangeWithText(_,i(t,_),m(s)),!0)}function m(t){return e.getRelativePathFromDirectory(d,t,!l)}a(p,(function(t,r){switch(r){case"files":case"include":case"exclude":if(!f(t)&&"include"===r&&e.isArrayLiteralExpression(t.initializer)){var i=e.mapDefined(t.initializer.elements,(function(t){return e.isStringLiteral(t)?t.text:void 0})),o=e.getFileMatcherPatterns(d,[],i,l,u);e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),l).test(s)&&!e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),l).test(c)&&n.insertNodeAfter(_,e.last(t.initializer.elements),e.factory.createStringLiteral(m(c)))}break;case"compilerOptions":a(t.initializer,(function(t,r){var n=e.getOptionFromName(r);n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?f(t):"paths"===r&&a(t.initializer,(function(t){if(e.isArrayLiteralExpression(t.initializer))for(var r=0,n=t.initializer.elements;r<n.length;r++){g(n[r])}}))}))}}))}(o,t,g,s,c,u.getCurrentDirectory(),p),function(t,a,o,s,c,u){for(var l=t.getSourceFiles(),_=function(_){var d=o(_.fileName),p=null!=d?d:_.fileName,f=e.getDirectoryPath(p),g=s(_.fileName),m=g||_.fileName,y=e.getDirectoryPath(m),v=void 0!==d||void 0!==g;!function(t,r,n,a){for(var o=0,s=t.referencedFiles||e.emptyArray;o<s.length;o++){var c=s[o];void 0!==(_=n(c.fileName))&&_!==t.text.slice(c.pos,c.end)&&r.replaceRangeWithText(t,c,_)}for(var u=0,l=t.imports;u<l.length;u++){var _,d=l[u];void 0!==(_=a(d))&&_!==d.text&&r.replaceRangeWithText(t,i(d,t),_)}}(_,a,(function(t){if(e.pathIsRelative(t)){var n=r(y,t),i=o(n);return void 0===i?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(f,i,u))}}),(function(r){var i=t.getTypeChecker().getSymbolAtLocation(r);if(!i||!i.declarations.some((function(t){return e.isAmbientModule(t)}))){var a=void 0!==g?n(r,e.resolveModuleName(r.text,m,t.getCompilerOptions(),c),o,l):function(t,r,i,a,o,s){if(t){var c=e.find(t.declarations,e.isSourceFile).fileName,u=s(c);return void 0===u?{newFileName:c,updated:!1}:{newFileName:u,updated:!0}}return n(r,o.resolveModuleNames?o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName):a.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName),s,a.getSourceFiles())}(i,r,_,t,c,o);return void 0!==a&&(a.updated||v&&e.pathIsRelative(r.text))?e.moduleSpecifiers.updateModuleSpecifier(t.getCompilerOptions(),u(p),a.newFileName,e.createModuleSpecifierResolutionHost(t,c),r.text):void 0}}))},d=0,p=l;d<p.length;d++){_(p[d])}}(o,t,g,m,u,f)}))},e.getPathUpdater=t}(ts||(ts={})),function(e){!function(t){function r(t,r,i){var u,l,_=n(r,i,t);if(_)return[(u=_.reference.fileName,l=_.file.fileName,{fileName:l,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:u,containerName:void 0,containerKind:void 0})];var d=e.getTouchingPropertyName(r,i);if(d!==r){var p=d.parent,f=t.getTypeChecker();if(e.isJumpStatementTarget(d)){var g=e.getTargetLabel(d.parent,d.text);return g?[s(f,g,"label",d.text,void 0)]:void 0}var m=function(t,r){var n=r.getSymbolAtLocation(t);if(n&&2097152&n.flags&&function(t,r){if(78!==t.kind)return!1;if(t.parent===r)return!0;switch(r.kind){case 262:case 260:return!0;case 265:return 264===r.parent.kind;case 198:case 249:return e.isInJSFile(r)&&e.isRequireVariableDeclaration(r,!0);default:return!1}}(t,n.declarations[0])){var i=r.getAliasedSymbol(n);if(i.declarations)return i}return n}(d,f);if(!m)return function(t,r){if(!e.isPropertyAccessExpression(t.parent)||t.parent.name!==t)return;var n=r.getTypeAtLocation(t.parent.expression);return e.mapDefined(n.isUnionOrIntersection()?n.types:[n],(function(e){var t=r.getIndexInfoOfType(e,0);return t&&t.declaration&&c(r,t.declaration)}))}(d,f);var y=function(t,r){var n=function(t){var r=e.findAncestor(t,(function(t){return!e.isRightSideOfPropertyAccess(t)})),n=null==r?void 0:r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r?n:void 0}(r),i=n&&t.getResolvedSignature(n);return e.tryCast(i&&i.declaration,(function(t){return e.isFunctionLike(t)&&!e.isFunctionTypeNode(t)}))}(f,d);if(y&&(!e.isJsxOpeningLikeElement(d.parent)||!function(e){switch(e.kind){case 166:case 175:case 170:return!0;default:return!1}}(y))){var v=c(f,y);if(f.getRootSymbols(m).some((function(t){return function(t,r){return t===r.symbol||t===r.symbol.parent||e.isAssignmentExpression(r.parent)||!e.isCallLikeExpression(r.parent)&&t===r.parent.symbol}(t,y)})))return[v];var h=a(f,m,d,y)||e.emptyArray;return 105===d.kind?__spreadArray([v],h):__spreadArray(__spreadArray([],h),[v])}if(289===d.parent.kind){var b=f.getShorthandAssignmentValueSymbol(m.valueDeclaration);return b?b.declarations.map((function(e){return o(e,f,b,d)})):[]}if(e.isPropertyName(d)&&e.isBindingElement(p)&&e.isObjectBindingPattern(p.parent)&&d===(p.propertyName||p.name)){var x=e.getNameFromPropertyName(d),D=f.getTypeAtLocation(p.parent);return void 0===x?e.emptyArray:e.flatMap(D.isUnion()?D.types:[D],(function(e){var t=e.getProperty(x);return t&&a(f,t,d)}))}var S=e.getContainingObjectLiteralElement(d);if(S){var T=S&&f.getContextualType(S.parent);if(T)return e.flatMap(e.getPropertySymbolsFromContextualType(S,f,T,!1),(function(e){return a(f,e,d)}))}return a(f,m,d)}}function n(e,t,r){var n=u(e.referencedFiles,t);if(n)return(o=r.getSourceFileFromReference(e,n))&&{reference:n,file:o};var i=u(e.typeReferenceDirectives,t);if(i){var a=r.getResolvedTypeReferenceDirectives().get(i.fileName);return(o=a&&r.getSourceFile(a.resolvedFileName))&&{reference:i,file:o}}var o,s=u(e.libReferenceDirectives,t);return s?(o=r.getLibFileFromReference(s))&&{reference:s,file:o}:void 0}function i(t,r,n){return e.flatMap(!t.isUnion()||32&t.flags?[t]:t.types,(function(e){return e.symbol&&a(r,e.symbol,n)}))}function a(t,r,n,i){var a=e.filter(r.declarations,(function(t){return t!==i&&(!e.isAssignmentDeclaration(t)||t===r.valueDeclaration)}))||void 0;return function(){if(32&r.flags&&!(19&r.flags)&&(e.isNewExpressionTarget(n)||132===n.kind)){return s((e.find(a,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)}}()||(e.isCallOrNewExpressionTarget(n)||e.isNameOfFunctionDeclaration(n)?s(a,!1):void 0)||e.map(a,(function(e){return o(e,t,r,n)}));function s(i,a){if(i){var s=i.filter(a?e.isConstructorDeclaration:e.isFunctionLike),c=s.filter((function(e){return!!e.body}));return s.length?0!==c.length?c.map((function(e){return o(e,t,r,n)})):[o(e.last(s),t,r,n)]:void 0}}}function o(t,r,n,i){var a=r.symbolToString(n),o=e.SymbolDisplay.getSymbolKind(r,n,i),c=n.parent?r.symbolToString(n.parent,i):"";return s(r,t,o,a,c)}function s(t,r,n,i,a){var o=e.getNameOfDeclaration(r)||r,s=o.getSourceFile(),c=e.createTextSpanFromNode(o,s);return __assign(__assign({fileName:s.fileName,textSpan:c,kind:n,name:i,containerKind:void 0,containerName:a},e.FindAllReferences.toContextSpan(c,s,e.FindAllReferences.getContextNode(r))),{isLocal:!t.isDeclarationVisible(r)})}function c(e,t){return o(t,e,t.symbol,t)}function u(t,r){return e.find(t,(function(t){return e.textRangeContainsPositionInclusive(t,r)}))}t.getDefinitionAtPosition=r,t.getReferenceAtPosition=n,t.getTypeDefinitionAtPosition=function(t,r,n){var a=e.getTouchingPropertyName(r,n);if(a!==r){var o=t.getSymbolAtLocation(a);if(o){var s=t.getTypeOfSymbolAtLocation(o,a),c=function(t,r,n){if(r.symbol===t||t.valueDeclaration&&r.symbol&&e.isVariableDeclaration(t.valueDeclaration)&&t.valueDeclaration.initializer===r.symbol.valueDeclaration){var i=r.getCallSignatures();if(1===i.length)return n.getReturnTypeOfSignature(e.first(i))}return}(o,s,t),u=c&&i(c,t,a);return u&&0!==u.length?u:i(s,t,a)}}},t.getDefinitionAndBoundSpan=function(t,n,i){var a=r(t,n,i);if(a&&0!==a.length){var o=u(n.referencedFiles,i)||u(n.typeReferenceDirectives,i)||u(n.libReferenceDirectives,i);if(o)return{definitions:a,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(n,i);return{definitions:a,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},t.findReferenceInPosition=u}(e.GoToDefinition||(e.GoToDefinition={}))}(ts||(ts={})),function(e){!function(t){var r,n,i=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function a(e){var t=e.comment;switch(e.kind){case 316:case 315:return n(e.class);case 330:return i(e.typeParameters.map((function(e){return e.getText()})).join(", "));case 329:return n(e.typeExpression);case 331:case 324:case 333:case 326:case 332:var r=e.name;return r?n(r):t;default:return t}function n(e){return i(e.getText())}function i(e){return void 0===t?e:e+" "+t}}function o(t){return{name:t,kind:"",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}function s(t,r){switch(t.kind){case 251:case 208:case 165:case 166:case 164:case 209:var n=t;return{commentOwner:t,parameters:n.parameters,hasReturn:c(n,r)};case 288:return s(t.initializer,r);case 252:case 253:case 162:case 255:case 291:case 254:return{commentOwner:t};case 232:var i=t.declarationList.declarations,a=1===i.length&&i[0].initializer?function(t){for(;207===t.kind;)t=t.expression;switch(t.kind){case 208:case 209:return t;case 221:return e.find(t.members,e.isConstructorDeclaration)}}(i[0].initializer):void 0;return a?{commentOwner:t,parameters:a.parameters,hasReturn:c(a,r)}:{commentOwner:t};case 297:return"quit";case 256:return 256===t.parent.kind?void 0:{commentOwner:t};case 233:return s(t.expression,r);case 216:var o=t;return 0===e.getAssignmentDeclarationKind(o)?"quit":e.isFunctionLike(o.right)?{commentOwner:t,parameters:o.right.parameters,hasReturn:c(o.right,r)}:{commentOwner:t};case 163:var u=t.initializer;if(u&&(e.isFunctionExpression(u)||e.isArrowFunction(u)))return{commentOwner:t,parameters:u.parameters,hasReturn:c(u,r)}}}function c(t,r){return!!(null==r?void 0:r.generateReturnInDocTemplate)&&(e.isArrowFunction(t)&&e.isExpression(t.body)||e.isFunctionLikeDeclaration(t)&&t.body&&e.isBlock(t.body)&&!!e.forEachReturnStatement(t.body,(function(e){return e})))}t.getJsDocCommentsFromDeclarations=function(t){var r=[];return e.forEachUnique(t,(function(t){for(var n=0,i=function(t){switch(t.kind){case 326:case 333:return[t];case 324:case 331:return[t,t.parent];default:return e.getJSDocCommentsAndTags(t)}}(t);n<i.length;n++){var a=i[n].comment;void 0!==a&&e.pushIfUnique(r,a)}})),e.intersperse(e.map(r,e.textPart),e.lineBreakPart())},t.getJsDocTagsFromDeclarations=function(t){var r=[];return e.forEachUnique(t,(function(t){for(var n=0,i=e.getJSDocTags(t);n<i.length;n++){var o=i[n];r.push({name:o.tagName.text,text:a(o)})}})),r},t.getJSDocTagNameCompletions=function(){return r||(r=e.map(i,(function(t){return{name:t,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}})))},t.getJSDocTagNameCompletionDetails=o,t.getJSDocTagCompletions=function(){return n||(n=e.map(i,(function(t){return{name:"@"+t,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}})))},t.getJSDocTagCompletionDetails=o,t.getJSDocParameterNameCompletions=function(t){if(!e.isIdentifier(t.name))return e.emptyArray;var r=t.name.text,n=t.parent,i=n.parent;return e.isFunctionLike(i)?e.mapDefined(i.parameters,(function(i){if(e.isIdentifier(i.name)){var a=i.name.text;if(!n.tags.some((function(r){return r!==t&&e.isJSDocParameterTag(r)&&e.isIdentifier(r.name)&&r.name.escapedText===a}))&&(void 0===r||e.startsWith(a,r)))return{name:a,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}})):[]},t.getJSDocParameterNameCompletionDetails=function(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}},t.getDocCommentTemplateAtPosition=function(t,r,n,i){var a=e.getTokenAtPosition(r,n),o=e.findAncestor(a,e.isJSDoc);if(!o||void 0===o.comment&&!e.length(o.tags)){var c=a.getStart(r);if(o||!(c<n)){var u=function(t,r){return e.forEachAncestor(t,(function(e){return s(e,r)}))}(a,i);if(u){var l=u.commentOwner,_=u.parameters,d=u.hasReturn;if(!(l.getStart(r)<n)){var p=function(t,r){for(var n=t.text,i=e.getLineStartPositionForPosition(r,t),a=i;a<=r&&e.isWhiteSpaceSingleLine(n.charCodeAt(a));a++);return n.slice(i,a)}(r,n),f=e.hasJSFileExtension(r.fileName),g=(_?function(e,t,r,n){return e.map((function(e,i){var a=e.name,o=e.dotDotDotToken,s=78===a.kind?a.text:"param"+i;return r+" * @param "+(t?o?"{...any} ":"{any} ":"")+s+n})).join("")}(_||[],f,p,t):"")+(d?function(e,t){return e+" * @returns"+t}(p,t):"");if(g){var m="/**"+t+p+" * ";return{newText:m+t+g+p+" */"+(c===n?t+p:""),caretOffset:m.length}}return{newText:"/** */",caretOffset:3}}}}}}}(e.JsDoc||(e.JsDoc={}))}(ts||(ts={})),function(e){!function(t){function r(e,t){switch(e.kind){case 262:case 265:case 260:var r=t.getSymbolAtLocation(e.name),n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return!0}}function n(t,r){var n=e.getNameOfDeclaration(t);return!!n&&(a(n,r)||158===n.kind&&i(n.expression,r))}function i(t,r){return a(t,r)||e.isPropertyAccessExpression(t)&&(r.push(t.name.text),!0)&&i(t.expression,r)}function a(t,r){return e.isPropertyNameLiteral(t)&&(r.push(e.getTextOfIdentifierOrLiteral(t)),!0)}function o(t){var r=[],a=e.getNameOfDeclaration(t);if(a&&158===a.kind&&!i(a.expression,r))return e.emptyArray;r.shift();for(var o=e.getContainerNode(t);o;){if(!n(o,r))return e.emptyArray;o=e.getContainerNode(o)}return r.reverse()}function s(t,r){return e.compareValues(t.matchKind,r.matchKind)||e.compareStringsCaseSensitiveUI(t.name,r.name)}function c(t){var r=t.declaration,n=e.getContainerNode(r),i=n&&e.getNameOfDeclaration(n);return{name:t.name,kind:e.getNodeKind(r),kindModifiers:e.getNodeModifiers(r),matchKind:e.PatternMatchKind[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:e.createTextSpanFromNode(r),containerName:i?i.text:"",containerKind:i?e.getNodeKind(n):""}}t.getNavigateToItems=function(t,n,i,a,u,l){var _=e.createPatternMatcher(a);if(!_)return e.emptyArray;for(var d=[],p=function(e){if(i.throwIfCancellationRequested(),l&&e.isDeclarationFile)return"continue";e.getNamedDeclarations().forEach((function(t,i){!function(e,t,n,i,a,s){var c=e.getMatchForLastSegmentOfPattern(t);if(!c)return;for(var u=0,l=n;u<l.length;u++){var _=l[u];if(r(_,i))if(e.patternContainsDots){var d=e.getFullMatch(o(_),t);d&&s.push({name:t,fileName:a,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:_})}else s.push({name:t,fileName:a,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:_})}}(_,i,t,n,e.fileName,d)}))},f=0,g=t;f<g.length;f++){p(g[f])}return d.sort(s),(void 0===u?d:d.slice(0,u)).map(c)}}(e.NavigateTo||(e.NavigateTo={}))}(ts||(ts={})),function(e){!function(t){var r,n,i,a,o,s=/\s+/g,c=[],u=[],l=[];function _(){i=void 0,n=void 0,c=[],a=void 0,l=[]}function d(e){return W(e.getText(i))}function p(e){return e.node.kind}function f(e,t){e.children?e.children.push(t):e.children=[t]}function g(t){e.Debug.assert(!c.length);var r={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};a=r;for(var n=0,i=t.statements;n<i.length;n++){C(i[n])}return D(),e.Debug.assert(!a&&!c.length),r}function m(e,t){f(a,y(e,t))}function y(t,r){return{node:t,name:r||(e.isDeclaration(t)||e.isExpression(t)?e.getNameOfDeclaration(t):void 0),additionalNodes:void 0,parent:a,children:void 0,indent:a.indent+1}}function v(t){o||(o=new e.Map),o.set(t,!0)}function h(e){for(var t=0;t<e;t++)D()}function b(t,r){for(var n=[];!e.isPropertyNameLiteral(r);){var i=e.getNameOrArgument(r),a=e.getElementOrPropertyAccessName(r);r=r.expression,"prototype"===a||e.isPrivateIdentifier(i)||n.push(i)}n.push(r);for(var o=n.length-1;o>0;o--){x(t,i=n[o])}return[n.length-1,n[0]]}function x(e,t){var r=y(e,t);f(a,r),c.push(a),u.push(o),o=void 0,a=r}function D(){a.children&&(E(a.children,a),w(a.children)),a=c.pop(),o=u.pop()}function S(e,t,r){x(e,r),C(t),D()}function T(t){t.initializer&&function(e){switch(e.kind){case 209:case 208:case 221:return!0;default:return!1}}(t.initializer)?(x(t),e.forEachChild(t.initializer,C),D()):S(t,t.initializer)}function C(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 166:var i=t;S(i,i.body);for(var a=0,s=i.parameters;a<s.length;a++){var c=s[a];e.isParameterPropertyDeclaration(c,i)&&m(c)}break;case 165:case 167:case 168:case 164:e.hasDynamicName(t)||S(t,t.body);break;case 163:e.hasDynamicName(t)||T(t);break;case 162:e.hasDynamicName(t)||m(t);break;case 262:var u=t;u.name&&m(u.name);var l=u.namedBindings;if(l)if(263===l.kind)m(l);else for(var _=0,d=l.elements;_<d.length;_++){m(d[_])}break;case 289:S(t,t.name);break;case 290:var p=t.expression;e.isIdentifier(p)?m(t,p):m(t);break;case 198:case 288:case 249:var f=t;e.isBindingPattern(f.name)?C(f.name):T(f);break;case 251:var g=t.name;g&&e.isIdentifier(g)&&v(g.text),S(t,t.body);break;case 209:case 208:S(t,t.body);break;case 255:x(t);for(var y=0,E=t.members;y<E.length;y++){z(A=E[y])||m(A)}D();break;case 252:case 221:case 253:x(t);for(var k=0,N=t.members;k<N.length;k++){var A;C(A=N[k])}D();break;case 256:S(t,J(t).body);break;case 266:var F=t.expression;(f=e.isObjectLiteralExpression(F)||e.isCallExpression(F)?F:e.isArrowFunction(F)||e.isFunctionExpression(F)?F.body:void 0)?(x(t),C(f),D()):m(t);break;case 270:case 260:case 171:case 169:case 170:case 254:m(t);break;case 203:case 216:var P=e.getAssignmentDeclarationKind(t);switch(P){case 1:case 2:return void S(t,t.right);case 6:case 3:var w=(j=t).left,I=3===P?w.expression:w,O=0,M=void 0;return e.isIdentifier(I.expression)?(v(I.expression.text),M=I.expression):(O=(r=b(j,I.expression))[0],M=r[1]),6===P?e.isObjectLiteralExpression(j.right)&&j.right.properties.length>0&&(x(j,M),e.forEachChild(j.right,C),D()):e.isFunctionExpression(j.right)||e.isArrowFunction(j.right)?S(t,j.right,M):(x(j,M),S(t,j.right,w.name),D()),void h(O);case 7:case 9:var L=t,R=(M=7===P?L.arguments[0]:L.arguments[0].expression,L.arguments[1]),B=b(t,M);O=B[0];return x(t,B[1]),x(t,e.setTextRange(e.factory.createIdentifier(R.text),R)),C(t.arguments[2]),D(),D(),void h(O);case 5:var j,U=(w=(j=t).left).expression;if(e.isIdentifier(U)&&"prototype"!==e.getElementOrPropertyAccessName(w)&&o&&o.has(U.text))return void(e.isFunctionExpression(j.right)||e.isArrowFunction(j.right)?S(t,j.right,U):e.isBindableStaticAccessExpression(w)&&(x(j,U),S(j.left,j.right,e.getNameOrArgument(w)),D()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(P)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,(function(t){e.forEach(t.tags,(function(t){e.isJSDocTypeAlias(t)&&m(t)}))})),e.forEachChild(t,C)}}function E(t,r){var n=new e.Map;e.filterMutate(t,(function(t,i){var a=t.name||e.getNameOfDeclaration(t.node),o=a&&d(a);if(!o)return!0;var s=n.get(o);if(!s)return n.set(o,t),!0;if(s instanceof Array){for(var c=0,u=s;c<u.length;c++){var l;if(N(l=u[c],t,i,r))return!1}return s.push(t),!0}return!N(l=s,t,i,r)&&(n.set(o,[l,t]),!0)}))}t.getNavigationBarItems=function(t,r){n=r,i=t;try{return e.map(function(e){var t=[];function r(e){if(n(e)&&(t.push(e),e.children))for(var i=0,a=e.children;i<a.length;i++){r(a[i])}}return r(e),t;function n(e){if(e.children)return!0;switch(p(e)){case 252:case 221:case 255:case 253:case 256:case 297:case 254:case 331:case 324:return!0;case 209:case 251:case 208:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(p(e.parent)){case 257:case 297:case 165:case 166:return!0;default:return!1}}}}(g(t)),R)}finally{_()}},t.getNavigationTree=function(e,t){n=t,i=e;try{return L(g(e))}finally{_()}};var k=((r={})[5]=!0,r[3]=!0,r[7]=!0,r[9]=!0,r[0]=!1,r[1]=!1,r[2]=!1,r[8]=!1,r[6]=!0,r[4]=!1,r);function N(t,r,n,i){return!!function(t,r,n,i){function a(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)||e.isVariableDeclaration(t)}var o=e.isBinaryExpression(r.node)||e.isCallExpression(r.node)?e.getAssignmentDeclarationKind(r.node):0,s=e.isBinaryExpression(t.node)||e.isCallExpression(t.node)?e.getAssignmentDeclarationKind(t.node):0;if(k[o]&&k[s]||a(t.node)&&k[o]||a(r.node)&&k[s]||e.isClassDeclaration(t.node)&&A(t.node)&&k[o]||e.isClassDeclaration(r.node)&&k[s]||e.isClassDeclaration(t.node)&&A(t.node)&&a(r.node)||e.isClassDeclaration(r.node)&&a(t.node)&&A(t.node)){var c=t.additionalNodes&&e.lastOrUndefined(t.additionalNodes)||t.node;if(!e.isClassDeclaration(t.node)&&!e.isClassDeclaration(r.node)||a(t.node)||a(r.node)){var u=a(t.node)?t.node:a(r.node)?r.node:void 0;if(void 0!==u){var l=y(e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),u));l.indent=t.indent+1,l.children=t.node===u?t.children:r.children,t.children=t.node===u?e.concatenate([l],r.children||[r]):e.concatenate(t.children||[__assign({},t)],[l])}else(t.children||r.children)&&(t.children=e.concatenate(t.children||[__assign({},t)],r.children||[r]),t.children&&(E(t.children,t),w(t.children)));c=t.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=e.concatenate(t.children,r.children),t.children&&E(t.children,t);var _=r.node;return i.children[n-1].node.end===c.end?e.setTextRange(c,{pos:c.pos,end:_.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),r.node))),!0}return 0!==o}(t,r,n,i)||!!function(t,r,n){if(t.kind!==r.kind||t.parent!==r.parent&&(!F(t,n)||!F(r,n)))return!1;switch(t.kind){case 163:case 165:case 167:case 168:return e.hasSyntacticModifier(t,32)===e.hasSyntacticModifier(r,32);case 256:return P(t,r);default:return!0}}(t.node,r.node,i)&&(function(t,r){var n;t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(r.node),r.additionalNodes&&(n=t.additionalNodes).push.apply(n,r.additionalNodes);t.children=e.concatenate(t.children,r.children),t.children&&(E(t.children,t),w(t.children))}(t,r),!0)}function A(e){return!!(8&e.flags)}function F(t,r){var n=e.isModuleBlock(t.parent)?t.parent.parent:t.parent;return n===r.node||e.contains(r.additionalNodes,n)}function P(e,t){return e.body.kind===t.body.kind&&(256!==e.body.kind||P(e.body,t.body))}function w(e){e.sort(I)}function I(t,r){return e.compareStringsCaseSensitiveUI(O(t.node),O(r.node))||e.compareValues(p(t),p(r))}function O(t){if(256===t.kind)return j(t);var r=e.getNameOfDeclaration(t);if(r&&e.isPropertyName(r)){var n=e.getPropertyNameForPropertyNameNode(r);return n&&e.unescapeLeadingUnderscores(n)}switch(t.kind){case 208:case 209:case 221:return K(t);default:return}}function M(t,r){if(256===t.kind)return W(j(t));if(r){var n=e.isIdentifier(r)?r.text:e.isElementAccessExpression(r)?"["+d(r.argumentExpression)+"]":d(r);if(n.length>0)return W(n)}switch(t.kind){case 297:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"<global>";case 266:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 209:case 251:case 208:case 252:case 221:return 512&e.getSyntacticModifierFlags(t)?"default":K(t);case 166:return"constructor";case 170:return"new()";case 169:return"()";case 171:return"[]";default:return"<unknown>"}}function L(t){return{text:M(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:V(t.node),spans:B(t),nameSpan:t.name&&U(t.name),childItems:e.map(t.children,L)}}function R(t){return{text:M(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:V(t.node),spans:B(t),childItems:e.map(t.children,(function(t){return{text:M(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:B(t),childItems:l,indent:0,bolded:!1,grayed:!1}}))||l,indent:t.indent,bolded:!1,grayed:!1}}function B(e){var t=[U(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(U(i))}return t}function j(t){if(e.isAmbientModule(t))return e.getTextOfNode(t.name);for(var r=[e.getTextOfIdentifierOrLiteral(t.name)];t.body&&256===t.body.kind;)t=t.body,r.push(e.getTextOfIdentifierOrLiteral(t.name));return r.join(".")}function J(t){return t.body&&e.isModuleDeclaration(t.body)?J(t.body):t}function z(e){return!e.name||158===e.name.kind}function U(t){return 297===t.kind?e.createTextSpanFromRange(t):e.createTextSpanFromNode(t,i)}function V(t){return t.parent&&249===t.parent.kind&&(t=t.parent),e.getNodeModifiers(t)}function K(t){var r=t.parent;if(t.name&&e.getFullWidth(t.name)>0)return W(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return W(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&62===r.operatorToken.kind)return d(r.left).replace(s,"");if(e.isPropertyAssignment(r))return d(r.name);if(512&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"<class>";if(e.isCallExpression(r)){var n=q(r.expression);if(void 0!==n)return(n=W(n)).length>150?n+" callback":n+"("+W(e.mapDefined(r.arguments,(function(t){return e.isStringLiteralLike(t)?t.getText(i):void 0})).join(", "))+") callback"}return"<function>"}function q(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=q(t.expression),n=t.name.text;return void 0===r?n:r+"."+n}}function W(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(ts||(ts={})),function(e){!function(t){function r(t,r){var n=e.isStringLiteral(r)&&r.text;return e.isString(n)&&e.some(t.moduleAugmentations,(function(t){return e.isStringLiteral(t)&&t.text===n}))}function n(t){return void 0!==t&&e.isStringLiteralLike(t)?t.text:void 0}function i(t){var r;if(0===t.length)return t;var n=function(t){for(var r,n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]},a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s.importClause){var c=s.importClause.isTypeOnly?n:i,u=s.importClause,l=u.name,_=u.namedBindings;l&&c.defaultImports.push(s),_&&(e.isNamespaceImport(_)?c.namespaceImports.push(s):c.namedImports.push(s))}else r=r||s}return{importWithoutClause:r,typeOnlyImports:n,regularImports:i}}(t),i=n.importWithoutClause,a=n.typeOnlyImports,c=n.regularImports,u=[];i&&u.push(i);for(var _=0,d=[c,a];_<d.length;_++){var p=d[_],f=p===a,g=p.defaultImports,m=p.namespaceImports,y=p.namedImports;if(f||1!==g.length||1!==m.length||0!==y.length){for(var v=0,h=e.stableSort(m,(function(e,t){return l(e.importClause.namedBindings.name,t.importClause.namedBindings.name)}));v<h.length;v++){var b=h[v];u.push(o(b,void 0,b.importClause.namedBindings))}if(0!==g.length||0!==y.length){var x=void 0,D=[];if(1===g.length)x=g[0].importClause.name;else for(var S=0,T=g;S<T.length;S++){N=T[S];D.push(e.factory.createImportSpecifier(e.factory.createIdentifier("default"),N.importClause.name))}D.push.apply(D,e.flatMap(y,(function(e){return e.importClause.namedBindings.elements})));var C=s(D),E=g.length>0?g[0]:y[0],k=0===C.length?x?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(C):e.factory.updateNamedImports(y[0].importClause.namedBindings,C);f&&x&&k?(u.push(o(E,x,void 0)),u.push(o(null!==(r=y[0])&&void 0!==r?r:E,void 0,k))):u.push(o(E,x,k))}}else{var N=g[0];u.push(o(N,N.importClause.name,m[0].importClause.namedBindings))}}return u}function a(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=[],i=0,a=e;i<a.length;i++){var o=a[i];void 0===o.exportClause?t=t||o:o.isTypeOnly?n.push(o):r.push(o)}return{exportWithoutClause:t,namedExports:r,typeOnlyExports:n}}(t),n=r.exportWithoutClause,i=r.namedExports,a=r.typeOnlyExports,o=[];n&&o.push(n);for(var c=0,u=[i,a];c<u.length;c++){var l=u[c];if(0!==l.length){var _=[];_.push.apply(_,e.flatMap(l,(function(t){return t.exportClause&&e.isNamedExports(t.exportClause)?t.exportClause.elements:e.emptyArray})));var d=s(_),p=l[0];o.push(e.factory.updateExportDeclaration(p,p.decorators,p.modifiers,p.isTypeOnly,p.exportClause&&(e.isNamedExports(p.exportClause)?e.factory.updateNamedExports(p.exportClause,d):e.factory.updateNamespaceExport(p.exportClause,p.exportClause.name)),p.moduleSpecifier))}}return o}function o(t,r,n){return e.factory.updateImportDeclaration(t,t.decorators,t.modifiers,e.factory.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),t.moduleSpecifier)}function s(t){return e.stableSort(t,c)}function c(e,t){return l(e.propertyName||e.name,t.propertyName||t.name)||l(e.name,t.name)}function u(t,r){var i=void 0===t?void 0:n(t),a=void 0===r?void 0:n(r);return e.compareBooleans(void 0===i,void 0===a)||e.compareBooleans(e.isExternalModuleNameRelative(i),e.isExternalModuleNameRelative(a))||e.compareStringsCaseInsensitive(i,a)}function l(t,r){return e.compareStringsCaseInsensitive(t.text,r.text)}function _(t){var r;switch(t.kind){case 260:return null===(r=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression;case 261:return t.moduleSpecifier;case 232:return t.declarationList.declarations[0].initializer.arguments[0]}}function d(t,r){return u(_(t),_(r))||function(t,r){return e.compareValues(p(t),p(r))}(t,r)}function p(e){var t;switch(e.kind){case 261:return e.importClause?e.importClause.isTypeOnly?1:263===(null===(t=e.importClause.namedBindings)||void 0===t?void 0:t.kind)?2:e.importClause.name?3:4:0;case 260:return 5;case 232:return 6}}t.organizeImports=function(t,s,c,l,_){var p=e.textChanges.ChangeTracker.fromContext({host:c,formatContext:s,preferences:_}),f=function(n){return e.stableSort(i(function(t,n,i){for(var a=i.getTypeChecker(),s=a.getJsxNamespace(n),c=a.getJsxFragmentFactory(n),u=!!(2&n.transformFlags),l=[],_=0,d=t;_<d.length;_++){var p=d[_],f=p.importClause,g=p.moduleSpecifier;if(f){var m=f.name,y=f.namedBindings;if(m&&!h(m)&&(m=void 0),y)if(e.isNamespaceImport(y))h(y.name)||(y=void 0);else{var v=y.elements.filter((function(e){return h(e.name)}));v.length<y.elements.length&&(y=v.length?e.factory.updateNamedImports(y,v):void 0)}m||y?l.push(o(p,m,y)):r(n,g)&&(n.isDeclarationFile?l.push(e.factory.createImportDeclaration(p.decorators,p.modifiers,void 0,g)):l.push(p))}else l.push(p)}return l;function h(t){return u&&(t.text===s||c&&t.text===c)||e.FindAllReferences.Core.isSymbolReferencedInFile(t,a,n)}}(n,t,l)),(function(e,t){return d(e,t)}))};v(t.statements.filter(e.isImportDeclaration),f),v(t.statements.filter(e.isExportDeclaration),a);for(var g=0,m=t.statements.filter(e.isAmbientModule);g<m.length;g++){var y=m[g];if(y.body)v(y.body.statements.filter(e.isImportDeclaration),f),v(y.body.statements.filter(e.isExportDeclaration),a)}return p.getChanges();function v(r,i){if(0!==e.length(r)){e.suppressLeadingTrivia(r[0]);var a=e.group(r,(function(e){return n(e.moduleSpecifier)})),o=e.stableSort(a,(function(e,t){return u(e[0].moduleSpecifier,t[0].moduleSpecifier)})),l=e.flatMap(o,(function(e){return n(e[0].moduleSpecifier)?i(e):e}));0===l.length?p.delete(t,r[0]):p.replaceNodeWithNodes(t,r[0],l,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(c,s.options)});for(var _=1;_<r.length;_++)p.deleteNode(t,r[_])}}},t.coalesceImports=i,t.coalesceExports=a,t.compareImportOrExportSpecifiers=c,t.compareModuleSpecifiers=u,t.importsAreSorted=function(t){return e.arrayIsSorted(t,d)},t.importSpecifiersAreSorted=function(t){return e.arrayIsSorted(t,c)},t.getImportDeclarationInsertionIndex=function(t,r){var n=e.binarySearch(t,r,e.identity,d);return n<0?~n:n},t.getImportSpecifierInsertionIndex=function(t,r){var n=e.binarySearch(t,r,e.identity,c);return n<0?~n:n},t.compareImportsOrRequireStatements=d}(e.OrganizeImports||(e.OrganizeImports={}))}(ts||(ts={})),function(e){!function(t){t.collectElements=function(t,r){var c=[];return function(t,r,n){var c=40,u=0,l=__spreadArray(__spreadArray([],t.statements),[t.endOfFileToken]),_=l.length;for(;u<_;){for(;u<_&&!e.isAnyImportSyntax(l[u]);)f(l[u]),u++;if(u===_)break;for(var d=u;u<_&&e.isAnyImportSyntax(l[u]);)i(l[u],t,r,n),u++;var p=u-1;p!==d&&n.push(a(e.findChildOfKind(l[d],99,t).getStart(t),l[p].getEnd(),"imports"))}function f(u){var l;if(0!==c){r.throwIfCancellationRequested(),(e.isDeclaration(u)||e.isVariableStatement(u)||1===u.kind)&&i(u,t,r,n),e.isFunctionLike(u)&&e.isBinaryExpression(u.parent)&&e.isPropertyAccessExpression(u.parent.left)&&i(u.parent.left,t,r,n);var _=function(t,r){switch(t.kind){case 230:if(e.isFunctionLike(t.parent))return function(t,r,n){var i=function(t,r,n){if(e.isNodeArrayMultiLine(t.parameters,n)){var i=e.findChildOfKind(t,20,n);if(i)return i}return e.findChildOfKind(r,18,n)}(t,r,n),a=e.findChildOfKind(r,19,n);return i&&a&&o(i,a,t,n,209!==t.kind)}(t.parent,t,r);switch(t.parent.kind){case 235:case 238:case 239:case 237:case 234:case 236:case 243:case 287:return g(t.parent);case 247:var n=t.parent;if(n.tryBlock===t)return g(t.parent);if(n.finallyBlock===t){var i=e.findChildOfKind(n,95,r);if(i)return g(i)}default:return s(e.createTextSpanFromNode(t,r),"code")}case 257:return g(t.parent);case 252:case 221:case 253:case 255:case 258:case 177:case 196:return g(t);case 179:return g(t,!1,!e.isTupleTypeNode(t.parent),22);case 284:case 285:return m(t.statements);case 200:return f(t);case 199:return f(t,22);case 273:return l(t);case 277:return _(t);case 274:case 275:return d(t.attributes);case 218:case 14:return p(t);case 197:return g(t,!1,!e.isBindingElement(t.parent),22);case 209:return u(t);case 203:return c(t)}function c(t){if(t.arguments.length){var n=e.findChildOfKind(t,20,r),i=e.findChildOfKind(t,21,r);if(n&&i&&!e.positionsAreOnSameLine(n.pos,i.pos,r))return o(n,i,t,r,!1,!0)}}function u(t){if(!e.isBlock(t.body)&&!e.positionsAreOnSameLine(t.body.getFullStart(),t.body.getEnd(),r))return s(e.createTextSpanFromBounds(t.body.getFullStart(),t.body.getEnd()),"code",e.createTextSpanFromNode(t))}function l(t){var n=e.createTextSpanFromBounds(t.openingElement.getStart(r),t.closingElement.getEnd()),i=t.openingElement.tagName.getText(r);return s(n,"code",n,!1,"<"+i+">...</"+i+">")}function _(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return s(n,"code",n,!1,"<>...</>")}function d(e){if(0!==e.properties.length)return a(e.getStart(r),e.getEnd(),"code")}function p(e){if(14!==e.kind||0!==e.text.length)return a(e.getStart(r),e.getEnd(),"code")}function f(t,r){return void 0===r&&(r=18),g(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function g(n,i,a,s,c){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===s&&(s=18),void 0===c&&(c=18===s?19:23);var u=e.findChildOfKind(t,s,r),l=e.findChildOfKind(t,c,r);return u&&l&&o(u,l,n,r,i,a)}function m(t){return t.length?s(e.createTextSpanFromRange(t),"code"):void 0}}(u,t);_&&n.push(_),c--,e.isCallExpression(u)?(c++,f(u.expression),c--,u.arguments.forEach(f),null===(l=u.typeArguments)||void 0===l||l.forEach(f)):e.isIfStatement(u)&&u.elseStatement&&e.isIfStatement(u.elseStatement)?(f(u.expression),f(u.thenStatement),c++,f(u.elseStatement),c--):u.forEachChild(f),c++}}}(t,r,c),function(t,r){for(var i=[],a=t.getLineStarts(),o=0,c=a;o<c.length;o++){var u=c[o],l=t.getLineEndOfPosition(u),_=n(t.text.substring(u,l));if(_&&!e.isInComment(t,u))if(_[1]){var d=i.pop();d&&(d.textSpan.length=l-d.textSpan.start,d.hintSpan.length=l-d.textSpan.start,r.push(d))}else{var p=e.createTextSpanFromBounds(t.text.indexOf("//",u),l);i.push(s(p,"region",p,!1,_[2]||"#region"))}}}(t,c),c.sort((function(e,t){return e.textSpan.start-t.textSpan.start}))};var r=/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/;function n(e){return r.exec(e)}function i(t,r,i,o){var s=e.getLeadingCommentRangesOfNode(t,r);if(s){for(var c=-1,u=-1,l=0,_=r.getFullText(),d=0,p=s;d<p.length;d++){var f=p[d],g=f.kind,m=f.pos,y=f.end;switch(i.throwIfCancellationRequested(),g){case 2:if(n(_.slice(m,y))){v(),l=0;break}0===l&&(c=m),u=y,l++;break;case 3:v(),o.push(a(m,y,"comment")),l=0;break;default:e.Debug.assertNever(g)}}v()}function v(){l>1&&o.push(a(c,u,"comment"))}}function a(t,r,n){return s(e.createTextSpanFromBounds(t,r),n)}function o(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),s(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function s(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(ts||(ts={})),function(e){var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=v(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(C(t,(function(t,n){return d(e.charCodeAt(n+r))===t})))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"==typeof a)return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var _=0,p=n(i,o);_<p.length;_++){var f=p[_];if(c(i,f,a.text,!0))return r(t.substring,c(i,f,a.text,!1))}if(a.text.length<i.length&&l(i.charCodeAt(s)))return r(t.substring,!1)}else{if(i.indexOf(a.text)>0)return r(t.substring,!0);if(a.characterSpans.length>0){var g=n(i,o),m=!!u(i,g,a,!1)||!u(i,g,a,!0)&&void 0;if(void 0!==m)return r(t.camelCase,m)}}}function a(e,t,r){if(C(t.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s<c.length;s++){a=o(a,i(e,c[s],r))}return a}function o(t,r){return e.min(t,r,s)}function s(t,r){return void 0===t?1:void 0===r?-1:e.compareValues(t.kind,r.kind)||e.compareBooleans(!t.isCaseSensitive,!r.isCaseSensitive)}function c(e,t,r,n,i){return void 0===i&&(i={start:0,length:r.length}),i.length<=t.length&&T(0,i.length,(function(a){return function(e,t,r){return r?d(e)===d(t):e===t}(r.charCodeAt(i.start+a),e.charCodeAt(t.start+a),n)}))}function u(t,r,n,i){for(var a,o,s=n.characterSpans,u=0,_=0;;){if(_===s.length)return!0;if(u===r.length)return!1;for(var d=r[u],p=!1;_<s.length;_++){var f=s[_];if(p&&(!l(n.text.charCodeAt(s[_-1].start))||!l(n.text.charCodeAt(s[_].start))))break;if(!c(t,d,n.text,i,f))break;p=!0,a=void 0===a?u:a,o=void 0===o||o,d=e.createTextSpan(d.start+f.length,d.length-f.length)}p||void 0===o||(o=!1),u++}}function l(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function _(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function d(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function p(e){return e>=48&&e<=57}function f(e){return l(e)||_(e)||p(e)||95===e||36===e}function g(e){for(var t=[],r=0,n=0,i=0;i<e.length;i++){f(e.charCodeAt(i))?(0===n&&(r=i),n++):n>0&&(t.push(m(e.substr(r,n))),n=0)}return n>0&&t.push(m(e.substr(r,n))),t}function m(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:y(e)}}function y(e){return h(e,!1)}function v(e){return h(e,!0)}function h(t,r){for(var n=[],i=0,a=1;a<t.length;a++){var o=p(t.charCodeAt(a-1)),s=p(t.charCodeAt(a)),c=S(t,r,a),u=r&&D(t,a,i);(b(t.charCodeAt(a-1))||b(t.charCodeAt(a))||o!==s||c||u)&&(x(t,i,a)||n.push(e.createTextSpan(i,a-i)),i=a)}return x(t,i,t.length)||n.push(e.createTextSpan(i,t.length-i)),n}function b(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 x(e,t,r){return C(e,(function(e){return b(e)&&95!==e}),t,r)}function D(e,t,r){return t!==r&&t+1<e.length&&l(e.charCodeAt(t))&&_(e.charCodeAt(t+1))&&C(e,l,r,t)}function S(e,t,r){var n=l(e.charCodeAt(r-1));return l(e.charCodeAt(r))&&(!t||!n)}function T(e,t,r){for(var n=e;n<t;n++)if(!r(n))return!1;return!0}function C(e,t,r,n){return void 0===r&&(r=0),void 0===n&&(n=e.length),T(r,n,(function(r){return t(e.charCodeAt(r),r)}))}!function(e){e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"}(t=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=function(t){var r=new e.Map,n=t.trim().split(".").map((function(e){return{totalTextChunk:m(t=e.trim()),subWordTextChunks:g(t)};var t}));if(!n.some((function(e){return!e.subWordTextChunks.length})))return{getFullMatch:function(t,i){return function(t,r,n,i){var s;if(!a(r,e.last(n),i))return;if(n.length-1>t.length)return;for(var c=n.length-2,u=t.length-1;c>=0;c-=1,u-=1)s=o(s,a(t[u],n[c],i));return s}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=y,e.breakIntoWordSpans=v}(ts||(ts={})),function(e){e.preProcessFile=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!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=[],u=0,l=!1;function _(){return a=o,18===(o=e.scanner.scan())?u++:19===o&&u--,o}function d(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function p(){c.push(d()),f()}function f(){0===u&&(l=!0)}function g(){var t=e.scanner.getToken();return 133===t&&(139===(t=_())&&10===(t=_())&&(i||(i=[]),i.push({ref:d(),depth:u})),!0)}function m(){if(24===a)return!1;var t=e.scanner.getToken();if(99===t){if(20===(t=_())){if(10===(t=_())||14===t)return p(),!0}else{if(10===t)return p(),!0;149===t&&e.scanner.lookAhead((function(){var t=e.scanner.scan();return 153!==t&&(41===t||18===t||78===t||e.isKeyword(t))}))&&(t=_());if(78===t||e.isKeyword(t))if(153===(t=_())){if(10===(t=_()))return p(),!0}else if(62===t){if(v(!0))return!0}else{if(27!==t)return!0;t=_()}if(18===t){for(t=_();19!==t&&1!==t;)t=_();19===t&&153===(t=_())&&10===(t=_())&&p()}else 41===t&&126===(t=_())&&(78===(t=_())||e.isKeyword(t))&&153===(t=_())&&10===(t=_())&&p()}return!0}return!1}function y(){var t=e.scanner.getToken();if(92===t){if(f(),149===(t=_()))e.scanner.lookAhead((function(){var t=e.scanner.scan();return 41===t||18===t}))&&(t=_());if(18===t){for(t=_();19!==t&&1!==t;)t=_();19===t&&153===(t=_())&&10===(t=_())&&p()}else if(41===t)153===(t=_())&&10===(t=_())&&p();else if(99===t){if(149===(t=_()))e.scanner.lookAhead((function(){var t=e.scanner.scan();return 78===t||e.isKeyword(t)}))&&(t=_());if((78===t||e.isKeyword(t))&&62===(t=_())&&v(!0))return!0}return!0}return!1}function v(t,r){void 0===r&&(r=!1);var n=t?_():e.scanner.getToken();return 143===n&&(20===(n=_())&&(10===(n=_())||r&&14===n)&&p(),!0)}function h(){var t=e.scanner.getToken();if(78===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=_()))return!0;if(10===(t=_())||14===t){if(27!==(t=_()))return!0;t=_()}if(22!==t)return!0;for(t=_();23!==t&&1!==t;)10!==t&&14!==t||p(),t=_();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),_();1!==e.scanner.getToken();)g()||m()||y()||n&&(v(!1,!0)||h())||_();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),l){if(i)for(var b=0,x=i;b<x.length;b++){var D=x[b];c.push(D.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:void 0}}var S=void 0;if(i)for(var T=0,C=i;T<C.length;T++){0===(D=C[T]).depth?(S||(S=[]),S.push(D.ref.fileName)):c.push(D.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:S}}}(ts||(ts={})),function(e){!function(t){function r(e,t,r,n,a,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:n,triggerSpan:i(a,o)}}function n(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t)}}function i(t,r){var n=t.getStart(r),i=t.getWidth(r);return e.isStringLiteralLike(t)&&(n+=1,i-=2),e.createTextSpan(n,i)}t.getRenameInfo=function(t,i,a,o){var s=e.getAdjustedRenameLocation(e.getTouchingPropertyName(i,a));if(function(t){switch(t.kind){case 78:case 79:case 10:case 14:case 107:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}(s)){var c=function(t,i,a,o,s){var c=i.getSymbolAtLocation(t);if(!c){if(e.isStringLiteralLike(t)){var u=e.getContextualTypeOrAncestorTypeNodeType(t,i);if(u&&(128&u.flags||1048576&u.flags&&e.every(u.types,(function(e){return!!(128&e.flags)}))))return r(t.text,t.text,"string","",t,a)}else if(e.isLabelName(t)){var l=e.getTextOfNode(t);return r(l,l,"label","",t,a)}return}var _=c.declarations;if(!_||0===_.length)return;if(_.some(o))return n(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(e.isIdentifier(t)&&87===t.originalKeywordKind&&c.parent&&1536&c.parent.flags)return;if(e.isStringLiteralLike(t)&&e.tryGetImportFromModuleSpecifier(t))return s&&s.allowRenameOfImportPath?function(t,r,i){if(!e.isExternalModuleNameRelative(t.text))return n(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var a=e.find(i.declarations,e.isSourceFile);if(!a)return;var o=e.endsWith(t.text,"/index")||e.endsWith(t.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",u=t.text.lastIndexOf("/")+1,l=e.createTextSpan(t.getStart(r)+1+u,t.text.length-u);return{canRename:!0,fileToRename:s,kind:c,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:l}}(t,a,c):void 0;var d=e.SymbolDisplay.getSymbolKind(i,c,t),p=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteralLike(t)&&158===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0,f=p||i.symbolToString(c),g=p||i.getFullyQualifiedName(c);return r(f,g,d,e.SymbolDisplay.getSymbolModifiers(i,c),t,a)}(s,t.getTypeChecker(),i,(function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}),o);if(c)return c}return n(e.Diagnostics.You_cannot_rename_this_element)}}(e.Rename||(e.Rename={}))}(ts||(ts={})),function(e){!function(t){function r(t,r,n){return e.Debug.assert(n.pos<=r),r<n.end||n.getEnd()===r&&e.getTouchingPropertyName(t,r).pos<n.end}t.getSmartSelectionRange=function(t,n){var a,o,s,l={textSpan:e.createTextSpanFromBounds(n.getFullStart(),n.getEnd())},_=n;e:for(;;){var d=i(_);if(!d.length)break;for(var p=0;p<d.length;p++){var f=d[p-1],g=d[p],m=d[p+1];if(e.getTokenPosOfNode(g,n,!0)>t)break e;if(r(n,t,g)){if(e.isBlock(g)||e.isTemplateSpan(g)||e.isTemplateHead(g)||e.isTemplateTail(g)||f&&e.isTemplateHead(f)||e.isVariableDeclarationList(g)&&e.isVariableStatement(_)||e.isSyntaxList(g)&&e.isVariableDeclarationList(_)||e.isVariableDeclaration(g)&&e.isSyntaxList(_)&&1===d.length||e.isJSDocTypeExpression(g)||e.isJSDocSignature(g)||e.isJSDocTypeLiteral(g)){_=g;break}if(e.isTemplateSpan(_)&&m&&e.isTemplateMiddleOrTemplateTail(m))b(g.getFullStart()-"${".length,m.getStart()+"}".length);var y=e.isSyntaxList(g)&&(s=void 0,18===(s=(o=f)&&o.kind)||22===s||20===s||275===s)&&c(m)&&!e.positionsAreOnSameLine(f.getStart(),m.getStart(),n),v=y?f.getEnd():g.getStart(),h=y?m.getStart():u(n,g);e.hasJSDocNodes(g)&&(null===(a=g.jsDoc)||void 0===a?void 0:a.length)&&b(e.first(g.jsDoc).getStart(),h),b(v,h),(e.isStringLiteral(g)||e.isTemplateLiteral(g))&&b(v+1,h-1),_=g;break}if(p===d.length-1)break e}}return l;function b(r,n){if(r!==n){var i=e.createTextSpanFromBounds(r,n);(!l||!e.textSpansEqual(i,l.textSpan)&&e.textSpanIntersectsWithPosition(i,t))&&(l=__assign({textSpan:i},l&&{parent:l}))}}};var n=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function i(t){if(e.isSourceFile(t))return a(t.getChildAt(0).getChildren(),n);if(e.isMappedTypeNode(t)){var r=t.getChildren(),i=r[0],c=r.slice(1),u=e.Debug.checkDefined(c.pop());e.Debug.assertEqual(i.kind,18),e.Debug.assertEqual(u.kind,19);var l=a(c,(function(e){return e===t.readonlyToken||142===e.kind||e===t.questionToken||57===e.kind}));return[i,s(o(a(l,(function(e){var t=e.kind;return 22===t||159===t||23===t})),(function(e){return 58===e.kind}))),u]}if(e.isPropertySignature(t))return o(c=a(t.getChildren(),(function(r){return r===t.name||e.contains(t.modifiers,r)})),(function(e){return 58===e.kind}));if(e.isParameter(t)){var _=a(t.getChildren(),(function(e){return e===t.dotDotDotToken||e===t.name}));return o(a(_,(function(e){return e===_[0]||e===t.questionToken})),(function(e){return 62===e.kind}))}return e.isBindingElement(t)?o(t.getChildren(),(function(e){return 62===e.kind})):t.getChildren()}function a(e,t){for(var r,n=[],i=0,a=e;i<a.length;i++){var o=a[i];t(o)?(r=r||[]).push(o):(r&&(n.push(s(r)),r=void 0),n.push(o))}return r&&n.push(s(r)),n}function o(t,r,n){if(void 0===n&&(n=!0),t.length<2)return t;var i=e.findIndex(t,r);if(-1===i)return t;var a=t.slice(0,i),o=t[i],c=e.last(t),u=n&&26===c.kind,l=t.slice(i+1,u?t.length-1:void 0),_=e.compact([a.length?s(a):void 0,o,l.length?s(l):void 0]);return u?_.concat(c):_}function s(t){return e.Debug.assertGreaterThanOrEqual(t.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(t),t[0].pos,e.last(t).end)}function c(e){var t=e&&e.kind;return 19===t||23===t||21===t||276===t}function u(e,t){switch(t.kind){case 326:case 324:case 333:case 331:case 328:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}}(e.SmartSelectionRange||(e.SmartSelectionRange={}))}(ts||(ts={})),function(e){!function(t){var r,n;function i(t,r,n){for(var i=t.getFullStart(),a=t.parent;a;){var o=e.findPrecedingToken(i,r,a,!0);if(o)return e.rangeContainsRange(n,o);a=a.parent}return e.Debug.fail("Could not find preceding token")}function a(t,r){var n=function(t,r){if(29===t.kind||20===t.kind)return{list:p(t.parent,t,r),argumentIndex:0};var n=e.findContainingList(t);return n&&{list:n,argumentIndex:l(n,t)}}(t,r);if(n){var i=n.list,a=n.argumentIndex,o=function(t){var r=t.getChildren(),n=e.countWhere(r,(function(e){return 27!==e.kind}));r.length>0&&27===e.last(r).kind&&n++;return n}(i);return 0!==a&&e.Debug.assertLessThan(a,o),{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(i,r)}}}function o(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var o=i,s=a(t,n);if(!s)return;var c=s.list,u=s.argumentIndex,l=s.argumentCount,d=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:o},argumentsSpan:d,argumentIndex:u,argumentCount:l}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?_(i,0,n):void 0;if(e.isTemplateHead(t)&&205===i.parent.kind){var p=i,f=p.parent;return e.Debug.assert(218===p.kind),_(f,u=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var g=i;f=i.parent.parent;if(e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return _(f,u=function(t,r,n,i){if(e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r))return e.isInsideTemplateLiteral(r,n,i)?0:t+2;return t+1}(g.parent.templateSpans.indexOf(g),t,r,n),n)}if(e.isJsxOpeningLikeElement(i)){var m=i.attributes.pos,y=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(m,y-m),argumentIndex:0,argumentCount:1}}var v=e.getPossibleTypeArgumentsInfo(t,n);if(v){var h=v.called,b=v.nTypeArguments;return{isTypeParameterList:!0,invocation:o={kind:1,called:h},argumentsSpan:d=e.createTextSpanFromBounds(h.getStart(n),t.end),argumentIndex:b,argumentCount:b+1}}}function s(t){return e.isBinaryExpression(t.parent)?s(t.parent):t}function c(t){return e.isBinaryExpression(t.left)?c(t.left)+1:2}function u(t){return"__type"===t.name&&e.firstDefined(t.declarations,(function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0}))||t}function l(e,t){for(var r=0,n=0,i=e.getChildren();n<i.length;n++){var a=i[n];if(a===t)break;27!==a.kind&&r++}return r}function _(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==r&&e.Debug.assertLessThan(r,i),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:d(t,n),argumentIndex:r,argumentCount:i}}function d(t,r){var n=t.template,i=n.getStart(),a=n.getEnd();218===n.kind&&(0===e.last(n.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(r.text,a,!1)));return e.createTextSpan(i,a-i)}function p(t,r,n){var i=t.getChildren(n),a=i.indexOf(r);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function f(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function g(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"}(r||(r={})),t.getSignatureHelpItems=function(t,r,n,l,_){var d=t.getTypeChecker(),p=e.findTokenOnLeftOfPosition(r,n);if(p){var m=!!l&&"characterTyped"===l.kind;if(!m||!e.isInString(r,n,p)&&!e.isInComment(r,n)){var h=!!l&&"invoked"===l.kind,b=function(t,r,n,i,l){for(var _=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",(function(){return"Child: "+e.Debug.formatSyntaxKind(t.kind)+", parent: "+e.Debug.formatSyntaxKind(t.parent.kind)}));var l=function(t,r,n,i){return function(t,r,n,i){var o=function(t,r,n){if(20!==t.kind&&27!==t.kind)return;var i=t.parent;switch(i.kind){case 207:case 165:case 208:case 209:var o=a(t,r);if(!o)return;var u=o.argumentIndex,l=o.argumentCount,_=o.argumentsSpan,d=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return d&&{contextualType:d,argumentIndex:u,argumentCount:l,argumentsSpan:_};case 216:var p=s(i),f=n.getContextualType(p),g=20===t.kind?0:c(i)-1,m=c(p);return f&&{contextualType:f,argumentIndex:g,argumentCount:m,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}(t,n,i);if(!o)return;var l=o.contextualType,_=o.argumentIndex,d=o.argumentCount,p=o.argumentsSpan,f=l.getNonNullableType(),g=f.getCallSignatures();return 1!==g.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(g),node:t,symbol:u(f.symbol)},argumentsSpan:p,argumentIndex:_,argumentCount:d}}(t,0,n,i)||o(t,r,n)}(t,r,n,i);if(l)return{value:l}},d=t;!e.isSourceFile(d)&&(l||!e.isBlock(d));d=d.parent){var p=_(d);if("object"==typeof p)return p.value}return}(p,n,r,d,h);if(b){_.throwIfCancellationRequested();var x=function(t,r,n,a,o){var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!function(t,r,n){if(!e.isCallOrNewExpression(r))return!1;var a=r.getChildren(n);switch(t.kind){case 20:return e.contains(a,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(a,o);case 29:return i(t,n,r.expression);default:return!1}}(a,s.node,n))return;var u=[],l=r.getResolvedSignatureForSignatureHelp(s.node,u,c);return 0===u.length?void 0:{kind:0,candidates:u,resolvedSignature:l};case 1:var _=s.called;if(o&&!i(a,n,e.isIdentifier(_)?_.parent:_))return;if(0!==(u=e.getPossibleGenericSignatures(_,c,r)).length)return{kind:0,candidates:u,resolvedSignature:e.first(u)};var d=r.getSymbolAtLocation(_);return d&&{kind:1,symbol:d};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(b,d,r,p,m);return _.throwIfCancellationRequested(),x?d.runWithCancellationToken(_,(function(e){return 0===x.kind?y(x.candidates,x.resolvedSignature,b,r,e):function(e,t,r,n){var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[v(e,c,n,g(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0}(x.symbol,b,r,e)})):e.isSourceFileJS(r)?function(t,r,n){if(2===t.invocation.kind)return;var i=f(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),(function(r){return e.firstDefined(r.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(n,(function(e){return y(a,a[0],t,r,e,!0)}))}))}))}(b,t,_):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(n||(n={})),t.getArgumentInfoForCompletions=function(e,t,r){var n=o(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var m=70246400;function y(t,r,n,i,a,o){var s,c=n.isTypeParameterList,u=n.argumentCount,l=n.argumentsSpan,_=n.invocation,d=n.argumentIndex,p=g(_),m=2===_.kind?_.symbol:a.getSymbolAtLocation(f(_))||o&&(null===(s=r.declaration)||void 0===s?void 0:s.symbol),y=m?e.symbolToDisplayParts(a,m,o?i:void 0,void 0):e.emptyArray,v=e.map(t,(function(t){return function(t,r,n,i,a,o){var s=(n?b:x)(t,i,a,o);return e.map(s,(function(n){var o=n.isVariadic,s=n.parameters,c=n.prefix,u=n.suffix,l=__spreadArray(__spreadArray([],r),c),_=__spreadArray(__spreadArray([],u),function(t,r,n){return e.mapToDisplayParts((function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)}))}(t,a,i)),d=t.getDocumentationComment(i),p=t.getJsDocTags();return{isVariadic:o,prefixDisplayParts:l,suffixDisplayParts:_,separatorDisplayParts:h,parameters:s,documentation:d,tags:p}}))}(t,y,c,a,p,i)}));0!==d&&e.Debug.assertLessThan(d,u);for(var D=0,S=0,T=0;T<v.length;T++){var C=v[T];if(t[T]===r&&(D=S,C.length>1))for(var E=0,k=0,N=C;k<N.length;k++){var A=N[k];if(A.isVariadic||A.parameters.length>=u){D=S+E;break}E++}S+=C.length}e.Debug.assert(-1!==D);var F={items:e.flatMapToMutable(v,e.identity),applicableSpan:l,selectedItemIndex:D,argumentIndex:d,argumentCount:u},P=F.items[D];if(P.isVariadic){var w=e.findIndex(P.parameters,(function(e){return!!e.isRest}));-1<w&&w<P.parameters.length-1?F.argumentIndex=P.parameters.length:F.argumentIndex=Math.min(F.argumentIndex,P.parameters.length-1)}return F}function v(t,r,n,i,a){var o=e.symbolToDisplayParts(n,t),s=e.createPrinter({removeComments:!0}),c=r.map((function(e){return D(e,n,i,a,s)})),u=t.getDocumentationComment(n),l=t.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:__spreadArray(__spreadArray([],o),[e.punctuationPart(29)]),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:h,parameters:c,documentation:u,tags:l}}var h=[e.punctuationPart(27),e.spacePart()];function b(t,r,n,i){var a=(t.target||t).typeParameters,o=e.createPrinter({removeComments:!0}),s=(a||e.emptyArray).map((function(e){return D(e,r,n,i,o)})),c=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,n,m)]:[];return r.getExpandedParameters(t).map((function(t){var a=e.factory.createNodeArray(__spreadArray(__spreadArray([],c),e.map(t,(function(e){return r.symbolToParameterDeclaration(e,n,m)})))),u=e.mapToDisplayParts((function(e){o.writeList(2576,a,i,e)}));return{isVariadic:!1,parameters:s,prefix:[e.punctuationPart(29)],suffix:__spreadArray([e.punctuationPart(31)],u)}}))}function x(t,r,n,i){var a=r.hasEffectiveRestParameter(t),o=e.createPrinter({removeComments:!0}),s=e.mapToDisplayParts((function(a){if(t.typeParameters&&t.typeParameters.length){var s=e.factory.createNodeArray(t.typeParameters.map((function(e){return r.typeParameterToDeclaration(e,n,m)})));o.writeList(53776,s,i,a)}})),c=r.getExpandedParameters(t);return c.map((function(t){return{isVariadic:a&&(1===c.length||!!(32768&t[t.length-1].checkFlags)),parameters:t.map((function(t){return function(t,r,n,i,a){var o=e.mapToDisplayParts((function(e){var o=r.symbolToParameterDeclaration(t,n,m);a.writeNode(4,o,i,e)})),s=r.isOptionalParameter(t.valueDeclaration),c=!!(32768&t.checkFlags);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:o,isOptional:s,isRest:c}}(t,r,n,i,o)})),prefix:__spreadArray(__spreadArray([],s),[e.punctuationPart(20)]),suffix:[e.punctuationPart(21)]}}))}function D(t,r,n,i,a){var o=e.mapToDisplayParts((function(e){var o=r.typeParameterToDeclaration(t,n,m);a.writeNode(4,o,i,e)}));return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:o,isOptional:!1,isRest:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(ts||(ts={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(r){if(!e.isDeclarationFileName(r.fileName))return;if(!c(r.fileName))return;var n=s(r.fileName).getSourcePosition(r);return n&&n!==r?t(n)||n:void 0},tryGetGeneratedPosition:function(i){if(e.isDeclarationFileName(i.fileName))return;var a=c(i.fileName);if(!a)return;var o=t.getProgram();if(o.isSourceOfProjectReferenceRedirect(a.fileName))return;var u=o.getCompilerOptions(),l=e.outFile(u),_=l?e.removeFileExtension(l)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0===_)return;var d=s(_,i.fileName).getGeneratedPosition(i);return d===i?void 0:d},toLineColumnOffset:function(e,t){return l(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),a.clear()}};function o(t){return e.toPath(t,n,r)}function s(n,i){var s,c=o(n),u=a.get(c);if(u)return u;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(n,i);else if(t.readFile){var _=l(n);s=_&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:r,log:function(e){return t.log(e)}},n,e.getLineInfo(_.text,e.getLineStarts(_)),(function(e){return!t.fileExists||t.fileExists(e)?t.readFile(e):void 0}))}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var r=t.getProgram();if(r){var n=o(e),i=r.getSourceFileByPath(n);return i&&i.resolvedPath===n?i:void 0}}function u(r){var n=o(r),a=i.get(n);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(n))){var s=t.readFile(n),c=!!s&&function(t,r){return{text:t,lineMap:r,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}function l(e){return t.getSourceFileLike?t.getSourceFileLike(e):c(e)||u(e)}},e.getDocumentPositionMapper=function(n,i,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1]){var u=c[1];return r(n,e.base64decode(e.sys,u),i)}s=void 0}}var l=[];s&&l.push(s),l.push(i+".map");for(var _=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),d=0,p=l;d<p.length;d++){var f=p[d],g=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(i)),m=o(g,_);if(e.isString(m))return r(n,m,g);if(void 0!==m)return m||void 0}}}(ts||(ts={})),function(e){var t=new e.Map;function r(t){return e.isPropertyAccessExpression(t)?r(t.expression):t}function n(t){switch(t.kind){case 261:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&r.namedBindings&&263===r.namedBindings.kind&&e.isStringLiteral(n)?r.namedBindings.name:void 0;case 260:return t.name;default:return}}function i(t,r){return e.isReturnStatement(t)&&!!t.expression&&a(t.expression,r)}function a(t,r){if(!o(t)||!t.arguments.every((function(e){return s(e,r)})))return!1;for(var n=t.expression;o(n)||e.isPropertyAccessExpression(n);){if(e.isCallExpression(n)&&!n.arguments.every((function(e){return s(e,r)})))return!1;n=n.expression}return!0}function o(t){return e.isCallExpression(t)&&(e.hasPropertyAccessExpressionWithName(t,"then")&&function(t){return!(t.arguments.length>2)&&(t.arguments.length<2||e.some(t.arguments,(function(t){return 103===t.kind||e.isIdentifier(t)&&"undefined"===t.text})))}(t)||e.hasPropertyAccessExpressionWithName(t,"catch"))}function s(r,n){switch(r.kind){case 251:case 208:case 209:t.set(c(r),!0);case 103:return!0;case 78:case 201:var i=n.getSymbolAtLocation(r);return!!i&&(n.isUndefinedSymbol(i)||e.some(e.skipAlias(i,n).declarations,(function(t){return e.isFunctionLike(t)||e.hasInitializer(t)&&!!t.initializer&&e.isFunctionLike(t.initializer)})));default:return!1}}function c(e){return e.pos.toString()+":"+e.end.toString()}e.computeSuggestionDiagnostics=function(a,o,s){o.getSemanticDiagnostics(a,s);var u,l=[],_=o.getTypeChecker();a.commonJsModuleIndicator&&(e.programContainsEs6Modules(o)||e.compilerOptionsIndicateEs6Modules(o.getCompilerOptions()))&&function(t){return t.statements.some((function(t){switch(t.kind){case 232:return t.declarationList.declarations.some((function(t){return!!t.initializer&&e.isRequireCall(r(t.initializer),!0)}));case 233:var n=t.expression;if(!e.isBinaryExpression(n))return e.isRequireCall(n,!0);var i=e.getAssignmentDeclarationKind(n);return 1===i||2===i;default:return!1}}))}(a)&&l.push(e.createDiagnosticForNode((u=a.commonJsModuleIndicator,e.isBinaryExpression(u)?u.left:u),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var d=e.isSourceFileJS(a);if(t.clear(),function r(n){if(d)(function(t,r){var n,i,a,o;if(208===t.kind){if(e.isVariableDeclaration(t.parent)&&(null===(n=t.symbol.members)||void 0===n?void 0:n.size))return!0;var s=r.getSymbolOfExpando(t,!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))}if(251===t.kind)return!!(null===(o=t.symbol.members)||void 0===o?void 0:o.size);return!1})(n,_)&&l.push(e.createDiagnosticForNode(e.isVariableDeclaration(n.parent)?n.parent.name:n,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(n)&&n.parent===a&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){var o=n.declarationList.declarations[0].initializer;o&&e.isRequireCall(o,!0)&&l.push(e.createDiagnosticForNode(o,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(n)&&l.push(e.createDiagnosticForNode(n.name||n,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(n)&&function(r,n,a){(function(t,r){return!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&function(t,r){return!!e.forEachReturnStatement(t,(function(e){return i(e,r)}))}(t.body,r)&&function(e,t){var r=t.getTypeAtLocation(e),n=t.getSignaturesOfType(r,0),i=n.length?t.getReturnTypeOfSignature(n[0]):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}(t,r)})(r,n)&&!t.has(c(r))&&a.push(e.createDiagnosticForNode(!r.name&&e.isVariableDeclaration(r.parent)&&e.isIdentifier(r.parent.name)?r.parent.name:r,e.Diagnostics.This_may_be_converted_to_an_async_function))}(n,_,l);n.forEachChild(r)}(a),e.getAllowSyntheticDefaultImports(o.getCompilerOptions()))for(var p=0,f=a.imports;p<f.length;p++){var g=f[p],m=n(e.importFromModuleSpecifier(g));if(m){var y=e.getResolvedModule(a,g.text),v=y&&o.getSourceFile(y.resolvedFileName);v&&v.externalModuleIndicator&&e.isExportAssignment(v.externalModuleIndicator)&&v.externalModuleIndicator.isExportEquals&&l.push(e.createDiagnosticForNode(m,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(l,a.bindSuggestionDiagnostics),e.addRange(l,o.getSuggestionDiagnostics(a,s)),l.sort((function(e,t){return e.start-t.start}))},e.isReturnStatementWithFixablePromiseHandler=i,e.isFixablePromiseHandler=a}(ts||(ts={})),function(e){!function(t){var r=70246400;function n(t,r,n){var a=i(t,r,n);if(""!==a)return a;var o=e.getCombinedLocalAndExportSymbolFlags(r);return 32&o?e.getDeclarationOfKind(r,221)?"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(t,r,n){var i=t.getRootSymbols(r);if(1===i.length&&8192&e.first(i).flags&&0!==t.getTypeOfSymbolAtLocation(r,n).getNonNullableType().getCallSignatures().length)return"method";if(t.isUndefinedSymbol(r))return"var";if(t.isArgumentsSymbol(r))return"local var";if(107===n.kind&&e.isExpression(n))return"parameter";var a=e.getCombinedLocalAndExportSymbolFlags(r);if(3&a)return e.isFirstDeclarationOfSymbolParameter(r)?"parameter":r.valueDeclaration&&e.isVarConst(r.valueDeclaration)?"const":e.forEach(r.declarations,e.isLet)?"let":s(r)?"local var":"var";if(16&a)return s(r)?"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&r.checkFlags){var o=e.forEach(t.getRootSymbols(r),(function(e){if(98311&e.getFlags())return"property"}));return o||(t.getTypeOfSymbolAtLocation(r,n).getCallSignatures().length?"method":"property")}switch(n.parent&&n.parent.kind){case 275:case 273:case 274:return 78===n.kind?"property":"JSX attribute";case 280:return"JSX attribute";default:return"property"}}return""}function a(t){return!!(8192&e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t))}function o(t){if(t.declarations&&t.declarations.length){var r=t.declarations,n=r[0],i=r.slice(1),o=e.length(i)&&a(n)&&e.some(i,(function(e){return!a(e)}))?8192:0,s=e.getNodeModifiers(n,o);if(s)return s.split(",")}return[]}function s(t){return!t.parent&&e.forEach(t.declarations,(function(t){if(208===t.kind)return!0;if(249!==t.kind&&251!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(297===r.kind||257===r.kind)return!1;return!0}))}t.getSymbolKind=n,t.getSymbolModifiers=function(t,r){if(!r)return"";var n=new e.Set(o(r));if(2097152&r.flags){var i=t.getAliasedSymbol(r);i!==r&&e.forEach(o(i),(function(e){n.add(e)}))}return 16777216&r.flags&&n.add("optional"),n.size>0?e.arrayFrom(n.values()).join(","):""},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(a,o,s,c,u,l,_){void 0===l&&(l=e.getMeaningFromLocation(u));var d,p,f,g,m=[],y=[],v=[],h=e.getCombinedLocalAndExportSymbolFlags(o),b=1&l?i(a,o,u):"",x=!1,D=107===u.kind&&e.isInExpressionContext(u),S=!1;if(107===u.kind&&!D)return{displayParts:[e.keywordPart(107)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==b||32&h||2097152&h){"getter"!==b&&"setter"!==b||(b="property");var T=void 0;if(d=D?a.getTypeAtLocation(u):a.getTypeOfSymbolAtLocation(o.exportSymbol||o,u),u.parent&&201===u.parent.kind){var C=u.parent.name;(C===u||C&&0===C.getFullWidth())&&(u=u.parent)}var E=void 0;if(e.isCallOrNewExpression(u)?E=u:(e.isCallExpressionTarget(u)||e.isNewExpressionTarget(u)||u.parent&&(e.isJsxOpeningLikeElement(u.parent)||e.isTaggedTemplateExpression(u.parent))&&e.isFunctionLike(o.valueDeclaration))&&(E=u.parent),E){T=a.getResolvedSignature(E);var k=204===E.kind||e.isCallExpression(E)&&105===E.expression.kind,N=k?d.getConstructSignatures():d.getCallSignatures();if(e.contains(N,T.target)||e.contains(N,T)||(T=N.length?N[0]:void 0),T){switch(k&&32&h?(b="constructor",Q(d.symbol,b)):2097152&h?(Y(b="alias"),m.push(e.spacePart()),k&&(4&T.flags&&(m.push(e.keywordPart(125)),m.push(e.spacePart())),m.push(e.keywordPart(102)),m.push(e.spacePart())),X(o)):Q(o,b),b){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":m.push(e.punctuationPart(58)),m.push(e.spacePart()),16&e.getObjectFlags(d)||!d.symbol||(e.addRange(m,e.symbolToDisplayParts(a,d.symbol,c,void 0,5)),m.push(e.lineBreakPart())),k&&(4&T.flags&&(m.push(e.keywordPart(125)),m.push(e.spacePart())),m.push(e.keywordPart(102)),m.push(e.spacePart())),Z(T,N,262144);break;default:Z(T,N)}x=!0,S=N.length>1}}else if(e.isNameOfFunctionDeclaration(u)&&!(98304&h)||132===u.kind&&166===u.parent.kind){var A=u.parent;if(o.declarations&&e.find(o.declarations,(function(e){return e===(132===u.kind?A.parent:A)}))){N=166===A.kind?d.getNonNullableType().getConstructSignatures():d.getNonNullableType().getCallSignatures();T=a.isImplementationOfOverload(A)?N[0]:a.getSignatureFromDeclaration(A),166===A.kind?(b="constructor",Q(d.symbol,b)):Q(169!==A.kind||2048&d.symbol.flags||4096&d.symbol.flags?o:d.symbol,b),Z(T,N),x=!0,S=N.length>1}}}if(32&h&&!x&&!D&&(H(),e.getDeclarationOfKind(o,221)?Y("local class"):m.push(e.keywordPart(83)),m.push(e.spacePart()),X(o),$(o,s)),64&h&&2&l&&(W(),m.push(e.keywordPart(117)),m.push(e.spacePart()),X(o),$(o,s)),524288&h&&2&l&&(W(),m.push(e.keywordPart(149)),m.push(e.spacePart()),X(o),$(o,s),m.push(e.spacePart()),m.push(e.operatorPart(62)),m.push(e.spacePart()),e.addRange(m,e.typeToDisplayParts(a,a.getDeclaredTypeOfSymbol(o),c,8388608))),384&h&&(W(),e.some(o.declarations,(function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)}))&&(m.push(e.keywordPart(84)),m.push(e.spacePart())),m.push(e.keywordPart(91)),m.push(e.spacePart()),X(o)),1536&h&&!D){W();var F=(V=e.getDeclarationOfKind(o,256))&&V.name&&78===V.name.kind;m.push(e.keywordPart(F?140:139)),m.push(e.spacePart()),X(o)}if(262144&h&&2&l)if(W(),m.push(e.punctuationPart(20)),m.push(e.textPart("type parameter")),m.push(e.punctuationPart(21)),m.push(e.spacePart()),X(o),o.parent)G(),X(o.parent,c),$(o.parent,c);else{var P=e.getDeclarationOfKind(o,159);if(void 0===P)return e.Debug.fail();if(V=P.parent)if(e.isFunctionLikeKind(V.kind)){G();T=a.getSignatureFromDeclaration(V);170===V.kind?(m.push(e.keywordPart(102)),m.push(e.spacePart())):169!==V.kind&&V.name&&X(V.symbol),e.addRange(m,e.signatureToDisplayParts(a,T,s,32))}else 254===V.kind&&(G(),m.push(e.keywordPart(149)),m.push(e.spacePart()),X(V.symbol),$(V.symbol,s))}if(8&h&&(b="enum member",Q(o,"enum member"),291===(V=o.declarations[0]).kind)){var w=a.getConstantValue(V);void 0!==w&&(m.push(e.spacePart()),m.push(e.operatorPart(62)),m.push(e.spacePart()),m.push(e.displayPart(e.getTextOfConstantValue(w),"number"==typeof w?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(W(),!x){var I=a.getAliasedSymbol(o);if(I!==o&&I.declarations&&I.declarations.length>0){var O=I.declarations[0],M=e.getNameOfDeclaration(O);if(M){var L=e.isModuleWithStringLiteralName(O)&&e.hasSyntacticModifier(O,2),R="default"!==o.name&&!L,B=t(a,I,e.getSourceFileOfNode(O),O,M,l,R?o:I);m.push.apply(m,B.displayParts),m.push(e.lineBreakPart()),f=B.documentation,g=B.tags}else f=I.getContextualDocumentationComment(O,a),g=I.getJsDocTags()}}switch(o.declarations[0].kind){case 259:m.push(e.keywordPart(92)),m.push(e.spacePart()),m.push(e.keywordPart(140));break;case 266:m.push(e.keywordPart(92)),m.push(e.spacePart()),m.push(e.keywordPart(o.declarations[0].isExportEquals?62:87));break;case 270:m.push(e.keywordPart(92));break;default:m.push(e.keywordPart(99))}m.push(e.spacePart()),X(o),e.forEach(o.declarations,(function(t){if(260===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))m.push(e.spacePart()),m.push(e.operatorPart(62)),m.push(e.spacePart()),m.push(e.keywordPart(143)),m.push(e.punctuationPart(20)),m.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),m.push(e.punctuationPart(21));else{var n=a.getSymbolAtLocation(r.moduleReference);n&&(m.push(e.spacePart()),m.push(e.operatorPart(62)),m.push(e.spacePart()),X(n,c))}return!0}}))}if(!x)if(""!==b){if(d)if(D?(W(),m.push(e.keywordPart(107))):Q(o,b),"property"===b||"JSX attribute"===b||3&h||"local var"===b||D){if(m.push(e.punctuationPart(58)),m.push(e.spacePart()),d.symbol&&262144&d.symbol.flags){var j=e.mapToDisplayParts((function(t){var n=a.typeParameterToDeclaration(d,c,r);q().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(m,j)}else e.addRange(m,e.typeToDisplayParts(a,d,c));if(o.target&&o.target.tupleLabelDeclaration){var J=o.target.tupleLabelDeclaration;e.Debug.assertNode(J.name,e.isIdentifier),m.push(e.spacePart()),m.push(e.punctuationPart(20)),m.push(e.textPart(e.idText(J.name))),m.push(e.punctuationPart(21))}}else if(16&h||8192&h||16384&h||131072&h||98304&h||"method"===b){(N=d.getNonNullableType().getCallSignatures()).length&&(Z(N[0],N),S=N.length>1)}}else b=n(a,o,u);if(0!==y.length||S||(y=o.getContextualDocumentationComment(c,a)),0===y.length&&4&h&&o.parent&&e.forEach(o.parent.declarations,(function(e){return 297===e.kind})))for(var z=0,U=o.declarations;z<U.length;z++){var V;if((V=U[z]).parent&&216===V.parent.kind){var K=a.getSymbolAtLocation(V.parent.right);if(K&&(y=K.getDocumentationComment(a),v=K.getJsDocTags(),y.length>0))break}}return 0!==v.length||S||(v=o.getJsDocTags()),0===y.length&&f&&(y=f),0===v.length&&g&&(v=g),{displayParts:m,documentation:y,symbolKind:b,tags:0===v.length?void 0:v};function q(){return p||(p=e.createPrinter({removeComments:!0})),p}function W(){m.length&&m.push(e.lineBreakPart()),H()}function H(){_&&(Y("alias"),m.push(e.spacePart()))}function G(){m.push(e.spacePart()),m.push(e.keywordPart(100)),m.push(e.spacePart())}function X(t,r){_&&t===o&&(t=_);var n=e.symbolToDisplayParts(a,t,r||s,void 0,7);e.addRange(m,n),16777216&o.flags&&m.push(e.punctuationPart(57))}function Q(t,r){W(),r&&(Y(r),t&&!e.some(t.declarations,(function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name}))&&(m.push(e.spacePart()),X(t)))}function Y(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void m.push(e.textOrKeywordPart(t));default:return m.push(e.punctuationPart(20)),m.push(e.textOrKeywordPart(t)),void m.push(e.punctuationPart(21))}}function Z(t,r,n){void 0===n&&(n=0),e.addRange(m,e.signatureToDisplayParts(a,t,c,32|n)),r.length>1&&(m.push(e.spacePart()),m.push(e.punctuationPart(20)),m.push(e.operatorPart(39)),m.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),m.push(e.spacePart()),m.push(e.textPart(2===r.length?"overload":"overloads")),m.push(e.punctuationPart(21))),y=t.getDocumentationComment(a),v=t.getJsDocTags(),r.length>1&&0===y.length&&0===v.length&&(y=r[0].getDocumentationComment(a),v=r[0].getJsDocTags())}function $(t,n){var i=e.mapToDisplayParts((function(i){var o=a.symbolToTypeParameterDeclarations(t,n,r);q().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(m,i)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(ts||(ts={})),function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.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,u=e.transpileOptionValueCompilerOptions;c<u.length;c++){var l=u[c];a[l.name]=l.transpileOptionValue}a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0;var _=r.fileName||(r.compilerOptions&&r.compilerOptions.jsx?"module.tsx":"module.ts"),d=e.createSourceFile(_,t,a.target);r.moduleName&&(d.moduleName=r.moduleName),r.renamedDependencies&&(d.renamedDependencies=new e.Map(e.getEntries(r.renamedDependencies)));var p,f,g=e.getNewLineCharacter(a),m={getSourceFile:function(t){return t===e.normalizePath(_)?d:void 0},writeFile:function(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(f,void 0,"Unexpected multiple source map outputs, file:",t),f=r):(e.Debug.assertEqual(p,void 0,"Unexpected multiple outputs, file:",t),p=r)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return g},fileExists:function(e){return e===_},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},y=e.createProgram([_],a,m);return r.reportDiagnostics&&(e.addRange(i,y.getSyntacticDiagnostics(d)),e.addRange(i,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,r.transformers),void 0===p?e.Debug.fail("Output generation failed"):{outputText:p,diagnostics:i,sourceMapText:f}}var r;function n(t,n){r=r||e.filter(e.optionDeclarations,(function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,(function(e){return"number"!=typeof e}))})),t=e.cloneCompilerOptions(t);for(var i=function(r){if(!e.hasProperty(t,r.name))return"continue";var i=t[r.name];e.isString(i)?t[r.name]=e.parseCustomTypeOption(r,i,n):e.forEachEntry(r.type,(function(e){return e===i}))||n.push(e.createCompilerDiagnosticForInvalidCustomType(r))},a=0,o=r;a<o.length;a++){i(o[a])}return t}e.transpileModule=t,e.transpile=function(r,n,i,a,o){var s=t(r,{compilerOptions:n,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText},e.fixupCompilerOptions=n}(ts||(ts={})),function(e){!function(t){!function(e){e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"}(t.FormattingRequestKind||(t.FormattingRequestKind={}));var r=function(){function t(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}return t.prototype.updateContext=function(t,r,n,i,a){this.currentTokenSpan=e.Debug.checkDefined(t),this.currentTokenParent=e.Debug.checkDefined(r),this.nextTokenSpan=e.Debug.checkDefined(n),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},t.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},t.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},t.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine},t.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},t.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},t.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},t.prototype.BlockIsOnOneLine=function(t){var r=e.findChildOfKind(t,18,this.sourceFile),n=e.findChildOfKind(t,19,this.sourceFile);return!(!r||!n)&&this.sourceFile.getLineAndCharacterOfPosition(r.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line},t}();t.FormattingContext=r}(e.formatting||(e.formatting={}))}(ts||(ts={})),function(e){!function(t){var r,n=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"}(r||(r={})),t.getFormattingScanner=function(r,a,o,s,c){var u=1===a?i:n;u.setText(r),u.setTextPos(o);var l,_,d,p,f,g=!0,m=c({advance:function(){f=void 0,u.getStartPos()!==o?g=!!_&&4===e.last(_).kind:u.scan();l=void 0,_=void 0;var t=u.getStartPos();for(;t<s;){var r=u.getToken();if(!e.isTrivia(r))break;u.scan();var n={pos:t,end:u.getStartPos(),kind:r};t=u.getStartPos(),l=e.append(l,n)}d=u.getStartPos()},readTokenInfo:function(r){e.Debug.assert(y());var n=function(e){switch(e.kind){case 33:case 70:case 71:case 49:case 48:return!0}return!1}(r)?1:(a=r,13===a.kind?2:function(e){return 16===e.kind||17===e.kind}(r)?3:function(t){if(t.parent)switch(t.parent.kind){case 280:case 275:case 276:case 274:return e.isKeyword(t.kind)||78===t.kind}return!1}(r)?4:function(t){if(e.isJsxText(t)){var r=e.findAncestor(t.parent,(function(t){return e.isJsxElement(t)}));return!!r&&!e.isParenthesizedExpression(r.parent)}return!1}(r)?5:(i=r,i.parent&&e.isJsxAttribute(i.parent)&&i.parent.initializer===i?6:0));var i;var a;if(f&&n===p)return h(f,r);u.getStartPos()!==d&&(e.Debug.assert(void 0!==f),u.setTextPos(d),u.scan());var o=function(t,r){var n=u.getToken();switch(p=0,r){case 1:if(31===n){p=1;var i=u.reScanGreaterToken();return e.Debug.assert(t.kind===i),i}break;case 2:if(43===(a=n)||67===a){p=2;i=u.reScanSlashToken();return e.Debug.assert(t.kind===i),i}break;case 3:if(19===n)return p=3,u.reScanTemplateToken(!1);break;case 4:return p=4,u.scanJsxIdentifier();case 5:return p=5,u.reScanJsxToken();case 6:return p=6,u.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(r)}var a;return n}(r,n),c=t.createTextRangeWithKind(u.getStartPos(),u.getTextPos(),o);_&&(_=void 0);for(;u.getStartPos()<s&&(o=u.scan(),e.isTrivia(o));){var g=t.createTextRangeWithKind(u.getStartPos(),u.getTextPos(),o);if(_||(_=[]),_.push(g),4===o){u.scan();break}}return h(f={leadingTrivia:l,trailingTrivia:_,token:c},r)},readEOFTokenRange:function(){return e.Debug.assert(v()),t.createTextRangeWithKind(u.getStartPos(),u.getTextPos(),1)},isOnToken:y,isOnEOF:v,getCurrentLeadingTrivia:function(){return l},lastTrailingTriviaWasNewLine:function(){return g},skipToEndOf:function(e){u.setTextPos(e.end),d=u.getStartPos(),p=void 0,f=void 0,g=!1,l=void 0,_=void 0},skipToStartOf:function(e){u.setTextPos(e.pos),d=u.getStartPos(),p=void 0,f=void 0,g=!1,l=void 0,_=void 0}});return f=void 0,u.setText(void 0),m;function y(){var t=f?f.token.kind:u.getToken();return(f?f.token.pos:u.getStartPos())<s&&1!==t&&!e.isTrivia(t)}function v(){return 1===(f?f.token.kind:u.getToken())}function h(t,r){return e.isToken(r)&&t.token.kind!==r.kind&&(t.token.kind=r.kind),t}}}(e.formatting||(e.formatting={}))}(ts||(ts={})),function(e){!function(t){t.anyContext=e.emptyArray,function(e){e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction"}(t.RuleAction||(t.RuleAction={})),function(e){e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines"}(t.RuleFlags||(t.RuleFlags={}))}(e.formatting||(e.formatting={}))}(ts||(ts={})),function(e){!function(t){function r(e,t,r,n,a,o){return void 0===o&&(o=0),{leftTokenRange:i(t),rightTokenRange:i(r),rule:{debugName:e,context:n,action:a,flags:o}}}function n(e){return{tokens:e,isSpecific:!0}}function i(t){return"number"==typeof t?n([t]):e.isArray(t)?n(t):t}function a(t,r,i){void 0===i&&(i=[]);for(var a=[],o=t;o<=r;o++)e.contains(i,o)||a.push(o);return n(a)}function o(e,t){return function(r){return r.options&&r.options[e]===t}}function s(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!!t.options[e]}}function c(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!t.options[e]}}function u(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]}}function l(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]||t.TokensAreOnSameLine()}}function _(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!!t.options[e]}}function d(e){return 237===e.contextNode.kind}function p(e){return!d(e)}function f(e){switch(e.contextNode.kind){case 216:return 27!==e.contextNode.operatorToken.kind;case 217:case 184:case 224:case 270:case 265:case 172:case 182:case 183:return!0;case 198:case 254:case 260:case 249:case 160:case 291:case 163:case 162:return 62===e.currentTokenSpan.kind||62===e.nextTokenSpan.kind;case 238:case 159:return 100===e.currentTokenSpan.kind||100===e.nextTokenSpan.kind||62===e.currentTokenSpan.kind||62===e.nextTokenSpan.kind;case 239:return 156===e.currentTokenSpan.kind||156===e.nextTokenSpan.kind}return!1}function g(e){return!f(e)}function m(e){return!y(e)}function y(t){var r=t.contextNode.kind;return 163===r||162===r||160===r||249===r||e.isFunctionLikeKind(r)}function v(e){return 217===e.contextNode.kind||184===e.contextNode.kind}function h(e){return e.TokensAreOnSameLine()||T(e)}function b(e){return 196===e.contextNode.kind||190===e.contextNode.kind||function(e){return S(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function x(e){return T(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function D(e){return S(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function S(e){return C(e.contextNode)}function T(e){return C(e.nextTokenParent)}function C(e){if(F(e))return!0;switch(e.kind){case 230:case 258:case 200:case 257:return!0}return!1}function E(e){switch(e.contextNode.kind){case 251:case 165:case 164:case 167:case 168:case 169:case 208:case 166:case 209:case 253:return!0}return!1}function k(e){return!E(e)}function N(e){return 251===e.contextNode.kind||208===e.contextNode.kind}function A(e){return F(e.contextNode)}function F(e){switch(e.kind){case 252:case 221:case 253:case 255:case 177:case 256:case 267:case 268:case 261:case 264:return!0}return!1}function P(e){switch(e.currentTokenParent.kind){case 252:case 256:case 255:case 287:case 257:case 244:return!0;case 230:var t=e.currentTokenParent.parent;if(!t||209!==t.kind&&208!==t.kind)return!0}return!1}function w(e){switch(e.contextNode.kind){case 234:case 244:case 237:case 238:case 239:case 236:case 247:case 235:case 243:case 287:return!0;default:return!1}}function I(e){return 200===e.contextNode.kind}function O(e){return function(e){return 203===e.contextNode.kind}(e)||function(e){return 204===e.contextNode.kind}(e)}function M(e){return 27!==e.currentTokenSpan.kind}function L(e){return 23!==e.nextTokenSpan.kind}function R(e){return 21!==e.nextTokenSpan.kind}function B(e){return 209===e.contextNode.kind}function j(e){return 195===e.contextNode.kind}function J(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function z(e){return 11!==e.contextNode.kind}function U(e){return 273!==e.contextNode.kind&&277!==e.contextNode.kind}function V(e){return 283===e.contextNode.kind||282===e.contextNode.kind}function K(e){return 280===e.nextTokenParent.kind}function q(e){return 280===e.contextNode.kind}function W(e){return 274===e.contextNode.kind}function H(e){return!E(e)&&!T(e)}function G(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&X(e.currentTokenParent)&&!X(e.nextTokenParent)}function X(t){for(;e.isExpressionNode(t);)t=t.parent;return 161===t.kind}function Q(e){return 250===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Y(e){return 2!==e.formattingRequestKind}function Z(e){return 256===e.contextNode.kind}function $(e){return 177===e.contextNode.kind}function ee(e){return 170===e.contextNode.kind}function te(e,t){if(29!==e.kind&&31!==e.kind)return!1;switch(t.kind){case 173:case 206:case 254:case 252:case 221:case 253:case 251:case 208:case 209:case 165:case 164:case 169:case 170:case 203:case 204:case 223:return!0;default:return!1}}function re(e){return te(e.currentTokenSpan,e.currentTokenParent)||te(e.nextTokenSpan,e.nextTokenParent)}function ne(e){return 206===e.contextNode.kind}function ie(e){return 113===e.currentTokenSpan.kind&&212===e.currentTokenParent.kind}function ae(e){return 219===e.contextNode.kind&&void 0!==e.contextNode.expression}function oe(e){return 225===e.contextNode.kind}function se(e){return!function(e){switch(e.contextNode.kind){case 234:case 237:case 238:case 239:case 235:case 236:return!0;default:return!1}}(e)}function ce(t){var r=t.nextTokenSpan.kind,n=t.nextTokenSpan.pos;if(e.isTrivia(r)){var i=t.nextTokenParent===t.currentTokenParent?e.findNextToken(t.currentTokenParent,e.findAncestor(t.currentTokenParent,(function(e){return!e.parent})),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!i)return!0;r=i.kind,n=i.getStart(t.sourceFile)}return t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line===t.sourceFile.getLineAndCharacterOfPosition(n).line?19===r||1===r:229!==r&&26!==r&&(253===t.contextNode.kind||254===t.contextNode.kind?!e.isPropertySignature(t.currentTokenParent)||!!t.currentTokenParent.type||20!==r:e.isPropertyDeclaration(t.currentTokenParent)?!t.currentTokenParent.initializer:237!==t.currentTokenParent.kind&&231!==t.currentTokenParent.kind&&229!==t.currentTokenParent.kind&&22!==r&&20!==r&&39!==r&&40!==r&&43!==r&&13!==r&&27!==r&&218!==r&&15!==r&&14!==r&&24!==r)}function ue(t){return e.positionIsASICandidate(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}t.getAllRules=function(){for(var i=[],S=0;S<=156;S++)1!==S&&i.push(S);function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:i.filter((function(t){return!e.some((function(e){return e===t}))})),isSpecific:!1}}var F={tokens:i,isSpecific:!1},X=n(__spreadArray(__spreadArray([],i),[3])),te=n(__spreadArray(__spreadArray([],i),[1])),le=a(80,156),_e=a(29,77),de=[100,101,156,126,137],pe=__spreadArray([78],e.typeKeywords),fe=X,ge=n([78,3,83,92,99]),me=n([21,3,89,110,95,90]),ye=[r("IgnoreBeforeComment",F,[2,3],t.anyContext,1),r("IgnoreAfterLineComment",2,F,t.anyContext,1),r("NotSpaceBeforeColon",F,58,[J,g,m],16),r("SpaceAfterColon",58,F,[J,g],4),r("NoSpaceBeforeQuestionMark",F,57,[J,g,m],16),r("SpaceAfterQuestionMarkInConditionalOperator",57,F,[J,v],4),r("NoSpaceAfterQuestionMark",57,F,[J],16),r("NoSpaceBeforeDot",F,[24,28],[J],16),r("NoSpaceAfterDot",[24,28],F,[J],16),r("NoSpaceBetweenImportParenInImportType",99,20,[J,j],16),r("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,78,20,22,18,107,102],[J,g],16),r("NoSpaceAfterUnaryPreincrementOperator",45,[78,20,107,102],[J],16),r("NoSpaceAfterUnaryPredecrementOperator",46,[78,20,107,102],[J],16),r("NoSpaceBeforeUnaryPostincrementOperator",[78,21,23,102],45,[J,se],16),r("NoSpaceBeforeUnaryPostdecrementOperator",[78,21,23,102],46,[J,se],16),r("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[J,f],4),r("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[J,f],4),r("SpaceAfterAddWhenFollowedByPreincrement",39,45,[J,f],4),r("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[J,f],4),r("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[J,f],4),r("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[J,f],4),r("NoSpaceAfterCloseBrace",19,[27,26],[J],16),r("NewLineBeforeCloseBraceInBlockContext",X,19,[D],8),r("SpaceAfterCloseBrace",19,C(21),[J,P],4),r("SpaceBetweenCloseBraceAndElse",19,90,[J],4),r("SpaceBetweenCloseBraceAndWhile",19,114,[J],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[J,I],16),r("SpaceAfterConditionalClosingParen",21,22,[w],4),r("NoSpaceBetweenFunctionKeywordAndStar",97,41,[N],16),r("SpaceAfterStarInGeneratorDeclaration",41,78,[N],4),r("SpaceAfterFunctionInFuncDecl",97,F,[E],4),r("NewLineAfterOpenBraceInBlockContext",18,F,[D],8),r("SpaceAfterGetSetInMember",[134,146],78,[E],4),r("NoSpaceBetweenYieldKeywordAndStar",124,41,[J,ae],16),r("SpaceBetweenYieldOrYieldStarAndOperand",[124,41],F,[J,ae],4),r("NoSpaceBetweenReturnAndSemicolon",104,26,[J],16),r("SpaceAfterCertainKeywords",[112,108,102,88,104,111,130],F,[J],4),r("SpaceAfterLetConstInVariableDeclaration",[118,84],F,[J,Q],4),r("NoSpaceBeforeOpenParenInFuncCall",F,20,[J,O,M],16),r("SpaceBeforeBinaryKeywordOperator",F,de,[J,f],4),r("SpaceAfterBinaryKeywordOperator",de,F,[J,f],4),r("SpaceAfterVoidOperator",113,F,[J,ie],4),r("SpaceBetweenAsyncAndOpenParen",129,20,[B,J],4),r("SpaceBetweenAsyncAndFunctionKeyword",129,[97,78],[J],4),r("NoSpaceBetweenTagAndTemplateString",[78,21],[14,15],[J],16),r("SpaceBeforeJsxAttribute",F,78,[K,J],4),r("SpaceBeforeSlashInJsxOpeningElement",F,43,[W,J],4),r("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[W,J],16),r("NoSpaceBeforeEqualInJsxAttribute",F,62,[q,J],16),r("NoSpaceAfterEqualInJsxAttribute",62,F,[q,J],16),r("NoSpaceAfterModuleImport",[139,143],20,[J],16),r("SpaceAfterCertainTypeScriptKeywords",[125,83,133,87,91,92,93,134,116,99,117,139,140,120,122,121,142,146,123,149,153,138,135],F,[J],4),r("SpaceBeforeCertainTypeScriptKeywords",F,[93,116,153],[J],4),r("SpaceAfterModuleName",10,18,[Z],4),r("SpaceBeforeArrow",F,38,[J],4),r("SpaceAfterArrow",38,F,[J],4),r("NoSpaceAfterEllipsis",25,78,[J],16),r("NoSpaceAfterOptionalParameters",57,[21,27],[J,g],16),r("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[J,$],16),r("NoSpaceBeforeOpenAngularBracket",pe,29,[J,re],16),r("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[J,re],16),r("NoSpaceAfterOpenAngularBracket",29,F,[J,re],16),r("NoSpaceBeforeCloseAngularBracket",F,31,[J,re],16),r("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[J,re,k],16),r("SpaceBeforeAt",[21,78],59,[J],4),r("NoSpaceAfterAt",59,F,[J],16),r("SpaceAfterDecorator",F,[125,78,92,87,83,123,122,120,121,134,146,22,41],[G],4),r("NoSpaceBeforeNonNullAssertionOperator",F,53,[J,oe],16),r("NoSpaceAfterNewKeywordOnConstructorSignature",102,20,[J,ee],16),r("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[J],4)],ve=[r("SpaceAfterConstructor",132,20,[s("insertSpaceAfterConstructor"),J],4),r("NoSpaceAfterConstructor",132,20,[u("insertSpaceAfterConstructor"),J],16),r("SpaceAfterComma",27,F,[s("insertSpaceAfterCommaDelimiter"),J,U,L,R],4),r("NoSpaceAfterComma",27,F,[u("insertSpaceAfterCommaDelimiter"),J,U],16),r("SpaceAfterAnonymousFunctionKeyword",[97,41],20,[s("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),E],4),r("NoSpaceAfterAnonymousFunctionKeyword",[97,41],20,[u("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),E],16),r("SpaceAfterKeywordInControl",le,20,[s("insertSpaceAfterKeywordsInControlFlowStatements"),w],4),r("NoSpaceAfterKeywordInControl",le,20,[u("insertSpaceAfterKeywordsInControlFlowStatements"),w],16),r("SpaceAfterOpenParen",20,F,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),J],4),r("SpaceBeforeCloseParen",F,21,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),J],4),r("SpaceBetweenOpenParens",20,20,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),J],4),r("NoSpaceBetweenParens",20,21,[J],16),r("NoSpaceAfterOpenParen",20,F,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),J],16),r("NoSpaceBeforeCloseParen",F,21,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),J],16),r("SpaceAfterOpenBracket",22,F,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),J],4),r("SpaceBeforeCloseBracket",F,23,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),J],4),r("NoSpaceBetweenBrackets",22,23,[J],16),r("NoSpaceAfterOpenBracket",22,F,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),J],16),r("NoSpaceBeforeCloseBracket",F,23,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),J],16),r("SpaceAfterOpenBrace",18,F,[_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),b],4),r("SpaceBeforeCloseBrace",F,19,[_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),b],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[J,I],16),r("NoSpaceAfterOpenBrace",18,F,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),J],16),r("NoSpaceBeforeCloseBrace",F,19,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),J],16),r("SpaceBetweenEmptyBraceBrackets",18,19,[s("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[c("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),J],16),r("SpaceAfterTemplateHeadAndMiddle",[15,16],F,[s("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),z],4,1),r("SpaceBeforeTemplateMiddleAndTail",F,[16,17],[s("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),J],4),r("NoSpaceAfterTemplateHeadAndMiddle",[15,16],F,[u("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),z],16,1),r("NoSpaceBeforeTemplateMiddleAndTail",F,[16,17],[u("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),J],16),r("SpaceAfterOpenBraceInJsxExpression",18,F,[s("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),J,V],4),r("SpaceBeforeCloseBraceInJsxExpression",F,19,[s("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),J,V],4),r("NoSpaceAfterOpenBraceInJsxExpression",18,F,[u("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),J,V],16),r("NoSpaceBeforeCloseBraceInJsxExpression",F,19,[u("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),J,V],16),r("SpaceAfterSemicolonInFor",26,F,[s("insertSpaceAfterSemicolonInForStatements"),J,d],4),r("NoSpaceAfterSemicolonInFor",26,F,[u("insertSpaceAfterSemicolonInForStatements"),J,d],16),r("SpaceBeforeBinaryOperator",F,_e,[s("insertSpaceBeforeAndAfterBinaryOperators"),J,f],4),r("SpaceAfterBinaryOperator",_e,F,[s("insertSpaceBeforeAndAfterBinaryOperators"),J,f],4),r("NoSpaceBeforeBinaryOperator",F,_e,[u("insertSpaceBeforeAndAfterBinaryOperators"),J,f],16),r("NoSpaceAfterBinaryOperator",_e,F,[u("insertSpaceBeforeAndAfterBinaryOperators"),J,f],16),r("SpaceBeforeOpenParenInFuncDecl",F,20,[s("insertSpaceBeforeFunctionParenthesis"),J,E],4),r("NoSpaceBeforeOpenParenInFuncDecl",F,20,[u("insertSpaceBeforeFunctionParenthesis"),J,E],16),r("NewLineBeforeOpenBraceInControl",me,18,[s("placeOpenBraceOnNewLineForControlBlocks"),w,x],8,1),r("NewLineBeforeOpenBraceInFunction",fe,18,[s("placeOpenBraceOnNewLineForFunctions"),E,x],8,1),r("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",ge,18,[s("placeOpenBraceOnNewLineForFunctions"),A,x],8,1),r("SpaceAfterTypeAssertion",31,F,[s("insertSpaceAfterTypeAssertion"),J,ne],4),r("NoSpaceAfterTypeAssertion",31,F,[u("insertSpaceAfterTypeAssertion"),J,ne],16),r("SpaceBeforeTypeAnnotation",F,[57,58],[s("insertSpaceBeforeTypeAnnotation"),J,y],4),r("NoSpaceBeforeTypeAnnotation",F,[57,58],[u("insertSpaceBeforeTypeAnnotation"),J,y],16),r("NoOptionalSemicolon",26,te,[o("semicolons",e.SemicolonPreference.Remove),ce],32),r("OptionalSemicolon",F,te,[o("semicolons",e.SemicolonPreference.Insert),ue],64)],he=[r("NoSpaceBeforeSemicolon",F,26,[J],16),r("SpaceBeforeOpenBraceInControl",me,18,[l("placeOpenBraceOnNewLineForControlBlocks"),w,Y,h],4,1),r("SpaceBeforeOpenBraceInFunction",fe,18,[l("placeOpenBraceOnNewLineForFunctions"),E,T,Y,h],4,1),r("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",ge,18,[l("placeOpenBraceOnNewLineForFunctions"),A,Y,h],4,1),r("NoSpaceBeforeComma",F,27,[J],16),r("NoSpaceBeforeOpenBracket",C(129,81),22,[J],16),r("NoSpaceAfterCloseBracket",23,F,[J,H],16),r("SpaceAfterSemicolon",26,F,[J],4),r("SpaceBetweenForAndAwaitKeyword",96,130,[J],4),r("SpaceBetweenStatements",[21,89,90,81],F,[J,U,p],4),r("SpaceAfterTryCatchFinally",[110,82,95],18,[J],4)];return __spreadArray(__spreadArray(__spreadArray([],ye),ve),he)}}(e.formatting||(e.formatting={}))}(ts||(ts={})),function(e){!function(t){var r;function n(){var n,o;return void 0===r&&(n=t.getAllRules(),o=function(e){for(var t=new Array(c*c),r=new Array(t.length),n=0,i=e;n<i.length;n++)for(var o=i[n],s=o.leftTokenRange.isSpecific&&o.rightTokenRange.isSpecific,l=0,_=o.leftTokenRange.tokens;l<_.length;l++)for(var d=_[l],p=0,f=o.rightTokenRange.tokens;p<f.length;p++){var g=a(d,f[p]),m=t[g];void 0===m&&(m=t[g]=[]),u(m,o.rule,s,r,g)}return t}(n),r=function(t){var r=o[a(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];if(r){for(var n=[],s=0,c=0,u=r;c<u.length;c++){var l=u[c],_=~i(s);l.action&_&&e.every(l.context,(function(e){return e(t)}))&&(n.push(l),s|=l.action)}if(n.length)return n}}),r}function i(e){var t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function a(t,r){return e.Debug.assert(t<=156&&r<=156,"Must compute formatting context from tokens"),t*c+r}t.getFormatContext=function(e,t){return{options:e,getRules:n(),host:t}};var o,s=31,c=157;function u(r,n,i,a,c){var u,l,_,d=3&n.action?i?o.StopRulesSpecific:o.StopRulesAny:n.context!==t.anyContext?i?o.ContextRulesSpecific:o.ContextRulesAny:i?o.NoContextRulesSpecific:o.NoContextRulesAny,p=a[c]||0;r.splice(function(e,t){for(var r=0,n=0;n<=t;n+=5)r+=31&e,e>>=5;return r}(p,d),0,n),a[c]=(_=1+((u=p)>>(l=d)&s),e.Debug.assert((_&s)===_,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),u&~(s<<l)|_<<l)}!function(e){e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=5]="StopRulesAny",e[e.ContextRulesSpecific=10]="ContextRulesSpecific",e[e.ContextRulesAny=15]="ContextRulesAny",e[e.NoContextRulesSpecific=20]="NoContextRulesSpecific",e[e.NoContextRulesAny=25]="NoContextRulesAny"}(o||(o={}))}(e.formatting||(e.formatting={}))}(ts||(ts={})),function(e){!function(t){var r,n,i,a,o;function s(t,r,n){var i=e.findPrecedingToken(t,n);return i&&i.kind===r&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!u(t.parent,t);)t=t.parent;return t}function u(t,r){switch(t.kind){case 252:case 253:return e.rangeContainsRange(t.members,r);case 256:var n=t.body;return!!n&&257===n.kind&&e.rangeContainsRange(n.statements,r);case 297:case 230:case 257:return e.rangeContainsRange(t.statements,r);case 287:return e.rangeContainsRange(t.block.statements,r)}return!1}function l(t,r,n,i){return t?_({pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end},r,n,i):[]}function _(r,n,i,a){var o=function(t,r){return function n(i){var a=e.forEachChild(i,(function(n){return e.startEndContainsRange(n.getStart(r),n.end,t)&&n}));if(a){var o=n(a);if(o)return o}return i}(r)}(r,n);return t.getFormattingScanner(n.text,n.languageVariant,function(t,r,n){var i=t.getStart(n);if(i===r.pos&&t.end===r.end)return i;var a=e.findPrecedingToken(r.pos,n);return a?a.end>=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,(function(s){return d(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),function(e,r,n){for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,n),s,i,a,function(t,r){if(!t.length)return a;var n=t.filter((function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)})).sort((function(e,t){return e.start-t.start}));if(!n.length)return a;var i=0;return function(t){for(;;){if(i>=n.length)return!1;var r=n[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}};function a(){return!1}}(n.parseDiagnostics,r),n)}))}function d(r,n,i,a,o,s,c,u,l){var _,d,f,g,m=s.options,y=s.getRules,v=s.host,h=new t.FormattingContext(l,c,m),b=-1,x=[];if(o.advance(),o.isOnToken()){var D=l.getLineAndCharacterOfPosition(n.getStart(l)).line,S=D;n.decorators&&(S=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),function n(i,a,s,c,p,y){if(!e.rangeOverlapsWithStartEnd(r,i.getStart(l),i.getEnd()))return;var v=E(i,s,p,y),h=a;e.forEachChild(i,(function(e){S(e,-1,i,v,s,c,!1)}),(function(e){T(e,i,s,v)}));for(;o.isOnToken();){var x=o.readTokenInfo(i);if(x.token.end>i.end)break;11!==i.kind?C(x,i,v,i):o.advance()}if(!i.parent&&o.isOnEOF()){var D=o.readEOFTokenRange();D.end<=i.end&&_&&F(D,l.getLineAndCharacterOfPosition(D.pos).line,i,_,f,d,a,v)}function S(a,s,c,u,_,d,p,f){var y=a.getStart(l),v=l.getLineAndCharacterOfPosition(y).line,x=v;a.decorators&&(x=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var D=-1;if(p&&e.rangeContainsRange(r,c)&&-1!==(D=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,m);if(s!==i||r===u){var _=t.SmartIndenter.getBaseIndentation(m);return _>u?_:u}}return-1}(y,a.end,_,r,s))&&(s=D),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.end<r.pos&&o.skipToEndOf(a),s;if(0===a.getFullWidth())return s;for(;o.isOnToken();){if((S=o.readTokenInfo(i)).token.end>y){S.token.pos>y&&o.skipToStartOf(a);break}C(S,i,u,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"),C(S,i,u,a),s}var T=161===a.kind?v:d,E=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(m,e)?m.indentSize:0;return o===r?{indentation:r===g?b:a.getIndentation(),delta:Math.min(m.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===g?{indentation:b,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,l)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,r,l)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,v,D,i,u,T);if(n(a,h,v,x,E.indentation,E.delta),11===a.kind){var k={pos:a.getStart(),end:a.getEnd()};if(k.pos!==k.end){var N=c.getChildren(l),A=N[e.findIndex(N,(function(e){return e.pos===a.pos}))-1];if(A&&l.getLineAndCharacterOfPosition(k.end).line!==l.getLineAndCharacterOfPosition(A.end).line){var F=l.getLineAndCharacterOfPosition(k.pos).line===l.getLineAndCharacterOfPosition(A.end).line;w(k,E.indentation,F,!1,!0)}}}return h=i,f&&199===c.kind&&-1===s&&(s=E.indentation),s}function T(r,n,a,s){e.Debug.assert(e.isNodeArray(r));var c=function(e,t){switch(e.kind){case 166:case 251:case 208:case 165:case 164:case 209:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 203:case 204:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 173:if(e.typeArguments===t)return 29;break;case 177:return 18}return 0}(n,r),u=s,_=a;if(0!==c)for(;o.isOnToken();){if((v=o.readTokenInfo(n)).token.end>r.pos)break;if(v.token.kind===c){_=l.getLineAndCharacterOfPosition(v.token.pos).line,C(v,n,s,n);var d=void 0;if(-1!==b)d=b;else{var p=e.getLineStartPositionForPosition(v.token.pos,l);d=t.SmartIndenter.findFirstNonWhitespaceColumn(p,v.token.pos,l,m)}u=E(n,a,d,m.indentSize)}else C(v,n,s,n)}for(var f=-1,g=0;g<r.length;g++){f=S(r[g],f,i,u,_,_,!0,0===g)}var y=function(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}(c);if(0!==y&&o.isOnToken()){var v;if(27===(v=o.readTokenInfo(n)).token.kind&&e.isCallLikeExpression(n))_!==l.getLineAndCharacterOfPosition(v.token.pos).line&&(o.advance(),v=o.isOnToken()?o.readTokenInfo(n):void 0);v&&v.token.kind===y&&e.rangeContainsRange(n,v.token)&&C(v,n,u,n,!0)}}function C(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),d=!1;t.leadingTrivia&&N(t.leadingTrivia,n,h,i);var p=0,f=e.rangeContainsRange(r,t.token),m=l.getLineAndCharacterOfPosition(t.token.pos);if(f){var y=u(t.token),v=_;if(p=A(t.token,m,n,h,i),!y)if(0===p){var x=v&&l.getLineAndCharacterOfPosition(v.end).line;d=c&&m.line!==x}else d=1===p}if(t.trailingTrivia&&N(t.trailingTrivia,n,h,i),d){var D=f&&!u(t.token)?i.getIndentationForToken(m.line,t.token.kind,a,!!s):-1,S=!0;if(t.leadingTrivia){var T=i.getIndentationForComment(t.token.kind,D,a);S=k(t.leadingTrivia,T,S,(function(e){return P(e.pos,T,!1)}))}-1!==D&&S&&(P(t.token.pos,D,1===p),g=m.line,b=D)}o.advance(),h=n}}(n,n,D,S,i,a)}if(!o.isOnToken()){var T=t.SmartIndenter.nodeWillIndentChild(m,n,void 0,l,!1)?i+m.indentSize:i,C=o.getCurrentLeadingTrivia();C&&k(C,T,!1,(function(e){return A(e,l.getLineAndCharacterOfPosition(e.pos),n,n,void 0)}))}return!1!==m.trimTrailingWhitespace&&function(){var e=_?_.end:r.pos,t=l.getLineAndCharacterOfPosition(e).line,n=l.getLineAndCharacterOfPosition(r.end).line;I(t,n+1,_)}(),x;function E(r,n,i,a){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 90:case 114:case 59:return!1;case 43:case 31:switch(a.kind){case 275:case 276:case 274:case 223:return!1}break;case 22:case 23:if(190!==a.kind)return!1}return n!==t&&!(r.decorators&&i===function(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 252:return 83;case 253:return 117;case 251:return 97;case 255:return 255;case 167:return 134;case 168:return 146;case 165:if(t.asteriskToken)return 41;case 163:case 160:var r=e.getNameOfDeclaration(t);if(r)return r.kind}}(r))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e,n){t.SmartIndenter.shouldIndentChildNode(m,n,r,l)&&(i+=e?m.indentSize:-m.indentSize,a=t.SmartIndenter.shouldIndentChildNode(m,r)?m.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(m,r,e,l,!0)?a:0}}function k(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o],u=e.rangeContainsRange(r,c);switch(c.kind){case 3:u&&w(c,n,!i),i=!1;break;case 2:i&&u&&a(c),i=!1;break;case 4:i=!0}}return i}function N(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o];if(e.isComment(c.kind)&&e.rangeContainsRange(r,c))A(c,l.getLineAndCharacterOfPosition(c.pos),n,i,a)}}function A(e,t,n,i,a){var o=0;u(e)||(_?o=F(e,t.line,n,_,f,d,i,a):I(l.getLineAndCharacterOfPosition(r.pos).line,t.line));return _=e,d=n,f=t.line,o}function F(t,r,n,i,a,o,s,c){h.updateContext(i,o,t,n,s);var u=y(h),_=!1!==h.options.trimTrailingWhitespace,d=0;return u?e.forEachRight(u,(function(o){switch(d=function(t,r,n,i,a){var o=a!==n;switch(t.action){case 1:return 0;case 16:if(r.end!==i.pos)return M(r.end,i.pos-r.end),o?2:0;break;case 32:M(r.pos,r.end-r.pos);break;case 8:if(1!==t.flags&&n!==a)return 0;if(1!==a-n)return L(r.end,i.pos-r.end,e.getNewLineOrDefaultFromHost(v,m)),o?0:1;break;case 4:if(1!==t.flags&&n!==a)return 0;if(1!==i.pos-r.end||32!==l.text.charCodeAt(r.end))return L(r.end,i.pos-r.end," "),o?2:0;break;case 64:s=r.end,(c=";")&&x.push(e.createTextChangeFromStartLength(s,0,c))}var s,c;return 0}(o,i,a,t,r)){case 2:n.getStart(l)===t.pos&&c.recomputeIndentation(!1,s);break;case 1:n.getStart(l)===t.pos&&c.recomputeIndentation(!0,s);break;default:e.Debug.assert(0===d)}_=_&&!(16&o.action)&&1!==o.flags})):_=_&&1!==t.kind,r!==a&&_&&I(a,r,i),d}function P(t,r,n){var i=p(r,m);if(n)L(t,0,i);else{var a=l.getLineAndCharacterOfPosition(t),o=e.getStartPositionOfLine(a.line,l);(r!==function(e,t){for(var r=0,n=0;n<t;n++)9===l.text.charCodeAt(e+n)?r+=m.tabSize-r%m.tabSize:r++;return r}(o,a.character)||function(e,t){return e!==l.text.substr(t,e.length)}(i,o))&&L(o,a.character,i)}}function w(r,n,i,a,o){void 0===a&&(a=!0);var s=l.getLineAndCharacterOfPosition(r.pos).line,c=l.getLineAndCharacterOfPosition(r.end).line;if(s!==c){for(var u=[],_=r.pos,d=s;d<c;d++){var f=e.getEndLinePosition(d,l);u.push({pos:_,end:f}),_=e.getStartPositionOfLine(d+1,l)}if(a&&u.push({pos:_,end:r.end}),0!==u.length){var g=e.getStartPositionOfLine(s,l),y=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(g,u[0].pos,l,m),v=0;i&&(v=1,s++);for(var h=n-y.column,b=v;b<u.length;b++,s++){var x=e.getStartPositionOfLine(s,l),D=0===b?y:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(u[b].pos,u[b].end,l,m);if(o){if(e.isLineBreak(l.text.charCodeAt(e.getStartPositionOfLine(s,l))))continue;h=n-D.column}var S=D.column+h;if(S>0){var T=p(S,m);L(x,D.character,T)}else M(x,D.character)}}}else i||P(r.pos,n,!1)}function I(t,r,n){for(var i=t;i<r;i++){var a=e.getStartPositionOfLine(i,l),o=e.getEndLinePosition(i,l);if(!(n&&(e.isComment(n.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(n.kind))&&n.pos<=o&&n.end>o)){var s=O(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),M(s,o+1-s))}}}function O(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function M(t,r){r&&x.push(e.createTextChangeFromStartLength(t,r,""))}function L(t,r,n){(r||n)&&x.push(e.createTextChangeFromStartLength(t,r,n))}}function p(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var u=Math.floor(t/r.tabSize),l=t-u*r.tabSize,_=void 0;return a||(a=[]),void 0===a[u]?a[u]=_=e.repeatString("\t",u):_=a[u],l?_+e.repeatString(" ",l):_}t.createTextRangeWithKind=function(t,r,n){var i={pos:t,end:r,kind:n};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(n)}}),i},function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.formatOnEnter=function(t,r,n){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,_({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=function(e,t,r){return l(c(s(e,26,t)),t,r,3)},t.formatOnOpeningCurly=function(t,r,n){var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return _({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=function(e,t,r){return l(c(s(e,19,t)),t,r,5)},t.formatDocument=function(e,t){return _({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return _({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1)},t.formatNodeGivenIndentation=function(e,r,n,i,a,o){var s={pos:0,end:r.text.length};return t.getFormattingScanner(r.text,n,s.pos,s.end,(function(t){return d(s,e,i,a,t,o,1,(function(e){return!1}),r)}))},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(n||(n={})),t.getRangeOfEnclosingComment=function(t,r,n,i){void 0===i&&(i=e.getTokenAtPosition(t,r));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=r&&r<i.getEnd())){var o=(n=null===n?void 0:void 0===n?e.findPrecedingToken(r,t):n)&&e.getTrailingCommentRanges(t.text,n.end),s=e.getLeadingCommentRangesOfNode(i,t),c=e.concatenate(o,s);return c&&e.find(c,(function(n){return e.rangeContainsPositionExclusive(n,r)||r===n.end&&(2===n.kind||r===t.getFullWidth())}))}},t.getIndentationString=p}(e.formatting||(e.formatting={}))}(ts||(ts={})),function(e){!function(t){!function(r){var n,i;function a(e){return e.baseIndentSize||0}function o(e,t,r,n,i,o,u){for(var f,g=e.parent;g;){var y=!0;if(r){var v=e.getStart(i);y=v<r.pos||v>r.end}var h=s(g,e,i),b=h.line===t.line||d(g,e,t.line,i);if(y){var x=null===(f=p(e,i))||void 0===f?void 0:f[0],S=m(e,i,u,!!x&&l(x,i).line>h.line);if(-1!==S)return S+n;if(-1!==(S=c(e,g,t,b,i,u)))return S+n}D(u,g,e,i,o)&&!b&&(n+=u.indentSize);var T=_(g,e,t.line,i);g=(e=g).parent,t=T?i.getLineAndCharacterOfPosition(e.getStart(i)):h}return n+a(u)}function s(e,t,r){var n=p(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(297===r.kind||!i)?v(n,a,o):-1}function u(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===n}function d(t,r,n,i){if(234===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,90,i);return e.Debug.assert(void 0!==a),l(a,i).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,r,n,i){switch(n.kind){case 173:return a(n.typeArguments);case 200:return a(n.properties);case 199:return a(n.elements);case 177:return a(n.members);case 251:case 208:case 209:case 165:case 164:case 169:case 166:case 175:case 170:return a(n.typeParameters)||a(n.parameters);case 252:case 221:case 253:case 254:case 330:return a(n.typeParameters);case 204:case 203:return a(n.typeArguments)||a(n.arguments);case 250:return a(n.declarations);case 264:case 268:return a(n.elements);case 196:case 197:return a(n.elements)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i<n.length-1;i++)if(n[i].pos===t.pos&&n[i].end===t.end)return{pos:n[i-1].end,end:n[i+1].getStart(r)};return t}(n,a,i),t,r)?a:void 0}}function g(e,t,r){return e?v(t.getLineAndCharacterOfPosition(e.pos),t,r):-1}function m(e,t,r,n){if(e.parent&&250===e.parent.kind)return-1;var i=p(e,t);if(i){var a=i.indexOf(e);if(-1!==a){var o=y(i,a,t,r);if(-1!==o)return o}return g(i,t,r)+(n?r.indentSize:0)}return-1}function y(t,r,n,i){e.Debug.assert(r>=0&&r<t.length);for(var a=l(t[r],n),o=r-1;o>=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return v(a,n,i);a=l(t[o],n)}return-1}function v(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function h(t,r,n,i){for(var a=0,o=0,s=t;s<r;s++){var c=n.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,t,r,n){return h(e,t,r,n).column}function x(e,t,r,n,i){var a=r?r.kind:0;switch(t.kind){case 233:case 252:case 221:case 253:case 255:case 254:case 199:case 230:case 257:case 200:case 177:case 190:case 179:case 258:case 285:case 284:case 207:case 201:case 203:case 204:case 232:case 266:case 242:case 217:case 197:case 196:case 275:case 278:case 274:case 283:case 164:case 169:case 170:case 160:case 174:case 175:case 186:case 205:case 213:case 268:case 264:case 270:case 265:case 163:return!0;case 249:case 288:case 216:if(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&n&&200===a)return S(n,r);if(216!==t.kind)return!0;break;case 235:case 236:case 238:case 239:case 237:case 234:case 251:case 208:case 165:case 166:case 167:case 168:return 230!==a;case 209:return n&&207===a?S(n,r):230!==a;case 267:return 268!==a;case 261:return 262!==a||!!r.namedBindings&&264!==r.namedBindings.kind;case 273:return 276!==a;case 277:return 279!==a;case 183:case 182:if(177===a||179===a)return!1}return i}function D(e,t,r,n,i){return void 0===i&&(i=!1),x(e,t,r,n,!1)&&!(i&&r&&function(e,t){switch(e){case 242:case 246:case 240:case 241:return 230!==t.kind;default:return!1}}(r.kind,t))}function S(t,r){var n=e.skipTrivia(t.text,r.pos);return t.getLineAndCharacterOfPosition(n).line===t.getLineAndCharacterOfPosition(r.end).line}!function(e){e[e.Unknown=-1]="Unknown"}(n||(n={})),r.getIndentation=function(r,n,i,s){if(void 0===s&&(s=!1),r>n.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),_=t.getRangeOfEnclosingComment(n,r,c||null);if(_&&3===_.kind)return function(t,r,n,i){var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=h(s,r,t,n),u=c.column,l=c.character;if(0===u)return u;return 42===t.text.charCodeAt(s+l)?u-1:u}(n,r,i,_);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r<c.end)return 0;var d=n.getLineAndCharacterOfPosition(r).line;if(i.indentStyle===e.IndentStyle.Block)return function(t,r,n){var i=r;for(;i>0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,n)}(n,r,i);if(27===c.kind&&216!==c.parent.kind){var p=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==p)return p}var v=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);return v&&!e.rangeContainsRange(v,c)?g(v,n,i)+i.indentSize:function(t,r,n,i,s,c){var _,d=n;for(;d;){if(e.positionBelongsToNode(d,r,t)&&D(c,d,_,t,!0)){var p=l(d,t),f=u(n,d,i,t);return o(d,p,void 0,0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0,t,!0,c)}var g=m(d,t,c,!0);if(-1!==g)return g;_=d,d=d.parent}return a(c)}(n,r,c,d,s,i)},r.getIndentationForNode=function(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return o(e,i,t,0,r,!1,n)},r.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,r.childStartsOnTheSameLineWithElseInIfStatement=d,r.childIsUnindentedBranchOfConditionalExpression=function(t,r,n,i){if(e.isConditionalExpression(t)&&(r===t.whenTrue||r===t.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,t.condition.end).line;if(r===t.whenTrue)return n===a;var o=l(t.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,t.whenTrue.end).line;return a===o&&s===n}return!1},r.argumentStartsOnSameLineAsPreviousArgument=function(t,r,n,i){if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,(function(e){return e.pos===r.pos}));if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;var s=t.arguments[o-1];if(n===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},r.getContainingList=p,r.findFirstNonWhitespaceCharacterAndColumn=h,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=D}(t.SmartIndenter||(t.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(ts||(ts={})),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function i(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function a(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var o,s;function c(t,r){return e.skipTrivia(t,r,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(o=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"}(s=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var u,l={leadingTriviaOption:o.Exclude,trailingTriviaOption:s.Exclude};function _(e,t,r,n){return{pos:d(e,t,n),end:p(e,r,n)}}function d(t,r,n){var i=n.leadingTriviaOption;if(i===o.Exclude)return r.getStart(t);if(i===o.StartLine)return e.getLineStartPositionForPosition(r.getStart(t),t);if(i===o.JSDoc){var a=e.getJSDocCommentRanges(r,t.text);if(null==a?void 0:a.length)return e.getLineStartPositionForPosition(a[0].pos,t)}var s=r.getFullStart(),u=r.getStart(t);if(s===u)return u;var l=e.getLineStartPositionForPosition(s,t);if(e.getLineStartPositionForPosition(u,t)===l)return i===o.IncludeAll?s:u;var _=s>0?1:0,d=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,l)+_,t);return d=c(t.text,d),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,d),t)}function p(t,r,n){var i,a=r.end,o=n.trailingTriviaOption;if(o===s.Exclude)return a;if(o===s.ExcludeWhitespace){var c=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a)),u=null===(i=null==c?void 0:c[c.length-1])||void 0===i?void 0:i.end;return u||a}var l=e.skipTrivia(t.text,a,!0);return l===a||o!==s.Include&&!e.isLineBreak(t.text.charCodeAt(l-1))?a:l}function f(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&200===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"}(u||(u={})),t.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var g,m,y=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=function(r){return new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext)},t.with=function(e,r){var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n<i.length;n++){var a=i[n];this.changes.push({kind:u.Text,sourceFile:t,text:a.newText,range:e.createTextRangeFromSpan(a.span)})}},t.prototype.deleteRange=function(e,t){this.changes.push({kind:u.Remove,sourceFile:e,range:t})},t.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},t.prototype.deleteNode=function(e,t,r){void 0===r&&(r={leadingTriviaOption:o.IncludeAll}),this.deleteRange(e,_(e,t,t,r))},t.prototype.deleteModifier=function(t,r){this.deleteRange(t,{pos:r.getStart(t),end:e.skipTrivia(t.text,r.end,!0)})},t.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:o.IncludeAll});var i=d(e,t,n),a=p(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:o.IncludeAll});var i=d(e,t,n),a=void 0===r?e.text.length:d(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:u.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},t.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=l),this.replaceRange(e,_(e,t,t,n),r,n)},t.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=l),this.replaceRange(e,_(e,t,r,i),n,i)},t.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:u.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},t.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=l),this.replaceRangeWithNodes(e,_(e,t,t,n),r,n)},t.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,_(e,t,t,l),r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=l),this.replaceRangeWithNodes(e,_(e,t,r,i),n,i)},t.prototype.nextCommaToken=function(t,r){var n=e.findNextToken(r,r.parent,t);return n&&27===n.kind?n:void 0},t.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},t.prototype.insertNodeAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRange(t,e.createRange(r),n,i)},t.prototype.insertNodesAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRangeWithNodes(t,e.createRange(r),n,i)},t.prototype.insertNodeAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertNodesAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertAtTopOfFile=function(t,r,n){var i=function(t){for(var r,n=0,i=t.statements;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))break;r=a}var o=0,s=t.text;if(r)return o=r.end,g(),o;var c=e.getShebang(s);void 0!==c&&(o=c.length,g());var u,l,_=e.getLeadingCommentRanges(s,o);if(!_)return o;for(var d=0,p=_;d<p.length;d++){var f=p[d];if(3===f.kind){if(e.isPinnedComment(s,f.pos)){u={range:f,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(s,f.pos,f.end)){u={range:f,pinnedOrTripleSlash:!0};continue}if(u){if(u.pinnedOrTripleSlash)break;if(t.getLineAndCharacterOfPosition(f.pos).line>=t.getLineAndCharacterOfPosition(u.range.end).line+2)break}if(t.statements.length)if(void 0===l&&(l=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),l<t.getLineAndCharacterOfPosition(f.end).line+2)break;u={range:f,pinnedOrTripleSlash:!1}}u&&(o=u.range.end,g());return o;function g(){if(o<s.length){var t=s.charCodeAt(o);e.isLineBreak(t)&&++o<s.length&&13===t&&10===s.charCodeAt(o)&&o++}}}(t),a={prefix:0===i?void 0:this.newLineCharacter,suffix:(e.isLineBreak(t.text.charCodeAt(i))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")};e.isArray(r)?this.insertNodesAt(t,i,r,a):this.insertNodeAt(t,i,r,a)},t.prototype.insertFirstParameter=function(t,r,n){var i=e.firstOrUndefined(r);i?this.insertNodeBefore(t,i,n):this.insertNodeAt(t,r.pos,n)},t.prototype.insertNodeBefore=function(e,t,r,n,i){void 0===n&&(n=!1),void 0===i&&(i={}),this.insertNodeAt(e,d(e,t,i),r,this.getOptionsForInsertNodeBefore(t,r,n))},t.prototype.insertModifierAt=function(t,r,n,i){void 0===i&&(i={}),this.insertNodeAt(t,r,e.factory.createToken(n),i)},t.prototype.insertModifierBefore=function(e,t,r){return this.insertModifierAt(e,r.getStart(e),t,{suffix:" "})},t.prototype.insertCommentBeforeLine=function(t,r,n,i){var a=e.getStartPositionOfLine(r,t),o=e.getFirstNonSpaceCharacterPosition(t.text,a),s=S(t,o),c=e.getTouchingToken(t,s?o:n),u=t.text.slice(a,o),l=(s?"":this.newLineCharacter)+"//"+i+this.newLineCharacter+u;this.insertText(t,c.getStart(t),l)},t.prototype.insertJsdocCommentBefore=function(t,r,n){var i=r.getStart(t);if(r.jsDoc)for(var a=0,o=r.jsDoc;a<o.length;a++){var s=o[a];this.deleteRange(t,{pos:e.getLineStartPositionForPosition(s.getStart(t),t),end:p(t,s,{})})}var c=e.getPrecedingNonSpaceCharacterPosition(t.text,i-1),u=t.text.slice(c,i);this.insertNodeAt(t,i,n,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+u})},t.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:u.Text,sourceFile:e,range:t,text:r})},t.prototype.insertText=function(t,r,n){this.replaceRangeWithText(t,e.createRange(r),n)},t.prototype.tryInsertTypeAnnotation=function(t,r,n){var i,a;if(e.isFunctionLike(r)){if(!(a=e.findChildOfKind(r,21,t))){if(!e.isArrowFunction(r))return!1;a=e.first(r.parameters)}}else a=null!==(i=249===r.kind?r.exclamationToken:r.questionToken)&&void 0!==i?i:r.name;return this.insertNodeAt(t,a.end,n,{prefix:": "}),!0},t.prototype.tryInsertThisTypeAnnotation=function(t,r,n){var i=e.findChildOfKind(r,20,t).getStart(t)+1,a=r.parameters.length?", ":"";this.insertNodeAt(t,i,n,{prefix:"this: ",suffix:a})},t.prototype.insertTypeParameters=function(t,r,n){var i=(e.findChildOfKind(r,20,t)||e.first(r.parameters)).getStart(t);this.insertNodesAt(t,i,n,{prefix:"<",suffix:">",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,r,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(r)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(n?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,r,n){var i=e.firstOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeBefore(t,i,n):this.replaceConstructorBody(t,r,__spreadArray([n],r.body.statements))},t.prototype.insertNodeAtConstructorEnd=function(t,r,n){var i=e.lastOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,__spreadArray(__spreadArray([],r.body.statements),[n]))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=d(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtStartWorker=function(e,t,r){var n,i=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,h(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=h(r);a<o.length;a++){var s=o[a];if(e.rangeStartPositionsAreOnSameLine(i,s,t))return;var c=s.getStart(t),u=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(c,t),c,t,this.formatContext.options);if(void 0===n)n=u;else if(u!==n)return;i=s}return n},t.prototype.computeIndentationForNewMember=function(t,r){var n,i=r.getStart(t);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(i,t),i,t,this.formatContext.options)+(null!==(n=this.formatContext.options.indentSize)&&void 0!==n?n:4)},t.prototype.getInsertNodeAtStartInsertOptions=function(t,r,n){var i=0===h(r).length,a=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(r),{node:r,sourceFile:t}),o=e.isObjectLiteralExpression(r)&&(!e.isJsonSourceFile(t)||!i);return{indentation:n,prefix:(e.isObjectLiteralExpression(r)&&e.isJsonSourceFile(t)&&i&&!a?",":"")+this.newLineCharacter,suffix:o?",":""}},t.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},t.prototype.insertNodesAfter=function(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))},t.prototype.insertNodeAfterWorker=function(t,r,n){var i,a;return i=r,a=n,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&158===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createRange(r.end),e.factory.createToken(26)),p(t,r,{})},t.prototype.getInsertNodeAfterOptions=function(t,r){var n=this.getInsertNodeAfterOptionsWorker(r);return __assign(__assign({},n),{prefix:r.end===t.end&&e.isStatement(r)?n.prefix?"\n"+n.prefix:"\n":n.prefix})},t.prototype.getInsertNodeAfterOptionsWorker=function(t){switch(t.kind){case 252:case 256:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 249:case 10:case 78:return{prefix:", "};case 288:return{suffix:","+this.newLineCharacter};case 92:return{prefix:" "};case 160:return{};default:return e.Debug.assert(e.isStatement(t)||e.isClassOrTypeElement(t)),{suffix:this.newLineCharacter}}},t.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),209===r.kind){var i=e.findChildOfKind(r,38,t),a=e.findChildOfKind(r,20,t);a?(this.insertNodesAt(t,a.getStart(t),[e.factory.createToken(97),e.factory.createIdentifier(n)],{joiner:" "}),T(this,t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function "+n+"("),this.replaceRange(t,i,e.factory.createToken(21))),230!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.factory.createToken(18),e.factory.createToken(104)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(r,208===r.kind?97:83,t).end;this.insertNodeAt(t,o,e.factory.createIdentifier(n),{prefix:" "})}},t.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},t.prototype.insertNodeInListAfter=function(t,r,n,i){if(void 0===i&&(i=e.formatting.SmartIndenter.getContainingList(r,t)),i){var a=e.indexOfNode(i,r);if(!(a<0)){var o=r.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(t,r.end);if(s&&f(r,s)){var u=e.getLineAndCharacterOfPosition(t,c(t.text,i[a+1].getFullStart())),l=e.getLineAndCharacterOfPosition(t,s.end),_=void 0,d=void 0;l.line===u.line?(d=s.end,_=function(e){for(var t="",r=0;r<e;r++)t+=" ";return t}(u.character-l.character)):d=e.getStartPositionOfLine(u.line,t);var p=""+e.tokenToString(s.kind)+t.text.substring(s.end,i[a+1].getStart(t));this.replaceRange(t,e.createRange(d,i[a+1].getStart(t)),n,{prefix:_,suffix:p})}}else{var g=r.getStart(t),m=e.getLineStartPositionForPosition(g,t),y=void 0,v=!1;if(1===i.length)y=27;else{var h=e.findPrecedingToken(r.pos,t);y=f(r,h)?h.kind:27,v=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==m}if(function(t,r){for(var n=r;n<t.length;){var i=t.charCodeAt(n);if(!e.isWhiteSpaceSingleLine(i))return 47===i;n++}return!1}(t.text,r.end)&&(v=!0),v){this.replaceRange(t,e.createRange(o),e.factory.createToken(y));for(var b=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(m,g,t,this.formatContext.options),x=e.skipTrivia(t.text,o,!0,!1);x!==o&&e.isLineBreak(t.text.charCodeAt(x-1));)x--;this.replaceRange(t,e.createRange(x),n,{indentation:b,prefix:this.newLineCharacter})}else this.replaceRange(t,e.createRange(o),n,{prefix:e.tokenToString(y)+" "})}}}else e.Debug.fail("node is not a list element")},t.prototype.parenthesizeExpression=function(t,r){this.replaceRange(t,e.rangeOfNode(r),e.factory.createParenthesizedExpression(r))},t.prototype.finishClassesWithNodesInsertedAtStart=function(){var t=this;this.classesWithNodesInsertedAtStart.forEach((function(r){var n=r.node,i=r.sourceFile,a=function(t,r){var n=e.findChildOfKind(t,18,r),i=e.findChildOfKind(t,19,r);return[null==n?void 0:n.end,null==i?void 0:i.end]}(n,i),o=a[0],s=a[1];if(void 0!==o&&void 0!==s){var c=0===h(n).length,u=e.positionsAreOnSameLine(o,s,i);c&&u&&o!==s-1&&t.deleteRange(i,e.createRange(o,s-1)),u&&t.insertText(i,s-1,t.newLineCharacter)}}))},t.prototype.finishDeleteDeclarations=function(){for(var t=this,r=new e.Set,n=function(t,n){i.deletedNodes.some((function(r){return r.sourceFile===t&&e.rangeContainsRangeExclusive(r.node,n)}))||(e.isArray(n)?i.deleteRange(t,e.rangeOfTypeParameters(t,n)):m.deleteDeclaration(i,r,t,n))},i=this,a=0,o=this.deletedNodes;a<o.length;a++){var s=o[a];n(s.sourceFile,s.node)}r.forEach((function(n){var i=n.getSourceFile(),a=e.formatting.SmartIndenter.getContainingList(n,i);if(n===e.last(a)){var o=e.findLastIndex(a,(function(e){return!r.has(e)}),a.length-2);-1!==o&&t.deleteRange(i,{pos:a[o].end,end:v(i,a[o+1])})}}))},t.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var t=g.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),r=0,n=this.newFiles;r<n.length;r++){var i=n[r],a=i.oldFile,o=i.fileName,s=i.statements;t.push(g.newFileChanges(a,o,s,this.newLineCharacter,this.formatContext))}return t},t.prototype.createNewFile=function(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})},t}();function v(t,r){return e.skipTrivia(t.text,d(t,r,{leadingTriviaOption:o.IncludeAll}),!1,!0)}function h(t){return e.isObjectLiteralExpression(t)?t.properties:t.members}function b(t,r){for(var n=r.length-1;n>=0;n--){var i=r[n],a=i.span,o=i.newText;t=""+t.substring(0,a.start)+o+t.substring(e.textSpanEnd(a))}return t}function x(t){var n=e.visitEachChild(t,x,e.nullTransformationContext,D,x),a=e.nodeIsSynthesized(n)?n:Object.create(n);return e.setTextRangePosEnd(a,r(t),i(t)),a}function D(t,n,a,o,s){var c=e.visitNodes(t,n,a,o,s);if(!c)return c;var u=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(u,r(t),i(t)),u}function S(t,r){return!(e.isInComment(t,r)||e.isInString(t,r)||e.isInTemplateString(t,r)||e.isInJSXText(t,r))}function T(e,t,r,n){void 0===n&&(n={leadingTriviaOption:o.IncludeAll});var i=d(t,r,n),a=p(t,r,n);e.deleteRange(t,{pos:i,end:a})}function C(t,r,n,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,n)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!r.has(i),"Deleting a node twice"),r.add(i),t.deleteRange(n,{pos:v(n,i),end:o===a.length-1?p(n,i,{}):v(n,a[o+1])})):T(t,n,i)}t.ChangeTracker=y,t.getNewFileText=function(e,t,r,n){return g.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(t,r,n,a,o){var s=n.map((function(e){return 4===e?"":i(e,t,a).text})).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return b(s,e.formatting.formatDocument(c,o))+a}function i(t,r,i){var o=function(t){var r=0,i=e.createTextWriter(t);function o(t,n){if(n||!function(t){return e.skipTrivia(t,0)===t.length}(t)){r=i.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;r-=a}}function s(e){i.write(e),o(e,!1)}function c(e){i.writeComment(e)}function u(e){i.writeKeyword(e),o(e,!1)}function l(e){i.writeOperator(e),o(e,!1)}function _(e){i.writePunctuation(e),o(e,!1)}function d(e){i.writeTrailingSemicolon(e),o(e,!1)}function p(e){i.writeParameter(e),o(e,!1)}function f(e){i.writeProperty(e),o(e,!1)}function g(e){i.writeSpace(e),o(e,!1)}function m(e){i.writeStringLiteral(e),o(e,!1)}function y(e,t){i.writeSymbol(e,t),o(e,!1)}function v(e){i.writeLine(e)}function h(){i.increaseIndent()}function b(){i.decreaseIndent()}function x(){return i.getText()}function D(e){i.rawWrite(e),o(e,!1)}function S(e){i.writeLiteral(e),o(e,!0)}function T(){return i.getTextPos()}function C(){return i.getLine()}function E(){return i.getColumn()}function k(){return i.getIndent()}function N(){return i.isAtStartOfLine()}function A(){i.clear(),r=0}return{onEmitNode:function(e,t,i){t&&n(t,r),i(e,t),t&&a(t,r)},onBeforeEmitNodeArray:function(e){e&&n(e,r)},onAfterEmitNodeArray:function(e){e&&a(e,r)},onBeforeEmitToken:function(e){e&&n(e,r)},onAfterEmitToken:function(e){e&&a(e,r)},write:s,writeComment:c,writeKeyword:u,writeOperator:l,writePunctuation:_,writeTrailingSemicolon:d,writeParameter:p,writeProperty:f,writeSpace:g,writeStringLiteral:m,writeSymbol:y,writeLine:v,increaseIndent:h,decreaseIndent:b,getText:x,rawWrite:D,writeLiteral:S,getTextPos:T,getLine:C,getColumn:E,getIndent:k,isAtStartOfLine:N,hasTrailingComment:function(){return i.hasTrailingComment()},hasTrailingWhitespace:function(){return i.hasTrailingWhitespace()},clear:A}}(i),s="\n"===i?1:0;return e.createPrinter({newLine:s,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},o).writeNode(4,t,r,o),{text:o.getText(),node:x(t)}}t.getTextChangesFromChanges=function(t,r,n,a){return e.mapDefined(e.group(t,(function(e){return e.sourceFile.path})),(function(t){for(var o=t[0].sourceFile,s=e.stableSort(t,(function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end})),c=function(t){e.Debug.assert(s[t].range.end<=s[t+1].range.pos,"Changes overlap",(function(){return JSON.stringify(s[t].range)+" and "+JSON.stringify(s[t+1].range)}))},l=0;l<s.length-1;l++)c(l);var _=e.mapDefined(s,(function(t){var s=e.createTextSpanFromRange(t.range),c=function(t,r,n,a,o){if(t.kind===u.Remove)return"";if(t.kind===u.Text)return t.text;var s=t.options,c=void 0===s?{}:s,l=t.range.pos,_=function(t){return function(t,r,n,a,o,s,c){var u=a.indentation,l=a.prefix,_=a.delta,d=i(t,r,o),p=d.node,f=d.text;c&&c(p,f);var g=function(t,r){var n=t.options,i=!n.semicolons||n.semicolons===e.SemicolonPreference.Ignore,a=n.semicolons===e.SemicolonPreference.Remove||i&&!e.probablyUsesSemicolons(r);return __assign(__assign({},n),{semicolons:a?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}(s,r),m=void 0!==u?u:e.formatting.SmartIndenter.getIndentation(n,r,g,l===o||e.getLineStartPositionForPosition(n,r)===n);void 0===_&&(_=e.formatting.SmartIndenter.shouldIndentChildNode(g,t)&&g.indentSize||0);var y={text:f,getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}},v=e.formatting.formatNodeGivenIndentation(p,y,r.languageVariant,m,_,__assign(__assign({},s),{options:g}));return b(f,v)}(t,r,l,c,n,a,o)},d=t.kind===u.ReplaceWithMultipleNodes?t.nodes.map((function(t){return e.removeSuffix(_(t),n)})).join(t.options.joiner||n):_(t.node),p=c.preserveLeadingWhitespace||void 0!==c.indentation||e.getLineStartPositionForPosition(l,r)===l?d:d.replace(/^\s+/,"");return(c.prefix||"")+p+(!c.suffix||e.endsWith(p,c.suffix)?"":c.suffix)}(t,o,r,n,a);if(s.length!==c.length||!e.stringContainsAt(o.text,c,s.start))return e.createTextChange(s,c)}));return _.length>0?{fileName:o.fileName,textChanges:_}:void 0}))},t.newFileChanges=function(t,n,i,a,o){var s=r(t,e.getScriptKindFromFileName(n),i,a,o);return{fileName:n,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=r,t.getNonformattedText=i}(g||(g={})),t.applyChanges=b,t.isValidLocationToAddComment=S,function(t){function r(t,r,n){if(n.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else{T(t,r,e.getAncestor(n,261))}}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 160:var c=a.parent;e.isArrowFunction(c)&&1===c.parameters.length&&!e.findChildOfKind(c,20,i)?t.replaceNodeWithText(i,a,"()"):C(t,n,i,a);break;case 261:case 260:T(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?o.Exclude:e.hasJSDocNodes(a)?o.JSDoc:o.StartLine});break;case 198:var u=a.parent;197===u.kind&&a!==e.last(u.elements)?T(t,i,a):C(t,n,i,a);break;case 249:!function(t,r,n,i){var a=i.parent;if(287===a.kind)return void t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n));if(1!==a.declarations.length)return void C(t,r,n,i);var s=a.parent;switch(s.kind){case 239:case 238:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 237:T(t,n,a);break;case 232:T(t,n,s,{leadingTriviaOption:e.hasJSDocNodes(s)?o.JSDoc:o.StartLine});break;default:e.Debug.assertNever(s)}}(t,n,i,a);break;case 159:C(t,n,i,a);break;case 265:var l=a.parent;1===l.elements.length?r(t,i,l):C(t,n,i,a);break;case 263:r(t,i,a);break;case 26:T(t,i,a,{trailingTriviaOption:s.Exclude});break;case 97:T(t,i,a,{leadingTriviaOption:o.Exclude});break;case 252:case 251:T(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?o.JSDoc:o.StartLine});break;default:e.isImportClause(a.parent)&&a.parent.name===a?function(t,r,n){if(n.namedBindings){var i=n.name.getStart(r),a=e.getTokenAtPosition(r,n.name.end);if(a&&27===a.kind){var o=e.skipTrivia(r.text,a.end,!1,!0);t.deleteRange(r,{pos:i,end:o})}else T(t,r,n.name)}else T(t,r,n.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?C(t,n,i,a):T(t,i,a)}}}(m||(m={})),t.deleteNode=T}(e.textChanges||(e.textChanges={}))}(ts||(ts={})),function(e){!function(t){var r=e.createMultiMap(),n=new e.Map;function i(t){return e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t)}function a(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function o(e,t){return{changes:e,commands:t}}function s(t,r,n){for(var i=0,a=c(t);i<a.length;i++){var o=a[i];e.contains(r,o.code)&&n(o)}}function c(t){var r=t.program,n=t.sourceFile,i=t.cancellationToken;return __spreadArray(__spreadArray(__spreadArray([],r.getSemanticDiagnostics(n,i)),r.getSyntacticDiagnostics(n,i)),e.computeSuggestionDiagnostics(n,r,i))}t.createCodeFixActionWithoutFixAll=function(e,t,r){return a(e,i(r),t,void 0,void 0)},t.createCodeFixAction=function(e,t,r,n,o,s){return a(e,i(r),t,n,i(o),s)},t.registerCodeFix=function(t){for(var i=0,a=t.errorCodes;i<a.length;i++){var o=a[i];r.add(String(o),t)}if(t.fixIds)for(var s=0,c=t.fixIds;s<c.length;s++){var u=c[s];e.Debug.assert(!n.has(u)),n.set(u,t)}},t.getSupportedErrorCodes=function(){return e.arrayFrom(r.keys())},t.getFixes=function(t){var n=c(t),i=r.get(String(t.errorCode));return e.flatMap(i,(function(r){return e.map(r.getCodeActions(t),function(t,r){for(var n=t.errorCodes,i=0,a=0,o=r;a<o.length;a++){var s=o[a];if(e.contains(n,s.code)&&i++,i>1)break}var c=i<2;return function(e){var t=e.fixId,r=e.fixAllDescription,n=__rest(e,["fixId","fixAllDescription"]);return c?n:__assign(__assign({},n),{fixId:t,fixAllDescription:r})}}(r,n))}))},t.getAllFixes=function(t){return n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=o,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[];return o(e.textChanges.ChangeTracker.with(t,(function(e){return s(t,r,(function(t){return n(e,t,i)}))})),0===i.length?void 0:i)},t.eachDiagnostic=s}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){var t,r;t=e.refactor||(e.refactor={}),r=new e.Map,t.registerRefactor=function(e,t){r.set(e,t)},t.getApplicableRefactors=function(n){return e.arrayFrom(e.flatMapIterator(r.values(),(function(e){var r;return n.cancellationToken&&n.cancellationToken.isCancellationRequested()||!(null===(r=e.kinds)||void 0===r?void 0:r.some((function(e){return t.refactorKindBeginsWith(e,n.kind)})))?void 0:e.getAvailableActions(n)})))},t.getEditsForRefactor=function(e,t,n){var i=r.get(t);return i&&i.getEditsForAction(e,n)}}(ts||(ts={})),function(e){!function(t){var r="addConvertToUnknownForNonOverlappingTypes",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.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.Debug.checkDefined(e.findAncestor(i,(function(t){return e.isAsExpression(t)||e.isTypeAssertionExpression(t)})),"Expected to find an assertion expression"),o=e.isAsExpression(a)?e.factory.createAsExpression(a.expression,e.factory.createKeywordTypeNode(152)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(152),a.expression);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){t.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(r){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,(function(t){var r=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(n,n,r)}));return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="addMissingAsync",n=[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(n,i,a,o){var s=a((function(t){return function(t,r,n,i){if(i&&i.has(e.getNodeId(n)))return;null==i||i.add(e.getNodeId(n));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(n,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(n))));t.replaceNode(r,n,a)}(t,n.sourceFile,i,o)}));return t.createCodeFixAction(r,s,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,r){if(r){var n=e.getTokenAtPosition(t,r.start);return e.findAncestor(n,(function(n){return n.getStart(t)<r.start||n.getEnd()>e.textSpanEnd(r)?"quit":(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))}))}}t.registerCodeFix({fixIds:[r],errorCodes:n,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,u=e.find(s.getDiagnosticsProducingTypeChecker().getDiagnostics(r,o),function(t,r){return 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},t)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,n)),l=a(r,u&&u.relatedInformation&&e.find(u.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(l){return[i(t,l,(function(r){return e.textChanges.ChangeTracker.with(t,r)}))]}},getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,(function(t,n){var c=n.relatedInformation&&e.find(n.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),u=a(o,c);if(u){return i(r,u,(function(e){return e(t),[]}),s)}}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="addMissingAwait",n=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,i=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],a=__spreadArray([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,n],i);function o(r,n,i,o,s,c){var _=r.sourceFile,d=r.program,p=r.cancellationToken,f=function(t,r,n,i,o){var s=function(t,r){if(e.isPropertyAccessExpression(t.parent)&&e.isIdentifier(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(e.isIdentifier(t))return{identifiers:[t],isCompleteFix:!0};if(e.isBinaryExpression(t)){for(var n=void 0,i=!0,a=0,o=[t.left,t.right];a<o.length;a++){var s=o[a],c=r.getTypeAtLocation(s);if(r.getPromisedTypeOfPromise(c)){if(!e.isIdentifier(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}}(t,o);if(!s)return;for(var c,l=s.isCompleteFix,_=function(t){var s=o.getSymbolAtLocation(t);if(!s)return"continue";var _=e.tryCast(s.valueDeclaration,e.isVariableDeclaration),d=_&&e.tryCast(_.name,e.isIdentifier),p=e.getAncestor(_,232);if(!_||!p||_.type||!_.initializer||p.getSourceFile()!==r||e.hasSyntacticModifier(p,1)||!d||!u(_.initializer))return l=!1,"continue";var f=i.getSemanticDiagnostics(r,n);if(e.FindAllReferences.Core.eachSymbolReferenceInFile(d,o,r,(function(n){return t!==n&&!function(t,r,n,i){var o=e.isPropertyAccessExpression(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)?t.parent:t,s=e.find(r,(function(e){return e.start===o.getStart(n)&&e.start+e.length===o.getEnd()}));return s&&e.contains(a,s.code)||1&i.getTypeAtLocation(o).flags}(n,f,r,o)})))return l=!1,"continue";(c||(c=[])).push({expression:_.initializer,declarationSymbol:s})},d=0,p=s.identifiers;d<p.length;d++){_(p[d])}return c&&{initializers:c,needsSecondPassForFixAll:!l}}(n,_,p,d,o);if(f){var g=s((function(t){e.forEach(f.initializers,(function(e){var r=e.expression;return l(t,i,_,o,r,c)})),c&&f.needsSecondPassForFixAll&&l(t,i,_,o,n,c)}));return t.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",g,1===f.initializers.length?[e.Diagnostics.Add_await_to_initializer_for_0,f.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function s(n,i,a,o,s,c){var u=s((function(e){return l(e,a,n.sourceFile,o,i,c)}));return t.createCodeFixAction(r,u,e.Diagnostics.Add_await,r,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function c(t,r,n,i,a){var o=e.getTokenAtPosition(t,n.start),s=e.findAncestor(o,(function(r){return r.getStart(t)<n.start||r.getEnd()>e.textSpanEnd(n)?"quit":e.isExpression(r)&&e.textSpansEqual(n,e.createTextSpanFromNode(r,t))}));return s&&function(t,r,n,i,a){var o=a.getDiagnosticsProducingTypeChecker().getDiagnostics(t,i);return e.some(o,(function(t){var i=t.start,a=t.length,o=t.relatedInformation,s=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_forget_to_use_await.code}))}))}(t,r,n,i,a)&&u(s)?s:void 0}function u(t){return 32768&t.kind||!!e.findAncestor(t,(function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t||e.isBlock(t)&&(251===t.parent.kind||208===t.parent.kind||209===t.parent.kind||165===t.parent.kind)}))}function l(t,r,a,o,s,c){if(e.isBinaryExpression(s))for(var u=0,l=[s.left,s.right];u<l.length;u++){var d=l[u];if(c&&e.isIdentifier(d))if((g=o.getSymbolAtLocation(d))&&c.has(e.getSymbolId(g)))continue;var p=o.getTypeAtLocation(d),f=o.getPromisedTypeOfPromise(p)?e.factory.createAwaitExpression(d):d;t.replaceNode(a,d,f)}else if(r===n&&e.isPropertyAccessExpression(s.parent)){if(c&&e.isIdentifier(s.parent.expression))if((g=o.getSymbolAtLocation(s.parent.expression))&&c.has(e.getSymbolId(g)))return;t.replaceNode(a,s.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s.parent.expression))),_(t,s.parent.expression,a)}else if(e.contains(i,r)&&e.isCallOrNewExpression(s.parent)){if(c&&e.isIdentifier(s))if((g=o.getSymbolAtLocation(s))&&c.has(e.getSymbolId(g)))return;t.replaceNode(a,s,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s))),_(t,s,a)}else{var g;if(c&&e.isVariableDeclaration(s.parent)&&e.isIdentifier(s.parent.name))if((g=o.getSymbolAtLocation(s.parent.name))&&!e.tryAddToSet(c,e.getSymbolId(g)))return;t.replaceNode(a,s,e.factory.createAwaitExpression(s))}}function _(t,r,n){var i=e.findPrecedingToken(r.pos,n);i&&e.positionIsASICandidate(i.end,i.parent,n)&&t.insertText(n,r.getStart(n),";")}t.registerCodeFix({fixIds:[r],errorCodes:a,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,i=c(r,n,t.span,t.cancellationToken,t.program);if(i){var a=t.program.getTypeChecker(),u=function(r){return e.textChanges.ChangeTracker.with(t,r)};return e.compact([o(t,i,n,a,u),s(t,i,n,a,u)])}},getAllCodeActions:function(r){var n=r.sourceFile,i=r.program,u=r.cancellationToken,l=r.program.getTypeChecker(),_=new e.Set;return t.codeFixAll(r,a,(function(e,t){var a=c(n,t.code,t,u,i);if(a){var d=function(t){return t(e),[]};return o(r,a,t.code,l,d,_)||s(r,a,t.code,l,d,_)}}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="addMissingConst",n=[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(t,r,n,i,s){var c=e.getTokenAtPosition(r,n),u=e.findAncestor(c,(function(t){return e.isForInOrOfStatement(t.parent)?t.parent.initializer===t:!function(e){switch(e.kind){case 78:case 199:case 200:case 288:case 289:return!0;default:return!1}}(t)&&"quit"}));if(u)return a(t,u,r,s);var l=c.parent;if(e.isBinaryExpression(l)&&62===l.operatorToken.kind&&e.isExpressionStatement(l.parent))return a(t,c,r,s);if(e.isArrayLiteralExpression(l)){var _=i.getTypeChecker();if(!e.every(l.elements,(function(t){return function(t,r){var n=e.isIdentifier(t)?t:e.isAssignmentExpression(t,!0)&&e.isIdentifier(t.left)?t.left:void 0;return!!n&&!r.getSymbolAtLocation(n)}(t,_)})))return;return a(t,l,r,s)}var d=e.findAncestor(c,(function(t){return!!e.isExpressionStatement(t.parent)||!function(e){switch(e.kind){case 78:case 216:case 27:return!0;default:return!1}}(t)&&"quit"}));if(d){if(!o(d,i.getTypeChecker()))return;return a(t,d,r,s)}}function a(t,r,n,i){i&&!e.tryAddToSet(i,r)||t.insertModifierBefore(n,84,r)}function o(t,r){return!!e.isBinaryExpression(t)&&(27===t.operatorToken.kind?e.every([t.left,t.right],(function(e){return o(e,r)})):62===t.operatorToken.kind&&e.isIdentifier(t.left)&&!r.getSymbolAtLocation(t.left))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.program)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,r.program,a)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="addMissingDeclareProperty",n=[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(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isIdentifier(a)){var o=a.parent;163!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(r,133,o)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Prefix_with_declare,r,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,a)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="addMissingInvocationForDecorator",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.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),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);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="addNameToNamelessParameter",n=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n);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);t.replaceNode(r,i,s)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="annotateWithTypeFromJSDoc",n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,a)}function a(t){return function(t){return e.isFunctionLikeDeclaration(t)||249===t.kind||162===t.kind||163===t.kind}(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some((function(t){return!!e.getJSDocType(t)})))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);i.length&&t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);a&&t.insertNodeBefore(r,e.first(n.parameters),e.factory.createToken(20));for(var o=0,s=n.parameters;o<s.length;o++){var u=s[o];if(!u.type){var l=e.getJSDocType(u);l&&t.tryInsertTypeAnnotation(r,u,c(l))}}if(a&&t.insertNodeAfter(r,e.last(n.parameters),e.factory.createToken(21)),!n.type){var _=e.getJSDocReturnType(n);_&&t.tryInsertTypeAnnotation(r,n,c(_))}}else{var d=e.Debug.checkDefined(e.getJSDocType(n),"A JSDocType for this declaration should exist");e.Debug.assert(!n.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(r,n,c(d))}}function c(t){switch(t.kind){case 303:case 304:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 307:return function(t){return e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}(t);case 306:return c(t.type);case 305:return function(t){return e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("null",e.emptyArray)])}(t);case 309:return function(t){return e.factory.createArrayTypeNode(e.visitNode(t.type,c))}(t);case 308:return function(t){var r;return e.factory.createFunctionTypeNode(e.emptyArray,t.parameters.map(u),null!==(r=t.type)&&void 0!==r?r:e.factory.createKeywordTypeNode(128))}(t);case 173:return function(t){var r=t.typeName,n=t.typeArguments;if(e.isIdentifier(t.typeName)){if(e.isJSDocIndexSignature(t))return function(t){var r=e.factory.createParameterDeclaration(void 0,void 0,void 0,144===t.typeArguments[0].kind?"n":"s",void 0,e.factory.createTypeReferenceNode(144===t.typeArguments[0].kind?"number":"string",[]),void 0),n=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[r],t.typeArguments[1])]);return e.setEmitFlags(n,1),n}(t);var i=t.typeName.text;switch(t.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)}r=e.factory.createIdentifier(i),n="Array"!==i&&"Promise"!==i||t.typeArguments?e.visitNodes(t.typeArguments,c):e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)])}return e.factory.createTypeReferenceNode(r,n)}(t);default:var r=e.visitEachChild(t,c,e.nullTransformationContext);return e.setEmitFlags(r,1),r}}function u(t){var r=t.parent.parameters.indexOf(t),n=309===t.type.kind&&r===t.parent.parameters.length-1,i=t.name||(n?"rest":"arg"+r),a=n?e.factory.createToken(25):t.dotDotDotToken;return e.factory.createParameterDeclaration(t.decorators,t.modifiers,a,i,t.questionToken,e.visitNode(t.type,c),t.initializer)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=i(n.sourceFile,n.span.start);if(a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return s(e,n.sourceFile,a)}));return[t.createCodeFixAction(r,o,e.Diagnostics.Annotate_with_type_from_JSDoc,r,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&s(e,t.file,r)}))}}),t.parameterShouldGetTypeFromJSDoc=a}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="convertFunctionToEs6Class",n=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function i(t,r,n,i,s,c){var u=i.getSymbolAtLocation(e.getTokenAtPosition(r,n));if(u&&19&u.flags){var l=u.valueDeclaration;if(e.isFunctionDeclaration(l))t.replaceNode(r,l,function(t){var r=p(u);t.body&&r.unshift(e.factory.createConstructorDeclaration(void 0,void 0,t.parameters,t.body));var n=a(t,92);return e.factory.createClassDeclaration(void 0,n,t.name,void 0,void 0,r)}(l));else if(e.isVariableDeclaration(l)){var _=function(t){var r=t.initializer;if(!r||!e.isFunctionExpression(r)||!e.isIdentifier(t.name))return;var n=p(t.symbol);r.body&&n.unshift(e.factory.createConstructorDeclaration(void 0,void 0,r.parameters,r.body));var i=a(t.parent.parent,92);return e.factory.createClassDeclaration(void 0,i,t.name,void 0,void 0,n)}(l);if(!_)return;var d=l.parent.parent;e.isVariableDeclarationList(l.parent)&&l.parent.declarations.length>1?(t.delete(r,l),t.insertNodeAfter(r,d,_)):t.replaceNode(r,d,_)}}function p(n){var i=[];return n.members&&n.members.forEach((function(e,n){if("constructor"!==n){var a=u(e,void 0);a&&i.push.apply(i,a)}else t.delete(r,e.valueDeclaration.parent)})),n.exports&&n.exports.forEach((function(t){if("prototype"===t.name){var r=t.declarations[0];if(1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&62===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right))(n=u(r.parent.right.symbol,void 0))&&i.push.apply(i,n)}else{var n;(n=u(t,[e.factory.createToken(123)]))&&i.push.apply(i,n)}})),i;function u(n,i){var u=[];if(!(8192&n.flags||4096&n.flags))return u;var l,_,d=n.valueDeclaration,p=d.parent,f=p.right;if(l=d,_=f,!(e.isAccessExpression(l)?e.isPropertyAccessExpression(l)&&o(l)||e.isFunctionLike(_):e.every(l.properties,(function(t){return!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))}))))return u;var g=p.parent&&233===p.parent.kind?p.parent:p;if(t.delete(r,g),!f)return u.push(e.factory.createPropertyDeclaration([],i,n.name,void 0,void 0,void 0)),u;if(e.isAccessExpression(d)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var m=e.getQuotePreference(r,s),y=function(t,r,n){if(e.isPropertyAccessExpression(t))return t.name;var i=t.argumentExpression;if(e.isNumericLiteral(i))return i;if(e.isStringLiteralLike(i))return e.isIdentifierText(i.text,r.target)?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===n):i;return}(d,c,m);return y?h(u,f,y):u}if(e.isObjectLiteralExpression(f))return e.flatMap(f.properties,(function(t){return e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)?u.concat(t):e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)?h(u,t.initializer,t.name):o(t)?u:[]}));if(e.isSourceFileJS(r))return u;if(!e.isPropertyAccessExpression(d))return u;var v=e.factory.createPropertyDeclaration(void 0,i,d.name,void 0,void 0,f);return e.copyLeadingComments(p.parent,v,r),u.push(v),u;function h(t,n,o){return e.isFunctionExpression(n)?function(t,n,o){var s=e.concatenate(i,a(n,129)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return e.copyLeadingComments(p,c,r),t.concat(c)}(t,n,o):function(t,n,o){var s,c=n.body;s=230===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var u=e.concatenate(i,a(n,129)),l=e.factory.createMethodDeclaration(void 0,u,void 0,o,void 0,void 0,n.parameters,void 0,s);return e.copyLeadingComments(p,l,r),t.concat(l)}(t,n,o)}}}}function a(t,r){return e.filter(t.modifiers,(function(e){return e.kind===r}))}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n.preferences,n.program.getCompilerOptions())}));return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r,n="convertToAsyncFunction",i=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],a=!0;function o(t,r,n,i){var a,o=e.getTokenAtPosition(r,n);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(r,n)),e.isFunctionLikeDeclaration)){var l=new e.Map,d=e.isInJSFile(a),p=function(t,r){if(!t.body)return new e.Set;var n=new e.Set;return e.forEachChild(t.body,(function t(i){s(i,r,"then")?(n.add(e.getNodeId(i)),e.forEach(i.arguments,t)):s(i,r,"catch")?(n.add(e.getNodeId(i)),e.forEachChild(i,t)):c(i,r)?n.add(e.getNodeId(i)):e.forEachChild(i,t)})),n}(a,i),f=function(t,r,n){var i=new e.Map,a=e.createMultiMap();return e.forEachChild(t,(function t(o){if(e.isIdentifier(o)){var s=r.getSymbolAtLocation(o);if(s){var c=m(r.getTypeAtLocation(o),r),l=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||n.has(l)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var _=o.text,d=a.get(_);if(d&&d.some((function(e){return e!==s}))){var p=u(o,a);i.set(l,p.identifier),n.set(l,p),a.add(_,s)}else{var f=e.getSynthesizedDeepClone(o);n.set(l,x(f)),a.add(_,s)}}}else{var g=e.firstOrUndefined(c.parameters),y=g&&e.isParameter(g.valueDeclaration)&&e.tryCast(g.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),v=u(y,a);n.set(l,v),a.add(y.text,s)}}}else e.forEachChild(o,t)})),e.getSynthesizedDeepCloneWithReplacements(t,!0,(function(t){if(e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent)){if((a=(n=r.getSymbolAtLocation(t.name))&&i.get(String(e.getSymbolId(n))))&&a.text!==(t.name||t.propertyName).getText())return e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,a,t.initializer)}else if(e.isIdentifier(t)){var n,a;if(a=(n=r.getSymbolAtLocation(t))&&i.get(String(e.getSymbolId(n))))return e.factory.createIdentifier(a.text)}}))}(a,i,l),g=f.body&&e.isBlock(f.body)?function(t,r){var n=[];return e.forEachReturnStatement(t,(function(t){e.isReturnStatementWithFixablePromiseHandler(t,r)&&n.push(t)})),n}(f.body,i):e.emptyArray,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:d};if(g.length){var v=a.modifiers?a.modifiers.end:a.decorators?e.skipTrivia(r.text,a.decorators.end):a.getStart(r),h=a.modifiers?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,v,129,h);for(var b=function(n){e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=_(a,y);t.replaceNodeWithNodes(r,n,o)}else e.isFunctionLike(a)||e.forEachChild(a,i)}))},D=0,S=g;D<S.length;D++){b(S[D])}}}}function s(t,r,n){if(!e.isCallExpression(t))return!1;var i=e.hasPropertyAccessExpressionWithName(t,n)&&r.getTypeAtLocation(t);return!(!i||!r.getPromisedTypeOfPromise(i))}function c(t,r){return!!e.isExpression(t)&&!!r.getPromisedTypeOfPromise(r.getTypeAtLocation(t))}function u(t,r){var n=(r.get(t.text)||e.emptyArray).length;return x(0===n?t:e.factory.createIdentifier(t.text+"_"+n))}function l(){return a=!1,e.emptyArray}function _(t,r,n){if(s(t,r.checker,"then"))return 0===t.arguments.length?l():function(t,r,n){var i=t.arguments,a=i[0],o=i[1],s=v(a,r),c=f(a,n,s,t,r);if(o){var u=v(o,r),l=e.factory.createBlock(_(t.expression,r,s).concat(c)),d=f(o,n,u,t,r),p=u?D(u)?u.identifier.text:u.bindingPattern:"e",g=e.factory.createVariableDeclaration(p),m=e.factory.createCatchClause(g,e.factory.createBlock(d));return[e.factory.createTryStatement(l,m,void 0)]}return _(t.expression,r,s).concat(c)}(t,r,n);if(s(t,r.checker,"catch"))return function(t,r,n){var i,a=e.singleOrUndefined(t.arguments),o=a?v(a,r):void 0;n&&!S(t,r)&&(D(n)?(i=n,r.synthNamesMap.forEach((function(t,i){if(t.identifier.text===n.identifier.text){var a=function(t){return x(e.factory.createUniqueName(t.identifier.text,16))}(n);r.synthNamesMap.set(i,a)}}))):i=x(e.factory.createUniqueName("result",16),n.types),i.hasBeenDeclared=!0);var s,c,u=e.factory.createBlock(_(t.expression,r,i)),l=a?f(a,i,o,t,r):e.emptyArray,d=o?D(o)?o.identifier.text:o.bindingPattern:"e",p=e.factory.createVariableDeclaration(d),g=e.factory.createCatchClause(p,e.factory.createBlock(l));if(i&&!S(t,r)){c=e.getSynthesizedDeepClone(i.identifier);var m=i.types,y=r.checker.getUnionType(m,2),h=r.isInJSFile?void 0:r.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 T=e.factory.createTryStatement(u,g,void 0),C=n&&c&&(E=n,1===E.kind)&&e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(n.bindingPattern),void 0,void 0,c)],2));var E;return e.compact([s,T,C])}(t,r,n);if(e.isPropertyAccessExpression(t))return _(t.expression,r,n);var i=r.checker.getTypeAtLocation(t);return i&&r.checker.getPromisedTypeOfPromise(i)?(e.Debug.assertNode(t.original.parent,e.isPropertyAccessExpression),function(t,r,n){if(S(t,r))return[e.factory.createReturnStatement(e.getSynthesizedDeepClone(t))];return d(n,e.factory.createAwaitExpression(t),void 0)}(t,r,n)):l()}function d(t,r,n){return!t||h(t)?[e.factory.createExpressionStatement(r)]:D(t)&&t.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(t.identifier),r))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(b(t)),void 0,n,r)],2))]}function p(t,r){if(r&&t){var n=e.factory.createUniqueName("result",16);return __spreadArray(__spreadArray([],d(x(n),t,r)),[e.factory.createReturnStatement(n)])}return[e.factory.createReturnStatement(t)]}function f(t,r,n,i,a){var o,s,u,_,f;switch(t.kind){case 103:break;case 201:case 78:if(!n)break;var v=e.factory.createCallExpression(e.getSynthesizedDeepClone(t),void 0,D(n)?[n.identifier]:[]);if(S(i,a))return p(v,null===(o=i.typeArguments)||void 0===o?void 0:o[0]);var h=a.checker.getTypeAtLocation(t),x=a.checker.getSignaturesOfType(h,0);if(!x.length)return l();var T=x[0].getReturnType(),C=d(r,e.factory.createAwaitExpression(v),null===(s=i.typeArguments)||void 0===s?void 0:s[0]);return r&&r.types.push(T),C;case 208:case 209:var E=t.body,k=null===(u=m(a.checker.getTypeAtLocation(t),a.checker))||void 0===u?void 0:u.getReturnType();if(e.isBlock(E)){for(var N=[],A=!1,F=0,P=E.statements;F<P.length;F++){var w=P[F];if(e.isReturnStatement(w))if(A=!0,e.isReturnStatementWithFixablePromiseHandler(w,a.checker))N=N.concat(y(a,[w],r));else{var I=k&&w.expression?g(a.checker,k,w.expression):w.expression;N.push.apply(N,p(I,null===(_=i.typeArguments)||void 0===_?void 0:_[0]))}else N.push(w)}return S(i,a)?N.map((function(t){return e.getSynthesizedDeepClone(t)})):function(t,r,n,i){for(var a=[],o=0,s=t;o<s.length;o++){var u=s[o];if(e.isReturnStatement(u)){if(u.expression){var l=c(u.expression,n.checker)?e.factory.createAwaitExpression(u.expression):u.expression;void 0===r?a.push(e.factory.createExpressionStatement(l)):a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(b(r),void 0,void 0,l)],2)))}}else a.push(e.getSynthesizedDeepClone(u))}i||void 0===r||a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(b(r),void 0,void 0,e.factory.createIdentifier("undefined"))],2)));return a}(N,r,a,A)}var O=y(a,e.isFixablePromiseHandler(E,a.checker)?[e.factory.createReturnStatement(E)]:e.emptyArray,r);if(O.length>0)return O;if(k){I=g(a.checker,k,E);if(S(i,a))return p(I,null===(f=i.typeArguments)||void 0===f?void 0:f[0]);var M=d(r,I,void 0);return r&&r.types.push(k),M}return l();default:return l()}return e.emptyArray}function g(t,r,n){var i=e.getSynthesizedDeepClone(n);return t.getPromisedTypeOfPromise(r)?e.factory.createAwaitExpression(i):i}function m(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function y(t,r,n){for(var i=[],a=0,o=r;a<o.length;a++){var s=o[a];e.forEachChild(s,(function r(a){if(e.isCallExpression(a)){var o=_(a,t,n);if((i=i.concat(o)).length>0)return}else e.isFunctionLike(a)||e.forEachChild(a,r)}))}return i}function v(t,r){var n,i=[];e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){if(e.isIdentifier(r))return a(r);var n=e.flatMap(r.elements,(function(r){return e.isOmittedExpression(r)?[]:[t(r.name)]}));return function(t,r,n){void 0===r&&(r=e.emptyArray);void 0===n&&(n=[]);return{kind:1,bindingPattern:t,elements:r,types:n}}(r,n)}(t.parameters[0].name)):e.isIdentifier(t)?n=a(t):e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&(n=a(t.name));if(n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n,a=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}((n=t).original?n.original:n);return a&&r.synthNamesMap.get(e.getSymbolId(a).toString())||x(t,i)}}function h(t){return!t||(D(t)?!t.identifier.text:e.every(t.elements,h))}function b(e){return D(e)?e.identifier:e.bindingPattern}function x(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1}}function D(e){return 0===e.kind}function S(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(e.getNodeId(t.original))}t.registerCodeFix({errorCodes:i,getCodeActions:function(r){a=!0;var i=e.textChanges.ChangeTracker.with(r,(function(e){return o(e,r.sourceFile,r.span.start,r.program.getTypeChecker())}));return a?[t.createCodeFixAction(n,i,e.Diagnostics.Convert_to_async_function,n,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,i,(function(t,r){return o(t,r.file,r.start,e.program.getTypeChecker())}))}}),function(e){e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"}(r||(r={}))}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){function r(t,r,n,i){for(var a=0,o=t.imports;a<o.length;a++){var s=o[a],c=e.getResolvedModule(t,s.text);if(c&&c.resolvedFileName===r.fileName){var u=e.importFromModuleSpecifier(s);switch(u.kind){case 260:n.replaceNode(t,u,e.makeImport(u.name,void 0,s,i));break;case 203:e.isRequireCall(u,!1)&&n.replaceNode(t,u,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(u),"default"))}}}}function n(t,r){t.forEachChild((function n(i){if(e.isPropertyAccessExpression(i)&&e.isExportsOrModuleExportsOrAlias(t,i.expression)&&e.isIdentifier(i.name)){var a=i.parent;r(i,e.isBinaryExpression(a)&&a.left===i&&62===a.operatorToken.kind)}i.forEachChild(n)}))}function i(t,r,n,i,u,l,_,p,f){switch(r.kind){case 232:return a(t,r,i,n,u,l,f),!1;case 233:var y=r.expression;switch(y.kind){case 203:return e.isRequireCall(y,!0)&&i.replaceNode(t,r,e.makeImport(void 0,void 0,y.arguments[0],f)),!1;case 216:return 62===y.operatorToken.kind&&function(t,r,n,i,a,u){var l=n.left,_=n.right;if(!e.isPropertyAccessExpression(l))return!1;if(e.isExportsOrModuleExportsOrAlias(t,l)){if(!e.isExportsOrModuleExportsOrAlias(t,_)){var p=e.isObjectLiteralExpression(_)?function(t,r){var n=e.mapAllOrFail(t.properties,(function(t){switch(t.kind){case 167:case 168:case 289:case 290:return;case 288:return e.isIdentifier(t.name)?function(t,r,n){var i=[e.factory.createToken(92)];switch(r.kind){case 208:var a=r.name;if(a&&a.text!==t)return o();case 209:return d(t,i,r,n);case 221:return function(t,r,n,i){return e.factory.createClassDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.heritageClauses),c(n.members,i))}(t,i,r,n);default:return o()}function o(){return g(i,e.factory.createIdentifier(t),c(r,n))}}(t.name.text,t.initializer,r):void 0;case 165:return e.isIdentifier(t.name)?d(t.name.text,[e.factory.createToken(92)],t,r):void 0;default:e.Debug.assertNever(t,"Convert to ES6 got invalid prop kind "+t.kind)}}));return n&&[n,!1]}(_,u):e.isRequireCall(_,!0)?function(t,r){var n=t.text,i=r.getSymbolAtLocation(t),a=i?i.exports:e.emptyMap;return a.has("export=")?[[s(n)],!0]:a.has("default")?a.size>1?[[o(n),s(n)],!0]:[[s(n)],!0]:[[o(n)],!1]}(_.arguments[0],r):void 0;return p?(i.replaceNodeWithNodes(t,n.parent,p[0]),p[1]):(i.replaceRangeWithText(t,e.createRange(l.getStart(t),_.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,l.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[g(void 0,o,r.right),m([e.factory.createExportSpecifier(o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!function(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.factory.createToken(92),e.factory.createToken(84)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(92),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,a);return!1}(t,n,y,i,_,p)}default:return!1}}function a(r,n,i,a,o,s,c){var l,_=n.declarationList,d=!1,m=e.map(_.declarations,(function(n){var i=n.name,l=n.initializer;if(l){if(e.isExportsOrModuleExportsOrAlias(r,l))return d=!0,y([]);if(e.isRequireCall(l,!0))return d=!0,function(r,n,i,a,o,s){switch(r.kind){case 196:var c=e.mapAllOrFail(r.elements,(function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:f(t.propertyName&&t.propertyName.text,t.name.text)}));if(c)return y([e.makeImport(void 0,c,n,s)]);case 197:var l=u(t.moduleSpecifierToValidIdentifier(n.text,o),a);return y([e.makeImport(e.factory.createIdentifier(l),void 0,n,s),g(void 0,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(l))]);case 78:return function(t,r,n,i,a){for(var o,s=n.getSymbolAtLocation(t),c=new e.Map,l=!1,_=0,d=i.original.get(t.text);_<d.length;_++){var p=d[_];if(n.getSymbolAtLocation(p)===s&&p!==t){var f=p.parent;if(e.isPropertyAccessExpression(f)){var g=f.expression,m=f.name.text;e.Debug.assert(g===p,"Didn't expect expression === use");var v=c.get(m);void 0===v&&(v=u(m,i),c.set(m,v)),(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(v))}else l=!0}}var h=0===c.size?void 0:e.arrayFrom(e.mapIterator(c.entries(),(function(t){var r=t[0],n=t[1];return e.factory.createImportSpecifier(r===n?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(n))})));h||(l=!0);return y([e.makeImport(l?e.getSynthesizedDeepClone(t):void 0,h,r,a)],o)}(r,n,i,a,s);default:return e.Debug.assertNever(r,"Convert to ES6 module got invalid name kind "+r.kind)}}(i,l.arguments[0],a,o,s,c);if(e.isPropertyAccessExpression(l)&&e.isRequireCall(l.expression,!0))return d=!0,function(t,r,n,i,a){switch(t.kind){case 196:case 197:var o=u(r,i);return y([p(o,r,n,a),g(void 0,t,e.factory.createIdentifier(o))]);case 78:return y([p(t.text,r,n,a)]);default:return e.Debug.assertNever(t,"Convert to ES6 module got invalid syntax form "+t.kind)}}(i,l.name.text,l.expression.arguments[0],o,c)}return y([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([n],_.flags))])}));if(d)return i.replaceNodeWithNodes(r,n,e.flatMap(m,(function(e){return e.newImports}))),e.forEach(m,(function(t){t.useSitesToUnqualify&&e.copyEntries(t.useSitesToUnqualify,null!=l?l:l=new e.Map)})),l}function o(e){return m(void 0,e)}function s(t){return m([e.factory.createExportSpecifier(void 0,"default")],t)}function c(t,r){return r&&e.some(e.arrayFrom(r.keys()),(function(r){return e.rangeContainsRange(t,r)}))?e.isArray(t)?e.getSynthesizedDeepClonesWithReplacements(t,!0,n):e.getSynthesizedDeepCloneWithReplacements(t,!0,n):t;function n(e){if(201===e.kind){var t=r.get(e);return r.delete(e),t}}}function u(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.add(e),e}function l(t){var r=e.createMultiMap();return _(t,(function(e){return r.add(e.text,e)})),r}function _(t,r){e.isIdentifier(t)&&function(e){var t=e.parent;switch(t.kind){case 201:return t.name!==e;case 198:case 265:return t.propertyName!==e;default:return!0}}(t)&&r(t),t.forEachChild((function(e){return _(e,r)}))}function d(t,r,n,i){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.factory.converters.convertToFunctionBlock(c(n.body,i)))}function p(t,r,n,i){return"default"===r?e.makeImport(e.factory.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[f(r,t)],n,i)}function f(t,r){return e.factory.createImportSpecifier(void 0!==t&&t!==r?e.factory.createIdentifier(t):void 0,e.factory.createIdentifier(r))}function g(t,r,n){return e.factory.createVariableStatement(t,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(r,void 0,void 0,n)],2))}function m(t,r){return e.factory.createExportDeclaration(void 0,void 0,!1,t&&e.factory.createNamedExports(t),void 0===r?void 0:e.factory.createStringLiteral(r))}function y(e,t){return{newImports:e,useSitesToUnqualify:t}}t.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,_=o.preferences,d=e.textChanges.ChangeTracker.with(o,(function(t){if(function(t,r,o,s,c){var _={original:l(t),additional:new e.Set},d=function(t,r,i){var a=new e.Map;return n(t,(function(t){var n=t.name,o=n.text,s=n.originalKeywordKind;!a.has(o)&&(void 0!==s&&e.isNonContextualKeyword(s)||r.resolveName(o,t,111551,!0))&&a.set(o,u("_"+o,i))})),a}(t,r,_);!function(t,r,i){n(t,(function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.factory.createIdentifier(r.get(o)||o))}}))}(t,d,o);for(var p,f=!1,g=0,m=e.filter(t.statements,e.isVariableStatement);g<m.length;g++){var y=m[g],v=a(t,y,o,r,_,s,c);v&&e.copyEntries(v,null!=p?p:p=new e.Map)}for(var h=0,b=e.filter(t.statements,(function(t){return!e.isVariableStatement(t)}));h<b.length;h++){y=b[h];var x=i(t,y,r,o,_,s,d,p,c);f=f||x}return null==p||p.forEach((function(e,r){o.replaceNode(t,r,e)})),f}(s,c.getTypeChecker(),t,c.getCompilerOptions().target,e.getQuotePreference(s,_)))for(var o=0,d=c.getSourceFiles();o<d.length;o++){var p=d[o];r(p,s,t,e.getQuotePreference(p,_))}}));return[t.createCodeFixActionWithoutFixAll("convertToEs6Module",d,e.Diagnostics.Convert_to_ES6_module)]}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="correctQualifiedNameToIndexedAccessType",n=[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(t,r){var n=e.findAncestor(e.getTokenAtPosition(t,r),e.isQualifiedName);return e.Debug.assert(!!n,"Expected position to be owned by a qualified name."),e.isIdentifier(n.left)?n:void 0}function a(t,r,n){var i=n.right.text,a=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(n.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(i)));t.replaceNode(r,n,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=i(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,n.sourceFile,o)})),c=o.left.text+'["'+o.right.text+'"]';return[t.createCodeFixAction(r,s,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,c],r,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],n="convertToTypeOnlyExport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isExportSpecifier)}function a(t,n,i){if(n){var a=n.parent,o=a.parent,s=function(t,n){var i=t.parent;if(1===i.elements.length)return i.elements;var a=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(i),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return e.filter(i.elements,(function(n){var i;return n===t||(null===(i=e.findDiagnosticForNode(n,a))||void 0===i?void 0:i.code)===r[0]}))}(n,i);if(s.length===a.elements.length)t.insertModifierBefore(i.sourceFile,149,a);else{var c=e.factory.updateExportDeclaration(o,o.decorators,o.modifiers,!1,e.factory.updateNamedExports(a,e.filter(a.elements,(function(t){return!e.contains(s,t)}))),o.moduleSpecifier),u=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(s),o.moduleSpecifier);t.replaceNode(i.sourceFile,o,c,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),t.insertNodeAfter(i.sourceFile,o,u)}}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i(r.span,r.sourceFile),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_export,n,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[n],getAllCodeActions:function(n){var o=new e.Map;return t.codeFixAll(n,r,(function(t,r){var s=i(r,n.sourceFile);s&&e.addToSeen(o,e.getNodeId(s.parent.parent))&&a(t,s,n)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],n="convertToTypeOnlyImport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isImportDeclaration)}function a(t,r,n){if(null==r?void 0:r.importClause){var i=r.importClause;t.insertText(n.sourceFile,r.getStart()+"import".length," type"),i.name&&i.namedBindings&&(t.deleteNodeRangeExcludingEnd(n.sourceFile,i.name,r.importClause.namedBindings),t.insertNodeBefore(n.sourceFile,r,e.factory.updateImportDeclaration(r,void 0,void 0,e.factory.createImportClause(!0,i.name,void 0),r.moduleSpecifier)))}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){a(e,i(r.span,r.sourceFile),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_import,n,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){a(t,i(r,e.sourceFile),e)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="convertLiteralTypeToMappedType",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.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=e.cast(n.parent.parent,e.isPropertySignature),a=n.getText(t);return{container:e.cast(i.parent,e.isTypeLiteralNode),typeNode:i.type,constraint:a,name:"K"===a?"P":"K"}}}function a(t,r,n){var i=n.container,a=n.typeNode,o=n.constraint,s=n.name;t.replaceNode(r,i,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(s,e.factory.createTypeReferenceNode(o)),void 0,void 0,a))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var u=c.name,l=c.constraint,_=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,_,[e.Diagnostics.Convert_0_to_1_in_0,l,u],r,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r=[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],n="fixClassIncorrectlyImplementsInterface";function i(t,r){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(t,r)),"There should be a containing class")}function a(t){return!(t.valueDeclaration&&8&e.getEffectiveModifierFlags(t.valueDeclaration))}function o(r,n,i,o,s,c){var u=r.program.getTypeChecker(),l=function(t,r){var n=e.getEffectiveBaseTypeNode(t);if(!n)return e.createSymbolTable();var i=r.getTypeAtLocation(n),o=r.getPropertiesOfType(i);return e.createSymbolTable(o.filter(a))}(o,u),_=u.getTypeAtLocation(n),d=u.getPropertiesOfType(_).filter(e.and(a,(function(e){return!l.has(e.escapedName)}))),p=u.getTypeAtLocation(o),f=e.find(o.members,(function(t){return e.isConstructorDeclaration(t)}));p.getNumberIndexType()||m(_,1),p.getStringIndexType()||m(_,0);var g=t.createImportAdder(i,r.program,c,r.host);function m(e,n){var a=u.getIndexInfoOfType(e,n);a&&y(i,o,u.indexInfoToIndexSignatureDeclaration(a,n,o,void 0,t.getNoopSymbolTrackerWithResolver(r)))}function y(e,t,r){f?s.insertNodeAfter(e,f,r):s.insertNodeAtClassStart(e,t,r)}t.createMissingMemberNodes(o,d,i,r,c,g,(function(e){return y(i,o,e)})),g.writeFixes(s)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,s=r.span,c=i(a,s.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(c),(function(i){var s=e.textChanges.ChangeTracker.with(r,(function(e){return o(r,i,a,c,e,r.preferences)}));return 0===s.length?void 0:t.createCodeFixAction(n,s,[e.Diagnostics.Implement_interface_0,i.getText(a)],n,e.Diagnostics.Implement_all_unimplemented_interfaces)}))},fixIds:[n],getAllCodeActions:function(n){var a=new e.Map;return t.codeFixAll(n,r,(function(t,r){var s=i(r.file,r.start);if(e.addToSeen(a,e.getNodeId(s)))for(var c=0,u=e.getEffectiveImplementsTypeNodes(s);c<u.length;c++){var l=u[c];o(n,l,r.file,s,t,n.preferences)}}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){t.importFixName="import";var r,n,i="fixMissingImport",a=[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];function o(t,r,n,i,a){var o=r.getCompilerOptions(),c=[],l=[],_=new e.Map,p=new e.Map;return{addImportFromDiagnostic:function(e,t){var r=f(t,e.code,e.start,n);if(!r||!r.fixes.length)return;g(r)},addImportFromExportedSymbol:function(c,l){var _=e.Debug.checkDefined(c.parent),p=e.getNameForExportedSymbol(c,e.getEmitScriptTarget(o)),f=r.getTypeChecker(),m=f.getMergedSymbol(e.skipAlias(c,f)),y=u(t,m,_,p,a,r,n),v=!!l&&2===o.importsNotUsedAsValues,h=d(t,r);g({fixes:[s(t,y,_,p,r,void 0,v,h,a,i)],symbolName:p})},writeFixes:function(r){for(var n,a=e.getQuotePreference(t,i),o=0,s=c;o<s.length;o++){var u=s[o];S(r,t,u)}for(var d=0,f=l;d<f.length;d++){u=f[d];T(r,t,u,a)}_.forEach((function(e){var n=e.importClauseOrBindingPattern,i=e.defaultImport,a=e.namedImports,o=e.canUseTypeOnlyImport;D(r,t,n,i,a,o)})),p.forEach((function(t,r){var i=t.useRequire,o=__rest(t,["useRequire"]),s=i?k:E;n=e.combine(n,s(r,a,o))})),n&&e.insertImports(r,t,n,!0)}};function g(t){var r=t.fixes,n=t.symbolName,i=e.first(r);switch(i.kind){case 0:c.push(i);break;case 1:l.push(i);break;case 2:var a=i.importClauseOrBindingPattern,o=i.importKind,s=i.canUseTypeOnlyImport,u=String(e.getNodeId(a));(d=_.get(u))||_.set(u,d={importClauseOrBindingPattern:a,defaultImport:void 0,namedImports:[],canUseTypeOnlyImport:s}),0===o?e.pushIfUnique(d.namedImports,n):(e.Debug.assert(void 0===d.defaultImport||d.defaultImport===n,"(Add to Existing) Default import should be missing or match symbolName"),d.defaultImport=n);break;case 3:var d,f=i.moduleSpecifier,g=(o=i.importKind,i.useRequire),m=i.typeOnly;switch((d=p.get(f))?d.typeOnly=d.typeOnly&&m:p.set(f,d={namedImports:[],namespaceLikeImport:void 0,typeOnly:m,useRequire:g}),o){case 1:e.Debug.assert(void 0===d.defaultImport||d.defaultImport===n,"(Add new) Default import should be missing or match symbolName"),d.defaultImport=n;break;case 0:e.pushIfUnique(d.namedImports||(d.namedImports=[]),n);break;case 3:case 2:e.Debug.assert(void 0===d.namespaceLikeImport||d.namespaceLikeImport.name===n,"Namespacelike import shoudl be missing or match symbolName"),d.namespaceLikeImport={importKind:o,name:n}}break;default:e.Debug.assertNever(i,"fix wasn't never - got kind "+i.kind)}}}function s(t,r,n,i,a,o,s,c,u,l){return e.Debug.assert(r.some((function(e){return e.moduleSymbol===n})),"Some exportInfo should match the specified moduleSymbol"),g(_(r,i,o,s,c,a,t,u,l),t,a,u)}function c(t,r,n,i,a){var o,s,c=i.getCompilerOptions(),u=d(i.getTypeChecker());if(u)return u;var _=null===(s=null===(o=a.getPackageJsonAutoImportProvider)||void 0===o?void 0:o.call(a))||void 0===s?void 0:s.getTypeChecker();return e.Debug.checkDefined(_&&d(_),"Could not find symbol in specified module for code actions");function d(i){var a=v(n,r,i,c);if(a&&e.skipAlias(a.symbol,i)===t)return{moduleSymbol:r,importKind:a.kind,exportedSymbolIsTypeOnly:l(t,i)};var o=i.tryGetMemberInModuleExportsAndProperties(t.name,r);return o&&e.skipAlias(o,i)===t?{moduleSymbol:r,importKind:0,exportedSymbolIsTypeOnly:l(t,i)}:void 0}}function u(t,r,n,i,a,o,s){var c=[],u=o.getCompilerOptions();return F(o,a,t,!1,s,(function(a,o,s){var _=s.getTypeChecker();if(!o||a===n||!e.startsWith(t.fileName,e.getDirectoryPath(o.fileName))){var d=v(t,a,_,u);!d||d.name!==i&&w(a,u.target)!==i||e.skipAlias(d.symbol,_)!==r||c.push({moduleSymbol:a,importKind:d.kind,exportedSymbolIsTypeOnly:l(d.symbol,_)});for(var p=0,f=_.getExportsAndPropertiesOfModule(a);p<f.length;p++){var g=f[p];g.name===i&&e.skipAlias(g,_)===r&&c.push({moduleSymbol:a,importKind:0,exportedSymbolIsTypeOnly:l(g,_)})}}})),c}function l(t,r){return!(111551&e.skipAlias(t,r).flags)}function _(t,r,n,i,a,o,s,c,u){var l=o.getTypeChecker(),_=e.flatMap(t,(function(t){return function(t,r,n){var i=t.moduleSymbol,a=t.importKind;return t.exportedSymbolIsTypeOnly&&e.isSourceFileJS(n)?e.emptyArray:e.mapDefined(n.imports,(function(t){var n=e.importFromModuleSpecifier(t);return e.isRequireVariableDeclaration(n.parent,!0)?r.resolveExternalModuleName(t)===i?{declaration:n.parent,importKind:a}:void 0:(261===n.kind||260===n.kind)&&r.getSymbolAtLocation(t)===i?{declaration:n,importKind:a}:void 0}))}(t,l,s)})),d=void 0===n?void 0:function(t,r,n,i){return e.firstDefined(t,(function(t){var a=t.declaration,o=function(t){var r,n,i;switch(t.kind){case 249:return null===(r=e.tryCast(t.name,e.isIdentifier))||void 0===r?void 0:r.text;case 260:return t.name.text;case 261:return null===(i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport))||void 0===i?void 0:i.name.text;default:return e.Debug.assertNever(t)}}(a);if(o){var s=function(t,r){var n;switch(t.kind){case 249:return r.resolveExternalModuleName(t.initializer.arguments[0]);case 260:return r.getAliasedSymbol(t.symbol);case 261:var i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport);return i&&r.getAliasedSymbol(i.symbol);default:return e.Debug.assertNever(t)}}(a,i);if(s&&s.exports.has(e.escapeLeadingUnderscores(r)))return{kind:0,namespacePrefix:o,position:n}}}))}(_,r,n,l),f=function(t,r){return e.firstDefined(t,(function(e){var t=e.declaration,n=e.importKind;if(260!==t.kind){if(249===t.kind)return 0!==n&&1!==n||196!==t.name.kind?void 0:{kind:2,importClauseOrBindingPattern:t.name,importKind:n,moduleSpecifier:t.initializer.arguments[0].text,canUseTypeOnlyImport:!1};var i=t.importClause;if(i){var a=i.name,o=i.namedBindings;return 1===n&&!a||0===n&&(!o||264===o.kind)?{kind:2,importClauseOrBindingPattern:i,importKind:n,moduleSpecifier:t.moduleSpecifier.getText(),canUseTypeOnlyImport:r}:void 0}}}))}(_,void 0!==n&&function(t,r){return e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(t,r))}(s,n)),g=f?[f]:function(t,r,n,i,a,o,s,c,u){var l=e.firstDefined(r,(function(t){return function(t,r,n){var i=t.declaration,a=t.importKind,o=261===i.kind?i.moduleSpecifier:249===i.kind?i.initializer.arguments[0]:272===i.moduleReference.kind?i.moduleReference.expression:void 0;return o&&e.isStringLiteral(o)?{kind:3,moduleSpecifier:o.text,importKind:a,typeOnly:r,useRequire:n}:void 0}(t,o,s)}));return l?[l]:p(n,i,a,o,s,t,c,u)}(t,_,o,s,n,i,a,c,u);return __spreadArray(__spreadArray([],d?[d]:e.emptyArray),g)}function d(t,r){if(!e.isSourceFileJS(t))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;var n=r.getCompilerOptions();if(n.configFile)return e.getEmitModuleKind(n)<e.ModuleKind.ES2015;for(var i=0,a=r.getSourceFiles();i<a.length;i++){var o=a[i];if(o!==t&&e.isSourceFileJS(o)&&!r.isSourceFileFromExternalLibrary(o)){if(o.commonJsModuleIndicator&&!o.externalModuleIndicator)return!0;if(o.externalModuleIndicator&&!o.commonJsModuleIndicator)return!1}}return!0}function p(t,r,n,i,a,o,s,c){var u=e.isSourceFileJS(r),l=t.getCompilerOptions();return e.flatMap(o,(function(o){var _=o.moduleSymbol,d=o.importKind,p=o.exportedSymbolIsTypeOnly;return e.moduleSpecifiers.getModuleSpecifiers(_,t.getTypeChecker(),l,r,e.createModuleSpecifierResolutionHost(t,s),c).map((function(t){return p&&u?{kind:1,moduleSpecifier:t,position:e.Debug.checkDefined(n,"position should be defined")}:{kind:3,moduleSpecifier:t,importKind:d,useRequire:a,typeOnly:i}}))}))}function f(t,r,n,i){var a,o,s,c,u,p=e.getTokenAtPosition(t.sourceFile,n),f=r===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(t,r){var n=t.sourceFile,i=t.program,a=t.host,o=t.preferences,s=i.getTypeChecker(),c=function(t,r){var n=e.isIdentifier(t)?r.getSymbolAtLocation(t):void 0;if(e.isUMDExportSymbol(n))return n;var i=t.parent;return e.isJsxOpeningLikeElement(i)&&i.tagName===t||e.isJsxOpeningFragment(i)?e.tryCast(r.resolveName(r.getJsxNamespace(i),e.isJsxOpeningLikeElement(i)?t:i,111551,!1),e.isUMDExportSymbol):void 0}(r,s);if(!c)return;var u=s.getAliasedSymbol(c),l=c.name,p=[{moduleSymbol:u,importKind:y(n,i.getCompilerOptions()),exportedSymbolIsTypeOnly:!1}],f=d(n,i);return{fixes:_(p,l,e.isIdentifier(r)?r.getStart(n):void 0,!1,f,i,n,a,o),symbolName:l}}(t,p):e.isIdentifier(p)?function(t,r,n){var i=t.sourceFile,a=t.program,o=t.cancellationToken,s=t.host,c=t.preferences,u=a.getTypeChecker(),p=function(t,r,n){var i=n.parent;if((e.isJsxOpeningLikeElement(i)||e.isJsxClosingElement(i))&&i.tagName===n){var a=r.getJsxNamespace(t);if(e.isIntrinsicJsxName(n.text)||!r.resolveName(a,i,111551,!0))return a}return n.text}(i,u,r);e.Debug.assert("default"!==p,"'default' isn't a legal identifier and couldn't occur here");var f=2===a.getCompilerOptions().importsNotUsedAsValues&&e.isValidTypeOnlyAliasUseSite(r),g=d(i,a),m=function(t,r,n,i,a,o,s){var c=e.createMultiMap();function u(t,r,n,i){c.add(e.getUniqueSymbolId(r,i).toString(),{moduleSymbol:t,importKind:n,exportedSymbolIsTypeOnly:l(r,i)})}return F(a,s,i,!0,o,(function(e,a,o){var s=o.getTypeChecker();n.throwIfCancellationRequested();var c=o.getCompilerOptions(),l=v(i,e,s,c);l&&(l.name===t||w(e,c.target)===t)&&A(l.symbolForMeaning,r)&&u(e,l.symbol,l.kind,s);var _=s.tryGetMemberInModuleExportsAndProperties(t,e);_&&A(_,r)&&u(e,_,0,s)})),c}(p,e.getMeaningFromLocation(r),o,i,a,n,s);return{fixes:e.arrayFrom(e.flatMapIterator(m.entries(),(function(e){e[0];return _(e[1],p,r.getStart(i),f,g,a,i,s,c)}))),symbolName:p}}(t,p,i):void 0;return f&&__assign(__assign({},f),{fixes:(a=f.fixes,o=t.sourceFile,s=t.program,c=t.host,u=O(o,s,c).allowsImportingSpecifier,e.sort(a,(function(t,r){return e.compareValues(t.kind,r.kind)||m(t,r,u)})))})}function g(e,t,r,n){if(0===e[0].kind||2===e[0].kind)return e[0];var i=O(t,r,n).allowsImportingSpecifier;return e.reduce((function(e,t){return-1===m(t,e,i)?t:e}))}function m(t,r,n){return 0!==t.kind&&0!==r.kind?e.compareBooleans(n(t.moduleSpecifier),n(r.moduleSpecifier))||e.compareNumberOfDirectorySeparators(t.moduleSpecifier,r.moduleSpecifier):0}function y(t,r){if(e.getAllowSyntheticDefaultImports(r))return 1;var n=e.getEmitModuleKind(r);switch(n){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(t)&&e.isExternalModule(t)?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(n,"Unexpected moduleKind "+n)}}function v(e,t,r,n){var i=function(e,t,r,n){var i=r.tryGetMemberInModuleExports("default",t);if(i)return{symbol:i,kind:1};var a=r.resolveExternalModuleSymbol(t);return a===t?void 0:{symbol:a,kind:h(e,n)}}(e,t,r,n);if(i){var a=i.symbol,o=i.kind,s=b(a,r,n);return s&&__assign({symbol:a,kind:o},s)}}function h(t,r){var n=e.getAllowSyntheticDefaultImports(r);if(e.getEmitModuleKind(r)>=e.ModuleKind.ES2015)return n?1:2;if(e.isInJSFile(t))return e.isExternalModule(t)?1:3;for(var i=0,a=t.statements;i<a.length;i++){var o=a[i];if(e.isImportEqualsDeclaration(o))return 3}return n?1:3}function b(t,r,n){var i=e.getLocalSymbolForExportDefault(t);if(i)return{symbolForMeaning:i,name:i.name};var a,o=(a=t).declarations&&e.firstDefined(a.declarations,(function(t){var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:e.isExportSpecifier(t)?(e.Debug.assert("default"===t.name.text,"Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text):void 0}));if(void 0!==o)return{symbolForMeaning:t,name:o};if(2097152&t.flags){var s=r.getImmediateAliasedSymbol(t);if(s&&s.parent)return b(s,r,n)}return"default"!==t.escapedName&&"export="!==t.escapedName?{symbolForMeaning:t,name:t.getName()}:{symbolForMeaning:t,name:e.getNameForExportedSymbol(t,n.target)}}function x(r,n,a,o,s){var c,u=e.textChanges.ChangeTracker.with(r,(function(t){c=function(t,r,n,i,a){switch(i.kind){case 0:return S(t,r,i),[e.Diagnostics.Change_0_to_1,n,i.namespacePrefix+"."+n];case 1:return T(t,r,i,a),[e.Diagnostics.Change_0_to_1,n,C(i.moduleSpecifier,a)+n];case 2:var o=i.importClauseOrBindingPattern,s=i.importKind,c=i.canUseTypeOnlyImport,u=i.moduleSpecifier;D(t,r,o,1===s?n:void 0,0===s?[n]:e.emptyArray,c);var l=e.stripQuotes(u);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,n,l];case 3:s=i.importKind,u=i.moduleSpecifier;var _=i.typeOnly,d=i.useRequire?k:E,p=1===s?{defaultImport:n,typeOnly:_}:0===s?{namedImports:[n],typeOnly:_}:{namespaceLikeImport:{importKind:s,name:n},typeOnly:_};return e.insertImports(t,r,d(u,a,p),!0),[1===s?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,n,u];default:return e.Debug.assertNever(i,"Unexpected fix kind "+i.kind)}}(t,n,a,o,s)}));return t.createCodeFixAction(t.importFixName,u,c,i,e.Diagnostics.Add_all_missing_imports)}function D(t,r,n,i,a,o){if(196!==n.kind){var s=!o&&n.isTypeOnly;if(i&&(e.Debug.assert(!n.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(r,n.getStart(r),e.factory.createIdentifier(i),{suffix:", "})),a.length){var c=n.namedBindings&&e.cast(n.namedBindings,e.isNamedImports).elements,u=e.stableSort(a.map((function(t){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(t))})),e.OrganizeImports.compareImportOrExportSpecifiers);if((null==c?void 0:c.length)&&e.OrganizeImports.importSpecifiersAreSorted(c))for(var l=0,_=u;l<_.length;l++){var d=_[l],p=e.OrganizeImports.getImportSpecifierInsertionIndex(c,d),f=n.namedBindings.elements[p-1];f?t.insertNodeInListAfter(r,f,d):t.insertNodeBefore(r,c[0],d,!e.positionsAreOnSameLine(c[0].getStart(),n.parent.getStart(),r))}else if(null==c?void 0:c.length)for(var g=0,m=u;g<m.length;g++){d=m[g];t.insertNodeInListAfter(r,e.last(c),d,c)}else if(u.length){var y=e.factory.createNamedImports(u);n.namedBindings?t.replaceNode(r,n.namedBindings,y):t.insertNodeAfter(r,e.Debug.checkDefined(n.name,"Import clause must have either named imports or a default import"),y)}}s&&t.delete(r,e.getTypeKeywordOfTypeOnlyImport(n,r))}else{i&&b(n,i,"default");for(var v=0,h=a;v<h.length;v++){b(n,h[v],void 0)}}function b(n,i,a){var o=e.factory.createBindingElement(void 0,a,i);n.elements.length?t.insertNodeInListAfter(r,e.last(n.elements),o):t.replaceNode(r,n,e.factory.createObjectBindingPattern([o]))}}function S(e,t,r){var n=r.namespacePrefix,i=r.position;e.insertText(t,i,n+".")}function T(e,t,r,n){var i=r.moduleSpecifier,a=r.position;e.insertText(t,a,C(i,n))}function C(t,r){var n=e.getQuoteFromPreference(r);return"import("+n+t+n+")."}function E(t,r,n){var i,a,o,s=e.makeStringLiteral(t,r);(void 0!==n.defaultImport||(null===(i=n.namedImports)||void 0===i?void 0:i.length))&&(o=e.combine(o,e.makeImport(void 0===n.defaultImport?void 0:e.factory.createIdentifier(n.defaultImport),null===(a=n.namedImports)||void 0===a?void 0:a.map((function(t){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(t))})),t,r,n.typeOnly)));var c=n.namespaceLikeImport,u=n.typeOnly;if(c){var l=3===c.importKind?e.factory.createImportEqualsDeclaration(void 0,void 0,u,e.factory.createIdentifier(c.name),e.factory.createExternalModuleReference(s)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(u,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(c.name))),s);o=e.combine(o,l)}return e.Debug.checkDefined(o)}function k(t,r,n){var i,a,o,s=e.makeStringLiteral(t,r);if(n.defaultImport||(null===(i=n.namedImports)||void 0===i?void 0:i.length)){var c=(null===(a=n.namedImports)||void 0===a?void 0:a.map((function(t){return e.factory.createBindingElement(void 0,void 0,t)})))||[];n.defaultImport&&c.unshift(e.factory.createBindingElement(void 0,"default",n.defaultImport));var u=N(e.factory.createObjectBindingPattern(c),s);o=e.combine(o,u)}if(n.namespaceLikeImport){u=N(n.namespaceLikeImport.name,s);o=e.combine(o,u)}return e.Debug.checkDefined(o)}function N(t,r){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration("string"==typeof t?e.factory.createIdentifier(t):t,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[r]))],2))}function A(t,r){var n=t.declarations;return e.some(n,(function(t){return!!(e.getMeaningFromDeclaration(t)&r)}))}function F(t,r,n,i,a,o){var s,c;P(t,r,n,i,(function(e,r){return o(e,r,t,!1)}));var u=a&&(null===(s=r.getPackageJsonAutoImportProvider)||void 0===s?void 0:s.call(r));if(u){var l=e.timestamp();P(u,r,n,i,(function(e,t){return o(e,t,u,!0)})),null===(c=r.log)||void 0===c||c.call(r,"forEachExternalModuleToImportFrom autoImportProvider: "+(e.timestamp()-l))}}function P(t,r,n,i,a){var o,s=0,c=e.createModuleSpecifierResolutionHost(t,r),u=i&&O(n,t,r,c);!function(t,r,n){for(var i=0,a=t.getAmbientModules();i<a.length;i++){n(a[i],void 0)}for(var o=0,s=r;o<s.length;o++){var c=s[o];e.isExternalOrCommonJsModule(c)&&n(t.getMergedSymbol(c.symbol),c)}}(t.getTypeChecker(),t.getSourceFiles(),(function(r,i){void 0===i?!u||u.allowsImportingAmbientModule(r)?a(r,i):u&&s++:i&&i!==n&&function(t,r,n,i){var a,o=e.hostGetCanonicalFileName(i),s=null===(a=i.getGlobalTypingsCacheLocation)||void 0===a?void 0:a.call(i);return!!e.moduleSpecifiers.forEachFileNameOfModule(r.fileName,n.fileName,i,!1,(function(i){var a=t.getSourceFile(i);return(a===n||!a)&&function(t,r,n,i){var a=e.forEachAncestorDirectory(r,(function(t){return"node_modules"===e.getBaseFileName(t)?t:void 0})),o=a&&e.getDirectoryPath(n(a));return void 0===o||e.startsWith(n(t),o)||!!i&&e.startsWith(n(i),o)}(r.fileName,i,o,s)}))}(t,n,i,c)&&(!u||u.allowsImportingSourceFile(i)?a(r,i):u&&s++)})),null===(o=r.log)||void 0===o||o.call(r,"forEachExternalModuleToImportFrom: filtered out "+s+" modules by package.json contents")}function w(t,r){return I(e.removeFileExtension(e.stripQuotes(t.name)),r)}function I(t,r){var n=e.getBaseFileName(e.removeSuffix(t,"/index")),i="",a=!0,o=n.charCodeAt(0);e.isIdentifierStart(o,r)?i+=String.fromCharCode(o):a=!1;for(var s=1;s<n.length;s++){var c=n.charCodeAt(s),u=e.isIdentifierPart(c,r);if(u){var l=String.fromCharCode(c);a||(l=l.toUpperCase()),i+=l}a=u}return e.isStringANonContextualKeyword(i)?"_"+i:i||"_"}function O(t,r,n,i){void 0===i&&(i=e.createModuleSpecifierResolutionHost(r,n));var a,o=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||e.getPackageJsonsVisibleToFile(t.fileName,n)).filter((function(e){return e.parseable}));return{allowsImportingAmbientModule:function(t){if(!o.length)return!0;var r=u(t.valueDeclaration.getSourceFile().fileName);if(void 0===r)return!0;var n=e.stripQuotes(t.getName());if(c(n))return!0;return s(r)||s(n)},allowsImportingSourceFile:function(e){if(!o.length)return!0;var t=u(e.fileName);if(!t)return!0;return s(t)},allowsImportingSpecifier:function(t){if(!o.length||c(t))return!0;if(e.pathIsRelative(t)||e.isRootedDiskPath(t))return!0;return s(t)},moduleSpecifierResolutionHost:i};function s(t){for(var r=l(t),n=0,i=o;n<i.length;n++){var a=i[n];if(a.has(r)||a.has(e.getTypesPackageName(r)))return!0}return!1}function c(r){return!!(e.isSourceFileJS(t)&&e.JsTyping.nodeCoreModules.has(r)&&(void 0===a&&(a=e.consumesNodeCoreModules(t)),a))}function u(r){if(e.stringContains(r,"node_modules")){var a=e.moduleSpecifiers.getNodeModulesPackageName(n.getCompilationSettings(),t.path,r,i);if(a)return e.pathIsRelative(a)||e.isRootedDiskPath(a)?void 0:l(a)}}function l(t){var r=e.getPathComponents(e.getPackageNameFromTypesPackageName(t)).slice(1);return e.startsWith(r[0],"@")?r[0]+"/"+r[1]:r[0]}}t.registerCodeFix({errorCodes:a,getCodeActions:function(t){var r=t.errorCode,n=t.preferences,i=t.sourceFile,a=t.span,o=f(t,r,a.start,!0);if(o){var s=o.fixes,c=o.symbolName,u=e.getQuotePreference(i,n);return s.map((function(e){return x(t,i,c,e,u)}))}},fixIds:[i],getAllCodeActions:function(r){var n=o(r.sourceFile,r.program,!0,r.preferences,r.host);return t.eachDiagnostic(r,a,(function(e){return n.addImportFromDiagnostic(e,r)})),t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,n.writeFixes))}}),t.createImportAdder=function(e,t,r,n){return o(e,t,!1,r,n)},function(e){e[e.UseNamespace=0]="UseNamespace",e[e.ImportType=1]="ImportType",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew"}(r||(r={})),function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS"}(n||(n={})),t.getImportCompletionAction=function(t,r,n,i,a,o,l,_,f){var m,y,v,h,b=o.getCompilerOptions(),D=e.pathIsBareSpecifier(e.stripQuotes(r.name))?[c(t,r,n,o,a)]:u(n,t,r,i,a,o,!0),S=d(n,o),T=2===b.importsNotUsedAsValues&&!e.isSourceFileJS(n)&&e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(n,_)),C=g(p(o,n,_,T,S,D,a,f),n,o,a).moduleSpecifier,E=s(n,D,r,i,o,_,T,S,a,f);return{moduleSpecifier:C,codeAction:(m=x({host:a,formatContext:l,preferences:f},n,i,E,e.getQuotePreference(n,f)),y=m.description,v=m.changes,h=m.commands,{description:y,changes:v,commands:h})}},t.forEachExternalModuleToImportFrom=F,t.moduleSymbolToValidIdentifier=w,t.moduleSpecifierToValidIdentifier=I}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixNoPropertyAccessFromIndexSignature",n=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function i(t,r,n,i){var a=e.getQuotePreference(r,i),o=e.factory.createStringLiteral(n.name.text,0===a);t.replaceNode(r,n,e.isPropertyAccessChain(n)?e.factory.createElementAccessChain(n.expression,n.questionDotToken,o):e.factory.createElementAccessExpression(n.expression,o))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isPropertyAccessExpression)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=n.preferences,u=a(o,s.start),l=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,u,c)}));return[t.createCodeFixAction(r,l,[e.Diagnostics.Use_element_access_for_0,u.name.text],r,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,r.file,a(r.file,r.start),e.preferences)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixImplicitThis",n=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);e.Debug.assert(107===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,97,r)),c=o.name,u=e.Debug.assertDefined(o.body);if(e.isFunctionExpression(o)){if(c&&e.FindAllReferences.Core.isSymbolReferencedInFile(c,i,r,u))return;return t.delete(r,s),c&&t.delete(r,c),t.insertText(r,u.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(84)),t.insertText(r,c.end," = "),t.insertText(r,u.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a,o=n.sourceFile,s=n.program,c=n.span,u=e.textChanges.ChangeTracker.with(n,(function(e){a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,u,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){i(t,r.file,r.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixIncorrectNamedTupleSyntax",n=[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];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,o=function(t,r){var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,(function(e){return 192===e.kind}))}(i,a.start),s=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n){if(!n)return;var i=n.type,a=!1,o=!1;for(;180===i.kind||181===i.kind||186===i.kind;)180===i.kind?a=!0:181===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(n,n.dotDotDotToken||(o?e.factory.createToken(25):void 0),n.name,n.questionToken||(a?e.factory.createToken(57):void 0),i);if(s===n)return;t.replaceNode(r,n,s)}(t,i,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r]})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixSpelling",n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function i(t,r,n,i){var a=e.getTokenAtPosition(t,r),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=n.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isIdentifierOrPrivateIdentifier(a),"Expected an identifier for spelling (property access)");var u=c.getTypeAtLocation(o.expression);32&o.flags&&(u=c.getNonNullableType(u)),s=c.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isQualifiedName(o)&&o.right===a){var l=c.getSymbolAtLocation(o.left);l&&1536&l.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,l))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var _=function(t,r,n){if(!n||!e.isStringLiteralLike(n.moduleSpecifier))return;var i=e.getResolvedModule(t,n.moduleSpecifier.text);return i?r.program.getSourceFile(i.resolvedFileName):void 0}(t,n,e.findAncestor(a,e.isImportDeclaration));_&&_.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,_.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var d=e.findAncestor(a,e.isJsxOpeningLikeElement),p=c.getContextualTypeForArgumentAtIndex(d,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,p)}else{var f=e.getMeaningFromLocation(a),g=e.getTextOfNode(a);e.Debug.assert(void 0!==g,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,g,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(f))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(r,n,e.factory.createIdentifier(o)):t.replaceNode(r,n.parent,e.factory.createElementAccessExpression(n.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(r,n,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.errorCode,c=i(o,n.span.start,n,s);if(c){var u=c.node,l=c.suggestedSymbol,_=n.host.getCompilationSettings().target,d=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,u,l,_)}));return[t.createCodeFixAction("spelling",d,[e.Diagnostics.Change_spelling_to_0,e.symbolName(l)],r,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start,e,r.code),o=e.host.getCompilationSettings().target;n&&a(t,e.sourceFile,n.node,n.suggestedSymbol,o)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r,n="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(t,r,n){var i=t.createSymbol(4,r.escapedText);i.type=t.getTypeAtLocation(n);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],void 0,void 0)}function u(t,n,i,a){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var o=e.first(n.body.statements);if(e.isExpressionStatement(o)&&l(t,n,t.getTypeAtLocation(o.expression),i,a))return{declaration:n,kind:r.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(l(t,n,c(t,o.label,o.statement.expression),i,a))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var u=e.first(o.statements);if(e.isLabeledStatement(u)&&e.isExpressionStatement(u.statement)){s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(u.label,u.statement.expression)]);if(l(t,n,c(t,u.label,u.statement.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:u}}}}}function l(t,r,n,i,a){if(a){var o=t.getSignatureFromDeclaration(r);if(o){e.hasSyntacticModifier(r,256)&&(n=t.createPromiseType(n));var s=t.createSignature(r,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],void 0,void 0)}else n=t.getAnyType()}return t.isTypeAssignableTo(n,i)}function _(t,r,n,i){var a=e.getTokenAtPosition(r,n);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 u(t,o,t.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=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return u(t,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 l=function(t){switch(t.kind){case 249:case 160:case 198:case 163:case 288:return t.initializer;case 280:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 289:case 162:case 291:case 333:case 326:return}}(a.parent);if(!l||!e.isFunctionLikeDeclaration(l)||!l.body)return;return u(t,l,t.getTypeAtLocation(a.parent),!0)}}}function d(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.factory.createReturnStatement(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function p(t,r,n,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(r,n.body,s)}function f(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function g(r,a,o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return d(e,r.sourceFile,a,o)}));return t.createCodeFixAction(n,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function m(r,i,a){var s=e.textChanges.ChangeTracker.with(r,(function(e){return f(e,r.sourceFile,i,a)}));return t.createCodeFixAction(n,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"}(r||(r={})),t.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions:function(i){var o=i.program,s=i.sourceFile,c=i.span.start,u=i.errorCode,l=_(o.getTypeChecker(),s,c,u);if(l)return l.kind===r.MissingReturnStatement?e.append([g(i,l.expression,l.statement)],e.isArrowFunction(l.declaration)?function(r,i,o,s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.sourceFile,i,o,s,!1)}));return t.createCodeFixAction(n,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,l.declaration,l.expression,l.commentSource):void 0):[m(i,l.declaration,l.expression)]},getAllCodeActions:function(r){return t.codeFixAll(r,s,(function(t,n){var s=_(r.program.getTypeChecker(),n.file,n.start,n.code);if(s)switch(r.fixId){case i:d(t,n.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;p(t,n.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;f(t,n.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r,n="fixMissingMember",i="fixMissingFunctionDeclaration",a=[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 o(t,r,n,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)||e.isPrivateIdentifier(a)){var o=a.parent;if(e.isIdentifier(a)&&e.isCallExpression(o))return{kind:2,token:a,call:o,sourceFile:t,modifierFlags:0,parentDeclaration:t};if(e.isPropertyAccessExpression(o)){var s=e.skipConstraint(n.getTypeAtLocation(o.expression)),c=s.symbol;if(c&&c.declarations){if(e.isIdentifier(a)&&e.isCallExpression(o.parent)){var u=e.find(c.declarations,e.isModuleDeclaration),l=null==u?void 0:u.getSourceFile();if(u&&l&&!i.isSourceFileFromExternalLibrary(l))return{kind:2,token:a,call:o.parent,sourceFile:t,modifierFlags:1,parentDeclaration:u};var _=e.find(c.declarations,e.isSourceFile);if(t.commonJsModuleIndicator)return;if(_&&!i.isSourceFileFromExternalLibrary(_))return{kind:2,token:a,call:o.parent,sourceFile:_,modifierFlags:1,parentDeclaration:_}}var d=e.find(c.declarations,e.isClassLike);if(d||!e.isPrivateIdentifier(a)){var p=d||e.find(c.declarations,e.isInterfaceDeclaration);if(p&&!i.isSourceFileFromExternalLibrary(p.getSourceFile())){var f=(s.target||s)!==n.getDeclaredTypeOfSymbol(c);if(f&&(e.isPrivateIdentifier(a)||e.isInterfaceDeclaration(p)))return;var g=p.getSourceFile(),m=(f?32:0)|(e.startsWithUnderscore(a.text)?8:0),y=e.isSourceFileJS(g);return{kind:1,token:a,call:e.tryCast(o.parent,e.isCallExpression),modifierFlags:m,parentDeclaration:p,declSourceFile:g,isJSFile:y}}var v=e.find(c.declarations,e.isEnumDeclaration);return!v||e.isPrivateIdentifier(a)||i.isSourceFileFromExternalLibrary(v.getSourceFile())?void 0:{kind:0,token:a,parentDeclaration:v}}}}}}function s(t,r,n,i,a){var o=i.text;if(a){if(221===n.kind)return;var s=n.name.getText(),u=c(e.factory.createIdentifier(s),o);t.insertNodeAfter(r,n,u)}else if(e.isPrivateIdentifier(i)){var l=e.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),d=_(n);d?t.insertNodeAfter(r,d,l):t.insertNodeAtClassStart(r,n,l)}else{var p=e.getFirstConstructorWithBody(n);if(!p)return;var f=c(e.factory.createThis(),o);t.insertNodeAtConstructorEnd(r,p,f)}}function c(t,r){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(t,r),e.factory.createIdentifier("undefined")))}function u(t,r,n){var i;if(216===n.parent.parent.kind){var a=n.parent.parent,o=n.parent===a.left?a.right:a.left,s=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(o)));i=t.typeToTypeNode(s,r,void 0)}else{var c=t.getContextualType(n.parent);i=c?t.typeToTypeNode(c,void 0,void 0):void 0}return i||e.factory.createKeywordTypeNode(128)}function l(t,r,n,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=_(n);c?t.insertNodeAfter(r,c,s):t.insertNodeAtClassStart(r,n,s)}function _(t){for(var r,n=0,i=t.members;n<i.length;n++){var a=i[n];if(!e.isPropertyDeclaration(a))break;r=a}return r}function d(r,n,i,a,o,s,c){var u=t.createImportAdder(c,r.program,r.preferences,r.host),l=t.createSignatureDeclarationFromCallExpression(165,r,u,i,a,o,s),_=e.findAncestor(i,(function(t){return e.isMethodDeclaration(t)||e.isConstructorDeclaration(t)}));_&&_.parent===s?n.insertNodeAfter(c,_,l):n.insertNodeAtClassStart(c,s,l),u.writeFixes(n)}function p(t,r,n){var i=n.token,a=n.parentDeclaration,o=e.some(a.members,(function(e){var t=r.getTypeAtLocation(e);return!!(t&&402653316&t.flags)})),s=e.factory.createEnumMember(i,o?e.factory.createStringLiteral(i.text):void 0);t.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 f(r,n,i){var a=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),o=t.createSignatureDeclarationFromCallExpression(251,n,a,i.call,e.idText(i.token),i.modifierFlags,i.parentDeclaration);r.insertNodeAtEndOfScope(i.sourceFile,i.parentDeclaration,o)}t.registerCodeFix({errorCodes:a,getCodeActions:function(r){var a=r.program.getTypeChecker(),c=o(r.sourceFile,r.span.start,a,r.program);if(c){if(2===c.kind){var _=e.textChanges.ChangeTracker.with(r,(function(e){return f(e,r,c)}));return[t.createCodeFixAction(i,_,[e.Diagnostics.Add_missing_function_declaration_0,c.token.text],i,e.Diagnostics.Add_all_missing_function_declarations)]}if(0===c.kind){_=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.program.getTypeChecker(),c)}));return[t.createCodeFixAction(n,_,[e.Diagnostics.Add_missing_enum_member_0,c.token.text],n,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(function(r,i){var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,u=i.call;if(void 0===u)return;if(e.isPrivateIdentifier(c))return;var l=c.text,_=function(t){return e.textChanges.ChangeTracker.with(r,(function(e){return d(r,e,u,c,t,a,o)}))},p=[t.createCodeFixAction(n,_(32&s),[32&s?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,l],n,e.Diagnostics.Add_all_missing_members)];8&s&&p.unshift(t.createCodeFixActionWithoutFixAll(n,_(8),[e.Diagnostics.Declare_private_method_0,l]));return p}(r,c),function(r,i){return i.isJSFile?e.singleElementArray(function(r,i){var a=i.parentDeclaration,o=i.declSourceFile,c=i.modifierFlags,u=i.token;if(e.isInterfaceDeclaration(a))return;var l=e.textChanges.ChangeTracker.with(r,(function(e){return s(e,o,a,u,!!(32&c))}));if(0===l.length)return;var _=32&c?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(u)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return t.createCodeFixAction(n,l,[_,u.text],n,e.Diagnostics.Add_all_missing_members)}(r,i)):function(r,i){var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,_=c.text,d=32&s,p=u(r.program.getTypeChecker(),a,c),f=function(t){return e.textChanges.ChangeTracker.with(r,(function(e){return l(e,o,a,_,p,t)}))},g=[t.createCodeFixAction(n,f(32&s),[d?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,_],n,e.Diagnostics.Add_all_missing_members)];if(d||e.isPrivateIdentifier(c))return g;8&s&&g.unshift(t.createCodeFixActionWithoutFixAll(n,f(8),[e.Diagnostics.Declare_private_property_0,_]));return g.push(function(r,i,a,o,s){var c=e.factory.createKeywordTypeNode(147),u=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,c,void 0),l=e.factory.createIndexSignature(void 0,void 0,[u],s),_=e.textChanges.ChangeTracker.with(r,(function(e){return e.insertNodeAtClassStart(i,a,l)}));return t.createCodeFixActionWithoutFixAll(n,_,[e.Diagnostics.Add_index_signature_for_property_0,o])}(r,o,a,c.text,p)),g}(r,i)}(r,c))}},fixIds:[n,i],getAllCodeActions:function(r){var n=r.program,c=r.fixId,_=n.getTypeChecker(),g=new e.Map,m=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(function(y){t.eachDiagnostic(r,a,(function(t){var n=o(t.file,t.start,_,r.program);if(n&&e.addToSeen(g,e.getNodeId(n.parentDeclaration)+"#"+n.token.text))if(c===i)2===n.kind&&f(y,r,n);else if(0===n.kind&&p(y,_,n),1===n.kind){var a=n.parentDeclaration,s=n.token,u=e.getOrUpdate(m,a,(function(){return[]}));u.some((function(e){return e.token.text===s.text}))||u.push(n)}})),m.forEach((function(i,a){for(var o=t.getAllSupers(a,_),c=function(t){if(o.some((function(e){var r=m.get(e);return!!r&&r.some((function(e){return e.token.text===t.token.text}))})))return"continue";var i=t.parentDeclaration,a=t.declSourceFile,c=t.modifierFlags,_=t.token,p=t.call,f=t.isJSFile;if(p&&!e.isPrivateIdentifier(_))d(r,y,p,_,32&c,i,a);else if(f&&!e.isInterfaceDeclaration(i))s(y,a,i,_,!!(32&c));else{var g=u(n.getTypeChecker(),i,_);l(y,a,i,_.text,g,32&c)}},p=0,f=i;p<f.length;p++){c(f[p])}}))})))}}),function(e){e[e.Enum=0]="Enum",e[e.ClassOrInterface=1]="ClassOrInterface",e[e.Function=2]="Function"}(r||(r={}))}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="addMissingNewOperator",n=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function i(t,r,n){var i=e.cast(function(t,r){var n=e.getTokenAtPosition(t,r.start),i=e.textSpanEnd(r);for(;n.end<i;)n=n.parent;return n}(r,n),e.isCallExpression),a=e.factory.createNewExpression(i.expression,i.typeArguments,i.arguments);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.sourceFile,o=n.span,s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_new_operator_to_call,r,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="installTypesPackage",n=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,i=[n,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function a(e,t){return{type:"install package",file:e,packageName:t}}function o(t,r){var n=e.cast(e.getTokenAtPosition(t,r),e.isStringLiteral).text,i=e.parsePackageName(n).packageName;return e.isExternalModuleNameRelative(i)?void 0:i}function s(t,r,i){var a;return i===n?e.JsTyping.nodeCoreModules.has(t)?"@types/node":void 0:(null===(a=r.isKnownTypesPackageName)||void 0===a?void 0:a.call(r,t))?e.getTypesPackageName(t):void 0}t.registerCodeFix({errorCodes:i,getCodeActions:function(n){var i=n.host,c=n.sourceFile,u=o(c,n.span.start);if(void 0!==u){var l=s(u,i,n.errorCode);return void 0===l?[]:[t.createCodeFixAction("fixCannotFindModule",[],[e.Diagnostics.Install_0,l],r,e.Diagnostics.Install_all_missing_types_packages,a(c.fileName,l))]}},fixIds:[r],getAllCodeActions:function(n){return t.codeFixAll(n,i,(function(t,i,c){var u=o(i.file,i.start);if(void 0!==u)switch(n.fixId){case r:var l=s(u,n.host,i.code);l&&c.push(a(i.file.fileName,l));break;default:e.Debug.fail("Bad fixId: "+n.fixId)}}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r=[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],n="fixClassDoesntImplementInheritedAbstractMember";function i(t,r){var n=e.getTokenAtPosition(t,r);return e.cast(n.parent,e.isClassLike)}function a(r,n,i,a,s){var c=e.getEffectiveBaseTypeNode(r),u=i.program.getTypeChecker(),l=u.getTypeAtLocation(c),_=u.getPropertiesOfType(l).filter(o),d=t.createImportAdder(n,i.program,s,i.host);t.createMissingMemberNodes(r,_,n,i,s,d,(function(e){return a.insertNodeAtClassStart(n,r,e)})),d.writeFixes(a)}function o(t){var r=e.getSyntacticModifierFlags(e.first(t.getDeclarations()));return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=e.textChanges.ChangeTracker.with(r,(function(e){return a(i(o,s.start),o,r,e,r.preferences)}));return 0===c.length?void 0:[t.createCodeFixAction(n,c,e.Diagnostics.Implement_inherited_abstract_class,n,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[n],getAllCodeActions:function(n){var o=new e.Map;return t.codeFixAll(n,r,(function(t,r){var s=i(r.file,r.start);e.addToSeen(o,e.getNodeId(s))&&a(s,n.sourceFile,n,t,n.preferences)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="classSuperMustPrecedeThisAccess",n=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function i(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n),e.delete(t,n)}function a(t,r){var n=e.getTokenAtPosition(t,r);if(107===n.kind){var i=e.getContainingFunction(n),a=o(i.body);return a&&!a.expression.arguments.some((function(t){return e.isPropertyAccessExpression(t)&&t.expression===n}))?{constructor:i,superCall:a}:void 0}}function o(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=a(o,s.start);if(c){var u=c.constructor,l=c.superCall,_=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,o,u,l)}));return[t.createCodeFixAction(r,_,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,r,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[r],getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Map;return t.codeFixAll(r,n,(function(t,r){var n=a(r.file,r.start);if(n){var c=n.constructor,u=n.superCall;e.addToSeen(s,e.getNodeId(c.parent))&&i(t,o,c,u)}}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="constructorForDerivedNeedSuperCall",n=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(e.isConstructorDeclaration(n.parent),"token should be at the constructor declaration"),n.parent}function a(t,r,n){var i=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));t.insertNodeAtConstructorStart(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Add_missing_super_call,r,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return a(t,e.sourceFile,i(r.file,r.start))}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="enableExperimentalDecorators",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.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"experimentalDecorators",e.factory.createTrue())}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a)}));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t){var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixEnableJsxFlag",n=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"jsx",e.factory.createStringLiteral("react"))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a)}));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t){var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){t.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(r){var n=r.program.getCompilerOptions(),i=n.configFile;if(void 0!==i){var a=[],o=e.getEmitModuleKind(n);if(o>=e.ModuleKind.ES2015&&o<e.ModuleKind.ESNext){var s=e.textChanges.ChangeTracker.with(r,(function(r){t.setJsonCompilerOptionValue(r,i,"module",e.factory.createStringLiteral("esnext"))}));a.push(t.createCodeFixActionWithoutFixAll("fixModuleOption",s,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var c=e.getEmitScriptTarget(n);if(c<4||c>99){s=e.textChanges.ChangeTracker.with(r,(function(r){if(e.getTsConfigObjectLiteralExpression(i)){var n=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(r,i,n)}}));a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return a.length?a:void 0}}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixPropertyAssignment",n=[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(t,r,n){t.replaceNode(r,n,e.factory.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start),s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,[e.Diagnostics.Change_0_to_1,"=",":"],r,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,a(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="extendsInterfaceBecomesImplements",n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingClass(n).heritageClauses,a=i[0].getFirstToken();return 93===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.factory.createToken(116)),2===i.length&&93===i[0].token&&116===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.factory.createToken(27));for(var s=r.text,c=a.end;c<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(c));)c++;t.deleteRange(r,{pos:a.getStart(),end:c})}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start);if(s){var c=s.extendsToken,u=s.heritageClauses,l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c,u)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Change_extends_to_implements,r,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r.extendsToken,r.heritageClauses)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="forgottenThisPropertyAccess",n=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,n];function a(t,r,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a))return{node:a,className:i===n?e.getContainingClass(a).name.text:void 0}}function o(t,r,n){var i=n.node,a=n.className;e.suppressLeadingAndTrailingTrivia(i),t.replaceNode(r,i,e.factory.createPropertyAccessExpression(a?e.factory.createIdentifier(a):e.factory.createThis(),i))}t.registerCodeFix({errorCodes:i,getCodeActions:function(n){var i=n.sourceFile,s=a(i,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return o(e,i,s)}));return[t.createCodeFixAction(r,c,[e.Diagnostics.Add_0_to_unresolved_variable,s.className||"this"],r,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,i,(function(t,r){var n=a(r.file,r.start,r.code);n&&o(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixInvalidJsxCharacters_expression",n="fixInvalidJsxCharacters_htmlEntity",i=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];t.registerCodeFix({errorCodes:i,fixIds:[r,n],getCodeActions:function(i){var a=i.sourceFile,s=i.preferences,c=i.span,u=e.textChanges.ChangeTracker.with(i,(function(e){return o(e,s,a,c.start,!1)})),l=e.textChanges.ChangeTracker.with(i,(function(e){return o(e,s,a,c.start,!0)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,r,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),t.createCodeFixAction(n,l,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,n,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(e){return t.codeFixAll(e,i,(function(t,r){return o(t,e.preferences,r.file,r.start,e.fixId===n)}))}});var a={">":">","}":"}"};function o(t,r,n,i,o){var s=n.getText()[i];if(function(t){return e.hasProperty(a,t)}(s)){var c=o?a[s]:"{"+e.quote(n,r,s)+"}";t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="unusedIdentifier",n="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(t,r,n){t.replaceNode(r,n.parent,e.factory.createKeywordTypeNode(152))}function u(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function l(t,r,n){t.delete(r,e.Debug.checkDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function _(e){return 99===e.kind||78===e.kind&&(265===e.parent.kind||262===e.parent.kind)}function d(t){return 99===t.kind?e.tryCast(t.parent,e.isImportDeclaration):void 0}function p(t,r){return e.isVariableDeclarationList(r.parent)&&e.first(r.parent.getChildren(t))===r}function f(e,t,r){e.delete(t,232===r.parent.kind?r.parent:r)}function g(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(135===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&function(e){switch(e.parent.kind){case 160:case 159:return!0;case 249:switch(e.parent.parent.parent.kind){case 239:case 238:return!0}}return!1}(i)&&(t.replaceNode(n,i,e.factory.createIdentifier("_"+i.text)),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach((function(r){e.isIdentifier(r.name)&&t.replaceNode(n,r.name,e.factory.createIdentifier("_"+r.name.text))}))))}function m(t,r,n,i,a,o,s,c){!function(t,r,n,i,a,o,s,c){var u=t.parent;e.isParameter(u)?function(t,r,n,i,a,o,s,c){void 0===c&&(c=!1);(function(t,r,n,i,a,o,s){var c=n.parent;switch(c.kind){case 165:case 166:var u=c.parameters.indexOf(n),l=e.isMethodDeclaration(c)?c.name:c,_=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,l,a,i,o);if(_)for(var d=0,p=_;d<p.length;d++)for(var f=0,g=p[d].references;f<g.length;f++){var m=g[f];if(1===m.kind){var y=e.isSuperKeyword(m.node)&&e.isCallExpression(m.node.parent)&&m.node.parent.arguments.length>u,h=e.isPropertyAccessExpression(m.node.parent)&&e.isSuperKeyword(m.node.parent.expression)&&e.isCallExpression(m.node.parent.parent)&&m.node.parent.parent.arguments.length>u,b=(e.isMethodDeclaration(m.node.parent)||e.isMethodSignature(m.node.parent))&&m.node.parent!==n.parent&&m.node.parent.parameters.length>u;if(y||h||b)return!1}}return!0;case 251:return!c.name||!function(t,r,n){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n,t,r,(function(t){return e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0}))}(t,r,c.name)||v(c,n,s);case 208:case 209:return v(c,n,s);case 168:return!1;default:return e.Debug.failBadSyntaxKind(c)}})(i,r,n,a,o,s,c)&&(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach((function(e){return t.deleteModifier(r,e)})):!n.initializer&&y(n,i,a)&&t.delete(r,n))}(r,n,u,i,a,o,s,c):c&&e.isIdentifier(t)&&e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,n)||r.delete(n,e.isImportClause(u)?t:e.isComputedPropertyName(u)?u.parent:u)}(r,n,t,i,a,o,s,c),e.isIdentifier(r)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(r,i,t,(function(r){var i;e.isPropertyAccessExpression(r.parent)&&r.parent.name===r&&(r=r.parent),!c&&(i=r,(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))&&n.delete(t,r.parent.parent)}))}function y(t,r,n){var i=t.parent.parameters.indexOf(t);return!e.FindAllReferences.Core.someSignatureUsage(t.parent,n,r,(function(e,t){return!t||t.arguments.length>i}))}function v(t,r,n){var i=t.parameters,a=i.indexOf(r);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),n?i.slice(a+1).every((function(t){return e.isIdentifier(t.name)&&!t.symbol.isReferenced})):a===i.length-1}t.registerCodeFix({errorCodes:s,getCodeActions:function(i){var s=i.errorCode,y=i.sourceFile,v=i.program,h=i.cancellationToken,b=v.getTypeChecker(),x=v.getSourceFiles(),D=e.getTokenAtPosition(y,i.span.start);if(e.isJSDocTemplateTag(D))return[u(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,D)})),e.Diagnostics.Remove_template_tag)];if(29===D.kind)return[u(T=e.textChanges.ChangeTracker.with(i,(function(e){return l(e,y,D)})),e.Diagnostics.Remove_type_parameters)];var S=d(D);if(S){var T=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,S)}));return[t.createCodeFixAction(r,T,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(S)],a,e.Diagnostics.Delete_all_unused_imports)]}if(_(D)&&(A=e.textChanges.ChangeTracker.with(i,(function(e){return m(y,D,e,b,x,v,h,!1)}))).length)return[t.createCodeFixAction(r,A,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,D.getText(y)],a,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(D.parent)||e.isArrayBindingPattern(D.parent)){if(e.isParameter(D.parent.parent)){var C=D.parent.elements,E=[C.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(C,(function(e){return e.getText(y)})).join(", ")];return[u(e.textChanges.ChangeTracker.with(i,(function(t){return function(t,r,n){e.forEach(n.elements,(function(e){return t.delete(r,e)}))}(t,y,D.parent)})),E)]}return[u(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,D.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(p(y,D))return[u(e.textChanges.ChangeTracker.with(i,(function(e){return f(e,y,D.parent)})),e.Diagnostics.Remove_variable_statement)];var k=[];if(135===D.kind){T=e.textChanges.ChangeTracker.with(i,(function(e){return c(e,y,D)}));var N=e.cast(D.parent,e.isInferTypeNode).typeParameter.name.text;k.push(t.createCodeFixAction(r,T,[e.Diagnostics.Replace_infer_0_with_unknown,N],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var A;if((A=e.textChanges.ChangeTracker.with(i,(function(e){return m(y,D,e,b,x,v,h,!1)}))).length){N=e.isComputedPropertyName(D.parent)?D.parent:D;k.push(u(A,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,N.getText(y)]))}}var F=e.textChanges.ChangeTracker.with(i,(function(e){return g(e,s,y,D)}));return F.length&&k.push(t.createCodeFixAction(r,F,[e.Diagnostics.Prefix_0_with_an_underscore,D.getText(y)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),k},fixIds:[n,i,a,o],getAllCodeActions:function(r){var u=r.sourceFile,v=r.program,h=r.cancellationToken,b=v.getTypeChecker(),x=v.getSourceFiles();return t.codeFixAll(r,s,(function(t,s){var D=e.getTokenAtPosition(u,s.start);switch(r.fixId){case n:g(t,s.code,u,D);break;case a:var S=d(D);S?t.delete(u,S):_(D)&&m(u,D,t,b,x,v,h,!0);break;case i:if(135===D.kind||_(D))break;if(e.isJSDocTemplateTag(D))t.delete(u,D);else if(29===D.kind)l(t,u,D);else if(e.isObjectBindingPattern(D.parent)){if(D.parent.parent.initializer)break;e.isParameter(D.parent.parent)&&!y(D.parent.parent,b,x)||t.delete(u,D.parent.parent)}else{if(e.isArrayBindingPattern(D.parent.parent)&&D.parent.parent.parent.initializer)break;p(u,D)?f(t,u,D.parent):m(u,D,t,b,x,v,h,!0)}break;case o:135===D.kind&&c(t,u,D);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n),s=e.findAncestor(o,e.isStatement);if(s.getStart(r)!==o.getStart(r)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:n,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var u=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(u.kind){case 234:if(u.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 236:case 237:return void t.delete(r,u)}if(e.isBlock(s.parent)){var l=n+i,_=e.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(!t(a))break;r=a}return r}(e.sliceAfter(s.parent.statements,s),(function(e){return e.pos<l})),"Some statement should be last");t.deleteNodeRange(r,s,_)}else t.delete(r,s)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.span.length,n.errorCode)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unreachable_code,r,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start,t.length,t.code)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixUnusedLabel",n=[e.Diagnostics.Unused_label.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.cast(i.parent,e.isLabeledStatement),o=i.getStart(r),s=a.statement.getStart(r),c=e.positionsAreOnSameLine(o,s,r)?s:e.skipTrivia(r.text,e.findChildOfKind(a,58,r).end,!0);t.deleteRange(r,{pos:o,end:c})}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unused_label,r,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixJSDocTypes_plain",n="fixJSDocTypes_nullable",i=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function a(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r,void 0))}function o(t,r,n){var i=e.findAncestor(e.getTokenAtPosition(t,r),s),a=i&&i.type;return a&&{typeNode:a,type:n.getTypeFromTypeNode(a)}}function s(e){switch(e.kind){case 224:case 169:case 170:case 251:case 167:case 171:case 190:case 165:case 164:case 160:case 163:case 162:case 168:case 254:case 206:case 249:return!0;default:return!1}}t.registerCodeFix({errorCodes:i,getCodeActions:function(i){var s=i.sourceFile,c=i.program.getTypeChecker(),u=o(s,i.span.start,c);if(u){var l=u.typeNode,_=u.type,d=l.getText(s),p=[f(_,r,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 305===l.kind&&p.push(f(c.getNullableType(_,32768),n,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),p}function f(r,n,o){var u=e.textChanges.ChangeTracker.with(i,(function(e){return a(e,s,l,r,c)}));return t.createCodeFixAction("jdocTypes",u,[e.Diagnostics.Change_0_to_1,d,c.typeToString(r)],n,o)}},fixIds:[r,n],getAllCodeActions:function(e){var r=e.fixId,s=e.program,c=e.sourceFile,u=s.getTypeChecker();return t.codeFixAll(e,i,(function(e,t){var i=o(t.file,t.start,u);if(i){var s=i.typeNode,l=i.type,_=305===s.kind&&r===n?u.getNullableType(l,32768):l;a(e,c,s,_,u)}}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixMissingCallParentheses",n=[e.Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function i(e,t,r){e.replaceNodeWithText(t,r,r.text+"()")}function a(t,r){var n=e.getTokenAtPosition(t,r);if(e.isPropertyAccessExpression(n.parent)){for(var i=n.parent;e.isPropertyAccessExpression(i.parent);)i=i.parent;return i.name}if(e.isIdentifier(n))return n}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_call_parentheses,r,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=a(t.file,t.start);r&&i(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixAwaitInSyncFunction",n=[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(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingFunction(n);if(i){var a,o;switch(i.kind){case 165:a=i.name;break;case 251:case 208:a=e.findChildOfKind(i,97,t);break;case 209:a=e.findChildOfKind(i,20,t)||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(t,r,n){var i=n.insertBefore,a=n.returnType;if(a){var o=e.getEntityNameFromTypeNode(a);o&&78===o.kind&&"Promise"===o.text||t.replaceNode(r,a,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([a])))}t.insertModifierBefore(r,129,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[r],getAllCodeActions:function(r){var o=new e.Map;return t.codeFixAll(r,n,(function(t,n){var s=i(n.file,n.start);s&&e.addToSeen(o,e.getNodeId(s.insertBefore))&&a(t,r.sourceFile,s)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r=[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],n="fixPropertyOverrideAccessor";function i(r,n,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=n,c=n+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 u=o.program.getTypeChecker(),l=e.getTokenAtPosition(r,n).parent;e.Debug.assert(e.isAccessor(l),"error span of fixPropertyOverrideAccessor should only be on an accessor");var _=l.parent;e.Debug.assert(e.isClassLike(_),"erroneous accessors should only be inside classes");var d=e.singleOrUndefined(t.getAllSupers(_,u));if(!d)return[];var p=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(l.name)),f=u.getPropertyOfType(u.getTypeAtLocation(d),p);if(!f||!f.valueDeclaration)return[];s=f.valueDeclaration.pos,c=f.valueDeclaration.end,r=e.getSourceFileOfNode(f.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+a);return t.generateAccessorFromProperty(r,o.program,s,c,o,e.Diagnostics.Generate_get_and_set_accessors.message)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=i(r.sourceFile,r.span.start,r.span.length,r.errorCode,r);if(a)return[t.createCodeFixAction(n,a,e.Diagnostics.Generate_get_and_set_accessors,n,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){var n=i(r.file,r.start,r.length,r.code,e);if(n)for(var a=0,o=n;a<o.length;a++){var s=o[a];t.pushRaw(e.sourceFile,s)}}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="inferFromUsage",n=[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 i(t,r){switch(t){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(r))?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 a(r,n,i,a,_,g,m,y,v){if(e.isParameterPropertyModifier(i.kind)||78===i.kind||25===i.kind||107===i.kind){var h=i.parent,b=t.createImportAdder(n,_,v,y);switch(a=function(t){switch(t){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 t}(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(h)&&m(h)||e.isPropertyDeclaration(h)||e.isPropertySignature(h))return o(r,b,n,h,_,y,g),b.writeFixes(r),h;if(e.isPropertyAccessExpression(h)){var x=d(h.name,_,g),D=e.getTypeNodeIfAccessible(x,h,_,y);if(D){var S=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(D),"");l(r,n,e.cast(h.parent.parent,e.isExpressionStatement),[S])}return b.writeFixes(r),h}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var T=_.getTypeChecker().getSymbolAtLocation(i);return T&&T.valueDeclaration&&e.isVariableDeclaration(T.valueDeclaration)&&m(T.valueDeclaration)?(o(r,b,n,T.valueDeclaration,_,y,g),b.writeFixes(r),T.valueDeclaration):void 0}var C=e.getContainingFunction(i);if(void 0!==C){var E;switch(a){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(C)){s(r,b,n,C,_,y,g),E=C;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(m(C)){var k=e.cast(h,e.isParameter);!function(t,r,n,i,a,o,s,l){if(!e.isIdentifier(i.name))return;var _=function(t,r,n,i){var a=p(t,r,n,i);return a&&f(n,a,i).parameters(t)||t.parameters.map((function(t){return{declaration:t,type:e.isIdentifier(t.name)?d(t.name,n,i):n.getTypeChecker().getAnyType()}}))}(a,n,o,l);if(e.Debug.assert(a.parameters.length===_.length,"Parameter count and inference count should match"),e.isInJSFile(a))u(t,n,_,o,s);else{var g=e.isArrowFunction(a)&&!e.findChildOfKind(a,20,n);g&&t.insertNodeBefore(n,e.first(a.parameters),e.factory.createToken(20));for(var m=0,y=_;m<y.length;m++){var v=y[m],h=v.declaration,b=v.type;!h||h.type||h.initializer||c(t,r,n,h,b,o,s)}g&&t.insertNodeAfter(n,e.last(a.parameters),e.factory.createToken(21))}}(r,b,n,k,C,_,y,g),E=k}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(C)&&e.isIdentifier(C.name)&&(c(r,b,n,C,d(C.name,_,g),_,y),E=C);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(C)&&(s(r,b,n,C,_,y,g),E=C);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(C)&&m(C)&&(!function(t,r,n,i,a,o){var s=p(n,r,i,o);if(!s||!s.length)return;var c=f(i,s,o).thisParameter(),u=e.getTypeNodeIfAccessible(c,n,i,a);if(!u)return;e.isInJSFile(n)?function(t,r,n,i){l(t,r,n,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(i))])}(t,r,n,u):t.tryInsertThisTypeAnnotation(r,n,u)}(r,n,C,_,y,g),E=C);break;default:return e.Debug.fail(String(a))}return b.writeFixes(r),E}}}function o(t,r,n,i,a,o,s){e.isIdentifier(i.name)&&c(t,r,n,i,d(i.name,a,s),a,o)}function s(t,r,n,i,a,o,s){var l=e.firstOrUndefined(i.parameters);if(l&&e.isIdentifier(i.name)&&e.isIdentifier(l.name)){var _=d(i.name,a,s);_===a.getTypeChecker().getAnyType()&&(_=d(l.name,a,s)),e.isInJSFile(i)?u(t,n,[{declaration:l,type:_}],a,o):c(t,r,n,l,_,a,o)}}function c(r,n,i,a,o,s,c){var u=e.getTypeNodeIfAccessible(o,a,s,c);if(u)if(e.isInJSFile(i)&&162!==a.kind){var _=e.isVariableDeclaration(a)?e.tryCast(a.parent.parent,e.isVariableStatement):a;if(!_)return;var d=e.factory.createJSDocTypeExpression(u);l(r,i,_,[e.isGetAccessorDeclaration(a)?e.factory.createJSDocReturnTag(void 0,d,""):e.factory.createJSDocTypeTag(void 0,d,"")])}else(function(r,n,i,a,o,s){var c=t.tryGetAutoImportableReferenceFromTypeNode(r,s);if(c&&a.tryInsertTypeAnnotation(i,n,c.typeNode))return e.forEach(c.symbols,(function(e){return o.addImportFromExportedSymbol(e,!0)})),!0;return!1})(u,a,i,r,n,e.getEmitScriptTarget(s.getCompilerOptions()))||r.tryInsertTypeAnnotation(i,a,u)}function u(t,r,n,i,a){var o=n.length&&n[0].declaration.parent;if(o){var s=e.mapDefined(n,(function(t){var r=t.declaration;if(!r.initializer&&!e.getJSDocType(r)&&e.isIdentifier(r.name)){var n=t.type&&e.getTypeNodeIfAccessible(t.type,r,i,a);if(n){var o=e.factory.cloneNode(r.name);return e.setEmitFlags(o,3584),{name:e.factory.cloneNode(r.name),param:r,isOptional:!!t.isOptional,typeNode:n}}}}));if(s.length)if(e.isArrowFunction(o)||e.isFunctionExpression(o)){var c=e.isArrowFunction(o)&&!e.findChildOfKind(o,20,r);c&&t.insertNodeBefore(r,e.first(o.parameters),e.factory.createToken(20)),e.forEach(s,(function(n){var i=n.typeNode,a=n.param,o=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(i)),s=e.factory.createJSDocComment(void 0,[o]);t.insertNodeAt(r,a.getStart(r),s,{suffix:" "})})),c&&t.insertNodeAfter(r,e.last(o.parameters),e.factory.createToken(21))}else{var u=e.map(s,(function(t){var r=t.name,n=t.typeNode,i=t.isOptional;return e.factory.createJSDocParameterTag(void 0,r,!!i,e.factory.createJSDocTypeExpression(n),!1,"")}));l(t,r,o,u)}}}function l(t,r,n,i){var a=e.mapDefined(n.jsDoc,(function(e){return e.comment})),o=e.flatMapToMutable(n.jsDoc,(function(e){return e.tags})),s=i.filter((function(t){return!o||!o.some((function(r,n){var i=function(t,r){if(t.kind!==r.kind)return;switch(t.kind){case 326:var n=t,i=r;return e.isIdentifier(n.name)&&e.isIdentifier(i.name)&&n.name.escapedText===i.name.escapedText?e.factory.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0;case 327:return e.factory.createJSDocReturnTag(void 0,r.typeExpression,t.comment)}}(r,t);return i&&(o[n]=i),!!i}))})),c=e.factory.createJSDocComment(a.join("\n"),e.factory.createNodeArray(__spreadArray(__spreadArray([],o||e.emptyArray),s))),u=209===n.kind?function(e){if(163===e.parent.kind)return e.parent;return e.parent.parent}(n):n;u.jsDoc=n.jsDoc,u.jsDocCache=n.jsDocCache,t.insertJsdocCommentBefore(r,u,c)}function _(t,r,n){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n),(function(t){return 0!==t.kind?e.tryCast(t.node,e.isIdentifier):void 0}))}function d(e,t,r){return f(t,_(e,t,r),r).single()}function p(t,r,n,i){var a;switch(t.kind){case 166:a=e.findChildOfKind(t,132,r);break;case 209:case 208:var o=t.parent;a=(e.isVariableDeclaration(o)||e.isPropertyDeclaration(o))&&e.isIdentifier(o.name)?o.name:t.name;break;case 251:case 165:case 164:a=t.name}if(a)return _(a,n,i)}function f(t,r,n){var i=t.getTypeChecker(),a={string:function(){return i.getStringType()},number:function(){return i.getNumberType()},Array:function(e){return i.createArrayType(e)},Promise:function(e){return i.createPromiseType(e)}},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:function(){return f(u(r))},parameters:function(a){if(0===r.length||!a.parameters)return;for(var o=s(),c=0,d=r;c<d.length;c++){var p=d[c];n.throwIfCancellationRequested(),l(p,o)}var g=__spreadArray(__spreadArray([],o.constructs||[]),o.calls||[]);return a.parameters.map((function(r,o){for(var s=[],c=e.isRestParameter(r),l=!1,d=0,p=g;d<p.length;d++){var m=p[d];if(m.argumentTypes.length<=o)l=e.isInJSFile(a),s.push(i.getUndefinedType());else if(c)for(var y=o;y<m.argumentTypes.length;y++)s.push(i.getBaseTypeOfLiteralType(m.argumentTypes[y]));else s.push(i.getBaseTypeOfLiteralType(m.argumentTypes[o]))}if(e.isIdentifier(r.name)){var v=u(_(r.name,t,n));s.push.apply(s,c?e.mapDefined(v,i.getElementTypeOfArrayType):v)}var h=f(s);return{type:c?i.createArrayType(h):h,isOptional:l&&!c,declaration:r}}))},thisParameter:function(){for(var t=s(),i=0,a=r;i<a.length;i++){var o=a[i];n.throwIfCancellationRequested(),l(o,t)}return f(t.candidateThisTypes||e.emptyArray)}};function s(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function c(t){for(var r=new e.Map,n=0,i=t;n<i.length;n++){var a=i[n];a.properties&&a.properties.forEach((function(e,t){r.has(t)||r.set(t,[]),r.get(t).push(e)}))}var o=new e.Map;return r.forEach((function(e,t){o.set(t,c(e))})),{isNumber:t.some((function(e){return e.isNumber})),isString:t.some((function(e){return e.isString})),isNumberOrString:t.some((function(e){return e.isNumberOrString})),candidateTypes:e.flatMap(t,(function(e){return e.candidateTypes})),properties:o,calls:e.flatMap(t,(function(e){return e.calls})),constructs:e.flatMap(t,(function(e){return e.constructs})),numberIndex:e.forEach(t,(function(e){return e.numberIndex})),stringIndex:e.forEach(t,(function(e){return e.stringIndex})),candidateThisTypes:e.flatMap(t,(function(e){return e.candidateThisTypes})),inferredTypes:void 0}}function u(e){for(var t={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},r=0,i=e;r<i.length;r++){var a=i[r];n.throwIfCancellationRequested(),l(a,t)}return g(t)}function l(t,r){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;switch(t.parent.kind){case 233:!function(t,r){v(r,e.isCallExpression(t)?i.getVoidType():i.getAnyType())}(t,r);break;case 215:r.isNumber=!0;break;case 214:!function(e,t){switch(e.operator){case 45:case 46:case 40:case 54:t.isNumber=!0;break;case 39:t.isNumberOrString=!0}}(t.parent,r);break;case 216:!function(t,r,n){switch(r.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 64:case 66:case 65:case 67:case 68:case 72:case 73:case 77:case 69:case 71:case 70:case 40:case 29:case 32:case 31:case 33:var a=i.getTypeAtLocation(r.left===t?r.right:r.left);1056&a.flags?v(n,a):n.isNumber=!0;break;case 63:case 39:var o=i.getTypeAtLocation(r.left===t?r.right:r.left);1056&o.flags?v(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 62:case 34:case 36:case 37:case 35:v(n,i.getTypeAtLocation(r.left===t?r.right:r.left));break;case 100:t===r.left&&(n.isString=!0);break;case 56:case 60:t!==r.left||249!==t.parent.parent.kind&&!e.isAssignmentExpression(t.parent.parent,!0)||v(n,i.getTypeAtLocation(r.right))}}(t,t.parent,r);break;case 284:case 285:!function(e,t){v(t,i.getTypeAtLocation(e.parent.parent.expression))}(t.parent,r);break;case 203:case 204:t.parent.expression===t?function(e,t){var r={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 n=0,a=e.arguments;n<a.length;n++){var o=a[n];r.argumentTypes.push(i.getTypeAtLocation(o))}l(e,r.return_),203===e.kind?(t.calls||(t.calls=[])).push(r):(t.constructs||(t.constructs=[])).push(r)}(t.parent,r):d(t,r);break;case 201:!function(t,r){var n=e.escapeLeadingUnderscores(t.name.text);r.properties||(r.properties=new e.Map);var i=r.properties.get(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};l(t,i),r.properties.set(n,i)}(t.parent,r);break;case 202:!function(e,t,r){if(t===e.argumentExpression)return void(r.isNumberOrString=!0);var n=i.getTypeAtLocation(e.argumentExpression),a={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};l(e,a),296&n.flags?r.numberIndex=a:r.stringIndex=a}(t.parent,t,r);break;case 288:case 289:!function(t,r){var n=e.isVariableDeclaration(t.parent.parent)?t.parent.parent:t.parent;h(r,i.getTypeAtLocation(n))}(t.parent,r);break;case 163:!function(e,t){h(t,i.getTypeAtLocation(e.parent))}(t.parent,r);break;case 249:var n=t.parent,a=n.name,o=n.initializer;if(t===a){o&&v(r,i.getTypeAtLocation(o));break}default:return d(t,r)}}function d(t,r){e.isExpressionNode(t)&&v(r,i.getContextualType(t))}function p(e){return f(g(e))}function f(t){if(!t.length)return i.getAnyType();var r=i.getUnionType([i.getStringType(),i.getNumberType()]),n=function(t,r){for(var n=[],i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=r;s<c.length;s++){var u=c[s],l=u.high,_=u.low;l(o)&&(e.Debug.assert(!_(o),"Priority can't have both low and high"),n.push(_))}return t.filter((function(e){return n.every((function(t){return!t(e)}))}))}(t,[{high:function(e){return e===i.getStringType()||e===i.getNumberType()},low:function(e){return e===r}},{high:function(e){return!(16385&e.flags)},low:function(e){return!!(16385&e.flags)}},{high:function(t){return!(114689&t.flags||16&e.getObjectFlags(t))},low:function(t){return!!(16&e.getObjectFlags(t))}}]),a=n.filter((function(t){return 16&e.getObjectFlags(t)}));return a.length&&(n=n.filter((function(t){return!(16&e.getObjectFlags(t))}))).push(function(t){if(1===t.length)return t[0];for(var r=[],n=[],a=[],o=[],s=!1,c=!1,u=e.createMultiMap(),l=0,_=t;l<_.length;l++){for(var d=_[l],p=0,f=i.getPropertiesOfType(d);p<f.length;p++){var g=f[p];u.add(g.name,i.getTypeOfSymbolAtLocation(g,g.valueDeclaration))}r.push.apply(r,i.getSignaturesOfType(d,0)),n.push.apply(n,i.getSignaturesOfType(d,1)),d.stringIndexInfo&&(a.push(d.stringIndexInfo.type),s=s||d.stringIndexInfo.isReadonly),d.numberIndexInfo&&(o.push(d.numberIndexInfo.type),c=c||d.numberIndexInfo.isReadonly)}var m=e.mapEntries(u,(function(e,r){var n=r.length<t.length?16777216:0,a=i.createSymbol(4|n,e);return a.type=i.getUnionType(r),[e,a]}));return i.createAnonymousType(t[0].symbol,m,r,n,a.length?i.createIndexInfo(i.getUnionType(a),s):void 0,o.length?i.createIndexInfo(i.getUnionType(o),c):void 0)}(a)),i.getWidenedType(i.getUnionType(n.map(i.getBaseTypeOfLiteralType),2))}function g(t){var r,n,s,c=[];return t.isNumber&&c.push(i.getNumberType()),t.isString&&c.push(i.getStringType()),t.isNumberOrString&&c.push(i.getUnionType([i.getStringType(),i.getNumberType()])),t.numberIndex&&c.push(i.createArrayType(p(t.numberIndex))),((null===(r=t.properties)||void 0===r?void 0:r.size)||(null===(n=t.calls)||void 0===n?void 0:n.length)||(null===(s=t.constructs)||void 0===s?void 0:s.length)||t.stringIndex)&&c.push(function(t){var r=new e.Map;t.properties&&t.properties.forEach((function(e,t){var n=i.createSymbol(4,t);n.type=p(e),r.set(t,n)}));var n=t.calls?[y(t.calls)]:[],a=t.constructs?[y(t.constructs)]:[],o=t.stringIndex&&i.createIndexInfo(p(t.stringIndex),!1);return i.createAnonymousType(void 0,r,n,a,o,void 0)}(t)),c.push.apply(c,(t.candidateTypes||[]).map((function(e){return i.getBaseTypeOfLiteralType(e)}))),c.push.apply(c,function(t){if(!t.properties||!t.properties.size)return[];var r=o.filter((function(r){return function(t,r){return!!r.properties&&!e.forEachEntry(r.properties,(function(r,n){var a,o=i.getTypeOfPropertyOfType(t,n);return!o||(r.calls?!i.getSignaturesOfType(o,0).length||!i.isTypeAssignableTo(o,(a=r.calls,i.createAnonymousType(void 0,e.createSymbolTable(),[y(a)],e.emptyArray,void 0,void 0))):!i.isTypeAssignableTo(o,p(r)))}))}(r,t)}));if(0<r.length&&r.length<3)return r.map((function(r){return function(t,r){if(!(4&e.getObjectFlags(t)&&r.properties))return t;var n=t.target,o=e.singleOrUndefined(n.typeParameters);if(!o)return t;var s=[];return r.properties.forEach((function(t,r){var a=i.getTypeOfPropertyOfType(n,r);e.Debug.assert(!!a,"generic should have all the properties of its reference."),s.push.apply(s,m(a,p(t),o))})),a[t.symbol.escapedName](f(s))}(r,t)}));return[]}(t)),c}function m(t,r,n){if(t===n)return[r];if(3145728&t.flags)return e.flatMap(t.types,(function(e){return m(e,r,n)}));if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)){var a=i.getTypeArguments(t),o=i.getTypeArguments(r),s=[];if(a&&o)for(var c=0;c<a.length;c++)o[c]&&s.push.apply(s,m(a[c],o[c],n));return s}var u=i.getSignaturesOfType(t,0),l=i.getSignaturesOfType(r,0);return 1===u.length&&1===l.length?function(t,r,n){for(var a=[],o=0;o<t.parameters.length;o++){var s=t.parameters[o],c=r.parameters[o],u=t.declaration&&e.isRestParameter(t.declaration.parameters[o]);if(!c)break;var l=i.getTypeOfSymbolAtLocation(s,s.valueDeclaration),_=u&&i.getElementTypeOfArrayType(l);_&&(l=_);var d=c.type||i.getTypeOfSymbolAtLocation(c,c.valueDeclaration);a.push.apply(a,m(l,d,n))}var p=i.getReturnTypeOfSignature(t),f=i.getReturnTypeOfSignature(r);return a.push.apply(a,m(p,f,n)),a}(u[0],l[0],n):[]}function y(t){for(var r=[],n=Math.max.apply(Math,t.map((function(e){return e.argumentTypes.length}))),a=function(n){var a=i.createSymbol(1,e.escapeLeadingUnderscores("arg"+n));a.type=f(t.map((function(e){return e.argumentTypes[n]||i.getUndefinedType()}))),t.some((function(e){return void 0===e.argumentTypes[n]}))&&(a.flags|=16777216),r.push(a)},o=0;o<n;o++)a(o);var s=p(c(t.map((function(e){return e.return_}))));return i.createSignature(void 0,void 0,void 0,r,s,void 0,n,0)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function h(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o,s=n.sourceFile,c=n.program,u=n.span.start,l=n.errorCode,_=n.cancellationToken,d=n.host,p=n.preferences,f=e.getTokenAtPosition(s,u),g=e.textChanges.ChangeTracker.with(n,(function(t){o=a(t,s,f,l,c,_,e.returnTrue,d,p)})),m=o&&e.getNameOfDeclaration(o);return m&&0!==g.length?[t.createCodeFixAction(r,g,[i(l,f),m.getText(s)],r,e.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[r],getAllCodeActions:function(r){var i=r.sourceFile,o=r.program,s=r.cancellationToken,c=r.host,u=r.preferences,l=e.nodeSeenTracker();return t.codeFixAll(r,n,(function(t,r){a(t,i,e.getTokenAtPosition(r.file,r.start),r.code,o,s,l,c,u)}))}}),t.addJSDocTags=l}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixReturnTypeInAsyncFunction",n=[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(t,r,n){if(!e.isInJSFile(t)){var i=e.getTokenAtPosition(t,n),a=e.findAncestor(i,e.isFunctionLikeDeclaration),o=null==a?void 0:a.type;if(o){var s=r.getTypeFromTypeNode(o),c=r.getAwaitedType(s)||r.getVoidType(),u=r.typeToTypeNode(c,o,void 0);return u?{returnTypeNode:o,returnType:s,promisedTypeNode:u,promisedType:c}:void 0}}}function a(t,r,n,i){t.replaceNode(r,n,e.factory.createTypeReferenceNode("Promise",[i]))}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=n.sourceFile,s=n.program,c=n.span,u=s.getTypeChecker(),l=i(o,s.getTypeChecker(),c.start);if(l){var _=l.returnTypeNode,d=l.returnType,p=l.promisedTypeNode,f=l.promisedType,g=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,_,p)}));return[t.createCodeFixAction(r,g,[e.Diagnostics.Replace_0_with_Promise_1,u.typeToString(d),u.typeToString(f)],r,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,e.program.getTypeChecker(),r.start);n&&a(t,r.file,n.returnTypeNode,n.promisedTypeNode)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="disableJsDiagnostics",n="disableJsDiagnostics",i=e.mapDefined(Object.keys(e.Diagnostics),(function(t){var r=e.Diagnostics[t];return r.category===e.DiagnosticCategory.Error?r.code:void 0}));function a(t,r,n,i){var a=e.getLineAndCharacterOfPosition(r,n).line;i&&!e.tryAddToSet(i,a)||t.insertCommentBeforeLine(r,a,n," @ts-ignore")}t.registerCodeFix({errorCodes:i,getCodeActions:function(i){var o=i.sourceFile,s=i.program,c=i.span,u=i.host,l=i.formatContext;if(e.isInJSFile(o)&&e.isCheckJsEnabledForFile(o,s.getCompilerOptions())){var _=o.checkJsDirective?"":e.getNewLineOrDefaultFromHost(u,l.options),d=[t.createCodeFixActionWithoutFixAll(r,[t.createFileTextChanges(o.fileName,[e.createTextChange(o.checkJsDirective?e.createTextSpanFromBounds(o.checkJsDirective.pos,o.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+_)])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(o,c.start)&&d.unshift(t.createCodeFixAction(r,e.textChanges.ChangeTracker.with(i,(function(e){return a(e,o,c.start)})),e.Diagnostics.Ignore_this_error_message,n,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),d}},fixIds:[n],getAllCodeActions:function(r){var n=new e.Set;return t.codeFixAll(r,i,(function(t,r){e.textChanges.isValidLocationToAddComment(r.file,r.start)&&a(t,r.file,r.start,n)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){function r(t){return{trackSymbol:e.noop,moduleResolverHost:e.getModuleSpecifierResolverHost(t.program,t.host)}}function n(t,n,i,s,c,u,l){var d=t.getDeclarations();if(d&&d.length){var f=s.program.getTypeChecker(),g=e.getEmitScriptTarget(s.program.getCompilerOptions()),m=d[0],y=e.getSynthesizedDeepClone(e.getNameOfDeclaration(m),!1),v=function(t){if(4&t)return e.factory.createToken(122);if(16&t)return e.factory.createToken(121);return}(e.getEffectiveModifierFlags(m)),h=v?e.factory.createNodeArray([v]):void 0,b=f.getWidenedType(f.getTypeOfSymbolAtLocation(t,n)),x=!!(16777216&t.flags),D=!!(8388608&n.flags),S=e.getQuotePreference(i,c);switch(m.kind){case 162:case 163:var T=0===S?268435456:void 0,C=f.typeToTypeNode(b,n,T,r(s));if(u)(E=_(C,g))&&(C=E.typeNode,p(u,E.symbols));l(e.factory.createPropertyDeclaration(void 0,h,y,x?e.factory.createToken(57):void 0,C,void 0));break;case 167:case 168:var E,k=f.typeToTypeNode(b,n,void 0,r(s)),N=e.getAllAccessorDeclarations(d,m),A=N.secondAccessor?[N.firstAccessor,N.secondAccessor]:[N.firstAccessor];if(u)(E=_(k,g))&&(k=E.typeNode,p(u,E.symbols));for(var F=0,P=A;F<P.length;F++){var w=P[F];if(e.isGetAccessorDeclaration(w))l(e.factory.createGetAccessorDeclaration(void 0,h,y,e.emptyArray,k,D?void 0:o(S)));else{e.Debug.assertNode(w,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var I=e.getSetAccessorValueParameter(w),O=I&&e.isIdentifier(I.name)?e.idText(I.name):void 0;l(e.factory.createSetAccessorDeclaration(void 0,h,y,a(1,[O],[k],1,!1),D?void 0:o(S)))}}break;case 164:case 165:var M=f.getSignaturesOfType(b,0);if(!e.some(M))break;if(1===d.length){e.Debug.assert(1===M.length,"One declaration implies one signature"),B(S,M[0],h,y,D?void 0:o(S));break}for(var L=0,R=M;L<R.length;L++){B(S,R[L],e.getSynthesizedDeepClones(h,!1),e.getSynthesizedDeepClone(y,!1))}if(!D)if(d.length>M.length)B(S,f.getSignatureFromDeclaration(d[d.length-1]),h,y,o(S));else e.Debug.assert(d.length===M.length,"Declarations and signatures should match count"),l(function(t,r,n,i,s){for(var c=t[0],u=t[0].minArgumentCount,l=!1,_=0,d=t;_<d.length;_++){var p=d[_];u=Math.min(p.minArgumentCount,u),e.signatureHasRestParameter(p)&&(l=!0),p.parameters.length>=c.parameters.length&&(!e.signatureHasRestParameter(p)||e.signatureHasRestParameter(c))&&(c=p)}var f=c.parameters.length-(e.signatureHasRestParameter(c)?1:0),g=c.parameters.map((function(e){return e.name})),m=a(f,g,void 0,u,!1);if(l){var y=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(128)),v=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),g[f]||"rest",f>=u?e.factory.createToken(57):void 0,y,void 0);m.push(v)}return function(t,r,n,i,a,s,c){return e.factory.createMethodDeclaration(void 0,t,void 0,r,n?e.factory.createToken(57):void 0,i,a,s,o(c))}(i,r,n,void 0,m,void 0,s)}(M,y,x,h,S))}}function B(t,i,a,o,c){var d=function(t,n,i,a,o,s,c,u,l){var d=t.program,f=d.getTypeChecker(),g=e.getEmitScriptTarget(d.getCompilerOptions()),m=1073742081|(0===n?268435456:0),y=f.signatureToSignatureDeclaration(i,165,a,m,r(t));if(!y)return;var v=y.typeParameters,h=y.parameters,b=y.type;if(l){if(v){var x=e.sameMap(v,(function(t){var r,n=t.constraint,i=t.default;n&&((r=_(n,g))&&(n=r.typeNode,p(l,r.symbols)));i&&((r=_(i,g))&&(i=r.typeNode,p(l,r.symbols)));return e.factory.updateTypeParameterDeclaration(t,t.name,n,i)}));v!==x&&(v=e.setTextRange(e.factory.createNodeArray(x,v.hasTrailingComma),v))}var D=e.sameMap(h,(function(t){var r=_(t.type,g),n=t.type;return r&&(n=r.typeNode,p(l,r.symbols)),e.factory.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)}));if(h!==D&&(h=e.setTextRange(e.factory.createNodeArray(D,h.hasTrailingComma),h)),b){var S=_(b,g);S&&(b=S.typeNode,p(l,S.symbols))}}return e.factory.updateMethodDeclaration(y,void 0,o,y.asteriskToken,s,c?e.factory.createToken(57):void 0,v,h,b,u)}(s,t,i,n,a,o,x,c,u);d&&l(d)}}function i(t,r,n,i,a,o,s){var c=t.typeToTypeNode(n,i,o,s);if(c&&e.isImportTypeNode(c)){var u=_(c,a);if(u)return p(r,u.symbols),u.typeNode}return c}function a(t,r,n,i,a){for(var o=[],s=0;s<t;s++){var c=e.factory.createParameterDeclaration(void 0,void 0,void 0,r&&r[s]||"arg"+s,void 0!==i&&s>=i?e.factory.createToken(57):void 0,a?void 0:n&&n[s]||e.factory.createKeywordTypeNode(128),void 0);o.push(c)}return o}function o(t){return s(e.Diagnostics.Method_not_implemented.message,t)}function s(t,r){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(t,0===r)]))],!0)}function c(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=l(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=n;s<c.length;s++){var _=c[s],d=_[0],p=_[1],f=l(o,d);void 0===f?t.insertNodeAtObjectStart(r,o,u(d,p)):t.replaceNode(r,f.initializer,p)}}else t.insertNodeAtObjectStart(r,i,u("compilerOptions",e.factory.createObjectLiteralExpression(n.map((function(e){return u(e[0],e[1])})),!0)))}}function u(t,r){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(t),r)}function l(t,r){return e.find(t.properties,(function(t){return e.isPropertyAssignment(t)&&!!t.name&&e.isStringLiteral(t.name)&&t.name.text===r}))}function _(t,r){var n,i=e.visitNode(t,(function t(i){var a;if(e.isLiteralImportTypeNode(i)&&i.qualifier){var o=e.getFirstIdentifier(i.qualifier),s=e.getNameForExportedSymbol(o.symbol,r),c=s!==o.text?d(i.qualifier,e.factory.createIdentifier(s)):i.qualifier;n=e.append(n,o.symbol);var u=null===(a=i.typeArguments)||void 0===a?void 0:a.map(t);return e.factory.createTypeReferenceNode(c,u)}return e.visitEachChild(i,t,e.nullTransformationContext)}));if(n&&i)return{typeNode:i,symbols:n}}function d(t,r){return 78===t.kind?r:e.factory.createQualifiedName(d(t.left,r),t.right)}function p(e,t){t.forEach((function(t){return e.addImportFromExportedSymbol(t,!0)}))}t.createMissingMemberNodes=function(e,t,r,i,a,o,s){for(var c=e.symbol.members,u=0,l=t;u<l.length;u++){var _=l[u];c.has(_.escapedName)||n(_,e,r,i,a,o,s)}},t.getNoopSymbolTrackerWithResolver=r,t.createSignatureDeclarationFromCallExpression=function(t,n,c,u,l,_,d){var p=e.getQuotePreference(n.sourceFile,n.preferences),f=e.getEmitScriptTarget(n.program.getCompilerOptions()),g=r(n),m=n.program.getTypeChecker(),y=e.isInJSFile(d),v=u.typeArguments,h=u.arguments,b=u.parent,x=y?void 0:m.getContextualType(u),D=e.map(h,(function(t){return e.isIdentifier(t)?t.text:e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)?t.name.text:void 0})),S=y?[]:e.map(h,(function(e){return i(m,c,m.getBaseTypeOfLiteralType(m.getTypeAtLocation(e)),d,f,void 0,g)})),T=_?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(_)):void 0,C=e.isYieldExpression(b)?e.factory.createToken(41):void 0,E=y||void 0===v?void 0:e.map(v,(function(t,r){return e.factory.createTypeParameterDeclaration(84+v.length-1<=90?String.fromCharCode(84+r):"T"+r)})),k=a(h.length,D,S,void 0,y),N=y||void 0===x?void 0:m.typeToTypeNode(x,d,void 0,g);return 165===t?e.factory.createMethodDeclaration(void 0,T,C,l,void 0,E,k,N,e.isInterfaceDeclaration(d)?void 0:o(p)):e.factory.createFunctionDeclaration(void 0,T,C,l,E,k,N,s(e.Diagnostics.Function_not_implemented.message,p))},t.typeToAutoImportableTypeNode=i,t.createStubbedBody=s,t.setJsonCompilerOptionValues=c,t.setJsonCompilerOptionValue=function(e,t,r,n){c(e,t,[[r,n]])},t.createJsonPropertyAssignment=u,t.findJsonProperty=l,t.tryGetAutoImportableReferenceFromTypeNode=_,t.importSymbols=p}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){function r(t){return e.isParameterPropertyDeclaration(t,t.parent)||e.isPropertyDeclaration(t)||e.isPropertyAssignment(t)}function n(t,r){return e.isIdentifier(r)?e.factory.createIdentifier(t):e.factory.createStringLiteral(t)}function i(t,r,n){var i=r?n.name:e.factory.createThis();return e.isIdentifier(t)?e.factory.createPropertyAccessExpression(i,t):e.factory.createElementAccessExpression(i,e.factory.createStringLiteralFromNode(t))}function a(t){return t?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(t)):void 0}function o(t,i,a,o,s){void 0===s&&(s=!0);var u=e.getTokenAtPosition(t,a),l=a===o&&s,_=e.findAncestor(u.parent,r);if(!_||!e.nodeOverlapsWithStartEnd(_.name,t,a,o)&&!l)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!function(t){return e.isIdentifier(t)||e.isStringLiteral(t)}(_.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if(124!=(124|e.getEffectiveModifierFlags(_)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var d=_.name.text,p=e.startsWithUnderscore(d),f=n(p?d:e.getUniqueName("_"+d,t),_.name),g=n(p?e.getUniqueName(d.substring(1),t):d,_.name);return{isStatic:e.hasStaticModifier(_),isReadonly:e.hasEffectiveReadonlyModifier(_),type:c(_,i),container:160===_.kind?_.parent.parent:_.parent,originalName:_.name.text,declaration:_,fieldName:f,accessorName:g,renameAccessor:p}}function s(t,r,n,i,a){e.isParameterPropertyDeclaration(i,i.parent)?t.insertNodeAtClassStart(r,a,n):e.isPropertyAssignment(i)?t.insertNodeAfterComma(r,i,n):t.insertNodeAfter(r,i,n)}function c(t,r){var n=e.getTypeAnnotationNode(t);if(e.isPropertyDeclaration(t)&&n&&t.questionToken){var i=r.getTypeChecker(),a=i.getTypeFromTypeNode(n);if(!i.isTypeAssignableTo(i.getUndefinedType(),a)){var o=e.isUnionTypeNode(n)?n.types:[n];return e.factory.createUnionTypeNode(__spreadArray(__spreadArray([],o),[e.factory.createKeywordTypeNode(150)]))}}return n}t.generateAccessorFromProperty=function(t,r,n,c,u,l){var _=o(t,r,n,c);if(_&&!e.refactor.isRefactorErrorInfo(_)){var d,p,f=e.textChanges.ChangeTracker.fromContext(u),g=_.isStatic,m=_.isReadonly,y=_.fieldName,v=_.accessorName,h=_.originalName,b=_.type,x=_.container,D=_.declaration;if(e.suppressLeadingAndTrailingTrivia(y),e.suppressLeadingAndTrailingTrivia(v),e.suppressLeadingAndTrailingTrivia(D),e.suppressLeadingAndTrailingTrivia(x),e.isClassLike(x)){var S=e.getEffectiveModifierFlags(D);if(e.isSourceFileJS(t)){var T=a(S);d=T,p=T}else d=a(function(e){e&=-65,16&(e&=-9)||(e|=4);return e}(S)),p=a(function(e){return e&=-5,e&=-17,e|=8}(S))}!function(t,r,n,i,a,o){e.isPropertyDeclaration(n)?function(t,r,n,i,a,o){var s=e.factory.updatePropertyDeclaration(n,n.decorators,o,a,n.questionToken||n.exclamationToken,i,n.initializer);t.replaceNode(r,n,s)}(t,r,n,i,a,o):e.isPropertyAssignment(n)?function(t,r,n,i){var a=e.factory.updatePropertyAssignment(n,i,n.initializer);t.replacePropertyAssignment(r,n,a)}(t,r,n,a):t.replaceNode(r,n,e.factory.updateParameterDeclaration(n,n.decorators,o,n.dotDotDotToken,e.cast(a,e.isIdentifier),n.questionToken,n.type,n.initializer))}(f,t,D,b,y,p);var C=function(t,r,n,a,o,s){return e.factory.createGetAccessorDeclaration(void 0,a,r,void 0,n,e.factory.createBlock([e.factory.createReturnStatement(i(t,o,s))],!0))}(y,v,b,d,g,x);if(e.suppressLeadingAndTrailingTrivia(C),s(f,t,C,D,x),m){var E=e.getFirstConstructorWithBody(x);E&&function(t,r,n,i,a){if(!n.body)return;n.body.forEachChild((function n(o){e.isElementAccessExpression(o)&&107===o.expression.kind&&e.isStringLiteral(o.argumentExpression)&&o.argumentExpression.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.argumentExpression,e.factory.createStringLiteral(i)),e.isPropertyAccessExpression(o)&&107===o.expression.kind&&o.name.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.name,e.factory.createIdentifier(i)),e.isFunctionLike(o)||e.isClassLike(o)||o.forEachChild(n)}))}(f,t,E,y.text,h)}else{var k=function(t,r,n,a,o,s){return e.factory.createSetAccessorDeclaration(void 0,a,r,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,n)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(i(t,o,s),e.factory.createIdentifier("value")))],!0))}(y,v,b,d,g,x);e.suppressLeadingAndTrailingTrivia(k),s(f,t,k,D,x)}return f.getChanges()}},t.getAccessorConvertiblePropertyAtPosition=o,t.getAllSupers=function(t,r){for(var n=[];t;){var i=e.getClassExtendsHeritageElement(t),a=i&&r.getSymbolAtLocation(i.expression);if(!a)break;var o=2097152&a.flags?r.getAliasedSymbol(a):a,s=e.find(o.declarations,e.isClassLike);if(!s)break;n.push(s),t=s}return n}}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="invalidImportSyntax";function n(n,i,a,o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return e.replaceNode(i,a,o)}));return t.createCodeFixActionWithoutFixAll(r,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(t,r){var i=e.getSourceFileOfNode(r),a=e.getNamespaceDeclarationNode(r),o=t.program.getCompilerOptions(),s=[];return s.push(n(t,i,r,e.makeImport(a.name,void 0,r.moduleSpecifier,e.getQuotePreference(i,t.preferences)))),e.getEmitModuleKind(o)===e.ModuleKind.CommonJS&&s.push(n(t,i,r,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,a.name,e.factory.createExternalModuleReference(r.moduleSpecifier)))),s}(i,c)),e.isExpression(a)&&(!e.isNamedDeclaration(a.parent)||a.parent.name!==a)){var u=i.sourceFile,l=e.textChanges.ChangeTracker.with(i,(function(t){return t.replaceNode(u,a,e.factory.createPropertyAccessExpression(a,"default"),{})}));s.push(t.createCodeFixActionWithoutFixAll(r,l,e.Diagnostics.Use_synthetic_default_member))}return s}t.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:function(t){var r=t.sourceFile,n=e.Diagnostics.This_expression_is_not_callable.code===t.errorCode?203:204,a=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(function(e){return e.kind===n}));if(!a)return[];var o=a.expression;return i(t,o)}}),t.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2.code,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(t){var r=t.sourceFile,n=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(function(e){return e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length}));if(!n)return[];return i(t,n)}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="strictClassInitialization",n="addMissingPropertyDefiniteAssignmentAssertions",i="addMissingPropertyUndefinedType",a="addMissingPropertyInitializer",o=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function s(t,r){var n=e.getTokenAtPosition(t,r);return e.isIdentifier(n)?e.cast(n.parent,e.isPropertyDeclaration):void 0}function c(i,a){var o=e.textChanges.ChangeTracker.with(i,(function(e){return u(e,i.sourceFile,a)}));return t.createCodeFixAction(r,o,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,a.getText()],n,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function u(t,r,n){var i=e.factory.updatePropertyDeclaration(n,n.decorators,n.modifiers,n.name,e.factory.createToken(53),n.type,n.initializer);t.replaceNode(r,n,i)}function l(n,a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return _(e,n.sourceFile,a)}));return t.createCodeFixAction(r,o,[e.Diagnostics.Add_undefined_type_to_property_0,a.name.getText()],i,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function _(t,r,n){var i=e.factory.createKeywordTypeNode(150),a=n.type,o=e.isUnionTypeNode(a)?a.types.concat(i):[a,i];t.replaceNode(r,a,e.factory.createUnionTypeNode(o))}function d(t,r,n,i){var a=e.factory.updatePropertyDeclaration(n,n.decorators,n.modifiers,n.name,n.questionToken,n.type,i);t.replaceNode(r,n,a)}function p(e,t){return f(e,e.getTypeFromTypeNode(t.type))}function f(t,r){if(512&r.flags)return r===t.getFalseType()||r===t.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(r.isStringLiteral())return e.factory.createStringLiteral(r.value);if(r.isNumberLiteral())return e.factory.createNumericLiteral(r.value);if(2048&r.flags)return e.factory.createBigIntLiteral(r.value);if(r.isUnion())return e.firstDefined(r.types,(function(e){return f(t,e)}));if(r.isClass()){var n=e.getClassLikeDeclarationOfSymbol(r.symbol);if(!n||e.hasSyntacticModifier(n,128))return;var i=e.getFirstConstructorWithBody(n);if(i&&i.parameters.length)return;return e.factory.createNewExpression(e.factory.createIdentifier(r.symbol.name),void 0,void 0)}return t.isArrayLikeType(r)?e.factory.createArrayLiteralExpression():void 0}t.registerCodeFix({errorCodes:o,getCodeActions:function(n){var i=s(n.sourceFile,n.span.start);if(i){var o=[l(n,i),c(n,i)];return e.append(o,function(n,i){var o=p(n.program.getTypeChecker(),i);if(!o)return;var s=e.textChanges.ChangeTracker.with(n,(function(e){return d(e,n.sourceFile,i,o)}));return t.createCodeFixAction(r,s,[e.Diagnostics.Add_initializer_to_property_0,i.name.getText()],a,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}(n,i)),o}},fixIds:[n,i,a],getAllCodeActions:function(r){return t.codeFixAll(r,o,(function(t,o){var c=s(o.file,o.start);if(c)switch(r.fixId){case n:u(t,o.file,c);break;case i:_(t,o.file,c);break;case a:var l=p(r.program.getTypeChecker(),c);if(!l)return;d(t,o.file,c,l);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="requireInTs",n=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];function i(t,r,n){var i=n.allowSyntheticDefaults,a=n.defaultImportName,o=n.namedImports,s=n.statement,c=n.required;t.replaceNode(r,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(t,r,n){var i=e.getTokenAtPosition(t,n).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(t){for(var r=[],n=0,i=t.elements;n<i.length;n++){var a=i[n];if(!e.isIdentifier(a.name)||a.initializer)return;r.push(e.factory.createImportSpecifier(e.tryCast(a.propertyName,e.isIdentifier),a.name))}if(r.length)return e.factory.createNamedImports(r)}(a.name):void 0;if(o||s)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(r.getCompilerOptions()),defaultImportName:o,namedImports:s,statement:e.cast(a.parent.parent,e.isVariableStatement),required:e.first(i.arguments)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=a(n.sourceFile,n.program,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Convert_require_to_import,r,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=a(r.file,e.program,r.start);n&&i(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="useDefaultImport",n=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=n.parent;if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(e.isNamespaceImport(i)){var a=i.parent.parent;return{importNode:a,name:n,moduleSpecifier:a.moduleSpecifier}}}}function a(t,r,n,i){t.replaceNode(r,n.importNode,e.makeImport(n.name,void 0,n.moduleSpecifier,e.getQuotePreference(r,i)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span.start,c=i(o,s);if(c){var u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c,n.preferences)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Convert_to_default_import,r,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start);n&&a(t,r.file,n,e.preferences)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="useBigintLiteral",n=[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(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),e.isNumericLiteral);if(i){var a=i.getText(r)+"n";t.replaceNode(r,i,e.factory.createBigIntLiteral(a))}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,r,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixAddModuleReferTypeMissingTypeof",n=[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(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(99===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(195===n.parent.kind,"Token parent should be an ImportType"),n.parent}function a(t,r,n){var i=e.factory.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return a(t,e.sourceFile,i(r.file,r.start))}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="wrapJsxInFragment",n=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,r){var n=e.getTokenAtPosition(t,r).parent.parent;if((e.isBinaryExpression(n)||(n=n.parent,e.isBinaryExpression(n)))&&e.nodeIsMissing(n.operatorToken))return n}function a(t,r,n){var i=function(t){var r=[],n=t;for(;;){if(e.isBinaryExpression(n)&&e.nodeIsMissing(n.operatorToken)&&27===n.operatorToken.kind){if(r.push(n.left),e.isJsxChild(n.right))return r.push(n.right),r;if(e.isBinaryExpression(n.right)){n=n.right;continue}return}return}}(n);i&&t.replaceNode(r,n,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.program.getCompilerOptions().jsx;if(2===o||3===o){var s=n.sourceFile,c=n.span,u=i(s,c.start);if(u){var l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,s,u)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(e.sourceFile,r.start);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixConvertToMappedObjectType",n=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.cast(n.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 a(t,r,n){var i,a,o=n.indexSignature,s=n.container,c=(e.isInterfaceDeclaration(s)?s.members:s.type.members).filter((function(t){return!e.isIndexSignatureDeclaration(t)})),u=e.first(o.parameters),l=e.factory.createTypeParameterDeclaration(e.cast(u.name,e.isIdentifier),u.type),_=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(o)?e.factory.createModifier(142):void 0,l,void 0,o.questionToken,o.type),d=e.factory.createIntersectionTypeNode(__spreadArray(__spreadArray(__spreadArray([],e.getAllSuperTypeNodes(s)),[_]),c.length?[e.factory.createTypeLiteralNode(c)]:e.emptyArray));t.replaceNode(r,s,(i=s,a=d,e.factory.createTypeAliasDeclaration(i.decorators,i.modifiers,i.name,i.typeParameters,a)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)})),l=e.idText(c.container.name);return[t.createCodeFixAction(r,u,[e.Diagnostics.Convert_0_to_mapped_object_type,l],r,[e.Diagnostics.Convert_0_to_mapped_object_type,l])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="removeAccidentalCallParentheses",n=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(n,(function(e){e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})}));return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[r]})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="removeUnnecessaryAwait",n=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),(function(e){return 130===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,r);c&&102!==c.kind&&(o=a.parent)}}t.replaceNode(r,o,a.expression)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unnecessary_await,r,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],n="splitTypeOnlyImport";function i(t,r){return e.findAncestor(e.getTokenAtPosition(t,r.start),e.isImportDeclaration)}function a(t,r,n){if(r){var i=e.Debug.checkDefined(r.importClause);t.replaceNode(n.sourceFile,r,e.factory.updateImportDeclaration(r,r.decorators,r.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),r.moduleSpecifier)),t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),r.moduleSpecifier))}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i(r.sourceFile,r.span),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Split_into_two_separate_import_declarations,n,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){a(t,i(e.sourceFile,r),e)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixConvertConstToLet",n=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,o=n.program,s=function(t,r,n){var i=e.getTokenAtPosition(t,r),a=n.getTypeChecker().getSymbolAtLocation(i);if(a)return a.valueDeclaration.parent.parent}(i,a.start,o),c=e.textChanges.ChangeTracker.with(n,(function(e){return function(e,t,r){if(!r)return;var n=r.getStart();e.replaceRangeWithText(t,{pos:n,end:n+5},"let")}(e,i,s)}));return[t.createCodeFixAction(r,c,e.Diagnostics.Convert_const_to_let,r,e.Diagnostics.Convert_const_to_let)]},fixIds:[r]})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="fixExpectedComma",n=[e.Diagnostics._0_expected.code];function i(t,r,n){var i=e.getTokenAtPosition(t,r);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,r,n){var i=n.node,a=e.factory.createToken(27);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,s)}));return[t.createCodeFixAction(r,c,[e.Diagnostics.Change_0_to_1,";",","],r,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start,r.code);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="addVoidToPromise",n=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n.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),u=null==c?void 0:c.valueDeclaration;if(u&&e.isParameter(u)&&e.isNewExpression(u.parent.parent)&&!(null==a?void 0:a.has(u))){null==a||a.add(u);var l=function(t){var r;if(!e.isInJSFile(t))return t.typeArguments;if(e.isParenthesizedExpression(t.parent)){var n=null===(r=e.getJSDocTypeTag(t.parent))||void 0===r?void 0:r.typeExpression.type;if(n&&e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Promise"===e.idText(n.typeName))return n.typeArguments}}(u.parent.parent);if(e.some(l)){var _=l[0],d=!e.isUnionTypeNode(_)&&!e.isParenthesizedTypeNode(_)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([_,e.factory.createKeywordTypeNode(113)]).types[0]);d&&t.insertText(r,_.pos,"("),t.insertText(r,_.end,d?") | void":" | void")}else{var p=s.getResolvedSignature(o.parent),f=null==p?void 0:p.parameters[0],g=f&&s.getTypeOfSymbolAtLocation(f,u.parent.parent);e.isInJSFile(u)?(!g||3&g.flags)&&(t.insertText(r,u.parent.parent.end,")"),t.insertText(r,e.skipTrivia(r.text,u.parent.parent.pos),"/** @type {Promise<void>} */(")):(!g||2&g.flags)&&t.insertText(r,u.parent.parent.expression.end,"<void>")}}}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span,n.program)}));if(a.length>0)return[t.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){return i(t,n.file,n,r.program,new e.Set)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(t){var r="Convert export",n={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 a(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=a.parent&&1&e.getSyntacticModifierFlags(a.parent)&&r?a.parent:e.getParentNodeInSpan(a,n,i);if(!(o&&(e.isSourceFile(o.parent)||e.isModuleBlock(o.parent)&&e.isAmbientModule(o.parent.parent))))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var s=e.isSourceFile(o.parent)?o.parent.symbol:o.parent.parent.symbol,c=e.getSyntacticModifierFlags(o),u=!!(512&c);if(!(1&c)||!u&&s.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};switch(o.kind){case 251:case 252:case 253:case 255:case 254:case 256:var l=o;return l.name&&e.isIdentifier(l.name)?{exportNode:l,exportName:l.name,wasDefault:u,exportingModuleSymbol:s}:void 0;case 232:var _=o;if(!(2&_.declarationList.flags)||1!==_.declarationList.declarations.length)return;var d=e.first(_.declarationList.declarations);if(!d.initializer)return;return e.Debug.assert(!u,"Can't have a default flag here"),e.isIdentifier(d.name)?{exportNode:_,exportName:d.name,wasDefault:u,exportingModuleSymbol:s}:void 0;default:return}}function o(t,r){return e.factory.createImportSpecifier(t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor(r,{kinds:[n.kind,i.kind],getAvailableActions:function(o){var s=a(o,"invoked"===o.triggerReason);if(!s)return e.emptyArray;if(!t.isRefactorErrorInfo(s)){var c=s.wasDefault?n:i;return[{name:r,description:c.description,actions:[c]}]}return o.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[__assign(__assign({},n),{notApplicableReason:s.error}),__assign(__assign({},i),{notApplicableReason:s.error})]}]:e.emptyArray},getEditsForAction:function(r,s){e.Debug.assert(s===n.name||s===i.name,"Unexpected action name");var c=a(r);return e.Debug.assert(c&&!t.isRefactorErrorInfo(c),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){(function(t,r,n,i){var a=r.wasDefault,o=r.exportNode,s=r.exportName;if(a)n.delete(t,e.Debug.checkDefined(e.findModifier(o,87),"Should find a default keyword in modifier list"));else{var c=e.Debug.checkDefined(e.findModifier(o,92),"Should find an export keyword in modifier list");switch(o.kind){case 251:case 252:case 253:n.insertNodeAfter(t,c,e.factory.createToken(87));break;case 232:var u=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)&&!u.type){n.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 255:case 254:case 256:n.deleteModifier(t,c),n.insertNodeAfter(t,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.assertNever(o,"Unexpected exportNode kind "+o.kind)}}})(t,n,i,r.getTypeChecker()),function(t,r,n,i){var a=r.wasDefault,s=r.exportName,c=r.exportingModuleSymbol,u=t.getTypeChecker(),l=e.Debug.checkDefined(u.getSymbolAtLocation(s),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,i,l,c,s.text,a,(function(t){var r=t.getSourceFile();a?function(t,r,n,i){var a=r.parent;switch(a.kind){case 201:n.replaceNode(t,r,e.factory.createIdentifier(i));break;case 265:case 270:var s=a;n.replaceNode(t,s,o(i,s.name.text));break;case 262:var c=a;e.Debug.assert(c.name===r,"Import clause name should match provided ref");s=o(i,r.text);var u=c.namedBindings;if(u)if(263===u.kind){n.deleteRange(t,{pos:r.getStart(t),end:u.getStart(t)});var l=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,_=e.makeImport(void 0,[o(i,r.text)],c.parent.moduleSpecifier,l);n.insertNodeAfter(t,c.parent,_)}else n.delete(t,r),n.insertNodeAtEndOfList(t,u.elements,s);else n.replaceNode(t,r,e.factory.createNamedImports([s]));break;default:e.Debug.failBadSyntaxKind(a)}}(r,t,n,s.text):function(t,r,n){var i=r.parent;switch(i.kind){case 201:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 265:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?n.replaceNode(t,i.parent,a):(n.delete(t,i),n.insertNodeBefore(t,i.parent,a));break;case 270:n.replaceNode(t,i,(o="default",s=i.name.text,e.factory.createExportSpecifier(o===s?void 0:e.factory.createIdentifier(o),e.factory.createIdentifier(s))));break;default:e.Debug.assertNever(i,"Unexpected parent kind "+i.kind)}var o,s}(r,t,n)}))}(r,n,i,a)}(r.file,r.program,c,t,r.cancellationToken)})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(t){var r="Convert import",n={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 a(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,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 o(t){return e.isPropertyAccessExpression(t)?t.name:t.right}function s(t,r,n){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,r,n&&n.length?e.factory.createNamedImports(n):void 0),t.moduleSpecifier)}t.registerRefactor(r,{kinds:[n.kind,i.kind],getAvailableActions:function(o){var s=a(o,"invoked"===o.triggerReason);if(!s)return e.emptyArray;if(!t.isRefactorErrorInfo(s)){var c=263===s.kind?n:i;return[{name:r,description:c.description,actions:[c]}]}return o.preferences.provideRefactorNotApplicableReason?[{name:r,description:n.description,actions:[__assign(__assign({},n),{notApplicableReason:s.error})]},{name:r,description:i.description,actions:[__assign(__assign({},i),{notApplicableReason:s.error})]}]:e.emptyArray},getEditsForAction:function(r,c){e.Debug.assert(c===n.name||c===i.name,"Unexpected action name");var u=a(r);return e.Debug.assert(u&&!t.isRefactorErrorInfo(u),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(function(t){return n=r.file,i=r.program,a=t,c=u,l=i.getTypeChecker(),void(263===c.kind?function(t,r,n,i,a){var c=!1,u=[],l=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,r,t,(function(t){if(e.isPropertyAccessOrQualifiedName(t.parent)){var n=o(t.parent).text;r.resolveName(n,t,67108863,!0)&&l.set(n,!0),e.Debug.assert(function(t){return e.isPropertyAccessExpression(t)?t.expression:t.left}(t.parent)===t,"Parent expression should match id"),u.push(t.parent)}else c=!0}));for(var _=new e.Map,d=0,p=u;d<p.length;d++){var f=p[d],g=o(f).text,m=_.get(g);void 0===m&&_.set(g,m=l.has(g)?e.getUniqueName(g,t):g),n.replaceNode(t,f,e.factory.createIdentifier(m))}var y=[];_.forEach((function(t,r){y.push(e.factory.createImportSpecifier(t===r?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(t)))}));var v=i.parent.parent;c&&!a?n.insertNodeAfter(t,v,s(v,void 0,y)):n.replaceNode(t,v,s(v,c?e.factory.createIdentifier(i.name.text):void 0,y))}(n,l,a,c,e.getAllowSyntheticDefaultImports(i.getCompilerOptions())):function(t,r,n,i){for(var a=i.parent.parent,o=a.moduleSpecifier,c=o&&e.isStringLiteral(o)?e.codefix.moduleSpecifierToValidIdentifier(o.text,99):"module",u=i.elements.some((function(n){return e.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,r,t,(function(e){return!!r.resolveName(c,e,67108863,!0)}))||!1}))?e.getUniqueName(c,t):c,l=[],_=function(i){var a=(i.propertyName||i.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,r,t,(function(r){var o=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(u),a);e.isShorthandPropertyAssignment(r.parent)?n.replaceNode(t,r.parent,e.factory.createPropertyAssignment(r.text,o)):e.isExportSpecifier(r.parent)&&!r.parent.propertyName?l.some((function(e){return e.name===i.name}))||l.push(e.factory.createImportSpecifier(i.propertyName&&e.factory.createIdentifier(i.propertyName.text),e.factory.createIdentifier(i.name.text))):n.replaceNode(t,r,o)}))},d=0,p=i.elements;d<p.length;d++)_(p[d]);n.replaceNode(t,i,e.factory.createNamespaceImport(e.factory.createIdentifier(u))),l.length&&n.insertNodeAfter(t,i.parent.parent,s(a,void 0,l))}(n,l,a,c));var n,i,a,c,l})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(t){!function(r){var n="Convert to optional chain expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),a={name:n,description:i,kind:"refactor.rewrite.expression.optionalChain"};function o(t){return e.isBinaryExpression(t)||e.isConditionalExpression(t)}function s(t){return o(t)||function(t){return e.isExpressionStatement(t)||e.isReturnStatement(t)||e.isVariableStatement(t)}(t)}function c(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),c=0===a.length;if(!c||r){var _=e.getTokenAtPosition(n,a.start),p=e.findTokenOnLeftOfPosition(n,a.start+a.length),f=e.createTextSpanFromBounds(_.pos,p&&p.end>=_.pos?p.getEnd():_.getEnd()),g=c?function(e){for(;e.parent;){if(s(e)&&!s(e.parent))return e;e=e.parent}return}(_):function(e,t){for(;e.parent;){if(s(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}return}(_,f),m=g&&s(g)?function(t){if(o(t))return t;if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t),n=null==r?void 0:r.initializer;return n&&o(n)?n:void 0}return t.expression&&o(t.expression)?t.expression:void 0}(g):void 0;if(!m)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var y=i.getTypeChecker();return e.isConditionalExpression(m)?function(t,r){var n=t.condition,i=d(t.whenTrue);if(!i||r.isNullableType(r.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(n)||e.isIdentifier(n))&&l(n,i.expression))return{finalExpression:i,occurrences:[n],expression:t};if(e.isBinaryExpression(n)){var a=u(i.expression,n);return a?{finalExpression:i,occurrences:a,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(m,y):function(t){if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var r=d(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=u(r.expression,t.left);return n?{finalExpression:r,occurrences:n,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(m)}}function u(t,r){for(var n=[];e.isBinaryExpression(r)&&55===r.operatorToken.kind;){var i=l(e.skipParentheses(t),e.skipParentheses(r.right));if(!i)break;n.push(i),t=i,r=r.left}var a=l(t,r);return a&&n.push(a),n.length>0?n:void 0}function l(t,r){if(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))return function(t,r){for(;(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&_(t)!==_(r);)t=t.expression;for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(r);){if(_(t)!==_(r))return!1;t=t.expression,r=r.expression}return e.isIdentifier(t)&&e.isIdentifier(r)&&t.getText()===r.getText()}(t,r)?r:void 0}function _(t){return e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)?t.getText():e.isPropertyAccessExpression(t)?_(t.name):e.isElementAccessExpression(t)?_(t.argumentExpression):void 0}function d(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?d(t.left):(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)?t:void 0}function p(t,r,n){if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)||e.isCallExpression(r)){var i=p(t,r.expression,n),a=n.length>0?n[n.length-1]:void 0,o=(null==a?void 0:a.getText())===r.expression.getText();if(o&&n.pop(),e.isCallExpression(r))return o?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(e.isElementAccessExpression(r))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),r.argumentExpression):e.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}t.registerRefactor(n,{kinds:[a.kind],getAvailableActions:function(r){var o=c(r,"invoked"===r.triggerReason);if(!o)return e.emptyArray;if(!t.isRefactorErrorInfo(o))return[{name:n,description:i,actions:[a]}];if(r.preferences.provideRefactorNotApplicableReason)return[{name:n,description:i,actions:[__assign(__assign({},a),{notApplicableReason:o.error})]}];return e.emptyArray},getEditsForAction:function(r,n){var i=c(r);return e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){var o=i.finalExpression,s=i.occurrences,c=i.expression,u=s[s.length-1],l=p(r,o,s);l&&(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l)||e.isCallExpression(l))&&(e.isBinaryExpression(c)?n.replaceNodeRange(t,u,o,l):e.isConditionalExpression(c)&&n.replaceNode(t,c,e.factory.createBinaryExpression(l,e.factory.createToken(60),c.whenFalse)))}(r.file,r.program.getTypeChecker(),t,i)})),renameFilename:void 0,renameLocation:void 0}}})}(t.convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(t){!function(r){var n="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message,a={name:n,description:i,kind:"refactor.rewrite.function.overloadList"};function o(e){switch(e.kind){case 164:case 165:case 169:case 166:case 170:case 251:return!0}return!1}function s(t,r,n){var i=e.getTokenAtPosition(t,r),a=e.findAncestor(i,o);if(a){var s=n.getTypeChecker(),c=a.symbol;if(c){var u=c.declarations;if(!(e.length(u)<=1)&&e.every(u,(function(r){return e.getSourceFileOfNode(r)===t}))&&o(u[0])){var l=u[0].kind;if(e.every(u,(function(e){return e.kind===l}))){var _=u;if(!e.some(_,(function(t){return!!t.typeParameters||e.some(t.parameters,(function(t){return!!t.decorators||!!t.modifiers||!e.isIdentifier(t.name)}))}))){var d=e.mapDefined(_,(function(e){return s.getSignatureFromDeclaration(e)}));if(e.length(d)===e.length(u)){var p=s.getReturnTypeOfSignature(d[0]);if(e.every(d,(function(e){return s.getReturnTypeOfSignature(e)===p})))return _}}}}}}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(t){var r=t.file,n=t.startPosition,i=t.program,a=s(r,n,i);if(!a)return;var o=i.getTypeChecker(),c=a[a.length-1],u=c;switch(c.kind){case 164:u=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,_(a),c.type);break;case 165:u=e.factory.updateMethodDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,_(a),c.type,c.body);break;case 169:u=e.factory.updateCallSignature(c,c.typeParameters,_(a),c.type);break;case 166:u=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,_(a),c.body);break;case 170:u=e.factory.updateConstructSignature(c,c.typeParameters,_(a),c.type);break;case 251:u=e.factory.updateFunctionDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.typeParameters,_(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(u===c)return;var l=e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNodeRange(r,a[0],a[a.length-1],u)}));return{renameFilename:void 0,renameLocation:void 0,edits:l};function _(t){var r=t[t.length-1];return e.isFunctionLikeDeclaration(r)&&r.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,d)))])}function d(t){var r=e.map(t.parameters,p);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,(function(t){return!!e.length(e.getSyntheticLeadingComments(t))}))?0:1)}function p(t){e.Debug.assert(e.isIdentifier(t.name));var r=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(128)),t),n=t.symbol&&t.symbol.getDocumentationComment(o);if(n){var i=e.displayPartsToString(n);i.length&&e.setSyntheticLeadingComments(r,[{text:"*\n"+i.split("\n").map((function(e){return" * "+e})).join("\n")+"\n ",kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return r}},getAvailableActions:function(t){var r=t.file,o=t.startPosition,c=t.program;return s(r,o,c)?[{name:n,description:i,actions:[a]}]:e.emptyArray}})}(t.addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(t){!function(r){var n,i,a,o,s="Extract Symbol",c={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 l(r){var n=r.kind,i=d(r.file,e.getRefactorContextSpan(r),"invoked"===r.triggerReason),a=i.targetRange;if(void 0===a){if(!i.errors||0===i.errors.length||!r.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var o=[];return t.refactorKindBeginsWith(u.kind,n)&&o.push({name:s,description:u.description,actions:[__assign(__assign({},u),{notApplicableReason:N(i.errors)})]}),t.refactorKindBeginsWith(c.kind,n)&&o.push({name:s,description:c.description,actions:[__assign(__assign({},c),{notApplicableReason:N(i.errors)})]}),o}var l=function(t,r){var n=g(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope;return i.map((function(t,r){var n,i,a=function(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}(t),c=function(t){return e.isClassLike(t)?"readonly field":"constant"}(t),u=e.isFunctionLikeDeclaration(t)?function(t){switch(t.kind){case 166:return"constructor";case 208:case 251:return t.name?"function '"+t.name.text+"'":e.ANONYMOUS;case 209:return"arrow function";case 165:return"method '"+t.name.getText()+"'";case 167:return"'get "+t.name.getText()+"'";case 168:return"'set "+t.name.getText()+"'";default:throw e.Debug.assertNever(t,"Unexpected scope kind "+t.kind)}}(t):e.isClassLike(t)?function(e){return 252===e.kind?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}(t):function(e){return 257===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(t);return 1===u?(n=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===u?(n=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"])):(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,u]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,u])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:o[r]},constantExtraction:{description:i,errors:s[r]}}}))}(a,r);if(void 0===l)return e.emptyArray;for(var _,p,f=[],m=new e.Map,y=[],v=new e.Map,h=0,b=0,x=l;b<x.length;b++){var D=x[b],S=D.functionExtraction,T=D.constantExtraction,C=S.description;if(t.refactorKindBeginsWith(u.kind,n)&&(0===S.errors.length?m.has(C)||(m.set(C,!0),f.push({description:C,name:"function_scope_"+h,kind:u.kind})):_||(_={description:C,name:"function_scope_"+h,notApplicableReason:N(S.errors),kind:u.kind})),t.refactorKindBeginsWith(c.kind,n))if(0===T.errors.length){var E=T.description;v.has(E)||(v.set(E,!0),y.push({description:E,name:"constant_scope_"+h,kind:c.kind}))}else p||(p={description:C,name:"constant_scope_"+h,notApplicableReason:N(T.errors),kind:c.kind});h++}var k=[];return f.length?k.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:f}):r.preferences.provideRefactorNotApplicableReason&&_&&k.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[_]}),y.length?k.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:y}):r.preferences.provideRefactorNotApplicableReason&&p&&k.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[p]}),k.length?k:e.emptyArray;function N(e){var t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function _(t,r){var n=d(t.file,e.getRefactorContextSpan(t)).targetRange,a=/^function_scope_(\d+)$/.exec(r);if(a){var o=+a[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),function(t,r,n){var a=g(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,u=s.usagesPerScope,l=s.functionErrorsPerScope,_=s.exposedVariableDeclarations;return e.Debug.assert(!l[n].length,"The extraction went missing? How?"),r.cancellationToken.throwIfCancellationRequested(),function(t,r,n,a,o,s){var c,u,l=n.usages,_=n.typeParameterUsages,d=n.substitutions,p=s.program.getTypeChecker(),f=e.getEmitScriptTarget(s.program.getCompilerOptions()),g=e.codefix.createImportAdder(s.file,s.program,s.preferences,s.host),b=r.getSourceFile(),x=e.getUniqueName(e.isClassLike(r)?"newMethod":"newFunction",b),S=e.isInJSFile(r),T=e.factory.createIdentifier(x),C=[],E=[];l.forEach((function(t,n){var i;if(!S){var a=p.getTypeOfSymbolAtLocation(t.symbol,t.node);a=p.getBaseTypeOfLiteralType(a),i=e.codefix.typeToAutoImportableTypeNode(p,g,a,r,f,1)}var o=e.factory.createParameterDeclaration(void 0,void 0,void 0,n,void 0,i);C.push(o),2===t.usage&&(u||(u=[])).push(t),E.push(e.factory.createIdentifier(n))}));var k=e.arrayFrom(_.values()).map((function(e){return{type:e,declaration:m(e)}})).sort(y),N=0===k.length?void 0:k.map((function(e){return e.declaration})),A=void 0!==N?N.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)})):void 0;if(e.isExpression(t)&&!S){var F=p.getContextualType(t);c=p.typeToTypeNode(F,r,1)}var P,w=function(t,r,n,i,a){var o,s=void 0!==n||r.length>0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(t)]);if(s||i.size){var l=e.visitNodes(u,d).slice();if(s&&!a&&e.isStatement(t)){var _=v(r,n);1===_.length?l.push(e.factory.createReturnStatement(_[0].name)):l.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(_)))}return{body:e.factory.createBlock(l,!0),returnValueProperty:o}}return{body:e.factory.createBlock(u,!0),returnValueProperty:void 0};function d(t){if(!c&&e.isReturnStatement(t)&&s){var a=v(r,n);return t.expression&&(o||(o="__return"),a.unshift(e.factory.createPropertyAssignment(o,e.visitNode(t.expression,d)))),1===a.length?e.factory.createReturnStatement(a[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(a))}var u=c;c=c||e.isFunctionLikeDeclaration(t)||e.isClassLike(t);var l=i.get(e.getNodeId(t).toString()),_=l?e.getSynthesizedDeepClone(l):e.visitEachChild(t,d,e.nullTransformationContext);return c=u,_}}(t,a,u,d,!!(o.facts&i.HasReturn)),I=w.body,O=w.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(I),e.isClassLike(r)){var M=S?[]:[e.factory.createModifier(120)];o.facts&i.InStaticRegion&&M.push(e.factory.createModifier(123)),o.facts&i.IsAsyncFunction&&M.push(e.factory.createModifier(129)),P=e.factory.createMethodDeclaration(void 0,M.length?M:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,T,void 0,N,C,c,I)}else P=e.factory.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.factory.createToken(129)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,T,N,C,c,I);var L=e.textChanges.ChangeTracker.fromContext(s),R=function(t,r){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray}(r),(function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)}))}((h(o.range)?e.last(o.range):o.range).end,r);R?L.insertNodeBefore(s.file,R,P,!0):L.insertNodeAtEndOfScope(s.file,r,P);g.writeFixes(L);var B=[],j=function(t,r,n){var a=e.factory.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,a)}return a}(r,o,x),J=e.factory.createCallExpression(j,A,E);o.facts&i.IsGenerator&&(J=e.factory.createYieldExpression(e.factory.createToken(41),J));o.facts&i.IsAsyncFunction&&(J=e.factory.createAwaitExpression(J));D(t)&&(J=e.factory.createJsxExpression(void 0,J));if(a.length&&!u)if(e.Debug.assert(!O,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var z=a[0];B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(z.name),void 0,e.getSynthesizedDeepClone(z.type),J)],z.parent.flags)))}else{for(var U=[],V=[],K=a[0].parent.flags,q=!1,W=0,H=a;W<H.length;W++){z=H[W];U.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(z.name)));var G=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(z)),r,1);V.push(e.factory.createPropertySignature(void 0,z.symbol.name,void 0,G)),q=q||void 0!==z.type,K&=z.parent.flags}var X=q?e.factory.createTypeLiteralNode(V):void 0;X&&e.setEmitFlags(X,1),B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(U),void 0,X,J)],K)))}else if(a.length||u){if(a.length)for(var Q=0,Y=a;Q<Y.length;Q++){var Z=(z=Y[Q]).parent.flags;2&Z&&(Z=-3&Z|1),B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(z.symbol.name,void 0,ne(z.type))],Z)))}O&&B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(O,void 0,ne(c))],1)));var $=v(a,u);O&&$.unshift(e.factory.createShorthandPropertyAssignment(O)),1===$.length?(e.Debug.assert(!O,"Shouldn't have returnValueProperty here"),B.push(e.factory.createExpressionStatement(e.factory.createAssignment($[0].name,J))),o.facts&i.HasReturn&&B.push(e.factory.createReturnStatement())):(B.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression($),J))),O&&B.push(e.factory.createReturnStatement(e.factory.createIdentifier(O))))}else o.facts&i.HasReturn?B.push(e.factory.createReturnStatement(J)):h(o.range)?B.push(e.factory.createExpressionStatement(J)):B.push(J);h(o.range)?L.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),B):L.replaceNodeWithNodes(s.file,o.range,B);var ee=L.getChanges(),te=(h(o.range)?e.first(o.range):o.range).getSourceFile().fileName,re=e.getRenameLocation(ee,te,x,!1);return{renameFilename:te,renameLocation:re,edits:ee};function ne(t){if(void 0!==t){for(var r=e.getSynthesizedDeepClone(t),n=r;e.isParenthesizedTypeNode(n);)n=n.type;return e.isUnionTypeNode(n)&&e.find(n.types,(function(e){return 150===e.kind}))?r:e.factory.createUnionTypeNode([r,e.factory.createKeywordTypeNode(150)])}}}(c,o[n],u[n],_,t,r)}(n,t,o)}var s=/^constant_scope_(\d+)$/.exec(r);if(s){o=+s[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),function(t,r,n){var a=g(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,u=s.usagesPerScope,l=s.constantErrorsPerScope,_=s.exposedVariableDeclarations;return e.Debug.assert(!l[n].length,"The extraction went missing? How?"),e.Debug.assert(0===_.length,"Extract constant accepted a range containing a variable declaration?"),r.cancellationToken.throwIfCancellationRequested(),function(t,r,n,a,o){var s,c=n.substitutions,u=o.program.getTypeChecker(),l=r.getSourceFile(),_=e.getUniqueName(e.isClassLike(r)?"newProperty":"newLocal",l),d=e.isInJSFile(r),p=d||!u.isContextSensitive(t)?void 0:u.typeToTypeNode(u.getContextualType(t),r,1),g=function(t,r){return r.size?n(t):t;function n(t){var i=r.get(e.getNodeId(t).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(t,n,e.nullTransformationContext)}}(t,c);s=A(p,g),p=s.variableType,g=s.initializer,e.suppressLeadingAndTrailingTrivia(g);var m=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(r)){e.Debug.assert(!d,"Cannot extract to a JS class");var y=[];y.push(e.factory.createModifier(120)),a&i.InStaticRegion&&y.push(e.factory.createModifier(123)),y.push(e.factory.createModifier(142));var v=e.factory.createPropertyDeclaration(void 0,y,_,void 0,p,g),h=e.factory.createPropertyAccessExpression(a&i.InStaticRegion?e.factory.createIdentifier(r.name.getText()):e.factory.createThis(),e.factory.createIdentifier(_));D(t)&&(h=e.factory.createJsxExpression(void 0,h));var b=function(t,r){var n,i=r.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>t)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(t.pos,r);m.insertNodeBefore(o.file,b,v,!0),m.replaceNode(o.file,t,h)}else{var S=e.factory.createVariableDeclaration(_,void 0,p,g),T=function(t,r){var n;for(;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}}(t,r);if(T){m.insertNodeBefore(o.file,T,S);h=e.factory.createIdentifier(_);m.replaceNode(o.file,t,h)}else if(233===t.parent.kind&&r===e.findAncestor(t,f)){var C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2));m.replaceNode(o.file,t.parent,C)}else{C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2));if(0===(b=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)f(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(x(i)){for(var a=void 0,o=0,s=i.statements;o<s.length;o++){var c=s[o];if(c.pos>t.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!==r,"Didn't encounter a block-like before encountering scope")}}(t,r)).pos?m.insertNodeAtTopOfFile(o.file,C,!1):m.insertNodeBefore(o.file,b,C,!1),233===t.parent.kind)m.delete(o.file,t.parent);else{h=e.factory.createIdentifier(_);D(t)&&(h=e.factory.createJsxExpression(void 0,h)),m.replaceNode(o.file,t,h)}}}var E=m.getChanges(),k=t.getSourceFile().fileName,N=e.getRenameLocation(E,k,_,!0);return{renameFilename:k,renameLocation:N,edits:E};function A(n,i){if(void 0===n)return{variableType:n,initializer:i};if(!e.isFunctionExpression(i)&&!e.isArrowFunction(i)||i.typeParameters)return{variableType:n,initializer:i};var a=u.getTypeAtLocation(t),o=e.singleOrUndefined(u.getSignaturesOfType(a,0));if(!o)return{variableType:n,initializer:i};if(o.getTypeParameters())return{variableType:n,initializer:i};for(var s=[],c=!1,l=0,_=i.parameters;l<_.length;l++){var d=_[l];if(d.type)s.push(d);else{var p=u.getTypeAtLocation(d);p===u.getAnyType()&&(c=!0),s.push(e.factory.updateParameterDeclaration(d,d.decorators,d.modifiers,d.dotDotDotToken,d.name,d.questionToken,d.type||u.typeToTypeNode(p,r,1),d.initializer))}}if(c)return{variableType:n,initializer:i};if(n=void 0,e.isArrowFunction(i))i=e.factory.updateArrowFunction(i,t.modifiers,i.typeParameters,s,i.type||u.typeToTypeNode(o.getReturnType(),r,1),i.equalsGreaterThanToken,i.body);else{if(o&&o.thisParameter){var f=e.firstOrUndefined(s);if(!f||e.isIdentifier(f.name)&&"this"!==f.name.escapedText){var g=u.getTypeOfSymbolAtLocation(o.thisParameter,t);s.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,u.typeToTypeNode(g,r,1)))}}i=e.factory.updateFunctionExpression(i,t.modifiers,i.asteriskToken,i.name,i.typeParameters,s,i.type||u.typeToTypeNode(o.getReturnType(),r,1),i.body)}return{variableType:n,initializer:i}}}(e.isExpression(c)?c:c.statements[0].expression,o[n],u[n],t.facts,r)}(n,t,o)}e.Debug.fail("Unrecognized action name")}function d(t,r,a){void 0===a&&(a=!0);var o=r.length;if(0===o&&!a)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractEmpty)]};var s=0===o&&a,c=e.getTokenAtPosition(t,r.start),u=s?function(t){return e.findAncestor(t,(function(t){return t.parent&&b(t)&&!e.isBinaryExpression(t.parent)}))}(c):e.getParentNodeInSpan(c,t,r),l=e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),_=s?u:e.getParentNodeInSpan(l,t,r),d=[],f=i.None;if(!u||!_)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(u.parent!==_.parent)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(u!==_){if(!x(u.parent))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};for(var g=[],m=0,y=u.parent.statements;m<y.length;m++){var v=y[m];if(v===u||g.length){var h=T(v);if(h)return{errors:h};g.push(v)}if(v===_)break}return g.length?{targetRange:{range:g,facts:f,declarations:d}}:{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]}}if(e.isJSDoc(u))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractJSDoc)]};if(e.isReturnStatement(u)&&!u.expression)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};var D=function(t){if(e.isReturnStatement(t)){if(t.expression)return t.expression}else if(e.isVariableStatement(t)){for(var r=0,n=void 0,i=0,a=t.declarationList.declarations;i<a.length;i++){var o=a[i];o.initializer&&(r++,n=o.initializer)}if(1===r)return n}else if(e.isVariableDeclaration(t)&&t.initializer)return t.initializer;return t}(u),S=function(t){if(e.isIdentifier(e.isExpressionStatement(t)?t.expression:t))return[e.createDiagnosticForNode(t,n.cannotExtractIdentifier)];return}(D)||T(D);return S?{errors:S}:{targetRange:{range:p(D),facts:f,declarations:d}};function T(t){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(t.pos<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(t.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(e.isStatement(t)||e.isExpressionNode(t)&&b(t)))return[e.createDiagnosticForNode(t,n.statementOrExpressionExpected)];if(8388608&t.flags)return[e.createDiagnosticForNode(t,n.cannotExtractAmbientBlock)];var o,s=e.getContainingClass(t);s&&function(t,r){for(var n=t;n!==r;){if(163===n.kind){e.hasSyntacticModifier(n,32)&&(f|=i.InStaticRegion);break}if(160===n.kind){166===e.getContainingFunction(n).kind&&(f|=i.InStaticRegion);break}165===n.kind&&e.hasSyntacticModifier(n,32)&&(f|=i.InStaticRegion),n=n.parent}}(t,s);var c,u=4;return function t(a){if(o)return!0;if(e.isDeclaration(a)){var s=249===a.kind?a.parent.parent:a;if(e.hasSyntacticModifier(s,1))return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;d.push(a.symbol)}switch(a.kind){case 261:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractImport)),!0;case 266:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;case 105:if(203===a.parent.kind){var l=e.getContainingClass(a);if(l.pos<r.start||l.end>=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else f|=i.UsesThis;break;case 209:e.forEachChild(a,(function t(r){if(e.isThis(r))f|=i.UsesThis;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}}));case 252:case 251:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope));case 221:case 208:case 165:case 166:case 167:case 168:return!1}var _=u;switch(a.kind){case 234:case 247:u=0;break;case 230:a.parent&&247===a.parent.kind&&a.parent.finallyBlock===a&&(u=4);break;case 285:case 284:u|=1;break;default:e.isIterationStatement(a,!1)&&(u|=3)}switch(a.kind){case 187:case 107:f|=i.UsesThis;break;case 245:var p=a.label;(c||(c=[])).push(p.escapedText),e.forEachChild(a,t),c.pop();break;case 241:case 240:(p=a.label)?e.contains(c,p.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(241===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 213:f|=i.IsAsyncFunction;break;case 219:f|=i.IsGenerator;break;case 242:4&u?f|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}u=_}(t),o}}function p(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:void 0}function f(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function g(t,r){var a=r.file,o=function(t){var r=h(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(160===(r=r.parent).kind&&(r=e.findAncestor(r,(function(t){return e.isFunctionLikeDeclaration(t)})).parent),f(r)&&(o.push(r),297===r.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,r,a,o,s,c){var u,l,_=new e.Map,d=[],p=[],f=[],g=[],m=[],y=new e.Map,v=[],b=h(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===b){var x=t.range,D=e.first(x).getStart(),S=e.last(x).end;l=e.createFileDiagnostic(o,D,S-D,n.expressionExpected)}else 147456&s.getTypeAtLocation(b).flags&&(l=e.createDiagnosticForNode(b,n.uselessConstantType));for(var T=0,C=r;T<C.length;T++){var E=C[T];d.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),p.push(new e.Map),f.push(e.isFunctionLikeDeclaration(E)&&251!==E.kind?[e.createDiagnosticForNode(E,n.cannotExtractToOtherFunctionLike)]:[]);var k=[];l&&k.push(l),e.isClassLike(E)&&e.isInJSFile(E)&&k.push(e.createDiagnosticForNode(E,n.cannotExtractToJSClass)),e.isArrowFunction(E)&&!e.isBlock(E.body)&&k.push(e.createDiagnosticForNode(E,n.cannotExtractToExpressionArrowFunction)),g.push(k)}var N=new e.Map,A=h(t.range)?e.factory.createBlock(t.range):t.range,F=h(t.range)?e.first(t.range):t.range,P=U(F);if(K(A),P&&!h(t.range)){V(s.getContextualType(t.range))}if(_.size>0){for(var w=new e.Map,I=0,O=F;void 0!==O&&I<r.length;O=O.parent)if(O===r[I]&&(w.forEach((function(e,t){d[I].typeParameterUsages.set(t,e)})),I++),e.isDeclarationWithTypeParameters(O))for(var M=0,L=e.getEffectiveTypeParameterDeclarations(O);M<L.length;M++){var R=L[M],B=s.getTypeAtLocation(R);_.has(B.id.toString())&&w.set(B.id.toString(),B)}e.Debug.assert(I===r.length,"Should have iterated all scopes")}if(m.length){var j=e.isBlockScope(r[0],r[0].parent)?r[0]:e.getEnclosingBlockScopeContainer(r[0]);e.forEachChild(j,H)}for(var J=function(r){var i=d[r];if(r>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=h(t.range)?t.range[0]:t.range;g[r].push(e.createDiagnosticForNode(a,n.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(d[r].usages.forEach((function(t){2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))})),e.Debug.assert(h(t.range)||0===v.length,"No variable declarations expected if something was extracted"),s&&!h(t.range)){var c=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[r].push(c),g[r].push(c)}else if(o&&r>0){c=e.createDiagnosticForNode(o,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor);f[r].push(c),g[r].push(c)}else if(u){c=e.createDiagnosticForNode(u,n.cannotExtractExportedEntity);f[r].push(c),g[r].push(c)}},z=0;z<r.length;z++)J(z);return{target:A,usagesPerScope:d,functionErrorsPerScope:f,constantErrorsPerScope:g,exposedVariableDeclarations:v};function U(t){return!!e.findAncestor(t,(function(t){return e.isDeclarationWithTypeParameters(t)&&0!==e.getEffectiveTypeParameterDeclarations(t).length}))}function V(e){for(var t=0,r=s.getSymbolWalker((function(){return c.throwIfCancellationRequested(),!0})).walkType(e).visitedTypes;t<r.length;t++){var n=r[t];n.isTypeParameter()&&_.set(n.id.toString(),n)}}function K(t,r){(void 0===r&&(r=1),P)&&V(s.getTypeAtLocation(t));if(e.isDeclaration(t)&&t.symbol&&m.push(t),e.isAssignmentExpression(t))K(t.left,2),K(t.right);else if(e.isUnaryExpressionWithWrite(t))K(t.operand,2);else if(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))e.forEachChild(t,K);else if(e.isIdentifier(t)){if(!t.parent)return;if(e.isQualifiedName(t.parent)&&t!==t.parent.left)return;if(e.isPropertyAccessExpression(t.parent)&&t!==t.parent.expression)return;q(t,r,e.isPartOfTypeNode(t))}else e.forEachChild(t,K)}function q(t,n,i){var a=W(t,n,i);if(a)for(var o=0;o<r.length;o++){var s=p[o].get(a);s&&d[o].substitutions.set(e.getNodeId(t).toString(),s)}}function W(c,u,l){var _=G(c);if(_){var m=e.getSymbolId(_).toString(),y=N.get(m);if(y&&y>=u)return m;if(N.set(m,u),y){for(var v=0,h=d;v<h.length;v++){var b=h[v];b.usages.get(c.text)&&b.usages.set(c.text,{usage:u,symbol:_,node:c})}return m}var x=_.getDeclarations(),D=x&&e.find(x,(function(e){return e.getSourceFile()===o}));if(D&&!e.rangeContainsStartEnd(a,D.getStart(),D.end)){if(t.facts&i.IsGenerator&&2===u){for(var S=e.createDiagnosticForNode(c,n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),T=0,C=f;T<C.length;T++){C[T].push(S)}for(var E=0,k=g;E<k.length;E++){k[E].push(S)}}for(var A=0;A<r.length;A++){var F=r[A];if(s.resolveName(_.name,F,_.flags,!1)!==_&&!p[A].has(m)){var P=X(_.exportSymbol||_,F,l);if(P)p[A].set(m,P);else if(l){if(!(262144&_.flags)){S=e.createDiagnosticForNode(c,n.typeWillNotBeVisibleInTheNewScope);f[A].push(S),g[A].push(S)}}else d[A].usages.set(c.text,{usage:u,symbol:_,node:c})}}return m}}}function H(r){if(!(r===t.range||h(t.range)&&t.range.indexOf(r)>=0)){var n=e.isIdentifier(r)?G(r):s.getSymbolAtLocation(r);if(n){var i=e.find(m,(function(e){return e.symbol===n}));if(i)if(e.isVariableDeclaration(i)){var a=i.symbol.id.toString();y.has(a)||(v.push(i),y.set(a,!0))}else u=u||i}e.forEachChild(r,H)}}function G(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function X(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some((function(e){return e.parent===r})))return e.factory.createIdentifier(t.name);var a=X(t.parent,r,n);if(void 0!==a)return n?e.factory.createQualifiedName(a,e.factory.createIdentifier(t.name)):e.factory.createPropertyAccessExpression(a,t.name)}}}(t,o,function(t,r){return h(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}(t,a),a,r.program.getTypeChecker(),r.cancellationToken)}}function m(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];(void 0===t||a.pos<t.pos)&&(t=a)}return t}function y(t,r){var n=t.type,i=t.declaration,a=r.type,o=r.declaration;return e.compareProperties(i,o,"pos",e.compareValues)||e.compareStringsCaseSensitive(n.symbol?n.symbol.getName():"",a.symbol?a.symbol.getName():"")||e.compareValues(n.id,a.id)}function v(t,r){var n=e.map(t,(function(t){return e.factory.createShorthandPropertyAssignment(t.symbol.name)})),i=e.map(r,(function(t){return e.factory.createShorthandPropertyAssignment(t.symbol.name)}));return void 0===n?i:void 0===i?n:n.concat(i)}function h(t){return e.isArray(t)}function b(e){var t=e.parent;switch(t.kind){case 291:return!1}switch(e.kind){case 10:return 261!==t.kind&&265!==t.kind;case 220:case 196:case 198:return!1;case 78:return 198!==t.kind&&265!==t.kind&&270!==t.kind}return!0}function x(e){switch(e.kind){case 230:case 297:case 257:case 284:return!0;default:return!1}}function D(t){return(e.isJsxElement(t)||e.isJsxSelfClosingElement(t)||e.isJsxFragment(t))&&e.isJsxElement(t.parent)}t.registerRefactor(s,{kinds:[c.kind,u.kind],getAvailableActions:l,getEditsForAction:_}),r.getAvailableActions=l,r.getEditsForAction=_,function(t){function r(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.cannotExtractRange=r("Cannot extract range."),t.cannotExtractImport=r("Cannot extract import statement."),t.cannotExtractSuper=r("Cannot extract super call."),t.cannotExtractJSDoc=r("Cannot extract JSDoc."),t.cannotExtractEmpty=r("Cannot extract empty range."),t.expressionExpected=r("expression expected."),t.uselessConstantType=r("No reason to extract constant of type."),t.statementOrExpressionExpected=r("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=r("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=r("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=r("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=r("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=r("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=r("Function will not visible in the new scope."),t.cannotExtractIdentifier=r("Select more than a single identifier."),t.cannotExtractExportedEntity=r("Cannot extract exported declaration"),t.cannotWriteInExpression=r("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=r("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=r("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=r("Cannot access variables from nested scopes"),t.cannotExtractToOtherFunctionLike=r("Cannot extract method to a function-like scope that is not a function"),t.cannotExtractToJSClass=r("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=r("Cannot extract constant to an arrow function without a block")}(n=r.Messages||(r.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={})),r.getRangeToExtract=d,function(e){e[e.Module=0]="Module",e[e.Global=1]="Global"}(a||(a={})),function(e){e[e.Read=1]="Read",e[e.Write=2]="Write"}(o||(o={}))}(t.extractSymbol||(t.extractSymbol={}))}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(t){var r="Extract type",n={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"},a={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};function o(t,r){void 0===r&&(r=!0);var n=t.file,i=t.startPosition,a=e.isSourceFileJS(n),o=e.getTokenAtPosition(n,i),u=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),l=u.pos===u.end&&r,_=e.findAncestor(o,(function(t){return t.parent&&e.isTypeNode(t)&&!c(u,t.parent,n)&&(l||e.nodeOverlapsWithStartEnd(o,n,u.pos,u.end))}));if(!_||!e.isTypeNode(_))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var d=t.program.getTypeChecker(),p=e.Debug.checkDefined(e.findAncestor(_,e.isStatement),"Should find a statement"),f=function(t,r,n,i){var a=[];return o(r)?void 0:a;function o(s){if(e.isTypeReferenceNode(s)){if(e.isIdentifier(s.typeName)&&(d=t.resolveName(s.typeName.text,s.typeName,262144,!0))){var u=e.cast(e.first(d.declarations),e.isTypeParameterDeclaration);c(n,u,i)&&!c(r,u,i)&&e.pushIfUnique(a,u)}}else if(e.isInferTypeNode(s)){var l=e.findAncestor(s,(function(t){return e.isConditionalTypeNode(t)&&c(t.extendsType,s,i)}));if(!l||!c(r,l,i))return!0}else if(e.isTypePredicateNode(s)||e.isThisTypeNode(s)){var _=e.findAncestor(s.parent,e.isFunctionLike);if(_&&_.type&&c(_.type,s,i)&&!c(r,_,i))return!0}else if(e.isTypeQueryNode(s)){var d;if(e.isIdentifier(s.exprName)){if((d=t.resolveName(s.exprName.text,s.exprName,111551,!1))&&c(n,d.valueDeclaration,i)&&!c(r,d.valueDeclaration,i))return!0}else if(e.isThisIdentifier(s.exprName.left)&&!c(r,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)}}(d,_,p,n);return f?{isJS:a,selection:_,firstStatement:p,typeParameters:f,typeElements:s(d,_)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)}}function s(t,r){if(r){if(e.isIntersectionTypeNode(r)){for(var n=[],i=new e.Map,a=0,o=r.types;a<o.length;a++){var c=s(t,o[a]);if(!c||!c.every((function(t){return t.name&&e.addToSeen(i,e.getNameFromPropertyName(t.name))})))return;e.addRange(n,c)}return n}return e.isParenthesizedTypeNode(r)?s(t,r.type):e.isTypeLiteralNode(r)?r.members:void 0}}function c(t,r,n){return e.rangeContainsStartEnd(t,e.skipTrivia(n.text,r.pos),r.end)}t.registerRefactor(r,{kinds:[n.kind,i.kind,a.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);return c?t.isRefactorErrorInfo(c)?s.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[__assign(__assign({},a),{notApplicableReason:c.error}),__assign(__assign({},n),{notApplicableReason:c.error}),__assign(__assign({},i),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:c.isJS?[a]:e.append([n],c.typeElements&&i)}]:e.emptyArray},getEditsForAction:function(r,s){var c=r.file,u=o(r);e.Debug.assert(u&&!t.isRefactorErrorInfo(u),"Expected to find a range to extract");var l=e.getUniqueName("NewType",c),_=e.textChanges.ChangeTracker.with(r,(function(t){switch(s){case n.name:return e.Debug.assert(!u.isJS,"Invalid actionName/JS combo"),function(t,r,n,i){var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.factory.createTypeAliasDeclaration(void 0,void 0,n,s.map((function(t){return e.factory.updateTypeParameterDeclaration(t,t.name,t.constraint,void 0)})),o);t.insertNodeBefore(r,a,e.ignoreSourceNewlines(c),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)}))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}(t,c,l,u);case a.name:return e.Debug.assert(u.isJS,"Invalid actionName/JS combo"),function(t,r,n,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(n)),u=[];e.forEach(s,(function(t){var r=e.getEffectiveConstraintOfTypeParameter(t),n=e.factory.createTypeParameterDeclaration(t.name),i=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),r&&e.cast(r,e.isJSDocTypeExpression),[n]);u.push(i)})),t.insertNodeBefore(r,a,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(u,[c]))),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)}))))}(t,c,l,u);case i.name:return e.Debug.assert(!u.isJS&&!!u.typeElements,"Invalid actionName/JS combo"),function(t,r,n,i){var a,o=i.firstStatement,s=i.selection,c=i.typeParameters,u=i.typeElements,l=e.factory.createInterfaceDeclaration(void 0,void 0,n,c,void 0,u);e.setTextRange(l,null===(a=u[0])||void 0===a?void 0:a.parent),t.insertNodeBefore(r,o,e.ignoreSourceNewlines(l),!0),t.replaceNode(r,s,e.factory.createTypeReferenceNode(n,c.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)}))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}(t,c,l,u);default:e.Debug.fail("Unexpected action name")}})),d=c.fileName;return{edits:_,renameFilename:d,renameLocation:e.getRenameLocation(_,d,l,!1)}}})}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(t){var r,n,i;t.generateGetAccessorAndSetAccessor||(t.generateGetAccessorAndSetAccessor={}),r="Generate 'get' and 'set' accessors",n=e.Diagnostics.Generate_get_and_set_accessors.message,i={name:r,description:n,kind:"refactor.rewrite.property.generateAccessors"},t.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(r,n){if(r.endPosition){var i=e.codefix.getAccessorConvertiblePropertyAtPosition(r.file,r.program,r.startPosition,r.endPosition);e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info");var a=e.codefix.generateAccessorFromProperty(r.file,r.program,r.startPosition,r.endPosition,r,n);if(a){var o=r.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(a){if(!a.endPosition)return e.emptyArray;var o=e.codefix.getAccessorConvertiblePropertyAtPosition(a.file,a.program,a.startPosition,a.endPosition,"invoked"===a.triggerReason);return o?t.isRefactorErrorInfo(o)?a.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[__assign(__assign({},i),{notApplicableReason:o.error})]}]:e.emptyArray:[{name:r,description:n,actions:[i]}]:e.emptyArray}})}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(e){e.isRefactorErrorInfo=function(e){return void 0!==e.error},e.refactorKindBeginsWith=function(e,t){return!t||e.substr(0,t.length)===t}}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(t){var r="Move to a new file",n=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),i={name:r,description:n,kind:"refactor.move.newFile"};function a(t){var r=function(t){var r=t.file,n=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),i=r.statements,a=e.findIndex(i,(function(e){return e.end>n.pos}));if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,(function(e){return e.end>n.end}),a);if(-1===s||!(0===s||i[s].getStart(r)<n.end))return{toMove:i.slice(a,-1===s?i.length:s),afterLast:-1===s?void 0:i[s]}}}}(t);if(void 0!==r){var n=[],i=[],a=r.toMove,s=r.afterLast;return e.getRangesWhere(a,o,(function(e,t){for(var r=e;r<t;r++)n.push(a[r]);i.push({first:a[e],afterLast:s})})),0===n.length?void 0:{all:n,ranges:i}}}function o(t){return!function(t){switch(t.kind){case 261:return!0;case 260:return!e.hasSyntacticModifier(t,1);case 232:return t.declarationList.declarations.every((function(t){return!!t.initializer&&e.isRequireCall(t.initializer,!0)}));default:return!1}}(t)&&!e.isPrologueDirective(t)}function s(e,t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n],o=a.first,s=a.afterLast;r.deleteNodeRangeExcludingEnd(e,o,s)}}function c(e){return 261===e.kind?e.moduleSpecifier:260===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function u(t,r){if(e.isImportDeclaration(t))e.isStringLiteral(t.moduleSpecifier)&&r(t);else if(e.isImportEqualsDeclaration(t))e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteralLike(t.moduleReference.expression)&&r(t);else if(e.isVariableStatement(t))for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];a.initializer&&e.isRequireCall(a.initializer,!0)&&r(a)}}function l(t,r,n,i,a){if(n=e.ensurePathIsNonModuleName(n),i){var o=r.map((function(t){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(t))}));return e.makeImportIfNecessary(t,o,n,a)}e.Debug.assert(!t,"No default import should exist");var s=r.map((function(t){return e.factory.createBindingElement(void 0,void 0,t)}));return s.length?_(e.factory.createObjectBindingPattern(s),void 0,d(e.factory.createStringLiteral(n))):void 0}function _(t,r,n,i){return void 0===i&&(i=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(t,void 0,r,n)],i))}function d(t){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[t])}function p(t,r,n,i){switch(r.kind){case 261:!function(t,r,n,i){if(!r.importClause)return;var a=r.importClause,o=a.name,s=a.namedBindings,c=!o||i(o),u=!s||(263===s.kind?i(s.name):0!==s.elements.length&&s.elements.every((function(e){return i(e.name)})));if(c&&u)n.delete(t,r);else if(o&&c&&n.delete(t,o),s)if(u)n.replaceNode(t,r.importClause,e.factory.updateImportClause(r.importClause,r.importClause.isTypeOnly,o,void 0));else if(264===s.kind)for(var l=0,_=s.elements;l<_.length;l++){var d=_[l];i(d.name)&&n.delete(t,d)}}(t,r,n,i);break;case 260:i(r.name)&&n.delete(t,r);break;case 249:!function(t,r,n,i){var a=r.name;switch(a.kind){case 78:i(a)&&n.delete(t,a);break;case 197:break;case 196:if(a.elements.every((function(t){return e.isIdentifier(t.name)&&i(t.name)})))n.delete(t,e.isVariableDeclarationList(r.parent)&&1===r.parent.declarations.length?r.parent.parent:r);else for(var o=0,s=a.elements;o<s.length;o++){var c=s[o];e.isIdentifier(c.name)&&i(c.name)&&n.delete(t,c.name)}}}(t,r,n,i);break;default:e.Debug.assertNever(r,"Unexpected import decl kind "+r.kind)}}function f(t){switch(t.kind){case 260:case 265:case 262:case 263:return!0;case 249:return g(t);case 198:return e.isVariableDeclaration(t.parent.parent)&&g(t.parent.parent);default:return!1}}function g(t){return e.isSourceFile(t.parent.parent.parent)&&!!t.initializer&&e.isRequireCall(t.initializer,!0)}function m(t,r,n){switch(t.kind){case 261:var i=t.importClause;if(!i)return;var a=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&function(t,r){if(263===t.kind)return r(t.name)?t:void 0;var n=t.elements.filter((function(e){return r(e.name)}));return n.length?e.factory.createNamedImports(n):void 0}(i.namedBindings,n);return a||o?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,a,o),r):void 0;case 260:return n(t.name)?t:void 0;case 249:var s=function(t,r){switch(t.kind){case 78:return r(t)?t:void 0;case 197:return t;case 196:var n=t.elements.filter((function(t){return t.propertyName||!e.isIdentifier(t.name)||r(t.name)}));return n.length?e.factory.createObjectBindingPattern(n):void 0}}(t.name,n);return s?_(s,t.type,d(r),t.parent.flags):void 0;default:return e.Debug.assertNever(t,"Unexpected import kind "+t.kind)}}function y(t,r,n){t.forEachChild((function t(i){if(e.isIdentifier(i)&&!e.isDeclarationName(i)){var a=r.getSymbolAtLocation(i);a&&n(a)}else i.forEachChild(t)}))}t.registerRefactor(r,{kinds:[i.kind],getAvailableActions:function(t){var o=a(t);return t.preferences.allowTextChangesInNewFiles&&o?[{name:r,description:n,actions:[i]}]:t.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[__assign(__assign({},i),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(t,n){e.Debug.assert(n===r,"Wrong refactor invoked");var i=e.Debug.checkDefined(a(t));return{edits:e.textChanges.ChangeTracker.with(t,(function(r){return n=t.file,a=t.program,o=i,_=r,g=t.host,S=t.preferences,P=a.getTypeChecker(),w=function(t,r,n){var i=new v,a=new v,o=new v,s=S(e.find(r,(function(e){return!!(2&e.transformFlags)})));s&&a.add(s);for(var c=0,u=r;c<u.length;c++)D(x=u[c],(function(t){i.add(e.Debug.checkDefined(e.isExpressionStatement(t)?n.getSymbolAtLocation(t.expression.left):t.symbol,"Need a symbol here"))}));for(var l=0,_=r;l<_.length;l++)y(x=_[l],n,(function(e){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var s=n[r];f(s)?a.add(e):h(s)&&b(s)===t&&!i.has(e)&&o.add(e)}}));for(var d=a.clone(),p=new v,g=0,m=t.statements;g<m.length;g++){var x=m[g];e.contains(r,x)||(s&&2&x.transformFlags&&d.delete(s),y(x,n,(function(e){i.has(e)&&p.add(e),d.delete(e)})))}return{movedSymbols:i,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:p,oldImportsNeededByNewFile:a,unusedImportsFromOldFile:d};function S(t){if(void 0!==t){var r=n.getJsxNamespace(t),i=n.resolveName(r,t,1920,!0);return i&&e.some(i.declarations,f)?i:void 0}}}(n,o.all,P),I=e.getDirectoryPath(n.fileName),O=e.extensionFromPath(n.fileName),M=function(t,r,n,i){for(var a=t,o=1;;o++){var s=e.combinePaths(n,a+r);if(!i.fileExists(s))return a;a=t+"."+o}}(w.movedSymbols.forEachEntry(e.symbolNameNoDefault)||"newFile",O,I,g),L=M+O,_.createNewFile(n,e.combinePaths(I,L),function(t,r,n,i,a,o,_){var f=a.getTypeChecker(),g=e.takeWhile(t.statements,e.isPrologueDirective);if(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)return s(t,i.ranges,n),__spreadArray(__spreadArray([],g),i.all);var y=!!t.externalModuleIndicator,v=e.getQuotePreference(t,_),b=function(t,r,n,i){var a,o=[];return t.forEach((function(t){"default"===t.escapedName?a=e.factory.createIdentifier(e.symbolNameNoDefault(t)):o.push(t.name)})),l(a,o,r,n,i)}(r.oldFileImportsFromNewFile,o,y,v);b&&e.insertImports(n,t,b,!0),function(t,r,n,i,a){for(var o=0,s=t.statements;o<s.length;o++){var c=s[o];e.contains(r,c)||u(c,(function(e){return p(t,e,n,(function(e){return i.has(a.getSymbolAtLocation(e))}))}))}}(t,i.all,n,r.unusedImportsFromOldFile,f),s(t,i.ranges,n),function(t,r,n,i,a){for(var o=r.getTypeChecker(),s=function(r){if(r===n)return"continue";for(var s=function(s){u(s,(function(u){if(o.getSymbolAtLocation(c(u))===n.symbol){var l=function(t){var r=e.isBindingElement(t.parent)?e.getPropertySymbolFromBindingElement(o,t.parent):e.skipAlias(o.getSymbolAtLocation(t),o);return!!r&&i.has(r)};p(r,u,t,l);var _=e.combinePaths(e.getDirectoryPath(c(u).text),a),f=m(u,e.factory.createStringLiteral(_),l);f&&t.insertNodeAfter(r,s,f);var g=function(t){switch(t.kind){case 261:return t.importClause&&t.importClause.namedBindings&&263===t.importClause.namedBindings.kind?t.importClause.namedBindings.name:void 0;case 260:return t.name;case 249:return e.tryCast(t.name,e.isIdentifier);default:return e.Debug.assertNever(t,"Unexpected node kind "+t.kind)}}(u);g&&function(t,r,n,i,a,o,s,c){var u=e.codefix.moduleSpecifierToValidIdentifier(a,99),l=!1,_=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(s,n,r,(function(t){e.isPropertyAccessExpression(t.parent)&&(l=l||!!n.resolveName(u,t,67108863,!0),i.has(n.getSymbolAtLocation(t.parent.name))&&_.push(t))})),_.length){for(var p=l?e.getUniqueName(u,r):u,f=0,g=_;f<g.length;f++){var m=g[f];t.replaceNode(r,m,e.factory.createIdentifier(p))}t.insertNodeAfter(r,c,function(t,r,n){var i=e.factory.createIdentifier(r),a=e.factory.createStringLiteral(n);switch(t.kind){case 261:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(i)),a);case 260:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,i,e.factory.createExternalModuleReference(a));case 249:return e.factory.createVariableDeclaration(i,void 0,void 0,d(a));default:return e.Debug.assertNever(t,"Unexpected node kind "+t.kind)}}(c,a,o))}}(t,r,o,i,a,_,g,u)}}))},l=0,_=r.statements;l<_.length;l++)s(_[l])},l=0,_=r.getSourceFiles();l<_.length;l++)s(_[l])}(n,a,t,r.movedSymbols,o);var S=function(t,r,n,i,a,o,s){for(var _,d=[],p=0,f=t.statements;p<f.length;p++)u(f[p],(function(t){e.append(d,m(t,c(t),(function(e){return r.has(a.getSymbolAtLocation(e))})))}));var g=[],y=e.nodeSeenTracker();return n.forEach((function(r){for(var n=0,a=r.declarations;n<a.length;n++){var s=a[n];if(h(s)){var c=T(s);if(c){var u=C(s);y(u)&&E(t,u,i,o),e.hasSyntacticModifier(s,512)?_=c:g.push(c.text)}}}})),e.append(d,l(_,g,e.removeFileExtension(e.getBaseFileName(t.fileName)),o,s)),d}(t,r.oldImportsNeededByNewFile,r.newFileImportsFromOldFile,n,f,y,v),P=function(t,r,n,i){return e.flatMap(r,(function(r){if(o=r,e.Debug.assert(e.isSourceFile(o.parent),"Node parent should be a SourceFile"),(x(o)||e.isVariableStatement(o))&&!k(t,r,i)&&D(r,(function(t){return n.has(e.Debug.checkDefined(t.symbol))}))){var a=function(e,t){return t?[N(e)]:function(e){return __spreadArray([e],A(e).map(F))}(e)}(r,i);if(a)return a}var o;return r}))}(t,i.all,r.oldFileImportsFromNewFile,y);return S.length&&P.length?__spreadArray(__spreadArray(__spreadArray(__spreadArray([],g),S),[4]),P):__spreadArray(__spreadArray(__spreadArray([],g),S),P)}(n,w,_,o,a,M,S)),void function(t,r,n,i,a){var o=t.getCompilerOptions().configFile;if(o){var s=e.normalizePath(e.combinePaths(n,"..",i)),c=e.getRelativePathFromFile(o.fileName,s,a),u=o.statements[0]&&e.tryCast(o.statements[0].expression,e.isObjectLiteralExpression),l=u&&e.find(u.properties,(function(t){return e.isPropertyAssignment(t)&&e.isStringLiteral(t.name)&&"files"===t.name.text}));l&&e.isArrayLiteralExpression(l.initializer)&&r.insertNodeInListAfter(o,e.last(l.initializer.elements),e.factory.createStringLiteral(c),l.initializer.elements)}}(a,_,n.fileName,L,e.hostGetCanonicalFileName(g));var n,a,o,_,g,S,P,w,I,O,M,L})),renameFilename:void 0,renameLocation:void 0}}});var v=function(){function t(){this.map=new e.Map}return t.prototype.add=function(t){this.map.set(String(e.getSymbolId(t)),t)},t.prototype.has=function(t){return this.map.has(String(e.getSymbolId(t)))},t.prototype.delete=function(t){this.map.delete(String(e.getSymbolId(t)))},t.prototype.forEach=function(e){this.map.forEach(e)},t.prototype.forEachEntry=function(t){return e.forEachEntry(this.map,t)},t.prototype.clone=function(){var r=new t;return e.copyEntries(this.map,r.map),r},t}();function h(t){return x(t)&&e.isSourceFile(t.parent)||e.isVariableDeclaration(t)&&e.isSourceFile(t.parent.parent.parent)}function b(t){return e.isVariableDeclaration(t)?t.parent.parent.parent:t.parent}function x(e){switch(e.kind){case 251:case 252:case 256:case 255:case 254:case 253:case 260:return!0;default:return!1}}function D(t,r){switch(t.kind){case 251:case 252:case 256:case 255:case 254:case 253:case 260:return r(t);case 232:return e.firstDefined(t.declarationList.declarations,(function(e){return S(e.name,r)}));case 233:var n=t.expression;return e.isBinaryExpression(n)&&1===e.getAssignmentDeclarationKind(n)?r(t):void 0}}function S(t,r){switch(t.kind){case 78:return r(e.cast(t.parent,(function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)})));case 197:case 196:return e.firstDefined(t.elements,(function(t){return e.isOmittedExpression(t)?void 0:S(t.name,r)}));default:return e.Debug.assertNever(t,"Unexpected name kind "+t.kind)}}function T(t){return e.isExpressionStatement(t)?e.tryCast(t.expression.left.name,e.isIdentifier):e.tryCast(t.name,e.isIdentifier)}function C(t){switch(t.kind){case 249:return t.parent.parent;case 198:return C(e.cast(t.parent.parent,(function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)})));default:return t}}function E(t,r,n,i){if(!k(t,r,i))if(i)e.isExpressionStatement(r)||n.insertExportModifier(t,r);else{var a=A(r);0!==a.length&&n.insertNodesAfter(t,r,a.map(F))}}function k(t,r,n){return n?!e.isExpressionStatement(r)&&e.hasSyntacticModifier(r,1):A(r).some((function(r){return t.symbol.exports.has(e.escapeLeadingUnderscores(r))}))}function N(t){var r=e.concatenate([e.factory.createModifier(92)],t.modifiers);switch(t.kind){case 251:return e.factory.updateFunctionDeclaration(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 252:return e.factory.updateClassDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 232:return e.factory.updateVariableStatement(t,r,t.declarationList);case 256:return e.factory.updateModuleDeclaration(t,t.decorators,r,t.name,t.body);case 255:return e.factory.updateEnumDeclaration(t,t.decorators,r,t.name,t.members);case 254:return e.factory.updateTypeAliasDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.type);case 253:return e.factory.updateInterfaceDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 260:return e.factory.updateImportEqualsDeclaration(t,t.decorators,r,t.isTypeOnly,t.name,t.moduleReference);case 233:return e.Debug.fail();default:return e.Debug.assertNever(t,"Unexpected declaration kind "+t.kind)}}function A(t){switch(t.kind){case 251:case 252:return[t.name.text];case 232:return e.mapDefined(t.declarationList.declarations,(function(t){return e.isIdentifier(t.name)?t.name.text:void 0}));case 256:case 255:case 254:case 253:case 260:return e.emptyArray;case 233:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(t,"Unexpected decl kind "+t.kind)}}function F(t){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(t)),62,e.factory.createIdentifier(t)))}}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(t){!function(r){var n="Add or remove braces in an arrow function",i=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,a={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},o={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};function s(r,n,i,s){void 0===i&&(i=!0);var c=e.getTokenAtPosition(r,n),u=e.getContainingFunction(c);if(!u)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(u))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(e.rangeContainsRange(u,c)&&(!e.rangeContainsRange(u.body,c)||i)){if(t.refactorKindBeginsWith(a.kind,s)&&e.isExpression(u.body))return{func:u,addBraces:!0,expression:u.body};if(t.refactorKindBeginsWith(o.kind,s)&&e.isBlock(u.body)&&1===u.body.statements.length){var l=e.first(u.body.statements);if(e.isReturnStatement(l))return{func:u,addBraces:!1,expression:l.expression,returnStatement:l}}}}t.registerRefactor(n,{kinds:[o.kind],getEditsForAction:function(r,n){var i=r.file,c=r.startPosition,u=s(i,c);e.Debug.assert(u&&!t.isRefactorErrorInfo(u),"Expected applicable refactor info");var l,_=u.expression,d=u.returnStatement,p=u.func;if(n===a.name){var f=e.factory.createReturnStatement(_);l=e.factory.createBlock([f],!0),e.suppressLeadingAndTrailingTrivia(l),e.copyLeadingComments(_,f,i,3,!0)}else if(n===o.name&&d){var g=_||e.factory.createVoidZero();l=e.needsParentheses(g)?e.factory.createParenthesizedExpression(g):g,e.suppressLeadingAndTrailingTrivia(l),e.copyTrailingAsLeadingComments(d,l,i,3,!1),e.copyLeadingComments(d,l,i,3,!1),e.copyTrailingComments(d,l,i,3,!1)}else e.Debug.fail("invalid action");var m=e.textChanges.ChangeTracker.with(r,(function(e){e.replaceNode(i,p.body,l)}));return{renameFilename:void 0,renameLocation:void 0,edits:m}},getAvailableActions:function(r){var c=r.file,u=r.startPosition,l=r.triggerReason,_=s(c,u,"invoked"===l);if(!_)return e.emptyArray;if(!t.isRefactorErrorInfo(_))return[{name:n,description:i,actions:[_.addBraces?a:o]}];if(r.preferences.provideRefactorNotApplicableReason)return[{name:n,description:i,actions:[__assign(__assign({},a),{notApplicableReason:_.error}),__assign(__assign({},o),{notApplicableReason:_.error})]}];return e.emptyArray}})}(t.addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(t){!function(r){var n="Convert parameters to destructured object",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),a={name:n,description:i,kind:"refactor.rewrite.parameters.toDestructured"};function o(t,r){var n=e.getContainingObjectLiteralElement(t);if(n){var i=r.getContextualTypeForObjectLiteralElement(n),a=null==i?void 0:i.getSymbol();if(a&&!(6&e.getCheckFlags(a)))return a}}function s(t){var r=t.node;return e.isImportSpecifier(r.parent)||e.isImportClause(r.parent)||e.isImportEqualsDeclaration(r.parent)||e.isNamespaceImport(r.parent)||e.isExportSpecifier(r.parent)||e.isExportAssignment(r.parent)?r:void 0}function c(t){if(e.isDeclaration(t.node.parent))return t.node}function u(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 203:case 204:var i=e.tryCast(n,e.isCallOrNewExpression);if(i&&i.expression===r)return i;break;case 201:var a=e.tryCast(n,e.isPropertyAccessExpression);if(a&&a.parent&&a.name===r){var o=e.tryCast(a.parent,e.isCallOrNewExpression);if(o&&o.expression===a)return o}break;case 202:var s=e.tryCast(n,e.isElementAccessExpression);if(s&&s.parent&&s.argumentExpression===r){var c=e.tryCast(s.parent,e.isCallOrNewExpression);if(c&&c.expression===s)return c}}}}function l(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 201:var i=e.tryCast(n,e.isPropertyAccessExpression);if(i&&i.expression===r)return i;break;case 202:var a=e.tryCast(n,e.isElementAccessExpression);if(a&&a.expression===r)return a}}}function _(t){var r=t.node;if(2===e.getMeaningFromLocation(r)||e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent))return r}function d(t,r,n){var i=e.getTouchingToken(t,r),a=e.getContainingFunctionDeclaration(i);if(!function(t){var r=e.findAncestor(t,e.isJSDocNode);if(r){var n=e.findAncestor(r,(function(t){return!e.isJSDocNode(t)}));return!!n&&e.isFunctionLikeDeclaration(n)}return!1}(i))return!(a&&function(t,r){if(!function(t,r){return function(e){if(y(e))return e.length-1;return e.length}(t)>=2&&e.every(t,(function(t){return function(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)}(t,r)}))}(t.parameters,r))return!1;switch(t.kind){case 251:return g(t)&&f(t,r);case 165:if(e.isObjectLiteralExpression(t.parent)){var n=o(t.name,r);return 1===(null==n?void 0:n.declarations.length)&&f(t,r)}return f(t,r);case 166:return e.isClassDeclaration(t.parent)?g(t.parent)&&f(t,r):m(t.parent.parent)&&f(t,r);case 208:case 209:return m(t.parent)}return!1}(a,n)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function p(t){return e.isMethodSignature(t)&&(e.isInterfaceDeclaration(t.parent)||e.isTypeLiteralNode(t.parent))}function f(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function g(t){return!!t.name||!!e.findModifier(t,87)}function m(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function y(t){return t.length>0&&e.isThis(t[0].name)}function v(t){return y(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function h(t,r){var n=v(t.parameters),i=e.isRestParameter(e.last(n)),a=i?r.slice(0,n.length-1):r,o=e.map(a,(function(t,r){var i,a,o=x(n[r]),s=(i=o,a=t,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.factory.createShorthandPropertyAssignment(i):e.factory.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(s.name),e.isPropertyAssignment(s)&&e.suppressLeadingAndTrailingTrivia(s.initializer),e.copyComments(t,s),s}));if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.factory.createPropertyAssignment(x(e.last(n)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function b(t,r,n){var i,a,o,s=r.getTypeChecker(),c=v(t.parameters),u=e.map(c,(function(t){var r=e.factory.createBindingElement(void 0,void 0,x(t),e.isRestParameter(t)&&m(t)?e.factory.createArrayLiteralExpression():t.initializer);e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer);return r})),l=e.factory.createObjectBindingPattern(u),_=(i=c,a=e.map(i,g),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,m)&&(o=e.factory.createObjectLiteralExpression());var d=e.factory.createParameterDeclaration(void 0,void 0,void 0,l,void 0,_,o);if(y(t.parameters)){var p=t.parameters[0],f=e.factory.createParameterDeclaration(void 0,void 0,void 0,p.name,void 0,p.type);return e.suppressLeadingAndTrailingTrivia(f.name),e.copyComments(p.name,f.name),p.type&&(e.suppressLeadingAndTrailingTrivia(f.type),e.copyComments(p.type,f.type)),e.factory.createNodeArray([f,d])}return e.factory.createNodeArray([d]);function g(t){var i,a,o=t.type;o||!t.initializer&&!e.isRestParameter(t)||(i=t,a=s.getTypeAtLocation(i),o=e.getTypeNodeIfAccessible(a,i,r,n));var c=e.factory.createPropertySignature(void 0,x(t),m(t)?e.factory.createToken(57):t.questionToken,o);return e.suppressLeadingAndTrailingTrivia(c),e.copyComments(t.name,c.name),t.type&&c.type&&e.copyComments(t.type,c.type),c}function m(t){if(e.isRestParameter(t)){var r=s.getTypeAtLocation(t);return!s.isTupleType(r)}return s.isOptionalParameter(t)}}function x(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(t,r){e.Debug.assert(r===n,"Unexpected action name");var i=t.file,a=t.startPosition,f=t.program,g=t.cancellationToken,m=t.host,y=d(i,a,f.getTypeChecker());if(!y||!g)return;var v=function(t,r,n){var i=function(t){switch(t.kind){case 251:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,87),"Nameless function declaration should be a default export")];case 165:return[t.name];case 166:var r=e.Debug.checkDefined(e.findChildOfKind(t,132,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 221===t.parent.kind?[t.parent.parent.name,r]:[r];case 209:return[t.parent.name];case 208:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind "+t.kind)}}(t),a=e.isConstructorDeclaration(t)?function(t){switch(t.parent.kind){case 252:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,87),"Nameless class declaration should be a default export")];case 221:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}}(t):[],d=e.deduplicate(__spreadArray(__spreadArray([],i),a),e.equateValues),f=r.getTypeChecker(),g=m(e.flatMap(d,(function(t){return e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n)})));e.every(g.declarations,(function(t){return e.contains(d,t)}))||(g.valid=!1);return g;function m(r){for(var n={accessExpressions:[],typeUsages:[]},d={functionCalls:[],declarations:[],classReferences:n,valid:!0},g=e.map(i,y),m=e.map(a,y),v=e.isConstructorDeclaration(t),h=e.map(i,(function(e){return o(e,f)})),b=0,x=r;b<x.length;b++){var D=x[b];if(0!==D.kind){if(e.contains(h,y(D.node))){if(p(D.node.parent)){d.signature=D.node.parent;continue}if(T=u(D)){d.functionCalls.push(T);continue}}var S=o(D.node,f);if(S&&e.contains(h,S))if(C=c(D)){d.declarations.push(C);continue}if(e.contains(g,y(D.node))||e.isNewExpressionTarget(D.node)){var T;if(s(D))continue;if(C=c(D)){d.declarations.push(C);continue}if(T=u(D)){d.functionCalls.push(T);continue}}if(v&&e.contains(m,y(D.node))){var C;if(s(D))continue;if(C=c(D)){d.declarations.push(C);continue}var E=l(D);if(E){n.accessExpressions.push(E);continue}if(e.isClassDeclaration(t.parent)){var k=_(D);if(k){n.typeUsages.push(k);continue}}}d.valid=!1}else d.valid=!1}return d}function y(t){var r=f.getSymbolAtLocation(t);return r&&e.getSymbolTarget(r,f)}}(y,f,g);if(v.valid){return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(function(t){return function(t,r,n,i,a,o){var s=o.signature,c=e.map(b(a,r,n),(function(t){return e.getSynthesizedDeepClone(t)}));if(s){f(s,e.map(b(s,r,n),(function(t){return e.getSynthesizedDeepClone(t)})))}f(a,c);for(var u=e.sortAndDeduplicate(o.functionCalls,(function(t,r){return e.compareValues(t.pos,r.pos)})),l=0,_=u;l<_.length;l++){var d=_[l];if(d.arguments&&d.arguments.length){var p=e.getSynthesizedDeepClone(h(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(r,n){i.replaceNodeRangeWithNodes(t,e.first(r.parameters),e.last(r.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}(i,f,m,t,y,v)}))}}return{edits:[]}},getAvailableActions:function(t){var r=t.file,o=t.startPosition;return e.isSourceFileJS(r)?e.emptyArray:d(r,o,t.program.getTypeChecker())?[{name:n,description:i,actions:[a]}]:e.emptyArray}})}(t.convertParamsToDestructuredObject||(t.convertParamsToDestructuredObject={}))}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(t){!function(r){var n="Convert to template string",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),a={name:n,description:i,kind:"refactor.rewrite.string"};function o(t,r){var n=e.getTokenAtPosition(t,r),i=c(n);return!u(i)&&e.isParenthesizedExpression(i.parent)&&e.isBinaryExpression(i.parent.parent)?i.parent.parent:n}function s(t,r){var n=c(r),i=t.file,a=function(t,r){var n=t.nodes,i=t.operators,a=function(t,r){return function(n,i){n<t.length&&e.copyTrailingComments(t[n],i,r,3,!1)}}(i,r),o=function(t,r,n){return function(i,a){for(;i.length>0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}}}(n,r,a),s=_(0,n),c=s[0],u=s[1],l=s[2];if(c===n.length){var p=e.factory.createNoSubstitutionTemplateLiteral(u);return o(l,p),p}var f=[],g=e.factory.createTemplateHead(u);o(l,g);for(var m,y=function(t){var r=function(t){e.isParenthesizedExpression(t)&&(d(t),t=t.expression);return t}(n[t]);a(t,r);var i=_(t+1,n),s=i[0],c=i[1],u=i[2],l=(t=s-1)===n.length-1;if(e.isTemplateExpression(r)){var p=e.map(r.templateSpans,(function(t,n){d(t);var i=r.templateSpans[n+1],a=t.literal.text+(i?"":c);return e.factory.createTemplateSpan(t.expression,l?e.factory.createTemplateTail(a):e.factory.createTemplateMiddle(a))}));f.push.apply(f,p)}else{var g=l?e.factory.createTemplateTail(c):e.factory.createTemplateMiddle(c);o(u,g),f.push(e.factory.createTemplateSpan(r,g))}m=t},v=c;v<n.length;v++)y(v),v=m;return e.factory.createTemplateExpression(g,f)}(l(n),i),o=e.getTrailingCommentRanges(i.text,n.end);if(o){var s=o[o.length-1],u={pos:o[0].pos,end:s.end};return e.textChanges.ChangeTracker.with(t,(function(e){e.deleteRange(i,u),e.replaceNode(i,n,a)}))}return e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(i,n,a)}))}function c(t){return e.findAncestor(t.parent,(function(t){switch(t.kind){case 201:case 202:return!1;case 218:case 216:return!(e.isBinaryExpression(t.parent)&&(r=t.parent,62!==r.operatorToken.kind));default:return"quit"}var r}))||t}function u(e){var t=l(e),r=t.containsString,n=t.areOperatorsValid;return r&&n}function l(t){if(e.isBinaryExpression(t)){var r=l(t.left),n=r.nodes,i=r.operators,a=r.containsString,o=r.areOperatorsValid;if(!a&&!e.isStringLiteral(t.right)&&!e.isTemplateExpression(t.right))return{nodes:[t],operators:[],containsString:!1,areOperatorsValid:!0};var s=39===t.operatorToken.kind,c=o&&s;return n.push(t.right),i.push(t.operatorToken),{nodes:n,operators:i,containsString:!0,areOperatorsValid:c}}return{nodes:[t],operators:[],containsString:e.isStringLiteral(t),areOperatorsValid:!0}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(t,r){var n=t.file,a=t.startPosition,c=o(n,a);switch(r){case i:return{edits:s(t,c)};default:return e.Debug.fail("invalid action")}},getAvailableActions:function(t){var r=t.file,s=t.startPosition,l=c(o(r,s)),_={name:n,description:i,actions:[]};if(e.isBinaryExpression(l)&&u(l))return _.actions.push(a),[_];if(t.preferences.provideRefactorNotApplicableReason)return _.actions.push(__assign(__assign({},a),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[_];return e.emptyArray}});function _(t,r){for(var n=[],i="";t<r.length;){var a=r[t];if(!e.isStringLiteralLike(a)){if(e.isTemplateExpression(a)){i+=a.head.text;break}break}i+=a.text,n.push(t),t++}return[t,i,n]}function d(t){var r=t.getSourceFile();e.copyTrailingComments(t,t.expression,r,3,!1),e.copyTrailingAsLeadingComments(t.expression,t.expression,r,3,!1)}}(t.convertStringOrTemplateLiteral||(t.convertStringOrTemplateLiteral={}))}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(t){!function(r){var n="Convert arrow function or function expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),a={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},o={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},s={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function c(t){var r=!1;return t.forEachChild((function t(n){e.isThis(n)?r=!0:e.isClassLike(n)||e.isFunctionDeclaration(n)||e.isFunctionExpression(n)||e.forEachChild(n,t)})),r}function u(t,r,n){var i=e.getTokenAtPosition(t,r),a=n.getTypeChecker(),o=function(t,r,n){if(!function(t){return e.isVariableDeclaration(t)||e.isVariableDeclarationList(t)&&1===t.declarations.length}(n))return;var i=(e.isVariableDeclaration(n)?n:e.first(n.declarations)).initializer;if(i&&(e.isArrowFunction(i)||e.isFunctionExpression(i)&&!_(t,r,i)))return i;return}(t,a,i.parent);if(o&&!c(o.body))return{selectedVariableDeclaration:!0,func:o};var s=e.getContainingFunction(i);if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s))&&!e.rangeContainsRange(s.body,i)&&!c(s.body)){if(e.isFunctionExpression(s)&&_(t,a,s))return;return{selectedVariableDeclaration:!1,func:s}}}function l(t){return e.isExpression(t)?e.factory.createBlock([e.factory.createReturnStatement(t)],!0):t}function _(t,r,n){return!!n.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,r,t)}t.registerRefactor(n,{kinds:[a.kind,o.kind,s.kind],getEditsForAction:function(t,r){var n=t.file,i=t.startPosition,c=t.program,_=u(n,i,c);if(!_)return;var d=_.func,p=[];switch(r){case a.name:p.push.apply(p,function(t,r){var n=t.file,i=l(r.body),a=e.factory.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,r.typeParameters,r.parameters,r.type,i);return e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(n,r,a)}))}(t,d));break;case o.name:var f=function(t){var r=t.parent;if(!e.isVariableDeclaration(r)||!e.isVariableDeclarationInVariableStatement(r))return;var n=r.parent,i=n.parent;return e.isVariableDeclarationList(n)&&e.isVariableStatement(i)&&e.isIdentifier(r.name)?{variableDeclaration:r,variableDeclarationList:n,statement:i,name:r.name}:void 0}(d);if(!f)return;p.push.apply(p,function(t,r,n){var i=t.file,a=l(r.body),o=n.variableDeclaration,s=n.variableDeclarationList,c=n.statement,u=n.name;e.suppressLeadingTrivia(c);var _=e.factory.createFunctionDeclaration(r.decorators,c.modifiers,r.asteriskToken,u,r.typeParameters,r.parameters,r.type,a);return 1===s.declarations.length?e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(i,c,_)})):e.textChanges.ChangeTracker.with(t,(function(e){e.delete(i,o),e.insertNodeAfter(i,c,_)}))}(t,d,f));break;case s.name:if(!e.isFunctionExpression(d))return;p.push.apply(p,function(t,r){var n,i=t.file,a=r.body.statements[0];!function(t,r){return 1===t.statements.length&&e.isReturnStatement(r)&&!!r.expression}(r.body,a)?n=r.body:(n=a.expression,e.suppressLeadingAndTrailingTrivia(n),e.copyComments(a,n));var o=e.factory.createArrowFunction(r.modifiers,r.typeParameters,r.parameters,r.type,e.factory.createToken(38),n);return e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(i,r,o)}))}(t,d));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:p}},getAvailableActions:function(r){var c=r.file,l=r.startPosition,_=r.program,d=r.kind,p=u(c,l,_);if(!p)return e.emptyArray;var f=p.selectedVariableDeclaration,g=p.func,m=[],y=[];if(t.refactorKindBeginsWith(o.kind,d)){(v=f||e.isArrowFunction(g)&&e.isVariableDeclaration(g.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function))?y.push(__assign(__assign({},o),{notApplicableReason:v})):m.push(o)}if(t.refactorKindBeginsWith(a.kind,d)){(v=!f&&e.isArrowFunction(g)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function))?y.push(__assign(__assign({},a),{notApplicableReason:v})):m.push(a)}if(t.refactorKindBeginsWith(s.kind,d)){var v;(v=e.isFunctionExpression(g)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function))?y.push(__assign(__assign({},s),{notApplicableReason:v})):m.push(s)}return[{name:n,description:i,actions:0===m.length&&r.preferences.provideRefactorNotApplicableReason?y:m}]}})}(t.convertArrowFunctionOrFunctionExpression||(t.convertArrowFunctionOrFunctionExpression={}))}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(t){!function(r){var n="Infer function return type",i=e.Diagnostics.Infer_function_return_type.message,a={name:n,description:i,kind:"refactor.rewrite.function.returnType"};function o(r){if(!e.isInJSFile(r.file)&&t.refactorKindBeginsWith(a.kind,r.kind)){var n=e.getTokenAtPosition(r.file,r.startPosition),i=e.findAncestor(n,s);if(!i||!i.body||i.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var o=r.program.getTypeChecker(),c=function(t,r){if(t.isImplementationOfOverload(r)){var n=t.getTypeAtLocation(r).getCallSignatures();if(n.length>1)return t.getUnionType(e.mapDefined(n,(function(e){return e.getReturnType()})))}var i=t.getSignatureFromDeclaration(r);if(i)return t.getReturnTypeOfSignature(i)}(o,i);if(!c)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var u=o.typeToTypeNode(c,i,1);return u?{declaration:i,returnTypeNode:u}:void 0}}function s(e){switch(e.kind){case 251:case 208:case 209:case 165:return!0;default:return!1}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(r){var n=o(r);if(n&&!t.isRefactorErrorInfo(n)){return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(function(e){return e.tryInsertTypeAnnotation(r.file,n.declaration,n.returnTypeNode)}))}}return},getAvailableActions:function(r){var s=o(r);if(!s)return e.emptyArray;if(!t.isRefactorErrorInfo(s))return[{name:n,description:i,actions:[a]}];if(r.preferences.provideRefactorNotApplicableReason)return[{name:n,description:i,actions:[__assign(__assign({},a),{notApplicableReason:s.error})]}];return e.emptyArray}})}(t.inferFunctionReturnType||(t.inferFunctionReturnType={}))}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){function t(t,n,i,a){var u=e.isNodeKind(t)?new r(t,n,i):78===t?new s(78,n,i):79===t?new c(79,n,i):new o(t,n,i);return u.parent=a,u.flags=25358336&a.flags,u}e.servicesVersion="0.8";var r=function(){function r(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return r.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},r.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},r.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(e){return this.getChildren(e).length},r.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},r.prototype.getChildren=function(r){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(r,i){if(!e.isNodeKind(r.kind))return e.emptyArray;var a=[];if(e.isJSDocCommentContainingNode(r))return r.forEachChild((function(e){a.push(e)})),a;e.scanner.setText((i||r.getSourceFile()).text);var o=r.pos,s=function(e){n(a,o,e.pos,r),a.push(e),o=e.end},c=function(e){n(a,o,e.pos,r),a.push(function(e,r){var i=t(334,e.pos,e.end,r);i._children=[];for(var a=e.pos,o=0,s=e;o<s.length;o++){var c=s[o];n(i._children,a,c.pos,r),i._children.push(c),a=c.end}return n(i._children,a,e.end,r),i}(e,r)),o=e.end};return e.forEach(r.jsDoc,s),o=r.pos,r.forEachChild(s,c),n(a,o,r.end,r),e.scanner.setText(void 0),a}(this,r))},r.prototype.getFirstToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);if(r.length){var n=e.find(r,(function(e){return e.kind<301||e.kind>333}));return n.kind<157?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<157?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function n(r,n,i,a){for(e.scanner.setTextPos(n);n<i;){var o=e.scanner.scan(),s=e.scanner.getTextPos();if(s<=i&&(78===o&&e.Debug.fail("Did not expect "+e.Debug.formatSyntaxKind(a.kind)+" to have an Identifier in its trivia"),r.push(t(o,n,s,a))),n=s,1===o)break}}var i=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,r){return e.getTokenPosOfNode(this,t,r)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),a=function(){function t(e,t){this.flags=e,this.escapedName=t}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(t){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var r=this.target.tupleLabelDeclaration;this.documentationComment=d([r],t)}else this.documentationComment=d(this.declarations,t);return this.documentationComment},t.prototype.getContextualDocumentationComment=function(t,r){switch(null==t?void 0:t.kind){case 167:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=e.emptyArray,this.contextualGetAccessorDocumentationComment=d(e.filter(this.declarations,e.isGetAccessor),r)),this.contextualGetAccessorDocumentationComment;case 168:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=e.emptyArray,this.contextualSetAccessorDocumentationComment=d(e.filter(this.declarations,e.isSetAccessor),r)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(r)}},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),o=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.kind=t,i}return __extends(t,e),t}(i),s=function(t){function r(e,r,n){var i=t.call(this,r,n)||this;return i.kind=78,i}return __extends(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(i);s.prototype.kind=78;var c=function(t){function r(e,r,n){return t.call(this,r,n)||this}return __extends(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(i);c.prototype.kind=79;var u=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getFlags=function(){return this.flags},t.prototype.getSymbol=function(){return this.symbol},t.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},t.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},t.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},t.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},t.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},t.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},t.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},t.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},t.prototype.isNullableType=function(){return this.checker.isNullableType(this)},t.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},t.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},t.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},t.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},t.prototype.isUnion=function(){return!!(1048576&this.flags)},t.prototype.isIntersection=function(){return!!(2097152&this.flags)},t.prototype.isUnionOrIntersection=function(){return!!(3145728&this.flags)},t.prototype.isLiteral=function(){return!!(384&this.flags)},t.prototype.isStringLiteral=function(){return!!(128&this.flags)},t.prototype.isNumberLiteral=function(){return!!(256&this.flags)},t.prototype.isTypeParameter=function(){return!!(262144&this.flags)},t.prototype.isClassOrInterface=function(){return!!(3&e.getObjectFlags(this))},t.prototype.isClass=function(){return!!(1&e.getObjectFlags(this))},Object.defineProperty(t.prototype,"typeArguments",{get:function(){if(4&e.getObjectFlags(this))return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),t}(),l=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=d(e.singleElementArray(this.declaration),this.checker))},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?function(t,r){var n=e.JsDoc.getJsDocTagsFromDeclarations([t]);if(0===n.length||_(t)){var i=p(r,t,(function(e){var t;return 1===(null===(t=e.declarations)||void 0===t?void 0:t.length)?e.getJsDocTags():void 0}));i&&(n=__spreadArray(__spreadArray([],i),n))}return n}(this.declaration,this.checker):[]),this.jsDocTags},t}();function _(t){return e.getJSDocTags(t).some((function(e){return"inheritDoc"===e.tagName.text}))}function d(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocCommentsFromDeclarations(t);return r&&(0===n.length||t.some(_))&&e.forEachUnique(t,(function(t){var i=p(r,t,(function(e){return e.getDocumentationComment(r)}));i&&(n=0===n.length?i.slice():i.concat(e.lineBreakPart(),n))})),n}function p(t,r,n){return e.firstDefined(r.parent?e.getAllSuperTypeNodes(r.parent):e.emptyArray,(function(e){var i=t.getPropertyOfType(t.getTypeAtLocation(e),r.symbol.name);return i?n(i):void 0}))}var f=function(t){function r(e,r,n){var i=t.call(this,e,r,n)||this;return i.kind=297,i}return __extends(r,t),r.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,r,n){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),t,r,this.text,n)},r.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild((function i(a){switch(a.kind){case 251:case 208:case 165:case 164:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);r||t.set(e,r=[]);return r}(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 252:case 221:case 253:case 254:case 255:case 256:case 260:case 270:case 265:case 262:case 263:case 167:case 168:case 177:r(a),e.forEachChild(a,i);break;case 160:if(!e.hasSyntacticModifier(a,92))break;case 249:case 198:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 291:case 163:case 162:r(a);break;case 267:var _=a;_.exportClause&&(e.isNamedExports(_.exportClause)?e.forEach(_.exportClause.elements,i):i(_.exportClause.name));break;case 261:var d=a.importClause;d&&(d.name&&r(d.name),d.namedBindings&&(263===d.namedBindings.kind?r(d.namedBindings):e.forEach(d.namedBindings.elements,i)));break;case 216:0!==e.getAssignmentDeclarationKind(a)&&r(a);default:e.forEachChild(a,i)}})),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(r),g=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function m(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!y(n)){r=!1;break}if(r)return t;var i={};for(var n in t){if(e.hasProperty(t,n))i[y(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]}return i}function y(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function v(){return{target:1,jsx:1}}e.toEditorSettings=m,e.displayPartsToString=function(t){return t?e.map(t,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=v,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var h=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var n=0,i=t.getScriptFileNames();n<i.length;n++){var a=i[n];this.createEntry(a,e.toPath(a,this.currentDirectory,r))}this._compilationSettings=t.getCompilationSettings()||{target:1,jsx:1}}return t.prototype.compilationSettings=function(){return this._compilationSettings},t.prototype.getProjectReferences=function(){return this.host.getProjectReferences&&this.host.getProjectReferences()},t.prototype.createEntry=function(t,r){var n,i=this.host.getScriptSnapshot(t);return n=i?{hostFileName:t,version:this.host.getScriptVersion(t),scriptSnapshot:i,scriptKind:e.getScriptKind(t,this.host)}:t,this.fileNameToEntry.set(r,n),n},t.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},t.prototype.getHostFileInformation=function(t){var r=this.fileNameToEntry.get(t);return e.isString(r)?void 0:r},t.prototype.getOrCreateEntryByPath=function(t,r){var n=this.getEntryByPath(r)||this.createEntry(t,r);return e.isString(n)?void 0:n},t.prototype.getRootFileNames=function(){var t=[];return this.fileNameToEntry.forEach((function(r){e.isString(r)?t.push(r):t.push(r.hostFileName)})),t},t.prototype.getScriptSnapshot=function(e){var t=this.getHostFileInformation(e);return t&&t.scriptSnapshot},t}(),b=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var r=this.host.getScriptSnapshot(t);if(!r)throw new Error("Could not find file: '"+t+"'.");var n,i=e.getScriptKind(t,this.host),a=this.host.getScriptVersion(t);if(this.currentFileName!==t)n=D(t,r,99,a,!0,i);else if(this.currentFileVersion!==a){var o=r.getChangeRange(this.currentFileScriptSnapshot);n=S(this.currentSourceFile,r,a,o)}return n&&(this.currentFileVersion=a,this.currentFileName=t,this.currentFileScriptSnapshot=r,this.currentSourceFile=n),this.currentSourceFile},t}();function x(e,t,r){e.version=r,e.scriptSnapshot=t}function D(t,r,n,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(r),n,a,o);return x(s,r,i),s}function S(t,r,n,i,a){if(i&&n!==t.version){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var u=r.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+u+c:s?s+u:u+c}var l=e.updateSourceFile(t,o,i,a);return x(l,r,n),l.nameTable=void 0,t!==l&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),l}return D(t.fileName,r,t.languageVersion,n,!0,t.scriptKind)}e.createLanguageServiceSourceFile=D,e.updateLanguageServiceSourceFile=S;var T={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},C=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},t}(),E=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},t}();e.ThrottledCancellationToken=E;var k=["getSyntacticDiagnostics","getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],N=__spreadArray(__spreadArray([],k),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"]);function A(t){var r=function(t){switch(t.kind){case 10:case 14:case 8:if(158===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 78:return!e.isObjectLiteralElement(t.parent)||200!==t.parent.parent.kind&&281!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}return}(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function F(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,(function(n){return(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)}));if(i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a)))return[o];return 0===s.length?e.mapDefined(n.types,(function(e){return e.getProperty(a)})):s}e.createLanguageService=function(t,r,n){var i,a;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),a=void 0===n?e.LanguageServiceMode.Semantic:"boolean"==typeof n?n?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:n;var o,s,c=new b(t),u=0,l=t.getCancellationToken?new C(t.getCancellationToken()):T,_=t.getCurrentDirectory();function d(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(t.getLocalizedDiagnosticMessages());var p=e.hostUsesCaseSensitiveFileNames(t),f=e.createGetCanonicalFileName(p),g=e.getSourceMapper({useCaseSensitiveFileNames:function(){return p},getCurrentDirectory:function(){return _},getProgram:x,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:d});function y(e){var t=o.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '"+e+"'.");throw r.ProgramFiles=o.getSourceFiles().map((function(e){return e.fileName})),r}return t}function v(){var n,i;if(e.Debug.assert(a!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var c=t.getProjectVersion();if(c){if(s===c&&!(null===(n=t.hasChangedAutomaticTypeDirectiveNames)||void 0===n?void 0:n.call(t)))return;s=c}}var m=t.getTypeRootsVersion?t.getTypeRootsVersion():0;u!==m&&(d("TypeRoots version has changed; provide new program"),o=void 0,u=m);var y=new h(t,f),v=y.getRootFileNames(),b=t.hasInvalidatedResolution||e.returnFalse,x=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),D=y.getProjectReferences();if(!e.isProgramUptoDate(o,v,y.compilationSettings(),(function(e,r){return t.getScriptVersion(r)}),k,b,x,D)){var S=y.compilationSettings(),T={getSourceFile:function(t,r,n,i){return N(t,e.toPath(t,_,f),r,n,i)},getSourceFileByPath:N,getCancellationToken:function(){return l},getCanonicalFileName:f,useCaseSensitiveFileNames:function(){return p},getNewLine:function(){return e.getNewLineCharacter(S,(function(){return e.getNewLineOrDefaultFromHost(t)}))},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return _},fileExists:k,readFile:function(r){var n=e.toPath(r,_,f),i=y&&y.getEntryByPath(n);if(i)return e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot);return t.readFile&&t.readFile(r)},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:function(r,n,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)},onReleaseOldSourceFile:function(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.resolvedPath,n)},hasInvalidatedResolution:b,hasChangedAutomaticTypeDirectiveNames:x,trace:e.maybeBind(t,t.trace),resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect)};null===(i=t.setCompilerHost)||void 0===i||i.call(t,T);var C=r.getKeyForCompilationSettings(S),E={rootNames:v,options:S,host:T,oldProgram:o,projectReferences:D};return o=e.createProgram(E),y=void 0,g.clearCache(),void o.getTypeChecker()}function k(r){var n=e.toPath(r,_,f),i=y&&y.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function N(t,n,i,a,s){e.Debug.assert(void 0!==y,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var c=y&&y.getOrCreateEntryByPath(t,n);if(c){if(!s){var u=o&&o.getSourceFileByPath(n);if(u)return e.Debug.assertEqual(c.scriptKind,u.scriptKind,"Registered script kind should match new script kind."),r.updateDocumentWithKey(t,n,S,C,c.scriptSnapshot,c.version,c.scriptKind)}return r.acquireDocumentWithKey(t,n,S,C,c.scriptSnapshot,c.version,c.scriptKind)}}}function x(){if(a!==e.LanguageServiceMode.Syntactic)return v(),o;e.Debug.assert(void 0===o)}function D(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some((function(t){return e.normalizePath(t)===i}))),v();var a=e.mapDefined(n,(function(e){return o.getSourceFile(e)})),s=y(t);return e.DocumentHighlights.getDocumentHighlights(o,l,s,r,a)}function S(t,r,n,i){v();var a=n&&2===n.use?o.getSourceFiles().filter((function(e){return!o.isSourceFileDefaultLibrary(e)})):o.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(o,l,a,t,r,n,i)}function E(r){var n=e.getScriptKind(r,t);return 3===n||4===n}var P=new e.Map(e.getEntries(((i={})[18]=19,i[20]=21,i[22]=23,i[31]=29,i)));function w(r){var n;return e.Debug.assertEqual(r.type,"install package"),t.installPackage?t.installPackage({fileName:(n=r.file,e.toPath(n,_,f)),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`")}function I(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function O(t,r,n){for(var i=c.getCurrentSourceFile(t),a=[],o=I(i,r),s=o.lineStarts,u=o.firstLine,l=o.lastLine,_=n||!1,d=Number.MAX_VALUE,p=new e.Map,f=new RegExp(/\S/),g=e.isInsideJsxElement(i,s[u]),m=g?"{/*":"//",y=u;y<=l;y++){var v=i.text.substring(s[y],i.getLineEndOfPosition(s[y])),h=f.exec(v);h&&(d=Math.min(d,h.index),p.set(y.toString(),h.index),v.substr(h.index,m.length)!==m&&(_=void 0===n||n))}for(y=u;y<=l;y++)if(u===l||s[y]!==r.end){var b=p.get(y.toString());void 0!==b&&(g?a.push.apply(a,M(t,{pos:s[y]+d,end:i.getLineEndOfPosition(s[y])},_,g)):_?a.push({newText:m,span:{length:0,start:s[y]+d}}):i.text.substr(s[y]+b,m.length)===m&&a.push({newText:"",span:{length:m.length,start:s[y]+b}}))}return a}function M(t,r,n,i){for(var a,o=c.getCurrentSourceFile(t),s=[],u=o.text,l=!1,_=n||!1,d=[],p=r.pos,f=void 0!==i?i:e.isInsideJsxElement(o,p),g=f?"{/*":"/*",m=f?"*/}":"*/",y=f?"\\{\\/\\*":"\\/\\*",v=f?"\\*\\/\\}":"\\*\\/";p<=r.end;){var h=u.substr(p,g.length)===g?g.length:0,b=e.isInComment(o,p+h);if(b)f&&(b.pos--,b.end++),d.push(b.pos),3===b.kind&&d.push(b.end),l=!0,p=b.end+1;else{var x=u.substring(p,r.end).search("("+y+")|("+v+")");_=void 0!==n?n:_||!e.isTextWhiteSpaceLike(u,p,-1===x?r.end:p+x),p=-1===x?r.end+1:p+x+m.length}}if(_||!l){2!==(null===(a=e.isInComment(o,r.pos))||void 0===a?void 0:a.kind)&&e.insertSorted(d,r.pos,e.compareValues),e.insertSorted(d,r.end,e.compareValues);var D=d[0];u.substr(D,g.length)!==g&&s.push({newText:g,span:{length:0,start:D}});for(var S=1;S<d.length-1;S++)u.substr(d[S]-m.length,m.length)!==m&&s.push({newText:m,span:{length:0,start:d[S]}}),u.substr(d[S],g.length)!==g&&s.push({newText:g,span:{length:0,start:d[S]}});s.length%2!=0&&s.push({newText:m,span:{length:0,start:d[d.length-1]}})}else for(var T=0,C=d;T<C.length;T++){var E=C[T],k=E-m.length>0?E-m.length:0;h=u.substr(k,m.length)===m?m.length:0;s.push({newText:"",span:{length:g.length,start:E-h}})}return s}function L(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&L(i)}function R(r,n,i,a,o,s){var c="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:c[0],endPosition:c[1],program:x(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:l,preferences:i,triggerReason:o,kind:s}}P.forEach((function(e,t){return P.set(e.toString(),Number(t))}));var B={dispose:function(){if(o){var n=r.getKeyForCompilationSettings(o.getCompilerOptions());e.forEach(o.getSourceFiles(),(function(e){return r.releaseDocumentWithKey(e.resolvedPath,n)})),o=void 0}t=void 0},cleanupSemanticCache:function(){o=void 0},getSyntacticDiagnostics:function(e){return v(),o.getSyntacticDiagnostics(y(e),l).slice()},getSemanticDiagnostics:function(t){v();var r=y(t),n=o.getSemanticDiagnostics(r,l);if(!e.getEmitDeclarations(o.getCompilerOptions()))return n.slice();var i=o.getDeclarationDiagnostics(r,l);return __spreadArray(__spreadArray([],n),i)},getSuggestionDiagnostics:function(t){return v(),e.computeSuggestionDiagnostics(y(t),o,l)},getCompilerOptionsDiagnostics:function(){return v(),__spreadArray(__spreadArray([],o.getOptionsDiagnostics(l)),o.getGlobalDiagnostics(l))},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(l,c.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r,n){return E(t)?(v(),"2020"===(n||"original")?e.classifier.v2020.getSemanticClassifications(o,l,y(t),r):e.getSemanticClassifications(o.getTypeChecker(),l,y(t),o.getClassifiableNames(),r)):[]},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(l,c.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r,n){return E(t)?(v(),"original"===(n||"original")?e.getEncodedSemanticClassifications(o.getTypeChecker(),l,y(t),o.getClassifiableNames(),r):e.classifier.v2020.getEncodedSemanticClassifications(o,l,y(t),r)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(r,n,i){void 0===i&&(i=e.emptyOptions);var a=__assign(__assign({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return v(),e.Completions.getCompletionsAtPosition(t,o,d,y(r),n,a,i.triggerCharacter)},getCompletionEntryDetails:function(r,n,i,a,s,c){return void 0===c&&(c=e.emptyOptions),v(),e.Completions.getCompletionEntryDetails(o,d,y(r),n,{name:i,source:s},t,a&&e.formatting.getFormatContext(a,t),c,l)},getCompletionEntrySymbol:function(r,n,i,a,s){return void 0===s&&(s=e.emptyOptions),v(),e.Completions.getCompletionEntrySymbol(o,d,y(r),n,{name:i,source:a},t,s)},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;v();var a=y(t);return e.SignatureHelp.getSignatureHelpItems(o,a,r,i,l)},getQuickInfoAtPosition:function(t,r){v();var n=y(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=o.getTypeChecker(),s=function(t){if(e.isNewExpression(t.parent)&&t.pos===t.parent.pos)return t.parent.expression;return t}(i),c=function(t,r){var n=A(t);if(n){var i=r.getContextualType(n.parent),a=i&&F(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(s,a);if(!c||a.isUnknownSymbol(c)){var u=function(t,r,n){switch(r.kind){case 78:return!e.isLabelName(r)&&!e.isTagName(r);case 201:case 157:return!e.isInComment(t,n);case 107:case 187:case 105:return!0;default:return!1}}(n,s,r)?a.getTypeAtLocation(s):void 0;return u&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(s,n),displayParts:a.runWithCancellationToken(l,(function(t){return e.typeToDisplayParts(t,u,e.getContainerNode(s))})),documentation:u.symbol?u.symbol.getDocumentationComment(a):void 0,tags:u.symbol?u.symbol.getJsDocTags():void 0}}var _=a.runWithCancellationToken(l,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,c,n,e.getContainerNode(s),s)})),d=_.symbolKind,p=_.displayParts,f=_.documentation,g=_.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,c),textSpan:e.createTextSpanFromNode(s,n),displayParts:p,documentation:f,tags:g}}},getDefinitionAtPosition:function(t,r){return v(),e.GoToDefinition.getDefinitionAtPosition(o,y(t),r)},getDefinitionAndBoundSpan:function(t,r){return v(),e.GoToDefinition.getDefinitionAndBoundSpan(o,y(t),r)},getImplementationAtPosition:function(t,r){return v(),e.FindAllReferences.getImplementationsAtPosition(o,l,o.getSourceFiles(),y(t),r)},getTypeDefinitionAtPosition:function(t,r){return v(),e.GoToDefinition.getTypeDefinitionAtPosition(o.getTypeChecker(),y(t),r)},getReferencesAtPosition:function(t,r){return v(),S(e.getTouchingPropertyName(y(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return v(),e.FindAllReferences.findReferencedSymbols(o,l,o.getSourceFiles(),y(t),r)},getFileReferences:function(t){return v(),e.FindAllReferences.Core.getReferencesForFileName(t,o,o.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)},getOccurrencesAtPosition:function(t,r){return e.flatMap(D(t,r,[t]),(function(e){return e.highlightSpans.map((function(t){return __assign(__assign({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})}))}))},getDocumentHighlights:D,getNameOrDottedNameSpan:function(t,r,n){var i=c.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 201:case 157:case 10:case 94:case 109:case 103:case 105:case 107:case 187:case 78:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(256!==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(t,r){var n=c.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),v();var a=n?[y(n)]:o.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,o.getTypeChecker(),l,t,r,i)},getRenameInfo:function(t,r,n){return v(),e.Rename.getRenameInfo(o,y(t),r,n)},getSmartSelectionRange:function(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,c.getCurrentSourceFile(t))},findRenameLocations:function(t,r,n,i,a){v();var o=y(t),s=e.getAdjustedRenameLocation(e.getTouchingPropertyName(o,r));if(e.isIdentifier(s)&&(e.isJsxOpeningElement(s.parent)||e.isJsxClosingElement(s.parent))&&e.isIntrinsicJsxName(s.escapedText)){var c=s.parent.parent;return[c.openingElement,c.closingElement].map((function(t){var r=e.createTextSpanFromNode(t.tagName,o);return __assign({fileName:o.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,o,t.parent))}))}return S(s,r,{findInStrings:n,findInComments:i,providePrefixAndSuffixTextForRename:a,use:2},(function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,a||!1)}))},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(c.getCurrentSourceFile(t),l)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(c.getCurrentSourceFile(t),l)},getOutliningSpans:function(t){var r=c.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,l)},getTodoComments:function(t,r){v();var n=y(t);l.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/")))for(var c=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,(function(e){return"("+(e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")")})).join("|")+")";return new RegExp(t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),u=void 0;u=c.exec(o);){l.throwIfCancellationRequested();e.Debug.assert(u.length===r.length+3);var _=u[1],d=u.index+_.length;if(e.isInComment(n,d)){for(var p=void 0,f=0;f<r.length;f++)u[f+3]&&(p=r[f]);if(void 0===p)return e.Debug.fail();if(!((i=o.charCodeAt(d+p.text.length))>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var g=u[2];s.push({descriptor:p,message:g,position:d})}}}return s},getBraceMatchingAtPosition:function(t,r){var n=c.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?P.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort((function(e,t){return e.start-t.start})):e.emptyArray},getIndentationAtPosition:function(t,r,n){var i=e.timestamp(),a=m(n),o=c.getCurrentSourceFile(t);d("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return d("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(r,n,i,a){var o=c.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(m(a),t))},getFormattingEditsForDocument:function(r,n){return e.formatting.formatDocument(c.getCurrentSourceFile(r),e.formatting.getFormatContext(m(n),t))},getFormattingEditsAfterKeystroke:function(r,n,i,a){var o=c.getCurrentSourceFile(r),s=e.formatting.getFormatContext(m(a),t);if(!e.isInComment(o,n))switch(i){case"{":return e.formatting.formatOnOpeningCurly(n,o,s);case"}":return e.formatting.formatOnClosingCurly(n,o,s);case";":return e.formatting.formatOnSemicolon(n,o,s);case"\n":return e.formatting.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:function(r,n,i){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),c.getCurrentSourceFile(r),n,i)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=c.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getJsxClosingTagAtPosition:function(t,r){var n=c.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)?i.parent:void 0;return a&&L(a)?{newText:"</"+a.openingElement.tagName.getText(n)+">"}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=c.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,a,s,c){void 0===c&&(c=e.emptyOptions),v();var u=y(r),_=e.createTextSpanFromBounds(n,i),d=e.formatting.getFormatContext(s,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(function(r){return l.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:u,span:_,program:o,host:t,cancellationToken:l,formatContext:d,preferences:c})}))},getCombinedCodeFix:function(r,n,i,a){void 0===a&&(a=e.emptyOptions),v(),e.Debug.assert("file"===r.type);var s=y(r.fileName),c=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:s,program:o,host:t,cancellationToken:l,formatContext:c,preferences:a})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map((function(e){return w(e)}))):w(n)},organizeImports:function(r,n,i){void 0===i&&(i=e.emptyOptions),v(),e.Debug.assert("file"===r.type);var a=y(r.fileName),s=e.formatting.getFormatContext(n,t);return e.OrganizeImports.organizeImports(a,s,t,o,i)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(x(),r,n,t,e.formatting.getFormatContext(i,t),a,g)},getEmitOutput:function(r,n,i){v();var a=y(r),s=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(o,a,!!n,l,s,i)},getNonBoundSourceFile:function(e){return c.getCurrentSourceFile(e)},getProgram:x,getAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},getApplicableRefactors:function(t,r,n,i,a){void 0===n&&(n=e.emptyOptions),v();var o=y(t);return e.refactor.getApplicableRefactors(R(o,r,n,e.emptyOptions,i,a))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),v();var s=y(t);return e.refactor.getEditsForRefactor(R(s,n,o,r),i,a)},toLineColumnOffset:g.toLineColumnOffset,getSourceMapper:function(){return g},clearSourceMapperCache:function(){return g.clearCache()},prepareCallHierarchy:function(t,r){v();var n=e.CallHierarchy.resolveCallHierarchyDeclaration(o,e.getTouchingPropertyName(y(t),r));return n&&e.mapOneOrMany(n,(function(t){return e.CallHierarchy.createCallHierarchyItem(o,t)}))},provideCallHierarchyIncomingCalls:function(t,r){v();var n=y(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(o,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getIncomingCalls(o,i,l):[]},provideCallHierarchyOutgoingCalls:function(t,r){v();var n=y(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(o,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getOutgoingCalls(o,i):[]},toggleLineComment:O,toggleMultilineComment:M,commentSelection:function(e,t){var r=I(c.getCurrentSourceFile(e),t);return r.firstLine===r.lastLine&&t.pos!==t.end?M(e,t,!0):O(e,t,!0)},uncommentSelection:function(t,r){var n=c.getCurrentSourceFile(t),i=[],a=r.pos,o=r.end;a===o&&(o+=e.isInsideJsxElement(n,a)?2:1);for(var s=a;s<=o;s++){var u=e.isInComment(n,s);if(u){switch(u.kind){case 2:i.push.apply(i,O(t,{end:u.end,pos:u.pos+1},!1));break;case 3:i.push.apply(i,M(t,{end:u.end,pos:u.pos+1},!1))}s=u.end+1}}return i}};switch(a){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:k.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(a)}return B},e.getNameTable=function(t){return t.nameTable||function(t){var r=t.nameTable=new e.Map;t.forEachChild((function t(n){if(e.isIdentifier(n)&&!e.isTagName(n)&&n.escapedText||e.isStringOrNumericLiteralLike(n)&&function(t){return e.isDeclarationName(t)||272===t.parent.kind||function(e){return e&&e.parent&&202===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}else if(e.isPrivateIdentifier(n)){i=n.escapedText;r.set(i,void 0===r.get(i)?n.pos:-1)}if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a<o.length;a++){var s=o[a];e.forEachChild(s,t)}}))}(t),t.nameTable},e.getContainingObjectLiteralElement=A,e.getPropertySymbolsFromContextualType=F,e.getDefaultLibFilePath=function(t){if("undefined"!=typeof __dirname)return __dirname+e.directorySeparator+e.getDefaultLibFileName(t);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")},e.setObjectAllocator({getNodeConstructor:function(){return r},getTokenConstructor:function(){return o},getIdentifierConstructor:function(){return s},getPrivateIdentifierConstructor:function(){return c},getSourceFileConstructor:function(){return f},getSymbolConstructor:function(){return a},getTypeConstructor:function(){return u},getSignatureConstructor:function(){return l},getSourceMapSourceConstructor:function(){return g}})}(ts||(ts={})),function(e){!function(t){t.spanInSourceFileAtLocation=function(t,r){if(!t.isDeclarationFile){var n=e.getTokenAtPosition(t,r),i=t.getLineAndCharacterOfPosition(r).line;if(t.getLineAndCharacterOfPosition(n.getStart(t)).line>i){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(8388608&n.flags))return _(n)}function o(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function s(r,n){return o(r,e.findNextToken(n,n.parent,t))}function c(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?_(e):_(r)}function u(r){return _(e.findPrecedingToken(r.pos,t))}function l(r){return _(e.findNextToken(r,r.parent,t))}function _(r){if(r){var n=r.parent;switch(r.kind){case 232:return v(r.declarationList.declarations[0]);case 249:case 163:case 162:return v(r);case 160:return function t(r){if(e.isBindingPattern(r.name))return D(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):_(n.body)}(r);case 251:case 165:case 164:case 167:case 168:case 166:case 208:case 209:return function(e){if(!e.body)return;if(h(e))return o(e);return _(e.body)}(r);case 230:if(e.isFunctionBlock(r))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();if(h(e.parent))return c(e.parent,t);return _(t)}(r);case 257:return b(r);case 287:return b(r.block);case 233:return o(r.expression);case 242:return o(r.getChildAt(0),r.expression);case 236:return s(r,r.expression);case 235:return _(r.statement);case 248:return o(r.getChildAt(0));case 234:return s(r,r.expression);case 245:return _(r.statement);case 241:case 240:return o(r.getChildAt(0),r.label);case 237:return function(e){if(e.initializer)return x(e);if(e.condition)return o(e.condition);if(e.incrementor)return o(e.incrementor)}(r);case 238:return s(r,r.expression);case 239:return x(r);case 244:return s(r,r.expression);case 284:case 285:return _(r.statements[0]);case 247:return b(r.tryBlock);case 246:case 266:return o(r,r.expression);case 260:return o(r,r.moduleReference);case 261:case 267:return o(r,r.moduleSpecifier);case 256:if(1!==e.getModuleInstanceState(r))return;case 252:case 255:case 291:case 198:return o(r);case 243:return _(r.statement);case 161:return m=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,m.pos),m.end);case 196:case 197:return D(r);case 253:case 254:return;case 26:case 1:return c(e.findPrecedingToken(r.pos,t));case 27:return u(r);case 18:return function(r){switch(r.parent.kind){case 255:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 252:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 258:return c(r.parent.parent,r.parent.clauses[0])}return _(r.parent)}(r);case 19:return function(t){switch(t.parent.kind){case 257:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 255:case 252:return o(t);case 230:if(e.isFunctionBlock(t.parent))return o(t);case 287:return _(e.lastOrUndefined(t.parent.statements));case 258:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?_(e.lastOrUndefined(n.statements)):void 0;case 196:var i=t.parent;return _(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return o(e.lastOrUndefined(a.properties)||a)}return _(t.parent)}}(r);case 23:return function(t){switch(t.parent.kind){case 197:var r=t.parent;return o(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return o(e.lastOrUndefined(n.elements)||n)}return _(t.parent)}}(r);case 20:return function(e){if(235===e.parent.kind||203===e.parent.kind||204===e.parent.kind)return u(e);if(207===e.parent.kind)return l(e);return _(e.parent)}(r);case 21:return function(e){switch(e.parent.kind){case 208:case 251:case 209:case 165:case 164:case 167:case 168:case 166:case 236:case 235:case 237:case 239:case 203:case 204:case 207:return u(e);default:return _(e.parent)}}(r);case 58:return function(t){if(e.isFunctionLike(t.parent)||288===t.parent.kind||160===t.parent.kind)return u(t);return _(t.parent)}(r);case 31:case 29:return function(e){if(206===e.parent.kind)return l(e);return _(e.parent)}(r);case 114:return function(e){if(235===e.parent.kind)return s(e,e.parent.expression);return _(e.parent)}(r);case 90:case 82:case 95:return l(r);case 156:return function(e){if(239===e.parent.kind)return l(e);return _(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return S(r);if((78===r.kind||220===r.kind||288===r.kind||289===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(216===r.kind){var i=r,a=i.left,d=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return S(a);if(62===d.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(27===d.kind)return _(a)}if(e.isExpressionNode(r))switch(n.kind){case 235:return u(r);case 161:return _(r.parent);case 237:case 239:return o(r);case 216:if(27===r.parent.operatorToken.kind)return o(r);break;case 209:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 288:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return _(r.parent.initializer);break;case 206:if(r.parent.type===r)return l(r.parent.type);break;case 249:case 160:var p=r.parent,f=p.initializer,g=p.type;if(f===r||g===r||e.isAssignmentOperator(r.kind))return u(r);break;case 216:a=r.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return u(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return u(r)}return _(r.parent)}}var m;function y(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function v(r){if(238===r.parent.parent.kind)return _(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?D(r.name):r.initializer||e.hasSyntacticModifier(r,1)||239===n.parent.kind?y(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?_(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function h(t){return e.hasSyntacticModifier(t,1)||252===t.parent.kind&&166!==t.kind}function b(r){switch(r.parent.kind){case 256:if(1!==e.getModuleInstanceState(r.parent))return;case 236:case 234:case 238:return c(r.parent,r.statements[0]);case 237:case 239:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return _(r.statements[0])}function x(e){if(250!==e.initializer.kind)return _(e.initializer);var t=e.initializer;return t.declarations.length>0?_(t.declarations[0]):void 0}function D(t){var r=e.forEach(t.elements,(function(e){return 222!==e.kind?e:void 0}));return r?_(r):198===t.parent.kind?o(t.parent):y(t.parent)}function S(t){e.Debug.assert(197!==t.kind&&196!==t.kind);var r=199===t.kind?t.elements:t.properties,n=e.forEach(r,(function(e){return 222!==e.kind?e:void 0}));return n?_(n):o(216===t.parent.kind?t.parent:t)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(ts||(ts={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,e.factory,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(ts||(ts={}));var ts,debugObjectHost=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var r=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),n=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,(function(t){var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,(function(t){return e.getProperty(i,t)}))})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new r(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.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}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=n;var i=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return t.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}return t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function a(e,t,r,n){return o(e,t,!0,r,n)}function o(r,n,i,a,o){try{var s=function(t,r,n,i){var a;i&&(t.log(r),a=e.timestamp());var o=n();if(i){var s=e.timestamp();if(t.log(r+" completed in "+(s-a)+" msec"),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(r,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,i),i.description=n,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=i;var s=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function c(t,r){return t.map((function(t){return function(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}(t,r)}))}e.realizeDiagnostics=c;var u=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return __extends(r,t),r.prototype.forwardJSONCall=function(e,t){return a(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,debugObjectHost&&debugObjectHost.CollectGarbage&&(debugObjectHost.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",(function(){return null}))},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},r.prototype.realizeDiagnostics=function(t){return c(t,e.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+t+"', "+r+", "+n+")",(function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+t+"', "+r+", "+n+")",(function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+t+"', "+r+", "+n+")",(function(){return l(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+t+"', "+r+", "+n+")",(function(){return l(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",(function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",(function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",(function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))}))},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)}))},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getQuickInfoAtPosition(e,t)}))},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)}))},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getBreakpointStatementAtPosition(e,t)}))},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",(function(){return n.languageService.getSignatureHelpItems(e,t,r)}))},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getDefinitionAtPosition(e,t)}))},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",(function(){return r.languageService.getDefinitionAndBoundSpan(e,t)}))},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getTypeDefinitionAtPosition(e,t)}))},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getImplementationAtPosition(e,t)}))},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",(function(){return n.languageService.getRenameInfo(e,t,r)}))},r.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+t+")",(function(){return r.languageService.getSmartSelectionRange(e,t)}))},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+", "+i+")",(function(){return a.languageService.findRenameLocations(e,t,r,n,i)}))},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getBraceMatchingAtPosition(e,t)}))},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",(function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)}))},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",(function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)}))},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",(function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)}))},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getReferencesAtPosition(e,t)}))},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",(function(){return r.languageService.findReferences(e,t)}))},r.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('"+e+")",(function(){return t.languageService.getFileReferences(e)}))},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getOccurrencesAtPosition(e,t)}))},r.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+t+"', "+r+")",(function(){var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,(function(t){return e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o}))}))},r.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getCompletionsAtPosition(e,t,r)}))},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",(function(){var s=void 0===n?void 0:JSON.parse(n);return o.languageService.getCompletionEntryDetails(e,t,r,s,i,a)}))},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+r+")",(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)}))},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",(function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)}))},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+r+"')",(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)}))},r.prototype.getDocCommentTemplateAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",(function(){return n.languageService.getDocCommentTemplateAtPosition(e,t,r)}))},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getNavigateToItems(e,t,r)}))},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",(function(){return t.languageService.getNavigationBarItems(e)}))},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",(function(){return t.languageService.getNavigationTree(e)}))},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",(function(){return t.languageService.getOutliningSpans(e)}))},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",(function(){return r.languageService.getTodoComments(e,JSON.parse(t))}))},r.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('"+e+"', "+t+")",(function(){return r.languageService.prepareCallHierarchy(e,t)}))},r.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+e+"', "+t+")",(function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)}))},r.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+e+"', "+t+")",(function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)}))},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",(function(){var r=t.languageService.getEmitOutput(e),n=r.diagnostics,i=__rest(r,["diagnostics"]);return __assign(__assign({},i),{diagnostics:t.realizeDiagnostics(n)})}))},r.prototype.getEmitOutputObject=function(e){var t=this;return o(this.logger,"getEmitOutput('"+e+"')",!1,(function(){return t.languageService.getEmitOutput(e)}),this.logPerformance)},r.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.toggleLineComment(e,t)}))},r.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.toggleMultilineComment(e,t)}))},r.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.commentSelection(e,t)}))},r.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.uncommentSelection(e,t)}))},r}(s);function l(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var _=function(t){function r(r,n){var i=t.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return __extends(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),a(this.logger,"getEncodedLexicalClassifications",(function(){return l(n.classifier.getEncodedLexicalClassifications(e,t,r))}),this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a<o.length;a++){var s=o[a];i+=s.length+"\n",i+=s.classification+"\n"}return i+=n.finalLexState},r}(s),d=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.logger=r,i.host=n,i.logPerformance=!1,i}return __extends(r,t),r.prototype.forwardJSONCall=function(e,t){return a(this.logger,e,t,this.logPerformance)},r.prototype.resolveModuleName=function(t,r,n){var i=this;return this.forwardJSONCall("resolveModuleName('"+t+"')",(function(){var a=JSON.parse(n),o=e.resolveModuleName(r,e.normalizeSlashes(t),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}}))},r.prototype.resolveTypeReferenceDirective=function(t,r,n){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+t+")",(function(){var a=JSON.parse(n),o=e.resolveTypeReferenceDirective(r,e.normalizeSlashes(t),a,i.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}}))},r.prototype.getPreProcessedFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+t+"')",(function(){var t=e.preProcessFile(e.getSnapshotText(r),!0,!0);return{referencedFiles:n.convertFileReferences(t.referencedFiles),importedFiles:n.convertFileReferences(t.importedFiles),ambientExternalModules:t.ambientExternalModules,isLibFile:t.isLibFile,typeReferenceDirectives:n.convertFileReferences(t.typeReferenceDirectives),libReferenceDirectives:n.convertFileReferences(t.libReferenceDirectives)}}))},r.prototype.getAutomaticTypeDirectiveNames=function(t){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+t+"')",(function(){var n=JSON.parse(t);return e.getAutomaticTypeDirectiveNames(n,r.host)}))},r.prototype.convertFileReferences=function(t){if(t){for(var r=[],n=0,i=t;n<i.length;n++){var a=i[n];r.push({path:e.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return r}},r.prototype.getTSConfigFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getTSConfigFileInfo('"+t+"')",(function(){var i=e.parseJsonText(t,e.getSnapshotText(r)),a=e.normalizeSlashes(t),o=e.parseJsonSourceFileConfigFileContent(i,n.host,e.getDirectoryPath(a),{},a);return{options:o.options,typeAcquisition:o.typeAcquisition,files:o.fileNames,raw:o.raw,errors:c(__spreadArray(__spreadArray([],i.parseDiagnostics),o.errors),"\r\n")}}))},r.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",(function(){return e.getDefaultCompilerOptions()}))},r.prototype.discoverTypings=function(t){var r=this,n=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",(function(){var i=JSON.parse(t);return void 0===r.safeList&&(r.safeList=e.JsTyping.loadSafeList(r.host,e.toPath(i.safeListPath,i.safeListPath,n))),e.JsTyping.discoverTypings(r.host,(function(e){return r.logger.log(e)}),i.fileNames,e.toPath(i.projectRootPath,i.projectRootPath,n),r.safeList,i.packageNameToTypingLocation,i.typeAcquisition,i.unresolvedImports,i.typesRegistry)}))},r}(s),p=function(){function r(){this._shims=[]}return r.prototype.getServicesVersion=function(){return e.servicesVersion},r.prototype.createLanguageServiceShim=function(r){try{void 0===this.documentRegistry&&(this.documentRegistry=e.createDocumentRegistry(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames(),r.getCurrentDirectory()));var i=new n(r),a=e.createLanguageService(i,this.documentRegistry,!1);return new u(this,r,a)}catch(e){throw t(r,e),e}},r.prototype.createClassifierShim=function(e){try{return new _(this,e)}catch(r){throw t(e,r),r}},r.prototype.createCoreServicesShim=function(e){try{var r=new i(e);return new d(this,e,r)}catch(r){throw t(e,r),r}},r.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},r.prototype.registerShim=function(e){this._shims.push(e)},r.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},r}();e.TypeScriptServicesFactory=p}(ts||(ts={})),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=ts.TypeScriptServicesFactory,globalThis.toolsVersion=ts.versionMajorMinor),"undefined"!=typeof module&&module.exports&&(module.exports=ts),function(e){var t={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,t),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,t),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,t),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,t),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,t),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,t),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,t),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,t),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,t),e.createSuper=e.Debug.deprecate(e.factory.createSuper,t),e.createThis=e.Debug.deprecate(e.factory.createThis,t),e.createNull=e.Debug.deprecate(e.factory.createNull,t),e.createTrue=e.Debug.deprecate(e.factory.createTrue,t),e.createFalse=e.Debug.deprecate(e.factory.createFalse,t),e.createModifier=e.Debug.deprecate(e.factory.createModifier,t),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,t),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,t),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,t),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,t),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,t),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,t),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,t),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,t),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,t),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,t),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,t),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,t),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,t),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,t),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,t),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,t),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,t),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,t),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,t),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,t),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,t),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,t),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,t),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,t),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,t),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,t),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,t),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,t),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,t),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,t),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,t),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,t),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,t),e.createConstructorTypeNode=e.Debug.deprecate((function(t,r,n){return e.factory.createConstructorTypeNode(void 0,t,r,n)}),t),e.updateConstructorTypeNode=e.Debug.deprecate((function(t,r,n,i){return e.factory.updateConstructorTypeNode(t,t.modifiers,r,n,i)}),t),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,t),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,t),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,t),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,t),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,t),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,t),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,t),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,t),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,t),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,t),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,t),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,t),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,t),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,t),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,t),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,t),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,t),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,t),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,t),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,t),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,t),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,t),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,t),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,t),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,t),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,t),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,t),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,t),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,t),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,t),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,t),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,t),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,t),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,t),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,t),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,t),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,t),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,t),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,t),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,t),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,t),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,t),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,t),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,t),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,t),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,t),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,t),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,t),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,t),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,t),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,t),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,t),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,t),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,t),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,t),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,t),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,t),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,t),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,t),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,t),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,t),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,t),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,t),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,t),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,t),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,t),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,t),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,t),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,t),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,t),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,t),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,t),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,t),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,t),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,t),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,t),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,t),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,t),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,t),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,t),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,t),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,t),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,t),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,t),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,t),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,t),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,t),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,t),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,t),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,t),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,t),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,t),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,t),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,t),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,t),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,t),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,t),e.createBlock=e.Debug.deprecate(e.factory.createBlock,t),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,t),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,t),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,t),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,t),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,t),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,t),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,t),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,t),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,t),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,t),e.createFor=e.Debug.deprecate(e.factory.createForStatement,t),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,t),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,t),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,t),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,t),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,t),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,t),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,t),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,t),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,t),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,t),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,t),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,t),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,t),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,t),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,t),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,t),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,t),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,t),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,t),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,t),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,t),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,t),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,t),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,t),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,t),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,t),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,t),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,t),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,t),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,t),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,t),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,t),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,t),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,t),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,t),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,t),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,t),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,t),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,t),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,t),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,t),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,t),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,t),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,t),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,t),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,t),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,t),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,t),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,t),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,t),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,t),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,t),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,t),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,t),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,t),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,t),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,t),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,t),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,t),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,t),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,t),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,t),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,t),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,t),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,t),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,t),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,t),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,t),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,t),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,t),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,t),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,t),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,t),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,t),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,t),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,t),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,t),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,t),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,t),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,t),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,t),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,t),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,t),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,t),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,t),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,t),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,t),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,t),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,t),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,t),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,t),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,t),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,t),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,t),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,t),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,t),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,t),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,t),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,t),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,t),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,t),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,t),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,t),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,t),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,t),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,t),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,t),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,t),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,t),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,t),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,t),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,t),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,t),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,t),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,t),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,t),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,t),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,t),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,t),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,t),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,t),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,t),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,t),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,t),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,t),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,t),e.createBundle=e.Debug.deprecate(e.factory.createBundle,t),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,t),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,t),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,t),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,t),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,t),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,t),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,t),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,t),e.createToken=e.Debug.deprecate((function(t){return e.factory.createToken(t)}),t),e.createIdentifier=e.Debug.deprecate((function(t){return e.factory.createIdentifier(t,void 0,void 0)}),t),e.createTempVariable=e.Debug.deprecate((function(t){return e.factory.createTempVariable(t,void 0)}),t),e.getGeneratedNameForNode=e.Debug.deprecate((function(t){return e.factory.getGeneratedNameForNode(t,void 0)}),t),e.createOptimisticUniqueName=e.Debug.deprecate((function(t){return e.factory.createUniqueName(t,16)}),t),e.createFileLevelUniqueName=e.Debug.deprecate((function(t){return e.factory.createUniqueName(t,48)}),t),e.createIndexSignature=e.Debug.deprecate((function(t,r,n,i){return e.factory.createIndexSignature(t,r,n,i)}),t),e.createTypePredicateNode=e.Debug.deprecate((function(t,r){return e.factory.createTypePredicateNode(void 0,t,r)}),t),e.updateTypePredicateNode=e.Debug.deprecate((function(t,r,n){return e.factory.updateTypePredicateNode(t,void 0,r,n)}),t),e.createLiteral=e.Debug.deprecate((function(t){return"number"==typeof t?e.factory.createNumericLiteral(t):"object"==typeof t&&"base10Value"in t?e.factory.createBigIntLiteral(t):"boolean"==typeof t?t?e.factory.createTrue():e.factory.createFalse():"string"==typeof t?e.factory.createStringLiteral(t,void 0):e.factory.createStringLiteralFromNode(t)}),{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(t,r,n,i,a){return e.factory.createMethodSignature(void 0,i,a,t,r,n)}),t),e.updateMethodSignature=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateMethodSignature(t,t.modifiers,a,o,r,n,i)}),t),e.createTypeOperatorNode=e.Debug.deprecate((function(t,r){var n;return r?n=t:(r=t,n=138),e.factory.createTypeOperatorNode(n,r)}),t),e.createTaggedTemplate=e.Debug.deprecate((function(t,r,n){var i;return n?i=r:n=r,e.factory.createTaggedTemplateExpression(t,i,n)}),t),e.updateTaggedTemplate=e.Debug.deprecate((function(t,r,n,i){var a;return i?a=n:i=n,e.factory.updateTaggedTemplateExpression(t,r,a,i)}),t),e.updateBinary=e.Debug.deprecate((function(t,r,n,i){return void 0===i&&(i=t.operatorToken),"number"==typeof i&&(i=i===t.operatorToken.kind?t.operatorToken:e.factory.createToken(i)),e.factory.updateBinaryExpression(t,r,i,n)}),t),e.createConditional=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.createConditionalExpression(t,r,n,i,a):3===arguments.length?e.factory.createConditionalExpression(t,e.factory.createToken(57),r,e.factory.createToken(58),n):e.Debug.fail("Argument count mismatch")}),t),e.createYield=e.Debug.deprecate((function(t,r){var n;return r?n=t:r=t,e.factory.createYieldExpression(n,r)}),t),e.createClassExpression=e.Debug.deprecate((function(t,r,n,i,a){return e.factory.createClassExpression(void 0,t,r,n,i,a)}),t),e.updateClassExpression=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateClassExpression(t,void 0,r,n,i,a,o)}),t),e.createPropertySignature=e.Debug.deprecate((function(t,r,n,i,a){var o=e.factory.createPropertySignature(t,r,n,i);return o.initializer=a,o}),t),e.updatePropertySignature=e.Debug.deprecate((function(t,r,n,i,a,o){var s=e.factory.updatePropertySignature(t,r,n,i,a);return t.initializer!==o&&(s===t&&(s=e.factory.cloneNode(t)),s.initializer=o),s}),t),e.createExpressionWithTypeArguments=e.Debug.deprecate((function(t,r){return e.factory.createExpressionWithTypeArguments(r,t)}),t),e.updateExpressionWithTypeArguments=e.Debug.deprecate((function(t,r,n){return e.factory.updateExpressionWithTypeArguments(t,n,r)}),t),e.createArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o){return 6===arguments.length?e.factory.createArrowFunction(t,r,n,i,a,o):5===arguments.length?e.factory.createArrowFunction(t,r,n,i,void 0,a):e.Debug.fail("Argument count mismatch")}),t),e.updateArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o,s){return 7===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,o,s):6===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,t.equalsGreaterThanToken,o):e.Debug.fail("Argument count mismatch")}),t),e.createVariableDeclaration=e.Debug.deprecate((function(t,r,n,i){return 4===arguments.length?e.factory.createVariableDeclaration(t,r,n,i):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,r,n):e.Debug.fail("Argument count mismatch")}),t),e.updateVariableDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,r,n,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")}),t),e.createImportClause=e.Debug.deprecate((function(t,r,n){return void 0===n&&(n=!1),e.factory.createImportClause(n,t,r)}),t),e.updateImportClause=e.Debug.deprecate((function(t,r,n,i){return e.factory.updateImportClause(t,i,r,n)}),t),e.createExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i)}),t),e.updateExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateExportDeclaration(t,r,n,o,i,a)}),t),e.createJSDocParamTag=e.Debug.deprecate((function(t,r,n,i){return e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i)}),t),e.createComma=e.Debug.deprecate((function(t,r){return e.factory.createComma(t,r)}),t),e.createLessThan=e.Debug.deprecate((function(t,r){return e.factory.createLessThan(t,r)}),t),e.createAssignment=e.Debug.deprecate((function(t,r){return e.factory.createAssignment(t,r)}),t),e.createStrictEquality=e.Debug.deprecate((function(t,r){return e.factory.createStrictEquality(t,r)}),t),e.createStrictInequality=e.Debug.deprecate((function(t,r){return e.factory.createStrictInequality(t,r)}),t),e.createAdd=e.Debug.deprecate((function(t,r){return e.factory.createAdd(t,r)}),t),e.createSubtract=e.Debug.deprecate((function(t,r){return e.factory.createSubtract(t,r)}),t),e.createLogicalAnd=e.Debug.deprecate((function(t,r){return e.factory.createLogicalAnd(t,r)}),t),e.createLogicalOr=e.Debug.deprecate((function(t,r){return e.factory.createLogicalOr(t,r)}),t),e.createPostfixIncrement=e.Debug.deprecate((function(t){return e.factory.createPostfixIncrement(t)}),t),e.createLogicalNot=e.Debug.deprecate((function(t){return e.factory.createLogicalNot(t)}),t),e.createNode=e.Debug.deprecate((function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(297===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):78===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):79===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),r,n)}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((function(t){var r=e.factory.cloneNode(t);return e.setTextRange(r,t),e.setParent(r,t.parent),r}),{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 206===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})}(ts||(ts={})); |