(window.webpackJsonp=window.webpackJsonp||[]).push([[70],{SoUf:function(e,t,r){"use strict";(function(t,n,i,a){var o=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n},s=this&&this.__assign||function(){return(s=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)},c=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=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],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])}}},u=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},l=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},_=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();!function(e){e.createMapShim=function(){function e(){var e=Object.create(null);return e.__=void 0,delete e.__,e}var t=function(){function e(e,t){this.currentEntry=e,this.selector=t}return e.prototype.next=function(){for(;this.currentEntry;){var e=!!this.currentEntry.skipNext;if(this.currentEntry=this.currentEntry.nextEntry,!e)break}return this.currentEntry?{value:this.selector(this.currentEntry.key,this.currentEntry.value),done:!1}:{value:void 0,done:!0}},e}();return function(){function r(){this.data=e(),this.size=0,this.firstEntry={},this.lastEntry=this.firstEntry}return r.prototype.get=function(e){var t=this.data[e];return t&&t.value},r.prototype.set=function(e,t){if(this.has(e))this.data[e].value=t;else{this.size++;var r={key:e,value:t};this.data[e]=r;var n=this.lastEntry;n.nextEntry=r,r.previousEntry=n,this.lastEntry=r}return this},r.prototype.has=function(e){return e in this.data},r.prototype.delete=function(e){if(this.has(e)){this.size--;var t=this.data[e];delete this.data[e];var r=t.previousEntry;return r.nextEntry=t.nextEntry,t.nextEntry&&(t.nextEntry.previousEntry=r),this.lastEntry===t&&(this.lastEntry=r),t.previousEntry=void 0,t.nextEntry=r,t.skipNext=!0,!0}return!1},r.prototype.clear=function(){this.data=e(),this.size=0;for(var t=this.firstEntry,r=t.nextEntry;r;){var n=r.nextEntry;r.previousEntry=void 0,r.nextEntry=t,r.skipNext=!0,r=n}t.nextEntry=void 0,this.lastEntry=t},r.prototype.keys=function(){return new t(this.firstEntry,(function(e){return e}))},r.prototype.values=function(){return new t(this.firstEntry,(function(e,t){return t}))},r.prototype.entries=function(){return new t(this.firstEntry,(function(e,t){return[e,t]}))},r.prototype.forEach=function(e){for(var t=this.entries();;){var r=t.next();if(r.done)break;var n=r.value,i=n[0];e(n[1],i)}},r}()}}(d||(d={})),function(e){function t(){return"undefined"!==typeof Map&&"entries"in Map.prototype?Map:void 0}e.versionMajorMinor="3.9",e.version="3.9.10",e.tryGetNativeMap=t,e.Map=t()||function(){if("function"===typeof e.createMapShim)return e.createMapShim();throw new Error("TypeScript requires an environment that provides a compatible native Map implementation.")}(),function(e){e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan"}(e.Comparison||(e.Comparison={}))}(d||(d={})),function(e){function t(){return new e.Map}function r(e,t,r){if(void 0===r&&(r=P),e)for(var n=0,i=e;n<i.length;n++){if(r(i[n],t))return!0}return!1}function n(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 i(e,t){return n(t)?n(e)?o(e,t):t:e}function a(e,t){return t}function s(e){return e.map(a)}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,n){return!r(e,t,n)&&(e.push(t),!0)}function d(e,t,r){t.sort((function(t,n){return r(e[t],e[n])||I(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,i,a){if(!n(e))return-1;for(var o=a||0,s=e.length-1;o<=s;){var c=o+(s-o>>1);switch(i(r(e[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.emptyArray=[],e.createMap=t,e.createMapFromEntries=function(e){for(var r=t(),n=0,i=e;n<i.length;n++){var a=i[n],o=a[0],s=a[1];r.set(o,s)}return r},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.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(r,n){e.Debug.assert(r.length===n.length);for(var i=t(),a=0;a<r.length;++a)i.set(r[a],n[a]);return i},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=r,e.arraysEqual=function(e,t,r){return void 0===r&&(r=P),e.length===t.length&&e.every((function(e,n){return r(e,t[n])}))},e.indexOfAnyCharCode=function(e,t,n){for(var i=n||0;i<e.length;i++)if(r(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&&(T(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=T(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&&(T(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:T(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||T(a))&&(r||(r=e.slice(0,n)),T(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.mapDefinedMap=function(e,r,n){void 0===n&&(n=E);var i=t();return e.forEach((function(e,t){var a=r(e,t);void 0!==a&&i.set(n(t),a)})),i},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(e,r){if(e){var n=t();return e.forEach((function(e,t){var i=r(t,e),a=i[0],o=i[1];n.set(a,o)})),n}},e.some=n,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=i,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,E,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||M)},e.arrayIsEqualTo=function(e,t,r){if(void 0===r&&(r=P),!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:T(e)?T(t)?i(e,t):c(e,t):T(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,t){for(var r=[],n=e.next();!n.done;n=e.next())r.push(t?t(n.value):n.value);return r}function x(e,t,r){void 0===r&&(r=E);for(var n=D(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function D(){var e=t();return e.add=S,e.remove=C,e}function S(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function C(e,t){var r=this.get(e);r&&(K(r,t),r.length||this.delete(e))}function T(e){return Array.isArray?Array.isArray(e):e instanceof Array}function k(e){}function E(e){return e}function N(e){return e.toLowerCase()}e.hasProperty=h,e.getProperty=function(e,t){return v.call(e,t)?e[t]:void 0},e.getOwnKeys=function(e){var t=[];for(var r in e)v.call(e,r)&&t.push(r);return t},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},e.arrayFrom=b,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=P),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(e,r,n){void 0===n&&(n=E);for(var i=t(),a=0,o=e;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=E);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},e.arrayToMultiMap=x,e.group=function(e,t,r){return void 0===r&&(r=E),b(x(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.mapMap=function(e,r){var n=t();return e.forEach((function(e,t){return n.set.apply(n,r(e,t))})),n},e.createMultiMap=D,e.createUnderscoreEscapedMultiMap=function(){return D()},e.isArray=T,e.toArray=function(e){return T(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=k,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.returnUndefined=function(){},e.identity=E,e.toLowerCase=N;var A=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function F(e){return A.test(e)?e.replace(A,N):e}function P(e,t){return e===t}function w(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function I(e,t){return w(e,t)}function O(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 M(e,t){return w(e,t)}e.toFileNameLowerCase=F,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.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=P,e.equateStringsCaseInsensitive=function(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()},e.equateStringsCaseSensitive=function(e,t){return P(e,t)},e.compareValues=I,e.compareTextSpans=function(e,t){return I(null===e||void 0===e?void 0:e.start,null===t||void 0===t?void 0:t.start)||I(null===e||void 0===e?void 0:e.length,null===t||void 0===t?void 0:t.length)},e.min=function(e,t,r){return-1===r(e,t)?e:t},e.compareStringsCaseInsensitive=O,e.compareStringsCaseSensitive=M,e.getStringComparer=function(e){return e?O:M};var L,R,B=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 j(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+1,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=o>r?o-r:1,u=t.length>r+o?r+o:t.length;i[0]=o;for(var l=o,_=1;_<c;_++)i[_]=a;for(_=c;_<=u;_++){var d=s===t.charCodeAt(_-1)?n[_-1]:Math.min(n[_]+1,i[_-1]+1,n[_-1]+2);i[_]=d,l=Math.min(l,d)}for(_=u+1;_<=t.length;_++)i[_]=a;if(l>r)return;var p=n;n=i,i=p}var f=n[t.length];return f>r?void 0:f}function J(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function z(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function U(e,t){e[t]=e[e.length-1],e.pop()}function K(e,t){return function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return U(e,r),!0;return!1}(e,(function(e){return e===t}))}function V(e,t){return 0===e.lastIndexOf(t,0)}function q(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&V(t,r)&&J(t,n)}e.getUILocale=function(){return R},e.setUILocale=function(e){R!==e&&(R=e,L=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return(L||(L=B(R)))(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 I(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=!1,c=t.toLowerCase(),u=0,l=r;u<l.length;u++){var _=l[u],d=n(_);if(void 0!==d&&Math.abs(d.length-c.length)<=a){var p=d.toLowerCase();if(p===c){if(d===t)continue;return _}if(s)continue;if(d.length<3)continue;var f=j(c,p,o-1);if(void 0===f)continue;f<3?(s=!0,i=_):(e.Debug.assert(f<o),o=f,i=_)}}return i},e.endsWith=J,e.removeSuffix=function(e,t){return J(e,t)?e.slice(0,e.length-t.length):e},e.tryRemoveSuffix=function(e,t){return J(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 z(e,r),!0;return!1},e.orderedRemoveItemAt=z,e.unorderedRemoveItemAt=U,e.unorderedRemoveItem=K,e.createGetCanonicalFileName=function(e){return e?E:F},e.patternText=function(e){return e.prefix+"*"+e.suffix},e.matchedText=function(t,r){return e.Debug.assert(q(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);q(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n},e.startsWith=V,e.removePrefix=function(e,t){return V(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=E),V(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||k;for(var o=0,s=0,c=e.length,u=t.length;o<c&&s<u;){var l=e[o],_=t[s],d=r(l,_);-1===d?(n(l),o++):1===d?(i(_),s++):(a(_,l),o++,s++)}for(;o<c;)n(e[o++]);for(;s<u;)i(t[s++])},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 function e(t,r,n,i){for(var a=0,o=t[i];a<o.length;a++){var s=o[a],c=void 0;n?(c=n.slice()).push(s):c=[s],i===t.length-1?r.push(c):e(t,r,c,i+1)}}(e,t,void 0,0),t},e.padLeft=function(e,t){for(;e.length<t;)e=" "+e;return e},e.padRight=function(e,t){for(;e.length<t;)e+=" ";return e}}(d||(d={})),function(e){!function(t){var r=0;t.isDebugging=!1;var n={};function i(e){return r>=e}function a(r,a){return!!i(r)||(n[a]={level:r,assertion:t[a]},t[a]=e.noop,!1)}function o(e,t){var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||o),r}function s(e,t,r,n){e||(t=t?"False expression: "+t:"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"===typeof r?r:r())),o(t,n||s))}function c(e,t,r){void 0!==e&&null!==e||o(t,r||c)}function u(e,t,r){return c(e,t,r||u),e}function l(e,t,r){for(var n=0,i=e;n<i.length;n++){c(i[n],t,r||l)}}function _(e,t,r){return l(e,t,r||_),e}function d(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 p(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 f(t){return p(t,e.SyntaxKind,!1)}function g(t){return p(t,e.NodeFlags,!0)}function m(t){return p(t,e.ModifierFlags,!0)}function y(t){return p(t,e.TransformFlags,!0)}function v(t){return p(t,e.EmitFlags,!0)}function h(t){return p(t,e.SymbolFlags,!0)}function b(t){return p(t,e.TypeFlags,!0)}function x(t){return p(t,e.ObjectFlags,!0)}t.getAssertionLevel=function(){return r},t.setAssertionLevel=function(i){var a=r;if(r=i,i>a)for(var o=0,s=e.getOwnKeys(n);o<s.length;o++){var c=s[o],u=n[c];void 0!==u&&t[c]!==u.assertion&&i>=u.level&&(t[c]=u,n[c]=void 0)}},t.shouldAssert=i,t.fail=o,t.failBadSyntaxKind=function e(t,r,n){return o((r||"Unexpected node.")+"\r\nNode "+f(t.kind)+" was unexpected.",n||e)},t.assert=s,t.assertEqual=function e(t,r,n,i,a){t!==r&&o("Expected "+t+" === "+r+". "+(n?i?n+" "+i:n:""),a||e)},t.assertLessThan=function e(t,r,n,i){t>=r&&o("Expected "+t+" < "+r+". "+(n||""),i||e)},t.assertLessThanOrEqual=function e(t,r,n){t>r&&o("Expected "+t+" <= "+r,n||e)},t.assertGreaterThanOrEqual=function e(t,r,n){t<r&&o("Expected "+t+" >= "+r,n||e)},t.assertIsDefined=c,t.checkDefined=u,t.assertDefined=u,t.assertEachIsDefined=l,t.checkEachDefined=_,t.assertEachDefined=_,t.assertNever=function t(r,n,i){return void 0===n&&(n="Illegal value:"),o(n+" "+("object"===typeof r&&e.hasProperty(r,"kind")&&e.hasProperty(r,"pos")&&f?"SyntaxKind: "+f(r.kind):JSON.stringify(r)),i||t)},t.assertEachNode=function t(r,n,i,o){a(1,"assertEachNode")&&s(void 0===n||e.every(r,n),i||"Unexpected node.",(function(){return"Node array did not pass test '"+d(n)+"'."}),o||t)},t.assertNode=function e(t,r,n,i){a(1,"assertNode")&&s(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(function(){return"Node "+f(t.kind)+" did not pass test '"+d(r)+"'."}),i||e)},t.assertNotNode=function e(t,r,n,i){a(1,"assertNotNode")&&s(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(function(){return"Node "+f(t.kind)+" should not have passed test '"+d(r)+"'."}),i||e)},t.assertOptionalNode=function e(t,r,n,i){a(1,"assertOptionalNode")&&s(void 0===r||void 0===t||r(t),n||"Unexpected node.",(function(){return"Node "+f(t.kind)+" did not pass test '"+d(r)+"'."}),i||e)},t.assertOptionalToken=function e(t,r,n,i){a(1,"assertOptionalToken")&&s(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(function(){return"Node "+f(t.kind)+" was not a '"+f(r)+"' token."}),i||e)},t.assertMissingNode=function e(t,r,n){a(1,"assertMissingNode")&&s(void 0===t,r||"Unexpected node.",(function(){return"Node "+f(t.kind)+" was unexpected'."}),n||e)},t.getFunctionName=d,t.formatSymbol=function(t){return"{ name: "+e.unescapeLeadingUnderscores(t.escapedName)+"; flags: "+h(t.flags)+"; declarations: "+e.map(t.declarations,(function(e){return f(e.kind)}))+" }"},t.formatEnum=p,t.formatSyntaxKind=f,t.formatNodeFlags=g,t.formatModifierFlags=m,t.formatTransformFlags=y,t.formatEmitFlags=v,t.formatSymbolFlags=h,t.formatTypeFlags=b,t.formatObjectFlags=x;var D,S=!1;function C(e){return function(){if(T(),!D)throw new Error("Debugging helpers could not be loaded.");return D}().formatControlFlowGraph(e)}function T(){if(!S){Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return h(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return b(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?x(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var t=0,r=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];t<r.length;t++){var n=r[t];n.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(n.prototype,{__debugKind:{get:function(){return f(this.kind)}},__debugNodeFlags:{get:function(){return g(this.flags)}},__debugModifierFlags:{get:function(){return m(e.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return y(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return v(e.getEmitFlags(this))}},__debugGetText:{value:function(t){if(e.nodeIsSynthesized(this))return"";var r=e.getParseTreeNode(this),n=r&&e.getSourceFileOfNode(r);return n?e.getSourceTextOfNodeFromSourceFile(n,r,t):""}}})}try{if(e.sys&&e.sys.require){var i=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),a=e.sys.require(i,"./compiler-debug");a.error||(a.module.init(e),D=a.module)}}catch(o){}S=!0}}t.printControlFlowGraph=function(e){return console.log(C(e))},t.formatControlFlowGraph=C,t.attachFlowNodeDebugInfo=function(t){S&&("__debugFlowFlags"in t||Object.defineProperties(t,{__debugFlowFlags:{get:function(){return p(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return C(this)}}}))},t.enableDebugInfo=T}(e.Debug||(e.Debug={}))}(d||(d={})),function(e){e.timestamp="undefined"!==typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}}(d||(d={})),function(e){!function(t){var r,n,i,a="function"===typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},o=!1,s=0;function c(t,r,n){var i=0;return{enter:function(){1===++i&&u(r)},exit:function(){0===--i?(u(n),l(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}function u(t){o&&(n.set(t,e.timestamp()),r.set(t,(r.get(t)||0)+1),a(t))}function l(t,r,a){if(o){var c=a&&n.get(a)||e.timestamp(),u=r&&n.get(r)||s;i.set(t,(i.get(t)||0)+(c-u))}}t.createTimerIf=function(e,r,n,i){return e?c(r,n,i):t.nullTimer},t.createTimer=c,t.nullTimer={enter:e.noop,exit:e.noop},t.mark=u,t.measure=l,t.getCount=function(e){return r&&r.get(e)||0},t.getDuration=function(e){return i&&i.get(e)||0},t.forEachMeasure=function(e){i.forEach((function(t,r){e(r,t)}))},t.enable=function(){r=e.createMap(),n=e.createMap(),i=e.createMap(),o=!0,s=e.timestamp()},t.disable=function(){o=!1}}(e.performance||(e.performance={}))}(d||(d={})),function(e){var n,i,a={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 o=null!==(n=t.env.TS_ETW_MODULE_PATH)&&void 0!==n?n:"./node_modules/@microsoft/typescript-etw";i=r("izN1")(o)}catch(s){i=void 0}e.perfLogger=i&&i.logEvent?i:a}(d||(d={})),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++){var i=n[r];if(h(e,i))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}}(d||(d={})),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.CaretEqualsToken=74]="CaretEqualsToken",e[e.Identifier=75]="Identifier",e[e.PrivateIdentifier=76]="PrivateIdentifier",e[e.BreakKeyword=77]="BreakKeyword",e[e.CaseKeyword=78]="CaseKeyword",e[e.CatchKeyword=79]="CatchKeyword",e[e.ClassKeyword=80]="ClassKeyword",e[e.ConstKeyword=81]="ConstKeyword",e[e.ContinueKeyword=82]="ContinueKeyword",e[e.DebuggerKeyword=83]="DebuggerKeyword",e[e.DefaultKeyword=84]="DefaultKeyword",e[e.DeleteKeyword=85]="DeleteKeyword",e[e.DoKeyword=86]="DoKeyword",e[e.ElseKeyword=87]="ElseKeyword",e[e.EnumKeyword=88]="EnumKeyword",e[e.ExportKeyword=89]="ExportKeyword",e[e.ExtendsKeyword=90]="ExtendsKeyword",e[e.FalseKeyword=91]="FalseKeyword",e[e.FinallyKeyword=92]="FinallyKeyword",e[e.ForKeyword=93]="ForKeyword",e[e.FunctionKeyword=94]="FunctionKeyword",e[e.IfKeyword=95]="IfKeyword",e[e.ImportKeyword=96]="ImportKeyword",e[e.InKeyword=97]="InKeyword",e[e.InstanceOfKeyword=98]="InstanceOfKeyword",e[e.NewKeyword=99]="NewKeyword",e[e.NullKeyword=100]="NullKeyword",e[e.ReturnKeyword=101]="ReturnKeyword",e[e.SuperKeyword=102]="SuperKeyword",e[e.SwitchKeyword=103]="SwitchKeyword",e[e.ThisKeyword=104]="ThisKeyword",e[e.ThrowKeyword=105]="ThrowKeyword",e[e.TrueKeyword=106]="TrueKeyword",e[e.TryKeyword=107]="TryKeyword",e[e.TypeOfKeyword=108]="TypeOfKeyword",e[e.VarKeyword=109]="VarKeyword",e[e.VoidKeyword=110]="VoidKeyword",e[e.WhileKeyword=111]="WhileKeyword",e[e.WithKeyword=112]="WithKeyword",e[e.ImplementsKeyword=113]="ImplementsKeyword",e[e.InterfaceKeyword=114]="InterfaceKeyword",e[e.LetKeyword=115]="LetKeyword",e[e.PackageKeyword=116]="PackageKeyword",e[e.PrivateKeyword=117]="PrivateKeyword",e[e.ProtectedKeyword=118]="ProtectedKeyword",e[e.PublicKeyword=119]="PublicKeyword",e[e.StaticKeyword=120]="StaticKeyword",e[e.YieldKeyword=121]="YieldKeyword",e[e.AbstractKeyword=122]="AbstractKeyword",e[e.AsKeyword=123]="AsKeyword",e[e.AssertsKeyword=124]="AssertsKeyword",e[e.AnyKeyword=125]="AnyKeyword",e[e.AsyncKeyword=126]="AsyncKeyword",e[e.AwaitKeyword=127]="AwaitKeyword",e[e.BooleanKeyword=128]="BooleanKeyword",e[e.ConstructorKeyword=129]="ConstructorKeyword",e[e.DeclareKeyword=130]="DeclareKeyword",e[e.GetKeyword=131]="GetKeyword",e[e.InferKeyword=132]="InferKeyword",e[e.IsKeyword=133]="IsKeyword",e[e.KeyOfKeyword=134]="KeyOfKeyword",e[e.ModuleKeyword=135]="ModuleKeyword",e[e.NamespaceKeyword=136]="NamespaceKeyword",e[e.NeverKeyword=137]="NeverKeyword",e[e.ReadonlyKeyword=138]="ReadonlyKeyword",e[e.RequireKeyword=139]="RequireKeyword",e[e.NumberKeyword=140]="NumberKeyword",e[e.ObjectKeyword=141]="ObjectKeyword",e[e.SetKeyword=142]="SetKeyword",e[e.StringKeyword=143]="StringKeyword",e[e.SymbolKeyword=144]="SymbolKeyword",e[e.TypeKeyword=145]="TypeKeyword",e[e.UndefinedKeyword=146]="UndefinedKeyword",e[e.UniqueKeyword=147]="UniqueKeyword",e[e.UnknownKeyword=148]="UnknownKeyword",e[e.FromKeyword=149]="FromKeyword",e[e.GlobalKeyword=150]="GlobalKeyword",e[e.BigIntKeyword=151]="BigIntKeyword",e[e.OfKeyword=152]="OfKeyword",e[e.QualifiedName=153]="QualifiedName",e[e.ComputedPropertyName=154]="ComputedPropertyName",e[e.TypeParameter=155]="TypeParameter",e[e.Parameter=156]="Parameter",e[e.Decorator=157]="Decorator",e[e.PropertySignature=158]="PropertySignature",e[e.PropertyDeclaration=159]="PropertyDeclaration",e[e.MethodSignature=160]="MethodSignature",e[e.MethodDeclaration=161]="MethodDeclaration",e[e.Constructor=162]="Constructor",e[e.GetAccessor=163]="GetAccessor",e[e.SetAccessor=164]="SetAccessor",e[e.CallSignature=165]="CallSignature",e[e.ConstructSignature=166]="ConstructSignature",e[e.IndexSignature=167]="IndexSignature",e[e.TypePredicate=168]="TypePredicate",e[e.TypeReference=169]="TypeReference",e[e.FunctionType=170]="FunctionType",e[e.ConstructorType=171]="ConstructorType",e[e.TypeQuery=172]="TypeQuery",e[e.TypeLiteral=173]="TypeLiteral",e[e.ArrayType=174]="ArrayType",e[e.TupleType=175]="TupleType",e[e.OptionalType=176]="OptionalType",e[e.RestType=177]="RestType",e[e.UnionType=178]="UnionType",e[e.IntersectionType=179]="IntersectionType",e[e.ConditionalType=180]="ConditionalType",e[e.InferType=181]="InferType",e[e.ParenthesizedType=182]="ParenthesizedType",e[e.ThisType=183]="ThisType",e[e.TypeOperator=184]="TypeOperator",e[e.IndexedAccessType=185]="IndexedAccessType",e[e.MappedType=186]="MappedType",e[e.LiteralType=187]="LiteralType",e[e.ImportType=188]="ImportType",e[e.ObjectBindingPattern=189]="ObjectBindingPattern",e[e.ArrayBindingPattern=190]="ArrayBindingPattern",e[e.BindingElement=191]="BindingElement",e[e.ArrayLiteralExpression=192]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=193]="ObjectLiteralExpression",e[e.PropertyAccessExpression=194]="PropertyAccessExpression",e[e.ElementAccessExpression=195]="ElementAccessExpression",e[e.CallExpression=196]="CallExpression",e[e.NewExpression=197]="NewExpression",e[e.TaggedTemplateExpression=198]="TaggedTemplateExpression",e[e.TypeAssertionExpression=199]="TypeAssertionExpression",e[e.ParenthesizedExpression=200]="ParenthesizedExpression",e[e.FunctionExpression=201]="FunctionExpression",e[e.ArrowFunction=202]="ArrowFunction",e[e.DeleteExpression=203]="DeleteExpression",e[e.TypeOfExpression=204]="TypeOfExpression",e[e.VoidExpression=205]="VoidExpression",e[e.AwaitExpression=206]="AwaitExpression",e[e.PrefixUnaryExpression=207]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=208]="PostfixUnaryExpression",e[e.BinaryExpression=209]="BinaryExpression",e[e.ConditionalExpression=210]="ConditionalExpression",e[e.TemplateExpression=211]="TemplateExpression",e[e.YieldExpression=212]="YieldExpression",e[e.SpreadElement=213]="SpreadElement",e[e.ClassExpression=214]="ClassExpression",e[e.OmittedExpression=215]="OmittedExpression",e[e.ExpressionWithTypeArguments=216]="ExpressionWithTypeArguments",e[e.AsExpression=217]="AsExpression",e[e.NonNullExpression=218]="NonNullExpression",e[e.MetaProperty=219]="MetaProperty",e[e.SyntheticExpression=220]="SyntheticExpression",e[e.TemplateSpan=221]="TemplateSpan",e[e.SemicolonClassElement=222]="SemicolonClassElement",e[e.Block=223]="Block",e[e.EmptyStatement=224]="EmptyStatement",e[e.VariableStatement=225]="VariableStatement",e[e.ExpressionStatement=226]="ExpressionStatement",e[e.IfStatement=227]="IfStatement",e[e.DoStatement=228]="DoStatement",e[e.WhileStatement=229]="WhileStatement",e[e.ForStatement=230]="ForStatement",e[e.ForInStatement=231]="ForInStatement",e[e.ForOfStatement=232]="ForOfStatement",e[e.ContinueStatement=233]="ContinueStatement",e[e.BreakStatement=234]="BreakStatement",e[e.ReturnStatement=235]="ReturnStatement",e[e.WithStatement=236]="WithStatement",e[e.SwitchStatement=237]="SwitchStatement",e[e.LabeledStatement=238]="LabeledStatement",e[e.ThrowStatement=239]="ThrowStatement",e[e.TryStatement=240]="TryStatement",e[e.DebuggerStatement=241]="DebuggerStatement",e[e.VariableDeclaration=242]="VariableDeclaration",e[e.VariableDeclarationList=243]="VariableDeclarationList",e[e.FunctionDeclaration=244]="FunctionDeclaration",e[e.ClassDeclaration=245]="ClassDeclaration",e[e.InterfaceDeclaration=246]="InterfaceDeclaration",e[e.TypeAliasDeclaration=247]="TypeAliasDeclaration",e[e.EnumDeclaration=248]="EnumDeclaration",e[e.ModuleDeclaration=249]="ModuleDeclaration",e[e.ModuleBlock=250]="ModuleBlock",e[e.CaseBlock=251]="CaseBlock",e[e.NamespaceExportDeclaration=252]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=253]="ImportEqualsDeclaration",e[e.ImportDeclaration=254]="ImportDeclaration",e[e.ImportClause=255]="ImportClause",e[e.NamespaceImport=256]="NamespaceImport",e[e.NamedImports=257]="NamedImports",e[e.ImportSpecifier=258]="ImportSpecifier",e[e.ExportAssignment=259]="ExportAssignment",e[e.ExportDeclaration=260]="ExportDeclaration",e[e.NamedExports=261]="NamedExports",e[e.NamespaceExport=262]="NamespaceExport",e[e.ExportSpecifier=263]="ExportSpecifier",e[e.MissingDeclaration=264]="MissingDeclaration",e[e.ExternalModuleReference=265]="ExternalModuleReference",e[e.JsxElement=266]="JsxElement",e[e.JsxSelfClosingElement=267]="JsxSelfClosingElement",e[e.JsxOpeningElement=268]="JsxOpeningElement",e[e.JsxClosingElement=269]="JsxClosingElement",e[e.JsxFragment=270]="JsxFragment",e[e.JsxOpeningFragment=271]="JsxOpeningFragment",e[e.JsxClosingFragment=272]="JsxClosingFragment",e[e.JsxAttribute=273]="JsxAttribute",e[e.JsxAttributes=274]="JsxAttributes",e[e.JsxSpreadAttribute=275]="JsxSpreadAttribute",e[e.JsxExpression=276]="JsxExpression",e[e.CaseClause=277]="CaseClause",e[e.DefaultClause=278]="DefaultClause",e[e.HeritageClause=279]="HeritageClause",e[e.CatchClause=280]="CatchClause",e[e.PropertyAssignment=281]="PropertyAssignment",e[e.ShorthandPropertyAssignment=282]="ShorthandPropertyAssignment",e[e.SpreadAssignment=283]="SpreadAssignment",e[e.EnumMember=284]="EnumMember",e[e.UnparsedPrologue=285]="UnparsedPrologue",e[e.UnparsedPrepend=286]="UnparsedPrepend",e[e.UnparsedText=287]="UnparsedText",e[e.UnparsedInternalText=288]="UnparsedInternalText",e[e.UnparsedSyntheticReference=289]="UnparsedSyntheticReference",e[e.SourceFile=290]="SourceFile",e[e.Bundle=291]="Bundle",e[e.UnparsedSource=292]="UnparsedSource",e[e.InputFiles=293]="InputFiles",e[e.JSDocTypeExpression=294]="JSDocTypeExpression",e[e.JSDocAllType=295]="JSDocAllType",e[e.JSDocUnknownType=296]="JSDocUnknownType",e[e.JSDocNullableType=297]="JSDocNullableType",e[e.JSDocNonNullableType=298]="JSDocNonNullableType",e[e.JSDocOptionalType=299]="JSDocOptionalType",e[e.JSDocFunctionType=300]="JSDocFunctionType",e[e.JSDocVariadicType=301]="JSDocVariadicType",e[e.JSDocNamepathType=302]="JSDocNamepathType",e[e.JSDocComment=303]="JSDocComment",e[e.JSDocTypeLiteral=304]="JSDocTypeLiteral",e[e.JSDocSignature=305]="JSDocSignature",e[e.JSDocTag=306]="JSDocTag",e[e.JSDocAugmentsTag=307]="JSDocAugmentsTag",e[e.JSDocImplementsTag=308]="JSDocImplementsTag",e[e.JSDocAuthorTag=309]="JSDocAuthorTag",e[e.JSDocClassTag=310]="JSDocClassTag",e[e.JSDocPublicTag=311]="JSDocPublicTag",e[e.JSDocPrivateTag=312]="JSDocPrivateTag",e[e.JSDocProtectedTag=313]="JSDocProtectedTag",e[e.JSDocReadonlyTag=314]="JSDocReadonlyTag",e[e.JSDocCallbackTag=315]="JSDocCallbackTag",e[e.JSDocEnumTag=316]="JSDocEnumTag",e[e.JSDocParameterTag=317]="JSDocParameterTag",e[e.JSDocReturnTag=318]="JSDocReturnTag",e[e.JSDocThisTag=319]="JSDocThisTag",e[e.JSDocTypeTag=320]="JSDocTypeTag",e[e.JSDocTemplateTag=321]="JSDocTemplateTag",e[e.JSDocTypedefTag=322]="JSDocTypedefTag",e[e.JSDocPropertyTag=323]="JSDocPropertyTag",e[e.SyntaxList=324]="SyntaxList",e[e.NotEmittedStatement=325]="NotEmittedStatement",e[e.PartiallyEmittedExpression=326]="PartiallyEmittedExpression",e[e.CommaListExpression=327]="CommaListExpression",e[e.MergeDeclarationMarker=328]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=329]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=330]="SyntheticReferenceExpression",e[e.Count=331]="Count",e[e.FirstAssignment=62]="FirstAssignment",e[e.LastAssignment=74]="LastAssignment",e[e.FirstCompoundAssignment=63]="FirstCompoundAssignment",e[e.LastCompoundAssignment=74]="LastCompoundAssignment",e[e.FirstReservedWord=77]="FirstReservedWord",e[e.LastReservedWord=112]="LastReservedWord",e[e.FirstKeyword=77]="FirstKeyword",e[e.LastKeyword=152]="LastKeyword",e[e.FirstFutureReservedWord=113]="FirstFutureReservedWord",e[e.LastFutureReservedWord=121]="LastFutureReservedWord",e[e.FirstTypeNode=168]="FirstTypeNode",e[e.LastTypeNode=188]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=74]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=152]="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=74]="LastBinaryOperator",e[e.FirstStatement=225]="FirstStatement",e[e.LastStatement=241]="LastStatement",e[e.FirstNode=153]="FirstNode",e[e.FirstJSDocNode=294]="FirstJSDocNode",e[e.LastJSDocNode=323]="LastJSDocNode",e[e.FirstJSDocTagNode=306]="FirstJSDocTagNode",e[e.LastJSDocTagNode=323]="LastJSDocTagNode",e[e.FirstContextualKeyword=122]="FirstContextualKeyword",e[e.LastContextualKeyword=152]="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.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.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=3071]="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.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.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.Import=0]="Import",e[e.ReferenceFile=1]="ReferenceFile",e[e.TypeReferenceDirective=2]="TypeReferenceDirective"}(e.RefFileKind||(e.RefFileKind={})),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.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.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.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=132]="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=67238908]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=4194304]="InstantiablePrimitive",e[e.Instantiable=63176704]="Instantiable",e[e.StructuredOrInstantiable=66846720]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Substructure=66584576]="Substructure",e[e.Narrowable=133970943]="Narrowable",e[e.NotUnionOrUnit=67637251]="NotUnionOrUnit",e[e.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",e[e.IncludesMask=71041023]="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.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=1572864]="RequiresWidening",e[e.PropagatingFlags=3670016]="PropagatingFlags"}(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.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.IsInnerCallChain=4]="IsInnerCallChain",e[e.IsOuterCallChain=8]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=16]="IsUntypedSignatureInJSFile",e[e.PropagatingFlags=3]="PropagatingFlags",e[e.CallChainFlags=12]="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.HomomorphicMappedType=2]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=4]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=8]="MappedTypeConstraint",e[e.ContravariantConditional=16]="ContravariantConditional",e[e.ReturnType=32]="ReturnType",e[e.LiteralKeyof=64]="LiteralKeyof",e[e.NoConstraints=128]="NoConstraints",e[e.AlwaysStrict=256]="AlwaysStrict",e[e.MaxValue=512]="MaxValue",e[e.PriorityImpliesCombination=104]="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.Maybe=1]="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.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.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=538920960]="ArrowFunctionExcludes",e[e.FunctionExcludes=538925056]="FunctionExcludes",e[e.ConstructorExcludes=538923008]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=538923008]="MethodOrAccessorExcludes",e[e.PropertyExcludes=536875008]="PropertyExcludes",e[e.ClassExcludes=536905728]="ClassExcludes",e[e.ModuleExcludes=537991168]="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.Spread=1024]="Spread",e[e.SpreadArrays=2048]="SpreadArrays",e[e.Await=4096]="Await",e[e.AsyncGenerator=8192]="AsyncGenerator",e[e.AsyncDelegator=16384]="AsyncDelegator",e[e.AsyncValues=32768]="AsyncValues",e[e.ExportStar=65536]="ExportStar",e[e.MakeTemplateObject=131072]="MakeTemplateObject",e[e.ClassPrivateFieldGet=262144]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=524288]="ClassPrivateFieldSet",e[e.CreateBinding=1048576]="CreateBinding",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=1048576]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=32768]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=12288]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=53248]="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.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.TupleTypeElements=528]="TupleTypeElements",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}}}(d||(d={})),function(e){function r(e){for(var t=5381,r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}var n,i;function a(e){var t;return(t={})[i.Low]=e.Low,t[i.Medium]=e.Medium,t[i.High]=e.High,t}e.generateDjb2Hash=r,e.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"}(n=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),function(e){e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"}(i=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);var o={Low:32,Medium:64,High:256},c=a(o);function u(t){if(t.getEnvironmentVariable){var r=function(e,t){var r=n(e);if(r)return i("Low"),i("Medium"),i("High"),!0;return!1;function i(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",i);c=u("TSC_WATCH_POLLINGCHUNKSIZE",o)||c,e.unchangedPollThresholds=u("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",o)||e.unchangedPollThresholds}function n(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 u(e,t){var i=n(e);return(r||i)&&a(i?s(s({},t),i):t)}}function l(t){var r=[],n=[],a=u(i.Low),o=u(i.Medium),s=u(i.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=d(t,t.pollingInterval,t.pollIndex,c[t.pollingInterval]),t.length?v(t.pollingInterval):(e.Debug.assert(0===t.pollIndex),t.pollScheduled=!1)}function _(e){d(n,i.Low,0,n.length),l(e),!e.pollScheduled&&n.length&&v(i.Low)}function d(t,r,a,o){for(var s=t.length,c=a,u=0;u<o&&s>0;d(),s--){var l=t[a];if(l)if(l.isClosed)t[a]=void 0;else{u++;var _=p(l,h(l.fileName));l.isClosed?t[a]=void 0:_?(l.unchangedPolls=0,t!==n&&(t[a]=void 0,m(l))):l.unchangedPolls!==e.unchangedPollThresholds[r]?l.unchangedPolls++:t===n?(l.unchangedPolls=1,t[a]=void 0,g(l,i.Low)):r!==i.High&&(l.unchangedPolls++,t[a]=void 0,g(l,r===i.Low?i.Medium:i.High)),t[a]&&(c<a&&(t[c]=l,t[a]=void 0),c++)}}return a;function d(){++a===t.length&&(c<a&&(t.length=c),a=0,c=0)}}function f(e){switch(e){case i.Low:return a;case i.Medium:return o;case i.High:return s}}function g(e,t){f(t).push(e),y(t)}function m(e){n.push(e),y(i.Low)}function y(e){f(e).pollScheduled||v(e)}function v(e){f(e).pollScheduled=t.setTimeout(e===i.Low?_:l,e,f(e))}function h(r){return t.getModifiedTime(r)||e.missingFileModifiedTime}}function _(t,r){var a=e.createMultiMap(),o=e.createMap(),s=e.createGetCanonicalFileName(r);return function(r,c,u,l){var _=s(r);a.add(_,c);var d=e.getDirectoryPath(_)||".",p=o.get(d)||function(r,c,u){var l=t(r,1,(function(t,i){if(e.isString(i)){var o=e.getNormalizedAbsolutePath(i,r),c=o&&a.get(s(o));if(c)for(var u=0,l=c;u<l.length;u++){(0,l[u])(o,n.Changed)}}}),!1,i.Medium,u);return l.referenceCount=0,o.set(c,l),l}(e.getDirectoryPath(r)||".",d,l);return p.referenceCount++,{close:function(){1===p.referenceCount?(p.close(),o.delete(d)):p.referenceCount--,a.remove(_,c)}}}}function d(t,r){var n=e.createMap(),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 p(e,t){var r=e.mtime.getTime(),n=t.getTime();return r!==n&&(e.mtime=t,e.callback(e.fileName,f(r,n)),!0)}function f(e,t){return 0===e?n.Created:0===t?n.Deleted:n.Changed}function g(t){var r,n=e.createMap(),i=e.createMultiMap(),a=e.createMap(),o=e.getStringComparer(!t.useCaseSensitiveFileNames),s=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames);return function(e,r,n,i){return n?c(e,i,r):t.watchDirectory(e,r,n,i)};function c(o,c,p){var f=s(o),g=n.get(f);g?g.refCount++:(g={watcher:t.watchDirectory(o,(function(i){d(i)||((null===c||void 0===c?void 0:c.synchronousWatchDirectory)?(u(f,i),_(o,f,c)):function(i,o,c,_){var d=n.get(o);if(d&&t.directoryExists(i))return void function(e,n,i){a.has(n)||a.set(n,{dirName:e,options:i});r&&(t.clearTimeout(r),r=void 0);r=t.setTimeout(l,1e3)}(i,o,_);u(o,c),function t(r){if(!r)return;var i=r.childWatches;r.childWatches=e.emptyArray;for(var a=0,o=i;a<o.length;a++){var c=o[a];c.close(),t(n.get(s(c.dirName)))}}(d)}(o,f,i,c))}),!1,c),refCount:1,childWatches:e.emptyArray},n.set(f,g),_(o,f,c));var m=p&&{dirName:o,callback:p};return m&&i.add(f,m),{dirName:o,close:function(){var t=e.Debug.checkDefined(n.get(f));m&&i.remove(f,m),t.refCount--,t.refCount||(n.delete(f),e.closeFileWatcherOf(t),t.childWatches.forEach(e.closeFileWatcher))}}}function u(t,r){var n,a;e.isString(r)?n=r:a=r,i.forEach((function(r,i){a&&a.has(i)||(i===t||e.startsWith(t,i)&&t[i.length]===e.directorySeparator)&&(a?a.set(i,!0):r.forEach((function(e){return(0,e.callback)(n)})))}))}function l(){r=void 0,e.sysLog("sysLog:: onTimerToUpdateChildWatches:: "+a.size);for(var t=e.timestamp(),n=e.createMap();!r&&a.size;){var o=a.entries().next(),s=o.value,c=s[0],l=s[1],d=l.dirName,p=l.options,f=o.done;e.Debug.assert(!f),a.delete(c),u(c,n),_(d,c,p)}e.sysLog("sysLog:: invokingWatchers:: "+(e.timestamp()-t)+"ms:: "+a.size),i.forEach((function(e,t){n.has(t)&&e.forEach((function(e){return(0,e.callback)(e.dirName)}))}));var g=e.timestamp()-t;e.sysLog("sysLog:: Elapsed "+g+"ms:: onTimerToUpdateChildWatches:: "+a.size+" "+r)}function _(r,i,a){var s=n.get(i);s&&(s.childWatches=function(r,n,i){var a;return e.enumerateInsertsAndDeletes(t.directoryExists(r)?e.mapDefined(t.getAccessibleSortedChildDirectories(r),(function(n){var i=e.getNormalizedAbsolutePath(n,r);return d(i)||0!==o(i,e.normalizePath(t.realpath(i)))?void 0:i})):e.emptyArray,n,(function(e,t){return o(e,t.dirName)}),(function(e){s(c(e,i))}),e.closeFileWatcher,s),a||e.emptyArray;function s(e){(a||(a=[])).push(e)}}(r,s.childWatches,a))}function d(r){return e.some(e.ignoredPaths,(function(n){return function(r,n){return!!e.stringContains(r,n)||!t.useCaseSensitiveFileNames&&e.stringContains(s(r),n)}(r,n)}))}}function m(e){return function(t,r){return e(r===n.Changed?"change":"rename","")}}function y(t,r){return function(n,i){"rename"===n&&r(i?e.normalizePath(e.combinePaths(t,i)):t)}}function v(t){var r,a,o,s=t.pollingWatchFile,c=t.getModifiedTime,u=t.setTimeout,d=t.clearTimeout,p=t.fsWatch,f=t.fileExists,m=t.useCaseSensitiveFileNames,v=t.fsSupportsRecursiveFsWatch,h=t.directoryExists,b=t.getAccessibleSortedChildDirectories,x=t.realpath,D=t.tscWatchFile,S=t.useNonPollingWatchers,C=t.tscWatchDirectory;return{watchFile:function(t,r,o,c){c=function(t,r){if(t&&void 0!==t.watchFile)return t;switch(D){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,S);var u=e.Debug.checkDefined(c.watchFile);switch(u){case e.WatchFileKind.FixedPollingInterval:return s(t,r,i.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return s(t,r,o,void 0);case e.WatchFileKind.DynamicPriorityPolling:return T()(t,r,o,void 0);case e.WatchFileKind.UseFsEvents:return p(t,0,function(e,t,r){return function(i){t(e,"rename"===i?r(e)?n.Created:n.Deleted:n.Changed)}}(t,r,f),!1,o,e.getFallbackOptions(c));case e.WatchFileKind.UseFsEventsOnParentDirectory:return a||(a=_(p,m)),a(t,r,o,e.getFallbackOptions(c));default:e.Debug.assertNever(u)}},watchDirectory:function(t,r,n,a){if(v)return p(t,1,y(t,r),n,i.Medium,e.getFallbackOptions(a));o||(o=g({useCaseSensitiveFileNames:m,directoryExists:h,getAccessibleSortedChildDirectories:b,watchDirectory:E,realpath:x,setTimeout:u,clearTimeout:d}));return o(t,r,n,a)}};function T(){return r||(r=l({getModifiedTime:c,setTimeout:u}))}function k(e,t,r){var n=null===r||void 0===r?void 0:r.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===n?t:n}}function E(t,r,n,a){e.Debug.assert(!n),a=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?void 0:t.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:void 0!==r?r:void 0}}}(a);var o=e.Debug.checkDefined(a.watchDirectory);switch(o){case e.WatchDirectoryKind.FixedPollingInterval:return s(t,(function(){return r(t)}),i.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return T()(t,(function(){return r(t)}),i.Medium,void 0);case e.WatchDirectoryKind.UseFsEvents:return p(t,1,y(t,r),n,i.Medium,e.getFallbackOptions(a));default:e.Debug.assertNever(o)}}}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 t){var e=t.version;if(e){var r=e.indexOf(".");if(-1!==r)return parseInt(e.substring(1,r))}}}e.unchangedPollThresholds=a(o),e.setCustomPollingValues=u,e.createDynamicPriorityPollingWatchFile=l,e.createSingleFileWatcherPerName=d,e.onWatchedFileStat=p,e.getFileWatcherEventKind=f,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop,e.setSysLog=function(t){e.sysLog=t},e.createDirectoryWatcherSupportingRecursive=g,function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(e.FileSystemEntryKind||(e.FileSystemEntryKind={})),e.createFileWatcherCallback=m,e.createSystemWatchFunctions=v,e.patchWriteFileEnsuringDirectory=h,e.getNodeMajorVersion=b,e.sys=function(){var e;return"undefined"!==typeof t&&t.nextTick,e&&h(e),e}(),e.sys&&e.sys.getEnvironmentVariable&&(u(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)}(d||(d={})),function(e){e.directorySeparator="/";var t="\\",r="://",n=/\\/g;function i(e){return 47===e||92===e}function a(e){return d(e)>0}function s(e){return 0!==d(e)}function c(e){return/^\.\.?($|[\\/])/.test(e)}function u(t,r){return t.length>r.length&&e.endsWith(t,r)}function l(e){return e.length>0&&i(e.charCodeAt(e.length-1))}function _(e){return e>=97&&e<=122||e>=65&&e<=90}function d(n){if(!n)return 0;var i=n.charCodeAt(0);if(47===i||92===i){if(n.charCodeAt(1)!==i)return 1;var a=n.indexOf(47===i?e.directorySeparator:t,2);return a<0?n.length:a+1}if(_(i)&&58===n.charCodeAt(1)){var o=n.charCodeAt(2);if(47===o||92===o)return 3;if(2===n.length)return 2}var s=n.indexOf(r);if(-1!==s){var c=s+r.length,u=n.indexOf(e.directorySeparator,c);if(-1!==u){var l=n.slice(0,s),d=n.slice(c,u);if("file"===l&&(""===d||"localhost"===d)&&_(n.charCodeAt(u+1))){var p=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}(n,u+2);if(-1!==p){if(47===n.charCodeAt(p))return~(p+1);if(p===n.length)return~p}}return~(u+1)}return~n.length}return 0}function p(e){var t=d(e);return t<0?~t:t}function f(t){var r=p(t=b(t));return r===t.length?t:(t=E(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function g(t,r,n){if(p(t=b(t))===t.length)return"";var i=(t=E(t)).slice(Math.max(p(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?y(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function m(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 y(t,r,n){if(r)return function(e,t,r){if("string"===typeof t)return m(e,t,r)||"";for(var n=0,i=t;n<i.length;n++){var a=m(e,i[n],r);if(a)return a}return""}(E(t),r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var i=g(t),a=i.lastIndexOf(".");return a>=0?i.substring(a):""}function v(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(),o([n],i)}(t=D(r,t),p(t))}function h(t){return 0===t.length?"":(t[0]&&N(t[0]))+t.slice(1).join(e.directorySeparator)}function b(t){return t.replace(n,e.directorySeparator)}function x(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 D(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&(e=b(e));for(var n=0,i=t;n<i.length;n++){var a=i[n];a&&(a=b(a),e=e&&0===p(a)?N(e)+a:a)}return e}function S(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return k(e.some(r)?D.apply(void 0,o([t],r)):b(t))}function C(e,t){return x(v(e,t))}function T(e,t){return h(C(e,t))}function k(e){var t=h(x(v(e=b(e))));return t&&l(e)?N(t):t}function E(e){return l(e)?e.substr(0,e.length-1):e}function N(t){return l(t)?t:t+e.directorySeparator}function A(e){return s(e)||c(e)?e:"./"+e}e.isAnyDirectorySeparator=i,e.isUrl=function(e){return d(e)<0},e.isRootedDiskPath=a,e.isDiskPathRoot=function(e){var t=d(e);return t>0&&t===e.length},e.pathIsAbsolute=s,e.pathIsRelative=c,e.hasExtension=function(t){return e.stringContains(g(t),".")},e.fileExtensionIs=u,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r<n.length;r++){if(u(e,n[r]))return!0}return!1},e.hasTrailingDirectorySeparator=l,e.getRootLength=p,e.getDirectoryPath=f,e.getBaseFileName=g,e.getAnyExtensionFromPath=y,e.getPathComponents=v,e.getPathFromPathComponents=h,e.normalizeSlashes=b,e.reducePathComponents=x,e.combinePaths=D,e.resolvePath=S,e.getNormalizedPathComponents=C,e.getNormalizedAbsolutePath=T,e.normalizePath=k,e.getNormalizedAbsolutePathWithoutRoot=function(t,r){return function(t){return 0===t.length?"":t.slice(1).join(e.directorySeparator)}(C(t,r))},e.toPath=function(e,t,r){return r(a(e)?k(e):T(e,t))},e.normalizePathAndParts=function(t){var r=x(v(t=b(t))),n=r[0],i=r.slice(1);if(i.length){var a=n+i.join(e.directorySeparator);return{path:l(t)?N(a):a,parts:i}}return{path:n,parts:i}},e.removeTrailingDirectorySeparator=E,e.ensureTrailingDirectorySeparator=N,e.ensurePathIsNonModuleName=A,e.changeAnyExtension=function(t,r,n,i){var a=void 0!==n&&void 0!==i?y(t,n,i):y(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t};var F=/(^|\/)\.{0,2}($|\/)/;function P(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,p(t)),a=r.substring(0,p(r)),o=e.compareStringsCaseInsensitive(i,a);if(0!==o)return o;var s=t.substring(i.length),c=r.substring(a.length);if(!F.test(s)&&!F.test(c))return n(s,c);for(var u=x(v(t)),l=x(v(r)),_=Math.min(u.length,l.length),d=1;d<_;d++){var f=n(u[d],l[d]);if(0!==f)return f}return e.compareValues(u.length,l.length)}function w(t,r,n,i){var a,s=x(v(t)),c=x(v(r));for(a=0;a<s.length&&a<c.length;a++){var u=i(s[a]),l=i(c[a]);if(!(0===a?e.equateStringsCaseInsensitive:n)(u,l))break}if(0===a)return c;for(var _=c.slice(a),d=[];a<s.length;a++)d.push("..");return o([""],d,_)}function I(t,r,n){e.Debug.assert(p(t)>0===p(r)>0,"Paths must either both be absolute or both be relative");var i="function"===typeof n?n:e.identity;return h(w(t,r,"boolean"===typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function O(t,r,n,i,o){var s=w(S(n,t),S(n,r),e.equateStringsCaseSensitive,i),c=s[0];if(o&&a(c)){var u=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=u+c}return h(s)}e.comparePathsCaseSensitive=function(t,r){return P(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return P(t,r,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,r,n,i){return"string"===typeof n?(t=D(n,t),r=D(n,r)):"boolean"===typeof n&&(i=n),P(t,r,e.getStringComparer(i))},e.containsPath=function(t,r,n,i){if("string"===typeof n?(t=D(n,t),r=D(n,r)):"boolean"===typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var a=x(v(t)),o=x(v(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=w,e.getRelativePathFromDirectory=I,e.convertToRelativePath=function(e,t,r){return a(e)?O(t,e,t,r,!1):e},e.getRelativePathFromFile=function(e,t,r){return A(I(f(e),t,r))},e.getRelativePathToDirectoryOrUrl=O,e.forEachAncestorDirectory=function(e,t){for(;;){var r=t(e);if(void 0!==r)return r;var n=f(e);if(n===e)return;e=n}},e.isNodeModulesDirectory=function(t){return e.endsWith(t,"/node_modules")}}(d||(d={})),function(e){function t(e,t,r,n,i,a){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i,elidedInCompatabilityPyramid:a}}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_a_class_element:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access: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:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression: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."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement: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_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer: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."),All_files_must_be_modules_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"All_files_must_be_modules_when_the_isolatedModules_flag_is_provided_1208","All files must be modules when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode: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_rest_element_must_be_last_in_a_tuple_type:t(1256,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_tuple_type_1256","A rest element must be last in a tuple type."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation:t(1258,e.DiagnosticCategory.Error,"Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation_1258","Definite assignment assertions can only be used along with a type annotation."),Module_0_can_only_be_default_imported_using_the_1_flag: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."),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."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement: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_esnext_or_system:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'esnext' or 'system'."),A_label_is_not_allowed_here: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}'?"),Only_ECMAScript_imports_may_use_import_type:t(1370,e.DiagnosticCategory.Error,"Only_ECMAScript_imports_may_use_import_type_1370","Only ECMAScript imports may use 'import type'."),This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is__1371","This import is never used as a value and must use 'import type' because the '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."),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_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: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}'."),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_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_is_a_static_member_of_type_1:t(2576,e.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'"),Return_type_annotation_circularly_references_itself: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_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later: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 es2015 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_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_types_Slashnode_and_th_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_an_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery` and then add `jquery` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag: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."),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'?"),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'."),Module_0_has_no_exported_member_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0: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."),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_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}'."),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."),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."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character: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}'."),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."),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_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it: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."),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"),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."),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?"),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_install_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_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0: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."),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}'."),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."),JSX_fragment_is_not_supported_when_using_jsxFactory:t(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:t(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),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_destructuring:t(90009,e.DiagnosticCategory.Message,"Remove_destructuring_90009","Remove destructuring"),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}'"),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"),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}'"),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_block_body_braces:t(95112,e.DiagnosticCategory.Message,"Remove_block_body_braces_95112","Remove block body braces"),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_all_incorrect_body_block_braces:t(95115,e.DiagnosticCategory.Message,"Remove_all_incorrect_body_block_braces_95115","Remove all incorrect body block braces"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),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.")}}(d||(d={})),function(e){var t;function r(e){return e>=75}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||r(e)};var n=((t={abstract:122,any:125,as:123,asserts:124,bigint:151,boolean:128,break:77,case:78,catch:79,class:80,continue:82,const:81}).constructor=129,t.debugger=83,t.declare=130,t.default=84,t.delete=85,t.do=86,t.else=87,t.enum=88,t.export=89,t.extends=90,t.false=91,t.finally=92,t.for=93,t.from=149,t.function=94,t.get=131,t.if=95,t.implements=113,t.import=96,t.in=97,t.infer=132,t.instanceof=98,t.interface=114,t.is=133,t.keyof=134,t.let=115,t.module=135,t.namespace=136,t.never=137,t.new=99,t.null=100,t.number=140,t.object=141,t.package=116,t.private=117,t.protected=118,t.public=119,t.readonly=138,t.require=139,t.global=150,t.return=101,t.set=142,t.static=120,t.string=143,t.super=102,t.switch=103,t.symbol=144,t.this=104,t.throw=105,t.true=106,t.try=107,t.type=145,t.typeof=108,t.undefined=146,t.unique=147,t.unknown=148,t.var=109,t.void=110,t.while=111,t.with=112,t.yield=121,t.async=126,t.await=127,t.of=152,t),i=e.createMapFromTemplate(n),a=e.createMapFromTemplate(s(s({},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,"^=":74,"@":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],c=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],u=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],l=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],_=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],d=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],p=/^\s*\/\/\/?\s*@(ts-expect-error|ts-ignore)/,f=/^\s*(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function g(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 m(e,t){return g(e,t>=2?_:1===t?u:o)}e.isUnicodeIdentifierStart=m;var y=function(e){var t=[];return e.forEach((function(e,r){t[e]=r})),t}(a);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&&T(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 C(e)||T(e)}function C(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 T(e){return 10===e||13===e||8232===e||8233===e}function k(e){return e>=48&&e<=57}function E(e){return k(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=C,e.isLineBreak=T,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&&!T(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||T(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&&!T(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(T(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)){_&&T(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&&m(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 g(e,t>=2?d:1===t?l:c)}(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=K(n);i<e.length;i+=K(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,_,d,g,m,y,v,h,b=o,x=0;ce(b,c,u);var D={getStartPos:function(){return d},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)},isIdentifier:function(){return 75===m||m>112},isReservedWord:function(){return m>=77&&m<=112},isUnterminated:function(){return 0!==(4&v)},getCommentDirectives:function(){return h},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},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(T(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(;l<_;){if(45!==b.charCodeAt(l)){var e=l;if(y+=$(),l===e)break}else y+="-",l++}return m},scanJsxAttributeValue:oe,reScanJsxAttributeValue:function(){return l=g=d,oe()},reScanJsxToken:function(){return l=g=d,m=ae()},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},scanJsxToken:ae,scanJsDocToken:function(){if(d=g=l,v=0,l>=_)return m=1;var e=U(b,l);switch(l+=K(e),e){case 9:case 11:case 12:case 32:for(;l<_&&C(b.charCodeAt(l));)l++;return m=5;case 64:return m=59;case 10:case 13: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=X()+$(),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+=K(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:ce,setScriptTarget:function(e){t=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:ue,setInJSDocType:function(e){x+=e?1:-1},tryScan:function(e){return se(e,!1)},lookAhead:function(e){return se(e,!0)},scanRange:function(e,t,r){var n=_,i=l,a=d,o=g,s=m,c=y,u=v,p=h;ce(b,e,t);var f=r();return _=n,l=i,d=a,g=o,m=s,y=c,v=u,h=p,f}};return e.Debug.isDebugging&&Object.defineProperty(D,"__debugShowCurrentPositionInText",{get:function(){var e=D.getText();return e.slice(0,D.getStartPos())+"\u2551"+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(!k(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=V(e,!1,t);return r?parseInt(r,16):-1}function j(e,t){return V(e,!0,t)}function V(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(T(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<_&&k(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<_&&!E(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&&!E(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,X()}return v|=1024,Q(4);case 120:if(t){if(!E(b.charCodeAt(l)))return v|=2048,b.substring(r,l);if(!E(b.charCodeAt(l+1)))return l++,v|=2048,b.substring(r,l)}return Q(2);case 13:l<_&&10===b.charCodeAt(l)&&l++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function Q(t){var r=B(t,!1);return r>=0?String.fromCharCode(r):(A(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){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+=K(n);else{if(92!==n)break;if((n=Z())>=0&&z(n,t)){l+=3,v|=8,e+=X(),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<=11){var t=y.charCodeAt(0);if(t>=97&&t<=122){var r=i.get(y);if(void 0!==r)return m=r}}return m=75}function te(t){for(var r="",n=!1,i=!1;;){var a=b.charCodeAt(l);if(95!==a){if(n=!0,!k(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;d=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<_&&C(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)?(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 k(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<_&&!T(b.charCodeAt(l));)l++;if(h=ie(h,b.slice(g,l),p,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++,T(u)&&(c=l,v|=1)}if(h=ie(h,b.slice(c,l),f,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 l++,46!==b.charCodeAt(l)||k(b.charCodeAt(l+1))?63===b.charCodeAt(l)?(l++,m=60):m=57:(l++,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=74):(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)?(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=X()+$(),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=76;default:if(J(o,t)){for(l+=K(o);l<_&&z(o=U(b,l),t);)l+=K(o);return y=b.substring(g,l),92===o&&(y+=$()),m=ee()}if(C(o)){l+=K(o);continue}if(T(o)){v|=1,l+=K(o);continue}return A(e.Diagnostics.Invalid_character),l+=K(o),m=0}}}function ie(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 ae(){if(d=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<_&&(C(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++,T(t)&&0===r?r=-1:S(t)||(r=l),l++}var i=-1===n?l:n;return y=b.substring(d,i),-1===r?12:11}function oe(){switch(d=l,b.charCodeAt(l)){case 34:case 39:return y=W(!0),m=10;default:return ne()}}function se(e,t){var r=l,n=d,i=g,a=m,o=y,s=v,c=e();return c&&!t||(l=r,d=n,g=i,m=a,y=o,v=s),c}function ce(e,t,r){b=e||"",_=void 0===r?b.length:t+r,ue(t||0)}function ue(t){e.Debug.assert(t>=0),l=t,d=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 K(e){return e>=65536?2:1}var V=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 V(e)}e.utf16EncodeAsString=q}(d||(d={})),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!!Be(t)&&e.every(t.elements,l)}function l(e){return!!G(e)||u(e.name)}function _(e){for(var t=e.parent;B(t.parent);)t=t.parent.parent;return t.parent}function d(e,t){B(e)&&(e=_(e));var r=t(e);return 242===e.kind&&(e=e.parent),e&&243===e.kind&&(r|=t(e),e=e.parent),e&&225===e.kind&&(r|=t(e)),r}function p(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0}function f(e){return 0===(8&e.flags)}function g(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 m(e){return g(e.escapedText)}function y(e){var t=e.parent.parent;if(t){if(Qe(t))return v(t);switch(t.kind){case 225:if(t.declarationList&&t.declarationList.declarations[0])return v(t.declarationList.declarations[0]);break;case 226:var r=t.expression;switch(209===r.kind&&62===r.operatorToken.kind&&(r=r.left),r.kind){case 194:return r.name;case 195:var n=r.argumentExpression;if(F(n))return n}break;case 200:return v(t.expression);case 238:if(Qe(t.statement)||Ke(t.statement))return v(t.statement)}}}function v(e){var t=D(e);return t&&F(t)?t:void 0}function h(e){return e.name||y(e)}function b(e){return!!e.name}function x(t){switch(t.kind){case 75:return t;case 323:case 317:var r=t.name;if(153===r.kind)return r.right;break;case 196:case 209: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 322:return h(t);case 316:return y(t);case 259:var i=t.expression;return F(i)?i:void 0;case 195:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function D(t){if(void 0!==t)return x(t)||(q(t)||H(t)?function(t){if(!t.parent)return;if(ae(t.parent)||B(t.parent))return t.parent.name;if(W(t.parent)&&t===t.parent.right){if(F(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(Z(t.parent)&&F(t.parent.name))return t.parent.name}(t):void 0)}function S(t){if(t.name){if(F(t.name)){var r=t.name.escapedText;return E(t.parent).filter((function(e){return he(e)&&F(e.name)&&e.name.escapedText===r}))}var n=t.parent.parameters.indexOf(t);e.Debug.assert(n>-1,"Parameters should always be in their parents' parameter list");var i=E(t.parent).filter(he);if(n<i.length)return[i[n]]}return e.emptyArray}function C(e){return N(e,be)}function T(e){var t=N(e,xe);if(t&&t.typeExpression&&t.typeExpression.type)return t}function k(t){var r=N(t,xe);return!r&&w(t)&&(r=e.find(S(t),(function(e){return!!e.typeExpression}))),r&&r.typeExpression&&r.typeExpression.type}function E(t){var r=t.jsDocCache;if(void 0===r){var n=e.getJSDocCommentsAndTags(t);e.Debug.assert(n.length<2||n[0]!==n[1]),t.jsDocCache=r=e.flatMap(n,(function(e){return ue(e)?e.tags:e}))}return r}function N(t,r){return e.find(E(t),r)}function A(e,t){return E(e).filter(t)}function F(e){return 75===e.kind}function P(e){return 76===e.kind}function w(e){return 156===e.kind}function I(e){return 159===e.kind}function O(e){return 165===e.kind}function M(e){return 169===e.kind}function L(e){return 170===e.kind}function R(e){return 173===e.kind}function B(e){return 191===e.kind}function j(e){return 194===e.kind}function J(e){return 195===e.kind}function z(e){return 196===e.kind}function U(e){var t=e.kind;return!!(32&e.flags)&&(194===t||195===t||196===t||218===t)}function K(e){return U(e)&&!Q(e)&&!!e.questionDotToken}function V(t){return e.skipOuterExpressions(t,8)}function q(e){return 201===e.kind}function W(e){return 209===e.kind}function H(e){return 214===e.kind}function G(e){return 215===e.kind}function Q(e){return 218===e.kind}function X(e){return 223===e.kind}function Y(e){return 225===e.kind}function Z(e){return 242===e.kind}function $(e){return 243===e.kind}function ee(e){return 250===e.kind}function te(e){return 258===e.kind}function re(e){return 259===e.kind}function ne(e){return 260===e.kind}function ie(e){return 263===e.kind}function ae(e){return 281===e.kind}function oe(e){return 290===e.kind}function se(e){switch(e.kind){case 287:case 288:return!0;default:return!1}}function ce(e){return 300===e.kind}function ue(e){return 303===e.kind}function le(e){return 307===e.kind}function _e(e){return 308===e.kind}function de(e){return 310===e.kind}function pe(e){return 311===e.kind}function fe(e){return 312===e.kind}function ge(e){return 313===e.kind}function me(e){return 314===e.kind}function ye(e){return 316===e.kind}function ve(e){return 319===e.kind}function he(e){return 317===e.kind}function be(e){return 318===e.kind}function xe(e){return 320===e.kind}function De(e){return 321===e.kind}function Se(e){return 304===e.kind}function Ce(e){return 305===e.kind}function Te(e){return e>=153}function ke(e){return 8<=e&&e<=14}function Ee(e){return 14<=e&&e<=17}function Ne(e){return I(e)&&P(e.name)}function Ae(e){switch(e){case 122:case 126:case 81:case 130:case 84:case 89:case 119:case 117:case 118:case 138:case 120:return!0}return!1}function Fe(t){return!!(92&e.modifierToFlag(t))}function Pe(e){return e&&Ie(e.kind)}function we(e){switch(e){case 244:case 161:case 162:case 163:case 164:case 201:case 202:return!0;default:return!1}}function Ie(e){switch(e){case 160:case 165:case 305:case 166:case 167:case 170:case 300:case 171:return!0;default:return we(e)}}function Oe(e){var t=e.kind;return 162===t||159===t||161===t||163===t||164===t||167===t||222===t}function Me(e){return e&&(245===e.kind||214===e.kind)}function Le(e){var t=e.kind;return 166===t||165===t||158===t||160===t||167===t}function Re(e){var t=e.kind;return 281===t||282===t||283===t||161===t||163===t||164===t}function Be(e){if(e){var t=e.kind;return 190===t||189===t}return!1}function je(e){switch(e.kind){case 189:case 193:return!0}return!1}function Je(e){switch(e.kind){case 190:case 192:return!0}return!1}function ze(e){switch(e){case 194:case 195:case 197:case 196:case 266:case 267:case 270:case 198:case 192:case 200:case 193:case 214:case 201:case 75:case 13:case 8:case 9:case 10:case 14:case 211:case 91:case 100:case 104:case 106:case 102:case 218:case 219:case 96:return!0;default:return!1}}function Ue(e){switch(e){case 207:case 208:case 203:case 204:case 205:case 206:case 199:return!0;default:return ze(e)}}function Ke(e){return function(e){switch(e){case 210:case 212:case 202:case 209:case 213:case 217:case 215:case 327:case 326:return!0;default:return Ue(e)}}(V(e).kind)}function Ve(e){return 326===e.kind}function qe(e){return 325===e.kind}function We(e){return re(e)||ne(e)}function He(e){return 244===e||264===e||245===e||246===e||247===e||248===e||249===e||254===e||253===e||260===e||259===e||252===e}function Ge(e){return 234===e||233===e||241===e||228===e||226===e||224===e||231===e||232===e||230===e||227===e||238===e||235===e||237===e||239===e||240===e||225===e||229===e||236===e||325===e||329===e||328===e}function Qe(t){return 155===t.kind?t.parent&&321!==t.parent.kind||e.isInJSFile(t):202===(r=t.kind)||191===r||245===r||214===r||162===r||248===r||284===r||263===r||244===r||201===r||163===r||255===r||253===r||258===r||246===r||273===r||161===r||160===r||249===r||252===r||256===r||262===r||156===r||281===r||159===r||158===r||164===r||282===r||247===r||155===r||242===r||322===r||315===r||323===r;var r}function Xe(e){return e.kind>=306&&e.kind<=323}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&&155===e.kind)for(var t=e;t;t=t.parent)if(Pe(t)||Me(t)||246===t.kind)return t},e.isParameterPropertyDeclaration=function(t,r){return e.hasModifier(t,92)&&162===r.kind},e.isEmptyBindingPattern=u,e.isEmptyBindingElement=l,e.walkUpBindingElementsAndPatterns=_,e.getCombinedModifierFlags=function(t){return d(t,e.getModifierFlags)},e.getCombinedNodeFlags=function(e){return d(e,(function(e){return e.flags}))},e.validateLocaleAndSetLanguage=function(t,r,n){var i=/^([a-z]+)([_\-]([a-z]+))?$/.exec(t.toLowerCase());if(i){var a=i[1];o(a,i[3],n)||o(a,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 o(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(u){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(c))}catch(l){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=p,e.isParseTreeNode=f,e.getParseTreeNode=function(e,t){return void 0===e||f(e)?e:!f(e=p(e))||t&&!t(e)?void 0:e},e.escapeLeadingUnderscores=function(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=g,e.idText=m,e.symbolName=function(e){return e.valueDeclaration&&Ne(e.valueDeclaration)?m(e.valueDeclaration.name):g(e.escapedName)},e.nodeHasName=function t(r,n){return!(!b(r)||!F(r.name)||m(r.name)!==m(n))||!(!Y(r)||!e.some(r.declarationList.declarations,(function(e){return t(e,n)})))},e.getNameOfJSDocTypedef=h,e.isNamedDeclaration=b,e.getNonAssignedNameOfDeclaration=x,e.getNameOfDeclaration=D,e.getJSDocParameterTags=S,e.getJSDocTypeParameterTags=function(e){var t=e.name.escapedText;return E(e.parent).filter((function(e){return De(e)&&e.typeParameters.some((function(e){return e.name.escapedText===t}))}))},e.hasJSDocParameterTags=function(e){return!!N(e,he)},e.getJSDocAugmentsTag=function(e){return N(e,le)},e.getJSDocImplementsTags=function(e){return A(e,_e)},e.getJSDocClassTag=function(e){return N(e,de)},e.getJSDocPublicTag=function(e){return N(e,pe)},e.getJSDocPrivateTag=function(e){return N(e,fe)},e.getJSDocProtectedTag=function(e){return N(e,ge)},e.getJSDocReadonlyTag=function(e){return N(e,me)},e.getJSDocEnumTag=function(e){return N(e,ye)},e.getJSDocThisTag=function(e){return N(e,ve)},e.getJSDocReturnTag=C,e.getJSDocTemplateTag=function(e){return N(e,De)},e.getJSDocTypeTag=T,e.getJSDocType=k,e.getJSDocReturnType=function(t){var r=C(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=T(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(R(i)){var a=e.find(i.members,O);return a&&a.type}if(L(i)||ce(i))return i.type}},e.getJSDocTags=E,e.getAllJSDocTags=A,e.getAllJSDocTagsOfKind=function(e,t){return E(e).filter((function(e){return e.kind===t}))},e.getEffectiveTypeParameterDeclarations=function(t){if(Ce(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(303===t.parent.kind),e.flatMap(t.parent.tags,(function(e){return De(e)?e.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=k(t);if(n&&L(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(e){return e.constraint?e.constraint:De(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0},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=F,e.isQualifiedName=function(e){return 153===e.kind},e.isComputedPropertyName=function(e){return 154===e.kind},e.isPrivateIdentifier=P,e.isIdentifierOrPrivateIdentifier=function(e){return 75===e.kind||76===e.kind},e.isTypeParameterDeclaration=function(e){return 155===e.kind},e.isParameter=w,e.isDecorator=function(e){return 157===e.kind},e.isPropertySignature=function(e){return 158===e.kind},e.isPropertyDeclaration=I,e.isMethodSignature=function(e){return 160===e.kind},e.isMethodDeclaration=function(e){return 161===e.kind},e.isConstructorDeclaration=function(e){return 162===e.kind},e.isGetAccessorDeclaration=function(e){return 163===e.kind},e.isSetAccessorDeclaration=function(e){return 164===e.kind},e.isCallSignatureDeclaration=O,e.isConstructSignatureDeclaration=function(e){return 166===e.kind},e.isIndexSignatureDeclaration=function(e){return 167===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 164===e.kind||163===e.kind},e.isTypePredicateNode=function(e){return 168===e.kind},e.isTypeReferenceNode=M,e.isFunctionTypeNode=L,e.isConstructorTypeNode=function(e){return 171===e.kind},e.isTypeQueryNode=function(e){return 172===e.kind},e.isTypeLiteralNode=R,e.isArrayTypeNode=function(e){return 174===e.kind},e.isTupleTypeNode=function(e){return 175===e.kind},e.isUnionTypeNode=function(e){return 178===e.kind},e.isIntersectionTypeNode=function(e){return 179===e.kind},e.isConditionalTypeNode=function(e){return 180===e.kind},e.isInferTypeNode=function(e){return 181===e.kind},e.isParenthesizedTypeNode=function(e){return 182===e.kind},e.isThisTypeNode=function(e){return 183===e.kind},e.isTypeOperatorNode=function(e){return 184===e.kind},e.isIndexedAccessTypeNode=function(e){return 185===e.kind},e.isMappedTypeNode=function(e){return 186===e.kind},e.isLiteralTypeNode=function(e){return 187===e.kind},e.isImportTypeNode=function(e){return 188===e.kind},e.isObjectBindingPattern=function(e){return 189===e.kind},e.isArrayBindingPattern=function(e){return 190===e.kind},e.isBindingElement=B,e.isArrayLiteralExpression=function(e){return 192===e.kind},e.isObjectLiteralExpression=function(e){return 193===e.kind},e.isPropertyAccessExpression=j,e.isPropertyAccessChain=function(e){return j(e)&&!!(32&e.flags)},e.isElementAccessExpression=J,e.isElementAccessChain=function(e){return J(e)&&!!(32&e.flags)},e.isCallExpression=z,e.isCallChain=function(e){return z(e)&&!!(32&e.flags)},e.isOptionalChain=U,e.isOptionalChainRoot=K,e.isExpressionOfOptionalChainRoot=function(e){return K(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!U(e.parent)||K(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 209===e.kind&&60===e.operatorToken.kind},e.isNewExpression=function(e){return 197===e.kind},e.isTaggedTemplateExpression=function(e){return 198===e.kind},e.isTypeAssertion=function(e){return 199===e.kind},e.isConstTypeReference=function(e){return M(e)&&F(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments},e.isParenthesizedExpression=function(e){return 200===e.kind},e.skipPartiallyEmittedExpressions=V,e.isFunctionExpression=q,e.isArrowFunction=function(e){return 202===e.kind},e.isDeleteExpression=function(e){return 203===e.kind},e.isTypeOfExpression=function(e){return 204===e.kind},e.isVoidExpression=function(e){return 205===e.kind},e.isAwaitExpression=function(e){return 206===e.kind},e.isPrefixUnaryExpression=function(e){return 207===e.kind},e.isPostfixUnaryExpression=function(e){return 208===e.kind},e.isBinaryExpression=W,e.isConditionalExpression=function(e){return 210===e.kind},e.isTemplateExpression=function(e){return 211===e.kind},e.isYieldExpression=function(e){return 212===e.kind},e.isSpreadElement=function(e){return 213===e.kind},e.isClassExpression=H,e.isOmittedExpression=G,e.isExpressionWithTypeArguments=function(e){return 216===e.kind},e.isAsExpression=function(e){return 217===e.kind},e.isNonNullExpression=Q,e.isNonNullChain=function(e){return Q(e)&&!!(32&e.flags)},e.isMetaProperty=function(e){return 219===e.kind},e.isTemplateSpan=function(e){return 221===e.kind},e.isSemicolonClassElement=function(e){return 222===e.kind},e.isBlock=X,e.isVariableStatement=Y,e.isEmptyStatement=function(e){return 224===e.kind},e.isExpressionStatement=function(e){return 226===e.kind},e.isIfStatement=function(e){return 227===e.kind},e.isDoStatement=function(e){return 228===e.kind},e.isWhileStatement=function(e){return 229===e.kind},e.isForStatement=function(e){return 230===e.kind},e.isForInStatement=function(e){return 231===e.kind},e.isForOfStatement=function(e){return 232===e.kind},e.isContinueStatement=function(e){return 233===e.kind},e.isBreakStatement=function(e){return 234===e.kind},e.isBreakOrContinueStatement=function(e){return 234===e.kind||233===e.kind},e.isReturnStatement=function(e){return 235===e.kind},e.isWithStatement=function(e){return 236===e.kind},e.isSwitchStatement=function(e){return 237===e.kind},e.isLabeledStatement=function(e){return 238===e.kind},e.isThrowStatement=function(e){return 239===e.kind},e.isTryStatement=function(e){return 240===e.kind},e.isDebuggerStatement=function(e){return 241===e.kind},e.isVariableDeclaration=Z,e.isVariableDeclarationList=$,e.isFunctionDeclaration=function(e){return 244===e.kind},e.isClassDeclaration=function(e){return 245===e.kind},e.isInterfaceDeclaration=function(e){return 246===e.kind},e.isTypeAliasDeclaration=function(e){return 247===e.kind},e.isEnumDeclaration=function(e){return 248===e.kind},e.isModuleDeclaration=function(e){return 249===e.kind},e.isModuleBlock=ee,e.isCaseBlock=function(e){return 251===e.kind},e.isNamespaceExportDeclaration=function(e){return 252===e.kind},e.isImportEqualsDeclaration=function(e){return 253===e.kind},e.isImportDeclaration=function(e){return 254===e.kind},e.isImportClause=function(e){return 255===e.kind},e.isNamespaceImport=function(e){return 256===e.kind},e.isNamespaceExport=function(e){return 262===e.kind},e.isNamedExportBindings=function(e){return 262===e.kind||261===e.kind},e.isNamedImports=function(e){return 257===e.kind},e.isImportSpecifier=te,e.isExportAssignment=re,e.isExportDeclaration=ne,e.isNamedExports=function(e){return 261===e.kind},e.isExportSpecifier=ie,e.isMissingDeclaration=function(e){return 264===e.kind},e.isExternalModuleReference=function(e){return 265===e.kind},e.isJsxElement=function(e){return 266===e.kind},e.isJsxSelfClosingElement=function(e){return 267===e.kind},e.isJsxOpeningElement=function(e){return 268===e.kind},e.isJsxClosingElement=function(e){return 269===e.kind},e.isJsxFragment=function(e){return 270===e.kind},e.isJsxOpeningFragment=function(e){return 271===e.kind},e.isJsxClosingFragment=function(e){return 272===e.kind},e.isJsxAttribute=function(e){return 273===e.kind},e.isJsxAttributes=function(e){return 274===e.kind},e.isJsxSpreadAttribute=function(e){return 275===e.kind},e.isJsxExpression=function(e){return 276===e.kind},e.isCaseClause=function(e){return 277===e.kind},e.isDefaultClause=function(e){return 278===e.kind},e.isHeritageClause=function(e){return 279===e.kind},e.isCatchClause=function(e){return 280===e.kind},e.isPropertyAssignment=ae,e.isShorthandPropertyAssignment=function(e){return 282===e.kind},e.isSpreadAssignment=function(e){return 283===e.kind},e.isEnumMember=function(e){return 284===e.kind},e.isSourceFile=oe,e.isBundle=function(e){return 291===e.kind},e.isUnparsedSource=function(e){return 292===e.kind},e.isUnparsedPrepend=function(e){return 286===e.kind},e.isUnparsedTextLike=se,e.isUnparsedNode=function(e){return se(e)||285===e.kind||289===e.kind},e.isJSDocTypeExpression=function(e){return 294===e.kind},e.isJSDocAllType=function(e){return 295===e.kind},e.isJSDocUnknownType=function(e){return 296===e.kind},e.isJSDocNullableType=function(e){return 297===e.kind},e.isJSDocNonNullableType=function(e){return 298===e.kind},e.isJSDocOptionalType=function(e){return 299===e.kind},e.isJSDocFunctionType=ce,e.isJSDocVariadicType=function(e){return 301===e.kind},e.isJSDoc=ue,e.isJSDocAuthorTag=function(e){return 309===e.kind},e.isJSDocAugmentsTag=le,e.isJSDocImplementsTag=_e,e.isJSDocClassTag=de,e.isJSDocPublicTag=pe,e.isJSDocPrivateTag=fe,e.isJSDocProtectedTag=ge,e.isJSDocReadonlyTag=me,e.isJSDocEnumTag=ye,e.isJSDocThisTag=ve,e.isJSDocParameterTag=he,e.isJSDocReturnTag=be,e.isJSDocTypeTag=xe,e.isJSDocTemplateTag=De,e.isJSDocTypedefTag=function(e){return 322===e.kind},e.isJSDocPropertyTag=function(e){return 323===e.kind},e.isJSDocPropertyLikeTag=function(e){return 323===e.kind||317===e.kind},e.isJSDocTypeLiteral=Se,e.isJSDocCallbackTag=function(e){return 315===e.kind},e.isJSDocSignature=Ce,e.isSyntaxList=function(e){return 324===e.kind},e.isNode=function(e){return Te(e.kind)},e.isNodeKind=Te,e.isToken=function(e){return e.kind>=0&&e.kind<=152},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=ke,e.isLiteralExpression=function(e){return ke(e.kind)},e.isTemplateLiteralKind=Ee,e.isTemplateLiteralToken=function(e){return Ee(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(e){return te(e)||ie(e)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 258:case 263:return e.parent.parent.isTypeOnly;case 256:return e.parent.isTypeOnly;case 255:return e.isTypeOnly;default:return!1}},e.isStringTextContainingNode=function(e){return 10===e.kind||Ee(e.kind)},e.isGeneratedIdentifier=function(e){return F(e)&&(7&e.autoGenerateFlags)>0},e.isPrivateIdentifierPropertyDeclaration=Ne,e.isPrivateIdentifierPropertyAccessExpression=function(e){return j(e)&&P(e.name)},e.isModifierKind=Ae,e.isParameterPropertyModifier=Fe,e.isClassMemberModifier=function(e){return Fe(e)||120===e},e.isModifier=function(e){return Ae(e.kind)},e.isEntityName=function(e){var t=e.kind;return 153===t||75===t},e.isPropertyName=function(e){var t=e.kind;return 75===t||76===t||10===t||8===t||154===t},e.isBindingName=function(e){var t=e.kind;return 75===t||189===t||190===t},e.isFunctionLike=Pe,e.isFunctionLikeDeclaration=function(e){return e&&we(e.kind)},e.isFunctionLikeKind=Ie,e.isFunctionOrModuleBlock=function(e){return oe(e)||ee(e)||X(e)&&Pe(e.parent)},e.isClassElement=Oe,e.isClassLike=Me,e.isAccessor=function(e){return e&&(163===e.kind||164===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 161:case 163:case 164:return!0;default:return!1}},e.isTypeElement=Le,e.isClassOrTypeElement=function(e){return Le(e)||Oe(e)},e.isObjectLiteralElementLike=Re,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 170:case 171:return!0}return!1},e.isBindingPattern=Be,e.isAssignmentPattern=function(e){var t=e.kind;return 192===t||193===t},e.isArrayBindingElement=function(e){var t=e.kind;return 191===t||215===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 242:case 156:case 191:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return je(e)||Je(e)},e.isObjectBindingOrAssignmentPattern=je,e.isArrayBindingOrAssignmentPattern=Je,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 194===t||153===t||188===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 194===t||153===t},e.isCallLikeExpression=function(e){switch(e.kind){case 268:case 267:case 196:case 197:case 198:case 157:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 196===e.kind||197===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 211===t||14===t},e.isLeftHandSideExpression=function(e){return ze(V(e).kind)},e.isUnaryExpression=function(e){return Ue(V(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 208:return!0;case 207:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=Ke,e.isAssertionExpression=function(e){var t=e.kind;return 199===t||217===t},e.isPartiallyEmittedExpression=Ve,e.isNotEmittedStatement=qe,e.isSyntheticReference=function(e){return 330===e.kind},e.isNotEmittedOrPartiallyEmittedNode=function(e){return qe(e)||Ve(e)},e.isIterationStatement=function e(t,r){switch(t.kind){case 230:case 231:case 232:case 228:case 229:return!0;case 238:return r&&e(t.statement,r)}return!1},e.isScopeMarker=We,e.hasScopeMarker=function(t){return e.some(t,We)},e.needsScopeMarker=function(t){return!e.isAnyImportOrReExport(t)&&!re(t)&&!e.hasModifier(t,1)&&!e.isAmbientModule(t)},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||re(t)||e.hasModifier(t,1)},e.isForInOrOfStatement=function(e){return 231===e.kind||232===e.kind},e.isConciseBody=function(e){return X(e)||Ke(e)},e.isFunctionBody=function(e){return X(e)},e.isForInitializer=function(e){return $(e)||Ke(e)},e.isModuleBody=function(e){var t=e.kind;return 250===t||249===t||75===t},e.isNamespaceBody=function(e){var t=e.kind;return 250===t||249===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 75===t||249===t},e.isNamedImportBindings=function(e){var t=e.kind;return 257===t||256===t},e.isModuleOrEnumDeclaration=function(e){return 249===e.kind||248===e.kind},e.isDeclaration=Qe,e.isDeclarationStatement=function(e){return He(e.kind)},e.isStatementButNotDeclaration=function(e){return Ge(e.kind)},e.isStatement=function(t){var r=t.kind;return Ge(r)||He(r)||function(t){if(223!==t.kind)return!1;if(void 0!==t.parent&&(240===t.parent.kind||280===t.parent.kind))return!1;return!e.isFunctionBlock(t)}(t)},e.isModuleReference=function(e){var t=e.kind;return 265===t||153===t||75===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 104===t||75===t||194===t},e.isJsxChild=function(e){var t=e.kind;return 266===t||276===t||267===t||11===t||270===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 273===t||275===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||276===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 268===t||267===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 277===t||278===t},e.isJSDocNode=function(e){return e.kind>=294&&e.kind<=323},e.isJSDocCommentContainingNode=function(e){return 303===e.kind||302===e.kind||Xe(e)||Se(e)||Ce(e)},e.isJSDocTag=Xe,e.isSetAccessor=function(e){return 164===e.kind},e.isGetAccessor=function(e){return 163===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 242:case 156:case 191:case 158:case 159:case 281:case 284:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 273===e.kind||275===e.kind||Re(e)},e.isTypeReferenceType=function(e){return 169===e.kind||216===e.kind};var Ye=1073741823;e.guessIndentation=function(t){for(var r=Ye,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===Ye?void 0:r},e.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind}}(d||(d={})),function(e){e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,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=e.createMap();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=function(){var t="",r=function(e){return t+=e};return{getText:function(){return t},write:r,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 r(t,r){return e.moduleResolutionOptionDeclarations.some((function(e){return!jn(rn(t,e),rn(r,e))}))}function n(e,t){for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}}function i(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}}function a(e,t){e.forEach((function(e,r){t.set(r,e)}))}function c(e){return e.end-e.pos}function u(t){return function(t){if(!(524288&t.flags)){(0!==(65536&t.flags)||e.forEachChild(t,u))&&(t.flags|=262144),t.flags|=524288}}(t),0!==(262144&t.flags)}function l(e){for(;e&&290!==e.kind;)e=e.parent;return e}function _(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 d(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function p(e){return!d(e)}function f(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,o([n,0],t)),e}function g(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 m(e){return U(e)||!!(1048576&S(e))}function y(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function v(t,r,n){return d(t)?t.pos:e.isJSDocNode(t)?e.skipTrivia((r||l(t)).text,t.pos,!1,!0):n&&e.hasJSDocNodes(t)?v(t.jsDoc[0],r):324===t.kind&&t._children.length>0?v(t._children[0],r,n):e.skipTrivia((r||l(t)).text,t.pos)}function h(e,t,r){return void 0===r&&(r=!1),b(e.text,t,r)}function b(t,r,i){if(void 0===i&&(i=!1),d(r))return"";var a=t.substring(i?r.pos:e.skipTrivia(t,r.pos),r.end);return function(t){return!!n(t,e.isJSDocTypeExpression)}(r)&&(a=a.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),a}function x(e,t){return void 0===t&&(t=!1),h(l(e),e,t)}function D(e){return e.pos}function S(e){var t=e.emitNode;return t&&t.flags||0}function C(e){var t=mt(e);return 242===t.kind&&280===t.parent.kind}function T(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||E(t))}function k(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function E(e){return!!(1024&e.flags)}function N(e){return T(e)&&A(e)}function A(t){switch(t.parent.kind){case 290:return e.isExternalModule(t.parent);case 250:return T(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function F(t,r){switch(t.kind){case 290:case 251:case 280:case 249:case 230:case 231:case 232:case 162:case 161:case 163:case 164:case 244:case 201:case 202:return!0;case 223:return!e.isFunctionLike(r)}return!1}function P(t){switch(t.kind){case 165:case 166:case 160:case 167:case 170:case 171:case 300:case 245:case 214:case 246:case 247:case 321:case 244:case 161:case 162:case 163:case 164:case 201:case 202:return!0;default:return e.assertType(t),!1}}function w(e){switch(e.kind){case 254:case 253:return!0;default:return!1}}function I(e){return e&&0!==c(e)?x(e):"(Missing)"}function O(t){switch(t.kind){case 75:case 76:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 154:return ot(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 M(e,t,r,n,i,a,o){var s=R(e,t);return Hr(e,s.start,s.length,r,n,i,a,o)}function L(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 R(t,r){var n=r;switch(r.kind){case 290:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):L(t,i);case 242:case 191:case 245:case 214:case 246:case 249:case 248:case 284:case 244:case 201:case 161:case 163:case 164:case 247:case 159:case 158:n=r.name;break;case 202:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&223===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,_(i,t)-n+1)}return e.createTextSpanFromBounds(n,r.end)}(t,r);case 277:case 278: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 L(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=d(n),c=s||e.isJsxText(r)?n.pos:e.skipTrivia(t.text,n.pos);return s?(e.Debug.assert(c===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,n.end)}function B(e){return 6===e.scriptKind}function j(t){return!!(2&e.getCombinedNodeFlags(t))}function J(e){return 196===e.kind&&96===e.expression.kind}function z(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function U(e){return 226===e.kind&&10===e.expression.kind}function K(e){return!!(1048576&S(e))}function V(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||r(e,t)},e.optionsHaveModuleResolutionChanges=r,e.findAncestor=n,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=i,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=a,e.arrayToSet=function(t,r){return e.arrayToMap(t,r||function(e){return e},e.returnTrue)},e.cloneMap=function(t){var r=e.createMap();return a(t,r),r},e.usingSingleLineStringWriter=function(e){var r=t.getText();try{return e(t),t.getText()}finally{t.clear(),t.writeKeyword(r)}},e.getFullWidth=c,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,r,n){t.resolvedModules||(t.resolvedModules=e.createMap()),t.resolvedModules.set(r,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createMap()),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=u,e.getSourceFileOfNode=l,e.isStatementWithLocals=function(e){switch(e.kind){case 223:case 251:case 230:case 231:case 232: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=l(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=_,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)},e.nodeIsMissing=d,e.nodeIsPresent=p,e.insertStatementsAfterStandardPrologue=function(e,t){return f(e,t,U)},e.insertStatementsAfterCustomPrologue=function(e,t){return f(e,t,m)},e.insertStatementAfterStandardPrologue=function(e,t){return g(e,t,U)},e.insertStatementAfterCustomPrologue=function(e,t){return g(e,t,m)},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(q)||i.match(W))}return!1},e.isPinnedComment=y,e.createCommentDirectivesMap=function(t,r){var n=e.createMapFromEntries(r.map((function(r){return[""+e.getLineAndCharacterOfPosition(t,r.range.end).line,r]}))),i=e.createMap();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=v,e.getNonDecoratorTokenPosOfNode=function(t,r){return d(t)||!t.decorators?v(t,r):e.skipTrivia((r||l(t)).text,t.decorators.end)},e.getSourceTextOfNodeFromSourceFile=h,e.getTextOfNodeFromSourceText=b,e.getTextOfNode=x,e.indexOfNode=function(t,r){return e.binarySearch(t,r,D,e.compareValues)},e.getEmitFlags=S,e.getLiteralText=function(t,r,n,i){if(!yt(t)&&t.parent&&!(e.isNumericLiteral(t)&&512&t.numericLiteralFlags||e.isBigIntLiteral(t)))return h(r,t);switch(t.kind){case 10:var a=i?Lt:n||16777216&S(t)?At:Pt;return t.singleQuote?"'"+a(t.text,39)+"'":'"'+a(t.text,34)+'"';case 14:case 15:case 16:case 17:a=n||16777216&S(t)?At:Pt;var o=t.rawText||a(t.text,96).replace(Dt,"\\${");switch(t.kind){case 14:return"`"+o+"`";case 15:return"`"+o+"${";case 16:return"}"+o+"${";case 17:return"}"+o+"`"}break;case 8:case 9:case 13:return t.text}return e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")},e.getTextOfConstantValue=function(t){return e.isString(t)?'"'+Pt(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))||C(t)},e.isCatchClauseVariableDeclarationOrBindingElement=C,e.isAmbientModule=T,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=k,e.isShorthandAmbientModuleSymbol=function(e){return(t=e.valueDeclaration)&&249===t.kind&&!t.body;var t},e.isBlockScopedContainerTopLevel=function(t){return 290===t.kind||249===t.kind||e.isFunctionLike(t)},e.isGlobalScopeAugmentation=E,e.isExternalModuleAugmentation=N,e.isModuleAugmentationExternal=A,e.getNonAugmentationDeclaration=function(t){return e.find(t.declarations,(function(t){return!N(t)&&!(e.isModuleDeclaration(t)&&E(t))}))},e.isEffectiveExternalModule=function(t,r){return e.isExternalModule(t)||r.isolatedModules||$r(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&&(!!tn(r,"alwaysStrict")||(!!e.startsWithUseStrict(t.statements)||!(!e.isExternalModule(t)&&!r.isolatedModules)&&($r(r)>=e.ModuleKind.ES2015||!r.noImplicitUseStrict)))},e.isBlockScope=F,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 315:case 322:case 305:return!0;default:return e.assertType(t),P(t)}},e.isDeclarationWithTypeParameterChildren=P,e.isAnyImportSyntax=w,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 254:case 253:case 225:case 245:case 244:case 249:case 247:case 246:case 248:return!0;default:return!1}},e.isAnyImportOrReExport=function(t){return w(t)||e.isExportDeclaration(t)},e.getEnclosingBlockScopeContainer=function(e){return n(e.parent,(function(e){return F(e,e.parent)}))},e.declarationNameToString=I,e.getNameFromIndexInfo=function(e){return e.declaration?I(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 154===e.kind&&!ot(e.expression)},e.getTextOfPropertyName=O,e.entityNameToString=function t(r){switch(r.kind){case 104:return"this";case 76:case 75:return 0===c(r)?e.idText(r):x(r);case 153:return t(r.left)+"."+t(r.right);case 194:return e.isIdentifier(r.name)||e.isPrivateIdentifier(r.name)?t(r.expression)+"."+t(r.name):e.Debug.assertNever(r.name);default:return e.Debug.assertNever(r)}},e.createDiagnosticForNode=function(e,t,r,n,i,a){return M(l(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 Hr(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=M,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=l(e),i=R(n,e);return{file:n,start:i.start,length:i.length,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=L,e.getErrorSpanForNode=R,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=B,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 196===e.kind&&102===e.expression.kind},e.isImportCall=J,e.isImportMeta=function(t){return e.isMetaProperty(t)&&96===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=z,e.isPrologueDirective=U,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,V)},e.getLeadingCommentRangesOfNode=function(t,r){return 11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,r){var n=156===t.kind||155===t.kind||201===t.kind||202===t.kind||200===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 q=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var W=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function H(t){if(168<=t.kind&&t.kind<=188)return!0;switch(t.kind){case 125:case 148:case 140:case 151:case 143:case 128:case 144:case 141:case 146:case 137:return!0;case 110:return 205!==t.parent.kind;case 216:return!gr(t);case 155:return 186===t.parent.kind||181===t.parent.kind;case 75:153===t.parent.kind&&t.parent.right===t?t=t.parent:194===t.parent.kind&&t.parent.name===t&&(t=t.parent),e.Debug.assert(75===t.kind||153===t.kind||194===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 153:case 194:case 104:var r=t.parent;if(172===r.kind)return!1;if(188===r.kind)return!r.isTypeOf;if(168<=r.kind&&r.kind<=188)return!0;switch(r.kind){case 216:return!gr(r);case 155:case 321:return t===r.constraint;case 159:case 158:case 156:case 242:return t===r.type;case 244:case 201:case 202:case 162:case 161:case 160:case 163:case 164:return t===r.type;case 165:case 166:case 167:case 199:return t===r.type;case 196:case 197:return e.contains(r.typeArguments,t);case 198:return!1}}return!1}function G(e){if(e)switch(e.kind){case 191:case 284:case 156:case 281:case 159:case 158:case 282:case 242:return!0}return!1}function Q(e){return 243===e.parent.kind&&225===e.parent.parent.kind}function X(e,t,r){return e.properties.filter((function(e){if(281===e.kind){var n=O(e.name);return t===n||!!r&&r===n}return!1}))}function Y(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function Z(t,r){var n=Y(t);return n?X(n,r):e.emptyArray}function $(t,r){for(e.Debug.assert(290!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 154:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 157:156===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 202:if(!r)continue;case 244:case 201:case 249:case 159:case 158:case 161:case 160:case 162:case 163:case 164:case 165:case 166:case 167:case 248:case 290:return t}}}function ee(e){var t=e.kind;return(194===t||195===t)&&102===e.expression.kind}function te(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 245:return!0;case 159:return 245===r.kind;case 163:case 164:case 161:return void 0!==t.body&&245===r.kind;case 156:return void 0!==r.body&&(162===r.kind||161===r.kind||164===r.kind)&&245===n.kind}return!1}function re(e,t,r){return void 0!==e.decorators&&te(e,t,r)}function ne(e,t,r){return re(e,t,r)||ie(e,t)}function ie(t,r){switch(t.kind){case 245:return e.some(t.members,(function(e){return ne(e,t,r)}));case 161:case 164:return e.some(t.parameters,(function(e){return re(e,t,r)}));default:return!1}}function ae(e){var t=e.parent;return(268===t.kind||267===t.kind||269===t.kind)&&t.tagName===e}function oe(e){switch(e.kind){case 102:case 100:case 106:case 91:case 13:case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 217:case 199:case 218:case 200:case 201:case 214:case 202:case 205:case 203:case 204:case 207:case 208:case 209:case 210:case 213:case 211:case 215:case 266:case 267:case 270:case 212:case 206:case 219:return!0;case 153:for(;153===e.parent.kind;)e=e.parent;return 172===e.parent.kind||ae(e);case 75:if(172===e.parent.kind||ae(e))return!0;case 8:case 9:case 10:case 14:case 104:return se(e);default:return!1}}function se(e){var t=e.parent;switch(t.kind){case 242:case 156:case 159:case 158:case 284:case 281:case 191:return t.initializer===e;case 226:case 227:case 228:case 229:case 235:case 236:case 237:case 277:case 239:return t.expression===e;case 230:var r=t;return r.initializer===e&&243!==r.initializer.kind||r.condition===e||r.incrementor===e;case 231:case 232:var n=t;return n.initializer===e&&243!==n.initializer.kind||n.expression===e;case 199:case 217:case 221:case 154:return e===t.expression;case 157:case 276:case 275:case 283:return!0;case 216:return t.expression===e&&gr(t);case 282:return t.objectAssignmentInitializer===e;default:return oe(t)}}function ce(e){for(;153===e.kind||75===e.kind;)e=e.parent;return 172===e.kind}function ue(e){return 253===e.kind&&265===e.moduleReference.kind}function le(e){return _e(e)}function _e(e){return!!e&&!!(131072&e.flags)}function de(t,r){if(196!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(75!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function pe(t,r){return e.isVariableDeclaration(t)&&!!t.initializer&&de(t.initializer,r)}function fe(t){return e.isBinaryExpression(t)||Rr(t)||e.isIdentifier(t)||e.isCallExpression(t)}function ge(t){return _e(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&mr(t.name)&&ye(t.name,t.initializer.left)?t.initializer.right:t.initializer}function me(t,r){if(e.isCallExpression(t)){var n=Ge(t.expression);return 201===n.kind||202===n.kind?t:void 0}return 201===t.kind||214===t.kind||202===t.kind?t:e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function ye(t,r){if(dt(t)&&dt(r))return pt(t)===pt(t);if(e.isIdentifier(t)&&Ce(r)&&(104===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))){var n=Ae(r);return e.isPrivateIdentifier(n)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),ye(t,n)}return!(!Ce(t)||!Ce(r))&&(Pe(t)===Pe(r)&&ye(t.expression,r.expression))}function ve(e){for(;fr(e,!0);)e=e.right;return e}function he(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function be(t){return e.isIdentifier(t)&&"module"===t.escapedText}function xe(t){return(e.isPropertyAccessExpression(t)||Te(t))&&be(t.expression)&&"exports"===Pe(t)}function De(t){var r=function(t){if(e.isCallExpression(t)){if(!Se(t))return 0;var r=t.arguments[0];return he(r)||xe(r)?8:ke(r)&&"prototype"===Pe(r)?9:7}if(62!==t.operatorToken.kind||!Rr(t.left))return 0;if(Ne(t.left.expression,!0)&&"prototype"===Pe(t.left)&&e.isObjectLiteralExpression(Ie(t)))return 6;return we(t.left)}(t);return 5===r||_e(t)?r:0}function Se(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)&&ot(t.arguments[1])&&Ne(t.arguments[0],!0)}function Ce(t){return e.isPropertyAccessExpression(t)||Te(t)}function Te(t){return e.isElementAccessExpression(t)&&(ot(t.argumentExpression)||lt(t.argumentExpression))}function ke(t,r){return e.isPropertyAccessExpression(t)&&(!r&&104===t.expression.kind||e.isIdentifier(t.name)&&Ne(t.expression,!0))||Ee(t,r)}function Ee(e,t){return Te(e)&&(!t&&104===e.expression.kind||mr(e.expression)||ke(e.expression,!0))}function Ne(e,t){return mr(e)||ke(e,t)}function Ae(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function Fe(t){if(e.isPropertyAccessExpression(t))return t.name;var r=Ge(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function Pe(t){var r=Fe(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)&<(t.argumentExpression))return ft(e.idText(t.argumentExpression.name))}function we(t){if(104===t.expression.kind)return 4;if(xe(t))return 2;if(Ne(t.expression,!0)){if(vr(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"===Pe(r))&&ke(t))return 1;if(Ne(t,!0)||e.isElementAccessExpression(t)&&ut(t))return 5}return 0}function Ie(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function Oe(t){switch(t.parent.kind){case 254:case 260:return t.parent;case 265:return t.parent.parent;case 196:return J(t.parent)||de(t.parent,!1)?t.parent:void 0;case 187:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function Me(e){return 322===e.kind||315===e.kind||316===e.kind}function Le(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==De(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 Re(e){switch(e.kind){case 225:var t=Be(e);return t&&t.initializer;case 159:case 281:return e.initializer}}function Be(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function je(t){return e.isModuleDeclaration(t)&&t.body&&249===t.body.kind?t.body:void 0}function Je(t){var r=t.parent;return 281===r.kind||259===r.kind||159===r.kind||226===r.kind&&194===t.kind||je(r)||e.isBinaryExpression(t)&&62===t.operatorToken.kind?r:r.parent&&(Be(r.parent)===t||e.isBinaryExpression(r)&&62===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(Be(r.parent.parent)||Re(r.parent.parent)===t||Le(r.parent.parent))?r.parent.parent:void 0}function ze(t){var r=Ue(t);return r&&e.isFunctionLike(r)?r:void 0}function Ue(t){var r=Ke(t);return Le(r)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&62===t.expression.operatorToken.kind?ve(t.expression):void 0}(r)||Re(r)||Be(r)||je(r)||r}function Ke(t){return e.Debug.checkDefined(n(t.parent,e.isJSDoc)).parent}function Ve(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&301===r.kind}function qe(e){for(var t=e.parent;;){switch(t.kind){case 209:var r=t.operatorToken.kind;return _r(r)&&t.left===e?62===r?1:2:0;case 207:case 208:var n=t.operator;return 45===n||46===n?2:0;case 231:case 232:return t.initializer===e?1:0;case 200:case 192:case 213:case 218:e=t;break;case 282:if(t.name!==e)return 0;e=t.parent;break;case 281:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function We(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function He(e){return We(e,200)}function Ge(t){return e.skipOuterExpressions(t,1)}function Qe(t){return mr(t)||e.isClassExpression(t)}function Xe(e){return Qe(Ye(e))}function Ye(t){return e.isExportAssignment(t)?t.expression:t.right}function Ze(t){var r=$e(t);if(r&&_e(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function $e(e){var t=rt(e.heritageClauses,90);return t&&t.types.length>0?t.types[0]:void 0}function et(t){if(_e(t))return e.getJSDocImplementsTags(t).map((function(e){return e.class}));var r=rt(t.heritageClauses,113);return null===r||void 0===r?void 0:r.types}function tt(e){var t=rt(e.heritageClauses,90);return t?t.types:void 0}function rt(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 nt(e){return 77<=e&&e<=152}function it(e){return 122<=e&&e<=152}function at(e){return nt(e)&&!it(e)}function ot(t){return e.isStringLiteralLike(t)||e.isNumericLiteral(t)}function st(t){return e.isPrefixUnaryExpression(t)&&(39===t.operator||40===t.operator)&&e.isNumericLiteral(t.operand)}function ct(t){var r=e.getNameOfDeclaration(t);return!!r&&ut(r)}function ut(t){if(154!==t.kind&&195!==t.kind)return!1;var r=e.isElementAccessExpression(t)?Ge(t.argumentExpression):t.expression;return!ot(r)&&!st(r)&&!lt(r)}function lt(t){return e.isPropertyAccessExpression(t)&>(t.expression)}function _t(t){switch(t.kind){case 75:case 76:return t.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(t.text);case 154:var r=t.expression;return lt(r)?ft(e.idText(r.name)):ot(r)?e.escapeLeadingUnderscores(r.text):void 0;default:return e.Debug.assertNever(t)}}function dt(e){switch(e.kind){case 75:case 10:case 14:case 8:return!0;default:return!1}}function pt(t){return e.isIdentifierOrPrivateIdentifier(t)?e.idText(t):t.text}function ft(e){return"__@"+e}function gt(e){return 75===e.kind&&"Symbol"===e.escapedText}function mt(e){for(;191===e.kind;)e=e.parent.parent;return e}function yt(e){return On(e.pos)||On(e.end)}function vt(e,t,r){switch(e){case 197:return r?0:1;case 207:case 204:case 205:case 203:case 206:case 210:case 212:return 1;case 209: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 74:case 73:return 1}}return 0}function ht(e){return 209===e.kind?e.operatorToken.kind:207===e.kind||208===e.kind?e.operator:e.kind}function bt(e,t,r){switch(e){case 327:return 0;case 213:return 1;case 212:return 2;case 210:return 4;case 209: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 74:case 73:return 3;default:return xt(t)}case 207:case 204:case 205:case 203:case 206:return 16;case 208:return 17;case 196:return 18;case 197:return r?19:18;case 198:case 194:case 195:return 19;case 104:case 102:case 75:case 100:case 106:case 91:case 8:case 9:case 10:case 192:case 193:case 201:case 202:case 214:case 266:case 267:case 270:case 13:case 14:case 211:case 200:case 215:return 20;default:return-1}}function xt(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 98:case 97:case 123: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=H,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 235:return r(n);case 251:case 223:case 227:case 228:case 229:case 230:case 231:case 232:case 236:case 237:case 277:case 278:case 238:case 240:case 280:return e.forEachChild(n,t)}}(t)},e.forEachYieldExpression=function(t,r){return function t(n){switch(n.kind){case 212:r(n);var i=n.expression;return void(i&&t(i));case 248:case 246:case 249:case 247:return;default:if(e.isFunctionLike(n)){if(n.name&&154===n.name.kind)return void t(n.name.expression)}else H(n)||e.forEachChild(n,t)}}(t)},e.getRestParameterElementType=function(t){return t&&174===t.kind?t.elementType:t&&169===t.kind?e.singleOrUndefined(t.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 246:case 245:case 214:case 173:return e.members;case 193:return e.properties}},e.isVariableLike=G,e.isVariableLikeOrAccessor=function(t){return G(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)?or(t)&&ar(t):e.isPropertySignature(t)&&or(t)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 161:case 160:case 162:case 163:case 164:case 244:case 201:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),238!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(t){return t&&223===t.kind&&e.isFunctionLike(t.parent)},e.isObjectLiteralMethod=function(e){return e&&161===e.kind&&193===e.parent.kind},e.isObjectLiteralOrClassExpressionMethod=function(e){return 161===e.kind&&(193===e.parent.kind||214===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=X,e.getTsConfigObjectLiteralExpression=Y,e.getTsConfigPropArrayElementValue=function(t,r,n){return e.firstDefined(Z(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=Z,e.getContainingFunction=function(t){return n(t.parent,e.isFunctionLike)},e.getContainingFunctionDeclaration=function(t){return n(t.parent,e.isFunctionLikeDeclaration)},e.getContainingClass=function(t){return n(t.parent,e.isClassLike)},e.getThisContainer=$,e.getNewTargetContainer=function(e){var t=$(e,!1);if(t)switch(t.kind){case 162:case 244:case 201:return t}},e.getSuperContainer=function(t,r){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 154:t=t.parent;break;case 244:case 201:case 202:if(!r)continue;case 159:case 158:case 161:case 160:case 162:case 163:case 164:return t;case 157:156===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(201===e.kind||202===e.kind){for(var t=e,r=e.parent;200===r.kind;)t=r,r=r.parent;if(196===r.kind&&r.expression===t)return r}},e.isSuperOrSuperProperty=function(e){return 102===e.kind||ee(e)},e.isSuperProperty=ee,e.isThisProperty=function(e){var t=e.kind;return(194===t||195===t)&&104===e.expression.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 169:return e.typeName;case 216:return mr(e.expression)?e.expression:void 0;case 75:case 153:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 198:return e.tag;case 268:case 267:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=te,e.nodeIsDecorated=re,e.nodeOrChildIsDecorated=ne,e.childIsDecorated=ie,e.isJSXTagName=ae,e.isExpressionNode=oe,e.isInExpressionContext=se,e.isPartOfTypeQuery=ce,e.isExternalModuleImportEqualsDeclaration=ue,e.getExternalModuleImportEqualsDeclarationExpression=function(t){return e.Debug.assert(ue(t)),t.moduleReference.expression},e.isInternalModuleImportEqualsDeclaration=function(e){return 253===e.kind&&265!==e.moduleReference.kind},e.isSourceFileJS=le,e.isSourceFileNotJS=function(e){return!_e(e)},e.isInJSFile=_e,e.isInJsonFile=function(e){return!!e&&!!(33554432&e.flags)},e.isSourceFileNotJson=function(e){return!B(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&&(143===t.typeArguments[0].kind||140===t.typeArguments[0].kind)},e.isRequireCall=de,e.isRequireVariableDeclaration=pe,e.isRequireVariableDeclarationStatement=function(t,r){return void 0===r&&(r=!0),e.isVariableStatement(t)&&e.every(t.declarationList.declarations,(function(e){return pe(e,r)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===h(t,e).charCodeAt(0)},e.getDeclarationOfExpando=function(t){if(t.parent){var r,n;if(e.isVariableDeclaration(t.parent)&&t.parent.initializer===t){if(!_e(t)&&!j(t.parent))return;r=t.parent.name,n=t.parent}else if(e.isBinaryExpression(t.parent)){var i=t.parent,a=t.parent.operatorToken.kind;if(62===a&&i.right===t)n=r=i.left;else if((56===a||60===a)&&(e.isVariableDeclaration(i.parent)&&i.parent.initializer===i?(r=i.parent.name,n=i.parent):e.isBinaryExpression(i.parent)&&62===i.parent.operatorToken.kind&&i.parent.right===i&&(n=r=i.parent.left),!r||!Ne(r)||!ye(r,i.left)))return}if(r&&me(t,vr(r)))return n}},e.isAssignmentDeclaration=fe,e.getEffectiveInitializer=ge,e.getDeclaredExpandoInitializer=function(e){var t=ge(e);return t&&me(t,vr(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind){var r=vr(t.parent.left);return me(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&me(r.right,n);if(i&&ye(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&Se(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&&me(t.initializer,r)}))}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=me,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&&me(t.right,vr(r))&&mr(r)&&ye(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.getRightMostAssignedExpression=ve,e.isExportsIdentifier=he,e.isModuleIdentifier=be,e.isModuleExportsAccessExpression=xe,e.getAssignmentDeclarationKind=De,e.isBindableObjectDefinePropertyCall=Se,e.isLiteralLikeAccess=Ce,e.isLiteralLikeElementAccess=Te,e.isBindableStaticAccessExpression=ke,e.isBindableStaticElementAccessExpression=Ee,e.isBindableStaticNameExpression=Ne,e.getNameOrArgument=Ae,e.getElementOrPropertyAccessArgumentExpressionOrName=Fe,e.getElementOrPropertyAccessName=Pe,e.getAssignmentDeclarationPropertyAccessKind=we,e.getInitializerOfBinaryExpression=Ie,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===De(t)},e.isSpecialPropertyDeclaration=function(t){return _e(t)&&t.parent&&226===t.parent.kind&&(!e.isElementAccessExpression(t)||Te(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(8388608&t.flags)||8388608&r.flags)&&fe(r)&&!fe(t)||r.kind!==t.kind&&k(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 244===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.importFromModuleSpecifier=function(t){return Oe(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=Oe,e.getExternalModuleName=function(t){switch(t.kind){case 254:case 260:return t.moduleSpecifier;case 253:return 265===t.moduleReference.kind?t.moduleReference.expression:void 0;case 188:return z(t)?t.argument.literal:void 0;default:return e.Debug.assertNever(t)}},e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 254:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 253:return t;case 260:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 254===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 156:case 161:case 160:case 282:case 281:case 159:case 158: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=Me,e.isTypeAlias=function(t){return Me(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Re,e.getJSDocCommentsAndTags=function(t){var r;G(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(r=e.append(r,e.last(t.initializer.jsDoc)));for(var n=t;n&&n.parent;){if(e.hasJSDocNodes(n)&&(r=e.append(r,e.last(n.jsDoc))),156===n.kind){r=e.addRange(r,e.getJSDocParameterTags(n));break}if(155===n.kind){r=e.addRange(r,e.getJSDocTypeParameterTags(n));break}n=Je(n)}return r||e.emptyArray},e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=ze(t);if(n){var i=e.find(n.parameters,(function(e){return 75===e.name.kind&&e.name.escapedText===r}));return i&&i.symbol}}},e.getHostSignatureFromJSDoc=ze,e.getEffectiveJSDocHost=Ue,e.getJSDocHost=Ke,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&&Ve(r)},e.isRestParameter=Ve,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=qe,e.isAssignmentTarget=function(e){return 0!==qe(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 223:case 225:case 236:case 227:case 237:case 251:case 277:case 278:case 238:case 230:case 231:case 232:case 228:case 229:case 240:case 280: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 We(e,182)},e.walkUpParenthesizedExpressions=He,e.skipParentheses=Ge,e.isDeleteTarget=function(e){return(194===e.kind||195===e.kind)&&((e=He(e.parent))&&203===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 75: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!==De(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 76:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return ot(t)&&154===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 159:case 158:case 161:case 160:case 163:case 164:case 284:case 281:case 194:return t.name===e;case 153:if(t.right===e){for(;153===t.kind;)t=t.parent;return 172===t.kind||169===t.kind}return!1;case 191:case 258:return t.propertyName===e;case 263:case 273:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return 253===t.kind||252===t.kind||255===t.kind&&!!t.name||256===t.kind||262===t.kind||258===t.kind||263===t.kind||259===t.kind&&Xe(t)||e.isBinaryExpression(t)&&2===De(t)&&Xe(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind&&Qe(t.parent.right)||282===t.kind||281===t.kind&&Qe(t.initializer)},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 255:case 258:case 256:case 263:case 259:case 253:return t.parent;case 153:do{t=t.parent}while(153===t.parent.kind);return e(t)}},e.isAliasableExpression=Qe,e.exportAssignmentIsAlias=Xe,e.getExportAssignmentExpression=Ye,e.getPropertyAssignmentAliasLikeExpression=function(e){return 282===e.kind?e.name:281===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=Ze,e.getClassExtendsHeritageElement=$e,e.getEffectiveImplementsTypeNodes=et,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?tt(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(Ze(t)),et(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=tt,e.getHeritageClause=rt,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=nt,e.isContextualKeyword=it,e.isNonContextualKeyword=at,e.isFutureReservedKeyword=function(e){return 113<=e&&e<=121},e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&at(r)},e.isStringAKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&nt(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!it(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 244:case 201:case 161:e.asteriskToken&&(t|=1);case 202:ir(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 244:case 201:case 202:case 161:return void 0!==e.body&&void 0===e.asteriskToken&&ir(e,256)}return!1},e.isStringOrNumericLiteralLike=ot,e.isSignedNumericLiteral=st,e.hasDynamicName=ct,e.isDynamicName=ut,e.isWellKnownSymbolSyntactically=lt,e.getPropertyNameForPropertyNameNode=_t,e.isPropertyNameLiteral=dt,e.getTextOfIdentifierOrLiteral=pt,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=ft,e.getSymbolNameForPrivateIdentifier=function(t,r){return"__#"+e.getSymbolId(t)+"@"+r},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isESSymbolIdentifier=gt,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 156===mt(e).kind},e.getRootDeclaration=mt,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 162===t||201===t||244===t||202===t||161===t||163===t||164===t||249===t||290===t},e.nodeIsSynthesized=yt,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=ht(e),r=197===e.kind&&void 0!==e.arguments;return vt(e.kind,t,r)},e.getOperatorAssociativity=vt,e.getExpressionPrecedence=function(e){var t=ht(e),r=197===e.kind&&void 0!==e.arguments;return bt(e.kind,t,r)},e.getOperator=ht,e.getOperatorPrecedence=bt,e.getBinaryOperatorPrecedence=xt,e.createDiagnosticCollection=function(){var t=[],r=[],n=e.createMap(),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,Xr)},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,Yr);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},reattachFileDiagnostics:function(t){e.forEach(n.get(t.fileName),(function(e){return e.file=t}))}}};var Dt=/\$\{/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 St=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ct=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Tt=/[\\`]/g,kt=e.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085"});function Et(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Nt(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return kt.get(e)||Et(e.charCodeAt(0))}function At(e,t){var r=96===t?Tt:39===t?Ct:St;return e.replace(r,Nt)}e.escapeString=At;var Ft=/[^\u0000-\u007F]/g;function Pt(e,t){return e=At(e,t),Ft.test(e)?e.replace(Ft,(function(e){return Et(e.charCodeAt(0))})):e}e.escapeNonAsciiString=Pt;var wt=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,It=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Ot=e.createMapFromTemplate({'"':""","'":"'"});function Mt(e){return 0===e.charCodeAt(0)?"�":Ot.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Lt(e,t){var r=39===t?It:wt;return e.replace(r,Mt)}e.escapeJsxAttributeString=Lt,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,"-")};var Rt=[""," "];function Bt(e){return void 0===Rt[e]&&(Rt[e]=Bt(e-1)+Rt[1]),Rt[e]}function jt(){return Rt[1].length}function Jt(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function zt(e,t,r){return t.moduleName||Ut(e,t.fileName,r&&r.fileName)}function Ut(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=Fn(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function Kt(e,t,r,n,i){var a=t.declarationDir||t.outDir;return Fn(a?Wt(e,a,r,n,i):e)+".d.ts"}function Vt(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&le(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!(B(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&(r||!t.isSourceOfProjectReferenceRedirect(e.fileName))}function qt(e,t,r){return Wt(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))}function Wt(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 Ht(t,r){return e.computeLineOfPosition(t,r)}function Gt(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&Qt(e.parameters[0]);return e.parameters[t?1:0]}}function Qt(e){return Xt(e.name)}function Xt(e){return!!e&&75===e.kind&&Yt(e)}function Yt(e){return 104===e.originalKeywordKind}function Zt(t){if(_e(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!_e(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function $t(e,t,r,n){er(e,t,r.pos,n)}function er(e,t,r,n){n&&n.length&&r!==n[0].pos&&Ht(e,r)!==Ht(e,n[0].pos)&&t.writeLine()}function tr(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 rr(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 nr(t,r,n){for(var i=0;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++)9===t.charCodeAt(r)?i+=jt()-i%jt():i++;return i}function ir(e,t){return!!sr(e,t)}function ar(e){return ir(e,32)}function or(e){return ir(e,64)}function sr(e,t){return cr(e)&t}function cr(e){if(e.kind>=0&&e.kind<=152)return 0;if(536870912&e.modifierFlagsCache)return-536870913&e.modifierFlagsCache;var t=ur(e);return e.modifierFlagsCache=536870912|t,t}function ur(t){var r=0;if(t.modifiers)for(var n=0,i=t.modifiers;n<i.length;n++){r|=lr(i[n].kind)}_e(t)&&t.parent&&(r|=(e.getJSDocPublicTag(t)?4:0)|(e.getJSDocPrivateTag(t)?8:0)|(e.getJSDocProtectedTag(t)?16:0)|(e.getJSDocReadonlyTag(t)?64:0));return(4&t.flags||75===t.kind&&t.isInJSDocNamespace)&&(r|=1),r}function lr(e){switch(e){case 120:return 32;case 119:return 4;case 118:return 16;case 117:return 8;case 122:return 128;case 89:return 1;case 130:return 2;case 81:return 2048;case 84:return 512;case 126:return 256;case 138:return 64}return 0}function _r(e){return e>=62&&e<=74}function dr(e){var t=pr(e);return t&&!t.isImplements?t.class:void 0}function pr(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:113===t.parent.token}:void 0}function fr(t,r){return e.isBinaryExpression(t)&&(r?62===t.operatorToken.kind:_r(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function gr(e){return void 0!==dr(e)}function mr(e){return 75===e.kind||yr(e)}function yr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&mr(t.expression)}function vr(e){return ke(e)&&"prototype"===Pe(e)}e.getIndentString=Bt,e.getIndentSize=jt,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=Bt(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*jt():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 s(s({},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=Jt,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(Jt(t))},e.getResolvedExternalModuleName=zt,e.getExternalModuleNameFromDeclaration=function(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return zt(e,n)},e.getExternalModuleNameFromPath=Ut,e.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(n.outDir?Fn(qt(e,t,n.outDir)):Fn(e))+r},e.getDeclarationEmitOutputFilePath=function(e,t){return Kt(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=Kt,e.getSourceFilesToEmit=function(t,r,n){var i=t.getCompilerOptions();if(i.outFile||i.out){var a=$r(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(function(r){return(o||!e.isExternalModule(r))&&Vt(r,t,n)}))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(function(e){return Vt(e,t,n)}))},e.sourceFileMayBeEmitted=Vt,e.getSourceFilePathInNewDir=qt,e.getSourceFilePathInNewDirWorker=Wt,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,(function(t){r.add(Gr(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){!function t(r,n,i){r.length>e.getRootLength(r)&&!i(r)&&(t(e.getDirectoryPath(r),n,i),n(r))}(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=Ht,e.getFirstConstructorWithBody=function(t){return e.find(t.members,(function(t){return e.isConstructorDeclaration(t)&&p(t.body)}))},e.getSetAccessorValueParameter=Gt,e.getSetAccessorTypeAnnotationNode=function(e){var t=Gt(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(Qt(r))return r}},e.parameterIsThisKeyword=Qt,e.isThisIdentifier=Xt,e.identifierIsThisKeyword=Yt,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return ct(r)?(n=r,163===r.kind?a=r:164===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(function(t){e.isAccessor(t)&&ir(t,32)===ir(r,32)&&(_t(t.name)===_t(r.name)&&(n?i||(i=t):n=t,163!==t.kind||a||(a=t),164!==t.kind||o||(o=t)))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=Zt,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||(_e(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)&&!(303===t.parent.kind&&t.parent.tags.some(Me))}(t)?t.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=Gt(e);return t&&Zt(t)},e.emitNewLineBeforeLeadingComments=$t,e.emitNewLineBeforeLeadingCommentsOfPosition=er,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&Ht(e,r)!==Ht(e,n)&&t.writeLine()},e.emitComments=tr,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 y(t,e.pos)}))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var l=[],_=void 0,d=0,p=c;d<p.length;d++){var f=p[d];if(_){var g=Ht(r,_.end);if(Ht(r,f.pos)>=g+2)break}l.push(f),_=f}if(l.length){g=Ht(r,e.last(l).end);Ht(r,e.skipTrivia(t,a.pos))>=g+2&&($t(r,n,a,c),tr(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=nr(t,r[s.line],i));var p=n.getIndent()*jt()-u+nr(t,l,d);if(p>0){var f=p%jt(),g=Bt((p-f)/jt());for(n.rawWrite(g);f;)n.rawWrite(" "),f--}else n.rawWrite("")}rr(t,a,n,o,l,d),l=d}else n.writeComment(t.substring(i,a))},e.hasModifiers=function(e){return 0!==cr(e)},e.hasModifier=ir,e.hasStaticModifier=ar,e.hasReadonlyModifier=or,e.getSelectedModifierFlags=sr,e.getModifierFlags=cr,e.getModifierFlagsNoCache=ur,e.modifierToFlag=lr,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isAssignmentOperator=_r,e.tryGetClassExtendingExpressionWithTypeArguments=dr,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=pr,e.isAssignmentExpression=fr,e.isDestructuringAssignment=function(e){if(fr(e,!0)){var t=e.left.kind;return 193===t||192===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=gr,e.isEntityNameExpression=mr,e.getFirstIdentifier=function(e){switch(e.kind){case 75:return e;case 153:do{e=e.left}while(75!==e.kind);return e;case 194:do{e=e.expression}while(75!==e.kind);return e}},e.isDottedName=function e(t){return 75===t.kind||104===t.kind||102===t.kind||194===t.kind&&e(t.expression)||200===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=yr,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){var n=t(r.expression);if(void 0!==n)return n+"."+r.name}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=vr,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 153===e.parent.kind&&e.parent.right===e||194===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 193===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 192===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){return function(t){return t&&e.length(t.declarations)>0&&ir(t.declarations[0],512)}(t)?t.declarations[0].localSymbol:void 0},e.tryExtractTSExtension=function(t){return e.find(e.supportedTSExtensionsForExtractExtension,(function(r){return e.fileExtensionIs(t,r)}))};var hr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function br(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+=hr.charAt(r)+hr.charAt(n)+hr.charAt(i)+hr.charAt(a),c+=3;return o}e.convertToBase64=br,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):br(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)!==hr.charCodeAt(64);){var a=hr.indexOf(t[i]),o=hr.indexOf(t[i+1]),s=hr.indexOf(t[i+2]),c=hr.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(a){return{}}},e.directoryProbablyExists=function(e,t){return!t.directoryExists||t.directoryExists(e)};var xr,Dr="\r\n",Sr="\n";function Cr(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t||-1===r),{pos:t,end:r}}function Tr(e,t){return Cr(t,e.end)}function kr(e){return e.decorators&&e.decorators.length>0?Tr(e,e.decorators.end):e}function Er(e,t,r){return Nr(Ar(e,r,!1),t.end,r)}function Nr(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function Ar(t,r,n){return On(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function Fr(e){return void 0!==e.initializer}function Pr(e){return 33554432&e.flags?e.checkFlags:0}function wr(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 200:return wr(r);case 208:case 207:var n=r.operator;return 45===n||46===n?c():0;case 209:var i=r,a=i.left,o=i.operatorToken;return a===t&&_r(o.kind)?62===o.kind?1:c():0;case 194:return r.name!==t?0:wr(r);case 281:var s=wr(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 282:return t===r.objectAssignmentInitializer?0:wr(r.parent);case 192:return wr(r);default:return 0}function c(){return r.parent&&226===function(e){for(;200===e.kind;)e=e.parent;return e}(r.parent).kind?1:2}}function Ir(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 Or(e){if(32&e.flags){var t=Mr(e);return!!t&&ir(t,128)}return!1}function Mr(t){return e.find(t.declarations,e.isClassLike)}function Lr(e){return 3899393&e.flags?e.objectFlags:0}function Rr(e){return 194===e.kind||195===e.kind}function Br(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 jr(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function Jr(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function zr(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 Ur(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 Kr(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 Vr(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function qr(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,(function(t,i){return""+e.Debug.checkDefined(r[+i+n])}))}function Wr(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function Hr(t,r,n,i){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));var a=Wr(i);return arguments.length>4&&(a=qr(a,arguments,4)),{file:t,start:r,length:n,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary}}function Gr(e){var t=Wr(e);return arguments.length>1&&(t=qr(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}}function Qr(e){return e.file?e.file.path:void 0}function Xr(t,r){return Yr(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 Xr(e,r.relatedInformation[t])}))||0;return t.relatedInformation?-1:1}(t,r)||0}function Yr(t,r){return e.compareStringsCaseSensitive(Qr(t),Qr(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||function t(r,n){if("string"===typeof r&&"string"===typeof n)return e.compareStringsCaseSensitive(r,n);if("string"===typeof r)return-1;if("string"===typeof n)return 1;var i=e.compareStringsCaseSensitive(r.messageText,n.messageText);if(i)return i;if(!r.next&&!n.next)return 0;if(!r.next)return-1;if(!n.next)return 1;for(var a=Math.min(r.next.length,n.next.length),o=0;o<a;o++)if(i=t(r.next[o],n.next[o]))return i;if(r.next.length<n.next.length)return-1;if(r.next.length>n.next.length)return 1;return 0}(t.messageText,r.messageText)||0}function Zr(e){return e.target||0}function $r(t){return"number"===typeof t.module?t.module:Zr(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function en(e){return!(!e.declaration&&!e.composite)}function tn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function rn(e,t){return t.strictFlag?tn(e,t.name):e[t.name]}function nn(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 an(t,r,n,i){for(var a=e.getPathComponents(e.toPath(t,n,i)),o=e.getPathComponents(e.toPath(r,n,i));!on(a[a.length-2],i)&&!on(o[o.length-2],i)&&i(a[a.length-1])===i(o[o.length-1]);)a.pop(),o.pop();return[e.getPathFromPathComponents(a),e.getPathFromPathComponents(o)]}function on(t,r){return"node_modules"===r(t)||e.startsWith(t,"@")}e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return Dr;case 1:return Sr}return r?r():e.sys?e.sys.newLine:Dr},e.createRange=Cr,e.moveRangeEnd=function(e,t){return Cr(e.pos,t)},e.moveRangePos=Tr,e.moveRangePastDecorators=kr,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?Tr(e,e.modifiers.end):kr(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return Cr(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return Er(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return Nr(Ar(e,r,!1),Ar(t,r,!1),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return Nr(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=Er,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return Nr(e.end,Ar(t,r,!1),r)},e.getLinesBetweenRangeEndAndRangeStart=function(t,r,n,i){var a=Ar(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!Nr(e.pos,e.end,t)},e.positionsAreOnSameLine=Nr,e.getStartPositionOfRange=Ar,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&&void 0!==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 248:case 249:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,Fr)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=Pr,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&Pr(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===wr(e)},e.isWriteAccess=function(e){return 0!==wr(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(xr||(xr={})),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=Ir,e.mutateMap=function(e,t,r){Ir(e,t,r);var n=r.createNewValue;t.forEach((function(t,r){e.has(r)||e.set(r,n(r,t))}))},e.isAbstractConstructorType=function(e){return!!(16&Lr(e))&&!!e.symbol&&Or(e.symbol)},e.isAbstractConstructorSymbol=Or,e.getClassLikeDeclarationOfSymbol=Mr,e.getObjectFlags=Lr,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:x(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,(function(e){p(e)&&(r=e)}),(function(e){for(var t=e.length-1;t>=0;t--)if(p(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>=168&&e<=188||125===e||148===e||140===e||151===e||141===e||128===e||143===e||144===e||104===e||110===e||146===e||100===e||137===e||216===e||295===e||296===e||297===e||298===e||299===e||300===e||301===e},e.isAccessExpression=Rr,e.getNameOfAccessExpression=function(t){return 194===t.kind?t.name:(e.Debug.assert(195===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 257===e.kind||261===e.kind},e.objectAllocator={getNodeConstructor:function(){return zr},getTokenConstructor:function(){return Ur},getIdentifierConstructor:function(){return Kr},getPrivateIdentifierConstructor:function(){return zr},getSourceFileConstructor:function(){return zr},getSymbolConstructor:function(){return Br},getTypeConstructor:function(){return jr},getSignatureConstructor:function(){return Jr},getSourceMapSourceConstructor:function(){return Vr}},e.setObjectAllocator=function(t){e.objectAllocator=t},e.formatStringFromArgs=qr,e.setLocalizedDiagnosticMessages=function(t){e.localizedDiagnosticMessages=t},e.getLocaleSpecificMessage=Wr,e.createFileDiagnostic=Hr,e.formatMessage=function(e,t){var r=Wr(t);return arguments.length>2&&(r=qr(r,arguments,2)),r},e.createCompilerDiagnostic=Gr,e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,t){var r=Wr(t);return arguments.length>2&&(r=qr(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=Xr,e.compareDiagnosticsSkipRelatedInformation=Yr,e.getEmitScriptTarget=Zr,e.getEmitModuleKind=$r,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=$r(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.hasJsonModuleEmitEnabled=function(t){switch($r(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!(!en(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=$r(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System},e.getEmitDeclarations=en,e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=tn,e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return r!==t&&e.semanticDiagnosticsOptionDeclarations.some((function(e){return!jn(rn(r,e),rn(t,e))}))},e.compilerOptionsAffectEmit=function(t,r){return r!==t&&e.affectsEmitOptionDeclarations.some((function(e){return!jn(rn(r,e),rn(t,e))}))},e.getCompilerOptionValue=rn,e.hasZeroOrOneAsteriskCharacter=nn,e.discoverProbableSymlinks=function(t,r,n){for(var i=e.createMap(),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=an(s[0],s[1],n,r),u=c[0],l=c[1];i.set(l,u)}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 sn=/[^\w\s\/]/g;function cn(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(sn,cn)};var un=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var ln="(?!("+e.commonPackageFolders.join("|")+")(/|$))",_n={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+ln+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return vn(e,_n.singleAsteriskRegexFragment)}},dn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+ln+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return vn(e,dn.singleAsteriskRegexFragment)}},pn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return vn(e,pn.singleAsteriskRegexFragment)}},fn={files:_n,directories:dn,exclude:pn};function gn(e,t,r){var n=mn(e,t,r);if(n&&n.length)return"^("+n.map((function(e){return"("+e+")"})).join("|")+")"+("exclude"===r?"($|/)":"$")}function mn(t,r,n){if(void 0!==t&&0!==t.length)return e.flatMap(t,(function(t){return t&&function(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&&"**"===_)return;l[0]=e.removeTrailingDirectorySeparator(l[0]),yn(_)&&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(sn,s))!==g&&(c+=ln),c+=m}else c+=g.replace(sn,s);u=!0}for(;d>0;)c+=")?",d--;return c}(t,r,n,fn[n])}))}function yn(e){return!/[.*?]/.test(e)}function vn(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function hn(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(mn(n,o,"files"),(function(e){return"^"+e+"$"})),includeFilePattern:gn(n,o,"files"),includeDirectoryPattern:gn(n,o,"directories"),excludePattern:gn(r,o,"exclude"),basePaths:xn(t,n,i)}}function bn(e,t){return new RegExp(e,t?"":"i")}function xn(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(Dn(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 Dn(t){var r=e.indexOfAnyCharCode(t,un);return r<0?e.hasExtension(t)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,r))}function Sn(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=gn,e.getRegularExpressionsForWildcards=mn,e.isImplicitGlob=yn,e.getFileMatcherPatterns=hn,e.getRegexFromPattern=bn,e.matchFiles=function(t,r,n,i,a,o,s,c,u){t=e.normalizePath(t),o=e.normalizePath(o);for(var l=hn(t,n,i,a,o),_=l.includeFilePatterns&&l.includeFilePatterns.map((function(e){return bn(e,a)})),d=l.includeDirectoryPattern&&bn(l.includeDirectoryPattern,a),p=l.excludePattern&&bn(l.excludePattern,a),f=_?_.map((function(){return[]})):[[]],g=e.createMap(),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],C=e.combinePaths(t,S),T=e.combinePaths(n,S);d&&!d.test(T)||p&&p.test(T)||b(C,T,i)}}}},e.ensureScriptKind=function(e,t){return t||Sn(e)||3},e.getScriptKindFromFileName=Sn,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 Cn=o(e.supportedTSExtensions,e.supportedJSExtensions),Tn=o(e.supportedTSExtensions,e.supportedJSExtensions,[".json"]);function kn(t,r){var n=t&&t.allowJs;if(!r||0===r.length)return n?Cn:e.supportedTSExtensions;var i=o(n?Cn: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 En(t,r){return t&&t.resolveJsonModule?r===Cn?Tn:r===e.supportedTSExtensions?e.supportedTSExtensionsWithJson:o(r,[".json"]):r}function Nn(e,t){return e<2?0:e<t.length?2:t.length}e.getSupportedExtensions=kn,e.getSuppoertedExtensionsWithJsonIfResolveJsonModule=En,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=En(r,kn(r,n));i<a.length;i++){var o=a[i];if(e.fileExtensionIs(t,o))return!0}return!1},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 Nn(n,r);return 0},e.adjustExtensionPriority=Nn,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var An=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function Fn(e){for(var t=0,r=An;t<r.length;t++){var n=Pn(e,r[t]);if(void 0!==n)return n}return e}function Pn(t,r){return e.fileExtensionIs(t,r)?wn(t,r):void 0}function wn(e,t){return e.substring(0,e.length-t.length)}function In(t){e.Debug.assert(nn(t));var r=t.indexOf("*");return-1===r?void 0:{prefix:t.substr(0,r),suffix:t.substr(r+1)}}function On(e){return!(e>=0)}function Mn(e){return".ts"===e||".tsx"===e||".d.ts"===e}function Ln(t){return e.find(An,(function(r){return e.fileExtensionIs(t,r)}))}e.removeFileExtension=Fn,e.tryRemoveExtension=Pn,e.removeExtension=wn,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,An,!1)},e.tryParsePattern=In,e.positionIsSynthesized=On,e.extensionIsTS=Mn,e.resolutionExtensionIsTSOrJson=function(e){return Mn(e)||".json"===e},e.extensionFromPath=function(t){var r=Ln(t);return void 0!==r?r:e.Debug.fail("File "+t+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==Ln(e)},e.tryGetExtensionFromPath=Ln,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(nn(o)){var s=In(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(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return r.length?(e.relatedInformation||(e.relatedInformation=[]),(t=e.relatedInformation).push.apply(t,r),e):e},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}};var Rn=function(){function t(){this.map=e.createMap()}return t.prototype.add=function(t){this.map.set(String(e.getNodeId(t)),t)},t.prototype.tryAdd=function(e){return!this.has(e)&&(this.add(e),!0)},t.prototype.has=function(t){return this.map.has(String(e.getNodeId(t)))},t.prototype.forEach=function(e){this.map.forEach(e)},t.prototype.some=function(e){return i(this.map,e)||!1},t}();e.NodeSet=Rn;var Bn=function(){function t(){this.map=e.createMap()}return t.prototype.get=function(t){var r=this.map.get(String(e.getNodeId(t)));return r&&r.value},t.prototype.getOrUpdate=function(e,t){var r=this.get(e);if(r)return r;var n=t();return this.set(e,n),n},t.prototype.set=function(t,r){this.map.set(String(e.getNodeId(t)),{node:t,value:r})},t.prototype.has=function(t){return this.map.has(String(e.getNodeId(t)))},t.prototype.forEach=function(e){this.map.forEach((function(t){var r=t.node,n=t.value;return e(n,r)}))},t}();function jn(t,r){return t===r||"object"===typeof t&&null!==t&&"object"===typeof r&&null!==r&&e.equalOwnProperties(t,r,jn)}e.NodeMap=Bn,e.rangeOfNode=function(e){return{pos:v(e),end:e.end}},e.rangeOfTypeParameters=function(e){return{pos:e.pos-1,end:e.end+1}},e.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=jn,e.getOrUpdate=function(e,t,r){var n=e.get(t);if(void 0===n){var i=r();return e.set(t,i),i}return n},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(e){return!!(8388608&e.flags)||ce(e)||function(e){if(75!==e.kind)return!1;var t=n(e.parent,(function(e){switch(e.kind){case 279:return!0;case 194:case 216:return!1;default:return"quit"}}));return 113===(null===t||void 0===t?void 0:t.token)||246===(null===t||void 0===t?void 0:t.parent.kind)}(e)||function(e){for(;75===e.kind||194===e.kind;)e=e.parent;if(154!==e.kind)return!1;if(ir(e.parent,128))return!0;var t=e.parent.parent.kind;return 246===t||173===t}(e)||!oe(e)},e.typeOnlyDeclarationIsExport=function(e){return 263===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}}(d||(d={})),function(e){var t,r,n,i,a,o,s,c;function u(e,t){return t&&e(t)}function l(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 _(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function d(t,r,n){if(t&&!(t.kind<=152))switch(t.kind){case 153:return u(r,t.left)||u(r,t.right);case 155:return u(r,t.name)||u(r,t.constraint)||u(r,t.default)||u(r,t.expression);case 282:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.name)||u(r,t.questionToken)||u(r,t.exclamationToken)||u(r,t.equalsToken)||u(r,t.objectAssignmentInitializer);case 283:return u(r,t.expression);case 156:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.dotDotDotToken)||u(r,t.name)||u(r,t.questionToken)||u(r,t.type)||u(r,t.initializer);case 159:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.name)||u(r,t.questionToken)||u(r,t.exclamationToken)||u(r,t.type)||u(r,t.initializer);case 158:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.name)||u(r,t.questionToken)||u(r,t.type)||u(r,t.initializer);case 281:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.name)||u(r,t.questionToken)||u(r,t.initializer);case 242:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.name)||u(r,t.exclamationToken)||u(r,t.type)||u(r,t.initializer);case 191:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.dotDotDotToken)||u(r,t.propertyName)||u(r,t.name)||u(r,t.initializer);case 170:case 171:case 165:case 166:case 167:return l(r,n,t.decorators)||l(r,n,t.modifiers)||l(r,n,t.typeParameters)||l(r,n,t.parameters)||u(r,t.type);case 161:case 160:case 162:case 163:case 164:case 201:case 244:case 202:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.asteriskToken)||u(r,t.name)||u(r,t.questionToken)||u(r,t.exclamationToken)||l(r,n,t.typeParameters)||l(r,n,t.parameters)||u(r,t.type)||u(r,t.equalsGreaterThanToken)||u(r,t.body);case 169:return u(r,t.typeName)||l(r,n,t.typeArguments);case 168:return u(r,t.assertsModifier)||u(r,t.parameterName)||u(r,t.type);case 172:return u(r,t.exprName);case 173:return l(r,n,t.members);case 174:return u(r,t.elementType);case 175:return l(r,n,t.elementTypes);case 178:case 179:return l(r,n,t.types);case 180:return u(r,t.checkType)||u(r,t.extendsType)||u(r,t.trueType)||u(r,t.falseType);case 181:return u(r,t.typeParameter);case 188:return u(r,t.argument)||u(r,t.qualifier)||l(r,n,t.typeArguments);case 182:case 184:return u(r,t.type);case 185:return u(r,t.objectType)||u(r,t.indexType);case 186:return u(r,t.readonlyToken)||u(r,t.typeParameter)||u(r,t.questionToken)||u(r,t.type);case 187:return u(r,t.literal);case 189:case 190:case 192:return l(r,n,t.elements);case 193:return l(r,n,t.properties);case 194:return u(r,t.expression)||u(r,t.questionDotToken)||u(r,t.name);case 195:return u(r,t.expression)||u(r,t.questionDotToken)||u(r,t.argumentExpression);case 196:case 197:return u(r,t.expression)||u(r,t.questionDotToken)||l(r,n,t.typeArguments)||l(r,n,t.arguments);case 198:return u(r,t.tag)||u(r,t.questionDotToken)||l(r,n,t.typeArguments)||u(r,t.template);case 199:return u(r,t.type)||u(r,t.expression);case 200:case 203:case 204:case 205:return u(r,t.expression);case 207:return u(r,t.operand);case 212:return u(r,t.asteriskToken)||u(r,t.expression);case 206:return u(r,t.expression);case 208:return u(r,t.operand);case 209:return u(r,t.left)||u(r,t.operatorToken)||u(r,t.right);case 217:return u(r,t.expression)||u(r,t.type);case 218:return u(r,t.expression);case 219:return u(r,t.name);case 210:return u(r,t.condition)||u(r,t.questionToken)||u(r,t.whenTrue)||u(r,t.colonToken)||u(r,t.whenFalse);case 213:return u(r,t.expression);case 223:case 250:return l(r,n,t.statements);case 290:return l(r,n,t.statements)||u(r,t.endOfFileToken);case 225:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.declarationList);case 243:return l(r,n,t.declarations);case 226:return u(r,t.expression);case 227:return u(r,t.expression)||u(r,t.thenStatement)||u(r,t.elseStatement);case 228:return u(r,t.statement)||u(r,t.expression);case 229:return u(r,t.expression)||u(r,t.statement);case 230:return u(r,t.initializer)||u(r,t.condition)||u(r,t.incrementor)||u(r,t.statement);case 231:return u(r,t.initializer)||u(r,t.expression)||u(r,t.statement);case 232:return u(r,t.awaitModifier)||u(r,t.initializer)||u(r,t.expression)||u(r,t.statement);case 233:case 234:return u(r,t.label);case 235:return u(r,t.expression);case 236:return u(r,t.expression)||u(r,t.statement);case 237:return u(r,t.expression)||u(r,t.caseBlock);case 251:return l(r,n,t.clauses);case 277:return u(r,t.expression)||l(r,n,t.statements);case 278:return l(r,n,t.statements);case 238:return u(r,t.label)||u(r,t.statement);case 239:return u(r,t.expression);case 240:return u(r,t.tryBlock)||u(r,t.catchClause)||u(r,t.finallyBlock);case 280:return u(r,t.variableDeclaration)||u(r,t.block);case 157:return u(r,t.expression);case 245:case 214:case 246:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.name)||l(r,n,t.typeParameters)||l(r,n,t.heritageClauses)||l(r,n,t.members);case 247:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.name)||l(r,n,t.typeParameters)||u(r,t.type);case 248:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.name)||l(r,n,t.members);case 284:return u(r,t.name)||u(r,t.initializer);case 249:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.name)||u(r,t.body);case 253:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.name)||u(r,t.moduleReference);case 254:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.importClause)||u(r,t.moduleSpecifier);case 255:return u(r,t.name)||u(r,t.namedBindings);case 252:case 256:case 262:return u(r,t.name);case 257:case 261:return l(r,n,t.elements);case 260:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.exportClause)||u(r,t.moduleSpecifier);case 258:case 263:return u(r,t.propertyName)||u(r,t.name);case 259:return l(r,n,t.decorators)||l(r,n,t.modifiers)||u(r,t.expression);case 211:return u(r,t.head)||l(r,n,t.templateSpans);case 221:return u(r,t.expression)||u(r,t.literal);case 154:return u(r,t.expression);case 279:return l(r,n,t.types);case 216:return u(r,t.expression)||l(r,n,t.typeArguments);case 265:return u(r,t.expression);case 264:return l(r,n,t.decorators);case 327:return l(r,n,t.elements);case 266:return u(r,t.openingElement)||l(r,n,t.children)||u(r,t.closingElement);case 270:return u(r,t.openingFragment)||l(r,n,t.children)||u(r,t.closingFragment);case 267:case 268:return u(r,t.tagName)||l(r,n,t.typeArguments)||u(r,t.attributes);case 274:return l(r,n,t.properties);case 273:return u(r,t.name)||u(r,t.initializer);case 275:return u(r,t.expression);case 276:return u(r,t.dotDotDotToken)||u(r,t.expression);case 269:return u(r,t.tagName);case 176:case 177:case 294:case 298:case 297:case 299:case 301:return u(r,t.type);case 300:return l(r,n,t.parameters)||u(r,t.type);case 303:return l(r,n,t.tags);case 317:case 323:return u(r,t.tagName)||(t.isNameFirst?u(r,t.name)||u(r,t.typeExpression):u(r,t.typeExpression)||u(r,t.name));case 309:return u(r,t.tagName);case 308:case 307:return u(r,t.tagName)||u(r,t.class);case 321:return u(r,t.tagName)||u(r,t.constraint)||l(r,n,t.typeParameters);case 322:return u(r,t.tagName)||(t.typeExpression&&294===t.typeExpression.kind?u(r,t.typeExpression)||u(r,t.fullName):u(r,t.fullName)||u(r,t.typeExpression));case 315:return u(r,t.tagName)||u(r,t.fullName)||u(r,t.typeExpression);case 318:case 320:case 319:case 316:return u(r,t.tagName)||u(r,t.typeExpression);case 305:return e.forEach(t.typeParameters,r)||e.forEach(t.parameters,r)||u(r,t.type);case 304:return e.forEach(t.jsDocPropertyTags,r);case 306:case 310:case 311:case 312:case 313:case 314:return u(r,t.tagName);case 326:return u(r,t.expression)}}function p(t,r,n){for(var i=[t];i.length;){var a=i.pop(),o=c(a,s(a));if(o)return o}return;function s(e){var t=[];return d(e,r,r),t;function r(e){t.unshift(e)}}function c(t,a){for(var o=0,s=a;o<s.length;o++){var c=s[o];if(e.isArray(c)){if(n)if(_=n(c,t)){if("skip"===_)continue;return _}for(var u=c.length-1;u>=0;u--){var l=c[u];if(_=r(l,t)){if("skip"===_)continue;return _}i.push(l)}}else{var _;if(i.push(c),_=r(c,t)){if("skip"===_)continue;return _}}}}}function f(t){return e.fileExtensionIs(t,".d.ts")}function g(t,r){for(var n=[],i=0,a=e.getLeadingCommentRanges(r,0)||e.emptyArray;i<a.length;i++){var o=a[i];x(n,o,r.substring(o.pos,o.end))}t.pragmas=e.createMap();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 m(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":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={})),e.createNode=function(t,s,c){return 290===t?new(o||(o=e.objectAllocator.getSourceFileConstructor()))(t,s,c):75===t?new(i||(i=e.objectAllocator.getIdentifierConstructor()))(t,s,c):76===t?new(a||(a=e.objectAllocator.getPrivateIdentifierConstructor()))(t,s,c):e.isNodeKind(t)?new(r||(r=e.objectAllocator.getNodeConstructor()))(t,s,c):new(n||(n=e.objectAllocator.getTokenConstructor()))(t,s,c)},e.isJSDocLikeText=_,e.forEachChild=d,e.forEachChildRecursively=p,e.createSourceFile=function(t,r,n,i,a){var o;return void 0===i&&(i=!1),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(t),o=100===n?s.parseSourceFile(t,r,n,void 0,i,6):s.parseSourceFile(t,r,n,void 0,i,a),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),o},e.parseIsolatedEntityName=function(e,t){return s.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return s.parseJsonText(e,t)},e.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},e.updateSourceFile=function(e,t,r,n){void 0===n&&(n=!1);var i=c.updateSourceFile(e,t,r,n);return i.flags|=3145728&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=s.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&s.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return s.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(t){var r,n,i,a,o,s,c,u,l,y,v,h,b,x,D,C,T,k,E,N,A=e.createScanner(99,!0),F=20480,P=!1;function w(t,r,n,i,a){void 0===n&&(n=2),O(r,n,i,6),(s=j(t,2,6,!1)).flags=T,ce();var o=ae();if(1===oe())s.statements=Ae([],o,o),s.endOfFileToken=Ce();else{var u=Ee(226);switch(oe()){case 22:u.expression=Hr();break;case 106:case 91:case 100:u.expression=Ce();break;case 40:me((function(){return 8===ce()&&58!==ce()}))?u.expression=Sr():u.expression=Qr();break;case 8:case 10:if(me((function(){return 58!==ce()}))){u.expression=mt();break}default:u.expression=Qr()}Fe(u),s.statements=Ae([u],o),s.endOfFileToken=Se(1,e.Diagnostics.Unexpected_token)}a&&B(s),s.nodeCount=v,s.identifierCount=x,s.identifiers=h,s.parseDiagnostics=c;var l=s;return M(),l}function I(e){return 4===e||2===e||1===e||6===e?1:0}function O(t,s,l,_){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getPrivateIdentifierConstructor(),o=e.objectAllocator.getSourceFileConstructor(),y=t,u=l,c=[],D=0,h=e.createMap(),b=e.createMap(),x=0,v=0,_){case 1:case 2:T=131072;break;case 6:T=33685504;break;default:T=0}P=!1,A.setText(y),A.setOnError(ie),A.setScriptTarget(s),A.setLanguageVariant(I(_))}function M(){A.clearCommentDirectives(),A.setText(""),A.setOnError(void 0),c=void 0,s=void 0,h=void 0,u=void 0,y=void 0,C=void 0}function L(t,r,n,i){var a=f(t);return a&&(T|=8388608),(s=j(t,r,i,a)).flags=T,ce(),g(s,y),m(s,(function(t,r,n){c.push(e.createFileDiagnostic(s,t,r,n))})),s.statements=rt(0,pn),e.Debug.assert(1===oe()),s.endOfFileToken=R(Ce()),function(t){t.externalModuleIndicator=e.forEach(t.statements,ri)||function(e){return 2097152&e.flags?ni(e):void 0}(t)}(s),s.commentDirectives=A.getCommentDirectives(),s.nodeCount=v,s.identifierCount=x,s.identifiers=h,s.parseDiagnostics=c,n&&B(s),s}function R(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,s.text),(function(e){return N.parseJSDocComment(t,e.pos,e.end-e.pos)}));return r.length&&(t.jsDoc=r),t}function B(t){p(t,(function t(r,n){if(r.parent=n,e.hasJSDocNodes(r))for(var i=0,a=r.jsDoc;i<a.length;i++){var o=a[i];t(o,r),p(o,t)}}))}function j(t,r,n,i){var a=new o(290,0,y.length);return v++,a.text=y,a.bindDiagnostics=[],a.bindSuggestionDiagnostics=void 0,a.languageVersion=r,a.fileName=e.normalizePath(t),a.languageVariant=I(n),a.isDeclarationFile=i,a.scriptKind=n,a}function J(e,t){e?T|=t:T&=~t}function z(e){J(e,4096)}function U(e){J(e,8192)}function K(e){J(e,16384)}function V(e){J(e,32768)}function q(e,t){var r=e&T;if(r){J(!1,r);var n=t();return J(!0,r),n}return t()}function W(e,t){var r=e&~T;if(r){J(!0,r);var n=t();return J(!1,r),n}return t()}function H(e){return q(4096,e)}function G(e){return W(32768,e)}function Q(e){return 0!==(T&e)}function X(){return Q(8192)}function Y(){return Q(4096)}function Z(){return Q(16384)}function $(){return Q(32768)}function ee(e,t){re(A.getTokenPos(),A.getTextPos(),e,t)}function te(t,r,n,i){var a=e.lastOrUndefined(c);a&&t===a.start||c.push(e.createFileDiagnostic(s,t,r,n,i)),P=!0}function re(e,t,r,n){te(e,t-e,r,n)}function ne(e,t,r){re(e.pos,e.end,t,r)}function ie(e,t){te(A.getTextPos(),t,e)}function ae(){return A.getStartPos()}function oe(){return l}function se(){return l=A.scan()}function ce(){return e.isKeyword(l)&&(A.hasUnicodeEscape()||A.hasExtendedUnicodeEscape())&&re(A.getTokenPos(),A.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),se()}function ue(){return l=A.scanJsDocToken()}function le(){return l=A.reScanGreaterToken()}function _e(){return l=A.reScanTemplateHeadOrNoSubstitutionTemplate()}function de(){return l=A.reScanLessThanToken()}function pe(){return l=A.scanJsxIdentifier()}function fe(){return l=A.scanJsxToken()}function ge(t,r){var n=l,i=c.length,a=P,o=T,s=r?A.lookAhead(t):A.tryScan(t);return e.Debug.assert(o===T),s&&!r||(l=n,c.length=i,P=a),s}function me(e){return ge(e,!0)}function ye(e){return ge(e,!1)}function ve(){return 75===oe()||(121!==oe()||!X())&&((127!==oe()||!$())&&oe()>112)}function he(t,r,n){return void 0===n&&(n=!0),oe()===t?(n&&ce(),!0):(r?ee(r):ee(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function be(e){return oe()===e&&(ce(),!0)}function xe(e){if(oe()===e)return Ce()}function De(e){if(oe()===e)return function(){var e=Ee(oe());return ue(),Fe(e)}()}function Se(t,r,n){return xe(t)||Pe(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function Ce(){var e=Ee(oe());return ce(),Fe(e)}function Te(){return 26===oe()||(19===oe()||1===oe()||A.hasPrecedingLineBreak())}function ke(){return Te()?(26===oe()&&ce(),!0):he(26)}function Ee(t,o){v++;var s=o>=0?o:A.getStartPos();return e.isNodeKind(t)||0===t?new r(t,s,s):75===t?new i(t,s,s):76===t?new a(t,s,s):new n(t,s,s)}function Ne(e,t){var r=Ee(e,t);return 2&A.getTokenFlags()&&(226!==e||20!==oe())&&R(r),r}function Ae(e,t,r){var n=e.length,i=n>=1&&n<=4?e.slice():e;return i.pos=t,i.end=void 0===r?A.getStartPos():r,i}function Fe(e,t){return e.end=void 0===t?A.getStartPos():t,T&&(e.flags|=T),P&&(P=!1,e.flags|=65536),e}function Pe(t,r,n,i){r?te(A.getStartPos(),0,n,i):n&&ee(n,i);var a=Ee(t);return 75===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),Fe(a)}function we(e){var t=h.get(e);return void 0===t&&h.set(e,t=e),t}function Ie(t,r,n){if(x++,t){var i=Ee(75);return 75!==oe()&&(i.originalKeywordKind=oe()),i.escapedText=e.escapeLeadingUnderscores(we(A.getTokenValue())),se(),Fe(i)}if(76===oe())return ee(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ie(!0);var a=1===oe(),o=A.isReservedWord(),s=A.getTokenText(),c=o?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Pe(75,a,r||c,s)}function Oe(e,t){return Ie(ve(),e,t)}function Me(t){return Ie(e.tokenIsIdentifierOrKeyword(oe()),t)}function Le(){return e.tokenIsIdentifierOrKeyword(oe())||10===oe()||8===oe()}function Re(e){if(10===oe()||8===oe()){var t=mt();return t.text=we(t.text),t}return e&&22===oe()?function(){var e=Ee(154);return he(22),e.expression=H(ur),he(23),Fe(e)}():76===oe()?je():Me()}function Be(){return Re(!0)}function je(){var t=Ee(76);return t.escapedText=e.escapeLeadingUnderscores(function(e){var t=b.get(e);return void 0===t&&b.set(e,t=e),t}(A.getTokenText())),ce(),Fe(t)}function Je(e){return oe()===e&&ye(Ue)}function ze(){return ce(),!A.hasPrecedingLineBreak()&&qe()}function Ue(){switch(oe()){case 81:return 88===ce();case 89:return ce(),84===oe()?me(We):145===oe()?me(Ve):Ke();case 84:return We();case 120:case 131:case 142:return ce(),qe();default:return ze()}}function Ke(){return 41!==oe()&&123!==oe()&&18!==oe()&&qe()}function Ve(){return ce(),Ke()}function qe(){return 22===oe()||18===oe()||41===oe()||25===oe()||Le()}function We(){return ce(),80===oe()||94===oe()||114===oe()||122===oe()&&me(on)||126===oe()&&me(sn)}function He(t,r){if(it(t))return!0;switch(t){case 0:case 1:case 3:return!(26===oe()&&r)&&_n();case 2:return 78===oe()||84===oe();case 4:return me(Ot);case 5:return me(On)||26===oe()&&!r;case 6:return 22===oe()||Le();case 12:switch(oe()){case 22:case 41:case 25:case 24:return!0;default:return Le()}case 18:return Le();case 9:return 22===oe()||25===oe()||Le();case 7:return 18===oe()?me(Ge):r?ve()&&!Ze():sr()&&!Ze();case 8:return xn();case 10:return 27===oe()||25===oe()||xn();case 19:return ve();case 15:switch(oe()){case 27:case 24:return!0}case 11:return 25===oe()||cr();case 16:return kt(!1);case 17:return kt(!0);case 20:case 21:return 27===oe()||Qt();case 22:return qn();case 23:return e.tokenIsIdentifierOrKeyword(oe());case 13:return e.tokenIsIdentifierOrKeyword(oe())||18===oe();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Ge(){if(e.Debug.assert(18===oe()),19===ce()){var t=ce();return 27===t||18===t||90===t||113===t}return!0}function Qe(){return ce(),ve()}function Xe(){return ce(),e.tokenIsIdentifierOrKeyword(oe())}function Ye(){return ce(),e.tokenIsIdentifierOrKeywordOrGreaterThan(oe())}function Ze(){return(113===oe()||90===oe())&&me($e)}function $e(){return ce(),cr()}function et(){return ce(),Qt()}function tt(e){if(1===oe())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===oe();case 3:return 19===oe()||78===oe()||84===oe();case 7:return 18===oe()||90===oe()||113===oe();case 8:return function(){if(Te())return!0;if(hr(oe()))return!0;if(38===oe())return!0;return!1}();case 19:return 31===oe()||20===oe()||18===oe()||90===oe()||113===oe();case 11:return 21===oe()||26===oe();case 15:case 21:case 10:return 23===oe();case 17:case 16:case 18:return 21===oe()||23===oe();case 20:return 27!==oe();case 22:return 18===oe()||19===oe();case 13:return 31===oe()||43===oe();case 14:return 29===oe()&&me(Xn);default:return!1}}function rt(e,t){var r=D;D|=1<<e;for(var n=[],i=ae();!tt(e);)if(He(e,!1)){var a=nt(e,t);n.push(a)}else if(ot(e))break;return D=r,Ae(n,i)}function nt(e,t){var r=it(e);return r?at(r):t()}function it(t){if(u&&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)&&!P){var r=u.currentNode(A.getStartPos());if(!(e.nodeIsMissing(r)||r.intersectsChange||e.containsParseError(r)))if((25358336&r.flags)===T&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 162:case 167:case 163:case 164:case 159:case 222:return!0;case 161:var t=e;return!(75===t.name.kind&&129===t.name.originalKeywordKind)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 277:case 278:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 244:case 225:case 223:case 227:case 226:case 239:case 235:case 237:case 234:case 233:case 231:case 232:case 230:case 229:case 236:case 224:case 240:case 238:case 228:case 241:case 254:case 253:case 260:case 259:case 249:case 245:case 246:case 248:case 247:return!0}return!1}(e);case 6:return function(e){return 284===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 166:case 160:case 167:case 158:case 165:return!0}return!1}(e);case 8:return function(e){if(242!==e.kind)return!1;return void 0===e.initializer}(e);case 17:case 16:return function(e){if(156!==e.kind)return!1;return void 0===e.initializer}(e)}return!1}(r,t))return r.jsDocCache&&(r.jsDocCache=void 0),r}}function at(e){return A.setTextPos(e.end),ce(),e}function ot(t){return ee(function(t){switch(t){case 0:case 1:return e.Diagnostics.Declaration_or_statement_expected;case 2:return e.Diagnostics.case_or_default_expected;case 3:return e.Diagnostics.Statement_expected;case 18:case 4:return e.Diagnostics.Property_or_signature_expected;case 5:return e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return e.Diagnostics.Enum_member_expected;case 7:return e.Diagnostics.Expression_expected;case 8:return e.Diagnostics.Variable_declaration_expected;case 9:return e.Diagnostics.Property_destructuring_pattern_expected;case 10:return e.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return e.Diagnostics.Argument_expression_expected;case 12:return e.Diagnostics.Property_assignment_expected;case 15:return e.Diagnostics.Expression_or_comma_expected;case 17:case 16:return e.Diagnostics.Parameter_declaration_expected;case 19:return e.Diagnostics.Type_parameter_declaration_expected;case 20:return e.Diagnostics.Type_argument_expected;case 21:return e.Diagnostics.Type_expected;case 22:return e.Diagnostics.Unexpected_token_expected;case 23:case 13:case 14:return e.Diagnostics.Identifier_expected;default:return}}(t)),!!function(){for(var e=0;e<24;e++)if(D&1<<e&&(He(e,!0)||tt(e)))return!0;return!1}()||(ce(),!1)}function st(e,t,r){var n=D;D|=1<<e;for(var i=[],a=ae(),o=-1;;)if(He(e,!1)){var s=A.getStartPos();if(i.push(nt(e,t)),o=A.getTokenPos(),be(27))continue;if(o=-1,tt(e))break;he(27,ct(e)),r&&26===oe()&&!A.hasPrecedingLineBreak()&&ce(),s===A.getStartPos()&&ce()}else{if(tt(e))break;if(ot(e))break}D=n;var c=Ae(i,a);return o>=0&&(c.hasTrailingComma=!0),c}function ct(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function ut(){var e=Ae([],ae());return e.isMissingList=!0,e}function lt(e,t,r,n){if(he(r)){var i=st(e,t);return he(n),i}return ut()}function _t(e,t){for(var r=e?Me(t):Oe(t),n=A.getStartPos();be(24);){if(29===oe()){r.jsdocDotPos=n;break}n=A.getStartPos(),r=dt(r,pt(e,!1))}return r}function dt(e,t){var r=Ee(153,e.pos);return r.left=e,r.right=t,Fe(r)}function pt(t,r){if(A.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(oe())&&me(an))return Pe(75,!0,e.Diagnostics.Identifier_expected);if(76===oe()){var n=je();return r?n:Pe(75,!0,e.Diagnostics.Identifier_expected)}return t?Me():Oe()}function ft(t){var r=Ee(211);r.head=function(t){t&&_e();var r=yt(oe());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}(t),e.Debug.assert(15===r.head.kind,"Template head has wrong token kind");var n=[],i=ae();do{n.push(gt(t))}while(16===e.last(n).literal.kind);return r.templateSpans=Ae(n,i),Fe(r)}function gt(t){var r,n=Ee(221);return n.expression=H(ur),19===oe()?(!function(e){l=A.reScanTemplateToken(e)}(t),r=function(){var t=yt(oe());return e.Debug.assert(16===t.kind||17===t.kind,"Template fragment has wrong token kind"),t}()):r=Se(17,e.Diagnostics._0_expected,e.tokenToString(19)),n.literal=r,Fe(n)}function mt(){return yt(oe())}function yt(t){var r=Ee(t);switch(r.text=A.getTokenValue(),t){case 14:case 15:case 16:case 17:var n=14===t||17===t,i=A.getTokenText();r.rawText=i.substring(1,i.length-(A.isUnterminated()?0:n?1:2))}return A.hasExtendedUnicodeEscape()&&(r.hasExtendedUnicodeEscape=!0),A.isUnterminated()&&(r.isUnterminated=!0),8===r.kind&&(r.numericLiteralFlags=1008&A.getTokenFlags()),e.isTemplateLiteralKind(r.kind)&&(r.templateFlags=2048&A.getTokenFlags()),ce(),Fe(r),r}function vt(){var t=Ee(169);return t.typeName=_t(!0,e.Diagnostics.Type_expected),A.hasPrecedingLineBreak()||29!==de()||(t.typeArguments=lt(20,ir,29,31)),Fe(t)}function ht(){var e=Ee(183);return ce(),Fe(e)}function bt(e){var t=Ee(295);return e?Yt(299,t):(ce(),Fe(t))}function xt(){var e=Ee(156);return 104!==oe()&&99!==oe()||(e.name=Me(),he(58)),e.type=Dt(),Fe(e)}function Dt(){A.setInJSDocType(!0);var e=xe(135);if(e){var t=Ee(302,e.pos);e:for(;;)switch(oe()){case 19:case 1:case 27:case 5:break e;default:ue()}return A.setInJSDocType(!1),Fe(t)}var r=xe(25),n=rr();if(A.setInJSDocType(!1),r){var i=Ee(301,r.pos);i.type=n,n=Fe(i)}return 62===oe()?Yt(299,n):n}function St(){var e=Ee(155);return e.name=Oe(),be(90)&&(Qt()||!cr()?e.constraint=ir():e.expression=Cr()),be(62)&&(e.default=ir()),Fe(e)}function Ct(){if(29===oe())return lt(19,St,29,31)}function Tt(){if(be(58))return ir()}function kt(t){return 25===oe()||xn()||e.isModifierKind(oe())||59===oe()||Qt(!t)}function Et(){var t=Ne(156);return 104===oe()?(t.name=Ie(!0),t.type=Tt(),Fe(t)):(t.decorators=Mn(),t.modifiers=Ln(),t.dotDotDotToken=xe(25),t.name=Dn(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters),0===e.getFullWidth(t.name)&&!t.modifiers&&e.isModifierKind(oe())&&ce(),t.questionToken=xe(57),t.type=Tt(),t.initializer=lr(),Fe(t))}function Nt(t,r,n){32&r||(n.typeParameters=Ct());var i=function(e,t){if(!he(20))return e.parameters=ut(),!1;var r=X(),n=$();return U(!!(1&t)),V(!!(2&t)),e.parameters=32&t?st(17,xt):st(16,Et),U(r),V(n),he(21)}(n,r);return(!function(t,r){if(38===t)return he(t),!0;if(be(58))return!0;if(r&&38===oe())return ee(e.Diagnostics._0_expected,e.tokenToString(58)),ce(),!0;return!1}(t,!!(4&r))||(n.type=rr(),!function t(r){switch(r.kind){case 169:return e.nodeIsMissing(r.typeName);case 170:case 171:var n=r,i=n.parameters,a=n.type;return!!i.isMissingList||t(a);case 182:return t(r.type);default:return!1}}(n.type)))&&i}function At(){be(27)||ke()}function Ft(e){var t=Ne(e);return 166===e&&he(99),Nt(58,4,t),At(),Fe(t)}function Pt(){return 22===oe()&&me(wt)}function wt(){if(ce(),25===oe()||23===oe())return!0;if(e.isModifierKind(oe())){if(ce(),ve())return!0}else{if(!ve())return!1;ce()}return 58===oe()||27===oe()||57===oe()&&(ce(),58===oe()||27===oe()||23===oe())}function It(e){return e.kind=167,e.parameters=lt(16,Et,22,23),e.type=or(),At(),Fe(e)}function Ot(){if(20===oe()||29===oe())return!0;for(var t=!1;e.isModifierKind(oe());)t=!0,ce();return 22===oe()||(Le()&&(t=!0,ce()),!!t&&(20===oe()||29===oe()||57===oe()||58===oe()||27===oe()||Te()))}function Mt(){if(20===oe()||29===oe())return Ft(165);if(99===oe()&&me(Lt))return Ft(166);var e=Ne(0);return e.modifiers=Ln(),Pt()?It(e):function(e){return e.name=Be(),e.questionToken=xe(57),20===oe()||29===oe()?(e.kind=160,Nt(58,4,e)):(e.kind=158,e.type=or(),62===oe()&&(e.initializer=lr())),At(),Fe(e)}(e)}function Lt(){return ce(),20===oe()||29===oe()}function Rt(){return 24===ce()}function Bt(){switch(ce()){case 20:case 29:case 24:return!0}return!1}function jt(){var e;return he(18)?(e=rt(4,Mt),he(19)):e=ut(),e}function Jt(){return ce(),39===oe()||40===oe()?138===ce():(138===oe()&&ce(),22===oe()&&Qe()&&97===ce())}function zt(){var e=Ee(186);return he(18),138!==oe()&&39!==oe()&&40!==oe()||(e.readonlyToken=Ce(),138!==e.readonlyToken.kind&&Se(138)),he(22),e.typeParameter=function(){var e=Ee(155);return e.name=Oe(),he(97),e.constraint=ir(),Fe(e)}(),he(23),57!==oe()&&39!==oe()&&40!==oe()||(e.questionToken=Ce(),57!==e.questionToken.kind&&Se(57)),e.type=or(),ke(),he(19),Fe(e)}function Ut(){var e=ae();if(be(25)){var t=Ee(177,e);return t.type=ir(),Fe(t)}var r=ir();return 4194304&T||297!==r.kind||r.pos!==r.type.pos||(r.kind=176),r}function Kt(){var e=Ce();return 24===oe()?void 0:e}function Vt(e){var t,r=Ee(187);e&&((t=Ee(207)).operator=40,ce());var n=106===oe()||91===oe()?Ce():yt(oe());return e&&(t.operand=n,Fe(t),n=t),r.literal=n,Fe(r)}function qt(){return ce(),96===oe()}function Wt(){s.flags|=1048576;var t=Ee(188);return be(108)&&(t.isTypeOf=!0),he(96),he(20),t.argument=ir(),he(21),be(24)&&(t.qualifier=_t(!0,e.Diagnostics.Type_expected)),A.hasPrecedingLineBreak()||29!==de()||(t.typeArguments=lt(20,ir,29,31)),Fe(t)}function Ht(){return ce(),8===oe()||9===oe()}function Gt(){switch(oe()){case 125:case 148:case 143:case 140:case 151:case 144:case 128:case 146:case 137:case 141:return ye(Kt)||vt();case 41:return bt(!1);case 65:return bt(!0);case 60:A.reScanQuestionToken();case 57:return function(){var e,t=A.getStartPos();return ce(),27===oe()||19===oe()||21===oe()||31===oe()||62===oe()||51===oe()?Fe(e=Ee(296,t)):((e=Ee(297,t)).type=ir(),Fe(e))}();case 94:return function(){if(me(Qn)){var e=Ne(300);return ce(),Nt(58,36,e),Fe(e)}var t=Ee(169);return t.typeName=Me(),Fe(t)}();case 53:return function(){var e=Ee(298);return ce(),e.type=Gt(),Fe(e)}();case 14:case 10:case 8:case 9:case 106:case 91:return Vt();case 40:return me(Ht)?Vt(!0):vt();case 110:case 100:return Ce();case 104:var e=ht();return 133!==oe()||A.hasPrecedingLineBreak()?e:function(e){ce();var t=Ee(168,e.pos);return t.parameterName=e,t.type=ir(),Fe(t)}(e);case 108:return me(qt)?Wt():function(){var e=Ee(172);return he(108),e.exprName=_t(!0),Fe(e)}();case 18:return me(Jt)?zt():function(){var e=Ee(173);return e.members=jt(),Fe(e)}();case 22:return function(){var e=Ee(175);return e.elementTypes=lt(21,Ut,22,23),Fe(e)}();case 20:return function(){var e=Ee(182);return he(20),e.type=ir(),he(21),Fe(e)}();case 96:return Wt();case 124:return me(an)?function(){var e=Ee(168);return e.assertsModifier=Se(124),e.parameterName=104===oe()?ht():Oe(),e.type=be(133)?ir():void 0,Fe(e)}():vt();default:return vt()}}function Qt(e){switch(oe()){case 125:case 148:case 143:case 140:case 151:case 128:case 138:case 144:case 147:case 110:case 146:case 100:case 104:case 108:case 137:case 18:case 22:case 29:case 51:case 50:case 99:case 10:case 8:case 9:case 106:case 91:case 141:case 41:case 57:case 53:case 25:case 132:case 96:case 124:return!0;case 94:return!e;case 40:return!e&&me(Ht);case 20:return!e&&me(Xt);default:return ve()}}function Xt(){return ce(),21===oe()||kt(!1)||Qt()}function Yt(e,t){ce();var r=Ee(e,t.pos);return r.type=t,Fe(r)}function Zt(){var e=oe();switch(e){case 134:case 147:case 138:return function(e){var t=Ee(184);return he(e),t.operator=e,t.type=Zt(),Fe(t)}(e);case 132:return function(){var e=Ee(181);he(132);var t=Ee(155);return t.name=Oe(),e.typeParameter=Fe(t),Fe(e)}()}return function(){for(var e=Gt();!A.hasPrecedingLineBreak();)switch(oe()){case 53:e=Yt(298,e);break;case 57:if(!(4194304&T)&&me(et))return e;e=Yt(297,e);break;case 22:var t;if(he(22),Qt())(t=Ee(185,e.pos)).objectType=e,t.indexType=ir(),he(23),e=Fe(t);else(t=Ee(174,e.pos)).elementType=e,he(23),e=Fe(t);break;default:return e}return e}()}function $t(e,t,r){var n=A.getStartPos(),i=be(r),a=t();if(oe()===r||i){for(var o=[a];be(r);)o.push(t());var s=Ee(e,n);s.types=Ae(o,n),a=Fe(s)}return a}function er(){return $t(179,Zt,50)}function tr(){if(ce(),21===oe()||25===oe())return!0;if(function(){if(e.isModifierKind(oe())&&Ln(),ve()||104===oe())return ce(),!0;if(22===oe()||18===oe()){var t=c.length;return Dn(),t===c.length}return!1}()){if(58===oe()||27===oe()||57===oe()||62===oe())return!0;if(21===oe()&&(ce(),38===oe()))return!0}return!1}function rr(){var e=ve()&&ye(nr),t=ir();if(e){var r=Ee(168,e.pos);return r.assertsModifier=void 0,r.parameterName=e,r.type=t,Fe(r)}return t}function nr(){var e=Oe();if(133===oe()&&!A.hasPrecedingLineBreak())return ce(),e}function ir(){return q(40960,ar)}function ar(e){if(29===oe()||20===oe()&&me(tr)||99===oe())return function(){var e=ae(),t=Ne(be(99)?171:170,e);return Nt(38,4,t),Fe(t)}();var t=$t(178,er,51);if(!e&&!A.hasPrecedingLineBreak()&&be(90)){var r=Ee(180,t.pos);return r.checkType=t,r.extendsType=ar(!0),he(57),r.trueType=ar(),he(58),r.falseType=ar(),Fe(r)}return t}function or(){return be(58)?ir():void 0}function sr(){switch(oe()){case 104:case 102:case 100:case 106:case 91:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 94:case 80:case 99:case 43:case 67:case 75:return!0;case 96:return me(Bt);default:return ve()}}function cr(){if(sr())return!0;switch(oe()){case 39:case 40:case 54:case 53:case 85:case 108:case 110:case 45:case 46:case 29:case 127:case 121:case 76:return!0;default:return!!function(){if(Y()&&97===oe())return!1;return e.getBinaryOperatorPrecedence(oe())>0}()||ve()}}function ur(){var e=Z();e&&K(!1);for(var t,r=_r();t=xe(27);)r=xr(r,t,_r());return e&&K(!0),r}function lr(){return be(62)?_r():void 0}function _r(){if(function(){if(121===oe())return!!X()||me(cn);return!1}())return function(){var e=Ee(212);return ce(),A.hasPrecedingLineBreak()||41!==oe()&&!cr()?Fe(e):(e.asteriskToken=xe(41),e.expression=_r(),Fe(e))}();var t=function(){var e=function(){if(20===oe()||29===oe()||126===oe())return me(pr);if(38===oe())return 1;return 0}();if(0===e)return;var t=1===e?mr(!0):ye(fr);if(!t)return;var r=ii(t,126),n=oe();return t.equalsGreaterThanToken=Se(38),t.body=38===n||18===n?yr(r):Oe(),Fe(t)}()||function(){if(126===oe()&&1===me(gr)){var e=Rn();return dr(vr(0),e)}return}();if(t)return t;var r=vr(0);return 75===r.kind&&38===oe()?dr(r):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(le())?xr(r,Ce(),_r()):function(t){var r=xe(57);if(!r)return t;var n=Ee(210,t.pos);return n.condition=t,n.questionToken=r,n.whenTrue=q(F,_r),n.colonToken=Se(58),n.whenFalse=e.nodeIsPresent(n.colonToken)?_r():Pe(75,!1,e.Diagnostics._0_expected,e.tokenToString(58)),Fe(n)}(r)}function dr(t,r){var n;e.Debug.assert(38===oe(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),r?(n=Ee(202,r.pos)).modifiers=r:n=Ee(202,t.pos);var i=Ee(156,t.pos);return i.name=t,Fe(i),n.parameters=Ae([i],i.pos,i.end),n.equalsGreaterThanToken=Se(38),n.body=yr(!!r),R(Fe(n))}function pr(){if(126===oe()){if(ce(),A.hasPrecedingLineBreak())return 0;if(20!==oe()&&29!==oe())return 0}var t=oe(),r=ce();if(20===t){if(21===r)switch(ce()){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)&&126!==r&&me(Qe))return 1;if(!ve()&&104!==r)return 0;switch(ce()){case 58:return 1;case 57:return ce(),58===oe()||27===oe()||62===oe()||21===oe()?1:0;case 27:case 62:case 21:return 2}return 0}return e.Debug.assert(29===t),ve()?1===s.languageVariant?me((function(){var e=ce();if(90===e)switch(ce()){case 62:case 31:return!1;default:return!0}else if(27===e)return!0;return!1}))?1:0:2:0}function fr(){var t=A.getTokenPos();if(!C||!C.has(t.toString())){var r=mr(!1);return r||(C||(C=e.createMap())).set(t.toString(),!0),r}}function gr(){if(126===oe()){if(ce(),A.hasPrecedingLineBreak()||38===oe())return 0;var e=vr(0);if(!A.hasPrecedingLineBreak()&&75===e.kind&&38===oe())return 1}return 0}function mr(t){var r=Ne(202);if(r.modifiers=Rn(),Nt(58,ii(r,126)?2:0,r)||t){var n=r.type&&e.isJSDocFunctionType(r.type);if(t||38===oe()||!n&&18===oe())return r}}function yr(e){return 18===oe()?$r(e?2:0):26===oe()||94===oe()||80===oe()||!_n()||18!==oe()&&94!==oe()&&80!==oe()&&59!==oe()&&cr()?e?G(_r):q(32768,_r):$r(16|(e?2:0))}function vr(e){return br(e,Cr())}function hr(e){return 97===e||152===e}function br(t,r){for(;;){le();var n=e.getBinaryOperatorPrecedence(oe());if(!(42===oe()?n>=t:n>t))break;if(97===oe()&&Y())break;if(123===oe()){if(A.hasPrecedingLineBreak())break;ce(),r=Dr(r,ir())}else r=xr(r,Ce(),vr(n))}return r}function xr(e,t,r){var n=Ee(209,e.pos);return n.left=e,n.operatorToken=t,n.right=r,Fe(n)}function Dr(e,t){var r=Ee(217,e.pos);return r.expression=e,r.type=t,Fe(r)}function Sr(){var e=Ee(207);return e.operator=oe(),ce(),e.operand=Tr(),Fe(e)}function Cr(){if(function(){switch(oe()){case 39:case 40:case 54:case 53:case 85:case 108:case 110:case 127:return!1;case 29:if(1!==s.languageVariant)return!1;default:return!0}}()){var t=kr();return 42===oe()?br(e.getBinaryOperatorPrecedence(oe()),t):t}var r=oe(),n=Tr();if(42===oe()){var i=e.skipTrivia(y,n.pos),a=n.end;199===n.kind?re(i,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):re(i,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(r))}return n}function Tr(){switch(oe()){case 39:case 40:case 54:case 53:return Sr();case 85:return function(){var e=Ee(203);return ce(),e.expression=Tr(),Fe(e)}();case 108:return function(){var e=Ee(204);return ce(),e.expression=Tr(),Fe(e)}();case 110:return function(){var e=Ee(205);return ce(),e.expression=Tr(),Fe(e)}();case 29:return function(){var e=Ee(199);return he(29),e.type=ir(),he(31),e.expression=Tr(),Fe(e)}();case 127:if(127===oe()&&($()||me(cn)))return function(){var e=Ee(206);return ce(),e.expression=Tr(),Fe(e)}();default:return kr()}}function kr(){if(45===oe()||46===oe())return(t=Ee(207)).operator=oe(),ce(),t.operand=Er(),Fe(t);if(1===s.languageVariant&&29===oe()&&me(Ye))return Ar(!0);var t,r=Er();return e.Debug.assert(e.isLeftHandSideExpression(r)),45!==oe()&&46!==oe()||A.hasPrecedingLineBreak()?r:((t=Ee(208,r.pos)).operand=r,t.operator=oe(),ce(),Fe(t))}function Er(){var t;if(96===oe())if(me(Lt))s.flags|=1048576,t=Ce();else if(me(Rt)){var r=A.getStartPos();ce(),ce();var n=Ee(219,r);n.keywordToken=96,n.name=Me(),t=Fe(n),s.flags|=2097152}else t=Nr();else t=102===oe()?function(){var t=Ce();if(29===oe()){var r=ae();void 0!==ye(Kr)&&re(r,ae(),e.Diagnostics.super_may_not_use_type_arguments)}if(20===oe()||24===oe()||22===oe())return t;var n=Ee(194,t.pos);return n.expression=t,Se(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=pt(!0,!0),Fe(n)}():Nr();return function(t){for(;;){t=jr(t,!0);var r=xe(28);if(29===oe()||47===oe()){var n=ye(Kr);if(n){if(Jr()){t=zr(t,r,n);continue}(i=Ee(196,t.pos)).expression=t,i.questionDotToken=r,i.typeArguments=n,i.arguments=Ur(),(r||Lr(t))&&(i.flags|=32),t=Fe(i);continue}}else if(20===oe()){var i;(i=Ee(196,t.pos)).expression=t,i.questionDotToken=r,i.arguments=Ur(),(r||Lr(t))&&(i.flags|=32),t=Fe(i);continue}if(r){var a=Ee(194,t.pos);a.expression=t,a.questionDotToken=r,a.name=Pe(75,!1,e.Diagnostics.Identifier_expected),a.flags|=32,t=Fe(a)}break}return t}(t)}function Nr(){return jr(Vr(),!0)}function Ar(t){var r,n=function(e){var t=A.getStartPos();if(he(29),31===oe()){var r=Ee(271,t);return fe(),Fe(r)}var n,i=wr(),a=Vn(),o=function(){var e=Ee(274);return e.properties=rt(13,Or),Fe(e)}();31===oe()?(n=Ee(268,t),fe()):(he(43),e?he(31):(he(31,void 0,!1),fe()),n=Ee(267,t));return n.tagName=i,n.typeArguments=a,n.attributes=o,Fe(n)}(t);if(268===n.kind)(i=Ee(266,n.pos)).openingElement=n,i.children=Pr(i.openingElement),i.closingElement=function(e){var t=Ee(269);he(30),t.tagName=wr(),e?he(31):(he(31,void 0,!1),fe());return Fe(t)}(t),S(i.openingElement.tagName,i.closingElement.tagName)||ne(i.closingElement,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(y,i.openingElement.tagName)),r=Fe(i);else if(271===n.kind){var i;(i=Ee(270,n.pos)).openingFragment=n,i.children=Pr(i.openingFragment),i.closingFragment=function(t){var r=Ee(272);he(30),e.tokenIsIdentifierOrKeyword(oe())&&ne(wr(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);t?he(31):(he(31,void 0,!1),fe());return Fe(r)}(t),r=Fe(i)}else e.Debug.assert(267===n.kind),r=n;if(t&&29===oe()){var a=ye((function(){return Ar(!0)}));if(a){ee(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=Ee(209,r.pos);return o.end=a.end,o.left=r,o.right=a,o.operatorToken=Pe(27,!1),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return r}function Fr(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))ne(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;re(e.skipTrivia(y,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(y,t.tagName))}return;case 30:case 7:return;case 11:case 12:return function(){var e=Ee(11);return e.text=A.getTokenValue(),e.containsOnlyTriviaWhiteSpaces=12===l,l=A.scanJsxToken(),Fe(e)}();case 18:return Ir(!1);case 29:return Ar(!1);default:return e.Debug.assertNever(r)}}function Pr(e){var t=[],r=ae(),n=D;for(D|=16384;;){var i=Fr(e,l=A.reScanJsxToken());if(!i)break;t.push(i)}return D=n,Ae(t,r)}function wr(){pe();for(var e=104===oe()?Ce():Me();be(24);){var t=Ee(194,e.pos);t.expression=e,t.name=pt(!0,!1),e=Fe(t)}return e}function Ir(e){var t=Ee(276);if(he(18))return 19!==oe()&&(t.dotDotDotToken=xe(25),t.expression=ur()),e?he(19):he(19,void 0,!1)&&fe(),Fe(t)}function Or(){if(18===oe())return function(){var e=Ee(275);return he(18),he(25),e.expression=ur(),he(19),Fe(e)}();pe();var e=Ee(273);if(e.name=Me(),62===oe())switch(l=A.scanJsxAttributeValue()){case 10:e.initializer=mt();break;default:e.initializer=Ir(!0)}return Fe(e)}function Mr(){return ce(),e.tokenIsIdentifierOrKeyword(oe())||22===oe()||Jr()}function Lr(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 Rr(t,r){var n=Ee(194,t.pos);return n.expression=t,n.questionDotToken=r,n.name=pt(!0,!0),(r||Lr(t))&&(n.flags|=32,e.isPrivateIdentifier(n.name)&&ne(n.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers)),Fe(n)}function Br(t,r){var n=Ee(195,t.pos);if(n.expression=t,n.questionDotToken=r,23===oe())n.argumentExpression=Pe(75,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var i=H(ur);e.isStringOrNumericLiteralLike(i)&&(i.text=we(i.text)),n.argumentExpression=i}return he(23),(r||Lr(t))&&(n.flags|=32),Fe(n)}function jr(t,r){for(;;){var n=void 0,i=!1;if(r&&28===oe()&&me(Mr)?(n=Se(28),i=e.tokenIsIdentifierOrKeyword(oe())):i=be(24),i)t=Rr(t,n);else if(n||53!==oe()||A.hasPrecedingLineBreak())if(!n&&Z()||!be(22)){if(!Jr())return t;t=zr(t,n,void 0)}else t=Br(t,n);else{ce();var a=Ee(218,t.pos);a.expression=t,t=Fe(a)}}}function Jr(){return 14===oe()||15===oe()}function zr(e,t,r){var n=Ee(198,e.pos);return n.tag=e,n.questionDotToken=t,n.typeArguments=r,n.template=14===oe()?(_e(),mt()):ft(!0),(t||32&e.flags)&&(n.flags|=32),Fe(n)}function Ur(){he(20);var e=st(11,Wr);return he(21),e}function Kr(){if(29===de()){ce();var e=st(20,ir);if(he(31))return e&&function(){switch(oe()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}()?e:void 0}}function Vr(){switch(oe()){case 8:case 9:case 10:case 14:return mt();case 104:case 102:case 100:case 106:case 91:return Ce();case 20:return function(){var e=Ne(200);return he(20),e.expression=H(ur),he(21),Fe(e)}();case 22:return Hr();case 18:return Qr();case 126:if(!me(sn))break;return Xr();case 80:return Jn(Ne(0),214);case 94:return Xr();case 99:return function(){var t=A.getStartPos();if(he(99),be(24)){var r=Ee(219,t);return r.keywordToken=99,r.name=Me(),Fe(r)}var n,i=Vr();for(;;){i=jr(i,!1),n=ye(Kr),Jr()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),i=zr(i,void 0,n),n=void 0);break}var a=Ee(197,t);a.expression=i,a.typeArguments=n,20===oe()?a.arguments=Ur():a.typeArguments&&re(t,A.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list);return Fe(a)}();case 43:case 67:if(13===(l=A.reScanSlashToken()))return mt();break;case 15:return ft(!1)}return Oe(e.Diagnostics.Expression_expected)}function qr(){return 25===oe()?function(){var e=Ee(213);return he(25),e.expression=_r(),Fe(e)}():27===oe()?Ee(215):_r()}function Wr(){return q(F,qr)}function Hr(){var e=Ee(192);return he(22),A.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=st(15,qr),he(23),Fe(e)}function Gr(){var e=Ne(0);if(xe(25))return e.kind=283,e.expression=_r(),Fe(e);if(e.decorators=Mn(),e.modifiers=Ln(),Je(131))return In(e,163);if(Je(142))return In(e,164);var t=xe(41),r=ve();if(e.name=Be(),e.questionToken=xe(57),e.exclamationToken=xe(53),t||20===oe()||29===oe())return Fn(e,t);if(r&&58!==oe()){e.kind=282;var n=xe(62);n&&(e.equalsToken=n,e.objectAssignmentInitializer=H(_r))}else e.kind=281,he(58),e.initializer=H(_r);return Fe(e)}function Qr(){var t=Ee(193),r=A.getTokenPos();if(he(18),A.hasPrecedingLineBreak()&&(t.multiLine=!0),t.properties=st(12,Gr,!0),!he(19)){var n=e.lastOrUndefined(c);n&&n.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(n,e.createFileDiagnostic(s,r,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Fe(t)}function Xr(){var e=Z();e&&K(!1);var t=Ne(201);t.modifiers=Ln(),he(94),t.asteriskToken=xe(41);var r=t.asteriskToken?1:0,n=ii(t,126)?2:0;return t.name=r&&n?W(40960,Yr):r?function(e){return W(8192,e)}(Yr):n?G(Yr):Yr(),Nt(58,r|n,t),t.body=$r(r|n),e&&K(!0),Fe(t)}function Yr(){return ve()?Oe():void 0}function Zr(t,r){var n=Ee(223),i=A.getTokenPos();if(he(18,r)||t){if(A.hasPrecedingLineBreak()&&(n.multiLine=!0),n.statements=rt(1,pn),!he(19)){var a=e.lastOrUndefined(c);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createFileDiagnostic(s,i,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}}else n.statements=ut();return Fe(n)}function $r(e,t){var r=X();U(!!(1&e));var n=$();V(!!(2&e));var i=Z();i&&K(!1);var a=Zr(!!(16&e),t);return i&&K(!0),U(r),V(n),a}function en(){var e=ae();he(93);var t,r,n=xe(127);if(he(20),26!==oe()&&(t=109===oe()||115===oe()||81===oe()?Tn(!0):W(4096,ur)),n?he(152):be(152)){var i=Ee(232,e);i.awaitModifier=n,i.initializer=t,i.expression=H(_r),he(21),r=i}else if(be(97)){var a=Ee(231,e);a.initializer=t,a.expression=H(ur),he(21),r=a}else{var o=Ee(230,e);o.initializer=t,he(26),26!==oe()&&21!==oe()&&(o.condition=H(ur)),he(26),21!==oe()&&(o.incrementor=H(ur)),he(21),r=o}return r.statement=pn(),Fe(r)}function tn(e){var t=Ee(e);return he(234===e?77:82),Te()||(t.label=Oe()),ke(),Fe(t)}function rn(){return 78===oe()?function(){var e=Ee(277);return he(78),e.expression=H(ur),he(58),e.statements=rt(3,pn),Fe(e)}():function(){var e=Ee(278);return he(84),he(58),e.statements=rt(3,pn),Fe(e)}()}function nn(){var e=Ee(240);return he(107),e.tryBlock=Zr(!1),e.catchClause=79===oe()?function(){var e=Ee(280);he(79),be(20)?(e.variableDeclaration=Cn(),he(21)):e.variableDeclaration=void 0;return e.block=Zr(!1),Fe(e)}():void 0,e.catchClause&&92!==oe()||(he(92),e.finallyBlock=Zr(!1)),Fe(e)}function an(){return ce(),e.tokenIsIdentifierOrKeyword(oe())&&!A.hasPrecedingLineBreak()}function on(){return ce(),80===oe()&&!A.hasPrecedingLineBreak()}function sn(){return ce(),94===oe()&&!A.hasPrecedingLineBreak()}function cn(){return ce(),(e.tokenIsIdentifierOrKeyword(oe())||8===oe()||9===oe()||10===oe())&&!A.hasPrecedingLineBreak()}function un(){for(;;)switch(oe()){case 109:case 115:case 81:case 94:case 80:case 88:return!0;case 114:case 145:return ce(),!A.hasPrecedingLineBreak()&&ve();case 135:case 136:return yn();case 122:case 126:case 130:case 117:case 118:case 119:case 138:if(ce(),A.hasPrecedingLineBreak())return!1;continue;case 150:return ce(),18===oe()||75===oe()||89===oe();case 96:return ce(),10===oe()||41===oe()||18===oe()||e.tokenIsIdentifierOrKeyword(oe());case 89:var t=ce();if(145===t&&(t=me(ce)),62===t||41===t||18===t||84===t||123===t)return!0;continue;case 120:ce();continue;default:return!1}}function ln(){return me(un)}function _n(){switch(oe()){case 59:case 26:case 18:case 109:case 115:case 94:case 80:case 88:case 95:case 86:case 111:case 93:case 82:case 77:case 101:case 112:case 103:case 105:case 107:case 83:case 79:case 92:return!0;case 96:return ln()||me(Bt);case 81:case 89:return ln();case 126:case 130:case 114:case 135:case 136:case 145:case 150:return!0;case 119:case 117:case 118:case 120:case 138:return ln()||!me(an);default:return cr()}}function dn(){return ce(),ve()||18===oe()||22===oe()}function pn(){switch(oe()){case 26:return function(){var e=Ee(224);return he(26),Fe(e)}();case 18:return Zr(!1);case 109:return En(Ne(242));case 115:if(me(dn))return En(Ne(242));break;case 94:return Nn(Ne(244));case 80:return jn(Ne(245));case 95:return function(){var e=Ee(227);return he(95),he(20),e.expression=H(ur),he(21),e.thenStatement=pn(),e.elseStatement=be(87)?pn():void 0,Fe(e)}();case 86:return function(){var e=Ee(228);return he(86),e.statement=pn(),he(111),he(20),e.expression=H(ur),he(21),be(26),Fe(e)}();case 111:return function(){var e=Ee(229);return he(111),he(20),e.expression=H(ur),he(21),e.statement=pn(),Fe(e)}();case 93:return en();case 82:return tn(233);case 77:return tn(234);case 101:return function(){var e=Ee(235);return he(101),Te()||(e.expression=H(ur)),ke(),Fe(e)}();case 112:return function(){var e=Ee(236);return he(112),he(20),e.expression=H(ur),he(21),e.statement=W(16777216,pn),Fe(e)}();case 103:return function(){var e=Ee(237);he(103),he(20),e.expression=H(ur),he(21);var t=Ee(251);return he(18),t.clauses=rt(2,rn),he(19),e.caseBlock=Fe(t),Fe(e)}();case 105:return function(){var e=Ee(239);return he(105),e.expression=A.hasPrecedingLineBreak()?void 0:H(ur),ke(),Fe(e)}();case 107:case 79:case 92:return nn();case 83:return function(){var e=Ee(241);return he(83),ke(),Fe(e)}();case 59:return gn();case 126:case 114:case 145:case 135:case 136:case 130:case 81:case 88:case 89:case 96:case 117:case 118:case 119:case 122:case 120:case 138:case 150:if(ln())return gn()}return function(){var e=Ne(75===oe()?0:226),t=H(ur);return 75===t.kind&&be(58)?(e.kind=238,e.label=t,e.statement=pn()):(e.kind=226,e.expression=t,ke()),Fe(e)}()}function fn(e){return 130===e.kind}function gn(){var t=me((function(){return Mn(),Ln()})),r=e.some(t,fn);if(r){var n=W(8388608,(function(){var e=it(D);if(e)return at(e)}));if(n)return n}var i=Ne(0);if(i.decorators=Mn(),i.modifiers=Ln(),r){for(var a=0,o=i.modifiers;a<o.length;a++){o[a].flags|=8388608}return W(8388608,(function(){return mn(i)}))}return mn(i)}function mn(t){switch(oe()){case 109:case 115:case 81:return En(t);case 94:return Nn(t);case 80:return jn(t);case 114:return function(e){return e.kind=246,he(114),e.name=Oe(),e.typeParameters=Ct(),e.heritageClauses=zn(),e.members=jt(),Fe(e)}(t);case 145:return function(e){return e.kind=247,he(145),e.name=Oe(),e.typeParameters=Ct(),he(62),e.type=ir(),ke(),Fe(e)}(t);case 88:return function(e){e.kind=248,he(88),e.name=Oe(),he(18)?(e.members=q(40960,(function(){return st(6,Wn)})),he(19)):e.members=ut();return Fe(e)}(t);case 150:case 135:case 136:return function(e){var t=0;if(150===oe())return Gn(e);if(be(136))t|=16;else if(he(135),10===oe())return Gn(e);return function e(t,r){t.kind=249;var n=16&r;return t.flags|=r,t.name=Oe(),t.body=be(24)?e(Ee(0),4|n):Hn(),Fe(t)}(e,t)}(t);case 96:return function(t){he(96);var r,n=A.getStartPos();ve()&&(r=Oe());var i=!1;149===oe()||"type"!==(null===r||void 0===r?void 0:r.escapedText)||!ve()&&41!==oe()&&18!==oe()||(i=!0,r=ve()?Oe():void 0);if(r&&27!==oe()&&149!==oe())return function(t,r,n){t.kind=253,t.name=r,he(62),t.moduleReference=139===oe()&&me(Qn)?function(){var e=Ee(265);return he(139),he(20),e.expression=Yn(),he(21),Fe(e)}():_t(!1),ke();var i=Fe(t);n&&ne(i,e.Diagnostics.Only_ECMAScript_imports_may_use_import_type);return i}(t,r,i);t.kind=254,(r||41===oe()||18===oe())&&(t.importClause=function(e,t,r){var n=Ee(255,t);n.isTypeOnly=r,e&&(n.name=e);n.name&&!be(27)||(n.namedBindings=41===oe()?function(){var e=Ee(256);return he(41),he(123),e.name=Oe(),Fe(e)}():Zn(257));return Fe(n)}(r,n,i),he(149));return t.moduleSpecifier=Yn(),ke(),Fe(t)}(t);case 89:switch(ce(),oe()){case 84:case 62:return function(e){e.kind=259,be(62)?e.isExportEquals=!0:he(84);return e.expression=_r(),ke(),Fe(e)}(t);case 123:return function(e){return e.kind=252,he(123),he(136),e.name=Oe(),ke(),Fe(e)}(t);default:return function(e){e.kind=260,e.isTypeOnly=be(145);var t=A.getStartPos();be(41)?(be(123)&&(e.exportClause=function(e){var t=Ee(262,e);return t.name=Oe(),Fe(t)}(t)),he(149),e.moduleSpecifier=Yn()):(e.exportClause=Zn(261),(149===oe()||10===oe()&&!A.hasPrecedingLineBreak())&&(he(149),e.moduleSpecifier=Yn()));return ke(),Fe(e)}(t)}default:if(t.decorators||t.modifiers){var r=Pe(264,!0,e.Diagnostics.Declaration_expected);return r.pos=t.pos,r.decorators=t.decorators,r.modifiers=t.modifiers,Fe(r)}return}}function yn(){return ce(),!A.hasPrecedingLineBreak()&&(ve()||10===oe())}function vn(e,t){if(18===oe()||!Te())return $r(e,t);ke()}function hn(){if(27===oe())return Ee(215);var e=Ee(191);return e.dotDotDotToken=xe(25),e.name=Dn(),e.initializer=lr(),Fe(e)}function bn(){var e=Ee(191);e.dotDotDotToken=xe(25);var t=ve(),r=Be();return t&&58!==oe()?e.name=r:(he(58),e.propertyName=r,e.name=Dn()),e.initializer=lr(),Fe(e)}function xn(){return 18===oe()||22===oe()||76===oe()||ve()}function Dn(e){return 22===oe()?function(){var e=Ee(190);return he(22),e.elements=st(10,hn),he(23),Fe(e)}():18===oe()?function(){var e=Ee(189);return he(18),e.elements=st(9,bn),he(19),Fe(e)}():Oe(void 0,e)}function Sn(){return Cn(!0)}function Cn(t){var r=Ee(242);return r.name=Dn(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations),t&&75===r.name.kind&&53===oe()&&!A.hasPrecedingLineBreak()&&(r.exclamationToken=Ce()),r.type=or(),hr(oe())||(r.initializer=lr()),Fe(r)}function Tn(t){var r=Ee(243);switch(oe()){case 109:break;case 115:r.flags|=1;break;case 81:r.flags|=2;break;default:e.Debug.fail()}if(ce(),152===oe()&&me(kn))r.declarations=ut();else{var n=Y();z(t),r.declarations=st(8,t?Cn:Sn),z(n)}return Fe(r)}function kn(){return Qe()&&21===ce()}function En(e){return e.kind=225,e.declarationList=Tn(!1),ke(),Fe(e)}function Nn(t){t.kind=244,he(94),t.asteriskToken=xe(41),t.name=ii(t,84)?Yr():Oe();var r=t.asteriskToken?1:0,n=ii(t,126)?2:0;return Nt(58,r|n,t),t.body=vn(r|n,e.Diagnostics.or_expected),Fe(t)}function An(t){return ye((function(){if(129===oe()?he(129):10===oe()&&20===me(ce)?ye((function(){var e=mt();return"constructor"===e.text?e:void 0})):void 0)return t.kind=162,Nt(58,0,t),t.body=vn(0,e.Diagnostics.or_expected),Fe(t)}))}function Fn(e,t,r){e.kind=161,e.asteriskToken=t;var n=t?1:0,i=ii(e,126)?2:0;return Nt(58,n|i,e),e.body=vn(n|i,r),Fe(e)}function Pn(e){return e.kind=159,e.questionToken||53!==oe()||A.hasPrecedingLineBreak()||(e.exclamationToken=Ce()),e.type=or(),e.initializer=q(45056,lr),ke(),Fe(e)}function wn(t){var r=xe(41);return t.name=Be(),t.questionToken=xe(57),r||20===oe()||29===oe()?Fn(t,r,e.Diagnostics.or_expected):Pn(t)}function In(e,t){return e.kind=t,e.name=Be(),Nt(58,0,e),e.body=vn(0),Fe(e)}function On(){var t;if(59===oe())return!0;for(;e.isModifierKind(oe());){if(t=oe(),e.isClassMemberModifier(t))return!0;ce()}if(41===oe())return!0;if(Le()&&(t=oe(),ce()),22===oe())return!0;if(void 0!==t){if(!e.isKeyword(t)||142===t||131===t)return!0;switch(oe()){case 20:case 29:case 53:case 58:case 62:case 57:return!0;default:return Te()}}return!1}function Mn(){for(var e,t=ae();;){var r=ae();if(!be(59))break;var n=Ee(157,r);n.expression=W(16384,Er),Fe(n),(e||(e=[])).push(n)}return e&&Ae(e,t)}function Ln(t){for(var r,n=ae();;){var i=A.getStartPos(),a=oe();if(81===oe()&&t){if(!ye(ze))break}else if(!e.isModifierKind(oe())||!ye(Ue))break;var o=Fe(Ee(a,i));(r||(r=[])).push(o)}return r&&Ae(r,n)}function Rn(){var e;if(126===oe()){var t=A.getStartPos(),r=oe();ce(),e=Ae([Fe(Ee(r,t))],t)}return e}function Bn(){if(26===oe()){var t=Ee(222);return ce(),Fe(t)}var r=Ne(0);if(r.decorators=Mn(),r.modifiers=Ln(!0),Je(131))return In(r,163);if(Je(142))return In(r,164);if(129===oe()||10===oe()){var n=An(r);if(n)return n}if(Pt())return It(r);if(e.tokenIsIdentifierOrKeyword(oe())||10===oe()||8===oe()||41===oe()||22===oe()){if(r.modifiers&&e.some(r.modifiers,fn)){for(var i=0,a=r.modifiers;i<a.length;i++){a[i].flags|=8388608}return W(8388608,(function(){return wn(r)}))}return wn(r)}return r.decorators||r.modifiers?(r.name=Pe(75,!0,e.Diagnostics.Declaration_expected),Pn(r)):e.Debug.fail("Should not have attempted to parse class member declaration.")}function jn(e){return Jn(e,245)}function Jn(e,t){return e.kind=t,he(80),e.name=!ve()||113===oe()&&me(Xe)?void 0:Oe(),e.typeParameters=Ct(),e.heritageClauses=zn(),he(18)?(e.members=rt(5,Bn),he(19)):e.members=ut(),Fe(e)}function zn(){if(qn())return rt(22,Un)}function Un(){var t=oe();e.Debug.assert(90===t||113===t);var r=Ee(279);return r.token=t,ce(),r.types=st(7,Kn),Fe(r)}function Kn(){var e=Ee(216);return e.expression=Er(),e.typeArguments=Vn(),Fe(e)}function Vn(){return 29===oe()?lt(20,ir,29,31):void 0}function qn(){return 90===oe()||113===oe()}function Wn(){var e=Ne(284);return e.name=Be(),e.initializer=H(lr),Fe(e)}function Hn(){var e=Ee(250);return he(18)?(e.statements=rt(1,pn),he(19)):e.statements=ut(),Fe(e)}function Gn(e){return e.kind=249,150===oe()?(e.name=Oe(),e.flags|=1024):(e.name=mt(),e.name.text=we(e.name.text)),18===oe()?e.body=Hn():ke(),Fe(e)}function Qn(){return 20===ce()}function Xn(){return 43===ce()}function Yn(){if(10===oe()){var e=mt();return e.text=we(e.text),e}return ur()}function Zn(e){var t=Ee(e);return t.elements=lt(23,257===e?ei:$n,18,19),Fe(t)}function $n(){return ti(263)}function ei(){return ti(258)}function ti(t){var r=Ee(t),n=e.isKeyword(oe())&&!ve(),i=A.getTokenPos(),a=A.getTextPos(),o=Me();return 123===oe()?(r.propertyName=o,he(123),n=e.isKeyword(oe())&&!ve(),i=A.getTokenPos(),a=A.getTextPos(),r.name=Me()):r.name=o,258===t&&n&&re(i,a,e.Diagnostics.Identifier_expected),Fe(r)}function ri(e){return ii(e,89)||253===e.kind&&265===e.moduleReference.kind||254===e.kind||259===e.kind||260===e.kind?e:void 0}function ni(t){return function(t){return e.isMetaProperty(t)&&96===t.keywordToken&&"meta"===t.name.escapedText}(t)?t:d(t,ni)}function ii(t,r){return e.some(t.modifiers,(function(e){return e.kind===r}))}t.parseSourceFile=function(t,r,n,i,a,o){if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(t,o))){var s=w(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}O(r,n,i,o);var c=L(t,n,a,o);return M(),c},t.parseIsolatedEntityName=function(e,t){O(e,t,void 0,1),ce();var r=_t(!0),n=1===oe()&&!c.length;return M(),n?r:void 0},t.parseJsonText=w,t.fixupParentReferences=B,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"}(E||(E={})),function(t){function r(t){var r,n=Ee(294),i=(t?be:he)(18);return n.type=W(4194304,Dt),t&&!i||(r=19,oe()===r?ue():ee(e.Diagnostics._0_expected,e.tokenToString(r))),B(n),Fe(n)}var n,i;function a(t,n){void 0===t&&(t=0);var i=y,a=void 0===n?i.length:t+n;if(n=a-t,e.Debug.assert(t>=0),e.Debug.assert(t<=a),e.Debug.assert(a<=i.length),_(i,t)){var o,s,c,u=[];return A.scanRange(t+3,n-5,(function(){var e,r=1,n=t-Math.max(i.lastIndexOf("\n",t),0)+4;function _(t){e||(e=n),u.push(t),n+=t.length}for(ue();M(5););M(4)&&(r=0,n=0);e:for(;;){switch(oe()){case 59:0===r||1===r?(d(u),h(m(n)),r=0,e=void 0):_(A.getTokenText());break;case 4:u.push(A.getTokenText()),r=0,n=0;break;case 41:var p=A.getTokenText();1===r||2===r?(r=2,_(p)):(r=1,n+=p.length);break;case 5:var f=A.getTokenText();2===r?u.push(f):void 0!==e&&n+f.length>e&&u.push(f.slice(e-n-1)),n+=f.length;break;case 1:break e;default:r=2,_(A.getTokenText())}ue()}return l(u),d(u),function(){var e=Ee(303,t);return e.tags=o&&Ae(o,s,c),e.comment=u.length?u.join(""):void 0,Fe(e,a)}()}))}function l(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function d(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function p(){for(;;){if(ue(),1===oe())return!0;if(5!==oe()&&4!==oe())return!1}}function f(){if(5!==oe()&&4!==oe()||!me(p))for(;5===oe()||4===oe();)ue()}function g(){if((5===oe()||4===oe())&&me(p))return"";for(var e=A.hasPrecedingLineBreak(),t=!1,r="";e&&41===oe()||5===oe()||4===oe();)r+=A.getTokenText(),4===oe()?(e=!0,t=!0,r=""):41===oe()&&(e=!1),ue();return t?r:""}function m(t){e.Debug.assert(59===oe());var n=A.getTokenPos();ue();var i,a=L(void 0),s=g();switch(a.escapedText){case"author":i=function(e,t,r){var n=Ee(309,e);n.tagName=t;var i=ye((function(){return function(){var e=[],t=!1,r=!1,n=A.getToken();e:for(;;){switch(n){case 75:case 5:case 24:case 59:e.push(A.getTokenText());break;case 29:if(t||r)return;t=!0,e.push(A.getTokenText());break;case 31:if(!t||r)return;r=!0,e.push(A.getTokenText()),A.setTextPos(A.getTokenPos()+1);break e;case 4:case 1:break e}n=ue()}if(t&&r)return 0===e.length?void 0:e.join("")}()}));if(!i)return Fe(n);if(n.comment=i,me((function(){return 4!==ce()}))){var a=v(r);a&&(n.comment+=a)}return Fe(n)}(n,a,t);break;case"implements":i=function(e,t){var r=Ee(308,e);return r.tagName=t,r.class=k(),Fe(r)}(n,a);break;case"augments":case"extends":i=function(e,t){var r=Ee(307,e);return r.tagName=t,r.class=k(),Fe(r)}(n,a);break;case"class":case"constructor":i=E(n,310,a);break;case"public":i=E(n,311,a);break;case"private":i=E(n,312,a);break;case"protected":i=E(n,313,a);break;case"readonly":i=E(n,314,a);break;case"this":i=function(e,t){var n=Ee(319,e);return n.tagName=t,n.typeExpression=r(!0),f(),Fe(n)}(n,a);break;case"enum":i=function(e,t){var n=Ee(316,e);return n.tagName=t,n.typeExpression=r(!0),f(),Fe(n)}(n,a);break;case"arg":case"argument":case"param":return C(n,a,2,t);case"return":case"returns":i=function(t,r){e.some(o,e.isJSDocReturnTag)&&re(r.pos,A.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var n=Ee(318,t);return n.tagName=r,n.typeExpression=b(),Fe(n)}(n,a);break;case"template":i=function(t,n){var i;18===oe()&&(i=r());var a=[],o=ae();do{f();var s=Ee(155);s.name=L(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Fe(s),g(),a.push(s)}while(M(27));var c=Ee(321,t);return c.tagName=n,c.constraint=i,c.typeParameters=Ae(a,o),Fe(c),c}(n,a);break;case"type":i=T(n,a);break;case"typedef":i=function(t,r,n){var i=b();g();var a,o=Ee(322,t);if(o.tagName=r,o.fullName=N(),o.name=F(o.fullName),f(),o.comment=v(n),o.typeExpression=i,!i||S(i.type)){for(var s=void 0,c=void 0,u=void 0;s=ye((function(){return w(n)}));)if(c||(c=Ee(304,t)),320===s.kind){if(u)break;u=s}else c.jsDocPropertyTags=e.append(c.jsDocPropertyTags,s);c&&(i&&174===i.type.kind&&(c.isArrayType=!0),o.typeExpression=u&&u.typeExpression&&!S(u.typeExpression.type)?u.typeExpression:Fe(c),a=o.typeExpression.end)}return Fe(o,a||void 0!==o.comment?A.getStartPos():(o.fullName||o.typeExpression||o.tagName).end)}(n,a,t);break;case"callback":i=function(t,r,n){var i,a=Ee(315,t);a.tagName=r,a.fullName=N(),a.name=F(a.fullName),f(),a.comment=v(n);var o=Ee(305,t);o.parameters=[];for(;i=ye((function(){return I(4,n)}));)o.parameters=e.append(o.parameters,i);var s=ye((function(){if(M(59)){var e=m(n);if(e&&318===e.kind)return e}}));s&&(o.type=s);return a.typeExpression=Fe(o),Fe(a)}(n,a,t);break;default:i=function(e,t){var r=Ee(306,e);return r.tagName=t,Fe(r)}(n,a)}return i.comment||(s||(t+=i.end-i.pos),i.comment=v(t,s.slice(t))),i}function v(t,r){var n,i=[],a=0;function o(e){n||(n=t),i.push(e),t+=e.length}void 0!==r&&(""!==r&&o(r),a=1);var s=oe();e:for(;;){switch(s){case 4:a>=1&&(a=0,i.push(A.getTokenText())),t=0;break;case 59:if(3===a){i.push(A.getTokenText());break}A.setTextPos(A.getTextPos()-1);case 1:break e;case 5:if(2===a||3===a)o(A.getTokenText());else{var c=A.getTokenText();void 0!==n&&t+c.length>n&&i.push(c.slice(n-t)),t+=c.length}break;case 18:a=2,me((function(){return 59===ue()&&e.tokenIsIdentifierOrKeyword(ue())&&"link"===A.getTokenText()}))&&(o(A.getTokenText()),ue(),o(A.getTokenText()),ue()),o(A.getTokenText());break;case 61:a=3===a?2:3,o(A.getTokenText());break;case 41:if(0===a){a=1,t+=1;break}default:3!==a&&(a=2),o(A.getTokenText())}s=ue()}return l(i),d(i),0===i.length?void 0:i.join("")}function h(e){e&&(o?o.push(e):(o=[e],s=e.pos),c=e.end)}function b(){return g(),18===oe()?r():void 0}function D(){var t=M(22);t&&f();var r,n=M(61),i=function(){var e=L();be(22)&&he(23);for(;be(24);){var t=L();be(22)&&he(23),e=dt(e,t)}return e}();return n&&(De(r=61)||Pe(r,!1,e.Diagnostics._0_expected,e.tokenToString(r))),t&&(f(),xe(62)&&ur(),he(23)),{name:i,isBracketed:t}}function S(t){switch(t.kind){case 141:return!0;case 174:return S(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function C(t,r,n,i){var a=b(),o=!a;g();var s=D(),c=s.name,u=s.isBracketed;f(),o&&(a=b());var l=Ee(1===n?323:317,t),_=v(i+A.getStartPos()-t),d=4!==n&&function(t,r,n,i){if(t&&S(t.type)){for(var a=Ee(294,A.getTokenPos()),o=void 0,s=void 0,c=A.getStartPos(),u=void 0;o=ye((function(){return I(n,i,r)}));)317!==o.kind&&323!==o.kind||(u=e.append(u,o));if(u)return(s=Ee(304,c)).jsDocPropertyTags=u,174===t.type.kind&&(s.isArrayType=!0),a.type=Fe(s),Fe(a)}}(a,c,n,i);return d&&(a=d,o=!0),l.tagName=r,l.typeExpression=a,l.name=c,l.isNameFirst=o,l.isBracketed=u,l.comment=_,Fe(l)}function T(t,n){e.some(o,e.isJSDocTypeTag)&&re(n.pos,A.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var i=Ee(320,t);return i.tagName=n,i.typeExpression=r(!0),Fe(i)}function k(){var e=be(18),t=Ee(216);t.expression=function(){var e=L();for(;be(24);){var t=Ee(194,e.pos);t.expression=e,t.name=L(),e=Fe(t)}return e}(),t.typeArguments=Vn();var r=Fe(t);return e&&he(19),r}function E(e,t,r){var n=Ee(t,e);return n.tagName=r,Fe(n)}function N(t){var r=A.getTokenPos();if(e.tokenIsIdentifierOrKeyword(oe())){var n=L();if(be(24)){var i=Ee(249,r);return t&&(i.flags|=4),i.name=n,i.body=N(!0),Fe(i)}return t&&(n.isInJSDocNamespace=!0),n}}function F(t){if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}}function P(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 w(e){return I(1,e)}function I(t,r,n){for(var i=!0,a=!1;;)switch(ue()){case 59:if(i){var o=O(t,r);return!(o&&(317===o.kind||323===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!P(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 75:i=!1;break;case 1:return!1}}function O(t,r){e.Debug.assert(59===oe());var n=A.getStartPos();ue();var i,a=L();switch(f(),a.escapedText){case"type":return 1===t&&T(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&C(n,a,t,r)}function M(e){return oe()===e&&(ue(),!0)}function L(t){if(!e.tokenIsIdentifierOrKeyword(oe()))return Pe(75,!t,t||e.Diagnostics.Identifier_expected);x++;var r=A.getTokenPos(),n=A.getTextPos(),i=Ee(75,r);return 75!==oe()&&(i.originalKeywordKind=oe()),i.escapedText=e.escapeLeadingUnderscores(we(A.getTokenValue())),Fe(i,n),ue(),i}}t.parseJSDocTypeExpressionForTests=function(e,t,n){O(e,99,void 0,1),s=j("file.js",99,1,!1),A.setText(e,t,n),l=A.scan();var i=r(),a=c;return M(),i?{jsDocTypeExpression:i,diagnostics:a}:void 0},t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=function(e,t,r){O(e,99,void 0,1),s={languageVariant:0,text:e};var n=W(4194304,(function(){return a(t,r)})),i=c;return M(),n?{jsDoc:n,diagnostics:i}:void 0},t.parseJSDocComment=function(e,t,r){var n,i=l,o=c.length,u=P,_=W(4194304,(function(){return a(t,r)}));return _&&(_.parent=e),131072&T&&(s.jsDocDiagnostics||(s.jsDocDiagnostics=[]),(n=s.jsDocDiagnostics).push.apply(n,c)),l=i,c.length=o,P=u,_},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(n||(n={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(i||(i={}))}(N=t.JSDocParser||(t.JSDocParser={}))}(s||(s={})),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),t.pos+=i,t.end+=i,c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),d(t,u,l),e.hasJSDocNodes(t))for(var _=0,p=t.jsDoc;_<p.length;_++){u(p[_])}a(t,c)}function l(e){e._children=void 0,e.pos+=i,e.end+=i;for(var t=0,r=e;t<r.length;t++){u(r[t])}}}function n(e){switch(e.kind){case 10:case 8:case 75: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),t.pos=Math.min(t.pos,i),t.end>=n?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end))}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])}d(t,i),e.Debug.assert(n<=t.end)}}function o(t,r){var n,i=t;if(d(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 d(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 c(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)}}var u;t.updateSourceFile=function(t,n,u,l){if(c(t,n,u,l=l||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(u))return t;if(0===t.statements.length)return s.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var _=t;e.Debug.assert(!_.hasBeenIncrementallyParsed),_.hasBeenIncrementallyParsed=!0;var p=t.text,f=function(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 d(t,a,o);function a(t){return e>=t.pos&&e<t.end&&(d(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 d(c,a,o),!0}}return!1}}(o)),a=o,e.Debug.assert(!i||i.pos===o),i}}}(t),g=function(t,r){for(var n=r.span.start,i=0;n>0&&i<=1;i++){var a=o(t,n);e.Debug.assert(a.pos<=n);var s=a.pos;n=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),u=r.newLength+(r.span.start-n);return e.createTextChangeRange(c,u)}(t,u);c(t,n,g,l),e.Debug.assert(g.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(g.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(g))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var m=e.textChangeRangeNewSpan(g).length-g.span.length;!function(t,n,o,s,c,u,l,_){return void p(t);function p(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),d(t,p,f),e.hasJSDocNodes(t))for(var m=0,y=t.jsDoc;m<y.length;m++){p(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 d=0,f=t;d<f.length;d++){p(f[d])}}else e.Debug.assert(a<n)}}}(_,g.span.start,e.textSpanEnd(g.span),e.textSpanEnd(e.textChangeRangeNewSpan(g)),m,p,n,l);var y=s.parseSourceFile(t.fileName,n,t.languageVersion,f,!0,t.scriptKind);return y.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,y.commentDirectives,g.span.start,e.textSpanEnd(g.span),m,p,n,l),y},function(e){e[e.Value=-1]="Value"}(u||(u={}))}(c||(c={})),e.isDeclarationFileName=f,e.processCommentPragmas=g,e.processPragmasIntoFields=m;var y=e.createMap();function v(e){if(y.has(e))return y.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return y.set(e,t),t}var h=/^\/\/\/\s*<(\S+)\s.*?\/>/im,b=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function x(t,r,n){var i=2===r.kind&&h.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],_=v(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&&b.exec(n);if(p)return D(t,r,2,p);if(3===r.kind)for(var f=/\s*@(\S+)\s*(.*)\s*$/gim,g=void 0;g=f.exec(n);)D(t,r,4,g)}}function D(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 S(e,t){return e.kind===t.kind&&(75===e.kind?e.escapedText===t.escapedText:104===e.kind||e.name.escapedText===t.name.escapedText&&S(e.expression,t.expression))}e.tagNamesAreEquivalent=S}(d||(d={})),function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var t,r,n=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.esnext.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"]];function i(t){var r=e.createMap(),n=e.createMap();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 a(){return t||(t=i(e.optionDeclarations))}function c(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function u(t){return l(t,e.createCompilerDiagnostic)}function l(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 _(e,t,r){return ue(e,le(t||""),r)}function d(t,r,n){if(void 0===r&&(r=""),r=le(r),!e.startsWith(r,"-")){if(""===r)return[];var i=r.split(",");switch(t.element.type){case"number":return e.map(i,parseInt);case"string":return e.map(i,(function(e){return e||""}));default:return e.mapDefined(i,(function(e){return _(t.element,e,n)}))}}}function p(e){return e.name}function f(t,r,n,i){var a=e.getSpellingSuggestion(t,r.optionDeclarations,p);return a?n(r.unknownDidYouMeanDiagnostic,i||t,a.name):n(r.unknownOptionDiagnostic,i||t)}function g(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),_=v(t.getOptionsNameMap,l,!0);if(_)n=m(r,n,t,_,a,s);else{var d=v(P.getOptionsNameMap,l,!0);d?n=m(r,n,P,d,i||(i={}),s):s.push(f(l,t,e.createCompilerDiagnostic,c))}}else o.push(c)}}function u(t){var r=D(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 m(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]=!1,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,R(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=parseInt(t[r]),r++;break;case"boolean":var s=t[r];a[i.name]="false"!==s,"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=t[r]||"",r++;break;case"list":var c=d(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=_(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function y(e,t){return v(a,e,t)}function v(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=n.map((function(e){return e[0]})),e.libMap=e.createMapFromEntries(n),e.optionsForWatch=[{name:"watchFile",type:e.createMapFromTemplate({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:e.createMapFromTemplate({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:e.createMapFromTemplate({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}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Generates_a_CPU_profile},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0},{name:"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.optionDeclarations=o(e.commonOptionsWithBuild,[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing},{name:"target",shortName:"t",type:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,esnext:99}),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,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:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),affectsSourceFile:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files,transpileOptionValue:void 0},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation,transpileOptionValue:void 0},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_file_to_store_incremental_compilation_information,transpileOptionValue:void 0},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs,transpileOptionValue:void 0},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"importsNotUsedAsValues",type:e.createMapFromTemplate({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:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime,transpileOptionValue:void 0},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",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:"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:e.createMapFromTemplate({crlf:0,lf:1}),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",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:"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=o(e.commonOptionsWithBuild,[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],e.createOptionNameMap=i,e.getOptionsNameMap=a,e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=c,e.createCompilerDiagnosticForInvalidCustomType=u,e.parseCustomTypeOption=_,e.parseListTypeOption=d,e.parseCommandLineWorker=g,e.compilerOptionsDidYouMeanDiagnostics={getOptionsNameMap:a,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 g(e.compilerOptionsDidYouMeanDiagnostics,t,r)},e.getOptionFromName=y;var h={getOptionsNameMap:function(){return r||(r=i(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 b(t,r){var n=e.parseJsonText(t,r);return{config:M(n,n.parseDiagnostics),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function x(t,r){var n=D(t,r);return e.isString(n)?e.parseJsonText(t,n):{parseDiagnostics:[n]}}function D(t,r){var n;try{n=r(t)}catch(i){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,i.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function S(t){return e.arrayToMap(t,p)}e.parseBuildCommand=function(t){var r=g(h,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];return e.createCompilerDiagnostic.apply(void 0,arguments).messageText},e.getParsedCommandLineOfConfigFile=function(t,r,n,i,a,o){var s=D(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=D(t,r);return e.isString(n)?b(t,n):{config:{},error:n}},e.parseConfigFileTextToJson=b,e.readJsonConfigFile=x,e.tryReadFile=D;var C,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 k(){return C||(C=i(e.optionsForWatch))}var E,N,A,F,P={getOptionsNameMap:k,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 w(){return E||(E=S(e.optionDeclarations))}function I(){return N||(N=S(e.optionsForWatch))}function O(){return A||(A=S(e.typeAcquisitionDeclarations))}function M(e,t){return L(e,t,!0,void 0,void 0)}function L(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,l,_){for(var d=n?{}:void 0,p=function(i){if(281!==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,"?")),u(i.name)||r.push(e.createDiagnosticForNodeInSourceFile(t,i.name,e.Diagnostics.String_literal_with_double_quotes_expected));var p=e.isComputedNonLiteralName(i.name)?void 0:e.getTextOfPropertyName(i.name),g=p&&e.unescapeLeadingUnderscores(p),m=g&&s?s.get(g):void 0;g&&l&&!m&&(s?r.push(f(g,l,(function(r,n,a){return e.createDiagnosticForNodeInSourceFile(t,i.name,r,n,a)}))):r.push(e.createDiagnosticForNodeInSourceFile(t,i.name,l.unknownOptionDiagnostic,g)));var y=c(i.initializer,m);if("undefined"!==typeof g&&(n&&(d[g]=y),a&&(_||o(s)))){var v=B(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++){p(m[g])}return d}function c(i,a){switch(i.kind){case 106:return m(a&&"boolean"!==a.type),!0;case 91:return m(a&&"boolean"!==a.type),!1;case 100:return m(a&&"extends"===a.name),null;case 10:u(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 o=i.text;if(a&&!e.isString(a.type)){var _=a;_.type.has(o.toLowerCase())||r.push(l(_,(function(r,n,a){return e.createDiagnosticForNodeInSourceFile(t,i,r,n,a)})))}return o;case 8:return m(a&&"number"!==a.type),Number(i.text);case 207:if(40!==i.operator||8!==i.operand.kind)break;return m(a&&"number"!==a.type),-Number(i.operand.text);case 193:m(a&&"object"!==a.type);var d=i;if(a){var p=a;return s(d,p.elementOptions,p.extraKeyDiagnostics,p.name)}return s(d,void 0,void 0,void 0);case 192:return m(a&&"list"!==a.type),f=i.elements,g=a&&a.element,n?e.filter(f.map((function(e){return c(e,g)})),(function(e){return void 0!==e})):f.forEach((function(e){return c(e,g)}))}var f,g;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 m(n){n&&r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,a.name,R(a)))}}function u(r){return e.isStringLiteral(r)&&e.isStringDoubleQuoted(r,t)}}function R(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function B(t,r){return!!t&&(!!H(r)||("list"===t.type?e.isArray(r):typeof r===(e.isString(t.type)?t.type:"string")))}function j(t){return s({},e.arrayFrom(t.entries()).reduce((function(e,t){var r;return s(s({},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 z(t,r){return e.forEachEntry(r,(function(e,r){if(e===t)return r}))}function U(e,t){return K(e,a(),t)}function K(t,r,n){var i=r.optionsNameMap,a=e.createMap(),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=function e(t){return"string"===t.type||"number"===t.type||"boolean"===t.type||"object"===t.type?void 0:"list"===t.type?e(t.element):t.type}(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 V(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 Q(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 void 0===e||null===e}function G(t,r){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r))}function Q(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=[],p=ee(t,r,n,i,s,c,d,l),f=p.raw,g=e.extend(a,p.options||{}),m=o&&p.watchOptions?e.extend(o,p.watchOptions):p.watchOptions||o;g.configFilePath=s&&e.normalizeSlashes(s),W(g,r);var y=function(){var t,a,o;if(e.hasProperty(f,"files")&&!H(f.files))if(e.isArray(f.files)){t=f.files;var l=!(e.hasProperty(f,"references")&&!H(f.references))||0===f.references.length,p=e.hasProperty(f,"extends");if(0===t.length&&l&&!p)if(r){var m=s||"tsconfig.json",y=e.Diagnostics.The_files_list_in_config_file_0_is_empty,v=e.firstDefined(e.getTsConfigPropArray(r,"files"),(function(e){return e.initializer})),h=v?e.createDiagnosticForNodeInSourceFile(r,v,y,m):e.createCompilerDiagnostic(y,m);d.push(h)}else x(e.Diagnostics.The_files_list_in_config_file_0_is_empty,s||"tsconfig.json")}else x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array");e.hasProperty(f,"include")&&!H(f.include)&&(e.isArray(f.include)?a=f.include:x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array"));if(e.hasProperty(f,"exclude")&&!H(f.exclude))e.isArray(f.exclude)?o=f.exclude:x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array");else if(f.compilerOptions){var b=f.compilerOptions.outDir,D=f.compilerOptions.declarationDir;(b||D)&&(o=[b,D].filter((function(e){return!!e})))}void 0===t&&void 0===a&&(a=["**/*"]);var S=function(t,r,n,i,a,o,s,c,u){var l,_;i=e.normalizePath(i),r&&(l=me(r,s,!1,u,"include"));n&&(_=me(n,s,!0,u,"exclude"));var d=function(t,r,n,i){var a=e.getRegularExpressionForWildcard(r,n,"exclude"),o=a&&new RegExp(a,i?"":"i"),s={};if(void 0!==t){for(var c=[],u=0,l=t;u<l.length;u++){var _=l[u],d=e.normalizePath(e.combinePaths(n,_));if(!o||!o.test(d)){var p=ye(d,i);if(p){var f=p.key,g=p.flags,m=s[f];(void 0===m||m<g)&&(s[f]=g,1===g&&c.push(f))}}}for(var f in s)if(e.hasProperty(s,f))for(var y=0,v=c;y<v.length;y++){var h=v[y];f!==h&&e.containsPath(h,f,n,!i)&&delete s[f]}}return s}(l,_,i,o.useCaseSensitiveFileNames);return ge({filesSpecs:t,includeSpecs:r,excludeSpecs:n,validatedIncludeSpecs:l,validatedExcludeSpecs:_,wildcardDirectories:d},i,a,o,c)}(t,a,o,s?G(s,i):i,g,n,d,u,r);Y(S,Z(f),c)&&d.push(X(S.spec,s));if(e.hasProperty(f,"references")&&!H(f.references))if(e.isArray(f.references))for(var C=0,T=f.references;C<T.length;C++){var k=T[C];"string"!==typeof k.path?x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(_||(_=[])).push({path:e.getNormalizedAbsolutePath(k.path,i),originalPath:k.path,prepend:k.prepend,circular:k.circular})}else x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"references","Array");return S}(),v=y.fileNames,h=y.wildcardDirectories,b=y.spec;return{options:g,watchOptions:m,fileNames:v,projectReferences:_,typeAcquisition:p.typeAcquisition||ie(),raw:f,errors:d,wildcardDirectories:h,compileOnSave:!!f.compileOnSave,configFileSpecs:b};function x(t,n,i){r||d.push(e.createCompilerDiagnostic(t,n,i))}}function X(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.fileNames.length&&t&&(!r||0===r.length)}function Z(t){return!e.hasProperty(t,"files")&&!e.hasProperty(t,"references")}function $(e){return!!e.options}function ee(t,r,n,i,a,s,c,u){i=e.normalizeSlashes(i);var l=e.getNormalizedAbsolutePath(a||"",i);if(s.indexOf(l)>=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o(s,[l]).join(" -> "))),{raw:t||M(r,c)};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=ne(t.compilerOptions,n,a,i),c=ae(t.typeAcquisition||t.typingOptions,n,a,i),u=function(e,t,r){return oe(I(),e,t,void 0,P,r)}(t.watchOptions,n,a);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=se(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=te(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,c):function(t,r,n,i,a){var o,s,c,u,l=re(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=ie(i));break;case"typingOptions":u=s||(s=ie(i));break;default:e.Debug.fail("Unknown option")}u[r.name]=function t(r,n,i){if(H(i))return;if("list"===r.type){var a=r;return a.element.isFilePath||!e.isString(a.element.type)?e.filter(e.map(i,(function(e){return t(a.element,n,e)})),(function(e){return!!e})):i}if(!e.isString(r.type))return r.type.get(e.isString(i)?i.toLowerCase():i);return ce(r,n,i)}(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,l){switch(o){case"extends":var _=i?G(i,n):n;return void(u=te(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=L(t,a,!0,(void 0===F&&(F={name:void 0,type:"object",elementOptions:S([{name:"compilerOptions",type:"object",elementOptions:w(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:I(),extraKeyDiagnostics:P},{name:"typingOptions",type:"object",elementOptions:O(),extraKeyDiagnostics:T},{name:"typeAcquisition",type:"object",elementOptions:O(),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])}),F),_);o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:ie(i));return{raw:d,options:l,watchOptions:c,typeAcquisition:o,extendedConfigPath:u}}(r,n,i,a,c);if(_.extendedConfigPath){s=s.concat([l]);var d=function(t,r,n,i,a,o,s){var c,u,l,_,d=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);if(s&&(u=s.get(d)))l=u.extendedResult,_=u.extendedConfig;else{if(!(l=x(r,(function(e){return n.readFile(e)}))).parseDiagnostics.length){var p=e.getDirectoryPath(r);if($(_=ee(void 0,l,n,p,e.getBaseFileName(r),a,o,s))){var f=e.convertToRelativePath(p,i,e.identity),g=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(f,t)},m=function(t){y[t]&&(y[t]=e.map(y[t],g))},y=_.raw;m("include"),m("exclude"),m("files")}}s&&s.set(d,{extendedResult:l,extendedConfig:_})}t&&(t.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(c=t.extendedSourceFiles).push.apply(c,l.extendedSourceFiles));if(l.parseDiagnostics.length)return void o.push.apply(o,l.parseDiagnostics);return _}(r,_.extendedConfigPath,n,i,s,c,u);if(d&&$(d)){var p=d.raw,f=_.raw,g=function(e){var t=f[e]||p[e];t&&(f[e]=t)};g("include"),g("exclude"),g("files"),void 0===f.compileOnSave&&(f.compileOnSave=p.compileOnSave),_.options=e.assign({},d.options,_.options),_.watchOptions=_.watchOptions&&d.watchOptions?e.assign({},d.watchOptions,_.watchOptions):_.watchOptions||d.watchOptions}}return _}function te(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 re(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function ne(t,r,n,i){var a=re(i);return oe(w(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ie(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function ae(e,t,r,n){var i=ie(n),a=c(e);return oe(O(),a,t,i,T,r),i}function oe(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=se(c,r[s],n,o):o.push(f(s,a,e.createCompilerDiagnostic))}return i}}function se(t,r,n,i){if(B(t,r)){var a=t.type;return"list"===a&&e.isArray(r)?function(t,r,n,i){return e.filter(e.map(r,(function(e){return se(t.element,e,n,i)})),(function(e){return!!e}))}(t,r,n,i):e.isString(a)?ce(t,n,r):ue(t,r,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,R(t)))}function ce(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function ue(e,t,r){if(!H(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return i;r.push(u(e))}}function le(e){return"function"===typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.convertToObject=M,e.convertToObjectWorker=L,e.convertToTSConfig=function(t,r,n){var i=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),a=e.map(e.filter(t.fileNames,t.configFileSpecs&&t.configFileSpecs.validatedIncludeSpecs?function(t,r,n,i){if(!r)return function(e){return!0};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 function(e){return!0}}(r,t.configFileSpecs.validatedIncludeSpecs,t.configFileSpecs.validatedExcludeSpecs,n):function(e){return!0}),(function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),i)})),o=U(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),c=t.watchOptions&&K(t.watchOptions,k());return s(s({compilerOptions:s(s({},j(o)),{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:c&&j(c),references:e.map(t.projectReferences,(function(e){return s(s({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(a)?a:void 0},t.configFileSpecs?{include:J(t.configFileSpecs.validatedIncludeSpecs),exclude:t.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=a().optionsNameMap;for(var o in t)e.hasProperty(t,o)&&(n[o]=V(i.get(o.toLowerCase()),t[o],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n},e.parseJsonConfigFileContent=function(e,t,r,n,i,a,o,s,c){return Q(e,void 0,t,r,n,c,i,a,o,s)},e.parseJsonSourceFileConfigFileContent=q,e.setConfigFileInOptions=W,e.canJsonReportNoInutFiles=Z,e.updateErrorForNoInputFiles=function(t,r,n,i,a){var o=i.length;return Y(t,a)?i.push(X(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:ne(e,t,n,r),errors:n}},e.convertTypeAcquisitionFromJson=function(e,t,r){var n=[];return{options:ae(e,t,n,r),errors:n}};var _e=/(^|\/)\*\*\/?$/,de=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,pe=/\/[^/]*?[*?][^/]*\//,fe=/^[^*?]*(?=\/[^/]*[*?])/;function ge(t,r,n,i,a){void 0===a&&(a=[]),r=e.normalizePath(r);var o,s=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),c=e.createMap(),u=e.createMap(),l=e.createMap(),_=t.filesSpecs,d=t.validatedIncludeSpecs,p=t.validatedExcludeSpecs,f=t.wildcardDirectories,g=e.getSupportedExtensions(n,a),m=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(n,g);if(_)for(var y=0,v=_;y<v.length;y++){var h=v[y],b=e.getNormalizedAbsolutePath(h,r);c.set(s(b),b)}if(d&&d.length>0)for(var x=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,g,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,g,s);var p=s(t);c.has(p)||u.has(p)||u.set(p,t)},D=0,S=i.readDirectory(r,m,p,d,void 0);D<S.length;D++){x(b=S[D])}var C=e.arrayFrom(c.values()),T=e.arrayFrom(u.values());return{fileNames:C.concat(T,e.arrayFrom(l.values())),wildcardDirectories:f,spec:t}}function me(t,r,n,i,a){return t.filter((function(t){var o=function(t,r){if(!r&&_e.test(t))return e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(de.test(t))return e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}(t,n);return void 0!==o&&r.push(function(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}(o,t)),void 0===o}))}function ye(t,r){var n=fe.exec(t);return n?{key:r?n[0]:e.toFileNameLowerCase(n[0]),flags:pe.test(t)?1:0}:e.isImplicitGlob(t)?{key:t,flags:1}:void 0}function ve(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 ve(e,n)})):"";default:return e.forEachEntry(r.type,(function(e,r){if(e===t)return r}))}}e.getFileNamesFromConfigSpecs=ge,e.convertCompilerOptionsForTelemetry=function(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=y(r);void 0!==n&&(t[r]=ve(e[r],n))}return t}}(d||(d={})),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 c,u;function l(t){if(t)return e.Debug.assert(e.extensionIsTS(t.extension)),{fileName:t.path,packageId:t.packageId}}function _(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 d(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 p(r,n,i,a){var o=d(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 f(e,t,r){return p(e,"typings",t,r)||p(e,"types",t,r)}function g(e,t,r){return p(e,"main",t,r)}function m(r,n){var i=function(r,n){var i=d(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=y(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 y(t){for(var r in u||(u=new e.Version(e.version)),t)if(e.hasProperty(t,r)){var n=e.VersionRange.tryParse(r);if(void 0!==n&&n.test(u))return{version:r,paths:t[r]}}}function v(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,h)];var n;return e.forEachAncestorDirectory(e.normalizePath(t),(function(t){var i=e.combinePaths(t,h);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"}(c||(c={})),e.getPackageJsonTypesVersionsPaths=y,e.getEffectiveTypeRoots=v;var h=e.combinePaths("node_modules","@types");function b(t){var r=e.createMap(),n=e.createMap();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)?e.createMap():r,n.set(a,o));return o},clear:function(){r.clear(),n.clear()},setOwnOptions:function(e){t=e},setOwnMap:function(e){r=e}}}function x(t,r,n,i){return{getOrCreateCacheForDirectory:function(r,o){var s=e.toPath(r,n,i);return a(t,o,s,e.createMap)},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=e.createMap();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 D(r,n,i,a,o){var s=function(r,n,i,a){var o=a.compilerOptions,s=o.baseUrl,c=o.paths;if(s&&c&&!e.pathIsRelative(n))return a.traceEnabled&&(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)),W(r,n,s,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,o,s){var u=r(a,o);s&&(a=s.commandLine.options);var _=[],d={compilerOptions:a,host:o,traceEnabled:u,failedLookupLocations:_},p=v(a,o);u&&(void 0===i?void 0===p?t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,n):t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,n,p):void 0===p?t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,n,i):t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,n,i,p),s&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));var f,g=function(){if(p&&p.length)return u&&t(o,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),s=e.directoryProbablyExists(a,o);return!s&&u&&t(o,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),l(B(c.DtsOnly,i,!s,d))}));u&&t(o,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),m=!0;if(g||(g=function(){var r=i&&e.getDirectoryPath(i);if(void 0!==r){u&&t(o,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,r);var a=void 0;if(e.isExternalModuleNameRelative(n)){var s=e.normalizePathAndParts(e.combinePaths(r,n)).path;a=P(c.DtsOnly,s,!1,d,!0)}else{var _=U(c.DtsOnly,n,r,d,void 0,void 0);a=_&&_.value}var p=l(a);return!p&&u&&t(o,e.Diagnostics.Type_reference_directive_0_was_not_resolved,n),p}u&&t(o,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),m=!1),g){var y=g.fileName,h=g.packageId,b=a.preserveSymlinks?y:F(y,o,u);u&&(h?t(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,n,b,e.packageIdToString(h),m):t(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,n,b,m)),f={primary:m,resolvedFileName:b,packageId:h,isExternalLibraryImport:w(y)}}return{resolvedTypeReferenceDirective:f,failedLookupLocations:_}},e.getAutomaticTypeDirectiveNames=function(t,r){if(t.types)return t.types;var n=[];if(r.directoryExists&&r.getDirectories){var i=v(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 x(b(r),b(r),e,t)},e.createCacheWithRedirects=b,e.createModuleResolutionCacheWithMaps=x,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=N(n,i,a,o,s,c);break;case e.ModuleResolutionKind.Classic:d=Y(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=E(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=E(e,t,r).resolvedModule;return n&&n.resolvedFileName};var S=[c.JavaScript],C=[c.TypeScript,c.JavaScript],T=o(C,[c.Json]),k=[c.TSConfig];function E(t,r,n){return A(t,r,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},n,void 0,S,void 0)}function N(t,r,n,i,a,o,s){return A(t,e.getDirectoryPath(r),n,i,a,s?k:n.resolveJsonModule?T:C,o)}function A(n,i,a,o,u,l,d){var p,f,g=r(a,o),m=[],y={compilerOptions:a,host:o,traceEnabled:g,failedLookupLocations:m},v=e.forEach(l,(function(r){return function(r){var l=D(r,n,i,(function(e,t,r,n){return P(e,t,r,n,!0)}),y);if(l)return Z({resolved:l,isExternalLibraryImport:w(l.path)});if(e.isExternalModuleNameRelative(n)){var _=e.normalizePathAndParts(e.combinePaths(i,n)),p=_.path,f=_.parts,m=P(r,p,!1,y,!0);return m&&Z({resolved:m,isExternalLibraryImport:e.contains(f,"node_modules")})}g&&t(o,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,n,c[r]);var v=U(r,n,i,y,u,d);if(!v)return;var h=v.value;if(!a.preserveSymlinks&&h&&!h.originalPath){var b=F(h.path,o,g),x=b===h.path?void 0:h.path;h=s(s({},h),{path:b,originalPath:x})}return{value:h&&{resolved:h,isExternalLibraryImport:!0}}}(r)}));return _(null===(p=null===v||void 0===v?void 0:v.value)||void 0===p?void 0:p.resolved,null===(f=null===v||void 0===v?void 0:v.value)||void 0===f?void 0:f.isExternalLibraryImport,m,y.resultFromCache)}function F(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 P(r,i,a,o,s){if(o.traceEnabled&&t(o.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,i,c[r]),!e.hasTrailingDirectorySeparator(i)){if(!a){var u=e.getDirectoryPath(i);e.directoryProbablyExists(u,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),a=!0)}var l=M(r,i,a,o);if(l){var _=s?function(t){var r=e.normalizePath(t.path),n=r.lastIndexOf(e.nodeModulesPathPart);if(-1===n)return;var i=n+e.nodeModulesPathPart.length,a=I(r,i);64===r.charCodeAt(i)&&(a=I(r,a));return r.slice(0,a)}(l):void 0;return n(_?j(_,!1,o):void 0,l)}}a||(e.directoryProbablyExists(i,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),a=!0));return B(r,i,a,o,s)}function w(t){return e.stringContains(t,e.nodeModulesPathPart)}function I(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function O(e,t,r,n){return i(M(e,t,r,n))}function M(r,n,i,a){if(r===c.Json||r===c.TSConfig){var o=e.tryRemoveExtension(n,".json");return void 0===o&&r===c.Json?void 0:L(o||n,r,i,a)}var s=L(n,r,i,a);if(s)return s;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 L(u,r,i,a)}}function L(t,r,n,i){if(!n){var a=e.getDirectoryPath(t);a&&(n=!e.directoryProbablyExists(a,i.host))}switch(r){case c.DtsOnly:return o(".d.ts");case c.TypeScript:return o(".ts")||o(".tsx")||o(".d.ts");case c.JavaScript:return o(".js")||o(".jsx");case c.TSConfig:case c.Json:return o(".json")}function o(e){var r=R(t+e,n,i);return void 0===r?void 0:{path:r,ext:e}}}function R(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 B(e,t,r,i,a){void 0===a&&(a=!0);var o=a?j(t,r,i):void 0;return n(o,J(e,t,r,i,o&&o.packageJsonContent,o&&o.versionPaths))}function j(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:m(u,i)}}s&&o&&t(a,e.Diagnostics.File_0_does_not_exist,c),i.failedLookupLocations.push(c)}function J(r,n,o,s,u,l){var _;if(u)switch(r){case c.JavaScript:case c.Json:_=g(u,n,s);break;case c.TypeScript:_=f(u,n,s)||g(u,n,s);break;case c.DtsOnly:_=f(u,n,s);break;case c.TSConfig:_=function(e,t,r){return p(e,"tsconfig",t,r)}(u,n,s);break;default:return e.Debug.assertNever(r)}var d=function(r,n,a,o){var s=R(n,a,o);if(s){var u=function(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&function(e,t){switch(e){case c.JavaScript:return".js"===t||".jsx"===t;case c.TSConfig:case c.Json:return".json"===t;case c.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case c.DtsOnly:return".d.ts"===t}}(t,n)?{path:r,ext:n}:void 0}(r,s);if(u)return i(u);o.traceEnabled&&t(o.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}return P(r===c.DtsOnly?c.TypeScript:r,n,a,o,!1)},m=_?!e.directoryProbablyExists(e.getDirectoryPath(_),s.host):void 0,y=o||!e.directoryProbablyExists(n,s.host),v=e.combinePaths(n,r===c.TSConfig?"tsconfig":"index");if(l&&(!_||e.containsPath(n,_))){var h=e.getRelativePathFromDirectory(n,_||v,!1);s.traceEnabled&&t(s.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=W(r,h,n,l.paths,d,m||y,s);if(b)return a(b.value)}var x=_&&a(d(r,_,m,s));return x||M(r,v,y,s)}function z(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 U(e,t,r,n,i,a){return K(e,t,r,n,!1,i,a)}function K(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=X(c,r,n,i);return o||Z(V(t,r,n,i,a))}}))}function V(r,n,i,a,o){var s=e.combinePaths(i,"node_modules"),u=e.directoryProbablyExists(s,a.host);!u&&a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,s);var l=o?void 0:q(r,n,s,u,a);if(l)return l;if(r===c.TypeScript||r===c.DtsOnly){var _=e.combinePaths(s,"@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),q(c.DtsOnly,function(r,n){var i=G(r);n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i);return i}(n,a),_,d,a)}}function q(r,a,o,s,c){var u=e.normalizePath(e.combinePaths(o,a)),l=j(u,!s,c);if(l){var _=M(r,u,!s,c);if(_)return i(_);var d=J(r,u,!s,c,l.packageJsonContent,l.versionPaths);return n(l,d)}var p=function(e,t,r,i){var a=M(e,t,r,i)||J(e,t,r,i,l&&l.packageJsonContent,l&&l.versionPaths);return n(l,a)},f=z(a),g=f.packageName,m=f.rest;if(""!==m){var y=e.combinePaths(o,g);if((l=j(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=W(r,m,y,l.versionPaths.paths,p,!v,c);if(h)return h.value}}return p(r,u,!s,c)}function W(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(l);if(void 0!==d){var p=R(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=N,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=w,e.parsePackageName=z;var H="__";function G(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,H);if(r!==t)return r.slice(1)}return t}function Q(t){return e.stringContains(t,H)?"@"+t.replace(H,e.directorySeparator):t}function X(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 Y(t,n,i,a,o,s){var u=[],l={compilerOptions:i,host:a,traceEnabled:r(i,a),failedLookupLocations:u},d=e.getDirectoryPath(n),p=f(c.TypeScript)||f(c.JavaScript);return _(p&&p.value,!1,u,l.resultFromCache);function f(r){var n=D(r,t,d,O,l);if(n)return{value:n};if(e.isExternalModuleNameRelative(t)){var i=e.normalizePath(e.combinePaths(d,t));return Z(O(r,i,!1,l))}var a=o&&o.getOrCreateCacheForModuleName(t,s),u=e.forEachAncestorDirectory(d,(function(n){var i=X(a,t,n,l);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return Z(O(r,o,!1,l))}));return u||(r===c.TypeScript?function(e,t,r){return K(c.DtsOnly,e,t,r,!0,void 0,void 0)}(t,d,l):void 0)}}function Z(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/"+G(e)},e.mangleScopedPackageName=G,e.getPackageNameFromTypesPackageName=function(t){var r=e.removePrefix(t,"@types/");return r!==t?Q(r):t},e.unmangleScopedPackageName=Q,e.classicNameResolver=Y,e.loadModuleFromGlobalCache=function(n,i,a,o,s){var u=r(a,o);u&&t(o,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,n,s);var l=[],d={compilerOptions:a,host:o,traceEnabled:u,failedLookupLocations:l};return _(V(c.DtsOnly,n,s,d,!1),!0,l,d.resultFromCache)}}(d||(d={})),function(e){var t;function r(e,t){return e.body&&!e.body.parent&&g(e,e.body),e.body?n(e.body,t):1}function n(t,a){void 0===a&&(a=e.createMap());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 246:case 247:return 0;case 248:if(e.isEnumConst(t))return 2;break;case 254:case 253:if(!e.hasModifier(t,1))return 0;break;case 260:var o=t;if(!o.moduleSpecifier&&o.exportClause&&261===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 250: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 249:return r(t,a);case 75: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||g(a,u);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 c=function(){var t,n,i,c,p,m,y,v,h,b,x,D,S,C,T,k,E,N,A,F,P,w,I,O,M,L=0,R={flags:1},B={flags:1},j=0;function J(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(r,o){t=r,n=o,i=e.getEmitScriptTarget(n),w=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,o),O=e.createUnderscoreEscapedMap(),L=0,M=t.isDeclarationFile,I=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(R),e.Debug.attachFlowNodeDebugInfo(B),t.locals||(Be(t),t.symbolCount=L,t.classifiableNames=O,function(){if(!h)return;for(var r=p,n=v,i=y,o=c,s=x,u=0,_=h;u<_.length;u++){var d=_[u],f=e.getJSDocHost(d);p=e.findAncestor(f.parent,(function(e){return!!(1&Te(e))}))||t,y=e.getEnclosingBlockScopeContainer(f)||t,x=a({flags:2}),c=d,Be(d.typeExpression);var g=e.getNameOfDeclaration(d);if((e.isJSDocEnumTag(d)||!d.fullName)&&g&&e.isPropertyAccessEntityNameExpression(g.parent)){var m=$e(g.parent);if(m){Ye(t.symbol,g.parent,m,!!e.findAncestor(g,(function(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText})),!1);var b=p;switch(e.getAssignmentDeclarationPropertyAccessKind(g.parent)){case 1:case 2:p=e.isExternalOrCommonJsModule(t)?t:void 0;break;case 4:p=g.parent.expression;break;case 3:p=g.parent.expression.name;break;case 5:p=l(t,g.parent.expression)?t:e.isPropertyAccessExpression(g.parent.expression)?g.parent.expression.name:g.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}p&&W(d,524288,788968),p=b}}else e.isJSDocEnumTag(d)||!d.fullName||75===d.fullName.kind?(c=d.parent,Pe(d,524288,788968)):Be(d.fullName)}p=r,v=n,y=i,c=o,x=s}()),t=void 0,n=void 0,i=void 0,c=void 0,p=void 0,m=void 0,y=void 0,v=void 0,h=void 0,b=!1,x=void 0,D=void 0,S=void 0,C=void 0,T=void 0,k=void 0,E=void 0,A=void 0,F=!1,P=0,j=0};function z(e,t){return L++,new I(e,t)}function U(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 K(t){if(259===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(154===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 162:return"__constructor";case 170:case 165:case 305:return"__call";case 171:case 166:return"__new";case 167:return"__index";case 260:return"__export";case 290:return"export=";case 209:if(2===e.getAssignmentDeclarationKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 300:return e.isJSDocConstructSignature(t)?"__new":"__call";case 156:return e.Debug.assert(300===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 V(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(K(t)))}function q(r,n,i,a,s,c){e.Debug.assert(!e.hasDynamicName(i));var u,l=e.hasModifier(i,512)||e.isExportSpecifier(i)&&"default"===i.name.escapedText,_=l&&n?"default":K(i);if(void 0===_)u=z(0,"__missing");else if(u=r.get(_),2885600&a&&O.set(_,!0),u){if(c&&!u.isReplaceableByMethod)return u;if(u.flags&s)if(u.isReplaceableByMethod)r.set(_,u=z(0,_));else if(!(3&a&&67108864&u.flags)){e.isNamedDeclaration(i)&&(i.name.parent=i);var d=2&u.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,p=!0;(384&u.flags||384&a)&&(d=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,p=!1);var f=!1;e.length(u.declarations)&&(l?(d=e.Diagnostics.A_module_cannot_have_multiple_default_exports,p=!1,f=!0):u.declarations&&u.declarations.length&&259===i.kind&&!i.isExportEquals&&(d=e.Diagnostics.A_module_cannot_have_multiple_default_exports,p=!1,f=!0));var g=[];e.isTypeAliasDeclaration(i)&&e.nodeIsMissing(i.type)&&e.hasModifier(i,1)&&2887656&u.flags&&g.push(J(i,e.Diagnostics.Did_you_mean_0,"export type { "+e.unescapeLeadingUnderscores(i.name.escapedText)+" }"));var m=e.getNameOfDeclaration(i)||i;e.forEach(u.declarations,(function(r,n){var i=e.getNameOfDeclaration(r)||r,a=J(i,d,p?V(r):void 0);t.bindDiagnostics.push(f?e.addRelatedInfo(a,J(m,0===n?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a),f&&g.push(J(i,e.Diagnostics.The_first_export_default_is_here))}));var y=J(m,d,p?V(i):void 0);t.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,o([y],g))),u=z(0,_)}}else r.set(_,u=z(0,_)),c&&(u.isReplaceableByMethod=!0);return U(u,i,a),u.parent?e.Debug.assert(u.parent===n,"Existing symbol parent should match new one"):u.parent=n,u}function W(t,r,n){var i=1&e.getCombinedModifierFlags(t);if(2097152&r)return 263===t.kind||253===t.kind&&i?q(p.symbol.exports,p.symbol,t,r,n):q(p.locals,void 0,t,r,n);if(e.isJSDocTypeAlias(t)&&e.Debug.assert(e.isInJSFile(t)),!e.isAmbientModule(t)&&(i||64&p.flags)||e.isJSDocTypeAlias(t)){if(!p.locals||e.hasModifier(t,512)&&!K(t))return q(p.symbol.exports,p.symbol,t,r,n);var a=111551&r?1048576:0,o=q(p.locals,void 0,t,a,n);return o.exportSymbol=q(p.symbol.exports,p.symbol,t,r,n),t.localSymbol=o,o}return q(p.locals,void 0,t,r,n)}function H(e){if(M)Y(e);else if(536870912&e.transformFlags)M=!0,Y(e),M=!1,j|=e.transformFlags&~f(e.kind);else{var t=j;j=0,Y(e),j=t|d(e,j)}}function G(e){Q(e,(function(e){return 244===e.kind?Be(e):void 0})),Q(e,(function(e){return 244!==e.kind?Be(e):void 0}))}function Q(t,r){if(void 0===r&&(r=Be),void 0!==t)if(M)e.forEach(t,r);else{var n=j;j=0;for(var i=0,a=0,o=t;a<o.length;a++){var s=o[a];r(s),i|=-536870913&s.transformFlags}t.transformFlags=536870912|i,j|=n}}function X(t){e.forEachChild(t,Be,Q)}function Y(t){if(function(t){if(!(1&x.flags))return!1;if(x===R){if((e.isStatementButNotDeclaration(t)&&224!==t.kind||245===t.kind||249===t.kind&&function(e){var t=r(e);return 1===t||2===t&&!!n.preserveConstEnums}(t))&&(x=B,!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)&&u(t)&&e.isBlock(t.parent)){var n=t.parent.statements,i=e.sliceAfter(n,t);e.getRangesWhere(i,u,(function(e,t){return r(i[e],i[t-1])}))}else r(t,t)}(t,(function(t,r){return Re(i,t,r,e.Diagnostics.Unreachable_code_detected)}))}}return!0}(t))return X(t),void je(t);switch(t.kind>=225&&t.kind<=241&&!n.allowUnreachableCode&&(t.flowNode=x),t.kind){case 229:!function(e){var t=ye(e,ie()),r=ne(),n=ne();se(t,x),x=t,ge(e.expression,r,n),x=_e(r),me(e.statement,n,t),se(t,x),x=_e(n)}(t);break;case 228:!function(e){var t=ie(),r=ye(e,ne()),n=ne();se(t,x),x=t,me(e.statement,n,r),se(r,x),x=_e(r),ge(e.expression,t,n),x=_e(n)}(t);break;case 230:!function(e){var t=ye(e,ie()),r=ne(),n=ne();Be(e.initializer),se(t,x),x=t,ge(e.condition,r,n),x=_e(r),me(e.statement,n,t),Be(e.incrementor),se(t,x),x=_e(n)}(t);break;case 231:case 232:!function(e){var t=ye(e,ie()),r=ne();Be(e.expression),se(t,x),x=t,232===e.kind&&Be(e.awaitModifier);se(r,x),Be(e.initializer),243!==e.initializer.kind&&be(e.initializer);me(e.statement,r,t),se(t,x),x=_e(r)}(t);break;case 227:!function(e){var t=ne(),r=ne(),n=ne();ge(e.expression,t,r),x=_e(t),Be(e.thenStatement),se(n,x),x=_e(r),Be(e.elseStatement),se(n,x),x=_e(n)}(t);break;case 235:case 239:!function(e){Be(e.expression),235===e.kind&&(F=!0,C&&se(C,x));x=R}(t);break;case 234:case 233:!function(e){if(Be(e.label),e.label){var t=function(e){for(var t=A;t;t=t.next)if(t.name===e)return t;return}(e.label.escapedText);t&&(t.referenced=!0,ve(e,t.breakTarget,t.continueTarget))}else ve(e,D,S)}(t);break;case 240:!function(t){var r=C,n=E,i=ne(),a=ne(),o=ne();t.finallyBlock&&(C=a);se(o,x),E=o,Be(t.tryBlock),se(i,x),t.catchClause&&(x=_e(o),se(o=ne(),x),E=o,Be(t.catchClause),se(i,x));if(C=r,E=n,t.finallyBlock){var s=ne();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),x=s,Be(t.finallyBlock),1&x.flags?x=R:(C&&a.antecedents&&se(C,ae(s,a.antecedents,x)),x=i.antecedents?ae(s,i.antecedents,x):R)}else x=_e(i)}(t);break;case 237:!function(t){var r=ne();Be(t.expression);var n=D,i=N;D=r,N=x,Be(t.caseBlock),se(r,x);var a=e.forEach(t.caseBlock.clauses,(function(e){return 278===e.kind}));t.possiblyExhaustive=!a&&!r.antecedents,a||se(r,ue(N,t,0,0));D=n,N=i,x=_e(r)}(t);break;case 251:!function(e){var t=j;j=0;for(var r=e.clauses,i=Z(e.parent.expression),a=R,o=0;o<r.length;o++){for(var s=o;!r[o].statements.length&&o+1<r.length;)Be(r[o]),o++;var c=ne();se(c,i?ue(N,e.parent,s,o+1):N),se(c,a),x=_e(c);var u=r[o];Be(u),a=x,1&x.flags||o===r.length-1||!n.noFallthroughCasesInSwitch||(u.fallthroughFlowNode=x)}r.transformFlags=536870912|j,j|=t}(t);break;case 277:!function(e){var t=x;x=N,Be(e.expression),x=t,Q(e.statements)}(t);break;case 226:!function(t){if(Be(t.expression),196===t.expression.kind){var r=t.expression;e.isDottedName(r.expression)&&(x=function(e,t){return oe(e),a({flags:512,antecedent:e,node:t})}(x,r))}}(t);break;case 238:!function(t){var r=ne();A={next:A,name:t.label.escapedText,breakTarget:r,continueTarget:void 0,referenced:!1},Be(t.label),Be(t.statement),A.referenced||n.allowUnusedLabels||function(e,t,r){Re(e,t,t,r)}(e.unusedLabelIsError(n),t.label,e.Diagnostics.Unused_label);A=A.next,se(r,x),x=_e(r)}(t);break;case 207:!function(e){if(53===e.operator){var t=T;T=k,k=t,X(e),k=T,T=t}else X(e),45!==e.operator&&46!==e.operator||be(e.operand)}(t);break;case 208:!function(e){X(e),(45===e.operator||46===e.operator)&&be(e.operand)}(t);break;case 209:!function(t){var r={expr:[t],state:[1],inStrictMode:[void 0],parent:[void 0],subtreeFlags:[void 0]},n=0;for(;n>=0;)switch(t=r.expr[n],r.state[n]){case 0:t.parent=c;var i=w;Ue(t);var a=c;c=t;var o=void 0;if(M);else if(536870912&t.transformFlags)M=!0,o=-1;else{var s=j;j=0,o=s}_(1,i,a,o);break;case 1:if(55===(l=t.operatorToken.kind)||56===l||60===l){if(pe(t)){var u=ne();xe(t,u,u),x=_e(u)}else xe(t,T,k);p()}else _(2),g(t.left);break;case 2:_(3),g(t.operatorToken);break;case 3:_(4),g(t.right);break;case 4:var l=t.operatorToken.kind;if(e.isAssignmentOperator(l)&&!e.isAssignmentTarget(t))if(be(t.left),62===l&&195===t.left.kind)re(t.left.expression)&&(x=le(256,x,t));p();break;default:return e.Debug.fail("Invalid state "+r.state[n]+" for bindBinaryExpressionFlow")}function _(e,t,i,a){r.state[n]=e,void 0!==t&&(r.inStrictMode[n]=t),void 0!==i&&(r.parent[n]=i),void 0!==a&&(r.subtreeFlags[n]=a)}function p(){void 0!==r.inStrictMode[n]&&(-1===r.subtreeFlags[n]?(M=!1,j|=t.transformFlags&~f(t.kind)):void 0!==r.subtreeFlags[n]&&(j=r.subtreeFlags[n]|d(t,j)),w=r.inStrictMode[n],c=r.parent[n]),n--}function g(t){t&&e.isBinaryExpression(t)?(n++,r.expr[n]=t,r.state[n]=0,r.inStrictMode[n]=void 0,r.parent[n]=void 0,r.subtreeFlags[n]=void 0):Be(t)}}(t);break;case 203:!function(e){X(e),194===e.expression.kind&&be(e.expression)}(t);break;case 210:!function(e){var t=ne(),r=ne(),n=ne();ge(e.condition,t,r),x=_e(t),Be(e.questionToken),Be(e.whenTrue),se(n,x),x=_e(r),Be(e.colonToken),Be(e.whenFalse),se(n,x),x=_e(n)}(t);break;case 242:!function(t){X(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&function t(r){var n=e.isOmittedExpression(r)?void 0:r.name;if(e.isBindingPattern(n))for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];t(o)}else x=le(16,x,r)}(t)}(t);break;case 194:case 195:!function(t){e.isOptionalChain(t)?Ce(t):X(t)}(t);break;case 196:!function(t){if(e.isOptionalChain(t))Ce(t);else{var r=e.skipParentheses(t.expression);201===r.kind||202===r.kind?(Q(t.typeArguments),Q(t.arguments),Be(t.expression)):X(t)}if(194===t.expression.kind){var n=t.expression;e.isIdentifier(n.name)&&re(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(x=le(256,x,t))}}(t);break;case 218:!function(t){e.isOptionalChain(t)?Ce(t):X(t)}(t);break;case 322:case 315:case 316:!function(e){e.tagName.parent=e,316!==e.kind&&e.fullName&&g(e,e.fullName)}(t);break;case 290:G(t.statements),Be(t.endOfFileToken);break;case 223:case 250:G(t.statements);break;default:X(t)}je(t)}function Z(t){switch(t.kind){case 75:case 104:case 194:case 195:return ee(t);case 196:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++){if(ee(r[t]))return!0}if(194===e.expression.kind&&ee(e.expression.expression))return!0;return!1}(t);case 200:return Z(t.expression);case 209:return function(t){switch(t.operatorToken.kind){case 62:return ee(t.left);case 34:case 35:case 36:case 37:return re(t.left)||re(t.right)||te(t.right,t.left)||te(t.left,t.right);case 98:return re(t.left);case 97:return r=t.left,n=t.right,e.isStringLiteralLike(r)&&Z(n);case 27:return Z(t.right)}var r,n;return!1}(t);case 207:return 53===t.operator&&Z(t.operand);case 204:return Z(t.expression)}return!1}function $(t){return 75===t.kind||104===t.kind||102===t.kind||(e.isPropertyAccessExpression(t)||e.isNonNullExpression(t)||e.isParenthesizedExpression(t))&&$(t.expression)||e.isElementAccessExpression(t)&&e.isStringOrNumericLiteralLike(t.argumentExpression)&&$(t.expression)}function ee(t){return $(t)||e.isOptionalChain(t)&&ee(t.expression)}function te(t,r){return e.isTypeOfExpression(t)&&re(t.expression)&&e.isStringLiteralLike(r)}function re(e){switch(e.kind){case 200:return re(e.expression);case 209:switch(e.operatorToken.kind){case 62:return re(e.left);case 27:return re(e.right)}}return ee(e)}function ne(){return a({flags:4,antecedents:void 0})}function ie(){return a({flags:8,antecedents:void 0})}function ae(e,t,r){return a({flags:1024,target:e,antecedents:t,antecedent:r})}function oe(e){e.flags|=2048&e.flags?4096:2048}function se(t,r){1&r.flags||e.contains(t.antecedents,r)||((t.antecedents||(t.antecedents=[])).push(r),oe(r))}function ce(t,r,n){return 1&r.flags?r:n?!(106===n.kind&&64&t||91===n.kind&&32&t)||e.isExpressionOfOptionalChainRoot(n)||e.isNullishCoalesce(n.parent)?Z(n)?(oe(r),a({flags:t,antecedent:r,node:n})):r:R:32&t?r:R}function ue(e,t,r,n){return oe(e),a({flags:128,antecedent:e,switchStatement:t,clauseStart:r,clauseEnd:n})}function le(e,t,r){oe(t);var n=a({flags:e,antecedent:t,node:r});return E&&se(E,n),n}function _e(e){var t=e.antecedents;return t?1===t.length?t[0]:e:R}function de(e){for(;;)if(200===e.kind)e=e.expression;else{if(207!==e.kind||53!==e.operator)return 209===e.kind&&(55===e.operatorToken.kind||56===e.operatorToken.kind||60===e.operatorToken.kind);e=e.operand}}function pe(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 227:case 229:case 228:return t.expression===e;case 230:case 210:return t.condition===e}return!1}(t)&&!de(t.parent)&&!(e.isOptionalChain(t.parent)&&t.parent.expression===t)}function fe(e,t,r,n){var i=T,a=k;T=r,k=n,e(t),T=i,k=a}function ge(t,r,n){fe(Be,t,r,n),t&&(de(t)||e.isOptionalChain(t)&&e.isOutermostOptionalChain(t))||(se(r,ce(32,x,t)),se(n,ce(64,x,t)))}function me(e,t,r){var n=D,i=S;D=t,S=r,Be(e),D=n,S=i}function ye(e,t){for(var r=A;r&&238===e.parent.kind;)r.continueTarget=t,r=r.next,e=e.parent;return t}function ve(e,t,r){var n=234===e.kind?t:r;n&&(se(n,x),x=R)}function he(e){209===e.kind&&62===e.operatorToken.kind?be(e.left):be(e)}function be(e){if($(e))x=le(16,x,e);else if(192===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];213===n.kind?be(n.expression):he(n)}else if(193===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];281===o.kind?he(o.initializer):282===o.kind?be(o.name):283===o.kind&&be(o.expression)}}function xe(e,t,r){var n=ne();55===e.operatorToken.kind?ge(e.left,n,r):ge(e.left,t,n),x=_e(n),Be(e.operatorToken),ge(e.right,t,r)}function De(e){switch(e.kind){case 194:Be(e.questionDotToken),Be(e.name);break;case 195:Be(e.questionDotToken),Be(e.argumentExpression);break;case 196:Be(e.questionDotToken),Q(e.typeArguments),Q(e.arguments)}}function Se(t,r,n){var i=e.isOptionalChainRoot(t)?ne():void 0;!function(t,r,n){fe(Be,t,r,n),e.isOptionalChain(t)&&!e.isOutermostOptionalChain(t)||(se(r,ce(32,x,t)),se(n,ce(64,x,t)))}(t.expression,i||r,n),i&&(x=_e(i)),fe(De,t,r,n),e.isOutermostOptionalChain(t)&&(se(r,ce(32,x,t)),se(n,ce(64,x,t)))}function Ce(e){if(pe(e)){var t=ne();Se(e,t,t),x=_e(t)}else Se(e,T,k)}function Te(t){switch(t.kind){case 214:case 245:case 248:case 193:case 173:case 304:case 274:return 1;case 246:return 65;case 249:case 247:case 186:return 33;case 290:return 37;case 161:if(e.isObjectLiteralOrClassExpressionMethod(t))return 173;case 162:case 244:case 160:case 163:case 164:case 165:case 305:case 300:case 170:case 166:case 167:case 171:return 45;case 201:case 202:return 61;case 250:return 4;case 159:return t.initializer?4:0;case 280:case 230:case 231:case 232:case 251:return 2;case 223:return e.isFunctionLike(t.parent)?0:2}return 0}function ke(e){v&&(v.nextContainer=e),v=e}function Ee(r,n,i){switch(p.kind){case 249:return W(r,n,i);case 290:return function(r,n,i){return e.isExternalModule(t)?W(r,n,i):q(t.locals,void 0,r,n,i)}(r,n,i);case 214:case 245:return function(t,r,n){return e.hasModifier(t,32)?q(p.symbol.exports,p.symbol,t,r,n):q(p.symbol.members,p.symbol,t,r,n)}(r,n,i);case 248:return q(p.symbol.exports,p.symbol,r,n,i);case 173:case 304:case 193:case 246:case 274:return q(p.symbol.members,p.symbol,r,n,i);case 170:case 171:case 165:case 166:case 305:case 167:case 161:case 160:case 162:case 163:case 164:case 244:case 201:case 202:case 300:case 322:case 315:case 247:case 186:return q(p.locals,void 0,r,n,i)}}function Ne(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 Ae(e){var t=r(e),n=0!==t;return Ee(e,n?512:1024,n?110735:0),t}function Fe(e,t,r){var n=z(t,r);return 106508&t&&(n.parent=p.symbol),U(n,e,t),n}function Pe(t,r,n){switch(y.kind){case 249:W(t,r,n);break;case 290:if(e.isExternalOrCommonJsModule(p)){W(t,r,n);break}default:y.locals||(y.locals=e.createSymbolTable(),ke(y)),q(y.locals,void 0,t,r,n)}}function we(r){!(w&&r.originalKeywordKind>=113&&r.originalKeywordKind<=121)||e.isIdentifierName(r)||8388608&r.flags||4194304&r.flags||t.parseDiagnostics.length||t.bindDiagnostics.push(J(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)))}function Ie(r,n){if(n&&75===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 Oe(e){w&&Ie(e,e.name)}function Me(r){if(i<2&&290!==y.kind&&249!==y.kind&&!e.isFunctionLike(y)){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 Le(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 Re(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,s(s({},a),{category:e.DiagnosticCategory.Suggestion}))}(r,{pos:e.getTokenPosOfNode(n,t),end:i.end},a)}function Be(t){if(t){t.parent=c;var r=w;if(Ue(t),t.kind>152){var n=c;c=t;var i=Te(t);0===i?H(t):function(t,r){var n=p,i=m,o=y;if(1&r?(202!==t.kind&&(m=p),p=y=t,32&r&&(p.locals=e.createSymbolTable()),ke(p)):2&r&&((y=t).locals=void 0),4&r){var s=x,c=D,u=S,l=C,_=E,d=A,f=F,g=16&r&&!e.hasModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);g||(x=a({flags:2}),144&r&&(x.node=t)),C=g||162===t.kind?ne():void 0,E=void 0,D=void 0,S=void 0,A=void 0,F=!1,H(t),t.flags&=-2817,!(1&x.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,F&&(t.flags|=512),t.endFlowNode=x),290===t.kind&&(t.flags|=P),C&&(se(C,x),x=_e(C),162===t.kind&&(t.returnFlowNode=x)),g||(x=s),D=c,S=u,C=l,E=_,A=d,F=f}else 64&r?(b=!1,H(t),t.flags=b?128|t.flags:-129&t.flags):H(t);p=n,m=i,y=o}(t,i),c=n}else if(!M&&0===(536870912&t.transformFlags)){j|=d(t,0);n=c;1===t.kind&&(c=t),je(t),c=n}w=r}}function je(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r<n.length;r++){Be(n[r])}else for(var i=0,a=t.jsDoc;i<a.length;i++){g(t,a[i])}}function Je(t){if(!w)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.isPrologueDirective(i))return;if(ze(i))return void(w=!0)}}function ze(r){var n=e.getSourceTextOfNodeFromSourceFile(t,r.expression);return'"use strict"'===n||"'use strict'"===n}function Ue(r){switch(r.kind){case 75:if(r.isInJSDocNamespace){for(var i=r.parent;i&&!e.isJSDocTypeAlias(i);)i=i.parent;Pe(i,524288,788968);break}case 104:return x&&(e.isExpression(r)||282===c.kind)&&(r.flowNode=x),we(r);case 76:return function(r){"#constructor"===r.escapedText&&(t.parseDiagnostics.length||t.bindDiagnostics.push(J(r,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(r))))}(r);case 194:case 195:var a=r;x&&$(a)&&(a.flowNode=x),e.isSpecialPropertyDeclaration(a)&&function(t){104===t.expression.kind?We(t):e.isBindableStaticAccessExpression(t)&&290===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?Qe(t,t.parent):Xe(t))}(a),e.isInJSFile(a)&&t.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(a)&&!_(y,"module")&&q(t.locals,void 0,a.expression,134217729,111550);break;case 209:switch(e.getAssignmentDeclarationKind(r)){case 1:qe(r);break;case 2:!function(r){if(!Ve(r))return;var n=e.getRightMostAssignedExpression(r.right);if(e.isEmptyObjectLiteral(n)||p===t&&l(t,n))return;var i=e.exportAssignmentIsAlias(r)?2097152:1049092,a=q(t.symbol.exports,t.symbol,r,67108864|i,0);e.setValueDeclaration(a,r)}(r);break;case 3:Qe(r.left,r);break;case 6:!function(e){e.left.parent=e,e.right.parent=e,et(e.left.expression,e.left,!1,!0)}(r);break;case 4:We(r);break;case 5:!function(r){var n=tt(r.left.expression);if(!e.isInJSFile(r)&&!e.isFunctionSymbol(n))return;if(r.left.parent=r,r.right.parent=r,e.isIdentifier(r.left.expression)&&p===t&&l(t,r.left.expression))qe(r);else if(e.hasDynamicName(r)){Fe(r,67108868,"__computed");var i=Ye(n,r.left.expression,$e(r.left),!1,!1);Ge(r,i)}else Xe(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){w&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Ie(t,t.left)}(r);case 280:return function(e){w&&e.variableDeclaration&&Ie(e,e.variableDeclaration.name)}(r);case 203:return function(r){if(w&&75===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){w&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(J(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(r);case 208:return function(e){w&&Ie(e,e.operand)}(r);case 207:return function(e){w&&(45!==e.operator&&46!==e.operator||Ie(e,e.operand))}(r);case 236:return function(t){w&&Le(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(r);case 238:return function(t){w&&n.target>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Le(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(r);case 183:return void(b=!0);case 168:break;case 155: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()),q(r.locals,void 0,t,262144,526824)):Ee(t,262144,526824)}else if(181===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()),q(n.locals,void 0,t,262144,526824)):Fe(t,262144,K(t))}else Ee(t,262144,526824)}(r);case 156:return it(r);case 242:return nt(r);case 191:return r.flowNode=x,nt(r);case 159:case 158:return function(e){return at(e,4|(e.questionToken?16777216:0),0)}(r);case 281:case 282:return at(r,4,0);case 284:return at(r,8,900095);case 165:case 166:case 167:return Ee(r,131072,0);case 161:case 160:return at(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:103359);case 244:return function(r){t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(P|=2048);Oe(r),w?(Me(r),Pe(r,16,110991)):Ee(r,16,110991)}(r);case 162:return Ee(r,16384,0);case 163:return at(r,32768,46015);case 164:return at(r,65536,78783);case 170:case 300:case 305:case 171:return function(t){var r=z(131072,K(t));U(r,t,131072);var n=z(2048,"__type");U(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(r);case 173:case 304:case 186:return function(e){return Fe(e,2048,"__type")}(r);case 310:return function(t){X(t);var r=e.getHostSignatureFromJSDoc(t);r&&161!==r.kind&&U(r.symbol,r,32)}(r);case 193:return function(r){var n;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(n||(n={})),w&&!e.isAssignmentTarget(r))for(var i=e.createUnderscoreEscapedMap(),a=0,o=r.properties;a<o.length;a++){var s=o[a];if(283!==s.kind&&75===s.name.kind){var c=s.name,u=281===s.kind||282===s.kind||161===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 Fe(r,4096,"__object")}(r);case 201:case 202:return function(r){t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(P|=2048);x&&(r.flowNode=x);Oe(r);var n=r.name?r.name.escapedText:"__function";return Fe(r,16,n)}(r);case 196:switch(e.getAssignmentDeclarationKind(r)){case 7:return function(e){var t=tt(e.arguments[0]),r=290===e.parent.parent.kind;t=Ye(t,e.arguments[0],r,!1,!1),Ze(e,t,!1)}(r);case 8:return function(e){if(!Ve(e))return;var t=rt(e.arguments[0],void 0,(function(e,t){return t&&U(t,e,67110400),t}));if(t){q(t.exports,t,e,1048580,0)}}(r);case 9:return function(e){var t=tt(e.arguments[0].expression);t&&t.valueDeclaration&&U(t,t.valueDeclaration,32);Ze(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)&&Ve(r)}(r);break;case 214:case 245:return w=!0,function(r){if(245===r.kind)Pe(r,32,899503);else{var n=r.name?r.name.escapedText:"__class";Fe(r,32,n),r.name&&O.set(r.name.escapedText,!0)}var i=r.symbol,a=z(4194308,"prototype"),o=i.exports.get(a.escapedName);o&&(r.name&&(r.name.parent=r),t.bindDiagnostics.push(J(o.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(a))));i.exports.set(a.escapedName,a),a.parent=i}(r);case 246:return Pe(r,64,788872);case 247:return Pe(r,524288,788968);case 248:return function(t){return e.isEnumConst(t)?Pe(t,128,899967):Pe(t,256,899327)}(r);case 249:return function(r){if(Ne(r),e.isAmbientModule(r))if(e.hasModifier(r,1)&&Le(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(r))Ae(r);else{var n=void 0;if(10===r.name.kind){var i=r.name.text;e.hasZeroOrOneAsteriskCharacter(i)?n=e.tryParsePattern(i):Le(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=Ee(r,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&{pattern:n,symbol:a})}else{var o=Ae(r);if(0!==o)(a=r.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule}}(r);case 274:return function(e){return Fe(e,4096,"__jsxAttributes")}(r);case 273:return function(e,t,r){return Ee(e,t,r)}(r,4,0);case 253:case 256:case 258:case 263:return Ee(r,2097152,2097152);case 252:return function(r){r.modifiers&&r.modifiers.length&&t.bindDiagnostics.push(J(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(J(r,n)):(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),q(t.symbol.globalExports,t.symbol,r,2097152,2097152))}(r);case 255:return function(e){e.name&&Ee(e,2097152,2097152)}(r);case 260:return function(t){p.symbol&&p.symbol.exports?t.exportClause?e.isNamespaceExport(t.exportClause)&&(t.exportClause.parent=t,q(p.symbol.exports,p.symbol,t.exportClause,2097152,2097152)):q(p.symbol.exports,p.symbol,t,8388608,0):Fe(t,8388608,K(t))}(r);case 259:return function(t){if(p.symbol&&p.symbol.exports){var r=e.exportAssignmentIsAlias(t)?2097152:4,n=q(p.symbol.exports,p.symbol,t,r,67108863);t.isExportEquals&&e.setValueDeclaration(n,t)}else Fe(t,2097152,K(t))}(r);case 290:return Je(r.statements),function(){if(Ne(t),e.isExternalModule(t))Ke();else if(e.isJsonSourceFile(t)){Ke();var r=t.symbol;q(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=r}}();case 223:if(!e.isFunctionLike(r.parent))return;case 250:return Je(r.statements);case 317:if(305===r.parent.kind)return it(r);if(304!==r.parent.kind)break;case 323:var o=r;return Ee(o,o.isBracketed||o.typeExpression&&299===o.typeExpression.type.kind?16777220:4,0);case 322:case 315:case 316:return(h||(h=[])).push(r)}}function Ke(){Fe(t,512,'"'+e.removeFileExtension(t.fileName)+'"')}function Ve(e){return!t.externalModuleIndicator&&(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,Ke()),!0)}function qe(t){if(Ve(t)){var r=rt(t.left.expression,void 0,(function(e,t){return t&&U(t,e,67110400),t}));if(r){var n=e.isClassExpression(t.right)?1048612:1048580;q(r.exports,r,t.left,n,0)}}}function We(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 244:case 201: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=tt(i.expression.expression,m))}n&&n.valueDeclaration&&(n.members=n.members||e.createSymbolTable(),e.hasDynamicName(t)?He(t,n):q(n.members,n,t,67108868,0),U(n,n.valueDeclaration,32));break;case 162:case 159:case 161:case 163:case 164:var a=r.parent,o=e.hasModifier(r,32)?a.symbol.exports:a.symbol.members;e.hasDynamicName(t)?He(t,a.symbol):q(o,a.symbol,t,67108868,0,!0);break;case 290:if(e.hasDynamicName(t))break;r.commonJsModuleIndicator?q(r.symbol.exports,r.symbol,t,1048580,0):Ee(t,1,111550);break;default:e.Debug.failBadSyntaxKind(r)}}}function He(e,t){Fe(e,4,"__computed"),Ge(e,t)}function Ge(t,r){r&&(r.assignmentDeclarationMembers||(r.assignmentDeclarationMembers=e.createMap())).set(""+e.getNodeId(t),t)}function Qe(e,t){var r=e.expression,n=r.expression;e.parent=t,n.parent=r,r.parent=e,et(n,e,!0,!0)}function Xe(t){e.Debug.assert(!e.isIdentifier(t)),t.expression.parent=t,et(t.expression,t,!1,!1)}function Ye(r,n,i,a,o){if(i&&!a){r=rt(n,r,(function(r,n,i){return n?(U(n,r,67110400),n):q(i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable()),i,r,67110400,110735)}))}return o&&r&&r.valueDeclaration&&U(r,r.valueDeclaration,32),r}function Ze(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),q(i,r,t,67108864|a,-67108865&o)}}function $e(t){return e.isBinaryExpression(t.parent)?290===function(t){for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent}(t.parent).parent.kind:290===t.parent.parent.kind}function et(e,t,r,n){var i=tt(e),a=$e(t);Ze(t,i=Ye(i,t.expression,a,r,n),r)}function tt(t,r){if(void 0===r&&(r=p),e.isIdentifier(t))return _(r,t.escapedText);var n=tt(t.expression);return n&&n.exports&&n.exports.get(e.getElementOrPropertyAccessName(t))}function rt(r,n,i){if(l(t,r))return t.symbol;if(e.isIdentifier(r))return i(r,tt(r),n);var a=rt(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 nt(t){w&&Ie(t,t.name),e.isBindingPattern(t.name)||(e.isBlockOrCatchScoped(t)?Pe(t,2,111551):e.isParameterDeclaration(t)?Ee(t,1,111551):Ee(t,1,111550))}function it(t){if((317!==t.kind||305===p.kind)&&(!w||8388608&t.flags||Ie(t,t.name),e.isBindingPattern(t.name)?Fe(t,1,"__"+t.parent.parameters.indexOf(t)):Ee(t,1,111551),e.isParameterPropertyDeclaration(t,t.parent))){var r=t.parent.parent;q(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function at(r,n,i){return t.isDeclarationFile||8388608&r.flags||!e.isAsyncFunction(r)||(P|=2048),x&&e.isObjectLiteralOrClassExpressionMethod(r)&&(r.flowNode=x),e.hasDynamicName(r)?Fe(r,n,"__computed"):Ee(r,n,i)}}();function u(t){return!e.isFunctionDeclaration(t)&&!function(t){switch(t.kind){case 246:case 247:return!0;case 249:return 1!==r(t);case 248:return e.hasModifier(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 l(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=_(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 _(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)}function d(t,r){var n=t.kind;switch(n){case 196:return function(t,r){var n=r,i=e.skipOuterExpressions(t.expression),a=t.expression;32&t.flags&&(n|=8);t.typeArguments&&(n|=1);(8192&r||e.isSuperOrSuperProperty(i))&&(n|=256,e.isSuperProperty(i)&&(n|=4096));96===a.kind&&(n|=2097152);return t.transformFlags=536870912|n,-536879105&n}(t,r);case 197:return function(e,t){var r=t;e.typeArguments&&(r|=1);8192&t&&(r|=256);return e.transformFlags=536870912|r,-536879105&r}(t,r);case 249:return function(t,r){var n=1;0===(2&e.getModifierFlags(t))&&(n|=r);return t.transformFlags=536870912|n,-537991169&n}(t,r);case 200:return function(e,t){var r=t,n=e.expression.kind;217!==n&&199!==n||(r|=1);return e.transformFlags=536870912|r,-536870913&r}(t,r);case 209:return function(e,t){var r=t,n=e.operatorToken.kind,i=e.left.kind;60===n?r|=8:62===n&&193===i?r|=1312:62===n&&192===i?r|=1280:42!==n&&66!==n||(r|=128);return e.transformFlags=536870912|r,-536870913&r}(t,r);case 226:return function(e,t){var r=t;return e.transformFlags=536870912|r,-536870913&r}(t,r);case 156:return function(t,r){var n=r,i=t.name,a=t.initializer,o=t.dotDotDotToken;(t.questionToken||t.type||2048&r&&e.some(t.decorators)||e.isThisIdentifier(i))&&(n|=1);e.hasModifier(t,92)&&(n|=2049);16384&r&&(n|=32);(131072&r||a||o)&&(n|=256);return t.transformFlags=536870912|n,-536870913&n}(t,r);case 202:return function(t,r){var n=256|r;(e.hasModifier(t,2270)||t.typeParameters||t.type)&&(n|=1);e.hasModifier(t,256)&&(n|=64);16384&r&&(n|=32);return t.transformFlags=536870912|n,-538920961&n}(t,r);case 201:return function(t,r){var n=r;(e.hasModifier(t,2270)||t.typeParameters||t.type)&&(n|=1);e.hasModifier(t,256)&&(n|=t.asteriskToken?32:64);16384&r&&(n|=32);t.asteriskToken&&(n|=512);return t.transformFlags=536870912|n,-538925057&n}(t,r);case 244:return function(t,r){var n,i=e.getModifierFlags(t);!t.body||2&i?n=1:(n=1048576|r,(2270&i||t.typeParameters||t.type)&&(n|=1),256&i&&(n|=t.asteriskToken?32:64),16384&r&&(n|=32),t.asteriskToken&&(n|=512));return t.transformFlags=536870912|n,-538925057&n}(t,r);case 242:return function(e,t){var r=t;r|=131328,16384&t&&(r|=32);(e.type||e.exclamationToken)&&(r|=1);return e.transformFlags=536870912|r,-536870913&r}(t,r);case 243:return function(e,t){var r=1048576|t;131072&t&&(r|=256);3&e.flags&&(r|=65792);return e.transformFlags=536870912|r,-537018369&r}(t,r);case 225:return function(t,r){var n,i=t.declarationList.transformFlags;e.hasModifier(t,2)?n=1:(n=r,131072&i&&(n|=256));return t.transformFlags=536870912|n,-536870913&n}(t,r);case 238:return function(t,r){var n=r;65536&r&&e.isIterationStatement(t,!0)&&(n|=256);return t.transformFlags=536870912|n,-536870913&n}(t,r);case 245:return function(t,r){var n;e.hasModifier(t,2)?n=1:(n=256|r,(2048&r||t.typeParameters)&&(n|=1));return t.transformFlags=536870912|n,-536905729&n}(t,r);case 214:return function(e,t){var r=256|t;(2048&t||e.typeParameters)&&(r|=1);return e.transformFlags=536870912|r,-536905729&r}(t,r);case 279:return function(t,r){var n=r;switch(t.token){case 90:n|=256;break;case 113:n|=1;break;default:e.Debug.fail("Unexpected token for heritage clause")}return t.transformFlags=536870912|n,-536870913&n}(t,r);case 280:return function(t,r){var n=r;t.variableDeclaration?e.isBindingPattern(t.variableDeclaration.name)&&(n|=256):n|=16;return t.transformFlags=536870912|n,-536887297&n}(t,r);case 216:return function(e,t){var r=256|t;e.typeArguments&&(r|=1);return e.transformFlags=536870912|r,-536870913&r}(t,r);case 162:return function(t,r){var n=r;!e.hasModifier(t,2270)&&t.body||(n|=1);16384&r&&(n|=32);return t.transformFlags=536870912|n,-538923009&n}(t,r);case 159:return function(t,r){var n=4194304|r;(e.some(t.decorators)||e.hasModifier(t,2270)||t.type||t.questionToken||t.exclamationToken)&&(n|=1);(e.isComputedPropertyName(t.name)||e.hasStaticModifier(t)&&t.initializer)&&(n|=2048);return t.transformFlags=536870912|n,p(t.name,-536875009&n)}(t,r);case 161:return function(t,r){var n=256|r;(t.decorators||e.hasModifier(t,2270)||t.typeParameters||t.type||!t.body||t.questionToken)&&(n|=1);16384&r&&(n|=32);e.hasModifier(t,256)&&(n|=t.asteriskToken?32:64);t.asteriskToken&&(n|=512);return t.transformFlags=536870912|n,p(t.name,-538923009&n)}(t,r);case 163:case 164:return function(t,r){var n=r;(t.decorators||e.hasModifier(t,2270)||t.type||!t.body)&&(n|=1);16384&r&&(n|=32);return t.transformFlags=536870912|n,p(t.name,-538923009&n)}(t,r);case 253:return function(t,r){var n=r;e.isExternalModuleImportEqualsDeclaration(t)||(n|=1);return t.transformFlags=536870912|n,-536870913&n}(t,r);case 194:case 195:return function(e,t){var r=t;32&e.flags&&(r|=8);102===e.expression.kind&&(r|=96);return e.transformFlags=536870912|r,-536870913&r}(t,r);case 267:case 268:return function(e,t){var r=2|t;e.typeArguments&&(r|=1);return e.transformFlags=536870912|r,-536870913&r}(t,r);default:return function(t,r,n){var i=n,a=536870912;switch(r){case 126:i|=96;break;case 206:i|=524384;break;case 199:case 217:case 326:i|=1,a=536870912;break;case 119:case 117:case 118:case 122:case 130:case 81:case 248:case 284:case 218:case 138:i|=1;break;case 266:case 11:case 269:case 270:case 271:case 272:case 273:case 274:case 275:case 276:i|=2;break;case 14:case 15:case 16:case 17:if(t.templateFlags){i|=32;break}case 198:if(e.hasInvalidEscape(t.template)){i|=32;break}case 211:case 282:case 120:case 219:i|=256;break;case 10:t.hasExtendedUnicodeEscape&&(i|=256);break;case 8:384&t.numericLiteralFlags&&(i|=256);break;case 9:i|=4;break;case 232:t.awaitModifier&&(i|=32),i|=256;break;case 212:i|=262432;break;case 125:case 140:case 151:case 137:case 141:case 143:case 128:case 144:case 110:case 155:case 158:case 160:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 182:case 246:case 247:case 183:case 184:case 185:case 186:case 187:case 252:i=1,a=-2;break;case 154:i|=32768;break;case 213:i|=8448;break;case 283:i|=16416;break;case 102:i|=256,a=536870912;break;case 104:i|=4096;break;case 189:i|=131328,8192&n&&(i|=16416),a=536879104;break;case 190:i|=131328,a=536879104;break;case 191:i|=256,t.dotDotDotToken&&(i|=8192);break;case 157:i|=2049;break;case 193:a=536922112,32768&n&&(i|=256),16384&n&&(i|=32);break;case 192:a=536879104;break;case 228:case 229:case 230:case 231:65536&n&&(i|=256);break;case 290:break;case 262:i|=4;break;case 235:i|=1048608;break;case 233:case 234:i|=1048576;break;case 76:i|=4194304}return t.transformFlags=536870912|i,i&~a}(t,n,r)}}function p(e,t){return t|4096&e.transformFlags}function f(e){if(e>=168&&e<=188)return-2;switch(e){case 196:case 197:case 192:return 536879104;case 249:return 537991168;case 156:return 536870912;case 202:return 538920960;case 201:case 244:return 538925056;case 243:return 537018368;case 245:case 214:return 536905728;case 162:return 538923008;case 161:case 163:case 164:return 538923008;case 125:case 140:case 151:case 137:case 143:case 141:case 128:case 144:case 110:case 155:case 158:case 160:case 165:case 166:case 167:case 246:case 247:return-2;case 193:return 536922112;case 280:return 536887296;case 189:case 190:return 536879104;case 199:case 217:case 326:case 200:case 102:return 536870912;case 194:case 195:default:return 536870912}}function g(t,r){r.parent=t,e.forEachChild(r,(function(e){return g(r,e)}))}e.bindSourceFile=function(t,r){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+t.fileName),c(t,r),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=l,e.computeTransformFlagsForNode=d,e.getTransformFlagsSubtreeExclusions=f}(d||(d={})),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&&172===e.type.kind){var t=e.type;v(s(l(t.exprName)))}})),!1))}}}}(d||(d={})),function(e){var t,r,n,i,a=/^".+"$/,u="(anonymous)",l=1,_=1,d=1,p=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.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.EmptyObjectFacts=16777215]="EmptyObjectFacts"}(i||(i={}));var f,g,m,y,v,h,b,x,D,S=e.createMapFromTemplate({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64}),C=e.createMapFromTemplate({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"}(f||(f={})),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"}(g||(g={})),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"}(m||(m={})),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"}(y||(y={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.PropertyCheck=4]="PropertyCheck",e[e.InPropertyCheck=8]="InPropertyCheck"}(v||(v={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(h||(h={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(b||(b={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(x||(x={})),function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(D||(D={}));var T,k,E,N=e.and(O,(function(t){return!e.isAccessor(t)}));function A(){}function F(){this.flags=0}function P(e){return e.id||(e.id=_,_++),e.id}function w(e){return e.id||(e.id=l,l++),e.id}function I(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function O(e){return 244!==e.kind&&161!==e.kind||!!e.body}function M(t){switch(t.parent.kind){case 258:case 263:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function L(e){switch(e.kind){case 255:case 253:case 256:case 258:return!0;case 75:return 258===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)}!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"}(T||(T={})),function(e){e[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace"}(k||(k={})),e.getNodeId=P,e.getSymbolId=w,e.isInstantiatedModule=I,e.createTypeChecker=function(t,r){var n,i,l,_,f=e.memoize((function(){var r=e.createMap();return t.getSourceFiles().forEach((function(t){t.resolvedModules&&e.forEachEntry(t.resolvedModules,(function(e){e&&e.packageId&&r.set(e.packageId.name,!0)}))})),r})),g=e.objectAllocator.getSymbolConstructor(),m=e.objectAllocator.getTypeConstructor(),y=e.objectAllocator.getSignatureConstructor(),v=0,h=0,b=0,x=0,D=0,T=0,k=0,J=e.createSymbolTable(),z=[1],U=t.getCompilerOptions(),K=e.getEmitScriptTarget(U),V=e.getEmitModuleKind(U),q=e.getAllowSyntheticDefaultImports(U),W=e.getStrictOptionValue(U,"strictNullChecks"),H=e.getStrictOptionValue(U,"strictFunctionTypes"),G=e.getStrictOptionValue(U,"strictBindCallApply"),Q=e.getStrictOptionValue(U,"strictPropertyInitialization"),X=e.getStrictOptionValue(U,"noImplicitAny"),Y=e.getStrictOptionValue(U,"noImplicitThis"),Z=!!U.keyofStringsOnly,$=U.suppressExcessPropertyErrors?0:32768,ee=function(){var r,n=t.getResolvedTypeReferenceDirectives();n&&(r=e.createMap(),n.forEach((function(n,i){if(n&&n.resolvedFileName){var a=t.getSourceFile(n.resolvedFileName);a&&function n(i,a){if(r.has(i.path))return;r.set(i.path,a);for(var o=0,s=i.referencedFiles;o<s.length;o++){var c=s[o].fileName,u=e.resolveTripleslashReference(c,i.originalFileName),l=t.getSourceFile(u);l&&n(l,a)}}(a,i)}})));return{getReferencedExportContainer:px,getReferencedImportDeclaration:fx,getReferencedDeclarationWithCollidingName:mx,isDeclarationWithCollidingName:yx,isValueAliasDeclaration:function(t){return!(t=e.getParseTreeNode(t))||vx(t)},hasGlobalName:Rx,isReferencedAliasDeclaration:function(t,r){return!(t=e.getParseTreeNode(t))||Dx(t,r)},getNodeCheckFlags:function(t){return(t=e.getParseTreeNode(t))?Nx(t):0},isTopLevelValueImportEqualsWithEntityName:hx,isDeclarationVisible:aa,isImplementationOfOverload:Sx,isRequiredInitializedParameter:Cx,isOptionalUninitializedParameterProperty:Tx,isExpandoFunctionDeclaration:kx,getPropertiesOfContainerFunction:Ex,createTypeOfDeclaration:Ox,createReturnTypeOfSignatureDeclaration:Mx,createTypeOfExpression:Lx,createLiteralConstValue:zx,isSymbolAccessible:zi,isEntityNameVisible:Wi,getConstantValue:function(t){var r=e.getParseTreeNode(t,Fx);return r?Px(r):void 0},collectLinkedAliases:oa,getReferencedValueDeclaration:jx,getTypeReferenceSerializationKind:Ix,isOptionalParameter:Zs,moduleExportsSomeValue:dx,isArgumentsLocalBinding:_x,getExternalModuleFileFromDeclaration:Kx,getTypeReferenceDirectivesForEntityName:function(e){if(!r)return;var t=790504;(75===e.kind&&hp(e)||194===e.kind&&!function(e){return e.parent&&216===e.parent.kind&&e.parent.parent&&279===e.parent.parent.kind}(e))&&(t=1160127);var n=ti(e,t,!0);return n&&n!==ve?i(n,t):void 0},getTypeReferenceDirectivesForSymbol:i,isLiteralConstDeclaration:Jx,isLateBound:function(t){var r=e.getParseTreeNode(t,e.isDeclaration),n=r&&yi(r);return!!(n&&4096&e.getCheckFlags(n))},getJsxFactoryEntity:Ux,getAllAccessorDeclarations:function(t){var r=164===(t=e.getParseTreeNode(t,e.isGetOrSetAccessorDeclaration)).kind?163:164,n=e.getDeclarationOfKind(yi(t),r);return{firstAccessor:n&&n.pos<t.pos?n:t,secondAccessor:n&&n.pos<t.pos?t:n,setAccessor:164===t.kind?t:n,getAccessor:163===t.kind?t:n}},getSymbolOfExternalModuleSpecifier:function(e){return ii(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=vn(t);return!!n&&e.contains(n.capturedBlockScopeBindings,yi(r))}(n,i)},getDeclarationStatementsForSourceFile:function(t,r,n,i){var a=e.getParseTreeNode(t);e.Debug.assert(a&&290===a.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");var o=yi(t);return o?o.exports?te.symbolTableToDeclarationStatements(o.exports,t,r,n,i):[]:t.locals?te.symbolTableToDeclarationStatements(t.locals,t,r,n,i):[]},isImportRequiredByAugmentation:function(t){var r=e.getSourceFileOfNode(t);if(!r.symbol)return!1;var n=Kx(t);if(!n)return!1;if(n===r)return!1;for(var i=pi(r.symbol),a=0,o=e.arrayFrom(i.values());a<o.length;a++){var s=o[a];if(s.mergeId)for(var c=mi(s),u=0,l=c.declarations;u<l.length;u++){var _=l[u];if(e.getSourceFileOfNode(_)===n)return!0}}return!1}};function i(t,n){if(r&&function(t){if(!t.declarations)return!1;var n=t;for(;;){var i=vi(n);if(!i)break;n=i}if(n.valueDeclaration&&290===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}}}(),te=function(){return{typeToTypeNode:function(e,t,n,i){return r(t,n,i,(function(t){return c(e,t)}))},indexInfoToIndexSignatureDeclaration:function(e,t,n,i,a){return r(n,i,a,(function(r){return d(e,t,r)}))},signatureToSignatureDeclaration:function(e,t,n,i,a){return r(n,i,a,(function(r){return p(e,t,r)}))},symbolToEntityName:function(e,t,n,i,a){return r(n,i,a,(function(r){return k(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 b(e,t)}))},symbolToParameterDeclaration:function(e,t,n,i){return r(t,n,i,(function(t){return m(e,t)}))},typeParameterToDeclaration:function(e,t,n,i){return r(t,n,i,(function(t){return g(e,t)}))},symbolTableToDeclarationStatements:function(t,n,i,a,u){return r(n,i,a,(function(r){return function(t,r,n){var i,a=V(e.createProperty,161,!0),u=V((function(t,r,n,i,a,o){return e.createPropertySignature(r,n,i,a,o)}),160,!1),l=r.enclosingDeclaration,_=[],f=e.createMap(),m=r;r=s(s({},m),{usedSymbolNames:e.createMap(),remappedSymbolNames:e.createMap(),tracker:s(s({},m.tracker),{trackSymbol:function(e,t,n){if(0===zi(e,t,n,!1).accessibility){var i=h(e,r,n);4&e.flags||N(i[0])}else m.tracker&&m.tracker.trackSymbol&&m.tracker.trackSymbol(e,t,n)}})}),m.usedSymbolNames&&m.usedSymbolNames.forEach((function(e,t){r.usedSymbolNames.set(t,!0)}));e.forEachEntry(t,(function(t,r){Y(t,e.unescapeLeadingUnderscores(r))}));var y=!n,v=t.get("export=");v&&t.size>1&&2097152&v.flags&&(t=e.createSymbolTable()).set("export=",v);return C(t),function(t){t=function(t){var r=e.find(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause}));if(r&&r.exportClause&&e.isNamedExports(r.exportClause)){var n=e.mapDefined(r.exportClause.elements,(function(r){if(!r.propertyName){var n=e.filter(t,(function(t){return e.nodeHasName(t,r.name)}));if(e.length(n)&&e.every(n,x))return void e.forEach(n,S)}return r}));e.length(n)?r.exportClause.elements=e.createNodeArray(n):t=e.filter(t,(function(e){return e!==r}))}return t}(t=function(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=o(n,[e.createExportDeclaration(void 0,void 0,e.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 s=function(r){r.length>1&&(t=o(e.filter(t,(function(e){return-1===r.indexOf(e)})),[e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),r[0].moduleSpecifier)]))},c=0,u=a;c<u.length;c++){var l=u[c];s(l)}}return t}(t=function(t){var r=e.find(t,e.isExportAssignment),n=e.find(t,e.isModuleDeclaration);if(n&&r&&r.isExportEquals&&e.isIdentifier(r.expression)&&e.isIdentifier(n.name)&&e.idText(n.name)===e.idText(r.expression)&&n.body&&e.isModuleBlock(n.body)){var i=e.filter(t,(function(t){return!!(1&e.getModifierFlags(t))}));e.length(i)&&(n.body.statements=e.createNodeArray(o(n.body.statements,[e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.map(e.flatMap(i,(function(t){return function(t){if(e.isVariableStatement(t))return e.filter(e.map(t.declarationList.declarations,e.getNameOfDeclaration),b);return e.filter([e.getNameOfDeclaration(t)],b)}(t)})),(function(t){return e.createExportSpecifier(void 0,t)}))),void 0)]))),e.find(t,(function(t){return t!==n&&e.nodeHasName(t,n.name)}))||(_=[],e.forEach(n.body.statements,(function(e){F(e,0)})),t=o(e.filter(t,(function(e){return e!==n&&e!==r})),_))}return t}(t))),l&&(e.isSourceFile(l)&&e.isExternalOrCommonJsModule(l)||e.isModuleDeclaration(l))&&(!e.some(t,e.isExternalModuleIndicator)||!e.hasScopeMarker(t)&&e.some(t,e.needsScopeMarker))&&t.push(e.createEmptyExports());return t}(_);function b(e){return!!e&&75===e.kind}function x(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)||Yb(t)}function S(t){var r=-3&(1|e.getModifierFlags(t));t.modifiers=e.createNodeArray(e.createModifiersFromModifierFlags(r)),t.modifierFlagsCache=0}function C(t,r,n){var a=i;r||(i=e.createMap()),t.forEach((function(e){T(e,!1,!!n)})),r||i.forEach((function(e){T(e,!0,!!n)})),i=a}function T(t,i,_){var d=mi(t);if(!f.has(""+w(d))&&(f.set(""+w(d),!0),!i||e.length(t.declarations)&&e.some(t.declarations,(function(t){return!!e.findAncestor(t,(function(e){return e===l}))})))){var p=r;r=function(t){var r=s({},t);r.typeParameterNames&&(r.typeParameterNames=e.cloneMap(r.typeParameterNames));r.typeParameterNamesByText&&(r.typeParameterNamesByText=e.cloneMap(r.typeParameterNamesByText));r.typeParameterSymbolList&&(r.typeParameterSymbolList=e.cloneMap(r.typeParameterSymbolList));return r}(r);var m=function(t,i,s){var _=e.unescapeLeadingUnderscores(t.escapedName),d="default"===t.escapedName;if(!(131072&r.flags)&&e.isStringANonContextualKeyword(_)&&!d)return void(r.encounteredError=!0);var p=d&&!!(-113&t.flags||16&t.flags&&e.length(ms(Wa(t))))&&!(2097152&t.flags);p&&(i=!0);var f=(i?0:1)|(d&&!p?512:0),m=1536&t.flags&&7&t.flags&&"export="!==t.escapedName,y=m&&z(Wa(t),t);(8208&t.flags||y)&&O(Wa(t),t,Y(t,_),f);524288&t.flags&&function(t,n,i){var a=uo(t),o=yn(t).typeParameters,s=e.map(o,(function(e){return g(e,r)})),u=e.find(t.declarations,e.isJSDocTypeAlias),l=u?u.comment||u.parent.comment:void 0,_=r.flags;r.flags|=8388608,F(e.setSyntheticLeadingComments(e.createTypeAliasDeclaration(void 0,void 0,Y(t,n),s,c(a,r)),l?[{kind:3,text:"*\n * "+l.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),i),r.flags=_}(t,_,f);!(7&t.flags&&"export="!==t.escapedName)||4194304&t.flags||32&t.flags||y||function(t,i,a,o,s,c){if(s)J(t);else{var u=Wa(t),_=Y(t,i);if(16&t.flags||!z(u,t)){var d=2&t.flags?bf(t)?2:1:void 0,p=!o&&4&t.flags?Q(_,t):_,f=t.declarations&&e.find(t.declarations,(function(t){return e.isVariableDeclaration(t)}));f&&e.isVariableDeclarationList(f.parent)&&1===f.parent.declarations.length&&(f=f.parent.parent),F(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(p,M(r,u,t,l,N,n))],d)),f),p!==_?-2&c:c),p===_||a||F(e.createExportDeclaration(void 0,void 0,e.createNamedExports([e.createExportSpecifier(p,_)])),0)}else O(u,t,_,c)}}(t,_,i,p,s,f);384&t.flags&&function(t,r,n){F(e.createEnumDeclaration(void 0,e.createModifiersFromModifierFlags(tv(t)?2048:0),Y(t,r),e.map(e.filter(ms(Wa(t)),(function(e){return!!(8&e.flags)})),(function(t){var r=t.declarations&&t.declarations[0]&&e.isEnumMember(t.declarations[0])&&Px(t.declarations[0]);return e.createEnumMember(e.unescapeLeadingUnderscores(t.escapedName),void 0===r?void 0:e.createLiteral(r))}))),n)}(t,_,f);32&t.flags&&(4&t.flags&&e.isBinaryExpression(t.valueDeclaration.parent)&&e.isClassExpression(t.valueDeclaration.parent.right)?B(t,Y(t,_),f):function(t,n,i){for(var s=$a(t),c=e.map(s,(function(e){return g(e,r)})),u=co(t),l=oo(u),_=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=xl(c[s]);u!==Se&&(r===e.emptyArray?r=[u]:r.push(u))}}return r}(u),d=Wa(t),p=ao(d),f=o(e.length(l)?[e.createHeritageClause(90,e.map(l,(function(e){return H(e,p,n)})))]:[],e.length(_)?[e.createHeritageClause(113,e.map(_,(function(e){return H(e,p,n)})))]:[]),m=function(t,r,n){if(!e.length(r))return n;var i=e.createUnderscoreEscapedMap();e.forEach(n,(function(e){i.set(e.escapedName,e)}));for(var a=0,o=r;a<o.length;a++)for(var s=ms(Ro(o[a],t.thisType)),c=0,u=s;c<u.length;c++){var l=u[c],_=i.get(l.escapedName);_&&!Q_(_,l)&&i.delete(l.escapedName)}return e.arrayFrom(i.values())}(u,l,ms(u)),y=e.filter(m,(function(t){var r=t.valueDeclaration;return r&&!(e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name))})),v=e.some(m,(function(t){var r=t.valueDeclaration;return r&&e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name)}))?[e.createProperty(void 0,void 0,e.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,h=e.flatMap(y,(function(e){return a(e,!1,l[0])})),b=e.flatMap(e.filter(ms(d),(function(e){return!(4194304&e.flags)&&"prototype"!==e.escapedName&&!R(e)})),(function(e){return a(e,!0,p)})),x=q(1,d,l[0],162),D=0,S=x;D<S.length;D++){var C=S[D];C.type=void 0,C.typeParameters=void 0}var T=W(u,l[0]);F(e.setTextRange(e.createClassDeclaration(void 0,void 0,n,c,f,o(T,b,x,h,v)),t.declarations&&e.filter(t.declarations,(function(t){return e.isClassDeclaration(t)||e.isClassExpression(t)}))[0]),i)}(t,Y(t,_),f));(1536&t.flags&&(!m||function(t){return e.every(P(t),(function(e){return!(111551&Wn(e).flags)}))}(t))||y)&&function(t,n,i){var a=P(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;if(e.length(s)){var u=Y(t,n);L(s,u,i,!!(67108880&t.flags))}if(e.length(c)){var l=e.getSourceFileOfNode(r.enclosingDeclaration),_=(u=Y(t,n),e.createModuleBlock([e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.mapDefined(e.filter(c,(function(e){return"export="!==e.escapedName})),(function(n){var i,a,o=e.unescapeLeadingUnderscores(n.escapedName),s=Y(n,o),c=n.declarations&&In(n);if(!l||(c?l===e.getSourceFileOfNode(c):e.some(n.declarations,(function(t){return e.getSourceFileOfNode(t)===l})))){var u=c&&Vn(c,!0);N(u||n);var _=u?Y(u,e.unescapeLeadingUnderscores(u.escapedName)):s;return e.createExportSpecifier(o===_?void 0:_,o)}null===(a=null===(i=r.tracker)||void 0===i?void 0:i.reportNonlocalAugmentation)||void 0===a||a.call(i,l,t,n)}))))]));F(e.createModuleDeclaration(void 0,void 0,e.createIdentifier(u),_,16),0)}}(t,_,f);64&t.flags&&function(t,n,i){var a=co(t),s=$a(t),c=e.map(s,(function(e){return g(e,r)})),l=oo(a),_=e.length(l)?Eu(l):void 0,d=e.flatMap(ms(a),(function(e){return function(e,t){return u(e,!1,t)}(e,_)})),p=q(0,a,_,165),f=q(1,a,_,166),m=W(a,_),y=e.length(l)?[e.createHeritageClause(90,e.mapDefined(l,(function(e){return G(e)})))]:void 0;F(e.createInterfaceDeclaration(void 0,void 0,Y(t,n),c,y,o(m,f,p,d)),i)}(t,_,f);2097152&t.flags&&B(t,Y(t,_),f);4&t.flags&&"export="===t.escapedName&&J(t);if(8388608&t.flags)for(var v=0,h=t.declarations;v<h.length;v++){var b=h[v],x=ni(b,b.moduleSpecifier);x&&F(e.createExportDeclaration(void 0,void 0,void 0,e.createLiteral(D(x,r))),0)}p&&F(e.createExportAssignment(void 0,void 0,!1,e.createIdentifier(Y(t,_))),0)}(t,i,_);return r=p,m}}function N(t){e.some(t.declarations,e.isParameterDeclaration)||(e.Debug.assertIsDefined(i),Q(e.unescapeLeadingUnderscores(t.escapedName),t),i.set(""+w(t),t))}function F(t,r){var n=0;1&r&&l&&function(t){return e.isSourceFile(t)&&(e.isExternalOrCommonJsModule(t)||e.isJsonSourceFile(t))||e.isAmbientModule(t)&&!e.isGlobalScopeAugmentation(t)}(l)&&x(t)&&(n|=1),!y||1&n||l&&8388608&l.flags||!(e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t))||(n|=2),512&r&&(e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionDeclaration(t))&&(n|=512),n&&(t.modifiers=e.createNodeArray(e.createModifiersFromModifierFlags(n|e.getModifierFlags(t))),t.modifierFlagsCache=0),_.push(t)}function P(t){return t.exports?e.filter(e.arrayFrom(t.exports.values()),R):[]}function O(t,i,a,o){for(var s=0,c=Us(t,0);s<c.length;s++){var u=c[s],l=p(u,244,r,N,n);l.name=e.createIdentifier(a),F(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||L(e.filter(ms(t),R),a,o,!0)}function L(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,c=e.createModuleDeclaration(void 0,void 0,e.createIdentifier(n),e.createModuleBlock([]),16);c.flags^=8,c.parent=l,c.locals=e.createSymbolTable(t),c.symbol=t[0].parent;var u=_;_=[];var d=y;y=!1;var p=s(s({},r),{enclosingDeclaration:c}),f=r;r=p,C(e.createSymbolTable(o),a,!0),r=f,y=d;var g=_;_=u,c.flags^=8,c.parent=void 0,c.locals=void 0,c.symbol=void 0,c.body=e.createModuleBlock(g),F(c,i)}}function R(t){return!(4194304&t.flags||"prototype"===t.escapedName||t.valueDeclaration&&e.isClassLike(t.valueDeclaration.parent))}function B(t,n,i){var a=In(t);if(!a)return e.Debug.fail();var o=mi(Vn(a,!0));if(o){var s=e.unescapeLeadingUnderscores(o.escapedName);"export="===s&&(U.esModuleInterop||U.allowSyntheticDefaultImports)&&(s="default");var c=Y(o,s);switch(N(o),a.kind){case 253:var u=!(512&o.flags);F(e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(n),u?k(o,r,67108863,!1):e.createExternalModuleReference(e.createLiteral(D(t,r)))),u?i:0);break;case 252:F(e.createNamespaceExportDeclaration(e.idText(a.name)),0);break;case 255:F(e.createImportDeclaration(void 0,void 0,e.createImportClause(e.createIdentifier(n),void 0),e.createLiteral(D(o.parent||o,r))),0);break;case 256:F(e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(n))),e.createLiteral(D(o,r))),0);break;case 262:F(e.createExportDeclaration(void 0,void 0,e.createNamespaceExport(e.createIdentifier(n)),e.createLiteral(D(o,r))),0);break;case 258:F(e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(n!==s?e.createIdentifier(s):void 0,e.createIdentifier(n))])),e.createLiteral(D(o.parent||o,r))),0);break;case 263:var l=a.parent.parent.moduleSpecifier;j(e.unescapeLeadingUnderscores(t.escapedName),l?s:c,l&&e.isStringLiteralLike(l)?e.createLiteral(l.text):void 0);break;case 259:J(t);break;case 209:case 194:"default"===t.escapedName||"export="===t.escapedName?J(t):j(n,c);break;default:return e.Debug.failBadSyntaxKind(a,"Unhandled alias declaration kind in symbol serializer!")}}}function j(t,r,n){F(e.createExportDeclaration(void 0,void 0,e.createNamedExports([e.createExportSpecifier(t!==r?r:void 0,t)]),n),0)}function J(t){if(!(4194304&t.flags)){var i=e.unescapeLeadingUnderscores(t.escapedName),a="export="===i,o=a||"default"===i,s=t.declarations&&In(t),c=s&&Vn(s,!0);if(c&&e.length(c.declarations)&&e.some(c.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(l)}))){var u=o?e.getExportAssignmentExpression(s):e.getPropertyAssignmentAliasLikeExpression(s),d=e.isEntityNameExpression(u)?function(t){switch(t.kind){case 75:return t;case 153:do{t=t.left}while(75!==t.kind);return t;case 194:do{if(e.isModuleExportsAccessExpression(t.expression)&&!e.isPrivateIdentifier(t.name))return t.name;t=t.expression}while(75!==t.kind);return t}}(u):void 0,p=d&&ti(d,67108863,!0,!0,l);(p||c)&&N(p||c);var f=r.tracker.trackSymbol;if(r.tracker.trackSymbol=e.noop,o)_.push(e.createExportAssignment(void 0,void 0,a,E(c,r,67108863)));else if(d===u)j(i,e.idText(d));else if(e.isClassExpression(u))j(i,Y(c,e.symbolName(c)));else{var g=Q(i,t);F(e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(g),k(c,r,67108863,!1)),0),j(i,g)}r.tracker.trackSymbol=f}else{g=Q(i,t);var m=Bd(Wa(mi(t)));if(z(m,t))O(m,t,g,o?0:1);else F(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(g,M(r,m,t,l,N,n))],2)),i===g?1:0);o?_.push(e.createExportAssignment(void 0,void 0,a,e.createIdentifier(g))):i!==g&&j(i,g)}}}function z(t,n){var i=e.getSourceFileOfNode(r.enclosingDeclaration);return 48&e.getObjectFlags(t)&&!qs(t,0)&&!qs(t,1)&&!(!e.length(ms(t))&&!e.length(Us(t,0)))&&!e.length(Us(t,1))&&!I(n,l)&&!(t.symbol&&e.some(t.symbol.declarations,(function(t){return e.getSourceFileOfNode(t)!==i})))&&!e.some(ms(t),(function(e){return Ao(e.escapedName)}))&&!e.some(ms(t),(function(t){return e.some(t.declarations,(function(t){return e.getSourceFileOfNode(t)!==i}))}))&&e.every(ms(t),(function(t){return e.isIdentifierText(e.symbolName(t),K)&&!e.isStringAKeyword(e.symbolName(t))}))}function V(t,i,a){return function(o,s,c){var u=e.getDeclarationModifierFlagsFromSymbol(o),_=!!(8&u);if(s&&2887656&o.flags)return[];if(4194304&o.flags||c&&Js(c,o.escapedName)&&Wy(Js(c,o.escapedName))===Wy(o)&&(16777216&o.flags)===(16777216&Js(c,o.escapedName).flags)&&r_(Wa(o),da(c,o.escapedName)))return[];var d=-257&u|(s?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.createSetAccessor(void 0,e.createModifiersFromModifierFlags(d),f,[e.createParameter(void 0,void 0,void 0,"arg",void 0,_?void 0:M(r,Wa(o),o,l,N,n))],void 0),e.find(o.declarations,e.isSetAccessor)||g)),32768&o.flags){var y=8&u;m.push(e.setTextRange(e.createGetAccessor(void 0,e.createModifiersFromModifierFlags(d),f,[],y?void 0:M(r,Wa(o),o,l,N,n),void 0),e.find(o.declarations,e.isGetAccessor)||g))}return m}if(7&o.flags)return e.setTextRange(t(void 0,e.createModifiersFromModifierFlags((Wy(o)?64:0)|d),f,16777216&o.flags?e.createToken(57):void 0,_?void 0:M(r,Wa(o),o,l,N,n),void 0),e.find(o.declarations,e.or(e.isPropertyDeclaration,e.isVariableDeclaration))||g);if(8208&o.flags){var v=Us(Wa(o),0);if(8&d)return e.setTextRange(t(void 0,e.createModifiersFromModifierFlags((Wy(o)?64:0)|d),f,16777216&o.flags?e.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=p(D,i,r);S.name=f,d&&(S.modifiers=e.createNodeArray(e.createModifiersFromModifierFlags(d))),16777216&o.flags&&(S.questionToken=e.createToken(57)),h.push(e.setTextRange(S,D.declaration))}return h}return e.Debug.fail("Unhandled class member kind! "+(o.__debugFlags||o.flags))}}function q(t,n,i,a){var o=Us(n,t);if(1===t){if(!i&&e.every(o,(function(t){return 0===e.length(t.parameters)})))return[];if(i){var s=Us(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(!Y_(o[u],s[u],!1,!1,!0,n_)){c=!0;break}if(!c)return[]}}for(var l=0,_=0,d=o;_<d.length;_++){var f=d[_];f.declaration&&(l|=e.getSelectedModifierFlags(f.declaration,24))}if(l)return[e.setTextRange(e.createConstructor(void 0,e.createModifiersFromModifierFlags(l),[],void 0),o[0].declaration)]}for(var g=[],m=0,y=o;m<y.length;m++){var v=y[m],h=p(v,a,r);g.push(e.setTextRange(h,v.declaration))}return g}function W(e,t){for(var n=[],i=0,a=[0,1];i<a.length;i++){var o=a[i],s=qs(e,o);if(s){if(t){var c=qs(t,o);if(c&&r_(s.type,c.type))continue}n.push(d(s,o,r))}}return n}function H(t,n,i){var a=G(t);if(a)return a;var o=Q(i+"_base");return F(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,c(n,r))],2)),0),e.createExpressionWithTypeArguments(void 0,e.createIdentifier(o))}function G(t){var n,i;if(t.target&&Ri(t.target.symbol,l,111551,!1)?(n=e.map(wc(t),(function(e){return c(e,r)})),i=E(t.target.symbol,r,788968)):t.symbol&&Ri(t.symbol,l,111551,!1)&&(i=E(t.symbol,r,788968)),i)return e.createExpressionWithTypeArguments(n,i)}function Q(e,t){if(t&&r.remappedSymbolNames.has(""+w(t)))return r.remappedSymbolNames.get(""+w(t));t&&(e=X(t,e));for(var n=0,i=e;r.usedSymbolNames.has(e);)e=i+"_"+ ++n;return r.usedSymbolNames.set(e,!0),t&&r.remappedSymbolNames.set(""+w(t),e),e}function X(t,n){if("default"===n||"__class"===n||"__function"===n){var i=r.flags;r.flags|=16777216;var a=ia(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,K)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function Y(e,t){return r.remappedSymbolNames.has(""+w(e))?r.remappedSymbolNames.get(""+w(e)):(t=X(e,t),r.remappedSymbolNames.set(""+w(e),t),t)}}(t,r,u)}))}};function r(r,n,i,a){e.Debug.assert(void 0===r||0===(8&r.flags));var o={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()},getProbableSymlinks:e.maybeBind(t,t.getProbableSymlinks),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)}}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},s=a(o);return o.encounteredError?void 0:s}function i(t){return t.truncating?t.truncating:t.truncating=t.approximateLength>(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function c(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.createKeywordTypeNode(125)):void(r.encounteredError=!0);if(536870912&r.flags||(t=Ms(t)),1&t.flags)return r.approximateLength+=3,e.createKeywordTypeNode(125);if(2&t.flags)return e.createKeywordTypeNode(148);if(4&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(143);if(8&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(140);if(64&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(151);if(16&t.flags)return r.approximateLength+=7,e.createKeywordTypeNode(128);if(1024&t.flags&&!(1048576&t.flags)){var o=vi(t.symbol),s=S(o,r,788968);return yo(o)===t?s:B(s,e.createTypeReferenceNode(e.symbolName(t.symbol),void 0))}if(1056&t.flags)return S(t.symbol,r,788968);if(128&t.flags)return r.approximateLength+=t.value.length+2,e.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(t.value,!!(268435456&r.flags)),16777216));if(256&t.flags){var g=t.value;return r.approximateLength+=(""+g).length,e.createLiteralTypeNode(g<0?e.createPrefix(40,e.createLiteral(-g)):e.createLiteral(g))}if(2048&t.flags)return r.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.createLiteralTypeNode(e.createLiteral(t.value));if(512&t.flags)return r.approximateLength+=t.intrinsicName.length,"true"===t.intrinsicName?e.createTrue():e.createFalse();if(8192&t.flags){if(!(1048576&r.flags)){if(Ji(t.symbol,r.enclosingDeclaration))return r.approximateLength+=6,S(t.symbol,r,111551);r.tracker.reportInaccessibleUniqueSymbolError&&r.tracker.reportInaccessibleUniqueSymbolError()}return r.approximateLength+=13,e.createTypeOperatorNode(147,e.createKeywordTypeNode(144))}if(16384&t.flags)return r.approximateLength+=4,e.createKeywordTypeNode(110);if(32768&t.flags)return r.approximateLength+=9,e.createKeywordTypeNode(146);if(65536&t.flags)return r.approximateLength+=4,e.createKeywordTypeNode(100);if(131072&t.flags)return r.approximateLength+=5,e.createKeywordTypeNode(137);if(4096&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(144);if(67108864&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(141);if(zu(t))return 4194304&r.flags&&(r.encounteredError||32768&r.flags||(r.encounteredError=!0),r.tracker.reportInaccessibleThisError&&r.tracker.reportInaccessibleThisError()),r.approximateLength+=4,e.createThis();if(!a&&t.aliasSymbol&&(16384&r.flags||ji(t.aliasSymbol,r.enclosingDeclaration))){var m=_(t.aliasTypeArguments,r);return!Pi(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?S(t.aliasSymbol,r,788968,m):e.createTypeReferenceNode(e.createIdentifier(""),m)}var y=e.getObjectFlags(t);if(4&y)return e.Debug.assert(!!(524288&t.flags)),t.node?M(t,R):R(t);if(262144&t.flags||3&y){if(262144&t.flags&&e.contains(r.inferTypeParameters,t))return r.approximateLength+=e.symbolName(t.symbol).length+6,e.createInferTypeNode(f(t,r,void 0));if(4&r.flags&&262144&t.flags&&!ji(t.symbol,r.enclosingDeclaration)){var v=T(t,r);return r.approximateLength+=e.idText(v).length,e.createTypeReferenceNode(e.createIdentifier(e.idText(v)),void 0)}return t.symbol?S(t.symbol,r,788968):e.createTypeReferenceNode(e.createIdentifier("?"),void 0)}if(3145728&t.flags){var h=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?Be:po(i);if(1048576&a.flags){var o=a.types.length;if(n+o<=e.length&&ml(e[n+o-1])===ml(a.types[o-1])){t.push(a),n+=o-1;continue}}}t.push(i)}}65536&r&&t.push(Ae);32768&r&&t.push(ke);return t||e}(t.types):t.types;if(1===e.length(h))return c(h[0],r);var b=_(h,r,!0);return b&&b.length>0?e.createUnionOrIntersectionTypeNode(1048576&t.flags?178:179,b):void(r.encounteredError||262144&r.flags||(r.encounteredError=!0))}if(48&y)return e.Debug.assert(!!(524288&t.flags)),O(t);if(4194304&t.flags){var x=t.type;r.approximateLength+=6;var D=c(x,r);return e.createTypeOperatorNode(D)}if(8388608&t.flags){var C=c(t.objectType,r);D=c(t.indexType,r);return r.approximateLength+=2,e.createIndexedAccessTypeNode(C,D)}if(16777216&t.flags){var k=c(t.checkType,r),E=r.inferTypeParameters;r.inferTypeParameters=t.root.inferTypeParameters;var N=c(t.extendsType,r);r.inferTypeParameters=E;var A=I(Zu(t)),F=I($u(t));return r.approximateLength+=15,e.createConditionalTypeNode(k,N,A,F)}return 33554432&t.flags?c(t.baseType,r):e.Debug.fail("Should be unreachable.");function I(e){var t,n;return 1048576&e.flags?r.visitedTypes&&r.visitedTypes.has(""+fu(e))?(131072&r.flags||(r.encounteredError=!0,null===(n=null===(t=r.tracker)||void 0===t?void 0:t.reportCyclicStructureError)||void 0===n||n.call(t)),u(r)):M(e,(function(e){return c(e,r)})):c(e,r)}function O(t){var n=""+t.id,i=t.symbol;if(i){if(sy(i.valueDeclaration)){var a=t===co(i)?788968:111551;return S(i,r,a)}if(32&i.flags&&!Ua(i)&&!(214===i.valueDeclaration.kind&&2048&r.flags)||896&i.flags||function(){var t=!!(8192&i.flags)&&e.some(i.declarations,(function(t){return e.hasModifier(t,32)})),a=!!(16&i.flags)&&(i.parent||e.forEach(i.declarations,(function(e){return 290===e.parent.kind||250===e.parent.kind})));if(t||a)return(!!(4096&r.flags)||r.visitedTypes&&r.visitedTypes.has(n))&&(!(8&r.flags)||Ji(i,r.enclosingDeclaration))}())return S(i,r,111551);if(r.visitedTypes&&r.visitedTypes.has(n)){var o=function(t){if(t.symbol&&2048&t.symbol.flags){var r=e.findAncestor(t.symbol.declarations[0].parent,(function(e){return 182!==e.kind}));if(247===r.kind)return yi(r)}return}(t);return o?S(o,r,788968):u(r)}return M(t,L)}return L(t)}function M(t,n){var i,a=""+t.id,o=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags,s=4&e.getObjectFlags(t)&&t.node?"N"+P(t.node):t.symbol?(o?"+":"")+w(t.symbol):void 0;if(r.visitedTypes||(r.visitedTypes=e.createMap()),s&&!r.symbolDepth&&(r.symbolDepth=e.createMap()),s){if((i=r.symbolDepth.get(s)||0)>10)return u(r);r.symbolDepth.set(s,i+1)}r.visitedTypes.set(a,!0);var c=n(t);return r.visitedTypes.delete(a),s&&r.symbolDepth.set(s,i),c}function L(t){if(_s(t))return function(t){e.Debug.assert(!!(524288&t.flags));var n,i=t.declaration.readonlyToken?e.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.createToken(t.declaration.questionToken.kind):void 0;n=os(t)?e.createTypeOperatorNode(c(ss(t),r)):c(ns(t),r);var o=f(rs(t),r,n),s=c(is(t),r),u=e.createMappedTypeNode(i,o,a,s);return r.approximateLength+=10,e.setEmitFlags(u,1)}(t);var n=ds(t);if(!n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo){if(!n.callSignatures.length&&!n.constructSignatures.length)return r.approximateLength+=2,e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length)return p(n.callSignatures[0],170,r);if(1===n.constructSignatures.length&&!n.callSignatures.length)return p(n.constructSignatures[0],171,r)}var a=r.flags;r.flags|=4194304;var o=function(t){if(i(r))return[e.createPropertySignature(void 0,"...",void 0,void 0,void 0)];for(var n=[],a=0,o=t.callSignatures;a<o.length;a++){var s=o[a];n.push(p(s,165,r))}for(var c=0,_=t.constructSignatures;c<_.length;c++){s=_[c];n.push(p(s,166,r))}if(t.stringIndexInfo){var f=void 0;2048&t.objectFlags?(f=d(Dc(be,t.stringIndexInfo.isReadonly,t.stringIndexInfo.declaration),0,r)).type=u(r):f=d(t.stringIndexInfo,0,r),n.push(f)}t.numberIndexInfo&&n.push(d(t.numberIndexInfo,1,r));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.createPropertySignature(void 0,"... "+(g.length-m)+" more ...",void 0,void 0,void 0)),l(g[g.length-1],r,n);break}l(h,r,n)}return n.length?n:void 0}(n);r.flags=a;var s=e.createTypeLiteralNode(o);return r.approximateLength+=2,e.setEmitFlags(s,1024&r.flags?0:1)}function R(t){var n=wc(t);if(t.target===yt||t.target===vt){if(2&r.flags){var i=c(n[0],r);return e.createTypeReferenceNode(t.target===yt?"Array":"ReadonlyArray",[i])}var a=c(n[0],r),o=e.createArrayTypeNode(a);return t.target===yt?o:e.createTypeOperatorNode(138,o)}if(!(8&t.target.objectFlags)){if(2048&r.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!Ji(t.symbol,r.enclosingDeclaration))return O(t);var s=t.target.outerTypeParameters,u=(T=0,void 0);if(s)for(var l=s.length;T<l;){var d=T,p=kc(s[T]);do{T++}while(T<l&&kc(s[T])===p);if(!e.rangeEquals(s,n,d,T)){var f=_(n.slice(d,T),r),g=r.flags;r.flags|=16;var m=S(p,r,788968,f);r.flags=g,u=u?B(u,m):m}}var y=void 0;if(n.length>0){var v=(t.target.typeParameters||e.emptyArray).length;y=_(n.slice(T,v),r)}var h=r.flags;r.flags|=16;var b=S(t.symbol,r,788968,y);return r.flags=h,u?B(u,b):b}if(n.length>0){var x=Ic(t),D=_(n.slice(0,x),r),C=t.target.hasRestElement;if(D){for(var T=t.target.minLength;T<Math.min(x,D.length);T++)D[T]=C&&T===x-1?e.createRestTypeNode(e.createArrayTypeNode(D[T])):e.createOptionalTypeNode(D[T]);var k=e.createTupleTypeNode(D);return t.target.readonly?e.createTypeOperatorNode(138,k):k}}if(r.encounteredError||524288&r.flags){k=e.createTupleTypeNode([]);return t.target.readonly?e.createTypeOperatorNode(138,k):k}r.encounteredError=!0}function B(t,r){if(e.isImportTypeNode(t)){var n=t.typeArguments;t.qualifier&&((e.isIdentifier(t.qualifier)?t.qualifier:t.qualifier.right).typeArguments=n),t.typeArguments=r.typeArguments;for(var i=0,a=j(r);i<a.length;i++){var o=a[i];t.qualifier=t.qualifier?e.createQualifiedName(t.qualifier,o):o}return t}n=t.typeArguments;(e.isIdentifier(t.typeName)?t.typeName:t.typeName.right).typeArguments=n,t.typeArguments=r.typeArguments;for(var s=0,c=j(r);s<c.length;s++){o=c[s];t.typeName=e.createQualifiedName(t.typeName,o)}return t}function j(t){for(var r=t.typeName,n=[];!e.isIdentifier(r);)n.unshift(r.right),r=r.left;return n.unshift(r),n}}function u(t){return t.approximateLength+=3,1&t.flags?e.createKeywordTypeNode(125):e.createTypeReferenceNode(e.createIdentifier("..."),void 0)}function l(t,r,n){var i=!!(8192&e.getCheckFlags(t)),a=i&&33554432&r.flags?be:Wa(t),o=r.enclosingDeclaration;if(r.enclosingDeclaration=void 0,r.tracker.trackSymbol&&4096&e.getCheckFlags(t)){var s=e.first(t.declarations);if(Fo(s))if(e.isBinaryExpression(s)){var c=e.getNameOfDeclaration(s);c&&e.isElementAccessExpression(c)&&e.isPropertyAccessEntityNameExpression(c.argumentExpression)&&y(c.argumentExpression,o,r)}else y(s.name.expression,o,r)}r.enclosingDeclaration=o;var l=A(t,r);r.approximateLength+=e.symbolName(t).length+1;var _=16777216&t.flags?e.createToken(57):void 0;if(8208&t.flags&&!ps(a).length&&!Wy(t))for(var d=0,f=Us(Gp(a,(function(e){return!(32768&e.flags)})),0);d<f.length;d++){var g=p(f[d],160,r);g.name=l,g.questionToken=_,n.push(x(g))}else{var m=r.flags;r.flags|=i?33554432:0;var v=void 0;v=i&&33554432&m?u(r):a?M(r,a,t,o):e.createKeywordTypeNode(125),r.flags=m;var h=Wy(t)?[e.createToken(138)]:void 0;h&&(r.approximateLength+=9);var b=e.createPropertySignature(h,l,_,v,void 0);n.push(x(b))}function x(r){if(e.some(t.declarations,(function(e){return 323===e.kind}))){var n=e.find(t.declarations,(function(e){return 323===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 _(t,r,n){if(e.some(t)){if(i(r)){if(!n)return[e.createTypeReferenceNode("...",void 0)];if(t.length>2)return[c(t[0],r),e.createTypeReferenceNode("... "+(t.length-2)+" more ...",void 0),c(t[t.length-1],r)]}for(var a=!(64&r.flags)?e.createUnderscoreEscapedMultiMap():void 0,o=[],s=0,u=0,l=t;u<l.length;u++){var _=l[u];if(s++,i(r)&&s+2<t.length-1){o.push(e.createTypeReferenceNode("... "+(t.length-s)+" more ...",void 0));var d=c(t[t.length-1],r);d&&o.push(d);break}r.approximateLength+=2;var p=c(_,r);p&&(o.push(p),a&&e.isIdentifierTypeReference(p)&&a.add(p.typeName.escapedText,[_,o.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],s=a[0],u=a[1];o[u]=c(s,r)}})),r.flags=f}return o}}function d(t,r,n){var i=e.getNameFromIndexInfo(t)||"x",a=e.createKeywordTypeNode(0===r?143:140),o=e.createParameter(void 0,void 0,void 0,i,void 0,a,void 0),s=c(t.type||be,n);return t.type||2097152&n.flags||(n.encounteredError=!0),n.approximateLength+=i.length+4,e.createIndexSignature(void 0,t.isReadonly?[e.createToken(138)]:void 0,[o],s)}function p(t,r,n,i,a){var o,s,u=256&n.flags;u&&(n.flags&=-257),32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?s=t.target.typeParameters.map((function(e){return c(Wl(e,t.mapper),n)})):o=t.typeParameters&&t.typeParameters.map((function(e){return g(e,n)}));var l,_=Ko(t).map((function(e){return m(e,n,162===r,i,a)}));if(t.thisParameter){var d=m(t.thisParameter,n);_.unshift(d)}var p=cc(t);if(p){var f=2===p.kind||3===p.kind?e.createToken(124):void 0,y=1===p.kind||3===p.kind?e.setEmitFlags(e.createIdentifier(p.parameterName),16777216):e.createThisTypeNode(),v=p.type&&c(p.type,n);l=e.createTypePredicateNodeWithModifier(f,y,v)}else{var h=uc(t);!h||u&&pa(h)?u||(l=e.createKeywordTypeNode(125)):l=function(t,r,n,i,a){if(r!==Se&&t.enclosingDeclaration){var o=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration);if(e.findAncestor(o,(function(e){return e===t.enclosingDeclaration}))&&o&&Wl(xl(o),n.mapper)===r&&O(o,r)){var s=L(t,o,i,a);if(s)return s}}return c(r,t)}(n,h,t,i,a)}return n.approximateLength+=3,e.createSignatureDeclaration(r,o,_,l,s)}function f(t,r,n){var i=r.flags;r.flags&=-513;var a=T(t,r),o=Ns(t),s=o&&c(o,r);return r.flags=i,e.createTypeParameterDeclaration(a,n,s)}function g(e,t,r){return void 0===r&&(r=vs(e)),f(e,t,r&&c(r,t))}function m(t,r,n,i,a){var o=e.getDeclarationOfKind(t,156);o||e.isTransientSymbol(t)||(o=e.getDeclarationOfKind(t,317));var s=Wa(t);o&&Cx(o)&&(s=Cd(s));var c=M(r,s,t,r.enclosingDeclaration,i,a),u=!(8192&r.flags)&&n&&o&&o.modifiers?o.modifiers.map(e.getSynthesizedClone):void 0,l=o&&e.isRestParameter(o)||32768&e.getCheckFlags(t)?e.createToken(25):void 0,_=o&&o.name?75===o.name.kind?e.setEmitFlags(e.getSynthesizedClone(o.name),16777216):153===o.name.kind?e.setEmitFlags(e.getSynthesizedClone(o.name.right),16777216):function t(n){r.tracker.trackSymbol&&e.isComputedPropertyName(n)&&No(n)&&y(n.expression,r.enclosingDeclaration,r);var i=e.visitEachChild(n,t,e.nullTransformationContext,void 0,t),a=e.nodeIsSynthesized(i)?i:e.getSynthesizedClone(i);return 191===a.kind&&(a.initializer=void 0),e.setEmitFlags(a,16777217)}(o.name):e.symbolName(t),d=o&&Zs(o)||16384&e.getCheckFlags(t)?e.createToken(57):void 0,p=e.createParameter(void 0,u,l,_,d,c,void 0);return r.approximateLength+=e.symbolName(t).length+3,p}function y(t,r,n){if(n.tracker.trackSymbol){var i=e.getFirstIdentifier(t),a=Sn(i,i.escapedText,1160127,void 0,void 0,!0);a&&n.tracker.trackSymbol(a,r,111551)}}function v(e,t,r,n){return t.tracker.trackSymbol(e,t.enclosingDeclaration,r),h(e,t,r,n)}function h(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=Ri(n,r.enclosingDeclaration,a,!!(128&r.flags));if(!c||Bi(c[0],r.enclosingDeclaration,1===c.length?a:Li(a))){var u=hi(c?c[0]:n,r.enclosingDeclaration);if(e.length(u)){s=u.map((function(t){return e.some(t.declarations,Vi)?D(t,r):void 0}));var l=u.map((function(e,t){return t}));l.sort((function(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}));for(var _=l.map((function(e){return u[e]})),d=0,p=_;d<p.length;d++){var f=p[d],g=t(f,Li(a),!1);if(g){if(f.exports&&f.exports.get("export=")&&Di(f.exports.get("export="),n)){c=g;break}c=g.concat(c||[xi(f,n)||n]);break}}}}if(c)return c;if(o||!(6144&n.flags)){if(!o&&!i&&e.forEach(n.declarations,Vi))return;return[n]}}(t,n,!0)),e.Debug.assert(a&&a.length>0)),a}function b(t,r){var n;return 524384&Cb(t).flags&&(n=e.createNodeArray(e.map($a(t),(function(e){return g(e,r)})))),n}function x(t,r,n){e.Debug.assert(t&&0<=r&&r<t.length);var i=t[r],a=""+w(i);if(!n.typeParameterSymbolList||!n.typeParameterSymbolList.get(a)){var o;if((n.typeParameterSymbolList||(n.typeParameterSymbolList=e.createMap())).set(a,!0),512&n.flags&&r<t.length-1){var s=i,c=t[r+1];if(1&e.getCheckFlags(c)){var u=function(t){return e.concatenate(Za(t),$a(t))}(2097152&s.flags?Hn(s):s);o=_(e.map(u,(function(e){return El(e,c.mapper)})),n)}else o=b(i,n)}return o}}function D(t,r){var n=e.getDeclarationOfKind(t,290);if(!n){var i=e.firstDefined(t.declarations,(function(e){return bi(e,t)}));i&&(n=e.getDeclarationOfKind(i,290))}if(n&&void 0!==n.moduleName)return n.moduleName;if(!n){if(r.tracker.trackReferencedAmbientModule){var o=e.filter(t.declarations,e.isAmbientModule);if(e.length(o))for(var c=0,u=o;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=yn(t),p=d.specifierCache&&d.specifierCache.get(_.path);if(!p){var f=U.out||U.outFile,g=r.tracker.moduleResolverHost,m=f?s(s({},U),{baseUrl:g.getCommonSourceDirectory()}):U;p=e.first(e.moduleSpecifiers.getModuleSpecifiers(t,m,_,g,{importModuleSpecifierPreference:f?"non-relative":"relative"})),d.specifierCache=d.specifierCache||e.createMap(),d.specifierCache.set(_.path,p)}return p}function S(t,r,n,i){var a=v(t,r,n,!(16384&r.flags)),o=111551===n;if(e.some(a[0].declarations,Vi)){var s=a.length>1?m(a,a.length-1,1):void 0,c=i||x(a,0,r),u=D(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(U)===e.ModuleResolutionKind.NodeJs&&u.indexOf("/node_modules/")>=0&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(u));var l=e.createLiteralTypeNode(e.createLiteral(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.createImportTypeNode(l,s,c,o)}var _=function t(r){return e.isIndexedAccessTypeNode(r.objectType)?t(r.objectType):r}(s),d=_.objectType.typeName;return e.createIndexedAccessTypeNode(e.createImportTypeNode(l,d,c,o),_.indexType)}var p=m(a,a.length-1,0);if(e.isIndexedAccessTypeNode(p))return p;if(o)return e.createTypeQueryNode(p);var f,g=(f=e.isIdentifier(p)?p:p.right).typeArguments;return f.typeArguments=void 0,e.createTypeReferenceNode(p,g);function m(t,n,a){var o,s=n===t.length-1?i:x(t,n,r),c=t[n],u=t[n-1];if(0===n)r.flags|=16777216,o=ia(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(u&&di(u)){var l=di(u);e.forEachEntry(l,(function(t,r){if(Di(t,c)&&!Ao(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(o||(o=ia(c,r)),r.approximateLength+=o.length+1,!(16&r.flags)&&u&&Mo(u)&&Mo(u).get(c.escapedName)&&Di(Mo(u).get(c.escapedName),c)){var _=m(t,n-1,a);return e.isIndexedAccessTypeNode(_)?e.createIndexedAccessTypeNode(_,e.createLiteralTypeNode(e.createLiteral(o))):e.createIndexedAccessTypeNode(e.createTypeReferenceNode(_,s),e.createLiteralTypeNode(e.createLiteral(o)))}var d=e.setEmitFlags(e.createIdentifier(o,s),16777216);if(d.symbol=c,n>a){_=m(t,n-1,a);return e.isEntityName(_)?e.createQualifiedName(_,d):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return d}}function C(e,t,r){var n=Sn(t.enclosingDeclaration,e,788968,void 0,e,!1);return!!n&&!(262144&n.flags&&n===r.symbol)}function T(t,r){if(4&r.flags&&r.typeParameterNames){var n=r.typeParameterNames.get(""+fu(t));if(n)return n}var i=k(t.symbol,r,788968,!0);if(!(75&i.kind))return e.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var a=i.escapedText,o=0,s=a;r.typeParameterNamesByText&&r.typeParameterNamesByText.get(s)||C(s,r,t);)s=a+"_"+ ++o;s!==a&&(i=e.createIdentifier(s,i.typeArguments)),(r.typeParameterNames||(r.typeParameterNames=e.createMap())).set(""+fu(t),i),(r.typeParameterNamesByText||(r.typeParameterNamesByText=e.createMap())).set(i.escapedText,!0)}return i}function k(t,r,n,i){var a=v(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=x(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=ia(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function E(t,r,n){var i=v(t,r,n);return function t(n,i){var a=x(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=ia(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,Vi))return e.createLiteral(D(o,r));var u=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),K):e.isIdentifierStart(c,K);if(0===i||u){var l=e.setEmitFlags(e.createIdentifier(s,a),16777216);return l.symbol=o,i>0?e.createPropertyAccess(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.createLiteral(s.substring(1,s.length-1).replace(/\\./g,(function(e){return e.substring(1)})))).singleQuote=39===c:""+ +s===s&&(_=e.createLiteral(+s)),_||((_=e.setEmitFlags(e.createIdentifier(s,a),16777216)).symbol=o),e.createElementAccess(t(n,i-1),_)}(i,i.length-1)}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=yn(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,U.target)||mg(a)?mg(a)&&e.startsWith(a,"-")?e.createComputedPropertyName(e.createLiteral(+a)):F(a):e.createLiteral(a,!!n)}if(8192&i.flags)return e.createComputedPropertyName(E(i.symbol,r,111551))}}(t,r,n);return i||(e.isKnownSymbol(t)?e.createComputedPropertyName(e.createPropertyAccess(e.createIdentifier("Symbol"),t.escapedName.substr(3))):F(e.unescapeLeadingUnderscores(t.escapedName),n))}function F(t,r){return e.isIdentifierText(t,U.target)?e.createIdentifier(t):e.createLiteral(mg(t)&&+t>=0?+t:t,!!r)}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)>=tc(r.target.typeParameters)}function M(t,r,n,i,a,o){if(r!==Se&&i){var s=I(n,i);if(s&&!e.isFunctionLikeDeclaration(s)){var u=e.getEffectiveTypeAnnotationNode(s);if(xl(u)===r&&O(u,r)){var l=L(t,u,a,o);if(l)return l}}}var _=t.flags;8192&r.flags&&r.symbol===n&&(t.flags|=1048576);var d=c(r,t);return t.flags=_,d}function L(r,i,a,o){n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();var s=!1,u=e.visitNode(i,(function n(i){var u,l;if(e.isJSDocAllType(i)||302===i.kind)return e.createKeywordTypeNode(125);if(e.isJSDocUnknownType(i))return e.createKeywordTypeNode(148);if(e.isJSDocNullableType(i))return e.createUnionTypeNode([e.visitNode(i.type,n),e.createKeywordTypeNode(100)]);if(e.isJSDocOptionalType(i))return e.createUnionTypeNode([e.visitNode(i.type,n),e.createKeywordTypeNode(146)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,n);if(e.isJSDocVariadicType(i))return e.createArrayTypeNode(e.visitNode(i.type,n));if(e.isJSDocTypeLiteral(i))return e.createTypeLiteralNode(e.map(i.jsDocPropertyTags,(function(t){var a=e.isIdentifier(t.name)?t.name:t.name.right,o=da(xl(i),a.escapedText),s=o&&t.typeExpression&&xl(t.typeExpression.type)!==o?c(o,r):void 0;return e.createPropertySignature(void 0,a,t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.createToken(57):void 0,s||t.typeExpression&&e.visitNode(t.typeExpression.type,n)||e.createKeywordTypeNode(125),void 0)})));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.createKeywordTypeNode(125),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))return e.createTypeLiteralNode([e.createIndexSignature(void 0,void 0,[e.createParameter(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 _;return e.isJSDocConstructSignature(i)?e.createConstructorTypeNode(e.visitNodes(i.typeParameters,n),e.mapDefined(i.parameters,(function(t,r){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(_=t.type):e.createParameter(void 0,void 0,g(t),t.name||g(t)?"args":"arg"+r,t.questionToken,e.visitNode(t.type,n),void 0)})),e.visitNode(_||i.type,n)):e.createFunctionTypeNode(e.visitNodes(i.typeParameters,n),e.map(i.parameters,(function(t,r){return e.createParameter(void 0,void 0,g(t),t.name||g(t)?"args":"arg"+r,t.questionToken,e.visitNode(t.type,n),void 0)})),e.visitNode(i.type,n))}if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(qc(i)||ve===Rc(Lc(i),788968,!0)))return e.setOriginalNode(c(xl(i),r),i);if(e.isLiteralImportTypeNode(i))return e.updateImportTypeNode(i,e.updateLiteralTypeNode(i.argument,function(n,i){if(o){if(r.tracker&&r.tracker.moduleResolverHost){var a=Kx(n);if(a){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:function(){return r.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return r.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,a);return e.createLiteral(c)}}}else if(r.tracker&&r.tracker.trackExternalModuleSymbolOfImportTypeNode){var u=ii(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);if(e.isEntityName(i)||e.isEntityNameExpression(i)){var d=e.getFirstIdentifier(i);if(e.isInJSFile(i)&&(e.isExportsIdentifier(d)||e.isModuleExportsAccessExpression(d.parent)||e.isQualifiedName(d.parent)&&e.isModuleIdentifier(d.parent.left)&&e.isExportsIdentifier(d.parent.right)))return s=!0,i;var p=ti(d,67108863,!0,!0);if(p&&(0!==zi(p,r.enclosingDeclaration,67108863,!1).accessibility?s=!0:(null===(l=null===(u=r.tracker)||void 0===u?void 0:u.trackSymbol)||void 0===l||l.call(u,p,r.enclosingDeclaration,67108863),null===a||void 0===a||a(p)),e.isIdentifier(i))){var f=262144&p.flags?T(yo(p),r):e.getMutableClone(i);return f.symbol=p,e.setEmitFlags(e.setOriginalNode(f,i),16777216)}}return e.visitEachChild(i,n,e.nullTransformationContext);function g(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.createToken(25):void 0)}}));if(!s)return u===i?e.getMutableClone(i):u}}(),re=e.createSymbolTable(),ne=cn(4,"undefined");ne.declarations=[];var ie=cn(1536,"globalThis",8);ie.exports=re,ie.declarations=[],re.set(ie.escapedName,ie);var ae,oe=cn(4,"arguments"),se=cn(4,"require"),ce={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+h},getTypeCount:function(){return v},getInstantiationCount:function(){return x},getRelationCacheSizes:function(){return{assignable:Yr.size,identity:$r.size,subtype:Qr.size,strictSubtype:Xr.size}},isUndefinedSymbol:function(e){return e===ne},isArgumentsSymbol:function(e){return e===oe},isUnknownSymbol:function(e){return e===ve},getMergedSymbol:mi,getDiagnostics:Qb,getGlobalDiagnostics:function(){return Xb(),qr.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(t,r){return(r=e.getParseTreeNode(r))?function(t,r){if(t=t.exportSymbol||t,75===r.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&!e.isAssignmentTarget(r))){var n=Cv(r);if(Si(vn(r).resolvedSymbol)===t)return n}return Wa(t)}(t,r):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=bn(n.locals,r,111551),o=bn(Mo(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:yo,getPropertiesOfType:ms,getPropertyOfType:function(t,r){return Js(t,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=nm(e.escapeLeadingUnderscores(r),i);return a?im(t,a):void 0}},getTypeOfPropertyOfType:function(t,r){return da(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:qs,getSignaturesOfType:Us,getIndexTypeOfType:Ws,getBaseTypes:oo,getBaseTypeOfLiteralType:ld,getWidenedType:Bd,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?xl(r):Se},getParameterType:by,getPromisedTypeOfPromise:Qv,getReturnTypeOfSignature:uc,isNullableType:Hg,getNullableType:Sd,getNonNullableType:Td,getNonOptionalType:Nd,getTypeArguments:wc,typeToTypeNode:te.typeToTypeNode,indexInfoToIndexSignatureDeclaration:te.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:te.signatureToSignatureDeclaration,symbolToEntityName:te.symbolToEntityName,symbolToExpression:te.symbolToExpression,symbolToTypeParameterDeclarations:te.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:te.symbolToParameterDeclaration,typeParameterToDeclaration:te.typeParameterToDeclaration,getSymbolsInScope:function(t,r){return(t=e.getParseTreeNode(t))?function(t,r){if(16777216&t.flags)return[];var n=e.createSymbolTable(),i=!1;return function(){for(;t;){switch(t.locals&&!hn(t)&&o(t.locals,r),t.kind){case 290:if(!e.isExternalOrCommonJsModule(t))break;case 249:o(yi(t).exports,2623475&r);break;case 248:o(yi(t).exports,8&r);break;case 214:t.name&&a(t.symbol,r);case 245:case 246:i||o(Mo(yi(t)),788968&r);break;case 201:t.name&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(oe,r),i=e.hasModifier(t,32),t=t.parent}o(re,r)}(),n.delete("this"),Qs(n);function a(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;n.has(i)||n.set(i,t)}}function o(e,t){t&&e.forEach((function(e){a(e,t)}))}}(t,r):[]},getSymbolAtLocation:function(t){return(t=e.getParseTreeNode(t))?nx(t,!0):void 0},getShorthandAssignmentValueSymbol:function(t){return(t=e.getParseTreeNode(t))?function(e){if(e&&282===e.kind)return ti(e.name,2208703);return}(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?function(e){return e.parent.parent.moduleSpecifier?zn(e.parent.parent,e):ti(e.propertyName||e.name,2998271)}(r):void 0},getExportSymbolOfSymbol:function(e){return mi(e.exportSymbol||e)},getTypeAtLocation:function(t){return(t=e.getParseTreeNode(t))?ix(t):Se},getTypeOfAssignmentPattern:function(t){var r=e.getParseTreeNode(t,e.isAssignmentPattern);return r&&ax(r)||Se},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?function(t){var r=ax(e.cast(t.parent.parent,e.isAssignmentPattern));return r&&Js(r,t.escapedText)}(r):void 0},signatureToString:function(t,r,n,i){return Gi(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return Qi(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return Hi(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return $i(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return Gi(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return Qi(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return Hi(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return $i(t,e.getParseTreeNode(r),n,i)},getAugmentedPropertiesOfType:ux,getRootSymbols:function t(r){var n=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(yn(t).containingType.types,(function(e){return Js(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=yn(r).target;)t=r;return t}(t))}return}(r);return n?e.flatMap(n,t):[r]},getContextualType:function(t,r){var n=e.getParseTreeNode(t,e.isExpression);if(n){var i=e.findAncestor(n,e.isCallLikeExpression),a=i&&vn(i).resolvedSignature;if(4&r&&i){var o=n;do{vn(o).skipDirectInference=!0,o=o.parent}while(o&&o!==i);vn(i).resolvedSignature=void 0}var s=rg(n,r);if(4&r&&i){o=n;do{vn(o).skipDirectInference=void 0,o=o.parent}while(o&&o!==i);vn(i).resolvedSignature=a}return s}},getContextualTypeForObjectLiteralElement:function(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?Gf(r):void 0},getContextualTypeForArgumentAtIndex:function(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&Vf(n,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&Yf(r)},isContextSensitive:Yl,getFullyQualifiedName:ei,getResolvedSignature:function(e,t,r){return ue(e,t,r,0)},getResolvedSignatureForSignatureHelp:function(e,t,r){return ue(e,t,r,16)},getExpandedParameters:Ko,hasEffectiveRestParameter:Ty,getConstantValue:function(t){var r=e.getParseTreeNode(t,Fx);return r?Px(r):void 0},isValidPropertyAccess:function(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&function(e,t){switch(e.kind){case 194:return gm(e,102===e.expression.kind,t,Bd(Ev(e.expression)));case 153:return gm(e,!1,t,Bd(Ev(e.left)));case 188:return gm(e,!1,t,xl(e))}}(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&function(e,t,r){return gm(e,194===e.kind&&102===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?Sx(r):void 0},getImmediateAliasedSymbol:hg,getAliasedSymbol:Hn,getEmitResolver:function(e,t){return Qb(e,t),ee},getExportsOfModule:li,getExportsAndPropertiesOfModule:function(t){var r=li(t),n=si(t);n!==t&&e.addRange(r,ms(Wa(n)));return r},getSymbolWalker:e.createGetSymbolWalker((function(e){return dc(e)||be}),cc,uc,oo,ds,Wa,vp,Vs,vs,e.getFirstIdentifier,wc),getAmbientModules:function(){lt||(lt=[],re.forEach((function(e,t){a.test(t)&<.push(e)})));return lt},getJsxIntrinsicTagNamesAt:function(t){var r=Ng(E.IntrinsicElements,t);return r?ms(r):e.emptyArray},isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&Zs(r)},tryGetMemberInModuleExports:function(t,r){return _i(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return function(t,r){var n=_i(t,r);if(n)return n;var i=si(r);if(i===r)return;var a=Wa(i);return 131068&a.flags||1&e.getObjectFlags(a)||od(a)?void 0:Js(a,t)}(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(e){return Ys(e,!1)},getApparentType:Fs,getUnionType:bu,isTypeAssignableTo:s_,createAnonymousType:Oi,createSignature:jo,createSymbol:cn,createIndexInfo:Dc,getAnyType:function(){return be},getStringType:function(){return Pe},getNumberType:function(){return we},createPromiseType:wy,createArrayType:su,getElementTypeOfArrayType:rd,getBooleanType:function(){return Be},getFalseType:function(e){return e?Oe:Me},getTrueType:function(e){return e?Le:Re},getVoidType:function(){return Je},getUndefinedType:function(){return ke},getNullType:function(){return Ae},getESSymbolType:function(){return je},getNeverType:function(){return ze},getOptionalType:function(){return Ne},isSymbolAccessible:zi,isArrayType:$_,isTupleType:gd,isArrayLikeType:nd,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((function(t){var r=t.name&&Au(t.name),n=r&&Eo(r)?wo(r):void 0,i=void 0===n?void 0:da(e,n);return!!i&&ud(i)&&!s_(ix(t),i)}))},getAllPossiblePropertiesOfTypes:function(t){var r=bu(t);if(!(1048576&r.flags))return ux(r);for(var n=e.createSymbolTable(),i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=ux(o);s<c.length;s++){var u=c[s].escapedName;if(!n.has(u)){var l=ws(r,u);l&&n.set(u,l)}}return e.arrayFrom(n.values())},getSuggestedSymbolForNonexistentProperty:um,getSuggestionForNonexistentProperty:lm,getSuggestedSymbolForNonexistentSymbol:function(t,r,n){return _m(t,e.escapeLeadingUnderscores(r),n)},getSuggestionForNonexistentSymbol:function(t,r,n){return function(t,r,n){var i=_m(t,r,n);return i&&e.symbolName(i)}(t,e.escapeLeadingUnderscores(r),n)},getSuggestedSymbolForNonexistentModule:dm,getSuggestionForNonexistentExport:function(t,r){var n=dm(t,r);return n&&e.symbolName(n)},getBaseConstraintOfType:Ss,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?Ns(e):void 0},resolveName:function(t,r,n,i){return Sn(r,e.escapeLeadingUnderscores(t),n,void 0,void 0,!1,i)},getJsxNamespace:function(t){return e.unescapeLeadingUnderscores(rn(t))},getAccessibleSymbolChain:Ri,getTypePredicateOfSignature:cc,resolveExternalModuleName:function(e){return ni(e,e,!0)},resolveExternalModuleSymbol:si,tryGetThisTypeAt:function(t,r){return(t=e.getParseTreeNode(t))&&wf(t,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=Jv(r),i=vs(n[r.typeArguments.indexOf(t)]);return i&&Wl(i,kl(n,Bv(r,n)))}(r)},getSuggestionDiagnostics:function(r,i){if(e.skipTypeChecking(r,U,t))return e.emptyArray;var a;try{return n=i,Wb(r),e.Debug.assert(!!(1&vn(r).flags)),a=e.addRange(a,Wr.getDiagnostics(r.fileName)),uh(Gb(r),(function(t,r,n){e.containsParseError(t)||Hb(r,!!(8388608&t.flags))||(a||(a=[])).push(s(s({},n),{category:e.DiagnosticCategory.Suggestion}))})),a||e.emptyArray}finally{n=void 0}},runWithCancellationToken:function(e,t){try{return n=e,t(ce)}finally{n=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:$a,isDeclarationVisible:aa};function ue(t,r,n,i){var a=e.getParseTreeNode(t,e.isCallLikeExpression);ae=n;var o=a?oy(a,r,i):void 0;return ae=void 0,o}var le=e.createMap(),_e=e.createMap(),de=e.createMap(),pe=e.createMap(),fe=e.createMap(),ge=e.createMap(),me=[],ye=e.createMap(),ve=cn(4,"unknown"),he=cn(0,"__resolving__"),be=Ei(1,"any"),xe=Ei(1,"any"),De=Ei(1,"any"),Se=Ei(1,"error"),Ce=Ei(1,"any",524288),Te=Ei(2,"unknown"),ke=Ei(32768,"undefined"),Ee=W?ke:Ei(32768,"undefined",524288),Ne=Ei(32768,"undefined"),Ae=Ei(65536,"null"),Fe=W?Ae:Ei(65536,"null",524288),Pe=Ei(4,"string"),we=Ei(8,"number"),Ie=Ei(64,"bigint"),Oe=Ei(512,"false"),Me=Ei(512,"false"),Le=Ei(512,"true"),Re=Ei(512,"true");Le.regularType=Re,Le.freshType=Le,Re.regularType=Re,Re.freshType=Le,Oe.regularType=Me,Oe.freshType=Oe,Me.regularType=Me,Me.freshType=Oe;var Be=Ni([Me,Re]);Ni([Me,Le]),Ni([Oe,Re]),Ni([Oe,Le]);var je=Ei(4096,"symbol"),Je=Ei(16384,"void"),ze=Ei(131072,"never"),Ue=Ei(131072,"never"),Ke=Ei(131072,"never",2097152),Ve=Ei(131072,"never"),qe=Ei(131072,"never"),We=Ei(67108864,"object"),He=bu([Pe,we,je]),Ge=Z?Pe:He,Qe=bu([we,Ie]),Xe=Al((function(e){return 262144&e.flags?(t=e).constraint===Te?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=Fi(t.symbol),t.restrictiveInstantiation.constraint=Te,t.restrictiveInstantiation):e;var t})),Ye=Al((function(e){return 262144&e.flags?De:e})),Ze=Oi(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0),$e=Oi(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0);$e.objectFlags|=4096;var et=cn(2048,"__type");et.members=e.createSymbolTable();var tt=Oi(et,J,e.emptyArray,e.emptyArray,void 0,void 0),rt=Oi(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0);rt.instantiations=e.createMap();var nt=Oi(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0);nt.objectFlags|=2097152;var it=Oi(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0),at=Oi(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0),ot=Oi(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0),st=Fi(),ct=Fi();ct.constraint=st;var ut,lt,_t,dt,pt,ft,gt,mt,yt,vt,ht,bt,xt,Dt,St,Ct,Tt,kt,Et,Nt,At,Ft,Pt,wt,It,Ot,Mt,Lt,Rt,Bt,jt,Jt,zt,Ut,Kt,Vt,qt,Wt,Ht,Gt,Qt,Xt,Yt,Zt,$t,er,tr,rr=Fi(),nr=ec(1,"<<unresolved>>",0,be),ir=jo(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),ar=jo(void 0,void 0,void 0,e.emptyArray,Se,void 0,0,0),or=jo(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),sr=jo(void 0,void 0,void 0,e.emptyArray,Ue,void 0,0,0),cr=Dc(Pe,!0),ur=e.createMap(),lr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},_r=qh(be,be,be),dr=qh(be,be,Te),pr=qh(ze,be,ke),fr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Ut||(Ut=Zc("AsyncIterator",3,e))||rt},getGlobalIterableType:function(e){return zt||(zt=Zc("AsyncIterable",1,e))||rt},getGlobalIterableIteratorType:function(e){return Kt||(Kt=Zc("AsyncIterableIterator",1,e))||rt},getGlobalGeneratorType:function(e){return Vt||(Vt=Zc("AsyncGenerator",3,e))||rt},resolveIterationType:Yv,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},gr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Lt||(Lt=Zc("Iterator",3,e))||rt},getGlobalIterableType:nu,getGlobalIterableIteratorType:function(e){return Rt||(Rt=Zc("IterableIterator",1,e))||rt},getGlobalGeneratorType:function(e){return Bt||(Bt=Zc("Generator",3,e))||rt},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},mr=e.createMap(),yr=e.createMap(),vr=0,hr=0,br=0,xr=!1,Dr=0,Sr=vl(""),Cr=vl(0),Tr=vl({negative:!1,base10Value:"0"}),kr=[],Er=[],Nr=[],Ar=0,Fr=10,Pr=[],wr=[],Ir=[],Or=[],Mr=[],Lr=[],Rr=[],Br=[],jr=[],Jr=[],zr=[],Ur=[],Kr=[],Vr=[],qr=e.createDiagnosticCollection(),Wr=e.createDiagnosticCollection(),Hr=e.createMapFromTemplate({string:Pe,number:we,bigint:Ie,boolean:Be,symbol:je,undefined:ke}),Gr=bu(e.arrayFrom(S.keys(),vl)),Qr=e.createMap(),Xr=e.createMap(),Yr=e.createMap(),Zr=e.createMap(),$r=e.createMap(),en=e.createMap(),tn=e.createSymbolTable();return tn.set(ne.escapedName,ne),function(){for(var r=0,n=t.getSourceFiles();r<n.length;r++){var i=n[r];e.bindSourceFile(i,U)}var a;ut=e.createMap();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];qr.add(e.createDiagnosticForNode(_,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}gn(re,i.locals)}if(i.jsGlobalAugmentations&&gn(re,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(_t=e.concatenate(_t,i.patternAmbientModules)),i.moduleAugmentations.length&&(a||(a=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports)i.symbol.globalExports.forEach((function(e,t){re.has(t)||re.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)&&mn(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 qr.add(e.createDiagnosticForNode(n,r,t))}}(e.unescapeLeadingUnderscores(i),n)):t.set(i,r)}))})(re,tn,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),yn(ne).type=Ee,yn(oe).type=Zc("IArguments",0,!0),yn(ve).type=Se,yn(ie).type=Ai(16,ie),yt=Zc("Array",1,!0),pt=Zc("Object",0,!0),ft=Zc("Function",0,!0),gt=G&&Zc("CallableFunction",0,!0)||ft,mt=G&&Zc("NewableFunction",0,!0)||ft,ht=Zc("String",0,!0),bt=Zc("Number",0,!0),xt=Zc("Boolean",0,!0),Dt=Zc("RegExp",0,!0),Ct=su(be),(Tt=su(xe))===Ze&&(Tt=Oi(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0));if(vt=iu("ReadonlyArray",1)||yt,kt=vt?au(vt,[be]):Ct,St=iu("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)||mn(y)}}ut.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++){fn(c[s],o,r,a)}for(var u=0,l=a;u<l.length;u++){fn(l[u],o,r,i)}}));else{var a=e.arrayFrom(i.keys()).join(", ");qr.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))),qr.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)))}})),ut=void 0}(),ce;function rn(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxNamespace)return r.localJsxNamespace;var n=r.pragmas.get("jsx");if(n){var i=e.isArray(n)?n[0]:n;if(r.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,K),e.visitNode(r.localJsxFactory,a),r.localJsxFactory)return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}}return $t||($t="React",U.jsxFactory?(er=e.parseIsolatedEntityName(U.jsxFactory,K),e.visitNode(er,a),er&&($t=e.getFirstIdentifier(er).escapedText)):U.reactNamespace&&($t=e.escapeLeadingUnderscores(U.reactNamespace))),er||(er=e.createQualifiedName(e.createIdentifier(e.unescapeLeadingUnderscores($t)),"createElement")),$t;function a(t){return t.pos=-1,t.end=-1,e.visitEachChild(t,a,e.nullTransformationContext)}}function nn(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 qr.add(s),s}function an(t,r){t?qr.add(r):Wr.add(s(s({},r),{category:e.DiagnosticCategory.Suggestion}))}function on(t,r,n,i,a,o,s){an(t,"message"in n?e.createDiagnosticForNode(r,n,i,a,o,s):e.createDiagnosticForNodeFromMessageChain(r,n))}function sn(t,r,n,i,a,o,s){var c=nn(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 cn(e,t,r){h++;var n=new g(33554432|e,t);return n.checkFlags=r||0,n}function un(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 ln(e,t){t.mergeId||(t.mergeId=d,d++),Pr[t.mergeId]=e}function _n(t){var r=cn(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=e.cloneMap(t.members)),t.exports&&(r.exports=e.cloneMap(t.exports)),ln(r,t),r}function dn(t,r,n){if(void 0===n&&(n=!1),!(t.flags&un(r.flags))||67108864&(r.flags|t.flags)){if(r===t)return t;if(!(33554432&t.flags)){var i=Wn(t);if(i===ve)return r;t=_n(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()),gn(t.members,r.members,n)),r.exports&&(t.exports||(t.exports=e.createSymbolTable()),gn(t.exports,r.exports,n)),n||ln(t,r)}else if(1024&t.flags)t!==ie&&nn(e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Hi(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=Hi(r);if(c&&u&&ut&&!a&&c!==u){var _=-1===e.comparePaths(c.path,u.path)?c:u,d=_===c?u:c,p=e.getOrUpdate(ut,_.path+"|"+d.path,(function(){return{firstFile:_,secondFile:d,conflictingSymbols:e.createMap()}})),f=e.getOrUpdate(p.conflictingSymbols,l,(function(){return{isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]}}));g(f.firstFileLocations,r),g(f.secondFileLocations,t)}else pn(r,s,l,t),pn(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 pn(t,r,n,i){e.forEach(t.declarations,(function(e){fn(e,r,n,i.declarations)}))}function fn(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),c=qr.lookup(s);return c||(qr.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 gn(e,t,r){void 0===r&&(r=!1),t.forEach((function(t,n){var i=e.get(n);e.set(n,i?dn(i,t,r):t)}))}function mn(t){var r,n,i=t.parent;if(i.symbol.declarations[0]===i)if(e.isGlobalScopeAugmentation(i))gn(re,i.symbol.exports);else{var a=ii(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=si(a)).flags)if(e.some(_t,(function(e){return a===e.symbol}))){var o=dn(i.symbol,a,!0);dt||(dt=e.createMap()),dt.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=Oo(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(_)&&dn(s.get(_),d)}dn(a,i.symbol)}else nn(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 yn(e){if(33554432&e.flags)return e;var t=w(e);return wr[t]||(wr[t]=new A)}function vn(e){var t=P(e);return Ir[t]||(Ir[t]=new F)}function hn(t){return 290===t.kind&&!e.isExternalOrCommonJsModule(t)}function bn(t,r,n){if(n){var i=mi(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=Hn(i);if(a===ve||a.flags&n)return i}}}}function xn(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(V&&(i.externalModuleIndicator||a.externalModuleIndicator)||!U.outFile&&!U.out||hp(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){if(191===r.kind){var c=e.getAncestor(n,191);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<c.pos:xn(e.getAncestor(r,242),n)}return 242===r.kind?!function(t,r){switch(t.parent.parent.kind){case 225:case 230:case 232:if(Pn(r,t,o))return!0}var n=t.parent.parent;return e.isForInOrOfStatement(n)&&Pn(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===U.target&&U.useDefineForClassFields&&e.getContainingClass(r)===e.getContainingClass(n)&&u(n,r))}return!!(263===n.parent.kind||259===n.parent.kind&&n.parent.isExportEquals)||(!(259!==n.kind||!n.isExportEquals)||(!!(4194304&n.flags||hp(n)||e.findAncestor(n,(function(t){return e.isInterfaceDeclaration(t)||e.isTypeAliasDeclaration(t)})))||!!u(n,r)&&(99!==U.target||!U.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&&159===n.parent.kind&&n.parent.initializer===n)if(e.hasModifier(n.parent,32)){if(161===r.kind)return!0}else if(!(159===r.kind&&!e.hasModifier(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 202:return!0;case 159:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 223:switch(r.parent.kind){case 163:case 161:case 164:return!0;default:return!1}default:return!1}}))}}function Dn(t,r,n){var i=e.getEmitScriptTarget(U),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=vn(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 202:case 201:case 244:case 162:return!1;case 161:case 163:case 164:case 281:return s(t.name);case 159:return e.hasStaticModifier(t)?i<99||!U.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 Sn(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),Cn(e,t,r,n,i,a,o,bn,s)}function Cn(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&&!hn(t)&&(l=c(t.locals,r,n))){var b=!0;if(e.isFunctionLike(t)&&_&&_!==t.body?(n&l.flags&788968&&303!==_.kind&&(b=!!(262144&l.flags)&&(_===t.type||156===_.kind||155===_.kind)),n&l.flags&3&&(Dn(l,t,_)?b=!1:1&l.flags&&(b=156===_.kind||_===t.type&&!!e.findAncestor(l.valueDeclaration,e.isParameter)))):180===t.kind&&(b=_===t.trueType),b)break e;l=void 0}switch(y=y||Tn(t,_),t.kind){case 290:if(!e.isExternalOrCommonJsModule(t))break;h=!0;case 249:var x=yi(t).exports||J;if(290===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,263)||e.getDeclarationOfKind(S,262)))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 248:if(l=c(yi(t).exports,r,8&n))break e;break;case 159:if(!e.hasModifier(t,32)){var C=Ti(t.parent);C&&C.locals&&c(C.locals,r,111551&n)&&(p=t)}break;case 245:case 214:case 246:if(l=c(yi(t).members||J,r,788968&n)){if(!Nn(l,t)){l=void 0;break}if(_&&e.hasModifier(_,32))return void nn(v,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(214===t.kind&&32&n){var T=t.name;if(T&&r===T.escapedText){l=t.symbol;break e}}break;case 216:if(_===t.expression&&90===t.parent.token){var k=t.parent.parent;if(e.isClassLike(k)&&(l=c(yi(k).members,r,788968&n)))return void(i&&nn(v,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 154:if(g=t.parent.parent,(e.isClassLike(g)||246===g.kind)&&(l=c(yi(g).members,r,788968&n)))return void nn(v,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 202:if(U.target>=2)break;case 161:case 162:case 163:case 164:case 244:if(3&n&&"arguments"===r){l=oe;break e}break;case 201:if(3&n&&"arguments"===r){l=oe;break e}if(16&n){var E=t.name;if(E&&r===E.escapedText){l=t.symbol;break e}}break;case 157:t.parent&&156===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||245===t.parent.kind)&&(t=t.parent);break;case 322:case 315:case 316:t=e.getJSDocHost(t);break;case 156:_&&(_===t.initializer||_===t.name&&e.isBindingPattern(_))&&(f||(f=t));break;case 191:if(_&&(_===t.initializer||_===t.name&&e.isBindingPattern(_)))156===(w=e.getRootDeclaration(t)).kind&&(f||(f=t))}kn(t)&&(d=t),_=t,t=t.parent}if(!o||!l||d&&l===d.symbol||(l.isReferenced|=n),!l){if(_&&(e.Debug.assert(290===_.kind),_.commonJsModuleIndicator&&"exports"===r&&n&_.symbol.flags))return _.symbol;s||(l=c(re,r,n))}if(!l&&m&&e.isInJSFile(m)&&m.parent&&e.isRequireCall(m.parent,!1))return se;if(l){if(i){if(p&&(99!==U.target||!U.useDefineForClassFields)){var N=p.name;return void nn(v,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(N),En(a))}if(v&&(2&n||(32&n||384&n)&&111551===(111551&n))){var A=Si(l);(2&A.flags||32&A.flags||384&A.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)||248===t.kind}));if(void 0===n)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&n.flags)&&!xn(n,r)){var i=void 0,a=e.declarationNameToString(e.getNameOfDeclaration(n));2&t.flags?i=nn(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,a):32&t.flags?i=nn(r,e.Diagnostics.Class_0_used_before_its_declaration,a):256&t.flags?i=nn(r,e.Diagnostics.Enum_0_used_before_its_declaration,a):(e.Debug.assert(!!(128&t.flags)),U.preserveConstEnums&&(i=nn(r,e.Diagnostics.Class_0_used_before_its_declaration,a))),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_here,a))}}(A,v)}if(l&&h&&111551===(111551&n)&&!(4194304&m.flags)){var F=mi(l);e.length(F.declarations)&&e.every(F.declarations,(function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports}))&&on(!U.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 P=mi(Lo(l)),w=e.getRootDeclaration(f);P===yi(f)?nn(v,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(f.name)):P.valueDeclaration&&P.valueDeclaration.pos>f.pos&&w.parent.locals&&c(w.parent.locals,P.escapedName,n)===P&&nn(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=Xn(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(nn(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||Zb(t)||hp(t))return!1;var i=e.getThisContainer(t,!1),a=i;for(;a;){if(e.isClassLike(a.parent)){var o=yi(a.parent);if(!o)break;if(Js(Wa(o),r))return nn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,En(n),Hi(o)),!0;if(a===i&&!e.hasModifier(a,32))if(Js(yo(o).thisType,r))return nn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,En(n)),!0}a=a.parent}return!1}(v,r,a)&&!An(v)&&!function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=Wn(Sn(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(Js(yo(a),s))return nn(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 nn(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(Fn(r)&&263===t.parent.kind)return nn(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(Fn(r))return nn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=Wn(Sn(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a=function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here;return nn(t,a,e.unescapeLeadingUnderscores(r)),!0}}return!1}(v,r,n)&&!function(t,r,n){if(111127&n){if(Wn(Sn(t,r,1024,void 0,void 0,!1)))return nn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n){if(Wn(Sn(t,r,1536,void 0,void 0,!1)))return nn(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=Wn(Sn(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return nn(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 I=void 0;if(u&&Ar<Fr&&(I=_m(m,r,n))){var O=Hi(I),M=nn(v,u,En(a),O);I.valueDeclaration&&e.addRelatedInfo(M,e.createDiagnosticForNode(I.valueDeclaration,e.Diagnostics._0_is_declared_here,O))}I||nn(v,i,En(a)),Ar++}}function Tn(t,r){return 202!==t.kind&&201!==t.kind?e.isTypeQueryNode(t)||(e.isFunctionLikeDeclaration(t)||159===t.kind&&!e.hasModifier(t,32))&&(!r||r!==t.name):(!r||r!==t.name)&&(!(!t.asteriskToken&&!e.hasModifier(t,256))||!e.getImmediatelyInvokedFunctionExpression(t))}function kn(e){switch(e.kind){case 244:case 245:case 246:case 248:case 247:case 249:return!0;default:return!1}}function En(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function Nn(t,r){for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(155===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 An(t){var r=function t(r){switch(r.kind){case 75:case 194:return r.parent?t(r.parent):void 0;case 216:if(e.isEntityNameExpression(r.expression))return r.expression;default:return}}(t);return!(!r||!ti(r,64,!0))&&(nn(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),!0)}function Fn(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function Pn(t,r,n){return!!r&&!!e.findAncestor(t,(function(t){return t===n||e.isFunctionLike(t)?"quit":t===r}))}function wn(e){switch(e.kind){case 253:return e;case 255:return e.parent;case 256:return e.parent.parent;case 258:return e.parent.parent.parent;default:return}}function In(t){return e.find(t.declarations,On)}function On(t){return 253===t.kind||252===t.kind||255===t.kind&&!!t.name||256===t.kind||262===t.kind||258===t.kind||263===t.kind||259===t.kind&&e.exportAssignmentIsAlias(t)||e.isBinaryExpression(t)&&2===e.getAssignmentDeclarationKind(t)&&e.exportAssignmentIsAlias(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind&&Mn(t.parent.right)||282===t.kind||281===t.kind&&Mn(t.initializer)}function Mn(t){return e.isAliasableExpression(t)||e.isFunctionExpression(t)&&sy(t)}function Ln(t,r){if(265===t.moduleReference.kind){var n=ni(t,e.getExternalModuleImportEqualsDeclarationExpression(t)),i=si(n);return Gn(t,n,i,!1),i}var a=$n(t.moduleReference,r);return function(t,r){if(Gn(t,void 0,r,!1)){var n=Xn(yi(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(nn(t.moduleReference,a),e.createDiagnosticForNode(n,o,s))}}(t,a),a}function Rn(e,t,r,n){var i=e.exports.get("export=");if(i)return Js(Wa(i),t);var a=e.exports.get(t),o=Wn(a,n);return Gn(r,a,o,!1),o}function Bn(t){return e.isExportAssignment(t)&&!t.isExportEquals||e.hasModifier(t,512)||e.isExportSpecifier(t)}function jn(t,r,n){if(!q)return!1;if(!t||t.isDeclarationFile){var i=Rn(r,"default",void 0,!0);return(!i||!e.some(i.declarations,Bn))&&!Rn(r,e.escapeLeadingUnderscores("__esModule"),void 0,n)}return e.isSourceFileJS(t)?!t.externalModuleIndicator&&!Rn(r,e.escapeLeadingUnderscores("__esModule"),void 0,n):ui(r)}function Jn(t,r){var n=ni(t,t.parent.moduleSpecifier);if(n){var i=void 0;i=e.isShorthandAmbientModuleSymbol(n)?n:Rn(n,"default",t,r);var a=jn(e.find(n.declarations,e.isSourceFile),n,r);if(i||a){if(a){var o=si(n,r)||Wn(n,r);return Gn(t,n,o,!1),o}}else if(ui(n)){var s=V>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",c=n.exports.get("export=").valueDeclaration,u=nn(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Hi(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))nn(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Hi(t),Hi(r.symbol));else{var a=nn(r.name,e.Diagnostics.Module_0_has_no_default_export,Hi(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=ni(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 Gn(t,i,void 0,!1),i}}function zn(t,r,n){var i;void 0===n&&(n=!1);var a=ni(t,t.moduleSpecifier),s=r.propertyName||r.name,c="default"===s.escapedText&&!(!U.allowSyntheticDefaultImports&&!U.esModuleInterop),u=ci(a,t.moduleSpecifier,n,c);if(u&&s.escapedText){if(e.isShorthandAmbientModuleSymbol(a))return a;var l=void 0;l=a&&a.exports&&a.exports.get("export=")?Js(Wa(u),s.escapedText):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return Wn(Js(xl(r),t))}}(u,s.escapedText),l=Wn(l,n);var _=function(e,t,r){var n;if(1536&e.flags){var i=(null!==(n=t.propertyName)&&void 0!==n?n:t.name).escapedText,a=di(e).get(i),o=Wn(a,r);return Gn(t,a,o,!1),o}}(u,r,n);if(void 0===_&&"default"===s.escapedText)jn(e.find(a.declarations,e.isSourceFile),a,n)&&(_=si(a,n)||Wn(a,n));var d=_&&l&&_!==l?function(t,r){if(t===ve&&r===ve)return ve;if(790504&t.flags)return t;var n=cn(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=e.cloneMap(r.members)),t.exports&&(n.exports=e.cloneMap(t.exports)),n}(l,_):_||l;if(!d){var p=ei(a,t),f=e.declarationNameToString(s),g=dm(s,u);if(void 0!==g){var m=Hi(g),y=nn(s,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,p,f,m);g.valueDeclaration&&e.addRelatedInfo(y,e.createDiagnosticForNode(g.valueDeclaration,e.Diagnostics._0_is_declared_here,m))}else(null===(i=a.exports)||void 0===i?void 0:i.has("default"))?nn(s,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,p,f):function(t,r,n,i,a){var s,c=null===(s=i.valueDeclaration.locals)||void 0===s?void 0:s.get(r.escapedText),u=i.exports;if(c){var l=null===u||void 0===u?void 0:u.get("export=");if(l)Di(l,c)?function(t,r,n,i){if(V>=e.ModuleKind.ES2015){var a=U.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;nn(r,a,n)}else if(e.isInJSFile(t)){a=U.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;nn(r,a,n)}else{a=U.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;nn(r,a,n,n,i)}}(t,r,n,a):nn(r,e.Diagnostics.Module_0_has_no_exported_member_1,a,n);else{var _=u?e.find(Qs(u),(function(e){return!!Di(e,c)})):void 0,d=_?nn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,a,n,Hi(_)):nn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,a,n);e.addRelatedInfo.apply(void 0,o([d],e.map(c.declarations,(function(t,r){return e.createDiagnosticForNode(t,0===r?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,n)}))))}}else nn(r,e.Diagnostics.Module_0_has_no_exported_member_1,a,n)}(t,s,f,a,p)}return d}}function Un(e,t,r){var n=e.parent.parent.moduleSpecifier?zn(e.parent.parent,e,r):ti(e.propertyName||e.name,t,!1,r);return Gn(e,void 0,n,!1),n}function Kn(t,r){if(e.isClassExpression(t))return lv(t).symbol;if(e.isEntityName(t)||e.isEntityNameExpression(t)){var n=ti(t,901119,!0,r);return n||(lv(t),vn(t).resolvedSymbol)}}function Vn(t,r){switch(void 0===r&&(r=!1),t.kind){case 253:return Ln(t,r);case 255:return Jn(t,r);case 256:return function(e,t){var r=e.parent.parent.moduleSpecifier,n=ni(e,r),i=ci(n,r,t,!1);return Gn(e,n,i,!1),i}(t,r);case 262:return function(e,t){var r=e.parent.moduleSpecifier,n=r&&ni(e,r),i=r&&ci(n,r,t,!1);return Gn(e,n,i,!1),i}(t,r);case 258:return function(e,t){var r=zn(e.parent.parent.parent,e,t);return Gn(e,void 0,r,!1),r}(t,r);case 263:return Un(t,901119,r);case 259:case 209:return function(t,r){var n=Kn(e.isExportAssignment(t)?t.expression:t.right,r);return Gn(t,void 0,n,!1),n}(t,r);case 252:return function(e,t){var r=si(e.parent.symbol,t);return Gn(e,void 0,r,!1),r}(t,r);case 282:return ti(t.name,901119,!0,r);case 281:return function(e,t){return Kn(e.initializer,t)}(t,r);case 194:return function(t,r){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind)return Kn(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function qn(e,t){return void 0===t&&(t=901119),!!e&&(2097152===(e.flags&(2097152|t))||!!(2097152&e.flags&&67108864&e.flags))}function Wn(e,t){return!t&&qn(e)?Hn(e):e}function Hn(t){e.Debug.assert(0!==(2097152&t.flags),"Should only get Alias here.");var r=yn(t);if(r.target)r.target===he&&(r.target=ve);else{r.target=he;var n=In(t);if(!n)return e.Debug.fail();var i=Vn(n);r.target===he?r.target=i||ve:nn(n,e.Diagnostics.Circular_definition_of_import_alias_0,Hi(t))}return r.target}function Gn(t,r,n,i){if(!t)return!1;var a=yi(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return yn(a).typeOnlyDeclaration=t,!0;var o=yn(a);return Qn(o,r,i)||Qn(o,n,i)}function Qn(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&&void 0!==c?c:yn(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function Xn(e){if(2097152&e.flags)return yn(e).typeOnlyDeclaration||void 0}function Yn(e){var t=yi(e),r=Hn(t);r&&((r===ve||111551&r.flags&&!xx(r)&&!Xn(t))&&Zn(t))}function Zn(t){var r=yn(t);if(!r.referenced){r.referenced=!0;var n=In(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=Wn(t);(i===ve||111551&i.flags)&&lv(n.moduleReference)}}}function $n(t,r){return 75===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),75===t.kind||153===t.parent.kind?ti(t,1920,!1,r):(e.Debug.assert(253===t.parent.kind),ti(t,901119,!1,r))}function ei(e,t){return e.parent?ei(e.parent,t)+"."+Hi(e):Hi(e,t,void 0,20)}function ti(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(75===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:yp(e.getFirstIdentifier(t)),u=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,r){if(Kc(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(e.isExpressionStatement(r)&&e.isBinaryExpression(r.expression)&&3===e.getAssignmentDeclarationKind(r.expression)){if(i=yi(r.expression.left))return ri(i)}if((e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)){if(i=yi(r.parent.parent.left))return ri(i)}var n=e.getEffectiveJSDocHost(t);if(n&&e.isFunctionLike(n)){var i;return(i=yi(n))&&i.valueDeclaration}}(t.parent);if(n)return Sn(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=mi(Sn(a||t,t.escapedText,r,n||u?void 0:c,t,!0))))return mi(u)}else{if(153!==t.kind&&194!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var l=153===t.kind?t.left:t.expression,_=153===t.kind?t.right:t.name,d=ti(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&&py(d.valueDeclaration.initializer)){var p=d.valueDeclaration.initializer.arguments[0],f=ni(p,p);if(f){var g=si(f);g&&(d=g)}}if(!(o=mi(bn(di(d),_.escapedText,r))))return void(n||nn(_,e.Diagnostics.Namespace_0_has_no_exported_member_1,ei(d),e.declarationNameToString(_)))}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||259===t.parent.kind)&&Gn(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:Hn(o)}}function ri(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 ni(t,r,n){return ii(t,r,n?void 0:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations)}function ii(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?ai(t,r.text,n,r,i):void 0}function ai(r,n,i,a,o){(void 0===o&&(o=!1),e.startsWith(n,"@types/"))&&nn(a,e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var s=Ys(n,!0);if(s)return s;var c=e.getSourceFileOfNode(r),u=e.getResolvedModule(c,n),l=u&&e.getResolutionDiagnostic(U,u),_=u&&!l&&t.getSourceFile(u.resolvedFileName);if(_)return _.symbol?(u.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(u.extension)&&oi(!1,a,u,n),mi(_.symbol)):void(i&&nn(a,e.Diagnostics.File_0_is_not_a_module,_.fileName));if(_t){var d=e.findBestPatternMatch(_t,(function(e){return e.pattern}),n);if(d){var p=dt&&dt.get(n);return mi(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?nn(a,e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,u.resolvedFileName):oi(X&&!!i,a,u,n);else if(i){if(u){var f=t.getProjectReferenceRedirect(u.resolvedFileName);if(f)return void nn(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,f,u.resolvedFileName)}if(l)nn(a,l,n,u.resolvedFileName);else{var g=e.tryExtractTSExtension(n);if(g)nn(a,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,g,e.removeExtension(n,g));else!U.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(U)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(U)?nn(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n):nn(a,i,n)}}}function oi(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,f().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_install_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;on(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 si(t,r){if(null===t||void 0===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=yn(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:_n(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)?dn(i.exports.get(t),e):e)})),yn(i).cjsExportMerged=i,n.cjsExportMerged=i}(mi(Wn(t.exports.get("export="),r)),mi(t));return mi(n)||t}}function ci(t,r,n,i){var a=si(t,n);if(!n&&a){if(!i&&!(1539&a.flags)&&!e.getDeclarationOfKind(a,290)){var o=V>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return nn(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(U.esModuleInterop){var s=r.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=Wa(a),u=zs(c,0);if(u&&u.length||(u=zs(c,1)),u&&u.length){var l=dy(c,a,t),_=cn(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=e.cloneMap(a.members)),a.exports&&(_.exports=e.cloneMap(a.exports));var d=ds(l);return _.type=Oi(_,d.members,e.emptyArray,e.emptyArray,d.stringIndexInfo,d.numberIndexInfo),_}}}}return a}function ui(e){return void 0!==e.exports.get("export=")}function li(e){return Qs(pi(e))}function _i(e,t){var r=pi(t);if(r)return r.get(e)}function di(e){return 6256&e.flags?Oo(e,"resolvedExports"):1536&e.flags?pi(e):e.exports||J}function pi(e){var t=yn(e);return t.resolvedExports||(t.resolvedExports=gi(e))}function fi(t,r,n,i){r&&r.forEach((function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&Wn(o)!==Wn(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 gi(t){var r=[];return function t(n){if(!(n&&n.exports&&e.pushIfUnique(r,n)))return;var i=e.cloneMap(n.exports),a=n.exports.get("__export");if(a){for(var o=e.createSymbolTable(),s=e.createMap(),c=0,u=a.declarations;c<u.length;c++){var l=u[c],_=ni(l,l.moduleSpecifier),d=t(_);fi(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];qr.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)))}})),fi(i,o)}return i}(t=si(t))||J}function mi(e){var t;return e&&e.mergeId&&(t=Pr[e.mergeId])?t:e}function yi(e){return mi(e.symbol&&Lo(e.symbol))}function vi(e){return mi(e.parent&&Lo(e.parent))}function hi(r,n){var i=vi(r);if(i&&!(262144&r.flags)){var a=e.mapDefined(i.declarations,(function(e){return i&&bi(e,i)})),o=n&&function(r,n){var i,a=e.getSourceFileOfNode(n),o=""+P(a),s=yn(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 _=ni(n,l,!0);if(_)xi(_,r)&&(i=e.append(i,_))}}if(e.length(i))return(s.extendedContainersByFile||(s.extendedContainersByFile=e.createMap())).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=yi(f);xi(g,r)&&(i=e.append(i,g))}}return s.extendedContainers=i||e.emptyArray}(r,n);if(n&&Ri(i,n,1920,!1))return e.concatenate(e.concatenate([i],a),o);var s=e.append(a,i);return e.concatenate(s,o)}var c=e.mapDefined(r.declarations,(function(t){return!e.isAmbientModule(t)&&t.parent&&Vi(t.parent)?yi(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)?yi(e.getSourceFileOfNode(t)):(lv(t.parent.left.expression),vn(t.parent.left.expression).resolvedSymbol):void 0}));if(e.length(c))return e.mapDefined(c,(function(e){return xi(e,r)?e:void 0}))}function bi(e,t){var r=Ui(e),n=r&&r.exports&&r.exports.get("export=");return n&&Di(n,t)?r:void 0}function xi(t,r){if(t===vi(r))return r;var n=t.exports&&t.exports.get("export=");if(n&&Di(n,r))return t;var i=di(t),a=i.get(r.escapedName);return a&&Di(a,r)?a:e.forEachEntry(i,(function(e){if(Di(e,r))return e}))}function Di(e,t){if(mi(Wn(mi(e)))===mi(Wn(mi(t))))return e}function Si(e){return mi(e&&0!==(1048576&e.flags)?e.exportSymbol:e)}function Ci(e){return!!(111551&e.flags||2097152&e.flags&&111551&Hn(e).flags&&!Xn(e))}function Ti(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];if(162===i.kind&&e.nodeIsPresent(i.body))return i}}function ki(e){var t=new m(ce,e);return v++,t.id=v,t}function Ei(e,t,r){void 0===r&&(r=0);var n=ki(e);return n.intrinsicName=t,n.objectFlags=r,n}function Ni(e){var t=bu(e);return t.flags|=16,t.intrinsicName="boolean",t}function Ai(e,t){var r=ki(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 Fi(e){var t=ki(262144);return e&&(t.symbol=e),t}function Pi(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function wi(t){var r;return t.forEach((function(e,t){!Pi(t)&&Ci(e)&&(r||(r=[])).push(e)})),r||e.emptyArray}function Ii(t,r,n,i,a,o){return t.members=r,t.properties=r===J?e.emptyArray:wi(r),t.callSignatures=n,t.constructSignatures=i,t.stringIndexInfo=a,t.numberIndexInfo=o,t}function Oi(e,t,r,n,i,a){return Ii(Ai(16,e),t,r,n,i,a)}function Mi(t,r){for(var n,i=function(t){if(t.locals&&!hn(t)&&(n=r(t.locals)))return{value:n};switch(t.kind){case 290:if(!e.isExternalOrCommonJsModule(t))break;case 249:var i=yi(t);if(n=r((null===i||void 0===i?void 0:i.exports)||J))return{value:n};break;case 245:case 214:case 246:var a;if((yi(t).members||J).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(re)}function Li(e){return 111551===e?111551:1920}function Ri(t,r,n,i,a){if(void 0===a&&(a=e.createMap()),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 159:case 161:case 163:case 164:continue;default:return!1}}return!0}return!1}(t)){var o=""+w(t),s=a.get(o);return s||a.set(o,s=[]),Mi(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,263))){var o=_(n,Hn(n),a);if(o)return o}if(n.escapedName===t.escapedName&&n.exportSymbol&&l(mi(n.exportSymbol),void 0,a))return[t]}))||(n===re?_(ie,ie,a):void 0)}(n,a);return s.pop(),o}}function u(e,t){return!Bi(e,r,t)||!!Ri(e.parent,r,Li(t),i,a)}function l(r,i,a){return(t===(i||r)||mi(t)===mi(i||r))&&!e.some(r.declarations,Vi)&&(a||u(mi(r),n))}function _(e,t,r){if(l(e,t,r))return[e];var i=di(t),a=i&&c(i,!0);return a&&u(e,Li(n))?[e].concat(a):void 0}}function Bi(t,r,n){var i=!1;return Mi(r,(function(r){var a=mi(r.get(t.escapedName));return!!a&&(a===t||!!((a=2097152&a.flags&&!e.getDeclarationOfKind(a,263)?Hn(a):a).flags&n)&&(i=!0,!0))})),i}function ji(e,t){return 0===zi(e,t,788968,!1).accessibility}function Ji(e,t){return 0===zi(e,t,111551,!1).accessibility}function zi(t,r,n,i){if(t&&r){var a=function t(r,n,i,a,o){if(e.length(r)){for(var s,c=!1,u=0,l=r;u<l.length;u++){var _=l[u],d=Ri(_,n,a,!1);if(d){s=_;var p=qi(d[0],o);if(p)return p}else if(e.some(_.declarations,Vi)){if(o){c=!0;continue}return{accessibility:0}}var f=hi(_,n),g=!!e.length(_.declarations)&&e.first(_.declarations);!e.length(f)&&111551&a&&g&&e.isObjectLiteralExpression(g)&&g.parent&&e.isVariableDeclaration(g.parent)&&g===g.parent.initializer&&(f=[yi(g.parent)]);var m=t(f,n,i,i===_?Li(a):a,o);if(m)return m}return c?{accessibility:0}:s?{accessibility:1,errorSymbolName:Hi(i,n,a),errorModuleName:s!==i?Hi(s,n,1920):void 0}:void 0}}([t],r,t,n,i);if(a)return a;var o=e.forEach(t.declarations,Ui);if(o)if(o!==Ui(r))return{accessibility:2,errorSymbolName:Hi(t,r,n),errorModuleName:Hi(o)};return{accessibility:1,errorSymbolName:Hi(t,r,n)}}return{accessibility:0}}function Ui(t){var r=e.findAncestor(t,Ki);return r&&yi(r)}function Ki(t){return e.isAmbientModule(t)||290===t.kind&&e.isExternalOrCommonJsModule(t)}function Vi(t){return e.isModuleWithStringLiteralName(t)||290===t.kind&&e.isExternalOrCommonJsModule(t)}function qi(t,r){var n;if(e.every(e.filter(t.declarations,(function(e){return 75!==e.kind})),(function(t){if(!aa(t)){var r=wn(t);return r&&!e.hasModifier(r,1)&&aa(r.parent)?i(t,r):e.isVariableDeclaration(t)&&e.isVariableStatement(t.parent.parent)&&!e.hasModifier(t.parent.parent,1)&&aa(t.parent.parent.parent)?i(t,t.parent.parent):!(!e.isLateVisibilityPaintedStatement(t)||e.hasModifier(t,1)||!aa(t.parent))&&i(t,t)}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function i(t,i){return r&&(vn(t).isVisible=!0,n=e.appendIfUnique(n,i)),!0}}function Wi(t,r){var n;n=172===t.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)||154===t.parent.kind?1160127:153===t.kind||194===t.kind||253===t.parent.kind?1920:788968;var i=e.getFirstIdentifier(t),a=Sn(r,i.escapedText,n,void 0,void 0,!1);return a&&qi(a,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function Hi(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?te.symbolToExpression:te.symbolToEntityName;return a?c(a).getText():e.usingSingleLineStringWriter(c);function c(i){var a=s(t,n,r,o),c=e.createPrinter({removeComments:!0}),u=r&&e.getSourceFileOfNode(r);return c.writeNode(4,a,u,i),i}}function Gi(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?171:170:1===i?166:165;var s=te.signatureToSignatureDeclaration(t,o,r,70222336|Zi(n)),c=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),u=r&&e.getSourceFileOfNode(r);return c.writeNode(4,s,u,e.getTrailingSemicolonDeferringWriter(a)),a}}function Qi(t,r,n,i){void 0===n&&(n=1064960),void 0===i&&(i=e.createTextWriter(""));var a=U.noErrorTruncation||1&n,o=te.typeToTypeNode(t,r,70221824|Zi(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 Xi(e,t){var r=Yi(e.symbol)?Qi(e,e.symbol.valueDeclaration):Qi(e),n=Yi(t.symbol)?Qi(t,t.symbol.valueDeclaration):Qi(t);return r===n&&(r=Qi(e,void 0,64),n=Qi(t,void 0,64)),[r,n]}function Yi(t){return t&&t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!Yl(t.valueDeclaration)}function Zi(e){return void 0===e&&(e=0),814775659&e}function $i(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.createTypePredicateNodeWithModifier(2===t.kind||3===t.kind?e.createToken(124):void 0,1===t.kind||3===t.kind?e.createIdentifier(t.parameterName):e.createThisTypeNode(),t.type&&te.typeToTypeNode(t.type,r,70222336|Zi(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function ea(e){return 8===e?"private":16===e?"protected":"public"}function ta(t){return t&&t.parent&&250===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function ra(t){return 290===t.kind||e.isAmbientModule(t)}function na(t,r){var n=yn(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,U.target)||mg(i)?mg(i)&&e.startsWith(i,"-")?"["+i+"]":i:'"'+e.escapeString(i,34)+'"'}if(8192&n.flags)return"["+ia(n.symbol,r)+"]"}}function ia(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],ra)!==e.findAncestor(r.enclosingDeclaration,ra)))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=yn(t).nameType;if(a&&384&a.flags){var o=na(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&242===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 214:case 201:case 202:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),214===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=na(t,r);return void 0!==s?s:e.symbolName(t)}function aa(t){if(t){var r=vn(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 315:case 322:case 316:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 191:return aa(t.parent.parent);case 242:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 249:case 245:case 246:case 247:case 244:case 248:case 253:if(e.isExternalModuleAugmentation(t))return!0;var r=_a(t);return 1&e.getCombinedModifierFlags(t)||253!==t.kind&&290!==r.kind&&8388608&r.flags?aa(r):hn(r);case 159:case 158:case 163:case 164:case 161:case 160:if(e.hasModifier(t,24))return!1;case 162:case 166:case 165:case 167:case 156:case 250:case 170:case 171:case 173:case 169:case 174:case 175:case 178:case 179:case 182:return aa(t.parent);case 255:case 256:case 258:return!1;case 155:case 290:case 252:return!0;case 259:default:return!1}}()),r.isVisible}return!1}function oa(t,r){var n,i,a;return t.parent&&259===t.parent.kind?n=Sn(t,t.escapedText,2998271,void 0,t,!1):263===t.parent.kind&&(n=Un(t.parent,2998271)),n&&((a=e.createMap()).set(""+w(n),!0),function t(n){e.forEach(n,(function(n){var o=wn(n)||n;if(r?vn(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=Sn(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1),u=c&&""+w(c);c&&!a.has(u)&&(a.set(u,!0),t(c.declarations))}}))}(n.declarations)),i}function sa(e,t){var r=ca(e,t);if(r>=0){for(var n=kr.length,i=r;i<n;i++)Er[i]=!1;return!1}return kr.push(e),Er.push(!0),Nr.push(t),!0}function ca(e,t){for(var r=kr.length-1;r>=0;r--){if(ua(kr[r],Nr[r]))return-1;if(kr[r]===e&&Nr[r]===t)return r}return-1}function ua(t,r){switch(r){case 0:return!!yn(t).type;case 5:return!!vn(t).resolvedEnumType;case 2:return!!yn(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments}return e.Debug.assertNever(r)}function la(){return kr.pop(),Nr.pop(),Er.pop()}function _a(t){return e.findAncestor(e.getRootDeclaration(t),(function(e){switch(e.kind){case 242:case 243:case 258:case 257:case 256:case 255:return!1;default:return!0}})).parent}function da(e,t){var r=Js(e,t);return r?Wa(r):void 0}function pa(e){return e&&0!==(1&e.flags)}function fa(e){var t=yi(e);return t&&yn(t).type||Sa(e,!1)}function ga(t,r,n){if(131072&(t=Gp(t,(function(e){return!(98304&e.flags)}))).flags)return Ze;if(1048576&t.flags)return Xp(t,(function(e){return ga(e,r,n)}));var i=bu(e.map(r,Au));if(ju(t)||Ju(i)){if(131072&i.flags)return t;var a=Gt||(Gt=Yc("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return a?Mc(a,[t,i]):Se}for(var o=e.createSymbolTable(),s=0,c=ms(t);s<c.length;s++){var u=c[s];s_(Fu(u,8576),i)||24&e.getDeclarationModifierFlagsFromSymbol(u)||!_l(u)||o.set(u.escapedName,dl(u,!1))}var l=qs(t,0),_=qs(t,1),d=Oi(n,o,e.emptyArray,e.emptyArray,l,_);return d.objectFlags|=131072,d}function ma(e,t){var r=ya(e);return r?mf(r,t):t}function ya(t){var r=function(e){var t=e.parent.parent;switch(t.kind){case 191:case 281:return ya(t);case 192:return ya(e.parent);case 242:return t.initializer;case 209:return t.right}}(t);if(r&&r.flowNode){var n=function(e){var t=e.parent;if(191===e.kind&&189===t.kind)return va(e.propertyName||e.name);if(281===e.kind||282===e.kind)return va(e.name);return""+t.elements.indexOf(e)}(t);if(n){var i=e.createNode(195,t.pos,t.end);i.parent=t,i.expression=r;var a=e.createNode(10,t.pos,t.end);return a.parent=i,a.text=n,i.argumentExpression=a,i.flowNode=r.flowNode,i}}}function va(e){var t=Au(e);return 384&t.flags?""+t.value:void 0}function ha(t){var r,n=t.parent,i=fa(n.parent);if(!i||pa(i))return i;if(W&&8388608&t.flags&&e.isParameterDeclaration(t)?i=Td(i):!W||!n.parent.initializer||65536&Fp(jp(n.parent.initializer))||(i=Pp(i,524288)),189===n.kind)if(t.dotDotDotToken){if(2&(i=Ms(i)).flags||!xg(i))return nn(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=ga(i,a,t.symbol)}else{var u=t.propertyName||t.name;r=ma(t,Sf(Wu(i,d=Au(u),u),t.name))}else{var l=Uh(65,i,ke,n),_=n.elements.indexOf(t);if(t.dotDotDotToken)r=Hp(i,gd)?Xp(i,(function(e){return pu(e,_)})):su(l);else if(nd(i)){var d=vl(_),p=lg(t)?8:0;r=ma(t,Sf(Hu(i,d,t.name,p)||Se,t.name))}else r=l}return t.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(t))?!W||32768&bd(_v(t))?r:Pp(r,524288):dv(t,bu([Pp(r,524288),_v(t)],2)):r}function ba(t){var r=e.getJSDocType(t);if(r)return xl(r)}function xa(t){var r=e.skipParentheses(t);return 192===r.kind&&0===r.elements.length}function Da(e,t){return void 0===t&&(t=!0),W&&t?Cd(e):e}function Sa(t,r){if(e.isVariableDeclaration(t)&&231===t.parent.parent.kind){var n=Iu(Gg(Ev(t.parent.parent.expression)));return 4456448&n.flags?Ou(n):Pe}if(e.isVariableDeclaration(t)&&232===t.parent.parent.kind)return zh(t.parent.parent)||be;if(e.isBindingPattern(t.parent))return ha(t);var i=r&&(e.isParameter(t)&&Xs(t)||!e.isBindingElement(t)&&!e.isVariableDeclaration(t)&&!!t.questionToken),a=Ma(t);if(a)return Da(a,i);if((X||e.isInJSFile(t))&&242===t.kind&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!(8388608&t.flags)){if(!(2&e.getCombinedNodeFlags(t))&&(!t.initializer||function(t){var r=e.skipParentheses(t);return 100===r.kind||75===r.kind&&vp(r)===ne}(t.initializer)))return xe;if(t.initializer&&xa(t.initializer))return Tt}if(156===t.kind){var o,s=t.parent;if(164===s.kind&&!Po(s)){var c=e.getDeclarationOfKind(yi(t.parent),163);if(c){var u=nc(c),l=sD(s);return l&&t===l?(e.Debug.assert(!l.type),Wa(u.thisParameter)):uc(u)}}if(e.isInJSFile(t)){var _=e.getJSDocType(s);if(_&&e.isFunctionTypeNode(_))return by(nc(_),s.parameters.indexOf(t))}if(o="this"===t.symbol.escapedName?Rf(s):Bf(t))return Da(o,i)}else if(e.isInJSFile(t)){var d=Ta(t,yi(t),e.getDeclaredExpandoInitializer(t));if(d)return d}return t.initializer?Da(o=dv(t,_v(t)),i):e.isJsxAttribute(t)?Le:e.isBindingPattern(t.name)?Pa(t.name,!1,!0):void 0}function Ca(t,r){var n=e.getAssignedExpandoInitializer(t.valueDeclaration);if(n){var i=e.getJSDocTypeTag(n);return i&&i.typeExpression?xl(i.typeExpression):Ta(t.valueDeclaration,t,n)||_d(lv(n))}for(var a,o,s=!1,c=!1,u=0,l=t.declarations;u<l.length;u++){var _=l[u],d=e.isBinaryExpression(_)||e.isCallExpression(_)?_:e.isAccessExpression(_)?e.isBinaryExpression(_.parent)?_.parent:_:void 0;if(d){var p=e.isAccessExpression(d)?e.getAssignmentDeclarationPropertyAccessKind(d):e.getAssignmentDeclarationKind(d);4===p&&(Na(d)?s=!0:c=!0),e.isCallExpression(d)||(a=ka(a,d,t,_)),a||(o||(o=[])).push(e.isBinaryExpression(d)||e.isCallExpression(d)?Ea(t,r,d,p):ze)}}var f=a;if(!f){if(!e.length(o))return Se;var g=s?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&&Na(a)}))}(o,t.declarations):void 0;if(c){var m=function(t){var r=e.forEach(t.declarations,(function(t){var r=e.getThisContainer(t,!1).parent;return e.isClassLike(r)&&r}));if(r){var n=yo(yi(r)),i=n&&oo(n)[0];if(i)return da(i,t.escapedName)}}(t);m&&((g||(g=[])).push(m),s=!0)}f=bu(e.some(g,(function(e){return!!(-98305&e.flags)}))?g:o,2)}var y=Bd(Da(f,c&&!s));return Gp(y,(function(e){return!!(-98305&e.flags)}))===ze?(Jd(t.valueDeclaration,be),be):y}function Ta(t,r,n){if(e.isInJSFile(t)&&n&&e.isObjectLiteralExpression(n)&&!n.properties.length){for(var i=e.createSymbolTable();e.isBinaryExpression(t)||e.isPropertyAccessExpression(t);){var a=yi(t);a&&e.hasEntries(a.exports)&&gn(i,a.exports),t=e.isBinaryExpression(t)?t.parent:t.parent.parent}var o=yi(t);o&&e.hasEntries(o.exports)&&gn(i,o.exports);var s=Oi(r,i,e.emptyArray,e.emptyArray,void 0,void 0);return s.objectFlags|=16384,s}}function ka(t,r,n,i){var a=e.getEffectiveTypeAnnotationNode(r.parent);if(a){var o=Bd(xl(a));if(!t)return o;t===Se||o===Se||r_(t,o)||Ph(void 0,t,i,o)}if(n.parent){var s=e.getEffectiveTypeAnnotationNode(n.parent.valueDeclaration);if(s)return da(xl(s),n.escapedName)}return t}function Ea(t,r,n,i){if(e.isCallExpression(n)){if(r)return Wa(r);var a=lv(n.arguments[2]),o=da(a,"value");if(o)return o;var s=da(a,"get");if(s){var c=Nm(s);if(c)return uc(c)}var u=da(a,"set");if(u){var l=Nm(u);if(l)return Ny(l)}return be}if(function(t,r){return e.isPropertyAccessExpression(t)&&104===t.expression.kind&&e.forEachChildRecursively(r,(function(e){return bp(t,e)}))}(n.left,n.right))return be;var _=r?Wa(r):_d(lv(n.right));if(524288&_.flags&&2===i&&"export="===t.escapedName){var d=ds(_),p=e.createSymbolTable();e.copyEntries(d.members,p),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){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(nn(t.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(o,e.Diagnostics._0_was_also_declared_here,a)),e.addRelatedInfo(nn(o,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(t.valueDeclaration,e.Diagnostics._0_was_also_declared_here,a))}var s=cn(t.flags|i.flags,r);s.type=bu([Wa(t),Wa(i)]),s.valueDeclaration=i.valueDeclaration,s.declarations=e.concatenate(i.declarations,t.declarations),p.set(r,s)}else p.set(r,dn(t,i));else p.set(r,t)}));var f=Oi(d.symbol,p,d.callSignatures,d.constructSignatures,d.stringIndexInfo,d.numberIndexInfo);return f.objectFlags|=16384&e.getObjectFlags(_),f}return id(_)?(Jd(n,Ct),Ct):_}function Na(t){var r=e.getThisContainer(t,!1);return 162===r.kind||244===r.kind||201===r.kind&&!e.isPrototypePropertyAssignment(r.parent)}function Aa(t,r,n){return t.initializer?Da(dv(t,_v(t,e.isBindingPattern(t.name)?Pa(t.name,!0,!1):Te))):e.isBindingPattern(t.name)?Pa(t.name,r,n):(n&&!Oa(t)&&Jd(t,be),r?Ce:be)}function Fa(t,r,n){var i,a=t.elements,o=e.lastOrUndefined(a),s=!(!o||191!==o.kind||!o.dotDotDotToken);if(0===a.length||1===a.length&&s)return K>=2?(i=be,au(nu(!0),[i])):Ct;var c=du(e.map(a,(function(t){return e.isOmittedExpression(t)?be:Aa(t,r,n)})),e.findLastIndex(a,(function(t){return!e.isOmittedExpression(t)&&!lg(t)}),a.length-(s?2:1))+1,s);return r&&((c=Fc(c)).pattern=t,c.objectFlags|=1048576),c}function Pa(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),189===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=Dc(be,!1);else{var s=Au(t);if(Eo(s)){var c=wo(s),u=cn(4|(e.initializer?16777216:0),c);u.type=Aa(e,r,n),u.bindingElement=e,a.set(u.escapedName,u)}else o|=512}}));var s=Oi(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):Fa(t,r,n)}function wa(e,t){return Ia(Sa(e,!0),e,t)}function Ia(t,r,n){return t?(n&&zd(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==yi(r)&&(t=je),Bd(t)):(t=e.isParameter(r)&&r.dotDotDotToken?Ct:be,n&&(Oa(r)||Jd(r,t)),t)}function Oa(t){var r=e.getRootDeclaration(t);return Vv(156===r.kind?r.parent:r)}function Ma(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return xl(r)}function La(t){var r=yn(t);if(!r.type){var n=function(t){if(4194304&t.flags)return function(t){var r=yo(vi(t));return r.typeParameters?Ac(r,e.map(r.typeParameters,(function(e){return be}))):r}(t);if(t===se)return be;if(134217728&t.flags){var r=yi(e.getSourceFileOfNode(t.valueDeclaration)),n=e.createSymbolTable();return n.set("exports",r),Oi(t,n,e.emptyArray,e.emptyArray,void 0,void 0)}var i,a=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(a))return be;if(e.isSourceFile(a)&&e.isJsonSourceFile(a))return a.statements.length?Bd(_d(Ev(a.statements[0].expression))):Ze;if(!sa(t,0))return 512&t.flags&&!(67108864&t.flags)?Ka(t):qa(t);if(259===a.kind)i=Ia(lv(a.expression),a);else if(e.isBinaryExpression(a)||e.isInJSFile(a)&&(e.isCallExpression(a)||(e.isPropertyAccessExpression(a)||e.isBindableStaticElementAccessExpression(a))&&e.isBinaryExpression(a.parent)))i=Ca(t);else if(e.isJSDocPropertyLikeTag(a)||e.isPropertyAccessExpression(a)||e.isElementAccessExpression(a)||e.isIdentifier(a)||e.isStringLiteralLike(a)||e.isNumericLiteral(a)||e.isClassDeclaration(a)||e.isFunctionDeclaration(a)||e.isMethodDeclaration(a)&&!e.isObjectLiteralMethod(a)||e.isMethodSignature(a)||e.isSourceFile(a)){if(9136&t.flags)return Ka(t);i=e.isBinaryExpression(a.parent)?Ca(t):Ma(a)||be}else if(e.isPropertyAssignment(a))i=Ma(a)||mv(a);else if(e.isJsxAttribute(a))i=Ma(a)||Cg(a);else if(e.isShorthandPropertyAssignment(a))i=Ma(a)||gv(a.name,0);else if(e.isObjectLiteralMethod(a))i=Ma(a)||yv(a,0);else if(e.isParameter(a)||e.isPropertyDeclaration(a)||e.isPropertySignature(a)||e.isVariableDeclaration(a)||e.isBindingElement(a))i=wa(a,!0);else if(e.isEnumDeclaration(a))i=Ka(t);else if(e.isEnumMember(a))i=Va(t);else{if(!e.isAccessor(a))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(a.kind)+" for "+e.Debug.formatSymbol(t));i=za(t)}if(!la())return 512&t.flags&&!(67108864&t.flags)?Ka(t):qa(t);return i}(t);r.type||(r.type=n)}return r.type}function Ra(t){if(t)return 163===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function Ba(e){var t=Ra(e);return t&&xl(t)}function ja(e){return sc(nc(e))}function Ja(t){var r=yn(t);return r.type||(r.type=function(t){if(!sa(t,0))return Se;var r=za(t);if(!la()){if(r=be,X)nn(e.getDeclarationOfKind(t,163),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,Hi(t))}return r}(t))}function za(t){var r=e.getDeclarationOfKind(t,163),n=e.getDeclarationOfKind(t,164);if(r&&e.isInJSFile(r)){var i=ba(r);if(i)return i}var a=Ba(r);if(a)return a;var o=Ba(n);return o||(r&&r.body?My(r):(n?Vv(n)||on(X,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Hi(t)):(e.Debug.assert(!!r,"there must exist a getter as we are current checking either setter or getter in this function"),Vv(r)||on(X,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Hi(t))),be))}function Ua(t){var r=ao(co(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(function(e){return!!(8650752&e.flags)})):void 0}function Ka(t){var r=yn(t),n=r;if(!r.type){var i=t.valueDeclaration&&e.getDeclarationOfExpando(t.valueDeclaration);if(i){var a=cy(t,yi(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&&(209===r.kind||e.isAccessExpression(r)&&209===r.parent.kind))return Ca(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=si(t);if(n!==t){if(!sa(t,0))return Se;var i=mi(t.exports.get("export=")),a=Ca(i,i===n?void 0:n);return la()?a:qa(t)}}var o=Ai(16,t);if(32&t.flags){var s=Ua(t);return s?Eu([o,s]):o}return W&&16777216&t.flags?Cd(o):o}(t)}return r.type}function Va(e){var t=yn(e);return t.type||(t.type=go(e))}function qa(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(nn(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Hi(t)),Se):(X&&(156!==r.kind||r.initializer)&&nn(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,Hi(t)),be)}function Wa(t){var r=e.getCheckFlags(t);return 65536&r?function(t){var r=yn(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?bu(r.deferralConstituents):Eu(r.deferralConstituents)),r.type}(t):1&r?function(e){var t=yn(e);if(!t.type){if(!sa(e,0))return t.type=Se;var r=Wl(Wa(t.target),t.mapper);la()||(r=qa(e)),t.type=r}return t.type}(t):262144&r?function(t){if(!t.type){if(!sa(t,0))return Se;var r=Wl(is(t.mappedType.target||t.mappedType),t.mapper),n=W&&16777216&t.flags&&!Yy(r,49152)?Cd(r):524288&t.checkFlags?Pp(r,524288):r;la()||(nn(_,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Hi(t),Qi(t.mappedType)),n=Se),t.type=n,t.mapper=void 0}return t.type}(t):8192&r?function(e){return ep(e.propertyType,e.mappedType,e.constraintType)}(t):7&t.flags?La(t):9136&t.flags?Ka(t):8&t.flags?Va(t):98304&t.flags?Ja(t):2097152&t.flags?function(e){var t=yn(e);if(!t.type){var r=Hn(e);t.type=111551&r.flags?Wa(r):Se}return t.type}(t):Se}function Ha(t,r){return void 0!==t&&void 0!==r&&0!==(4&e.getObjectFlags(t))&&t.target===r}function Ga(t){return 4&e.getObjectFlags(t)?t.target:t}function Qa(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=Ga(n);return i===r||e.some(oo(i),t)}if(2097152&n.flags)return e.some(n.types,t);return!1}(t)}function Xa(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=e.appendIfUnique(t,mo(yi(a)))}return t}function Ya(t,r){for(;;){if((t=t.parent)&&e.isBinaryExpression(t)){var n=e.getAssignmentDeclarationKind(t);if(6===n||3===n){var i=yi(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 225:case 245:case 214:case 246:case 165:case 166:case 160:case 170:case 171:case 300:case 244:case 161:case 201:case 202:case 247:case 321:case 322:case 316:case 315:case 186:case 180:var a=Ya(t,r);if(186===t.kind)return e.append(a,mo(yi(t.typeParameter)));if(180===t.kind)return e.concatenate(a,el(t));if(225===t.kind&&!e.isInJSFile(t))break;var o=Xa(a,e.getEffectiveTypeParameterDeclarations(t)),s=r&&(245===t.kind||214===t.kind||246===t.kind||sy(t))&&co(yi(t)).thisType;return s?e.append(o,s):o}}}function Za(t){var r=32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,246);return e.Debug.assert(!!r,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Ya(r)}function $a(t){for(var r,n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(246===a.kind||245===a.kind||214===a.kind||sy(a)||e.isTypeAlias(a)){var o=a;r=Xa(r,e.getEffectiveTypeParameterDeclarations(o))}}return r}function eo(e){var t=Us(e,1);if(1===t.length){var r=t[0];return!r.typeParameters&&1===r.parameters.length&&B(r)&&rd(vy(r.parameters[0]))===be}return!1}function to(e){if(Us(e,1).length>0)return!0;if(8650752&e.flags){var t=Ss(e);return!!t&&eo(t)}return!1}function ro(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function no(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(Us(t,1),(function(t){return(a||i>=tc(t.typeParameters))&&i<=e.length(t.typeParameters)}))}function io(t,r,n){var i=no(t,r,n),a=e.map(r,xl);return e.sameMap(i,(function(t){return e.some(t.typeParameters)?pc(t,a,e.isInJSFile(n)):t}))}function ao(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=ro(t);if(!i)return t.resolvedBaseConstructorType=ke;if(!sa(t,1))return Se;var a=Ev(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),Ev(n.expression)),2621440&a.flags&&ds(a),!la())return nn(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Hi(t.symbol)),t.resolvedBaseConstructorType=Se;if(!(1&a.flags)&&a!==Fe&&!to(a)){var o=nn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Qi(a));if(262144&a.flags){var s=Tc(a),c=Te;if(s){var u=Us(s,1);u[0]&&(c=uc(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,Hi(a.symbol),Qi(c)))}return t.resolvedBaseConstructorType=Se}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function oo(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[su(bu(t.typeParameters||e.emptyArray),t.readonly)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=Fs(ao(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=ro(t),a=r.symbol?yo(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=wc(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=Oc(i,r.symbol);else if(1&r.flags)n=r;else{var o=io(r,i.typeArguments,i);if(!o.length)return nn(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=uc(o[0])}if(n===Se)return t.resolvedBaseTypes=e.emptyArray;var s=Ms(n);if(!so(s)){var c=js(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,Qi(s));return qr.add(e.createDiagnosticForNodeFromMessageChain(i.expression,u)),t.resolvedBaseTypes=e.emptyArray}if(t===s||Qa(s,t))return nn(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Qi(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(246===i.kind&&e.getInterfaceBaseTypeNodes(i))for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a],c=Ms(xl(s));c!==Se&&(so(c)?t===c||Qa(c,t)?nn(i,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Qi(t,void 0,2)):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):nn(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")),t.resolvedBaseTypes}function so(t){if(262144&t.flags){var r=Ss(t);if(r)return so(r)}return!!(67633153&t.flags&&!_s(t)||2097152&t.flags&&e.every(t.types,so))}function co(t){var r=yn(t),n=r;if(!r.declaredType){var i=32&t.flags?1:2,a=cy(t,function(t){var r=t&&t.parent&&(e.isFunctionDeclaration(t)&&yi(t)||e.isBinaryExpression(t.parent)&&yi(t.parent.left)||e.isVariableDeclaration(t.parent)&&yi(t.parent)),n=r&&r.exports&&r.exports.get("prototype"),i=n&&n.valueDeclaration&&function(t){if(!t.parent)return!1;var r=t.parent;for(;r&&194===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}}(n.valueDeclaration);return i?yi(i):void 0}(t.valueDeclaration));a&&(t=r=a);var o=n.declaredType=r.declaredType=Ai(i,t),s=Za(t),c=$a(t);(s||c||1===i||!function(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(246===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=ti(c.expression,788968,!0);if(!u||!(64&u.flags)||co(u).thisType)return!1}}}}return!0}(t))&&(o.objectFlags|=4,o.typeParameters=e.concatenate(s,c),o.outerTypeParameters=s,o.localTypeParameters=c,o.instantiations=e.createMap(),o.instantiations.set(Ec(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=Fi(t),o.thisType.isThisType=!0,o.thisType.constraint=o)}return r.declaredType}function uo(t){var r=yn(t);if(!r.declaredType){if(!sa(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?xl(i):Se;if(la()){var o=$a(t);o&&(r.typeParameters=o,r.instantiations=e.createMap(),r.instantiations.set(Ec(o),a))}else a=Se,nn(e.isNamedDeclaration(n)?n.name:n||n,e.Diagnostics.Type_alias_0_circularly_references_itself,Hi(t));r.declaredType=a}return r.declaredType}function lo(t){var r=t.initializer;if(!r)return!(8388608&t.flags);switch(r.kind){case 10:case 8:case 14:return!0;case 207:return 40===r.operator&&8===r.operand.kind;case 75:return e.nodeIsMissing(r)||!!yi(t.parent).exports.get(r.escapedText);case 209:return function t(r){return!!e.isStringLiteralLike(r)||209===r.kind&&(t(r.left)&&t(r.right))}(r);default:return!1}}function _o(t){var r=yn(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(248===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;lo(u)||(n=!0)}}return r.enumKind=n?0:1}function po(e){return 1024&e.flags&&!(1048576&e.flags)?yo(vi(e.symbol)):e}function fo(e){var t=yn(e);if(t.declaredType)return t.declaredType;if(1===_o(e)){b++;for(var r=[],n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(248===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],u=Ax(c),l=gl(vl(void 0!==u?u:0,b,yi(c)));yn(yi(c)).declaredType=l,r.push(ml(l))}}if(r.length){var _=bu(r,1,e,void 0);return 1048576&_.flags&&(_.flags|=1024,_.symbol=e),t.declaredType=_}}var d=ki(32);return d.symbol=e,t.declaredType=d}function go(e){var t=yn(e);if(!t.declaredType){var r=fo(vi(e));t.declaredType||(t.declaredType=r)}return t.declaredType}function mo(e){var t=yn(e);return t.declaredType||(t.declaredType=Fi(e))}function yo(e){return vo(e)||Se}function vo(e){return 96&e.flags?co(e):524288&e.flags?uo(e):262144&e.flags?mo(e):384&e.flags?fo(e):8&e.flags?go(e):2097152&e.flags?function(e){var t=yn(e);return t.declaredType||(t.declaredType=yo(Hn(e)))}(e):void 0}function ho(e){switch(e.kind){case 125:case 148:case 143:case 140:case 151:case 128:case 144:case 141:case 110:case 146:case 100:case 137:case 187:return!0;case 174:return ho(e.elementType);case 169:return!e.typeArguments||e.typeArguments.every(ho)}return!1}function bo(t){var r=e.getEffectiveConstraintOfTypeParameter(t);return!r||ho(r)}function xo(t){var r=e.getEffectiveTypeAnnotationNode(t);return r?ho(r):!e.hasInitializer(t)}function Do(t){if(t.declarations&&1===t.declarations.length){var r=t.declarations[0];if(r)switch(r.kind){case 159:case 158:return xo(r);case 161:case 160:case 162:case 163:case 164:return function(t){var r=e.getEffectiveReturnTypeNode(t),n=e.getEffectiveTypeParameterDeclarations(t);return(162===t.kind||!!r&&ho(r))&&t.parameters.every(xo)&&n.every(bo)}(r)}}return!1}function So(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&&Do(s)?s:Bl(s,r))}return i}function Co(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||To(i)||e.set(i.escapedName,i)}}function To(t){return!!t.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(t.valueDeclaration)&&e.hasModifier(t.valueDeclaration,32)}function ko(t){if(!t.declaredProperties){var r=t.symbol,n=Mo(r);t.declaredProperties=wi(n),t.declaredCallSignatures=e.emptyArray,t.declaredConstructSignatures=e.emptyArray,t.declaredCallSignatures=oc(n.get("__call")),t.declaredConstructSignatures=oc(n.get("__new")),t.declaredStringIndexInfo=Sc(r,0),t.declaredNumberIndexInfo=Sc(r,1)}return t}function Eo(e){return!!(8576&e.flags)}function No(t){if(!e.isComputedPropertyName(t)&&!e.isElementAccessExpression(t))return!1;var r=e.isComputedPropertyName(t)?t.expression:t.argumentExpression;return e.isEntityNameExpression(r)&&Eo(e.isComputedPropertyName(t)?yg(t):lv(r))}function Ao(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Fo(t){var r=e.getNameOfDeclaration(t);return!!r&&No(r)}function Po(t){return e.hasDynamicName(t)&&!Fo(t)}function wo(t){return 8192&t.flags?t.escapedName:384&t.flags?e.escapeLeadingUnderscores(""+t.value):e.Debug.fail()}function Io(t,r,n,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=vn(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=e.isBinaryExpression(i)?i.left:i.name,s=e.isElementAccessExpression(o)?lv(o.argumentExpression):yg(o);if(Eo(s)){var c=wo(s),u=i.symbol.flags,l=n.get(c);l||n.set(c,l=cn(0,c,4096));var _=r&&r.get(c);if(l.flags&un(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 nn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Property_0_was_also_declared_here,p)})),nn(o||i,e.Diagnostics.Duplicate_property_0,p),l=cn(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,yn(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 Oo(t,r){var n=yn(t);if(!n[r]){var i="resolvedExports"===r,a=i?1536&t.flags?gi(t):t.exports:t.members;n[r]=a||J;for(var o=e.createSymbolTable(),s=0,c=t.declarations;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)&&Fo(p)&&Io(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||4===y||9===y||6===y)&&Fo(p)&&Io(t,a,o,p)}n[r]=function(t,r){if(!e.hasEntries(t))return r;if(!e.hasEntries(r))return t;var n=e.createSymbolTable();return gn(n,t),gn(n,r),n}(a,o)||J}return n[r]}function Mo(e){return 6256&e.flags?Oo(e,"resolvedMembers"):e.members||J}function Lo(t){if(106500&t.flags&&"__computed"===t.escapedName){var r=yn(t);if(!r.lateSymbol&&e.some(t.declarations,Fo)){var n=mi(t.parent);e.some(t.declarations,e.hasStaticModifier)?di(n):Mo(n)}return r.lateSymbol||(r.lateSymbol=t)}return t}function Ro(t,r,n){if(4&e.getObjectFlags(t)){var i=t.target,a=wc(t);if(e.length(i.typeParameters)===e.length(a)){var o=Ac(i,e.concatenate(a,[r||i.thisType]));return n?Fs(o):o}}else if(2097152&t.flags)return Eu(e.map(t.types,(function(e){return Ro(e,r,n)})));return n?Fs(t):t}function Bo(t,r,n,i){var a,o,s,c,u,l;e.rangeEquals(n,i,0,n.length)?(o=r.symbol?Mo(r.symbol):e.createSymbolTable(r.declaredProperties),s=r.declaredCallSignatures,c=r.declaredConstructSignatures,u=r.declaredStringIndexInfo,l=r.declaredNumberIndexInfo):(a=kl(n,i),o=So(r.declaredProperties,a,1===n.length),s=Tl(r.declaredCallSignatures,a),c=Tl(r.declaredConstructSignatures,a),u=Xl(r.declaredStringIndexInfo,a),l=Xl(r.declaredNumberIndexInfo,a));var _=oo(r);if(_.length){r.symbol&&o===Mo(r.symbol)&&(o=e.createSymbolTable(r.declaredProperties)),Ii(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?Ro(Wl(g,a),d):g;Co(o,ms(m)),s=e.concatenate(s,Us(m,0)),c=e.concatenate(c,Us(m,1)),u||(u=m===be?Dc(be,!1):qs(m,0)),l=l||qs(m,1)}}Ii(t,o,s,c,u,l)}function jo(e,t,r,n,i,a,o,s){var c=new y(ce,s);return c.declaration=e,c.typeParameters=t,c.parameters=n,c.thisParameter=r,c.resolvedReturnType=i,c.resolvedTypePredicate=a,c.minArgumentCount=o,c.target=void 0,c.mapper=void 0,c.unionSignatures=void 0,c}function Jo(e){var t=jo(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,3&e.flags);return t.target=e.target,t.mapper=e.mapper,t.unionSignatures=e.unionSignatures,t}function zo(e,t){var r=Jo(e);return r.unionSignatures=t,r.target=void 0,r.mapper=void 0,r}function Uo(t,r){if((12&t.flags)===r)return t;t.optionalCallSignatureCache||(t.optionalCallSignatureCache={});var n=4===r?"inner":"outer";return t.optionalCallSignatureCache[n]||(t.optionalCallSignatureCache[n]=function(t,r){e.Debug.assert(4===r||8===r,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var n=Jo(t);return n.flags|=r,n}(t,r))}function Ko(t){if(B(t)){var r=t.parameters.length-1,n=Wa(t.parameters[r]);if(gd(n)){var i=wc(n),a=n.target.minLength,o=n.target.hasRestElement?i.length-1:-1,s=e.map(i,(function(e,n){var i=cn(1,hy(t,r+n),n===o?32768:n>=a?16384:0);return i.type=n===o?su(e):e,i}));return e.concatenate(t.parameters.slice(0,r),s)}}return t.parameters}function Vo(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(Y_(s,t,r,n,i,r?a_:n_))return s}}function qo(t,r,n){if(r.typeParameters){if(n>0)return;for(var i=1;i<t.length;i++)if(!Vo(t[i],r,!1,!1,!1))return;return[r]}var a;for(i=0;i<t.length;i++){var o=i===n?r:Vo(t[i],r,!0,!1,!0);if(!o)return;a=e.appendIfUnique(a,o)}return a}function Wo(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||!Vo(r,s,!1,!1,!0)){var c=qo(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=wd(_,Eu(e.mapDefined(c,(function(e){return e.thisParameter&&Wa(e.thisParameter)}))));(u=zo(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}))?void 0:e.map(p,(function(t){return function(t,r){var n=t.declaration,i=function(e,t){for(var r=Sy(e),n=Sy(t),i=r>=n?e:t,a=i===e?t:e,o=i===e?r:n,s=Ty(e)||Ty(t),c=s&&!Ty(i),u=new Array(o+(c?1:0)),l=0;l<o;l++){var _=xy(i,l),d=xy(a,l)||Te,p=Eu([_,d]),f=s&&!c&&l===o-1,g=l>=Cy(i)&&l>=Cy(a),m=l>=r?void 0:hy(e,l),y=l>=n?void 0:hy(t,l),v=cn(1|(g&&!f?16777216:0),(m===y?m:m?y?void 0:m:y)||"arg"+l);v.type=f?su(p):p,u[l]=v}if(c){var h=cn(1,"args");h.type=su(by(a,o)),u[o]=h}return u}(t,r),a=function(e,t){if(!e||!t)return e||t;var r=Eu([Wa(e),Wa(t)]);return wd(e,r)}(t.thisParameter,r.thisParameter),o=Math.max(t.minArgumentCount,r.minArgumentCount),s=jo(n,t.typeParameters||r.typeParameters,a,i,void 0,void 0,o,3&(t.flags|r.flags));return s.unionSignatures=e.concatenate(t.unionSignatures||[t],[r]),s}(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 Ho(e,t){for(var r=[],n=!1,i=0,a=e;i<a.length;i++){var o=qs(Fs(a[i]),t);if(!o)return;r.push(o.type),n=n||o.isReadonly}return Dc(bu(r,2),n)}function Go(e,t){return e?t?Eu([e,t]):e:t}function Qo(e,t){return e?t?Dc(Eu([e.type,t.type]),e.isReadonly&&t.isReadonly):e:t}function Xo(e,t){return e&&t&&Dc(bu([e.type,t.type]),e.isReadonly||t.isReadonly)}function Yo(t){var r=e.countWhere(t,(function(e){return Us(e,1).length>0})),n=e.map(t,eo);if(r>0&&r===e.countWhere(n,(function(e){return e}))){var i=n.indexOf(!0);n[i]=!1}return n}function Zo(t){for(var r,n,i,a,o=t.types,s=Yo(o),c=e.countWhere(s,(function(e){return e})),u=function(u){var l=t.types[u];if(!s[u]){var _=Us(l,1);_.length&&c>0&&(_=e.map(_,(function(e){var t=Jo(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(uc(Us(t[a],1)[0]));return Eu(i)}(uc(e),o,s,u),t}))),n=$o(n,_)}r=$o(r,Us(l,0)),i=Qo(i,qs(l,0)),a=Qo(a,qs(l,1))},l=0;l<o.length;l++)u(l);Ii(t,J,r||e.emptyArray,n||e.emptyArray,i,a)}function $o(t,r){for(var n=function(r){t&&!e.every(t,(function(e){return!Y_(e,r,!1,!1,!1,n_)}))||(t=e.append(t,r))},i=0,a=r;i<a.length;i++){n(a[i])}return t}function es(t){var r=mi(t.symbol);if(t.target)Ii(t,J,e.emptyArray,e.emptyArray,void 0,void 0),Ii(t,a=So(ps(t.target),t.mapper,!1),n=Tl(Us(t.target,0),t.mapper),i=Tl(Us(t.target,1),t.mapper),o=Xl(qs(t.target,0),t.mapper),u=Xl(qs(t.target,1),t.mapper));else if(2048&r.flags){Ii(t,J,e.emptyArray,e.emptyArray,void 0,void 0);var n=oc((a=Mo(r)).get("__call")),i=oc(a.get("__new"));Ii(t,a,n,i,o=Sc(r,0),u=Sc(r,1))}else{var a=J,o=void 0;if(r.exports&&(a=di(r),r===ie)){var s=e.createMap();a.forEach((function(e){418&e.flags||s.set(e.escapedName,e)})),a=s}if(Ii(t,a,e.emptyArray,e.emptyArray,void 0,void 0),32&r.flags){var c=ao(co(r));11272192&c.flags?Co(a=e.createSymbolTable(wi(a)),ms(c)):c===be&&(o=Dc(be,!1))}var u=384&r.flags&&(32&yo(r).flags||e.some(t.properties,(function(e){return!!(296&Wa(e).flags)})))?cr:void 0;if(Ii(t,a,e.emptyArray,e.emptyArray,o,u),8208&r.flags&&(t.callSignatures=oc(r)),32&r.flags){var l=co(r);i=r.members?oc(r.members.get("__constructor")):e.emptyArray;16&r.flags&&(i=e.addRange(i.slice(),e.mapDefined(t.callSignatures,(function(e){return sy(e.declaration)?jo(e.declaration,e.typeParameters,e.thisParameter,e.parameters,l,void 0,e.minArgumentCount,3&e.flags):void 0})))),i.length||(i=function(t){var r=Us(ao(t),1);if(0===r.length)return[jo(void 0,t.localTypeParameters,void 0,e.emptyArray,t,void 0,0,0)];for(var n=ro(t),i=e.isInJSFile(n),a=Hc(n),o=e.length(a),s=[],c=0,u=r;c<u.length;c++){var l=u[c],_=tc(l.typeParameters),d=e.length(l.typeParameters);if(i||o>=_&&o<=d){var p=d?gc(l,rc(a,l.typeParameters,_,i)):Jo(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p)}}return s}(l)),t.constructSignatures=i}}}function ts(t){if(131069&t.flags)return t;if(4194304&t.flags)return Iu(Fs(t.type));if(16777216&t.flags){if(t.root.isDistributive){var r=t.checkType,n=ts(r);if(n!==r)return ql(t,Ol(t.root.checkType,n,t.mapper))}return t}return 1048576&t.flags?bu(e.sameMap(t.types,ts)):2097152&t.flags?Eu(e.sameMap(t.types,ts)):ze}function rs(e){return e.typeParameter||(e.typeParameter=mo(yi(e.declaration.typeParameter)))}function ns(e){return e.constraintType||(e.constraintType=vs(rs(e))||Se)}function is(e){return e.templateType||(e.templateType=e.declaration.type?Wl(Da(xl(e.declaration.type),!!(4&cs(e))),e.mapper):Se)}function as(t){return e.getEffectiveConstraintOfTypeParameter(t.declaration.typeParameter)}function os(e){var t=as(e);return 184===t.kind&&134===t.operator}function ss(e){if(!e.modifiersType)if(os(e))e.modifiersType=Wl(xl(as(e).type),e.mapper);else{var t=ns(Qu(e.declaration)),r=t&&262144&t.flags?vs(t):t;e.modifiersType=r&&4194304&r.flags?Wl(r.type,e.mapper):Te}return e.modifiersType}function cs(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 us(e){var t=cs(e);return 8&t?-1:4&t?1:0}function ls(e){var t=us(e),r=ss(e);return t||(_s(r)?us(r):0)}function _s(t){return!!(32&e.getObjectFlags(t))&&Ju(ns(t))}function ds(t){return t.members||(524288&t.flags?4&t.objectFlags?function(t){var r=ko(t.target),n=e.concatenate(r.typeParameters,[r.thisType]),i=wc(t);Bo(t,r,n,i.length===n.length?i:e.concatenate(i,[t]))}(t):3&t.objectFlags?function(t){Bo(t,ko(t),e.emptyArray,e.emptyArray)}(t):2048&t.objectFlags?function(t){for(var r=qs(t.source,0),n=cs(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r&&Dc(ep(r.type,t.mappedType,t.constraintType),i&&r.isReadonly),s=e.createSymbolTable(),c=0,u=ms(t.source);c<u.length;c++){var l=u[c],_=8192|(i&&Wy(l)?8:0),d=cn(4|l.flags&a,l.escapedName,_);d.declarations=l.declarations,d.nameType=yn(l).nameType,d.propertyType=Wa(l),d.mappedType=t.mappedType,d.constraintType=t.constraintType,s.set(l.escapedName,d)}Ii(t,s,e.emptyArray,e.emptyArray,o,void 0)}(t):16&t.objectFlags?es(t):32&t.objectFlags&&function(t){var r,n,i=e.createSymbolTable();Ii(t,J,e.emptyArray,e.emptyArray,void 0,void 0);var a=rs(t),o=ns(t),s=is(t.target||t),c=Fs(ss(t)),u=cs(t),l=Z?128:8576;if(os(t)){for(var _=0,d=ms(c);_<d.length;_++){p(Fu(d[_],l))}(1&c.flags||qs(c,0))&&p(Pe),!Z&&qs(c,1)&&p(we)}else Wp(ts(o),p);function p(e){var o=Ml(t.mapper,a,e);if(Eo(e)){var l=wo(e),_=Js(c,l),d=!!(4&u||!(8&u)&&_&&16777216&_.flags),p=cn(4|(d?16777216:0),l,262144|(!!(1&u||!(2&u)&&_&&Wy(_))?8:0)|(W&&!d&&_&&16777216&_.flags?524288:0));p.mappedType=t,p.mapper=o,_&&(p.syntheticOrigin=_,p.declarations=_.declarations),p.nameType=e,i.set(l,p)}else if(45&e.flags){var f=Wl(s,o);5&e.flags?r=Dc(f,!!(1&u)):n=Dc(n?bu([n.type,f]):f,!!(1&u))}}Ii(t,i,e.emptyArray,e.emptyArray,r,n)}(t):1048576&t.flags?function(t){var r=Wo(e.map(t.types,(function(e){return e===ft?[ar]:Us(e,0)}))),n=Wo(e.map(t.types,(function(e){return Us(e,1)}))),i=Ho(t.types,0),a=Ho(t.types,1);Ii(t,J,r,n,i,a)}(t):2097152&t.flags&&Zo(t)),t}function ps(t){return 524288&t.flags?ds(t).properties:e.emptyArray}function fs(e,t){if(524288&e.flags){var r=ds(e).members.get(t);if(r&&Ci(r))return r}}function gs(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=ms(a);o<s.length;o++){var c=s[o];if(!r.has(c.escapedName)){var u=Os(t,c.escapedName);u&&r.set(c.escapedName,u)}}if(1048576&t.flags&&!qs(a,0)&&!qs(a,1))break}t.resolvedProperties=wi(r)}return t.resolvedProperties}function ms(e){return 3145728&(e=Ps(e)).flags?gs(e):ps(e)}function ys(e){return 262144&e.flags?vs(e):8388608&e.flags?function(e){return Ts(e)?function(e){var t=hs(e.indexType);if(t&&t!==e.indexType){var r=Hu(e.objectType,t);if(r)return r}var n=hs(e.objectType);if(n&&n!==e.objectType)return Hu(n,e.indexType);return}(e):void 0}(e):16777216&e.flags?function(e){return Ts(e)?Ds(e):void 0}(e):Ss(e)}function vs(e){return Ts(e)?Tc(e):void 0}function hs(e){var t=Uu(e,!1);return t!==e?t:ys(e)}function bs(e){if(!e.resolvedDefaultConstraint){var t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?Wl(e.root.trueType,e.combinedMapper):Zu(e))}(e),r=$u(e);e.resolvedDefaultConstraint=pa(t)?r:pa(r)?t:bu([t,r])}return e.resolvedDefaultConstraint}function xs(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=Uu(e.checkType,!1),r=t===e.checkType?ys(t):t;if(r&&r!==e.checkType){var n=ql(e,Ol(e.root.checkType,r,e.mapper));if(!(131072&n.flags))return n}}}function Ds(e){return xs(e)||bs(e)}function Ss(e){if(62128128&e.flags){var t=ks(e);return t!==it&&t!==at?t:void 0}return 4194304&e.flags?Ge:void 0}function Cs(e){return Ss(e)||e}function Ts(e){return ks(e)!==at}function ks(t){var r=!1;return t.resolvedBaseConstraint||(t.resolvedBaseConstraint=Ro(n(t),t));function n(t){if(!t.immediateBaseConstraint){if(!sa(t,4))return at;if(k>=50)return nn(_,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),r=!0,t.immediateBaseConstraint=it;k++;var n=function(e){if(262144&e.flags){var t=Tc(e);return e.isThisType||!t?t:i(t)}if(3145728&e.flags){for(var r=e.types,n=[],a=0,o=r;a<o.length;a++){var s=i(o[a]);s&&n.push(s)}return 1048576&e.flags&&n.length===r.length?bu(n):2097152&e.flags&&n.length?Eu(n):void 0}if(4194304&e.flags)return Ge;if(8388608&e.flags){var c=i(e.objectType),u=i(e.indexType),l=c&&u&&Hu(c,u);return l&&i(l)}if(16777216&e.flags){t=Ds(e);k++;var _=t&&i(t);return k--,_}if(33554432&e.flags)return i(e.substitute);return e}(Uu(t,!1));if(k--,!la()){if(262144&t.flags){var a=Cc(t);if(a){var o=nn(a,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Qi(t));!_||e.isNodeDescendantOf(a,_)||e.isNodeDescendantOf(_,a)||e.addRelatedInfo(o,e.createDiagnosticForNode(_,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}n=at}r&&(n=at),t.immediateBaseConstraint=n||it}return t.immediateBaseConstraint}function i(e){var t=n(e);return t!==it&&t!==at?t:void 0}}function Es(t){if(t.default)t.default===ot&&(t.default=at);else if(t.target){var r=Es(t.target);t.default=r?Wl(r,t.mapper):it}else{t.default=ot;var n=t.symbol&&e.forEach(t.symbol.declarations,(function(t){return e.isTypeParameterDeclaration(t)&&t.default})),i=n?xl(n):it;t.default===ot&&(t.default=i)}return t.default}function Ns(e){var t=Es(e);return t!==it&&t!==at?t:void 0}function As(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var t=zl(e);if(t){var r=vs(t);if(r&&($_(r)||gd(r)))return Wl(e,Ol(t,r,e.mapper))}return e}(e))}function Fs(t){var r,n=63176704&t.flags?Ss(t)||Te:t;return 32&e.getObjectFlags(n)?As(n):2097152&n.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=Ro(e,e,!0))}(n):132&n.flags?ht:296&n.flags?bt:2112&n.flags?(r=K>=7,Qt||(Qt=Zc("BigInt",0,r))||Ze):528&n.flags?xt:12288&n.flags?eu(K>=2):67108864&n.flags?Ze:4194304&n.flags?Ge:2&n.flags&&!W?Ze:n}function Ps(e){return Ms(Fs(Ms(e)))}function ws(t,r){for(var n,i,a,o=1048576&t.flags,s=o?0:16777216,c=4,u=0,l=0,_=t.types;l<_.length;l++){if(!((C=Fs(_[l]))===Se||131072&C.flags)){var d=(S=Js(C,r))?e.getDeclarationModifierFlagsFromSymbol(S):0;if(S){if(o?s|=16777216&S.flags:s&=S.flags,n){if(S!==n){i||(i=e.createMap()).set(""+w(n),n);var p=""+w(S);i.has(p)||i.set(p,S)}}else n=S;u|=(Wy(S)?8:0)|(24&d?0:256)|(16&d?512:0)|(8&d?1024:0)|(32&d?2048:0),Kg(S)||(c=2)}else if(o){var f=!Ao(r)&&(mg(r)&&qs(C,1)||qs(C,0));f?(u|=32|(f.isReadonly?8:0),a=e.append(a,gd(C)?md(C)||ke:f.type)):lp(C)?(u|=32,a=e.append(a,ke)):u|=16}}}if(n&&!(o&&(i||48&u)&&1536&u)){if(!i&&!(16&u)&&!a)return n;for(var g,m,y,v,h=[],b=!1,x=0,D=i?e.arrayFrom(i.values()):[n];x<D.length;x++){var S=D[x];v?S.valueDeclaration&&S.valueDeclaration!==v&&(b=!0):v=S.valueDeclaration,g=e.addRange(g,S.declarations);var C=Wa(S);m?C!==m&&(u|=64):(m=C,y=yn(S).nameType),ud(C)&&(u|=128),131072&C.flags&&(u|=131072),h.push(C)}e.addRange(h,a);var T=cn(4|s,r,c|u);return T.containingType=t,!b&&v&&(T.valueDeclaration=v,v.symbol.parent&&(T.parent=v.symbol.parent)),T.declarations=g,T.nameType=y,h.length>2?(T.checkFlags|=65536,T.deferralParent=t,T.deferralConstituents=h):T.type=o?bu(h):Eu(h),T}}function Is(t,r){var n=t.propertyCache||(t.propertyCache=e.createSymbolTable()),i=n.get(r);return i||(i=ws(t,r))&&n.set(r,i),i}function Os(t,r){var n=Is(t,r);return!n||16&e.getCheckFlags(n)?void 0:n}function Ms(t){return 1048576&t.flags&&268435456&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var r=e.sameMap(t.types,Ms);if(r===t.types)return t;var n=bu(r);1048576&n.flags&&(n.resolvedReducedType=n);return n}(t)):2097152&t.flags?(268435456&t.objectFlags||(t.objectFlags|=268435456|(e.some(gs(t),Ls)?536870912:0)),536870912&t.objectFlags?ze:t):t}function Ls(e){return Rs(e)||Bs(e)}function Rs(t){return!(16777216&t.flags)&&192===(131264&e.getCheckFlags(t))&&!!(131072&Wa(t).flags)}function Bs(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function js(t,r){if(536870912&e.getObjectFlags(r)){var n=e.find(gs(r),Rs);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Qi(r,void 0,536870912),Hi(n));var i=e.find(gs(r),Bs);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,Qi(r,void 0,536870912),Hi(i))}return t}function Js(e,t){if(524288&(e=Ps(e)).flags){var r=ds(e),n=r.members.get(t);if(n&&Ci(n))return n;var i=r===nt?ft:r.callSignatures.length?gt:r.constructSignatures.length?mt:void 0;if(i){var a=fs(i,t);if(a)return a}return fs(pt,t)}if(3145728&e.flags)return Os(e,t)}function zs(t,r){if(3670016&t.flags){var n=ds(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function Us(e,t){return zs(Ps(e),t)}function Ks(e,t){if(3670016&e.flags){var r=ds(e);return 0===t?r.stringIndexInfo:r.numberIndexInfo}}function Vs(e,t){var r=Ks(e,t);return r&&r.type}function qs(e,t){return Ks(Ps(e),t)}function Ws(e,t){return Vs(Ps(e),t)}function Hs(t,r){if(Pd(t)){for(var n=[],i=0,a=ms(t);i<a.length;i++){var o=a[i];(0===r||mg(o.escapedName))&&n.push(Wa(o))}if(0===r&&e.append(n,Ws(t,1)),n.length)return bu(n)}}function Gs(t){for(var r,n=0,i=e.getEffectiveTypeParameterDeclarations(t);n<i.length;n++){var a=i[n];r=e.appendIfUnique(r,mo(a.symbol))}return r}function Qs(e){var t=[];return e.forEach((function(e,r){Pi(r)||t.push(e)})),t}function Xs(t){return e.isInJSFile(t)&&(t.type&&299===t.type.kind||e.getJSDocParameterTags(t).some((function(e){var t=e.isBracketed,r=e.typeExpression;return t||!!r&&299===r.type.kind})))}function Ys(t,r){if(!e.isExternalModuleNameRelative(t)){var n=bn(re,'"'+t+'"',512);return n&&r?mi(n):n}}function Zs(t){if(e.hasQuestionToken(t)||$s(t)||Xs(t))return!0;if(t.initializer){var r=nc(t.parent),n=t.parent.parameters.indexOf(t);return e.Debug.assert(n>=0),n>=Cy(r,!0)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length)}function $s(t){if(!e.isJSDocParameterTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&299===n.type.kind}function ec(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function tc(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 rc(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=gp(i);for(c=o;c<a;c++){var l=Ns(r[c]);i&&l&&(r_(l,Te)||r_(l,Ze))&&(l=be),s[c]=l?Wl(l,kl(r,s)):u}return s.length=r.length,s}return t&&t.slice()}function nc(t){var r=vn(t);if(!r.resolvedSignature){var n=[],i=0,a=0,o=void 0,s=!1,c=e.getImmediatelyInvokedFunctionExpression(t),u=e.isJSDocConstructSignature(t);!c&&e.isInJSFile(t)&&e.isValueSignatureDeclaration(t)&&!e.hasJSDocParameterTags(t)&&!e.getJSDocType(t)&&(i|=16);for(var l=u?1:0;l<t.parameters.length;l++){var _=t.parameters[l],d=_.symbol,p=e.isJSDocParameterTag(_)?_.typeExpression&&_.typeExpression.type:_.type;if(d&&4&d.flags&&!e.isBindingPattern(_.name))d=Sn(_,d.escapedName,111551,void 0,void 0,!1);0===l&&"this"===d.escapedName?(s=!0,o=_.symbol):n.push(d),p&&187===p.kind&&(i|=2),$s(_)||_.initializer||_.questionToken||_.dotDotDotToken||c&&n.length>c.arguments.length&&!p||Xs(_)||(a=n.length)}if((163===t.kind||164===t.kind)&&!Po(t)&&(!s||!o)){var f=163===t.kind?164:163,g=e.getDeclarationOfKind(yi(t),f);g&&(o=function(e){var t=sD(e);return t&&t.symbol}(g))}var m=162===t.kind?co(mi(t.parent.symbol)):void 0,y=m?m.localTypeParameters:Gs(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!ac(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=cn(3,"args",32768);o.type=a?su(xl(a.type)):Ct,a&&r.pop();return r.push(o),!0}(t,n))&&(i|=1),r.resolvedSignature=jo(t,y,o,n,void 0,void 0,a,i)}return r.resolvedSignature}function ic(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t),n=r&&r.typeExpression&&Nm(xl(r.typeExpression));return n&&mc(n)}}function ac(t){var r=vn(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 75:return"arguments"===r.escapedText&&e.isExpressionNode(r);case 159:case 161:case 163:case 164:return 154===r.name.kind&&t(r.name);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function oc(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 sc(e){if(e.thisParameter)return Wa(e.thisParameter)}function cc(t){if(!t.resolvedTypePredicate){if(t.target){var r=cc(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,ec(o.kind,o.parameterName,o.parameterIndex,Wl(o.type,s))):nr}else if(t.unionSignatures)t.resolvedTypePredicate=function(e){for(var t,r=[],n=0,i=e;n<i.length;n++){var a=cc(i[n]);if(a&&2!==a.kind&&3!==a.kind){if(t){if(!xu(t,a))return}else t=a;r.push(a.type)}}if(!t)return;var o=bu(r);return ec(t.kind,t.parameterName,t.parameterIndex,o)}(t.unionSignatures)||nr;else{var n=t.declaration&&e.getEffectiveReturnTypeNode(t.declaration),i=void 0;if(!n&&e.isInJSFile(t.declaration)){var a=ic(t.declaration);a&&t!==a&&(i=cc(a))}t.resolvedTypePredicate=n&&e.isTypePredicateNode(n)?function(t,r){var n=t.parameterName,i=t.type&&xl(t.type);return 183===n.kind?ec(t.assertsModifier?2:0,void 0,void 0,i):ec(t.assertsModifier?3:1,n.escapedText,e.findIndex(r.parameters,(function(e){return e.escapedName===n.escapedText})),i)}(n,t):i||nr}e.Debug.assert(!!t.resolvedTypePredicate)}var o,s;return t.resolvedTypePredicate===nr?void 0:t.resolvedTypePredicate}function uc(t){if(!t.resolvedReturnType){if(!sa(t,3))return Se;var r=t.target?Wl(uc(t.target),t.mapper):t.unionSignatures?bu(e.map(t.unionSignatures,uc),2):lc(t.declaration)||(e.nodeIsMissing(t.declaration.body)?be:My(t.declaration));if(4&t.flags?r=kd(r):8&t.flags&&(r=Cd(r)),!la()){if(t.declaration){var n=e.getEffectiveReturnTypeNode(t.declaration);if(n)nn(n,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(X){var i=t.declaration,a=e.getNameOfDeclaration(i);a?nn(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)):nn(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(162===t.kind)return co(mi(t.parent.symbol));if(e.isJSDocConstructSignature(t))return xl(t.parameters[0].type);var r=e.getEffectiveReturnTypeNode(t);if(r)return xl(r);if(163===t.kind&&!Po(t)){var n=e.isInJSFile(t)&&ba(t);if(n)return n;var i=Ba(e.getDeclarationOfKind(yi(t),164));if(i)return i}return function(e){var t=ic(e);return t&&uc(t)}(t)}function _c(e){return!e.resolvedReturnType&&ca(e,3)>=0}function dc(e){if(B(e)){var t=Wa(e.parameters[e.parameters.length-1]),r=gd(t)?md(t):t;return r&&Ws(r,1)}}function pc(e,t,r,n){var i=fc(e,rc(t,e.typeParameters,tc(e.typeParameters),r));if(n){var a=Am(uc(i));if(a){var o=Jo(a);o.typeParameters=n;var s=Jo(i);return s.resolvedReturnType=hc(o),s}}return i}function fc(t,r){var n=t.instantiations||(t.instantiations=e.createMap()),i=Ec(r),a=n.get(i);return a||n.set(i,a=gc(t,r)),a}function gc(e,t){return Rl(e,function(e,t){return kl(e.typeParameters,t)}(e,t),!0)}function mc(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return Rl(e,Pl(e.typeParameters),!0)}(e)):e}function yc(t){return t.typeParameters?t.canonicalSignatureCache||(t.canonicalSignatureCache=function(t){return pc(t,e.map(t.typeParameters,(function(e){return e.target&&!vs(e.target)?e.target:e})),e.isInJSFile(t.declaration))}(t)):t}function vc(t){var r=t.typeParameters;if(r){var n=Pl(r);return Rl(t,kl(r,e.map(r,(function(e){return Wl(Ss(e),n)||Te}))),!0)}return t}function hc(t){if(!t.isolatedSignatureType){var r=t.declaration?t.declaration.kind:0,n=162===r||166===r||171===r,i=Ai(16);i.members=J,i.properties=e.emptyArray,i.callSignatures=n?e.emptyArray:[t],i.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=i}return t.isolatedSignatureType}function bc(e){return e.members.get("__index")}function xc(t,r){var n=1===r?140:143,i=bc(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 Dc(e,t,r){return{type:e,isReadonly:t,declaration:r}}function Sc(t,r){var n=xc(t,r);if(n)return Dc(n.type?xl(n.type):be,e.hasModifier(n,64),n)}function Cc(t){return e.mapDefined(e.filter(t.symbol&&t.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function Tc(t){if(!t.constraint)if(t.target){var r=vs(t.target);t.constraint=r?Wl(r,t.mapper):it}else{var n=Cc(t);if(n){var i=xl(n);1&i.flags&&i!==Se&&(i=186===n.parent.parent.kind?Ge:Te),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(181===a.parent.kind){var o=a.parent.parent;if(169===o.kind){var s=o,c=Jv(s);if(c){var u=s.typeArguments.indexOf(a.parent);if(u<c.length){var l=vs(c[u]);if(l){var _=Wl(l,kl(c,Bv(s,c)));_!==t&&(r=e.append(r,_))}}}}else 156===o.kind&&o.dotDotDotToken&&(r=e.append(r,su(Te)))}}return r&&Eu(r)}(t)||it}return t.constraint===it?void 0:t.constraint}function kc(t){var r=e.getDeclarationOfKind(t.symbol,155),n=e.isJSDocTemplateTag(r.parent)?e.getHostSignatureFromJSDoc(r.parent):r.parent;return n&&yi(n)}function Ec(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 Nc(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 Ac(e,t){var r=Ec(t),n=e.instantiations.get(r);return n||(n=Ai(4,e.symbol),e.instantiations.set(r,n),n.objectFlags|=t?Nc(t,0):0,n.target=e,n.resolvedTypeArguments=t),n}function Fc(e){var t=ki(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function Pc(e,t,r){var n=il(t),i=al(n),a=Ai(4,e.symbol);return a.target=e,a.node=t,a.mapper=r,a.aliasSymbol=n,a.aliasTypeArguments=r?Cl(i,r):i,a}function wc(t){var r,n;if(!t.resolvedTypeArguments){if(!sa(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?169===i.kind?e.concatenate(t.target.outerTypeParameters,Bv(i,t.target.localTypeParameters)):174===i.kind?[xl(i.elementType)]:e.map(i.elementTypes,xl):e.emptyArray;la()?t.resolvedTypeArguments=t.mapper?Cl(a,t.mapper):a:(t.resolvedTypeArguments=(null===(n=t.target.localTypeParameters)||void 0===n?void 0:n.map((function(){return Se})))||e.emptyArray,nn(t.node||_,t.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,t.target.symbol&&Hi(t.target.symbol)))}return t.resolvedTypeArguments}function Ic(t){return e.length(t.target.typeParameters)}function Oc(t,r){var n=yo(mi(r)),i=n.localTypeParameters;if(i){var a=e.length(t.typeArguments),o=tc(i),s=e.isInJSFile(t);if(!(!X&&s)&&(a<o||a>i.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(nn(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,Qi(n,void 0,2),o,i.length),!s)return Se}return 169===t.kind&&uu(t,e.length(t.typeArguments)!==i.length)?Pc(n,t,void 0):Ac(n,e.concatenate(n.outerTypeParameters,rc(Hc(t),i,o,s)))}return Vc(t,r)?n:Se}function Mc(t,r){var n=yo(t),i=yn(t),a=i.typeParameters,o=Ec(r),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=Wl(n,kl(a,rc(r,a,tc(a),e.isInJSFile(t.valueDeclaration))))),s}function Lc(t){switch(t.kind){case 169:return t.typeName;case 216:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function Rc(e,t,r){return e&&ti(e,t,r)||ve}function Bc(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=yi(n);if(i)return cy(i,t)}}}(r)||r).flags)return Oc(t,r);if(524288&r.flags)return function(t,r){var n=yo(r),i=yn(r).typeParameters;if(i){var a=e.length(t.typeArguments),o=tc(i);return a<o||a>i.length?(nn(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,Hi(r),o,i.length),Se):Mc(r,Hc(t))}return Vc(t,r)?n:Se}(t,r);var n=vo(r);if(n)return Vc(t,r)?ml(n):Se;if(111551&r.flags&&Kc(t)){var i=function(t,r){var n=vn(t);if(!n.resolvedJSDocType){var i=Wa(r),a=i;if(r.valueDeclaration){var o=e.getRootDeclaration(r.valueDeclaration),s=!1;if(e.isVariableDeclaration(o)&&o.initializer){for(var c=o.initializer;e.isPropertyAccessExpression(c);)c=c.expression;s=e.isCallExpression(c)&&e.isRequireCall(c,!0)&&!!i.symbol}var u=188===t.kind&&t.qualifier;i.symbol&&(s||u)&&(a=Bc(t,i.symbol))}n.resolvedJSDocType=a}return n.resolvedJSDocType}(t,r);return i||(Rc(Lc(t),788968),Wa(r))}return Se}function jc(e,t){if(3&t.flags||t===e)return e;var r=fu(e)+">"+fu(t),n=ge.get(r);if(n)return n;var i=ki(33554432);return i.baseType=e,i.substitute=t,ge.set(r,i),i}function Jc(e){return 175===e.kind&&1===e.elementTypes.length}function zc(e,t,r){return Jc(t)&&Jc(r)?zc(e,t.elementTypes[0],r.elementTypes[0]):Xu(xl(t))===e?xl(r):void 0}function Uc(t,r){for(var n;r&&!e.isStatement(r)&&303!==r.kind;){var i=r.parent;if(180===i.kind&&r===i.trueType){var a=zc(t,i.checkType,i.extendsType);a&&(n=e.append(n,a))}r=i}return n?jc(t,Eu(e.append(n,t))):t}function Kc(e){return!!(4194304&e.flags)&&(169===e.kind||188===e.kind)}function Vc(t,r){return!t.typeArguments||(nn(t,e.Diagnostics.Type_0_is_not_generic,r?Hi(r):t.typeName?e.declarationNameToString(t.typeName):u),!1)}function qc(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Vc(t),Pe;case"Number":return Vc(t),we;case"Boolean":return Vc(t),Be;case"Void":return Vc(t),Je;case"Undefined":return Vc(t),ke;case"Null":return Vc(t),Ae;case"Function":case"function":return Vc(t),ft;case"array":return r&&r.length||X?void 0:Ct;case"promise":return r&&r.length||X?void 0:wy(be);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=xl(r[0]),i=Dc(xl(r[1]),!1);return Oi(void 0,J,e.emptyArray,e.emptyArray,n===Pe?i:void 0,n===we?i:void 0)}return be}return Vc(t),X?void 0:be}}}function Wc(t){var r=vn(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=ve,r.resolvedType=lv(t.parent.expression);var n=void 0,i=void 0;Kc(t)&&((i=qc(t))||((n=Rc(Lc(t),788968,!0))===ve?n=Rc(Lc(t),900095):Rc(Lc(t),788968),i=Bc(t,n))),i||(i=Bc(t,n=Rc(Lc(t),788968))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function Hc(t){return e.map(t.typeArguments,xl)}function Gc(e){var t=vn(e);return t.resolvedType||(t.resolvedType=ml(Bd(Ev(e.exprName)))),t.resolvedType}function Qc(t,r){function n(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 245:case 246:case 248:return n}}}if(!t)return r?rt:Ze;var i=yo(t);return 524288&i.flags?e.length(i.typeParameters)!==r?(nn(n(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(t),r),r?rt:Ze):i:(nn(n(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(t)),r?rt:Ze)}function Xc(t,r){return Yc(t,111551,r?e.Diagnostics.Cannot_find_global_value_0:void 0)}function Yc(e,t,r){return Sn(void 0,e,t,r,e,!1)}function Zc(t,r,n){var i=function(t,r){return Yc(t,788968,r?e.Diagnostics.Cannot_find_global_type_0:void 0)}(t,n);return i||n?Qc(i,r):void 0}function $c(e){return Nt||(Nt=Xc("Symbol",e))}function eu(e){return At||(At=Zc("Symbol",0,e))||Ze}function tu(e){return Pt||(Pt=Zc("Promise",1,e))||rt}function ru(e){return It||(It=Xc("Promise",e))}function nu(e){return Mt||(Mt=Zc("Iterable",1,e))||rt}function iu(e,t){void 0===t&&(t=0);var r=Yc(e,788968,void 0);return r&&Qc(r,t)}function au(e,t){return e!==rt?Ac(e,t):Ze}function ou(e){return au(Ft||(Ft=Zc("TypedPropertyDescriptor",1,!0))||rt,[e])}function su(e,t){return au(t?vt:yt,[e])}function cu(t){var r=function(t){return e.isTypeOperatorNode(t)&&138===t.operator}(t.parent);if(174===t.kind||1===t.elementTypes.length&&177===t.elementTypes[0].kind)return r?vt:yt;var n=e.lastOrUndefined(t.elementTypes),i=n&&177===n.kind?n:void 0,a=e.findLastIndex(t.elementTypes,(function(e){return 176!==e.kind&&e!==i}))+1;return _u(t.elementTypes.length,a,!!i,r,void 0)}function uu(t,r){return!!il(t)||function e(t){var r=t.parent;switch(r.kind){case 182:case 169:case 178:case 179:case 185:case 180:case 184:case 174:case 175:return e(r);case 247:return!0}return!1}(t)&&(174===t.kind?lu(t.elementType):175===t.kind?e.some(t.elementTypes,lu):r||e.some(t.typeArguments,lu))}function lu(t){switch(t.kind){case 169:return Kc(t)||!!(524288&Rc(t.typeName,788968).flags);case 172:return!0;case 184:return 147!==t.operator&&lu(t.type);case 182:case 176:case 299:case 297:case 298:case 294:return lu(t.type);case 177:return 174!==t.type.kind||lu(t.type.elementType);case 178:case 179:return e.some(t.types,lu);case 185:return lu(t.objectType)||lu(t.indexType);case 180:return lu(t.checkType)||lu(t.extendsType)||lu(t.trueType)||lu(t.falseType)}return!1}function _u(t,r,n,i,a){var o=t+(n?"+":",")+r+(i?"R":"")+(a&&a.length?","+a.join(","):""),s=le.get(o);return s||le.set(o,s=function(t,r,n,i,a){var o,s=[],c=n?t-1:t;if(t){o=new Array(t);for(var u=0;u<t;u++){var l=o[u]=Fi();if(u<c){var _=cn(4|(u>=r?16777216:0),""+u,i?8:0);_.type=l,s.push(_)}}}var d=[];for(u=r;u<=c;u++)d.push(vl(u));var p=cn(4,"length");p.type=n?we:bu(d),s.push(p);var f=Ai(12);return f.typeParameters=o,f.outerTypeParameters=void 0,f.localTypeParameters=o,f.instantiations=e.createMap(),f.instantiations.set(Ec(f.typeParameters),f),f.target=f,f.resolvedTypeArguments=f.typeParameters,f.thisType=Fi(),f.thisType.isThisType=!0,f.thisType.constraint=f,f.declaredProperties=s,f.declaredCallSignatures=e.emptyArray,f.declaredConstructSignatures=e.emptyArray,f.declaredStringIndexInfo=void 0,f.declaredNumberIndexInfo=void 0,f.minLength=r,f.hasRestElement=n,f.readonly=i,f.associatedNames=a,f}(t,r,n,i,a)),s}function du(e,t,r,n,i){void 0===t&&(t=e.length),void 0===r&&(r=!1),void 0===n&&(n=!1);var a=e.length;if(1===a&&r)return su(e[0],n);var o=_u(a,t,a>0&&r,n,i);return e.length?Ac(o,e):o}function pu(e,t){var r=e.target;return r.hasRestElement&&(t=Math.min(t,Ic(e)-1)),du(wc(e).slice(t),Math.max(0,r.minLength-t),r.hasRestElement,r.readonly,r.associatedNames&&r.associatedNames.slice(t))}function fu(e){return e.id}function gu(t,r){return e.binarySearch(t,r,fu,e.compareValues)>=0}function mu(t,r){var n=e.binarySearch(t,r,fu,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function yu(t,r,n){var i=n.flags;if(1048576&i)return vu(t,r,n.types);if(!(131072&i))if(r|=71041023&i,66846720&i&&(r|=262144),n===De&&(r|=8388608),!W&&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,fu,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function vu(e,t,r){for(var n=0,i=r;n<i.length;n++){t=yu(e,t,i[n])}return t}function hu(t,r){var n=t.length;if(0===n||function(e){var t=e[0];if(1024&t.flags){for(var r=vi(t.symbol),n=1;n<e.length;n++){var i=e[n];if(!(1024&i.flags)||r!==vi(i.symbol))return!1}return!0}return!1}(t))return!0;for(var i=n,a=0;i>0;)for(var o=t[--i],s=0,c=t;s<c.length;s++){var u=c[s];if(o!==u){if(1e5===a)if(a/(n-i)*n>(r?25e6:1e6))return nn(_,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1;if(a++,F_(o,u,Xr)&&(!(1&e.getObjectFlags(Ga(o)))||!(1&e.getObjectFlags(Ga(u)))||c_(o,u))){e.orderedRemoveItemAt(t,i);break}}}return!0}function bu(t,r,n,i){if(void 0===r&&(r=1),0===t.length)return ze;if(1===t.length)return t[0];var a=[],o=vu(a,0,t);if(0!==r){if(3&o)return 1&o?8388608&o?De:be:Te;switch(r){case 1:11136&o&&function(t,r){for(var n=t.length;n>0;){var i=t[--n];(128&i.flags&&4&r||256&i.flags&&8&r||2048&i.flags&&64&r||8192&i.flags&&4096&r||yl(i)&&gu(t,i.regularType))&&e.orderedRemoveItemAt(t,n)}}(a,o);break;case 2:if(!hu(a,!(262144&o)))return Se}if(0===a.length)return 65536&o?4194304&o?Ae:Fe:32768&o?4194304&o?ke:Ee:ze}return Du(a,(66994211&o?0:262144)|(2097152&o?268435456:0),n,i)}function xu(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Du(e,t,r,n){if(0===e.length)return ze;if(1===e.length)return e[0];var i=Ec(e),a=_e.get(i);return a||(a=ki(1048576),_e.set(i,a),a.objectFlags=t|Nc(e,98304),a.types=e,a.aliasSymbol=r,a.aliasTypeArguments=n),a}function Su(e,t,r){var n=r.flags;return 2097152&n?Cu(e,t,r.types):(k_(r)?16777216&t||(t|=16777216,e.set(r.id.toString(),r)):(3&n?r===De&&(t|=8388608):!W&&98304&n||e.has(r.id.toString())||(109440&r.flags&&109440&t&&(t|=67108864),e.set(r.id.toString(),r)),t|=71041023&n),t)}function Cu(e,t,r){for(var n=0,i=r;n<i.length;n++){t=Su(e,t,ml(i[n]))}return t}function Tu(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!gu(i.types,t)){var a=128&t.flags?Pe:256&t.flags?we:2048&t.flags?Ie:8192&t.flags?je:void 0;if(!a||!gu(i.types,a))return!1}}return!0}function ku(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]=Gp(t[n],(function(e){return!(e.flags&r)}));return!0}return!1}function Eu(t,r,n){var i=e.createMap(),a=Cu(i,0,t),o=e.arrayFrom(i.values());if(131072&a||W&&98304&a&&84410368&a||67108864&a&&130044&a||132&a&&67238776&a||296&a&&67238612&a||2112&a&&67236796&a||12288&a&&67226620&a||49152&a&&67189756&a)return ze;if(1&a)return 8388608&a?De:be;if(!W&&98304&a)return 32768&a?ke:Ae;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,k_)),0===o.length)return Te;if(1===o.length)return o[0];var s=Ec(o),c=de.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++){mu(o,a=_[l])&&Tu(r,a)&&mu(s,a)}return t[n]=Du(s,262144),!0}(o))c=Eu(o,r,n);else if(ku(o,32768))c=bu([Eu(o),ke],1,r,n);else if(ku(o,65536))c=bu([Eu(o),Ae],1,r,n);else{if(e.reduceLeft(o,(function(e,t){return e*(1048576&t.flags?t.types.length:1)}),1)>=1e5)return nn(_,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),Se;var u=e.findIndex(o,(function(e){return 0!==(1048576&e.flags)})),l=o[u];c=bu(e.map(l.types,(function(t){return Eu(e.replaceElement(o,u,t))})),1,r,n)}else c=function(e,t,r){var n=ki(2097152);return n.objectFlags=Nc(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n}(o,r,n);de.set(s,c)}return c}function Nu(e,t){var r=ki(4194304);return r.type=e,r.stringsOnly=t,r}function Au(t){return e.isPrivateIdentifier(t)?ze:e.isIdentifier(t)?vl(e.unescapeLeadingUnderscores(t.escapedText)):ml(e.isComputedPropertyName(t)?yg(t):Ev(t))}function Fu(t,r){if(!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var n=yn(Lo(t)).nameType;if(!n&&!e.isKnownSymbol(t))if("default"===t.escapedName)n=vl("default");else{var i=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);n=i&&Au(i)||vl(e.symbolName(t))}if(n&&n.flags&r)return n}return ze}function Pu(t,r){return bu(e.map(ms(t),(function(e){return Fu(e,r)})))}function wu(e){var t=qs(e,1);return t!==cr?t:void 0}function Iu(t,r,n){return void 0===r&&(r=Z),1048576&(t=Ms(t)).flags?Eu(e.map(t.types,(function(e){return Iu(e,r,n)}))):2097152&t.flags?bu(e.map(t.types,(function(e){return Iu(e,r,n)}))):Yy(t,58982400)?function(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Nu(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=Nu(e,!1))}(t,r):32&e.getObjectFlags(t)?Gp(ns(t),(function(e){return!(n&&5&e.flags)})):t===De?De:2&t.flags?ze:131073&t.flags?Ge:r?!n&&qs(t,0)?Pe:Pu(t,128):!n&&qs(t,0)?bu([Pe,we,Pu(t,8192)]):wu(t)?bu([we,Pu(t,8320)]):Pu(t,8576)}function Ou(t){if(Z)return t;var r=Ht||(Ht=Yc("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return r?Mc(r,[t,Pe]):Pe}function Mu(t){return!X&&(!!(16384&e.getObjectFlags(t))||(1048576&t.flags?e.every(t.types,Mu):2097152&t.flags?e.some(t.types,Mu):!!(63176704&t.flags)&&Mu(ks(t))))}function Lu(t,r){var n=r&&195===r.kind?r:void 0;return Eo(t)?wo(t):n&&hm(n.argumentExpression,t,!1)?e.getPropertyNameForKnownSymbolName(e.idText(n.argumentExpression.name)):r&&e.isPropertyName(r)?e.getPropertyNameForPropertyNameNode(r):void 0}function Ru(t,r,n,i,a,o,s){var c=o&&195===o.kind?o:void 0,u=o&&e.isPrivateIdentifier(o)?void 0:Lu(n,o);if(void 0!==u){var l=Js(r,u);if(l){if(c){if(fm(l,c,104===c.expression.kind),Hy(c,l,e.getAssignmentTargetKind(c)))return void nn(c.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Hi(l));4&s&&(vn(o).resolvedSymbol=l)}var _=Wa(l);return c&&1!==e.getAssignmentTargetKind(c)?mf(c,_):_}if(Hp(r,gd)&&mg(u)&&+u>=0){if(o&&Hp(r,(function(e){return!e.target.hasRestElement}))&&!(8&s)){var d=Bu(o);gd(r)?nn(d,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Qi(r),Ic(r),e.unescapeLeadingUnderscores(u)):nn(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(u),Qi(r))}return h(qs(r,1)),Xp(r,(function(e){return md(e)||ke}))}}if(!(98304&n.flags)&&Zy(n,12716)){if(131073&r.flags)return r;var p=qs(r,0),f=Zy(n,296)&&qs(r,1)||p;if(f)return 1&s&&f===p?void(c&&nn(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Qi(n),Qi(t))):o&&!Zy(n,12)?(nn(d=Bu(o),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Qi(n)),f.type):(h(f),f.type);if(131072&n.flags)return ze;if(Mu(r))return be;if(c&&!ev(r)){if(r.symbol===ie&&void 0!==u&&ie.exports.has(u)&&418&ie.exports.get(u).flags)nn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(u),Qi(r));else if(X&&!U.suppressImplicitAnyIndexErrors&&!a)if(void 0!==u&&cm(u,r))nn(c,e.Diagnostics.Property_0_is_a_static_member_of_type_1,u,Qi(r));else if(Ws(r,1))nn(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var g=void 0;if(void 0!==u&&(g=lm(u,r)))void 0!==g&&nn(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,Qi(r),g);else{var m=function(t,r,n){var i=e.isAssignmentTarget(r)?"set":"get";if(!function(e){var r=fs(t,e);if(r){var i=Nm(Wa(r));return!!i&&Cy(i)>=1&&s_(n,by(i,0))}return!1}(i))return;var a=e.tryGetPropertyAccessOrIdentifierToString(r.expression);void 0===a?a=i:a+="."+i;return a}(r,c,n);if(void 0!==m)nn(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Qi(r),m);else{var y=void 0;if(1024&n.flags)y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Qi(n)+"]",Qi(r));else if(8192&n.flags){var v=ei(n.symbol,c);y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+v+"]",Qi(r))}else 128&n.flags?y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Qi(r)):256&n.flags?y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Qi(r)):12&n.flags&&(y=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Qi(n),Qi(r)));y=e.chainDiagnosticMessages(y,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Qi(i),Qi(r)),qr.add(e.createDiagnosticForNodeFromMessageChain(c,y))}}}return}}if(Mu(r))return be;if(o){d=Bu(o);384&n.flags?nn(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,Qi(r)):12&n.flags?nn(d,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Qi(r),Qi(n)):nn(d,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Qi(n))}return pa(n)?n:void 0;function h(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&nn(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Qi(r))}}function Bu(e){return 195===e.kind?e.argumentExpression:185===e.kind?e.indexType:154===e.kind?e.expression:e}function ju(t){return 3145728&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|(e.some(t.types,ju)?8388608:0)),!!(8388608&t.objectFlags)):!!(58982400&t.flags)||_s(t)}function Ju(t){return 3145728&t.flags?(16777216&t.objectFlags||(t.objectFlags|=16777216|(e.some(t.types,Ju)?33554432:0)),!!(33554432&t.objectFlags)):!!(63176704&t.flags)}function zu(e){return!!(262144&e.flags&&e.isThisType)}function Uu(t,r){return 8388608&t.flags?function(t,r){var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===at?t:t[n];t[n]=at;var i=function(e){if(33554432&e.flags)return e.substitute;return e}(Uu(t.objectType,r)),a=Uu(t.indexType,r),o=function(t,r,n){if(1048576&r.flags){var i=e.map(r.types,(function(e){return Uu(Wu(t,e),n)}));return n?Eu(i):bu(i)}}(i,a,r);if(o)return t[n]=o;if(!(63176704&a.flags)){var s=Ku(i,a,r);if(s)return t[n]=s}if(_s(i))return t[n]=Xp(qu(i,t.indexType),(function(e){return Uu(e,r)}));return t[n]=t}(t,r):16777216&t.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=Zu(e),a=$u(e);if(131072&a.flags&&Xu(i)===Xu(r)){if(1&r.flags||s_(Ql(r),Ql(n)))return Uu(i,t);if(Vu(r,n))return ze}else if(131072&i.flags&&Xu(a)===Xu(r)){if(!(1&r.flags)&&s_(Ql(r),Ql(n)))return ze;if(1&r.flags||Vu(r,n))return Uu(a,t)}return e}(t,r):t}function Ku(t,r,n){if(3145728&t.flags){var i=e.map(t.types,(function(e){return Uu(Wu(e,r),n)}));return 2097152&t.flags||n?Eu(i):bu(i)}}function Vu(e,t){return!!(131072&bu([Go(e,t),ze]).flags)}function qu(e,t){var r=kl([rs(e)],[t]),n=wl(e.mapper,r);return Wl(is(e),n)}function Wu(e,t,r,n,i){return Hu(e,t,r,0,n,i)||(r?Se:Te)}function Hu(e,t,r,n,i,a){if(void 0===n&&(n=0),e===De||t===De)return De;if(!E_(e)||98304&t.flags||!Zy(t,12)||(t=Pe),Ju(t)||(!r||185===r.kind)&&ju(e)){if(3&e.flags)return e;var o=e.id+","+t.id,s=fe.get(o);return s||fe.set(o,s=function(e,t,r,n){var i=ki(8388608);return i.objectType=e,i.indexType=t,i.aliasSymbol=r,i.aliasTypeArguments=n,i}(e,t,i,a)),s}var c=Ps(e);if(1048576&t.flags&&!(16&t.flags)){for(var u=[],l=!1,_=0,d=t.types;_<d.length;_++){var p=Ru(e,c,d[_],t,l,r,n);if(p)u.push(p);else{if(!r)return;l=!0}}if(l)return;return 2&n?Eu(u,i,a):bu(u,1,i,a)}return Ru(e,c,t,t,!1,r,4|n)}function Gu(e){var t=vn(e);if(!t.resolvedType){var r=xl(e.objectType),n=xl(e.indexType),i=il(e),a=Wu(r,n,e,i,al(i));t.resolvedType=8388608&a.flags&&a.objectType===r&&a.indexType===n?Uc(a,e):a}return t.resolvedType}function Qu(e){var t=vn(e);if(!t.resolvedType){var r=Ai(32,e.symbol);r.declaration=e,r.aliasSymbol=il(e),r.aliasTypeArguments=al(r.aliasSymbol),t.resolvedType=r,ns(r)}return t.resolvedType}function Xu(e){return 33554432&e.flags?e.baseType:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?Wu(Xu(e.objectType),Xu(e.indexType)):e}function Yu(t,r){for(var n,i,a=function(){var a=Wl(t.checkType,r),o=ju(a)||Ju(a),s=Wl(t.extendsType,r);if(a===De||s===De)return{value:De};var c=void 0;if(t.inferTypeParameters){var u=Vd(t.inferTypeParameters,void 0,0);o&&e.some(t.inferTypeParameters,(function(e){return e===s}))||sp(u.inferences,a,s,384),c=Il(r,u.mapper)}var l=c?Wl(t.extendsType,c):s;if(!o&&!ju(l)&&!Ju(l)){if(!(3&l.flags)&&(1&a.flags||!s_(Gl(a),Gl(l)))){1&a.flags&&(i||(i=[])).push(Hl(t.trueType,c||r));var _=t.falseType;if(16777216&_.flags){var d=_.root;if(d.node.parent===t.node&&(!d.isDistributive||d.checkType===t.checkType))return t=d,"continue"}return n=Hl(_,r),"break"}if(3&l.flags||s_(Ql(a),Ql(l)))return n=Hl(t.trueType,c||r),"break"}var p=Xu(a);return(n=ki(16777216)).root=t,n.checkType=p,n.extendsType=s,n.mapper=r,n.combinedMapper=c,n.aliasSymbol=t.aliasSymbol,n.aliasTypeArguments=Cl(t.aliasTypeArguments,r),"break"};;){var o=a();if("object"===typeof o)return o.value;if("break"===o)break}return i?bu(e.append(i,n)):n}function Zu(e){return e.resolvedTrueType||(e.resolvedTrueType=Wl(e.root.trueType,e.mapper))}function $u(e){return e.resolvedFalseType||(e.resolvedFalseType=Wl(e.root.falseType,e.mapper))}function el(t){var r;return t.locals&&t.locals.forEach((function(t){262144&t.flags&&(r=e.append(r,yo(t)))})),r}function tl(t){var r=vn(t);if(!r.resolvedType){if(t.isTypeOf&&t.typeArguments)return nn(t,e.Diagnostics.Type_arguments_cannot_be_used_here),r.resolvedSymbol=ve,r.resolvedType=Se;if(!e.isLiteralImportTypeNode(t))return nn(t.argument,e.Diagnostics.String_literal_expected),r.resolvedSymbol=ve,r.resolvedType=Se;var n=t.isTypeOf?111551:4194304&t.flags?900095:788968,i=ni(t,t.argument.literal);if(!i)return r.resolvedSymbol=ve,r.resolvedType=Se;var a=si(i,!1);if(e.nodeIsMissing(t.qualifier)){if(a.flags&n)r.resolvedType=rl(t,r,a,n);else nn(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=function t(r){return e.isIdentifier(r)?[r]:e.append(t(r.left),r.right)}(t.qualifier),s=a,c=void 0;c=o.shift();){var u=o.length?1920:n,l=bn(di(mi(Wn(s))),c.escapedText,u);if(!l)return nn(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,ei(s),e.declarationNameToString(c)),r.resolvedType=Se;vn(c).resolvedSymbol=l,vn(c.parent).resolvedSymbol=l,s=l}r.resolvedType=rl(t,r,s,n)}}return r.resolvedType}function rl(e,t,r,n){var i=Wn(r);return t.resolvedSymbol=i,111551===n?Wa(r):Bc(e,i)}function nl(t){var r=vn(t);if(!r.resolvedType){var n=il(t);if(0!==Mo(t.symbol).size||n){var i=Ai(16,t.symbol);i.aliasSymbol=n,i.aliasTypeArguments=al(n),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=su(i)),r.resolvedType=i}else r.resolvedType=tt}return r.resolvedType}function il(t){for(var r=t.parent;e.isParenthesizedTypeNode(r)||e.isTypeOperatorNode(r)&&138===r.operator;)r=r.parent;return e.isTypeAlias(r)?yi(r):void 0}function al(e){return e?$a(e):void 0}function ol(e){return!!(524288&e.flags)&&!_s(e)}function sl(e){return T_(e)||!!(71405564&e.flags)}function cl(t){return!!(524288&t.flags)&&!!(16&e.getObjectFlags(t))&&(1===e.length(ms(t))||e.every(ms(t),(function(e){return!!(16777216&e.flags)})))}function ul(t,r){if(2===t.types.length){var n=t.types[0],i=t.types[1];if(e.every(t.types,sl))return T_(n)?n:T_(i)?i:Ze;if(sl(n)&&cl(i))return a(i);if(sl(i)&&cl(n))return a(n)}function a(t){for(var n=e.createSymbolTable(),i=0,a=ms(t);i<a.length;i++){var o=a[i];if(24&e.getDeclarationModifierFlagsFromSymbol(o));else if(_l(o)){var s=65536&o.flags&&!(32768&o.flags),c=cn(16777220,o.escapedName,r?8:0);c.type=s?ke:Wa(o),c.declarations=o.declarations,c.nameType=yn(o).nameType,c.syntheticOrigin=o,n.set(o.escapedName,c)}}var u=Oi(t.symbol,n,e.emptyArray,e.emptyArray,qs(t,0),qs(t,1));return u.objectFlags|=1048704,u}}function ll(t,r,n,i,a){if(1&t.flags||1&r.flags)return be;if(2&t.flags||2&r.flags)return Te;if(131072&t.flags)return r;if(131072&r.flags)return t;var o;if(1048576&t.flags)return(o=ul(t,a))?ll(o,r,n,i,a):Xp(t,(function(e){return ll(e,r,n,i,a)}));if(1048576&r.flags)return(o=ul(r,a))?ll(t,o,n,i,a):Xp(r,(function(e){return ll(t,e,n,i,a)}));if(71307260&r.flags)return t;if(ju(t)||ju(r)){if(T_(t))return r;if(2097152&t.flags){var s=t.types,c=s[s.length-1];if(ol(c)&&ol(r))return Eu(e.concatenate(s.slice(0,s.length-1),[ll(c,r,n,i,a)]))}return Eu([t,r])}var u,l,_=e.createSymbolTable(),d=e.createUnderscoreEscapedMap();t===Ze?(u=qs(r,0),l=qs(r,1)):(u=Xo(qs(t,0),qs(r,0)),l=Xo(qs(t,1),qs(r,1)));for(var p=0,f=ms(r);p<f.length;p++){var g=f[p];24&e.getDeclarationModifierFlagsFromSymbol(g)?d.set(g.escapedName,!0):_l(g)&&_.set(g.escapedName,dl(g,a))}for(var m=0,y=ms(t);m<y.length;m++){var v=y[m];if(!d.has(v.escapedName)&&_l(v))if(_.has(v.escapedName)){var h=Wa(g=_.get(v.escapedName));if(16777216&g.flags){var b=e.concatenate(v.declarations,g.declarations),x=cn(4|16777216&v.flags,v.escapedName);x.type=bu([Wa(v),Pp(h,524288)]),x.leftSpread=v,x.rightSpread=g,x.declarations=b,x.nameType=yn(v).nameType,_.set(v.escapedName,x)}}else _.set(v.escapedName,dl(v,a))}var D=Oi(n,_,e.emptyArray,e.emptyArray,pl(u,a),pl(l,a));return D.objectFlags|=1049728|i,D}function _l(t){return!e.some(t.declarations,e.isPrivateIdentifierPropertyDeclaration)&&(!(106496&t.flags)||!t.declarations.some((function(t){return e.isClassLike(t.parent)})))}function dl(e,t){var r=65536&e.flags&&!(32768&e.flags);if(!r&&t===Wy(e))return e;var n=cn(4|16777216&e.flags,e.escapedName,t?8:0);return n.type=r?ke:Wa(e),n.declarations=e.declarations,n.nameType=yn(e).nameType,n.syntheticOrigin=e,n}function pl(e,t){return e&&e.isReadonly!==t?Dc(e.type,t,e.declaration):e}function fl(e,t,r){var n=ki(e);return n.symbol=r,n.value=t,n}function gl(e){if(2944&e.flags){if(!e.freshType){var t=fl(e.flags,e.value,e.symbol);t.regularType=e,t.freshType=t,e.freshType=t}return e.freshType}return e}function ml(t){return 2944&t.flags?t.regularType:1048576&t.flags?t.regularType||(t.regularType=bu(e.sameMap(t.types,ml))):t}function yl(e){return!!(2944&e.flags)&&e.freshType===e}function vl(t,r,n){var i=(r||"")+("number"===typeof t?"#":"string"===typeof t?"@":"n")+("object"===typeof t?e.pseudoBigIntToString(t):t),a=pe.get(i);if(!a){var o=("number"===typeof t?256:"string"===typeof t?128:2048)|(r?1024:0);pe.set(i,a=fl(o,t,n)),a.regularType=a}return a}function hl(t){if(e.isValidESSymbolDeclaration(t)){var r=yi(t),n=yn(r);return n.uniqueESSymbolType||(n.uniqueESSymbolType=function(e){var t=ki(8192);return t.symbol=e,t.escapedName="__@"+t.symbol.escapedName+"@"+w(t.symbol),t}(r))}return je}function bl(t){var r=vn(t);return r.resolvedType||(r.resolvedType=function(t){var r=e.getThisContainer(t,!1),n=r&&r.parent;if(n&&(e.isClassLike(n)||246===n.kind)&&!e.hasModifier(r,32)&&(!e.isConstructorDeclaration(r)||e.isNodeDescendantOf(t,r.body)))return co(yi(n)).thisType;if(n&&e.isObjectLiteralExpression(n)&&e.isBinaryExpression(n.parent)&&6===e.getAssignmentDeclarationKind(n.parent))return co(yi(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)?co(yi(i.parent.left).parent).thisType:sy(r)&&e.isNodeDescendantOf(t,r.body)?co(yi(r)).thisType:(nn(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Se)}(t)),r.resolvedType}function xl(e){return Uc(Dl(e),e)}function Dl(t){switch(t.kind){case 125:case 295:case 296:return be;case 148:return Te;case 143:return Pe;case 140:return we;case 151:return Ie;case 128:return Be;case 144:return je;case 110:return Je;case 146:return ke;case 100:return Ae;case 137:return ze;case 141:return 131072&t.flags&&!X?be:We;case 183:case 104:return bl(t);case 187:return function(e){var t=vn(e);return t.resolvedType||(t.resolvedType=ml(Ev(e.literal))),t.resolvedType}(t);case 169:return Wc(t);case 168:return t.assertsModifier?Je:Be;case 216:return Wc(t);case 172:return Gc(t);case 174:case 175:return function(t){var r=vn(t);if(!r.resolvedType){var n=cu(t);if(n===rt)r.resolvedType=Ze;else if(uu(t))r.resolvedType=175===t.kind&&0===t.elementTypes.length?n:Pc(n,t,void 0);else{var i=174===t.kind?[xl(t.elementType)]:e.map(t.elementTypes,xl);r.resolvedType=Ac(n,i)}}return r.resolvedType}(t);case 176:return function(e){var t=xl(e.type);return W?Cd(t):t}(t);case 178:return function(t){var r=vn(t);if(!r.resolvedType){var n=il(t);r.resolvedType=bu(e.map(t.types,xl),1,n,al(n))}return r.resolvedType}(t);case 179:return function(t){var r=vn(t);if(!r.resolvedType){var n=il(t);r.resolvedType=Eu(e.map(t.types,xl),n,al(n))}return r.resolvedType}(t);case 297:return function(e){var t=xl(e.type);return W?Sd(t,65536):t}(t);case 299:return Da(xl(t.type));case 182:case 298:case 294:return xl(t.type);case 177:return rd(xl(t.type))||Se;case 301:return function(t){var r=xl(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 su(r)}}if(e.isParameter(n)&&e.isJSDocFunctionType(n.parent))return su(r);return Da(r)}(t);case 170:case 171:case 173:case 304:case 300:case 305:return nl(t);case 184:return function(t){var r=vn(t);if(!r.resolvedType)switch(t.operator){case 134:r.resolvedType=Iu(xl(t.type));break;case 147:r.resolvedType=144===t.type.kind?hl(e.walkUpParenthesizedTypes(t.parent)):Se;break;case 138:r.resolvedType=xl(t.type);break;default:throw e.Debug.assertNever(t.operator)}return r.resolvedType}(t);case 185:return Gu(t);case 186:return Qu(t);case 180:return function(t){var r=vn(t);if(!r.resolvedType){var n=xl(t.checkType),i=il(t),a=al(i),o=Ya(t,!0),s=a?o:e.filter(o,(function(e){return Jl(e,t)})),c={node:t,checkType:n,extendsType:xl(t.extendsType),trueType:xl(t.trueType),falseType:xl(t.falseType),isDistributive:!!(262144&n.flags),inferTypeParameters:el(t),outerTypeParameters:s,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:a};r.resolvedType=Yu(c,void 0),s&&(c.instantiations=e.createMap(),c.instantiations.set(Ec(s),r.resolvedType))}return r.resolvedType}(t);case 181:return function(e){var t=vn(e);return t.resolvedType||(t.resolvedType=mo(yi(e.typeParameter))),t.resolvedType}(t);case 188:return tl(t);case 75:case 153:var r=nx(t);return r?yo(r):Se;default:return Se}}function Sl(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 Cl(e,t){return Sl(e,t,Wl)}function Tl(e,t){return Sl(e,t,Rl)}function kl(e,t){return 1===e.length?Nl(e[0],t?t[0]:be):function(e,t){return{kind:1,sources:e,targets:t}}(e,t)}function El(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=El(e,t.mapper1);return a!==e&&3===t.kind?Wl(a,t.mapper2):El(a,t.mapper2)}}function Nl(e,t){return{kind:0,source:e,target:t}}function Al(e){return{kind:2,func:e}}function Fl(e,t,r){return{kind:e,mapper1:t,mapper2:r}}function Pl(e){return kl(e,void 0)}function wl(e,t){return e?Fl(3,e,t):t}function Il(e,t){return e?Fl(4,e,t):t}function Ol(e,t,r){return r?Fl(4,Nl(e,t),r):Nl(e,t)}function Ml(e,t,r){return e?Fl(4,e,Nl(t,r)):Nl(t,r)}function Ll(e){var t=Fi(e.symbol);return t.target=e,t}function Rl(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,Ll),r=wl(kl(t.typeParameters,i),r);for(var a=0,o=i;a<o.length;a++){o[a].mapper=r}}var s=jo(t.declaration,i,t.thisParameter&&Bl(t.thisParameter,r),Sl(t.parameters,r,Bl),void 0,void 0,t.minArgumentCount,3&t.flags);return s.target=t,s.mapper=r,s}function Bl(t,r){var n=yn(t);if(n.type&&!Yd(n.type))return t;1&e.getCheckFlags(t)&&(t=n.target,r=wl(n.mapper,r));var i=cn(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 jl(t,r){var n=64&t.objectFlags?t.target:t,i=4&t.objectFlags?t.node:t.symbol.declarations[0],a=vn(i),o=a.outerTypeParameters;if(!o){var s=i;if(e.isInJSFile(s)){var c=e.findAncestor(s,e.isJSDocParameterTag);if(c){var u=e.getParameterSymbolFromJSDoc(c);u&&(s=u.valueDeclaration)}}var l=Ya(s,!0);if(sy(s)){var _=Gs(s);l=e.addRange(l,_)}o=l||e.emptyArray,o=(4&n.objectFlags||2048&n.symbol.flags)&&!n.aliasTypeArguments?e.filter(o,(function(e){return Jl(e,s)})):o,a.outerTypeParameters=o,o.length&&(a.instantiations=e.createMap(),a.instantiations.set(Ec(o),n))}if(o.length){var d=wl(t.mapper,r),p=e.map(o,(function(e){return El(e,d)})),f=Ec(p),g=a.instantiations.get(f);if(!g){var m=kl(o,p);g=4&n.objectFlags?Pc(t.target,t.node,m):32&n.objectFlags?function(t,r){var n=zl(t);if(n){var i=Wl(n,r);if(n!==i)return Xp(Ms(i),(function(i){if(61603843&i.flags&&i!==De&&i!==Se){var a=Ol(n,i,r);return $_(i)?function(e,t,r){var n=Kl(t,we,!0,r);return n===Se?Se:su(n,Ul(ed(e),cs(t)))}(i,t,a):gd(i)?function(t,r,n){var i=t.target.minLength,a=e.map(wc(t),(function(e,t){return Kl(r,vl(""+t),t>=i,n)})),o=cs(r),s=4&o?0:8&o?Ic(t)-(t.target.hasRestElement?1:0):i,c=Ul(t.target.readonly,o);return e.contains(a,Se)?Se:du(a,s,t.target.hasRestElement,c,t.target.associatedNames)}(i,t,a):Vl(t,a)}return i}))}return Vl(t,r)}(n,m):Vl(n,m),a.instantiations.set(f,g)}return g}return t}function Jl(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||223===i.kind||180===i.kind&&e.forEachChild(i.extendsType,a))return!0;return!!e.forEachChild(r,a)}return!0;function a(r){switch(r.kind){case 183:return!!t.isThisType;case 75:return!t.isThisType&&e.isPartOfTypeNode(r)&&function(e){return!(153===e.kind||169===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||188===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(r)&&Dl(r)===t;case 172:return!0}return!!e.forEachChild(r,a)}}function zl(e){var t=ns(e);if(4194304&t.flags){var r=Xu(t.type);if(262144&r.flags)return r}}function Ul(e,t){return!!(1&t)||!(2&t)&&e}function Kl(e,t,r,n){var i=Ml(n,rs(e),t),a=Wl(is(e.target||e),i),o=cs(e);return W&&4&o&&!Yy(a,49152)?Cd(a):W&&8&o&&r?Pp(a,524288):a}function Vl(e,t){var r=Ai(64|e.objectFlags,e.symbol);if(32&e.objectFlags){r.declaration=e.declaration;var n=rs(e),i=Ll(n);r.typeParameter=i,t=wl(Nl(n,i),t),i.mapper=t}return r.target=e,r.mapper=t,r.aliasSymbol=e.aliasSymbol,r.aliasTypeArguments=Cl(e.aliasTypeArguments,t),r}function ql(t,r){var n=t.root;if(n.outerTypeParameters){var i=e.map(n.outerTypeParameters,(function(e){return El(e,r)})),a=Ec(i),o=n.instantiations.get(a);if(!o)o=function(e,t){if(e.isDistributive){var r=e.checkType,n=El(r,t);if(r!==n&&1179648&n.flags)return Xp(n,(function(n){return Yu(e,Ol(r,n,t))}))}return Yu(e,t)}(n,kl(n.outerTypeParameters,i)),n.instantiations.set(a,o);return o}return t}function Wl(t,r){if(!t||!r)return t;if(50===T||D>=5e6)return nn(_,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Se;x++,D++,T++;var n=function(e,t){var r=e.flags;if(262144&r)return El(e,t);if(524288&r){var n=e.objectFlags;if(16&n)return Yd(e)?jl(e,t):e;if(32&n)return jl(e,t);if(4&n){if(e.node)return jl(e,t);var i=e.resolvedTypeArguments,a=Cl(i,t);return a!==i?Ac(e.target,a):e}return e}if(2097152&r||1048576&r&&!(131068&r)){if(!Yd(e))return e;var o=e.types,s=Cl(o,t);return s===o?e:2097152&r?Eu(s,e.aliasSymbol,Cl(e.aliasTypeArguments,t)):bu(s,1,e.aliasSymbol,Cl(e.aliasTypeArguments,t))}if(4194304&r)return Iu(Wl(e.type,t));if(8388608&r)return Wu(Wl(e.objectType,t),Wl(e.indexType,t),void 0,e.aliasSymbol,Cl(e.aliasTypeArguments,t));if(16777216&r)return ql(e,wl(e.mapper,t));if(33554432&r){var c=Wl(e.baseType,t);if(8650752&c.flags)return jc(c,Wl(e.substitute,t));var u=Wl(e.substitute,t);return 3&u.flags||s_(Ql(c),Ql(u))?c:u}return e}(t,r);return T--,n}function Hl(e,t){T--;var r=Wl(e,t);return T++,r}function Gl(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Wl(e,Ye))}function Ql(e){return 262143&e.flags?e:e.restrictiveInstantiation?e.restrictiveInstantiation:(e.restrictiveInstantiation=Wl(e,Xe),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation,e.restrictiveInstantiation)}function Xl(e,t){return e&&Dc(Wl(e.type,t),e.isReadonly,e.declaration)}function Yl(t){switch(e.Debug.assert(161!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 201:case 202:case 161:case 244:return Zl(t);case 193:return e.some(t.properties,Yl);case 192:return e.some(t.elements,Yl);case 210:return Yl(t.whenTrue)||Yl(t.whenFalse);case 209:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(Yl(t.left)||Yl(t.right));case 281:return Yl(t.initializer);case 200:return Yl(t.expression);case 274:return e.some(t.properties,Yl)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,Yl);case 273:var r=t.initializer;return!!r&&Yl(r);case 276:var n=t.expression;return!!n&&Yl(n)}return!1}function Zl(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!ba(t))&&($l(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&223!==t.body.kind&&Yl(t.body)}(t))}function $l(t){if(!t.typeParameters){if(e.some(t.parameters,(function(t){return!e.getEffectiveTypeAnnotationNode(t)})))return!0;if(202!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!e.parameterIsThisKeyword(r))return!0}}return!1}function e_(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||sg(t)||e.isObjectLiteralMethod(t))&&Zl(t)}function t_(t){if(524288&t.flags){var r=ds(t);if(r.constructSignatures.length||r.callSignatures.length){var n=Ai(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 Eu(e.map(t.types,t_));return t}function r_(e,t){return F_(e,t,$r)}function n_(e,t){return F_(e,t,$r)?-1:0}function i_(e,t){return F_(e,t,Yr)?-1:0}function a_(e,t){return F_(e,t,Qr)?-1:0}function o_(e,t){return F_(e,t,Qr)}function s_(e,t){return F_(e,t,Yr)}function c_(t,r){return 1048576&t.flags?e.every(t.types,(function(e){return c_(e,r)})):1048576&r.flags?e.some(r.types,(function(e){return c_(t,e)})):58982400&t.flags?c_(Ss(t)||Te,r):r===pt?!!(67633152&t.flags):r===ft?!!(524288&t.flags)&&Ap(t):Qa(t,Ga(r))}function u_(e,t){return F_(e,t,Zr)}function l_(e,t){return u_(e,t)||u_(t,e)}function __(e,t,r,n,i,a){return I_(e,t,Yr,r,n,i,a)}function d_(e,t,r,n,i,a){return p_(e,t,Yr,r,n,i,a,void 0)}function p_(e,t,r,n,i,a,o,s){return!!F_(e,t,r)||(!n||!g_(i,e,t,r,a,o,s))&&I_(e,t,r,n,a,o,s)}function f_(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,f_))}function g_(t,r,n,i,a,o,u){if(!t||f_(n))return!1;if(!I_(r,n,i,void 0)&&function(t,r,n,i,a,o,s){for(var c=Us(r,0),u=Us(r,1),l=0,_=[u,c];l<_.length;l++){var d=_[l];if(e.some(d,(function(e){var t=uc(e);return!(131073&t.flags)&&I_(t,n,i,void 0)}))){var p=s||{};__(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,u))return!0;switch(t.kind){case 276:case 200:return g_(t.expression,r,n,i,a,o,u);case 209:switch(t.operatorToken.kind){case 62:case 27:return g_(t.right,r,n,i,a,o,u)}break;case 193:return function(t,r,n,i,a,o){return!(131068&n.flags)&&v_(function(t){var r,n,i,a;return c(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=Fu(yi(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 164:case 163:case 161:case 282:return[3,2];case 281: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,u);case 192:return function(e,t,r,n,i,a){if(131068&r.flags)return!1;if(ad(t))return v_(x_(e,r),t,r,n,i,a);var o=e.contextualType;e.contextualType=r;try{var s=_g(e,1,!0);return e.contextualType=o,!!ad(s)&&v_(x_(e,r),s,r,n,i,a)}finally{e.contextualType=o}}(t,r,n,i,o,u);case 274:return function(t,r,n,i,a,o){var u,l=v_(function(t){var r,n,i;return c(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:vl(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 _=t.parent.parent,d=wg(Fg(t)),p=void 0===d?"children":e.unescapeLeadingUnderscores(d),f=vl(p),g=Wu(n,f),m=b_(_.children);if(!e.length(m))return l;var y=e.length(m)>1,v=Gp(g,od),h=Gp(g,(function(e){return!od(e)}));if(y){if(v!==ze){var b=du(Tg(_,0)),x=function(t,r){var n,i,a,o,s;return c(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=vl(i-n),(s=h_(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]}}))}(_,C);l=v_(x,b,v,i,a,o)||l}else if(!F_(Wu(r,f),g,i)){l=!0;var D=nn(_.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,p,Qi(g));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(D)}}else if(h!==ze){var S=h_(m[0],f,C);S&&(l=v_(function(){return c(this,(function(e){switch(e.label){case 0:return[4,S];case 1:return e.sent(),[2]}}))}(),r,n,i,a,o)||l)}else if(!F_(Wu(r,f),g,i)){l=!0;D=nn(_.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,p,Qi(g));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(D)}}return l;function C(){if(!u){var r=e.getTextOfNode(t.parent.tagName),i=wg(Fg(t)),a=void 0===i?"children":e.unescapeLeadingUnderscores(i),o=Wu(n,vl(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;u=s(s({},c),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,c,r,a,Qi(o))})}return u}}(t,r,n,i,o,u);case 202: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=Nm(r);if(!s)return!1;var c=Us(n,0);if(!e.length(c))return!1;var u=t.body,l=uc(s),_=bu(e.map(c,uc));if(!I_(l,_,i,void 0)){var d=u&&g_(u,l,_,i,void 0,a,o);if(d)return d;var p=o||{};if(I_(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))&&!da(l,"then")&&I_(wy(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,u)}return!1}function m_(e,t,r){var n=Hu(t,r);if(n)return n;if(1048576&t.flags){var i=O_(e,t);if(i)return Hu(i,r)}}function y_(e,t){e.contextualType=t;try{return gv(e,1,t)}finally{e.contextualType=void 0}}function v_(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=m_(r,n,d);if(f&&!(8388608&f.flags)){var g=Hu(r,d);if(g&&!I_(g,f,i,void 0))if(_&&g_(_,g,f,i,void 0,a,o))s=!0;else{var m=o||{},y=_?y_(_,g):g;if(I_(y,f,i,l,p,a,m)&&y!==g&&I_(g,f,i,l,p,a,m),m.errors){var v=m.errors[m.errors.length-1],h=Eo(d)?wo(d):void 0,b=void 0!==h?Js(n,h):void 0,x=!1;if(!b){var D=Zy(d,296)&&qs(n,1)||qs(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?Qi(d):e.unescapeLeadingUnderscores(h),Qi(n)))}}s=!0}}}return s}function h_(t,r,n){switch(t.kind){case 276: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 266:case 267:case 270:return{errorNode:t,innerExpression:t,nameType:r};default:return e.Debug.assertNever(t,"Found invalid jsx child")}}function b_(t){return e.filter(t,(function(t){return!e.isJsxText(t)||!t.containsOnlyTriviaWhiteSpaces}))}function x_(t,r){var n,i,a,o;return c(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?ad(r)&&!Js(r,""+i)?[3,3]:(a=t.elements[i],e.isOmittedExpression(a)?[3,3]:(o=vl(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 D_(e,t,r,n,i){return I_(e,t,Zr,r,n,i)}function S_(t,r,n,i,a,o,s,c){if(t===r)return-1;if(!(u=r).typeParameters&&(!u.thisParameter||pa(vy(u.thisParameter)))&&1===u.parameters.length&&B(u)&&(vy(u.parameters[0])===Ct||pa(vy(u.parameters[0])))&&pa(uc(u)))return-1;var u,l=Sy(r);if(!Ty(r)&&(8&n?Ty(t)||Sy(t)>l:Cy(t)>l))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Pm(t,r=yc(r),void 0,s));var _=Sy(t),d=Ey(t),p=Ey(r);if((d||p)&&Wl(d||p,c),d&&p&&_!==l)return 0;var f=r.declaration?r.declaration.kind:0,g=!(3&n)&&H&&161!==f&&160!==f&&162!==f,m=-1,y=sc(t);if(y&&y!==Je){var v=sc(r);if(v){if(!(D=!g&&s(y,v,!1)||s(v,y,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;m&=D}}for(var h=d||p?Math.min(_,l):Math.max(_,l),b=d||p?h-1:-1,x=0;x<h;x++){var D,S=x===b?Dy(t,x):by(t,x),C=x===b?Dy(r,x):by(r,x),T=3&n?void 0:Nm(Td(S)),k=3&n?void 0:Nm(Td(C));if((D=T&&k&&!cc(T)&&!cc(k)&&(98304&bd(S))===(98304&bd(C))?S_(k,T,8&n|(g?2:1),i,a,o,s,c):!(3&n)&&!g&&s(S,C,!1)||s(C,S,i))&&8&n&&x>=Cy(t)&&x<Cy(r)&&s(S,C,!1)&&(D=0),!D)return i&&a(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(hy(t,x)),e.unescapeLeadingUnderscores(hy(r,x))),0;m&=D}if(!(4&n)){var E=_c(r)?be:r.declaration&&sy(r.declaration)?co(mi(r.declaration.symbol)):uc(r);if(E===Je)return m;var N=_c(t)?be:t.declaration&&sy(t.declaration)?co(mi(t.declaration.symbol)):uc(t),A=cc(r);if(A){var F=cc(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,$i(t),$i(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,$i(t),$i(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,$i(t),$i(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,Gi(t)),0}else!(m&=1&n&&s(E,N,!1)||s(N,E,i))&&i&&o&&o(N,E)}return m}function C_(e,t){var r=mc(e),n=mc(t),i=uc(r),a=uc(n);return!(a!==Je&&!F_(a,i,Yr)&&!F_(i,a,Yr))&&0!==S_(r,n,!0?4:0,!1,void 0,void 0,i_,void 0)}function T_(t){return 524288&t.flags?!_s(t)&&((r=ds(t))!==nt&&0===r.properties.length&&0===r.callSignatures.length&&0===r.constructSignatures.length&&!r.stringIndexInfo&&!r.numberIndexInfo):!!(67108864&t.flags)||(1048576&t.flags?e.some(t.types,T_):!!(2097152&t.flags)&&e.every(t.types,T_));var r}function k_(t){return!!(16&e.getObjectFlags(t))&&T_(t)}function E_(t){return 524288&t.flags&&!_s(t)&&0===ms(t).length&&qs(t,0)&&!qs(t,1)||3145728&t.flags&&e.every(t.types,E_)||!1}function N_(t,r,n){if(t===r)return!0;var i=w(t)+","+w(r),a=en.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 en.set(i,6),!1;for(var o=Wa(r),s=0,c=ms(Wa(t));s<c.length;s++){var u=c[s];if(8&u.flags){var l=Js(o,u.escapedName);if(!l||!(8&l.flags))return n?(n(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(u),Qi(yo(r),void 0,64)),en.set(i,6)):en.set(i,2),!1}}return en.set(i,1),!0}function A_(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(132&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&&N_(e.symbol,t.symbol,n))return!0;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&N_(e.symbol,t.symbol,n))return!0;if(2944&i&&2944&a&&e.value===t.value&&N_(vi(e.symbol),vi(t.symbol),n))return!0}if(32768&i&&(!W||49152&a))return!0;if(65536&i&&(!W||65536&a))return!0;if(524288&i&&67108864&a)return!0;if(r===Yr||r===Zr){if(1&i)return!0;if(264&i&&!(1024&i)&&(32&a||256&a&&1024&a))return!0}return!1}function F_(e,t,r){if(yl(e)&&(e=e.regularType),yl(t)&&(t=t.regularType),e===t)return!0;if(r!==$r){if(r===Zr&&!(131072&t.flags)&&A_(t,e,r)||A_(e,t,r))return!0}else if(!(3145728&e.flags)&&!(3145728&t.flags)&&e.flags!==t.flags&&!(66584576&e.flags))return!1;if(524288&e.flags&&524288&t.flags){var n=r.get(V_(e,t,0,r));if(void 0!==n)return!!(1&n)}return!!(66846720&e.flags||66846720&t.flags)&&I_(e,t,r,void 0)}function P_(t,r){return 4096&e.getObjectFlags(t)&&!Dg(r.escapedName)}function w_(t,r){for(;;){var n=yl(t)?t.regularType:4&e.getObjectFlags(t)&&t.node?Ac(t.target,wc(t)):3145728&t.flags?Ms(t):33554432&t.flags?r?t.baseType:t.substitute:25165824&t.flags?Uu(t,r):t;if(n===t)break;t=n}return t}function I_(t,r,n,i,a,s,c){var l,d,p,f,g,m,y=0,v=0,h=0,b=!1,x=0,D=[],S=!1;e.Debug.assert(n!==$r||!i,"no error reporting in identity checking");var C=B(t,r,!!i,a);if(D.length&&O(),b){var T=nn(i||_,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Qi(t),Qi(r));c&&(c.errors||(c.errors=[])).push(T)}else if(l){if(s){var k=s();k&&(e.concatenateDiagnosticMessageChains(k,l),l=k)}var N=void 0;if(a&&i&&!C&&t.symbol){var A=yn(t.symbol);if(A.originatingImport&&!e.isImportCall(A.originatingImport))if(I_(Wa(A.target),r,n,void 0)){var F=e.createDiagnosticForNode(A.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);N=e.append(N,F)}}T=e.createDiagnosticForNodeFromMessageChain(i,l,N);d&&e.addRelatedInfo.apply(void 0,o([T],d)),c&&(c.errors||(c.errors=[])).push(T),c&&c.skipLogging||qr.add(T)}return i&&c&&c.skipLogging&&0===C&&e.Debug.assert(!!c.errors,"missed opportunity to interact with error."),0!==C;function P(e){l=e.errorInfo,m=e.lastSkippedInfo,D=e.incompatibleStack,x=e.overrideNextErrorInfo,d=e.relatedInfo}function w(){return{errorInfo:l,lastSkippedInfo:m,incompatibleStack:D.slice(),overrideNextErrorInfo:x,relatedInfo:d?d.slice():void 0}}function I(e,t,r,n,i){x++,m=void 0,D.push([e,t,r,n,i])}function O(){var t=D;D=[];var r=m;if(m=void 0,1===t.length)return M.apply(void 0,t[0]),void(r&&L.apply(void 0,o([void 0],r)));for(var n="",i=[];t.length;){var a=t.pop(),s=a[0],c=a.slice(1);switch(s.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===n.indexOf("new ")&&(n="("+n+")");var u=""+c[0];n=0===n.length?""+u:e.isIdentifierText(u,U.target)?n+"."+u:"["===u[0]&&"]"===u[u.length-1]?""+n+u:n+"["+u+"]";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 l=s;s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?l=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(l=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),i.unshift([l,c[0],c[1]])}else{n=""+(s.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"")+n+"("+(s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...")+")"}break;default:return e.Debug.fail("Unhandled Diagnostic: "+s.code)}}n?M(")"===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 _=0,d=i;_<d.length;_++){var p=d[_],f=(s=p[0],c=p.slice(1),s.elidedInCompatabilityPyramid);s.elidedInCompatabilityPyramid=!1,M.apply(void 0,o([s],c)),s.elidedInCompatabilityPyramid=f}r&&L.apply(void 0,o([void 0],r))}function M(t,r,n,a,o){e.Debug.assert(!!i),D.length&&O(),t.elidedInCompatabilityPyramid||(l=e.chainDiagnosticMessages(l,t,r,n,a,o))}function L(t,r,i){D.length&&O();var a=Xi(r,i),o=a[0],s=a[1];if(262144&i.flags){var c=Ss(i);c&&s_(r,c)?M(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,o,s,Qi(c)):M(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,s,o)}t||(t=n===Zr?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),M(t,o,s)}function R(t,r,n){return gd(t)?t.target.readonly&&td(r)?(n&&M(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Qi(t),Qi(r)),!1):gd(r)||$_(r):ed(t)&&td(r)?(n&&M(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Qi(t),Qi(r)),!1):!gd(r)||$_(t)}function B(t,r,a,o,s){if(void 0===a&&(a=!1),void 0===s&&(s=0),524288&t.flags&&131068&r.flags)return A_(t,r,n,a?M:void 0)?-1:(D(t,r,0,!!(4096&e.getObjectFlags(t))),0);var c=w_(t,!1),u=w_(r,!0);if(c===u)return-1;if(n===$r)return function(e,t){var r=e.flags&t.flags;if(!(66584576&r))return 0;if(3145728&r){var n=j(e,t);return n&&(n&=j(t,e)),n}return K(e,t,!1,0)}(c,u);if(262144&c.flags&&ys(c)===u)return-1;if(1048576&u.flags&&524288&c.flags&&u.types.length<=3&&Yy(u,98304)){var _=Yp(u,-98305);if(!(1179648&_.flags)){if(c===_)return-1;u=_}}if(n===Zr&&!(131072&u.flags)&&A_(u,c,n)||A_(c,u,n,a?M:void 0))return-1;var d=!!(4096&e.getObjectFlags(c)),p=!(2&s)&&lp(c)&&32768&e.getObjectFlags(c);if(p&&function(t,r,a){if(!Jg(r)||!X&&16384&e.getObjectFlags(r))return!1;var o=!!(4096&e.getObjectFlags(t));if((n===Yr||n===Zr)&&(qp(pt,r)||!o&&T_(r)))return!1;var s,c=r;1048576&r.flags&&(c=bD(t,r,B)||function(e){if(Yy(e,67108864)){var t=Gp(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)&&!P_(t,r)){if(!jg(c,r.escapedName,o)){if(a){var n=Gp(c,Jg);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),M(e.Diagnostics.Property_0_does_not_exist_on_type_1,Hi(r),Qi(n));else{var u=t.symbol&&e.firstOrUndefined(t.symbol.declarations),l=void 0;if(r.valueDeclaration&&e.findAncestor(r.valueDeclaration,(function(e){return e===u}))&&e.getSourceFileOfNode(u)===e.getSourceFileOfNode(i)){var _=r.valueDeclaration;e.Debug.assertNode(_,e.isObjectLiteralElementLike),i=_;var d=_.name;e.isIdentifier(d)&&(l=lm(d,n))}void 0!==l?M(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Hi(r),Qi(n),l):M(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Hi(r),Qi(n))}}return{value:!0}}if(s&&!B(Wa(r),function(t,r){return bu(e.reduceLeft(t,(function(t,n){var i=3145728&(n=Fs(n)).flags?Os(n,r):fs(n,r),a=i&&Wa(i)||mg(r)&&Ws(n,1)||Ws(n,0)||ke;return e.append(t,a)}),void 0)||e.emptyArray)}(s,r.escapedName),a))return a&&I(e.Diagnostics.Types_of_property_0_are_incompatible,Hi(r)),{value:!0}}},l=0,_=ms(t);l<_.length;l++){var d=_[l],p=u(d);if("object"===typeof p)return p.value}return!1}(c,u,a))return a&&L(o,c,u),0;var f=n!==Zr&&!(2&s)&&2752508&c.flags&&c!==pt&&2621440&u.flags&&L_(u)&&(ms(c).length>0||lx(c));if(f&&!function(e,t,r){for(var n=0,i=ms(e);n<i.length;n++){var a=i[n];if(jg(t,a.escapedName,r))return!0}return!1}(c,u,d)){if(a){var g=Us(c,0),y=Us(c,1);g.length>0&&B(uc(g[0]),u,!1)||y.length>0&&B(uc(y[0]),u,!1)?M(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Qi(c),Qi(u)):M(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Qi(c),Qi(u))}return 0}var v=0,h=w();if(1048576&c.flags?v=n===Zr?z(c,u,a&&!(131068&c.flags),s):function(e,t,r,n){for(var i=-1,a=e.types,o=0;o<a.length;o++){var s=a[o];if(1048576&t.flags&&t.types.length===a.length){var c=B(s,t.types[o],!1,void 0,n);if(c){i&=c;continue}}var u=B(s,t,r,void 0,n);if(!u)return 0;i&=u}return i}(c,u,a&&!(131068&c.flags),s):(1048576&u.flags?v=J(Id(c),u,a&&!(131068&c.flags)&&!(131068&u.flags)):2097152&u.flags?v=function(e,t,r,n){for(var i=-1,a=t.types,o=0,s=a;o<s.length;o++){var c=s[o],u=B(e,c,r,void 0,n);if(!u)return 0;i&=u}return i}(Id(c),u,a,2):2097152&c.flags&&(v=z(c,u,!1,1)),!v&&(66846720&c.flags||66846720&u.flags)&&(v=K(c,u,a,s))&&P(h)),!v&&2359296&c.flags){var b=function(t,r){for(var n,i=!1,a=0,o=t;a<o.length;a++){if(63176704&(l=o[a]).flags){for(var s=ys(l);s&&21233664&s.flags;)s=ys(s);s&&(n=e.append(n,s),r&&(n=e.append(n,l)))}else 67238908&l.flags&&(i=!0)}if(n&&(r||i)){if(i)for(var c=0,u=t;c<u.length;c++){var l;67238908&(l=u[c]).flags&&(n=e.append(n,l))}return Eu(n)}}(2097152&c.flags?c.types:[c],!!(1048576&u.flags));b&&(2097152&c.flags||1048576&u.flags)&&Hp(b,(function(e){return e!==c}))&&(v=B(b,u,!1,void 0,s))&&P(h)}return v&&!S&&(2097152&u.flags&&(p||f)||ol(u)&&!$_(u)&&!gd(u)&&2097152&c.flags&&3670016&Fs(c).flags&&!e.some(c.types,(function(t){return!!(2097152&e.getObjectFlags(t))})))&&(S=!0,v&=K(c,u,a,4),S=!1),D(c,u,v,d),v;function D(n,s,c,u){if(!c&&a){n=t.aliasSymbol?t:n,s=r.aliasSymbol?r:s;var _=x>0;if(_&&x--,524288&n.flags&&524288&s.flags){var d=l;R(n,s,a),l!==d&&(_=!!l)}if(524288&n.flags&&131068&s.flags)!function(t,r){var n=Yi(t.symbol)?Qi(t,t.symbol.valueDeclaration):Qi(t),i=Yi(r.symbol)?Qi(r,r.symbol.valueDeclaration):Qi(r);(ht===t&&Pe===r||bt===t&&we===r||xt===t&&Be===r||eu(!1)===t&&je===r)&&M(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&&pt===n)M(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=Ng(E.IntrinsicAttributes,i),g=Ng(E.IntrinsicClassAttributes,i);if(f!==Se&&g!==Se&&(e.contains(p,f)||e.contains(p,g)))return c}else l=js(l,r);if(!o&&_)return m=[n,s],c;L(o,n,s)}}}function j(e,t){for(var r=-1,n=0,i=e.types;n<i.length;n++){var a=J(i[n],t,!1);if(!a)return 0;r&=a}return r}function J(e,t,r){var n=t.types;if(1048576&t.flags&&gu(n,e))return-1;for(var i=0,a=n;i<a.length;i++){var o=B(e,a[i],!1);if(o)return o}r&&B(e,O_(e,t,B)||n[n.length-1],!0);return 0}function z(e,t,r,n){var i=e.types;if(1048576&e.flags&&gu(i,t))return-1;for(var a=i.length,o=0;o<a;o++){var s=B(i[o],t,r&&o===a-1,void 0,n);if(s)return s}return 0}function K(t,r,i,a){if(b)return 0;var o=V_(t,r,a|(S?8:0),n),s=n.get(o);if(void 0!==s&&(!(i&&2&s)||4&s)){if(tr){var c=24&s;8&c&&Wl(t,Al(V)),16&c&&Wl(t,Al(q))}return 1&s?-1:0}if(p){for(var u=0;u<y;u++)if(o===p[u])return 1;if(100===v)return b=!0,0}else p=[],f=[],g=[];var _=y;p[y]=o,y++,f[v]=t,g[v]=r,v++;var d,m=h;1&h||!H_(t,f,v)||(h|=1),2&h||!H_(r,g,v)||(h|=2);var x=0;tr&&(d=tr,tr=function(e){return x|=e?16:8,d(e)});var D=3!==h?function(t,r,i,a){if(4&a)return Y(t,r,i,void 0,0);var o,s,c=t.flags&r.flags;if(n===$r&&!(524288&c)){if(4194304&c)return B(t.type,r.type,!1);var u=0;return 8388608&c&&(u=B(t.objectType,r.objectType,!1))&&(u&=B(t.indexType,r.indexType,!1))?u:16777216&c&&t.root.isDistributive===r.root.isDistributive&&(u=B(t.checkType,r.checkType,!1))&&(u&=B(t.extendsType,r.extendsType,!1))&&(u&=B(Zu(t),Zu(r),!1))&&(u&=B($u(t),$u(r),!1))?u:33554432&c?B(t.substitute,r.substitute,!1):0}var _=!1,d=w();if(17301504&t.flags&&t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol&&!t.aliasTypeArgumentsContainsMarker&&!r.aliasTypeArgumentsContainsMarker){if((R=B_(t.aliasSymbol))===e.emptyArray)return 1;if(void 0!==(j=H(t.aliasTypeArguments,r.aliasTypeArguments,R,a)))return j}if(262144&r.flags){if(32&e.getObjectFlags(t)&&B(Iu(r),ns(t))&&!(4&cs(t))){var p=is(t),f=Wu(r,rs(t));if(o=B(p,f,i))return o}}else if(4194304&r.flags){if(4194304&t.flags&&(o=B(r.type,t.type,!1)))return o;if((E=hs(r.type))&&-1===B(t,Iu(E,r.stringsOnly),i))return-1}else if(8388608&r.flags){if(n!==$r){var g=r.objectType,m=r.indexType,y=Ss(g)||g,v=Ss(m)||m;if(!ju(y)&&!Ju(v))if((E=Hu(y,v,void 0,2|(y!==g?1:0)))&&(o=B(t,E,i)))return o}}else if(_s(r)){var h=is(r),b=cs(r);if(!(8&b)){if(8388608&h.flags&&h.objectType===t&&h.indexType===rs(r))return-1;if(!_s(t)){var x=ns(r),D=Iu(t,void 0,!0),S=4&b,C=S?Go(x,D):void 0;if(S?!(131072&C.flags):B(x,D)){var T=rs(r),k=C?Eu([C,T]):T;f=Wu(t,k),p=is(r);if(o=B(f,p,i))return o}s=l,P(d)}}}if(8650752&t.flags){var E;if(8388608&t.flags&&8388608&r.flags){if((o=B(t.objectType,r.objectType,i))&&(o&=B(t.indexType,r.indexType,i)),o)return P(d),o}else if(!(E=ys(t))||262144&t.flags&&1&E.flags){if(o=B(Ze,Yp(r,-67108865)))return P(d),o}else{if(o=B(E,r,!1,void 0,a))return P(d),o;if(o=B(Ro(E,t),r,i,void 0,a))return P(d),o}}else if(4194304&t.flags){if(o=B(Ge,r,i))return P(d),o}else if(16777216&t.flags){if(16777216&r.flags){var N=t.root.inferTypeParameters,A=t.extendsType,F=void 0;if(N){var I=Vd(N,void 0,0,B);sp(I.inferences,r.extendsType,A,384),A=Wl(A,I.mapper),F=I.mapper}if(r_(A,r.extendsType)&&(B(t.checkType,r.checkType)||B(r.checkType,t.checkType))&&((o=B(Wl(Zu(t),F),Zu(r),i))&&(o&=B($u(t),$u(r),i)),o))return P(d),o}else{var O=xs(t);if(O&&(o=B(O,r,i)))return P(d),o}var M=bs(t);if(M&&(o=B(M,r,i)))return P(d),o}else{if(n!==Qr&&n!==Xr&&(K=r,32&e.getObjectFlags(K)&&4&cs(K))&&T_(t))return-1;if(_s(r))return _s(t)&&(o=function(e,t,r){if(n===Zr||(n===$r?cs(e)===cs(t):ls(e)<=ls(t))){var i,a=ns(t),o=Wl(ns(e),Al(ls(e)<0?V:q));if(i=B(a,o,r)){var s=kl([rs(e)],[rs(t)]);return i&B(Wl(is(e),s),is(t),r)}}return 0}(t,r,i))?(P(d),o):0;var L=!!(131068&t.flags);if(n!==$r)t=Fs(t);else if(_s(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 R,j;if((R=J_(t.target))===e.emptyArray)return 1;if(void 0!==(j=H(wc(t),wc(r),R,a)))return j}else{if(ed(r)?$_(t)||gd(t):$_(r)&&gd(t)&&!t.target.readonly)return n!==$r?B(Ws(t,1)||be,Ws(r,1)||be,i):0;if((n===Qr||n===Xr)&&T_(r)&&32768&e.getObjectFlags(r)&&!T_(t))return 0}if(2621440&t.flags&&524288&r.flags){var J=i&&l===d.errorInfo&&!L;if((o=Y(t,r,J,void 0,a))&&(o&=Z(t,r,0,J))&&(o&=Z(t,r,1,J))&&(o&=ne(t,r,0,L,J,a))&&(o&=ne(t,r,1,L,J,a)),_&&o)l=s||l||d.errorInfo;else if(o)return o}if(2621440&t.flags&&1048576&r.flags){var z=Yp(r,36175872);if(1048576&z.flags){var U=function(t,r){var i=Tp(ms(t),r);if(!i)return 0;for(var a=1,o=0,s=i;o<s.length;o++){var c=s[o];if((a*=Qp(Wa(c)))>25)return 0}for(var u=new Array(i.length),l=e.createUnderscoreEscapedMap(),_=0;_<i.length;_++){var d=Wa(c=i[_]);u[_]=1048576&d.flags?d.types:[d],l.set(c.escapedName,!0)}for(var p=e.cartesianProduct(u),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=Js(u,o.escapedName);return s?o===s?"continue":G(t,r,o,s,(function(t){return a[e]}),!1,0,W||n===Zr)?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=y[m],h=g(v);if("object"===typeof h)return h.value}for(var b=-1,x=0,D=f;x<D.length;x++){var S=D[x];if((b&=Y(t,S,!1,l,0))&&(b&=Z(t,S,0,!1))&&(b&=Z(t,S,1,!1))&&(b&=ne(t,S,0,!1,!1,0))&&(b&=ne(t,S,1,!1,!1,0)),!b)return b}return b}(t,z);if(U)return U}}}var K;return 0;function H(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===$r)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===$r?B(d,p,!1):n_(d,p):1===_?f=B(d,p,a,void 0,o):2===_?f=B(p,d,a,void 0,o):3===_?(f=B(p,d,!1))||(f=B(d,p,a,void 0,o)):(f=B(d,p,a,void 0,o))&&(f&=B(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 P(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,P(d)}}}(t,r,i,a):1;if(tr&&(tr=d),h=m,v--,D){if(-1===D||0===v){for(u=_;u<y;u++)n.set(p[u],1|x);y=_}}else n.set(o,2|(i?4:0)|x),y=_;return D}function V(e){return!tr||e!==st&&e!==ct&&e!==rr||tr(!1),e}function q(e){return!tr||e!==st&&e!==ct&&e!==rr||tr(!0),e}function H(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 G(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?M(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Hi(i)):M(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Hi(i),Qi(8&u?t:r),Qi(8&u?r:t))),0}else if(16&l){if(!function(t,r){return!q_(r,(function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&(n=t,i=W_(r),!q_(n,(function(e){var t=W_(e);return!!t&&Qa(t,i)})));var n,i}))}(n,i))return o&&M(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Hi(i),Qi(W_(n)||t),Qi(W_(i)||r)),0}else if(16&u)return o&&M(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Hi(i),Qi(t),Qi(r)),0;var _=function(t,r,n,i,a){var o=W&&!!(48&e.getCheckFlags(r)),s=n(t);if(65536&e.getCheckFlags(r)&&!yn(r).type){var c=yn(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=B(s,d[_],!1,void 0,u?0:2);if(u){if(p)return p}else{if(!p)return B(s,Da(Wa(r),o),i);l&=p}}return u&&!l&&o&&(l=B(s,ke)),u&&!l&&i?B(s,Da(Wa(r),o),i):l}return B(s,Da(Wa(r),o),i,void 0,a)}(n,i,a,o,s);return _?c||!(16777216&n.flags)||16777216&i.flags?_:(o&&M(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Hi(i),Qi(t),Qi(r)),0):(o&&I(e.Diagnostics.Types_of_property_0_are_incompatible,Hi(i)),0)}function Q(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,_=e.getSymbolNameForPrivateIdentifier(t.symbol,c);if(_&&Js(t,_)){var p=e.getDeclarationName(t.symbol.valueDeclaration),f=e.getDeclarationName(r.symbol.valueDeclaration);return void M(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,En(c),En(""===p.escapedText?u:p),En(""===f.escapedText?u:f))}}var g,m=e.arrayFrom(tp(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===m.length){var y=Hi(n);M.apply(void 0,o([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,y],Xi(t,r))),e.length(n.declarations)&&(g=e.createDiagnosticForNode(n.declarations[0],e.Diagnostics._0_is_declared_here,y),e.Debug.assert(!!l),d?d.push(g):d=[g]),s&&l&&x++}else R(t,r,!1)&&(m.length>5?M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Qi(t),Qi(r),e.map(m.slice(0,4),(function(e){return Hi(e)})).join(", "),m.length-4):M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Qi(t),Qi(r),e.map(m,(function(e){return Hi(e)})).join(", ")),s&&l&&x++)}function Y(t,r,i,a,o){if(n===$r)return function(e,t,r){if(!(524288&e.flags&&524288&t.flags))return 0;var n=H(ps(e),r),i=H(ps(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=fs(t,c.escapedName);if(!u)return 0;var l=X_(c,u,B);if(!l)return 0;a&=l}return a}(t,r,a);var s=(n===Qr||n===Xr)&&!lp(t)&&!id(t)&&!gd(t),c=rp(t,r,s,!1);if(c)return i&&Q(t,r,c,s),0;if(lp(r))for(var u=0,l=H(ms(t),a);u<l.length;u++){if(!fs(r,(S=l[u]).escapedName)){var _=Wa(S);if(_!==ke&&_!==Ee&&_!==Ne)return i&&M(e.Diagnostics.Property_0_does_not_exist_on_type_1,Hi(S),Qi(r)),0}}var d=-1;if(gd(r)){var p=md(r);if(p){if(!gd(t))return 0;var f=md(t);if(f&&!B(f,p,i))return i&&M(e.Diagnostics.Rest_signatures_are_incompatible),0;for(var g=Ic(r)-1,m=Ic(t)-(f?1:0),y=wc(t),v=g;v<m;v++){if(!(k=B(y[v],p,i)))return i&&M(e.Diagnostics.Property_0_is_incompatible_with_rest_element_type,""+v),0;d&=k}}}for(var h=ms(r),b=gd(t)&&gd(r),x=0,D=H(h,a);x<D.length;x++){var S,C=D[x],T=C.escapedName;if(!(4194304&C.flags)&&(!b||mg(T)||"length"===T))if((S=Js(t,T))&&S!==C){var k;if(!(k=G(t,r,S,C,Wa,i,o,n===Zr)))return 0;d&=k}}return d}function Z(t,r,i,a){if(n===$r)return function(e,t,r){var n=Us(e,r),i=Us(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=Y_(n[o],i[o],!1,!1,!1,B);if(!s)return 0;a&=s}return a}(t,r,i);if(r===nt||t===nt)return-1;var o=t.symbol&&sy(t.symbol.valueDeclaration),s=r.symbol&&sy(r.symbol.valueDeclaration),c=Us(t,o&&1===i?0:i),u=Us(r,s&&1===i?0:i);if(1===i&&c.length&&u.length){if(e.isAbstractConstructorType(t)&&!e.isAbstractConstructorType(r))return a&&M(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.getSelectedModifierFlags(t.declaration,24),a=e.getSelectedModifierFlags(r.declaration,24);if(8===a)return!0;if(16===a&&8!==i)return!0;if(16!==a&&!i)return!0;n&&M(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,ea(i),ea(a));return!1}(c[0],u[0],a))return 0}var l=-1,_=w(),d=1===i?ee:$;if(64&e.getObjectFlags(t)&&64&e.getObjectFlags(r)&&t.symbol===r.symbol)for(var p=0;p<u.length;p++){if(!(x=te(c[p],u[p],!0,a,d(c[p],u[p]))))return 0;l&=x}else if(1===c.length&&1===u.length){var f=n===Zr||!!U.noStrictGenericChecks;l=te(c[0],u[0],f,a,d(c[0],u[0]))}else e:for(var g=0,m=u;g<m.length;g++){for(var y=m[g],v=a,h=0,b=c;h<b.length;h++){var x,D=b[h];if(x=te(D,y,!0,v,d(D,y))){l&=x,P(_);continue e}v=!1}return v&&M(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Qi(t),Gi(y,void 0,void 0,i)),0}return l}function $(t,r){return 0===t.parameters.length&&0===r.parameters.length?function(t,r){return I(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Qi(t),Qi(r))}:function(t,r){return I(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,Qi(t),Qi(r))}}function ee(t,r){return 0===t.parameters.length&&0===r.parameters.length?function(t,r){return I(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Qi(t),Qi(r))}:function(t,r){return I(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,Qi(t),Qi(r))}}function te(e,t,r,i,a){return S_(r?mc(e):e,r?mc(t):t,n===Xr?8:0,i,M,a,B,Al(q))}function re(t,r,n){var i=B(t,r,n);return!i&&n&&M(e.Diagnostics.Index_signatures_are_incompatible),i}function ne(t,r,i,a,o,s){if(n===$r)return function(e,t,r){var n=qs(t,r),i=qs(e,r);if(!i&&!n)return-1;if(i&&n&&i.isReadonly===n.isReadonly)return B(i.type,n.type);return 0}(t,r,i);var c=Ws(r,i);if(!c||1&c.flags&&!a)return-1;if(_s(t))return 0===i?B(is(t),c,o):0;var u=Ws(t,i)||1===i&&Ws(t,0);if(u)return re(u,c,o);if(!(1&s)&&Pd(t)){var l=function(t,r,n,i){for(var a=-1,o=0,s=2097152&t.flags?gs(t):ps(t);o<s.length;o++){var c=s[o];if(!P_(t,c)){var u=yn(c).nameType;if(!(u&&8192&u.flags)&&(0===n||mg(c.escapedName))){var l=B(Wa(c),r,i);if(!l)return i&&M(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Hi(c)),0;a&=l}}}return a}(t,c,i,o);if(l&&0===i){var _=Ws(t,1);_&&(l&=re(_,c,o))}return l}return o&&M(e.Diagnostics.Index_signature_is_missing_in_type_0,Qi(t)),0}}function O_(t,r,n){return void 0===n&&(n=i_),bD(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)&&Wp(r,nd))return e.find(r.types,(function(e){return!nd(e)}))}(t,r)||function(t,r){var n=0;if(Us(t,n).length>0||Us(t,n=1).length>0)return e.find(r.types,(function(e){return Us(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=Eu([Iu(t),Iu(s)]);if(4194304&c.flags)n=s,i=1/0;else if(1048576&c.flags){var u=e.length(e.filter(c.types,cd));u>=i&&(n=s,i=u)}else cd(c)&&1>=i&&(n=s,i=1)}return n}(t,r)}function M_(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=Is(t,_);if(!(a&&d&&16&e.getCheckFlags(d)))for(var p=0,f=0,g=t.types;f<g.length;f++){var m=da(g[f],_);m&&n(l(),m)?o[p]=void 0===o[p]||o[p]:o[p]=!1,p++}}var y=o.indexOf(!0);return-1===y||-1!==o.indexOf(!0,y+1)?i:t.types[y]}function L_(t){if(524288&t.flags){var r=ds(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,L_)}function R_(t,r,n){var i=Ac(t,e.map(t.typeParameters,(function(e){return e===r?n:e})));return i.objectFlags|=8192,i}function B_(e){var t=yn(e);return j_(t.typeParameters,t,(function(r,n,i){var a=Mc(e,Cl(t.typeParameters,Nl(n,i)));return a.aliasTypeArgumentsContainsMarker=!0,a}))}function j_(t,r,n){void 0===t&&(t=e.emptyArray);var i=r.variances;if(!i){r.variances=e.emptyArray,i=[];for(var a=function(e){var t=!1,a=!1,o=tr;tr=function(e){return e?a=!0:t=!0};var s=n(r,e,st),c=n(r,e,ct),u=(s_(c,s)?1:0)|(s_(s,c)?2:0);3===u&&s_(n(r,e,rr),s)&&(u=4),tr=o,(t||a)&&(t&&(u|=8),a&&(u|=16)),i.push(u)},o=0,s=t;o<s.length;o++){a(s[o])}r.variances=i}return i}function J_(e){return e===yt||e===vt||8&e.objectFlags?z:j_(e.typeParameters,e,R_)}function z_(e){return 262144&e.flags&&!vs(e)}function U_(t){return function(t){return!!(4&e.getObjectFlags(t))&&!t.node}(t)&&e.some(wc(t),(function(e){return z_(e)||U_(e)}))}function K_(e,t,r){void 0===r&&(r=0);for(var n=""+e.target.id,i=0,a=wc(e);i<a.length;i++){var o=a[i];if(z_(o)){var s=t.indexOf(o);s<0&&(s=t.length,t.push(o)),n+="="+s}else r<4&&U_(o)?n+="<"+K_(o,t,r+1)+">":n+="-"+o.id}return n}function V_(e,t,r,n){if(n===$r&&e.id>t.id){var i=e;e=t,t=i}var a=r?":"+r:"";if(U_(e)&&U_(t)){var o=[];return K_(e,o)+","+K_(t,o)+a}return e.id+","+t.id+a}function q_(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n<i.length;n++){var a=Js(i[n],t.escapedName),o=a&&q_(a,r);if(o)return o}}function W_(e){return e.parent&&32&e.parent.flags?yo(vi(e)):void 0}function H_(e,t,r){if(r>=5&&524288&e.flags&&!_p(e)){var n=e.symbol;if(n)for(var i=0,a=0;a<r;a++){if(524288&(s=t[a]).flags&&s.symbol===n&&++i>=5)return!0}}if(r>=5&&8388608&e.flags){var o=G_(e);for(i=0,a=0;a<r;a++){var s;if(G_(s=t[a])===o&&++i>=5)return!0}}return!1}function G_(e){for(var t=e;8388608&t.flags;)t=t.objectType;return t}function Q_(e,t){return 0!==X_(e,t,n_)}function X_(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(Cb(t)!==Cb(r))return 0}else if((16777216&t.flags)!==(16777216&r.flags))return 0;return Wy(t)!==Wy(r)?0:n(Wa(t),Wa(r))}function Y_(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=Sy(e),i=Sy(t),a=Cy(e),o=Cy(t),s=Ty(e),c=Ty(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=kl(t.typeParameters,r.typeParameters),c=0;c<r.typeParameters.length;c++){if(!((g=t.typeParameters[c])===(p=r.typeParameters[c])||o(Wl(Tc(g),s)||Te,Tc(p)||Te)&&o(Wl(Ns(g),s)||Te,Ns(p)||Te)))return 0}t=Rl(t,s,!0)}var u=-1;if(!i){var l=sc(t);if(l){var _=sc(r);if(_){if(!(f=o(l,_)))return 0;u&=f}}}var d=Sy(r);for(c=0;c<d;c++){var p,f,g=by(t,c);if(!(f=o(p=by(r,c),g)))return 0;u&=f}if(!a){var m=cc(t),y=cc(r);u&=m||y?function(e,t,r){return e&&t&&xu(e,t)?e.type===t.type?-1:e.type&&t.type?r(e.type,t.type):0:0}(m,y,o):o(uc(t),uc(r))}return u}function Z_(t){return function(e){for(var t,r=0,n=e;r<n.length;r++){var i=n[r],a=ld(i);if(t||(t=a),a===i||a!==t)return!1}return!0}(t)?bu(t):e.reduceLeft(t,(function(e,t){return o_(e,t)?t:e}))}function $_(t){return!!(4&e.getObjectFlags(t))&&(t.target===yt||t.target===vt)}function ed(t){return!!(4&e.getObjectFlags(t))&&t.target===vt}function td(e){return $_(e)&&!ed(e)||gd(e)&&!e.target.readonly}function rd(e){return $_(e)?wc(e)[0]:void 0}function nd(e){return $_(e)||!(98304&e.flags)&&s_(e,kt)}function id(e){var t=$_(e)?wc(e)[0]:void 0;return t===Ee||t===Ve}function ad(e){return gd(e)||!!Js(e,"0")}function od(e){return nd(e)||ad(e)}function sd(e){return!(240512&e.flags)}function cd(e){return!!(109440&e.flags)}function ud(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,cd):cd(t))}function ld(t){return 1024&t.flags?po(t):128&t.flags?Pe:256&t.flags?we:2048&t.flags?Ie:512&t.flags?Be:1048576&t.flags?bu(e.sameMap(t.types,ld)):t}function _d(t){return 1024&t.flags&&yl(t)?po(t):128&t.flags&&yl(t)?Pe:256&t.flags&&yl(t)?we:2048&t.flags&&yl(t)?Ie:512&t.flags&&yl(t)?Be:1048576&t.flags?bu(e.sameMap(t.types,_d)):t}function dd(t){return 8192&t.flags?je:1048576&t.flags?bu(e.sameMap(t.types,dd)):t}function pd(e,t){return pv(e,t)||(e=dd(_d(e))),e}function fd(e,t,r,n){e&&cd(e)&&(e=pd(e,t?_b(r,t,n):void 0));return e}function gd(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function md(e){return e.target.hasRestElement?wc(e)[e.target.typeParameters.length-1]:void 0}function yd(e){return Ic(e)-(e.target.hasRestElement?1:0)}function vd(e){return"0"===e.value.base10Value}function hd(e){for(var t=0,r=0,n=e;r<n.length;r++){t|=bd(n[r])}return t}function bd(e){return 1048576&e.flags?hd(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?vd(e)?2048:0:512&e.flags?e===Oe||e===Me?512:0:117724&e.flags}function xd(e){return 117632&bd(e)?Gp(e,(function(e){return!(117632&bd(e))})):e}function Dd(e){return 4&e.flags?Sr:8&e.flags?Cr:64&e.flags?Tr:e===Me||e===Oe||114688&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&vd(e)?e:ze}function Sd(e,t){var r=t&~e.flags&98304;return 0===r?e:bu(32768===r?[e,ke]:65536===r?[e,Ae]:[e,ke,Ae])}function Cd(t){return e.Debug.assert(W),32768&t.flags?t:bu([t,ke])}function Td(e){return W?function(e){return Et||(Et=Yc("NonNullable",524288,void 0)||ve),Et!==ve?Mc(Et,[e]):Pp(e,2097152)}(e):e}function kd(e){return W?bu([e,Ne]):e}function Ed(e){return e!==Ne}function Nd(e){return W?Gp(e,Ed):e}function Ad(t,r,n){return n?e.isOutermostOptionalChain(r)?Cd(t):kd(t):t}function Fd(t,r){return e.isExpressionOfOptionalChainRoot(r)?Td(t):e.isOptionalChain(r)?Nd(t):t}function Pd(t){return 2097152&t.flags?e.every(t.types,Pd):!(!t.symbol||0===(7040&t.symbol.flags)||lx(t))||!!(2048&e.getObjectFlags(t)&&Pd(t.source))}function wd(t,r){var n=cn(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=yn(t).nameType;return i&&(n.nameType=i),n}function Id(t){if(!(lp(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=ps(t);i<a.length;i++){var o=a[i],s=Wa(o),c=r(s);n.set(o.escapedName,c===s?o:wd(o,c))}return n}(t,Id),a=Oi(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 Od(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function Md(t){if(!t.resolvedProperties){for(var r=e.createMap(),n=0,i=function e(t){if(!t.siblings){for(var r=[],n=0,i=e(t.parent);n<i.length;n++){var a=i[n];if(lp(a)){var o=fs(a,t.propertyName);o&&Wp(Wa(o),(function(e){r.push(e)}))}}t.siblings=r}return t.siblings}(t);n<i.length;n++){var a=i[n];if(lp(a)&&!(1024&e.getObjectFlags(a)))for(var o=0,s=ms(a);o<s.length;o++){var c=s[o];r.set(c.escapedName,c)}}t.resolvedProperties=e.arrayFrom(r.values())}return t.resolvedProperties}function Ld(e,t){if(!(4&e.flags))return e;var r=Wa(e),n=jd(r,t&&Od(t,e.escapedName,void 0));return n===r?e:wd(e,n)}function Rd(e){var t=ye.get(e.escapedName);if(t)return t;var r=wd(e,ke);return r.flags|=16777216,ye.set(e.escapedName,r),r}function Bd(e){return jd(e,void 0)}function jd(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(lp(t))n=function(t,r){for(var n=e.createSymbolTable(),i=0,a=ps(t);i<a.length;i++){var o=a[i];n.set(o.escapedName,Ld(o,r))}if(r)for(var s=0,c=Md(r);s<c.length;s++){o=c[s];n.has(o.escapedName)||n.set(o.escapedName,Rd(o))}var u=qs(t,0),l=qs(t,1),_=Oi(t.symbol,n,e.emptyArray,e.emptyArray,u&&Dc(Bd(u.type),u.isReadonly),l&&Dc(Bd(l.type),l.isReadonly));return _.objectFlags|=2113536&e.getObjectFlags(t),_}(t,r);else if(1048576&t.flags){var i=r||Od(void 0,void 0,t.types),a=e.sameMap(t.types,(function(e){return 98304&e.flags?e:jd(e,i)}));n=bu(a,e.some(a,T_)?2:1)}else 2097152&t.flags?n=Eu(e.sameMap(t.types,Bd)):($_(t)||gd(t))&&(n=Ac(t.target,e.sameMap(wc(t),Bd)));return n&&void 0===r&&(t.widened=n),n||t}return t}function Jd(t,r,n){var i=Qi(Bd(r));if(!e.isInJSFile(t)||e.isCheckJsEnabledForFile(e.getSourceFileOfNode(t),U)){var a;switch(t.kind){case 209:case 159:case 158:a=X?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 156: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&&(Sn(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 on(X,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}a=t.dotDotDotToken?X?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:X?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 191:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!X)return;break;case 300:return void nn(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 244:case 161:case 160:case 163:case 164:case 201:case 202:if(X&&!t.name)return void nn(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=X?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 186:return void(X&&nn(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=X?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}on(X,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function zd(t,n,i){!(r&&X&&524288&e.getObjectFlags(n))||i&&cg(t)||function t(r){var n=!1;if(524288&e.getObjectFlags(r)){if(1048576&r.flags)if(e.some(r.types,T_))n=!0;else for(var i=0,a=r.types;i<a.length;i++){t(_=a[i])&&(n=!0)}if($_(r)||gd(r))for(var o=0,s=wc(r);o<s.length;o++){t(_=s[o])&&(n=!0)}if(lp(r))for(var c=0,u=ps(r);c<u.length;c++){var l=u[c],_=Wa(l);524288&e.getObjectFlags(_)&&(t(_)||nn(l.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Hi(l),Qi(Bd(_))),n=!0)}}return n}(n)||Jd(t,n,i)}function Ud(e,t,r){var n=Sy(e),i=Sy(t),a=ky(e),o=ky(t),s=o?i-1:i,c=a?s:Math.min(n,s),u=sc(e);if(u){var l=sc(t);l&&r(u,l)}for(var _=0;_<c;_++)r(by(e,_),by(t,_));o&&r(Dy(e,c),o)}function Kd(e,t,r){var n=cc(e),i=cc(t);n&&i&&xu(n,i)&&n.type&&i.type?r(n.type,i.type):r(uc(e),uc(t))}function Vd(e,t,r,n){return qd(e.map(Gd),t,r,n||i_)}function qd(e,t,r,n){var i={inferences:e,signature:t,flags:r,compareTypes:n,mapper:Al((function(e){return Wd(i,e,!0)})),nonFixingMapper:Al((function(e){return Wd(i,e,!1)}))};return i}function Wd(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&&(Hd(n),a.isFixed=!0),fp(e,i)}return t}function Hd(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];n.isFixed||(n.inferredType=void 0)}}function Gd(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1}}function Qd(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}}function Xd(e){return e&&e.mapper}function Yd(t){var r=e.getObjectFlags(t);if(67108864&r)return!!(134217728&r);var n=!!(63176704&t.flags||4&r&&(t.node||e.forEach(wc(t),Yd))||16&r&&t.symbol&&14384&t.symbol.flags&&t.symbol.declarations||131104&r||3145728&t.flags&&!(1024&t.flags)&&e.some(t.types,Yd));return 3899393&t.flags&&(t.objectFlags|=67108864|(n?134217728:0)),n}function Zd(t,r){return!!(t===r||3145728&t.flags&&e.some(t.types,(function(e){return Zd(e,r)}))||16777216&t.flags&&(Zd(Zu(t),r)||Zd($u(t),r)))}function $d(t,r,n){var i=t.id+","+r.id+","+n.id;if(mr.has(i))return mr.get(i);mr.set(i,void 0);var a=function(t,r,n){if(!(qs(t,0)||0!==ms(t).length&&function t(r){return!(2097152&e.getObjectFlags(r))||lp(r)&&e.some(ms(r),(function(e){return t(Wa(e))}))}(t)))return;if($_(t))return su(ep(wc(t)[0],r,n),ed(t));if(gd(t)){var i=e.map(wc(t),(function(e){return ep(e,r,n)})),a=4&cs(r)?Ic(t)-(t.target.hasRestElement?1:0):t.target.minLength;return du(i,a,t.target.hasRestElement,t.target.readonly,t.target.associatedNames)}var o=Ai(2064,void 0);return o.source=t,o.mappedType=r,o.constraintType=n,o}(t,r,n);return mr.set(i,a),a}function ep(e,t,r){var n=Wu(r.type,rs(t)),i=is(t),a=Gd(n);return sp([a],e,i),ip(a)||Te}function tp(t,r,n,i){var a,o,s,u,l,_,d;return c(this,(function(c){switch(c.label){case 0:a=ms(r),o=0,s=a,c.label=1;case 1:return o<s.length?To(u=s[o])?[3,5]:!n&&(16777216&u.flags||48&e.getCheckFlags(u))?[3,5]:(l=Js(t,u.escapedName))?[3,3]:[4,u]:[3,6];case 2:return c.sent(),[3,5];case 3:return i&&109440&(_=Wa(u)).flags?1&(d=Wa(l)).flags||ml(d)===ml(_)?[3,5]:[4,u]:[3,5];case 4:c.sent(),c.label=5;case 5:return o++,[3,1];case 6:return[2]}}))}function rp(e,t,r,n){var i=tp(e,t,r,n).next();if(!i.done)return i.value}function np(e,t){return gd(e)&&gd(t)&&function(e,t){return t.target.minLength>e.target.minLength||!md(t)&&(!!md(e)||yd(t)<yd(e))}(e,t)||!!rp(e,t,!1,!0)&&!!rp(t,e,!1,!0)}function ip(e){return e.candidates?bu(e.candidates,2):e.contraCandidates?Eu(e.contraCandidates):void 0}function ap(e){return!!vn(e).skipDirectInference}function op(t){return!(!t.symbol||!e.some(t.symbol.declarations,ap))}function sp(t,r,n,i,a){var o,s;void 0===i&&(i=0),void 0===a&&(a=!1);var c,u=!1,l=512,_=!0;function d(r,o){if(Yd(o)){if(r===De){var s=c;return c=r,d(o,o),void(c=s)}if(r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===o.aliasSymbol)m(r.aliasTypeArguments,o.aliasTypeArguments,B_(r.aliasSymbol));else if(r===o&&3145728&r.flags)for(var y=0,x=r.types;y<x.length;y++){var D=x[y];d(D,D)}else{if(1048576&o.flags){var S=g(1048576&r.flags?r.types:[r],o.types,cp),C=g(S[0],S[1],up),T=C[0];if(0===(E=C[1]).length)return;if(o=bu(E),0===T.length)return void p(r,o,1);r=bu(T)}else if(2097152&o.flags&&e.some(o.types,(function(e){return!!v(e)||_s(e)&&!!v(zl(e)||ze)}))){if(!(1048576&r.flags)){var k=g(2097152&r.flags?r.types:[r],o.types,r_),E=(T=k[0],k[1]);if(0===T.length||0===E.length)return;r=Eu(T),o=Eu(E)}}else 41943040&o.flags&&(o=Xu(o));if(8650752&o.flags){if(2097152&e.getObjectFlags(r)||r===Ce||r===Ue||32&i&&(r===xe||r===Tt)||op(r))return;var N=v(o);if(N){if(!N.isFixed){if((void 0===N.priority||i<N.priority)&&(N.candidates=void 0,N.contraCandidates=void 0,N.topLevel=!0,N.priority=i),i===N.priority){var A=c||r;a&&!u?e.contains(N.contraCandidates,A)||(N.contraCandidates=e.append(N.contraCandidates,A),Hd(t)):e.contains(N.candidates,A)||(N.candidates=e.append(N.candidates,A),Hd(t))}!(32&i)&&262144&o.flags&&N.topLevel&&!Zd(n,o)&&(N.topLevel=!1,Hd(t))}return void(l=Math.min(l,i))}if((R=Uu(o,!1))!==o)f(r,R,d);else if(8388608&o.flags){var F=Uu(o.indexType,!1);if(63176704&F.flags){var P=Ku(Uu(o.objectType,!1),F,!1);P&&P!==o&&f(r,P,d)}}}if(!(4&e.getObjectFlags(r)&&4&e.getObjectFlags(o)&&(r.target===o.target||$_(r)&&$_(o)))||r.node&&o.node)if(4194304&r.flags&&4194304&o.flags)a=!a,d(r.type,o.type),a=!a;else if((ud(r)||4&r.flags)&&4194304&o.flags){var w=function(t){var r=e.createSymbolTable();Wp(t,(function(t){if(128&t.flags){var n=e.escapeLeadingUnderscores(t.value),i=cn(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?Dc(Ze,!1):void 0;return Oi(void 0,r,e.emptyArray,e.emptyArray,n,void 0)}(r);a=!a,p(w,o.type,64),a=!a}else if(8388608&r.flags&&8388608&o.flags)d(r.objectType,o.objectType),d(r.indexType,o.indexType);else if(16777216&r.flags&&16777216&o.flags)d(r.checkType,o.checkType),d(r.extendsType,o.extendsType),d(Zu(r),Zu(o)),d($u(r),$u(o));else if(16777216&o.flags){var I=i;i|=a?16:0,h(r,[Zu(o),$u(o)],o.flags),i=I}else if(3145728&o.flags)h(r,o.types,o.flags);else if(1048576&r.flags)for(var O=0,M=r.types;O<M.length;O++){d(M[O],o)}else{if(r=Ms(r),!(128&i&&65273856&r.flags)){var L=Fs(r);if(L!==r&&_&&!(2621440&L.flags))return _=!1,d(L,o);r=L}2621440&r.flags&&f(r,o,b)}else m(wc(r),wc(o),J_(r.target));var R;if(25165824&r.flags)(R=Uu(r,a))!==r&&d(R,o)}}}function p(e,t,r){var n=i;i|=r,d(e,t),i=n}function f(t,r,n){var i=t.id+","+r.id,a=s&&s.get(i);if(void 0===a){(s||(s=e.createMap())).set(i,-1);var o=l;l=512,n(t,r),s.set(i,l),l=Math.min(l,o)}else l=Math.min(l,a)}function g(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)&&(d(_,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 m(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])?y(e[i],t[i]):d(e[i],t[i])}function y(e,t){H||256&i?(a=!a,d(e,t),a=!a):d(e,t)}function v(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 h(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,_=0,f=r;_<f.length;_++){if(v(C=f[_]))o=C,a++;else for(var g=0;g<s.length;g++){var m=l;l=512,d(s[g],C),l===i&&(c[g]=!0),u=u||-1===l,l=Math.min(l,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!!v(e)}));if(!o||r&&o!==r)return;r=o}return r}(r);return void(y&&p(t,y,1))}if(1===a&&!u){var h=e.flatMap(s,(function(e,t){return c[t]?void 0:e}));if(h.length)return void d(bu(h),o)}}else for(var b=0,x=r;b<x.length;b++){v(C=x[b])?a++:d(t,C)}if(2097152&n?1===a:a>0)for(var D=0,S=r;D<S.length;D++){var C;v(C=S[D])&&p(t,C,1)}}function b(t,r){var n=524288&r.flags&&!(16&e.getObjectFlags(r)&&r.symbol&&32&r.symbol.flags)?gd(r)?r.target:r.symbol:void 0;if(n){if(e.contains(o,n))return void(l=-1);(o||(o=[])).push(n),x(t,r),o.pop()}else x(t,r)}function x(t,r){if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&(t.target===r.target||$_(t)&&$_(r)))m(wc(t),wc(r),J_(t.target));else{if(_s(t)&&_s(r)&&(d(ns(t),ns(r)),d(is(t),is(r))),32&e.getObjectFlags(r))if(function t(r,n,i){if(1048576&i.flags){for(var a=!1,o=0,s=i.types;o<s.length;o++){a=t(r,n,s[o])||a}return a}if(4194304&i.flags){var c=v(i.type);if(c&&!c.isFixed&&!op(r)){var u=$d(r,n,i);u&&p(u,c.typeParameter,2097152&e.getObjectFlags(r)?4:2)}return!0}if(262144&i.flags){p(Iu(r),i,8);var l=ys(i);if(l&&t(r,n,l))return!0;var _=e.map(ms(r),Wa),f=Ws(r,0),g=wu(r),m=g&&g.type;return d(bu(e.append(e.append(_,f),m)),is(n)),!0}return!1}(t,r,ns(r)))return;if(!np(t,r)){if($_(t)||gd(t)){if(gd(r)){for(var n=gd(t)?yd(t):0,i=yd(r),a=gd(t)?md(t):rd(t),o=md(r),s=i<n||a?i:n,c=0;c<s;c++)d(c<n?wc(t)[c]:a,wc(r)[c]);if(o){var u=s<n?wc(t).slice(s,n):[];a&&u.push(a),u.length&&d(bu(u),o)}return}if($_(r))return void C(t,r)}!function(e,t){for(var r=ps(t),n=0,i=r;n<i.length;n++){var a=i[n],o=Js(e,a.escapedName);o&&d(Wa(o),Wa(a))}}(t,r),D(t,r,0),D(t,r,1),C(t,r)}}}function D(t,r,n){for(var i=Us(t,n),a=Us(r,n),o=i.length,s=a.length,c=o<s?o:s,u=!!(2097152&e.getObjectFlags(t)),l=0;l<c;l++)S(vc(i[o-c+l]),mc(a[s-c+l]),u)}function S(e,t,r){if(!r){var n=u,i=t.declaration?t.declaration.kind:0;u=u||161===i||160===i||162===i,Ud(e,t,y),u=n}Kd(e,t,d)}function C(e,t){var r=Ws(t,0);r&&((n=Ws(e,0)||Hs(e,0))&&d(n,r));var n,i=Ws(t,1);i&&((n=Ws(e,1)||Ws(e,0)||Hs(e,1))&&d(n,i))}d(r,n)}function cp(e,t){return r_(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function up(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function lp(t){return!!(128&e.getObjectFlags(t))}function _p(t){return!!(65664&e.getObjectFlags(t))}function dp(t){return 104&t.priority?Eu(t.contraCandidates):(r=t.contraCandidates,e.reduceLeft(r,(function(e,t){return o_(t,e)?t:e})));var r}function pp(t,r){var n=function(t){if(t.length>1){var r=e.filter(t,_p);if(r.length){var n=bu(r,2);return e.concatenate(e.filter(t,(function(e){return!_p(e)})),[n])}}return t}(t.candidates),i=function(e){var t=vs(e);return!!t&&Yy(16777216&t.flags?bs(t):t,4325372)}(t.typeParameter),a=!i&&t.topLevel&&(t.isFixed||!Zd(uc(r),t.typeParameter)),o=i?e.sameMap(n,ml):a?e.sameMap(n,_d):n;return Bd(104&t.priority?bu(o,2):function(t){if(!W)return Z_(t);var r=e.filter(t,(function(e){return!(98304&e.flags)}));return r.length?Sd(Z_(r),98304&hd(t)):bu(t,2)}(o))}function fp(t,r){var n=t.inferences[r];if(!n.inferredType){var i=void 0,a=t.signature;if(a){var o=n.candidates?pp(n,a):void 0;if(n.contraCandidates){var s=dp(n);i=!o||131072&o.flags||!o_(o,s)?s:o}else if(o)i=o;else if(1&t.flags)i=Ue;else{var c=Ns(n.typeParameter);c&&(i=Wl(c,Il(function(t,r){return Al((function(n){return e.findIndex(t.inferences,(function(e){return e.typeParameter===n}))>=r?Te:n}))}(t,r),t.nonFixingMapper)))}}else i=ip(n);n.inferredType=i||gp(!!(2&t.flags));var u=vs(n.typeParameter);if(u){var l=Wl(u,t.nonFixingMapper);i&&t.compareTypes(i,Ro(l,i))||(n.inferredType=i=l)}}return n.inferredType}function gp(e){return e?be:Te}function mp(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(fp(e,r));return t}function yp(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 U.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery;case"describe":case"suite":case"it":case"test":return U.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return U.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later;default:return 282===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 vp(t){var r=vn(t);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(t)&&Sn(t,t.escapedText,1160127,yp(t),t,!e.isWriteOnlyAccess(t),!1,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||ve),r.resolvedSymbol}function hp(t){return!!e.findAncestor(t,(function(e){return 172===e.kind||75!==e.kind&&153!==e.kind&&"quit"}))}function bp(t,r){switch(r.kind){case 200:case 218:return bp(t,r.expression)}switch(t.kind){case 75:return 75===r.kind&&vp(t)===vp(r)||(242===r.kind||191===r.kind)&&Si(vp(t))===yi(r);case 104:return 104===r.kind;case 102:return 102===r.kind;case 218:case 200:return bp(t.expression,r);case 194:case 195:return e.isAccessExpression(r)&&xp(t)===xp(r)&&bp(t.expression,r.expression)}return!1}function xp(t){return 194===t.kind?t.name.escapedText:e.isStringOrNumericLiteralLike(t.argumentExpression)?e.escapeLeadingUnderscores(t.argumentExpression.text):void 0}function Dp(t,r){for(;e.isAccessExpression(t);)if(bp(t=t.expression,r))return!0;return!1}function Sp(t,r){for(;e.isOptionalChain(t);)if(bp(t=t.expression,r))return!0;return!1}function Cp(t,r){if(t&&1048576&t.flags){var n=Is(t,r);if(n&&2&e.getCheckFlags(n))return void 0===n.isDiscriminantProperty&&(n.isDiscriminantProperty=192===(192&n.checkFlags)&&!Yy(Wa(n),63176704)),!!n.isDiscriminantProperty}return!1}function Tp(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(Cp(t,a.escapedName)){if(r){r.push(a);continue}r=[a]}}return r}function kp(e,t){return bp(e,t)||Dp(e,t)}function Ep(e){return(!e.id||e.id<0)&&(e.id=p,p++),e.id}function Np(e,t){if(e!==t){if(131072&t.flags)return t;var r=Gp(e,(function(e){return function(e,t){if(!(1048576&e.flags))return s_(e,t);for(var r=0,n=e.types;r<n.length;r++){if(s_(n[r],t))return!0}return!1}(t,e)}));if(512&t.flags&&yl(t)&&(r=Xp(r,gl)),s_(t,r))return r}return e}function Ap(e){var t=ds(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&o_(e,ft))}function Fp(t){var r=t.flags;if(4&r)return W?16317953:16776705;if(128&r){var n=""===t.value;return W?n?12123649:7929345:n?12582401:16776705}if(40&r)return W?16317698:16776450;if(256&r){var i=0===t.value;return W?i?12123394:7929090:i?12582146:16776450}if(64&r)return W?16317188:16775940;if(2048&r){i=vd(t);return W?i?12122884:7928580:i?12581636:16775940}return 16&r?W?16316168:16774920:528&r?W?t===Oe||t===Me?12121864:7927560:t===Oe||t===Me?12580616:16774920:524288&r?16&e.getObjectFlags(t)&&T_(t)?W?16318463:16777215:Ap(t)?W?7880640:16728e3:W?7888800:16736160:49152&r?9830144:65536&r?9363232:12288&r?W?7925520:16772880:67108864&r?W?7888800:16736160:131072&r?0:63176704&r?Fp(Ss(t)||Te):3145728&r?function(e){for(var t=0,r=0,n=e;r<n.length;r++){t|=Fp(n[r])}return t}(t.types):16777215}function Pp(e,t){return Gp(e,(function(e){return 0!==(Fp(e)&t)}))}function wp(e,t){if(t){var r=Cv(t);return bu([Pp(e,524288),r])}return e}function Ip(e,t){var r=Au(t);if(!Eo(r))return Se;var n=wo(r);return Sf(da(e,n),t)||mg(n)&&Ws(e,1)||Ws(e,0)||Se}function Op(e,t){return Hp(e,ad)&&function(e,t){var r=da(e,""+t);return r||(Hp(e,gd)?Xp(e,(function(e){return md(e)||ke})):void 0)}(e,t)||Uh(65,e,ke,void 0)||Se}function Mp(e){return su(Uh(65,e,ke,void 0)||Se)}function Lp(e){return 209===e.parent.kind&&e.parent.left===e||232===e.parent.kind&&e.parent.initializer===e}function Rp(e){return Ip(Bp(e.parent),e.name)}function Bp(e){var t=e.parent;switch(t.kind){case 231:return Pe;case 232:return zh(t)||Se;case 209:return function(e){return 192===e.parent.kind&&Lp(e.parent)||281===e.parent.kind&&Lp(e.parent.parent)?wp(Bp(e),e.right):Cv(e.right)}(t);case 203:return ke;case 192:return function(e,t){return Op(Bp(e),e.elements.indexOf(t))}(t,e);case 213:return function(e){return Mp(Bp(e.parent))}(t);case 281:return Rp(t);case 282:return function(e){return wp(Rp(e),e.objectAssignmentInitializer)}(t)}return Se}function jp(e){return vn(e).resolvedType||Cv(e)}function Jp(e){return 242===e.kind?function(e){return e.initializer?jp(e.initializer):231===e.parent.parent.kind?Pe:232===e.parent.parent.kind&&zh(e.parent.parent)||Se}(e):function(e){var t=e.parent,r=Jp(t.parent);return wp(189===t.kind?Ip(r,e.propertyName||e.name):e.dotDotDotToken?Mp(r):Op(r,t.elements.indexOf(e)),e.initializer)}(e)}function zp(e){switch(e.kind){case 200:return zp(e.expression);case 209:switch(e.operatorToken.kind){case 62:return zp(e.left);case 27:return zp(e.right)}}return e}function Up(e){return 277===e.kind?ml(Cv(e.expression)):ze}function Kp(e){var t=vn(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(Up(i))}}return t.switchTypes}function Vp(t,r){for(var n=[],i=0,a=t.caseBlock.clauses;i<a.length;i++){var o=a[i];if(277===o.kind){if(e.isStringLiteralLike(o.expression)){n.push(o.expression.text);continue}return e.emptyArray}r&&n.push(void 0)}return n}function qp(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(!gu(t.types,i))return!1}return!0}if(1024&e.flags&&po(e)===t)return!0;return gu(t.types,e)}(e,t)}function Wp(t,r){return 1048576&t.flags?e.forEach(t.types,r):r(t)}function Hp(t,r){return 1048576&t.flags?e.every(t.types,r):r(t)}function Gp(t,r){if(1048576&t.flags){var n=t.types,i=e.filter(n,r);return i===n?t:Du(i,t.objectFlags)}return 131072&t.flags||r(t)?t:ze}function Qp(e){return 1048576&e.flags?e.types.length:1}function Xp(e,t,r){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);for(var n,i=0,a=e.types;i<a.length;i++){var o=t(a[i]);o&&(n?n.push(o):n=[o])}return n&&bu(n,r?0:1)}function Yp(e,t){return Gp(e,(function(e){return 0!==(e.flags&t)}))}function Zp(e,t){return qp(Pe,e)&&Yy(t,128)||qp(we,e)&&Yy(t,256)||qp(Ie,e)&&Yy(t,2048)?Xp(e,(function(e){return 4&e.flags?Yp(t,132):8&e.flags?Yp(t,264):64&e.flags?Yp(t,2112):e})):e}function $p(e){return 0===e.flags}function ef(e){return 0===e.flags?e.type:e}function tf(e,t){return t?{flags:0,type:e}:e}function rf(e){return me[e.id]||(me[e.id]=function(e){var t=Ai(256);return t.elementType=e,t}(e))}function nf(e,t){var r=ld(kv(t));return qp(r,e.elementType)?e:rf(bu([e.elementType,r]))}function af(e){return e.finalArrayType||(e.finalArrayType=131072&(t=e.elementType).flags?Tt:su(1048576&t.flags?bu(t.types,2):t));var t}function of(t){return 256&e.getObjectFlags(t)?af(t):t}function sf(t){return 256&e.getObjectFlags(t)?t.elementType:ze}function cf(t,r){return 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)?rf(bu(e.map(t,sf))):bu(e.sameMap(t,of),r)}function uf(t){var r=function e(t){var r=t.parent;return 200===r.kind||209===r.kind&&62===r.operatorToken.kind&&r.left===t||209===r.kind&&27===r.operatorToken.kind&&r.right===t?e(r):t}(t),n=r.parent,i=e.isPropertyAccessExpression(n)&&("length"===n.name.escapedText||196===n.parent.kind&&e.isIdentifier(n.name)&&e.isPushOrUnshiftIdentifier(n.name)),a=195===n.kind&&n.expression===r&&209===n.parent.kind&&62===n.parent.operatorToken.kind&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&Zy(Cv(n.argumentExpression),296);return i||a}function lf(t,r){if(8752&t.flags)return Wa(t);if(7&t.flags){var n=t.valueDeclaration;if(n){if(function(t){return(242===t.kind||156===t.kind||159===t.kind||158===t.kind)&&!!e.getEffectiveTypeAnnotationNode(t)}(n))return Wa(t);if(e.isVariableDeclaration(n)&&232===n.parent.parent.kind){var i=n.parent.parent,a=_f(i.expression,void 0);if(a)return Uh(i.awaitModifier?15:13,a,ke,void 0)}r&&e.addRelatedInfo(r,e.createDiagnosticForNode(n,e.Diagnostics._0_needs_an_explicit_type_annotation,Hi(t)))}}}function _f(t,r){if(!(16777216&t.flags))switch(t.kind){case 75:var n=Si(vp(t));return lf(2097152&n.flags?Hn(n):n,r);case 104:return function(t){var r=e.getThisContainer(t,!1);if(e.isFunctionLike(r)){var n=nc(r);if(n.thisParameter)return lf(n.thisParameter)}if(e.isClassLike(r.parent)){var i=yi(r.parent);return e.hasModifier(r,32)?Wa(i):yo(i).thisType}}(t);case 102:return Of(t);case 194:var i=_f(t.expression,r),a=i&&Js(i,t.name.escapedText);return a&&lf(a,r);case 200:return _f(t.expression,r)}}function df(t){var r=vn(t),n=r.effectsSignature;if(void 0===n){var i=void 0;226===t.parent.kind?i=_f(t.expression,void 0):102!==t.expression.kind&&(i=e.isOptionalChain(t)?Zg(Fd(Ev(t.expression),t.expression),t.expression):Wg(t.expression));var a=Us(i&&Fs(i)||Te,0),o=1!==a.length||a[0].typeParameters?e.some(a,pf)?oy(t):void 0:a[0];n=r.effectsSignature=o&&pf(o)?o:ar}return n===ar?void 0:n}function pf(e){return!!(cc(e)||e.declaration&&131072&(lc(e.declaration)||Te).flags)}function ff(t){var r=function t(r,n){for(;;){if(r===Xt)return Yt;var i=r.flags;if(4096&i){if(!n){var a=Ep(r),o=Jr[a];return void 0!==o?o:Jr[a]=t(r,!0)}n=!1}if(368&i)r=r.antecedent;else if(512&i){var s=df(r.node);if(s){var c=cc(s);if(c&&3===c.kind){var u=r.node.arguments[c.parameterIndex];if(u&&gf(u))return!1}if(131072&uc(s).flags)return!1}r=r.antecedent}else{if(4&i)return e.some(r.antecedents,(function(e){return t(e,!1)}));if(8&i)r=r.antecedents[0];else{if(!(128&i)){if(1024&i){Xt=void 0;var l=r.target,_=l.antecedents;l.antecedents=r.antecedents;var d=t(r.antecedent,!1);return l.antecedents=_,d}return!(1&i)}if(r.clauseStart===r.clauseEnd&&jy(r.switchStatement))return!1;r=r.antecedent}}}}(t,!1);return Xt=t,Yt=r,r}function gf(t){var r=e.skipParentheses(t);return 91===r.kind||209===r.kind&&(55===r.operatorToken.kind&&(gf(r.left)||gf(r.right))||56===r.operatorToken.kind&&gf(r.left)&&gf(r.right))}function mf(t,r,n,i,a){var o;void 0===n&&(n=r);var s=!1,c=0;if(xr)return Se;if(!t.flowNode||!a&&!(133970943&r.flags))return r;Dr++;var u=br,l=ef(p(t.flowNode));br=u;var _=256&e.getObjectFlags(l)&&uf(t)?Tt:of(l);return _===qe||t.parent&&218===t.parent.kind&&131072&Pp(_,2097152).flags?r:_;function d(){return s?o:(s=!0,o=function e(t,r,n,i){switch(t.kind){case 75:var a=vp(t);return a!==ve?(i?P(i):"-1")+"|"+fu(r)+"|"+fu(n)+"|"+(xf(t)?"@":"")+w(a):void 0;case 104:return"0";case 218:case 200:return e(t.expression,r,n,i);case 194:case 195:var o=xp(t);if(void 0!==o){var s=e(t.expression,r,n,i);return s&&s+"."+o}}}(t,r,n,i))}function p(a){if(2e3===c)return xr=!0,function(t){var r=e.findAncestor(t,e.isFunctionOrModuleBlock),n=e.getSourceFileOfNode(t),i=e.getSpanOfTokenAtPosition(n,r.statements.pos);qr.add(e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(t),Se;for(c++;;){var o=a.flags;if(4096&o)for(var s=u;s<br;s++)if(Br[s]===a)return c--,jr[s];var l=void 0;if(16&o){if(!(l=g(a))){a=a.antecedent;continue}}else if(512&o){if(!(l=m(a))){a=a.antecedent;continue}}else if(96&o)l=v(a);else if(128&o)l=h(a);else if(12&o){if(1===a.antecedents.length){a=a.antecedents[0];continue}l=4&o?b(a):x(a)}else if(256&o){if(!(l=y(a))){a=a.antecedent;continue}}else if(1024&o){var _=a.target,d=_.antecedents;_.antecedents=a.antecedents,l=p(a.antecedent),_.antecedents=d}else if(2&o){var f=a.node;if(f&&f!==i&&194!==t.kind&&195!==t.kind&&104!==t.kind){a=f.flowNode;continue}l=n}else l=Ah(r);return 4096&o&&(Br[br]=a,jr[br]=l,br++),c--,l}}function f(e){var r=e.node;return Sf(242===r.kind||191===r.kind?Jp(r):Bp(r),t)}function g(n){var i=n.node;if(bp(t,i)){if(!ff(n))return qe;if(2===e.getAssignmentTargetKind(i)){var a=p(n.antecedent);return tf(ld(ef(a)),$p(a))}if(r===xe||r===Tt){if(function(e){return 242===e.kind&&e.initializer&&xa(e.initializer)||191!==e.kind&&209===e.parent.kind&&xa(e.parent.right)}(i))return rf(ze);var o=ld(f(n));return s_(o,r)?o:Ct}return 1048576&r.flags?Np(r,f(n)):r}if(Dp(t,i)){if(!ff(n))return qe;if(e.isVariableDeclaration(i)&&(e.isInJSFile(i)||e.isVarConst(i))){var s=e.getDeclaredExpandoInitializer(i);if(s&&(201===s.kind||202===s.kind))return p(n.antecedent)}return r}if(e.isVariableDeclaration(i)&&231===i.parent.parent.kind&&bp(t,i.parent.parent.expression))return Gg(ef(p(n.antecedent)))}function m(t){var r=df(t.node);if(r){var n=cc(r);if(n&&(2===n.kind||3===n.kind)){var i=p(t.antecedent),a=of(ef(i)),o=n.type?J(a,n,t.node,!0):3===n.kind&&n.parameterIndex>=0&&n.parameterIndex<t.node.arguments.length?function t(r,n){var i=e.skipParentheses(n);if(91===i.kind)return qe;if(209===i.kind){if(55===i.operatorToken.kind)return t(t(r,i.left),i.right);if(56===i.operatorToken.kind)return bu([t(r,i.left),t(r,i.right)])}return z(r,i,!0)}(a,t.node.arguments[n.parameterIndex]):a;return o===a?i:tf(o,$p(i))}if(131072&uc(r).flags)return qe}}function y(n){if(r===xe||r===Tt){var i=n.node,a=196===i.kind?i.expression.expression:i.left.expression;if(bp(t,zp(a))){var o=p(n.antecedent),s=ef(o);if(256&e.getObjectFlags(s)){var c=s;if(196===i.kind)for(var u=0,l=i.arguments;u<l.length;u++){c=nf(c,l[u])}else Zy(kv(i.left.argumentExpression),296)&&(c=nf(c,i.right));return c===s?o:tf(c,$p(o))}return o}}}function v(e){var t=p(e.antecedent),r=ef(t);if(131072&r.flags)return t;var n=0!==(32&e.flags),i=of(r),a=z(i,e.node,n);if(a===i)return t;var o=$p(t);return tf(o&&131072&a.flags?Ue:a,o)}function h(r){var n=r.switchStatement.expression,i=p(r.antecedent),a=ef(i);return bp(t,n)?a=M(a,r.switchStatement,r.clauseStart,r.clauseEnd):204===n.kind&&bp(t,n.expression)?a=function(t,r,n,i){var a=Vp(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=By(_,d,l,u)}else o=a.slice(n,i),s=By(n,i,a,u);if(u)return Gp(t,(function(e){return(Fp(e)&s)===s}));var p=Pp(bu(o.map((function(e){return function(e,t){switch(t){case"function":return 1&e.flags?e:ft;case"object":return 2&e.flags?bu([We,Ae]):e;default:return Hr.get(t)||e}}(t,e)}))),s);1048576&p.flags&&(p=Np(p,Cs(t)));return Pp(Xp(t,(f=p,function(e){if(o_(f,e))return f;if(63176704&e.flags){var t=Ss(e)||be;if(o_(f,t))return Eu([e,f])}return e})),s);var f}(a,r.switchStatement,r.clauseStart,r.clauseEnd):(W&&(Sp(n,t)?a=O(a,r.switchStatement,r.clauseStart,r.clauseEnd,(function(e){return!(163840&e.flags)})):204===n.kind&&Sp(n.expression,t)&&(a=O(a,r.switchStatement,r.clauseStart,r.clauseEnd,(function(e){return!(131072&e.flags||128&e.flags&&"undefined"===e.value)})))),D(n,a)&&(a=T(a,n,(function(e){return M(e,r.switchStatement,r.clauseStart,r.clauseEnd)})))),tf(a,$p(i))}function b(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=ef(_=p(l)))===r&&r===n)return d;e.pushIfUnique(a,d),qp(d,r)||(o=!0),$p(_)&&(s=!0)}}if(i){var _,d=ef(_=p(i));if(!e.contains(a,d)&&!jy(i.switchStatement)){if(d===r&&r===n)return d;a.push(d),qp(d,r)||(o=!0),$p(_)&&(s=!0)}}return tf(cf(a,o?2:1),s)}function x(t){var n=Ep(t),i=Or[n]||(Or[n]=e.createMap()),a=d();if(!a)return r;var o=i.get(a);if(o)return o;for(var s=vr;s<hr;s++)if(Mr[s]===t&&Lr[s]===a&&Rr[s].length)return tf(cf(Rr[s],1),!0);for(var c,u=[],l=!1,_=0,f=t.antecedents;_<f.length;_++){var g=f[_],m=void 0;if(c){Mr[hr]=t,Lr[hr]=a,Rr[hr]=u,hr++;var y=Zt;Zt=void 0,m=p(g),Zt=y,hr--;var v=i.get(a);if(v)return v}else m=c=p(g);var h=ef(m);if(e.pushIfUnique(u,h),qp(h,r)||(l=!0),h===r)break}var b=cf(u,l?2:1);return $p(c)?tf(b,!0):(i.set(a,b),b)}function D(r,n){if(!(1048576&n.flags)||!e.isAccessExpression(r))return!1;var i=xp(r);return void 0!==i&&(bp(t,r.expression)&&Cp(n,i))}function T(e,t,r){var n=xp(t);if(void 0===n)return e;var i=da(e,n);if(!i)return e;var a=r(i);return Gp(e,(function(e){var t=function(e,t){return da(e,t)||mg(t)&&Ws(e,1)||Ws(e,0)||Te}(e,n);return!(131072&t.flags)&&u_(t,a)}))}function k(e,n,i){return bp(t,n)?Pp(e,i?4194304:8388608):(W&&i&&Sp(n,t)&&(e=Pp(e,2097152)),D(n,r)?T(e,n,(function(e){return Pp(e,i?4194304:8388608)})):e)}function E(t,r,n){if(1572864&t.flags||zu(t)){var i=e.escapeLeadingUnderscores(r.text);return Gp(t,(function(e){return function(e,t,r){if(qs(e,0))return!0;var n=Js(e,t);return n?!!(16777216&n.flags)||r:!r}(e,i,n)}))}return t}function N(n,i,a){switch(i.operatorToken.kind){case 62:return k(z(n,i.right,a),i.left,a);case 34:case 35:case 36:case 37:var o=i.operatorToken.kind,s=zp(i.left),c=zp(i.right);if(204===s.kind&&e.isStringLiteralLike(c))return I(n,s,o,c,a);if(204===c.kind&&e.isStringLiteralLike(s))return I(n,c,o,s,a);if(bp(t,s))return F(n,o,c,a);if(bp(t,c))return F(n,o,s,a);if(W&&(Sp(s,t)?n=A(n,o,c,a):Sp(c,t)&&(n=A(n,o,s,a))),D(s,r))return T(n,s,(function(e){return F(e,o,c,a)}));if(D(c,r))return T(n,c,(function(e){return F(e,o,s,a)}));if(L(s))return R(n,o,c,a);if(L(c))return R(n,o,s,a);break;case 98:return function(r,n,i){var a=zp(n.left);if(!bp(t,a))return i&&W&&Sp(a,t)?Pp(r,2097152):r;var o,s=Cv(n.right);if(!c_(s,ft))return r;var c=Js(s,"prototype");if(c){var u=Wa(c);pa(u)||(o=u)}if(pa(r)&&(o===pt||o===ft))return r;if(!o){var l=Us(s,1);o=l.length?bu(e.map(l,(function(e){return uc(mc(e))}))):Ze}return B(r,o,i,c_)}(n,i,a);case 97:var u=zp(i.right);if(e.isStringLiteralLike(i.left)&&bp(t,u))return E(n,i.left,a);break;case 27:return z(n,i.right,a)}return n}function A(e,t,r,n){var i=34===t||36===t,a=34===t||35===t?98304:32768,o=Cv(r);return i!==n&&Hp(o,(function(e){return!!(e.flags&a)}))||i===n&&Hp(o,(function(e){return!(e.flags&(3|a))}))?Pp(e,2097152):e}function F(e,t,r,n){if(1&e.flags)return e;35!==t&&37!==t||(n=!n);var i=Cv(r);if(2&e.flags&&n&&(36===t||37===t))return 67239932&i.flags?i:524288&i.flags?We:e;if(98304&i.flags)return W?Pp(e,34===t||35===t?n?262144:2097152:65536&i.flags?n?131072:1048576:n?65536:524288):e;if(67637251&e.flags)return e;if(n){var a=Gp(e,34===t?function(e){return l_(e,i)||(t=i,0!==(524&e.flags)&&0!==(28&t.flags));var t}:function(e){return l_(e,i)});return 131072&a.flags?e:Zp(a,i)}if(cd(i)){var o=ml(i);return Gp(e,(function(e){return cd(e)?!l_(e,i):ml(e)!==o}))}return e}function I(e,r,n,i,a){35!==n&&37!==n||(a=!a);var o=zp(r.expression);if(!bp(t,o))return W&&Sp(o,t)&&a===("undefined"!==i.text)?Pp(e,2097152):e;if(1&e.flags&&"function"===i.text)return e;if(a&&2&e.flags&&"object"===i.text){if(209===r.parent.parent.kind){var s=r.parent.parent;if(55===s.operatorToken.kind&&s.right===r.parent&&function e(t,r){return bp(t,r)||209===r.kind&&55===r.operatorToken.kind&&(e(t,r.left)||e(t,r.right))}(t,s.left))return We}return bu([We,Ae])}var c=a?S.get(i.text)||128:C.get(i.text)||32768;return Pp(a?Xp(e,(function(e){var t="function"===i.text?ft:Hr.get(i.text);if(t){if(o_(e,t))return e;if(o_(t,e))return t;if(63176704&e.flags){var r=Ss(e)||be;if(o_(t,r))return Eu([e,t])}}return e})):e,c)}function O(t,r,n,i,a){return n!==i&&e.every(Kp(r).slice(n,i),a)?Pp(t,2097152):t}function M(t,r,n,i){var a=Kp(r);if(!a.length)return t;var o=a.slice(n,i),s=n===i||e.contains(o,ze);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(We)}}return bu(void 0===c?o:c)}var _=bu(o),d=131072&_.flags?ze:Zp(Gp(t,(function(e){return l_(_,e)})),_);if(!s)return d;var p=Gp(t,(function(t){return!(cd(t)&&e.contains(a,ml(t)))}));return 131072&d.flags?p:bu([d,p])}function L(r){return(e.isPropertyAccessExpression(r)&&"constructor"===e.idText(r.name)||e.isElementAccessExpression(r)&&e.isStringLiteralLike(r.argumentExpression)&&"constructor"===r.argumentExpression.text)&&bp(t,r.expression)}function R(t,r,n,i){if(i?34!==r&&36!==r:35!==r&&37!==r)return t;var a=Cv(n);if(!wx(a)&&!to(a))return t;var o=Js(a,"prototype");if(!o)return t;var s=Wa(o),c=pa(s)?void 0:s;return c&&c!==pt&&c!==ft?pa(t)?c:Gp(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 o_(t,r)}(t,c)})):t}function B(e,t,r,n){if(!r)return Gp(e,(function(e){return!n(e,t)}));if(1048576&e.flags){var i=Gp(e,(function(e){return n(e,t)}));if(!(131072&i.flags))return i}return o_(t,e)?t:s_(e,t)?e:s_(t,e)?t:Eu([e,t])}function j(r,n,i){if(function(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++){if(kp(t,n[r]))return!0}return!(194!==e.expression.kind||!kp(t,e.expression.expression))}(n,t)){var a=i||!e.isCallChain(n)?df(n):void 0,o=a&&cc(a);if(o&&(0===o.kind||1===o.kind))return J(r,o,n,i)}return r}function J(n,i,a,o){if(i.type&&(!pa(n)||i.type!==pt&&i.type!==ft)){var s=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}(i,a);if(s){if(bp(t,s))return B(n,i.type,o,o_);if(W&&o&&Sp(s,t)&&!(65536&Fp(i.type))&&(n=Pp(n,2097152)),D(s,r))return T(n,s,(function(e){return B(e,i.type,o,o_)}))}}return n}function z(n,i,a){if(e.isExpressionOfOptionalChainRoot(i)||e.isBinaryExpression(i.parent)&&60===i.parent.operatorToken.kind&&i.parent.left===i)return function(e,n,i){if(bp(t,n))return Pp(e,i?2097152:262144);if(D(n,r))return T(e,n,(function(e){return Pp(e,i?2097152:262144)}));return e}(n,i,a);switch(i.kind){case 75:case 104:case 102:case 194:case 195:return k(n,i,a);case 196:return j(n,i,a);case 200:return z(n,i.expression,a);case 209:return N(n,i,a);case 207:if(53===i.operator)return z(n,i.operand,!a)}return n}}function yf(t){return e.findAncestor(t.parent,(function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||250===t.kind||290===t.kind||159===t.kind}))}function vf(t){var r,n=e.getRootDeclaration(t.valueDeclaration).parent,i=vn(n);return 8388608&i.flags||(i.flags|=8388608,r=n,e.findAncestor(r.parent,(function(t){return e.isFunctionLike(t)&&!!(8388608&vn(t).flags)}))||hf(n)),t.isAssigned||!1}function hf(t){if(75===t.kind){if(e.isAssignmentTarget(t)){var r=vp(t);r.valueDeclaration&&156===e.getRootDeclaration(r.valueDeclaration).kind&&(r.isAssigned=!0)}}else e.forEachChild(t,hf)}function bf(e){return 3&e.flags&&0!==(2&Ug(e))&&Wa(e)!==Tt}function xf(e){var t=e.parent;return 194===t.kind||196===t.kind&&t.expression===e||195===t.kind&&t.expression===e||191===t.kind&&t.name===e&&!!t.initializer}function Df(e){return 58982400&e.flags&&Yy(Ss(e)||Te,98304)}function Sf(e,t){return e&&xf(t)&&Wp(e,Df)?Xp(Bd(e),Cs):e}function Cf(t,r){!qn(t,111551)||hp(r)||Xn(t)||(U.preserveConstEnums&&function(t){return!!e.findAncestor(t,(function(t){return t.parent&&e.isExportAssignment(t.parent)&&t.parent.expression===t&&e.isEntityNameExpression(t)}))}(r)||!xx(Hn(t))?Zn(t):function(e){var t=yn(e);t.constEnumReferenced||(t.constEnumReferenced=!0)}(t))}function Tf(t){var r=vp(t);if(r===ve)return Se;if(r===oe){var n=e.getContainingFunction(t);return K<2&&(202===n.kind?nn(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasModifier(n,256)&&nn(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)),vn(n).flags|=8192,Wa(r)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||Cf(r,t);var i=Si(r),a=i.valueDeclaration;if(32&i.flags)if(245===a.kind&&e.nodeIsDecorated(a))for(n=e.getContainingClass(t);void 0!==n;){if(n===a&&n.name!==t){vn(a).flags|=16777216,vn(t).flags|=33554432;break}n=e.getContainingClass(n)}else if(214===a.kind)for(n=e.getThisContainer(t,!1);290!==n.kind;){if(n.parent===a){159===n.kind&&e.hasModifier(n,32)&&(vn(a).flags|=16777216,vn(t).flags|=33554432);break}n=e.getThisContainer(n,!1)}!function(t,r){if(K>=2||0===(34&r.flags)||e.isSourceFile(r.valueDeclaration)||280===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,243))&&_.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=vn(c);u.flags|=131072;var l=u.capturedBlockScopeBindings||(u.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),c===n.initializer&&(s=!1)}}s&&(vn(a).flags|=65536)}var _;if(e.isForStatement(n))(_=e.getAncestor(r.valueDeclaration,243))&&_.parent===n&&function(t,r){var n=t;for(;200===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(207===n.parent.kind||208===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)&&(vn(r.valueDeclaration).flags|=4194304);vn(r.valueDeclaration).flags|=524288}i&&(vn(r.valueDeclaration).flags|=262144)}(t,r);var o=Sf(Wa(i),t),s=e.getAssignmentTargetKind(t);if(s){if(!(3&i.flags)&&!(e.isInJSFile(t)&&512&i.flags))return nn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Hi(r)),Se;if(Wy(i))return 3&i.flags?nn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Hi(r)):nn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Hi(r)),Se}var c=2097152&i.flags;if(3&i.flags){if(1===s)return o}else{if(!c)return o;a=e.find(r.declarations,L)}if(!a)return o;for(var u=156===e.getRootDeclaration(a).kind,l=yf(a),_=yf(t),d=_!==l,p=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&Lp(t.parent.parent),f=134217728&r.flags;_!==l&&(201===_.kind||202===_.kind||e.isObjectLiteralOrClassExpressionMethod(_))&&(bf(i)||u&&!vf(i));)_=yf(_);var g=u||c||d||p||f||e.isBindingElement(a)||o!==xe&&o!==Tt&&(!W||0!==(16387&o.flags)||hp(t)||263===t.parent.kind)||218===t.parent.kind||242===a.kind&&a.exclamationToken||8388608&a.flags,m=mf(t,o,g?u?function(e,t){if(sa(t.symbol,2)){var r=W&&156===t.kind&&t.initializer&&32768&bd(e)&&!(32768&bd(Ev(t.initializer)));return la(),r?Pp(e,524288):e}return qa(t.symbol),e}(o,a):o:o===xe||o===Tt?ke:Cd(o),_,!g);if(uf(t)||o!==xe&&o!==Tt){if(!g&&!(32768&bd(o))&&32768&bd(m))return nn(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,Hi(r)),o}else if(m===xe||m===Tt)return X&&(nn(e.getNameOfDeclaration(a),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Hi(r),Qi(m)),nn(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Hi(r),Qi(m))),Ah(m);return s?ld(m):m}function kf(e,t){(vn(e).flags|=2,159===t.kind||162===t.kind)?vn(t.parent).flags|=4:vn(t).flags|=4}function Ef(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,Ef)}function Nf(e){var t=vn(e);return void 0===t.hasSuperCall&&(t.superCall=Ef(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function Af(e){return ao(yo(yi(e)))===Fe}function Ff(t,r,n){var i=r.parent;if(e.getClassExtendsHeritageElement(i)&&!Af(i)){var a=Nf(r);(!a||a.end>t.pos)&&nn(t,n)}}function Pf(t){var r=e.getThisContainer(t,!0),n=!1;switch(162===r.kind&&Ff(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),202===r.kind&&(r=e.getThisContainer(r,!1),n=!0),r.kind){case 249:nn(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 248:nn(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 162:If(t,r)&&nn(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 159:case 158:!e.hasModifier(r,32)||99===U.target&&U.useDefineForClassFields||nn(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 154:nn(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}n&&K<2&&kf(t,r);var i=wf(t,!0,r);if(Y){var a=Wa(ie);if(i===a&&n)nn(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!i){var o=nn(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(r)){var s=wf(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 wf(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)&&(!Jf(t)||e.getThisParameter(n))){var a=function(t){if(201===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent))return t.parent.left.expression.expression;if(161===t.kind&&193===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.left.expression;if(201===t.kind&&281===t.parent.kind&&193===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(201===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&&a){var o=Ev(a).symbol;if(o&&o.members&&16&o.flags)if(s=yo(o).thisType)return mf(t,s)}else if(i&&(201===n.kind||244===n.kind)&&e.getJSDocClassTag(n)){var s;return mf(t,s=yo(mi(n.symbol)).thisType)}var c=ja(n)||Rf(n);if(c)return mf(t,c)}if(e.isClassLike(n.parent)){var u,l=yi(n.parent);return mf(t,u=e.hasModifier(n,32)?Wa(l):yo(l).thisType)}if(i&&((u=function(t){var r=e.getJSDocType(t);if(r&&300===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return xl(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return xl(i.typeExpression)}(n))&&u!==Se))return mf(t,u);if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var _=yi(n);return _&&Wa(_)}if(r)return Wa(ie)}}function If(t,r){return!!e.findAncestor(t,(function(t){return e.isFunctionLikeDeclaration(t)?"quit":156===t.kind&&t.parent===r}))}function Of(t){var r=196===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=!1;if(!r)for(;n&&202===n.kind;)n=e.getSuperContainer(n,!0),i=K<2;var a=0;if(!function(t){if(!t)return!1;if(r)return 162===t.kind;if(e.isClassLike(t.parent)||193===t.parent.kind)return e.hasModifier(t,32)?161===t.kind||160===t.kind||163===t.kind||164===t.kind:161===t.kind||160===t.kind||163===t.kind||164===t.kind||159===t.kind||158===t.kind||162===t.kind;return!1}(n)){var o=e.findAncestor(t,(function(e){return e===n?"quit":154===e.kind}));return o&&154===o.kind?nn(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?nn(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):n&&n.parent&&(e.isClassLike(n.parent)||193===n.parent.kind)?nn(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):nn(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Se}if(r||162!==n.kind||Ff(t,n,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),a=e.hasModifier(n,32)||r?512:256,vn(t).flags|=a,161===n.kind&&e.hasModifier(n,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?vn(n).flags|=4096:vn(n).flags|=2048),i&&kf(t.parent,n),193===n.parent.kind)return K<2?(nn(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Se):be;var s=n.parent;if(!e.getClassExtendsHeritageElement(s))return nn(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Se;var c=yo(yi(s)),u=c&&oo(c)[0];return u?162===n.kind&&If(t,n)?(nn(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Se):512===a?ao(c):Ro(u,c.thisType):Se}function Mf(t){return 4&e.getObjectFlags(t)&&t.target===St?wc(t)[0]:void 0}function Lf(t){return Xp(t,(function(t){return 2097152&t.flags?e.forEach(t.types,Mf):Mf(t)}))}function Rf(t){if(202!==t.kind){if(e_(t)){var r=ug(t);if(r){var n=r.thisParameter;if(n)return Wa(n)}}var i=e.isInJSFile(t);if(Y||i){var a=function(e){return 161!==e.kind&&163!==e.kind&&164!==e.kind||193!==e.parent.kind?201===e.kind&&281===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=$f(a),s=a,c=o;c;){var u=Lf(c);if(u)return Wl(u,Xd(ng(a)));if(281!==s.parent.kind)break;c=$f(s=s.parent.parent)}return Bd(o?Td(o):lv(a))}var l=e.walkUpParenthesizedExpressions(t.parent);if(209===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&&vp(d)===p.symbol)return}return Bd(lv(d))}}}}}function Bf(t){var r=t.parent;if(e_(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=Jm(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return Om(i,a,i.length,be,void 0);var o=vn(n),s=o.resolvedSignature;o.resolvedSignature=ir;var c=a<i.length?_d(Ev(i[a])):t.initializer?void 0:Ee;return o.resolvedSignature=s,c}var u=ug(r);if(u){var l=r.parameters.indexOf(t)-(e.getThisParameter(r)?1:0);return t.dotDotDotToken&&e.lastOrUndefined(r.parameters)===t?Dy(u,l):xy(u,l)}}}function jf(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return xl(r);switch(t.kind){case 156:return Bf(t);case 191:return function(t){var r=t.parent.parent,n=t.propertyName||t.name,i=jf(r)||191!==r.kind&&r.initializer&&_v(r);if(i&&!e.isBindingPattern(n)&&!e.isComputedNonLiteralName(n)){var a=Au(n);if(Eo(a)){var o=wo(a);return da(i,o)}}}(t)}}function Jf(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 zf(t,r){var n=!!(2&e.getFunctionFlags(r)),i=Uf(r);if(i)return _b(t,i,n)||void 0}function Uf(e){var t=lc(e);if(t)return t;var r=cg(e);return r&&!_c(r)?uc(r):void 0}function Kf(e,t){var r=Jm(e).indexOf(t);return-1===r?void 0:Vf(e,r)}function Vf(t,r){var n=vn(t).resolvedSignature===or?or:oy(t);return e.isJsxOpeningLikeElement(t)&&0===r?ig(n,t):by(n,r)}function qf(t,r){var n=t.parent,i=n.left,a=n.operatorToken,o=n.right;switch(a.kind){case 62:if(t!==o)return;var s=function(t){var r=e.getAssignmentDeclarationKind(t);switch(r){case 0:return!0;case 5:case 1:case 6:case 3:if(t.left.symbol){var n=t.left.symbol.valueDeclaration;if(!n)return!1;var i=e.cast(t.left,e.isAccessExpression),a=e.getEffectiveTypeAnnotationNode(n);if(a)return xl(a);if(e.isIdentifier(i.expression)){var o=i.expression,s=Sn(o,o.escapedText,111551,void 0,o.escapedText,!0);if(s){if(u=e.getEffectiveTypeAnnotationNode(s.valueDeclaration)){var c=e.getElementOrPropertyAccessName(i);if(void 0!==c)return(l=Wf(xl(u),c))||!1}return!1}}return!e.isInJSFile(n)}return!0;case 2:case 4:if(!t.symbol)return!0;var u,l;if(t.symbol.valueDeclaration)if(u=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration))if(l=xl(u))return l;if(2===r)return!1;var _=e.cast(t.left,e.isAccessExpression);if(!e.isObjectLiteralMethod(e.getThisContainer(_.expression,!1)))return!1;var d=Pf(_.expression),p=e.getElementOrPropertyAccessName(_);return void 0!==p&&d&&Wf(d,p)||!1;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(r)}}(n);if(!s)return;return!0===s?Cv(i):s;case 56:case 60:var c=rg(n,r);return t===o&&(c&&c.pattern||!c&&!e.isDefaultedExpandoInitializer(n))?Cv(i):c;case 55:case 27:return t===o?rg(n,r):void 0;default:return}}function Wf(t,r){return Xp(t,(function(t){if(_s(t)){var n=ns(t),i=Ss(n)||n,a=vl(e.unescapeLeadingUnderscores(r));if(s_(a,i))return qu(t,a)}else if(3670016&t.flags){var o=Js(t,r);if(o)return c=o,262144&e.getCheckFlags(c)&&!c.type&&ca(c,0)>=0?void 0:Wa(o);if(gd(t)){var s=md(t);if(s&&mg(r)&&+r>=0)return s}return mg(r)&&Hf(t,1)||Hf(t,0)}var c}),!0)}function Hf(e,t){return Xp(e,(function(e){return Vs(e,t)}),!0)}function Gf(e,t){var r=$f(e.parent,t);if(r){if(!Po(e)){var n=Wf(r,yi(e).escapedName);if(n)return n}return fg(e.name)&&Hf(r,1)||Hf(r,0)}}function Qf(e,t){return e&&(Wf(e,""+t)||Kh(1,e,ke,void 0,!1))}function Xf(t){var r=t.parent;return e.isJsxAttributeLike(r)?rg(t):e.isJsxElement(r)?function(e,t){var r=$f(e.openingElement.tagName),n=wg(Fg(e));if(r&&!pa(r)&&n&&""!==n){var i=b_(e.children),a=i.indexOf(t),o=Wf(r,n);return o&&(1===i.length?o:Xp(o,(function(e){return nd(e)?Wu(e,vl(a)):e}),!0))}}(r,t):void 0}function Yf(t){if(e.isJsxAttribute(t)){var r=$f(t.parent);if(!r||pa(r))return;return Wf(r,t.name.escapedText)}return rg(t.parent)}function Zf(e){switch(e.kind){case 10:case 8:case 9:case 14:case 106:case 91:case 100:case 75:case 146:return!0;case 194:case 200:return Zf(e.expression);case 276:return!e.expression||Zf(e.expression)}return!1}function $f(t,r){var n=eg(e.isObjectLiteralMethod(t)?function(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(16777216&t.flags))return Gf(t,r)}(t,r):rg(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=Xp(n,Fs,!0);if(1048576&i.flags){if(e.isObjectLiteralExpression(t))return function(t,r){return M_(r,e.map(e.filter(t.properties,(function(e){return!!e.symbol&&281===e.kind&&Zf(e.initializer)&&Cp(r,e.symbol.escapedName)})),(function(e){return[function(){return Ev(e.initializer)},e.symbol.escapedName]})),s_,r)}(t,i);if(e.isJsxAttributes(t))return function(t,r){return M_(r,e.map(e.filter(t.properties,(function(e){return!!e.symbol&&273===e.kind&&Cp(r,e.symbol.escapedName)&&(!e.initializer||Zf(e.initializer))})),(function(e){return[e.initializer?function(){return Ev(e.initializer)}:function(){return Le},e.symbol.escapedName]})),s_,r)}(t,i)}return i}}function eg(t,r,n){if(t&&Yy(t,63176704)){var i=ng(r);if(i&&e.some(i.inferences,bv)){if(n&&1&n)return tg(t,i.nonFixingMapper);if(i.returnMapper)return tg(t,i.returnMapper)}}return t}function tg(t,r){return 63176704&t.flags?Wl(t,r):1048576&t.flags?bu(e.map(t.types,(function(e){return tg(e,r)})),0):2097152&t.flags?Eu(e.map(t.types,(function(e){return tg(e,r)}))):t}function rg(t,r){if(!(16777216&t.flags)){if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 242:case 156:case 159:case 158:case 191:return function(t){var r=t.parent;if(e.hasInitializer(r)&&t===r.initializer){var n=jf(r);if(n)return n;if(e.isBindingPattern(r.name))return Pa(r.name,!0,!1)}}(t);case 202:case 235:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r);if(1&n)return;var i=Uf(r);if(i){if(2&n){var a=Xp(i,Gv);return a&&bu([a,Iy(a)])}return i}}}(t);case 212:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=Uf(r);if(i)return t.asteriskToken?i:_b(0,i,0!==(2&n))}}(n);case 206:return function(e){var t=rg(e);if(t){var r=Yv(t);return r&&bu([r,Iy(r)])}}(n);case 196:if(96===n.expression.kind)return Pe;case 197:return Kf(n,t);case 199:case 217:return e.isConstTypeReference(n.type)?void 0:xl(n.type);case 209:return qf(t,r);case 281:case 282:return Gf(n,r);case 283:return $f(n.parent,r);case 192:var i=n;return Qf($f(i,r),e.indexOfNode(i.elements,t));case 210:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?rg(r,t):void 0}(t,r);case 221:return e.Debug.assert(211===n.parent.kind),function(e,t){if(198===e.parent.kind)return Kf(e.parent,t)}(n.parent,t);case 200:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?xl(a.typeExpression.type):rg(n,r);case 276:return Xf(n);case 273:case 275:return Yf(n);case 268:case 267:return function(t,r){if(e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r)return t.parent.contextualType;return Vf(t,0)}(n,r)}}}function ng(t){var r=e.findAncestor(t,(function(e){return!!e.inferenceContext}));return r&&r.inferenceContext}function ig(t,r){return 0!==Lm(r)?function(e,t){var r=Ay(e,Te);r=ag(t,Fg(t),r);var n=Ng(E.IntrinsicAttributes,t);n!==Se&&(r=Go(n,r));return r}(t,r):function(t,r){var n=Fg(r),i=(o=n,Pg(E.ElementAttributesPropertyNameContainer,o)),a=void 0===i?Ay(t,Te):""===i?uc(t):function(e,t){if(e.unionSignatures){for(var r=[],n=0,i=e.unionSignatures;n<i.length;n++){var a=uc(i[n]);if(pa(a))return a;var o=da(a,t);if(!o)return;r.push(o)}return Eu(r)}var s=uc(e);return pa(s)?s:da(s,t)}(t,i);var o;if(!a)return i&&e.length(r.attributes.properties)&&nn(r,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(i)),Te;if(pa(a=ag(r,n,a)))return a;var s=a,c=Ng(E.IntrinsicClassAttributes,r);if(c!==Se){var u=$a(c.symbol),l=uc(t);s=Go(u?Ac(c,rc([l],u,tc(u),e.isInJSFile(r))):c,s)}var _=Ng(E.IntrinsicAttributes,r);return _!==Se&&(s=Go(_,s)),s}(t,r)}function ag(t,r,n){var i,a=(i=r)&&bn(i.exports,E.LibraryManagedAttributes,788968);if(a){var o=yo(a),s=function(e){if(Sg(e.tagName))return hc(ny(e,t=Og(e)));var t,r=lv(e.tagName);return 128&r.flags?(t=Ig(r,e))?hc(ny(e,t)):Se:r}(t);if(e.length(o.typeParameters)>=2)return Ac(o,c=rc([s,n],o.typeParameters,2,e.isInJSFile(t)));if(e.length(o.aliasTypeArguments)>=2){var c=rc([s,n],o.aliasTypeArguments,2,e.isInJSFile(t));return Mc(o.aliasSymbol,c)}}return n}function og(t,r){var n=Us(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||Xs(i))break}r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])&&n--;return!Ty(t)&&Sy(t)<n}(i,r))return i}}function sg(e){return 201===e.kind||202===e.kind}function cg(t){return sg(t)||e.isObjectLiteralMethod(t)?ug(t):void 0}function ug(t){e.Debug.assert(161!==t.kind||e.isObjectLiteralMethod(t));var r=ic(t);if(r)return r;var n=$f(t,1);if(n){if(!(1048576&n.flags))return og(n,t);for(var i,a=0,o=n.types;a<o.length;a++){var s=og(o[a],t);if(s)if(i){if(!Y_(i[0],s,!1,!0,!0,n_))return;i.push(s)}else i=[s]}return i?1===i.length?i[0]:zo(i[0],i):void 0}}function lg(e){return 191===e.kind&&!!e.initializer||209===e.kind&&62===e.operatorToken.kind}function _g(t,r,n){for(var i=t.elements,a=i.length,o=[],s=!1,c=!1,u=$f(t),l=e.isAssignmentTarget(t),_=fv(t),d=0;d<a;d++){var p=i[d],f=213===p.kind&&p.expression,g=f&&Ev(f,r,n);if(g&&gd(g))o.push.apply(o,wc(g)),g.target.hasRestElement&&(d===a-1?s=!0:c=!0);else{if(l&&g){var m=Ws(g,1)||Kh(65,g,ke,void 0,!1);m&&o.push(m)}else{var y=gv(p,r,Qf(u,o.length),n);o.push(y)}f&&(d===a-1?s=!0:c=!0)}}if(!c){var v=o.length-(s?1:0),h=void 0;if(l&&v>0)return(y=Fc(du(o,v,s))).pattern=t,y;if(h=pg(o,u,s,o.length,_))return dg(h);if(n)return dg(du(o,v,s))}return dg(su(o.length?bu(o,2):W?Ve:Ee,_))}function dg(t){if(!(4&e.getObjectFlags(t)))return t;var r=t.literalType;return r||((r=t.literalType=Fc(t)).objectFlags|=1114112),r}function pg(e,t,r,n,i){if(void 0===n&&(n=e.length),void 0===i&&(i=!1),i||t&&Wp(t,ad))return du(e,n-(r?1:0),r,i)}function fg(e){switch(e.kind){case 154:return function(e){return Zy(yg(e),296)}(e);case 75:return mg(e.escapedText);case 8:case 10:return mg(e.text);default:return!1}}function gg(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function mg(e){return(+e).toString()===e}function yg(t){var r=vn(t.expression);return r.resolvedType||(r.resolvedType=Ev(t.expression),98304&r.resolvedType.flags||!Zy(r.resolvedType,12716)&&!s_(r.resolvedType,He)?nn(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):hm(t.expression,r.resolvedType,!0)),r.resolvedType}function vg(e,t,r,n){for(var i=[],a=0;a<r.length;a++)(0===n||fg(e.properties[a+t].name))&&i.push(Wa(r[a]));return Dc(i.length?bu(i,2):ke,fv(e))}function hg(t){e.Debug.assert(0!==(2097152&t.flags),"Should only get Alias here.");var r=yn(t);if(!r.immediateTarget){var n=In(t);if(!n)return e.Debug.fail();r.immediateTarget=Vn(n,!0)}return r.immediateTarget}function bg(t,r){var n=e.isAssignmentTarget(t);!function(t,r){for(var n=e.createUnderscoreEscapedMap(),i=0,a=t.properties;i<a.length;i++){var o=a[i];if(283!==o.kind){var s=o.name;if(154===s.kind&&rD(s),282===o.kind&&!r&&o.objectAssignmentInitializer)return mD(o.equalsToken,e.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(76===s.kind)return mD(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];126===l.kind&&161===o.kind||mD(l,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(l))}var _=void 0;switch(o.kind){case 282:aD(o.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 281:iD(o.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===s.kind&&hD(s),_=4;break;case 161:_=8;break;case 163:_=1;break;case 164:_=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)mD(s,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(s));else{if(!(3&_&&3&p))return mD(s,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===p||_===p)return mD(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 mD(o.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}}(t,n);for(var i=W?e.createSymbolTable():void 0,a=e.createSymbolTable(),o=[],s=Ze,c=$f(t),u=c&&c.pattern&&(189===c.pattern.kind||193===c.pattern.kind),l=fv(t),_=l?8:0,d=e.isInJSFile(t)&&!e.isInJsonFile(t),p=e.getJSDocEnumTag(t),f=!c&&d&&!p,g=$,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)&&yg(x.name)}for(var D=0,S=0;S<t.properties.length;S++){var C=t.properties[S],T=yi(C),k=C.name&&154===C.name.kind&&!e.isWellKnownSymbolSyntactically(C.name.expression)?yg(C.name):void 0;if(281===C.kind||282===C.kind||e.isObjectLiteralMethod(C)){var E=281===C.kind?mv(C,r):282===C.kind?gv(C.name,r):yv(C,r);if(d){var N=ba(C);N?(__(E,N,C),E=N):p&&p.typeExpression&&__(E,xl(p.typeExpression),C)}g|=3670016&e.getObjectFlags(E);var A=k&&Eo(k)?k:void 0,F=A?cn(4|T.flags,wo(A),4096|_):cn(4|T.flags,T.escapedName,_);if(A&&(F.nameType=A),n)(281===C.kind&&lg(C.initializer)||282===C.kind&&C.objectAssignmentInitializer)&&(F.flags|=16777216);else if(u&&!(512&e.getObjectFlags(c))){var P=Js(c,T.escapedName);P?F.flags|=16777216&P.flags:U.suppressExcessPropertyErrors||qs(c,0)||nn(C.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Hi(T),Qi(c))}F.declarations=T.declarations,F.parent=T.parent,T.valueDeclaration&&(F.valueDeclaration=T.valueDeclaration),F.type=E,F.target=T,T=F,null===i||void 0===i||i.set(F.escapedName,F)}else{if(283===C.kind){if(K<2&&Vx(C,2),o.length>0&&(s=ll(s,O(),t.symbol,g,l),o=[],a=e.createSymbolTable(),y=!1,v=!1),!xg(E=Ms(Ev(C.expression))))return nn(C,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Se;i&&kg(E,i,C),s=ll(s,E,t.symbol,g,l),D=S+1;continue}e.Debug.assert(163===C.kind||164===C.kind),Vb(C)}!k||8576&k.flags?a.set(T.escapedName,T):s_(k,He)&&(s_(k,we)?v=!0:y=!0,n&&(m=!0)),o.push(T)}if(u&&283!==t.parent.kind)for(var w=0,I=ms(c);w<I.length;w++){F=I[w];a.get(F.escapedName)||Js(s,F.escapedName)||(16777216&F.flags||nn(F.valueDeclaration||F.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.set(F.escapedName,F),o.push(F))}return s!==Ze?(o.length>0&&(s=ll(s,O(),t.symbol,g,l),o=[],a=e.createSymbolTable(),y=!1,v=!1),Xp(s,(function(e){return e===Ze?O():e}))):O();function O(){var r=y?vg(t,D,o,0):void 0,i=v?vg(t,D,o,1):void 0,s=Oi(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 xg(t){if(63176704&t.flags){var r=Ss(t);if(void 0!==r)return xg(r)}return!!(126615553&t.flags||117632&bd(t)&&xg(xd(t))||3145728&t.flags&&e.every(t.types,xg))}function Dg(t){return!e.stringContains(t,"-")}function Sg(t){return 75===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function Cg(e,t){return e.initializer?gv(e.initializer,t):Le}function Tg(e,t){for(var r=[],n=0,i=e.children;n<i.length;n++){var a=i[n];11===a.kind?a.containsOnlyTriviaWhiteSpaces||r.push(Pe):r.push(gv(a,t))}return r}function kg(t,r,n){for(var i=0,a=ms(t);i<a.length;i++){var o=a[i],s=r.get(o.escapedName),c=Wa(o);if(s&&!Yy(c,98304)&&!(Yy(c,3)&&16777216&o.flags)){var u=nn(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 Eg(t,r){return function(t,r){for(var n,i=t.attributes,a=W?e.createSymbolTable():void 0,o=e.createSymbolTable(),s=$e,c=!1,u=!1,l=4096,_=wg(Fg(t)),d=0,p=i.properties;d<p.length;d++){var f=p[d],g=f.symbol;if(e.isJsxAttribute(f)){var m=Cg(f,r);l|=3670016&e.getObjectFlags(m);var y=cn(33554436|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||void 0===a||a.set(y.escapedName,y),f.name.escapedText===_&&(u=!0)}else{e.Debug.assert(275===f.kind),o.size>0&&(s=ll(s,C(),i.symbol,l,!1),o=e.createSymbolTable()),pa(m=Ms(lv(f.expression,r)))&&(c=!0),xg(m)?(s=ll(s,m,i.symbol,l,!1),a&&kg(m,a,f)):n=n?Eu([n,m]):m}}c||o.size>0&&(s=ll(s,C(),i.symbol,l,!1));var v=266===t.parent.kind?t.parent:void 0;if(v&&v.openingElement===t&&v.children.length>0){var h=Tg(v,r);if(!c&&_&&""!==_){u&&nn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(_));var b=$f(t.attributes),x=b&&Wf(b,_),D=cn(33554436,_);D.type=1===h.length?h[0]:pg(h,x,!1)||su(bu(h)),D.valueDeclaration=e.createPropertySignature(void 0,e.unescapeLeadingUnderscores(_),void 0,void 0,void 0),D.valueDeclaration.parent=i,D.valueDeclaration.symbol=D;var S=e.createSymbolTable();S.set(_,D),s=ll(s,Oi(i.symbol,S,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,l,!1)}}return c?be:n&&s!==$e?Eu([n,s]):n||(s===$e?C():s);function C(){l|=$;var t=Oi(i.symbol,o,e.emptyArray,e.emptyArray,void 0,void 0);return t.objectFlags|=1048704|l,t}}(t.parent,r)}function Ng(e,t){var r=Fg(t),n=r&&di(r),i=n&&bn(n,e,788968);return i?yo(i):Se}function Ag(t){var r=vn(t);if(!r.resolvedSymbol){var n=Ng(E.IntrinsicElements,t);if(n!==Se){if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=Js(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):Ws(n,0)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(nn(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+E.IntrinsicElements),r.resolvedSymbol=ve)}return X&&nn(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(E.IntrinsicElements)),r.resolvedSymbol=ve}return r.resolvedSymbol}function Fg(e){var t=e&&vn(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=rn(e),n=Sn(e,r,1920,void 0,r,!1);if(n){var i=Wn(bn(di(Wn(n)),E.JSX,1920));if(i)return t&&(t.jsxNamespace=i),i;t&&(t.jsxNamespace=!1)}}return Yc(E.JSX,1920,void 0)}function Pg(t,r){var n=r&&bn(r.exports,t,788968),i=n&&yo(n),a=i&&ms(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&nn(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function wg(e){return Pg(E.ElementChildrenAttributeNameContainer,e)}function Ig(t,r){var n=Ng(E.IntrinsicElements,r);if(n!==Se){var i=t.value,a=Js(n,e.escapeLeadingUnderscores(i));if(a)return Wa(a);var o=Ws(n,0);return o||void 0}return be}function Og(t){e.Debug.assert(Sg(t.tagName));var r=vn(t);if(!r.resolvedJsxElementAttributesType){var n=Ag(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=Wa(n):2&r.jsxFlags?r.resolvedJsxElementAttributesType=Ws(yo(n),0):r.resolvedJsxElementAttributesType=Se}return r.resolvedJsxElementAttributesType}function Mg(e){var t=Ng(E.ElementClass,e);if(t!==Se)return t}function Lg(e){return Ng(E.Element,e)}function Rg(e){var t=Lg(e);if(t)return bu([t,Ae])}function Bg(t){var r,n=e.isJsxOpeningLikeElement(t);n&&function(t){Zx(t,t.typeArguments);for(var r=e.createUnderscoreEscapedMap(),n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(275!==a.kind){var o=a.name,s=a.initializer;if(r.get(o.escapedText))return mD(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(r.set(o.escapedText,!0),s&&276===s.kind&&!s.expression)return mD(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(t),r=t,0===(U.jsx||0)&&nn(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===Lg(r)&&X&&nn(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);var i=qr&&2===U.jsx?e.Diagnostics.Cannot_find_name_0:void 0,a=rn(t),o=Sn(n?t.tagName:t,a,111551,i,a,!0);if(o&&(o.isReferenced=67108863,2097152&o.flags&&!Xn(o)&&Zn(o)),n){var s=t,c=oy(s);!function(t,r,n){if(1===t)(i=Rg(n))&&I_(r,i,Yr,n.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,o);else if(0===t){(a=Mg(n))&&I_(r,a,Yr,n.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,o)}else{var i=Rg(n),a=Mg(n);if(!i||!a)return;I_(r,bu([i,a]),Yr,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)}}(Lm(s),uc(c),s)}}function jg(e,t,r){if(524288&e.flags){var n=ds(e);if(n.stringIndexInfo||n.numberIndexInfo&&mg(t)||fs(e,t)||r&&!Dg(t))return!0}else if(3145728&e.flags&&Jg(e))for(var i=0,a=e.types;i<a.length;i++){if(jg(a[i],t,r))return!0}return!1}function Jg(t){return!!(524288&t.flags&&!(512&e.getObjectFlags(t))||67108864&t.flags||1048576&t.flags&&e.some(t.types,Jg)||2097152&t.flags&&e.every(t.types,Jg))}function zg(t,r){if(function(t){if(t.expression&&e.isCommaSequence(t.expression))mD(t.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(t),t.expression){var n=Ev(t.expression,r);return t.dotDotDotToken&&n!==be&&!$_(n)&&nn(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return Se}function Ug(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function Kg(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 Vg(t,r,n,i){var a,o=e.getDeclarationModifierFlagsFromSymbol(i),s=153===t.kind?t.right:188===t.kind?t:t.name;if(r){if(K<2&&qg(i))return nn(s,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&o)return nn(s,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Hi(i),Qi(W_(i))),!1}if(128&o&&e.isThisProperty(t)&&qg(i)&&((a=e.getClassLikeDeclarationOfSymbol(vi(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 nn(s,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Hi(i),e.getTextOfIdentifierOrLiteral(a.name)),!1;if(e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))return!!e.getContainingClass(t)||(nn(s,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),!1);if(!(24&o))return!0;if(8&o)return!!ex(t,a=e.getClassLikeDeclarationOfSymbol(vi(i)))||(nn(s,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Hi(i),Qi(W_(i))),!1);if(r)return!0;var c=$b(t,(function(t){var r=yo(yi(t));return function(t,r){return q_(r,(function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&!Qa(t,W_(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 nn(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Hi(i),Qi(W_(i)||n)),!1;var l=xl(u.type);c=(262144&l.flags?vs(l):l).target}return!!(32&o)||(262144&n.flags&&(n=n.isThisType?vs(n):Ss(n)),!(!n||!Qa(n,c))||(nn(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,Hi(i),Qi(c)),!1))}function qg(e){return!!q_(e,(function(e){return!(8192&e.flags)}))}function Wg(e){return Zg(Ev(e),e)}function Hg(e){return!!(98304&(W?bd(e):e.flags))}function Gg(e){return Hg(e)?Td(e):e}function Qg(t,r){nn(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 Xg(t,r){nn(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 Yg(t,r,n){if(W&&2&t.flags)return nn(r,e.Diagnostics.Object_is_of_type_unknown),Se;var i=98304&(W?bd(t):t.flags);if(i){n(r,i);var a=Td(t);return 229376&a.flags?Se:a}return t}function Zg(e,t){return Yg(e,t,Qg)}function $g(t,r){var n=Zg(t,r);return n!==Se&&16384&n.flags&&nn(r,e.Diagnostics.Object_is_possibly_undefined),n}function em(e){return 32&e.flags?function(e){var t=Ev(e.expression),r=Fd(t,e.expression);return Ad(am(e,e.expression,Zg(r,e.expression),e.name),e,r!==t)}(e):am(e,e.expression,Wg(e.expression),e.name)}function tm(e){return am(e,e.left,Wg(e.left),e.right)}function rm(t){for(;200===t.parent.kind;)t=t.parent;return e.isCallOrNewExpression(t.parent)&&t.parent.expression===t}function nm(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 im(e,t){return Js(e,t.escapedName)}function am(t,r,n,i){var a=vn(r).resolvedSymbol,o=e.getAssignmentTargetKind(t),s=Fs(0!==o||rm(t)?Bd(n):n);e.isPrivateIdentifier(i)&&Vx(t,262144);var c,l,_=pa(s)||s===Ue;if(e.isPrivateIdentifier(i)){var d=nm(i.escapedText,i);if(_){if(d)return s;if(!e.getContainingClass(i))return mD(i,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),be}if(!(c=d?im(n,d):void 0)&&function(t,r,n){var i,a=ms(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 o=En(r);if(i){var s=i.valueDeclaration,c=e.getContainingClass(s);if(e.Debug.assert(!!c),n){var l=n.valueDeclaration,_=e.getContainingClass(l);if(e.Debug.assert(!!_),e.findAncestor(_,(function(e){return c===e}))){var d=nn(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,o,Qi(t));return e.addRelatedInfo(d,e.createDiagnosticForNode(l,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,o),e.createDiagnosticForNode(s,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}}return nn(r,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,En(c.name||u)),!0}return!1}(n,i,d))return Se}else{if(_)return e.isIdentifier(r)&&a&&Cf(a,t),s;c=Js(s,i.escapedText)}if(!e.isIdentifier(r)||!a||c&&xx(c)||Cf(a,t),c){if(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 159:return!0;case 281:case 161:case 163:case 164:case 283:case 154:case 221:case 276:case 273:case 274:case 275:case 268:case 216:case 279:return!1;default:return!e.isExpressionNode(t)&&"quit"}}))}(r)||e.isAccessExpression(r)&&e.isAccessExpression(r.expression)||xn(a,n)||function(e){if(!(32&e.parent.flags))return!1;var t=Wa(e.parent);for(;;){if(!(t=t.symbol&&sm(t)))return!1;var r=Js(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(t)?245!==a.kind||169===r.parent.kind||8388608&a.flags||xn(a,n)||(i=nn(n,e.Diagnostics.Class_0_used_before_its_declaration,o)):i=nn(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))}(c,t,i),fm(c,t,104===r.kind),vn(t).resolvedSymbol=c,Vg(t,102===r.kind,s,c),Hy(t,c,o))return nn(i,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(i)),Se;l=Sf(Wa(c),t)}else{var p=e.isPrivateIdentifier(i)||0!==o&&ju(n)&&!zu(n)?void 0:qs(s,0);if(!p||!p.type)return Mu(n)?be:n.symbol===ie?(ie.exports.has(i.escapedText)&&418&ie.exports.get(i.escapedText).flags?nn(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(i.escapedText),Qi(n)):X&&nn(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Qi(n)),be):(i.escapedText&&!An(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(!Js(s,t.escapedText)&&!qs(s,0)){n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Qi(s));break}}if(cm(t.escapedText,r))n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_is_a_static_member_of_type_1,e.declarationNameToString(t),Qi(r));else{var c=Qv(r);if(c&&Js(c,t.escapedText))n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Qi(r)),i=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);else{var u=um(t,r);if(void 0!==u){var l=e.symbolName(u);n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e.declarationNameToString(t),Qi(r),l),i=u.valueDeclaration&&e.createDiagnosticForNode(u.valueDeclaration,e.Diagnostics._0_is_declared_here,l)}else n=e.chainDiagnosticMessages(js(n,r),e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Qi(r))}}var _=e.createDiagnosticForNodeFromMessageChain(t,n);i&&e.addRelatedInfo(_,i);qr.add(_)}(i,zu(n)?s:n),Se);p.isReadonly&&(e.isAssignmentTarget(t)||e.isDeleteTarget(t))&&nn(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Qi(s)),l=p.type}return om(t,c,l,i)}function om(t,r,n,i){var a=e.getAssignmentTargetKind(t);if(!e.isAccessExpression(t)||1===a||r&&!(98311&r.flags)&&!(8192&r.flags&&1048576&n.flags))return n;var o=!1;if(W&&Q&&104===t.expression.kind){var s=r&&r.valueDeclaration;if(s&&Tb(s)){var c=yf(t);162!==c.kind||c.parent!==s.parent||8388608&s.flags||(o=!0)}}else W&&r&&r.valueDeclaration&&e.isPropertyAccessExpression(r.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(r.valueDeclaration)&&yf(t)===yf(r.valueDeclaration)&&(o=!0);var u=mf(t,n,o?Cd(n):n);return o&&!(32768&bd(n))&&32768&bd(u)?(nn(i,e.Diagnostics.Property_0_is_used_before_being_assigned,Hi(r)),n):a?ld(u):u}function sm(e){var t=oo(e);if(0!==t.length)return Eu(t)}function cm(t,r){var n=r.symbol&&Js(Wa(r.symbol),t);return void 0!==n&&n.valueDeclaration&&e.hasModifier(n.valueDeclaration,32)}function um(t,r){return pm(e.isString(t)?t:e.idText(t),ms(r),111551)}function lm(t,r){var n=um(t,r);return n&&e.symbolName(n)}function _m(t,r,n){return e.Debug.assert(void 0!==r,"outername should always be defined"),Cn(t,r,n,void 0,r,!1,!1,(function(t,n,i){return e.Debug.assertEqual(r,n,"name should equal outerName"),bn(t,n,i)||pm(e.unescapeLeadingUnderscores(n),e.arrayFrom(t.values()),i)}))}function dm(t,r){return r.exports&&pm(e.idText(t),li(r),2623475)}function pm(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(yn(e).target!==he)return Hn(e)}(t);if(i&&i.flags&n)return r}return}))}function fm(t,r,n){var i=t&&106500&t.flags&&t.valueDeclaration;if(i){var a=e.hasModifier(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)?yn(t).target:t).isReferenced=67108863}}}function gm(t,r,n,i){if(i===Se||pa(i))return!0;var a=Js(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 Vg(t,r,i,a)}return e.isInJSFile(t)&&0!==(1048576&i.flags)&&i.types.some((function(e){return gm(t,r,n,e)}))}function mm(t){var r=t.initializer;if(243===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return yi(n)}else if(75===r.kind)return vp(r)}function ym(e){return 32&e.flags?function(e){var t=Ev(e.expression),r=Fd(t,e.expression);return Ad(vm(e,Zg(r,e.expression)),e,r!==t)}(e):vm(e,Wg(e.expression))}function vm(t,r){var n=0!==e.getAssignmentTargetKind(t)||rm(t)?Bd(r):r,i=t.argumentExpression,a=Ev(i);if(n===Se||n===Ue)return n;if(ev(n)&&!e.isStringLiteralLike(i))return nn(i,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Se;var o=Hu(n,function(t){var r,n=e.skipParentheses(t);if(75===n.kind){var i=vp(n);if(3&i.flags)for(var a=t,o=t.parent;o;){if(231===o.kind&&a===o.statement&&mm(o)===i&&(Ws(r=Cv(o.expression),1)&&!Ws(r,0)))return!0;a=o,o=o.parent}}return!1}(i)?we:a,t,e.isAssignmentTarget(t)?2|(ju(n)&&!zu(n)?1:0):0)||Se;return Uv(om(t,o.symbol,o,i),t)}function hm(t,r,n){if(r===Se)return!1;if(!e.isWellKnownSymbolSyntactically(t))return!1;if(0===(12288&r.flags))return n&&nn(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=vp(i);if(!a)return!1;var o=$c(!0);return!!o&&(a===o||(n&&nn(i,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),!1))}function bm(t){return e.isCallOrNewExpression(t)||e.isTaggedTemplateExpression(t)||e.isJsxOpeningLikeElement(t)}function xm(t){return bm(t)&&e.forEach(t.typeArguments,Ub),198===t.kind?Ev(t.template):e.isJsxOpeningLikeElement(t)?Ev(t.attributes):157!==t.kind&&e.forEach(t.arguments,(function(e){Ev(e)})),ir}function Dm(e){return xm(e),ar}function Sm(e){return!!e&&(213===e.kind||220===e.kind&&e.isSpread)}function Cm(t){return e.findIndex(t,Sm)}function Tm(e){return!!(16384&e.flags)}function km(t,r,n,i){var a;void 0===i&&(i=!1);var o=!1,s=Sy(n),c=Cy(n);if(198===t.kind)if(a=r.length,211===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(157===t.kind)a=zm(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(197===t.kind),0===Cy(n);a=i?r.length+1:r.length,o=t.arguments.end===t.end;var _=Cm(r);if(_>=0)return _>=Cy(n)&&(Ty(n)||_<Sy(n))}if(!Ty(n)&&a>s)return!1;if(o||a>=c)return!0;for(var d=a;d<c;d++){if(131072&Gp(by(n,d),Tm).flags)return!1}return!0}function Em(t,r){var n=e.length(t.typeParameters),i=tc(t.typeParameters);return!e.some(r)||r.length>=i&&r.length<=n}function Nm(e){return Fm(e,0,!1)}function Am(e){return Fm(e,0,!1)||Fm(e,1,!1)}function Fm(e,t,r){if(524288&e.flags){var n=ds(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 Pm(t,r,n,i){var a=Vd(t.typeParameters,t,0,i),o=ky(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return Ud(s?Rl(r,s):r,t,(function(e,t){sp(a.inferences,e,t)})),n||Kd(r,t,(function(e,t){sp(a.inferences,e,t,32)})),pc(t,mp(a),e.isInJSFile(r.declaration))}function wm(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=ig(t,e),a=uv(e.attributes,i,n,r);return sp(n.inferences,a,i),mp(n)}(t,r,i,a);if(157!==t.kind){var o=rg(t);if(o){var s=ng(t),c=Wl(o,Xd(function(t,r){return void 0===r&&(r=0),t&&qd(e.map(t.inferences,Qd),t.signature,t.flags|r,t.compareTypes)}(s,1))),u=Nm(c),l=u&&u.typeParameters?hc(fc(u,u.typeParameters)):c,_=uc(r);sp(a.inferences,l,_,32);var d=Vd(r.typeParameters,r,a.flags),p=Wl(o,s&&s.returnMapper);sp(d.inferences,p,_),a.returnMapper=e.some(d.inferences,bv)?Xd(function(t){var r=e.filter(t.inferences,bv);return r.length?qd(e.map(r,Qd),t.signature,t.flags,t.compareTypes):void 0}(d)):void 0}}var f=sc(r);if(f){var g=Bm(t),m=g?Ev(g):Je;sp(a.inferences,m,f)}for(var y=Ey(r),v=y?Math.min(Sy(r)-1,n.length):n.length,h=0;h<v;h++){var b=n[h];if(215!==b.kind){var x=by(r,h),D=uv(b,x,a,i);sp(a.inferences,D,x)}}if(y){var S=Om(n,v,n.length,y,a);sp(a.inferences,S,y)}return mp(a)}function Im(e){return 1048576&e.flags?Xp(e,Im):63176705&e.flags||td(e)?e:gd(e)?du(wc(e),e.target.minLength,e.target.hasRestElement,!1,e.target.associatedNames):su(Wu(e,we))}function Om(t,r,n,i,a){if(r>=n-1){var o=t[n-1];if(Sm(o))return 220===o.kind?su(o.type):Im(uv(o.expression,i,a,0))}for(var s=[],c=-1,u=r;u<n;u++){var l=Wu(i,vl(u-r)),_=uv(t[u],l,a,0);c<0&&Sm(t[u])&&(c=u-r);var d=Yy(l,4325372);s.push(d?ml(_):_d(_))}return c<0?du(s):du(e.append(s.slice(0,c),bu(s.slice(c))),c,!0)}function Mm(t,r,n,i){for(var a,o=e.isInJSFile(t.declaration),s=t.typeParameters,c=rc(e.map(r,xl),s,tc(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=kl(s,c));var p=c[u];if(!__(p,Ro(Wl(l,a),p),n?r[u]:void 0,d,_))return}}return c}function Lm(t){if(Sg(t.tagName))return 2;var r=Fs(Ev(t.tagName));return e.length(Us(r,1))?0:e.length(Us(r,0))?1:2}function Rm(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=ig(r,t),u=uv(t.attributes,c,void 0,i);return function(){var r,n=e.isJsxOpeningElement(t)||e.isJsxSelfClosingElement(t)&&!Sg(t.tagName)?Ev(t.tagName):void 0;if(!n)return!0;var i=Us(n,0);if(!e.length(i))return!0;var o=Ux(t);if(!o)return!0;var c=ti(o,111551,!0,!1,t);if(!c)return!0;var u=Us(Wa(c),0);if(!e.length(u))return!0;for(var l=!1,_=0,d=0,p=u;d<p.length;d++){var f=Us(by(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,Ty(y))return!0;var v=Sy(y);v>_&&(_=v)}}if(!l)return!0;for(var h=1/0,b=0,x=i;b<x.length;b++){var D=Cy(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),_),C=null===(r=nx(t.tagName))||void 0===r?void 0:r.valueDeclaration;C&&e.addRelatedInfo(S,e.createDiagnosticForNode(C,e.Diagnostics._0_is_declared_here,e.entityNameToString(t.tagName))),s&&s.skipLogging&&(s.errors||(s.errors=[])).push(S),s.skipLogging||qr.add(S)}return!1}()&&p_(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=sc(n);if(u&&u!==Je&&197!==t.kind){var l=Bm(t),_=void 0;l?(_=Ev(l),e.isOptionalChainRoot(l.parent)?_=Td(_):e.isOptionalChain(l.parent)&&(_=Nd(_))):_=Je;var 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(!I_(_,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=Ey(n),m=g?Math.min(Sy(n)-1,r.length):r.length,y=0;y<m;y++){var v=r[y];if(215!==v.kind){var h=by(n,y),b=uv(v,h,void 0,a),x=4&a?Id(b):b;if(!p_(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"),S(v,x,h),c.errors||e.emptyArray}}if(g){var D=Om(r,m,r.length,g,void 0);d=o?m<r.length?r[m]:t:void 0;if(!I_(D,g,i,d,f,void 0,c))return e.Debug.assert(!o||!!c.errors,"rest parameter should have errors when reporting errors"),S(d,D,g),c.errors||e.emptyArray}return;function S(t,r,n){if(t&&o&&c.errors&&c.errors.length){if(Gv(n))return;var a=Gv(r);a&&F_(a,n,i)&&e.addRelatedInfo(c.errors[0],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await))}}}function Bm(t){if(196===t.kind){var r=e.skipOuterExpressions(t.expression);if(e.isAccessExpression(r))return r.expression}}function jm(t,r,n){var i=e.createNode(220,t.pos,t.end);return i.parent=t,i.type=r,i.isSpread=n||!1,i}function Jm(t){if(198===t.kind){var r=t.template,n=[jm(r,qt||(qt=Zc("TemplateStringsArray",0,!0))||Ze)];return 211===r.kind&&e.forEach(r.templateSpans,(function(e){n.push(e.expression)})),n}if(157===t.kind)return function(t){var r=t.parent,n=t.expression;switch(r.kind){case 245:case 214:return[jm(n,Wa(yi(r)))];case 156:var i=r.parent;return[jm(n,162===r.parent.kind?Wa(yi(i)):Se),jm(n,be),jm(n,we)];case 159:case 161:case 163:case 164:var a=159!==r.kind&&0!==K;return[jm(n,sx(r)),jm(n,cx(r)),jm(n,a?ou(ix(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=i.length;if(a&&Sm(i[a-1])&&Cm(i)===a-1){var o=i[a-1],s=hr?Ev(o.expression):lv(o.expression);if(gd(s)){var c=wc(s),u=s.target.hasRestElement?c.length-1:-1,l=e.map(c,(function(e,t){return jm(o,e,t===u)}));return e.concatenate(i.slice(0,a-1),l)}}return i}function zm(t,r){switch(t.parent.kind){case 245:case 214:return 1;case 159:return 2;case 161:case 163:case 164:return 0===K||r.parameters.length<=2?2:3;case 156:return 3;default:return e.Debug.fail()}}function Um(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 Km(t,r,n,i,a,o){if(e.isCallExpression(t)){var s=Um(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 Vm(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=Cy(d),f=Sy(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,Ty),v=y?a:a<o?a+"-"+o:a,h=Cm(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:e.Diagnostics.Expected_0_arguments_but_got_1;if(i&&Cy(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.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 Km(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=Km(t,b,v,u);return m?e.addRelatedInfo(D,m):D}if(y||h){if(g=e.createNodeArray(n),h&&u){var S=e.elementAt(n,Cm(n)+1)||void 0;g=e.createNodeArray(n.slice(o>u&&S?n.indexOf(S):Math.min(o,n.length-1)))}}else g=e.createNodeArray(n.slice(o));g.pos=e.first(g).pos,g.end=e.last(g).end,g.end===g.pos&&g.end++;var C=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),g,b,v,u);return m?e.addRelatedInfo(C,m):C}function qm(t,r,n,i,a,o){var s,c=198===t.kind,u=157===t.kind,l=e.isJsxOpeningLikeElement(t),_=!n;u||(s=t.typeArguments,(c||l||102!==t.expression.kind)&&e.forEach(s,Ub));var d=n||[];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&&yi(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?Uo(d,n):d)}}(r,d,a),!d.length)return _&&qr.add(Km(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Dm(t);var p,f,g,m,y=Jm(t),v=1===d.length&&!d[0].typeParameters,h=u||v||!e.some(y,Yl)?0:4,b=!!(16&i)&&196===t.kind&&t.arguments.hasTrailingComma;if(d.length>1&&(m=q(d,Qr,b)),m||(m=q(d,Yr,b)),m)return m;if(_)if(p)if(1===p.length||p.length>3){var x,D=p[p.length-1];p.length>3&&(x=e.chainDiagnosticMessages(x,e.Diagnostics.The_last_overload_gave_the_following_error),x=e.chainDiagnosticMessages(x,e.Diagnostics.No_overload_matches_this_call));var S=Rm(t,y,D,Yr,0,!0,(function(){return x}));if(S)for(var C=0,T=S;C<T.length;C++){var k=T[C];D.declaration&&p.length>3&&e.addRelatedInfo(k,e.createDiagnosticForNode(D.declaration,e.Diagnostics.The_last_overload_is_declared_here)),qr.add(k)}else e.Debug.fail("No error for last overload signature")}else{for(var E=[],N=0,A=Number.MAX_VALUE,F=0,P=0,w=function(r){var n=Rm(t,y,r,Yr,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,P+1,d.length,Gi(r))}));n?(n.length<=A&&(A=n.length,F=P),N=Math.max(N,n.length),E.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),P++},I=0,O=p;I<O.length;I++){w(O[I])}var M=N>1?E[F]:e.flatten(E);e.Debug.assert(M.length>0,"No errors reported for 3 or fewer overload signatures");var L=e.chainDiagnosticMessages(e.map(M,(function(e){return"string"===typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),R=e.flatMap(M,(function(e){return e.relatedInformation}));if(e.every(M,(function(e){return e.start===M[0].start&&e.length===M[0].length&&e.file===M[0].file}))){var J=M[0],z=J.file,U=J.start,K=J.length;qr.add({file:z,start:U,length:K,code:L.code,category:L.category,messageText:L,relatedInformation:R})}else qr.add(e.createDiagnosticForNodeFromMessageChain(t,L,R))}else if(f)qr.add(Vm(t,[f],y));else if(g)Mm(g,t.typeArguments,!0,o);else{var V=e.filter(r,(function(e){return Em(e,s)}));0===V.length?qr.add(function(t,r,n){var i=n.length;if(1===r.length){var a=tc((_=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=tc((_=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,r,s)):u?o&&qr.add(Km(t,o)):qr.add(Vm(t,V,y))}return function(t,r,n,i){return e.Debug.assert(r.length>0),Vb(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=Sy(a);if(Ty(a)||o>=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===ae?n.length:ae),a=r[i],o=a.typeParameters;if(!o)return a;var s=bm(t)?t.typeArguments:void 0,c=s?gc(a,function(e,t,r){var n=e.map(ix);for(;n.length>t.length;)n.pop();for(;n.length<t.length;)n.push(vs(t[n.length])||gp(r));return n}(s,o,e.isInJSFile(t))):function(t,r,n,i){var a=Vd(r,n,e.isInJSFile(t)?2:0),o=wm(t,n,i,12,a);return gc(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=Hm(n,n.map(vy)));for(var i=e.minAndMax(t,Wm),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(Hm(n,e.mapDefined(t,(function(e){return xy(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=su(bu(e.mapDefined(t,dc),2));s.push(Gm(l,d)),_|=1}t.some(j)&&(_|=2);return jo(t[0].declaration,void 0,r,s,Eu(t.map(uc)),void 0,a,_)}(r)}(t,d,y,!!n);function q(r,n,i){if(void 0===i&&(i=!1),p=void 0,f=void 0,g=void 0,v){var a=r[0];if(e.some(s)||!km(t,y,a,i))return;return Rm(t,y,a,n,0,!1,void 0)?void(p=[a]):a}for(var o=0;o<r.length;o++){if(Em(a=r[o],s)&&km(t,y,a,i)){var c=void 0,u=void 0;if(a.typeParameters){var l=void 0;if(e.some(s)){if(!(l=Mm(a,s,!1))){g=a;continue}}else u=Vd(a.typeParameters,a,e.isInJSFile(t)?2:0),l=wm(t,a,y,8|h,u),h|=4&u.flags?8:0;if(c=pc(a,l,e.isInJSFile(a.declaration),u&&u.inferredTypeParameters),Ey(a)&&!km(t,y,c,i)){f=c;continue}}else c=a;if(!Rm(t,y,c,n,h,!1,void 0)){if(h){if(h=0,u)if(c=pc(a,l=wm(t,a,y,h,u),e.isInJSFile(a.declaration),u&&u.inferredTypeParameters),Ey(a)&&!km(t,y,c,i)){f=c;continue}if(Rm(t,y,c,n,h,!1,void 0)){(p||(p=[])).push(c);continue}}return r[o]=c,c}(p||(p=[])).push(c)}}}}function Wm(e){var t=e.parameters.length;return B(e)?t-1:t}function Hm(e,t){return Gm(e,bu(t,2))}function Gm(t,r){return wd(e.first(t),r)}function Qm(e){return!(!e.typeParameters||!wx(uc(e)))}function Xm(e,t,r,n){return pa(e)||pa(t)&&!!(262144&e.flags)||!r&&!n&&!(1179648&t.flags)&&s_(e,ft)}function Ym(t,r,n){if(t.arguments&&K<1){var i=Cm(t.arguments);i>=0&&nn(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=Wg(t.expression);if(a===Ue)return sr;if((a=Fs(a))===Se)return Dm(t);if(pa(a))return t.typeArguments&&nn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),xm(t);var o=Us(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedModifierFlags(n,24);if(!i||162!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=yo(n.parent.symbol);if(!ex(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=ix(s);if(function t(r,n){var i=oo(n);if(!e.length(i))return!1;var a=i[0];if(2097152&a.flags){for(var o=Yo(a.types),s=0,c=0,u=a.types;c<u.length;c++){var l=u[c];if(!o[s]&&3&e.getObjectFlags(l)){if(l.symbol===r)return!0;if(t(r,l))return!0}s++}return!1}if(a.symbol===r)return!0;return t(r,a)}(n.parent.symbol,c))return!0}return 8&i&&nn(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Qi(o)),16&i&&nn(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Qi(o)),!1}return!0}(t,o[0]))return Dm(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasModifier(s,128)?(nn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Dm(t)):qm(t,o,r,n,0)}var c=Us(a,0);if(c.length){var u=qm(t,c,r,n,0);return X||(u.declaration&&!sy(u.declaration)&&uc(u)!==Je&&nn(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),sc(u)===Je&&nn(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),u}return $m(t.expression,a,1),Dm(t)}function Zm(t,r){var n,i=0===r,a=Yv(t),o=a&&Us(a,r).length>0;if(1048576&t.flags){for(var s=!1,c=0,u=t.types;c<u.length;c++){var l=u[c];if(0!==Us(l,r).length){if(s=!0,n)break}else if(n||(n=e.chainDiagnosticMessages(n,i?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Qi(l)),n=e.chainDiagnosticMessages(n,i?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,Qi(t))),s)break}s||(n=e.chainDiagnosticMessages(void 0,i?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,Qi(t))),n||(n=e.chainDiagnosticMessages(n,i?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Qi(t)))}else n=e.chainDiagnosticMessages(n,i?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Qi(t));return{messageChain:e.chainDiagnosticMessages(n,i?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable),relatedMessage:o?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function $m(t,r,n,i){var a=Zm(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=Um(t.parent,!0),l=u.start,_=u.length;c.start=l,c.length=_}qr.add(c),ey(r,n,i?e.addRelatedInfo(c,i):c)}function ey(t,r,n){if(t.symbol){var i=yn(t.symbol).originatingImport;if(i&&!e.isImportCall(i)){var a=Us(Wa(yn(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 ty(t){switch(t.parent.kind){case 245:case 214:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 156:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 159:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 161:case 163:case 164:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function ry(t,r,n){var i=Ev(t.expression),a=Fs(i);if(a===Se)return Dm(t);var o,s,c=Us(a,0),u=Us(a,1).length;if(Xm(i,a,c.length,u))return xm(t);if(o=t,(s=c).length&&e.every(s,(function(e){return 0===e.minArgumentCount&&!B(e)&&e.parameters.length<zm(o,e)}))){var l=e.getTextOfNode(t.expression,!1);return nn(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),Dm(t)}var _=ty(t);if(!c.length){var d=Zm(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)),qr.add(f),ey(a,0,f),Dm(t)}return qm(t,c,r,n,0,_)}function ny(t,r){var n=Fg(t),i=n&&di(n),a=i&&bn(i,E.Element,788968),o=a&&te.symbolToEntityName(a,788968,t),s=e.createFunctionTypeNode(void 0,[e.createParameter(void 0,void 0,void 0,"props",void 0,te.typeToTypeNode(r,t))],o?e.createTypeReferenceNode(o,void 0):e.createKeywordTypeNode(125)),c=cn(1,"props");return c.type=r,jo(s,void 0,void 0,[c],a?yo(a):Se,void 0,1,0)}function iy(t,r,n){if(Sg(t.tagName)){var i=Og(t),a=ny(t,i);return d_(uv(t.attributes,ig(a,t),void 0,0),i,t.tagName,t.attributes),a}var o=Ev(t.tagName),s=Fs(o);if(s===Se)return Dm(t);var c=function t(r,n){if(4&r.flags)return[ir];if(128&r.flags){var i=Ig(r,n);return i?[ny(n,i)]:(nn(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,"JSX."+E.IntrinsicElements),e.emptyArray)}var a=Fs(r),o=Us(a,1);return 0===o.length&&(o=Us(a,0)),0===o.length&&1048576&a.flags&&(o=Wo(e.map(a.types,(function(e){return t(e,n)})))),o}(o,t);return Xm(o,s,c.length,0)?xm(t):0===c.length?(nn(t.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(t.tagName)),Dm(t)):qm(t,c,r,n,0)}function ay(t,r,n){switch(t.kind){case 196:return function(t,r,n){if(102===t.expression.kind){var i=Of(t.expression);if(pa(i)){for(var a=0,o=t.arguments;a<o.length;a++){Ev(o[a])}return ir}if(i!==Se){var s=e.getEffectiveBaseTypeNode(e.getContainingClass(t));if(s)return qm(t,io(i,s.typeArguments,s),r,n,0)}return xm(t)}var c,u=Ev(t.expression);if(e.isCallChain(t)){var l=Fd(u,t.expression);c=l===u?0:e.isOutermostOptionalChain(t)?8:4,u=l}else c=0;if((u=Yg(u,t.expression,Xg))===Ue)return sr;var _=Fs(u);if(_===Se)return Dm(t);var d=Us(_,0),p=Us(_,1).length;if(Xm(u,_,d.length,p))return u!==Se&&t.typeArguments&&nn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),xm(t);if(!d.length){if(p)nn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Qi(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))}$m(t.expression,_,0,f)}return Dm(t)}return 8&n&&!t.typeArguments&&d.some(Qm)?(hv(t,n),or):d.some((function(t){return e.isInJSFile(t.declaration)&&!!e.getJSDocClassTag(t.declaration)}))?(nn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Qi(u)),Dm(t)):qm(t,d,r,n,c)}(t,r,n);case 197:return Ym(t,r,n);case 198:return function(e,t,r){var n=Ev(e.tag),i=Fs(n);if(i===Se)return Dm(e);var a=Us(i,0),o=Us(i,1).length;return Xm(n,i,a.length,o)?xm(e):a.length?qm(e,a,t,r,0):($m(e.tag,i,0),Dm(e))}(t,r,n);case 157:return ry(t,r,n);case 268:case 267:return iy(t,r,n)}throw e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function oy(e,t,r){var n=vn(e),i=n.resolvedSignature;if(i&&i!==or&&!t)return i;n.resolvedSignature=or;var a=ay(e,t,r||0);return a!==or&&(n.resolvedSignature=vr===hr?a:i),a}function sy(t){if(!t||!e.isInJSFile(t))return!1;var r=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?t:e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?t.initializer:void 0;if(r){if(e.getJSDocClassTag(t))return!0;var n=yi(r);return!!n&&e.hasEntries(n.members)}return!1}function cy(t,r){if(r){var n=yn(r);if(!n.inferredClassSymbol||!n.inferredClassSymbol.has(""+w(t))){var i=e.isTransientSymbol(t)?t:_n(t);return i.exports=i.exports||e.createSymbolTable(),i.members=i.members||e.createSymbolTable(),i.flags|=32&r.flags,e.hasEntries(r.exports)&&gn(i.exports,r.exports),e.hasEntries(r.members)&&gn(i.members,r.members),(n.inferredClassSymbol||(n.inferredClassSymbol=e.createMap())).set(""+w(i),i),i}return n.inferredClassSymbol.get(""+w(t))}}function uy(t,r){Zx(t,t.typeArguments)||$x(t.arguments);var n=oy(t,void 0,r);if(n===or)return Ke;if(102===t.expression.kind)return Je;if(197===t.kind){var i=n.declaration;if(i&&162!==i.kind&&166!==i.kind&&171!==i.kind&&!e.isJSDocConstructSignature(i)&&!sy(i))return X&&nn(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),be}if(e.isInJSFile(t)&&py(t))return function(e){var t=ni(e,e);if(t){var r=si(t);if(r)return Wa(r)}return be}(t.arguments[0]);var a=uc(n);if(12288&a.flags&&ly(t))return hl(e.walkUpParenthesizedExpressions(t.parent));if(196===t.kind&&226===t.parent.kind&&16384&a.flags&&cc(n))if(e.isDottedName(t.expression)){if(!df(t)){var o=nn(t.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);_f(t.expression,o)}}else nn(t.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(e.isInJSFile(t)){var s=e.getDeclarationOfExpando(t);if(s){var c=yi(s);if(c&&e.hasEntries(c.exports)){var u=Oi(c,c.exports,e.emptyArray,e.emptyArray,void 0,void 0);return u.objectFlags|=16384,Eu([a,u])}}}return a}function ly(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=$c(!1);return!!n&&n===Sn(r,"Symbol",111551,void 0,void 0,!1)}function _y(t){if($x(t.arguments)||function(t){if(V===e.ModuleKind.ES2015)return mD(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 mD(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;if(1!==r.length)return mD(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument);if(Gx(r),e.isSpreadElement(r[0]))return mD(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return Oy(t,be);for(var r=t.arguments[0],n=lv(r),i=1;i<t.arguments.length;++i)lv(t.arguments[i]);(32768&n.flags||65536&n.flags||!s_(n,Pe))&&nn(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Qi(n));var a=ni(t,r);if(a){var o=ci(a,r,!0,!1);if(o)return Oy(t,dy(Wa(o),o,a))}return Oy(t,be)}function dy(t,r,n){if(q&&t&&t!==Se){var i=t;if(!i.syntheticType)if(jn(e.find(n.declarations,e.isSourceFile),n,!1)){var a=e.createSymbolTable(),o=cn(2097152,"default");o.nameType=vl("default"),o.target=Wn(r),a.set("default",o);var s=cn(2048,"__type"),c=Oi(s,a,e.emptyArray,e.emptyArray,void 0,void 0);s.type=c,i.syntheticType=xg(t)?ll(t,c,s,0,!1):c}else i.syntheticType=t;return i.syntheticType}return t}function py(t){if(!e.isRequireCall(t,!0))return!1;if(!e.isIdentifier(t.expression))return e.Debug.fail();var r=Sn(t.expression,t.expression.escapedText,111551,void 0,void 0,!0);if(r===se)return!0;if(2097152&r.flags)return!1;var n=16&r.flags?244:3&r.flags?242:0;if(0!==n){var i=e.getDeclarationOfKind(r,n);return!!i&&!!(8388608&i.flags)}return!1}function fy(t){return function(t){if(t.questionDotToken||32&t.flags)return mD(t.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);return!1}(t)||Zx(t,t.typeArguments),K<2&&Vx(t,131072),uc(oy(t))}function gy(t,n,i,a){var o=Ev(i,a);if(e.isConstTypeReference(n))return function t(r){switch(r.kind){case 10:case 14:case 8:case 9:case 106:case 91:case 192:case 193:return!0;case 200:return t(r.expression);case 207:var n=r.operator,i=r.operand;return 40===n&&(8===i.kind||9===i.kind)||39===n&&8===i.kind;case 194:case 195:var a=r.expression;if(e.isIdentifier(a)){var o=nx(a);return o&&2097152&o.flags&&(o=Hn(o)),!!(o&&384&o.flags&&1===_o(o))}}return!1}(i)||nn(i,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),ml(o);Ub(n),o=Id(ld(o));var s=xl(n);r&&s!==Se&&(u_(s,Bd(o))||D_(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 my(e){return 32&e.flags?function(e){var t=Ev(e.expression),r=Fd(t,e.expression);return Ad(Td(r),e,r!==t)}(e):Td(Ev(e.expression))}function yy(t){return function(t){var r=t.name.escapedText;switch(t.keywordToken){case 99:if("target"!==r)return mD(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 96:if("meta"!==r)mD(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),99===t.keywordToken?function(t){var r=e.getNewTargetContainer(t);return r?162===r.kind?Wa(yi(r.parent)):Wa(yi(r)):(nn(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Se)}(t):96===t.keywordToken?function(t){V!==e.ModuleKind.ESNext&&V!==e.ModuleKind.System&&nn(t,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_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 Wt||(Wt=Zc("ImportMeta",0,!0))||Ze}():Se}(t):e.Debug.assertNever(t.keywordToken)}function vy(t){var r=Wa(t);if(W){var n=t.valueDeclaration;if(n&&e.hasInitializer(n))return Cd(r)}return r}function hy(e,t){var r=e.parameters.length-(B(e)?1:0);if(t<r)return e.parameters[t].escapedName;var n=e.parameters[r]||ve,i=Wa(n);if(gd(i)){var a=i.target.associatedNames,o=t-r;return a&&a[o]||n.escapedName+"_"+o}return n.escapedName}function by(e,t){return xy(e,t)||be}function xy(e,t){var r=e.parameters.length-(B(e)?1:0);if(t<r)return vy(e.parameters[t]);if(B(e)){var n=Wa(e.parameters[r]),i=t-r;if(!gd(n)||n.target.hasRestElement||i<wc(n).length)return Wu(n,vl(i))}}function Dy(e,t){var r=Sy(e),n=ky(e),i=r-(n?1:0);if(n&&t===i)return n;for(var a=[],o=[],s=t;s<i;s++)a.push(by(e,s)),o.push(hy(e,s));n&&(a.push(Wu(n,we)),o.push(hy(e,i)));var c=Cy(e);return du(a,c<t?0:c-t,!!n,!1,o)}function Sy(e){var t=e.parameters.length;if(B(e)){var r=Wa(e.parameters[t-1]);if(gd(r))return t+wc(r).length-1}return t}function Cy(e,t){if(B(e)){var r=Wa(e.parameters[e.parameters.length-1]);if(gd(r)){var n=r.target.minLength;if(n>0)return e.parameters.length-1+n}}return!t&&16&e.flags?0:e.minArgumentCount}function Ty(e){if(B(e)){var t=Wa(e.parameters[e.parameters.length-1]);return!gd(t)||t.target.hasRestElement}return!1}function ky(e){if(B(e)){var t=Wa(e.parameters[e.parameters.length-1]);return gd(t)?function(e){var t=md(e);return t&&su(t)}(t):t}}function Ey(e){var t=ky(e);return!t||$_(t)||pa(t)||0!==(131072&Ms(t).flags)?void 0:t}function Ny(e){return Ay(e,ze)}function Ay(e,t){return e.parameters.length>0?by(e,0):t}function Fy(t,r){(t.typeParameters=r.typeParameters,r.thisParameter)&&((!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=wd(r.thisParameter,void 0)),Py(t.thisParameter,Wa(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))Py(a,xy(r,i))}if(B(t)){a=e.last(t.parameters);if(e.isTransientSymbol(a)||!e.getEffectiveTypeAnnotationNode(a.valueDeclaration))Py(a,Dy(r,n))}}function Py(t,r){var n=yn(t);if(!n.type){var i=t.valueDeclaration;n.type=r||wa(i,!0),75!==i.name.kind&&(n.type===Te&&(n.type=Pa(i.name)),function t(r){for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||(75===a.name.kind?yn(yi(a)).type=ha(a):t(a.name))}}(i.name))}}function wy(e){var t=tu(!0);return t!==rt?Ac(t,[e=Yv(e)||Te]):Te}function Iy(e){var t,r=(t=!0,wt||(wt=Zc("PromiseLike",1,t))||rt);return r!==rt?Ac(r,[e=Yv(e)||Te]):Te}function Oy(t,r){var n=wy(r);return n===Te?(nn(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):(ru(!0)||nn(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 My(t,r){if(!t.body)return Se;var n,i,a,o=e.getFunctionFlags(t),s=0!==(2&o),c=0!==(1&o),u=Je;if(223!==t.body.kind)n=lv(t.body,r&&-9&r),s&&(n=Xv(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=zy(t,r);l?l.length>0&&(n=bu(l,2)):u=ze;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?Ev(t.expression,r):Ee;if(e.pushIfUnique(n,Ry(t,s,be,a)),t.asteriskToken){var c=Qh(s,a?19:17,t.expression);o=c&&c.nextType}else o=rg(t);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}}(t,r),d=_.yieldTypes,p=_.nextTypes;i=e.some(d)?bu(d,2):void 0,a=e.some(p)?Eu(p):void 0}else{var f=zy(t,r);if(!f)return 2&o?Oy(t,ze):ze;if(0===f.length)return 2&o?Oy(t,Je):Je;n=bu(f,2)}if(n||i||a){if(i&&zd(t,i,3),n&&zd(t,n,1),a&&zd(t,a,2),n&&cd(n)||i&&cd(i)||a&&cd(a)){var g=cg(t),m=g?g===nc(t)?c?void 0:n:eg(uc(g),t):void 0;c?(i=fd(i,m,0,s),n=fd(n,m,1,s),a=fd(a,m,2,s)):n=function(e,t,r){return e&&cd(e)&&(e=pd(e,t?r?Qv(t):t:void 0)),e}(n,m,s)}i&&(i=Bd(i)),n&&(n=Bd(n)),a&&(a=Bd(a))}return c?Ly(i||ze,n||u,a||zf(2,t)||Te,s):s?wy(n||u):n||u}function Ly(e,t,r,n){var i=n?fr:gr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Te,t=i.resolveIterationType(t,void 0)||Te,r=i.resolveIterationType(r,void 0)||Te,a===rt){var o=i.getGlobalIterableIteratorType(!1),s=o!==rt?$h(o,i):void 0,c=s?s.returnType:be,u=s?s.nextType:ke;return s_(t,c)&&s_(u,r)?o!==rt?au(o,[e]):(i.getGlobalIterableIteratorType(!0),Ze):(i.getGlobalGeneratorType(!0),Ze)}return au(a,[e,t,r])}function Ry(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?Uh(i?19:17,r,n,a):r;return i?Yv(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 By(e,t,r,n){var i=0;if(n){for(var a=t;a<r.length;a++)i|=C.get(r[a])||32768;for(a=e;a<t;a++)i&=~(C.get(r[a])||0);for(a=0;a<e;a++)i|=C.get(r[a])||32768}else{for(a=e;a<t;a++)i|=S.get(r[a])||128;for(a=0;a<e;a++)i&=~(S.get(r[a])||0)}return i}function jy(t){var r=vn(t);return void 0!==r.isExhaustive?r.isExhaustive:r.isExhaustive=function(t){if(204===t.expression.kind){var r=Cv(t.expression.expression),n=By(0,0,Vp(t,!1),!0);return!!(131072&Gp(Ss(r)||r,(function(e){return(Fp(e)&n)===n})).flags)}var i=Cv(t.expression);if(!ud(i))return!1;var a=Kp(t);if(!a.length||e.some(a,sd))return!1;return o=Xp(i,ml),s=a,1048576&o.flags?!e.forEach(o.types,(function(t){return!e.contains(s,t)})):e.contains(s,o);var o,s}(t)}function Jy(e){return e.endFlowNode&&ff(e.endFlowNode)}function zy(t,r){var n=e.getFunctionFlags(t),i=[],a=Jy(t),o=!1;if(e.forEachReturnStatement(t.body,(function(s){var c=s.expression;if(c){var u=lv(c,r&&-9&r);2&n&&(u=Xv(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 201:case 202:return!0;case 161:return 193===e.parent.kind;default:return!1}}(t))return!(W&&i.length&&a)||sy(t)&&i.some((function(e){return e.symbol===t.symbol}))||e.pushIfUnique(i,ke),i}function Uy(t,n){if(r){var i=e.getFunctionFlags(t),a=n&&fb(n,i);if((!a||!Yy(a,16385))&&160!==t.kind&&!e.nodeIsMissing(t.body)&&223===t.body.kind&&Jy(t)){var o=512&t.flags;if(a&&131072&a.flags)nn(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(a&&!o)nn(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(a&&W&&!s_(ke,a))nn(e.getEffectiveReturnTypeNode(t)||t,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(U.noImplicitReturns){if(!a){if(!o)return;if(gb(t,uc(nc(t))))return}nn(e.getEffectiveReturnTypeNode(t)||t,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function Ky(t,r){if(e.Debug.assert(161!==t.kind||e.isObjectLiteralMethod(t)),Vb(t),r&&4&r&&Yl(t)){if(!e.getEffectiveReturnTypeNode(t)&&!$l(t)){var n=ug(t);if(n&&Yd(uc(n))){var i=vn(t);if(i.contextFreeType)return i.contextFreeType;var a=My(t,r),o=jo(void 0,void 0,void 0,e.emptyArray,a,void 0,0,0),s=Oi(t.symbol,J,[o],e.emptyArray,void 0,void 0);return s.objectFlags|=2097152,i.contextFreeType=s}}return nt}return Yx(t)||201!==t.kind||nD(t),function(t,r){var n=vn(t);if(!(1024&n.flags)){var i=ug(t);if(!(1024&n.flags)){n.flags|=1024;var a=e.firstOrUndefined(Us(Wa(yi(t)),0));if(!a)return;if(Yl(t))if(i){var o=ng(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&&sp(n.inferences,xl(s),by(r,a))}}var c=ky(r);if(c&&262144&c.flags){Fy(t,Rl(r,n.nonFixingMapper));var u=Sy(r)-1;sp(n.inferences,Dy(t,u),c)}}(a,i,o);var s=o?Rl(i,o.mapper):i;Fy(a,s)}else!function(e){e.thisParameter&&Py(e.thisParameter);for(var t=0,r=e.parameters;t<r.length;t++){Py(r[t])}}(a);if(i&&!lc(t)&&!a.resolvedReturnType){var c=My(t,r);a.resolvedReturnType||(a.resolvedReturnType=c)}Pv(t)}}}(t,r),Wa(yi(t))}function Vy(e,t,r,n){if(void 0===n&&(n=!1),!s_(t,Qe)){var i=n&&Gv(t);return sn(e,!!i&&s_(i,Qe),r),!1}return!0}function qy(t){if(!e.isCallExpression(t))return!1;if(!e.isBindableObjectDefinePropertyCall(t))return!1;var r=lv(t.arguments[2]);if(da(r,"value")){var n=Js(r,"writable"),i=n&&Wa(n);if(!i||i===Oe||i===Me)return!0;if(n&&n.valueDeclaration&&e.isPropertyAssignment(n.valueDeclaration)){var a=Ev(n.valueDeclaration.initializer);if(a===Oe||a===Me)return!0}return!1}return!Js(r,"set")}function Wy(t){return!!(8&e.getCheckFlags(t)||4&t.flags&&64&e.getDeclarationModifierFlagsFromSymbol(t)||3&t.flags&&2&Ug(t)||98304&t.flags&&!(65536&t.flags)||8&t.flags||e.some(t.declarations,qy))}function Hy(t,r,n){var i,a;if(0===n)return!1;if(Wy(r)){if(4&r.flags&&e.isAccessExpression(t)&&104===t.expression.kind){var o=e.getContainingFunction(t);if(!o||162!==o.kind)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(75===d.kind){var p=vn(d).resolvedSymbol;if(2097152&p.flags){var f=In(p);return!!f&&256===f.kind}}}return!1}function Gy(t,r,n){var i=e.skipOuterExpressions(t,7);return 75===i.kind||e.isAccessExpression(i)?!(32&i.flags)||(nn(t,n),!1):(nn(t,r),!1)}function Qy(t){if(r){var n;if(!(32768&t.flags))if(function(t){var r=e.getThisContainer(t,!0);return e.isSourceFile(r)}(t)){if(!pD(n=e.getSourceFileOfNode(t))){var i=void 0;if(!e.isEffectiveExternalModule(n,U)){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);qr.add(a)}if(V!==e.ModuleKind.ESNext&&V!==e.ModuleKind.System||K<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);qr.add(a)}}}else if(!pD(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&&162!==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)}qr.add(a)}Jf(t)&&nn(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var c=Ev(t.expression),u=Xv(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||an(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),u}function Xy(e){return Yy(e,2112)?Zy(e,3)||Yy(e,296)?Qe:Ie:we}function Yy(e,t){if(e.flags&t)return!0;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++){if(Yy(n[r],t))return!0}return!1}function Zy(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&s_(e,we)||!!(2112&t)&&s_(e,Ie)||!!(132&t)&&s_(e,Pe)||!!(528&t)&&s_(e,Be)||!!(16384&t)&&s_(e,Je)||!!(131072&t)&&s_(e,ze)||!!(65536&t)&&s_(e,Ae)||!!(32768&t)&&s_(e,ke)||!!(4096&t)&&s_(e,je)||!!(67108864&t)&&s_(e,We))}function $y(t,r,n){return 1048576&t.flags?e.every(t.types,(function(e){return $y(e,r,n)})):Zy(t,r,n)}function ev(t){return!!(16&e.getObjectFlags(t))&&!!t.symbol&&tv(t.symbol)}function tv(e){return 0!==(128&e.flags)}function rv(t,r,n,i,a){void 0===a&&(a=!1);var o=t.properties,s=o[n];if(281===s.kind||282===s.kind){var c=s.name,u=Au(c);if(Eo(u)){var l=Js(r,wo(u));l&&(fm(l,s,a),Vg(s,!1,r,l))}var _=ma(s,Wu(r,u,c));return iv(282===s.kind?s:s.initializer,_)}if(283===s.kind){if(!(n<o.length-1)){K<99&&Vx(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)}_=ga(r,d,r.symbol);return Gx(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),iv(s.expression,_)}nn(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else nn(s,e.Diagnostics.Property_assignment_expected)}function nv(t,r,n,i,a){var o=t.elements,s=o[n];if(215!==s.kind){if(213!==s.kind){var c=vl(n);if(nd(r)){var u=lg(s)?8:0,l=Hu(r,c,jm(s,c),u)||Se;return iv(s,ma(s,lg(s)?Pp(l,524288):l),a)}return iv(s,i,a)}if(n<o.length-1)nn(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var _=s.expression;if(209!==_.kind||62!==_.operatorToken.kind)return Gx(t.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),iv(_,Hp(r,gd)?Xp(r,(function(e){return pu(e,n)})):su(i),a);nn(_.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function iv(t,r,n,i){var a;if(282===t.kind){var o=t;o.objectAssignmentInitializer&&(!W||32768&bd(Ev(o.objectAssignmentInitializer))||(r=Pp(r,524288)),function(e,t,r,n,i){var a,o=t.kind;if(62===o&&(193===e.kind||192===e.kind))return iv(e,Ev(r,n),n,104===r.kind);a=55===o||56===o||60===o?Bh(e,n):Ev(e,n);var s=Ev(r,n);cv(e,t,r,a,s,i)}(o.name,o.equalsToken,o.objectAssignmentInitializer,n)),a=t.name}else a=t;return 209===a.kind&&62===a.operatorToken.kind&&(ov(a,n),a=a.left),193===a.kind?function(e,t,r){var n=e.properties;if(W&&0===n.length)return Zg(t,e);for(var i=0;i<n.length;i++)rv(e,t,i,n,r);return t}(a,r,i):192===a.kind?function(e,t,r){var n=e.elements;K<2&&U.downlevelIteration&&Vx(e,512);for(var i=Uh(65,t,ke,e)||Se,a=0;a<n.length;a++)nv(e,t,a,i,r);return t}(a,r,n):function(t,r,n){var i=Ev(t,n),a=283===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=283===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;Gy(t,a,o)&&d_(r,i,t,t);e.isPrivateIdentifierPropertyAccessExpression(t)&&Vx(t.parent,524288);return r}(a,r,n)}function av(e,t){return 0!==(98304&t.flags)||u_(e,t)}function ov(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)){u(Ev(t.right,r));break}if(sv(t),62===(o=t.operatorToken.kind)&&(193===t.left.kind||192===t.left.kind)){u(iv(t.left,Ev(t.right,r),r,104===t.right.kind));break}l(1),_(t.left);break;case 1:var o,s=n;i.leftType[a]=s,55!==(o=t.operatorToken.kind)&&56!==o&&60!==o||Rh(s,t.left),l(2),_(t.right);break;case 2:s=i.leftType[a];var c=n;u(cv(t.left,t.operatorToken,t.right,s,c,t));break;default:return e.Debug.fail("Invalid state "+i.state[a]+" for checkBinaryExpression")}return n;function u(e){n=e,a--}function l(e){i.state[a]=e}function _(t){e.isBinaryExpression(t)?(a++,i.expr[a]=t,i.state[a]=0,i.leftType[a]=void 0):n=Ev(t,r)}}function sv(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||mD(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||mD(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(n.kind)))}function cv(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 74:case 50:case 72:if(a===Ue||o===Ue)return Ue;a=Zg(a,t),o=Zg(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 74:return 37;case 50:case 72:return 55;default:return}}(n.kind)))return nn(s||n,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(n.kind),e.tokenToString(_)),we;var d,p=Vy(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=Vy(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(Zy(a,3)&&Zy(o,3)||!Yy(a,2112)&&!Yy(o,2112))d=we;else if(y(a,o)){switch(l){case 49:case 71:x()}d=Ie}else x(y),d=Se;return p&&f&&h(d),d;case 39:case 63:if(a===Ue||o===Ue)return Ue;Zy(a,132)||Zy(o,132)||(a=Zg(a,t),o=Zg(o,i));var g=void 0;if(Zy(a,296,!0)&&Zy(o,296,!0)?g=we:Zy(a,2112,!0)&&Zy(o,2112,!0)?g=Ie:Zy(a,132,!0)||Zy(o,132,!0)?g=Pe:(pa(a)||pa(o))&&(g=a===Se||o===Se?Se:be),g&&!v(l))return g;if(!g){return x((function(e,t){return Zy(e,2543)&&Zy(t,2543)})),be}return 63===l&&h(g),g;case 29:case 31:case 32:case 33:return v(l)&&(a=ld(Zg(a,t)),o=ld(Zg(o,i)),b((function(e,t){return u_(e,t)||u_(t,e)||s_(e,Qe)&&s_(t,Qe)}))),Be;case 34:case 35:case 36:case 37:return b((function(e,t){return av(e,t)||av(t,e)})),Be;case 98:return function(t,r,n,i){return n===Ue||i===Ue?Ue:(!pa(n)&&$y(n,131068)&&nn(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),pa(i)||lx(i)||o_(i,ft)||nn(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),Be)}(t,i,a,o);case 97:return function(t,r,n,i){return n===Ue||i===Ue?Ue:(n=Zg(n,t),i=Zg(i,r),u_(n,Pe)||Zy(n,12584)||nn(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),$y(i,126091264)||nn(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Be)}(t,i,a,o);case 55:return 4194304&Fp(a)?bu([(u=W?a:ld(o),Xp(u,Dd)),o]):a;case 56:return 8388608&Fp(a)?bu([xd(a),o],2):a;case 60:return 262144&Fp(a)?bu([Td(a),o],2):a;case 62:var m=e.isBinaryExpression(t.parent)?e.getAssignmentDeclarationKind(t.parent):0;return function(t,r){if(2===t)for(var n=0,i=ps(r);n<i.length;n++){var a=i[n],o=Wa(a);if(o.symbol&&32&o.symbol.flags){var s=a.escapedName,c=Sn(a.valueDeclaration,s,788968,void 0,s,!1);c&&c.declarations.some(e.isJSDocTypedefTag)&&(pn(c,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),a),pn(a,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),c))}}}(m,o),function(r){switch(r){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var n=yi(t),a=e.getAssignedExpandoInitializer(i);return a&&e.isObjectLiteralExpression(a)&&n&&e.hasEntries(n.exports);default:return!1}}(m)?(524288&o.flags&&(2===m||6===m||T_(o)||Ap(o)||1&e.getObjectFlags(o))||h(o),a):(h(o),Id(o));case 27:return!U.allowUnreachableCode&&function t(r){switch((r=e.skipParentheses(r)).kind){case 75:case 10:case 13:case 198:case 211:case 14:case 8:case 9:case 106:case 91:case 100:case 146:case 201:case 214:case 202:case 192:case 193:case 204:case 218:case 267:case 266:return!0;case 210:return t(r.whenTrue)&&t(r.whenFalse);case 209:return!e.isAssignmentOperator(r.operatorToken.kind)&&(t(r.left)&&t(r.right));case 207:case 208:switch(r.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 205:case 199:case 217:default:return!1}}(t)&&(75!==(c=i).kind||"eval"!==c.escapedText)&&nn(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),o;default:return e.Debug.fail()}function y(e,t){return Zy(e,2112)&&Zy(t,2112)}function v(r){var n=Yy(a,12288)?t:Yy(o,12288)?i:void 0;return!n||(nn(n,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r)),!1)}function h(n){r&&e.isAssignmentOperator(l)&&(!Gy(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)||d_(n,a,t,i))}function b(e){return!e(a,o)&&(x(e),!0)}function x(t){var r,i=!1,c=s||n;if(t){var u=Yv(a),l=Yv(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=ld(e),o=ld(t);r(a,o)||(n=a,i=o);return[n,i]}(a,o,t),_=r[0],d=r[1]);var p=Xi(_,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 sn(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)||sn(c,i,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(n.kind),f,g)}}function uv(t,r,n,i){var a=function(t){return 274!==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=Ev(t,1|i|(n?2:0));return Yy(c,2944)&&pv(c,eg(r,t))?ml(c):c}finally{a.contextualType=o,a.inferenceContext=s}}function lv(e,t){var r=vn(e);if(!r.resolvedType){if(t&&0!==t)return Ev(e,t);var n=vr,i=Zt;vr=hr,Zt=void 0,r.resolvedType=Ev(e,t),Zt=i,vr=n}return r.resolvedType}function _v(t,r){var n=e.getEffectiveInitializer(t),i=Tv(n)||(r?uv(n,r,void 0,0):lv(n));return e.isParameter(t)&&190===t.name.kind&&gd(i)&&!i.target.hasRestElement&&Ic(i)<t.name.elements.length?function(t,r){for(var n=r.elements,i=Ic(t),a=i?wc(t).slice():[],o=i;o<n.length;o++){var s=n[o];(o<n.length-1||191!==s.kind||!s.dotDotDotToken)&&(a.push(!e.isOmittedExpression(s)&&lg(s)?Aa(s,!1,!1):be),e.isOmittedExpression(s)||lg(s)||Jd(s,be))}return du(a,t.target.minLength,!1,t.target.readonly)}(i,t.name):i}function dv(t,r){var n=2&e.getCombinedNodeFlags(t)||e.isDeclarationReadonly(t)?r:_d(r);if(e.isInJSFile(t)){if(98304&n.flags)return Jd(t,be),be;if(id(n))return Jd(t,Ct),Ct}return n}function pv(t,r){if(r){if(3145728&r.flags){var n=r.types;return e.some(n,(function(e){return pv(t,e)}))}if(58982400&r.flags){var i=Ss(r)||Te;return Yy(i,4)&&Yy(t,128)||Yy(i,8)&&Yy(t,256)||Yy(i,64)&&Yy(t,2048)||Yy(i,4096)&&Yy(t,8192)||pv(t,i)}return!!(4194432&r.flags&&Yy(t,128)||256&r.flags&&Yy(t,256)||2048&r.flags&&Yy(t,2048)||512&r.flags&&Yy(t,512)||8192&r.flags&&Yy(t,8192))}return!1}function fv(t){var r=t.parent;return e.isAssertionExpression(r)&&e.isConstTypeReference(r.type)||(e.isParenthesizedExpression(r)||e.isArrayLiteralExpression(r)||e.isSpreadElement(r))&&fv(r)||(e.isPropertyAssignment(r)||e.isShorthandPropertyAssignment(r))&&fv(r.parent)}function gv(t,r,n,i){var a=Ev(t,r,i);return fv(t)?ml(a):function(t){return 199===(t=e.skipParentheses(t)).kind||217===t.kind}(t)?a:pd(a,eg(2===arguments.length?rg(t):n,t))}function mv(e,t){return 154===e.name.kind&&yg(e.name),gv(e.initializer,t)}function yv(e,t){return uD(e),154===e.name.kind&&yg(e.name),vv(e,Ky(e,t),t)}function vv(t,r,n){if(n&&10&n){var i=Fm(r,0,!0),a=Fm(r,1,!0),o=i||a;if(o&&o.typeParameters){var s=$f(t,2);if(s){var c=Fm(Td(s),i?0:1,!1);if(c&&!c.typeParameters){if(8&n)return hv(t,n),nt;var u=ng(t),l=u.signature&&uc(u.signature),_=l&&Am(l);if(_&&!_.typeParameters&&!e.every(u.inferences,bv)){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(xv(t.inferredTypeParameters,c)||xv(a,c)){var u=Fi(cn(262144,Dv(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=kl(n,i),_=0,d=i;_<d.length;_++){var p;(p=d[_]).mapper=l}return a}(u,o.typeParameters),p=fc(o,d),f=e.map(u.inferences,(function(e){return Gd(e.typeParameter)}));if(Ud(p,c,(function(e,t){sp(f,e,t,0,!0)})),e.some(f,bv)&&(Kd(p,c,(function(e,t){sp(f,e,t)})),!function(e,t){for(var r=0;r<e.length;r++)if(bv(e[r])&&bv(t[r]))return!0;return!1}(u.inferences,f)))return function(e,t){for(var r=0;r<e.length;r++)!bv(e[r])&&bv(t[r])&&(e[r]=t[r])}(u.inferences,f),u.inferredTypeParameters=e.concatenate(u.inferredTypeParameters,d),hc(p)}return hc(Pm(o,c,u))}}}}return r}function hv(e,t){2&t&&(ng(e).flags|=4)}function bv(e){return!(!e.candidates&&!e.contraCandidates)}function xv(t,r){return e.some(t,(function(e){return e.symbol.escapedName===r}))}function Dv(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(!xv(e,a))return a}}function Sv(e){var t=Nm(e);if(t&&!t.typeParameters)return uc(t)}function Cv(e){var t=Tv(e);if(t)return t;if(67108864&e.flags&&Zt){var r=Zt[P(e)];if(r)return r}var n=Dr,i=Ev(e);Dr!==n&&((Zt||(Zt=[]))[P(e)]=i,e.flags|=67108864);return i}function Tv(t){var r=e.skipParentheses(t);if(!e.isCallExpression(r)||102===r.expression.kind||e.isRequireCall(r,!0)||ly(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return xl(r.type);if(8===t.kind||10===t.kind||106===t.kind||91===t.kind)return Ev(t)}else{var n=e.isCallChain(r)?function(e){var t=Ev(e.expression),r=Fd(t,e.expression),n=Sv(t);return n&&Ad(n,e,r!==t)}(r):Sv(Wg(r.expression));if(n)return n}}function kv(e){var t=vn(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=be;try{return t.contextFreeType=Ev(e,4)}finally{e.contextualType=r}}function Ev(t,i,a){var o=_;_=t,D=0;var s=vv(t,function(t,i,a){var o=t.kind;if(n)switch(o){case 214:case 201:case 202:n.throwIfCancellationRequested()}switch(o){case 75:return Tf(t);case 104:return Pf(t);case 102:return Of(t);case 100:return Fe;case 14:case 10:return gl(vl(t.text));case 8:return hD(t),gl(vl(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&K<7&&mD(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(t),gl(function(t){return vl({negative:!1,base10Value:e.parsePseudoBigInt(t.text)})}(t));case 106:return Le;case 91:return Oe;case 211:return function(t){return e.forEach(t.templateSpans,(function(t){Yy(Ev(t.expression),12288)&&nn(t.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)})),Pe}(t);case 13:return Dt;case 192:return _g(t,i,a);case 193:return bg(t,i);case 194:return em(t);case 153:return tm(t);case 195:return ym(t);case 196:if(96===t.expression.kind)return _y(t);case 197:return uy(t,i);case 198:return fy(t);case 200:return function(t,r){var n=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0;if(n)return gy(n,n.typeExpression.type,t.expression,r);return Ev(t.expression,r)}(t,i);case 214:return function(e){return Db(e),Vb(e),Wa(yi(e))}(t);case 201:case 202:return Ky(t,i);case 204:return function(e){return Ev(e.expression),Gr}(t);case 199:case 217:return function(e){return gy(e,e.type,e.expression)}(t);case 218:return my(t);case 219:return yy(t);case 203:return function(t){Ev(t.expression);var r=e.skipParentheses(t.expression);if(!e.isAccessExpression(r))return nn(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Be;194===r.kind&&e.isPrivateIdentifier(r.name)&&nn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var n=Si(vn(r).resolvedSymbol);return n&&Wy(n)&&nn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),Be}(t);case 205:return function(e){return Ev(e.expression),Ee}(t);case 206:return Qy(t);case 207:return function(t){var r=Ev(t.operand);if(r===Ue)return Ue;switch(t.operand.kind){case 8:switch(t.operator){case 40:return gl(vl(-t.operand.text));case 39:return gl(vl(+t.operand.text))}break;case 9:if(40===t.operator)return gl(vl({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return Zg(r,t.operand),Yy(r,12288)&&nn(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(Yy(r,2112)&&nn(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),Qi(ld(r))),we):Xy(r);case 53:Bh(t.operand);var n=12582912&Fp(r);return 4194304===n?Oe:8388608===n?Le:Be;case 45:case 46:return Vy(t.operand,Zg(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Gy(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),Xy(r)}return Se}(t);case 208:return function(t){var r=Ev(t.operand);return r===Ue?Ue:(Vy(t.operand,Zg(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Gy(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),Xy(r))}(t);case 209:return ov(t,i);case 210:return function(e,t){var r=Bh(e.condition);return Lh(e.condition,e.whenTrue,r),bu([Ev(e.whenTrue,t),Ev(e.whenFalse,t)],2)}(t,i);case 213:return function(e,t){return K<2&&Vx(e,U.downlevelIteration?1536:2048),Uh(33,Ev(e.expression,t),ke,e.expression)}(t,i);case 215:return Ee;case 212:return function(t){r&&(8192&t.flags||fD(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Jf(t)&&nn(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&&K<99&&Vx(t,53248),!a&&K<2&&U.downlevelIteration&&Vx(t,256));var o=lc(n),s=o&&db(o,a),c=s&&s.yieldType||be,u=s&&s.nextType||be,l=a?Yv(u)||be:u,_=t.expression?Ev(t.expression):Ee,d=Ry(t,_,l,a);return o&&d&&d_(d,c,t.expression||t,t.expression),t.asteriskToken?Vh(a?19:17,1,_,t.expression)||be:o?_b(2,o,a)||be:zf(2,n)||be}(t);case 220:return t.type;case 276:return zg(t,i);case 266:case 267:return function(e,t){return Vb(e),Lg(e)||be}(t);case 270:return function(t){return Bg(t.openingFragment),2===U.jsx&&(U.jsxFactory||e.getSourceFileOfNode(t).pragmas.has("jsx"))&&nn(t,U.jsxFactory?e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:e.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),Tg(t),Lg(t)||be}(t);case 274:return Eg(t,i);case 268:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Se}(t,i,a),i);return ev(s)&&function(t,r){194===t.parent.kind&&t.parent.expression===t||195===t.parent.kind&&t.parent.expression===t||(75===t.kind||153===t.kind)&&tx(t)||172===t.parent.kind&&t.parent.exprName===t||263===t.parent.kind||nn(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(U.isolatedModules){e.Debug.assert(!!(128&r.symbol.flags)),8388608&r.symbol.valueDeclaration.flags&&nn(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(t,s),_=o,s}function Nv(t){t.expression&&fD(t.expression,e.Diagnostics.Type_expected),Ub(t.constraint),Ub(t.default);var n=mo(yi(t));Ss(n),function(e){return Es(e)!==at}(n)||nn(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Qi(n));var i=vs(n),a=Ns(n);i&&a&&__(a,Ro(Wl(i,Nl(n,a)),a),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),r&&vb(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function Av(t){Wx(t),Fh(t);var r=e.getContainingFunction(t);e.hasModifier(t,92)&&(162===r.kind&&e.nodeIsPresent(r.body)||nn(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),162===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&nn(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&nn(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)&&nn(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),162!==r.kind&&166!==r.kind&&171!==r.kind||nn(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),202===r.kind&&nn(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),163!==r.kind&&164!==r.kind||nn(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||s_(Ms(Wa(t.symbol)),kt)||nn(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Fv(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(75===s.kind&&s.escapedText===n)return nn(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((190===s.kind||189===s.kind)&&Fv(s,r,n))return!0}}}function Pv(t){167===t.kind?function(t){Wx(t)||function(t){var r=t.parameters[0];if(1!==t.parameters.length)return mD(r?r.name:t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(Gx(t.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),r.dotDotDotToken)return mD(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasModifiers(r))return mD(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(r.questionToken)return mD(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(r.initializer)return mD(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!r.type)return mD(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(143!==r.type.kind&&140!==r.type.kind){var n=xl(r.type);return 4&n.flags||8&n.flags?mD(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),Qi(n),Qi(t.type?xl(t.type):be)):1048576&n.flags&&$y(n,384,!0)?mD(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):mD(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_either_string_or_number)}if(!t.type)return mD(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}(t)}(t):170!==t.kind&&244!==t.kind&&171!==t.kind&&165!==t.kind&&162!==t.kind&&166!==t.kind||Yx(t);var n=e.getFunctionFlags(t);if(4&n||(3===(3&n)&&K<99&&Vx(t,12288),2===(3&n)&&K<4&&Vx(t,64),0!==(3&n)&&K<2&&Vx(t,128)),hb(t.typeParameters),e.forEach(t.parameters,Av),t.type&&Ub(t.type),r){!function(t){if(K>=2||U.noEmit||!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===oe.escapedName&&nn(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(t);var i=e.getEffectiveReturnTypeNode(t);if(X&&!i)switch(t.kind){case 166:nn(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 165:nn(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=xl(i);if(o===Je)nn(i,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=_b(0,o,0!==(2&a))||be;__(Ly(s,_b(1,o,0!==(2&a))||s,_b(2,o,0!==(2&a))||Te,!!(2&a)),o,i)}}else 2===(3&a)&&function(t,r){var n=xl(r);if(K>=2){if(n===Se)return;var i=tu(!0);if(i!==rt&&!Ha(n,i))return void nn(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)}else{if(function(t){eh(t&&e.getEntityNameFromTypeNode(t))}(r),n===Se)return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void nn(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,Qi(n));var o=ti(a,111551,!0),s=o?Wa(o):Se;if(s===Se)return void(75===a.kind&&"Promise"===a.escapedText&&Ga(n)===tu(!1)?nn(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):nn(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,Ot||(Ot=Zc("PromiseConstructorLike",0,_))||Ze);if(c===Ze)return void nn(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(!__(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=bn(t.locals,u.escapedText,111551);if(l)return void nn(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a))}var _;Xv(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)}167!==t.kind&&300!==t.kind&&ch(t)}}function wv(t){for(var r=e.createMap(),n=0,i=t.members;n<i.length;n++){var a=i[n];if(158===a.kind){var o=void 0,s=a.name;switch(s.kind){case 10:case 8:o=s.text;break;case 75:o=e.idText(s);break;default:continue}r.get(o)?(nn(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),nn(a.name,e.Diagnostics.Duplicate_identifier_0,o)):r.set(o,!0)}}}function Iv(t){if(246===t.kind){var r=yi(t);if(r.declarations.length>0&&r.declarations[0]!==t)return}var n=bc(yi(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 143:a?nn(c,e.Diagnostics.Duplicate_string_index_signature):a=!0;break;case 140:i?nn(c,e.Diagnostics.Duplicate_number_index_signature):i=!0}}}function Ov(t){if(Wx(t)||function(t){if(e.isClassLike(t.parent)){if(e.isStringLiteral(t.name)&&"constructor"===t.name.text)return mD(t.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(cD(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(K<2&&e.isPrivateIdentifier(t.name))return mD(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(246===t.parent.kind){if(cD(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 mD(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(173===t.parent.kind){if(cD(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 mD(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}8388608&t.flags&&_D(t);if(e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||8388608&t.flags||e.hasModifier(t,160)))return mD(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)}(t)||rD(t.name),Fh(t),e.isPrivateIdentifier(t.name)&&K<99)for(var r=e.getEnclosingBlockScopeContainer(t);r;r=e.getEnclosingBlockScopeContainer(r))vn(r).flags|=67108864}function Mv(t){Pv(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 gD(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)mD(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),Ub(t.body);var n=yi(t);if(t===e.getDeclarationOfKind(n,t.kind)&&Wv(n),!e.nodeIsMissing(t.body)&&r){var i=t.parent;if(e.getClassExtendsHeritageElement(i)){kf(t.parent,i);var a=Af(i),o=Nf(t);if(o){if(a&&nn(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==U.target||!U.useDefineForClassFields)&&(e.some(t.parent.members,(function(t){return!!e.isPrivateIdentifierPropertyDeclaration(t)||159===t.kind&&!e.hasModifier(t,32)&&!!t.initializer}))||e.some(t.parameters,(function(t){return e.hasModifier(t,92)})))){for(var s=void 0,c=0,u=t.body.statements;c<u.length;c++){var l=u[c];if(226===l.kind&&e.isSuperCall(l.expression)){s=l;break}if(!e.isPrologueDirective(l))break}s||nn(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||nn(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Lv(t){if(r){if(Yx(t)||function(t){if(!(8388608&t.flags)){if(K<1)return mD(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(void 0===t.body&&!e.hasModifier(t,128))return gD(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(t.body&&e.hasModifier(t,128))return mD(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return mD(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return sD(e)||e.parameters.length===(163===e.kind?0:1)}(t))return mD(t.name,163===t.kind?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(164===t.kind){if(t.type)return mD(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 mD(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return mD(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return mD(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(t)||rD(t.name),ah(t),Pv(t),163===t.kind&&!(8388608&t.flags)&&e.nodeIsPresent(t.body)&&256&t.flags&&(512&t.flags||nn(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),154===t.name.kind&&yg(t.name),e.isPrivateIdentifier(t.name)&&nn(t.name,e.Diagnostics.An_accessor_cannot_be_named_with_a_private_identifier),!Po(t)){var n=163===t.kind?164:163,i=e.getDeclarationOfKind(yi(t),n);if(i){var a=e.getModifierFlags(t),o=e.getModifierFlags(i);(28&a)!==(28&o)&&nn(t.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&a)!==(128&o)&&nn(t.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Rv(t,i,Ba,e.Diagnostics.get_and_set_accessor_must_have_the_same_type),Rv(t,i,ja,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var s=Ja(yi(t));163===t.kind&&Uy(t,s)}Ub(t.body)}function Rv(e,t,r,n){var i=r(e),a=r(t);i&&a&&!r_(i,a)&&nn(e,n)}function Bv(t,r){return rc(e.map(t.typeArguments,xl),r,tc(r),e.isInJSFile(t))}function jv(t,r){for(var n,i,a=!0,o=0;o<r.length;o++){var s=vs(r[o]);s&&(n||(i=kl(r,n=Bv(t,r))),a=a&&__(n[o],Wl(s,i),t.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function Jv(t){var r=Wc(t);if(r!==Se){var n=vn(t).resolvedSymbol;if(n)return 524288&n.flags&&yn(n).typeParameters||(4&e.getObjectFlags(r)?r.target.localTypeParameters:void 0)}}function zv(t){Zx(t,t.typeArguments),169!==t.kind||void 0===t.typeName.jsdocDotPos||e.isInJSFile(t)||e.isInJSDoc(t)||gD(t,t.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(t.typeArguments,Ub);var n=Wc(t);if(n!==Se){if(t.typeArguments&&r){var i=Jv(t);i&&jv(t,i)}32&n.flags&&8&vn(t).resolvedSymbol.flags&&nn(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Qi(n))}}function Uv(t,r){if(!(8388608&t.flags))return t;var n=t.objectType,i=t.indexType;if(s_(i,Iu(n,!1)))return 195===r.kind&&e.isAssignmentTarget(r)&&32&e.getObjectFlags(n)&&1&cs(n)&&nn(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Qi(n)),t;var a=Fs(n);if(qs(a,1)&&Zy(i,296))return t;if(ju(n)){var o=Lu(i,r);if(o){var s=Wp(a,(function(e){return Js(e,o)}));if(s&&24&e.getDeclarationModifierFlagsFromSymbol(s))return nn(r,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(o)),Se}}return nn(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Qi(i),Qi(n)),Se}function Kv(t){!function(t){if(147===t.operator){if(144!==t.type.kind)return mD(t.type,e.Diagnostics._0_expected,e.tokenToString(144));var r=e.walkUpParenthesizedTypes(t.parent);switch(r.kind){case 242:var n=r;if(75!==n.name.kind)return mD(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(n))return mD(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return mD(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 159:if(!e.hasModifier(r,32)||!e.hasModifier(r,64))return mD(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 158:if(!e.hasModifier(r,64))return mD(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:mD(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(138===t.operator&&174!==t.type.kind&&175!==t.type.kind)fD(t,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(144))}(t),Ub(t.type)}function Vv(t){return(e.hasModifier(t,8)||e.isPrivateIdentifierPropertyDeclaration(t))&&!!(8388608&t.flags)}function qv(t,r){var n=e.getCombinedModifierFlags(t);return 246!==t.parent.kind&&245!==t.parent.kind&&214!==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 Wv(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=0,y=_;m<y.length;m++){var v=y[m],h=8388608&v.flags,b=246===v.parent.kind||173===v.parent.kind||h;if(b&&(a=void 0),245!==v.kind&&214!==v.kind||h||(g=!0),244===v.kind||161===v.kind||160===v.kind||162===v.kind){var x=qv(v,155);o|=x,s&=x,c=c||e.hasQuestionToken(v),u=u&&e.hasQuestionToken(v),e.nodeIsPresent(v.body)&&n?d?f=!0:p=!0:a&&a.parent===v.parent&&a.end!==v.pos&&N(a),e.nodeIsPresent(v.body)?n||(n=v):l=!0,a=v,b||(i=v)}}if(f&&e.forEach(_,(function(t){nn(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)})),p&&e.forEach(_,(function(t){nn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_function_implementation)})),g&&!d&&16&t.flags&&e.forEach(_,(function(r){fn(r,e.Diagnostics.Duplicate_identifier_0,e.symbolName(t),_)})),!i||i.body||e.hasModifier(i,128)||i.questionToken||N(i),l&&(function(t,r,n,i,a){if(0!==(i^a)){var o=qv(E(t,r),n);e.forEach(t,(function(t){var r=qv(t,n)^o;1&r?nn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&r?nn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&r?nn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&r&&nn(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(E(t,r));e.forEach(t,(function(t){e.hasQuestionToken(t)!==a&&nn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)}))}}(_,n,c,u),n))for(var D=oc(t),S=nc(n),C=0,T=D;C<T.length;C++){var k=T[C];if(!C_(S,k)){e.addRelatedInfo(nn(k.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 E(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function N(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((161===t.kind||160===t.kind)&&e.hasModifier(t,32)!==e.hasModifier(n,32))nn(i,e.hasModifier(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 nn(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var o=t.name||t;d?nn(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasModifier(t,128)?nn(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):nn(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function Hv(t){if(r){var n=t.localSymbol;if((n||(n=yi(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=qv(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?nn(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&_&&nn(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 246:case 247:case 322:case 315:case 316:return 2;case 249:return e.isAmbientModule(r)||0!==e.getModuleInstanceState(r)?5:4;case 245:case 248:case 284:return 3;case 290:return 7;case 259:if(!e.isEntityNameExpression(r.expression))return 1;r=r.expression;case 253:case 256:case 255:var n=0,i=Hn(yi(r));return e.forEach(i.declarations,(function(e){n|=y(e)})),n;case 242:case 191:case 244:case 258:case 75:return 1;default:return e.Debug.failBadSyntaxKind(r)}}}function Gv(e,t,r,n){var i=Qv(e,t);return i&&Yv(i,t,r,n)}function Qv(t,r){if(!pa(t)){var n=t;if(n.promisedTypeOfPromise)return n.promisedTypeOfPromise;if(Ha(t,tu(!1)))return n.promisedTypeOfPromise=wc(t)[0];var i=da(t,"then");if(!pa(i)){var a=i?Us(i,0):e.emptyArray;if(0!==a.length){var o=Pp(bu(e.map(a,Ny)),2097152);if(!pa(o)){var s=Us(o,0);if(0!==s.length)return n.promisedTypeOfPromise=bu(e.map(s,Ny),2);r&&nn(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else r&&nn(r,e.Diagnostics.A_promise_must_have_a_then_method)}}}function Xv(e,t,r,n){return Yv(e,t,r,n)||Se}function Yv(e,t,r,n){if(pa(e))return e;var i=e;return i.awaitedTypeOfType?i.awaitedTypeOfType:i.awaitedTypeOfType=Xp(e,t?function(e){return Zv(e,t,r,n)}:Zv)}function Zv(t,r,n,i){var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;var o=Qv(t);if(o){if(t.id===o.id||Vr.lastIndexOf(o.id)>=0)return void(r&&nn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Vr.push(t.id);var s=Yv(o,r,n,i);if(Vr.pop(),!s)return;return a.awaitedTypeOfType=s}if(!function(e){var t=da(e,"then");return!!t&&Us(Pp(t,2097152),0).length>0}(t))return a.awaitedTypeOfType=t;if(r){if(!n)return e.Debug.fail();nn(r,n,i)}}function $v(t){var r=uc(oy(t));if(!(1&r.flags)){var n,i,a=ty(t);switch(t.parent.kind){case 245:n=bu([Wa(yi(t.parent)),Je]);break;case 156:n=Je,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 159:n=Je,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 161:case 163:case 164:n=bu([ou(ix(t.parent)),Je]);break;default:return e.Debug.fail()}__(r,n,t,a,(function(){return i}))}}function eh(t){if(t){var r=e.getFirstIdentifier(t),n=2097152|(75===t.kind?788968:1920),i=Sn(r,r.escapedText,n,void 0,void 0,!0);i&&2097152&i.flags&&Ci(i)&&!xx(Hn(i))&&!Xn(i)&&Zn(i)}}function th(t){var r=rh(t);r&&e.isEntityName(r)&&eh(r)}function rh(e){if(e)switch(e.kind){case 179:case 178:return nh(e.types);case 180:return nh([e.trueType,e.falseType]);case 182:return rh(e.type);case 169:return e.typeName}}function nh(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];182===a.kind;)a=a.type;if(137!==a.kind&&(W||100!==a.kind&&146!==a.kind)){var o=rh(a);if(!o)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return}else r=o}}return r}function ih(t){var r=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(r):r}function ah(t){if(t.decorators&&e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){U.experimentalDecorators||nn(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(Vx(r,8),156===t.kind&&Vx(r,32),U.emitDecoratorMetadata)switch(Vx(r,16),t.kind){case 245:var n=e.getFirstConstructorWithBody(t);if(n)for(var i=0,a=n.parameters;i<a.length;i++){th(ih(a[i]))}break;case 163:case 164:var o=163===t.kind?164:163,s=e.getDeclarationOfKind(yi(t),o);th(Ra(t)||s&&Ra(s));break;case 161:for(var c=0,u=t.parameters;c<u.length;c++){th(ih(u[c]))}th(e.getEffectiveReturnTypeNode(t));break;case 159:th(e.getEffectiveTypeAnnotationNode(t));break;case 156:th(ih(t));for(var l=0,_=t.parent.parameters;l<_.length;l++){th(ih(_[l]))}}e.forEach(t.decorators,$v)}}function oh(e){switch(e.kind){case 75:return e;case 194:return e.name;default:return}}function sh(t){ah(t),Pv(t);var n=e.getFunctionFlags(t);if(t.name&&154===t.name.kind&&yg(t.name),!Po(t)){var i=yi(t),a=t.localSymbol||i,o=e.find(a.declarations,(function(e){return e.kind===t.kind&&!(131072&e.flags)}));t===o&&Wv(a),i.parent&&e.getDeclarationOfKind(i,t.kind)===t&&Wv(i)}var s=160===t.kind?void 0:t.body;if(Ub(s),Uy(t,lc(t)),r&&!e.getEffectiveReturnTypeNode(t)&&(e.nodeIsMissing(s)&&!Vv(t)&&Jd(t,be),1&n&&e.nodeIsPresent(s)&&uc(nc(t))),e.isInJSFile(t)){var c=e.getJSDocTypeTag(t);c&&c.typeExpression&&!og(xl(c.typeExpression),t)&&nn(c,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function ch(t){if(r){var n=e.getSourceFileOfNode(t),i=yr.get(n.path);i||(i=[],yr.set(n.path,i)),i.push(t)}}function uh(t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];switch(a.kind){case 245:case 214:dh(a,r),fh(a,r);break;case 290:case 249:case 223:case 251:case 230:case 231:case 232:hh(a,r);break;case 162:case 201:case 244:case 202:case 161:case 163:case 164:a.body&&hh(a,r),fh(a,r);break;case 160:case 165:case 166:case 170:case 171:case 247:case 246:fh(a,r);break;case 181:ph(a,r);break;default:e.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function lh(t,r,n){var i=e.getNameOfDeclaration(t)||t,a=Yb(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 _h(t){return e.isIdentifier(t)&&95===e.idText(t).charCodeAt(0)}function dh(t,r){for(var n=0,i=t.members;n<i.length;n++){var a=i[n];switch(a.kind){case 161:case 159:case 163:case 164:if(164===a.kind&&32768&a.symbol.flags)break;var o=yi(a);o.isReferenced||!(e.hasModifier(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,Hi(o)));break;case 162:for(var s=0,c=a.parameters;s<c.length;s++){var u=c[s];!u.symbol.isReferenced&&e.hasModifier(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 167:case 222:break;default:e.Debug.fail()}}}function ph(t,r){var n=t.typeParameter;gh(n)&&r(t,1,e.createDiagnosticForNode(t,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(n.name)))}function fh(t,r){if(e.last(yi(t).declarations)===t)for(var n=e.getEffectiveTypeParameterDeclarations(t),i=new e.NodeSet,a=0,o=n;a<o.length;a++){var s=o[a];if(gh(s)){var c=e.idText(s.name),u=s.parent;if(181!==u.kind&&u.typeParameters.every(gh)){if(i.tryAdd(u)){var l=e.isJSDocTemplateTag(u)?e.rangeOfNode(u):e.rangeOfTypeParameters(u.typeParameters),_=1===u.typeParameters.length,d=_?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,p=_?c:void 0;r(s,1,e.createFileDiagnostic(e.getSourceFileOfNode(u),l.pos,l.end-l.pos,d,p))}}else r(s,1,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,c))}}}function gh(e){return!(262144&mi(e.symbol).isReferenced)&&!_h(e.name)}function mh(e,t,r,n){var i=String(n(t)),a=e.get(i);a?a[1].push(r):e.set(i,[t,[r]])}function yh(t){return e.tryCast(e.getRootDeclaration(t),e.isParameter)}function vh(t){return e.isBindingElement(t)&&_h(t.name)?!!e.findAncestor(t.parent,(function(t){return!(e.isArrayBindingPattern(t)||e.isVariableDeclaration(t)||e.isVariableDeclarationList(t))&&(!!e.isForOfStatement(t)||"quit")})):e.isAmbientModule(t)||(e.isVariableDeclaration(t)&&e.isForInOrOfStatement(t.parent.parent)||xh(t))&&_h(t.name)}function hh(t,r){var n=e.createMap(),i=e.createMap(),a=e.createMap();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(!vh(u))if(xh(u))mh(n,255===(o=u).kind?o:256===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||mh(i,u.parent,u,P)}else if(e.isVariableDeclaration(u))mh(a,u.parent,u,P);else{var l=t.valueDeclaration&&yh(t.valueDeclaration),_=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);l&&_?e.isParameterPropertyDeclaration(l,l.parent)||e.parameterIsThisKeyword(l)||_h(_)||r(l,1,e.createDiagnosticForNode(_,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(t))):lh(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?256===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];lh(c,e.idText(c.name),r)}})),i.forEach((function(t){var n=t[0],i=t[1],o=yh(n.parent)?1:0;if(n.elements.length===i.length)1===i.length&&242===n.parent.kind&&243===n.parent.parent.kind?mh(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,bh(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,bh(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,bh(e.first(i).name)):e.createDiagnosticForNode(225===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,bh(s.name)))}}))}function bh(t){switch(t.kind){case 75:return e.idText(t);case 190:case 189:return bh(e.cast(e.first(t.elements),e.isBindingElement).name);default:return e.Debug.assertNever(t)}}function xh(e){return 255===e.kind||258===e.kind||256===e.kind}function Dh(t){if(223===t.kind&&vD(t),e.isFunctionOrModuleBlock(t)){var r=xr;e.forEach(t.statements,Ub),xr=r}else e.forEach(t.statements,Ub);t.locals&&ch(t)}function Sh(t,r,n){if(!r||r.escapedText!==n)return!1;if(159===t.kind||158===t.kind||161===t.kind||160===t.kind||163===t.kind||164===t.kind)return!1;if(8388608&t.flags)return!1;var i=e.getRootDeclaration(t);return 156!==i.kind||!e.nodeIsMissing(i.parent.body)}function Ch(t){e.findAncestor(t,(function(r){return!!(4&Nx(r))&&(75!==t.kind?nn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):nn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)}))}function Th(t){e.findAncestor(t,(function(r){return!!(8&Nx(r))&&(75!==t.kind?nn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):nn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)}))}function kh(t){67108864&Nx(e.getEnclosingBlockScopeContainer(t))&&nn(t,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,"WeakMap")}function Eh(t,r){if(!(V>=e.ModuleKind.ES2015||U.noEmit)&&(Sh(t,r,"require")||Sh(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=_a(t);290===n.kind&&e.isExternalOrCommonJsModule(n)&&nn(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function Nh(t,r){if(!(K>=4||U.noEmit)&&Sh(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=_a(t);290===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&nn(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 Ah(e){return e===xe?be:e===Tt?Ct:e}function Fh(t){if(ah(t),e.isBindingElement(t)||Ub(t.type),t.name){if(154===t.name.kind&&(yg(t.name),t.initializer&&lv(t.initializer)),191===t.kind){189===t.parent.kind&&K<99&&Vx(t,4),t.propertyName&&154===t.propertyName.kind&&yg(t.propertyName);var r=t.parent.parent,n=fa(r),i=t.propertyName||t.name;if(n&&!e.isBindingPattern(i)){var a=Au(i);if(Eo(a)){var o=Js(n,wo(a));o&&(fm(o,void 0,!1),Vg(r,!!r.initializer&&102===r.initializer.kind,n,o))}}}if(e.isBindingPattern(t.name)&&(190===t.name.kind&&K<2&&U.downlevelIteration&&Vx(t,512),e.forEach(t.name.elements,Ub)),t.initializer&&156===e.getRootDeclaration(t).kind&&e.nodeIsMissing(e.getContainingFunction(t).body))nn(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(t.name)){var s=t.initializer&&231!==t.parent.parent.kind,c=0===t.name.elements.length;if(s||c){var u=wa(t);if(s){var l=lv(t.initializer);W&&c?$g(l,t):d_(l,wa(t),t,t.initializer)}c&&(e.isArrayBindingPattern(t.name)?Uh(65,u,ke,t):W&&$g(u,t))}}else{var _=yi(t),d=Ah(Wa(_));if(t===_.valueDeclaration){var p=e.getEffectiveInitializer(t);if(p)e.isInJSFile(t)&&e.isObjectLiteralExpression(p)&&(0===p.properties.length||e.isPrototypeAccess(t.name))&&e.hasEntries(_.exports)||231===t.parent.parent.kind||d_(lv(p),d,t,p,void 0);_.declarations.length>1&&e.some(_.declarations,(function(r){return r!==t&&e.isVariableLike(r)&&!wh(r,t)}))&&nn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var f=Ah(wa(t));d===Se||f===Se||r_(d,f)||67108864&_.flags||Ph(_.valueDeclaration,d,t,f),t.initializer&&d_(lv(t.initializer),f,t,t.initializer,void 0),wh(t,_.valueDeclaration)||nn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}159!==t.kind&&158!==t.kind&&(Hv(t),242!==t.kind&&191!==t.kind||function(t){if(0===(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(242!==t.kind||t.initializer)){var r=yi(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=Sn(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&Ug(n)){var i=e.getAncestor(n.valueDeclaration,243),a=225===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!(a&&(223===a.kind&&e.isFunctionLike(a.parent)||250===a.kind||249===a.kind||290===a.kind))){var o=Hi(n);nn(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),Eh(t,t.name),Nh(t,t.name),!U.noEmit&&K<99&&Sh(t,t.name,"WeakMap")&&Kr.push(t))}}}function Ph(t,r,n,i){var a=e.getNameOfDeclaration(n),o=159===n.kind||158===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=nn(a,o,s,Qi(r),Qi(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function wh(t,r){if(156===t.kind&&242===r.kind||242===t.kind&&156===r.kind)return!0;if(e.hasQuestionToken(t)!==e.hasQuestionToken(r))return!1;return e.getSelectedModifierFlags(t,504)===e.getSelectedModifierFlags(r,504)}function Ih(t){return function(t){if(231!==t.parent.parent.kind&&232!==t.parent.parent.kind)if(8388608&t.flags)_D(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return mD(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return mD(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(225!==t.parent.parent.kind||!t.type||t.initializer||8388608&t.flags))return mD(t.exclamationToken,e.Diagnostics.Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation);var r=e.getEmitModuleKind(U);r<e.ModuleKind.ES2015&&r!==e.ModuleKind.System&&!U.noEmit&&!(8388608&t.parent.parent.flags)&&e.hasModifier(t.parent.parent,1)&&function t(r){if(75===r.kind){if("__esModule"===e.idText(r))return mD(r,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=r.elements,i=0,a=n;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o))return t(o.name)}return!1}(t.name);(e.isLet(t)||e.isVarConst(t))&&function t(r){if(75===r.kind){if(115===r.originalKeywordKind)return mD(r,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var n=r.elements,i=0,a=n;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||t(o.name)}return!1}(t.name)}(t),Fh(t)}function Oh(t){return function(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r))return mD(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Gx(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),t.propertyName)return mD(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name);if(t.initializer)gD(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}(t),Fh(t)}function Mh(t){Wx(t)||dD(t.declarationList)||function(t){if(!function e(t){switch(t.kind){case 227:case 228:case 229:case 236:case 230:case 231:case 232:return!1;case 238:return e(t.parent)}return!0}(t.parent)){if(e.isLet(t.declarationList))return mD(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(t.declarationList))mD(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(t),e.forEach(t.declarationList.declarations,Ub)}function Lh(t,r,n){if(W){var i=e.isIdentifier(t)?t:e.isPropertyAccessExpression(t)?t.name:void 0;if(i)if(!bd(n))if(0!==Us(n,0).length){var a=nx(i);if(a)e.forEachChild(r,(function r(n){if(e.isIdentifier(n)){var o=nx(n);if(o&&o===a){if(e.isIdentifier(t))return!0;for(var s=i.parent,c=n.parent;s&&c;){if(e.isIdentifier(s)&&e.isIdentifier(c)||104===s.kind&&104===c.kind)return nx(s)===nx(c);if(!e.isPropertyAccessExpression(s)||!e.isPropertyAccessExpression(c))return!1;if(nx(s.name)!==nx(c.name))return!1;c=c.expression,s=s.expression}}}return e.forEachChild(n,r)}))||nn(t,e.Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead)}}}function Rh(t,r){return 16384&t.flags&&nn(r,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),t}function Bh(e,t){return Rh(Ev(e,t),e)}function jh(t){oD(t);var r=Gg(Ev(t.expression));if(243===t.initializer.kind){var n=t.initializer.declarations[0];n&&e.isBindingPattern(n.name)&&nn(n.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Jh(t)}else{var i=t.initializer,a=Ev(i);192===i.kind||193===i.kind?nn(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):s_(function(e){var t=Ou(Iu(e));return 131072&t.flags?Pe:t}(r),a)?Gy(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):nn(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}r!==ze&&Zy(r,126091264)||nn(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,Qi(r)),Ub(t.statement),t.locals&&ch(t)}function Jh(e){var t=e.initializer;t.declarations.length>=1&&Ih(t.declarations[0])}function zh(e){return Uh(e.awaitModifier?15:13,Wg(e.expression),ke,e.expression)}function Uh(e,t,r,n){return pa(t)?t:Kh(e,t,r,n,!0)||be}function Kh(t,r,n,i,a){var o=0!==(2&t);if(r!==ze){var s=K>=2,c=!s&&U.downlevelIteration;if(s||c||o){var u=Qh(r,t,s?i:void 0);if(a&&u){var l=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;l&&__(n,u.nextType,i,l)}if(u||s)return u&&u.yieldType}var _=r,d=!1,p=!1;if(4&t){if(1048576&_.flags){var f=r.types,g=e.filter(f,(function(e){return!(132&e.flags)}));g!==f&&(_=bu(g,2))}else 132&_.flags&&(_=ze);if((p=_!==r)&&(K<1&&i&&(nn(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),d=!0),131072&_.flags))return Pe}if(!nd(_)){if(i&&!d){var m=Vh(t,0,r,void 0),y=4&t&&!p?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]:m?[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]:m?[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],v=y[0];sn(i,y[1]&&!!Gv(_),v,Qi(_))}return p?Pe:void 0}var h=Ws(_,1);return p&&h?132&h.flags?Pe:bu([h,Pe],2):h}rb(i,r,o)}function Vh(e,t,r,n){if(!pa(r)){var i=Qh(r,e,n);return i&&i[R(t)]}}function qh(e,t,r){if(void 0===e&&(e=ze),void 0===t&&(t=ze),void 0===r&&(r=Te),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=Ec([e,t,r]),i=ur.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},ur.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function Wh(t){for(var r,n,i,a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s&&s!==lr){if(s===_r)return _r;r=e.append(r,s.yieldType),n=e.append(n,s.returnType),i=e.append(i,s.nextType)}}return r||n||i?qh(r&&bu(r),n&&bu(n),i&&Eu(i)):lr}function Hh(e,t){return e[t]}function Gh(e,t,r){return e[t]=r}function Qh(t,r,n){if(pa(t))return _r;if(!(1048576&t.flags)){var i=Yh(t,r,n);return i===lr?void(n&&rb(n,t,!!(2&r))):i}var a,o=2&r?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",s=Hh(t,o);if(s)return s===lr?void 0:s;for(var c=0,u=t.types;c<u.length;c++){var l=Yh(u[c],r,n);l===lr?n&&(rb(n,t,!!(2&r)),n=void 0):a=e.append(a,l)}var _=a?Wh(a):lr;return Gh(t,o,_),_===lr?void 0:_}function Xh(e,t){if(e===lr)return lr;if(e===_r)return _r;var r=e.yieldType,n=e.returnType,i=e.nextType;return qh(Yv(r,t)||be,Yv(n,t)||be,i)}function Yh(e,t,r){if(pa(e))return _r;var n;if(2&t&&(n=Zh(e,fr)||eb(e,fr)))return n;if(1&t&&(n=Zh(e,gr)||eb(e,gr))){if(!(2&t))return n;if(n!==lr)return Gh(e,"iterationTypesOfAsyncIterable",Xh(n,r))}if(2&t&&(n=tb(e,fr,r))!==lr)return n;if(1&t&&(n=tb(e,gr,r))!==lr)return 2&t?Gh(e,"iterationTypesOfAsyncIterable",n?Xh(n,r):lr):n;return lr}function Zh(e,t){return Hh(e,t.iterableCacheKey)}function $h(e,t){var r=Zh(e,t)||tb(e,t,void 0);return r===lr?pr:r}function eb(e,t){var r;if(Ha(e,r=t.getGlobalIterableType(!1))||Ha(e,r=t.getGlobalIterableIteratorType(!1))){var n=wc(e)[0],i=$h(r,t),a=i.returnType,o=i.nextType;return Gh(e,t.iterableCacheKey,qh(n,a,o))}if(Ha(e,t.getGlobalGeneratorType(!1))){var s=wc(e);n=s[0],a=s[1],o=s[2];return Gh(e,t.iterableCacheKey,qh(n,a,o))}}function tb(t,r,n){var i,a=Js(t,e.getPropertyNameForKnownSymbolName(r.iteratorSymbolName)),o=!a||16777216&a.flags?void 0:Wa(a);if(pa(o))return Gh(t,r.iterableCacheKey,_r);var s=o?Us(o,0):void 0;if(!e.some(s))return Gh(t,r.iterableCacheKey,lr);var c=null!==(i=nb(bu(e.map(s,uc),2),r,n))&&void 0!==i?i:lr;return Gh(t,r.iterableCacheKey,c)}function rb(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;sn(t,!!Gv(r),i,Qi(r))}function nb(e,t,r){if(pa(e))return _r;var n=ib(e,t)||function(e,t){var r=t.getGlobalIterableIteratorType(!1);if(Ha(e,r)){var n=wc(e)[0],i=ib(r,t)||lb(r,t,void 0),a=i===lr?pr:i,o=a.returnType,s=a.nextType;return Gh(e,t.iteratorCacheKey,qh(n,o,s))}if(Ha(e,t.getGlobalIteratorType(!1))||Ha(e,t.getGlobalGeneratorType(!1))){var c=wc(e);n=c[0],o=c[1],s=c[2];return Gh(e,t.iteratorCacheKey,qh(n,o,s))}}(e,t)||lb(e,t,r);return n===lr?void 0:n}function ib(e,t){return Hh(e,t.iteratorCacheKey)}function ab(e,t){var r=da(e,"done")||Oe;return s_(0===t?Oe:Le,r)}function ob(e){return ab(e,0)}function sb(e){return ab(e,1)}function cb(e){if(pa(e))return _r;var t,r=Hh(e,"iterationTypesOfIteratorResult");if(r)return r;if(Ha(e,(t=!1,jt||(jt=Zc("IteratorYieldResult",1,t))||rt)))return Gh(e,"iterationTypesOfIteratorResult",qh(wc(e)[0],void 0,void 0));if(Ha(e,function(e){return Jt||(Jt=Zc("IteratorReturnResult",1,e))||rt}(!1)))return Gh(e,"iterationTypesOfIteratorResult",qh(void 0,wc(e)[0],void 0));var n=Gp(e,ob),i=n!==ze?da(n,"value"):void 0,a=Gp(e,sb),o=a!==ze?da(a,"value"):void 0;return Gh(e,"iterationTypesOfIteratorResult",i||o?qh(i,o||Je,void 0):lr)}function ub(t,r,n,i){var a=Js(t,n);if(a||"next"===n){var o=!a||"next"===n&&16777216&a.flags?void 0:"next"===n?Wa(a):Pp(Wa(a),2097152);if(pa(o))return"next"===n?_r:dr;var s,c,u,l,_,d=o?Us(o,0):e.emptyArray;if(0===d.length){if(i)nn(i,"next"===n?r.mustHaveANextMethodDiagnostic:r.mustBeAMethodDiagnostic,n);return"next"===n?_r:void 0}for(var p=0,f=d;p<f.length;p++){var g=f[p];"throw"!==n&&e.some(g.parameters)&&(s=e.append(s,by(g,0))),c=e.append(c,uc(g))}if("throw"!==n){var m=s?bu(s):Te;if("next"===n)l=m;else if("return"===n){var y=r.resolveIterationType(m,i)||be;u=e.append(u,y)}}var v=c?bu(c,2):ze,h=cb(r.resolveIterationType(v,i)||be);return h===lr?(i&&nn(i,r.mustHaveAValueDiagnostic,n),_=be,u=e.append(u,be)):(_=h.yieldType,u=e.append(u,h.returnType)),qh(_,bu(u),l)}}function lb(e,t,r){var n=Wh([ub(e,t,"next",r),ub(e,t,"return",r),ub(e,t,"throw",r)]);return Gh(e,t.iteratorCacheKey,n)}function _b(e,t,r){if(!pa(t)){var n=db(t,r);return n&&n[R(e)]}}function db(e,t){if(pa(e))return _r;var r=t?fr:gr;return Qh(e,t?2:1,void 0)||nb(e,r,void 0)}function pb(t){vD(t)||function(t){var r=t;for(;r;){if(e.isFunctionLike(r))return mD(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 238:if(t.label&&r.label.escapedText===t.label.escapedText)return!!(233===t.kind&&!e.isIterationStatement(r.statement,!0))&&mD(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 237:if(234===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}if(t.label){var n=234===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;return mD(t,n)}n=234===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;mD(t,n)}(t)}function fb(e,t){var r,n,i=!!(2&t);return!!(1&t)?null!==(r=_b(1,e,i))&&void 0!==r?r:Se:i?null!==(n=Yv(e))&&void 0!==n?n:Se:e}function gb(t,r){var n=fb(r,e.getFunctionFlags(t));return!!n&&Yy(n,16387)}function mb(t){vD(t)||void 0===t.expression&&function(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!pD(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return qr.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,i,a)),!0}}(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&Ev(t.expression)}function yb(t){var r,n=xc(t.symbol,1),i=xc(t.symbol,0),a=Ws(t,0),o=Ws(t,1);if(a||o){e.forEach(ps(t),(function(e){var r=Wa(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.hasModifier(l,32)&&Po(l)){var _=yi(l),d=Wa(_);p(_,d,t,i,a,0),p(_,d,t,n,o,1)}}}a&&o&&(!(r=n||i)&&2&e.getObjectFlags(t)&&(r=e.forEach(oo(t),(function(e){return Ws(e,0)&&Ws(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?fg(c):mg(t.escapedName)))){var u;if(s&&c&&(209===s.kind||154===c.kind||t.parent===n.symbol))u=s;else if(i)u=i;else if(2&e.getObjectFlags(n)){u=e.forEach(oo(n),(function(e){return fs(e,t.escapedName)&&Ws(e,o)}))?void 0:n.symbol.declarations[0]}if(u&&!s_(r,a))nn(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,Hi(t),Qi(r),Qi(a))}}}r&&!s_(o,a)&&nn(r,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,Qi(o),Qi(a))}function vb(e,t){switch(e.escapedText){case"any":case"unknown":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":nn(e,t,e.escapedText)}}function hb(t){if(t)for(var n=!1,i=0;i<t.length;i++){var a=t[i];if(Nv(a),r){a.default?(n=!0,bb(a.default,t,i)):n&&nn(a,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var o=0;o<i;o++)t[o].symbol===a.symbol&&nn(a.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(a.name))}}}function bb(t,r,n){!function t(i){if(169===i.kind){var a=Wc(i);if(262144&a.flags)for(var o=n;o<r.length;o++)a.symbol===yi(r[o])&&nn(i,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(i,t)}(t)}function xb(t){if(1!==t.declarations.length){var r=yn(t);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=function(t){return e.filter(t.declarations,(function(e){return 245===e.kind||246===e.kind}))}(t);if(n.length<=1)return;if(!function(t,r){for(var n=e.length(r),i=tc(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&&xl(p),g=vs(d);if(f&&g&&!r_(f,g))return!1;var m=_.default&&xl(_.default),y=Ns(d);if(m&&y&&!r_(m,y))return!1}}return!0}(n,yo(t).localTypeParameters))for(var i=Hi(t),a=0,o=n;a<o.length;a++){nn(o[a].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}}function Db(t){var n;!function(t){var r=e.getSourceFileOfNode(t);(function(t){var r=!1,n=!1;if(!Wx(t)&&t.heritageClauses)for(var i=0,a=t.heritageClauses;i<a.length;i++){var o=a[i];if(90===o.token){if(r)return fD(o,e.Diagnostics.extends_clause_already_seen);if(n)return fD(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return fD(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(113===o.token),n)return fD(o,e.Diagnostics.implements_clause_already_seen);n=!0}eD(o)}})(t)||Qx(t.typeParameters,r)}(t),ah(t),t.name&&(vb(t.name,e.Diagnostics.Class_name_cannot_be_0),Eh(t,t.name),Nh(t,t.name),8388608&t.flags||(n=t.name,1===K&&"Object"===n.escapedText&&V<e.ModuleKind.ES2015&&nn(n,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[V]))),hb(e.getEffectiveTypeParameterDeclarations(t)),Hv(t);var i=yi(t),a=yo(i),o=Ro(a),s=Wa(i);xb(i),function(t){for(var r=e.createUnderscoreEscapedMap(),n=e.createUnderscoreEscapedMap(),i=e.createUnderscoreEscapedMap(),a=0,o=t.members;a<o.length;a++){var s=o[a];if(162===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.hasModifier(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 163:g(p,d,f,1);break;case 164:g(p,d,f,2);break;case 159:g(p,d,f,3);break;case 161:g(p,d,f,8)}}}function g(t,r,n,i){var a=t.get(n);a?8&a?8!==i&&nn(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):a&i?nn(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.hasModifier(i,32)&&a){var o=e.getPropertyNameForPropertyNameNode(a);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":nn(a,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,ia(yi(t)))}}}}(t);var c=e.getEffectiveBaseTypeNode(t);if(c){e.forEach(c.typeArguments,Ub),K<2&&Vx(c.parent,1);var u=e.getClassExtendsHeritageElement(t);u&&u!==c&&Ev(u.expression);var l=oo(a);if(l.length&&r){var _=l[0],d=ao(a),p=Fs(d);if(function(t,r){var n=Us(t,1);if(n.length){var i=n[0].declaration;if(i&&e.hasModifier(i,8)){var a=e.getClassLikeDeclarationOfSymbol(t.symbol);ex(r,a)||nn(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,ei(t.symbol))}}}(p,c),Ub(c.expression),e.some(c.typeArguments)){e.forEach(c.typeArguments,Ub);for(var f=0,g=no(p,c.typeArguments,c);f<g.length;f++){if(!jv(c,g[f].typeParameters))break}}if(__(o,D=Ro(_,a.thisType),void 0)?__(s,t_(p),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):Sb(t,o,D,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&d.flags&&!eo(s)&&nn(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),!(p.symbol&&32&p.symbol.flags)&&!(8650752&d.flags)){var m=io(p,c.typeArguments,c);e.forEach(m,(function(e){return!sy(e.declaration)&&!r_(uc(e),_)}))&&nn(c.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(t,r){var n=ms(r);e:for(var i=0,a=n;i<a.length;i++){var o=a[i],s=Cb(o);if(!(4194304&s.flags)){var c=fs(t,s.escapedName);if(c){var u=Cb(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.hasModifier(_,128))){for(var d=0,p=oo(t);d<p.length;d++){var f=p[d];if(f!==r){var g=fs(f,s.escapedName),m=g&&Cb(g);if(m&&m!==s)continue e}}214===_.kind?nn(_,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Hi(o),Qi(r)):nn(_,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Qi(t),Hi(o),Qi(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(!U.useDefineForClassFields||128&l&&!(s.valueDeclaration&&e.isPropertyDeclaration(s.valueDeclaration)&&s.valueDeclaration.initializer)||s.valueDeclaration&&246===s.valueDeclaration.parent.kind||u.valueDeclaration&&e.isBinaryExpression(u.valueDeclaration))continue;var x=4!==h&&4===b,D=4===h&&4!==b;if(x||D){var S=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;nn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,S,Hi(s),Qi(r),Qi(t))}else{var C=e.find(u.declarations,(function(e){return 159===e.kind&&!e.initializer}));if(C&&!(33554432&u.flags)&&!(128&l)&&!(128&y)&&!u.declarations.some((function(e){return!!(8388608&e.flags)}))){var T=Ti(e.getClassLikeDeclarationOfSymbol(t.symbol)),k=C.name;if(C.exclamationToken||!T||!e.isIdentifier(k)||!W||!kb(k,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;nn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,E,Hi(s),Qi(r))}}}continue}if(Kg(s)){if(Kg(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;nn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,v,Qi(r),Hi(s),Qi(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)||nn(b.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),zv(b),r){var x=Ms(xl(b));if(x!==Se)if(so(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;__(o,D=Ro(x,a.thisType),void 0)||Sb(t,o,D,S)}else nn(b,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}r&&(yb(a),Iv(t),function(t){if(!W||!Q||8388608&t.flags)return;for(var r=Ti(t),n=0,i=t.members;n<i.length;n++){var a=i[n];if(!(2&e.getModifierFlags(a))&&Tb(a)){var o=a.name;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)){var s=Wa(yi(a));3&s.flags||32768&bd(s)||r&&kb(o,s,r)||nn(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}(t))}function Sb(t,r,n,i){for(var a=!1,o=function(t){if(e.hasStaticModifier(t))return"continue";var i=t.name&&nx(t.name)||nx(t);if(i){var o=Js(r,i.escapedName),s=Js(n,i.escapedName);if(o&&s){__(Wa(o),Wa(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,Hi(i),Qi(r),Qi(n))}))||(a=!0)}}},s=0,c=t.members;s<c.length;s++){o(c[s])}a||__(r,n,t.name||t,i)}function Cb(t){return 1&e.getCheckFlags(t)?t.target:t}function Tb(t){return 159===t.kind&&!e.hasModifier(t,160)&&!t.exclamationToken&&!t.initializer}function kb(t,r,n){var i=e.createPropertyAccess(e.createThis(),t);return i.expression.parent=i,i.parent=n,i.flowNode=n.returnFlowNode,!(32768&bd(mf(i,r,Cd(r))))}function Eb(t){if(Wx(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(90!==a.token)return e.Debug.assert(113===a.token),fD(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(r)return fD(a,e.Diagnostics.extends_clause_already_seen);r=!0,eD(a)}}(t),hb(t.typeParameters),r){vb(t.name,e.Diagnostics.Interface_name_cannot_be_0),Hv(t);var n=yi(t);if(xb(n),t===e.getDeclarationOfKind(n,246)){var i=yo(n),a=Ro(i);if(function(t,r){var n=oo(t);if(n.length<2)return!0;var i=e.createUnderscoreEscapedMap();e.forEach(ko(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=ms(Ro(c,t.thisType));u<l.length;u++){var _=l[u],d=i.get(_.escapedName);if(d){if(d.containingType!==t&&!Q_(d.prop,_)){a=!1;var p=Qi(d.containingType),f=Qi(c),g=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Hi(_),p,f);g=e.chainDiagnosticMessages(g,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Qi(t),p,f),qr.add(e.createDiagnosticForNodeFromMessageChain(r,g))}}else i.set(_.escapedName,{prop:_,containingType:c})}return a}(i,t.name)){for(var o=0,s=oo(i);o<s.length;o++){__(a,Ro(s[o],i.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}yb(i)}}wv(t)}e.forEach(e.getInterfaceBaseTypeNodes(t),(function(t){e.isEntityNameExpression(t.expression)||nn(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),zv(t)})),e.forEach(t.members,Ub),r&&(Iv(t),ch(t))}function Nb(e){var t=vn(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=Ab(a,r);vn(a).enumMemberValue=o,r="number"===typeof o?o+1:void 0}}}function Ab(t,r){if(e.isComputedNonLiteralName(t.name))nn(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var n=e.getTextOfPropertyName(t.name);mg(n)&&!gg(n)&&nn(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return t.initializer?function(t){var r=_o(yi(t.parent)),n=e.isEnumConst(t.parent),i=t.initializer,a=1!==r||lo(t)?function r(n){switch(n.kind){case 207:var i=r(n.operand);if("number"===typeof i)switch(n.operator){case 39:return i;case 40:return-i;case 54:return~i}break;case 209:var a=r(n.left),o=r(n.right);if("number"===typeof a&&"number"===typeof o)switch(n.operatorToken.kind){case 51:return a|o;case 50:return a&o;case 48:return a>>o;case 49:return a>>>o;case 47:return a<<o;case 52:return a^o;case 41:return a*o;case 43:return a/o;case 39:return a+o;case 40:return a-o;case 44:return a%o;case 42:return Math.pow(a,o)}else if("string"===typeof a&&"string"===typeof o&&39===n.operatorToken.kind)return a+o;break;case 10:case 14:return n.text;case 8:return hD(n),+n.text;case 200:return r(n.expression);case 75:var c=n;return gg(c.escapedText)?+c.escapedText:e.nodeIsMissing(n)?0:s(n,yi(t.parent),c.escapedText);case 195:case 194:var u=n;if(function t(r){return 75===r.kind||194===r.kind&&t(r.expression)||195===r.kind&&t(r.expression)&&e.isStringLiteralLike(r.argumentExpression)}(u)){var l=Cv(u.expression);if(l.symbol&&384&l.symbol.flags){var _=void 0;return _=194===u.kind?u.name.escapedText:e.escapeLeadingUnderscores(e.cast(u.argumentExpression,e.isLiteralExpression).text),s(n,l.symbol,_)}}}return}(i):void 0;if(void 0!==a)n&&"number"===typeof a&&!isFinite(a)&&nn(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 nn(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(n)nn(i,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(8388608&t.parent.flags)nn(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var o=Ev(i);Zy(o,296)?__(o,yo(yi(t.parent)),i,void 0):nn(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,Qi(o))}}return a;function s(r,n,i){var a=n.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==t)return xn(o,t)?Ax(o):(nn(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);nn(r,e.Diagnostics.Property_0_is_used_before_being_assigned,Hi(a))}}}(t):8388608&t.parent.flags&&!e.isEnumConst(t.parent)&&0===_o(yi(t.parent))?void 0:void 0!==r?r:void nn(t.name,e.Diagnostics.Enum_member_must_have_initializer)}function Fb(t){e.isPrivateIdentifier(t.name)&&nn(t,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function Pb(t){if(r){var n=e.isGlobalScopeAugmentation(t),i=8388608&t.flags;n&&!i&&nn(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(Bb(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;Wx(t)||i||10!==t.name.kind||mD(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&(Eh(t,t.name),Nh(t,t.name)),Hv(t);var o=yi(t);if(512&o.flags&&!i&&o.declarations.length>1&&I(t,!!U.preserveConstEnums||!!U.isolatedModules)){var s=function(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if((245===i.kind||244===i.kind&&e.nodeIsPresent(i.body))&&!(8388608&i.flags))return i}}(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?nn(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&&nn(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,245);c&&function(t,r){var n=e.getEnclosingBlockScopeContainer(t),i=e.getEnclosingBlockScopeContainer(r);return hn(n)?hn(i):!hn(i)&&n===i}(t,c)&&(vn(t).flags|=32768)}if(a)if(e.isExternalModuleAugmentation(t)){if((n||33554432&yi(t).flags)&&t.body)for(var u=0,l=t.body.statements;u<l.length;u++){wb(l[u],n)}}else hn(t.parent)?n?nn(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))&&nn(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):nn(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)}t.body&&(Ub(t.body),e.isGlobalScopeAugmentation(t)||ch(t))}function wb(t,r){switch(t.kind){case 225:for(var n=0,i=t.declarationList.declarations;n<i.length;n++){wb(i[n],r)}break;case 259:case 260:fD(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 253:case 254:fD(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 191:case 242:var a=t.name;if(e.isBindingPattern(a)){for(var o=0,s=a.elements;o<s.length;o++){wb(s[o],r)}break}case 245:case 248:case 244:case 246:case 249:case 247:if(r)return;var c=yi(t);if(c){var u=!(33554432&c.flags);u||(u=!!c.parent&&e.isExternalModuleAugmentation(c.parent.declarations[0]))}}}function Ib(t){var r=e.getExternalModuleName(t);if(!r||e.nodeIsMissing(r))return!1;if(!e.isStringLiteral(r))return nn(r,e.Diagnostics.String_literal_expected),!1;var n=250===t.parent.kind&&e.isAmbientModule(t.parent.parent);return 290===t.parent.kind||n?!(n&&e.isExternalModuleNameRelative(r.text)&&!ta(t))||(nn(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):(nn(r,260===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 Ob(t){var r=yi(t),n=Hn(r);if(!(67108864&r.flags)&&n!==ve){var i=(1160127&(r=mi(r.exportSymbol||r)).flags?111551:0)|(788968&r.flags?788968:0)|(1920&r.flags?1920:0);if(n.flags&i)nn(t,263===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,Hi(r));!U.isolatedModules||263!==t.kind||t.parent.parent.isTypeOnly||111551&n.flags||8388608&t.flags||nn(t,e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type)}}function Mb(e){Eh(e,e.name),Nh(e,e.name),Ob(e)}function Lb(t){if(!Bb(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!Wx(t)&&e.hasModifiers(t)&&fD(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),Ib(t))){var r=t.importClause;if(r&&!function(t){if(t.isTypeOnly&&t.name&&t.namedBindings)return mD(t,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);return!1}(r))if(r.name&&Mb(r),r.namedBindings)if(256===r.namedBindings.kind)Mb(r.namedBindings);else ni(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,Mb)}}function Rb(t){if(!Bb(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!Wx(t)&&e.hasModifiers(t)&&fD(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&0===K&&Vx(t,1048576),function(t){var r,n=t.isTypeOnly&&261!==(null===(r=t.exportClause)||void 0===r?void 0:r.kind);n&&mD(t,e.Diagnostics.Only_named_exports_may_use_export_type)}(t),!t.moduleSpecifier||Ib(t)))if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,Jb);var r=250===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&250===t.parent.kind&&!t.moduleSpecifier&&8388608&t.flags;290===t.parent.kind||r||n||nn(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=ni(t,t.moduleSpecifier);i&&ui(i)?nn(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Hi(i)):t.exportClause&&Ob(t.exportClause),V!==e.ModuleKind.System&&V<e.ModuleKind.ES2015&&Vx(t,65536)}}function Bb(e,t){var r=290===e.parent.kind||250===e.parent.kind||249===e.parent.kind;return r||fD(e,t),!r}function jb(t){return e.forEachImportClauseDeclaration(t,(function(e){return!!yn(yi(e)).constEnumReferenced}))}function Jb(t){if(Ob(t),e.getEmitDeclarations(U)&&oa(t.propertyName||t.name,!0),!t.parent.parent.moduleSpecifier){var r=t.propertyName||t.name,n=Sn(r,r.escapedText,2998271,void 0,void 0,!0);if(n&&(n===ne||n===ie||hn(_a(n.declarations[0]))))nn(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r));else{Yn(t);var i=n&&(2097152&n.flags?Hn(n):n);(!i||i===ve||111551&i.flags)&&lv(t.propertyName||t.name)}}}function zb(t){var r=yi(t),n=yn(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=In(i)||i.valueDeclaration;ta(a)||e.isInJSFile(a)||nn(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=pi(r);o&&o.forEach((function(t,r){var n=t.declarations,i=t.flags;if("__export"!==r&&!(1984&i)){var a=e.countWhere(n,N);if(!(524288&i&&a<=2)&&a>1)for(var o=0,s=n;o<s.length;o++){var c=s[o];O(c)&&qr.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(r)))}}})),n.exportsChecked=!0}}function Ub(t){if(t){var i=_;_=t,D=0,function(t){e.isInJSFile(t)&&e.forEach(t.jsDoc,(function(t){var r=t.tags;return e.forEach(r,Ub)}));var i=t.kind;if(n)switch(i){case 249:case 245:case 246:case 244:n.throwIfCancellationRequested()}i>=225&&i<=241&&t.flowNode&&!ff(t.flowNode)&&on(!1===U.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected);switch(i){case 155:return Nv(t);case 156:return Av(t);case 159:return Ov(t);case 158:return function(t){return e.isPrivateIdentifier(t.name)&&nn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ov(t)}(t);case 170:case 171:case 165:case 166:case 167:return Pv(t);case 161:case 160:return function(t){uD(t)||rD(t.name),e.isPrivateIdentifier(t.name)&&nn(t,e.Diagnostics.A_method_cannot_be_named_with_a_private_identifier),sh(t),e.hasModifier(t,128)&&161===t.kind&&t.body&&nn(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name))}(t);case 162:return Mv(t);case 163:case 164:return Lv(t);case 169:return zv(t);case 168:return function(t){var r=function(e){switch(e.parent.kind){case 202:case 165:case 244:case 201:case 170:case 161:case 160:var t=e.parent;if(e===t.type)return t}}(t);if(r){var n=nc(r),i=cc(n);if(i){Ub(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)bl(a);else if(i.parameterIndex>=0){if(B(n)&&i.parameterIndex===n.parameters.length-1)nn(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(i.type){__(i.type,Wa(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)&&Fv(u,a,i.parameterName)){o=!0;break}}o||nn(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,i.parameterName)}}}else nn(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(t);case 172:return function(e){Gc(e)}(t);case 173:return function(t){e.forEach(t.members,Ub),r&&(yb(nl(t)),Iv(t),wv(t))}(t);case 174:return function(e){Ub(e.elementType)}(t);case 175:return function(t){for(var r=t.elementTypes,n=!1,i=0;i<r.length;i++){var a=r[i];if(177===a.kind){if(i!==r.length-1){mD(a,e.Diagnostics.A_rest_element_must_be_last_in_a_tuple_type);break}$_(xl(a.type))||nn(a,e.Diagnostics.A_rest_element_type_must_be_an_array_type)}else if(176===a.kind)n=!0;else if(n){mD(a,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(t.elementTypes,Ub)}(t);case 178:case 179:return function(t){e.forEach(t.types,Ub)}(t);case 182:case 176:case 177:return Ub(t.type);case 183:return function(e){bl(e)}(t);case 184:return Kv(t);case 180:return function(t){e.forEachChild(t,Ub)}(t);case 181:return function(t){e.findAncestor(t,(function(e){return e.parent&&180===e.parent.kind&&e.parent.extendsType===e}))||mD(t,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Ub(t.typeParameter),ch(t)}(t);case 188:return function(e){Ub(e.argument),xl(e)}(t);case 307: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&&nn(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=oh(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=oh(a.expression);o&&i.escapedText!==o.escapedText&&nn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else nn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 308:return function(t){var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||nn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 322:case 315:case 316:return function(t){t.typeExpression||nn(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&vb(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Ub(t.typeExpression)}(t);case 321:return function(e){Ub(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++){Ub(r[t])}}(t);case 320:return function(e){Ub(e.typeExpression)}(t);case 317:return function(t){if(Ub(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;ac(r)?e.findLast(e.getJSDocTags(r),e.isJSDocParameterTag)===t&&t.typeExpression&&t.typeExpression.type&&!$_(xl(t.typeExpression.type))&&nn(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(153===t.name.kind?t.name.right:t.name)):e.isQualifiedName(t.name)?nn(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)):nn(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(t.name))}}}(t);case 323:return function(e){Ub(e.typeExpression)}(t);case 300:!function(t){!r||t.type||e.isJSDocConstructSignature(t)||Jd(t,be),Pv(t)}(t);case 298:case 297:case 295:case 296:case 304:return Kb(t),void e.forEachChild(t,Ub);case 301:return void function(t){Kb(t),Ub(t.type);var r=t.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent))return void(e.last(r.parent.parameters)!==r&&nn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list));e.isJSDocTypeExpression(r)||nn(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 nn(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||nn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}(t);case 294:return Ub(t.type);case 185:return function(e){Ub(e.objectType),Ub(e.indexType),Uv(Gu(e),e)}(t);case 186:return function(t){Ub(t.typeParameter),Ub(t.type),t.type||Jd(t,be),__(ns(Qu(t)),Ge,e.getEffectiveConstraintOfTypeParameter(t.typeParameter))}(t);case 244:return function(e){r&&(sh(e),nD(e),Eh(e,e.name),Nh(e,e.name))}(t);case 223:case 250:return Dh(t);case 225:return Mh(t);case 226:return function(e){vD(e),Ev(e.expression)}(t);case 227:return function(t){vD(t);var r=Bh(t.expression);Lh(t.expression,t.thenStatement,r),Ub(t.thenStatement),224===t.thenStatement.kind&&nn(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Ub(t.elseStatement)}(t);case 228:return function(e){vD(e),Ub(e.statement),Bh(e.expression)}(t);case 229:return function(e){vD(e),Bh(e.expression),Ub(e.statement)}(t);case 230:return function(t){vD(t)||t.initializer&&243===t.initializer.kind&&dD(t.initializer),t.initializer&&(243===t.initializer.kind?e.forEach(t.initializer.declarations,Ih):Ev(t.initializer)),t.condition&&Bh(t.condition),t.incrementor&&Ev(t.incrementor),Ub(t.statement),t.locals&&ch(t)}(t);case 231:return jh(t);case 232:return function(t){if(oD(t),t.awaitModifier?2===(6&e.getFunctionFlags(e.getContainingFunction(t)))&&K<99&&Vx(t,32768):U.downlevelIteration&&K<2&&Vx(t,256),243===t.initializer.kind)Jh(t);else{var r=t.initializer,n=zh(t);if(192===r.kind||193===r.kind)iv(r,n||Se);else{var i=Ev(r);Gy(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&&d_(n,i,r,t.expression)}}Ub(t.statement),t.locals&&ch(t)}(t);case 233:case 234:return pb(t);case 235:return function(t){var r;if(!vD(t)){var n=e.getContainingFunction(t);if(n){var i=uc(nc(n)),a=e.getFunctionFlags(n);if(W||t.expression||131072&i.flags){var o=t.expression?lv(t.expression):ke;if(164===n.kind)t.expression&&nn(t,e.Diagnostics.Setters_cannot_return_a_value);else if(162===n.kind)t.expression&&!d_(o,i,t,t.expression)&&nn(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=fb(i,a))&&void 0!==r?r:i,c=2&a?Xv(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&&d_(c,s,t,t.expression)}}else 162!==n.kind&&U.noImplicitReturns&&!gb(n,i)&&nn(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else fD(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(t);case 236:return function(t){vD(t)||32768&t.flags&&fD(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),Ev(t.expression);var r=e.getSourceFileOfNode(t);if(!pD(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start;gD(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 237:return function(t){var n;vD(t);var i=!1,a=Ev(t.expression),o=ud(a);e.forEach(t.caseBlock.clauses,(function(t){if(278!==t.kind||i||(void 0===n?n=t:(mD(t,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),i=!0)),r&&277===t.kind){var s=Ev(t.expression),c=ud(s),u=a;c&&o||(s=c?ld(s):s,u=ld(a)),av(u,s)||D_(s,u,t.expression,void 0)}e.forEach(t.statements,Ub),U.noFallthroughCasesInSwitch&&t.fallthroughFlowNode&&ff(t.fallthroughFlowNode)&&nn(t,e.Diagnostics.Fallthrough_case_in_switch)})),t.caseBlock.locals&&ch(t.caseBlock)}(t);case 238:return function(t){vD(t)||e.findAncestor(t.parent,(function(r){return e.isFunctionLike(r)?"quit":238===r.kind&&r.label.escapedText===t.label.escapedText&&(mD(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0)})),Ub(t.statement)}(t);case 239:return mb(t);case 240:return function(t){vD(t),Dh(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration)if(r.variableDeclaration.type)fD(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(r.variableDeclaration.initializer)fD(r.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var n=r.block.locals;n&&e.forEachKey(r.locals,(function(t){var r=n.get(t);r&&0!==(2&r.flags)&&mD(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)}))}Dh(r.block)}t.finallyBlock&&Dh(t.finallyBlock)}(t);case 242:return Ih(t);case 191:return Oh(t);case 245:return function(t){t.name||e.hasModifier(t,512)||fD(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),Db(t),e.forEach(t.members,Ub),ch(t)}(t);case 246:return Eb(t);case 247:return function(t){Wx(t),vb(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Hv(t),hb(t.typeParameters),Ub(t.type),ch(t)}(t);case 248:return function(t){if(r){Wx(t),vb(t.name,e.Diagnostics.Enum_name_cannot_be_0),Eh(t,t.name),Nh(t,t.name),Hv(t),t.members.forEach(Fb),Nb(t);var n=yi(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&&nn(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var a=!1;e.forEach(n.declarations,(function(t){if(248!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(a?nn(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 249:return Pb(t);case 254:return Lb(t);case 253:return function(t){if(!Bb(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(Wx(t),e.isInternalModuleImportEqualsDeclaration(t)||Ib(t)))if(Mb(t),e.hasModifier(t,1)&&Yn(t),265!==t.moduleReference.kind){var r=Hn(yi(t));if(r!==ve){if(111551&r.flags){var n=e.getFirstIdentifier(t.moduleReference);1920&ti(n,112575).flags||nn(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}788968&r.flags&&vb(t.name,e.Diagnostics.Import_name_cannot_be_0)}}else V>=e.ModuleKind.ES2015&&!(8388608&t.flags)&&mD(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 260:return Rb(t);case 259:return function(t){if(!Bb(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var r=290===t.parent.kind?t.parent:t.parent.parent;if(249!==r.kind||e.isAmbientModule(r)){if(!Wx(t)&&e.hasModifiers(t)&&fD(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),75===t.expression.kind){var n=t.expression,i=ti(n,67108863,!0,!0,t);if(i){Cf(i,n);var a=2097152&i.flags?Hn(i):i;(a===ve||111551&a.flags)&&lv(t.expression)}e.getEmitDeclarations(U)&&oa(t.expression,!0)}else lv(t.expression);zb(r),8388608&t.flags&&!e.isEntityNameExpression(t.expression)&&mD(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||(V>=e.ModuleKind.ES2015?mD(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):V===e.ModuleKind.System&&mD(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?nn(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):nn(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 224:case 241:return void vD(t);case 264:(function(e){ah(e)})(t)}}(t),_=i}}function Kb(t){e.isInJSFile(t)||mD(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Vb(t){var r=vn(e.getSourceFileOfNode(t));if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||e.createMap();var n=""+P(t);r.deferredNodes.set(n,t)}}function qb(t){var r=_;switch(_=t,D=0,t.kind){case 196:case 197:case 198:case 157:case 268:xm(t);break;case 201:case 202:case 161:case 160:!function(t){e.Debug.assert(161!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=lc(t);if(Uy(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||uc(nc(t)),223===t.body.kind)Ub(t.body);else{var i=Ev(t.body),a=n&&fb(n,r);if(a)if(2===(3&r))d_(Xv(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),a,t.body,t.body);else d_(i,a,t.body,t.body)}}(t);break;case 163:case 164:Lv(t);break;case 214:!function(t){e.forEach(t.members,Ub),ch(t)}(t);break;case 267:!function(e){Bg(e),xm(e)}(t);break;case 266:!function(e){Bg(e.openingElement),Sg(e.closingElement.tagName)?Ag(e.closingElement):Ev(e.closingElement.tagName),Tg(e)}(t)}_=r}function Wb(r){e.performance.mark("beforeCheck"),function(r){var n=vn(r);if(!(1&n.flags)){if(e.skipTypeChecking(r,U,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)||225===i.kind)&&yD(i))return!0}}(t)}(r),e.clear(zr),e.clear(Ur),e.clear(Kr),e.forEach(r.statements,Ub),Ub(r.endOfFileToken),function(e){var t=vn(e);t.deferredNodes&&t.deferredNodes.forEach(qb)}(r),e.isExternalOrCommonJsModule(r)&&ch(r),r.isDeclarationFile||!U.noUnusedLocals&&!U.noUnusedParameters||uh(Gb(r),(function(t,r,n){!e.containsParseError(t)&&Hb(r,!!(8388608&t.flags))&&qr.add(n)})),2===U.importsNotUsedAsValues&&!r.isDeclarationFile&&e.isExternalModule(r)&&function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];e.isImportDeclaration(i)&&i.importClause&&!i.importClause.isTypeOnly&&(a=i.importClause,e.forEachImportClauseDeclaration(a,(function(e){return!!yi(e).isReferenced})))&&!Dx(i.importClause,!0)&&!jb(i.importClause)&&nn(i,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error)}var a}(r),e.isExternalOrCommonJsModule(r)&&zb(r),zr.length&&(e.forEach(zr,Ch),e.clear(zr)),Ur.length&&(e.forEach(Ur,Th),e.clear(Ur)),Kr.length&&(e.forEach(Kr,kh),e.clear(Kr)),n.flags|=1}}(r),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck")}function Hb(t,r){if(r)return!1;switch(t){case 0:return!!U.noUnusedLocals;case 1:return!!U.noUnusedParameters;default:return e.Debug.assertNever(t)}}function Gb(t){return yr.get(t.path)||e.emptyArray}function Qb(r,i){try{return n=i,function(r){if(Xb(),r){var n=qr.getGlobalDiagnostics(),i=n.length;Wb(r);var a=qr.getDiagnostics(r.fileName),o=qr.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(),Wb),qr.getDiagnostics()}(r)}finally{n=void 0}}function Xb(){if(!r)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Yb(e){switch(e.kind){case 155:case 245:case 246:case 247:case 248:return!0;case 255:return e.isTypeOnly;case 258:case 263:return e.parent.parent.isTypeOnly;default:return!1}}function Zb(e){for(;153===e.parent.kind;)e=e.parent;return 169===e.parent.kind}function $b(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function ex(e,t){return!!$b(e,(function(e){return e===t}))}function tx(e){return void 0!==function(e){for(;153===e.parent.kind;)e=e.parent;return 253===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:259===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function rx(t){if(e.isDeclarationName(t))return yi(t.parent);if(e.isInJSFile(t)&&194===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 yi(t.parent);case 4:case 2:case 5:return yi(t.parent.parent)}}(t);if(r)return r}if(259===t.parent.kind&&e.isEntityNameExpression(t)){var n=ti(t,2998271,!0);if(n&&n!==ve)return n}else if(!e.isPropertyAccessExpression(t)&&!e.isPrivateIdentifier(t)&&tx(t)){var i=e.getAncestor(t,253);return e.Debug.assert(void 0!==i),$n(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&&188===r.kind&&r.qualifier===t)return r}(t);if(a){xl(a);var o=vn(t).resolvedSymbol;return o===ve?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;if(function(e){for(;194===e.parent.kind;)e=e.parent;return 216===e.parent.kind}(t)){var s=0;216===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?ti(t,s):void 0;if(c)return c}if(317===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(155===t.parent.kind&&321===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(75===t.kind){if(e.isJSXTagName(t)&&Sg(t)){var l=Ag(t.parent);return l===ve?void 0:l}return ti(t,111551,!1,!0)}if(194===t.kind||153===t.kind){var _=vn(t);return _.resolvedSymbol?_.resolvedSymbol:(194===t.kind?em(t):tm(t),_.resolvedSymbol)}}else if(Zb(t)){return ti(t,s=169===t.parent.kind?788968:1920,!1,!0)}return 168===t.parent.kind?ti(t,1):void 0}function nx(t,r){if(290===t.kind)return e.isExternalModule(t)?mi(t.symbol):void 0;var n=t.parent,i=n.parent;if(!(16777216&t.flags)){if(M(t)){var a=yi(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?hg(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return yi(n.parent);if(75===t.kind){if(tx(t))return rx(t);if(191===n.kind&&189===i.kind&&t===n.propertyName){var o=Js(ix(i),t.escapedText);if(o)return o}}switch(t.kind){case 75:case 76:case 194:case 153:return rx(t);case 104: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 Ev(t).symbol;case 183:return bl(t).symbol;case 102:return Ev(t).symbol;case 129:var u=t.parent;return u&&162===u.kind?u.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(254===t.parent.kind||260===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 ni(t,t,r);if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t)return yi(n);case 8:var l=e.isElementAccessExpression(n)?n.argumentExpression===t?Cv(n.expression):void 0:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?xl(i.objectType):void 0;return l&&Js(l,e.escapeLeadingUnderscores(t.text));case 84:case 94:case 38:case 80:return yi(t.parent);case 188:return e.isLiteralImportTypeNode(t)?nx(t.argument.literal,r):void 0;case 89:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):void 0;default:return}}}function ix(t){if(16777216&t.flags)return Se;var r,n,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),a=i&&co(yi(i.class));if(e.isPartOfTypeNode(t)){var o=xl(t);return a?Ro(o,a.thisType):o}if(e.isExpressionNode(t))return ox(t);if(a&&!i.isImplements){var s=e.firstOrUndefined(oo(a));return s?Ro(s,a.thisType):Se}if(Yb(t))return yo(n=yi(t));if(75===(r=t).kind&&Yb(r.parent)&&r.parent.name===r)return(n=nx(t))?yo(n):Se;if(e.isDeclaration(t))return Wa(n=yi(t));if(M(t))return(n=nx(t))?Wa(n):Se;if(e.isBindingPattern(t))return Sa(t.parent,!0)||Se;if(tx(t)&&(n=nx(t))){var c=yo(n);return c!==Se?c:Wa(n)}return Se}function ax(t){if(e.Debug.assert(193===t.kind||192===t.kind),232===t.parent.kind)return iv(t,zh(t.parent)||Se);if(209===t.parent.kind)return iv(t,Cv(t.parent.right)||Se);if(281===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return rv(r,ax(r)||Se,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=ax(n)||Se,a=Uh(65,i,ke,t.parent)||Se;return nv(n,i,n.elements.indexOf(t),a)}function ox(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),ml(Cv(t))}function sx(t){var r=yi(t.parent);return e.hasModifier(t,32)?Wa(r):yo(r)}function cx(t){var r=t.name;switch(r.kind){case 75:return vl(e.idText(r));case 8:case 10:return vl(r.text);case 154:var n=yg(r);return Zy(n,12288)?n:Pe;default:return e.Debug.fail("Unsupported property name.")}}function ux(t){t=Fs(t);var r=e.createSymbolTable(ms(t)),n=Us(t,0).length?gt:Us(t,1).length?mt:void 0;return n&&e.forEach(ms(n),(function(e){r.has(e.escapedName)||r.set(e.escapedName,e)})),wi(r)}function lx(t){return e.typeHasCallOrConstructSignatures(t,ce)}function _x(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r)return!(194===r.parent.kind&&r.parent.name===r)&&Bx(r)===oe}return!1}function dx(t){var r=ni(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=ui(r),i=yn(r=si(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry(pi(r),(function(e){return(e=Wn(e))&&!!(111551&e.flags)}))),i.exportsSomeValue}function px(t,r){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var i=Bx(n,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(n));if(i){if(1048576&i.flags){var a=mi(i.exportSymbol);if(!r&&944&a.flags&&!(3&a.flags))return;i=a}var o=vi(i);if(o){if(512&o.flags&&290===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)&&yi(t)===o}))}}}}function fx(t){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=Bx(r);if(qn(n,111551)&&!Xn(n))return In(n)}}function gx(t){if(418&t.flags&&!e.isSourceFile(t.valueDeclaration)){var r=yn(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||function(t){return e.isBindingElement(t.valueDeclaration)&&280===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind}(t)){var i=vn(t.valueDeclaration);if(Sn(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=223===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 mx(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=Bx(r);if(n&&gx(n))return n.valueDeclaration}}}function yx(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=yi(r);if(n)return gx(n)}return!1}function vx(t){switch(t.kind){case 253:return bx(yi(t)||ve);case 255:case 256:case 258:case 263:var r=yi(t)||ve;return bx(r)&&!Xn(r);case 260:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,vx));case 259:return!t.expression||75!==t.expression.kind||bx(yi(t)||ve)}return!1}function hx(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||290!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&(bx(yi(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference))}function bx(e){var t=Hn(e);return t===ve||!!(111551&t.flags)&&(U.preserveConstEnums||!xx(t))}function xx(e){return tv(e)||!!e.constEnumOnlyModule}function Dx(t,r){if(On(t)){var n=yi(t);if(n&&yn(n).referenced)return!0;var i=yn(n).target;if(i&&1&e.getModifierFlags(t)&&111551&i.flags&&(U.preserveConstEnums||!xx(i)))return!0}return!!r&&!!e.forEachChild(t,(function(e){return Dx(e,r)}))}function Sx(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=oc(yi(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function Cx(t){return!!W&&!Zs(t)&&!e.isJSDocParameterTag(t)&&!!t.initializer&&!e.hasModifier(t,92)}function Tx(t){return W&&Zs(t)&&!t.initializer&&e.hasModifier(t,92)}function kx(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=yi(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(di(n),(function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)}))}function Ex(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=yi(r);return n&&ms(Wa(n))||e.emptyArray}function Nx(e){return vn(e).flags||0}function Ax(e){return Nb(e.parent),vn(e).enumMemberValue}function Fx(e){switch(e.kind){case 284:case 194:case 195:return!0}return!1}function Px(t){if(284===t.kind)return Ax(t);var r=vn(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return Ax(n)}}function wx(e){return!!(524288&e.flags)&&Us(e,0).length>0}function Ix(t,r){var n=e.getParseTreeNode(t,e.isEntityName);if(!n)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var i=ti(n,111551,!0,!1,r),a=ti(n,788968,!0,!1,r);if(i&&i===a){var o=ru(!1);if(o&&i===o)return e.TypeReferenceSerializationKind.Promise;var s=Wa(i);if(s&&to(s))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!a)return e.TypeReferenceSerializationKind.Unknown;var c=yo(a);return c===Se?e.TypeReferenceSerializationKind.Unknown:3&c.flags?e.TypeReferenceSerializationKind.ObjectType:Zy(c,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Zy(c,528)?e.TypeReferenceSerializationKind.BooleanType:Zy(c,296)?e.TypeReferenceSerializationKind.NumberLikeType:Zy(c,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:Zy(c,132)?e.TypeReferenceSerializationKind.StringLikeType:gd(c)?e.TypeReferenceSerializationKind.ArrayLikeType:Zy(c,12288)?e.TypeReferenceSerializationKind.ESSymbolType:wx(c)?e.TypeReferenceSerializationKind.TypeWithCallSignature:$_(c)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function Ox(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.createToken(125);var s=yi(o),c=!s||133120&s.flags?Se:_d(Wa(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=Cd(c)),te.typeToTypeNode(c,r,1024|n,i)}function Mx(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.createToken(125);var o=nc(a);return te.typeToTypeNode(uc(o),r,1024|n,i)}function Lx(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.createToken(125);var o=Bd(ox(a));return te.typeToTypeNode(o,r,1024|n,i)}function Rx(t){return re.has(e.escapeLeadingUnderscores(t))}function Bx(t,r){var n=vn(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=_a(a))}return Sn(i,t.escapedText,3257279,void 0,void 0,!0)}function jx(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=Bx(r);if(n)return Si(n).valueDeclaration}}}function Jx(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&yl(Wa(yi(t)))}function zx(t,r){return function(t,r,n){return(1024&t.flags?te.symbolToExpression(t.symbol,111551,r,void 0,n):t===Le?e.createTrue():t===Oe&&e.createFalse())||e.createLiteral(t.value)}(Wa(yi(t)),t,r)}function Ux(t){return t?(rn(t),e.getSourceFileOfNode(t).localJsxFactory||er):er}function Kx(t){var r=249===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=ii(r,r,void 0);if(n)return e.getDeclarationOfKind(n,290)}function Vx(t,r){if((i&r)!==r&&U.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,U)&&!(8388608&t.flags)){var a=function(t,r){l||(l=ai(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||ve);return l}(n,t);if(a!==ve)for(var o=r&~i,s=1;s<=1048576;s<<=1)if(o&s){var c=qx(s);bn(a.exports,e.escapeLeadingUnderscores(c),111551)||nn(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,c)}i|=r}}}function qx(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"__spread";case 2048:return"__spreadArrays";case 4096:return"__await";case 8192:return"__asyncGenerator";case 16384:return"__asyncDelegator";case 32768:return"__asyncValues";case 65536:return"__exportStar";case 131072:return"__makeTemplateObject";case 262144:return"__classPrivateFieldGet";case 524288:return"__classPrivateFieldSet";case 1048576:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function Wx(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 161!==t.kind||e.nodeIsPresent(t.body)?fD(t,e.Diagnostics.Decorators_are_not_valid_here):fD(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(163===t.kind||164===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return fD(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 163:case 164:case 162:case 159:case 158:case 161:case 160:case 167:case 249:case 254:case 253:case 260:case 259:case 201:case 202:case 156:return!1;default:if(250===t.parent.kind||290===t.parent.kind)return!1;switch(t.kind){case 244:return Hx(t,126);case 245:return Hx(t,122);case 246:case 225:case 247:return!0;case 248:return Hx(t,81);default:return e.Debug.fail(),!1}}}(t)?fD(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(138!==l.kind){if(158===t.kind||160===t.kind)return mD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(l.kind));if(167===t.kind)return mD(l,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(l.kind))}switch(l.kind){case 81:if(248!==t.kind)return mD(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(81));break;case 119:case 118:case 117:var _=ea(e.modifierToFlag(l.kind));if(28&s)return mD(l,e.Diagnostics.Accessibility_modifier_already_seen);if(32&s)return mD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"static");if(64&s)return mD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"readonly");if(256&s)return mD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"async");if(250===t.parent.kind||290===t.parent.kind)return mD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,_);if(128&s)return 117===l.kind?mD(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,_,"abstract"):mD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"abstract");if(e.isPrivateIdentifierPropertyDeclaration(t))return mD(l,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);s|=e.modifierToFlag(l.kind);break;case 120:if(32&s)return mD(l,e.Diagnostics._0_modifier_already_seen,"static");if(64&s)return mD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return mD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(250===t.parent.kind||290===t.parent.kind)return mD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(156===t.kind)return mD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return mD(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(e.isPrivateIdentifierPropertyDeclaration(t))return mD(l,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"static");s|=32,r=l;break;case 138:if(64&s)return mD(l,e.Diagnostics._0_modifier_already_seen,"readonly");if(159!==t.kind&&158!==t.kind&&167!==t.kind&&156!==t.kind)return mD(l,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64,a=l;break;case 89:if(1&s)return mD(l,e.Diagnostics._0_modifier_already_seen,"export");if(2&s)return mD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return mD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return mD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(t.parent))return mD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(156===t.kind)return mD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 84:var d=290===t.parent.kind?t.parent:t.parent.parent;if(249===d.kind&&!e.isAmbientModule(d))return mD(l,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);s|=512;break;case 130:if(2&s)return mD(l,e.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return mD(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(e.isClassLike(t.parent)&&!e.isPropertyDeclaration(t))return mD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(156===t.kind)return mD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(8388608&t.parent.flags&&250===t.parent.kind)return mD(l,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierPropertyDeclaration(t))return mD(l,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");s|=2,n=l;break;case 122:if(128&s)return mD(l,e.Diagnostics._0_modifier_already_seen,"abstract");if(245!==t.kind){if(161!==t.kind&&159!==t.kind&&163!==t.kind&&164!==t.kind)return mD(l,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(245!==t.parent.kind||!e.hasModifier(t.parent,128))return mD(l,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return mD(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return mD(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}if(e.isNamedDeclaration(t)&&76===t.name.kind)return mD(l,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");s|=128;break;case 126:if(256&s)return mD(l,e.Diagnostics._0_modifier_already_seen,"async");if(2&s||8388608&t.parent.flags)return mD(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(156===t.kind)return mD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");s|=256,i=l}}if(162===t.kind)return 32&s?mD(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&s?mD(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&s?mD(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&s)&&mD(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly");if((254===t.kind||253===t.kind)&&2&s)return mD(n,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare");if(156===t.kind&&92&s&&e.isBindingPattern(t.name))return mD(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern);if(156===t.kind&&92&s&&t.dotDotDotToken)return mD(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter);if(256&s)return function(t,r){switch(t.kind){case 161:case 244:case 201:case 202:return!1}return mD(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}(t,i);return!1}(t)}function Hx(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function Gx(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&gD(t[0],t.end-",".length,",".length,r)}function Qx(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return gD(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function Xx(t){if(K>=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(nn(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,o([nn(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],i)),!0}}}var a;return!1}function Yx(t){var r=e.getSourceFileOfNode(t);return Wx(t)||Qx(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 mD(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(8388608&a.flags||Gx(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),a.questionToken)return mD(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return mD(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(a.questionToken){if(r=!0,a.initializer)return mD(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!a.initializer)return mD(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&&mD(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,r)||e.isFunctionLikeDeclaration(t)&&Xx(t)}function Zx(t,r){return Gx(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return gD(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function $x(t){return function(t){if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(215===i.kind)return gD(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}(t)}function eD(t){var r=t.types;if(Gx(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return gD(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,tD)}function tD(e){return Zx(e,e.typeArguments)}function rD(t){if(154!==t.kind)return!1;var r=t;return 209===r.expression.kind&&27===r.expression.operatorToken.kind&&mD(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function nD(t){if(t.asteriskToken){if(e.Debug.assert(244===t.kind||201===t.kind||161===t.kind),8388608&t.flags)return mD(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return mD(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function iD(e,t){return!!e&&mD(e,t)}function aD(e,t){return!!e&&mD(e,t)}function oD(t){if(vD(t))return!0;if(232===t.kind&&t.awaitModifier&&0===(32768&t.flags)){if(!pD(e.getSourceFileOfNode(t))){var r=e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator),n=e.getContainingFunction(t);if(n&&162!==n.kind){e.Debug.assert(0===(2&e.getFunctionFlags(n)),"Enclosing function should never be an async function.");var i=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(r,i)}return qr.add(r),!0}return!1}if(243===t.initializer.kind){var a=t.initializer;if(!dD(a)){var o=a.declarations;if(!o.length)return!1;if(o.length>1){r=231===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 fD(a.declarations[1],r)}var s=o[0];if(s.initializer){var r=231===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 mD(s.name,r)}if(s.type)return mD(s,r=231===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 sD(t){if(t.parameters.length===(163===t.kind?1:2))return e.getThisParameter(t)}function cD(t,r){if(function(t){return e.isDynamicName(t)&&!No(t)}(t))return mD(t,r)}function uD(t){if(Yx(t))return!0;if(161===t.kind){if(193===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||126!==e.first(t.modifiers).kind))return fD(t,e.Diagnostics.Modifiers_cannot_appear_here);if(iD(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(aD(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return gD(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(nD(t))return!0}if(e.isClassLike(t.parent)){if(8388608&t.flags)return cD(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(161===t.kind&&!t.body)return cD(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(246===t.parent.kind)return cD(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(173===t.parent.kind)return cD(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 lD(t){return e.isStringOrNumericLiteralLike(t)||207===t.kind&&40===t.operator&&8===t.operand.kind}function _D(t){var r,n=t.initializer;if(n){var i=!(lD(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&lD(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&lv(t).flags)}(n)||106===n.kind||91===n.kind||(r=n,9===r.kind||207===r.kind&&40===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return mD(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return mD(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 mD(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function dD(t){var r=t.declarations;return!!Gx(t.declarations)||!t.declarations.length&&gD(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function pD(e){return e.parseDiagnostics.length>0}function fD(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!pD(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return qr.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function gD(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!pD(c)&&(qr.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function mD(t,r,n,i,a){return!pD(e.getSourceFileOfNode(t))&&(qr.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function yD(t){return 246!==t.kind&&247!==t.kind&&254!==t.kind&&253!==t.kind&&260!==t.kind&&259!==t.kind&&252!==t.kind&&!e.hasModifier(t,515)&&fD(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function vD(t){if(8388608&t.flags){if(!vn(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return vn(t).hasReportedStatementInAmbientContext=fD(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(223===t.parent.kind||250===t.parent.kind||290===t.parent.kind){var r=vn(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=fD(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function hD(t){if(32&t.numericLiteralFlags){var r=void 0;if(K>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,187)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,284)&&(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 mD(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;an(!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 bD(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=ms(t);if(a){var o=Tp(a,r);if(o)return M_(r,e.map(o,(function(e){return[function(){return Wa(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"}(E||(E={})),e.signatureHasRestParameter=B,e.signatureHasLiteralTypes=j}(d||(d={})),function(e){function t(t){var r=e.createNode(t,-1,-1);return r.flags|=8,r}function r(t,r){return t!==r&&(gr(t,r),ur(t,r),e.aggregateTransformFlags(t)),t}function n(t,r){if(t&&t!==e.emptyArray){if(e.isNodeArray(t))return t}else t=[];var n=t;return n.pos=-1,n.end=-1,n.hasTrailingComma=r,n}function i(e){if(void 0===e)return e;var r=t(e.kind);for(var n in r.flags|=e.flags,gr(r,e),e)!r.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function a(t,r){if("number"===typeof t)return o(t+"");if("object"===typeof t&&"base10Value"in t)return s(e.pseudoBigIntToString(t)+"n");if("boolean"===typeof t)return t?f():g();if(e.isString(t)){var n=c(t);return r&&(n.singleQuote=!0),n}return function(t){var r=c(e.getTextOfIdentifierOrLiteral(t));return r.textSourceNode=t,r}(t)}function o(e,r){void 0===r&&(r=0);var n=t(8);return n.text=e,n.numericLiteralFlags=r,n}function s(e){var r=t(9);return r.text=e,r}function c(e){var r=t(10);return r.text=e,r}function u(r,i){var a=t(75);return a.escapedText=e.escapeLeadingUnderscores(r),a.originalKeywordKind=r?e.stringToToken(r):0,a.autoGenerateFlags=0,a.autoGenerateId=0,i&&(a.typeArguments=n(i)),a}e.updateNode=r,e.createNodeArray=n,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createBigIntLiteral=s,e.createStringLiteral=c,e.createRegularExpressionLiteral=function(e){var r=t(13);return r.text=e,r},e.createIdentifier=u,e.updateIdentifier=function(t,n){return t.typeArguments!==n?r(u(e.idText(t),n),t):t};var l,_=0;function d(e){var t=u(e);return t.autoGenerateFlags=19,t.autoGenerateId=_,_++,t}function p(e){return t(e)}function f(){return t(106)}function g(){return t(91)}function m(e){return p(e)}function y(e,r){var n=t(153);return n.left=e,n.right=ir(r),n}function v(r){var n=t(154);return n.expression=function(t){return e.isCommaSequence(t)?me(t):t}(r),n}function h(e,r,n){var i=t(155);return i.name=ir(e),i.constraint=r,i.default=n,i}function b(r,n,i,a,o,s,c){var u=t(156);return u.decorators=or(r),u.modifiers=or(n),u.dotDotDotToken=i,u.name=ir(a),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function x(r){var n=t(157);return n.expression=e.parenthesizeForAccess(r),n}function D(e,r,n,i,a){var o=t(158);return o.modifiers=or(e),o.name=ir(r),o.questionToken=n,o.type=i,o.initializer=a,o}function S(e,r,n,i,a,o){var s=t(159);return s.decorators=or(e),s.modifiers=or(r),s.name=ir(n),s.questionToken=void 0!==i&&57===i.kind?i:void 0,s.exclamationToken=void 0!==i&&53===i.kind?i:void 0,s.type=a,s.initializer=o,s}function C(e,t,r,n,i){var a=w(160,e,t,r);return a.name=ir(n),a.questionToken=i,a}function T(e,r,i,a,o,s,c,u,l){var _=t(161);return _.decorators=or(e),_.modifiers=or(r),_.asteriskToken=i,_.name=ir(a),_.questionToken=o,_.typeParameters=or(s),_.parameters=n(c),_.type=u,_.body=l,_}function k(e,t,r){return function(e,t,r){return le(ie(e,ir(t)),void 0,r)}(u(e),t,r)}function E(e,t,r){return!!r&&(e.push(Wt(t,r)),!0)}function N(e,r,i,a){var o=t(162);return o.decorators=or(e),o.modifiers=or(r),o.typeParameters=void 0,o.parameters=n(i),o.type=void 0,o.body=a,o}function A(e,r,i,a,o,s){var c=t(163);return c.decorators=or(e),c.modifiers=or(r),c.name=ir(i),c.typeParameters=void 0,c.parameters=n(a),c.type=o,c.body=s,c}function F(e,r,i,a,o){var s=t(164);return s.decorators=or(e),s.modifiers=or(r),s.name=ir(i),s.typeParameters=void 0,s.parameters=n(a),s.body=o,s}function P(e,r,i,a){var o=t(167);return o.decorators=or(e),o.modifiers=or(r),o.parameters=n(i),o.type=a,o}function w(e,r,n,i,a){var o=t(e);return o.typeParameters=or(r),o.parameters=or(n),o.type=i,o.typeArguments=or(a),o}function I(e,t,n,i){return e.typeParameters!==t||e.parameters!==n||e.type!==i?r(w(e.kind,t,n,i),e):e}function O(e,r,n){var i=t(168);return i.assertsModifier=e,i.parameterName=ir(r),i.type=n,i}function M(e,t,n,i){return e.assertsModifier!==t||e.parameterName!==n||e.type!==i?r(O(t,n,i),e):e}function L(r,n){var i=t(169);return i.typeName=ir(r),i.typeArguments=n&&e.parenthesizeTypeParameters(n),i}function R(e){var r=t(172);return r.exprName=e,r}function B(e){var r=t(173);return r.members=n(e),r}function j(r){var n=t(174);return n.elementType=e.parenthesizeArrayTypeMember(r),n}function J(e){var r=t(175);return r.elementTypes=n(e),r}function z(r){var n=t(176);return n.type=e.parenthesizeArrayTypeMember(r),n}function U(e){var r=t(177);return r.type=e,r}function K(r,n){var i=t(r);return i.types=e.parenthesizeElementTypeMembers(n),i}function V(e,t){return e.types!==t?r(K(e.kind,t),e):e}function q(r,n,i,a){var o=t(180);return o.checkType=e.parenthesizeConditionalTypeMember(r),o.extendsType=e.parenthesizeConditionalTypeMember(n),o.trueType=i,o.falseType=a,o}function W(e){var r=t(181);return r.typeParameter=e,r}function H(r,n,i,a){var o=t(188);return o.argument=r,o.qualifier=n,o.typeArguments=e.parenthesizeTypeParameters(i),o.isTypeOf=a,o}function G(e){var r=t(182);return r.type=e,r}function Q(r,n){var i=t(184);return i.operator="number"===typeof r?r:134,i.type=e.parenthesizeElementTypeMember("number"===typeof r?n:r),i}function X(r,n){var i=t(185);return i.objectType=e.parenthesizeElementTypeMember(r),i.indexType=n,i}function Y(e,r,n,i){var a=t(186);return a.readonlyToken=e,a.typeParameter=r,a.questionToken=n,a.type=i,a}function Z(e){var r=t(187);return r.literal=e,r}function $(e){var r=t(189);return r.elements=n(e),r}function ee(e){var r=t(190);return r.elements=n(e),r}function te(e,r,n,i){var a=t(191);return a.dotDotDotToken=e,a.propertyName=ir(r),a.name=ir(n),a.initializer=i,a}function re(r,i){var a=t(192);return a.elements=e.parenthesizeListElements(n(r)),i&&(a.multiLine=!0),a}function ne(e,r){var i=t(193);return i.properties=n(e),r&&(i.multiLine=!0),i}function ie(r,n){var i=t(194);return i.expression=e.parenthesizeForAccess(r),i.name=ir(n),lr(i,131072),i}function ae(r,n,i){var a=t(194);return a.flags|=32,a.expression=e.parenthesizeForAccess(r),a.questionDotToken=n,a.name=ir(i),lr(a,131072),a}function oe(t,n,i,a){return e.Debug.assert(!!(32&t.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),t.expression!==n||t.questionDotToken!==i||t.name!==a?r(lr(ae(n,i,a),e.getEmitFlags(t)),t):t}function se(r,n){var i=t(195);return i.expression=e.parenthesizeForAccess(r),i.argumentExpression=ar(n),i}function ce(r,n,i){var a=t(195);return a.flags|=32,a.expression=e.parenthesizeForAccess(r),a.questionDotToken=n,a.argumentExpression=ar(i),a}function ue(t,n,i,a){return e.Debug.assert(!!(32&t.flags),"Cannot update an ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),t.expression!==n||t.questionDotToken!==i||t.argumentExpression!==a?r(ce(n,i,a),t):t}function le(r,i,a){var o=t(196);return o.expression=e.parenthesizeForAccess(r),o.typeArguments=or(i),o.arguments=e.parenthesizeListElements(n(a)),o}function _e(r,i,a,o){var s=t(196);return s.flags|=32,s.expression=e.parenthesizeForAccess(r),s.questionDotToken=i,s.typeArguments=or(a),s.arguments=e.parenthesizeListElements(n(o)),s}function de(t,n,i,a,o){return e.Debug.assert(!!(32&t.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),t.expression!==n||t.questionDotToken!==i||t.typeArguments!==a||t.arguments!==o?r(_e(n,i,a,o),t):t}function pe(r,i,a){var o=t(197);return o.expression=e.parenthesizeForNew(r),o.typeArguments=or(i),o.arguments=a?e.parenthesizeListElements(n(a)):void 0,o}function fe(r,n,i){var a=t(198);return a.tag=e.parenthesizeForAccess(r),i?(a.typeArguments=or(n),a.template=i):(a.typeArguments=void 0,a.template=n),a}function ge(r,n){var i=t(199);return i.type=r,i.expression=e.parenthesizePrefixOperand(n),i}function me(e){var r=t(200);return r.expression=e,r}function ye(e,r,i,a,o,s,c){var u=t(201);return u.modifiers=or(e),u.asteriskToken=r,u.name=ir(i),u.typeParameters=or(a),u.parameters=n(o),u.type=s,u.body=c,u}function ve(r,i,a,o,s,c){var u=t(202);return u.modifiers=or(r),u.typeParameters=or(i),u.parameters=n(a),u.type=o,u.equalsGreaterThanToken=s||p(38),u.body=e.parenthesizeConciseBody(c),u}function he(r){var n=t(203);return n.expression=e.parenthesizePrefixOperand(r),n}function be(r){var n=t(204);return n.expression=e.parenthesizePrefixOperand(r),n}function xe(r){var n=t(205);return n.expression=e.parenthesizePrefixOperand(r),n}function De(r){var n=t(206);return n.expression=e.parenthesizePrefixOperand(r),n}function Se(r,n){var i=t(207);return i.operator=r,i.operand=e.parenthesizePrefixOperand(n),i}function Ce(r,n){var i=t(208);return i.operand=e.parenthesizePostfixOperand(r),i.operator=n,i}function Te(r,n,i){var a,o=t(209),s="number"===typeof(a=n)?p(a):a,c=s.kind;return o.left=e.parenthesizeBinaryOperand(c,r,!0,void 0),o.operatorToken=s,o.right=e.parenthesizeBinaryOperand(c,i,!1,o.left),o}function ke(r,n,i,a,o){var s=t(210);return s.condition=e.parenthesizeForConditionalHead(r),s.questionToken=o?n:p(57),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?i:n),s.colonToken=o?a:p(58),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o||i),s}function Ee(e,r){var i=t(211);return i.head=e,i.templateSpans=n(r),i}e.createTempVariable=function(e,t){var r=u("");return r.autoGenerateFlags=1,r.autoGenerateId=_,_++,e&&e(r),t&&(r.autoGenerateFlags|=8),r},e.createLoopVariable=function(){var e=u("");return e.autoGenerateFlags=2,e.autoGenerateId=_,_++,e},e.createUniqueName=function(e){var t=u(e);return t.autoGenerateFlags=3,t.autoGenerateId=_,_++,t},e.createOptimisticUniqueName=d,e.createFileLevelUniqueName=function(e){var t=d(e);return t.autoGenerateFlags|=32,t},e.getGeneratedNameForNode=function(t,r){var n=u(t&&e.isIdentifier(t)?e.idText(t):"");return n.autoGenerateFlags=4|r,n.autoGenerateId=_,n.original=t,_++,n},e.createPrivateIdentifier=function(r){"#"!==r[0]&&e.Debug.fail("First character of private identifier must be #: "+r);var n=t(76);return n.escapedText=e.escapeLeadingUnderscores(r),n},e.createToken=p,e.createSuper=function(){return t(102)},e.createThis=function(){return t(104)},e.createNull=function(){return t(100)},e.createTrue=f,e.createFalse=g,e.createModifier=m,e.createModifiersFromModifierFlags=function(e){var t=[];return 1&e&&t.push(m(89)),2&e&&t.push(m(130)),512&e&&t.push(m(84)),2048&e&&t.push(m(81)),4&e&&t.push(m(119)),8&e&&t.push(m(117)),16&e&&t.push(m(118)),128&e&&t.push(m(122)),32&e&&t.push(m(120)),64&e&&t.push(m(138)),256&e&&t.push(m(126)),t},e.createQualifiedName=y,e.updateQualifiedName=function(e,t,n){return e.left!==t||e.right!==n?r(y(t,n),e):e},e.createComputedPropertyName=v,e.updateComputedPropertyName=function(e,t){return e.expression!==t?r(v(t),e):e},e.createTypeParameterDeclaration=h,e.updateTypeParameterDeclaration=function(e,t,n,i){return e.name!==t||e.constraint!==n||e.default!==i?r(h(t,n,i),e):e},e.createParameter=b,e.updateParameter=function(e,t,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==n||e.dotDotDotToken!==i||e.name!==a||e.questionToken!==o||e.type!==s||e.initializer!==c?r(b(t,n,i,a,o,s,c),e):e},e.createDecorator=x,e.updateDecorator=function(e,t){return e.expression!==t?r(x(t),e):e},e.createPropertySignature=D,e.updatePropertySignature=function(e,t,n,i,a,o){return e.modifiers!==t||e.name!==n||e.questionToken!==i||e.type!==a||e.initializer!==o?r(D(t,n,i,a,o),e):e},e.createProperty=S,e.updateProperty=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.questionToken!==(void 0!==a&&57===a.kind?a:void 0)||e.exclamationToken!==(void 0!==a&&53===a.kind?a:void 0)||e.type!==o||e.initializer!==s?r(S(t,n,i,a,o,s),e):e},e.createMethodSignature=C,e.updateMethodSignature=function(e,t,n,i,a,o){return e.typeParameters!==t||e.parameters!==n||e.type!==i||e.name!==a||e.questionToken!==o?r(C(t,n,i,a,o),e):e},e.createMethod=T,e.createObjectDefinePropertyCall=function(e,t,r){return k("Object","defineProperty",[e,ar(t),r])},e.createPropertyDescriptor=function(t,r){var n=[];E(n,"enumerable",ar(t.enumerable)),E(n,"configurable",ar(t.configurable));var i=E(n,"writable",ar(t.writable));i=E(n,"value",t.value)||i;var a=E(n,"get",t.get);return a=E(n,"set",t.set)||a,e.Debug.assert(!(i&&a),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ne(n,!r)},e.updateMethod=function(e,t,n,i,a,o,s,c,u,l){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.questionToken!==o||e.typeParameters!==s||e.parameters!==c||e.type!==u||e.body!==l?r(T(t,n,i,a,o,s,c,u,l),e):e},e.createConstructor=N,e.updateConstructor=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.parameters!==i||e.body!==a?r(N(t,n,i,a),e):e},e.createGetAccessor=A,e.updateGetAccessor=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.type!==o||e.body!==s?r(A(t,n,i,a,o,s),e):e},e.createSetAccessor=F,e.updateSetAccessor=function(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.body!==o?r(F(t,n,i,a,o),e):e},e.createCallSignature=function(e,t,r){return w(165,e,t,r)},e.updateCallSignature=function(e,t,r,n){return I(e,t,r,n)},e.createConstructSignature=function(e,t,r){return w(166,e,t,r)},e.updateConstructSignature=function(e,t,r,n){return I(e,t,r,n)},e.createIndexSignature=P,e.updateIndexSignature=function(e,t,n,i,a){return e.parameters!==i||e.type!==a||e.decorators!==t||e.modifiers!==n?r(P(t,n,i,a),e):e},e.createSignatureDeclaration=w,e.createKeywordTypeNode=function(e){return t(e)},e.createTypePredicateNode=function(e,t){return O(void 0,e,t)},e.createTypePredicateNodeWithModifier=O,e.updateTypePredicateNode=function(e,t,r){return M(e,e.assertsModifier,t,r)},e.updateTypePredicateNodeWithModifier=M,e.createTypeReferenceNode=L,e.updateTypeReferenceNode=function(e,t,n){return e.typeName!==t||e.typeArguments!==n?r(L(t,n),e):e},e.createFunctionTypeNode=function(e,t,r){return w(170,e,t,r)},e.updateFunctionTypeNode=function(e,t,r,n){return I(e,t,r,n)},e.createConstructorTypeNode=function(e,t,r){return w(171,e,t,r)},e.updateConstructorTypeNode=function(e,t,r,n){return I(e,t,r,n)},e.createTypeQueryNode=R,e.updateTypeQueryNode=function(e,t){return e.exprName!==t?r(R(t),e):e},e.createTypeLiteralNode=B,e.updateTypeLiteralNode=function(e,t){return e.members!==t?r(B(t),e):e},e.createArrayTypeNode=j,e.updateArrayTypeNode=function(e,t){return e.elementType!==t?r(j(t),e):e},e.createTupleTypeNode=J,e.updateTupleTypeNode=function(e,t){return e.elementTypes!==t?r(J(t),e):e},e.createOptionalTypeNode=z,e.updateOptionalTypeNode=function(e,t){return e.type!==t?r(z(t),e):e},e.createRestTypeNode=U,e.updateRestTypeNode=function(e,t){return e.type!==t?r(U(t),e):e},e.createUnionTypeNode=function(e){return K(178,e)},e.updateUnionTypeNode=function(e,t){return V(e,t)},e.createIntersectionTypeNode=function(e){return K(179,e)},e.updateIntersectionTypeNode=function(e,t){return V(e,t)},e.createUnionOrIntersectionTypeNode=K,e.createConditionalTypeNode=q,e.updateConditionalTypeNode=function(e,t,n,i,a){return e.checkType!==t||e.extendsType!==n||e.trueType!==i||e.falseType!==a?r(q(t,n,i,a),e):e},e.createInferTypeNode=W,e.updateInferTypeNode=function(e,t){return e.typeParameter!==t?r(W(t),e):e},e.createImportTypeNode=H,e.updateImportTypeNode=function(e,t,n,i,a){return e.argument!==t||e.qualifier!==n||e.typeArguments!==i||e.isTypeOf!==a?r(H(t,n,i,a),e):e},e.createParenthesizedType=G,e.updateParenthesizedType=function(e,t){return e.type!==t?r(G(t),e):e},e.createThisTypeNode=function(){return t(183)},e.createTypeOperatorNode=Q,e.updateTypeOperatorNode=function(e,t){return e.type!==t?r(Q(e.operator,t),e):e},e.createIndexedAccessTypeNode=X,e.updateIndexedAccessTypeNode=function(e,t,n){return e.objectType!==t||e.indexType!==n?r(X(t,n),e):e},e.createMappedTypeNode=Y,e.updateMappedTypeNode=function(e,t,n,i,a){return e.readonlyToken!==t||e.typeParameter!==n||e.questionToken!==i||e.type!==a?r(Y(t,n,i,a),e):e},e.createLiteralTypeNode=Z,e.updateLiteralTypeNode=function(e,t){return e.literal!==t?r(Z(t),e):e},e.createObjectBindingPattern=$,e.updateObjectBindingPattern=function(e,t){return e.elements!==t?r($(t),e):e},e.createArrayBindingPattern=ee,e.updateArrayBindingPattern=function(e,t){return e.elements!==t?r(ee(t),e):e},e.createBindingElement=te,e.updateBindingElement=function(e,t,n,i,a){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==i||e.initializer!==a?r(te(t,n,i,a),e):e},e.createArrayLiteral=re,e.updateArrayLiteral=function(e,t){return e.elements!==t?r(re(t,e.multiLine),e):e},e.createObjectLiteral=ne,e.updateObjectLiteral=function(e,t){return e.properties!==t?r(ne(t,e.multiLine),e):e},e.createPropertyAccess=ie,e.updatePropertyAccess=function(t,n,i){return e.isPropertyAccessChain(t)?oe(t,n,t.questionDotToken,e.cast(i,e.isIdentifier)):t.expression!==n||t.name!==i?r(lr(ie(n,i),e.getEmitFlags(t)),t):t},e.createPropertyAccessChain=ae,e.updatePropertyAccessChain=oe,e.createElementAccess=se,e.updateElementAccess=function(t,n,i){return e.isOptionalChain(t)?ue(t,n,t.questionDotToken,i):t.expression!==n||t.argumentExpression!==i?r(se(n,i),t):t},e.createElementAccessChain=ce,e.updateElementAccessChain=ue,e.createCall=le,e.updateCall=function(t,n,i,a){return e.isOptionalChain(t)?de(t,n,t.questionDotToken,i,a):t.expression!==n||t.typeArguments!==i||t.arguments!==a?r(le(n,i,a),t):t},e.createCallChain=_e,e.updateCallChain=de,e.createNew=pe,e.updateNew=function(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(pe(t,n,i),e):e},e.createTaggedTemplate=fe,e.updateTaggedTemplate=function(e,t,n,i){return e.tag!==t||(i?e.typeArguments!==n||e.template!==i:void 0!==e.typeArguments||e.template!==n)?r(fe(t,n,i),e):e},e.createTypeAssertion=ge,e.updateTypeAssertion=function(e,t,n){return e.type!==t||e.expression!==n?r(ge(t,n),e):e},e.createParen=me,e.updateParen=function(e,t){return e.expression!==t?r(me(t),e):e},e.createFunctionExpression=ye,e.updateFunctionExpression=function(e,t,n,i,a,o,s,c){return e.name!==i||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?r(ye(t,n,i,a,o,s,c),e):e},e.createArrowFunction=ve,e.updateArrowFunction=function(e,t,n,i,a,o,s){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==i||e.type!==a||e.equalsGreaterThanToken!==o||e.body!==s?r(ve(t,n,i,a,o,s),e):e},e.createDelete=he,e.updateDelete=function(e,t){return e.expression!==t?r(he(t),e):e},e.createTypeOf=be,e.updateTypeOf=function(e,t){return e.expression!==t?r(be(t),e):e},e.createVoid=xe,e.updateVoid=function(e,t){return e.expression!==t?r(xe(t),e):e},e.createAwait=De,e.updateAwait=function(e,t){return e.expression!==t?r(De(t),e):e},e.createPrefix=Se,e.updatePrefix=function(e,t){return e.operand!==t?r(Se(e.operator,t),e):e},e.createPostfix=Ce,e.updatePostfix=function(e,t){return e.operand!==t?r(Ce(t,e.operator),e):e},e.createBinary=Te,e.updateBinary=function(e,t,n,i){return e.left!==t||e.right!==n?r(Te(t,i||e.operatorToken,n),e):e},e.createConditional=ke,e.updateConditional=function(e,t,n,i,a,o){return e.condition!==t||e.questionToken!==n||e.whenTrue!==i||e.colonToken!==a||e.whenFalse!==o?r(ke(t,n,i,a,o),e):e},e.createTemplateExpression=Ee,e.updateTemplateExpression=function(e,t,n){return e.head!==t||e.templateSpans!==n?r(Ee(t,n),e):e};var Ne,Ae,Fe={};function Pe(r,n,i){var a=t(r);if(a.text=n,void 0===i||n===i)a.rawText=i;else{var o=function(t,r){switch(l||(l=e.createScanner(99,!1,0)),t){case 14:l.setText("`"+r+"`");break;case 15:l.setText("`"+r+"${");break;case 16:l.setText("}"+r+"${");break;case 17:l.setText("}"+r+"`")}var n,i=l.scan();if(23===i&&(i=l.reScanTemplateToken(!1)),l.isUnterminated())return l.setText(void 0),Fe;switch(i){case 14:case 15:case 16:case 17:n=l.getTokenValue()}return 1!==l.scan()?(l.setText(void 0),Fe):(l.setText(void 0),n)}(r,i);if("object"===typeof o)return e.Debug.fail("Invalid raw text");e.Debug.assert(n===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'."),a.rawText=i}return a}function we(r,n){var i=r&&41===r.kind?r:void 0;n=r&&41!==r.kind?r:n;var a=t(212);return a.asteriskToken=i,a.expression=n&&e.parenthesizeExpressionForList(n),a}function Ie(r){var n=t(213);return n.expression=e.parenthesizeExpressionForList(r),n}function Oe(e,r,i,a,o){var s=t(214);return s.decorators=void 0,s.modifiers=or(e),s.name=ir(r),s.typeParameters=or(i),s.heritageClauses=or(a),s.members=n(o),s}function Me(r,n){var i=t(216);return i.expression=e.parenthesizeForAccess(n),i.typeArguments=or(r),i}function Le(e,r){var n=t(217);return n.expression=e,n.type=r,n}function Re(r){var n=t(218);return n.expression=e.parenthesizeForAccess(r),n}function Be(r){var n=t(218);return n.flags|=32,n.expression=e.parenthesizeForAccess(r),n}function je(t,n){return e.Debug.assert(!!(32&t.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),t.expression!==n?r(Be(n),t):t}function Je(e,r){var n=t(219);return n.keywordToken=e,n.name=r,n}function ze(e,r){var n=t(221);return n.expression=e,n.literal=r,n}function Ue(e,r){var i=t(223);return i.statements=n(e),r&&(i.multiLine=r),i}function Ke(r,n){var i=t(225);return i.decorators=void 0,i.modifiers=or(r),i.declarationList=e.isArray(n)?ut(n):n,i}function Ve(){return t(224)}function qe(r){var n=t(226);return n.expression=e.parenthesizeExpressionForExpressionStatement(r),n}function We(e,t){return e.expression!==t?r(qe(t),e):e}function He(e,r,n){var i=t(227);return i.expression=e,i.thenStatement=sr(r),i.elseStatement=sr(n),i}function Ge(e,r){var n=t(228);return n.statement=sr(e),n.expression=r,n}function Qe(e,r){var n=t(229);return n.expression=e,n.statement=sr(r),n}function Xe(e,r,n,i){var a=t(230);return a.initializer=e,a.condition=r,a.incrementor=n,a.statement=sr(i),a}function Ye(e,r,n){var i=t(231);return i.initializer=e,i.expression=r,i.statement=sr(n),i}function Ze(r,n,i,a){var o=t(232);return o.awaitModifier=r,o.initializer=n,o.expression=e.isCommaSequence(i)?me(i):i,o.statement=sr(a),o}function $e(e){var r=t(233);return r.label=ir(e),r}function et(e){var r=t(234);return r.label=ir(e),r}function tt(e){var r=t(235);return r.expression=e,r}function rt(e,r){var n=t(236);return n.expression=e,n.statement=sr(r),n}function nt(r,n){var i=t(237);return i.expression=e.parenthesizeExpressionForList(r),i.caseBlock=n,i}function it(e,r){var n=t(238);return n.label=ir(e),n.statement=sr(r),n}function at(e){var r=t(239);return r.expression=e,r}function ot(e,r,n){var i=t(240);return i.tryBlock=e,i.catchClause=r,i.finallyBlock=n,i}function st(r,n,i){var a=t(242);return a.name=ir(r),a.type=n,a.initializer=void 0!==i?e.parenthesizeExpressionForList(i):void 0,a}function ct(r,n,i,a){var o=t(242);return o.name=ir(r),o.type=i,o.initializer=void 0!==a?e.parenthesizeExpressionForList(a):void 0,o.exclamationToken=n,o}function ut(e,r){void 0===r&&(r=0);var i=t(243);return i.flags|=3&r,i.declarations=n(e),i}function lt(e,r,i,a,o,s,c,u){var l=t(244);return l.decorators=or(e),l.modifiers=or(r),l.asteriskToken=i,l.name=ir(a),l.typeParameters=or(o),l.parameters=n(s),l.type=c,l.body=u,l}function _t(e,r,i,a,o,s){var c=t(245);return c.decorators=or(e),c.modifiers=or(r),c.name=ir(i),c.typeParameters=or(a),c.heritageClauses=or(o),c.members=n(s),c}function dt(e,r,i,a,o,s){var c=t(246);return c.decorators=or(e),c.modifiers=or(r),c.name=ir(i),c.typeParameters=or(a),c.heritageClauses=or(o),c.members=n(s),c}function pt(e,r,n,i,a){var o=t(247);return o.decorators=or(e),o.modifiers=or(r),o.name=ir(n),o.typeParameters=or(i),o.type=a,o}function ft(e,r,i,a){var o=t(248);return o.decorators=or(e),o.modifiers=or(r),o.name=ir(i),o.members=n(a),o}function gt(e,r,n,i,a){void 0===a&&(a=0);var o=t(249);return o.flags|=1044&a,o.decorators=or(e),o.modifiers=or(r),o.name=n,o.body=i,o}function mt(e){var r=t(250);return r.statements=n(e),r}function yt(e){var r=t(251);return r.clauses=n(e),r}function vt(e){var r=t(252);return r.name=ir(e),r}function ht(e,r,n,i){var a=t(253);return a.decorators=or(e),a.modifiers=or(r),a.name=ir(n),a.moduleReference=i,a}function bt(e,r,n,i){var a=t(254);return a.decorators=or(e),a.modifiers=or(r),a.importClause=n,a.moduleSpecifier=i,a}function xt(e,r,n){void 0===n&&(n=!1);var i=t(255);return i.name=e,i.namedBindings=r,i.isTypeOnly=n,i}function Dt(e){var r=t(256);return r.name=e,r}function St(e){var r=t(262);return r.name=e,r}function Ct(e){var r=t(257);return r.elements=n(e),r}function Tt(e,r){var n=t(258);return n.propertyName=e,n.name=r,n}function kt(r,n,i,a){var o=t(259);return o.decorators=or(r),o.modifiers=or(n),o.isExportEquals=i,o.expression=i?e.parenthesizeBinaryOperand(62,a,!1,void 0):e.parenthesizeDefaultExpression(a),o}function Et(e,r,n,i,a){void 0===a&&(a=!1);var o=t(260);return o.decorators=or(e),o.modifiers=or(r),o.isTypeOnly=a,o.exportClause=n,o.moduleSpecifier=i,o}function Nt(e){var r=t(261);return r.elements=n(e),r}function At(e,r){var n=t(263);return n.propertyName=ir(e),n.name=ir(r),n}function Ft(e){var r=t(265);return r.expression=e,r}function Pt(e,r){var n=t(e);return n.tagName=u(r),n}function wt(e,r,i){var a=t(266);return a.openingElement=e,a.children=n(r),a.closingElement=i,a}function It(e,r,n){var i=t(267);return i.tagName=e,i.typeArguments=or(r),i.attributes=n,i}function Ot(e,r,n){var i=t(268);return i.tagName=e,i.typeArguments=or(r),i.attributes=n,i}function Mt(e){var r=t(269);return r.tagName=e,r}function Lt(e,r,i){var a=t(270);return a.openingFragment=e,a.children=n(r),a.closingFragment=i,a}function Rt(e,r){var n=t(11);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!r,n}function Bt(e,r){var n=t(273);return n.name=e,n.initializer=r,n}function jt(e){var r=t(274);return r.properties=n(e),r}function Jt(e){var r=t(275);return r.expression=e,r}function zt(e,r){var n=t(276);return n.dotDotDotToken=e,n.expression=r,n}function Ut(r,i){var a=t(277);return a.expression=e.parenthesizeExpressionForList(r),a.statements=n(i),a}function Kt(e){var r=t(278);return r.statements=n(e),r}function Vt(e,r){var i=t(279);return i.token=e,i.types=n(r),i}function qt(r,n){var i=t(280);return i.variableDeclaration=e.isString(r)?st(r):r,i.block=n,i}function Wt(r,n){var i=t(281);return i.name=ir(r),i.questionToken=void 0,i.initializer=e.parenthesizeExpressionForList(n),i}function Ht(r,n){var i=t(282);return i.name=ir(r),i.objectAssignmentInitializer=void 0!==n?e.parenthesizeExpressionForList(n):void 0,i}function Gt(r){var n=t(283);return n.expression=e.parenthesizeExpressionForList(r),n}function Qt(r,n){var i=t(284);return i.name=ir(r),i.initializer=n&&e.parenthesizeExpressionForList(n),i}function Xt(e,r){var n=t(326);return n.expression=e,n.original=r,ur(n,r),n}function Yt(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(327===t.kind)return t.elements;if(e.isBinaryExpression(t)&&27===t.operatorToken.kind)return[t.left,t.right]}return t}function Zt(r){var i=t(327);return i.elements=n(e.sameFlatMap(r,Yt)),i}function $t(e,r){var n=t(330);return n.expression=e,n.thisArg=r,n}function er(t,r){void 0===r&&(r=e.emptyArray);var n=e.createNode(291);return n.prepends=r,n.sourceFiles=t,n}function tr(){return Ne||(Ne=e.arrayToMap([e.valuesHelper,e.readHelper,e.spreadHelper,e.spreadArraysHelper,e.restHelper,e.decorateHelper,e.metadataHelper,e.paramHelper,e.awaiterHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.extendsHelper,e.templateObjectHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.createBindingHelper,e.setModuleDefaultHelper],(function(e){return e.name})))}function rr(t,r){var n=e.createNode(function(t){switch(t){case"prologue":return 285;case"prepend":return 286;case"internal":return 288;case"text":return 287;case"emitHelpers":case"no-default-lib":case"reference":case"type":case"lib":return e.Debug.fail("BundleFileSectionKind: "+t+" not yet mapped to SyntaxKind");default:return e.Debug.assertNever(t)}}(t.kind),t.pos,t.end);return n.parent=r,n.data=t.data,n}function nr(t,r){var n=e.createNode(289,t.pos,t.end);return n.parent=r,n.data=t.data,n.section=t,n}function ir(t){return e.isString(t)?u(t):t}function ar(e){return"string"===typeof e?c(e):"number"===typeof e?o(""+e):"boolean"===typeof e?e?f():g():e}function or(e){return e?n(e):void 0}function sr(t){return t&&e.isNotEmittedStatement(t)?ur(gr(Ve(),t),t):t}function cr(t){if(!t.emitNode){if(e.isParseTreeNode(t)){if(290===t.kind)return t.emitNode={annotatedNodes:[t]};cr(e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(t)))).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function ur(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function lr(e,t){return cr(e).flags=t,e}function _r(e){var t=e.emitNode;return t&&t.leadingComments}function dr(e,t){return cr(e).leadingComments=t,e}function pr(e){var t=e.emitNode;return t&&t.trailingComments}function fr(e,t){return cr(e).trailingComments=t,e}function gr(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);l&&(r.helpers=e.addRange(r.helpers,l));void 0!==_&&(r.startsOnNewLine=_);return r}(n,t.emitNode))}return t}e.createTemplateHead=function(e,t){var r=Pe(15,e,t);return r.text=e,r},e.createTemplateMiddle=function(e,t){var r=Pe(16,e,t);return r.text=e,r},e.createTemplateTail=function(e,t){var r=Pe(17,e,t);return r.text=e,r},e.createNoSubstitutionTemplateLiteral=function(e,t){return Pe(14,e,t)},e.createYield=we,e.updateYield=function(e,t,n){return e.expression!==n||e.asteriskToken!==t?r(we(t,n),e):e},e.createSpread=Ie,e.updateSpread=function(e,t){return e.expression!==t?r(Ie(t),e):e},e.createClassExpression=Oe,e.updateClassExpression=function(e,t,n,i,a,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?r(Oe(t,n,i,a,o),e):e},e.createOmittedExpression=function(){return t(215)},e.createExpressionWithTypeArguments=Me,e.updateExpressionWithTypeArguments=function(e,t,n){return e.typeArguments!==t||e.expression!==n?r(Me(t,n),e):e},e.createAsExpression=Le,e.updateAsExpression=function(e,t,n){return e.expression!==t||e.type!==n?r(Le(t,n),e):e},e.createNonNullExpression=Re,e.updateNonNullExpression=function(t,n){return e.isNonNullChain(t)?je(t,n):t.expression!==n?r(Re(n),t):t},e.createNonNullChain=Be,e.updateNonNullChain=je,e.createMetaProperty=Je,e.updateMetaProperty=function(e,t){return e.name!==t?r(Je(e.keywordToken,t),e):e},e.createTemplateSpan=ze,e.updateTemplateSpan=function(e,t,n){return e.expression!==t||e.literal!==n?r(ze(t,n),e):e},e.createSemicolonClassElement=function(){return t(222)},e.createBlock=Ue,e.updateBlock=function(e,t){return e.statements!==t?r(Ue(t,e.multiLine),e):e},e.createVariableStatement=Ke,e.updateVariableStatement=function(e,t,n){return e.modifiers!==t||e.declarationList!==n?r(Ke(t,n),e):e},e.createEmptyStatement=Ve,e.createExpressionStatement=qe,e.updateExpressionStatement=We,e.createStatement=qe,e.updateStatement=We,e.createIf=He,e.updateIf=function(e,t,n,i){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==i?r(He(t,n,i),e):e},e.createDo=Ge,e.updateDo=function(e,t,n){return e.statement!==t||e.expression!==n?r(Ge(t,n),e):e},e.createWhile=Qe,e.updateWhile=function(e,t,n){return e.expression!==t||e.statement!==n?r(Qe(t,n),e):e},e.createFor=Xe,e.updateFor=function(e,t,n,i,a){return e.initializer!==t||e.condition!==n||e.incrementor!==i||e.statement!==a?r(Xe(t,n,i,a),e):e},e.createForIn=Ye,e.updateForIn=function(e,t,n,i){return e.initializer!==t||e.expression!==n||e.statement!==i?r(Ye(t,n,i),e):e},e.createForOf=Ze,e.updateForOf=function(e,t,n,i,a){return e.awaitModifier!==t||e.initializer!==n||e.expression!==i||e.statement!==a?r(Ze(t,n,i,a),e):e},e.createContinue=$e,e.updateContinue=function(e,t){return e.label!==t?r($e(t),e):e},e.createBreak=et,e.updateBreak=function(e,t){return e.label!==t?r(et(t),e):e},e.createReturn=tt,e.updateReturn=function(e,t){return e.expression!==t?r(tt(t),e):e},e.createWith=rt,e.updateWith=function(e,t,n){return e.expression!==t||e.statement!==n?r(rt(t,n),e):e},e.createSwitch=nt,e.updateSwitch=function(e,t,n){return e.expression!==t||e.caseBlock!==n?r(nt(t,n),e):e},e.createLabel=it,e.updateLabel=function(e,t,n){return e.label!==t||e.statement!==n?r(it(t,n),e):e},e.createThrow=at,e.updateThrow=function(e,t){return e.expression!==t?r(at(t),e):e},e.createTry=ot,e.updateTry=function(e,t,n,i){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==i?r(ot(t,n,i),e):e},e.createDebuggerStatement=function(){return t(241)},e.createVariableDeclaration=st,e.updateVariableDeclaration=function(e,t,n,i){return e.name!==t||e.type!==n||e.initializer!==i?r(st(t,n,i),e):e},e.createTypeScriptVariableDeclaration=ct,e.updateTypeScriptVariableDeclaration=function(e,t,n,i,a){return e.name!==t||e.type!==i||e.initializer!==a||e.exclamationToken!==n?r(ct(t,n,i,a),e):e},e.createVariableDeclarationList=ut,e.updateVariableDeclarationList=function(e,t){return e.declarations!==t?r(ut(t,e.flags),e):e},e.createFunctionDeclaration=lt,e.updateFunctionDeclaration=function(e,t,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?r(lt(t,n,i,a,o,s,c,u),e):e},e.updateFunctionLikeBody=function(e,t){switch(e.kind){case 244:return lt(e.decorators,e.modifiers,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,t);case 161:return T(e.decorators,e.modifiers,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,t);case 163:return A(e.decorators,e.modifiers,e.name,e.parameters,e.type,t);case 164:return F(e.decorators,e.modifiers,e.name,e.parameters,t);case 162:return N(e.decorators,e.modifiers,e.parameters,t);case 201:return ye(e.modifiers,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,t);case 202:return ve(e.modifiers,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,t)}},e.createClassDeclaration=_t,e.updateClassDeclaration=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.heritageClauses!==o||e.members!==s?r(_t(t,n,i,a,o,s),e):e},e.createInterfaceDeclaration=dt,e.updateInterfaceDeclaration=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.heritageClauses!==o||e.members!==s?r(dt(t,n,i,a,o,s),e):e},e.createTypeAliasDeclaration=pt,e.updateTypeAliasDeclaration=function(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.type!==o?r(pt(t,n,i,a,o),e):e},e.createEnumDeclaration=ft,e.updateEnumDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.members!==a?r(ft(t,n,i,a),e):e},e.createModuleDeclaration=gt,e.updateModuleDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.body!==a?r(gt(t,n,i,a,e.flags),e):e},e.createModuleBlock=mt,e.updateModuleBlock=function(e,t){return e.statements!==t?r(mt(t),e):e},e.createCaseBlock=yt,e.updateCaseBlock=function(e,t){return e.clauses!==t?r(yt(t),e):e},e.createNamespaceExportDeclaration=vt,e.updateNamespaceExportDeclaration=function(e,t){return e.name!==t?r(vt(t),e):e},e.createImportEqualsDeclaration=ht,e.updateImportEqualsDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.moduleReference!==a?r(ht(t,n,i,a),e):e},e.createImportDeclaration=bt,e.updateImportDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.importClause!==i||e.moduleSpecifier!==a?r(bt(t,n,i,a),e):e},e.createImportClause=xt,e.updateImportClause=function(e,t,n,i){return e.name!==t||e.namedBindings!==n||e.isTypeOnly!==i?r(xt(t,n,i),e):e},e.createNamespaceImport=Dt,e.createNamespaceExport=St,e.updateNamespaceImport=function(e,t){return e.name!==t?r(Dt(t),e):e},e.updateNamespaceExport=function(e,t){return e.name!==t?r(St(t),e):e},e.createNamedImports=Ct,e.updateNamedImports=function(e,t){return e.elements!==t?r(Ct(t),e):e},e.createImportSpecifier=Tt,e.updateImportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?r(Tt(t,n),e):e},e.createExportAssignment=kt,e.updateExportAssignment=function(e,t,n,i){return e.decorators!==t||e.modifiers!==n||e.expression!==i?r(kt(t,n,e.isExportEquals,i),e):e},e.createExportDeclaration=Et,e.updateExportDeclaration=function(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.isTypeOnly!==o||e.exportClause!==i||e.moduleSpecifier!==a?r(Et(t,n,i,a,o),e):e},e.createEmptyExports=function(){return Et(void 0,void 0,Nt([]),void 0)},e.createNamedExports=Nt,e.updateNamedExports=function(e,t){return e.elements!==t?r(Nt(t),e):e},e.createExportSpecifier=At,e.updateExportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?r(At(t,n),e):e},e.createExternalModuleReference=Ft,e.updateExternalModuleReference=function(e,t){return e.expression!==t?r(Ft(t),e):e},e.createJSDocTypeExpression=function(e){var r=t(294);return r.type=e,r},e.createJSDocTypeTag=function(e,t){var r=Pt(320,"type");return r.typeExpression=e,r.comment=t,r},e.createJSDocReturnTag=function(e,t){var r=Pt(318,"returns");return r.typeExpression=e,r.comment=t,r},e.createJSDocThisTag=function(e){var t=Pt(319,"this");return t.typeExpression=e,t},e.createJSDocParamTag=function(e,t,r,n){var i=Pt(317,"param");return i.typeExpression=r,i.name=e,i.isBracketed=t,i.comment=n,i},e.createJSDocClassTag=function(){return Pt(310,"class")},e.createJSDocComment=function(e,r){var n=t(303);return n.comment=e,n.tags=r,n},e.createJsxElement=wt,e.updateJsxElement=function(e,t,n,i){return e.openingElement!==t||e.children!==n||e.closingElement!==i?r(wt(t,n,i),e):e},e.createJsxSelfClosingElement=It,e.updateJsxSelfClosingElement=function(e,t,n,i){return e.tagName!==t||e.typeArguments!==n||e.attributes!==i?r(It(t,n,i),e):e},e.createJsxOpeningElement=Ot,e.updateJsxOpeningElement=function(e,t,n,i){return e.tagName!==t||e.typeArguments!==n||e.attributes!==i?r(Ot(t,n,i),e):e},e.createJsxClosingElement=Mt,e.updateJsxClosingElement=function(e,t){return e.tagName!==t?r(Mt(t),e):e},e.createJsxFragment=Lt,e.createJsxText=Rt,e.updateJsxText=function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?r(Rt(t,n),e):e},e.createJsxOpeningFragment=function(){return t(271)},e.createJsxJsxClosingFragment=function(){return t(272)},e.updateJsxFragment=function(e,t,n,i){return e.openingFragment!==t||e.children!==n||e.closingFragment!==i?r(Lt(t,n,i),e):e},e.createJsxAttribute=Bt,e.updateJsxAttribute=function(e,t,n){return e.name!==t||e.initializer!==n?r(Bt(t,n),e):e},e.createJsxAttributes=jt,e.updateJsxAttributes=function(e,t){return e.properties!==t?r(jt(t),e):e},e.createJsxSpreadAttribute=Jt,e.updateJsxSpreadAttribute=function(e,t){return e.expression!==t?r(Jt(t),e):e},e.createJsxExpression=zt,e.updateJsxExpression=function(e,t){return e.expression!==t?r(zt(e.dotDotDotToken,t),e):e},e.createCaseClause=Ut,e.updateCaseClause=function(e,t,n){return e.expression!==t||e.statements!==n?r(Ut(t,n),e):e},e.createDefaultClause=Kt,e.updateDefaultClause=function(e,t){return e.statements!==t?r(Kt(t),e):e},e.createHeritageClause=Vt,e.updateHeritageClause=function(e,t){return e.types!==t?r(Vt(e.token,t),e):e},e.createCatchClause=qt,e.updateCatchClause=function(e,t,n){return e.variableDeclaration!==t||e.block!==n?r(qt(t,n),e):e},e.createPropertyAssignment=Wt,e.updatePropertyAssignment=function(e,t,n){return e.name!==t||e.initializer!==n?r(Wt(t,n),e):e},e.createShorthandPropertyAssignment=Ht,e.updateShorthandPropertyAssignment=function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?r(Ht(t,n),e):e},e.createSpreadAssignment=Gt,e.updateSpreadAssignment=function(e,t){return e.expression!==t?r(Gt(t),e):e},e.createEnumMember=Qt,e.updateEnumMember=function(e,t,n){return e.name!==t||e.initializer!==n?r(Qt(t,n),e):e},e.updateSourceFileNode=function(e,i,a,o,s,c,u){if(e.statements!==i||void 0!==a&&e.isDeclarationFile!==a||void 0!==o&&e.referencedFiles!==o||void 0!==s&&e.typeReferenceDirectives!==s||void 0!==u&&e.libReferenceDirectives!==u||void 0!==c&&e.hasNoDefaultLib!==c){var l=t(290);return l.flags|=e.flags,l.statements=n(i),l.endOfFileToken=e.endOfFileToken,l.fileName=e.fileName,l.path=e.path,l.text=e.text,l.isDeclarationFile=void 0===a?e.isDeclarationFile:a,l.referencedFiles=void 0===o?e.referencedFiles:o,l.typeReferenceDirectives=void 0===s?e.typeReferenceDirectives:s,l.hasNoDefaultLib=void 0===c?e.hasNoDefaultLib:c,l.libReferenceDirectives=void 0===u?e.libReferenceDirectives:u,void 0!==e.amdDependencies&&(l.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(l.moduleName=e.moduleName),void 0!==e.languageVariant&&(l.languageVariant=e.languageVariant),void 0!==e.renamedDependencies&&(l.renamedDependencies=e.renamedDependencies),void 0!==e.languageVersion&&(l.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(l.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(l.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(l.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(l.identifiers=e.identifiers),void 0!==e.nodeCount&&(l.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(l.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(l.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(l.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(l.bindDiagnostics=e.bindDiagnostics),void 0!==e.bindSuggestionDiagnostics&&(l.bindSuggestionDiagnostics=e.bindSuggestionDiagnostics),void 0!==e.lineMap&&(l.lineMap=e.lineMap),void 0!==e.classifiableNames&&(l.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(l.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(l.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(l.imports=e.imports),void 0!==e.moduleAugmentations&&(l.moduleAugmentations=e.moduleAugmentations),void 0!==e.pragmas&&(l.pragmas=e.pragmas),void 0!==e.localJsxFactory&&(l.localJsxFactory=e.localJsxFactory),void 0!==e.localJsxNamespace&&(l.localJsxNamespace=e.localJsxNamespace),r(l,e)}return e},e.getMutableClone=function(e){var t=i(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t},e.createNotEmittedStatement=function(e){var r=t(325);return r.original=e,ur(r,e),r},e.createEndOfDeclarationMarker=function(e){var r=t(329);return r.emitNode={},r.original=e,r},e.createMergeDeclarationMarker=function(e){var r=t(328);return r.emitNode={},r.original=e,r},e.createPartiallyEmittedExpression=Xt,e.updatePartiallyEmittedExpression=function(e,t){return e.expression!==t?r(Xt(t,e.original),e):e},e.createCommaList=Zt,e.updateCommaList=function(e,t){return e.elements!==t?r(Zt(t),e):e},e.createSyntheticReferenceExpression=$t,e.updateSyntheticReferenceExpression=function(e,t,n){return e.expression!==t||e.thisArg!==n?r($t(t,n),e):e},e.createBundle=er,e.createUnparsedSourceFile=function(t,r,n){var i,a,o=function(){var t=e.createNode(292);return t.prologues=e.emptyArray,t.referencedFiles=e.emptyArray,t.libReferenceDirectives=e.emptyArray,t.getLineAndCharacterOfPosition=function(r){return e.getLineAndCharacterOfPosition(t,r)},t}();if(e.isString(t))o.fileName="",o.text=t,o.sourceMapPath=r,o.sourceMapText=n;else if(e.Debug.assert("js"===r||"dts"===r),o.fileName=("js"===r?t.javascriptPath:t.declarationPath)||"",o.sourceMapPath="js"===r?t.javascriptMapPath:t.declarationMapPath,Object.defineProperties(o,{text:{get:function(){return"js"===r?t.javascriptText:t.declarationText}},sourceMapText:{get:function(){return"js"===r?t.javascriptMapText:t.declarationMapText}}}),t.buildInfo&&t.buildInfo.bundle&&(o.oldFileOfCurrentEmit=t.oldFileOfCurrentEmit,e.Debug.assert(void 0===n||"boolean"===typeof n),i=n,a="js"===r?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,o.oldFileOfCurrentEmit))return function(t,r){var n,i;e.Debug.assert(!!t.oldFileOfCurrentEmit);for(var a=0,o=r.sections;a<o.length;a++){var s=o[a];switch(s.kind){case"internal":case"text":(n||(n=[])).push(rr(s,t));break;case"no-default-lib":case"reference":case"type":case"lib":(i||(i=[])).push(nr(s,t));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(s)}}t.texts=n||e.emptyArray,t.helpers=e.map(r.sources&&r.sources.helpers,(function(e){return tr().get(e)})),t.syntheticReferences=i}(o,e.Debug.checkDefined(a)),o;return e.Debug.assert(!o.oldFileOfCurrentEmit),function(t,r,n){for(var i,a,o,s,c,u,l=0,_=r?r.sections:e.emptyArray;l<_.length;l++){var d=_[l];switch(d.kind){case"prologue":(i||(i=[])).push(rr(d,t));break;case"emitHelpers":(a||(a=[])).push(tr().get(d.data));break;case"no-default-lib":t.hasNoDefaultLib=!0;break;case"reference":(o||(o=[])).push({pos:-1,end:-1,fileName:d.data});break;case"type":(s||(s=[])).push(d.data);break;case"lib":(c||(c=[])).push({pos:-1,end:-1,fileName:d.data});break;case"prepend":for(var p=rr(d,t),f=void 0,g=0,m=d.texts;g<m.length;g++){var y=m[g];n&&"internal"===y.kind||(f||(f=[])).push(rr(y,t))}p.texts=f||e.emptyArray,(u||(u=[])).push(p);break;case"internal":if(n){u||(u=[]);break}case"text":(u||(u=[])).push(rr(d,t));break;default:e.Debug.assertNever(d)}}t.prologues=i||e.emptyArray,t.helpers=a,t.referencedFiles=o||e.emptyArray,t.typeReferenceDirectives=s,t.libReferenceDirectives=c||e.emptyArray,t.texts=u||[rr({kind:"text",pos:0,end:t.text.length},t)]}(o,a,i),o},e.createInputFiles=function(t,r,n,i,a,o,s,c,u,l,_){var d=e.createNode(293);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=e.createMap(),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.checkDefined(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.checkDefined(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.updateBundle=function(t,r,n){return void 0===n&&(n=e.emptyArray),t.sourceFiles!==r||t.prepends!==n?er(r,n):t},e.createImmediatelyInvokedFunctionExpression=function(e,t,r){return le(ye(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Ue(e,!0)),void 0,r?[r]:[])},e.createImmediatelyInvokedArrowFunction=function(e,t,r){return le(ve(void 0,void 0,t?[t]:[],void 0,void 0,Ue(e,!0)),void 0,r?[r]:[])},e.createComma=function(e,t){return Te(e,27,t)},e.createLessThan=function(e,t){return Te(e,29,t)},e.createAssignment=function(e,t){return Te(e,62,t)},e.createStrictEquality=function(e,t){return Te(e,36,t)},e.createStrictInequality=function(e,t){return Te(e,37,t)},e.createAdd=function(e,t){return Te(e,39,t)},e.createSubtract=function(e,t){return Te(e,40,t)},e.createPostfixIncrement=function(e){return Ce(e,45)},e.createLogicalAnd=function(e,t){return Te(e,55,t)},e.createLogicalOr=function(e,t){return Te(e,56,t)},e.createNullishCoalesce=function(e,t){return Te(e,60,t)},e.createLogicalNot=function(e){return Se(53,e)},e.createVoidZero=function(){return xe(a(0))},e.createExportDefault=function(e){return kt(void 0,void 0,!1,e)},e.createExternalModuleExport=function(e){return Et(void 0,void 0,Nt([At(void 0,e)]))},e.disposeEmitNodes=function(t){var r=(t=e.getSourceFileOfNode(e.getParseTreeNode(t)))&&t.emitNode,n=r&&r.annotatedNodes;if(n)for(var i=0,a=n;i<a.length;i++){a[i].emitNode=void 0}},e.getOrCreateEmitNode=cr,e.removeAllComments=function(e){var t=cr(e);return t.flags|=1536,t.leadingComments=void 0,t.trailingComments=void 0,e},e.setTextRange=ur,e.setEmitFlags=lr,e.addEmitFlags=function(e,t){var r=cr(e);return r.flags=r.flags|t,e},e.getSourceMapRange=function(e){var t=e.emitNode;return t&&t.sourceMapRange||e},e.setSourceMapRange=function(e,t){return cr(e).sourceMapRange=t,e},e.createSourceMapSource=function(t,r,n){return new(Ae||(Ae=e.objectAllocator.getSourceMapSourceConstructor()))(t,r,n)},e.getTokenSourceMapRange=function(e,t){var r=e.emitNode,n=r&&r.tokenSourceMapRanges;return n&&n[t]},e.setTokenSourceMapRange=function(e,t,r){var n=cr(e);return(n.tokenSourceMapRanges||(n.tokenSourceMapRanges=[]))[t]=r,e},e.getStartsOnNewLine=function(e){var t=e.emitNode;return t&&t.startsOnNewLine},e.setStartsOnNewLine=function(e,t){return cr(e).startsOnNewLine=t,e},e.getCommentRange=function(e){var t=e.emitNode;return t&&t.commentRange||e},e.setCommentRange=function(e,t){return cr(e).commentRange=t,e},e.getSyntheticLeadingComments=_r,e.setSyntheticLeadingComments=dr,e.addSyntheticLeadingComment=function(t,r,n,i){return dr(t,e.append(_r(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))},e.getSyntheticTrailingComments=pr,e.setSyntheticTrailingComments=fr,e.addSyntheticTrailingComment=function(t,r,n,i){return fr(t,e.append(pr(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))},e.moveSyntheticComments=function(e,t){dr(e,_r(t)),fr(e,pr(t));var r=cr(t);return r.leadingComments=void 0,r.trailingComments=void 0,e},e.ignoreSourceNewlines=function(e){return cr(e).flags|=134217728,e},e.getConstantValue=function(e){var t=e.emitNode;return t&&t.constantValue},e.setConstantValue=function(e,t){return cr(e).constantValue=t,e},e.addEmitHelper=function(t,r){var n=cr(t);return n.helpers=e.append(n.helpers,r),t},e.addEmitHelpers=function(t,r){if(e.some(r))for(var n=cr(t),i=0,a=r;i<a.length;i++){var o=a[i];n.helpers=e.appendIfUnique(n.helpers,o)}return t},e.removeEmitHelper=function(t,r){var n=t.emitNode;if(n){var i=n.helpers;if(i)return e.orderedRemoveItem(i,r)}return!1},e.getEmitHelpers=function(e){var t=e.emitNode;return t&&t.helpers},e.moveEmitHelpers=function(t,r,n){var i=t.emitNode,a=i&&i.helpers;if(e.some(a)){for(var o=cr(r),s=0,c=0;c<a.length;c++){var u=a[c];n(u)?(s++,o.helpers=e.appendIfUnique(o.helpers,u)):s>0&&(a[c-s]=u)}s>0&&(a.length-=s)}},e.compareEmitHelpers=function(t,r){return t===r?0:t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)},e.setOriginalNode=gr}(d||(d={})),function(e){function t(t,r,n){if(e.isComputedPropertyName(r))return e.setTextRange(e.createElementAccess(t,r.expression),n);var i=e.setTextRange(e.isIdentifier(r)||e.isPrivateIdentifier(r)?e.createPropertyAccess(t,r):e.createElementAccess(t,r),r);return e.getOrCreateEmitNode(i).flags|=64,i}function r(t,r){var n=e.createIdentifier(t||"React");return n.flags&=-9,n.parent=e.getParseTreeNode(r),n}function n(t,n,i){return t?function t(n,i){if(e.isQualifiedName(n)){var a=t(n.left,i),o=e.createIdentifier(e.idText(n.right));return o.escapedText=n.right.escapedText,e.createPropertyAccess(a,o)}return r(e.idText(n),i)}(t,i):e.createPropertyAccess(r(n,i),"createElement")}function i(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function a(t,r){var n=e.skipParentheses(t);switch(n.kind){case 75:return r;case 104:case 8:case 9:case 10:return!1;case 192:return 0!==n.elements.length;case 193:return n.properties.length>0;default:return!0}}function s(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function c(e,t,r){return u(e,t,r,8192)}function u(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.getMutableClone(a);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function l(t,r,n,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(r)?r:e.getSynthesizedClone(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function _(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function d(t,r,n){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=r.length;a<o;){var s=r[a];if(!e.isPrologueDirective(s))break;_(s)&&(i=!0),t.push(s),a++}return n&&!i&&t.push(T(e.createStatement(e.createLiteral("use strict")))),a}function p(t,r,n,i,a){void 0===a&&(a=e.returnTrue);for(var o=r.length;void 0!==n&&n<o;){var s=r[n];if(!(1048576&e.getEmitFlags(s)&&a(s)))break;e.append(t,i?e.visitNode(s,i,e.isStatement):s),n++}return n}function f(t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.isPrologueDirective(i))break;if(_(i))return i}}function g(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(209===t.kind&&39===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var r=g(t.left),n=e.isLiteralKind(r)&&r===g(t.right)?r:0;return t.cachedLiteralKind=n,n}return 0}function m(t){var r=e.skipPartiallyEmittedExpressions(t);return e.isLeftHandSideExpression(r)&&(197!==r.kind||r.arguments)?t:e.setTextRange(e.createParen(t),t)}function y(t){var r=e.skipPartiallyEmittedExpressions(t);return e.getExpressionPrecedence(r)>e.getOperatorPrecedence(209,27)?t:e.setTextRange(e.createParen(t),t)}function v(t){return 180===t.kind?e.createParenthesizedType(t):t}function h(t){switch(t.kind){case 178:case 179:case 170:case 171:return e.createParenthesizedType(t)}return v(t)}function b(e,t){for(;;){switch(e.kind){case 208:e=e.operand;continue;case 209:e=e.left;continue;case 210:e=e.condition;continue;case 198:e=e.tag;continue;case 196:if(t)return e;case 217:case 195:case 194:case 218:case 326:e=e.expression;continue}return e}}function x(e){return 209===e.kind&&27===e.operatorToken.kind||327===e.kind}function D(e,t){switch(void 0===t&&(t=15),e.kind){case 200:return 0!==(1&t);case 199:case 217:return 0!==(2&t);case 218:return 0!==(4&t);case 326:return 0!==(8&t)}return!1}function S(e,t){for(void 0===t&&(t=15);D(e,t);)e=e.expression;return e}function C(t,r,n){return void 0===n&&(n=15),t&&D(t,n)&&(!(200===(i=t).kind&&e.nodeIsSynthesized(i)&&e.nodeIsSynthesized(e.getSourceMapRange(i))&&e.nodeIsSynthesized(e.getCommentRange(i)))||e.some(e.getSyntheticLeadingComments(i))||e.some(e.getSyntheticTrailingComments(i)))?function(t,r){switch(t.kind){case 200:return e.updateParen(t,r);case 199:return e.updateTypeAssertion(t,t.type,r);case 217:return e.updateAsExpression(t,r,t.type);case 218:return e.updateNonNullExpression(t,r);case 326:return e.updatePartiallyEmittedExpression(t,r)}}(t,C(t.expression,r)):r;var i}function T(t){return e.setStartsOnNewLine(t,!0)}function k(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function E(t,r,n,i){if(r.importHelpers&&e.isEffectiveExternalModule(t,r)){var a=k(t);if(a)return a;var o=e.getEmitModuleKind(r),s=(n||r.esModuleInterop&&i)&&o!==e.ModuleKind.System&&o<e.ModuleKind.ES2015;if(!s){var c=e.getEmitHelpers(t);if(c)for(var u=0,l=c;u<l.length;u++){if(!l[u].scoped){s=!0;break}}}if(s){var _=e.getOriginalNode(t,e.isSourceFile),d=e.getOrCreateEmitNode(_);return d.externalHelpersModuleName||(d.externalHelpersModuleName=e.createUniqueName(e.externalHelpersModuleNameText))}}}function N(t,r,n){if(t)return t.moduleName?e.createLiteral(t.moduleName):t.isDeclarationFile||!n.out&&!n.outFile?void 0:e.createLiteral(e.getExternalModuleNameFromPath(r,t.fileName))}function A(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?A(t.left):e.isSpreadElement(t)?A(t.expression):t;switch(t.kind){case 281:return A(t.initializer);case 282:return t.name;case 283:return A(t.expression)}}function F(t){switch(t.kind){case 191:if(t.propertyName){var r=t.propertyName;return e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&P(r.expression)?r.expression:r}break;case 281:if(t.name){r=t.name;return e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&P(r.expression)?r.expression:r}break;case 283:return t.name&&e.isPrivateIdentifier(t.name)?e.Debug.failBadSyntaxKind(t.name):t.name}var n=A(t);if(n&&e.isPropertyName(n))return n}function P(e){var t=e.kind;return 10===t||8===t}function w(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(t.name),t),t);var r=R(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(r,t.initializer),t),t):r}return e.Debug.assertNode(t,e.isExpression),t}function I(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){var r=R(t.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(r,t.initializer):r),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.Debug.assertNode(t,e.isObjectLiteralElementLike),t}function O(e){switch(e.kind){case 190:case 192:return L(e);case 189:case 193:return M(e)}}function M(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(t.elements,I)),t),t):(e.Debug.assertNode(t,e.isObjectLiteralExpression),t)}function L(t){return e.isArrayBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(t.elements,w)),t),t):(e.Debug.assertNode(t,e.isArrayLiteralExpression),t)}function R(t){return e.isBindingPattern(t)?O(t):(e.Debug.assertNode(t,e.isExpression),t)}e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:e.returnUndefined,getCompilerOptions:function(){return{}},getEmitHost:e.notImplemented,getEmitResolver: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},e.createTypeCheck=function(t,r){return"undefined"===r?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(r))},e.createMemberAccessForPropertyName=t,e.createFunctionCall=function(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,o([r],n)),i)},e.createFunctionApply=function(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[r,n]),i)},e.createArraySlice=function(t,r){var n=[];return void 0!==r&&n.push("number"===typeof r?e.createLiteral(r):r),e.createCall(e.createPropertyAccess(t,"slice"),void 0,n)},e.createArrayConcat=function(t,r){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,r)},e.createMathPow=function(t,r,n){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,r]),n)},e.createExpressionForJsxElement=function(t,r,i,a,o,s,c){var u=[i];if(a&&u.push(a),o&&o.length>0)if(a||u.push(e.createNull()),o.length>1)for(var l=0,_=o;l<_.length;l++){var d=_[l];T(d),u.push(d)}else u.push(o[0]);return e.setTextRange(e.createCall(n(t,r,s),void 0,u),c)},e.createExpressionForJsxFragment=function(t,i,a,o,s){var c=[e.createPropertyAccess(r(i,o),"Fragment")];if(c.push(e.createNull()),a&&a.length>0)if(a.length>1)for(var u=0,l=a;u<l.length;u++){var _=l[u];T(_),c.push(_)}else c.push(a[0]);return e.setTextRange(e.createCall(n(t,i,o),void 0,c),s)},e.getUnscopedHelperName=i,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.createValuesHelper=function(t,r,n){return t.requestEmitHelper(e.valuesHelper),e.setTextRange(e.createCall(i("__values"),void 0,[r]),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.createReadHelper=function(t,r,n,a){return t.requestEmitHelper(e.readHelper),e.setTextRange(e.createCall(i("__read"),void 0,void 0!==n?[r,e.createLiteral(n)]:[r]),a)},e.spreadHelper={name:"typescript:spread",importName:"__spread",scoped:!1,dependencies:[e.readHelper],text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"},e.createSpreadHelper=function(t,r,n){return t.requestEmitHelper(e.spreadHelper),e.setTextRange(e.createCall(i("__spread"),void 0,r),n)},e.spreadArraysHelper={name:"typescript:spreadArrays",importName:"__spreadArrays",scoped:!1,text:"\n var __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n };"},e.createSpreadArraysHelper=function(t,r,n){return t.requestEmitHelper(e.spreadArraysHelper),e.setTextRange(e.createCall(i("__spreadArrays"),void 0,r),n)},e.createForOfBindingStatement=function(t,r){if(e.isVariableDeclarationList(t)){var n=e.first(t.declarations),i=e.updateVariableDeclaration(n,n.name,void 0,r);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,r),t);return e.setTextRange(e.createStatement(a),t)},e.insertLeadingStatement=function(t,r){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray(o([r],t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)},e.restoreEnclosingLabel=function t(r,n,i){if(!n)return r;var a=e.updateLabel(n,n.label,238===n.statement.kind?t(r,n.statement):r);return i&&i(n),a},e.createCallBinding=function(t,r,n,i){void 0===i&&(i=!1);var o,s,c=S(t,15);if(e.isSuperProperty(c))o=e.createThis(),s=c;else if(102===c.kind)o=e.createThis(),s=n<2?e.setTextRange(e.createIdentifier("_super"),c):c;else if(4096&e.getEmitFlags(c))o=e.createVoidZero(),s=m(c);else switch(c.kind){case 194:a(c.expression,i)?(o=e.createTempVariable(r),s=e.createPropertyAccess(e.setTextRange(e.createAssignment(o,c.expression),c.expression),c.name),e.setTextRange(s,c)):(o=c.expression,s=c);break;case 195:a(c.expression,i)?(o=e.createTempVariable(r),s=e.createElementAccess(e.setTextRange(e.createAssignment(o,c.expression),c.expression),c.argumentExpression),e.setTextRange(s,c)):(o=c.expression,s=c);break;default:o=e.createVoidZero(),s=m(t)}return{target:s,thisArg:o}},e.inlineExpressions=function(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)},e.createExpressionFromEntityName=function t(r){if(e.isQualifiedName(r)){var n=t(r.left),i=e.getMutableClone(r.right);return e.setTextRange(e.createPropertyAccess(n,i),r)}return e.getMutableClone(r)},e.createExpressionForPropertyName=s,e.createExpressionForObjectLiteralElementLike=function(r,n,i){switch(n.name&&e.isPrivateIdentifier(n.name)&&e.Debug.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 163:case 164:return function(t,r,n,i){var a=e.getAllAccessorDeclarations(t,r),o=a.firstAccessor,c=a.getAccessor,u=a.setAccessor;if(r===o){var l=[];if(c){var _=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(_,c),e.setOriginalNode(_,c);var d=e.createPropertyAssignment("get",_);l.push(d)}if(u){var p=e.createFunctionExpression(u.modifiers,void 0,void 0,void 0,u.parameters,void 0,u.body);e.setTextRange(p,u),e.setOriginalNode(p,u);var f=e.createPropertyAssignment("set",p);l.push(f)}l.push(e.createPropertyAssignment("enumerable",c||u?e.createFalse():e.createTrue())),l.push(e.createPropertyAssignment("configurable",e.createTrue()));var g=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[n,s(r.name),e.createObjectLiteral(l,i)]),o);return e.aggregateTransformFlags(g)}return}(r.properties,n,i,!!r.multiLine);case 281:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),r.initializer),r),r))}(n,i);case 282:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),e.getSynthesizedClone(r.name)),r),r))}(n,i);case 161:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,void 0,r.parameters,void 0,r.body),r),r)),r),r))}(n,i)}},e.getInternalName=function(e,t,r){return u(e,t,r,49152)},e.isInternalName=function(t){return 0!==(32768&e.getEmitFlags(t))},e.getLocalName=function(e,t,r){return u(e,t,r,16384)},e.isLocalName=function(t){return 0!==(16384&e.getEmitFlags(t))},e.getExportName=c,e.isExportName=function(t){return 0!==(8192&e.getEmitFlags(t))},e.getDeclarationName=function(e,t,r){return u(e,t,r)},e.getExternalModuleOrNamespaceExportName=function(t,r,n,i){return t&&e.hasModifier(r,1)?l(t,u(r),n,i):c(r,n,i)},e.getNamespaceMemberName=l,e.convertToFunctionBody=function(t,r){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],r),t)},e.convertFunctionDeclarationToExpression=function(t){if(!t.body)return e.Debug.fail();var r=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(r,t),e.setTextRange(r,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(r,!0),e.aggregateTransformFlags(r),r},e.addPrologue=function(e,t,r,n){return p(e,t,d(e,t,r),n)},e.addStandardPrologue=d,e.addCustomPrologue=p,e.findUseStrictPrologue=f,e.startsWithUseStrict=function(t){var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&_(r)},e.ensureUseStrict=function(t){return f(t)?t:e.setTextRange(e.createNodeArray(o([T(e.createStatement(e.createLiteral("use strict")))],t)),t)},e.parenthesizeBinaryOperand=function(t,r,n,i){return 200===e.skipPartiallyEmittedExpressions(r).kind?r:function(t,r,n,i){var a=e.getOperatorPrecedence(209,t),o=e.getOperatorAssociativity(209,t),s=e.skipPartiallyEmittedExpressions(r);if(!n&&202===r.kind&&a>3)return!0;var c=e.getExpressionPrecedence(s);switch(e.compareValues(c,a)){case-1:return!(!n&&1===o&&212===r.kind);case 1:return!1;case 0:if(n)return 1===o;if(e.isBinaryExpression(s)&&s.operatorToken.kind===t){if(function(e){return 41===e||51===e||50===e||52===e}(t))return!1;if(39===t){var u=i?g(i):0;if(e.isLiteralKind(u)&&u===g(s))return!1}}return 0===e.getExpressionAssociativity(s)}}(t,r,n,i)?e.createParen(r):r},e.parenthesizeForConditionalHead=function(t){var r=e.getOperatorPrecedence(210,57),n=e.skipPartiallyEmittedExpressions(t),i=e.getExpressionPrecedence(n);return 1!==e.compareValues(i,r)?e.createParen(t):t},e.parenthesizeSubexpressionOfConditionalExpression=function(t){return x(e.skipPartiallyEmittedExpressions(t))?e.createParen(t):t},e.parenthesizeDefaultExpression=function(t){var r=e.skipPartiallyEmittedExpressions(t),n=x(r);if(!n)switch(b(r,!1).kind){case 214:case 201:n=!0}return n?e.createParen(t):t},e.parenthesizeForNew=function(t){var r=b(t,!0);switch(r.kind){case 196:return e.createParen(t);case 197:return r.arguments?t:e.createParen(t)}return m(t)},e.parenthesizeForAccess=m,e.parenthesizePostfixOperand=function(t){return e.isLeftHandSideExpression(t)?t:e.setTextRange(e.createParen(t),t)},e.parenthesizePrefixOperand=function(t){return e.isUnaryExpression(t)?t:e.setTextRange(e.createParen(t),t)},e.parenthesizeListElements=function(t){for(var r,n=0;n<t.length;n++){var i=y(t[n]);void 0===r&&i===t[n]||(void 0===r&&(r=t.slice(0,n)),r.push(i))}return void 0!==r?e.setTextRange(e.createNodeArray(r,t.hasTrailingComma),t):t},e.parenthesizeExpressionForList=y,e.parenthesizeExpressionForExpressionStatement=function(t){var r=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(r)){var n=r.expression,i=e.skipPartiallyEmittedExpressions(n).kind;if(201===i||202===i){var a=e.getMutableClone(r);return a.expression=e.setTextRange(e.createParen(n),n),C(t,a,8)}}var o=b(r,!1).kind;return 193===o||201===o?e.setTextRange(e.createParen(t),t):t},e.parenthesizeConditionalTypeMember=v,e.parenthesizeElementTypeMember=h,e.parenthesizeArrayTypeMember=function(t){switch(t.kind){case 172:case 184:case 181:return e.createParenthesizedType(t)}return h(t)},e.parenthesizeElementTypeMembers=function(t){return e.createNodeArray(e.sameMap(t,h))},e.parenthesizeTypeParameters=function(t){if(e.some(t)){for(var r=[],n=0;n<t.length;++n){var i=t[n];r.push(0===n&&e.isFunctionOrConstructorTypeNode(i)&&i.typeParameters?e.createParenthesizedType(i):i)}return e.createNodeArray(r)}},e.getLeftmostExpression=b,e.parenthesizeConciseBody=function(t){return e.isBlock(t)||!x(t)&&193!==b(t,!1).kind?t:e.setTextRange(e.createParen(t),t)},e.isCommaSequence=x,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={})),e.isOuterExpression=D,e.skipOuterExpressions=S,e.skipAssertions=function(e){return S(e,6)},e.recreateOuterExpressions=C,e.startOnNewLine=T,e.getExternalHelpersModuleName=k,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,a,o){if(r.importHelpers&&e.isEffectiveExternalModule(t,r)){var s=void 0,c=e.getEmitModuleKind(r);if(c>=e.ModuleKind.ES2015&&c<=e.ModuleKind.ESNext){var u=e.getEmitHelpers(t);if(u){for(var l=[],_=0,d=u;_<d.length;_++){var p=d[_];if(!p.scoped){var f=p.importName;f&&e.pushIfUnique(l,f)}}if(e.some(l)){l.sort(e.compareStringsCaseSensitive),s=e.createNamedImports(e.map(l,(function(r){return e.isFileLevelUniqueName(t,r)?e.createImportSpecifier(void 0,e.createIdentifier(r)):e.createImportSpecifier(e.createIdentifier(r),i(r))})));var g=e.getOriginalNode(t,e.isSourceFile);e.getOrCreateEmitNode(g).externalHelpers=!0}}}else{var m=E(t,r,n,a||o);m&&(s=e.createNamespaceImport(m))}if(s){var y=e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,s),e.createLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(y,67108864),y}}},e.getOrCreateExternalHelpersModuleNameIfNeeded=E,e.getLocalNameForExternalImport=function(t,r){var n=e.getNamespaceDeclarationNode(t);if(n&&!e.isDefaultImport(t)){var i=n.name;return e.isGeneratedIdentifier(i)?i:e.createIdentifier(e.getSourceTextOfNodeFromSourceFile(r,i)||e.idText(i))}return 254===t.kind&&t.importClause?e.getGeneratedNameForNode(t):260===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0},e.getExternalModuleNameLiteral=function(t,r,n,i,a){var o=e.getExternalModuleName(t);if(10===o.kind)return function(e,t,r,n){return N(r.getExternalModuleFileFromDeclaration(e),t,n)}(t,n,i,a)||function(t,r){var n=r.renamedDependencies&&r.renamedDependencies.get(t.text);return n&&e.createLiteral(n)}(o,r)||e.getSynthesizedClone(o)},e.tryGetModuleNameFromFile=N,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=A,e.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 156:case 191:return e.dotDotDotToken;case 213:case 283: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 189:case 190:case 192:return e.elements;case 193:return e.properties}},e.convertToArrayAssignmentElement=w,e.convertToObjectAssignmentElement=I,e.convertToAssignmentPattern=O,e.convertToObjectAssignmentPattern=M,e.convertToArrayAssignmentPattern=L,e.convertToAssignmentElementTarget=R}(d||(d={})),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;e.aggregateTransformFlags(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),e.aggregateTransformFlags(a),a):void 0}function n(t,r,n,i,a){if(void 0===t||void 0===r)return t;var o,s=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>s-i)&&(a=s-i),(i>0||a<s)&&(o=e.createNodeArray([],t.hasTrailingComma&&i+a===s));for(var c=0;c<a;c++){var u=t[c+i];e.aggregateTransformFlags(u);var l=void 0!==u?r(u):void 0;if((void 0!==o||void 0===l||l!==u)&&(void 0===o&&(o=e.createNodeArray(t.slice(0,c),t.hasTrailingComma),e.setTextRange(o,t)),l))if(e.isArray(l))for(var _=0,d=l;_<d.length;_++){var p=d[_];e.Debug.assertNode(p,n),e.aggregateTransformFlags(p),o.push(p)}else e.Debug.assertNode(l,n),e.aggregateTransformFlags(l),o.push(l)}return o||t}function i(t,r,i,a,o){return i.startLexicalEnvironment(),t=n(t,r,e.isStatement,a),o&&(t=e.ensureUseStrict(t)),e.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(e.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(t,r){return r.addInitializationStatement(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(t.name,t.type,t.initializer?e.createConditional(e.createStrictEquality(e.getGeneratedNameForNode(t),e.createVoidZero()),t.initializer,e.getGeneratedNameForNode(t)):e.getGeneratedNameForNode(t))]))),e.updateParameter(t,t.decorators,t.modifiers,t.dotDotDotToken,e.getGeneratedNameForNode(t),t.questionToken,t.type,void 0)}(t,r):t.initializer?function(t,r,n,i){return i.addInitializationStatement(e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createExpressionStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(n,1584|e.getEmitFlags(n))),t),1536))]),t),1953))),e.updateParameter(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){i.resumeLexicalEnvironment();var a=r(t,n,e.isConciseBody),o=i.endLexicalEnvironment();if(e.some(o)){var s=e.convertToFunctionBody(a),c=e.mergeLexicalEnvironment(s.statements,o);return e.updateBlock(s,c)}return a}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,_){if(void 0===l&&(l=n),void 0!==o){var d=o.kind;if(d>0&&d<=152||183===d)return o;switch(d){case 75:return e.updateIdentifier(o,l(o.typeArguments,c,t));case 153:return e.updateQualifiedName(o,r(o.left,c,e.isEntityName),r(o.right,c,e.isIdentifier));case 154:return e.updateComputedPropertyName(o,r(o.expression,c,e.isExpression));case 155:return e.updateTypeParameterDeclaration(o,r(o.name,c,e.isIdentifier),r(o.constraint,c,e.isTypeNode),r(o.default,c,e.isTypeNode));case 156:return e.updateParameter(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.dotDotDotToken,_,e.isToken),r(o.name,c,e.isBindingName),r(o.questionToken,_,e.isToken),r(o.type,c,e.isTypeNode),r(o.initializer,c,e.isExpression));case 157:return e.updateDecorator(o,r(o.expression,c,e.isExpression));case 158:return e.updatePropertySignature(o,l(o.modifiers,c,e.isToken),r(o.name,c,e.isPropertyName),r(o.questionToken,_,e.isToken),r(o.type,c,e.isTypeNode),r(o.initializer,c,e.isExpression));case 159:return e.updateProperty(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.name,c,e.isPropertyName),r(o.questionToken||o.exclamationToken,_,e.isToken),r(o.type,c,e.isTypeNode),r(o.initializer,c,e.isExpression));case 160:return e.updateMethodSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),r(o.type,c,e.isTypeNode),r(o.name,c,e.isPropertyName),r(o.questionToken,_,e.isToken));case 161:return e.updateMethod(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.asteriskToken,_,e.isToken),r(o.name,c,e.isPropertyName),r(o.questionToken,_,e.isToken),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),r(o.type,c,e.isTypeNode),s(o.body,c,u));case 162:return e.updateConstructor(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),a(o.parameters,c,u,l),s(o.body,c,u));case 163:return e.updateGetAccessor(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.name,c,e.isPropertyName),a(o.parameters,c,u,l),r(o.type,c,e.isTypeNode),s(o.body,c,u));case 164:return e.updateSetAccessor(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.name,c,e.isPropertyName),a(o.parameters,c,u,l),s(o.body,c,u));case 165:return e.updateCallSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),r(o.type,c,e.isTypeNode));case 166:return e.updateConstructSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),r(o.type,c,e.isTypeNode));case 167:return e.updateIndexSignature(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),l(o.parameters,c,e.isParameterDeclaration),r(o.type,c,e.isTypeNode));case 168:return e.updateTypePredicateNodeWithModifier(o,r(o.assertsModifier,c),r(o.parameterName,c),r(o.type,c,e.isTypeNode));case 169:return e.updateTypeReferenceNode(o,r(o.typeName,c,e.isEntityName),l(o.typeArguments,c,e.isTypeNode));case 170:return e.updateFunctionTypeNode(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),r(o.type,c,e.isTypeNode));case 171:return e.updateConstructorTypeNode(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),r(o.type,c,e.isTypeNode));case 172:return e.updateTypeQueryNode(o,r(o.exprName,c,e.isEntityName));case 173:return e.updateTypeLiteralNode(o,l(o.members,c,e.isTypeElement));case 174:return e.updateArrayTypeNode(o,r(o.elementType,c,e.isTypeNode));case 175:return e.updateTupleTypeNode(o,l(o.elementTypes,c,e.isTypeNode));case 176:return e.updateOptionalTypeNode(o,r(o.type,c,e.isTypeNode));case 177:return e.updateRestTypeNode(o,r(o.type,c,e.isTypeNode));case 178:return e.updateUnionTypeNode(o,l(o.types,c,e.isTypeNode));case 179:return e.updateIntersectionTypeNode(o,l(o.types,c,e.isTypeNode));case 180:return e.updateConditionalTypeNode(o,r(o.checkType,c,e.isTypeNode),r(o.extendsType,c,e.isTypeNode),r(o.trueType,c,e.isTypeNode),r(o.falseType,c,e.isTypeNode));case 181:return e.updateInferTypeNode(o,r(o.typeParameter,c,e.isTypeParameterDeclaration));case 188:return e.updateImportTypeNode(o,r(o.argument,c,e.isTypeNode),r(o.qualifier,c,e.isEntityName),n(o.typeArguments,c,e.isTypeNode),o.isTypeOf);case 182:return e.updateParenthesizedType(o,r(o.type,c,e.isTypeNode));case 184:return e.updateTypeOperatorNode(o,r(o.type,c,e.isTypeNode));case 185:return e.updateIndexedAccessTypeNode(o,r(o.objectType,c,e.isTypeNode),r(o.indexType,c,e.isTypeNode));case 186:return e.updateMappedTypeNode(o,r(o.readonlyToken,_,e.isToken),r(o.typeParameter,c,e.isTypeParameterDeclaration),r(o.questionToken,_,e.isToken),r(o.type,c,e.isTypeNode));case 187:return e.updateLiteralTypeNode(o,r(o.literal,c,e.isExpression));case 189:return e.updateObjectBindingPattern(o,l(o.elements,c,e.isBindingElement));case 190:return e.updateArrayBindingPattern(o,l(o.elements,c,e.isArrayBindingElement));case 191:return e.updateBindingElement(o,r(o.dotDotDotToken,_,e.isToken),r(o.propertyName,c,e.isPropertyName),r(o.name,c,e.isBindingName),r(o.initializer,c,e.isExpression));case 192:return e.updateArrayLiteral(o,l(o.elements,c,e.isExpression));case 193:return e.updateObjectLiteral(o,l(o.properties,c,e.isObjectLiteralElementLike));case 194:return 32&o.flags?e.updatePropertyAccessChain(o,r(o.expression,c,e.isExpression),r(o.questionDotToken,_,e.isToken),r(o.name,c,e.isIdentifier)):e.updatePropertyAccess(o,r(o.expression,c,e.isExpression),r(o.name,c,e.isIdentifierOrPrivateIdentifier));case 195:return 32&o.flags?e.updateElementAccessChain(o,r(o.expression,c,e.isExpression),r(o.questionDotToken,_,e.isToken),r(o.argumentExpression,c,e.isExpression)):e.updateElementAccess(o,r(o.expression,c,e.isExpression),r(o.argumentExpression,c,e.isExpression));case 196:return 32&o.flags?e.updateCallChain(o,r(o.expression,c,e.isExpression),r(o.questionDotToken,_,e.isToken),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression)):e.updateCall(o,r(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression));case 197:return e.updateNew(o,r(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression));case 198:return e.updateTaggedTemplate(o,r(o.tag,c,e.isExpression),n(o.typeArguments,c,e.isExpression),r(o.template,c,e.isTemplateLiteral));case 199:return e.updateTypeAssertion(o,r(o.type,c,e.isTypeNode),r(o.expression,c,e.isExpression));case 200:return e.updateParen(o,r(o.expression,c,e.isExpression));case 201:return e.updateFunctionExpression(o,l(o.modifiers,c,e.isModifier),r(o.asteriskToken,_,e.isToken),r(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),r(o.type,c,e.isTypeNode),s(o.body,c,u));case 202:return e.updateArrowFunction(o,l(o.modifiers,c,e.isModifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),r(o.type,c,e.isTypeNode),r(o.equalsGreaterThanToken,_,e.isToken),s(o.body,c,u));case 203:return e.updateDelete(o,r(o.expression,c,e.isExpression));case 204:return e.updateTypeOf(o,r(o.expression,c,e.isExpression));case 205:return e.updateVoid(o,r(o.expression,c,e.isExpression));case 206:return e.updateAwait(o,r(o.expression,c,e.isExpression));case 207:return e.updatePrefix(o,r(o.operand,c,e.isExpression));case 208:return e.updatePostfix(o,r(o.operand,c,e.isExpression));case 209:return e.updateBinary(o,r(o.left,c,e.isExpression),r(o.right,c,e.isExpression),r(o.operatorToken,_,e.isToken));case 210:return e.updateConditional(o,r(o.condition,c,e.isExpression),r(o.questionToken,_,e.isToken),r(o.whenTrue,c,e.isExpression),r(o.colonToken,_,e.isToken),r(o.whenFalse,c,e.isExpression));case 211:return e.updateTemplateExpression(o,r(o.head,c,e.isTemplateHead),l(o.templateSpans,c,e.isTemplateSpan));case 212:return e.updateYield(o,r(o.asteriskToken,_,e.isToken),r(o.expression,c,e.isExpression));case 213:return e.updateSpread(o,r(o.expression,c,e.isExpression));case 214:return e.updateClassExpression(o,l(o.modifiers,c,e.isModifier),r(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isClassElement));case 216:return e.updateExpressionWithTypeArguments(o,l(o.typeArguments,c,e.isTypeNode),r(o.expression,c,e.isExpression));case 217:return e.updateAsExpression(o,r(o.expression,c,e.isExpression),r(o.type,c,e.isTypeNode));case 218:return e.updateNonNullExpression(o,r(o.expression,c,e.isExpression));case 219:return e.updateMetaProperty(o,r(o.name,c,e.isIdentifier));case 221:return e.updateTemplateSpan(o,r(o.expression,c,e.isExpression),r(o.literal,c,e.isTemplateMiddleOrTemplateTail));case 223:return e.updateBlock(o,l(o.statements,c,e.isStatement));case 225:return e.updateVariableStatement(o,l(o.modifiers,c,e.isModifier),r(o.declarationList,c,e.isVariableDeclarationList));case 226:return e.updateExpressionStatement(o,r(o.expression,c,e.isExpression));case 227:return e.updateIf(o,r(o.expression,c,e.isExpression),r(o.thenStatement,c,e.isStatement,e.liftToBlock),r(o.elseStatement,c,e.isStatement,e.liftToBlock));case 228:return e.updateDo(o,r(o.statement,c,e.isStatement,e.liftToBlock),r(o.expression,c,e.isExpression));case 229:return e.updateWhile(o,r(o.expression,c,e.isExpression),r(o.statement,c,e.isStatement,e.liftToBlock));case 230:return e.updateFor(o,r(o.initializer,c,e.isForInitializer),r(o.condition,c,e.isExpression),r(o.incrementor,c,e.isExpression),r(o.statement,c,e.isStatement,e.liftToBlock));case 231:return e.updateForIn(o,r(o.initializer,c,e.isForInitializer),r(o.expression,c,e.isExpression),r(o.statement,c,e.isStatement,e.liftToBlock));case 232:return e.updateForOf(o,r(o.awaitModifier,_,e.isToken),r(o.initializer,c,e.isForInitializer),r(o.expression,c,e.isExpression),r(o.statement,c,e.isStatement,e.liftToBlock));case 233:return e.updateContinue(o,r(o.label,c,e.isIdentifier));case 234:return e.updateBreak(o,r(o.label,c,e.isIdentifier));case 235:return e.updateReturn(o,r(o.expression,c,e.isExpression));case 236:return e.updateWith(o,r(o.expression,c,e.isExpression),r(o.statement,c,e.isStatement,e.liftToBlock));case 237:return e.updateSwitch(o,r(o.expression,c,e.isExpression),r(o.caseBlock,c,e.isCaseBlock));case 238:return e.updateLabel(o,r(o.label,c,e.isIdentifier),r(o.statement,c,e.isStatement,e.liftToBlock));case 239:return e.updateThrow(o,r(o.expression,c,e.isExpression));case 240:return e.updateTry(o,r(o.tryBlock,c,e.isBlock),r(o.catchClause,c,e.isCatchClause),r(o.finallyBlock,c,e.isBlock));case 242:return e.updateTypeScriptVariableDeclaration(o,r(o.name,c,e.isBindingName),r(o.exclamationToken,_,e.isToken),r(o.type,c,e.isTypeNode),r(o.initializer,c,e.isExpression));case 243:return e.updateVariableDeclarationList(o,l(o.declarations,c,e.isVariableDeclaration));case 244:return e.updateFunctionDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.asteriskToken,_,e.isToken),r(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),r(o.type,c,e.isTypeNode),s(o.body,c,u));case 245:return e.updateClassDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isClassElement));case 246:return e.updateInterfaceDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isTypeElement));case 247:return e.updateTypeAliasDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),r(o.type,c,e.isTypeNode));case 248:return e.updateEnumDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.name,c,e.isIdentifier),l(o.members,c,e.isEnumMember));case 249:return e.updateModuleDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.name,c,e.isIdentifier),r(o.body,c,e.isModuleBody));case 250:return e.updateModuleBlock(o,l(o.statements,c,e.isStatement));case 251:return e.updateCaseBlock(o,l(o.clauses,c,e.isCaseOrDefaultClause));case 252:return e.updateNamespaceExportDeclaration(o,r(o.name,c,e.isIdentifier));case 253:return e.updateImportEqualsDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.name,c,e.isIdentifier),r(o.moduleReference,c,e.isModuleReference));case 254:return e.updateImportDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.importClause,c,e.isImportClause),r(o.moduleSpecifier,c,e.isExpression));case 255:return e.updateImportClause(o,r(o.name,c,e.isIdentifier),r(o.namedBindings,c,e.isNamedImportBindings),o.isTypeOnly);case 256:return e.updateNamespaceImport(o,r(o.name,c,e.isIdentifier));case 262:return e.updateNamespaceExport(o,r(o.name,c,e.isIdentifier));case 257:return e.updateNamedImports(o,l(o.elements,c,e.isImportSpecifier));case 258:return e.updateImportSpecifier(o,r(o.propertyName,c,e.isIdentifier),r(o.name,c,e.isIdentifier));case 259:return e.updateExportAssignment(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.expression,c,e.isExpression));case 260:return e.updateExportDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),r(o.exportClause,c,e.isNamedExportBindings),r(o.moduleSpecifier,c,e.isExpression),o.isTypeOnly);case 261:return e.updateNamedExports(o,l(o.elements,c,e.isExportSpecifier));case 263:return e.updateExportSpecifier(o,r(o.propertyName,c,e.isIdentifier),r(o.name,c,e.isIdentifier));case 265:return e.updateExternalModuleReference(o,r(o.expression,c,e.isExpression));case 266:return e.updateJsxElement(o,r(o.openingElement,c,e.isJsxOpeningElement),l(o.children,c,e.isJsxChild),r(o.closingElement,c,e.isJsxClosingElement));case 267:return e.updateJsxSelfClosingElement(o,r(o.tagName,c,e.isJsxTagNameExpression),l(o.typeArguments,c,e.isTypeNode),r(o.attributes,c,e.isJsxAttributes));case 268:return e.updateJsxOpeningElement(o,r(o.tagName,c,e.isJsxTagNameExpression),l(o.typeArguments,c,e.isTypeNode),r(o.attributes,c,e.isJsxAttributes));case 269:return e.updateJsxClosingElement(o,r(o.tagName,c,e.isJsxTagNameExpression));case 270:return e.updateJsxFragment(o,r(o.openingFragment,c,e.isJsxOpeningFragment),l(o.children,c,e.isJsxChild),r(o.closingFragment,c,e.isJsxClosingFragment));case 273:return e.updateJsxAttribute(o,r(o.name,c,e.isIdentifier),r(o.initializer,c,e.isStringLiteralOrJsxExpression));case 274:return e.updateJsxAttributes(o,l(o.properties,c,e.isJsxAttributeLike));case 275:return e.updateJsxSpreadAttribute(o,r(o.expression,c,e.isExpression));case 276:return e.updateJsxExpression(o,r(o.expression,c,e.isExpression));case 277:return e.updateCaseClause(o,r(o.expression,c,e.isExpression),l(o.statements,c,e.isStatement));case 278:return e.updateDefaultClause(o,l(o.statements,c,e.isStatement));case 279:return e.updateHeritageClause(o,l(o.types,c,e.isExpressionWithTypeArguments));case 280:return e.updateCatchClause(o,r(o.variableDeclaration,c,e.isVariableDeclaration),r(o.block,c,e.isBlock));case 281:return e.updatePropertyAssignment(o,r(o.name,c,e.isPropertyName),r(o.initializer,c,e.isExpression));case 282:return e.updateShorthandPropertyAssignment(o,r(o.name,c,e.isIdentifier),r(o.objectAssignmentInitializer,c,e.isExpression));case 283:return e.updateSpreadAssignment(o,r(o.expression,c,e.isExpression));case 284:return e.updateEnumMember(o,r(o.name,c,e.isPropertyName),r(o.initializer,c,e.isExpression));case 290:return e.updateSourceFileNode(o,i(o.statements,c,u));case 326:return e.updatePartiallyEmittedExpression(o,r(o.expression,c,e.isExpression));case 327:return e.updateCommaList(o,l(o.elements,c,e.isExpression));default:return o}}}}(d||(d={})),function(e){function t(e,t,r){return e?t(r,e):r}function r(e,t,r){return e?t(r,e):r}function n(n,i,a,o){if(void 0===n)return i;var s=o?r:e.reduceLeft,c=o||a,u=n.kind;if(u>0&&u<=152)return i;if(u>=168&&u<=187)return i;var l=i;switch(n.kind){case 222:case 224:case 215:case 241:case 325:break;case 153:l=t(n.left,a,l),l=t(n.right,a,l);break;case 154:l=t(n.expression,a,l);break;case 156:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 157:l=t(n.expression,a,l);break;case 158:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.questionToken,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 159:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 161:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 162:l=s(n.modifiers,c,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 163:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 164:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 189:case 190:l=s(n.elements,c,l);break;case 191:l=t(n.propertyName,a,l),l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 192:l=s(n.elements,c,l);break;case 193:l=s(n.properties,c,l);break;case 194:l=t(n.expression,a,l),l=t(n.name,a,l);break;case 195:l=t(n.expression,a,l),l=t(n.argumentExpression,a,l);break;case 196:case 197:l=t(n.expression,a,l),l=s(n.typeArguments,c,l),l=s(n.arguments,c,l);break;case 198:l=t(n.tag,a,l),l=s(n.typeArguments,c,l),l=t(n.template,a,l);break;case 199:l=t(n.type,a,l),l=t(n.expression,a,l);break;case 201:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 202:l=s(n.modifiers,c,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 200:case 203:case 204:case 205:case 206:case 212:case 213:case 218:l=t(n.expression,a,l);break;case 207:case 208:l=t(n.operand,a,l);break;case 209:l=t(n.left,a,l),l=t(n.right,a,l);break;case 210:l=t(n.condition,a,l),l=t(n.whenTrue,a,l),l=t(n.whenFalse,a,l);break;case 211:l=t(n.head,a,l),l=s(n.templateSpans,c,l);break;case 214:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 216:l=t(n.expression,a,l),l=s(n.typeArguments,c,l);break;case 217:l=t(n.expression,a,l),l=t(n.type,a,l);break;case 221:l=t(n.expression,a,l),l=t(n.literal,a,l);break;case 223:l=s(n.statements,c,l);break;case 225:l=s(n.modifiers,c,l),l=t(n.declarationList,a,l);break;case 226:l=t(n.expression,a,l);break;case 227:l=t(n.expression,a,l),l=t(n.thenStatement,a,l),l=t(n.elseStatement,a,l);break;case 228:l=t(n.statement,a,l),l=t(n.expression,a,l);break;case 229:case 236:l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 230:l=t(n.initializer,a,l),l=t(n.condition,a,l),l=t(n.incrementor,a,l),l=t(n.statement,a,l);break;case 231:case 232:l=t(n.initializer,a,l),l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 235:case 239:l=t(n.expression,a,l);break;case 237:l=t(n.expression,a,l),l=t(n.caseBlock,a,l);break;case 238:l=t(n.label,a,l),l=t(n.statement,a,l);break;case 240:l=t(n.tryBlock,a,l),l=t(n.catchClause,a,l),l=t(n.finallyBlock,a,l);break;case 242:l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 243:l=s(n.declarations,c,l);break;case 244:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 245:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 248:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.members,c,l);break;case 249:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.body,a,l);break;case 250:l=s(n.statements,c,l);break;case 251:l=s(n.clauses,c,l);break;case 253:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.moduleReference,a,l);break;case 254:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.importClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 255:l=t(n.name,a,l),l=t(n.namedBindings,a,l);break;case 256:case 262:l=t(n.name,a,l);break;case 257:case 261:l=s(n.elements,c,l);break;case 258:case 263:l=t(n.propertyName,a,l),l=t(n.name,a,l);break;case 259:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.expression,a,l);break;case 260:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.exportClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 265:l=t(n.expression,a,l);break;case 266:l=t(n.openingElement,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingElement,a,l);break;case 270:l=t(n.openingFragment,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingFragment,a,l);break;case 267:case 268:l=t(n.tagName,a,l),l=s(n.typeArguments,a,l),l=t(n.attributes,a,l);break;case 274:l=s(n.properties,c,l);break;case 269:l=t(n.tagName,a,l);break;case 273:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 275:case 276:l=t(n.expression,a,l);break;case 277:l=t(n.expression,a,l);case 278:l=s(n.statements,c,l);break;case 279:l=s(n.types,c,l);break;case 280:l=t(n.variableDeclaration,a,l),l=t(n.block,a,l);break;case 281:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 282:l=t(n.name,a,l),l=t(n.objectAssignmentInitializer,a,l);break;case 283:l=t(n.expression,a,l);break;case 284:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 290:l=s(n.statements,c,l);break;case 326:l=t(n.expression,a,l);break;case 327:l=s(n.elements,c,l)}return l}function i(e,t,r){for(var n=r;n<e.length&&t(e[n]);)n++;return n}function a(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var r=function(t){if(e.hasModifier(t,2)||e.isTypeNode(t)&&216!==t.kind)return 0;return n(t,0,s,c)}(t);return e.computeTransformFlagsForNode(t,r)}function s(e,t){return e|a(t)}function c(e,t){return e|function(e){if(void 0===e)return 0;for(var t=0,r=0,n=0,i=e;n<i.length;n++){var o=i[n];t|=a(o),r|=-536870913&o.transformFlags}return e.transformFlags=536870912|r,t}(t)}e.reduceEachChild=n,e.mergeLexicalEnvironment=function(t,r){if(!e.some(r))return t;var n=i(t,e.isPrologueDirective,0),a=i(t,e.isHoistedFunction,n),s=i(t,e.isHoistedVariableStatement,a),c=i(r,e.isPrologueDirective,0),u=i(r,e.isHoistedFunction,c),l=i(r,e.isHoistedVariableStatement,u),_=i(r,e.isCustomPrologue,l);e.Debug.assert(_===r.length,"Expected declarations to be valid standard or custom prologues");var d=e.isNodeArray(t)?t.slice():t;if(_>l&&d.splice.apply(d,o([s,0],r.slice(l,_))),l>u&&d.splice.apply(d,o([a,0],r.slice(u,l))),u>c&&d.splice.apply(d,o([n,0],r.slice(c,u))),c>0)if(0===n)d.splice.apply(d,o([0,0],r.slice(0,c)));else{for(var p=e.createMap(),f=0;f<n;f++){var g=t[f];p.set(g.expression.text,!0)}for(f=c-1;f>=0;f--){var m=r[f];p.has(m.expression.text)||d.unshift(m)}}return e.isNodeArray(t)?e.setTextRange(e.createNodeArray(d,t.hasTrailingComma),t):t},e.liftToBlock=function(t){return e.Debug.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)},e.aggregateTransformFlags=function(e){return a(e),e}}(d||(d={})),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=e.createMap(),m=[],y="",v=0,h=0,b=0,x=0,D=0,S=0,C=!1,T=0,k=0,E=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>=T,"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,C=o&&o.line===f.generatedLine?f.generatedCharacter-o.character:f.generatedCharacter;R(S,0===D?C+r:C,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=e.createMap());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>=T,"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||T!==e||k!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&E===e&&(N>t||N===t&&A>r)}(n,i,a))&&(B(),T=t,k=r,w=!1,I=!1,P=!0),void 0!==n&&void 0!==i&&void 0!==a&&(E=n,N=i,A=a,w=!0,void 0!==o&&(F=o,I=!0)),d()}function B(){if(P&&(!C||v!==T||h!==k||b!==E||x!==N||D!==A||S!==F)){if(_(),v<T)do{y+=";",v++,h=0}while(v<T);else e.Debug.assertEqual(v,T,"generatedLine cannot backtrack"),C&&(y+=",");y+=s(k-h),h=k,w&&(y+=s(E-b),b=E,y+=s(N-x),x=N,y+=s(A-D),D=A,I&&(y+=s(F-S),S=F)),C=!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(r){}},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=e.createMapFromEntries(h.map((function(e,r){return[t.getCanonicalFileName(e),r]})));return{getSourcePosition:function(t){var r=C();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 C(){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}}(d||(d={})),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){return function(r){return 290===r.kind?t(r):function(r){return e.createBundle(e.map(r.sourceFiles,t),r.prepends)}(r)}},e.getExportNeedsImportStarHelper=function(t){return!!e.getNamespaceDeclarationNode(t)},e.getImportNeedsImportStarHelper=n,e.getImportNeedsImportDefaultHelper=i,e.collectExternalModuleInfo=function(r,s,c){for(var u,l,_=[],d=e.createMultiMap(),p=[],f=e.createMap(),g=!1,m=!1,y=!1,v=!1,h=0,b=r.statements;h<b.length;h++){var x=b[h];switch(x.kind){case 254:_.push(x),!y&&n(x)&&(y=!0),!v&&i(x)&&(v=!0);break;case 253:265===x.moduleReference.kind&&_.push(x);break;case 260:if(x.moduleSpecifier)x.exportClause?_.push(x):(_.push(x),m=!0);else for(var D=0,S=e.cast(x.exportClause,e.isNamedExports).elements;D<S.length;D++){var C=S[D];if(!f.get(e.idText(C.name))){var T=C.propertyName||C.name;d.add(e.idText(T),C),(N=s.getReferencedImportDeclaration(T)||s.getReferencedValueDeclaration(T))&&o(p,t(N),C.name),f.set(e.idText(C.name),!0),u=e.append(u,C.name)}}break;case 259:x.isExportEquals&&!l&&(l=x);break;case 225:if(e.hasModifier(x,1))for(var k=0,E=x.declarationList.declarations;k<E.length;k++){var N;u=a(N=E[k],f,u)}break;case 244:if(e.hasModifier(x,1))if(e.hasModifier(x,512))g||(o(p,t(x),e.getDeclarationName(x)),g=!0);else{T=x.name;f.get(e.idText(T))||(o(p,t(x),T),f.set(e.idText(T),!0),u=e.append(u,T))}break;case 245:if(e.hasModifier(x,1))if(e.hasModifier(x,512))g||(o(p,t(x),e.getDeclarationName(x)),g=!0);else(T=x.name)&&!f.get(e.idText(T))&&(o(p,t(x),T),f.set(e.idText(T),!0),u=e.append(u,T))}}var A=e.createExternalHelpersImportDeclarationIfNeeded(r,c,m,y,v);return A&&_.unshift(A),{externalImports:_,exportSpecifiers:d,exportEquals:l,hasExportStarsToExportValues:m,exportedBindings:p,exportedNames:u,externalHelpersImportDeclaration:A}},e.isSimpleCopiableExpression=s,e.isSimpleInlineableExpression=function(t){return!e.isIdentifier(t)&&s(t)||e.isWellKnownSymbolSyntactically(t)},e.isCompoundAssignment=function(e){return e>=63&&e<=74},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 74:return 52}},e.addPrologueDirectivesAndInitialSuperCall=function(t,r,n){if(t.body){var i=t.body.statements,a=e.addPrologue(r,i,!1,n);if(a===i.length)return a;var o=e.findIndex(i,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}),a);if(o>-1){for(var s=a;s<=o;s++)r.push(e.visitNode(i[s],n,e.isStatement));return o+1}return a}return 0},e.helperString=function(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]}},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 159===e.kind&&void 0!==e.initializer}}(d||(d={})),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,o,s,c){if(!c){var u=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(r),t.visitor,e.isExpression);u?o=o?function(t,r,n,i){return r=a(t,r,!0,i),e.createConditional(e.createTypeCheck(r,"undefined"),n,r)}(t,o,u,s):u:o||(o=e.createVoidZero())}var l=e.getTargetOfBindingOrAssignmentElement(r);e.isObjectBindingOrAssignmentPattern(l)?function(t,r,o,s,c){var u,l,_=e.getElementsOfBindingOrAssignmentPattern(o),p=_.length;if(1!==p){var f=!e.isDeclarationBindingElement(r)||0!==p;s=a(t,s,f,c)}for(var g=0;g<p;g++){var m=_[g];if(e.getRestIndicatorOfBindingOrAssignmentElement(m)){if(g===p-1){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);v=d(t.context,s,_,l,o);n(t,m,v,m)}}else{var y=e.getPropertyNameOfBindingOrAssignmentElement(m);if(!(t.level>=1)||24576&m.transformFlags||24576&e.getTargetOfBindingOrAssignmentElement(m).transformFlags||e.isComputedPropertyName(y)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var v=i(t,s,y);e.isComputedPropertyName(y)&&(l=e.append(l,v.argumentExpression)),n(t,m,v,m)}else u=e.append(u,e.visitNode(m,t.visitor))}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o)}(t,r,l,o,s):e.isArrayBindingOrAssignmentPattern(l)?function(t,r,i,o,s){var c,u,l=e.getElementsOfBindingOrAssignmentPattern(i),_=l.length;if(t.level<1&&t.downlevelIteration)o=a(t,e.createReadHelper(t.context,o,_>0&&e.getRestIndicatorOfBindingOrAssignmentElement(l[_-1])?void 0:_,s),!1,s);else if(1!==_&&(t.level<1||0===_)||e.every(l,e.isOmittedExpression)){var d=!e.isDeclarationBindingElement(r)||0!==_;o=a(t,o,d,s)}for(var p=0;p<_;p++){var f=l[p];if(t.level>=1)if(16384&f.transformFlags){var g=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(g),u=e.append(u,[g,f]),c=e.append(c,t.createArrayBindingOrAssignmentElement(g))}else c=e.append(c,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===_-1){m=e.createArraySlice(o,p);n(t,f,m,f)}}else{var m=e.createElementAccess(o,p);n(t,f,m,f)}}}c&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(c),o,s,i);if(u)for(var y=0,v=u;y<v.length;y++){var h=v[y],b=h[0];f=h[1];n(t,f,b,f)}}(t,r,l,o,s):t.emitBindingOrAssignment(l,o,s,r)}function i(t,r,n){if(e.isComputedPropertyName(n)){var i=a(t,e.visitNode(n.expression,t.visitor),!1,n);return e.createElementAccess(r,i)}if(e.isStringOrNumericLiteralLike(n))return(i=e.getSynthesizedClone(n)).text=i.text,e.createElementAccess(r,i);var o=e.createIdentifier(e.idText(n));return e.createPropertyAccess(r,o)}function a(t,r,n,i){if(e.isIdentifier(r)&&n)return r;var a=e.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(a),t.emitExpression(e.setTextRange(e.createAssignment(a,r),i))):t.emitBindingOrAssignment(a,r,i,void 0),a}function o(t){return e.Debug.assertEachNode(t,e.isArrayBindingElement),e.createArrayBindingPattern(t)}function s(t){return e.createArrayLiteral(e.map(t,e.convertToArrayAssignmentElement))}function c(t){return e.Debug.assertEachNode(t,e.isBindingElement),e.createObjectBindingPattern(t)}function u(t){return e.createObjectLiteral(e.map(t,e.convertToObjectAssignmentElement))}function l(t){return e.createBindingElement(void 0,void 0,t)}function _(e){return e}function d(t,r,n,i,a){t.requestEmitHelper(e.restHelper);for(var o=[],s=0,c=0;c<n.length-1;c++){var u=e.getPropertyNameOfBindingOrAssignmentElement(n[c]);if(u)if(e.isComputedPropertyName(u)){var l=i[s];s++,o.push(e.createConditional(e.createTypeCheck(l,"symbol"),l,e.createAdd(l,e.createLiteral(""))))}else o.push(e.createLiteral(u))}return e.createCall(e.getUnscopedHelperName("__rest"),void 0,[r,e.setTextRange(e.createArrayLiteral(o),a)])}!function(e){e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest"}(e.FlattenLevel||(e.FlattenLevel={})),e.flattenDestructuringAssignment=function(i,o,c,l,d,p){var f,g,m=i;if(e.isDestructuringAssignment(i))for(f=i.right;e.isEmptyArrayLiteral(i.left)||e.isEmptyObjectLiteral(i.left);){if(!e.isDestructuringAssignment(f))return e.visitNode(f,o,e.isExpression);m=i=f,f=i.right}var y={context:c,level:l,downlevelIteration:!!c.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:v,emitBindingOrAssignment:function(t,r,n,i){e.Debug.assertNode(t,p?e.isIdentifier:e.isExpression);var a=p?p(t,r,n):e.setTextRange(e.createAssignment(e.visitNode(t,o,e.isExpression),r),n);a.original=i,v(a)},createArrayBindingOrAssignmentPattern:s,createObjectBindingOrAssignmentPattern:u,createArrayBindingOrAssignmentElement:_,visitor:o};if(f&&(f=e.visitNode(f,o,e.isExpression),e.isIdentifier(f)&&t(i,f.escapedText)||r(i)?f=a(y,f,!1,m):d?f=a(y,f,!0,m):e.nodeIsSynthesized(i)&&(m=f)),n(y,i,f,m,e.isDestructuringAssignment(i)),f&&d){if(!e.some(g))return f;g.push(f)}return e.aggregateTransformFlags(e.inlineExpressions(g))||e.createOmittedExpression();function v(t){e.aggregateTransformFlags(t),g=e.append(g,t)}},e.flattenDestructuringBinding=function(i,s,u,_,d,p,f){var g;void 0===p&&(p=!1);var m=[],y=[],v={context:u,level:_,downlevelIteration:!!u.getCompilerOptions().downlevelIteration,hoistTempVariables:p,emitExpression:function(t){g=e.append(g,t)},emitBindingOrAssignment:P,createArrayBindingOrAssignmentPattern:o,createObjectBindingOrAssignmentPattern:c,createArrayBindingOrAssignmentElement:l,visitor:s};if(e.isVariableDeclaration(i)){var h=e.getInitializerOfBindingOrAssignmentElement(i);h&&(e.isIdentifier(h)&&t(i,h.escapedText)||r(i))&&(h=a(v,h,!1,h),i=e.updateVariableDeclaration(i,i.name,i.type,h))}if(n(v,i,d,i,f),g){var b=e.createTempVariable(void 0);if(p){var x=e.inlineExpressions(g);g=void 0,P(b,x,void 0,void 0)}else{u.hoistVariableDeclaration(b);var D=e.last(m);D.pendingExpressions=e.append(D.pendingExpressions,e.createAssignment(b,D.value)),e.addRange(D.pendingExpressions,g),D.value=b}}for(var S=0,C=m;S<C.length;S++){var T=C[S],k=T.pendingExpressions,E=T.name,N=(x=T.value,T.location),A=T.original,F=e.createVariableDeclaration(E,void 0,k?e.inlineExpressions(e.append(k,x)):x);F.original=A,e.setTextRange(F,N),e.aggregateTransformFlags(F),y.push(F)}return y;function P(t,r,n,i){e.Debug.assertNode(t,e.isBindingName),g&&(r=e.inlineExpressions(e.append(g,r)),g=void 0),m.push({pendingExpressions:g,name:t,value:r,location:n,original:i})}},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 };'}}(d||(d={})),function(e){var t;function r(t){return t.templateFlags?e.createIdentifier("undefined"):e.createLiteral(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.createLiteral(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 a;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=function(t,r,n){return t.requestEmitHelper(e.templateObjectHelper),e.createCall(e.getUnscopedHelperName("__makeTemplateObject"),void 0,[r,n])}(i,e.createArrayLiteral(d),e.createArrayLiteral(p));if(e.isExternalModule(s)){var h=e.createUniqueName("templateObject");c(h),_[0]=e.createLogicalOr(h,e.createAssignment(h,v))}else _[0]=v;return e.createCall(l,void 0,_)},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 };'}}(d||(d={})),function(e){var t,r,n=!1;function i(t,r,n,i,a,o){var s=[];return s.push(e.createArrayLiteral(r,!0)),s.push(n),i&&(s.push(i),a&&s.push(a)),t.requestEmitHelper(e.decorateHelper),e.setTextRange(e.createCall(e.getUnscopedHelperName("__decorate"),void 0,s),o)}function a(t,r,n){return t.requestEmitHelper(e.metadataHelper),e.createCall(e.getUnscopedHelperName("__metadata"),void 0,[e.createLiteral(r),n])}function o(t,r,n,i){return t.requestEmitHelper(e.paramHelper),e.setTextRange(e.createCall(e.getUnscopedHelperName("__param"),void 0,[e.createLiteral(n),r]),i)}!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,s,c,u,l,_,d,p,f,g,m=t.startLexicalEnvironment,y=t.resumeLexicalEnvironment,v=t.endLexicalEnvironment,h=t.hoistVariableDeclaration,b=t.getEmitResolver(),x=t.getCompilerOptions(),D=e.getStrictOptionValue(x,"strictNullChecks"),S=e.getEmitScriptTarget(x),C=e.getEmitModuleKind(x),T=t.onEmitNode,k=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){var a=g,o=r;e.isSourceFile(n)&&(r=n);2&p&&function(t){return 249===e.getOriginalNode(t).kind}(n)&&(g|=2);8&p&&function(t){return 248===e.getOriginalNode(t).kind}(n)&&(g|=8);T(t,n,i),g=a,r=o},t.onSubstituteNode=function(t,r){if(r=k(t,r),1===t)return function(t){switch(t.kind){case 75:return function(t){return function(t){if(1&p&&33554432&b.getNodeCheckFlags(t)){var r=b.getReferencedValueDeclaration(t);if(r){var n=f[r.id];if(n){var i=e.getSynthesizedClone(n);return e.setSourceMapRange(i,t),e.setCommentRange(i,t),i}}}return}(t)||Je(t)||t}(t);case 194:case 195:return function(e){return ze(e)}(t)}return t}(r);if(e.isShorthandPropertyAssignment(r))return function(t){if(2&p){var r=t.name,n=Je(r);if(n){if(t.objectAssignmentInitializer){var i=e.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(r,i),t)}return e.setTextRange(e.createPropertyAssignment(r,n),t)}}return t}(r);return r},t.enableSubstitution(194),t.enableSubstitution(195),function(t){if(291===t.kind)return function(t){return e.createBundle(t.sourceFiles.map(E),e.mapDefined(t.prepends,(function(t){return 293===t.kind?e.createUnparsedSourceFile(t,"js"):t})))}(t);return E(t)};function E(n){if(n.isDeclarationFile)return n;r=n;var i=N(n,j);return e.addEmitHelpers(i,t.readEmitHelpers()),r=void 0,i}function N(t,r){var n=u,i=l,a=_,o=d;!function(t){switch(t.kind){case 290:case 251:case 250:case 223:u=t,l=void 0,_=void 0;break;case 245:case 244:if(e.hasModifier(t,2))break;t.name?xe(t):e.Debug.assert(245===t.kind||e.hasModifier(t,512)),e.isClassDeclaration(t)&&(l=t)}}(t);var s=r(t);return u!==n&&(_=a),u=n,l=i,d=o,s}function A(e){return N(e,F)}function F(e){return 1&e.transformFlags?B(e):e}function P(e){return N(e,w)}function w(r){switch(r.kind){case 254:case 253:case 259:case 260:return function(r){if(e.getParseTreeNode(r)!==r)return 1&r.transformFlags?e.visitEachChild(r,A,t):r;switch(r.kind){case 254:return function(t){if(!t.importClause)return t;if(t.importClause.isTypeOnly)return;var r=e.visitNode(t.importClause,Te,e.isImportClause);return r||1===x.importsNotUsedAsValues||2===x.importsNotUsedAsValues?e.updateImportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}(r);case 253:return Fe(r);case 259:return function(r){return b.isValueAliasDeclaration(r)?e.visitEachChild(r,A,t):void 0}(r);case 260:return function(t){if(t.isTypeOnly)return;if(!t.exportClause||e.isNamespaceExport(t.exportClause))return t;if(!b.isValueAliasDeclaration(t))return;var r=e.visitNode(t.exportClause,Ne,e.isNamedExportBindings);return r?e.updateExportDeclaration(t,void 0,void 0,r,t.moduleSpecifier,t.isTypeOnly):void 0}(r);default:e.Debug.fail("Unhandled ellided statement")}}(r);default:return F(r)}}function I(e){return N(e,O)}function O(t){if(260!==t.kind&&254!==t.kind&&255!==t.kind&&(253!==t.kind||265!==t.moduleReference.kind))return 1&t.transformFlags||e.hasModifier(t,1)?B(t):t}function M(e){return N(e,L)}function L(t){switch(t.kind){case 162:return ge(t);case 159:return fe(t);case 167:case 163:case 164:case 161:return F(t);case 222:return t;default:return e.Debug.failBadSyntaxKind(t)}}function R(t){if(!(2270&e.modifierToFlag(t.kind))&&(!s||89!==t.kind))return t}function B(n){if(e.isStatement(n)&&e.hasModifier(n,2))return e.createNotEmittedStatement(n);switch(n.kind){case 89:case 84:return s?void 0:n;case 119:case 117:case 118:case 122:case 81:case 130:case 138:case 174:case 175:case 176:case 177:case 173:case 168:case 155:case 125:case 148:case 128:case 143:case 140:case 137:case 110:case 144:case 171:case 170:case 172:case 169:case 178:case 179:case 180:case 182:case 183:case 184:case 185:case 186:case 187:case 167:case 157:case 247:return;case 159:return fe(n);case 252:return;case 162:return ge(n);case 246:return e.createNotEmittedStatement(n);case 245:return function(n){if(!U(n)&&(!s||!e.hasModifier(n,1)))return e.visitEachChild(n,A,t);var a=e.getProperties(n,!0,!0),o=function(t,r){var n=0;e.some(r)&&(n|=1);var i=e.getEffectiveBaseTypeNode(t);i&&100!==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,J);return!1})(t)&&(n|=2);e.childIsDecorated(t)&&(n|=4);Pe(t)?n|=8:!function(t){return we(t)&&e.hasModifier(t,512)}(t)?Ie(t)&&(n|=16):n|=32;S<=1&&7&n&&(n|=128);return n}(n,a);128&o&&t.startLexicalEnvironment();var c=n.name||(5&o?e.getGeneratedNameForNode(n):void 0),u=2&o?function(r,n){var i=e.moveRangePastDecorators(r),a=function(r){if(16777216&b.getNodeCheckFlags(r)){0===(1&p)&&(p|=1,t.enableSubstitution(75),f=[]);var n=e.createUniqueName(r.name&&!e.isGeneratedIdentifier(r.name)?e.idText(r.name):"default");return f[e.getOriginalNodeId(r)]=n,h(n),n}}(r),o=e.getLocalName(r,!1,!0),s=e.visitNodes(r.heritageClauses,A,e.isHeritageClause),c=K(r),u=e.createClassExpression(void 0,n,void 0,s,c);e.aggregateTransformFlags(u),e.setOriginalNode(u,r),e.setTextRange(u,i);var l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,u):u)],1));return e.setOriginalNode(l,r),e.setTextRange(l,i),e.setCommentRange(l,r),l}(n,c):function(t,r,n){var i=128&n?void 0:e.visitNodes(t.modifiers,R,e.isModifier),a=e.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,A,e.isHeritageClause),K(t)),o=e.getEmitFlags(t);1&n&&(o|=32);return e.aggregateTransformFlags(a),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(n,c,o),l=[u];if(Q(l,n,!1),Q(l,n,!0),function(r,n){var a=function(r){var n=function(t){var r=t.decorators,n=W(e.getFirstConstructorWithBody(t));if(!r&&!n)return;return{decorators:r,parameters:n}}(r),a=G(r,r,n);if(!a)return;var o=f&&f[e.getOriginalNodeId(r)],s=e.getLocalName(r,!1,!0),c=i(t,a,s),u=e.createAssignment(s,o?e.createAssignment(o,c):c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastDecorators(r)),u}(n);a&&r.push(e.setOriginalNode(e.createExpressionStatement(a),n))}(l,n),128&o){var _=e.createTokenRange(e.skipTrivia(r.text,n.members.end),19),d=e.getInternalName(n),g=e.createPartiallyEmittedExpression(d);g.end=_.end,e.setEmitFlags(g,1536);var m=e.createReturn(g);m.pos=_.pos,e.setEmitFlags(m,1920),l.push(m),e.insertStatementsAfterStandardPrologue(l,t.endLexicalEnvironment());var y=e.createImmediatelyInvokedArrowFunction(l);e.setEmitFlags(y,33554432);var v=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!1),void 0,y)]));e.setOriginalNode(v,n),e.setCommentRange(v,n),e.setSourceMapRange(v,e.moveRangePastDecorators(n)),e.startOnNewLine(v),l=[v]}8&o?Me(l,n):(128&o||2&o)&&(32&o?l.push(e.createExportDefault(e.getLocalName(n,!1,!0))):16&o&&l.push(e.createExternalModuleExport(e.getLocalName(n,!1,!0))));l.length>1&&(l.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(u,4194304|e.getEmitFlags(u)));return e.singleOrMany(l)}(n);case 214:return function(r){if(!U(r))return e.visitEachChild(r,A,t);var n=e.createClassExpression(void 0,r.name,void 0,e.visitNodes(r.heritageClauses,A,e.isHeritageClause),K(r));return e.aggregateTransformFlags(n),e.setOriginalNode(n,r),e.setTextRange(n,r),n}(n);case 279:return function(r){if(113===r.token)return;return e.visitEachChild(r,A,t)}(n);case 216:return function(t){return e.updateExpressionWithTypeArguments(t,void 0,e.visitNode(t.expression,A,e.isLeftHandSideExpression))}(n);case 161:return function(r){if(!pe(r))return;var n=e.updateMethod(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),r.asteriskToken,de(r),void 0,void 0,e.visitParameterList(r.parameters,A,t),void 0,e.visitFunctionBody(r.body,A,t));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(n);case 163:return function(r){if(!ye(r))return;var n=e.updateGetAccessor(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),de(r),e.visitParameterList(r.parameters,A,t),void 0,e.visitFunctionBody(r.body,A,t)||e.createBlock([]));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(n);case 164:return function(r){if(!ye(r))return;var n=e.updateSetAccessor(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),de(r),e.visitParameterList(r.parameters,A,t),e.visitFunctionBody(r.body,A,t)||e.createBlock([]));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(n);case 244:return function(r){if(!pe(r))return e.createNotEmittedStatement(r);var n=e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,A,t),void 0,e.visitFunctionBody(r.body,A,t)||e.createBlock([]));if(Pe(r)){var i=[n];return Me(i,r),i}return n}(n);case 201:return function(r){if(!pe(r))return e.createOmittedExpression();return e.updateFunctionExpression(r,e.visitNodes(r.modifiers,R,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,A,t),void 0,e.visitFunctionBody(r.body,A,t)||e.createBlock([]))}(n);case 202:return function(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,R,e.isModifier),void 0,e.visitParameterList(r.parameters,A,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,A,t))}(n);case 156:return function(t){if(e.parameterIsThisKeyword(t))return;var r=e.updateParameter(t,void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,A,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,A,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}(n);case 200:return function(n){var i=e.skipOuterExpressions(n.expression,-7);if(e.isAssertionExpression(i)){var a=e.visitNode(n.expression,A,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(a,r))?e.updateParen(n,a):e.createPartiallyEmittedExpression(a,n)}return e.visitEachChild(n,A,t)}(n);case 199:case 217:return function(t){var r=e.visitNode(t.expression,A,e.isExpression);return e.createPartiallyEmittedExpression(r,t)}(n);case 196:return function(t){return e.updateCall(t,e.visitNode(t.expression,A,e.isExpression),void 0,e.visitNodes(t.arguments,A,e.isExpression))}(n);case 197:return function(t){return e.updateNew(t,e.visitNode(t.expression,A,e.isExpression),void 0,e.visitNodes(t.arguments,A,e.isExpression))}(n);case 198:return function(t){return e.updateTaggedTemplate(t,e.visitNode(t.tag,A,e.isExpression),void 0,e.visitNode(t.template,A,e.isExpression))}(n);case 218:return function(t){var r=e.visitNode(t.expression,A,e.isLeftHandSideExpression);return e.createPartiallyEmittedExpression(r,t)}(n);case 248:return function(t){if(!function(t){return!e.isEnumConst(t)||x.preserveConstEnums||x.isolatedModules}(t))return e.createNotEmittedStatement(t);var n=[],i=2,a=Se(n,t);a&&(C===e.ModuleKind.System&&u===r||(i|=512));var o=Be(t),s=je(t),l=e.hasModifier(t,1)?e.getExternalModuleOrNamespaceExportName(c,t,!1,!0):e.getLocalName(t,!1,!0),_=e.createLogicalOr(l,e.createAssignment(l,e.createObjectLiteral()));if(be(t)){var d=e.getLocalName(t,!1,!0);_=e.createAssignment(d,_)}var p=e.createExpressionStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,o)],void 0,function(t,r){var n=c;c=r;var i=[];m();var a=e.map(t.members,he);return e.insertStatementsAfterStandardPrologue(i,v()),e.addRange(i,a),c=n,e.createBlock(e.setTextRange(e.createNodeArray(i),t.members),!0)}(t,s)),void 0,[_]));e.setOriginalNode(p,t),a&&(e.setSyntheticLeadingComments(p,void 0),e.setSyntheticTrailingComments(p,void 0));return e.setTextRange(p,t),e.addEmitFlags(p,i),n.push(p),n.push(e.createEndOfDeclarationMarker(t)),n}(n);case 225:return function(r){if(Pe(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(e.createExpressionStatement(e.inlineExpressions(e.map(n,ve))),r)}return e.visitEachChild(r,A,t)}(n);case 242:return function(t){return e.updateTypeScriptVariableDeclaration(t,e.visitNode(t.name,A,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,A,e.isExpression))}(n);case 249:return Ce(n);case 253:return Fe(n);case 267:return function(t){return e.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,A,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,A,e.isJsxAttributes))}(n);case 268:return function(t){return e.updateJsxOpeningElement(t,e.visitNode(t.tagName,A,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,A,e.isJsxAttributes))}(n);default:return e.visitEachChild(n,A,t)}}function j(r){var n=e.getStrictOptionValue(x,"alwaysStrict")&&!(e.isExternalModule(r)&&C>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return e.updateSourceFileNode(r,e.visitLexicalEnvironment(r.statements,P,t,0,n))}function J(e){return void 0!==e.decorators&&e.decorators.length>0}function z(e){return!!(2048&e.transformFlags)}function U(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,z)||e.some(t.members,z)}function K(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(e.aggregateTransformFlags(e.createProperty(void 0,void 0,s.name,void 0,void 0,void 0)),s))}return e.addRange(r,e.visitNodes(t.members,M,e.isClassElement)),e.setTextRange(e.createNodeArray(r),t.members)}function V(t,r){return e.filter(t.members,r?function(e){return q(e,!0,t)}:function(e){return q(e,!1,t)})}function q(t,r,n){return e.nodeOrChildIsDecorated(t,n)&&r===e.hasModifier(t,32)}function W(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 H(t,r){switch(r.kind){case 163:case 164: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=W(o);if(!c&&!u)return;return{decorators:c,parameters:u}}(t,r);case 161:return function(e){if(!e.body)return;var t=e.decorators,r=W(e);if(!t&&!r)return;return{decorators:t,parameters:r}}(r);case 159:return function(e){var t=e.decorators;if(!t)return;return{decorators:t}}(r);default:return}}function G(r,i,o){if(o){var s=[];return e.addRange(s,e.map(o.decorators,Y)),e.addRange(s,e.flatMap(o.parameters,Z)),function(r,i,o){n?function(r,n,i){if(x.emitDecoratorMetadata){var o=void 0;$(r)&&(o||(o=[])).push(e.createPropertyAssignment("type",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(38),re(r)))),te(r)&&(o||(o=[])).push(e.createPropertyAssignment("paramTypes",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(38),ne(r,n)))),ee(r)&&(o||(o=[])).push(e.createPropertyAssignment("returnType",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(38),ie(r)))),o&&i.push(a(t,"design:typeinfo",e.createObjectLiteral(o,!0)))}}(r,i,o):function(e,r,n){x.emitDecoratorMetadata&&($(e)&&n.push(a(t,"design:type",re(e))),te(e)&&n.push(a(t,"design:paramtypes",ne(e,r))),ee(e)&&n.push(a(t,"design:returntype",ie(e))))}(r,i,o)}(r,i,s),s}}function Q(t,r,n){e.addRange(t,e.map(function(e,t){for(var r,n=V(e,t),i=0,a=n;i<a.length;i++){var o=a[i],s=X(e,o);s&&(r?r.push(s):r=[s])}return r}(r,n),Oe))}function X(r,n){var a=G(n,r,H(r,n));if(a){var o=function(t,r){return e.hasModifier(r,32)?e.getDeclarationName(t):function(t){return e.createPropertyAccess(e.getDeclarationName(t),"prototype")}(t)}(r,n),s=_e(n,!0),c=S>0?159===n.kind?e.createVoidZero():e.createNull():void 0,u=i(t,a,o,s,c,e.moveRangePastDecorators(n));return e.setEmitFlags(u,1536),u}}function Y(t){return e.visitNode(t.expression,A,e.isExpression)}function Z(r,n){var i;if(r){i=[];for(var a=0,s=r;a<s.length;a++){var c=s[a],u=o(t,Y(c),n,c.expression);e.setEmitFlags(u,1536),i.push(u)}}return i}function $(e){var t=e.kind;return 161===t||163===t||164===t||159===t}function ee(e){return 161===e.kind}function te(t){switch(t.kind){case 245:case 214:return void 0!==e.getFirstConstructorWithBody(t);case 161:case 163:case 164:return!0}return!1}function re(t){switch(t.kind){case 159:case 156:return ae(t.type);case 164:case 163:return ae(function(t){var r=b.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)}(t));case 245:case 214:case 161:return e.createIdentifier("Function");default:return e.createVoidZero()}}function ne(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&&163===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(ae(e.getRestParameterElementType(c.type))):i.push(re(c)))}return e.createArrayLiteral(i)}function ie(t){return e.isFunctionLike(t)&&t.type?ae(t.type):e.isAsyncFunction(t)?e.createIdentifier("Promise"):e.createVoidZero()}function ae(t){if(void 0===t)return e.createIdentifier("Object");switch(t.kind){case 110:case 146:case 100:case 137:return e.createVoidZero();case 182:return ae(t.type);case 170:case 171:return e.createIdentifier("Function");case 174:case 175:return e.createIdentifier("Array");case 168:case 128:return e.createIdentifier("Boolean");case 143:return e.createIdentifier("String");case 141:return e.createIdentifier("Object");case 187:switch(t.literal.kind){case 10:return e.createIdentifier("String");case 207:case 8:return e.createIdentifier("Number");case 9:return le();case 106:case 91:return e.createIdentifier("Boolean");default:return e.Debug.failBadSyntaxKind(t.literal)}case 140:return e.createIdentifier("Number");case 151:return le();case 144:return S<2?ue():e.createIdentifier("Symbol");case 169:return function(t){var r=b.getTypeReferenceSerializationKind(t.typeName,l||u);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 e.createIdentifier("Object");var n=function t(r){if(75===r.kind){var n=ce(r);return se(n,n)}if(75===r.left.kind)return se(ce(r.left),ce(r));var i=t(r.left),a=e.createTempVariable(h);return e.createLogicalAnd(e.createLogicalAnd(i.left,e.createStrictInequality(e.createAssignment(a,i.right),e.createVoidZero())),e.createPropertyAccess(a,r.right))}(t.typeName),i=e.createTempVariable(h);return e.createConditional(e.createTypeCheck(e.createAssignment(i,n),"function"),i,e.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return ce(t.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return e.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return le();case e.TypeReferenceSerializationKind.BooleanType:return e.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return e.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return e.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return e.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return S<2?ue():e.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return e.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return e.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return e.createIdentifier("Object");default:return e.Debug.assertNever(r)}}(t);case 179:case 178:return oe(t.types);case 180:return oe([t.trueType,t.falseType]);case 184:if(138===t.operator)return ae(t.type);break;case 172:case 185:case 186:case 173:case 125:case 148:case 183:case 188:break;case 295:case 296:case 300:case 301:case 302:break;case 297:case 298:case 299:return ae(t.type);default:return e.Debug.failBadSyntaxKind(t)}return e.createIdentifier("Object")}function oe(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];182===a.kind;)a=a.type;if(137!==a.kind&&(D||100!==a.kind&&146!==a.kind)){var o=ae(a);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return e.createIdentifier("Object")}else r=o}}return r||e.createVoidZero()}function se(t,r){return e.createLogicalAnd(e.createStrictInequality(e.createTypeOf(t),e.createLiteral("undefined")),r)}function ce(t){switch(t.kind){case 75:var r=e.getMutableClone(t);return r.flags&=-9,r.original=void 0,r.parent=e.getParseTreeNode(u),r;case 153:return function(t){return e.createPropertyAccess(ce(t.left),t.right)}(t)}}function ue(){return e.createConditional(e.createTypeCheck(e.createIdentifier("Symbol"),"function"),e.createIdentifier("Symbol"),e.createIdentifier("Object"))}function le(){return S<99?e.createConditional(e.createTypeCheck(e.createIdentifier("BigInt"),"function"),e.createIdentifier("BigInt"),e.createIdentifier("Object")):e.createIdentifier("BigInt")}function _e(t,r){var n=t.name;return e.isPrivateIdentifier(n)?e.createIdentifier(""):e.isComputedPropertyName(n)?r&&!e.isSimpleInlineableExpression(n.expression)?e.getGeneratedNameForNode(n):n.expression:e.isIdentifier(n)?e.createLiteral(e.idText(n)):e.getSynthesizedClone(n)}function de(t){var r=t.name;if(e.isComputedPropertyName(r)&&(!e.hasStaticModifier(t)&&d||e.some(t.decorators))){var n=e.visitNode(r.expression,A,e.isExpression),i=e.skipPartiallyEmittedExpressions(n);if(!e.isSimpleInlineableExpression(i)){var a=e.getGeneratedNameForNode(r);return h(a),e.updateComputedPropertyName(r,e.createAssignment(a,n))}}return e.visitNode(r,A,e.isPropertyName)}function pe(t){return!e.nodeIsMissing(t.body)}function fe(t){if(!(8388608&t.flags)){var r=e.updateProperty(t,void 0,e.visitNodes(t.modifiers,A,e.isModifier),de(t),void 0,void 0,e.visitNode(t.initializer,A));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}function ge(r){if(pe(r))return e.updateConstructor(r,void 0,void 0,e.visitParameterList(r.parameters,A,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,A,t);var a,o=[];y(),a=e.addPrologueDirectivesAndInitialSuperCall(n,o,A),e.addRange(o,e.map(i,me)),e.addRange(o,e.visitNodes(r.statements,A,e.isStatement,a)),o=e.mergeLexicalEnvironment(o,v());var s=e.createBlock(e.setTextRange(e.createNodeArray(o),r.statements),!0);return e.setTextRange(s,r),e.setOriginalNode(s,r),s}(r.body,r))}function me(t){var r=t.name;if(e.isIdentifier(r)){var n=e.getMutableClone(r);e.setEmitFlags(n,1584);var i=e.getMutableClone(r);return e.setEmitFlags(i,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(e.createExpressionStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),n),t.name),i)),t),e.moveRangePos(t,-1))))}}function ye(t){return!(e.nodeIsMissing(t.body)&&e.hasModifier(t,128))}function ve(r){var n=r.name;return e.isBindingPattern(n)?e.flattenDestructuringAssignment(r,A,t,0,!1,Le):e.setTextRange(e.createAssignment(Re(n),e.visitNode(r.initializer,A,e.isExpression)),r)}function he(r){var n=_e(r,!1),i=function(r){var n=b.getConstantValue(r);return void 0!==n?e.createLiteral(n):(0===(8&p)&&(p|=8,t.enableSubstitution(75)),r.initializer?e.visitNode(r.initializer,A,e.isExpression):e.createVoidZero())}(r),a=e.createAssignment(e.createElementAccess(c,n),i),o=10===i.kind?a:e.createAssignment(e.createElementAccess(c,a),n);return e.setTextRange(e.createExpressionStatement(e.setTextRange(o,r)),r)}function be(t){return Pe(t)||we(t)&&C!==e.ModuleKind.ES2015&&C!==e.ModuleKind.ES2020&&C!==e.ModuleKind.ESNext&&C!==e.ModuleKind.System}function xe(t){_||(_=e.createUnderscoreEscapedMap());var r=De(t);_.has(r)||_.set(r,t)}function De(t){return e.Debug.assertNode(t.name,e.isIdentifier),t.name.escapedText}function Se(t,r){var n=e.createVariableStatement(e.visitNodes(r.modifiers,R,e.isModifier),e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(r,!1,!0))],290===u.kind?0:1));if(e.setOriginalNode(n,r),xe(r),function(e){if(_){var t=De(e);return _.get(t)===e}return!0}(r))return 248===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=e.createMergeDeclarationMarker(n);return e.setEmitFlags(i,4195840),t.push(i),!1}function Ce(n){if(!function(t){var r=e.getParseTreeNode(t,e.isModuleDeclaration);return!r||e.isInstantiatedModule(r,!!x.preserveConstEnums||!!x.isolatedModules)}(n))return e.createNotEmittedStatement(n);e.Debug.assertNode(n.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0===(2&p)&&(p|=2,t.enableSubstitution(75),t.enableSubstitution(282),t.enableEmitNotification(249));var i=[],a=2,o=Se(i,n);o&&(C===e.ModuleKind.System&&u===r||(a|=512));var l=Be(n),d=je(n),f=e.hasModifier(n,1)?e.getExternalModuleOrNamespaceExportName(c,n,!1,!0):e.getLocalName(n,!1,!0),g=e.createLogicalOr(f,e.createAssignment(f,e.createObjectLiteral()));if(be(n)){var y=e.getLocalName(n,!1,!0);g=e.createAssignment(y,g)}var h=e.createExpressionStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,l)],void 0,function(t,r){var n=c,i=s,a=_;c=r,s=t,_=void 0;var o,u,l=[];if(m(),t.body)if(250===t.body.kind)N(t.body,(function(t){return e.addRange(l,e.visitNodes(t.statements,I,e.isStatement))})),o=t.body.statements,u=t.body;else{var d=Ce(t.body);d&&(e.isArray(d)?e.addRange(l,d):l.push(d));var p=function e(t){if(249===t.body.kind){return e(t.body)||t.body}}(t).body;o=e.moveRangePos(p.statements,-1)}e.insertStatementsAfterStandardPrologue(l,v()),c=n,s=i,_=a;var f=e.createBlock(e.setTextRange(e.createNodeArray(l),o),!0);e.setTextRange(f,u),t.body&&250===t.body.kind||e.setEmitFlags(f,1536|e.getEmitFlags(f));return f}(n,d)),void 0,[g]));return e.setOriginalNode(h,n),o&&(e.setSyntheticLeadingComments(h,void 0),e.setSyntheticTrailingComments(h,void 0)),e.setTextRange(h,n),e.addEmitFlags(h,a),i.push(h),i.push(e.createEndOfDeclarationMarker(n)),i}function Te(t){if(!t.isTypeOnly){var r=b.isReferencedAliasDeclaration(t)?t.name:void 0,n=e.visitNode(t.namedBindings,ke,e.isNamedImportBindings);return r||n?e.updateImportClause(t,r,n,!1):void 0}}function ke(t){if(256===t.kind)return b.isReferencedAliasDeclaration(t)?t:void 0;var r=e.visitNodes(t.elements,Ee,e.isImportSpecifier);return e.some(r)?e.updateNamedImports(t,r):void 0}function Ee(e){return b.isReferencedAliasDeclaration(e)?e:void 0}function Ne(t){return e.isNamespaceExport(t)?function(t){return e.updateNamespaceExport(t,e.visitNode(t.name,A,e.isIdentifier))}(t):function(t){var r=e.visitNodes(t.elements,Ae,e.isExportSpecifier);return e.some(r)?e.updateNamedExports(t,r):void 0}(t)}function Ae(e){return b.isValueAliasDeclaration(e)?e:void 0}function Fe(n){if(e.isExternalModuleImportEqualsDeclaration(n)){var i=b.isReferencedAliasDeclaration(n);return i||1!==x.importsNotUsedAsValues?i?e.visitEachChild(n,A,t):void 0:e.setOriginalNode(e.setTextRange(e.createImportDeclaration(void 0,void 0,void 0,n.moduleReference.expression),n),n)}if(function(t){return b.isReferencedAliasDeclaration(t)||!e.isExternalModule(r)&&b.isTopLevelValueImportEqualsWithEntityName(t)}(n)){var a,o,s,u=e.createExpressionFromEntityName(n.moduleReference);return e.setEmitFlags(u,3584),Ie(n)||!Pe(n)?e.setOriginalNode(e.setTextRange(e.createVariableStatement(e.visitNodes(n.modifiers,R,e.isModifier),e.createVariableDeclarationList([e.setOriginalNode(e.createVariableDeclaration(n.name,void 0,u),n)])),n),n):e.setOriginalNode((a=n.name,o=u,s=n,e.setTextRange(e.createExpressionStatement(e.createAssignment(e.getNamespaceMemberName(c,a,!1,!0),o)),s)),n)}}function Pe(t){return void 0!==s&&e.hasModifier(t,1)}function we(t){return void 0===s&&e.hasModifier(t,1)}function Ie(t){return we(t)&&!e.hasModifier(t,512)}function Oe(t){return e.createExpressionStatement(t)}function Me(t,r){var n=e.createAssignment(e.getExternalModuleOrNamespaceExportName(c,r,!1,!0),e.getLocalName(r));e.setSourceMapRange(n,e.createRange(r.name?r.name.pos:r.pos,r.end));var i=e.createExpressionStatement(n);e.setSourceMapRange(i,e.createRange(-1,r.end)),t.push(i)}function Le(t,r,n){return e.setTextRange(e.createAssignment(Re(t),r),n)}function Re(t){return e.getNamespaceMemberName(c,t,!1,!0)}function Be(t){var r=e.getGeneratedNameForNode(t);return e.setSourceMapRange(r,t.name),r}function je(t){return e.getGeneratedNameForNode(t)}function Je(t){if(p&g&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=b.getReferencedExportContainer(t,!1);if(r&&290!==r.kind)if(2&g&&249===r.kind||8&g&&248===r.kind)return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(r),t),t)}}function ze(t){var r=function(t){if(x.isolatedModules)return;return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?b.getConstantValue(t):void 0}(t);if(void 0!==r){e.setConstantValue(t,r);var n=e.createLiteral(r);if(!x.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}},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 };"}}(d||(d={})),function(e){var t,r;function n(t,r,n){return t.requestEmitHelper(e.classPrivateFieldGetHelper),e.createCall(e.getUnscopedHelperName("__classPrivateFieldGet"),void 0,[r,n])}function i(t,r,n,i){return t.requestEmitHelper(e.classPrivateFieldSetHelper),e.createCall(e.getUnscopedHelperName("__classPrivateFieldSet"),void 0,[r,n,i])}!function(e){e[e.ClassAliases=1]="ClassAliases"}(t||(t={})),function(e){e[e.InstanceField=0]="InstanceField"}(r||(r={})),e.transformClassFields=function(t){var r,a,s,c,u=t.hoistVariableDeclaration,l=t.endLexicalEnvironment,_=t.resumeLexicalEnvironment,d=t.getEmitResolver(),p=t.getCompilerOptions(),f=e.getEmitScriptTarget(p),g=f<99,m=t.onSubstituteNode;t.onSubstituteNode=function(t,n){if(n=m(t,n),1===t)return function(t){switch(t.kind){case 75:return function(t){return function(t){if(1&r&&33554432&d.getNodeCheckFlags(t)){var n=d.getReferencedValueDeclaration(t);if(n){var i=a[n.id];if(i){var o=e.getSynthesizedClone(i);return e.setSourceMapRange(o,t),e.setCommentRange(o,t),o}}}return}(t)||t}(t)}return t}(n);return n};var y,v=[];return e.chainBundle((function(r){var n=t.getCompilerOptions();if(r.isDeclarationFile||n.useDefineForClassFields&&99===n.target)return r;var i=e.visitEachChild(r,h,t);return e.addEmitHelpers(i,t.readEmitHelpers()),i}));function h(n){if(!(4194304&n.transformFlags))return n;switch(n.kind){case 214:case 245:return function(n){var i=s;s=void 0,g&&(v.push(y),y=void 0);var o=e.isClassDeclaration(n)?function(r){if(!e.forEach(r.members,N))return e.visitEachChild(r,h,t);var n=e.getEffectiveBaseTypeNode(r),i=!(!n||100===e.skipOuterExpressions(n.expression).kind),a=[e.updateClassDeclaration(r,void 0,r.modifiers,r.name,void 0,e.visitNodes(r.heritageClauses,h,e.isHeritageClause),A(r,i))];e.some(s)&&a.push(e.createExpressionStatement(e.inlineExpressions(s)));var o=e.getProperties(r,!0,!0);e.some(o)&&P(a,o,e.getInternalName(r));return a}(n):function(n){if(!e.forEach(n.members,N))return e.visitEachChild(n,h,t);var i=e.isClassDeclaration(e.getOriginalNode(n)),o=e.getProperties(n,!0,!0),l=e.getEffectiveBaseTypeNode(n),_=!(!l||100===e.skipOuterExpressions(l.expression).kind),p=e.updateClassExpression(n,n.modifiers,n.name,void 0,e.visitNodes(n.heritageClauses,h,e.isHeritageClause),A(n,_));if(e.some(o)||e.some(s)){if(i)return e.Debug.assertIsDefined(c,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),c&&s&&e.some(s)&&c.push(e.createExpressionStatement(e.inlineExpressions(s))),c&&e.some(o)&&P(c,o,e.getInternalName(n)),p;var f=[],g=16777216&d.getNodeCheckFlags(n),m=e.createTempVariable(u,!!g);if(g){0===(1&r)&&(r|=1,t.enableSubstitution(75),a=[]);var y=e.getSynthesizedClone(m);y.autoGenerateFlags&=-9,a[e.getOriginalNodeId(n)]=y}return e.setEmitFlags(p,65536|e.getEmitFlags(p)),f.push(e.startOnNewLine(e.createAssignment(m,p))),e.addRange(f,e.map(s,e.startOnNewLine)),e.addRange(f,function(t,r){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=w(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}(o,m)),f.push(e.startOnNewLine(m)),e.inlineExpressions(f)}return p}(n);g&&(y=v.pop());return s=i,o}(n);case 159:return S(n);case 225:return function(r){var n=c;c=[];var i=e.visitEachChild(r,h,t),a=e.some(c)?o([i],c):i;return c=n,a}(n);case 154:return D(n);case 194:return function(r){if(g&&e.isPrivateIdentifier(r.name)){var n=O(r.name);if(n)return e.setOriginalNode(C(n,r.expression),r)}return e.visitEachChild(r,h,t)}(n);case 207:return function(r){if(g&&e.isPrivateIdentifierPropertyAccessExpression(r.operand)){var n=45===r.operator?39:46===r.operator?40:void 0,i=void 0;if(n&&(i=O(r.operand.name))){var a=k(e.visitNode(r.operand.expression,h,e.isExpression)),o=a.readExpression,s=a.initializeExpression,c=e.createPrefix(39,C(i,o));return e.setOriginalNode(E(i,s||o,e.createBinary(c,n,e.createLiteral(1)),62),r)}}return e.visitEachChild(r,h,t)}(n);case 208:return T(n,!1);case 196:return function(r){if(g&&e.isPrivateIdentifierPropertyAccessExpression(r.expression)){var n=e.createCallBinding(r.expression,u,f),i=n.thisArg,a=n.target;return e.updateCall(r,e.createPropertyAccess(e.visitNode(a,h),"call"),void 0,o([e.visitNode(i,h,e.isExpression)],e.visitNodes(r.arguments,h,e.isExpression)))}return e.visitEachChild(r,h,t)}(n);case 209:return function(r){if(g){if(e.isDestructuringAssignment(r)){var n=s;s=void 0,r=e.updateBinary(r,e.visitNode(r.left,b),e.visitNode(r.right,h),r.operatorToken);var i=e.some(s)?e.inlineExpressions(e.compact(o(s,[r]))):r;return s=n,i}if(e.isAssignmentExpression(r)&&e.isPrivateIdentifierPropertyAccessExpression(r.left)){var a=O(r.left.name);if(a)return e.setOriginalNode(E(a,r.left.expression,r.right,r.operatorToken.kind),r)}}return e.visitEachChild(r,h,t)}(n);case 76:return function(t){if(!g)return t;return e.setOriginalNode(e.createIdentifier(""),t)}(n);case 226:return function(r){if(e.isPostfixUnaryExpression(r.expression))return e.updateExpressionStatement(r,T(r.expression,!0));return e.visitEachChild(r,h,t)}(n);case 230:return function(r){if(r.incrementor&&e.isPostfixUnaryExpression(r.incrementor))return e.updateFor(r,e.visitNode(r.initializer,h,e.isForInitializer),e.visitNode(r.condition,h,e.isExpression),T(r.incrementor,!0),e.visitNode(r.statement,h,e.isStatement));return e.visitEachChild(r,h,t)}(n);case 198:return function(r){if(g&&e.isPrivateIdentifierPropertyAccessExpression(r.tag)){var n=e.createCallBinding(r.tag,u,f),i=n.thisArg,a=n.target;return e.updateTaggedTemplate(r,e.createCall(e.createPropertyAccess(e.visitNode(a,h),"bind"),void 0,[e.visitNode(i,h,e.isExpression)]),e.visitNode(r.template,h,e.isTemplateLiteral))}return e.visitEachChild(r,h,t)}(n)}return e.visitEachChild(n,h,t)}function b(t){switch(t.kind){case 193:case 192:return function(t){return e.isArrayLiteralExpression(t)?e.updateArrayLiteral(t,e.visitNodes(t.elements,L,e.isExpression)):e.updateObjectLiteral(t,e.visitNodes(t.properties,R,e.isObjectLiteralElementLike))}(t);default:return h(t)}}function x(r){switch(r.kind){case 162:return;case 163:case 164:case 161:return e.visitEachChild(r,x,t);case 159:return S(r);case 154:return D(r);case 222:return r;default:return h(r)}}function D(r){var n=e.visitEachChild(r,h,t);if(e.some(s)){var i=s;i.push(r.expression),s=[],n=e.updateComputedPropertyName(n,e.inlineExpressions(i))}return n}function S(r){if(e.Debug.assert(!e.some(r.decorators)),!g&&e.isPrivateIdentifier(r.name))return e.updateProperty(r,void 0,e.visitNodes(r.modifiers,h,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,h,e.isExpression),i=e.skipPartiallyEmittedExpressions(n),a=e.isSimpleInlineableExpression(i);if(!(e.isAssignmentExpression(i)&&e.isGeneratedIdentifier(i.left))&&!a&&r){var o=e.getGeneratedNameForNode(t);return u(o),e.createAssignment(o,n)}return a||e.isIdentifier(i)?void 0:n}}(r.name,!!r.initializer||!!t.getCompilerOptions().useDefineForClassFields);n&&!e.isSimpleInlineableExpression(n)&&(s||(s=[])).push(n)}function C(r,i){switch(i=e.visitNode(i,h,e.isExpression),r.placement){case 0:return n(t,e.nodeIsSynthesized(i)?i:e.getSynthesizedClone(i),r.weakMapName);default:return e.Debug.fail("Unexpected private identifier placement")}}function T(r,n){if(g&&e.isPrivateIdentifierPropertyAccessExpression(r.operand)){var i=45===r.operator?39:46===r.operator?40:void 0,a=void 0;if(i&&(a=O(r.operand.name))){var o=k(e.visitNode(r.operand.expression,h,e.isExpression)),s=o.readExpression,c=o.initializeExpression,l=e.createPrefix(39,C(a,s)),_=n?void 0:e.createTempVariable(u);return e.setOriginalNode(e.inlineExpressions(e.compact([E(a,c||s,e.createBinary(_?e.createAssignment(_,l):l,i,e.createLiteral(1)),62),_])),r)}}return e.visitEachChild(r,h,t)}function k(t){var r=e.nodeIsSynthesized(t)?t:e.getSynthesizedClone(t);if(e.isSimpleInlineableExpression(t))return{readExpression:r,initializeExpression:void 0};var n=e.createTempVariable(u);return{readExpression:n,initializeExpression:e.createAssignment(n,r)}}function E(r,a,o,s){switch(r.placement){case 0:return function(r,a,o,s){if(a=e.visitNode(a,h,e.isExpression),o=e.visitNode(o,h,e.isExpression),e.isCompoundAssignment(s)){var c=k(a),u=c.readExpression,l=c.initializeExpression;return i(t,l||u,r.weakMapName,e.createBinary(n(t,u,r.weakMapName),e.getNonAssignmentOperatorForCompoundAssignment(s),o))}return i(t,a,r.weakMapName,o)}(r,a,o,s);default:return e.Debug.fail("Unexpected private identifier placement")}}function N(t){return e.isPropertyDeclaration(t)||g&&t.name&&e.isPrivateIdentifier(t.name)}function A(r,n){if(g)for(var i=0,a=r.members;i<a.length;i++){var o=a[i];e.isPrivateIdentifierPropertyDeclaration(o)&&I(o.name)}var s=[],c=function(r,n){var i=e.visitNode(e.getFirstConstructorWithBody(r),h,e.isConstructorDeclaration),a=r.members.filter(F);if(!e.some(a))return i;var o=e.visitParameterList(i?i.parameters:void 0,h,t),s=function(r,n,i){var a=t.getCompilerOptions().useDefineForClassFields,o=e.getProperties(r,!1,!1);a||(o=e.filter(o,(function(t){return!!t.initializer||e.isPrivateIdentifier(t.name)})));if(!n&&!e.some(o))return e.visitFunctionBody(void 0,h,t);_();var s=0,c=[];!n&&i&&c.push(e.createExpressionStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));n&&(s=e.addPrologueDirectivesAndInitialSuperCall(n,c,h));if(null===n||void 0===n?void 0:n.body){var u=e.findIndex(n.body.statements,(function(t){return!e.isParameterPropertyDeclaration(e.getOriginalNode(t),n)}),s);-1===u&&(u=n.body.statements.length),u>s&&(a||e.addRange(c,e.visitNodes(n.body.statements,h,e.isStatement,s,u-s)),s=u)}P(c,o,e.createThis()),n&&e.addRange(c,e.visitNodes(n.body.statements,h,e.isStatement,s));return c=e.mergeLexicalEnvironment(c,l()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(c),n?n.body.statements:r.members),!0),n?n.body:void 0)}(r,i,n);if(!s)return;return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,null!==o&&void 0!==o?o:[],s),i||r),i))}(r,n);return c&&s.push(c),e.addRange(s,e.visitNodes(r.members,x,e.isClassElement)),e.setTextRange(e.createNodeArray(s),r.members)}function F(r){return!(!e.isPropertyDeclaration(r)||e.hasStaticModifier(r))&&(t.getCompilerOptions().useDefineForClassFields?f<99:e.isInitializedProperty(r)||g&&e.isPrivateIdentifierPropertyDeclaration(r))}function P(t,r,n){for(var i=0,a=r;i<a.length;i++){var o=a[i],s=w(o,n);if(s){var c=e.createExpressionStatement(s);e.setSourceMapRange(c,e.moveRangePastModifiers(o)),e.setCommentRange(c,o),e.setOriginalNode(c,o),t.push(c)}}}function w(r,n){var i=!t.getCompilerOptions().useDefineForClassFields,a=e.isComputedPropertyName(r.name)&&!e.isSimpleInlineableExpression(r.name.expression)?e.updateComputedPropertyName(r.name,e.getGeneratedNameForNode(r.name)):r.name;if(g&&e.isPrivateIdentifier(a)){var o=O(a);if(o)switch(o.placement){case 0:return function(t,r,n){return e.createCall(e.createPropertyAccess(n,"set"),void 0,[t,r||e.createVoidZero()])}(n,e.visitNode(r.initializer,h,e.isExpression),o.weakMapName)}else e.Debug.fail("Undeclared private name for property declaration.")}if((!e.isPrivateIdentifier(a)||r.initializer)&&(!e.isPrivateIdentifier(a)||r.initializer)){var s=e.getOriginalNode(r),c=r.initializer||i?e.visitNode(r.initializer,h,e.isExpression):e.isParameterPropertyDeclaration(s,s.parent)&&e.isIdentifier(a)?a:e.createVoidZero();if(i||e.isPrivateIdentifier(a)){var u=e.createMemberAccessForPropertyName(n,a,a);return e.createAssignment(u,c)}var l=e.isComputedPropertyName(a)?a.expression:e.isIdentifier(a)?e.createStringLiteral(e.unescapeLeadingUnderscores(a.escapedText)):a,_=e.createPropertyDescriptor({value:c,configurable:!0,writable:!0,enumerable:!0});return e.createObjectDefinePropertyCall(n,l,_)}}function I(t){var r=e.getTextOfPropertyName(t),n=e.createOptimisticUniqueName("_"+r.substring(1));n.autoGenerateFlags|=8,u(n),(y||(y=e.createUnderscoreEscapedMap())).set(t.escapedText,{placement:0,weakMapName:n}),(s||(s=[])).push(e.createAssignment(n,e.createNew(e.createIdentifier("WeakMap"),void 0,[])))}function O(e){if(y&&(r=y.get(e.escapedText)))return r;for(var t=v.length-1;t>=0;--t){var r,n=v[t];if(n)if(r=n.get(e.escapedText))return r}}function M(r){var n=e.getGeneratedNameForNode(r),i=O(r.name);if(!i)return e.visitEachChild(r,h,t);var a=r.expression;return(e.isThisProperty(r)||e.isSuperProperty(r)||!e.isSimpleCopiableExpression(r.expression))&&((a=e.createTempVariable(u)).autoGenerateFlags|=8,(s||(s=[])).push(e.createBinary(a,62,r.expression))),e.createPropertyAccess(e.createParen(e.createObjectLiteral([e.createSetAccessor(void 0,void 0,"value",[e.createParameter(void 0,void 0,void 0,n,void 0,void 0,void 0)],e.createBlock([e.createExpressionStatement(E(i,a,n,62))]))])),"value")}function L(t){var r=e.getTargetOfBindingOrAssignmentElement(t);if(r&&e.isPrivateIdentifierPropertyAccessExpression(r)){var n=M(r);return e.isAssignmentExpression(t)?e.updateBinary(t,n,e.visitNode(t.right,h,e.isExpression),t.operatorToken):e.isSpreadElement(t)?e.updateSpread(t,n):n}return e.visitNode(t,b)}function R(t){if(e.isPropertyAssignment(t)){var r=e.getTargetOfBindingOrAssignmentElement(t);if(r&&e.isPrivateIdentifierPropertyAccessExpression(r)){var n=e.getInitializerOfBindingOrAssignmentElement(t),i=M(r);return e.updatePropertyAssignment(t,e.visitNode(t.name,h),n?e.createAssignment(i,e.visitNode(n,h)):i)}return e.updatePropertyAssignment(t,e.visitNode(t.name,h),e.visitNode(t.initializer,b))}return e.visitNode(t,h)}},e.classPrivateFieldGetHelper={name:"typescript: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",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 };'}}(d||(d={})),function(e){var t,r;function n(t,r,n){var i=0!==(4096&t.getNodeCheckFlags(r)),a=[];return n.forEach((function(t,r){var n=e.unescapeLeadingUnderscores(r),o=[];o.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),n),4)))),i&&o.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameter(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),n),4),e.createIdentifier("v"))))),a.push(e.createPropertyAssignment(n,e.createObjectLiteral(o)))})),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_super"),void 0,e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteral(a,!0)]))],2))}function i(t,r,n,i,a){t.requestEmitHelper(e.awaiterHelper);var o=e.createFunctionExpression(void 0,e.createToken(41),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=786432,e.createCall(e.getUnscopedHelperName("__awaiter"),void 0,[r?e.createThis():e.createVoidZero(),n?e.createIdentifier("arguments"):e.createVoidZero(),i?e.createExpressionFromEntityName(i):e.createVoidZero(),o])}!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,a,s,c,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 245===t||162===t||161===t||163===t||164===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 194:return j(t);case 195:return J(t);case 196:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?j(r):J(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,o([e.createThis()],t.arguments))}return t}(t)}return t}(r);return r},e.chainBundle((function(r){if(r.isDeclarationFile)return r;b(1,!1),b(2,!e.isEffectiveStrictModeSourceFile(r,p));var n=e.visitEachChild(r,T,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 C(r){return e.visitEachChild(r,T,t)}function T(r){if(0===(64&r.transformFlags))return r;switch(r.kind){case 126:return;case 206:return function(r){if(!x(1))return e.visitEachChild(r,T,t);return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(r.expression,T,e.isExpression)),r),r)}(r);case 161:return S(3,E,r);case 244:return S(3,N,r);case 201:return S(3,A,r);case 202:return S(1,F,r);case 194:return s&&e.isPropertyAccessExpression(r)&&102===r.expression.kind&&s.set(r.name.escapedText,!0),e.visitEachChild(r,T,t);case 195:return s&&102===r.expression.kind&&(c=!0),e.visitEachChild(r,T,t);case 163:case 164:case 162:case 245:case 214:return S(3,C,r);default:return e.visitEachChild(r,T,t)}}function k(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 225:return function(r){if(w(r.declarationList)){var n=I(r.declarationList,!1);return n?e.createExpressionStatement(n):void 0}return e.visitEachChild(r,T,t)}(r);case 230:return function(t){var r=t.initializer;return e.updateFor(t,w(r)?I(r,!1):e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.condition,T,e.isExpression),e.visitNode(t.incrementor,T,e.isExpression),e.visitNode(t.statement,k,e.isStatement,e.liftToBlock))}(r);case 231:return function(t){return e.updateForIn(t,w(t.initializer)?I(t.initializer,!0):e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),e.visitNode(t.statement,k,e.isStatement,e.liftToBlock))}(r);case 232:return function(t){return e.updateForOf(t,e.visitNode(t.awaitModifier,T,e.isToken),w(t.initializer)?I(t.initializer,!0):e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),e.visitNode(t.statement,k,e.isStatement,e.liftToBlock))}(r);case 280:return function(r){var n,i=e.createUnderscoreEscapedMap();if(P(r.variableDeclaration,i),i.forEach((function(t,r){a.has(r)&&(n||(n=e.cloneMap(a)),n.delete(r))})),n){var o=a;a=n;var s=e.visitEachChild(r,k,t);return a=o,s}return e.visitEachChild(r,k,t)}(r);case 223:case 237:case 251:case 277:case 278:case 240:case 228:case 229:case 227:case 236:case 238:return e.visitEachChild(r,k,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return T(r)}function E(r){return e.updateMethod(r,void 0,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?R(r):e.visitFunctionBody(r.body,T,t))}function N(r){return e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?R(r):e.visitFunctionBody(r.body,T,t))}function A(r){return e.updateFunctionExpression(r,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?R(r):e.visitFunctionBody(r.body,T,t))}function F(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,T,e.isModifier),void 0,e.visitParameterList(r.parameters,T,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?R(r):e.visitFunctionBody(r.body,T,t))}function P(t,r){var n=t.name;if(e.isIdentifier(n))r.set(n.escapedText,!0);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(e.convertToAssignmentElementTarget(t.declarations[0].name),T,e.isExpression):void 0:e.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(e.createAssignment(e.convertToAssignmentElementTarget(t.name),t.initializer),t);return e.visitNode(r,T,e.isExpression)}function L(t){var r=t.name;if(e.isIdentifier(r))return a.has(r.escapedText);for(var n=0,i=r.elements;n<i.length;n++){var o=i[n];if(!e.isOmittedExpression(o)&&L(o))return!0}return!1}function R(o){u();var _=e.getOriginalNode(o,e.isFunctionLike).type,p=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}(_):void 0,g=202===o.kind,y=0!==(8192&d.getNodeCheckFlags(o)),v=a;a=e.createUnderscoreEscapedMap();for(var h=0,b=o.parameters;h<b.length;h++){P(b[h],a)}var x,S=s,C=c;if(g||(s=e.createUnderscoreEscapedMap(),c=!1),g){var k=i(t,D(),y,p,B(o.body)),E=l();if(e.some(E)){I=e.convertToFunctionBody(k);x=e.updateBlock(I,e.setTextRange(e.createNodeArray(e.concatenate(E,I.statements)),I.statements))}else x=k}else{var N=[],A=e.addPrologue(N,o.body.statements,!1,T);N.push(e.createReturn(i(t,D(),y,p,B(o.body,A)))),e.insertStatementsAfterStandardPrologue(N,l());var F=f>=2&&6144&d.getNodeCheckFlags(o);if(F&&(0===(1&r)&&(r|=1,t.enableSubstitution(196),t.enableSubstitution(194),t.enableSubstitution(195),t.enableEmitNotification(245),t.enableEmitNotification(161),t.enableEmitNotification(163),t.enableEmitNotification(164),t.enableEmitNotification(162),t.enableEmitNotification(225)),e.hasEntries(s))){var w=n(d,o,s);m[e.getNodeId(w)]=!0,e.insertStatementsAfterStandardPrologue(N,[w])}var I=e.createBlock(N,!0);e.setTextRange(I,o.body),F&&c&&(4096&d.getNodeCheckFlags(o)?e.addEmitHelper(I,e.advancedAsyncSuperHelper):2048&d.getNodeCheckFlags(o)&&e.addEmitHelper(I,e.asyncSuperHelper)),x=I}return a=v,g||(s=S,c=C),x}function B(t,r){return e.isBlock(t)?e.updateBlock(t,e.visitNodes(t.statements,k,e.isStatement,r)):e.convertToFunctionBody(e.visitNode(t,k,e.isConciseBody))}function j(t){return 102===t.expression.kind?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),t.name),t):t}function J(t){return 102===t.expression.kind?(r=t.argumentExpression,n=t,4096&g?e.setTextRange(e.createPropertyAccess(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[r]),"value"),n):e.setTextRange(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=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.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:e.helperString(u(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e.helperString(u(["\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")}}(d||(d={})),function(e){var t,r;function n(t,r){return t.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,r):(t.requestEmitHelper(e.assignHelper),e.createCall(e.getUnscopedHelperName("__assign"),void 0,r))}function i(t,r){return t.requestEmitHelper(e.awaitHelper),e.createCall(e.getUnscopedHelperName("__await"),void 0,[r])}function a(t,r,n){return t.requestEmitHelper(e.asyncValues),e.setTextRange(e.createCall(e.getUnscopedHelperName("__asyncValues"),void 0,[r]),n)}!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.resumeLexicalEnvironment,s=t.endLexicalEnvironment,c=t.hoistVariableDeclaration,u=t.getEmitResolver(),l=t.getCompilerOptions(),_=e.getEmitScriptTarget(l),d=t.onEmitNode;t.onEmitNode=function(t,r,n){if(1&f&&function(e){var t=e.kind;return 245===t||162===t||161===t||163===t||164===t}(r)){var i=6144&u.getNodeCheckFlags(r);if(i!==x){var a=x;return x=i,d(t,r,n),void(x=a)}}else if(f&&S[e.getNodeId(r)]){a=x;return x=0,d(t,r,n),void(x=a)}d(t,r,n)};var p=t.onSubstituteNode;t.onSubstituteNode=function(t,r){if(r=p(t,r),1===t&&x)return function(t){switch(t.kind){case 194:return H(t);case 195:return G(t);case 196:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?H(r):G(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,o([e.createThis()],t.arguments))}return t}(t)}return t}(r);return r};var f,g,m,y,v,h,b=!1,x=0,D=0,S=[];return e.chainBundle((function(r){if(r.isDeclarationFile)return r;m=r;var n=function(r){var n=C(2,e.isEffectiveStrictModeSourceFile(r,l)?0:1);b=!1;var i=e.visitEachChild(r,E,t),a=e.concatenate(i.statements,y&&[e.createVariableStatement(void 0,e.createVariableDeclarationList(y))]),o=e.updateSourceFileNode(i,e.setTextRange(e.createNodeArray(a),r.statements));return T(n),o}(r);return e.addEmitHelpers(n,t.readEmitHelpers()),m=void 0,y=void 0,n}));function C(e,t){var r=D;return D=3&(D&~e|t),r}function T(e){D=e}function k(t){y=e.append(y,e.createVariableDeclaration(t))}function E(e){return w(e,!1)}function N(e){return w(e,!0)}function A(e){if(126!==e.kind)return e}function F(e,t,r,n){if(function(e,t){return D!==(D&~e|t)}(r,n)){var i=C(r,n),a=e(t);return T(i),a}return e(t)}function P(r){return e.visitEachChild(r,E,t)}function w(r,s){if(0===(32&r.transformFlags))return r;switch(r.kind){case 206:return function(r){if(2&g&&1&g)return e.setOriginalNode(e.setTextRange(e.createYield(i(t,e.visitNode(r.expression,E,e.isExpression))),r),r);return e.visitEachChild(r,E,t)}(r);case 212:return function(r){if(2&g&&1&g){if(r.asteriskToken){var n=e.visitNode(r.expression,E,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(i(t,e.updateYield(r,r.asteriskToken,function(t,r,n){return t.requestEmitHelper(e.asyncDelegator),e.setTextRange(e.createCall(e.getUnscopedHelperName("__asyncDelegator"),void 0,[r]),n)}(t,a(t,n,n),n)))),r),r)}return e.setOriginalNode(e.setTextRange(e.createYield(L(r.expression?e.visitNode(r.expression,E,e.isExpression):e.createVoidZero())),r),r)}return e.visitEachChild(r,E,t)}(r);case 235:return function(r){if(2&g&&1&g)return e.updateReturn(r,L(r.expression?e.visitNode(r.expression,E,e.isExpression):e.createVoidZero()));return e.visitEachChild(r,E,t)}(r);case 238:return function(r){if(2&g){var n=e.unwrapInnermostStatementOfLabel(r);return 232===n.kind&&n.awaitModifier?M(n,r):e.restoreEnclosingLabel(e.visitNode(n,E,e.isStatement,e.liftToBlock),r)}return e.visitEachChild(r,E,t)}(r);case 193:return function(r){if(16384&r.transformFlags){var i=function(t){for(var r,n=[],i=0,a=t;i<a.length;i++){var o=a[i];if(283===o.kind){r&&(n.push(e.createObjectLiteral(r)),r=void 0);var s=o.expression;n.push(e.visitNode(s,E,e.isExpression))}else r=e.append(r,281===o.kind?e.createPropertyAssignment(o.name,e.visitNode(o.initializer,E,e.isExpression)):e.visitNode(o,E,e.isObjectLiteralElementLike))}r&&n.push(e.createObjectLiteral(r));return n}(r.properties);i.length&&193!==i[0].kind&&i.unshift(e.createObjectLiteral());var a=i[0];if(i.length>1){for(var o=1;o<i.length;o++)a=n(t,[a,i[o]]);return a}return n(t,i)}return e.visitEachChild(r,E,t)}(r);case 209:return function(r,n){if(e.isDestructuringAssignment(r)&&16384&r.left.transformFlags)return e.flattenDestructuringAssignment(r,E,t,1,!n);if(27===r.operatorToken.kind)return e.updateBinary(r,e.visitNode(r.left,N,e.isExpression),e.visitNode(r.right,n?N:E,e.isExpression));return e.visitEachChild(r,E,t)}(r,s);case 280:return function(r){if(r.variableDeclaration&&e.isBindingPattern(r.variableDeclaration.name)&&16384&r.variableDeclaration.name.transformFlags){var n=e.getGeneratedNameForNode(r.variableDeclaration.name),i=e.updateVariableDeclaration(r.variableDeclaration,r.variableDeclaration.name,void 0,n),a=e.flattenDestructuringBinding(i,E,t,1),s=e.visitNode(r.block,E,e.isBlock);return e.some(a)&&(s=e.updateBlock(s,o([e.createVariableStatement(void 0,a)],s.statements))),e.updateCatchClause(r,e.updateVariableDeclaration(r.variableDeclaration,n,void 0,void 0),s)}return e.visitEachChild(r,E,t)}(r);case 225:return function(r){if(e.hasModifier(r,1)){var n=b;b=!0;var i=e.visitEachChild(r,E,t);return b=n,i}return e.visitEachChild(r,E,t)}(r);case 242:return function(e){if(b){var t=b;b=!1;var r=I(e,!0);return b=t,r}return I(e,!1)}(r);case 228:case 229:case 231:return F(P,r,0,2);case 232:return M(r,void 0);case 230:return F(O,r,0,2);case 205:return function(r){return e.visitEachChild(r,N,t)}(r);case 162:return F(R,r,2,1);case 161:return F(J,r,2,1);case 163:return F(B,r,2,1);case 164:return F(j,r,2,1);case 244:return F(z,r,2,1);case 201:return F(K,r,2,1);case 202:return F(U,r,2,0);case 156:return function(r){if(16384&r.transformFlags)return e.updateParameter(r,void 0,void 0,r.dotDotDotToken,e.getGeneratedNameForNode(r),void 0,void 0,e.visitNode(r.initializer,E,e.isExpression));return e.visitEachChild(r,E,t)}(r);case 226:return function(r){return e.visitEachChild(r,N,t)}(r);case 200:return function(r,n){return e.visitEachChild(r,n?N:E,t)}(r,s);case 198:return function(r){return e.processTaggedTemplateExpression(t,r,E,m,k,e.ProcessLevel.LiftRestriction)}(r);case 194:return v&&e.isPropertyAccessExpression(r)&&102===r.expression.kind&&v.set(r.name.escapedText,!0),e.visitEachChild(r,E,t);case 195:return v&&102===r.expression.kind&&(h=!0),e.visitEachChild(r,E,t);case 245:case 214:return F(P,r,2,1);default:return e.visitEachChild(r,E,t)}}function I(r,n){return e.isBindingPattern(r.name)&&16384&r.name.transformFlags?e.flattenDestructuringBinding(r,E,t,1,void 0,n):e.visitEachChild(r,E,t)}function O(t){return e.updateFor(t,e.visitNode(t.initializer,N,e.isForInitializer),e.visitNode(t.condition,E,e.isExpression),e.visitNode(t.incrementor,E,e.isExpression),e.visitNode(t.statement,E,e.isStatement))}function M(r,n){var i=C(0,2);16384&r.initializer.transformFlags&&(r=function(t){var r=e.skipParentheses(t.initializer);if(e.isVariableDeclarationList(r)||e.isAssignmentPattern(r)){var n=void 0,i=void 0,a=e.createTempVariable(void 0),o=[e.createForOfBindingStatement(r,a)];return e.isBlock(t.statement)?(e.addRange(o,t.statement.statements),n=t.statement,i=t.statement.statements):t.statement&&(e.append(o,t.statement),n=t.statement,i=t.statement),e.updateForOf(t,t.awaitModifier,e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(a),t.initializer)],1),t.initializer),t.expression,e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),i),!0),n))}return t}(r));var o=r.awaitModifier?function(r,n,i){var o=e.visitNode(r.expression,E,e.isExpression),s=e.isIdentifier(o)?e.getGeneratedNameForNode(o):e.createTempVariable(void 0),u=e.isIdentifier(o)?e.getGeneratedNameForNode(s):e.createTempVariable(void 0),l=e.createUniqueName("e"),_=e.getGeneratedNameForNode(l),d=e.createTempVariable(void 0),p=a(t,o,r.expression),f=e.createCall(e.createPropertyAccess(s,"next"),void 0,[]),g=e.createPropertyAccess(u,"done"),m=e.createPropertyAccess(u,"value"),y=e.createFunctionCall(d,s,[]);c(l),c(d);var v=2&i?e.inlineExpressions([e.createAssignment(l,e.createVoidZero()),p]):p,h=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(s,void 0,v),r.expression),e.createVariableDeclaration(u)]),r.expression),2097152),e.createComma(e.createAssignment(u,L(f)),e.createLogicalNot(g)),void 0,function(t,r){var n,i,a=e.createForOfBindingStatement(t.initializer,r),o=[e.visitNode(a,E,e.isStatement)],s=e.visitNode(t.statement,E,e.isStatement);e.isBlock(s)?(e.addRange(o,s.statements),n=s,i=s.statements):o.push(s);return e.setEmitFlags(e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),i),!0),n),432)}(r,m)),r),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(h,n)]),e.createCatchClause(e.createVariableDeclaration(_),e.setEmitFlags(e.createBlock([e.createExpressionStatement(e.createAssignment(l,e.createObjectLiteral([e.createPropertyAssignment("error",_)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(u,e.createLogicalNot(g)),e.createAssignment(d,e.createPropertyAccess(s,"return"))),e.createExpressionStatement(L(y))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(l,e.createThrow(e.createPropertyAccess(l,"error"))),1)]),1))]))}(r,n,i):e.restoreEnclosingLabel(e.visitEachChild(r,E,t),n);return T(i),o}function L(r){return 1&g?e.createYield(void 0,i(t,r)):e.createAwait(r)}function R(r){var n=g;g=0;var i=e.updateConstructor(r,void 0,r.modifiers,e.visitParameterList(r.parameters,E,t),q(r));return g=n,i}function B(r){var n=g;g=0;var i=e.updateGetAccessor(r,void 0,r.modifiers,e.visitNode(r.name,E,e.isPropertyName),e.visitParameterList(r.parameters,E,t),void 0,q(r));return g=n,i}function j(r){var n=g;g=0;var i=e.updateSetAccessor(r,void 0,r.modifiers,e.visitNode(r.name,E,e.isPropertyName),e.visitParameterList(r.parameters,E,t),q(r));return g=n,i}function J(r){var n=g;g=e.getFunctionFlags(r);var i=e.updateMethod(r,void 0,1&g?e.visitNodes(r.modifiers,A,e.isModifier):r.modifiers,2&g?void 0:r.asteriskToken,e.visitNode(r.name,E,e.isPropertyName),e.visitNode(void 0,E,e.isToken),void 0,e.visitParameterList(r.parameters,E,t),void 0,2&g&&1&g?V(r):q(r));return g=n,i}function z(r){var n=g;g=e.getFunctionFlags(r);var i=e.updateFunctionDeclaration(r,void 0,1&g?e.visitNodes(r.modifiers,A,e.isModifier):r.modifiers,2&g?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,2&g&&1&g?V(r):q(r));return g=n,i}function U(r){var n=g;g=e.getFunctionFlags(r);var i=e.updateArrowFunction(r,r.modifiers,void 0,e.visitParameterList(r.parameters,E,t),void 0,r.equalsGreaterThanToken,q(r));return g=n,i}function K(r){var n=g;g=e.getFunctionFlags(r);var i=e.updateFunctionExpression(r,1&g?e.visitNodes(r.modifiers,A,e.isModifier):r.modifiers,2&g?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,2&g&&1&g?V(r):q(r));return g=n,i}function V(n){r();var i=[],a=e.addPrologue(i,n.body.statements,!1,E);W(i,n);var o=v,c=h;v=e.createUnderscoreEscapedMap(),h=!1;var l=e.createReturn(function(t,r,n){return t.requestEmitHelper(e.asyncGeneratorHelper),(r.emitNode||(r.emitNode={})).flags|=786432,e.createCall(e.getUnscopedHelperName("__asyncGenerator"),void 0,[n?e.createThis():e.createVoidZero(),e.createIdentifier("arguments"),r])}(t,e.createFunctionExpression(void 0,e.createToken(41),n.name&&e.getGeneratedNameForNode(n.name),void 0,[],void 0,e.updateBlock(n.body,e.visitLexicalEnvironment(n.body.statements,E,t,a))),!!(1&D))),d=_>=2&&6144&u.getNodeCheckFlags(n);if(d){0===(1&f)&&(f|=1,t.enableSubstitution(196),t.enableSubstitution(194),t.enableSubstitution(195),t.enableEmitNotification(245),t.enableEmitNotification(161),t.enableEmitNotification(163),t.enableEmitNotification(164),t.enableEmitNotification(162),t.enableEmitNotification(225));var p=e.createSuperAccessVariableStatement(u,n,v);S[e.getNodeId(p)]=!0,e.insertStatementsAfterStandardPrologue(i,[p])}i.push(l),e.insertStatementsAfterStandardPrologue(i,s());var g=e.updateBlock(n.body,i);return d&&h&&(4096&u.getNodeCheckFlags(n)?e.addEmitHelper(g,e.advancedAsyncSuperHelper):2048&u.getNodeCheckFlags(n)&&e.addEmitHelper(g,e.asyncSuperHelper)),v=o,h=c,g}function q(t){r();var n=0,i=[],a=e.visitNode(t.body,E,e.isConciseBody);e.isBlock(a)&&(n=e.addPrologue(i,a.statements,!1,E)),e.addRange(i,W(void 0,t));var o=s();if(n>0||e.some(i)||e.some(o)){var c=e.convertToFunctionBody(a,!0);return e.insertStatementsAfterStandardPrologue(i,o),e.addRange(i,c.statements.slice(n)),e.updateBlock(c,e.setTextRange(e.createNodeArray(i),c.statements))}return a}function W(r,n){for(var i=0,a=n.parameters;i<a.length;i++){var o=a[i];if(16384&o.transformFlags){var s=e.getGeneratedNameForNode(o),c=e.flattenDestructuringBinding(o,E,t,1,s,!1,!0);if(e.some(c)){var u=e.createVariableStatement(void 0,e.createVariableDeclarationList(c));e.setEmitFlags(u,1048576),r=e.append(r,u)}}}return r}function H(t){return 102===t.expression.kind?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),t.name),t):t}function G(t){return 102===t.expression.kind?(r=t.argumentExpression,n=t,4096&x?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_superIndex"),void 0,[r]),"value"),n):e.setTextRange(e.createCall(e.createIdentifier("_superIndex"),void 0,[r]),n)):t;var r,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.createAssignHelper=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 };'}}(d||(d={})),function(e){e.transformES2019=function(t){return e.chainBundle((function(n){if(n.isDeclarationFile)return n;return e.visitEachChild(n,r,t)}));function r(n){if(0===(16&n.transformFlags))return n;switch(n.kind){case 280:return function(n){if(!n.variableDeclaration)return e.updateCatchClause(n,e.createVariableDeclaration(e.createTempVariable(void 0)),e.visitNode(n.block,r,e.isBlock));return e.visitEachChild(n,r,t)}(n);default:return e.visitEachChild(n,r,t)}}}}(d||(d={})),function(e){e.transformES2020=function(t){var r=t.hoistVariableDeclaration;return e.chainBundle((function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,n,t)}));function n(c){if(0===(8&c.transformFlags))return c;switch(c.kind){case 194:case 195:case 196:if(32&c.flags){var u=a(c,!1,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u}return e.visitEachChild(c,n,t);case 209:return 60===c.operatorToken.kind?function(t){var i=e.visitNode(t.left,n,e.isExpression),a=i;s(i)&&(a=e.createTempVariable(r),i=e.createAssignment(a,i));return e.createConditional(o(i,a),a,e.visitNode(t.right,n,e.isExpression))}(c):e.visitEachChild(c,n,t);case 203:return function(t){return e.isOptionalChain(e.skipParentheses(t.expression))?e.setOriginalNode(i(t.expression,!1,!0),t):e.updateDelete(t,e.visitNode(t.expression,n,e.isExpression))}(c);default:return e.visitEachChild(c,n,t)}}function i(o,c,u){switch(o.kind){case 200:return function(t,r,n){var a=i(t.expression,r,n);return e.isSyntheticReference(a)?e.createSyntheticReferenceExpression(e.updateParen(t,a.expression),a.thisArg):e.updateParen(t,a)}(o,c,u);case 194:case 195:return function(t,i,o){if(e.isOptionalChain(t))return a(t,i,o);var c,u=e.visitNode(t.expression,n,e.isExpression);return e.Debug.assertNotNode(u,e.isSyntheticReference),i&&(s(u)?(c=e.createTempVariable(r),u=e.createAssignment(c,u)):c=u),u=194===t.kind?e.updatePropertyAccess(t,u,e.visitNode(t.name,n,e.isIdentifier)):e.updateElementAccess(t,u,e.visitNode(t.argumentExpression,n,e.isExpression)),c?e.createSyntheticReferenceExpression(u,c):u}(o,c,u);case 196:return function(r,i){return e.isOptionalChain(r)?a(r,i,!1):e.visitEachChild(r,n,t)}(o,c);default:return e.visitNode(o,n,e.isExpression)}}function a(t,a,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=i(l,e.isCallChain(_[0]),!1),p=e.isSyntheticReference(d)?d.thisArg:void 0,f=e.isSyntheticReference(d)?d.expression:d,g=f;s(f)&&(g=e.createTempVariable(r),f=e.createAssignment(g,f));for(var m,y=g,v=0;v<_.length;v++){var h=_[v];switch(h.kind){case 194:case 195:v===_.length-1&&a&&(s(y)?(m=e.createTempVariable(r),y=e.createAssignment(m,y)):m=y),y=194===h.kind?e.createPropertyAccess(y,e.visitNode(h.name,n,e.isIdentifier)):e.createElementAccess(y,e.visitNode(h.argumentExpression,n,e.isExpression));break;case 196:y=0===v&&p?e.createFunctionCall(y,102===p.kind?e.createThis():p,e.visitNodes(h.arguments,n,e.isExpression)):e.createCall(y,void 0,e.visitNodes(h.arguments,n,e.isExpression))}e.setOriginalNode(y,h)}var b=c?e.createConditional(o(f,g,!0),e.createTrue(),e.createDelete(y)):e.createConditional(o(f,g,!0),e.createVoidZero(),y);return m?e.createSyntheticReferenceExpression(b,m):b}function o(t,r,n){return e.createBinary(e.createBinary(t,e.createToken(n?36:37),e.createNull()),e.createToken(n?56:55),e.createBinary(r,e.createToken(n?36:37),e.createVoidZero()))}function s(t){return!e.isIdentifier(t)&&104!==t.kind&&102!==t.kind}}}(d||(d={})),function(e){e.transformESNext=function(t){return e.chainBundle((function(n){if(n.isDeclarationFile)return n;return e.visitEachChild(n,r,t)}));function r(n){return 0===(4&n.transformFlags)?n:(n.kind,e.visitEachChild(n,r,t))}}}(d||(d={})),function(e){e.transformJsx=function(r){var n,i=r.getCompilerOptions();return e.chainBundle((function(t){if(t.isDeclarationFile)return t;n=t;var i=e.visitEachChild(t,a,r);return e.addEmitHelpers(i,r.readEmitHelpers()),i}));function a(t){return 2&t.transformFlags?function(t){switch(t.kind){case 266:return s(t,!1);case 267:return c(t,!1);case 270:return u(t,!1);case 276:return g(t);default:return e.visitEachChild(t,a,r)}}(t):t}function o(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=p(r,t.substr(n,i-n+1))),n=-1):e.isWhiteSpaceSingleLine(o)||(i=a,-1===n&&(n=a))}return-1!==n?p(r,t.substr(n)):r}(t.text);return void 0===r?void 0:e.createLiteral(r)}(t);case 276:return g(t);case 266:return s(t,!0);case 267:return c(t,!0);case 270:return u(t,!0);default:return e.Debug.failBadSyntaxKind(t)}}function s(e,t){return l(e.openingElement,e.children,t,e)}function c(e,t){return l(e,void 0,t,e)}function u(t,a){return function(t,a,s,c){var u=e.createExpressionForJsxFragment(r.getEmitResolver().getJsxFactoryEntity(n),i.reactNamespace,e.mapDefined(a,o),t,c);s&&e.startOnNewLine(u);return u}(t.openingFragment,t.children,a,t)}function l(t,a,s,c){var u,l=function t(r){if(266===r.kind)return t(r.openingElement);var n=r.tagName;return e.isIdentifier(n)&&e.isIntrinsicJsxName(n.escapedText)?e.createLiteral(e.idText(n)):e.createExpressionFromEntityName(n)}(t),p=t.attributes.properties;if(0===p.length)u=e.createNull();else{var f=e.flatten(e.spanMap(p,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,_):e.createObjectLiteral(e.map(t,d))})));e.isJsxSpreadAttribute(p[0])&&f.unshift(e.createObjectLiteral()),(u=e.singleOrUndefined(f))||(u=e.createAssignHelper(r,f))}var g=e.createExpressionForJsxElement(r.getEmitResolver().getJsxFactoryEntity(n),i.reactNamespace,l,u,e.mapDefined(a,o),t,c);return s&&e.startOnNewLine(g),g}function _(t){return e.visitNode(t.expression,a,e.isExpression)}function d(t){var r=function(t){var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:e.createLiteral(n)}(t),i=function(t){if(void 0===t)return e.createTrue();if(10===t.kind){var r=e.createLiteral(function(e){var t=f(e);return t===e?void 0:t}(t.text)||t.text);return r.singleQuote=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),e.setTextRange(r,t)}return 276===t.kind?void 0===t.expression?e.createTrue():g(t):e.Debug.failBadSyntaxKind(t)}(t.initializer);return e.createPropertyAssignment(r,i)}function p(e,t){var r=f(t);return void 0===e?r:e+" "+r}function f(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 g(t){return e.visitNode(t.expression,a,e.isExpression)}};var t=e.createMapFromTemplate({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830})}(d||(d={})),function(e){e.transformES2016=function(t){var r=t.hoistVariableDeclaration;return e.chainBundle((function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,n,t)}));function n(i){if(0===(128&i.transformFlags))return i;switch(i.kind){case 209:return function(i){switch(i.operatorToken.kind){case 66:return function(t){var i,a,o=e.visitNode(t.left,n,e.isExpression),s=e.visitNode(t.right,n,e.isExpression);if(e.isElementAccessExpression(o)){var c=e.createTempVariable(r),u=e.createTempVariable(r);i=e.setTextRange(e.createElementAccess(e.setTextRange(e.createAssignment(c,o.expression),o.expression),e.setTextRange(e.createAssignment(u,o.argumentExpression),o.argumentExpression)),o),a=e.setTextRange(e.createElementAccess(c,u),o)}else if(e.isPropertyAccessExpression(o)){c=e.createTempVariable(r);i=e.setTextRange(e.createPropertyAccess(e.setTextRange(e.createAssignment(c,o.expression),o.expression),o.name),o),a=e.setTextRange(e.createPropertyAccess(c,o.name),o)}else i=o,a=o;return e.setTextRange(e.createAssignment(i,e.createMathPow(a,s,t)),t)}(i);case 42:return function(t){var r=e.visitNode(t.left,n,e.isExpression),i=e.visitNode(t.right,n,e.isExpression);return e.createMathPow(r,i,t)}(i);default:return e.visitEachChild(i,n,t)}}(i);default:return e.visitEachChild(i,n,t)}}}}(d||(d={})),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,s,c,u=t.startLexicalEnvironment,l=t.resumeLexicalEnvironment,_=t.endLexicalEnvironment,d=t.hoistVariableDeclaration,p=t.getCompilerOptions(),f=t.getEmitResolver(),g=t.onSubstituteNode,m=t.onEmitNode;function y(t){a=e.append(a,e.createVariableDeclaration(t))}return t.onEmitNode=function(t,r,n){if(1&c&&e.isFunctionLike(r)){var i=v(16286,8&e.getEmitFlags(r)?81:65);return m(t,r,n),void h(i,0,0)}m(t,r,n)},t.onSubstituteNode=function(t,r){if(r=g(t,r),1===t)return function(t){switch(t.kind){case 75:return function(t){if(2&c&&!e.isInternalName(t)){var r=f.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(e.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 104:return function(t){if(1&c&&16&i)return e.setTextRange(e.createFileLevelUniqueName("_this"),t);return t}(t)}return t}(r);if(e.isIdentifier(r))return function(t){if(2&c&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 191:case 245:case 248:case 242:return e.parent.name===e&&f.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(e.getGeneratedNameForNode(r),t)}return t}(r);return r},e.chainBundle((function(o){if(o.isDeclarationFile)return o;r=o,n=o.text;var s=function(t){var r=v(8064,64),n=[],i=[];u();var o=e.addStandardPrologue(n,t.statements,!1);o=e.addCustomPrologue(n,t.statements,o,x),e.addRange(i,e.visitNodes(t.statements,x,e.isStatement,o)),a&&i.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(a)));return e.mergeLexicalEnvironment(n,_()),w(n,t),h(r,0,0),e.updateSourceFileNode(t,e.setTextRange(e.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 v(e,t){var r=i;return i=16383&(i&~e|t),r}function h(e,t,r){i=-16384&(i&~t|r)|e}function b(e){return 0!==(8192&i)&&235===e.kind&&!e.expression}function x(n){return function(t){return 0!==(256&t.transformFlags)||void 0!==s||8192&i&&(e.isStatement(t)||223===t.kind)||e.isIterationStatement(t,!1)&&ae(t)||0!==(33554432&e.getEmitFlags(t))}(n)?function(n){switch(n.kind){case 120:return;case 245:return function(t){var r=e.createVariableDeclaration(e.getLocalName(t,!0),void 0,C(t));e.setOriginalNode(r,t);var n=[],i=e.createVariableStatement(void 0,e.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasModifier(t,1)){var a=e.hasModifier(t,512)?e.createExportDefault(e.getLocalName(t)):e.createExternalModuleExport(e.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);0===(4194304&o)&&(n.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o));return e.singleOrMany(n)}(n);case 214:return function(e){return C(e)}(n);case 156:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 244:return function(r){var n=s;s=void 0;var a=v(16286,65),o=e.visitParameterList(r.parameters,x,t),c=J(r),u=16384&i?e.getLocalName(r):r.name;return h(a,49152,0),s=n,e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,x,e.isModifier),r.asteriskToken,u,void 0,o,void 0,c)}(n);case 202:return function(r){4096&r.transformFlags&&(i|=32768);var n=s;s=void 0;var a=v(15232,66),o=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,x,t),void 0,J(r));e.setTextRange(o,r),e.setOriginalNode(o,r),e.setEmitFlags(o,8),32768&i&&Ne();return h(a,0,0),s=n,o}(n);case 201:return function(r){var n=262144&e.getEmitFlags(r)?v(16278,69):v(16286,65),a=s;s=void 0;var o=e.visitParameterList(r.parameters,x,t),c=J(r),u=16384&i?e.getLocalName(r):r.name;return h(n,49152,0),s=a,e.updateFunctionExpression(r,void 0,r.asteriskToken,u,void 0,o,void 0,c)}(n);case 242:return V(n);case 75:return function(t){if(!s)return t;if(e.isGeneratedIdentifier(t))return t;if("arguments"!==t.escapedText||!f.isArgumentsLocalBinding(t))return t;return s.argumentsName||(s.argumentsName=e.createUniqueName("arguments"))}(n);case 243:return function(r){if(3&r.flags||131072&r.transformFlags){3&r.flags&&Ee();var n=e.flatMap(r.declarations,1&r.flags?K:V),i=e.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,x,t)}(n);case 237:return function(r){if(void 0!==s){var n=s.allowedNonLabeledJumps;s.allowedNonLabeledJumps|=2;var i=e.visitEachChild(r,x,t);return s.allowedNonLabeledJumps=n,i}return e.visitEachChild(r,x,t)}(n);case 251:return function(r){var n=v(7104,0),i=e.visitEachChild(r,x,t);return h(n,0,0),i}(n);case 223:return function(r,n){if(n)return e.visitEachChild(r,x,t);var a=256&i?v(7104,512):v(6976,128),o=e.visitEachChild(r,x,t);return h(a,0,0),o}(n,!1);case 234:case 233:return function(r){if(s){var n=234===r.kind?2:4;if(!(r.label&&s.labels&&s.labels.get(e.idText(r.label))||!r.label&&s.allowedNonLabeledJumps&n)){var i=void 0,a=r.label;a?234===r.kind?(i="break-"+a.escapedText,de(s,!0,e.idText(a),i)):(i="continue-"+a.escapedText,de(s,!1,e.idText(a),i)):234===r.kind?(s.nonLocalJumps|=2,i="break"):(s.nonLocalJumps|=4,i="continue");var o=e.createLiteral(i);if(s.loopOutParameters.length){for(var c=s.loopOutParameters,u=void 0,l=0;l<c.length;l++){var _=le(c[l],1);u=0===l?_:e.createBinary(u,27,_)}o=e.createBinary(u,27,o)}return e.createReturn(o)}}return e.visitEachChild(r,x,t)}(n);case 238:return function(t){s&&!s.labels&&(s.labels=e.createMap());var r=e.unwrapInnermostStatementOfLabel(t,s&&q);return e.isIterationStatement(r,!1)?function(e,t){switch(e.kind){case 228:case 229:return G(e,t);case 230:return Q(e,t);case 231:return X(e,t);case 232:return Y(e,t)}}(r,t):e.restoreEnclosingLabel(e.visitNode(r,x,e.isStatement,e.liftToBlock),t,s&&W)}(n);case 228:case 229:return G(n,void 0);case 230:return Q(n,void 0);case 231:return X(n,void 0);case 232:return Y(n,void 0);case 226:return function(r){switch(r.expression.kind){case 200:return e.updateExpressionStatement(r,z(r.expression,!1));case 209:return e.updateExpressionStatement(r,U(r.expression,!1))}return e.visitEachChild(r,x,t)}(n);case 193:return function(r){for(var n=r.properties,a=n.length,o=a,s=a,c=0;c<a;c++){var u=n[c];if(262144&u.transformFlags&&4&i&&c<s&&(s=c),154===u.name.kind){o=c;break}}if(o!==a){s<o&&(o=s);var l=e.createTempVariable(d),_=[],p=e.createAssignment(l,e.setEmitFlags(e.createObjectLiteral(e.visitNodes(n,x,e.isObjectLiteralElementLike,0,o),r.multiLine),65536));return r.multiLine&&e.startOnNewLine(p),_.push(p),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 163:case 164:var u=e.getAllAccessorDeclarations(r.properties,c);c===u.firstAccessor&&t.push(B(n,u,r,!!r.multiLine));break;case 161:t.push(ye(c,n,r,r.multiLine));break;case 281:t.push(ge(c,n,r.multiLine));break;case 282:t.push(me(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r)}}}(_,r,l,o),_.push(r.multiLine?e.startOnNewLine(e.getMutableClone(l)):l),e.inlineExpressions(_)}return e.visitEachChild(r,x,t)}(n);case 280:return function(r){var n,i=v(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=e.createTempVariable(void 0),s=e.createVariableDeclaration(a);e.setTextRange(s,r.variableDeclaration);var c=e.flattenDestructuringBinding(r.variableDeclaration,x,t,0,a),u=e.createVariableDeclarationList(c);e.setTextRange(u,r.variableDeclaration);var l=e.createVariableStatement(void 0,u);n=e.updateCatchClause(r,s,function(t,r){var n=e.visitNodes(t.statements,x,e.isStatement);return e.updateBlock(t,o([r],n))}(r.block,l))}else n=e.visitEachChild(r,x,t);return h(i,0,0),n}(n);case 282:return function(t){return e.setTextRange(e.createPropertyAssignment(t.name,e.getSynthesizedClone(t.name)),t)}(n);case 154:return function(r){return e.visitEachChild(r,x,t)}(n);case 192:return function(r){if(e.some(r.elements,e.isSpreadElement))return he(r.elements,!0,!!r.multiLine,!!r.elements.hasTrailingComma);return e.visitEachChild(r,x,t)}(n);case 196: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=s;s=void 0;var a=e.visitNodes(r.statements,x,e.isStatement);s=i;var o=e.filter(a,n),c=e.filter(a,(function(e){return!n(e)})),u=e.cast(e.first(o),e.isVariableStatement).declarationList.declarations[0],l=e.skipOuterExpressions(u.initializer),_=e.tryCast(l,e.isAssignmentExpression),d=e.cast(_?e.skipOuterExpressions(_.right):l,e.isCallExpression),p=e.cast(e.skipOuterExpressions(d.expression),e.isFunctionExpression),f=p.body.statements,g=0,m=-1,y=[];if(_){var v=e.tryCast(f[g],e.isExpressionStatement);v&&(y.push(v),g++),y.push(f[g]),g++,y.push(e.createExpressionStatement(e.createAssignment(_.left,e.cast(u.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(f,m));)m--;e.addRange(y,f,g,m),m<-1&&e.addRange(y,f,m+1);return e.addRange(y,c),e.addRange(y,o,1),e.recreateOuterExpressions(t.expression,e.recreateOuterExpressions(u.initializer,e.recreateOuterExpressions(_&&_.right,e.updateCall(d,e.recreateOuterExpressions(d.expression,e.updateFunctionExpression(p,void 0,void 0,void 0,void 0,p.parameters,void 0,e.updateBlock(p.body,y))),void 0,d.arguments))))}(t);var r=e.skipOuterExpressions(t.expression);if(102===r.kind||e.isSuperProperty(r)||e.some(t.arguments,e.isSpreadElement))return ve(t,!0);return e.updateCall(t,e.visitNode(t.expression,D,e.isExpression),void 0,e.visitNodes(t.arguments,x,e.isExpression))}(n);case 197:return function(r){if(e.some(r.arguments,e.isSpreadElement)){var n=e.createCallBinding(e.createPropertyAccess(r.expression,"bind"),d),i=n.target,a=n.thisArg;return e.createNew(e.createFunctionApply(e.visitNode(i,x,e.isExpression),a,he(e.createNodeArray(o([e.createVoidZero()],r.arguments)),!1,!1,!1)),void 0,[])}return e.visitEachChild(r,x,t)}(n);case 200:return z(n,!0);case 209:return U(n,!0);case 14:case 15:case 16:case 17:return function(t){return e.setTextRange(e.createLiteral(t.text),t)}(n);case 10:return function(t){if(t.hasExtendedUnicodeEscape)return e.setTextRange(e.createLiteral(t.text),t);return t}(n);case 8:return function(t){if(384&t.numericLiteralFlags)return e.setTextRange(e.createNumericLiteral(t.text),t);return t}(n);case 198:return function(n){return e.processTaggedTemplateExpression(t,n,x,r,y,e.ProcessLevel.All)}(n);case 211: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(e.createLiteral(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,x,e.isExpression)),0!==a.literal.text.length&&t.push(e.createLiteral(a.literal.text))}}(r,t);var n=e.reduceLeft(r,e.createAdd);e.nodeIsSynthesized(n)&&(n.pos=t.pos,n.end=t.end);return n}(n);case 212:return function(r){return e.visitEachChild(r,x,t)}(n);case 213:return function(t){return e.visitNode(t.expression,x,e.isExpression)}(n);case 102:return ke(!1);case 104:return function(t){2&i&&(i|=32768);if(s)return 2&i?(s.containsLexicalThis=!0,t):s.thisName||(s.thisName=e.createUniqueName("this"));return t}(n);case 219:return function(t){if(99===t.keywordToken&&"target"===t.name.escapedText)return i|=16384,e.createFileLevelUniqueName("_newTarget");return t}(n);case 161:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=j(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(e.createPropertyAssignment(t.name,r),t)}(n);case 163:case 164:return function(r){e.Debug.assert(!e.isComputedPropertyName(r.name));var n=s;s=void 0;var i,a=v(16286,65),o=e.visitParameterList(r.parameters,x,t),c=J(r);i=163===r.kind?e.updateGetAccessor(r,r.decorators,r.modifiers,r.name,o,r.type,c):e.updateSetAccessor(r,r.decorators,r.modifiers,r.name,o,c);return h(a,49152,0),s=n,i}(n);case 225:return function(r){var n,i=v(0,e.hasModifier(r,1)?32:0);if(s&&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,o=0,c=r.declarationList.declarations;o<c.length;o++){var u=c[o];if(se(s,u),u.initializer){var l=void 0;e.isBindingPattern(u.name)?l=e.flattenDestructuringAssignment(u,x,t,0):(l=e.createBinary(u.name,62,e.visitNode(u.initializer,x,e.isExpression)),e.setTextRange(l,u)),a=e.append(a,l)}}n=a?e.setTextRange(e.createExpressionStatement(e.inlineExpressions(a)),r):void 0}else n=e.visitEachChild(r,x,t);return h(i,0,0),n}(n);case 235:return function(r){if(s)return s.nonLocalJumps|=8,b(r)&&(r=S(r)),e.createReturn(e.createObjectLiteral([e.createPropertyAssignment(e.createIdentifier("value"),r.expression?e.visitNode(r.expression,x,e.isExpression):e.createVoidZero())]));if(b(r))return S(r);return e.visitEachChild(r,x,t)}(n);default:return e.visitEachChild(n,x,t)}}(n):n}function D(e){return 102===e.kind?ke(!0):x(e)}function S(t){return e.setOriginalNode(e.createReturn(e.createFileLevelUniqueName("_this")),t)}function C(a){a.name&&Ee();var o=e.getClassExtendsHeritageElement(a),c=e.createFunctionExpression(void 0,void 0,void 0,void 0,o?[e.createParameter(void 0,void 0,void 0,e.createFileLevelUniqueName("_super"))]:[],void 0,function(a,o){var c=[];u(),function(r,n,i){i&&r.push(e.setTextRange(e.createExpressionStatement(function(t,r){return t.requestEmitHelper(e.extendsHelper),e.createCall(e.getUnscopedHelperName("__extends"),void 0,[r,e.createFileLevelUniqueName("_super")])}(t,e.getInternalName(n))),i))}(c,a,o),function(r,n,a){var o=s;s=void 0;var c=v(16278,73),u=e.getFirstConstructorWithBody(n),d=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)||226!==n.kind)return!1;var i=n.expression;if(!e.nodeIsSynthesized(i)||196!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||102!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||213!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}(u,void 0!==a),p=e.createFunctionDeclaration(void 0,void 0,void 0,e.getInternalName(n),void 0,function(r,n){return e.visitParameterList(r&&!n?r.parameters:void 0,x,t)||[]}(u,d),void 0,function(t,r,n,a){var o=!!n&&100!==e.skipOuterExpressions(n.expression).kind;if(!t)return function(t,r){var n=[];l(),e.mergeLexicalEnvironment(n,_()),r&&n.push(e.createReturn(k()));var i=e.createNodeArray(n);e.setTextRange(i,t.members);var a=e.createBlock(i,!0);return e.setTextRange(a,t),e.setEmitFlags(a,1536),a}(r,o);var s=[],c=[];l();var u,d=0;a||(d=e.addStandardPrologue(s,t.body.statements,!1));N(c,t),P(c,t,a),a||(d=e.addCustomPrologue(c,t.body.statements,d,x));if(a)u=k();else if(o&&d<t.body.statements.length){var p=t.body.statements[d];e.isExpressionStatement(p)&&e.isSuperCall(p.expression)&&(u=function(e){return ve(e,!1)}(p.expression))}u&&(i|=8192,d++);if(e.addRange(c,e.visitNodes(t.body.statements,x,e.isStatement,d)),e.mergeLexicalEnvironment(s,_()),O(s,t,!1),o)if(!u||d!==t.body.statements.length||4096&t.body.transformFlags)I(c,t,u||T()),function t(r){if(235===r.kind)return!0;if(227===r.kind){var n=r;if(n.elseStatement)return t(n.thenStatement)&&t(n.elseStatement)}else if(223===r.kind){var i=e.lastOrUndefined(r.statements);if(i&&t(i))return!0}return!1}(t.body)||c.push(e.createReturn(e.createFileLevelUniqueName("_this")));else{var f=e.cast(e.cast(u,e.isBinaryExpression).left,e.isCallExpression),g=e.createReturn(u);e.setCommentRange(g,e.getCommentRange(f)),e.setEmitFlags(f,1536),c.push(g)}else w(s,t);var m=e.createBlock(e.setTextRange(e.createNodeArray(e.concatenate(s,c)),t.body.statements),!0);return e.setTextRange(m,t.body),m}(u,n,a,d));e.setTextRange(p,u||n),a&&e.setEmitFlags(p,8);r.push(p),h(c,49152,0),s=o}(c,a,o),function(t,n){for(var i=0,a=n.members;i<a.length;i++){var o=a[i];switch(o.kind){case 222:t.push(M(o));break;case 161:t.push(L(Ae(n,o),o,n));break;case 163:case 164:var s=e.getAllAccessorDeclarations(n.members,o);o===s.firstAccessor&&t.push(R(Ae(n,o),s,n));break;case 162:break;default:e.Debug.failBadSyntaxKind(o,r&&r.fileName)}}}(c,a);var d=e.createTokenRange(e.skipTrivia(n,a.members.end),19),p=e.getInternalName(a),f=e.createPartiallyEmittedExpression(p);f.end=d.end,e.setEmitFlags(f,1536);var g=e.createReturn(f);g.pos=d.pos,e.setEmitFlags(g,1920),c.push(g),e.insertStatementsAfterStandardPrologue(c,_());var m=e.createBlock(e.setTextRange(e.createNodeArray(c),a.members),!0);return e.setEmitFlags(m,1536),m}(a,o));e.setEmitFlags(c,65536&e.getEmitFlags(a)|524288);var d=e.createPartiallyEmittedExpression(c);d.end=a.end,e.setEmitFlags(d,1536);var p=e.createPartiallyEmittedExpression(d);p.end=e.skipTrivia(n,a.pos),e.setEmitFlags(p,1536);var f=e.createParen(e.createCall(p,void 0,o?[e.visitNode(o.expression,x,e.isExpression)]:[]));return e.addSyntheticLeadingComment(f,3,"* @class "),f}function T(){return e.setEmitFlags(e.createThis(),4)}function k(){return e.createLogicalOr(e.createLogicalAnd(e.createStrictInequality(e.createFileLevelUniqueName("_super"),e.createNull()),e.createFunctionApply(e.createFileLevelUniqueName("_super"),T(),e.createIdentifier("arguments"))),T())}function E(t){return void 0!==t.initializer||e.isBindingPattern(t.name)}function N(t,r){if(!e.some(r.parameters,E))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=A(t,o,s,c)||n:c&&(F(t,o,s,c),n=!0))}return n}function A(r,n,i,a){return i.elements.length>0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,x,t,0,e.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(e.createExpressionStatement(e.createAssignment(e.getGeneratedNameForNode(n),e.visitNode(a,x,e.isExpression))),1048576)),!0)}function F(t,r,n,i){i=e.visitNode(i,x,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(n),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createExpressionStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(n),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 P(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=75===o.name.kind?e.getMutableClone(o.name):e.createTempVariable(void 0);e.setEmitFlags(s,48);var c=75===o.name.kind?e.getSynthesizedClone(o.name):s,u=n.parameters.length-1,l=e.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(s,void 0,e.createArrayLiteral([]))])),o),1048576));var _=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(l,void 0,e.createLiteral(u))]),o),e.setTextRange(e.createLessThan(l,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),o),e.setTextRange(e.createPostfixIncrement(l),o),e.createBlock([e.startOnNewLine(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.createElementAccess(c,0===u?l:e.createSubtract(l,e.createLiteral(u))),e.createElementAccess(e.createIdentifier("arguments"),l))),o))]));return e.setEmitFlags(_,1048576),e.startOnNewLine(_),a.push(_),75!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(o,x,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function w(t,r){return!!(32768&i&&202!==r.kind)&&(I(t,r,e.createThis()),!0)}function I(t,r,n){Ne();var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_this"),void 0,n)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),e.insertStatementAfterCustomPrologue(t,i)}function O(t,r,n){if(16384&i){var a=void 0;switch(r.kind){case 202:return t;case 161:case 163:case 164:a=e.createVoidZero();break;case 162:a=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 244:case 201:a=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),98,e.getLocalName(r))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_newTarget"),void 0,a)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function M(t){return e.setTextRange(e.createEmptyStatement(),t)}function L(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=j(n,n,void 0,i),u=e.visitNode(n.name,x,e.isPropertyName);if(!e.isPrivateIdentifier(u)&&t.getCompilerOptions().useDefineForClassFields){var l=e.isComputedPropertyName(u)?u.expression:e.isIdentifier(u)?e.createStringLiteral(e.unescapeLeadingUnderscores(u.escapedText)):u;a=e.createObjectDefinePropertyCall(r,l,e.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var _=e.createMemberAccessForPropertyName(r,u,n.name);a=e.createAssignment(_,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var d=e.setTextRange(e.createExpressionStatement(a),n);return e.setOriginalNode(d,n),e.setCommentRange(d,o),e.setEmitFlags(d,48),d}function R(t,r,n){var i=e.createExpressionStatement(B(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function B(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.getMutableClone(t);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var u=e.visitNode(a.name,x,e.isPropertyName);if(e.isPrivateIdentifier(u))return e.Debug.failBadSyntaxKind(u,"Encountered unhandled private identifier while transforming ES2015.");var l=e.createExpressionForPropertyName(u);e.setEmitFlags(l,1552),e.setSourceMapRange(l,a.name);var _=[];if(o){var d=j(o,void 0,void 0,n);e.setSourceMapRange(d,e.getSourceMapRange(o)),e.setEmitFlags(d,512);var p=e.createPropertyAssignment("get",d);e.setCommentRange(p,e.getCommentRange(o)),_.push(p)}if(s){var f=j(s,void 0,void 0,n);e.setSourceMapRange(f,e.getSourceMapRange(s)),e.setEmitFlags(f,512);var g=e.createPropertyAssignment("set",f);e.setCommentRange(g,e.getCommentRange(s)),_.push(g)}_.push(e.createPropertyAssignment("enumerable",o||s?e.createFalse():e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var m=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[c,l,e.createObjectLiteral(_,!0)]);return i&&e.startOnNewLine(m),m}function j(r,n,a,o){var c=s;s=void 0;var u=o&&e.isClassLike(o)&&!e.hasModifier(r,32)?v(16286,73):v(16286,65),l=e.visitParameterList(r.parameters,x,t),_=J(r);return 16384&i&&!a&&(244===r.kind||201===r.kind)&&(a=e.getGeneratedNameForNode(r)),h(u,49152,0),s=c,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,r.asteriskToken,a,void 0,l,void 0,_),n),r)}function J(t){var n,i,a,o=!1,s=!1,c=[],u=[],d=t.body;if(l(),e.isBlock(d)&&(a=e.addStandardPrologue(c,d.statements,!1),a=e.addCustomPrologue(u,d.statements,a,x,e.isHoistedFunction),a=e.addCustomPrologue(u,d.statements,a,x,e.isHoistedVariableStatement)),o=N(u,t)||o,o=P(u,t,!1)||o,e.isBlock(d))a=e.addCustomPrologue(u,d.statements,a,x),n=d.statements,e.addRange(u,e.visitNodes(d.statements,x,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(202===t.kind),n=e.moveRangeEnd(d,-1);var p=t.equalsGreaterThanToken;e.nodeIsSynthesized(p)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(p,d,r)?s=!0:o=!0);var f=e.visitNode(d,x,e.isExpression),g=e.createReturn(f);e.setTextRange(g,d),e.moveSyntheticComments(g,d),e.setEmitFlags(g,1440),u.push(g),i=d}if(e.mergeLexicalEnvironment(c,_()),O(c,t,!1),w(c,t),e.some(c)&&(o=!0),u.unshift.apply(u,c),e.isBlock(d)&&e.arrayIsEqualTo(u,d.statements))return d;var m=e.createBlock(e.setTextRange(e.createNodeArray(u),n),o);return e.setTextRange(m,t.body),!o&&s&&e.setEmitFlags(m,1),i&&e.setTokenSourceMapRange(m,19,i),e.setOriginalNode(m,t.body),m}function z(r,n){if(!n)switch(r.expression.kind){case 200:return e.updateParen(r,z(r.expression,!1));case 209:return e.updateParen(r,U(r.expression,!1))}return e.visitEachChild(r,x,t)}function U(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,x,t,0,n):e.visitEachChild(r,x,t)}function K(r){var n=r.name;if(e.isBindingPattern(n))return V(r);if(!r.initializer&&function(e){var t=f.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!==(64&i)||r&&n&&0!==(512&i))&&0===(4096&i)&&(!f.isDeclarationWithCollidingName(e)||n&&!r&&0===(6144&i))}(r)){var a=e.getMutableClone(r);return a.initializer=e.createVoidZero(),a}return e.visitEachChild(r,x,t)}function V(r){var n,i=v(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,x,t,0,void 0,0!==(32&i)):e.visitEachChild(r,x,t),h(i,0,0),n}function q(t){s.labels.set(e.idText(t.label),!0)}function W(t){s.labels.set(e.idText(t.label),!1)}function H(r,n,a,o,c){var l=v(r,n),d=function(r,n,a,o){if(!ae(r)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(r,n,void 0,a):e.restoreEnclosingLabel(e.visitEachChild(r,x,t),n,s&&W);return s&&(s.allowedNonLabeledJumps=c),l}var d=function(t){var r;switch(t.kind){case 230:case 231:case 232:var n=t.initializer;n&&243===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var o=ne(t),c=0,u=r.declarations;c<u.length;c++){var l=u[c];fe(t,l,i,a,o)}var _={loopParameters:i,loopOutParameters:a};s&&(s.argumentsName&&(_.argumentsName=s.argumentsName),s.thisName&&(_.thisName=s.thisName),s.hoistedLocalVariables&&(_.hoistedLocalVariables=s.hoistedLocalVariables));return _}(r),p=[],f=s;s=d;var g,m=ne(r)?function(t,r){var n=e.createUniqueName("_loop_init"),a=0!==(262144&t.initializer.transformFlags),o=0;r.containsLexicalThis&&(o|=8);a&&4&i&&(o|=262144);var s=[];s.push(e.createVariableStatement(void 0,t.initializer)),_e(r.loopOutParameters,2,1,s);var c=e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(n,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,a?e.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(e.createBlock(s,!0),x,e.isBlock)),o))]),2097152)),u=e.createVariableDeclarationList(e.map(r.loopOutParameters,ue));return{functionName:n,containsYield:a,functionDeclaration:c,part:u}}(r,d):void 0,y=oe(r)?function(t,r,n){var a=e.createUniqueName("_loop");u();var o=e.visitNode(t.statement,x,e.isStatement,e.liftToBlock),s=_(),c=[];(ie(t)||function(t){return e.isForStatement(t)&&!!t.incrementor&&re(t.incrementor)}(t))&&(r.conditionVariable=e.createUniqueName("inc"),c.push(e.createIf(r.conditionVariable,e.createStatement(e.visitNode(t.incrementor,x,e.isExpression)),e.createStatement(e.createAssignment(r.conditionVariable,e.createTrue())))),ie(t)&&c.push(e.createIf(e.createPrefix(53,e.visitNode(t.condition,x,e.isExpression)),e.visitNode(e.createBreak(),x,e.isStatement))));e.isBlock(o)?e.addRange(c,o.statements):c.push(o);_e(r.loopOutParameters,1,1,c),e.insertStatementsAfterStandardPrologue(c,s);var l=e.createBlock(c,!0);e.isBlock(o)&&e.setOriginalNode(l,o);var d=0!==(262144&t.statement.transformFlags),p=0;r.containsLexicalThis&&(p|=8);d&&0!==(4&i)&&(p|=262144);var f=e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,d?e.createToken(41):void 0,void 0,void 0,r.loopParameters,void 0,l),p))]),2097152)),g=function(t,r,n,i){var a=[],o=!(-5&r.nonLocalJumps)&&!r.labeledNonLocalBreaks&&!r.labeledNonLocalContinues,s=e.createCall(t,void 0,e.map(r.loopParameters,(function(e){return e.name}))),c=i?e.createYield(e.createToken(41),e.setEmitFlags(s,8388608)):s;if(o)a.push(e.createExpressionStatement(c)),_e(r.loopOutParameters,1,0,a);else{var u=e.createUniqueName("state"),l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(u,void 0,c)]));if(a.push(l),_e(r.loopOutParameters,1,0,a),8&r.nonLocalJumps){var _=void 0;n?(n.nonLocalJumps|=8,_=e.createReturn(u)):_=e.createReturn(e.createPropertyAccess(u,"value")),a.push(e.createIf(e.createBinary(e.createTypeOf(u),36,e.createLiteral("object")),_))}if(2&r.nonLocalJumps&&a.push(e.createIf(e.createBinary(u,36,e.createLiteral("break")),e.createBreak())),r.labeledNonLocalBreaks||r.labeledNonLocalContinues){var d=[];pe(r.labeledNonLocalBreaks,!0,u,n,d),pe(r.labeledNonLocalContinues,!1,u,n,d),a.push(e.createSwitch(u,e.createCaseBlock(d)))}}return a}(a,r,n,d);return{functionName:a,containsYield:d,functionDeclaration:f,part:g}}(r,d,f):void 0;s=f,m&&p.push(m.functionDeclaration);y&&p.push(y.functionDeclaration);(function(t,r,n){var i;r.argumentsName&&(n?n.argumentsName=r.argumentsName:(i||(i=[])).push(e.createVariableDeclaration(r.argumentsName,void 0,e.createIdentifier("arguments"))));r.thisName&&(n?n.thisName=r.thisName:(i||(i=[])).push(e.createVariableDeclaration(r.thisName,void 0,e.createIdentifier("this"))));if(r.hoistedLocalVariables)if(n)n.hoistedLocalVariables=r.hoistedLocalVariables;else{i||(i=[]);for(var a=0,o=r.hoistedLocalVariables;a<o.length;a++){var s=o[a];i.push(e.createVariableDeclaration(s))}}if(r.loopOutParameters.length){i||(i=[]);for(var c=0,u=r.loopOutParameters;c<u.length;c++){var l=u[c];i.push(e.createVariableDeclaration(l.outParamName))}}r.conditionVariable&&(i||(i=[]),i.push(e.createVariableDeclaration(r.conditionVariable,void 0,e.createFalse())));i&&t.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(i)))})(p,d,f),m&&p.push(function(t,r){var n=e.createCall(t,void 0,[]),i=r?e.createYield(e.createToken(41),e.setEmitFlags(n,8388608)):n;return e.createStatement(i)}(m.functionName,m.containsYield));if(y)if(o)g=o(r,n,y.part,a);else{var v=ce(r,m,e.createBlock(y.part,!0));e.aggregateTransformFlags(v),g=e.restoreEnclosingLabel(v,n,s&&W)}else{var h=ce(r,m,e.visitNode(r.statement,x,e.isStatement,e.liftToBlock));e.aggregateTransformFlags(h),g=e.restoreEnclosingLabel(h,n,s&&W)}return p.push(g),p}(a,o,l,c);return h(l,0,0),d}function G(e,t){return H(0,1280,e,t)}function Q(e,t){return H(5056,3328,e,t)}function X(e,t){return H(3008,5376,e,t)}function Y(e,t){return H(3008,5376,e,t,p.downlevelIteration?te:ee)}function Z(r,n,i){var a=[],o=r.initializer;if(e.isVariableDeclarationList(o)){3&r.initializer.flags&&Ee();var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var c=e.flattenDestructuringBinding(s,x,t,0,n),u=e.setTextRange(e.createVariableDeclarationList(c),r.initializer);e.setOriginalNode(u,r.initializer),e.setSourceMapRange(u,e.createRange(c[0].pos,e.last(c).end)),a.push(e.createVariableStatement(void 0,u))}else a.push(e.setTextRange(e.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(s?s.name:e.createTempVariable(void 0),void 0,n)]),e.moveRangePos(o,-1)),o)),e.moveRangeEnd(o,-1)))}else{var l=e.createAssignment(o,n);e.isDestructuringAssignment(l)?(e.aggregateTransformFlags(l),a.push(e.createExpressionStatement(U(l,!1)))):(l.end=o.end,a.push(e.setTextRange(e.createExpressionStatement(e.visitNode(l,x,e.isExpression)),e.moveRangeEnd(o,-1))))}if(i)return $(e.addRange(a,i));var _=e.visitNode(r.statement,x,e.isStatement,e.liftToBlock);return e.isBlock(_)?e.updateBlock(_,e.setTextRange(e.createNodeArray(e.concatenate(a,_.statements)),_.statements)):(a.push(_),$(a))}function $(t){return e.setEmitFlags(e.createBlock(e.createNodeArray(t),!0),432)}function ee(t,r,n){var i=e.visitNode(t.expression,x,e.isExpression),a=e.createLoopVariable(),o=e.isIdentifier(i)?e.getGeneratedNameForNode(i):e.createTempVariable(void 0);e.setEmitFlags(i,48|e.getEmitFlags(i));var c=e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(a,void 0,e.createLiteral(0)),e.moveRangePos(t.expression,-1)),e.setTextRange(e.createVariableDeclaration(o,void 0,i),t.expression)]),t.expression),2097152),e.setTextRange(e.createLessThan(a,e.createPropertyAccess(o,"length")),t.expression),e.setTextRange(e.createPostfixIncrement(a),t.expression),Z(t,e.createElementAccess(o,a),n)),t);return e.setEmitFlags(c,256),e.setTextRange(c,t),e.restoreEnclosingLabel(c,r,s&&W)}function te(r,n,i,a){var o=e.visitNode(r.expression,x,e.isExpression),c=e.isIdentifier(o)?e.getGeneratedNameForNode(o):e.createTempVariable(void 0),u=e.isIdentifier(o)?e.getGeneratedNameForNode(c):e.createTempVariable(void 0),l=e.createUniqueName("e"),_=e.getGeneratedNameForNode(l),p=e.createTempVariable(void 0),f=e.createValuesHelper(t,o,r.expression),g=e.createCall(e.createPropertyAccess(c,"next"),void 0,[]);d(l),d(p);var m=1024&a?e.inlineExpressions([e.createAssignment(l,e.createVoidZero()),f]):f,y=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(c,void 0,m),r.expression),e.createVariableDeclaration(u,void 0,g)]),r.expression),2097152),e.createLogicalNot(e.createPropertyAccess(u,"done")),e.createAssignment(u,g),Z(r,e.createPropertyAccess(u,"value"),i)),r),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(y,n,s&&W)]),e.createCatchClause(e.createVariableDeclaration(_),e.setEmitFlags(e.createBlock([e.createExpressionStatement(e.createAssignment(l,e.createObjectLiteral([e.createPropertyAssignment("error",_)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(u,e.createLogicalNot(e.createPropertyAccess(u,"done"))),e.createAssignment(p,e.createPropertyAccess(c,"return"))),e.createExpressionStatement(e.createFunctionCall(p,c,[]))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(l,e.createThrow(e.createPropertyAccess(l,"error"))),1)]),1))]))}function re(e){return 0!==(131072&f.getNodeCheckFlags(e))}function ne(t){return e.isForStatement(t)&&!!t.initializer&&re(t.initializer)}function ie(t){return e.isForStatement(t)&&!!t.condition&&re(t.condition)}function ae(e){return oe(e)||ne(e)}function oe(e){return 0!==(65536&f.getNodeCheckFlags(e))}function se(t,r){t.hoistedLocalVariables||(t.hoistedLocalVariables=[]),function r(n){if(75===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 ce(t,r,n){switch(t.kind){case 230:return function(t,r,n){var i=t.condition&&re(t.condition),a=i||t.incrementor&&re(t.incrementor);return e.updateFor(t,e.visitNode(r?r.part:t.initializer,x,e.isForInitializer),e.visitNode(i?void 0:t.condition,x,e.isExpression),e.visitNode(a?void 0:t.incrementor,x,e.isExpression),n)}(t,r,n);case 231:return function(t,r){return e.updateForIn(t,e.visitNode(t.initializer,x,e.isForInitializer),e.visitNode(t.expression,x,e.isExpression),r)}(t,n);case 232:return function(t,r){return e.updateForOf(t,void 0,e.visitNode(t.initializer,x,e.isForInitializer),e.visitNode(t.expression,x,e.isExpression),r)}(t,n);case 228:return function(t,r){return e.updateDo(t,r,e.visitNode(t.expression,x,e.isExpression))}(t,n);case 229:return function(t,r){return e.updateWhile(t,e.visitNode(t.expression,x,e.isExpression),r)}(t,n);default:return e.Debug.failBadSyntaxKind(t,"IterationStatement expected")}}function ue(t){return e.createVariableDeclaration(t.originalName,void 0,t.outParamName)}function le(t,r){var n=0===r?t.outParamName:t.originalName,i=0===r?t.originalName:t.outParamName;return e.createBinary(i,62,n)}function _e(t,r,n,i){for(var a=0,o=t;a<o.length;a++){var s=o[a];s.flags&r&&i.push(e.createExpressionStatement(le(s,n)))}}function de(t,r,n,i){r?(t.labeledNonLocalBreaks||(t.labeledNonLocalBreaks=e.createMap()),t.labeledNonLocalBreaks.set(n,i)):(t.labeledNonLocalContinues||(t.labeledNonLocalContinues=e.createMap()),t.labeledNonLocalContinues.set(n,i))}function pe(t,r,n,i,a){t&&t.forEach((function(t,o){var s=[];if(!i||i.labels&&i.labels.get(o)){var c=e.createIdentifier(o);s.push(r?e.createBreak(c):e.createContinue(c))}else de(i,r,o,t),s.push(e.createReturn(n));a.push(e.createCaseClause(e.createLiteral(t),s))}))}function fe(t,r,n,i,a){var o=r.name;if(e.isBindingPattern(o))for(var s=0,c=o.elements;s<c.length;s++){var u=c[s];e.isOmittedExpression(u)||fe(t,u,n,i,a)}else{n.push(e.createParameter(void 0,void 0,void 0,o));var l=f.getNodeCheckFlags(r);if(4194304&l||a){var _=e.createUniqueName("out_"+e.idText(o)),d=0;4194304&l&&(d|=1),e.isForStatement(t)&&t.initializer&&f.isBindingCapturedByNode(t.initializer,r)&&(d|=2),i.push({flags:d,originalName:o,outParamName:_})}}}function ge(t,r,n){var i=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,x,e.isPropertyName)),e.visitNode(t.initializer,x,e.isExpression));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function me(t,r,n){var i=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,x,e.isPropertyName)),e.getSynthesizedClone(t.name));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function ye(t,r,n,i){var a=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,x,e.isPropertyName)),j(t,t,void 0,n));return e.setTextRange(a,t),i&&e.startOnNewLine(a),a}function ve(r,n){if(8192&r.transformFlags||102===r.expression.kind||e.isSuperProperty(e.skipOuterExpressions(r.expression))){var i=e.createCallBinding(r.expression,d),a=i.target,o=i.thisArg;102===r.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=8192&r.transformFlags?e.createFunctionApply(e.visitNode(a,D,e.isExpression),102===r.expression.kind?o:e.visitNode(o,x,e.isExpression),he(r.arguments,!1,!1,!1)):e.createFunctionCall(e.visitNode(a,D,e.isExpression),102===r.expression.kind?o:e.visitNode(o,x,e.isExpression),e.visitNodes(r.arguments,x,e.isExpression),r),102===r.expression.kind){var c=e.createLogicalOr(s,T());s=n?e.createAssignment(e.createFileLevelUniqueName("_this"),c):c}return e.setOriginalNode(s,r)}return e.visitEachChild(r,x,t)}function he(r,n,i,a){var o,s=r.length,c=e.flatten(e.spanMap(r,De,(function(e,t,r,n){return t(e,i,a&&n===s)})));if(p.downlevelIteration){if(1===c.length)if(xe(u=c[0],"___spread"))return c[0];return e.createSpreadHelper(t,c)}if(1===c.length){var u=c[0];if(!n||(o=u,e.isArrayLiteralExpression(o)&&e.every(o.elements,be))||xe(u,"___spreadArrays"))return c[0]}return e.createSpreadArraysHelper(t,c)}function be(t){return!e.isOmittedExpression(t)}function xe(t,r){return e.isCallExpression(t)&&e.isIdentifier(t.expression)&&4096&e.getEmitFlags(t.expression)&&t.expression.escapedText===r}function De(t){return e.isSpreadElement(t)?Se:Ce}function Se(t){return e.map(t,Te)}function Ce(t,r,n){return e.createArrayLiteral(e.visitNodes(e.createNodeArray(t,n),x,e.isExpression),r)}function Te(t){return e.visitNode(t.expression,x,e.isExpression)}function ke(t){return 8&i&&!t?e.createPropertyAccess(e.createFileLevelUniqueName("_super"),"prototype"):e.createFileLevelUniqueName("_super")}function Ee(){0===(2&c)&&(c|=2,t.enableSubstitution(75))}function Ne(){0===(1&c)&&(c|=1,t.enableSubstitution(104),t.enableEmitNotification(162),t.enableEmitNotification(161),t.enableEmitNotification(163),t.enableEmitNotification(164),t.enableEmitNotification(202),t.enableEmitNotification(201),t.enableEmitNotification(244))}function Ae(t,r){return e.hasModifier(r,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}},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 (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"}}(d||(d={})),function(e){e.transformES5=function(t){var r,n,i=t.getCompilerOptions();1!==i.jsx&&3!==i.jsx||(r=t.onEmitNode,t.onEmitNode=function(t,i,a){switch(i.kind){case 268:case 269:case 267:var o=i.tagName;n[e.getOriginalNodeId(o)]=!0}r(t,i,a)},t.enableEmitNotification(268),t.enableEmitNotification(269),t.enableEmitNotification(267),n=[]);var a=t.onSubstituteNode;return t.onSubstituteNode=function(t,r){if(r.id&&n&&n[r.id])return a(t,r);if(r=a(t,r),e.isPropertyAccessExpression(r))return function(t){if(e.isPrivateIdentifier(t.name))return t;var r=o(t.name);if(r)return e.setTextRange(e.createElementAccess(t.expression,r),t);return t}(r);if(e.isPropertyAssignment(r))return function(t){var r=e.isIdentifier(t.name)&&o(t.name);if(r)return e.updatePropertyAssignment(t,r,t.initializer);return t}(r);return r},t.enableSubstitution(194),t.enableSubstitution(281),e.chainBundle((function(e){return e}));function o(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(void 0!==r&&r>=77&&r<=112)return e.setTextRange(e.createLiteral(t),t)}}}(d||(d={})),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,s,c,u,l,_,d,p=t.resumeLexicalEnvironment,f=t.endLexicalEnvironment,g=t.hoistFunctionDeclaration,m=t.hoistVariableDeclaration,y=t.getCompilerOptions(),v=e.getEmitScriptTarget(y),h=t.getEmitResolver(),b=t.onSubstituteNode;t.onSubstituteNode=function(t,i){if(i=b(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=h.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.getMutableClone(o);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t);return t}(i);return i};var x,D,S,C,T,k,E,N,A,F,P,w,I=1,O=0,M=0;return e.chainBundle((function(r){if(r.isDeclarationFile||0===(512&r.transformFlags))return r;var n=e.visitEachChild(r,L,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function L(r){var n=r.transformFlags;return a?function(r){switch(r.kind){case 228:case 229:return function(r){return a?(ne(),r=e.visitEachChild(r,L,t),ae(),r):e.visitEachChild(r,L,t)}(r);case 237:return function(r){a&&$({kind:2,isScript:!0,breakLabel:-1});r=e.visitEachChild(r,L,t),a&&oe();return r}(r);case 238:return function(r){a&&$({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1});r=e.visitEachChild(r,L,t),a&&se();return r}(r);default:return R(r)}}(r):i?R(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 244:return B(t);case 201:return j(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):512&n?e.visitEachChild(r,L,t):r}function R(r){switch(r.kind){case 244:return B(r);case 201:return j(r);case 163:case 164:return function(r){var n=i,o=a;return i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o,r}(r);case 225:return function(t){if(262144&t.transformFlags)return void q(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];m(i.name)}var a=e.getInitializedVariables(t.declarationList);if(0===a.length)return;return e.setSourceMapRange(e.createExpressionStatement(e.inlineExpressions(e.map(a,W))),t)}(r);case 230:return function(r){a&&ne();var n=r.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];m(s.name)}var c=e.getInitializedVariables(n);r=e.updateFor(r,c.length>0?e.inlineExpressions(e.map(c,W)):void 0,e.visitNode(r.condition,L,e.isExpression),e.visitNode(r.incrementor,L,e.isExpression),e.visitNode(r.statement,L,e.isStatement,e.liftToBlock))}else r=e.visitEachChild(r,L,t);a&&ae();return r}(r);case 231:return function(r){a&&ne();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];m(s.name)}r=e.updateForIn(r,n.declarations[0].name,e.visitNode(r.expression,L,e.isExpression),e.visitNode(r.statement,L,e.isStatement,e.liftToBlock))}else r=e.visitEachChild(r,L,t);a&&ae();return r}(r);case 234:return function(r){if(a){var n=de(r.label&&e.idText(r.label));if(n>0)return me(n,r)}return e.visitEachChild(r,L,t)}(r);case 233:return function(r){if(a){var n=pe(r.label&&e.idText(r.label));if(n>0)return me(n,r)}return e.visitEachChild(r,L,t)}(r);case 235:return function(t){return r=e.visitNode(t.expression,L,e.isExpression),n=t,e.setTextRange(e.createReturn(e.createArrayLiteral(r?[ge(2),r]:[ge(2)])),n);var r,n}(r);default:return 262144&r.transformFlags?function(r){switch(r.kind){case 209:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){if(H(r.right)){if(e.isLogicalOperator(r.operatorToken.kind))return function(t){var r=Y(),n=X();he(n,e.visitNode(t.left,L,e.isExpression),t.left),55===t.operatorToken.kind?De(r,n,t.left):xe(r,n,t.left);return he(n,e.visitNode(t.right,L,e.isExpression),t.right),Z(r),n}(r);if(27===r.operatorToken.kind)return function(t){var r=[];return n(t.left),n(t.right),e.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(H(t)&&r.length>0&&(Se(1,[e.createExpressionStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,L,e.isExpression)))}}(r);var n=e.getMutableClone(r);return n.left=Q(e.visitNode(r.left,L,e.isExpression)),n.right=e.visitNode(r.right,L,e.isExpression),n}return e.visitEachChild(r,L,t)}(r);case 1:return function(r){var n=r.left,i=r.right;if(H(i)){var a=void 0;switch(n.kind){case 194:a=e.updatePropertyAccess(n,Q(e.visitNode(n.expression,L,e.isLeftHandSideExpression)),n.name);break;case 195:a=e.updateElementAccess(n,Q(e.visitNode(n.expression,L,e.isLeftHandSideExpression)),Q(e.visitNode(n.argumentExpression,L,e.isExpression)));break;default:a=e.visitNode(n,L,e.isExpression)}var o=r.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(e.createAssignment(a,e.setTextRange(e.createBinary(Q(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,L,e.isExpression)),r)),r):e.updateBinary(r,a,e.visitNode(i,L,e.isExpression))}return e.visitEachChild(r,L,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 210:return function(r){if(H(r.whenTrue)||H(r.whenFalse)){var n=Y(),i=Y(),a=X();return De(n,e.visitNode(r.condition,L,e.isExpression),r.condition),he(a,e.visitNode(r.whenTrue,L,e.isExpression),r.whenTrue),be(i),Z(n),he(a,e.visitNode(r.whenFalse,L,e.isExpression),r.whenFalse),Z(i),a}return e.visitEachChild(r,L,t)}(r);case 212:return function(r){var n=Y(),i=e.visitNode(r.expression,L,e.isExpression);if(r.asteriskToken){!function(e,t){Se(7,[e],t)}(0===(8388608&e.getEmitFlags(r.expression))?e.createValuesHelper(t,i,r):i,r)}else!function(e,t){Se(6,[e],t)}(i,r);return Z(n),function(t){return e.setTextRange(e.createCall(e.createPropertyAccess(C,"sent"),void 0,[]),t)}(r)}(r);case 192:return function(e){return z(e.elements,void 0,void 0,e.multiLine)}(r);case 193:return function(t){var r=t.properties,n=t.multiLine,i=G(r),a=X();he(a,e.createObjectLiteral(e.visitNodes(r,L,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,(function(r,i){H(i)&&r.length>0&&(ve(e.createExpressionStatement(e.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(t,i,a),s=e.visitNode(o,L,e.isExpression);s&&(n&&e.startOnNewLine(s),r.push(s));return r}),[],i);return o.push(n?e.startOnNewLine(e.getMutableClone(a)):a),e.inlineExpressions(o)}(r);case 195:return function(r){if(H(r.argumentExpression)){var n=e.getMutableClone(r);return n.expression=Q(e.visitNode(r.expression,L,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(r.argumentExpression,L,e.isExpression),n}return e.visitEachChild(r,L,t)}(r);case 196:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,H)){var n=e.createCallBinding(r.expression,m,v,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.createFunctionApply(Q(e.visitNode(i,L,e.isLeftHandSideExpression)),a,z(r.arguments),r),r)}return e.visitEachChild(r,L,t)}(r);case 197:return function(r){if(e.forEach(r.arguments,H)){var n=e.createCallBinding(e.createPropertyAccess(r.expression,"bind"),m),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(Q(e.visitNode(i,L,e.isExpression)),a,z(r.arguments,e.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,L,t)}(r);default:return e.visitEachChild(r,L,t)}}(r):1049088&r.transformFlags?e.visitEachChild(r,L,t):r}}function B(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,L,t),void 0,J(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o}return i?void g(r):r}function j(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,L,t),void 0,J(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o}return r}function J(t){var r=[],n=i,o=a,g=s,m=c,y=u,v=l,h=_,b=d,T=I,k=x,E=D,N=S,A=C;i=!0,a=!1,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0,d=void 0,I=1,x=void 0,D=void 0,S=void 0,C=e.createTempVariable(void 0),p();var F=e.addPrologue(r,t.statements,!1,L);U(t.statements,F);var P=Ce();return e.insertStatementsAfterStandardPrologue(r,f()),r.push(e.createReturn(P)),i=n,a=o,s=g,c=m,u=y,l=v,_=h,d=b,I=T,x=k,D=E,S=N,C=A,e.setTextRange(e.createBlock(r,t.multiLine),t)}function z(t,r,n,i){var a,s=G(t);if(s>0){a=X();var c=e.visitNodes(t,L,e.isExpression,0,s);he(a,e.createArrayLiteral(r?o([r],c):c)),r=void 0}var u=e.reduceLeft(t,(function(t,n){if(H(n)&&t.length>0){var s=void 0!==a;a||(a=X()),he(a,s?e.createArrayConcat(a,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(r?o([r],t):t,i)),r=void 0,t=[]}return t.push(e.visitNode(n,L,e.isExpression)),t}),[],s);return a?e.createArrayConcat(a,[e.createArrayLiteral(u,i)]):e.setTextRange(e.createArrayLiteral(r?o([r],u):u,i),n)}function U(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)V(e[n])}function K(t){e.isBlock(t)?U(t.statements):V(t)}function V(i){var o=a;a||(a=H(i)),function(i){switch(i.kind){case 223:return function(t){H(t)?U(t.statements):ve(e.visitNode(t,L,e.isStatement))}(i);case 226:return function(t){ve(e.visitNode(t,L,e.isStatement))}(i);case 227:return function(t){if(H(t))if(H(t.thenStatement)||H(t.elseStatement)){var r=Y(),n=t.elseStatement?Y():void 0;De(t.elseStatement?n:r,e.visitNode(t.expression,L,e.isExpression),t.expression),K(t.thenStatement),t.elseStatement&&(be(r),Z(n),K(t.elseStatement)),Z(r)}else ve(e.visitNode(t,L,e.isStatement));else ve(e.visitNode(t,L,e.isStatement))}(i);case 228:return function(t){if(H(t)){var r=Y(),n=Y();ie(r),Z(n),K(t.statement),Z(r),xe(n,e.visitNode(t.expression,L,e.isExpression)),ae()}else ve(e.visitNode(t,L,e.isStatement))}(i);case 229:return function(t){if(H(t)){var r=Y(),n=ie(r);Z(r),De(n,e.visitNode(t.expression,L,e.isExpression)),K(t.statement),be(r),ae()}else ve(e.visitNode(t,L,e.isStatement))}(i);case 230:return function(t){if(H(t)){var r=Y(),n=Y(),i=ie(n);if(t.initializer){var a=t.initializer;e.isVariableDeclarationList(a)?q(a):ve(e.setTextRange(e.createExpressionStatement(e.visitNode(a,L,e.isExpression)),a))}Z(r),t.condition&&De(i,e.visitNode(t.condition,L,e.isExpression)),K(t.statement),Z(n),t.incrementor&&ve(e.setTextRange(e.createExpressionStatement(e.visitNode(t.incrementor,L,e.isExpression)),t.incrementor)),be(r),ae()}else ve(e.visitNode(t,L,e.isStatement))}(i);case 231:return function(t){if(H(t)){var r=X(),n=X(),i=e.createLoopVariable(),a=t.initializer;m(i),he(r,e.createArrayLiteral()),ve(e.createForIn(n,e.visitNode(t.expression,L,e.isExpression),e.createExpressionStatement(e.createCall(e.createPropertyAccess(r,"push"),void 0,[n])))),he(i,e.createLiteral(0));var o=Y(),s=Y(),c=ie(s);Z(o),De(c,e.createLessThan(i,e.createPropertyAccess(r,"length")));var u=void 0;if(e.isVariableDeclarationList(a)){for(var l=0,_=a.declarations;l<_.length;l++){var d=_[l];m(d.name)}u=e.getSynthesizedClone(a.declarations[0].name)}else u=e.visitNode(a,L,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(u));he(u,e.createElementAccess(r,i)),K(t.statement),Z(s),ve(e.createExpressionStatement(e.createPostfixIncrement(i))),be(o),ae()}else ve(e.visitNode(t,L,e.isStatement))}(i);case 233:return function(t){var r=pe(t.label?e.idText(t.label):void 0);r>0?be(r,t):ve(t)}(i);case 234:return function(t){var r=de(t.label?e.idText(t.label):void 0);r>0?be(r,t):ve(t)}(i);case 235:return function(t){r=e.visitNode(t.expression,L,e.isExpression),n=t,Se(8,[r],n);var r,n}(i);case 236:return function(t){H(t)?(!function(e){var t=Y(),r=Y();Z(t),$({kind:1,expression:e,startLabel:t,endLabel:r})}(Q(e.visitNode(t.expression,L,e.isExpression))),K(t.statement),e.Debug.assert(1===re()),Z(ee().endLabel)):ve(e.visitNode(t,L,e.isStatement))}(i);case 237:return function(t){if(H(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=function(){var e=Y();return $({kind:2,isScript:!1,breakLabel:e}),e}(),a=Q(e.visitNode(t.expression,L,e.isExpression)),o=[],s=-1,c=0;c<n;c++){var u=r.clauses[c];o.push(Y()),278===u.kind&&-1===s&&(s=c)}for(var l=0,_=[];l<n;){var d=0;for(c=l;c<n;c++){if(277===(u=r.clauses[c]).kind){if(H(u.expression)&&_.length>0)break;_.push(e.createCaseClause(e.visitNode(u.expression,L,e.isExpression),[me(o[c],u.expression)]))}else d++}_.length&&(ve(e.createSwitch(a,e.createCaseBlock(_))),l+=_.length,_=[]),d>0&&(l+=d,d=0)}be(s>=0?o[s]:i);for(c=0;c<n;c++)Z(o[c]),U(r.clauses[c].statements);oe()}else ve(e.visitNode(t,L,e.isStatement))}(i);case 238:return function(t){H(t)?(!function(e){var t=Y();$({kind:4,isScript:!1,labelText:e,breakLabel:t})}(e.idText(t.label)),K(t.statement),se()):ve(e.visitNode(t,L,e.isStatement))}(i);case 239:return function(t){r=e.visitNode(t.expression,L,e.isExpression),n=t,Se(9,[r],n);var r,n}(i);case 240:return function(i){H(i)?(function(){var e=Y(),t=Y();Z(e),$({kind:0,state:0,startLabel:e,endLabel:t}),ye()}(),K(i.tryBlock),i.catchClause&&(!function(i){var a;if(e.Debug.assert(0===re()),e.isGeneratedIdentifier(i.name))a=i.name,m(i.name);else{var o=e.idText(i.name);a=X(o),r||(r=e.createMap(),n=[],t.enableSubstitution(75)),r.set(o,!0),n[e.getOriginalNodeId(i)]=a}var s=te();e.Debug.assert(s.state<1),be(s.endLabel);var c=Y();Z(c),s.state=1,s.catchVariable=a,s.catchLabel=c,he(a,e.createCall(e.createPropertyAccess(C,"sent"),void 0,[])),ye()}(i.catchClause.variableDeclaration),K(i.catchClause.block)),i.finallyBlock&&(!function(){e.Debug.assert(0===re());var t=te();e.Debug.assert(t.state<2),be(t.endLabel);var r=Y();Z(r),t.state=2,t.finallyLabel=r}(),K(i.finallyBlock)),function(){e.Debug.assert(0===re());var t=ee();t.state<2?be(t.endLabel):Se(10);Z(t.endLabel),ye(),t.state=3}()):ve(e.visitEachChild(i,L,t))}(i);default:ve(e.visitNode(i,L,e.isStatement))}}(i),a=o}function q(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=e.getSynthesizedClone(i.name);e.setCommentRange(a,i.name),m(a)}for(var o=e.getInitializedVariables(t),s=o.length,c=0,u=[];c<s;){for(var l=c;l<s;l++){if(H((i=o[l]).initializer)&&u.length>0)break;u.push(W(i))}u.length&&(ve(e.createExpressionStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function W(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,L,e.isExpression)),t)}function H(e){return!!e&&0!==(262144&e.transformFlags)}function G(e){for(var t=e.length,r=0;r<t;r++)if(H(e[r]))return r;return-1}function Q(t){if(e.isGeneratedIdentifier(t)||4096&e.getEmitFlags(t))return t;var r=e.createTempVariable(m);return he(r,t,t),r}function X(t){var r=t?e.createUniqueName(t):e.createTempVariable(void 0);return m(r),r}function Y(){_||(_=[]);var e=I;return I++,_[e]=-1,e}function Z(t){e.Debug.assert(void 0!==_,"No labels were defined."),_[t]=x?x.length:0}function $(e){s||(s=[],u=[],c=[],l=[]);var t=u.length;return u[t]=0,c[t]=x?x.length:0,s[t]=e,l.push(e),t}function ee(){var t=te();if(void 0===t)return e.Debug.fail("beginBlock was never called.");var r=u.length;return u[r]=1,c[r]=x?x.length:0,s[r]=t,l.pop(),t}function te(){return e.lastOrUndefined(l)}function re(){var e=te();return e&&e.kind}function ne(){$({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function ie(e){var t=Y();return $({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function ae(){e.Debug.assert(3===re());var t=ee(),r=t.breakLabel;t.isScript||Z(r)}function oe(){e.Debug.assert(2===re());var t=ee(),r=t.breakLabel;t.isScript||Z(r)}function se(){e.Debug.assert(4===re());var t=ee();t.isScript||Z(t.breakLabel)}function ce(e){return 2===e.kind||3===e.kind}function ue(e){return 4===e.kind}function le(e){return 3===e.kind}function _e(e,t){for(var r=t;r>=0;r--){var n=l[r];if(!ue(n))break;if(n.labelText===e)return!0}return!1}function de(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(ue(r=l[t])&&r.labelText===e)return r.breakLabel;if(ce(r)&&_e(e,t-1))return r.breakLabel}else for(t=l.length-1;t>=0;t--){var r;if(ce(r=l[t]))return r.breakLabel}return 0}function pe(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(le(r=l[t])&&_e(e,t-1))return r.continueLabel}else for(t=l.length-1;t>=0;t--){var r;if(le(r=l[t]))return r.continueLabel}return 0}function fe(t){if(void 0!==t&&t>0){void 0===d&&(d=[]);var r=e.createLiteral(-1);return void 0===d[t]?d[t]=[r]:d[t].push(r),r}return e.createOmittedExpression()}function ge(t){var r=e.createLiteral(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 me(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([ge(3),fe(t)])),r)}function ye(){Se(0)}function ve(e){e?Se(1,[e]):ye()}function he(e,t,r){Se(2,[e,t],r)}function be(e,t){Se(3,[e],t)}function xe(e,t,r){Se(4,[e,t],r)}function De(e,t,r){Se(5,[e,t],r)}function Se(e,t,r){void 0===x&&(x=[],D=[],S=[]),void 0===_&&Z(Y());var n=x.length;x[n]=e,D[n]=t,S[n]=r}function Ce(){O=0,M=0,T=void 0,k=!1,E=!1,N=void 0,A=void 0,F=void 0,P=void 0,w=void 0;var r=function(){if(x){for(var t=0;t<x.length;t++)Ne(t);Te(x.length)}else Te(0);if(N){var r=e.createPropertyAccess(C,"label"),n=e.createSwitch(r,e.createCaseBlock(N));return[e.startOnNewLine(n)]}if(A)return A;return[]}();return function(t,r){return t.requestEmitHelper(e.generatorHelper),e.createCall(e.getUnscopedHelperName("__generator"),void 0,[e.createThis(),r])}(t,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,C)],void 0,e.createBlock(r,r.length>0)),524288))}function Te(e){(function(e){if(!E)return!0;if(!_||!d)return!1;for(var t=0;t<_.length;t++)if(_[t]===e&&d[t])return!0;return!1})(e)&&(Ee(e),w=void 0,Fe(void 0,void 0)),A&&N&&ke(!1),function(){if(void 0!==d&&void 0!==T)for(var e=0;e<T.length;e++){var t=T[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var i=n[r],a=d[i];if(void 0!==a)for(var o=0,s=a;o<s.length;o++){s[o].text=String(e)}}}}()}function ke(t){if(N||(N=[]),A){if(w)for(var r=w.length-1;r>=0;r--){var n=w[r];A=[e.createWith(n.expression,e.createBlock(A))]}if(P){var i=P.startLabel,a=P.catchLabel,o=P.finallyLabel,s=P.endLabel;A.unshift(e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(C,"trys"),"push"),void 0,[e.createArrayLiteral([fe(i),fe(a),fe(o),fe(s)])]))),P=void 0}t&&A.push(e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(C,"label"),e.createLiteral(M+1))))}N.push(e.createCaseClause(e.createLiteral(M),A||[])),A=void 0}function Ee(e){if(_)for(var t=0;t<_.length;t++)_[t]===e&&(A&&(ke(!k),k=!1,E=!1,M++),void 0===T&&(T=[]),void 0===T[M]?T[M]=[t]:T[M].push(t))}function Ne(t){if(Ee(t),function(e){if(s)for(;O<u.length&&c[O]<=e;O++){var t=s[O],r=u[O];switch(t.kind){case 0:0===r?(F||(F=[]),A||(A=[]),F.push(P),P=t):1===r&&(P=F.pop());break;case 1:0===r?(w||(w=[]),w.push(t)):1===r&&w.pop()}}}(t),!k){k=!1,E=!1;var r=x[t];if(0!==r){if(10===r)return k=!0,void Ae(e.createReturn(e.createArrayLiteral([ge(7)])));var n=D[t];if(1===r)return Ae(n[0]);var i,a,o,l=S[t];switch(r){case 2:return i=n[0],a=n[1],o=l,void Ae(e.setTextRange(e.createExpressionStatement(e.createAssignment(i,a)),o));case 3:return function(t,r){k=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([ge(3),fe(t)])),r),384))}(n[0],l);case 4:return function(t,r,n){Ae(e.setEmitFlags(e.createIf(r,e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([ge(3),fe(t)])),n),384)),1))}(n[0],n[1],l);case 5:return function(t,r,n){Ae(e.setEmitFlags(e.createIf(e.createLogicalNot(r),e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([ge(3),fe(t)])),n),384)),1))}(n[0],n[1],l);case 6:return function(t,r){k=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[ge(4),t]:[ge(4)])),r),384))}(n[0],l);case 7:return function(t,r){k=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([ge(5),t])),r),384))}(n[0],l);case 8:return Fe(n[0],l);case 9:return function(t,r){k=!0,E=!0,Ae(e.setTextRange(e.createThrow(t),r))}(n[0],l)}}}}function Ae(e){e&&(A?A.push(e):A=[e])}function Fe(t,r){k=!0,E=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[ge(2),t]:[ge(2)])),r),384))}},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 };'}}(d||(d={})),function(e){function t(t,r,n,i){return t.requestEmitHelper(e.createBindingHelper),e.createCall(e.getUnscopedHelperName("__createBinding"),void 0,o([e.createIdentifier("exports"),r,n],i?[i]:[]))}e.transformModule=function(i){var a=i.startLexicalEnvironment,s=i.endLexicalEnvironment,c=i.hoistVariableDeclaration,u=i.getCompilerOptions(),l=i.getEmitResolver(),_=i.getEmitHost(),d=e.getEmitScriptTarget(u),p=e.getEmitModuleKind(u),f=i.onSubstituteNode,g=i.onEmitNode;i.onSubstituteNode=function(t,r){if((r=f(t,r)).id&&v[r.id])return r;if(1===t)return function(t){switch(t.kind){case 75:return Q(t);case 209: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=X(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];v[e.getNodeId(n)]=!0,n=H(o,n,t)}return n}}return t}(t);case 208:case 207: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=X(t.operand);if(r){for(var n=208===t.kind?e.setTextRange(e.createBinary(t.operand,e.createToken(45===t.operator?63:64),e.createLiteral(1)),t):t,i=0,a=r;i<a.length;i++){var o=a[i];v[e.getNodeId(n)]=!0,n=H(o,n)}return n}}return t}(t)}return t}(r);if(e.isShorthandPropertyAssignment(r))return function(t){var r=t.name,n=Q(r);if(n!==r){if(t.objectAssignmentInitializer){var i=e.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(r,i),t)}return e.setTextRange(e.createPropertyAssignment(r,n),t)}return t}(r);return r},i.onEmitNode=function(t,r,n){290===r.kind?(m=r,y=b[e.getOriginalNodeId(m)],v=[],g(t,r,n),m=void 0,y=void 0,v=void 0):g(t,r,n)},i.enableSubstitution(75),i.enableSubstitution(209),i.enableSubstitution(207),i.enableSubstitution(208),i.enableSubstitution(282),i.enableEmitNotification(290);var m,y,v,h,b=[],x=[];return e.chainBundle((function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,u)||2097152&t.transformFlags||e.isJsonSourceFile(t)&&e.hasJsonModuleEmitEnabled(u)&&(u.out||u.outFile)))return t;m=t,y=e.collectExternalModuleInfo(t,l,u),b[e.getOriginalNodeId(t)]=y;var r=function(t){switch(t){case e.ModuleKind.AMD:return C;case e.ModuleKind.UMD:return T;default:return S}}(p)(t);return m=void 0,y=void 0,h=!1,e.aggregateTransformFlags(r)}));function D(){return!(y.exportEquals||!e.isExternalModule(m))}function S(t){a();var r=[],n=e.getStrictOptionValue(u,"alwaysStrict")||!u.noImplicitUseStrict&&e.isExternalModule(m),o=e.addPrologue(r,t.statements,n&&!e.isJsonSourceFile(t),F);D()&&e.append(r,W()),e.length(y.exportedNames)&&e.append(r,e.createExpressionStatement(e.reduceLeft(y.exportedNames,(function(t,r){return e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.createIdentifier(e.idText(r))),t)}),e.createVoidZero()))),e.append(r,e.visitNode(y.externalHelpersImportDeclaration,F,e.isStatement)),e.addRange(r,e.visitNodes(t.statements,F,e.isStatement,o)),A(r,!1),e.insertStatementsAfterStandardPrologue(r,s());var c=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(r),t.statements));return e.addEmitHelpers(c,i.readEmitHelpers()),c}function C(t){var r=e.createIdentifier("define"),n=e.tryGetModuleNameFromFile(t,_,u),a=e.isJsonSourceFile(t)&&t,s=k(t,!0),c=s.aliasedModuleNames,l=s.unaliasedModuleNames,d=s.importAliasNames,p=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(r,void 0,o(n?[n]:[],[e.createArrayLiteral(a?e.emptyArray:o([e.createLiteral("require"),e.createLiteral("exports")],c,l)),a?a.statements.length?a.statements[0].expression:e.createObjectLiteral():e.createFunctionExpression(void 0,void 0,void 0,void 0,o([e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")],d),void 0,N(t))])))]),t.statements));return e.addEmitHelpers(p,i.readEmitHelpers()),p}function T(t){var r=k(t,!1),n=r.aliasedModuleNames,a=r.unaliasedModuleNames,s=r.importAliasNames,c=e.tryGetModuleNameFromFile(t,_,u),l=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("define"),void 0,o(c?[c]:[],[e.createArrayLiteral(o([e.createLiteral("require"),e.createLiteral("exports")],n,a)),e.createIdentifier("factory")])))])))],!0),void 0)),d=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(l,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,o([e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")],s),void 0,N(t))]))]),t.statements));return e.addEmitHelpers(d,i.readEmitHelpers()),d}function k(t,r){for(var n=[],i=[],a=[],o=0,s=t.amdDependencies;o<s.length;o++){var c=s[o];c.name?(n.push(e.createLiteral(c.path)),a.push(e.createParameter(void 0,void 0,void 0,c.name))):i.push(e.createLiteral(c.path))}for(var d=0,p=y.externalImports;d<p.length;d++){var f=p[d],g=e.getExternalModuleNameLiteral(f,m,_,l,u),v=e.getLocalNameForExternalImport(f,m);g&&(r&&v?(e.setEmitFlags(v,4),n.push(g),a.push(e.createParameter(void 0,void 0,void 0,v))):i.push(g))}return{aliasedModuleNames:n,unaliasedModuleNames:i,importAliasNames:a}}function E(t){if(!e.isImportEqualsDeclaration(t)&&!e.isExportDeclaration(t)&&e.getExternalModuleNameLiteral(t,m,_,l,u)){var r=e.getLocalNameForExternalImport(t,m),n=O(t,r);if(n!==r)return e.createExpressionStatement(e.createAssignment(r,n))}}function N(t){a();var r=[],i=e.addPrologue(r,t.statements,!u.noImplicitUseStrict,F);D()&&e.append(r,W()),e.length(y.exportedNames)&&e.append(r,e.createExpressionStatement(e.reduceLeft(y.exportedNames,(function(t,r){return e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.createIdentifier(e.idText(r))),t)}),e.createVoidZero()))),e.append(r,e.visitNode(y.externalHelpersImportDeclaration,F,e.isStatement)),p===e.ModuleKind.AMD&&e.addRange(r,e.mapDefined(y.externalImports,E)),e.addRange(r,e.visitNodes(t.statements,F,e.isStatement,i)),A(r,!0),e.insertStatementsAfterStandardPrologue(r,s());var o=e.createBlock(r,!0);return h&&e.addEmitHelper(o,n),o}function A(t,r){if(y.exportEquals){var n=e.visitNode(y.exportEquals.expression,P);if(n)if(r){var i=e.createReturn(n);e.setTextRange(i,y.exportEquals),e.setEmitFlags(i,1920),t.push(i)}else{i=e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),n));e.setTextRange(i,y.exportEquals),e.setEmitFlags(i,1536),t.push(i)}}}function F(n){switch(n.kind){case 254:return function(t){var r,n=e.getNamespaceDeclarationNode(t);if(p!==e.ModuleKind.AMD){if(!t.importClause)return e.setOriginalNode(e.setTextRange(e.createExpressionStatement(M(t)),t),t);var i=[];n&&!e.isDefaultImport(t)?i.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,O(t,M(t)))):(i.push(e.createVariableDeclaration(e.getGeneratedNameForNode(t),void 0,O(t,M(t)))),n&&e.isDefaultImport(t)&&i.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)))),r=e.append(r,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(i,d>=2?2:0)),t),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)),t),t)],d>=2?2:0))));if(B(t)){var a=e.getOriginalNodeId(t);x[a]=j(x[a],t)}else r=j(r,t);return e.singleOrMany(r)}(n);case 253:return function(t){var r;e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?r=e.hasModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(H(t.name,M(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,M(t))],d>=2?2:0)),t),t)):e.hasModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(H(e.getExportName(t),e.getLocalName(t))),t),t)));if(B(t)){var n=e.getOriginalNodeId(t);x[n]=J(x[n],t)}else r=J(r,t);return e.singleOrMany(r)}(n);case 260:return function(n){if(!n.moduleSpecifier)return;var a=e.getGeneratedNameForNode(n);if(n.exportClause&&e.isNamedExports(n.exportClause)){var o=[];p!==e.ModuleKind.AMD&&o.push(e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,M(n))])),n),n));for(var s=0,c=n.exportClause.elements;s<c.length;s++){var l=c[s];if(0===d)o.push(e.setOriginalNode(e.setTextRange(e.createExpressionStatement(t(i,a,e.createLiteral(l.propertyName||l.name),l.propertyName?e.createLiteral(l.name):void 0)),l),l));else{var _=e.createPropertyAccess(a,l.propertyName||l.name);o.push(e.setOriginalNode(e.setTextRange(e.createExpressionStatement(H(e.getExportName(l),_,void 0,!0)),l),l))}}return e.singleOrMany(o)}return n.exportClause?((o=[]).push(e.setOriginalNode(e.setTextRange(e.createExpressionStatement(H(e.getSynthesizedClone(n.exportClause.name),p!==e.ModuleKind.AMD?function(t,r){if(!u.esModuleInterop||67108864&e.getEmitFlags(t))return r;if(e.getExportNeedsImportStarHelper(t))return i.requestEmitHelper(e.importStarHelper),e.createCall(e.getUnscopedHelperName("__importStar"),void 0,[r]);return r}(n,M(n)):e.createIdentifier(e.idText(n.exportClause.name)))),n),n)),e.singleOrMany(o)):e.setOriginalNode(e.setTextRange(e.createExpressionStatement(function(t,n){return t.requestEmitHelper(r),e.createCall(e.getUnscopedHelperName("__exportStar"),void 0,[n,e.createIdentifier("exports")])}(i,p!==e.ModuleKind.AMD?M(n):a)),n),n)}(n);case 259:return function(t){if(t.isExportEquals)return;var r,n=t.original;if(n&&B(n)){var i=e.getOriginalNodeId(t);x[i]=q(x[i],e.createIdentifier("default"),e.visitNode(t.expression,P),t,!0)}else r=q(r,e.createIdentifier("default"),e.visitNode(t.expression,P),t,!0);return e.singleOrMany(r)}(n);case 225:return function(t){var r,n,a;if(e.hasModifier(t,1)){for(var o=void 0,s=0,c=t.declarationList.declarations;s<c.length;s++){var u=c[s];e.isIdentifier(u.name)&&e.isLocalName(u.name)?(o||(o=e.visitNodes(t.modifiers,G,e.isModifier)),n=e.append(n,u)):u.initializer&&(a=e.append(a,R(u)))}n&&(r=e.append(r,e.updateVariableStatement(t,o,e.updateVariableDeclarationList(t.declarationList,n)))),a&&(r=e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(e.inlineExpressions(a)),t),t)))}else r=e.append(r,e.visitEachChild(t,P,i));if(B(t)){var l=e.getOriginalNodeId(t);x[l]=z(x[l],t)}else r=z(r,t);return e.singleOrMany(r)}(n);case 244:return function(t){var r;r=e.hasModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,e.visitNodes(t.modifiers,G,e.isModifier),t.asteriskToken,e.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,P),void 0,e.visitEachChild(t.body,P,i)),t),t)):e.append(r,e.visitEachChild(t,P,i));if(B(t)){var n=e.getOriginalNodeId(t);x[n]=K(x[n],t)}else r=K(r,t);return e.singleOrMany(r)}(n);case 245:return function(t){var r;r=e.hasModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(e.createClassDeclaration(void 0,e.visitNodes(t.modifiers,G,e.isModifier),e.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.heritageClauses,P),e.visitNodes(t.members,P)),t),t)):e.append(r,e.visitEachChild(t,P,i));if(B(t)){var n=e.getOriginalNodeId(t);x[n]=K(x[n],t)}else r=K(r,t);return e.singleOrMany(r)}(n);case 328:return function(t){if(B(t)&&225===t.original.kind){var r=e.getOriginalNodeId(t);x[r]=z(x[r],t.original)}return t}(n);case 329:return function(t){var r=e.getOriginalNodeId(t),n=x[r];if(n)return delete x[r],e.append(n,t);return t}(n);default:return e.visitEachChild(n,P,i)}}function P(t){return 2097152&t.transformFlags||1024&t.transformFlags?e.isImportCall(t)?function(t){var r=e.visitNode(e.firstOrUndefined(t.arguments),P),n=!!(4096&t.transformFlags);switch(u.module){case e.ModuleKind.AMD:return w(r,n);case e.ModuleKind.UMD:return function(t,r){if(h=!0,e.isSimpleCopiableExpression(t)){var n=e.isGeneratedIdentifier(t)?t:e.isStringLiteral(t)?e.createLiteral(t):e.setEmitFlags(e.setTextRange(e.getSynthesizedClone(t),t),1536);return e.createConditional(e.createIdentifier("__syncRequire"),I(t,r),w(n,r))}var i=e.createTempVariable(c);return e.createComma(e.createAssignment(i,t),e.createConditional(e.createIdentifier("__syncRequire"),I(i,r),w(i,r)))}(r,n);case e.ModuleKind.CommonJS:default:return I(r,n)}}(t):e.isDestructuringAssignment(t)?function(t){if(function t(r){if(e.isObjectLiteralExpression(r))for(var n=0,i=r.properties;n<i.length;n++){switch((s=i[n]).kind){case 281:if(t(s.initializer))return!0;break;case 282:if(t(s.name))return!0;break;case 283:if(t(s.expression))return!0;break;case 161:case 163:case 164:return!1;default:e.Debug.assertNever(s,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(r))for(var a=0,o=r.elements;a<o.length;a++){var s=o[a];if(e.isSpreadElement(s)){if(t(s.expression))return!0}else if(t(s))return!0}else if(e.isIdentifier(r))return e.length(X(r))>(e.isExportName(r)?1:0);return!1}(t.left))return e.flattenDestructuringAssignment(t,P,i,0,!1,L);return e.visitEachChild(t,P,i)}(t):e.visitEachChild(t,P,i):t}function w(t,r){var n,a=e.createUniqueName("resolve"),o=e.createUniqueName("reject"),s=[e.createParameter(void 0,void 0,void 0,a),e.createParameter(void 0,void 0,void 0,o)],c=e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([t||e.createOmittedExpression()]),a,o]))]);d>=2?n=e.createArrowFunction(void 0,void 0,s,void 0,void 0,c):(n=e.createFunctionExpression(void 0,void 0,void 0,void 0,s,void 0,c),r&&e.setEmitFlags(n,8));var l=e.createNew(e.createIdentifier("Promise"),void 0,[n]);return u.esModuleInterop?(i.requestEmitHelper(e.importStarHelper),e.createCall(e.createPropertyAccess(l,e.createIdentifier("then")),void 0,[e.getUnscopedHelperName("__importStar")])):l}function I(t,r){var n,a=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),o=e.createCall(e.createIdentifier("require"),void 0,t?[t]:[]);return u.esModuleInterop&&(i.requestEmitHelper(e.importStarHelper),o=e.createCall(e.getUnscopedHelperName("__importStar"),void 0,[o])),d>=2?n=e.createArrowFunction(void 0,void 0,[],void 0,void 0,o):(n=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(o)])),r&&e.setEmitFlags(n,8)),e.createCall(e.createPropertyAccess(a,"then"),void 0,[n])}function O(t,r){return!u.esModuleInterop||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?(i.requestEmitHelper(e.importStarHelper),e.createCall(e.getUnscopedHelperName("__importStar"),void 0,[r])):e.getImportNeedsImportDefaultHelper(t)?(i.requestEmitHelper(e.importDefaultHelper),e.createCall(e.getUnscopedHelperName("__importDefault"),void 0,[r])):r}function M(t){var r=e.getExternalModuleNameLiteral(t,m,_,l,u),n=[];return r&&n.push(r),e.createCall(e.createIdentifier("require"),void 0,n)}function L(t,r,n){var i=X(t);if(i){for(var a=e.isExportName(t)?r:e.createAssignment(t,r),o=0,s=i;o<s.length;o++){var c=s[o];e.setEmitFlags(a,4),a=H(c,a,n)}return a}return e.createAssignment(t,r)}function R(t){return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(e.visitNode(t,P),void 0,i,0,!1,L):e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),t.name),t.name),t.initializer?e.visitNode(t.initializer,P):e.createVoidZero())}function B(t){return 0!==(4194304&e.getEmitFlags(t))}function j(e,t){if(y.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=V(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 256:e=V(e,n);break;case 257:for(var i=0,a=n.elements;i<a.length;i++){e=V(e,a[i],!0)}}return e}function J(e,t){return y.exportEquals?e:V(e,t)}function z(e,t){if(y.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(y.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=V(t,r));return t}function K(t,r){if(y.exportEquals)return t;e.hasModifier(r,1)&&(t=q(t,e.hasModifier(r,512)?e.createIdentifier("default"):e.getDeclarationName(r),e.getLocalName(r),r));return r.name&&(t=V(t,r)),t}function V(t,r,n){var i=e.getDeclarationName(r),a=y.exportSpecifiers.get(e.idText(i));if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];t=q(t,c.name,i,c.name,void 0,n)}return t}function q(t,r,n,i,a,o){return t=e.append(t,function(t,r,n,i,a){var o=e.setTextRange(e.createExpressionStatement(H(t,r,void 0,a)),n);e.startOnNewLine(o),i||e.setEmitFlags(o,1536);return o}(r,n,i,a,o))}function W(){var t;return t=0===d?e.createExpressionStatement(H(e.createIdentifier("__esModule"),e.createLiteral(!0))):e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[e.createIdentifier("exports"),e.createLiteral("__esModule"),e.createObjectLiteral([e.createPropertyAssignment("value",e.createLiteral(!0))])])),e.setEmitFlags(t,1048576),t}function H(t,r,n,i){return e.setTextRange(i&&0!==d?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[e.createIdentifier("exports"),e.createLiteral(t),e.createObjectLiteral([e.createPropertyAssignment("enumerable",e.createLiteral(!0)),e.createPropertyAssignment("get",e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(r)])))])]):e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),r),n)}function G(e){switch(e.kind){case 89:case 84:return}return e}function Q(t){if(4096&e.getEmitFlags(t)){var r=e.getExternalHelpersModuleName(m);return r?e.createPropertyAccess(r,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=l.getReferencedExportContainer(t,e.isExportName(t));if(n&&290===n.kind)return e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),t);var i=l.getReferencedImportDeclaration(t);if(i){if(e.isImportClause(i))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(i.parent),e.createIdentifier("default")),t);if(e.isImportSpecifier(i)){var a=i.propertyName||i.name;return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(i.parent.parent.parent),e.getSynthesizedClone(a)),t)}}}return t}function X(t){if(!e.isGeneratedIdentifier(t)){var r=l.getReferencedImportDeclaration(t)||l.getReferencedValueDeclaration(t);if(r)return y&&y.exportedBindings[e.getOriginalNodeId(r)]}}},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:"\nvar __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:'\nvar __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});'};var r={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" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\n };'};var n={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\nvar __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.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:'\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n};'}}(d||(d={})),function(e){e.transformSystemModule=function(t){var r=t.startLexicalEnvironment,n=t.endLexicalEnvironment,i=t.hoistVariableDeclaration,a=t.getCompilerOptions(),o=t.getEmitResolver(),s=t.getEmitHost(),c=t.onSubstituteNode,u=t.onEmitNode;t.onSubstituteNode=function(t,r){if(function(e){return m&&e.id&&m[e.id]}(r=c(t,r)))return r;if(1===t)return function(t){switch(t.kind){case 75:return function(t){if(4096&e.getEmitFlags(t)){var r=e.getExternalHelpersModuleName(l);return r?e.createPropertyAccess(r,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=o.getReferencedImportDeclaration(t);if(n){if(e.isImportClause(n))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(n.parent),e.createIdentifier("default")),t);if(e.isImportSpecifier(n))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(n.parent.parent.parent),e.getSynthesizedClone(n.propertyName||n.name)),t)}}return t}(t);case 209: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=W(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];n=J(o,H(n))}return n}}return t}(t);case 207:case 208: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=W(t.operand);if(r){for(var n=208===t.kind?e.setTextRange(e.createPrefix(t.operator,t.operand),t):t,i=0,a=r;i<a.length;i++){var o=a[i];n=J(o,H(n))}return 208===t.kind&&(n=45===t.operator?e.createSubtract(H(n),e.createLiteral(1)):e.createAdd(H(n),e.createLiteral(1))),n}}return t}(t);case 219:return function(t){if(e.isImportMeta(t))return e.createPropertyAccess(p,e.createIdentifier("meta"));return t}(t)}return t}(r);if(4===t)return function(t){switch(t.kind){case 282:return function(t){var r=t.name;if(!e.isGeneratedIdentifier(r)&&!e.isLocalName(r)){var n=o.getReferencedImportDeclaration(r);if(n){if(e.isImportClause(n))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(r),e.createPropertyAccess(e.getGeneratedNameForNode(n.parent),e.createIdentifier("default"))),t);if(e.isImportSpecifier(n))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(r),e.createPropertyAccess(e.getGeneratedNameForNode(n.parent.parent.parent),e.getSynthesizedClone(n.propertyName||n.name))),t)}}return t}(t)}return t}(r);return r},t.onEmitNode=function(t,r,n){if(290===r.kind){var i=e.getOriginalNodeId(r);l=r,_=y[i],d=h[i],m=b[i],p=x[i],m&&delete b[i],u(t,r,n),l=void 0,_=void 0,d=void 0,p=void 0,m=void 0}else u(t,r,n)},t.enableSubstitution(75),t.enableSubstitution(282),t.enableSubstitution(209),t.enableSubstitution(207),t.enableSubstitution(208),t.enableSubstitution(219),t.enableEmitNotification(290);var l,_,d,p,f,g,m,y=[],v=[],h=[],b=[],x=[];return e.chainBundle((function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,a)||2097152&t.transformFlags))return t;var i=e.getOriginalNodeId(t);l=t,g=t,_=y[i]=e.collectExternalModuleInfo(t,o,a),d=e.createUniqueName("exports"),h[i]=d,p=x[i]=e.createUniqueName("context");var c=function(t){for(var r=e.createMap(),n=[],i=0,c=t;i<c.length;i++){var u=c[i],_=e.getExternalModuleNameLiteral(u,l,s,o,a);if(_){var d=_.text,p=r.get(d);void 0!==p?n[p].externalImports.push(u):(r.set(d,n.length),n.push({name:_,externalImports:[u]}))}}return n}(_.externalImports),u=function(t,i){var o=[];r();var s=e.getStrictOptionValue(a,"alwaysStrict")||!a.noImplicitUseStrict&&e.isExternalModule(l),c=e.addPrologue(o,t.statements,s,C);o.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("__moduleName",void 0,e.createLogicalAnd(p,e.createPropertyAccess(p,"id")))]))),e.visitNode(_.externalHelpersImportDeclaration,C,e.isStatement);var u=e.visitNodes(t.statements,C,e.isStatement,c);e.addRange(o,f),e.insertStatementsAfterStandardPrologue(o,n());var d=function(t){if(!_.hasExportStarsToExportValues)return;if(!_.exportedNames&&0===_.exportSpecifiers.size){for(var r=!1,n=0,i=_.externalImports;n<i.length;n++){if(260===(p=i[n]).kind&&p.exportClause){r=!0;break}}if(!r){var a=D(void 0);return t.push(a),a.name}}var o=[];if(_.exportedNames)for(var s=0,c=_.exportedNames;s<c.length;s++){var u=c[s];"default"!==u.escapedText&&o.push(e.createPropertyAssignment(e.createLiteral(u),e.createTrue()))}for(var l=0,d=_.externalImports;l<d.length;l++){var p;if(260===(p=d[l]).kind&&p.exportClause)if(e.isNamedExports(p.exportClause))for(var f=0,g=p.exportClause.elements;f<g.length;f++){var m=g[f];o.push(e.createPropertyAssignment(e.createLiteral(e.idText(m.name||m.propertyName)),e.createTrue()))}else o.push(e.createPropertyAssignment(e.createLiteral(e.idText(p.exportClause.name)),e.createTrue()))}var y=e.createUniqueName("exportedNames");t.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(y,void 0,e.createObjectLiteral(o,!0))])));var v=D(y);return t.push(v),v.name}(o),g=524288&t.transformFlags?e.createModifiersFromModifierFlags(256):void 0,m=e.createObjectLiteral([e.createPropertyAssignment("setters",S(d,i)),e.createPropertyAssignment("execute",e.createFunctionExpression(g,void 0,void 0,void 0,[],void 0,e.createBlock(u,!0)))]);return m.multiLine=!0,o.push(e.createReturn(m)),e.createBlock(o,!0)}(t,c),v=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,d),e.createParameter(void 0,void 0,void 0,p)],void 0,u),T=e.tryGetModuleNameFromFile(t,s,a),k=e.createArrayLiteral(e.map(c,(function(e){return e.name}))),E=e.setEmitFlags(e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("System"),"register"),void 0,T?[T,k,v]:[k,v]))]),t.statements)),1024);a.outFile||a.out||e.moveEmitHelpers(E,u,(function(e){return!e.scoped}));m&&(b[i]=m,m=void 0);return l=void 0,_=void 0,d=void 0,p=void 0,f=void 0,g=void 0,e.aggregateTransformFlags(E)}));function D(t){var r=e.createUniqueName("exportStar"),n=e.createIdentifier("m"),i=e.createIdentifier("n"),a=e.createIdentifier("exports"),o=e.createStrictInequality(i,e.createLiteral("default"));return t&&(o=e.createLogicalAnd(o,e.createLogicalNot(e.createCall(e.createPropertyAccess(t,"hasOwnProperty"),void 0,[i])))),e.createFunctionDeclaration(void 0,void 0,void 0,r,void 0,[e.createParameter(void 0,void 0,void 0,n)],void 0,e.createBlock([e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createObjectLiteral([]))])),e.createForIn(e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0)]),n,e.createBlock([e.setEmitFlags(e.createIf(o,e.createExpressionStatement(e.createAssignment(e.createElementAccess(a,i),e.createElementAccess(n,i)))),1)])),e.createExpressionStatement(e.createCall(d,void 0,[a]))],!0))}function S(t,r){for(var n=[],i=0,a=r;i<a.length;i++){for(var o=a[i],s=e.forEach(o.externalImports,(function(t){return e.getLocalNameForExternalImport(t,l)})),c=s?e.getGeneratedNameForNode(s):e.createUniqueName(""),u=[],_=0,p=o.externalImports;_<p.length;_++){var f=p[_],g=e.getLocalNameForExternalImport(f,l);switch(f.kind){case 254:if(!f.importClause)break;case 253:e.Debug.assert(void 0!==g),u.push(e.createExpressionStatement(e.createAssignment(g,c)));break;case 260:if(e.Debug.assert(void 0!==g),f.exportClause)if(e.isNamedExports(f.exportClause)){for(var m=[],y=0,v=f.exportClause.elements;y<v.length;y++){var h=v[y];m.push(e.createPropertyAssignment(e.createLiteral(e.idText(h.name)),e.createElementAccess(c,e.createLiteral(e.idText(h.propertyName||h.name)))))}u.push(e.createExpressionStatement(e.createCall(d,void 0,[e.createObjectLiteral(m,!0)])))}else u.push(e.createExpressionStatement(e.createCall(d,void 0,[e.createLiteral(e.idText(f.exportClause.name)),c])));else u.push(e.createExpressionStatement(e.createCall(t,void 0,[c])))}}n.push(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,c)],void 0,e.createBlock(u,!0)))}return e.createArrayLiteral(n,!0)}function C(t){switch(t.kind){case 254:return function(t){var r;t.importClause&&i(e.getLocalNameForExternalImport(t,l));if(P(t)){var n=e.getOriginalNodeId(t);v[n]=w(v[n],t)}else r=w(r,t);return e.singleOrMany(r)}(t);case 253:return function(t){var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),i(e.getLocalNameForExternalImport(t,l)),P(t)){var n=e.getOriginalNodeId(t);v[n]=I(v[n],t)}else r=I(r,t);return e.singleOrMany(r)}(t);case 260:return function(t){return void e.Debug.assertIsDefined(t)}(t);case 259:return function(t){if(t.isExportEquals)return;var r=e.visitNode(t.expression,K,e.isExpression),n=t.original;if(!n||!P(n))return j(e.createIdentifier("default"),r,!0);var i=e.getOriginalNodeId(t);v[i]=B(v[i],e.createIdentifier("default"),r,!0)}(t);default:return z(t)}}function T(t){if(e.isBindingPattern(t.name))for(var r=0,n=t.name.elements;r<n.length;r++){var a=n[r];e.isOmittedExpression(a)||T(a)}else i(e.getSynthesizedClone(t.name))}function k(t){return 0===(2097152&e.getEmitFlags(t))&&(290===g.kind||0===(3&e.getOriginalNode(t).flags))}function E(r,n){var i=n?N:A;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 N(e,t,r){return F(e,t,r,!0)}function A(e,t,r){return F(e,t,r,!1)}function F(t,r,n,a){return i(e.getSynthesizedClone(t)),a?J(t,H(e.setTextRange(e.createAssignment(t,r),n))):H(e.setTextRange(e.createAssignment(t,r),n))}function P(t){return 0!==(4194304&e.getEmitFlags(t))}function w(e,t){if(_.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=R(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 256:e=R(e,n);break;case 257:for(var i=0,a=n.elements;i<a.length;i++){e=R(e,a[i])}}return e}function I(e,t){return _.exportEquals?e:R(e,t)}function O(e,t,r){if(_.exportEquals)return e;for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];(a.initializer||r)&&(e=M(e,a,r))}return e}function M(t,r,n){if(_.exportEquals)return t;if(e.isBindingPattern(r.name))for(var i=0,a=r.name.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||(t=M(t,o,n))}else if(!e.isGeneratedIdentifier(r.name)){var s=void 0;n&&(t=B(t,r.name,e.getLocalName(r)),s=e.idText(r.name)),t=R(t,r,s)}return t}function L(t,r){if(_.exportEquals)return t;var n;if(e.hasModifier(r,1)){var i=e.hasModifier(r,512)?e.createLiteral("default"):r.name;t=B(t,i,e.getLocalName(r)),n=e.getTextOfIdentifierOrLiteral(i)}return r.name&&(t=R(t,r,n)),t}function R(t,r,n){if(_.exportEquals)return t;var i=e.getDeclarationName(r),a=_.exportSpecifiers.get(e.idText(i));if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];c.name.escapedText!==n&&(t=B(t,c.name,i))}return t}function B(t,r,n,i){return t=e.append(t,j(r,n,i))}function j(t,r,n){var i=e.createExpressionStatement(J(t,r));return e.startOnNewLine(i),n||e.setEmitFlags(i,1536),i}function J(t,r){var n=e.isIdentifier(t)?e.createLiteral(t):t;return e.setEmitFlags(r,1536|e.getEmitFlags(r)),e.setCommentRange(e.createCall(d,void 0,[n,r]),r)}function z(r){switch(r.kind){case 225:return function(t){if(!k(t.declarationList))return e.visitNode(t,K,e.isStatement);for(var r,n,i=e.hasModifier(t,1),a=P(t),o=0,s=t.declarationList.declarations;o<s.length;o++){var c=s[o];c.initializer?r=e.append(r,E(c,i&&!a)):T(c)}if(r&&(n=e.append(n,e.setTextRange(e.createExpressionStatement(e.inlineExpressions(r)),t))),a){var u=e.getOriginalNodeId(t);v[u]=O(v[u],t,i)}else n=O(n,t,!1);return e.singleOrMany(n)}(r);case 244:return function(r){if(f=e.hasModifier(r,1)?e.append(f,e.updateFunctionDeclaration(r,r.decorators,e.visitNodes(r.modifiers,q,e.isModifier),r.asteriskToken,e.getDeclarationName(r,!0,!0),void 0,e.visitNodes(r.parameters,K,e.isParameterDeclaration),void 0,e.visitNode(r.body,K,e.isBlock))):e.append(f,e.visitEachChild(r,K,t)),P(r)){var n=e.getOriginalNodeId(r);v[n]=L(v[n],r)}else f=L(f,r)}(r);case 245:return function(t){var r,n=e.getLocalName(t);if(i(n),r=e.append(r,e.setTextRange(e.createExpressionStatement(e.createAssignment(n,e.setTextRange(e.createClassExpression(void 0,t.name,void 0,e.visitNodes(t.heritageClauses,K,e.isHeritageClause),e.visitNodes(t.members,K,e.isClassElement)),t))),t)),P(t)){var a=e.getOriginalNodeId(t);v[a]=L(v[a],t)}else r=L(r,t);return e.singleOrMany(r)}(r);case 230:return function(t){var r=g;return g=t,t=e.updateFor(t,t.initializer&&U(t.initializer),e.visitNode(t.condition,K,e.isExpression),e.visitNode(t.incrementor,K,e.isExpression),e.visitNode(t.statement,z,e.isStatement)),g=r,t}(r);case 231:return function(t){var r=g;return g=t,t=e.updateForIn(t,U(t.initializer),e.visitNode(t.expression,K,e.isExpression),e.visitNode(t.statement,z,e.isStatement,e.liftToBlock)),g=r,t}(r);case 232:return function(t){var r=g;return g=t,t=e.updateForOf(t,t.awaitModifier,U(t.initializer),e.visitNode(t.expression,K,e.isExpression),e.visitNode(t.statement,z,e.isStatement,e.liftToBlock)),g=r,t}(r);case 228:return function(t){return e.updateDo(t,e.visitNode(t.statement,z,e.isStatement,e.liftToBlock),e.visitNode(t.expression,K,e.isExpression))}(r);case 229:return function(t){return e.updateWhile(t,e.visitNode(t.expression,K,e.isExpression),e.visitNode(t.statement,z,e.isStatement,e.liftToBlock))}(r);case 238:return function(t){return e.updateLabel(t,t.label,e.visitNode(t.statement,z,e.isStatement,e.liftToBlock))}(r);case 236:return function(t){return e.updateWith(t,e.visitNode(t.expression,K,e.isExpression),e.visitNode(t.statement,z,e.isStatement,e.liftToBlock))}(r);case 237:return function(t){return e.updateSwitch(t,e.visitNode(t.expression,K,e.isExpression),e.visitNode(t.caseBlock,z,e.isCaseBlock))}(r);case 251:return function(t){var r=g;return g=t,t=e.updateCaseBlock(t,e.visitNodes(t.clauses,z,e.isCaseOrDefaultClause)),g=r,t}(r);case 277:return function(t){return e.updateCaseClause(t,e.visitNode(t.expression,K,e.isExpression),e.visitNodes(t.statements,z,e.isStatement))}(r);case 278:case 240:return function(r){return e.visitEachChild(r,z,t)}(r);case 280:return function(t){var r=g;return g=t,t=e.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,z,e.isBlock)),g=r,t}(r);case 223:return function(r){var n=g;return g=r,r=e.visitEachChild(r,z,t),g=n,r}(r);case 328:return function(t){if(P(t)&&225===t.original.kind){var r=e.getOriginalNodeId(t),n=e.hasModifier(t.original,1);v[r]=O(v[r],t.original,n)}return t}(r);case 329:return function(t){var r=e.getOriginalNodeId(t),n=v[r];if(n)return delete v[r],e.append(n,t);var i=e.getOriginalNode(t);return e.isModuleOrEnumDeclaration(i)?e.append(R(n,i),t):t}(r);default:return K(r)}}function U(r){if(function(t){return e.isVariableDeclarationList(t)&&k(t)}(r)){for(var n=void 0,i=0,a=r.declarations;i<a.length;i++){var o=a[i];n=e.append(n,E(o,!1)),o.initializer||T(o)}return n?e.inlineExpressions(n):e.createOmittedExpression()}return e.visitEachChild(r,z,t)}function K(r){return e.isDestructuringAssignment(r)?function(r){if(V(r.left))return e.flattenDestructuringAssignment(r,K,t,0,!0);return e.visitEachChild(r,K,t)}(r):e.isImportCall(r)?function(t){return e.createCall(e.createPropertyAccess(p,e.createIdentifier("import")),void 0,e.some(t.arguments)?[e.visitNode(t.arguments[0],K)]:[])}(r):1024&r.transformFlags||2097152&r.transformFlags?e.visitEachChild(r,K,t):r}function V(t){if(e.isAssignmentExpression(t,!0))return V(t.left);if(e.isSpreadElement(t))return V(t.expression);if(e.isObjectLiteralExpression(t))return e.some(t.properties,V);if(e.isArrayLiteralExpression(t))return e.some(t.elements,V);if(e.isShorthandPropertyAssignment(t))return V(t.name);if(e.isPropertyAssignment(t))return V(t.initializer);if(e.isIdentifier(t)){var r=o.getReferencedExportContainer(t);return void 0!==r&&290===r.kind}return!1}function q(e){switch(e.kind){case 89:case 84:return}return e}function W(t){var r;if(!e.isGeneratedIdentifier(t)){var n=o.getReferencedImportDeclaration(t)||o.getReferencedValueDeclaration(t);if(n){var i=o.getReferencedExportContainer(t,!1);i&&290===i.kind&&(r=e.append(r,e.getDeclarationName(n))),r=e.addRange(r,_&&_.exportedBindings[e.getOriginalNodeId(n)])}}return r}function H(t){return void 0===m&&(m=[]),m[e.getNodeId(t)]=!0,t}}}(d||(d={})),function(e){e.transformECMAScriptModule=function(t){var r,n=t.getCompilerOptions(),i=t.onEmitNode,a=t.onSubstituteNode;return t.onEmitNode=function(t,a,o){e.isSourceFile(a)?((e.isExternalModule(a)||n.isolatedModules)&&n.importHelpers&&(r=e.createMap()),i(t,a,o),r=void 0):i(t,a,o)},t.onSubstituteNode=function(t,n){if(n=a(t,n),r&&e.isIdentifier(n)&&4096&e.getEmitFlags(n))return function(t){var n=e.idText(t),i=r.get(n);i||r.set(n,i=e.createFileLevelUniqueName(n));return i}(n);return n},t.enableEmitNotification(290),t.enableSubstitution(75),e.chainBundle((function(r){if(r.isDeclarationFile)return r;if(e.isExternalModule(r)||n.isolatedModules){var i=e.createExternalHelpersImportDeclarationIfNeeded(r,n);if(i){var a=[],s=e.addPrologue(a,r.statements);return e.append(a,i),e.addRange(a,e.visitNodes(r.statements,o,e.isStatement,s)),e.updateSourceFileNode(r,e.setTextRange(e.createNodeArray(a),r.statements))}return e.visitEachChild(r,o,t)}return r}));function o(t){switch(t.kind){case 253:return;case 259:return function(e){return e.isExportEquals?void 0:e}(t);case 260:return function(t){if(void 0!==n.module&&n.module>e.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,i=e.getGeneratedNameForNode(r),a=e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(i)),t.moduleSpecifier);e.setOriginalNode(a,t.exportClause);var o=e.createExportDeclaration(void 0,void 0,e.createNamedExports([e.createExportSpecifier(i,r)]));return e.setOriginalNode(o,t),[a,o]}(t)}return t}}}(d||(d={})),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=164===t.kind?e.hasModifier(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.hasModifier(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 166: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 165: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 167: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 161:case 160:n=e.hasModifier(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:245===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 244: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.hasModifier(t.parent,8)?r:function(r){var n=function(r){switch(t.parent.kind){case 162: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 166:case 171: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 165: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 167: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 161:case 160:return e.hasModifier(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:245===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 244:case 170: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 164:case 163: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 245:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 246:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 186:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 171:case 166:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 165:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 161:case 160:r=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:245===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 170:case 244:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 247: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=245===t.parent.parent.kind?e.isHeritageClause(t.parent)&&113===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1: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)?function(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName: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 242===t.kind||191===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:159===t.kind||194===t.kind||158===t.kind||156===t.kind&&e.hasModifier(t.parent,8)?e.hasModifier(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:245===t.parent.kind||156===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.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return e.isSetAccessor(r)||e.isGetAccessor(r)?function(t){var n=function(t){return e.hasModifier(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:245===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.hasModifier(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:245===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}(d||(d={})),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&&156===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){if(n&&e.isJsonSourceFile(n))return[];var a=t.getCompilerOptions();return e.transformNodes(r,t,a,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[i],!1).diagnostics},e.isInternalDeclaration=r;var n=531469;function i(t){var i,u,l,_,d,p,f,g,m,y,v,h=function(){return e.Debug.fail("Diagnostic emitted without context")},b=h,x=!0,D=!1,S=!1,C=!1,T=!1,k=t.getEmitHost(),E={trackSymbol:function(e,t,r){if(262144&e.flags)return;I(N.isSymbolAccessible(e,t,r,!0)),w(N.getTypeReferenceDirectivesForSymbol(e,r))},reportInaccessibleThisError:function(){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(f),"this"))},reportInaccessibleUniqueSymbolError:function(){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(f),"unique symbol"))},reportCyclicStructureError:function(){f&&t.addDiagnostic(e.createDiagnosticForNode(f,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(f)))},reportPrivateInBaseOfClassExpression:function(r){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){f&&t.addDiagnostic(e.createDiagnosticForNode(f,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(f),r))},moduleResolverHost:k,trackReferencedAmbientModule:function(t,r){var n=N.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return w(n);var i=e.getSourceFileOfNode(t);m.set(""+e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){D||(p||(p=[])).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(290===r.kind&&r.isDeclarationFile)return r;if(291===r.kind){D=!0,m=e.createMap(),y=e.createMap();var n=!1,a=e.createBundle(e.map(r.sourceFiles,(function(r){if(!r.isDeclarationFile){if(n=n||r.hasNoDefaultLib,g=r,i=r,l=void 0,d=!1,_=e.createMap(),b=h,C=!1,T=!1,M(r,m),L(r,y),e.isExternalOrCommonJsModule(r)||e.isJsonSourceFile(r)){S=!1,x=!1;var a=e.isSourceFileJS(r)?e.createNodeArray(O(r,!0)):e.visitNodes(r.statements,Z);return e.updateSourceFileNode(r,[e.createModuleDeclaration([],[e.createModifier(130)],e.createLiteral(e.getResolvedExternalModuleName(t.getEmitHost(),r)),e.createModuleBlock(e.setTextRange(e.createNodeArray(X(a)),r.statements)))],!0,[],[],!1,[])}x=!0;var o=e.isSourceFileJS(r)?e.createNodeArray(O(r)):e.visitNodes(r.statements,Z);return e.updateSourceFileNode(r,X(o),!0,[],[],!1,[])}})),e.mapDefined(r.prepends,(function(t){if(293===t.kind){var r=e.createUnparsedSourceFile(t,"dts",P);return n=n||!!r.hasNoDefaultLib,M(r,m),w(r.typeReferenceDirectives),L(r,y),r}return t})));a.syntheticFileReferences=[],a.syntheticTypeReferences=J(),a.syntheticLibReferences=j(),a.hasNoDefaultLib=n;var c=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,k,!0).declarationFilePath)),f=U(a.syntheticFileReferences,c);return m.forEach(f),a}x=!0,C=!1,T=!1,i=r,g=r,b=h,D=!1,S=!1,d=!1,l=void 0,_=e.createMap(),u=void 0,m=M(g,e.createMap()),y=L(g,e.createMap());var E,N=[],F=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,k,!0).declarationFilePath)),I=U(N,F);if(e.isSourceFileJS(g))E=e.createNodeArray(O(r)),m.forEach(I),v=e.filter(E,e.isAnyImportSyntax);else{var R=e.visitNodes(r.statements,Z);E=e.setTextRange(e.createNodeArray(X(R)),r.statements),m.forEach(I),v=e.filter(E,e.isAnyImportSyntax),e.isExternalModule(r)&&(!S||C&&!T)&&(E=e.setTextRange(e.createNodeArray(o(E,[e.createEmptyExports()])),E))}var B=e.updateSourceFileNode(r,E,!0,N,J(),r.hasNoDefaultLib,j());return B.exportedModulesFromDeclarationEmit=p,B;function j(){return e.map(e.arrayFrom(y.keys()),(function(e){return{fileName:e,pos:-1,end:-1}}))}function J(){return u?e.mapDefined(e.arrayFrom(u.keys()),z):[]}function z(t){if(v)for(var r=0,n=v;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 U(t,n){return function(i){var a;if(i.isDeclarationFile)a=i.fileName;else{if(D&&e.contains(r.sourceFiles,i))return;var o=e.getOutputPathsFor(i,k,!0);a=o.declarationFilePath||o.jsFilePath||i.fileName}if(a){var c=e.moduleSpecifiers.getModuleSpecifier(s(s({},A),{baseUrl:A.baseUrl&&e.toPath(A.baseUrl,k.getCurrentDirectory(),k.getCanonicalFileName)}),g,e.toPath(n,k.getCurrentDirectory(),k.getCanonicalFileName),e.toPath(a,k.getCurrentDirectory(),k.getCanonicalFileName),k,void 0);if(!e.pathIsRelative(c))return void w([c]);var u=e.getRelativePathToDirectoryOrUrl(n,a,k.getCurrentDirectory(),k.getCanonicalFileName,!1);if(e.startsWith(u,"./")&&e.hasExtension(u)&&(u=u.substring(2)),e.startsWith(u,"node_modules/")||e.pathContainsNodeModules(u))return;t.push({pos:-1,end:-1,fileName:u})}}}};function w(t){if(t){u=u||e.createMap();for(var r=0,n=t;r<n.length;r++){var i=n[r];u.set(i,!0)}}}function I(r){if(0===r.accessibility){if(r&&r.aliasesToMakeVisible)if(l)for(var n=0,i=r.aliasesToMakeVisible;n<i.length;n++){var a=i[n];e.pushIfUnique(l,a)}else l=r.aliasesToMakeVisible}else{var o=b(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=b;b=function(r){return{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,E,r);return b=i,a}function M(t,r){return F||!e.isUnparsedSource(t)&&e.isSourceFileJS(t)?r:(e.forEach(t.referencedFiles,(function(n){var i=k.getSourceFileFromReference(t,n);i&&r.set(""+e.getOriginalNodeId(i),i)})),r)}function L(t,r){return e.forEach(t.libReferenceDirectives,(function(t){k.getLibFileFromReference(t)&&r.set(e.toFileNameLowerCase(t.fileName),!0)})),r}function R(t,r,n){var i;d||(i=b,b=e.createGetSymbolAccessibilityDiagnosticForNode(t));var o=e.updateParameter(t,void 0,function(t,r,n){return e.createModifiersFromModifierFlags(a(t,r,n))}(t,r),t.dotDotDotToken,function t(r){return 75===r.kind?r:190===r.kind?e.updateArrayBindingPattern(r,e.visitNodes(r.elements,n)):e.updateObjectBindingPattern(r,e.visitNodes(r.elements,n));function n(r){return 215===r.kind?r:e.updateBindingElement(r,r.dotDotDotToken,r.propertyName,t(r.name),B(r)?r.initializer:void 0)}}(t.name),N.isOptionalParameter(t)?t.questionToken||e.createToken(57):void 0,J(t,n||t.type,!0),j(t));return d||(b=i),o}function B(t){return function(t){switch(t.kind){case 159:case 158:return!e.hasModifier(t,8);case 156:case 242:return!0}return!1}(t)&&N.isLiteralConstDeclaration(e.getParseTreeNode(t))}function j(t){if(B(t))return N.createLiteralConstValue(e.getParseTreeNode(t),E)}function J(t,r,a){if((a||!e.hasModifier(t,8))&&!B(t)){var o,s=156===t.kind&&(N.isRequiredInitializedParameter(t)||N.isOptionalUninitializedParameterProperty(t));return r&&!s?e.visitNode(r,Y):e.getParseTreeNode(t)?164===t.kind?e.createKeywordTypeNode(125):(f=t.name,d||(o=b,b=e.createGetSymbolAccessibilityDiagnosticForNode(t)),242===t.kind||191===t.kind?c(N.createTypeOfDeclaration(t,i,n,E)):156===t.kind||159===t.kind||158===t.kind?t.initializer?c(N.createTypeOfDeclaration(t,i,n,E,s)||N.createTypeOfExpression(t.initializer,i,n,E)):c(N.createTypeOfDeclaration(t,i,n,E,s)):c(N.createReturnTypeOfSignatureDeclaration(t,i,n,E))):r?e.visitNode(r,Y):e.createKeywordTypeNode(125)}function c(t){return f=void 0,d||(b=o),t||e.createKeywordTypeNode(125)}}function z(t){switch((t=e.getParseTreeNode(t)).kind){case 244:case 249:case 246:case 245:case 247:case 248:return!N.isDeclarationVisible(t);case 242:return!U(t);case 253:case 254:case 260:case 259:return!1}return!1}function U(t){return!e.isOmittedExpression(t)&&(e.isBindingPattern(t.name)?e.some(t.name.elements,U):N.isDeclarationVisible(t))}function K(t,r,n){if(!e.hasModifier(t,8)){var i=e.map(r,(function(e){return R(e,n)}));if(i)return e.createNodeArray(i,r.hasTrailingComma)}}function V(t,r){var n;if(!r){var i=e.getThisParameter(t);i&&(n=[R(i)])}if(e.isSetAccessorDeclaration(t)){var a=void 0;if(!r){var o=e.getSetAccessorValueParameter(t);if(o)a=R(o,void 0,ae(t,N.getAllAccessorDeclarations(t)))}a||(a=e.createParameter(void 0,void 0,void 0,"value")),n=e.append(n,a)}return e.createNodeArray(n||e.emptyArray)}function q(t,r){return e.hasModifier(t,8)?void 0:e.visitNodes(r,Y)}function W(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 H(e,t){I(N.isEntityNameVisible(e,t)),w(N.getTypeReferenceDirectivesForEntityName(e))}function G(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(S=S||249!==r.kind&&188!==r.kind,e.isStringLiteralLike(n))if(D){var i=e.getExternalModuleNameFromDeclaration(t.getEmitHost(),N,r);if(i)return e.createLiteral(i)}else{var a=N.getSymbolOfExternalModuleSpecifier(n);a&&(p||(p=[])).push(a)}return n}}function X(t){for(;e.length(l);){var r=l.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=x;x=r.parent&&e.isSourceFile(r.parent)&&!(e.isExternalModule(r.parent)&&D);var i=ee(r);x=n,_.set(""+e.getOriginalNodeId(r),i)}return e.visitNodes(t,(function(t){if(e.isLateVisibilityPaintedStatement(t)){var r=""+e.getOriginalNodeId(t);if(_.has(r)){var n=_.get(r);return _.delete(r),n&&((e.isArray(n)?e.some(n,e.needsScopeMarker):e.needsScopeMarker(n))&&(C=!0),e.isSourceFile(t.parent)&&(e.isArray(n)?e.some(n,e.isExternalModuleIndicator):e.isExternalModuleIndicator(n))&&(S=!0)),n}}return t}))}function Y(r){if(!re(r)){if(e.isDeclaration(r)){if(z(r))return;if(e.hasDynamicName(r)&&!N.isLateBound(e.getParseTreeNode(r)))return}if((!e.isFunctionLike(r)||!N.isImplementationOfOverload(r))&&!e.isSemicolonClassElement(r)){var n;W(r)&&(n=i,i=r);var a=b,o=e.canProduceDiagnostics(r),s=d,c=(173===r.kind||186===r.kind)&&247!==r.parent.kind;if((e.isMethodDeclaration(r)||e.isMethodSignature(r))&&e.hasModifier(r,8)){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations[0]!==r)return;return x(e.createProperty(void 0,ie(r),r.name,void 0,void 0,void 0))}if(o&&!d&&(b=e.createGetSymbolAccessibilityDiagnosticForNode(r)),e.isTypeQueryNode(r)&&H(r.exprName,i),c&&(d=!0),function(e){switch(e.kind){case 166:case 162:case 161:case 163:case 164:case 159:case 158:case 160:case 165:case 167:case 242:case 155:case 216:case 169:case 180:case 170:case 171:case 188:return!0}return!1}(r))switch(r.kind){case 216:(e.isEntityName(r.expression)||e.isEntityNameExpression(r.expression))&&H(r.expression,i);var u=e.visitEachChild(r,Y,t);return x(e.updateExpressionWithTypeArguments(u,e.parenthesizeTypeParameters(u.typeArguments),u.expression));case 169:H(r.typeName,i);u=e.visitEachChild(r,Y,t);return x(e.updateTypeReferenceNode(u,u.typeName,e.parenthesizeTypeParameters(u.typeArguments)));case 166:return x(e.updateConstructSignature(r,q(r,r.typeParameters),K(r,r.parameters),J(r,r.type)));case 162:var l=e.createSignatureDeclaration(162,q(r,r.typeParameters),K(r,r.parameters,0),void 0);return l.modifiers=e.createNodeArray(ie(r)),x(l);case 161:if(e.isPrivateIdentifier(r.name))return x(void 0);var _=e.createSignatureDeclaration(160,q(r,r.typeParameters),K(r,r.parameters),J(r,r.type));return _.name=r.name,_.modifiers=e.createNodeArray(ie(r)),_.questionToken=r.questionToken,x(_);case 163:if(e.isPrivateIdentifier(r.name))return x(void 0);var p=ae(r,N.getAllAccessorDeclarations(r));return x(e.updateGetAccessor(r,void 0,ie(r),r.name,V(r,e.hasModifier(r,8)),J(r,p),void 0));case 164:return e.isPrivateIdentifier(r.name)?x(void 0):x(e.updateSetAccessor(r,void 0,ie(r),r.name,V(r,e.hasModifier(r,8)),void 0));case 159:return e.isPrivateIdentifier(r.name)?x(void 0):x(e.updateProperty(r,void 0,ie(r),r.name,r.questionToken,J(r,r.type),j(r)));case 158:return e.isPrivateIdentifier(r.name)?x(void 0):x(e.updatePropertySignature(r,ie(r),r.name,r.questionToken,J(r,r.type),j(r)));case 160:return e.isPrivateIdentifier(r.name)?x(void 0):x(e.updateMethodSignature(r,q(r,r.typeParameters),K(r,r.parameters),J(r,r.type),r.name,r.questionToken));case 165:return x(e.updateCallSignature(r,q(r,r.typeParameters),K(r,r.parameters),J(r,r.type)));case 167:return x(e.updateIndexSignature(r,void 0,ie(r),K(r,r.parameters),e.visitNode(r.type,Y)||e.createKeywordTypeNode(125)));case 242:return e.isBindingPattern(r.name)?te(r.name):(c=!0,d=!0,x(e.updateTypeScriptVariableDeclaration(r,r.name,void 0,J(r,r.type),j(r))));case 155:return function(t){return 161===t.parent.kind&&e.hasModifier(t.parent,8)}(r)&&(r.default||r.constraint)?x(e.updateTypeParameterDeclaration(r,r.name,void 0,void 0)):x(e.visitEachChild(r,Y,t));case 180:var g=e.visitNode(r.checkType,Y),m=e.visitNode(r.extendsType,Y),y=i;i=r.trueType;var v=e.visitNode(r.trueType,Y);i=y;var h=e.visitNode(r.falseType,Y);return x(e.updateConditionalTypeNode(r,g,m,v,h));case 170:return x(e.updateFunctionTypeNode(r,e.visitNodes(r.typeParameters,Y),K(r,r.parameters),e.visitNode(r.type,Y)));case 171:return x(e.updateConstructorTypeNode(r,e.visitNodes(r.typeParameters,Y),K(r,r.parameters),e.visitNode(r.type,Y)));case 188:return e.isLiteralImportTypeNode(r)?x(e.updateImportTypeNode(r,e.updateLiteralTypeNode(r.argument,Q(r,r.argument.literal)),r.qualifier,e.visitNodes(r.typeArguments,Y,e.isTypeNode),r.isTypeOf)):x(r);default:e.Debug.assertNever(r,"Attempted to process unhandled node kind: "+e.SyntaxKind[r.kind])}return x(e.visitEachChild(r,Y,t))}}function x(t){return t&&o&&e.hasDynamicName(r)&&function(t){var r;d||(r=b,b=e.createGetSymbolAccessibilityDiagnosticForNodeName(t));f=t.name,e.Debug.assert(N.isLateBound(e.getParseTreeNode(t))),H(t.name.expression,i),d||(b=r);f=void 0}(r),W(r)&&(i=n),o&&!d&&(b=a),c&&(d=s),t===r?t:t&&e.setOriginalNode(G(t,r),r)}}function Z(t){if(function(e){switch(e.kind){case 244:case 249:case 253:case 246:case 245:case 247:case 248:case 225:case 254:case 260:case 259:return!0}return!1}(t)&&!re(t)){switch(t.kind){case 260:return e.isSourceFile(t.parent)&&(S=!0),T=!0,e.updateExportDeclaration(t,void 0,t.modifiers,t.exportClause,Q(t,t.moduleSpecifier),t.isTypeOnly);case 259:if(e.isSourceFile(t.parent)&&(S=!0),T=!0,75===t.expression.kind)return t;var r=e.createOptimisticUniqueName("_default");b=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t}};var i=e.createVariableDeclaration(r,N.createTypeOfExpression(t.expression,t,n,E),void 0);return[e.createVariableStatement(x?[e.createModifier(130)]:[],e.createVariableDeclarationList([i],2)),e.updateExportAssignment(t,t.decorators,t.modifiers,r)]}var a=ee(t);return _.set(""+e.getOriginalNodeId(t),a),t}}function $(t){if(e.isImportEqualsDeclaration(t)||e.hasModifier(t,512))return t;var r=e.getMutableClone(t),n=e.createModifiersFromModifierFlags(3070&e.getModifierFlags(t));return r.modifiers=n.length?e.createNodeArray(n):void 0,r}function ee(t){if(!re(t)){switch(t.kind){case 253:return function(t){if(N.isDeclarationVisible(t)){if(265===t.moduleReference.kind){var r=e.getExternalModuleImportEqualsDeclarationExpression(t);return e.updateImportEqualsDeclaration(t,void 0,t.modifiers,t.name,e.updateExternalModuleReference(t.moduleReference,Q(t,r)))}var n=b;return b=e.createGetSymbolAccessibilityDiagnosticForNode(t),H(t.moduleReference,i),b=n,t}}(t);case 254:return function(t){if(!t.importClause)return e.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&&e.updateImportDeclaration(t,void 0,t.modifiers,e.updateImportClause(t.importClause,r,void 0,t.importClause.isTypeOnly),Q(t,t.moduleSpecifier));if(256===t.importClause.namedBindings.kind){var n=N.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||n?e.updateImportDeclaration(t,void 0,t.modifiers,e.updateImportClause(t.importClause,r,n,t.importClause.isTypeOnly),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?e.updateImportDeclaration(t,void 0,t.modifiers,e.updateImportClause(t.importClause,r,i&&i.length?e.updateNamedImports(t.importClause.namedBindings,i):void 0,t.importClause.isTypeOnly),Q(t,t.moduleSpecifier)):N.isImportRequiredByAugmentation(t)?e.updateImportDeclaration(t,void 0,t.modifiers,void 0,Q(t,t.moduleSpecifier)):void 0}(t)}if((!e.isDeclaration(t)||!z(t))&&(!e.isFunctionLike(t)||!N.isImplementationOfOverload(t))){var r;W(t)&&(r=i,i=t);var a=e.canProduceDiagnostics(t),s=b;a&&(b=e.createGetSymbolAccessibilityDiagnosticForNode(t));var c=x;switch(t.kind){case 247:return le(e.updateTypeAliasDeclaration(t,void 0,ie(t),t.name,e.visitNodes(t.typeParameters,Y,e.isTypeParameterDeclaration),e.visitNode(t.type,Y,e.isTypeNode)));case 246:return le(e.updateInterfaceDeclaration(t,void 0,ie(t),t.name,q(t,t.typeParameters),oe(t.heritageClauses),e.visitNodes(t.members,Y)));case 244:var u=le(e.updateFunctionDeclaration(t,void 0,ie(t),void 0,t.name,q(t,t.typeParameters),K(t,t.parameters),J(t,t.type),void 0));if(u&&N.isExpandoFunctionDeclaration(t)){var l=N.getPropertiesOfContainerFunction(t),d=e.createModuleDeclaration(void 0,void 0,u.name||e.createIdentifier("_default"),e.createModuleBlock([]),16);d.flags^=8,d.parent=i,d.locals=e.createSymbolTable(l),d.symbol=l[0].parent;var p=e.mapDefined(l,(function(t){if(e.isPropertyAccessExpression(t.valueDeclaration)){b=e.createGetSymbolAccessibilityDiagnosticForNode(t.valueDeclaration);var r=N.createTypeOfDeclaration(t.valueDeclaration,d,n,E);b=s;var i=e.createVariableDeclaration(e.unescapeLeadingUnderscores(t.escapedName),r,void 0);return e.createVariableStatement(void 0,e.createVariableDeclarationList([i]))}})),f=e.createModuleDeclaration(void 0,ie(t),t.name,e.createModuleBlock(p),16);if(!e.hasModifier(u,512))return[u,f];var g=e.createModifiersFromModifierFlags(-514&e.getModifierFlags(u)|2),m=e.updateFunctionDeclaration(u,void 0,g,void 0,u.name,u.typeParameters,u.parameters,u.type,void 0),y=e.updateModuleDeclaration(f,void 0,g,f.name,f.body),v=e.createExportAssignment(void 0,void 0,!1,f.name);return e.isSourceFile(t.parent)&&(S=!0),T=!0,[m,y,v]}return u;case 249:x=!1;var h=t.body;if(h&&250===h.kind){var D=C,k=T;T=!1,C=!1;var A=X(e.visitNodes(h.statements,Z));8388608&t.flags&&(C=!1),e.isGlobalScopeAugmentation(t)||function(t){return e.some(t,ne)}(A)||T||(A=C?e.createNodeArray(o(A,[e.createEmptyExports()])):e.visitNodes(A,$));var F=e.updateModuleBlock(h,A);x=c,C=D,T=k;var P=ie(t);return le(e.updateModuleDeclaration(t,void 0,P,e.isExternalModuleAugmentation(t)?Q(t,t.name):t.name,F))}x=c;P=ie(t);x=!1,e.visitNode(h,Z);var w=""+e.getOriginalNodeId(h);F=_.get(w);return _.delete(w),le(e.updateModuleDeclaration(t,void 0,P,t.name,F));case 245:g=e.createNodeArray(ie(t));var I=q(t,t.typeParameters),O=e.getFirstConstructorWithBody(t),M=void 0;if(O){var L=b;M=e.compact(e.flatMap(O.parameters,(function(t){if(e.hasModifier(t,92)&&!re(t))return b=e.createGetSymbolAccessibilityDiagnosticForNode(t),75===t.name.kind?G(e.createProperty(void 0,ie(t),t.name,t.questionToken,J(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(e.createProperty(void 0,ie(t),s.name,void 0,J(s,void 0),void 0)))}return i}(t.name)}))),b=L}var R=e.some(t.members,(function(t){return!!t.name&&e.isPrivateIdentifier(t.name)}))?[e.createProperty(void 0,void 0,e.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,B=e.concatenate(e.concatenate(R,M),e.visitNodes(t.members,Y)),V=e.createNodeArray(B),ee=e.getEffectiveBaseTypeNode(t);if(ee&&!e.isEntityNameExpression(ee.expression)&&100!==ee.expression.kind){var te=t.name?e.unescapeLeadingUnderscores(t.name.escapedText):"default",ae=e.createOptimisticUniqueName(te+"_base");b=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:ee,typeName:t.name}};var se=e.createVariableDeclaration(ae,N.createTypeOfExpression(ee.expression,t,n,E),void 0),ce=e.createVariableStatement(x?[e.createModifier(130)]:[],e.createVariableDeclarationList([se],2)),ue=e.createNodeArray(e.map(t.heritageClauses,(function(t){if(90===t.token){var r=b;b=e.createGetSymbolAccessibilityDiagnosticForNode(t.types[0]);var n=e.updateHeritageClause(t,e.map(t.types,(function(t){return e.updateExpressionWithTypeArguments(t,e.visitNodes(t.typeArguments,Y),ae)})));return b=r,n}return e.updateHeritageClause(t,e.visitNodes(e.createNodeArray(e.filter(t.types,(function(t){return e.isEntityNameExpression(t.expression)||100===t.expression.kind}))),Y))})));return[ce,le(e.updateClassDeclaration(t,void 0,g,t.name,I,ue,V))]}ue=oe(t.heritageClauses);return le(e.updateClassDeclaration(t,void 0,g,t.name,I,ue,V));case 225:return le(function(t){if(!e.forEach(t.declarationList.declarations,U))return;var r=e.visitNodes(t.declarationList.declarations,Y);if(!e.length(r))return;return e.updateVariableStatement(t,e.createNodeArray(ie(t)),e.updateVariableDeclarationList(t.declarationList,r))}(t));case 248:return le(e.updateEnumDeclaration(t,void 0,e.createNodeArray(ie(t)),t.name,e.createNodeArray(e.mapDefined(t.members,(function(t){if(!re(t)){var r=N.getConstantValue(t);return G(e.updateEnumMember(t,t.name,void 0!==r?e.createLiteral(r):void 0),t)}})))))}return e.Debug.assertNever(t,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[t.kind])}}function le(n){return W(t)&&(i=r),a&&(b=s),249===t.kind&&(x=c),n===t?n:n&&e.setOriginalNode(G(n,t),t)}}function te(t){return e.flatten(e.mapDefined(t.elements,(function(t){return function(t){if(215===t.kind)return;if(t.name){if(!U(t))return;return e.isBindingPattern(t.name)?te(t.name):e.createVariableDeclaration(t.name,J(t,void 0),void 0)}}(t)})))}function re(e){return!!P&&!!e&&r(e,g)}function ne(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ie(t){var r=e.getModifierFlags(t),n=function(t){var r=2811,n=x&&!function(e){if(246===e.kind)return!0;return!1}(t)?2:0,i=290===t.parent.kind;(!i||D&&i&&e.isExternalModule(t.parent))&&(r^=2,n=0);return a(t,r,n)}(t);return r===n?t.modifiers:e.createModifiersFromModifierFlags(n)}function ae(t,r){var n=c(t);return n||t===r.firstAccessor||(n=c(r.firstAccessor),b=e.createGetSymbolAccessibilityDiagnosticForNode(r.firstAccessor)),!n&&r.secondAccessor&&t!==r.secondAccessor&&(n=c(r.secondAccessor),b=e.createGetSymbolAccessibilityDiagnosticForNode(r.secondAccessor)),n}function oe(t){return e.createNodeArray(e.filter(e.map(t,(function(t){return e.updateHeritageClause(t,e.visitNodes(e.createNodeArray(e.filter(t.types,(function(r){return e.isEntityNameExpression(r.expression)||90===t.token&&100===r.expression.kind}))),Y))})),(function(e){return e.types&&!!e.types.length})))}}function a(t,r,n){void 0===r&&(r=3067),void 0===n&&(n=0);var i=e.getModifierFlags(t)&r|n;return 512&i&&!(1&i)&&(i^=1),512&i&&2&i&&(i^=2),i}function c(e){if(e)return 163===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=i}(d||(d={})),function(e){var t,r;function n(t,r,n){if(n)return e.emptyArray;var i=t.jsx,a=e.getEmitScriptTarget(t),o=e.getEmitModuleKind(t),c=[];return e.addRange(c,r&&e.map(r.before,s)),c.push(e.transformTypeScript),c.push(e.transformClassFields),2===i&&c.push(e.transformJsx),a<99&&c.push(e.transformESNext),a<7&&c.push(e.transformES2020),a<6&&c.push(e.transformES2019),a<5&&c.push(e.transformES2018),a<4&&c.push(e.transformES2017),a<3&&c.push(e.transformES2016),a<2&&(c.push(e.transformES2015),c.push(e.transformGenerators)),c.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}}(o)),a<1&&c.push(e.transformES5),e.addRange(c,r&&e.map(r.after,s)),c}function i(t){var r=[];return r.push(e.transformDeclarations),e.addRange(r,t&&e.map(t.afterDeclarations,c)),r}function a(t,r){return function(n){var i=t(n);return"function"===typeof i?r(i):function(t){return function(r){return e.isBundle(r)?t.transformBundle(r):t.transformSourceFile(r)}}(i)}}function s(t){return a(t,e.chainBundle)}function c(t){return a(t,e.identity)}function u(e,t){return t}function l(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=u,e.noEmitNotification=l,e.transformNodes=function(t,r,n,i,a,s){for(var c,_,d,p,f=new Array(331),g=0,m=[],y=[],v=[],h=[],b=0,x=!1,D=u,S=l,C=0,T=[],k={getCompilerOptions:function(){return n},getEmitResolver:function(){return t},getEmitHost:function(){return r},startLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!x,"Lexical environment is suspended."),m[b]=c,y[b]=_,v[b]=d,h[b]=g,b++,c=void 0,_=void 0,d=void 0,g=0},suspendLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!x,"Lexical environment is already suspended."),x=!0},resumeLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(x,"Lexical environment is not suspended."),x=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!x,"Lexical environment is suspended."),c||_||d){if(_&&(t=o(_)),c){var r=e.createVariableStatement(void 0,e.createVariableDeclarationList(c));e.setEmitFlags(r,1048576),t?t.push(r):t=[r]}d&&(t=t?o(t,d):o(d))}b--,c=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(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(e.createVariableDeclaration(t),64);c?c.push(r):c=[r];1&g&&(g|=2)},hoistFunctionDeclaration:function(t){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),_?_.push(t):_=[t]},addInitializationStatement:function(t){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),d?d.push(t):d=[t]},requestEmitHelper:function t(r){if(e.Debug.assert(C>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!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(C>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed.");var t=p;return p=void 0,t},enableSubstitution:function(t){e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),f[t]|=1},enableEmitNotification:function(t){e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),f[t]|=2},isSubstitutionEnabled:I,isEmitNotificationEnabled:O,get onSubstituteNode(){return D},set onSubstituteNode(t){e.Debug.assert(C<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(C<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){T.push(e)}},E=0,N=i;E<N.length;E++){var A=N[E];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(A)))}e.performance.mark("beforeTransform");var F=a.map((function(e){return e(k)})),P=function(e){for(var t=0,r=F;t<r.length;t++){e=(0,r[t])(e)}return e};C=1;var w=e.map(i,s?P:function(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:P(t)});return C=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:w,substituteNode:function(t,r){return e.Debug.assert(C<3,"Cannot substitute a node after the result is disposed."),r&&I(r)&&D(t,r)||r},emitNodeWithNotification:function(t,r,n){e.Debug.assert(C<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),r&&(O(r)?S(t,r,n):n(t,r))},isEmitNotificationEnabled:O,dispose:function(){if(C<3){for(var t=0,r=i;t<r.length;t++){var n=r[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n)))}c=void 0,m=void 0,_=void 0,y=void 0,D=void 0,S=void 0,p=void 0,C=3}},diagnostics:T};function I(t){return 0!==(1&f[t.kind])&&0===(4&e.getEmitFlags(t))}function O(t){return 0!==(2&f[t.kind])||0!==(2&e.getEmitFlags(t))}}}(d||(d={})),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,o){void 0===i&&(i=!1);var c=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),l=t.getCompilerOptions();if(l.outFile||l.out){var _=t.getPrependNodes();if(c.length||_.length){var d=e.createBundle(c,_);if(g=r(u(d,t,i),d))return g}}else{if(!a)for(var p=0,f=c;p<f.length;p++){var g,m=f[p];if(g=r(u(m,t,i),m))return g}if(o){var y=s(t.getCompilerOptions());if(y)return r({buildInfoPath:y},void 0)}}}function s(t){var r=t.configFilePath;if(e.isIncrementalCompilation(t)){if(t.tsBuildInfoFile)return t.tsBuildInfoFile;var n,i=t.outFile||t.out;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 c(t,r){var n=t.outFile||t.out,i=t.emitDeclarationOnly?void 0:n,a=i&&l(i,t),o=r||e.getEmitDeclarations(t)?e.removeFileExtension(n)+".d.ts":void 0;return{jsFilePath:i,sourceMapFilePath:a,declarationFilePath:o,declarationMapPath:o&&e.getAreDeclarationMapsEnabled(t)?o+".map":void 0,buildInfoPath:s(t)}}function u(t,r,n){var i=r.getCompilerOptions();if(291===t.kind)return c(i,n);var a=e.getOwnEmitOutputFilePath(t.fileName,r,_(t,i)),o=e.isJsonSourceFile(t),s=o&&0===e.comparePaths(t.fileName,a,r.getCurrentDirectory(),!r.useCaseSensitiveFileNames()),u=i.emitDeclarationOnly||s?void 0:a,d=!u||e.isJsonSourceFile(t)?void 0:l(u,i),p=n||e.getEmitDeclarations(i)&&!o?e.getDeclarationEmitOutputFilePath(t.fileName,r):void 0;return{jsFilePath:u,sourceMapFilePath:d,declarationFilePath:p,declarationMapPath:p&&e.getAreDeclarationMapsEnabled(i)?p+".map":void 0,buildInfoPath:void 0}}function l(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function _(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 d(t,r,n,i){return i?e.resolvePath(i,e.getRelativePathFromDirectory(function(t){return t.options.rootDir||e.getDirectoryPath(e.Debug.checkDefined(t.options.configFilePath))}(r),t,n)):t}function p(t,r,n){return e.Debug.assert(!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json")),e.changeExtension(d(t,r,n,r.options.declarationDir||r.options.outDir),".d.ts")}function f(t,r,n){if(!r.options.emitDeclarationOnly){var i=e.fileExtensionIs(t,".json"),a=e.changeExtension(d(t,r,n,r.options.outDir),i?".json":e.fileExtensionIs(t,".tsx")&&1===r.options.jsx?".jsx":".js");return i&&0===e.comparePaths(t,a,e.Debug.checkDefined(r.options.configFilePath),n)?void 0:a}}function g(){var t;return{addOutput:function(e){e&&(t||(t=[])).push(e)},getOutputs:function(){return t||e.emptyArray}}}function m(e,t){var r=c(e.options,!1),n=r.jsFilePath,i=r.sourceMapFilePath,a=r.declarationFilePath,o=r.declarationMapPath,s=r.buildInfoPath;t(n),t(i),t(a),t(o),t(s)}function y(t,r,n,i){if(!e.fileExtensionIs(r,".d.ts")){var a=f(r,t,n);if(i(a),!e.fileExtensionIs(r,".json")&&(a&&t.options.sourceMap&&i(a+".map"),e.getEmitDeclarations(t.options))){var o=p(r,t,n);i(o),t.options.declarationMap&&i(o+".map")}}}function v(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),b=e.performance.createTimer("printTime","beforePrint","afterPrint"),D=b.enter,S=b.exit,C=!1;return D(),a(r,(function(i,a){var s,f=i.jsFilePath,y=i.sourceMapFilePath,v=i.declarationFilePath,b=i.declarationMapPath,D=i.buildInfoPath;D&&a&&e.isBundle(a)&&(s=e.getDirectoryPath(e.getNormalizedAbsolutePath(D,r.getCurrentDirectory())),u={commonSourceDirectory:S(r.getCommonSourceDirectory()),sourceFiles:a.sourceFiles.map((function(t){return S(e.getNormalizedAbsolutePath(t.fileName,r.getCurrentDirectory()))}))});(function(n,i,a,s){if(!n||o||!i)return;if(i&&r.isEmitBlocked(i)||p.noEmit)return void(C=!0);var c=e.transformNodes(t,r,p,[n],_,!1),l=x({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"),k(i,a,c.transformed[0],l,p),c.dispose(),u&&(u.js=l.bundleFileInfo)})(a,f,y,S),function(n,i,a,s){if(!n)return;if(!i)return void((o||p.emitDeclarationOnly)&&(C=!0));var _=e.isSourceFile(n)?[n]:n.sourceFiles,f=c?_:e.filter(_,e.isSourceFileNotJson),g=p.outFile||p.out?[e.createBundle(f,e.isSourceFile(n)?void 0:n.prepends)]:f;o&&!e.getEmitDeclarations(p)&&f.forEach(T);var y=e.transformNodes(t,r,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 D=x({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(C=C||S,(!S||c)&&(e.Debug.assert(1===y.transformed.length,"Should only see one output from the decl transform"),k(i,a,y.transformed[0],D,{sourceMap:p.declarationMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),c&&290===y.transformed[0].kind)){var E=y.transformed[0];l=E.exportedModulesFromDeclarationEmit}y.dispose(),u&&(u.dts=D.bundleFileInfo)}(a,v,b,S),function(t,i){if(!i||n||C)return;var a=r.getProgramBuildInfo();if(r.isEmitBlocked(i)||p.noEmit)return void(C=!0);var o=e.version;e.writeFile(r,m,i,h({bundle:t,program:a,version:o}),!1)}(u,D),!C&&g&&(o||(f&&g.push(f),y&&g.push(y),D&&g.push(D)),v&&g.push(v),b&&g.push(b));function S(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,t,r.getCanonicalFileName))}}),e.getSourceFilesToEmit(r,n,c),c,s,!n),S(),{emitSkipped:C,diagnostics:m.getDiagnostics(),emittedFiles:g,sourceMaps:f,exportedModulesFromDeclarationEmit:l};function T(r){e.isExportAssignment(r)?75===r.expression.kind&&t.collectLinkedAliases(r.expression,!0):e.isExportSpecifier(r)?t.collectLinkedAliases(r.propertyName||r.name,!0):e.forEachChild(r,T)}function k(t,n,i,a,o){var s,c=291===i.kind?i:void 0,u=290===i.kind?i:void 0,l=c?c.sourceFiles:[u];if(function(t,r){return(t.sourceMap||t.inlineSourceMap)&&(290!==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),e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(i)),e.combinePaths(u,c),r.getCurrentDirectory(),r.getCanonicalFileName,!0)):e.combinePaths(u,c)}return 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 h(e){return JSON.stringify(e,void 0,2)}function b(e){return JSON.parse(e)}function x(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=r.hasGlobalName,S=r.onEmitNode,C=void 0===S?e.noEmitNotification:S,T=r.isEmitNotificationEnabled,k=r.substituteNode,E=void 0===k?e.noEmitSubstitution:k,N=r.onBeforeEmitNodeArray,A=r.onAfterEmitNodeArray,F=r.onBeforeEmitToken,P=r.onAfterEmitToken,w=!!t.extendedDiagnostics,I=e.getNewLineCharacter(t),O=e.getEmitModuleKind(t),M=e.createMap(),L=t.preserveSourceNewlines,R=function(e){p.write(e)},B=t.writeBundleFileInfo?{sections:[]}:void 0,j=B?e.Debug.checkDefined(t.relativeToBuildInfo):void 0,J=t.recordInternalSection,z=0,U="text",K=!0,V=-1,q=-1,W=-1,H=-1,G=!1,Q=!!t.removeComments,X=e.performance.createTimerIf(w,"commentTime","beforeComment","afterComment"),Y=X.enter,Z=X.exit;return ge(),{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 290:return ee(r);case 291:return $(r);case 292:return function(e,t){var r=p;fe(t,void 0),de(4,e,void 0),ge(),p=r}(r,le()),_e()}return te(t,r,n,le()),_e()},printList:function(e,t,r){return re(e,t,r,le()),_e()},printFile:ee,printBundle:$,writeNode:te,writeList:re,writeFile:ue,writeBundle:ce,bundleFileInfo:B};function $(e){return ce(e,le(),void 0),_e()}function ee(e){return ue(e,le(),void 0),_e()}function te(e,t,r,n){var i=p;fe(n,void 0),de(e,t,r),ge(),p=i}function re(e,t,r,n){var a=p;fe(n,void 0),r&&pe(r),ht(i,t,e),ge(),p=a}function ne(){return p.getTextPosWithWriteLine?p.getTextPosWithWriteLine():p.getTextPos()}function ie(t,r,n){var i=e.lastOrUndefined(B.sections);i&&i.kind===n?i.end=r:B.sections.push({pos:t,end:r,kind:n})}function ae(t){if(J&&B&&a&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,a)&&"internal"!==U){var r=U;return se(p.getTextPos()),z=ne(),U="internal",r}}function oe(e){e&&(se(p.getTextPos()),z=ne(),U=e)}function se(e){return z<e&&(ie(z,e,U),!0)}function ce(r,n,i){var a;g=!1;var o=p;fe(n,i),ot(r),at(r),Ee(r),function(t){tt(!!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++){ye(o[a]),wt()}}}(r);for(var s=0,c=r.prepends;s<c.length;s++){var u=c[s];wt();var l=p.getTextPos(),_=B&&B.sections;if(_&&(B.sections=[]),de(4,u,void 0),B){var d=B.sections;B.sections=_,u.oldFileOfCurrentEmit?(a=B.sections).push.apply(a,d):(d.forEach((function(t){return e.Debug.assert(e.isBundleFileTextLike(t))})),B.sections.push({pos:l,end:p.getTextPos(),kind:"prepend",data:j(u.fileName),texts:d}))}}z=ne();for(var f=0,m=r.sourceFiles;f<m.length;f++){var y=m[f];de(0,y,y)}if(B&&r.sourceFiles.length&&se(p.getTextPos())){var v=function(t){for(var r,n=e.createMap(),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.set(l.expression.text,!0),(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&&(B.sources||(B.sources={}),B.sources.prologues=v);var h=function(r){var n;if(O===e.ModuleKind.None||t.noEmitHelpers)return;for(var i=e.createMap(),a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a],c=void 0!==e.getExternalHelpersModuleName(s),u=Ne(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&&(B.sources||(B.sources={}),B.sources.helpers=h)}ge(),p=o}function ue(e,t,r){g=!0;var n=p;fe(t,r),ot(e),at(e),de(0,e,e),ge(),p=n}function le(){return f||(f=e.createTextWriter(I))}function _e(){var e=f.getText();return f.clear(),e}function de(e,t,r){r&&pe(r),xe(e,t)}function pe(e){a=e,v=void 0,h=void 0,e&&Ir(e)}function fe(r,n){r&&t.omitTrailingSemicolon&&(r=e.getTrailingSemicolonDeferringWriter(r)),m=n,K=!(p=r)||!m}function ge(){o=[],s=[],c=e.createMap(),u=[],l=0,_=[],a=void 0,v=void 0,h=void 0,b=void 0,x=void 0,fe(void 0,void 0)}function me(){return v||(v=e.getLineStarts(a))}function ye(e){if(void 0!==e){var t=ae(e),r=xe(4,e);return oe(t),r}}function ve(e){if(void 0!==e)return xe(2,e)}function he(e){if(void 0!==e)return xe(1,e)}function be(t){return xe(e.isStringLiteral(t)?6:4,t)}function xe(t,r){var n=b,i=x,a=L;b=r,x=void 0,L&&134217728&e.getEmitFlags(r)&&(L=!1),De(0,t,r)(t,r),e.Debug.assert(b===r);var o=x;return b=n,x=i,L=a,o||r}function De(t,r,n){switch(t){case 0:if(C!==e.noEmitNotification&&(!T||T(n)))return Ce;case 1:if(E!==e.noEmitSubstitution&&(x=E(r,n))!==n)return ke;case 2:if(!Q&&290!==n.kind)return pr;case 3:if(!K&&290!==n.kind&&!e.isInJsonFile(n))return Ar;case 4:return Te;default:return e.Debug.assertNever(t)}}function Se(e,t,r){return De(e+1,t,r)}function Ce(t,r){e.Debug.assert(b===r);var n=Se(0,t,r);C(t,r,n),e.Debug.assert(b===r)}function Te(t,r){if(e.Debug.assert(b===r||x===r),0===t)return function(t){wt();var r=t.statements;if(yr){if(0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0]))return void yr(t,r,rt)}rt(t)}(e.cast(r,e.isSourceFile));if(2===t)return Pe(e.cast(r,e.isIdentifier));if(6===t)return Ae(e.cast(r,e.isStringLiteral),!0);if(3===t)return function(e){ye(e.name),Ft(),kt("in"),Ft(),ye(e.constraint)}(e.cast(r,e.isTypeParameterDeclaration));if(5===t)return e.Debug.assertNode(r,e.isEmptyStatement),Oe(!0);if(4===t){if(e.isKeyword(r.kind))return Lt(r,kt);switch(r.kind){case 15:case 16:case 17:return Ae(r,!1);case 292:case 286:return function(e){for(var t=0,r=e.texts;t<r.length;t++){var n=r[t];wt(),ye(n)}}(r);case 285:return Fe(r);case 287:case 288:return function(e){var t=ne();Fe(e),B&&ie(t,p.getTextPos(),287===e.kind?"text":"internal")}(r);case 289:return function(t){var r=ne();if(Fe(t),B){var n=e.clone(t.section);n.pos=r,n.end=p.getTextPos(),B.sections.push(n)}}(r);case 75:return Pe(r);case 76:return function(e){(e.symbol?St:R)(Zt(e,!1),e.symbol)}(r);case 153:return function(e){(function(e){75===e.kind?he(e):ye(e)})(e.left),Ct("."),ye(e.right)}(r);case 154:return function(e){Ct("["),he(e.expression),Ct("]")}(r);case 155:return function(e){ye(e.name),e.constraint&&(Ft(),kt("extends"),Ft(),ye(e.constraint));e.default&&(Ft(),Et("="),Ft(),ye(e.default))}(r);case 156:return function(e){ft(e,e.decorators),ct(e,e.modifiers),ye(e.dotDotDotToken),st(e.name,Nt),ye(e.questionToken),e.parent&&300===e.parent.kind&&!e.name?ye(e.type):ut(e.type);lt(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 157:return i=r,Ct("@"),void he(i.expression);case 158:return function(e){ft(e,e.decorators),ct(e,e.modifiers),st(e.name,Pt),ye(e.questionToken),ut(e.type),Tt()}(r);case 159:return function(e){ft(e,e.decorators),ct(e,e.modifiers),ye(e.name),ye(e.questionToken),ye(e.exclamationToken),ut(e.type),lt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Tt()}(r);case 160:return function(e){er(e),ft(e,e.decorators),ct(e,e.modifiers),ye(e.name),ye(e.questionToken),mt(e,e.typeParameters),yt(e,e.parameters),ut(e.type),Tt(),tr(e)}(r);case 161:return function(e){ft(e,e.decorators),ct(e,e.modifiers),ye(e.asteriskToken),ye(e.name),ye(e.questionToken),Je(e,ze)}(r);case 162:return function(e){ct(e,e.modifiers),kt("constructor"),Je(e,ze)}(r);case 163:case 164:return function(e){ft(e,e.decorators),ct(e,e.modifiers),kt(163===e.kind?"get":"set"),Ft(),ye(e.name),Je(e,ze)}(r);case 165:return function(e){er(e),ft(e,e.decorators),ct(e,e.modifiers),mt(e,e.typeParameters),yt(e,e.parameters),ut(e.type),Tt(),tr(e)}(r);case 166:return function(e){er(e),ft(e,e.decorators),ct(e,e.modifiers),kt("new"),Ft(),mt(e,e.typeParameters),yt(e,e.parameters),ut(e.type),Tt(),tr(e)}(r);case 167:return function(e){ft(e,e.decorators),ct(e,e.modifiers),t=e,r=e.parameters,ht(t,r,8848),ut(e.type),Tt();var t,r}(r);case 168:return function(e){e.assertsModifier&&(ye(e.assertsModifier),Ft());ye(e.parameterName),e.type&&(Ft(),kt("is"),Ft(),ye(e.type))}(r);case 169:return function(e){ye(e.typeName),gt(e,e.typeArguments)}(r);case 170:return function(e){er(e),mt(e,e.typeParameters),vt(e,e.parameters),Ft(),Ct("=>"),Ft(),ye(e.type),tr(e)}(r);case 300:return function(e){kt("function"),yt(e,e.parameters),Ct(":"),ye(e.type)}(r);case 171:return function(e){er(e),kt("new"),Ft(),mt(e,e.typeParameters),yt(e,e.parameters),Ft(),Ct("=>"),Ft(),ye(e.type),tr(e)}(r);case 172:return function(e){kt("typeof"),Ft(),ye(e.exprName)}(r);case 173:return function(t){Ct("{");var r=1&e.getEmitFlags(t)?768:32897;ht(t,t.members,524288|r),Ct("}")}(r);case 174:return function(e){ye(e.elementType),Ct("["),Ct("]")}(r);case 175:return function(e){Ct("["),ht(e,e.elementTypes,528),Ct("]")}(r);case 176:return function(e){ye(e.type),Ct("?")}(r);case 178:return function(e){ht(e,e.types,516)}(r);case 179:return function(e){ht(e,e.types,520)}(r);case 180:return function(e){ye(e.checkType),Ft(),kt("extends"),Ft(),ye(e.extendsType),Ft(),Ct("?"),Ft(),ye(e.trueType),Ft(),Ct(":"),Ft(),ye(e.falseType)}(r);case 181:return function(e){kt("infer"),Ft(),ye(e.typeParameter)}(r);case 182:return function(e){Ct("("),ye(e.type),Ct(")")}(r);case 216:return function(e){he(e.expression),gt(e,e.typeArguments)}(r);case 183:return void kt("this");case 184:return function(e){Rt(e.operator,kt),Ft(),ye(e.type)}(r);case 185:return function(e){ye(e.objectType),Ct("["),ye(e.indexType),Ct("]")}(r);case 186:return function(t){var r=e.getEmitFlags(t);Ct("{"),1&r?Ft():(wt(),It());t.readonlyToken&&(ye(t.readonlyToken),138!==t.readonlyToken.kind&&kt("readonly"),Ft());Ct("["),xe(3,t.typeParameter),Ct("]"),t.questionToken&&(ye(t.questionToken),57!==t.questionToken.kind&&Ct("?"));Ct(":"),Ft(),ye(t.type),Tt(),1&r?Ft():(wt(),Ot());Ct("}")}(r);case 187:return function(e){he(e.literal)}(r);case 188:return function(e){e.isTypeOf&&(kt("typeof"),Ft());kt("import"),Ct("("),ye(e.argument),Ct(")"),e.qualifier&&(Ct("."),ye(e.qualifier));gt(e,e.typeArguments)}(r);case 295:return void Ct("*");case 296:return void Ct("?");case 297:return function(e){Ct("?"),ye(e.type)}(r);case 298:return function(e){Ct("!"),ye(e.type)}(r);case 299:return function(e){ye(e.type),Ct("=")}(r);case 177:case 301:return function(e){Ct("..."),ye(e.type)}(r);case 189:return function(e){Ct("{"),ht(e,e.elements,525136),Ct("}")}(r);case 190:return function(e){Ct("["),ht(e,e.elements,524880),Ct("]")}(r);case 191:return function(e){ye(e.dotDotDotToken),e.propertyName&&(ye(e.propertyName),Ct(":"),Ft());ye(e.name),lt(e.initializer,e.name.end,e)}(r);case 221:return function(e){he(e.expression),ye(e.literal)}(r);case 222:return void Tt();case 223:return function(e){Ie(e,!e.multiLine&&Xt(e))}(r);case 225:return function(e){ct(e,e.modifiers),ye(e.declarationList),Tt()}(r);case 224:return Oe(!1);case 226:return function(t){he(t.expression),(!e.isJsonSourceFile(a)||e.nodeIsSynthesized(t.expression))&&Tt()}(r);case 227:return function(e){var t=Re(95,e.pos,kt,e);Ft(),Re(20,t,Ct,e),he(e.expression),Re(21,e.expression.end,Ct,e),pt(e,e.thenStatement),e.elseStatement&&(Bt(e),Re(87,e.thenStatement.end,kt,e),227===e.elseStatement.kind?(Ft(),ye(e.elseStatement)):pt(e,e.elseStatement))}(r);case 228:return function(t){Re(86,t.pos,kt,t),pt(t,t.statement),e.isBlock(t.statement)?Ft():Bt(t);Me(t,t.statement.end),Tt()}(r);case 229:return function(e){Me(e,e.pos),pt(e,e.statement)}(r);case 230:return function(e){var t=Re(93,e.pos,kt,e);Ft();var r=Re(20,t,Ct,e);Le(e.initializer),r=Re(26,e.initializer?e.initializer.end:r,Ct,e),dt(e.condition),r=Re(26,e.condition?e.condition.end:r,Ct,e),dt(e.incrementor),Re(21,e.incrementor?e.incrementor.end:r,Ct,e),pt(e,e.statement)}(r);case 231:return function(e){var t=Re(93,e.pos,kt,e);Ft(),Re(20,t,Ct,e),Le(e.initializer),Ft(),Re(97,e.initializer.end,kt,e),Ft(),he(e.expression),Re(21,e.expression.end,Ct,e),pt(e,e.statement)}(r);case 232:return function(e){var t=Re(93,e.pos,kt,e);Ft(),function(e){e&&(ye(e),Ft())}(e.awaitModifier),Re(20,t,Ct,e),Le(e.initializer),Ft(),Re(152,e.initializer.end,kt,e),Ft(),he(e.expression),Re(21,e.expression.end,Ct,e),pt(e,e.statement)}(r);case 233:return function(e){Re(82,e.pos,kt,e),_t(e.label),Tt()}(r);case 234:return function(e){Re(77,e.pos,kt,e),_t(e.label),Tt()}(r);case 235:return function(e){Re(101,e.pos,kt,e),dt(e.expression),Tt()}(r);case 236:return function(e){var t=Re(112,e.pos,kt,e);Ft(),Re(20,t,Ct,e),he(e.expression),Re(21,e.expression.end,Ct,e),pt(e,e.statement)}(r);case 237:return function(e){var t=Re(103,e.pos,kt,e);Ft(),Re(20,t,Ct,e),he(e.expression),Re(21,e.expression.end,Ct,e),Ft(),ye(e.caseBlock)}(r);case 238:return function(e){ye(e.label),Re(58,e.label.end,Ct,e),Ft(),ye(e.statement)}(r);case 239:return function(e){Re(105,e.pos,kt,e),dt(e.expression),Tt()}(r);case 240:return function(e){Re(107,e.pos,kt,e),Ft(),ye(e.tryBlock),e.catchClause&&(Bt(e),ye(e.catchClause));e.finallyBlock&&(Bt(e),Re(92,(e.catchClause||e.tryBlock).end,kt,e),Ft(),ye(e.finallyBlock))}(r);case 241:return function(e){Mt(83,e.pos,kt),Tt()}(r);case 242:return function(e){ye(e.name),ye(e.exclamationToken),ut(e.type),lt(e.initializer,e.type?e.type.end:e.name.end,e)}(r);case 243:return function(t){kt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),Ft(),ht(t,t.declarations,528)}(r);case 244:return function(e){Be(e)}(r);case 245:return function(e){qe(e)}(r);case 246:return function(e){ft(e,e.decorators),ct(e,e.modifiers),kt("interface"),Ft(),ye(e.name),mt(e,e.typeParameters),ht(e,e.heritageClauses,512),Ft(),Ct("{"),ht(e,e.members,129),Ct("}")}(r);case 247:return function(e){ft(e,e.decorators),ct(e,e.modifiers),kt("type"),Ft(),ye(e.name),mt(e,e.typeParameters),Ft(),Ct("="),Ft(),ye(e.type),Tt()}(r);case 248:return function(e){ct(e,e.modifiers),kt("enum"),Ft(),ye(e.name),Ft(),Ct("{"),ht(e,e.members,145),Ct("}")}(r);case 249:return function(e){ct(e,e.modifiers),1024&~e.flags&&(kt(16&e.flags?"namespace":"module"),Ft());ye(e.name);var t=e.body;if(!t)return Tt();for(;249===t.kind;)Ct("."),ye(t.name),t=t.body;Ft(),ye(t)}(r);case 250:return function(t){er(t),e.forEach(t.statements,nr),Ie(t,Xt(t)),tr(t)}(r);case 251:return function(e){Re(18,e.pos,Ct,e),ht(e,e.clauses,129),Re(19,e.clauses.end,Ct,e,!0)}(r);case 252:return function(e){var t=Re(89,e.pos,kt,e);Ft(),t=Re(123,t,kt,e),Ft(),t=Re(136,t,kt,e),Ft(),ye(e.name),Tt()}(r);case 253:return function(e){ct(e,e.modifiers),Re(96,e.modifiers?e.modifiers.end:e.pos,kt,e),Ft(),ye(e.name),Ft(),Re(62,e.name.end,Ct,e),Ft(),function(e){75===e.kind?he(e):ye(e)}(e.moduleReference),Tt()}(r);case 254:return function(e){ct(e,e.modifiers),Re(96,e.modifiers?e.modifiers.end:e.pos,kt,e),Ft(),e.importClause&&(ye(e.importClause),Ft(),Re(149,e.importClause.end,kt,e),Ft());he(e.moduleSpecifier),Tt()}(r);case 255:return function(e){e.isTypeOnly&&(Re(145,e.pos,kt,e),Ft());ye(e.name),e.name&&e.namedBindings&&(Re(27,e.name.end,Ct,e),Ft());ye(e.namedBindings)}(r);case 256:case 262:return function(e){var t=Re(41,e.pos,Ct,e);Ft(),Re(123,t,kt,e),Ft(),ye(e.name)}(r);case 257:return function(e){We(e)}(r);case 258:return function(e){He(e)}(r);case 259:return function(e){var t=Re(89,e.pos,kt,e);Ft(),e.isExportEquals?Re(62,t,Et,e):Re(84,t,kt,e);Ft(),he(e.expression),Tt()}(r);case 260:return function(e){var t=Re(89,e.pos,kt,e);Ft(),e.isTypeOnly&&(t=Re(145,t,kt,e),Ft());e.exportClause?ye(e.exportClause):t=Re(41,t,Ct,e);if(e.moduleSpecifier){Ft(),Re(149,e.exportClause?e.exportClause.end:t,kt,e),Ft(),he(e.moduleSpecifier)}Tt()}(r);case 261:return function(e){We(e)}(r);case 263:return function(e){He(e)}(r);case 264:return;case 265:return function(e){kt("require"),Ct("("),he(e.expression),Ct(")")}(r);case 11:return function(e){p.writeLiteral(e.text)}(r);case 268:case 271:return function(t){if(Ct("<"),e.isJsxOpeningElement(t)){var r=Wt(t.tagName,t);Ge(t.tagName),gt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&Ft(),ye(t.attributes),Ht(t.attributes,t),zt(r)}Ct(">")}(r);case 269:case 272:return function(t){Ct("</"),e.isJsxClosingElement(t)&&Ge(t.tagName);Ct(">")}(r);case 273:return function(e){ye(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",Ct,e.initializer,be)}(r);case 274:return function(e){ht(e,e.properties,262656)}(r);case 275:return function(e){Ct("{..."),he(e.expression),Ct("}")}(r);case 276:return function(e){e.expression&&(Ct("{"),ye(e.dotDotDotToken),he(e.expression),Ct("}"))}(r);case 277:return function(e){Re(78,e.pos,kt,e),Ft(),he(e.expression),Qe(e,e.statements,e.expression.end)}(r);case 278:return function(e){var t=Re(84,e.pos,kt,e);Qe(e,e.statements,t)}(r);case 279:return function(e){Ft(),Rt(e.token,kt),Ft(),ht(e,e.types,528)}(r);case 280:return function(e){var t=Re(79,e.pos,kt,e);Ft(),e.variableDeclaration&&(Re(20,t,Ct,e),ye(e.variableDeclaration),Re(21,e.variableDeclaration.end,Ct,e),Ft());ye(e.block)}(r);case 281:return function(t){ye(t.name),Ct(":"),Ft();var r=t.initializer;if(Cr&&0===(512&e.getEmitFlags(r))){Cr(e.getCommentRange(r).pos)}he(r)}(r);case 282:return function(e){ye(e.name),e.objectAssignmentInitializer&&(Ft(),Ct("="),Ft(),he(e.objectAssignmentInitializer))}(r);case 283:return function(e){e.expression&&(Re(25,e.pos,Ct,e),he(e.expression))}(r);case 284:return function(e){ye(e.name),lt(e.initializer,e.name.end,e)}(r);case 317:case 323:return function(e){Ze(e.tagName),et(e.typeExpression),Ft(),e.isBracketed&&Ct("[");ye(e.name),e.isBracketed&&Ct("]");$e(e.comment)}(r);case 318:case 320:case 319:case 316:return Ze((n=r).tagName),et(n.typeExpression),void $e(n.comment);case 308:case 307:return function(e){Ze(e.tagName),Ft(),Ct("{"),ye(e.class),Ct("}"),$e(e.comment)}(r);case 321:return function(e){Ze(e.tagName),et(e.constraint),Ft(),ht(e,e.typeParameters,528),$e(e.comment)}(r);case 322:return function(e){Ze(e.tagName),e.typeExpression&&(294===e.typeExpression.kind?et(e.typeExpression):(Ft(),Ct("{"),R("Object"),e.typeExpression.isArrayType&&(Ct("["),Ct("]")),Ct("}")));e.fullName&&(Ft(),ye(e.fullName));$e(e.comment),e.typeExpression&&304===e.typeExpression.kind&&Xe(e.typeExpression)}(r);case 315:return function(e){Ze(e.tagName),e.name&&(Ft(),ye(e.name));$e(e.comment),Ye(e.typeExpression)}(r);case 305:return Ye(r);case 304:return Xe(r);case 310:case 306:return function(e){Ze(e.tagName),$e(e.comment)}(r);case 303:return function(e){if(R("/**"),e.comment)for(var t=e.comment.split(/\r\n?|\n/g),r=0,n=t;r<n.length;r++){var i=n[r];wt(),Ft(),Ct("*"),Ft(),R(i)}e.tags&&(1!==e.tags.length||320!==e.tags[0].kind||e.comment?ht(e,e.tags,33):(Ft(),ye(e.tags[0])));Ft(),R("*/")}(r)}if(e.isExpression(r))t=1,E!==e.noEmitSubstitution&&(x=r=E(t,r));else if(e.isToken(r))return Lt(r,Ct)}var n,i;if(1===t)switch(r.kind){case 8:case 9:return function(e){Ae(e,!1)}(r);case 10:case 13:case 14:return Ae(r,!1);case 75:return Pe(r);case 91:case 100:case 102:case 106:case 104:case 96:return void Lt(r,kt);case 192:return function(e){var t=e.elements,r=e.multiLine?65536:0;bt(e,t,8914|r)}(r);case 193:return function(t){e.forEach(t.properties,ir);var r=65536&e.getEmitFlags(t);r&&It();var n=t.multiLine?65536:0,i=a.languageVersion>=1&&!e.isJsonSourceFile(a)?64:0;ht(t,t.properties,526226|i|n),r&&Ot()}(r);case 194:return function(t){var r=e.cast(he(t.expression),e.isExpression),n=t.questionDotToken||e.createNode(24,t.expression.end,t.name.pos),i=Qt(t,t.expression,n),a=Qt(t,n,t.name);Jt(i,!1),28===n.kind||!function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=$t(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)||p.hasTrailingComment()||p.hasTrailingWhitespace()||Ct(".");t.questionDotToken?ye(n):Re(n.kind,t.expression.end,Ct,t);Jt(a,!1),ye(t.name),zt(i,a)}(r);case 195:return function(e){he(e.expression),ye(e.questionDotToken),Re(22,e.expression.end,Ct,e),he(e.argumentExpression),Re(23,e.argumentExpression.end,Ct,e)}(r);case 196:return function(e){he(e.expression),ye(e.questionDotToken),gt(e,e.typeArguments),bt(e,e.arguments,2576)}(r);case 197:return function(e){Re(99,e.pos,kt,e),Ft(),he(e.expression),gt(e,e.typeArguments),bt(e,e.arguments,18960)}(r);case 198:return function(e){he(e.tag),gt(e,e.typeArguments),Ft(),he(e.template)}(r);case 199:return function(e){Ct("<"),ye(e.type),Ct(">"),he(e.expression)}(r);case 200:return function(e){var t=Re(20,e.pos,Ct,e),r=Wt(e.expression,e);he(e.expression),Ht(e.expression,e),zt(r),Re(21,e.expression?e.expression.end:t,Ct,e)}(r);case 201:return function(e){ar(e.name),Be(e)}(r);case 202:return function(e){ft(e,e.decorators),ct(e,e.modifiers),Je(e,we)}(r);case 203:return function(e){Re(85,e.pos,kt,e),Ft(),he(e.expression)}(r);case 204:return function(e){Re(108,e.pos,kt,e),Ft(),he(e.expression)}(r);case 205:return function(e){Re(110,e.pos,kt,e),Ft(),he(e.expression)}(r);case 206:return function(e){Re(127,e.pos,kt,e),Ft(),he(e.expression)}(r);case 207:return function(e){Rt(e.operator,Et),function(e){var t=e.operand;return 207===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&Ft();he(e.operand)}(r);case 208:return function(e){he(e.operand),Rt(e.operator,Et)}(r);case 209: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=Qt(t,t.left,t.operatorToken),s=Qt(t,t.operatorToken,t.right);Jt(o,a),Dr(t.operatorToken.pos),Lt(t.operatorToken,97===t.operatorToken.kind?kt:Et),Cr(t.operatorToken.end,!0),Jt(s,!0),c(t.right);break;case 2:o=Qt(t,t.left,t.operatorToken),s=Qt(t,t.operatorToken,t.right);zt(o,s),i--;break;default:return e.Debug.fail("Invalid state "+n[i]+" for emitBinaryExpressionWorker")}function c(t){n[i]++;var a=b,o=x;b=t,x=void 0;var s=De(0,1,t);s===Te&&e.isBinaryExpression(t)?(i++,n[i]=0,r[i]=t):s(1,t),e.Debug.assert(b===t),b=a,x=o}}(r);case 210:return function(e){var t=Qt(e,e.condition,e.questionToken),r=Qt(e,e.questionToken,e.whenTrue),n=Qt(e,e.whenTrue,e.colonToken),i=Qt(e,e.colonToken,e.whenFalse);he(e.condition),Jt(t,!0),ye(e.questionToken),Jt(r,!0),he(e.whenTrue),zt(t,r),Jt(n,!0),ye(e.colonToken),Jt(i,!0),he(e.whenFalse),zt(n,i)}(r);case 211:return function(e){ye(e.head),ht(e,e.templateSpans,262144)}(r);case 212:return function(e){Re(121,e.pos,kt,e),ye(e.asteriskToken),dt(e.expression)}(r);case 213:return function(e){Re(25,e.pos,Ct,e),he(e.expression)}(r);case 214:return function(e){ar(e.name),qe(e)}(r);case 215:return;case 217:return function(e){he(e.expression),e.type&&(Ft(),kt("as"),Ft(),ye(e.type))}(r);case 218:return function(e){he(e.expression),Et("!")}(r);case 219:return function(e){Mt(e.keywordToken,e.pos,Ct),Ct("."),ye(e.name)}(r);case 266:return function(e){ye(e.openingElement),ht(e,e.children,262144),ye(e.closingElement)}(r);case 267:return function(e){Ct("<"),Ge(e.tagName),gt(e,e.typeArguments),Ft(),ye(e.attributes),Ct("/>")}(r);case 270:return function(e){ye(e.openingFragment),ht(e,e.children,262144),ye(e.closingFragment)}(r);case 326:return function(e){he(e.expression)}(r);case 327:return function(e){bt(e,e.elements,528)}(r)}}function ke(t,r){e.Debug.assert(b===r||x===r),Se(1,t,r)(t,x),e.Debug.assert(b===r||x===r)}function Ee(r){var n=!1,i=291===r.kind?r:void 0;if(!i||O!==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))&&!g,f=e.isUnparsedSource(u)?u.helpers:Ne(u);if(f)for(var m=0,y=f;m<y.length;m++){var v=y[m];if(v.scoped){if(i)continue}else{if(_)continue;if(d){if(M.get(v.name))continue;M.set(v.name,!0)}}var h=ne();"string"===typeof v.text?jt(v.text):jt(v.text(dr)),B&&B.sections.push({pos:h,end:p.getTextPos(),kind:"emitHelpers",data:v.name}),n=!0}}return n}}function Ne(t){var r=e.getEmitHelpers(t);return r&&e.stableSort(r,e.compareEmitHelpers)}function Ae(r,n){var i,a=$t(r,t.neverAsciiEscape,n);!t.sourceMap&&!t.inlineSourceMap||10!==r.kind&&!e.isTemplateLiteralKind(r.kind)?function(e){p.writeStringLiteral(e)}(a):(i=a,p.writeLiteral(i))}function Fe(e){p.rawWrite(e.parent.text.substring(e.pos,e.end))}function Pe(e){(e.symbol?St:R)(Zt(e,!1),e.symbol),ht(e,e.typeArguments,53776)}function we(e){mt(e,e.typeParameters),vt(e,e.parameters),ut(e.type),Ft(),ye(e.equalsGreaterThanToken)}function Ie(t,r){Re(18,t.pos,Ct,t);var n=r||1&e.getEmitFlags(t)?768:129;ht(t,t.statements,n),Re(19,t.statements.end,Ct,t,!!(1&n))}function Oe(e){e?Ct(";"):Tt()}function Me(e,t){var r=Re(111,t,kt,e);Ft(),Re(20,r,Ct,e),he(e.expression),Re(21,e.expression.end,Ct,e)}function Le(e){void 0!==e&&(243===e.kind?ye(e):he(e))}function Re(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)),Dr&&c&&i.pos!==u){var l=o&&a&&!e.positionsAreOnSameLine(u,r,a);l&&It(),Dr(u),l&&Ot()}return r=Rt(t,n,r),Cr&&c&&i.end!==r&&Cr(r,!0),r}function Be(e){ft(e,e.decorators),ct(e,e.modifiers),kt("function"),ye(e.asteriskToken),Ft(),ve(e.name),Je(e,ze)}function je(e,t){Ue(t)}function Je(t,r){var n=t.body;if(n)if(e.isBlock(n)){var i=65536&e.getEmitFlags(t);i&&It(),er(t),e.forEach(t.parameters,nr),nr(t.body),r(t),C?C(4,n,je):Ue(n),tr(t),i&&Ot()}else r(t),Ft(),he(n);else r(t),Tt()}function ze(e){mt(e,e.typeParameters),yt(e,e.parameters),ut(e.type)}function Ue(t){Ft(),Ct("{"),It();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(Ut(t,t.statements,2)||Vt(t,t.statements,2))return!1;for(var r,n=0,i=t.statements;n<i.length;n++){var o=i[n];if(Kt(r,o,2)>0)return!1;r=o}return!0}(t)?Ke:Ve;yr?yr(t,t.statements,r):r(t),Ot(),Mt(19,t.statements.end,Ct,t)}function Ke(e){Ve(e,!0)}function Ve(e,t){var r=nt(e.statements),n=p.getTextPos();Ee(e),0===r&&n===p.getTextPos()&&t?(Ot(),ht(e,e.statements,768),It()):ht(e,e.statements,1,r)}function qe(t){e.forEach(t.members,ir),ft(t,t.decorators),ct(t,t.modifiers),kt("class"),t.name&&(Ft(),ve(t.name));var r=65536&e.getEmitFlags(t);r&&It(),mt(t,t.typeParameters),ht(t,t.heritageClauses,0),Ft(),Ct("{"),ht(t,t.members,129),Ct("}"),r&&Ot()}function We(e){Ct("{"),ht(e,e.elements,525136),Ct("}")}function He(e){e.propertyName&&(ye(e.propertyName),Ft(),Re(123,e.propertyName.end,kt,e),Ft()),ye(e.name)}function Ge(e){75===e.kind?he(e):ye(e)}function Qe(t,r,n){var i=163969;1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],a))?(Mt(58,n,Ct,t),Ft(),i&=-130):Re(58,n,Ct,t),ht(t,r,i)}function Xe(t){ht(t,e.createNodeArray(t.jsDocPropertyTags),33)}function Ye(t){t.typeParameters&&ht(t,e.createNodeArray(t.typeParameters),33),t.parameters&&ht(t,e.createNodeArray(t.parameters),33),t.type&&(wt(),Ft(),Ct("*"),Ft(),ye(t.type))}function Ze(e){Ct("@"),ye(e)}function $e(e){e&&(Ft(),R(e))}function et(e){e&&(Ft(),Ct("{"),ye(e.type),Ct("}"))}function tt(e,t,r,n){if(e){var i=p.getTextPos();At('/// <reference no-default-lib="true"/>'),B&&B.sections.push({pos:i,end:p.getTextPos(),kind:"no-default-lib"}),wt()}if(a&&a.moduleName&&(At('/// <amd-module name="'+a.moduleName+'" />'),wt()),a&&a.amdDependencies)for(var o=0,s=a.amdDependencies;o<s.length;o++){var c=s[o];c.name?At('/// <amd-dependency name="'+c.name+'" path="'+c.path+'" />'):At('/// <amd-dependency path="'+c.path+'" />'),wt()}for(var u=0,l=t;u<l.length;u++){var _=l[u];i=p.getTextPos();At('/// <reference path="'+_.fileName+'" />'),B&&B.sections.push({pos:i,end:p.getTextPos(),kind:"reference",data:_.fileName}),wt()}for(var d=0,f=r;d<f.length;d++){_=f[d],i=p.getTextPos();At('/// <reference types="'+_.fileName+'" />'),B&&B.sections.push({pos:i,end:p.getTextPos(),kind:"type",data:_.fileName}),wt()}for(var g=0,m=n;g<m.length;g++){_=m[g],i=p.getTextPos();At('/// <reference lib="'+_.fileName+'" />'),B&&B.sections.push({pos:i,end:p.getTextPos(),kind:"lib",data:_.fileName}),wt()}}function rt(t){var r=t.statements;er(t),e.forEach(t.statements,nr),Ee(t);var n=e.findIndex(r,(function(t){return!e.isPrologueDirective(t)}));!function(e){e.isDeclarationFile&&tt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),ht(t,r,1,-1===n?r.length:n),tr(t)}function nt(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,pe(r)),wt();var c=p.getTextPos();ye(s),i&&B&&B.sections.push({pos:c,end:p.getTextPos(),kind:"prologue",data:s.expression.text}),n&&n.set(s.expression.text,!0)}}return t.length}function it(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!t.has(i.data)){wt();var a=p.getTextPos();ye(i),B&&B.sections.push({pos:a,end:p.getTextPos(),kind:"prologue",data:i.data}),t&&t.set(i.data,!0)}}}function at(t){if(e.isSourceFile(t))nt(t.statements,t);else{for(var r=e.createMap(),n=0,i=t.prepends;n<i.length;n++){it(i[n].prologues,r)}for(var a=0,o=t.sourceFiles;a<o.length;a++){var s=o[a];nt(s.statements,s,r,!0)}pe(void 0)}}function ot(t){if(e.isSourceFile(t)||e.isUnparsedSource(t)){var r=e.getShebang(t.text);if(r)return At(r),wt(),!0}else{for(var n=0,i=t.prepends;n<i.length;n++){var a=i[n];if(e.Debug.assertNode(a,e.isUnparsedSource),ot(a))return!0}for(var o=0,s=t.sourceFiles;o<s.length;o++){if(ot(s[o]))return!0}}}function st(e,t){if(e){var r=R;R=t,ye(e),R=r}}function ct(e,t){t&&t.length&&(ht(e,t,262656),Ft())}function ut(e){e&&(Ct(":"),Ft(),ye(e))}function lt(e,t,r){e&&(Ft(),Re(62,t,Et,r),Ft(),he(e))}function _t(e){e&&(Ft(),ye(e))}function dt(e){e&&(Ft(),he(e))}function pt(t,r){e.isBlock(r)||1&e.getEmitFlags(t)?(Ft(),ye(r)):(wt(),It(),e.isEmptyStatement(r)?xe(5,r):ye(r),Ot())}function ft(e,t){ht(e,t,2146305)}function gt(e,t){ht(e,t,53776)}function mt(t,r){if(e.isFunctionLike(t)&&t.typeArguments)return gt(t,t.typeArguments);ht(t,r,53776)}function yt(e,t){ht(e,t,2576)}function vt(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)?yt(t,r):ht(t,r,528)}function ht(e,t,r,n,i){Dt(ye,e,t,r,n,i)}function bt(e,t,r,n,i){Dt(he,e,t,r,n,i)}function xt(e){switch(60&e){case 0:break;case 16:Ct(",");break;case 4:Ft(),Ct("|");break;case 32:Ft(),Ct("*"),Ft();break;case 8:Ft(),Ct("&")}}function Dt(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 N&&N(i),void(A&&A(i));if(15360&o&&(Ct(function(e){return n[15360&e][0]}(o)),l&&!u&&Cr(i.pos,!0)),N&&N(i),l)!(1&o)||L&&e.rangeIsOnSingleLine(r,a)?256&o&&!(524288&o)&&Ft():wt();else{var _=0===(262144&o),d=_,p=Ut(r,i,o);p?(wt(p),d=!1):256&o&&Ft(),128&o&&It();for(var f=void 0,g=void 0,m=!1,y=0;y<c;y++){var v=i[s+y];if(32&o)wt(),xt(o);else if(f){60&o&&f.end!==r.end&&Dr(f.end),xt(o),oe(g);var h=Kt(f,v,o);h>0?(0===(131&o)&&(It(),m=!0),wt(h),d=!1):f&&512&o&&Ft()}if(g=ae(v),d){if(Cr)Cr(e.getCommentRange(v).pos)}else d=_;t(v),m&&(Ot(),m=!1),f=v}var b=64&o&&i.hasTrailingComma;16&o&&b&&Ct(","),f&&60&o&&f.end!==r.end&&!(1024&e.getEmitFlags(f))&&Dr(f.end),128&o&&Ot(),oe(g);var x=Vt(r,i,o);x?wt(x):2097408&o&&Ft()}A&&A(i),15360&o&&(l&&!u&&Dr(i.end),Ct(function(e){return n[15360&e][1]}(o)))}}function St(e,t){p.writeSymbol(e,t)}function Ct(e){p.writePunctuation(e)}function Tt(){p.writeTrailingSemicolon(";")}function kt(e){p.writeKeyword(e)}function Et(e){p.writeOperator(e)}function Nt(e){p.writeParameter(e)}function At(e){p.writeComment(e)}function Ft(){p.writeSpace(" ")}function Pt(e){p.writeProperty(e)}function wt(e){void 0===e&&(e=1);for(var t=0;t<e;t++)p.writeLine(t>0)}function It(){p.increaseIndent()}function Ot(){p.decreaseIndent()}function Mt(t,r,n,i){return K?Rt(t,n,r):function(t,r,n,i,a){if(K||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||y;i=Fr(u,c?c.pos:i),0===(128&s)&&i>=0&&wr(u,i);i=a(r,n,i),c&&(i=c.end);0===(256&s)&&i>=0&&wr(u,i);return i}(i,t,n,r,Rt)}function Lt(t,r){F&&F(t),r(e.tokenToString(t.kind)),P&&P(t)}function Rt(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function Bt(t){1&e.getEmitFlags(t)?Ft():wt()}function jt(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&&(wt(),R(s))}}function Jt(e,t){e?(It(),wt(e)):t&&Ft()}function zt(e,t){e&&Ot(),t&&Ot()}function Ut(t,r,n){if(2&n||L){if(65536&n)return 1;var i=r[0];if(void 0===i)return e.rangeIsOnSingleLine(t,a)?0:1;if(11===i.kind)return 0;if(!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(i)&&(!i.parent||i.parent===t))return L?qt((function(r){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(i.pos,t.pos,a,r)})):e.rangeStartPositionsAreOnSameLine(t,i,a)?0:1;if(Gt(i,n))return 1}return 1&n?1:0}function Kt(t,r,n){if(2&n||L){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 L?qt((function(n){return e.getLinesBetweenRangeEndAndRangeStart(t,r,a,n)})):e.rangeEndIsOnSameLineAsRangeStart(t,r,a)?0:1;if(Gt(t,n)||Gt(r,n))return 1}else if(e.getStartsOnNewLine(r))return 1;return 1&n?1:0}function Vt(t,r,n){if(2&n||L){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))return L?qt((function(r){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(i.end,t.end,a,r)})):e.rangeEndPositionsAreOnSameLine(t,i,a)?0:1;if(Gt(i,n))return 1}return 1&n&&!(131072&n)?1:0}function qt(t){e.Debug.assert(!!L);var r=t(!0);return 0===r?t(!1):r}function Wt(e,t){var r=L&&Ut(t,[e],0);return r&&Jt(r,!1),!!r}function Ht(e,t){var r=L&&Vt(t,[e],0);r&&wt(r)}function Gt(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!==(65536&r):n}return 0!==(65536&r)}function Qt(t,r,n){return 131072&e.getEmitFlags(t)?0:(t=Yt(t),r=Yt(r),n=Yt(n),e.getStartsOnNewLine(n)?1:e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)?0:L?qt((function(t){return e.getLinesBetweenRangeEndAndRangeStart(r,n,a,t)})):e.rangeEndIsOnSameLineAsRangeStart(r,n,a)?0:1)}function Xt(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,a)}function Yt(t){for(;200===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function Zt(t,r){return e.isGeneratedIdentifier(t)?or(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?Zt(t.textSourceNode,r):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(a,t,r):t.text}function $t(t,r,n){if(10===t.kind&&t.textSourceNode){var i=t.textSourceNode;return e.isIdentifier(i)?n?'"'+e.escapeJsxAttributeString(Zt(i))+'"':r||16777216&e.getEmitFlags(t)?'"'+e.escapeString(Zt(i))+'"':'"'+e.escapeNonAsciiString(Zt(i))+'"':$t(i,r,n)}return e.getLiteralText(t,a,r,n)}function er(t){t&&524288&e.getEmitFlags(t)||(u.push(l),l=0,_.push(d))}function tr(t){t&&524288&e.getEmitFlags(t)||(l=u.pop(),d=_.pop())}function rr(t){d&&d!==e.lastOrUndefined(_)||(d=e.createMap()),d.set(t,!0)}function nr(t){if(t)switch(t.kind){case 223:e.forEach(t.statements,nr);break;case 238:case 236:case 228:case 229:nr(t.statement);break;case 227:nr(t.thenStatement),nr(t.elseStatement);break;case 230:case 232:case 231:nr(t.initializer),nr(t.statement);break;case 237:nr(t.caseBlock);break;case 251:e.forEach(t.clauses,nr);break;case 277:case 278:e.forEach(t.statements,nr);break;case 240:nr(t.tryBlock),nr(t.catchClause),nr(t.finallyBlock);break;case 280:nr(t.variableDeclaration),nr(t.block);break;case 225:nr(t.declarationList);break;case 243:e.forEach(t.declarations,nr);break;case 242:case 156:case 191:case 245:ar(t.name);break;case 244:ar(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,nr),nr(t.body));break;case 189:case 190:e.forEach(t.elements,nr);break;case 254:nr(t.importClause);break;case 255:ar(t.name),nr(t.namedBindings);break;case 256:case 262:ar(t.name);break;case 257:e.forEach(t.elements,nr);break;case 258:ar(t.propertyName||t.name)}}function ir(e){if(e)switch(e.kind){case 281:case 282:case 159:case 161:case 163:case 164:ar(e.name)}}function ar(t){t&&(e.isGeneratedIdentifier(t)?or(t):e.isBindingPattern(t)&&nr(t))}function or(t){if(4===(7&t.autoGenerateFlags))return sr(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 lr(0,!!(8&t.autoGenerateFlags));case 2:return lr(268435456,!!(8&t.autoGenerateFlags));case 3:return _r(e.idText(t),32&t.autoGenerateFlags?ur:cr,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(t))}function sr(t,r){var n=e.getNodeId(t);return o[n]||(o[n]=function(t,r){switch(t.kind){case 75:return _r(Zt(t),cr,!!(16&r),!!(8&r));case 249:case 248:return function(t){var r=Zt(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:_r(r)}(t);case 254:case 260:return function(t){var r=e.getExternalModuleName(t);return _r(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")}(t);case 244:case 245:case 259:return _r("default");case 214:return _r("class");case 161:case 163:case 164:return function(t){if(e.isIdentifier(t.name))return sr(t.name);return lr(0)}(t);case 154:return lr(0,!0);default:return lr(0)}}(t,r))}function cr(e){return ur(e)&&!c.has(e)&&!(d&&d.has(e))}function ur(t){return!a||e.isFileLevelUniqueName(a,t,D)}function lr(e,t){if(e&&!(l&e)&&cr(r=268435456===e?"_i":"_n"))return l|=e,t&&rr(r),r;for(;;){var r,n=268435455&l;if(l++,8!==n&&13!==n)if(cr(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&rr(r),r}}function _r(e,t,r,n){if(void 0===t&&(t=cr),r&&t(e))return n?rr(e):c.set(e,!0),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return n?rr(a):c.set(a,!0),a;i++}}function dr(e){return _r(e,ur,!0)}function pr(t,r){e.Debug.assert(b===r||x===r),Y(),G=!1;var n=e.getEmitFlags(r),i=e.getCommentRange(r),a=i.pos,o=i.end,s=325!==r.kind,c=a<0||0!==(512&n)||11===r.kind,u=o<0||0!==(1024&n)||11===r.kind,l=q,_=W,d=H;(a>0||o>0)&&a!==o&&(c||vr(a,s),(!c||a>=0&&0!==(512&n))&&(q=a),(!u||o>=0&&0!==(1024&n))&&(W=o,243===r.kind&&(H=o))),e.forEach(e.getSyntheticLeadingComments(r),fr),Z();var p=Se(2,t,r);2048&n?(Q=!0,p(t,r),Q=!1):p(t,r),Y(),e.forEach(e.getSyntheticTrailingComments(r),gr),(a>0||o>0)&&a!==o&&(q=l,W=_,H=d,!u&&s&&function(e){Er(e,Sr)}(o)),Z(),e.Debug.assert(b===r||x===r)}function fr(e){2===e.kind&&p.writeLine(),mr(e),e.hasTrailingNewLine||2===e.kind?p.writeLine():p.writeSpace(" ")}function gr(e){p.isAtStartOfLine()||p.writeSpace(" "),mr(e),e.hasTrailingNewLine&&p.writeLine()}function mr(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,p,0,r.length,I)}function yr(t,r,n){Y();var i=r.pos,o=r.end,s=e.getEmitFlags(t),c=Q||o<0||0!==(1024&s);i<0||0!==(512&s)||function(t){var r=e.emitDetachedComments(a.text,me(),p,Nr,t,I,Q);r&&(h?h.push(r):h=[r])}(r),Z(),2048&s&&!Q?(Q=!0,n(t),Q=!1):n(t),Y(),c||(vr(r.end,!0),G&&!p.isAtStartOfLine()&&p.writeLine()),Z()}function vr(e,t){G=!1,t?kr(e,xr):0===e&&kr(e,hr)}function hr(t,r,n,i,o){(function(t,r){return e.isRecognizedTripleSlashComment(a.text,t,r)})(t,r)&&xr(t,r,n,i,o)}function br(r,n){return!t.onlyPrintJsDocStyle||(e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n))}function xr(t,r,n,i,o){br(a.text,t)&&(G||(e.emitNewLineBeforeLeadingCommentOfPosition(me(),p,o,t),G=!0),Pr(t),e.writeCommentRange(a.text,me(),p,t,r,I),Pr(r),i?p.writeLine():3===n&&p.writeSpace(" "))}function Dr(e){Q||-1===e||vr(e,!0)}function Sr(t,r,n,i){br(a.text,t)&&(p.isAtStartOfLine()||p.writeSpace(" "),Pr(t),e.writeCommentRange(a.text,me(),p,t,r,I),Pr(r),i&&p.writeLine())}function Cr(e,t){Q||(Y(),Er(e,t?Sr:Tr),Z())}function Tr(t,r,n,i){Pr(t),e.writeCommentRange(a.text,me(),p,t,r,I),Pr(r),i?p.writeLine():p.writeSpace(" ")}function kr(t,r){!a||-1!==q&&t===q||(function(t){return void 0!==h&&e.last(h).nodePos===t}(t)?function(t){var r=e.last(h).detachedCommentEndPos;h.length-1?h.pop():h=void 0;e.forEachLeadingCommentRange(a.text,r,t,r)}(r):e.forEachLeadingCommentRange(a.text,t,r,t))}function Er(t,r){a&&(-1===W||t!==W&&t!==H)&&e.forEachTrailingCommentRange(a.text,t,r)}function Nr(t,r,n,i,o,s){br(a.text,i)&&(Pr(i),e.writeCommentRange(t,r,n,i,o,s),Pr(o))}function Ar(t,r){e.Debug.assert(b===r||x===r);var n=Se(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&&m&&m.appendSourceMap(p.getLine(),p.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?y:c,l=e.getEmitFlags(r);325!==r.kind&&0===(16&l)&&o>=0&&wr(u,Fr(u,o)),64&l?(K=!0,n(t,r),K=!1):n(t,r),325!==r.kind&&0===(32&l)&&s>=0&&wr(u,s)}e.Debug.assert(b===r||x===r)}function Fr(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function Pr(t){if(!(K||e.positionIsSynthesized(t)||Or(y))){var r=e.getLineAndCharacterOfPosition(y,t),n=r.line,i=r.character;m.addMapping(p.getLine(),p.getColumn(),V,n,i,void 0)}}function wr(e,t){if(e!==y){var r=y;Ir(e),Pr(t),Ir(r)}else Pr(t)}function Ir(e){K||(y=e,Or(e)||(V=m.addSource(e.fileName),t.inlineSources&&m.setSourceContent(V,e.text)))}function Or(t){return e.fileExtensionIs(t.fileName,".json")}}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=a,e.getTsBuildInfoEmitOutputFilePath=s,e.getOutputPathsForBundle=c,e.getOutputPathsFor=u,e.getOutputExtension=_,e.getOutputDeclarationFileName=p,e.getAllProjectOutputs=function(e,t){var r=g(),n=r.addOutput,i=r.getOutputs;if(e.options.outFile||e.options.out)m(e,n);else{for(var a=0,o=e.fileNames;a<o.length;a++){y(e,o[a],t,n)}n(s(e.options))}return i()},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=g(),a=i.addOutput,o=i.getOutputs;return t.options.outFile||t.options.out?m(t,a):y(t,r,n,a),o()},e.getFirstProjectOutput=function(t,r){if(t.options.outFile||t.options.out){var n=c(t.options,!1).jsFilePath;return e.Debug.checkDefined(n,"project "+t.options.configFilePath+" expected to have at least one output")}for(var i=0,a=t.fileNames;i<a.length;i++){var o=a[i];if(!e.fileExtensionIs(o,".d.ts")){if(n=f(o,t,r))return n;if(!e.fileExtensionIs(o,".json")&&e.getEmitDeclarations(t.options))return p(o,t,r)}}var u=s(t.options);return u||e.Debug.fail("project "+t.options.configFilePath+" expected to have at least one output")},e.emitFiles=v,e.getBuildInfoText=h,e.getBuildInfo=b,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,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented},e.emitUsingBuildInfo=function(t,r,n,i){var a=c(t.options,!1),s=a.buildInfoPath,u=a.jsFilePath,l=a.sourceMapFilePath,_=a.declarationFilePath,d=a.declarationMapPath,p=r.readFile(e.Debug.checkDefined(s));if(!p)return s;var f=r.readFile(e.Debug.checkDefined(u));if(!f)return u;var g=l&&r.readFile(l);if(l&&!g||t.options.inlineSourceMap)return l||"inline sourcemap decoding";var m=_&&r.readFile(_);if(_&&!m)return _;var y=d&&r.readFile(d);if(d&&!y||t.options.inlineSourceMap)return d||"inline sourcemap decoding";var x=b(p);if(!x.bundle||!x.bundle.js||m&&!x.bundle.dts)return s;var D=e.getDirectoryPath(e.getNormalizedAbsolutePath(s,r.getCurrentDirectory())),S=e.createInputFiles(f,m,l,g,d,y,u,_,s,x,!0),C=[],T=e.createPrependNodes(t.projectReferences,n,(function(e){return r.readFile(e)})),k=function(t,r,n){var i=t.sourceFiles.map((function(t){var i=e.createNode(290,0,0);return i.fileName=e.getRelativePathFromDirectory(n.getCurrentDirectory(),e.getNormalizedAbsolutePath(t,r),!n.useCaseSensitiveFileNames()),i.text="",i.statements=e.createNodeArray(),i})),a=e.Debug.checkDefined(t.js);return e.forEach(a.sources&&a.sources.prologues,(function(t){var r=i[t.file];r.text=t.text,r.end=t.text.length,r.statements=e.createNodeArray(t.directives.map((function(t){var r=e.createNode(226,t.pos,t.end);return r.expression=e.createNode(10,t.expression.pos,t.expression.end),r.expression.text=t.expression.text,r})))})),i}(x.bundle,D,r),E={getPrependNodes:e.memoize((function(){return o(T,[S])})),getCanonicalFileName:r.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(x.bundle.commonSourceDirectory,D)},getCompilerOptions:function(){return t.options},getCurrentDirectory:function(){return r.getCurrentDirectory()},getNewLine:function(){return r.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return k},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(t,r,n){switch(t){case u:if(f===r)return;break;case l:if(g===r)return;break;case s:var i=b(r);i.program=x.program;var a=x.bundle,o=a.js,c=a.dts,p=a.sourceFiles;return i.bundle.js.sources=o.sources,c&&(i.bundle.dts.sources=c.sources),i.bundle.sourceFiles=p,void C.push({name:t,text:h(i),writeByteOrderMark:n});case _:if(m===r)return;break;case d:if(y===r)return;break;default:e.Debug.fail("Unexpected path: "+t)}C.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()};return v(e.notImplementedResolver,E,void 0,e.getTransformers(t.options,i)),C},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=x,function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(r||(r={}))}(d||(d={})),function(e){var t;function r(e,t,r,n,i){return e.watchFile(t,r,n,i)}function n(e,t,n,i,a,o){return r(e,t,(function(e,t){return n(e,t,o)}),i,a)}function i(e,t,r,n,i){return e.watchDirectory(t,r,0!==(1&n),i)}function a(e,r){switch(e){case t.None:return r;case t.TriggerOnly:return c;case t.Verbose:return r===i?s:o}}function o(e,t,r,n,i,a,o,s,l,_,d,p){_(d+":: Added:: "+u(t,n,i,o,s,p));var f=c(e,t,r,n,i,a,o,s,l,_,d,p);return{close:function(){_(d+":: Close:: "+u(t,n,i,o,s,p)),f.close()}}}function s(t,r,n,i,a,o,s,l,_,d,p,f){var g=p+":: Added:: "+u(r,i,a,s,l,f);d(g);var m=e.timestamp(),y=c(t,r,n,i,a,o,s,l,_,d,p,f),v=e.timestamp()-m;return d("Elapsed:: "+v+"ms "+g),{close:function(){var t=p+":: Close:: "+u(r,i,a,s,l,f);d(t);var n=e.timestamp();y.close();var o=e.timestamp()-n;d("Elapsed:: "+o+"ms "+t)}}}function c(t,r,n,i,a,o,s,c,l,_,d,p){return l(t,r,(function(t,l){var f=d+":: Triggered with "+t+" "+(void 0!==l?l:"")+":: "+u(r,i,a,s,c,p);_(f);var g=e.timestamp();n(t,l,o);var m=e.timestamp()-g;_("Elapsed:: "+m+"ms "+f)}),i,a)}function u(e,t,r,n,i,a){return"WatchInfo: "+e+" "+t+" "+JSON.stringify(r)+" "+(a?a(n,i):void 0===i?n:n+" "+i)}function l(e){e.watcher.close()}e.createCachedDirectoryStructureHost=function(t,r,n){if(t.getDirectories&&t.readDirectory){var i=e.createMap(),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(o){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.updateMissingFilePathsWatch=function(t,r,n){var i=t.getMissingFilePaths(),a=e.arrayToSet(i);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(t,r,n){function i(e,t){return{watcher:n(e,t),flags:t}}e.mutateMap(t,r,{createNewValue:i,onDeleteValue:l,onExistingValue:function(e,r,n){if(e.flags===r)return;e.watcher.close(),t.set(n,i(n,r))}})},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(o,s,c){return function(r,i,o,s,c){var u=a(r,s),l=r===t.None?n:u,_=a(r,c);r===t.Verbose&&e.sysLog===e.noop&&e.setSysLog((function(e){return i(e)}));return{watchFile:function(e,t,r,n,a,c,l){return u(e,t,r,n,a,void 0,c,l,s,i,"FileWatcher",o)},watchFilePath:function(e,t,r,n,a,c,u,_){return l(e,t,r,n,a,c,u,_,s,i,"FileWatcher",o)},watchDirectory:function(e,t,r,n,a,s,u){return _(e,t,r,n,a,void 0,s,u,c,i,"DirectoryWatcher",o)}}}(o,s,c,r,i)},e.getFallbackOptions=function(t){var r=null===t||void 0===t?void 0:t.fallbackPolling;return{watchFile:void 0!==r?r:e.WatchFileKind.PriorityPollingInterval}},e.closeFileWatcherOf=l}(d||(d={})),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(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}function n(e,t){return i(e,t)}function i(t,r,n){void 0===n&&(n=e.sys);var i,a=e.createMap(),o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames);function s(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}var c=e.getNewLineCharacter(t,(function(){return n.newLine})),u=n.realpath&&function(e){return n.realpath(e)},l={getSourceFile:function(t,n,i){var a;try{e.performance.mark("beforeIORead"),a=l.readFile(t),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(o){i&&i(o.message),a=""}return void 0!==a?e.createSourceFile(t,a,n,r):void 0},getDefaultLibLocation:s,getDefaultLibFileName:function(t){return e.combinePaths(s(),e.getDefaultLibFileName(t))},writeFile:function(r,o,s,c){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,o,s,(function(r,a,o){return function(r,a,o){if(!e.isWatchSet(t)||!n.createHash||!n.getModifiedTime)return void n.writeFile(r,a,o);i||(i=e.createMap());var s=n.createHash(a),c=n.getModifiedTime(r);if(c){var u=i.get(r);if(u&&u.byteOrderMark===o&&u.hash===s&&u.mtime.getTime()===c.getTime())return}n.writeFile(r,a,o);var l=n.getModifiedTime(r)||e.missingFileModifiedTime;i.set(r,{hash:s,byteOrderMark:o,mtime:l})}(r,a,o)}),(function(e){return(l.createDirectory||n.createDirectory)(e)}),(function(e){return t=e,!!a.has(t)||!!(l.directoryExists||n.directoryExists)(t)&&(a.set(t,!0),!0);var t})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){c&&c(u.message)}},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getCanonicalFileName:o,getNewLine:function(){return c},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:function(e){return n.write(e+c)},directoryExists:function(e){return n.directoryExists(e)},getEnvironmentVariable:function(e){return n.getEnvironmentVariable?n.getEnvironmentVariable(e):""},getDirectories:function(e){return n.getDirectories(e)},realpath:u,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 l}function a(t,r){var n=e.diagnosticCategoryName(t)+" TS"+t.code+": "+v(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 s;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=r,e.createCompilerHost=n,e.createCompilerHostWorker=i,e.changeCompilerHostLikeToUseCache=function(t,r,n){var i=t.readFile,a=t.fileExists,o=t.directoryExists,s=t.createDirectory,c=t.writeFile,u=e.createMap(),l=e.createMap(),_=e.createMap(),d=e.createMap(),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,i=e;n<i.length;n++){r+=a(i[n],t)}return r},e.formatDiagnostic=a,function(e){e.Grey="\x1b[90m",e.Red="\x1b[91m",e.Yellow="\x1b[93m",e.Blue="\x1b[94m",e.Cyan="\x1b[96m"}(s=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var c="\x1b[7m",u=" ",l="\x1b[0m",_="...",d=" ",p=" ";function f(t){switch(t){case e.DiagnosticCategory.Error:return s.Red;case e.DiagnosticCategory.Warning:return s.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return s.Blue}}function g(e,t){return t+e+l}function m(t,r,n,i,a,o){var s=e.getLineAndCharacterOfPosition(t,r),d=s.line,p=s.character,f=e.getLineAndCharacterOfPosition(t,r+n),m=f.line,y=f.character,v=e.getLineAndCharacterOfPosition(t,t.text.length).line,h=m-d>=4,b=(m+1+"").length;h&&(b=Math.max(_.length,b));for(var x="",D=d;D<=m;D++){x+=o.getNewLine(),h&&d+1<D&&D<m-1&&(x+=i+g(e.padLeft(_,b),c)+u+o.getNewLine(),D=m-1);var S=e.getPositionOfLineAndCharacter(t,D,0),C=D<v?e.getPositionOfLineAndCharacter(t,D+1,0):t.text.length,T=t.text.slice(S,C);if(T=(T=T.replace(/\s+$/g,"")).replace("\t"," "),x+=i+g(e.padLeft(D+1+"",b),c)+u,x+=T+o.getNewLine(),x+=i+g(e.padLeft("",b),c)+u,x+=a,D===d){var k=D===m?y:void 0;x+=T.slice(0,p).replace(/\S/g," "),x+=T.slice(p,k).replace(/./g,"~")}else x+=D===m?T.slice(0,y).replace(/./g,"~"):T.replace(/./g,"~");x+=l}return x}function y(t,r,n,i){void 0===i&&(i=g);var a=e.getLineAndCharacterOfPosition(t,r),o=a.line,c=a.character,u="";return u+=i(n?e.convertToRelativePath(t.fileName,n.getCurrentDirectory(),(function(e){return n.getCanonicalFileName(e)})):t.fileName,s.Cyan),u+=":",u+=i(""+(o+1),s.Yellow),u+=":",u+=i(""+(c+1),s.Yellow)}function v(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+=v(s[o],r,n)}return i}function h(t,r,n,i){if(0===t.length)return[];for(var a=[],o=e.createMap(),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 b(t,r,n){var i=t.getCompilerOptions();if(i.noEmit)return{diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(i.noEmitOnError){var a=o(t.getOptionsDiagnostics(n),t.getSyntacticDiagnostics(r,n),t.getGlobalDiagnostics(n),t.getSemanticDiagnostics(r,n));return 0===a.length&&e.getEmitDeclarations(t.getCompilerOptions())&&(a=t.getDeclarationDiagnostics(void 0,n)),a.length>0?{diagnostics:a,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}:void 0}}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(!(s.options.outFile||s.options.out))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 C(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 t.allowJs||!e.getStrictOptionValue(t,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function T(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}e.formatColorAndReset=g,e.formatLocation=y,e.formatDiagnosticsWithColorAndContext=function(t,r){for(var n="",i=0,a=t;i<a.length;i++){var o=a[i];if(o.file)n+=y(_=o.file,h=o.start,r),n+=" - ";if(n+=g(e.diagnosticCategoryName(o),f(o.category)),n+=g(" TS"+o.code+": ",s.Grey),n+=v(o.messageText,r.getNewLine()),o.file&&(n+=r.getNewLine(),n+=m(o.file,o.start,o.length,"",f(o.category),r),o.relatedInformation)){n+=r.getNewLine();for(var c=0,u=o.relatedInformation;c<u.length;c++){var l=u[c],_=l.file,h=l.start,b=l.length,x=l.messageText;_&&(n+=r.getNewLine(),n+=d+y(_,h,r),n+=m(_,h,b,p,s.Cyan,r)),n+=r.getNewLine(),n+=p+v(x,r.getNewLine())}}n+=r.getNewLine()}return n},e.flattenDiagnosticMessageText=v,e.loadWithLocalCache=h,e.inferredTypesContainingFile="__inferred type names__.ts",e.isProgramUptoDate=function(t,r,n,i,a,o,s,c){if(!t||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 function t(r,n){if(r)return!!e.contains(u,r)||!!_(r.sourceFile)&&((u||(u=[])).push(r),!e.forEach(r.references,(function(e,n){return!t(e,r.commandLine.projectReferences[n])})));return!a(S(n))}(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)}},e.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?o(e.options.configFile.parseDiagnostics,e.errors):e.errors},e.createProgram=function(i,a,s,c,u){var l,_,d,p,f,g,m,y,v,k,E=e.isArray(i)?function(e,t,r,n,i){return{rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}}(i,a,s,c,u):i,N=E.rootNames,A=E.options,F=E.configFileParsingDiagnostics,P=E.projectReferences,w=E.oldProgram,I=e.createMap(),O={},M={},L=e.createMap(),R=e.createDiagnosticCollection(),B="number"===typeof A.maxNodeModuleJsDepth?A.maxNodeModuleJsDepth:0,j=0,J=e.createMap(),z=e.createMap();e.performance.mark("beforeProgram");var U,K,V,q,W=E.host||n(A),H=x(W),G=A.noLib,Q=e.memoize((function(){return W.getDefaultLibFileName(A)})),X=W.getDefaultLibLocation?W.getDefaultLibLocation():e.getDirectoryPath(Q()),Y=e.createDiagnosticCollection(),Z=W.getCurrentDirectory(),$=e.getSupportedExtensions(A),ee=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(A,$),te=e.createMap(),re=W.hasInvalidatedResolution||e.returnFalse;if(W.resolveModuleNames)V=function(t,r,n,i){return W.resolveModuleNames(e.Debug.checkEachDefined(t),r,n,i,A).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{K=e.createModuleResolutionCache(Z,(function(e){return W.getCanonicalFileName(e)}),A);var ne=function(t,r,n){return e.resolveModuleName(t,r,A,W,K,n).resolvedModule};V=function(t,r,n,i){return h(e.Debug.checkEachDefined(t),r,i,ne)}}if(W.resolveTypeReferenceDirectives)q=function(t,r,n){return W.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(t),r,n,A)};else{var ie=function(t,r,n){return e.resolveTypeReferenceDirective(t,r,A,W,n).resolvedTypeReferenceDirective};q=function(t,r,n){return h(e.Debug.checkEachDefined(t),r,n,ie)}}var ae,oe,se,ce,ue,le,_e=e.createMap(),de=e.createMap(),pe=e.createMultiMap(),fe=e.createMap(),ge=W.useCaseSensitiveFileNames()?e.createMap():void 0,me=!!(null===(l=W.useSourceOfProjectReferenceRedirect)||void 0===l?void 0:l.call(W))&&!A.disableSourceOfProjectReferenceRedirect,ye=function(t){var r,n,i,a=t.compilerHost.fileExists,o=t.compilerHost.directoryExists,s=t.compilerHost.getDirectories,c=t.compilerHost.realpath;if(!t.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:e.noop,fileExists:u};t.compilerHost.fileExists=u,o&&(t.compilerHost.directoryExists=function(i){return o.call(t.compilerHost,i)?(function(r){if(!t.getResolvedProjectReferences())return;if(!c||!e.stringContains(r,e.nodeModulesPathPart))return;n||(n=e.createMap());var i=e.ensureTrailingDirectorySeparator(t.toPath(r));if(n.has(i))return;var a,o=e.normalizePath(c.call(t.compilerHost,r));if(o===r||(a=e.ensureTrailingDirectorySeparator(t.toPath(o)))===i)return void n.set(i,!1);n.set(i,{real:e.ensureTrailingDirectorySeparator(o),realPath:a})}(i),!0):!!t.getResolvedProjectReferences()&&(r||(r=e.createMap(),t.forEachResolvedProjectReference((function(n){if(n){var i=n.commandLine.options.outFile||n.commandLine.options.out;if(i)r.set(e.getDirectoryPath(t.toPath(i)),!0);else{var a=n.commandLine.options.declarationDir||n.commandLine.options.outDir;a&&r.set(t.toPath(a),!0)}}}))),l(i,!1))});s&&(t.compilerHost.getDirectories=function(e){return!t.getResolvedProjectReferences()||o&&o.call(t.compilerHost,e)?s.call(t.compilerHost,e):[]});c&&(t.compilerHost.realpath=function(e){return(null===i||void 0===i?void 0:i.get(t.toPath(e)))||c.call(t.compilerHost,e)});return{onProgramCreateComplete:function(){t.compilerHost.fileExists=a,t.compilerHost.directoryExists=o,t.compilerHost.getDirectories=s},fileExists:u};function u(r){return!!a.call(t.compilerHost,r)||!!t.getResolvedProjectReferences()&&(!!e.isDeclarationFileName(r)&&l(r,!0))}function l(o,s){var c=s?function(r){return function(r){var n=t.getSourceOfProjectReferenceRedirect(r);return void 0!==n?!e.isString(n)||a.call(t.compilerHost,n):void 0}(r)}:function(n){return 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+"/")}))}(n)},u=c(o);if(void 0!==u)return u;if(!n)return!1;var l=t.toPath(o);return!!e.stringContains(l,e.nodeModulesPathPart)&&(!!(s&&i&&i.has(l))||(e.firstDefinedIterator(n.entries(),(function(r){var n=r[0],a=r[1];if(a&&e.startsWith(l,n)){var u=c(l.replace(n,a.realPath));if(s&&u){i||(i=e.createMap());var _=e.getNormalizedAbsolutePath(o,t.compilerHost.getCurrentDirectory());i.set(l,""+a.real+_.replace(new RegExp(n,"i"),""))}return u}}))||!1))}}({compilerHost:W,useSourceOfProjectReferenceRedirect:me,toPath:Ke,getResolvedProjectReferences:He,getSourceOfProjectReferenceRedirect:Nt,forEachResolvedProjectReference:Et}),ve=ye.onProgramCreateComplete,he=ye.fileExists,be=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))}))}(w,A);if(2!==(le=function(){if(!w)return 0;var t=w.getCompilerOptions();if(e.changesAffectModuleResolution(t,A))return w.structureIsReused=0;e.Debug.assert(!(3&w.structureIsReused));var r=w.getRootFileNames();if(!e.arrayIsEqualTo(r,N))return w.structureIsReused=0;if(!e.arrayIsEqualTo(A.types,t.types))return w.structureIsReused=0;if(Ft(w.getProjectReferences(),w.getResolvedProjectReferences(),(function(e,t,r){var n=Jt((r?r.commandLine.projectReferences:P)[t]);return e?!n||n.sourceFile!==e.sourceFile:void 0!==n}),(function(t,r){var n=r?Pt(r.sourceFile.path).commandLine.projectReferences:P;return!e.arrayIsEqualTo(t,n,e.projectReferenceIsEqualTo)})))return w.structureIsReused=0;P&&(oe=P.map(Jt));var n=[],i=[];if(w.structureIsReused=2,w.getMissingFilePaths().some((function(e){return W.fileExists(e)})))return w.structureIsReused=0;var a,o=w.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}(a||(a={}));for(var s=e.createMap(),c=0,u=o;c<u.length;c++){var l=u[c];if(!(F=W.getSourceFileByPath?W.getSourceFileByPath(l.fileName,l.resolvedPath,A.target,void 0,be):W.getSourceFile(l.fileName,A.target,void 0,be)))return w.structureIsReused=0;e.Debug.assert(!F.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var _=void 0;if(l.redirectInfo){if(F!==l.redirectInfo.unredirected)return w.structureIsReused=0;_=!1,F=l}else if(w.redirectTargetsMap.has(l.path)){if(F!==l)return w.structureIsReused=0;_=!1}else _=F!==l;F.path=l.path,F.originalFileName=l.originalFileName,F.resolvedPath=l.resolvedPath,F.fileName=l.fileName;var d=w.sourceFileToPackageName.get(l.path);if(void 0!==d){var f=s.get(d),g=_?1:0;if(void 0!==f&&1===g||1===f)return w.structureIsReused=0;s.set(d,g)}if(_){if(!e.arrayIsEqualTo(l.libReferenceDirectives,F.libReferenceDirectives,ft))return w.structureIsReused=0;l.hasNoDefaultLib!==F.hasNoDefaultLib&&(w.structureIsReused=1),e.arrayIsEqualTo(l.referencedFiles,F.referencedFiles,ft)||(w.structureIsReused=1),mt(F),e.arrayIsEqualTo(l.imports,F.imports,gt)||(w.structureIsReused=1),e.arrayIsEqualTo(l.moduleAugmentations,F.moduleAugmentations,gt)||(w.structureIsReused=1),(3145728&l.flags)!==(3145728&F.flags)&&(w.structureIsReused=1),e.arrayIsEqualTo(l.typeReferenceDirectives,F.typeReferenceDirectives,ft)||(w.structureIsReused=1),i.push({oldFile:l,newFile:F})}else re(l.path)&&(w.structureIsReused=1,i.push({oldFile:l,newFile:F}));n.push(F)}if(2!==w.structureIsReused)return w.structureIsReused;for(var m=i.map((function(e){return e.oldFile})),y=0,v=o;y<v.length;y++){var h=v[y];if(!e.contains(m,h))for(var b=0,x=h.ambientModuleNames;b<x.length;b++){var D=x[b];I.set(D,h.fileName)}}for(var S=0,C=i;S<C.length;S++){var E=C[S],F=(l=E.oldFile,E.newFile),O=e.getNormalizedAbsolutePath(F.originalFileName,Z),M=T(F),B=qe(M,O,F);if(e.hasChangesInResolutions(M,B,l.resolvedModules,e.moduleResolutionIsEqualTo)?(w.structureIsReused=1,F.resolvedModules=e.zipToMap(M,B)):F.resolvedModules=l.resolvedModules,ze){var j=e.map(F.typeReferenceDirectives,(function(t){return e.toFileNameLowerCase(t.fileName)})),J=ze(j,O,kt(F.originalFileName));e.hasChangesInResolutions(j,J,l.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo)?(w.structureIsReused=1,F.resolvedTypeReferenceDirectiveNames=e.zipToMap(j,J)):F.resolvedTypeReferenceDirectiveNames=l.resolvedTypeReferenceDirectiveNames}}if(2!==w.structureIsReused)return w.structureIsReused;if(W.hasChangedAutomaticTypeDirectiveNames)return w.structureIsReused=1;ae=w.getMissingFilePaths(),k=w.getRefFileMap(),e.Debug.assert(n.length===w.getSourceFiles().length);for(var U=0,K=n;U<K.length;U++){F=K[U];fe.set(F.path,F)}w.getFilesByNameMap().forEach((function(e,t){e?e.path!==t?fe.set(t,fe.get(e.path)):w.isSourceFileFromExternalLibrary(e)&&z.set(e.path,!0):fe.set(t,e)})),p=n,R=w.getFileProcessingDiagnostics();for(var V=0,q=i;V<q.length;V++){var H=q[V];R.reattachFileDiagnostics(H.newFile)}return L=w.getResolvedTypeReferenceDirectives(),de=w.sourceFileToPackageName,pe=w.redirectTargetsMap,w.structureIsReused=2}())){if(_=[],d=[],P&&(oe||(oe=P.map(Jt)),N.length))for(var xe=0,De=oe;xe<De.length;xe++){var Se=De[xe];if(Se){var Ce=Se.commandLine.options.outFile||Se.commandLine.options.out;if(me){if(Ce||e.getEmitModuleKind(Se.commandLine.options)===e.ModuleKind.None)for(var Te=0,ke=Se.commandLine.fileNames;Te<ke.length;Te++){vt(Ae=ke[Te],!1,!1,void 0)}}else if(Ce)vt(e.changeExtension(Ce,".d.ts"),!1,!1,void 0);else if(e.getEmitModuleKind(Se.commandLine.options)===e.ModuleKind.None)for(var Ee=0,Ne=Se.commandLine.fileNames;Ee<Ne.length;Ee++){var Ae=Ne[Ee];e.fileExtensionIs(Ae,".d.ts")||e.fileExtensionIs(Ae,".json")||vt(e.getOutputDeclarationFileName(Ae,Se.commandLine,!W.useCaseSensitiveFileNames()),!1,!1,void 0)}}}e.forEach(N,(function(e){return pt(e,!1,!1)}));var Fe=N.length?e.getAutomaticTypeDirectiveNames(A,W):e.emptyArray;if(Fe.length)for(var Pe=A.configFilePath?e.getDirectoryPath(A.configFilePath):W.getCurrentDirectory(),we=ze(Fe,e.combinePaths(Pe,e.inferredTypesContainingFile)),Ie=0;Ie<Fe.length;Ie++)Ot(Fe[Ie],we[Ie]);if(N.length&&!G){var Oe=Q();!A.lib&&Oe?pt(Oe,!0,!1):e.forEach(A.lib,(function(t){pt(e.combinePaths(X,t),!0,!1)}))}ae=e.arrayFrom(e.mapDefinedIterator(fe.entries(),(function(e){var t=e[0];return void 0===e[1]?t:void 0}))),p=e.stableSort(_,(function(t,r){return e.compareValues(Ue(t),Ue(r))})).concat(d),_=void 0,d=void 0}if(e.Debug.assert(!!ae),w&&W.onReleaseOldSourceFile){for(var Me=0,Le=w.getSourceFiles();Me<Le.length;Me++){var Re=Le[Me],Be=et(Re.resolvedPath);(be||!Be||Re.resolvedPath===Re.path&&Be.resolvedPath!==Re.path)&&W.onReleaseOldSourceFile(Re,w.getCompilerOptions(),!!et(Re.path))}w.forEachResolvedProjectReference((function(e,t){e&&!Pt(t)&&W.onReleaseOldSourceFile(e.sourceFile,w.getCompilerOptions(),!1)}))}w=void 0;var je={getRootFileNames:function(){return N},getSourceFile:$e,getSourceFileByPath:et,getSourceFiles:function(){return p},getMissingFilePaths:function(){return ae},getRefFileMap:function(){return k},getFilesByNameMap:function(){return fe},getCompilerOptions:function(){return A},getSyntacticDiagnostics:function(e,t){return tt(e,nt,t)},getOptionsDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(e.concatenate(R.getGlobalDiagnostics(),e.concatenate(Y.getGlobalDiagnostics(),function(){if(!A.configFile)return e.emptyArray;var t=Y.getDiagnostics(A.configFile.fileName);return Et((function(r){r&&(t=e.concatenate(t,Y.getDiagnostics(r.sourceFile.fileName)))})),t}())))},getGlobalDiagnostics:function(){return N.length?e.sortAndDeduplicateDiagnostics(Xe().getGlobalDiagnostics().slice()):e.emptyArray},getSemanticDiagnostics:function(e,t){return tt(e,at,t)},getSuggestionDiagnostics:function(e,t){return it((function(){return Xe().getSuggestionDiagnostics(e,t)}))},getDeclarationDiagnostics:function(e,t){var r=je.getCompilerOptions();return!e||r.out||r.outFile?ut(e,t):tt(e,dt,t)},getBindAndCheckDiagnostics:function(e,t){return ot(e,t)},getProgramDiagnostics:rt,getTypeChecker:Ye,getClassifiableNames:function(){if(!v){Ye(),v=e.createUnderscoreEscapedMap();for(var t=0,r=p;t<r.length;t++){var n=r[t];e.copyEntries(n.classifiableNames,v)}}return v},getDiagnosticsProducingTypeChecker:Xe,getCommonSourceDirectory:Ve,emit:function(t,r,n,i,a,o){return it((function(){return function(t,r,n,i,a,o,s){if(!s){var c=b(t,r,i);if(c)return c}var u=Xe().getEmitResolver(A.outFile||A.out?void 0:r,i);e.performance.mark("beforeEmit");var l=e.emitFiles(u,We(n),r,e.getTransformers(A,o,a),a,!1,s);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),l}(je,t,r,n,i,a,o)}))},getCurrentDirectory:function(){return Z},getNodeCount:function(){return Xe().getNodeCount()},getIdentifierCount:function(){return Xe().getIdentifierCount()},getSymbolCount:function(){return Xe().getSymbolCount()},getTypeCount:function(){return Xe().getTypeCount()},getInstantiationCount:function(){return Xe().getInstantiationCount()},getRelationCacheSizes:function(){return Xe().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return R},getResolvedTypeReferenceDirectives:function(){return L},isSourceFileFromExternalLibrary:Qe,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!A.noLib)return!1;var r=W.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return A.lib?e.some(A.lib,(function(n){return r(t.fileName,e.combinePaths(X,n))})):r(t.fileName,Q())},dropDiagnosticsProducingTypeChecker:function(){m=void 0},getSourceFileFromReference:function(e,r){return yt(t(r.fileName,e.fileName),(function(e){return fe.get(Ke(e))||void 0}))},getLibFileFromReference:function(t){var r=e.toFileNameLowerCase(t.fileName),n=e.libMap.get(r);if(n)return $e(e.combinePaths(X,n))},sourceFileToPackageName:de,redirectTargetsMap:pe,isEmittedFile:function(t){if(A.noEmit)return!1;var r=Ke(t);if(et(r))return!1;var n=A.outFile||A.out;if(n)return $t(r,n)||$t(r,e.removeFileExtension(n)+".d.ts");if(A.declarationDir&&e.containsPath(A.declarationDir,r,Z,!W.useCaseSensitiveFileNames()))return!0;if(A.outDir)return e.containsPath(A.outDir,r,Z,!W.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJSExtensions)||e.fileExtensionIs(r,".d.ts")){var i=e.removeFileExtension(r);return!!et(i+".ts")||!!et(i+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return F||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(t,r){return K&&e.resolveModuleNameFromCache(t,r,K)},getProjectReferences:function(){return P},getResolvedProjectReferences:He,getProjectReferenceRedirect:St,getResolvedProjectReferenceToRedirect:kt,getResolvedProjectReferenceByPath:Pt,forEachResolvedProjectReference:Et,isSourceOfProjectReferenceRedirect:At,emitBuildInfo:function(t){e.Debug.assert(!A.out&&!A.outFile),e.performance.mark("beforeEmit");var r=e.emitFiles(e.notImplementedResolver,We(t),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),r},fileExists:he,getProbableSymlinks:er,useCaseSensitiveFileNames:function(){return W.useCaseSensitiveFileNames()}};return ve(),function(){A.strictPropertyInitialization&&!e.getStrictOptionValue(A,"strictNullChecks")&&Wt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks");A.isolatedModules&&(A.out&&Wt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),A.outFile&&Wt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules"));A.inlineSourceMap&&(A.sourceMap&&Wt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),A.mapRoot&&Wt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"));A.paths&&void 0===A.baseUrl&&Wt(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths");A.composite&&(!1===A.declaration&&Wt(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===A.incremental&&Wt(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));A.tsBuildInfoFile?e.isIncrementalCompilation(A)||Wt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!A.incremental||A.outFile||A.out||A.configFilePath||Y.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));!A.listFilesOnly&&A.noEmit&&e.isIncrementalCompilation(A)&&Wt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmit",A.incremental?"incremental":"composite");if(function(){var t=A.noEmit||A.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(A);Ft(P,oe,(function(r,n,i){var a=(i?i.commandLine.projectReferences:P)[n],o=i&&i.sourceFile;if(r){var s=r.commandLine.options;if(!s.composite)(i?i.commandLine.fileNames:N).length&&Gt(o,n,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,a.path);if(a.prepend){var c=s.outFile||s.out;c?W.fileExists(c)||Gt(o,n,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,a.path):Gt(o,n,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)}!i&&t&&t===e.getTsBuildInfoEmitOutputFilePath(s)&&(Gt(o,n,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,t,a.path),te.set(Ke(t),!0))}else Gt(o,n,e.Diagnostics.File_0_not_found,a.path)}))}(),A.composite)for(var t=e.arrayToSet(N,Ke),r=0,n=p;r<n.length;r++){var i=n[r];e.sourceFileMayBeEmitted(i,je)&&!t.has(i.path)&&Ut(i,t,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,i.fileName,A.configFilePath||"")}if(A.paths)for(var a in A.paths)if(e.hasProperty(A.paths,a))if(e.hasZeroOrOneAsteriskCharacter(a)||Vt(!0,a,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,a),e.isArray(A.paths[a])){var o=A.paths[a].length;0===o&&Vt(!1,a,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,a);for(var s=0;s<o;s++){var c=A.paths[a][s],u=typeof c;"string"===u?e.hasZeroOrOneAsteriskCharacter(c)||Kt(a,s,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,c,a):Kt(a,s,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,c,a,u)}}else Vt(!1,a,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,a);A.sourceMap||A.inlineSourceMap||(A.inlineSources&&Wt(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),A.sourceRoot&&Wt(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot"));A.out&&A.outFile&&Wt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile");!A.mapRoot||A.sourceMap||A.declarationMap||Wt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap");A.declarationDir&&(e.getEmitDeclarations(A)||Wt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),(A.out||A.outFile)&&Wt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",A.out?"out":"outFile"));A.declarationMap&&!e.getEmitDeclarations(A)&&Wt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite");A.lib&&A.noLib&&Wt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib");A.noImplicitUseStrict&&e.getStrictOptionValue(A,"alwaysStrict")&&Wt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var l=A.target||0,_=A.outFile||A.out,d=e.find(p,(function(t){return e.isExternalModule(t)&&!t.isDeclarationFile}));if(A.isolatedModules){A.module===e.ModuleKind.None&&l<2&&Wt(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target");var f=e.find(p,(function(t){return!e.isExternalModule(t)&&!e.isSourceFileJS(t)&&!t.isDeclarationFile&&6!==t.scriptKind}));if(f){var g=e.getErrorSpanForNode(f,f);Y.add(e.createFileDiagnostic(f,g.start,g.length,e.Diagnostics.All_files_must_be_modules_when_the_isolatedModules_flag_is_provided))}}else if(d&&l<2&&A.module===e.ModuleKind.None){g=e.getErrorSpanForNode(d,d.externalModuleIndicator);Y.add(e.createFileDiagnostic(d,g.start,g.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(_&&!A.emitDeclarationOnly)if(A.module&&A.module!==e.ModuleKind.AMD&&A.module!==e.ModuleKind.System)Wt(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,A.out?"out":"outFile","module");else if(void 0===A.module&&d){g=e.getErrorSpanForNode(d,d.externalModuleIndicator);Y.add(e.createFileDiagnostic(d,g.start,g.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,A.out?"out":"outFile"))}A.resolveJsonModule&&(e.getEmitModuleResolutionKind(A)!==e.ModuleResolutionKind.NodeJs?Wt(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(A)||Wt(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module"));if(A.outDir||A.sourceRoot||A.mapRoot){var m=Ve();A.outDir&&""===m&&p.some((function(t){return e.getRootLength(t.fileName)>1}))&&Wt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}A.useDefineForClassFields&&0===l&&Wt(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");A.checkJs&&!A.allowJs&&Y.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));A.emitDeclarationOnly&&(e.getEmitDeclarations(A)||Wt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),A.noEmit&&Wt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));A.emitDecoratorMetadata&&!A.experimentalDecorators&&Wt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");A.jsxFactory?(A.reactNamespace&&Wt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(A.jsxFactory,l)||Ht("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,A.jsxFactory)):A.reactNamespace&&!e.isIdentifierText(A.reactNamespace,l)&&Ht("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,A.reactNamespace);if(!A.noEmit&&!A.suppressOutputPathCheck){var y=We(),v=e.createMap();e.forEachEmittedFile(y,(function(e){A.emitDeclarationOnly||h(e.jsFilePath,v),h(e.declarationFilePath,v)}))}function h(t,r){if(t){var n=Ke(t);if(fe.has(n)){var i=void 0;A.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),Zt(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=W.useCaseSensitiveFileNames()?n:e.toFileNameLowerCase(n);r.has(a)?Zt(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.set(a,!0)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),je;function Je(t,r,n,i){e.performance.mark("beforeResolveModule");var a=V(t,r,n,i);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),a}function ze(t,r,n){e.performance.mark("beforeResolveTypeReference");var i=q(t,r,n);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),i}function Ue(t){if(e.containsPath(X,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 Ke(t){return e.toPath(t,Z,Rt)}function Ve(){if(void 0===g){var t=e.filter(p,(function(t){return e.sourceFileMayBeEmitted(t,je)}));A.rootDir&&jt(t,A.rootDir)?g=e.getNormalizedAbsolutePath(A.rootDir,Z):A.composite&&A.configFilePath?jt(t,g=e.getDirectoryPath(e.normalizeSlashes(A.configFilePath))):(n=t,g=r(e.mapDefined(n,(function(e){return e.isDeclarationFile?void 0:e.fileName})),Z,Rt)),g&&g[g.length-1]!==e.directorySeparator&&(g+=e.directorySeparator)}var n;return g}function qe(t,r,n){if(0===le&&!n.ambientModuleNames.length)return Je(t,r,void 0,kt(n.originalFileName));var i,a,o,s=w&&w.getSourceFile(r);if(s!==n&&n.resolvedModules){for(var c=[],u=0,l=t;u<l.length;u++){var _=l[u],d=n.resolvedModules.get(_);c.push(d)}return c}for(var p={},f=0;f<t.length;f++){_=t[f];if(n===s&&!re(s.path)){var g=s&&s.resolvedModules.get(_);if(g){e.isTraceEnabled(A,W)&&e.trace(W,e.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,_,r),(a||(a=new Array(t.length)))[f]=g,(o||(o=[])).push(_);continue}}var m=!1;e.contains(n.ambientModuleNames,_)?(m=!0,e.isTraceEnabled(A,W)&&e.trace(W,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,_,r)):m=h(_),m?(a||(a=new Array(t.length)))[f]=p:(i||(i=[])).push(_)}var y=i&&i.length?Je(i,r,o,kt(n.originalFileName)):e.emptyArray;if(!a)return e.Debug.assert(y.length===t.length),y;var v=0;for(f=0;f<a.length;f++)a[f]?a[f]===p&&(a[f]=void 0):(a[f]=y[v],v++);return e.Debug.assert(v===y.length),a;function h(t){var r=e.getResolvedModule(s,t),n=r&&w.getSourceFile(r.resolvedFileName);if(r&&n)return!1;var i=I.get(t);return!!i&&(e.isTraceEnabled(A,W)&&e.trace(W,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,i),!0)}}function We(t){return{getPrependNodes:Ge,getCanonicalFileName:Rt,getCommonSourceDirectory:je.getCommonSourceDirectory,getCompilerOptions:je.getCompilerOptions,getCurrentDirectory:function(){return Z},getNewLine:function(){return W.getNewLine()},getSourceFile:je.getSourceFile,getSourceFileByPath:je.getSourceFileByPath,getSourceFiles:je.getSourceFiles,getLibFileFromReference:je.getLibFileFromReference,isSourceFileFromExternalLibrary:Qe,getResolvedProjectReferenceToRedirect:kt,getProjectReferenceRedirect:St,isSourceOfProjectReferenceRedirect:At,getProbableSymlinks:er,writeFile:t||function(e,t,r,n,i){return W.writeFile(e,t,r,n,i)},isEmitBlocked:Ze,readFile:function(e){return W.readFile(e)},fileExists:function(t){var r=Ke(t);return!!et(r)||!e.contains(ae,r)&&W.fileExists(t)},useCaseSensitiveFileNames:function(){return W.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return je.getProgramBuildInfo&&je.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return je.getSourceFileFromReference(e,t)},redirectTargetsMap:pe}}function He(){return oe}function Ge(){return D(P,(function(e,t){return oe[t].commandLine}),(function(e){var t=Ke(e),r=et(t);return r?r.text:fe.has(t)?void 0:W.readFile(t)}))}function Qe(e){return!!z.get(e.path)}function Xe(){return m||(m=e.createTypeChecker(je,!0))}function Ye(){return y||(y=e.createTypeChecker(je,!1))}function Ze(e){return te.has(Ke(e))}function $e(e){return et(Ke(e))}function et(e){return fe.get(e)||void 0}function tt(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(je.getSourceFiles(),(function(e){return n&&n.throwIfCancellationRequested(),r(e,n)})))}function rt(t){return e.skipTypeChecking(t,A,je)?e.emptyArray:function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=e.flatten(n);if(!(null===(r=t.commentDirectives)||void 0===r?void 0:r.length))return a;return ct(t,t.commentDirectives,a).diagnostics}(t,R.getDiagnostics(t.fileName),Y.getDiagnostics(t.fileName))}function nt(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return it((function(){var r=[];return n(t,t),e.forEachChildRecursively(t,n,(function(t,n){n.decorators!==t||A.experimentalDecorators||r.push(a(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));switch(n.kind){case 245:case 214:case 161:case 162:case 163:case 164:case 201:case 244:case 202:if(t===n.typeParameters)return r.push(i(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 225:if(t===n.modifiers)return function(t,n){for(var i=0,o=t;i<o.length;i++){var s=o[i];switch(s.kind){case 81:if(n)continue;case 119:case 117:case 118:case 138:case 130:case 122:r.push(a(s,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(s.kind)))}}}(n.modifiers,225===n.kind),"skip";break;case 159:if(t===n.modifiers){for(var o=0,s=t;o<s.length;o++){var c=s[o];120!==c.kind&&r.push(a(c,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(c.kind)))}return"skip"}break;case 156:if(t===n.modifiers)return r.push(i(t,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 196:case 197:case 216:case 267:case 268:case 198:if(t===n.typeArguments)return r.push(i(t,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}})),r;function n(t,n){switch(n.kind){case 156:case 159:case 161:if(n.questionToken===t)return r.push(a(t,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 160:case 162:case 163:case 164:case 201:case 244:case 202:case 242:if(n.type===t)return r.push(a(t,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(t.kind){case 255:if(t.isTypeOnly)return r.push(a(t.parent,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 260:if(t.isTypeOnly)return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 253:return r.push(a(t,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 259:if(t.isExportEquals)return r.push(a(t,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 279:if(113===t.token)return r.push(a(t,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 246:var i=e.tokenToString(114);return e.Debug.assertIsDefined(i),r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 249:var o=16&t.flags?e.tokenToString(136):e.tokenToString(135);return e.Debug.assertIsDefined(o),r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 247:return r.push(a(t,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 248:var s=e.Debug.checkDefined(e.tokenToString(88));return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,s)),"skip";case 218:return r.push(a(t,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 217:return r.push(a(t.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 199:e.Debug.fail()}}function i(r,n,i,a,o){var s=r.pos;return e.createFileDiagnostic(t,s,r.end-s,n,i,a,o)}function a(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a,o)}}))}(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function it(t){try{return t()}catch(r){throw r instanceof e.OperationCanceledException&&(y=void 0,m=void 0),r}}function at(t,r){return e.concatenate(ot(t,r),rt(t))}function ot(e,t){return _t(e,t,O,st)}function st(t,r){return it((function(){if(e.skipTypeChecking(t,A,je))return e.emptyArray;var n=Xe();e.Debug.assert(!!t.bindDiagnostics);var i=e.isCheckJsEnabledForFile(t,A),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){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=e.flatten(n);if(!(null===(r=t.commentDirectives)||void 0===r?void 0:r.length))return a;for(var o=ct(t,t.commentDirectives,a),s=o.diagnostics,c=o.directives,u=0,l=c.getUnusedExpectations();u<l.length;u++){var _=l[u];s.push(e.createDiagnosticForRange(t,_.range,e.Diagnostics.Unused_ts_expect_error_directive))}return s}(t,o,s,i?t.jsDocDiagnostics:void 0)}))}function ct(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 ut(e,t){return _t(e,t,M,lt)}function lt(t,r){return it((function(){var n=Xe().getEmitResolver(t,r);return e.getDeclarationDiagnostics(We(e.noop),n,t)||e.emptyArray}))}function _t(t,r,n,i){var a=t?n.perFile&&n.perFile.get(t.path):n.allDiagnostics;if(a)return a;var o=i(t,r);return t?(n.perFile||(n.perFile=e.createMap()),n.perFile.set(t.path,o)):n.allDiagnostics=o,o}function dt(e,t){return e.isDeclarationFile?[]:ut(e,t)}function pt(t,r,n){vt(e.normalizePath(t),r,n,void 0)}function ft(e,t){return e.fileName===t.fileName}function gt(e,t){return 75===e.kind?75===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function mt(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if(A.importHelpers&&(A.isolatedModules||o)&&!t.isDeclarationFile){var s=e.createLiteral(e.externalHelpersModuleNameText),c=e.createImportDeclaration(void 0,void 0,void 0,s);e.addEmitFlags(c,67108864),s.parent=c,c.parent=t,r=[s]}for(var u=0,l=t.statements;u<l.length;u++){_(l[u],!1)}return(1048576&t.flags||a)&&function(t){var n=/import|require/g;for(;null!==n.exec(t.text);){var i=d(t,n.lastIndex);e.isRequireCall(i,!0)?r=e.append(r,i.arguments[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 _(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.hasModifier(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 l=a.body;if(l)for(var d=0,p=l.statements;d<p.length;d++){_(p[d],!0)}}}}function d(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=W.getCanonicalFileName(t);if(!A.allowNonTsExtensions&&!e.forEach(ee,(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,"'"+$.join("', '")+"'")));var o=r(t);if(n)if(o)i&&a===W.getCanonicalFileName(i.fileName)&&n(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var s=St(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=A.allowNonTsExtensions&&r(t);if(c)return c;if(!n||!A.allowNonTsExtensions){var u=e.forEach($,(function(e){return r(t+e)}));return n&&!u&&n(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,t,"'"+$.join("', '")+"'"),u}n(e.Diagnostics.File_0_not_found,t)}function vt(e,t,r,n,i){yt(e,(function(e){return bt(e,Ke(e),t,r,i,n)}),(function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return R.add(Lt.apply(void 0,o([i,e],t)))}),i&&i.file)}function ht(t,r,n){var i=n?void 0:k&&k.get(r.path),a=i&&e.find(i,(function(e){return e.referencedFileName===r.fileName}));R.add(a?zt(a,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,r.fileName,t):Lt(n,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,r.fileName))}function bt(t,r,n,i,a,o){if(me){var s=Nt(t);if(!s&&W.realpath&&A.preserveSymlinks&&e.isDeclarationFileName(t)&&e.stringContains(t,e.nodeModulesPathPart)){var c=W.realpath(t);c!==t&&(s=Nt(c))}if(s){var u=e.isString(s)?bt(s,Ke(s),n,i,a,o):void 0;return u&&Dt(u,r,void 0),u}}var l,p=t;if(fe.has(r)){var f=fe.get(r);if(xt(t,f||void 0,a),f&&A.forceConsistentCasingInFileNames){var g=f.fileName;Ke(g)!==Ke(t)&&(t=St(t)||t),e.getNormalizedAbsolutePathWithoutRoot(g,Z)!==e.getNormalizedAbsolutePathWithoutRoot(t,Z)&&ht(t,f,a)}return f&&z.get(f.path)&&0===j?(z.set(f.path,!1),A.noResolve||(wt(f,n),It(f)),A.noLib||Mt(f),J.set(f.path,!1),Bt(f)):f&&J.get(f.path)&&j<B&&(J.set(f.path,!1),Bt(f)),f||void 0}if(a&&!me){var m=Ct(t);if(m){if(m.commandLine.options.outFile||m.commandLine.options.out)return;var y=Tt(m,t);t=y,l=Ke(y)}}var v=W.getSourceFile(t,A.target,(function(r){return R.add(Lt(a,e.Diagnostics.Cannot_read_file_0_Colon_1,t,r))}),be);if(o){var h=e.packageIdToString(o),b=_e.get(h);if(b){var x=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},z.set(n,j>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}(b,v,t,r,Ke(t),p);return pe.add(b.path,t),Dt(x,r,l),de.set(r,o.name),d.push(x),x}v&&(_e.set(h,v),de.set(r,o.name))}if(Dt(v,r,l),v){if(z.set(r,j>0),v.fileName=t,v.path=r,v.resolvedPath=Ke(t),v.originalFileName=p,xt(t,v,a),W.useCaseSensitiveFileNames()){var D=e.toFileNameLowerCase(r),S=ge.get(D);S?ht(t,S,a):ge.set(D,v)}G=G||v.hasNoDefaultLib&&!i,A.noResolve||(wt(v,n),It(v)),A.noLib||Mt(v),Bt(v),n?_.push(v):d.push(v)}return v}function xt(t,r,n){n&&r&&(k||(k=e.createMultiMap())).add(r.path,{referencedFileName:t,kind:n.kind,index:n.index,file:n.file.path})}function Dt(e,t,r){r?(fe.set(r,e),fe.set(t,e||!1)):fe.set(t,e)}function St(e){var t=Ct(e);return t&&Tt(t,e)}function Ct(t){if(oe&&oe.length&&!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json"))return kt(t)}function Tt(t,r){var n=t.commandLine.options.outFile||t.commandLine.options.out;return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!W.useCaseSensitiveFileNames())}function kt(t){void 0===ce&&(ce=e.createMap(),Et((function(e,t){e&&Ke(A.configFilePath)!==t&&e.commandLine.fileNames.forEach((function(e){return ce.set(Ke(e),t)}))})));var r=ce.get(Ke(t));return r&&Pt(r)}function Et(e){return Ft(P,oe,(function(t,r,n){var i=Ke(S((n?n.commandLine.projectReferences:P)[r]));return e(t,i)}))}function Nt(t){if(e.isDeclarationFileName(t))return void 0===ue&&(ue=e.createMap(),Et((function(t){if(t){var r=t.commandLine.options.outFile||t.commandLine.options.out;if(r){var n=e.changeExtension(r,".d.ts");ue.set(Ke(n),!0)}else e.forEach(t.commandLine.fileNames,(function(r){if(!e.fileExtensionIs(r,".d.ts")&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,W.useCaseSensitiveFileNames());ue.set(Ke(n),r)}}))}}))),ue.get(Ke(t))}function At(e){return me&&!!kt(e)}function Ft(t,r,n,i){var a;return function t(r,n,i,o,s){if(s){var c=s(r,i);if(c)return c}return e.forEach(n,(function(r,n){if(!e.contains(a,r)){var c=o(r,n,i);if(c)return c;if(r)return(a||(a=[])).push(r),t(r.commandLine.projectReferences,r.references,r,o,s)}}))}(t,r,void 0,n,i)}function Pt(e){if(se)return se.get(e)||void 0}function wt(r,n){e.forEach(r.referencedFiles,(function(i,a){vt(t(i.fileName,r.originalFileName),n,!1,void 0,{kind:e.RefFileKind.ReferenceFile,index:a,file:r,pos:i.pos,end:i.end})}))}function It(t){var r=e.map(t.typeReferenceDirectives,(function(t){return e.toFileNameLowerCase(t.fileName)}));if(r)for(var n=ze(r,t.originalFileName,kt(t.originalFileName)),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.RefFileKind.TypeReferenceDirective,index:i,file:t,pos:a.pos,end:a.end})}}function Ot(t,r,n){var i=L.get(t);if(!i||!i.primary){var a=!0;if(r){if(r.isExternalLibraryImport&&j++,r.primary)vt(r.resolvedFileName,!1,!1,r.packageId,n);else if(i){if(r.resolvedFileName!==i.resolvedFileName){var o=W.readFile(r.resolvedFileName),s=$e(i.resolvedFileName);if(o!==s.text){var c=n?void 0:k&&k.get(s.path),u=c&&e.find(c,(function(e){return e.referencedFileName===s.fileName}));R.add(u?zt(u,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):Lt(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&&j--}else R.add(Lt(n,e.Diagnostics.Cannot_find_type_definition_file_for_0,t));a&&L.set(t,r)}}function Mt(t){e.forEach(t.libReferenceDirectives,(function(r){var n=e.toFileNameLowerCase(r.fileName),i=e.libMap.get(n);if(i)pt(e.combinePaths(X,i),!0,!0);else{var a=e.removeSuffix(e.removePrefix(n,"lib."),".d.ts"),o=e.getSpellingSuggestion(a,e.libs,e.identity),s=o?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;R.add(e.createFileDiagnostic(t,r.pos,r.end-r.pos,s,n,o))}}))}function Lt(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return t?e.createFileDiagnostic.apply(void 0,o([t.file,t.pos,t.end-t.pos,r],n)):e.createCompilerDiagnostic.apply(void 0,o([r],n))}function Rt(e){return W.getCanonicalFileName(e)}function Bt(t){if(mt(t),t.imports.length||t.moduleAugmentations.length){var r=T(t),n=qe(r,e.getNormalizedAbsolutePath(t.originalFileName,Z),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&&j++;var l=c&&j>B,_=u&&!C(A,a)&&!A.noResolve&&i<t.imports.length&&!l&&!(s&&!A.allowJs)&&(e.isInJSFile(t.imports[i])||!(4194304&t.imports[i].flags));if(l)J.set(t.path,!0);else if(_){var d=Ke(u),p=e.skipTrivia(t.text,t.imports[i].pos);bt(u,d,!1,!1,{kind:e.RefFileKind.Import,index:i,file:t,pos:p,end:t.imports[i].end},a.packageId)}o&&j--}}}else t.resolvedModules=void 0}function jt(t,r){for(var n,i=!0,a=W.getCanonicalFileName(e.getNormalizedAbsolutePath(r,Z)),o=0,s=t;o<s.length;o++){var c=s[o];if(!c.isDeclarationFile)0!==W.getCanonicalFileName(e.getNormalizedAbsolutePath(c.fileName,Z)).indexOf(a)&&(n||(n=e.arrayToSet(N,Ke)),Ut(c,n,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,c.fileName,r),i=!1)}return i}function Jt(t){se||(se=e.createMap());var r,n,i=S(t),a=Ke(i),o=se.get(a);if(void 0!==o)return o||void 0;if(W.getParsedCommandLine){if(!(r=W.getParsedCommandLine(i)))return Dt(void 0,a,void 0),void se.set(a,!1);n=e.Debug.checkDefined(r.options.configFile),e.Debug.assert(!n.path||n.path===a),Dt(n,a,void 0)}else{var s=e.getNormalizedAbsolutePath(e.getDirectoryPath(i),W.getCurrentDirectory());if(Dt(n=W.getSourceFile(i,100),a,void 0),void 0===n)return void se.set(a,!1);r=e.parseJsonSourceFileConfigFileContent(n,H,s,void 0,i)}n.fileName=i,n.path=a,n.resolvedPath=a,n.originalFileName=i;var c={commandLine:r,sourceFile:n};return se.set(a,c),r.projectReferences&&(c.references=r.projectReferences.map(Jt)),c}function zt(t,r){for(var n,i,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];var c,u,l=e.Debug.checkDefined(et(t.file)),_=t.kind,d=t.index;switch(_){case e.RefFileKind.Import:c=e.skipTrivia(l.text,l.imports[d].pos),u=l.imports[d].end;break;case e.RefFileKind.ReferenceFile:c=(n=l.referencedFiles[d]).pos,u=n.end;break;case e.RefFileKind.TypeReferenceDirective:c=(i=l.typeReferenceDirectives[d]).pos,u=i.end;break;default:return e.Debug.assertNever(_)}return e.createFileDiagnostic.apply(void 0,o([l,c,u-c,r],a))}function Ut(t,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];var s=k&&k.get(t.path),c=e.forEach(s,(function(e){return r.has(e.file)?e:void 0}))||e.elementAt(s,0);Y.add(c?zt.apply(void 0,o([c,n],i)):e.createCompilerDiagnostic.apply(void 0,o([n],i)))}function Kt(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&&(Y.add(e.createDiagnosticForNodeInSourceFile(A.configFile,p.elements[r],n,i,a,o)),s=!1)}}s&&Y.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)&&Yt(c.initializer,t,r,void 0,n,i)&&(a=!1)}a&&Y.add(e.createCompilerDiagnostic(n,i))}function qt(){return function(t){var r=Xt();if(r)return e.getPropertyAssignment(r,t)}("paths")||e.emptyArray}function Wt(e,t,r,n){Qt(!0,t,r,e,t,r,n)}function Ht(e,t,r){Qt(!1,e,void 0,t,r)}function Gt(t,r,n,i,a){var o=e.firstDefined(e.getTsConfigPropArray(t||A.configFile,"references"),(function(t){return e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0}));o&&o.elements.length>r?Y.add(e.createDiagnosticForNodeInSourceFile(t||A.configFile,o.elements[r],n,i,a)):Y.add(e.createCompilerDiagnostic(n,i,a))}function Qt(t,r,n,i,a,o,s){var c=Xt();(!c||!Yt(c,t,r,n,i,a,o,s))&&Y.add(e.createCompilerDiagnostic(i,a,o,s))}function Xt(){if(void 0===U){U=null;var t=e.getTsConfigObjectLiteralExpression(A.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)){U=i.initializer;break}}}return U}function Yt(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];Y.add(e.createDiagnosticForNodeInSourceFile(A.configFile,r?d.name:d.initializer,a,o,s,c))}return!!u.length}function Zt(e,t){te.set(Ke(e),!0),Y.add(t)}function $t(t,r){return 0===e.comparePaths(t,r,Z,!W.useCaseSensitiveFileNames())}function er(){return W.getSymlinks?W.getSymlinks():f||(f=e.discoverProbableSymlinks(p,Rt,W.getCurrentDirectory()))}},e.handleNoEmitOptions=b,e.parseConfigHostFromCompilerHostLike=x,e.createPrependNodes=D,e.resolveProjectReferencePath=S,e.getResolutionDiagnostic=C}(d||(d={})),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}}function r(t){return t?e.cloneMap(t):void 0}e.getFileEmitOutput=t,function(n){function i(t){if(t.declarations&&t.declarations[0]){var r=e.getSourceFileOfNode(t.declarations[0]);return r&&r.resolvedPath}}function a(e,t){var r=e.getSymbolAtLocation(t);return r&&i(r)}function o(t,r,n,i){return e.toPath(t.getProjectReferenceRedirect(r)||r,n,i)}function c(t,r,n){var i;if(r.imports&&r.imports.length>0)for(var s=t.getTypeChecker(),c=0,u=r.imports;c<u.length;c++){var l=a(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(o(t,f.fileName,_,n))}if(r.resolvedTypeReferenceDirectiveNames&&r.resolvedTypeReferenceDirectiveNames.forEach((function(e){if(e){var r=e.resolvedFileName;S(o(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 i;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){i||(i=e.createMap()),i.set(t,!0)}}function u(e,t){return t&&!t.referencedMap===!e}function l(e,t){t.forEach((function(t,r){return _(e,t,r)}))}function _(e,t,r){e.fileInfos.get(r).signature=t,e.hasCalledUpdateShapeSignature.set(r,!0)}function d(r,n,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(n,a,!0,s,void 0,!0),g=f.outputFiles&&n.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(g.text),u&&_!==d&&function(t,r,n){if(!r)return void n.set(t.resolvedPath,!1);var a;r.forEach((function(t){var r;(r=i(t))&&(a||(a=e.createMap()),a.set(r,!0))})),n.set(t.resolvedPath,a||!1)}(a,f.exportedModulesFromDeclarationEmit,u)):_=d}return o.set(a.resolvedPath,_),!d||_!==d}function p(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 f(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 g(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 m(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 y(e,t,r){var n=t.getCompilerOptions();return n&&(n.out||n.outFile)?[r]:m(e,t,r)}function v(t,r,n,i,a,o,s){if(g(n))return m(t,r,n);var c=r.getCompilerOptions();if(c&&(c.isolatedModules||c.out||c.outFile))return[n];var u=e.createMap();u.set(n.resolvedPath,n);for(var l=f(t,n.resolvedPath);l.length>0;){var _=l.pop();if(!u.has(_)){var p=r.getSourceFileByPath(_);u.set(_,p),p&&d(t,r,p,i,a,o,s)&&l.push.apply(l,f(t,p.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(u.values(),(function(e){return e})))}n.canReuseOldState=u,n.create=function(t,r,n){for(var i=e.createMap(),a=t.getCompilerOptions().module!==e.ModuleKind.None?e.createMap():void 0,o=a?e.createMap():void 0,s=e.createMap(),l=u(a,n),_=0,d=t.getSourceFiles();_<d.length;_++){var p=d[_],f=e.Debug.checkDefined(p.version,"Program intended to be used with Builder should have source files with versions set"),m=l?n.fileInfos.get(p.resolvedPath):void 0;if(a){var y=c(t,p,r);if(y&&a.set(p.resolvedPath,y),l){var v=n.exportedModulesMap.get(p.resolvedPath);v&&o.set(p.resolvedPath,v)}}i.set(p.resolvedPath,{version:f,signature:m&&m.signature,affectsGlobalScope:g(p)})}return{fileInfos:i,referencedMap:a,exportedModulesMap:o,hasCalledUpdateShapeSignature:s}},n.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},n.clone=function(t){var n=e.createMap();return t.fileInfos.forEach((function(e,t){n.set(t,s({},e))})),{fileInfos:n,referencedMap:r(t.referencedMap),exportedModulesMap:r(t.exportedModulesMap),hasCalledUpdateShapeSignature:e.cloneMap(t.hasCalledUpdateShapeSignature)}},n.getFilesAffectedBy=function(t,r,n,i,a,o,s){var c=o||e.createMap(),u=r.getSourceFileByPath(n);if(!u)return e.emptyArray;if(!d(t,r,u,c,i,a,s))return[u];var _=(t.referencedMap?v:y)(t,r,u,c,i,a,s);return o||l(t,c),_},n.updateSignaturesFromCache=l,n.updateSignatureOfFile=_,n.updateShapeSignature=d,n.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)})))},n.getAllDependencies=function(t,r,n){var i=r.getCompilerOptions();if(i.outFile||i.out)return p(t,r);if(!t.referencedMap||g(n))return p(t,r);for(var a=e.createMap(),o=[n.resolvedPath];o.length;){var s=o.pop();if(!a.has(s)){a.set(s,!0);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=r.getSourceFileByPath(e);return t?t.fileName:e})))},n.getReferencedByPaths=f,n.getAllFilesExcludingDefaultLibraryFile=m}(e.BuilderState||(e.BuilderState={})),e.cloneMapOrUndefined=r}(d||(d={})),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,o.outFile||o.out||(a.semanticDiagnosticsPerFile=e.createMap()),a.changedFilesSet=e.createMap();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"),_&&e.copyEntries(_,a.changedFilesSet),o.outFile||o.out||!i.affectedFilesPendingEmit||(a.affectedFilesPendingEmit=i.affectedFilesPendingEmit.slice(),a.affectedFilesPendingEmitKind=e.cloneMapOrUndefined(i.affectedFilesPendingEmitKind),a.affectedFilesPendingEmitIndex=i.affectedFilesPendingEmitIndex,a.seenAffectedFiles=e.createMap())}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.set(c,!0);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(t){var i=n(t,r,o);i.reportsUnnecessary=t.reportsUnnecessary,i.source=t.source;var a=t.relatedInformation;return i.relatedInformation=a?a.length?a.map((function(e){return n(e,r,o)})):e.emptyArray:void 0,i}));function o(t){return e.toPath(t,a,i)}}(h,t,r):h),a.semanticDiagnosticsFromOldState||(a.semanticDiagnosticsFromOldState=e.createMap()),a.semanticDiagnosticsFromOldState.set(c,!0))}})),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.set(e.resolvedPath,!0)})):c&&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||e.createMap()),a.emittedBuildInfo=!a.changedFilesSet.size&&!a.affectedFilesPendingEmit,a}function n(e,t,r){var n=e.file;return s(s({},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(_.outFile||_.out)return e.Debug.assert(!t.semanticDiagnosticsPerFile),l;t.currentAffectedFilesSignatures=t.currentAffectedFilesSignatures||e.createMap(),t.exportedModulesMap&&(t.currentAffectedFilesExportedModulesMap=t.currentAffectedFilesExportedModulesMap||e.createMap()),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||e.createMap()}}function o(t,r,n,i){if(c(t,r.resolvedPath),t.allFilesExcludingDefaultLibraryFile!==t.affectedFiles)t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(t,r,n){if(!t.exportedModulesMap||!t.changedFilesSet.has(r.resolvedPath))return;if(!u(t,r.resolvedPath))return;if(t.compilerOptions.isolatedModules){var i=e.createMap();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)&&u(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 c=e.createMap();if(e.forEachEntry(t.currentAffectedFilesExportedModulesMap,(function(e,i){return e&&e.has(r.resolvedPath)&&l(t,i,c,n)})))return;e.forEachEntry(t.exportedModulesMap,(function(e,i){return!t.currentAffectedFilesExportedModulesMap.has(i)&&e.has(r.resolvedPath)&&l(t,i,c,n)}))}(t,r,(function(t,r){return function(t,r,n,i){if(c(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)&&c(t,r.resolvedPath)}))}}function c(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function u(t,r){return e.Debug.checkDefined(t.currentAffectedFilesSignatures).get(r)!==e.Debug.checkDefined(t.fileInfos.get(r)).signature}function l(t,r,n,i){return e.forEachEntry(t.referencedMap,(function(a,o){return a.has(r)&&function t(r,n,i,a){if(!e.addToSeen(i,n))return!1;if(a(r,n))return!0;if(e.Debug.assert(!!r.currentAffectedFilesExportedModulesMap),e.forEachEntry(r.currentAffectedFilesExportedModulesMap,(function(e,o){return e&&e.has(n)&&t(r,o,i,a)})))return!0;if(e.forEachEntry(r.exportedModulesMap,(function(e,o){return!r.currentAffectedFilesExportedModulesMap.has(o)&&e.has(n)&&t(r,o,i,a)})))return!0;return!!e.forEachEntry(r.referencedMap,(function(e,t){return e.has(n)&&!i.has(t)&&a(r,t)}))}(t,o,n,i)}))}function _(t,r,n,i,a){a?t.emittedBuildInfo=!0:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.set(r.resolvedPath,!0),void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=e.createMap())).set(r.resolvedPath,n),i?t.affectedFilesPendingEmitIndex++: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 a}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o);return o}(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(t){var n=v(t,r);n.reportsUnnecessary=t.reportsUnnecessary,n.source=t.source;var i=t.relatedInformation;return n.relatedInformation=i?i.length?i.map((function(e){return v(e,r)})):e.emptyArray:void 0,n}))}function v(e,t){var r=e.file;return s(s({},e),{file:r?t(r.resolvedPath):void 0})}function h(t,r,n){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=e.createMap());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=e.createMap();for(var i in t)e.hasProperty(t,i)&&n.set(r(i),e.arrayToSet(t[i],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)},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=c.createHash||e.generateDjb2Hash,S=r(s,b,m);s.getProgramBuildInfo=function(){return function(t,r){if(!t.compilerOptions.outFile&&!t.compilerOptions.out){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[x(r)]=void 0===n?e:{version:e.version,signature:n,affectsGlobalScope:e.affectsGlobalScope}}));var o={fileInfos:a,options:g(t.compilerOptions,(function(t){return x(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[x(p=u[c])]=e.arrayFrom(t.referencedMap.get(p).keys(),x).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[x(p)]=e.arrayFrom(t.exportedModulesMap.get(p).keys(),x).sort(e.compareStringsCaseSensitive):f&&(l[x(p)]=e.arrayFrom(f.keys(),x).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?[x(p),t.hasReusableDiagnostic?b:y(b,x)]:x(p))}o.semanticDiagnosticsPerFile=m}return o}function x(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(i,t,r))}}(S,b)},s=void 0,u=void 0,m=void 0;var C=x(S,l);return C.getState=function(){return S},C.backupState=function(){e.Debug.assert(void 0===v),v=function(t){var r=e.BuilderState.clone(t);return r.semanticDiagnosticsPerFile=e.cloneMapOrUndefined(t.semanticDiagnosticsPerFile),r.changedFilesSet=e.cloneMap(t.changedFilesSet),r.affectedFiles=t.affectedFiles,r.affectedFilesIndex=t.affectedFilesIndex,r.currentChangedFilePath=t.currentChangedFilePath,r.currentAffectedFilesSignatures=e.cloneMapOrUndefined(t.currentAffectedFilesSignatures),r.currentAffectedFilesExportedModulesMap=e.cloneMapOrUndefined(t.currentAffectedFilesExportedModulesMap),r.seenAffectedFiles=e.cloneMapOrUndefined(t.seenAffectedFiles),r.cleanedDiagnosticsOfLibFiles=t.cleanedDiagnosticsOfLibFiles,r.semanticDiagnosticsFromOldState=e.cloneMapOrUndefined(t.semanticDiagnosticsFromOldState),r.program=t.program,r.compilerOptions=t.compilerOptions,r.affectedFilesPendingEmit=t.affectedFilesPendingEmit&&t.affectedFilesPendingEmit.slice(),r.affectedFilesPendingEmitKind=e.cloneMapOrUndefined(t.affectedFilesPendingEmitKind),r.affectedFilesPendingEmitIndex=t.affectedFilesPendingEmitIndex,r.seenEmittedFiles=e.cloneMapOrUndefined(t.seenEmittedFiles),r.programEmitComplete=t.programEmitComplete,r}(S)},C.restoreState=function(){S=e.Debug.checkDefined(v),v=void 0},C.getAllDependencies=function(t){return e.BuilderState.getAllDependencies(S,e.Debug.checkDefined(S.program),t)},C.getSemanticDiagnostics=function(t,r){i(S,t);var n,a=e.Debug.checkDefined(S.program).getCompilerOptions();if(a.outFile||a.out)return e.Debug.assert(!S.semanticDiagnosticsPerFile),e.Debug.checkDefined(S.program).getSemanticDiagnostics(t,r);if(t)return f(S,t,r);for(;k(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},C.emit=function(r,a,o,s,u){if(n===t.EmitAndSemanticDiagnosticsBuilderProgram){i(S,r);var l=e.handleNoEmitOptions(C,r,o);if(l)return l;if(!r){for(var _=[],d=!1,p=void 0,f=[],g=void 0;g=T(a,o,s,u);)d=d||g.result.emitSkipped,p=e.addRange(p,g.result.diagnostics),f=e.addRange(f,g.result.emittedFiles),_=e.addRange(_,g.result.sourceMaps);return{emitSkipped:d,diagnostics:p||e.emptyArray,emittedFiles:f,sourceMaps:_}}}return e.Debug.checkDefined(S.program).emit(r,a||e.maybeBind(c,c.writeFile),o,s,u)},C.releaseProgram=function(){!function(t){e.BuilderState.releaseCache(t),t.program=void 0}(S),v=void 0},n===t.SemanticDiagnosticsBuilderProgram?C.getSemanticDiagnosticsOfNextAffectedFile=k:n===t.EmitAndSemanticDiagnosticsBuilderProgram?(C.getSemanticDiagnosticsOfNextAffectedFile=k,C.emitNextAffectedFile=T):e.notImplemented(),C;function T(t,r,n,i){var o=a(S,r,D),s=1,u=!1;if(!o)if(S.compilerOptions.out||S.compilerOptions.outFile){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=e.createMap()),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.emittedBuildInfo)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 k(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&&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=e.createMap();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};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,close:e.noop};function u(t){return e.toPath(t,i,a)}},e.createRedirectedBuilderProgram=x}(d||(d={})),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)}}(d||(d={})),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=e.memoize((function(){return n.getCurrentDirectory()})),p=n.getCachedDirectoryStructureHost(),f=e.createMap(),g=e.createCacheWithRedirects(),m=e.createCacheWithRedirects(),y=e.createModuleResolutionCacheWithMaps(g,m,d(),n.getCanonicalFileName),v=e.createMap(),h=e.createCacheWithRedirects(),b=[".ts",".tsx",".js",".jsx",".json"],x=e.createMap(),D=e.createMap(),S=i&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(i,d())),C=S&&n.toPath(S),T=void 0!==C?C.split(e.directorySeparator).length:0,k=e.createMap();return{startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:P,finishCachingPerDirectoryResolution:function(){c=void 0,P(),D.forEach((function(e,t){0===e.refCount&&(D.delete(t),e.watcher.close())}))},resolveModuleNames:function(t,r,n,i){return I({names:t,containingFile:r,redirectedReference:i,cache:f,perDirectoryCacheWithRedirects:g,loader:w,getResolutionWithResolvedFileName:E,shouldRetryResolution:function(t){return!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension)},reusedNames:n,logChanges:a})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){var r=f.get(n.toPath(t));return r&&r.get(e)},resolveTypeReferenceDirectives:function(t,r,n){return I({names:t,containingFile:r,redirectedReference:n,cache:v,perDirectoryCacheWithRedirects:h,loader:e.resolveTypeReferenceDirective,getResolutionWithResolvedFileName:N,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 W(n.toPath(e))}))},removeResolutionsOfFile:W,invalidateResolutionOfFile:function(t){W(t),e.forEach(_.get(t),H)},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)||F(e)}},updateTypeRootsWatch:function(){var t=n.getCompilationSettings();if(t.types)return void Q();var r=e.getEffectiveTypeRoots(t,{directoryExists:Y,getCurrentDirectory:d});r?e.mutateMap(k,e.arrayToMap(r,(function(e){return n.toPath(e)})),{createNewValue:X,onDeleteValue:e.closeFileWatcher}):Q()},closeTypeRootsWatch:Q,clear:function(){e.clearMap(D,e.closeFileWatcherOf),x.clear(),u.clear(),Q(),f.clear(),v.clear(),_.clear(),l.length=0,P()}};function E(e){return e.resolvedModule}function N(e){return e.resolvedTypeReferenceDirective}function A(t,r){return!(void 0===t||r.length<=t.length)&&(e.startsWith(r,t)&&r[t.length]===e.directorySeparator)}function F(e){if(!c)return!1;var t=c.get(e);return!!t&&!!t.length}function P(){g.clear(),m.clear(),h.clear(),u.forEach(J),u.clear()}function w(t,r,i,a,o){var s,c=e.resolveModuleName(t,r,i,a,y,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 I(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,e.createMap()).get(g),y=e.getDirectoryPath(g),v=u.getOrCreateMapOfCacheRedirects(s),h=v.get(y);h||(h=e.createMap(),v.set(y,h));for(var b=[],x=n.getCompilationSettings(),D=f&&F(g),S=n.getCurrentProgram(),C=S&&S.getResolvedProjectReferenceToRedirect(a),T=C?!s||s.sourceFile.path!==C.sourceFile.path:!!s,k=e.createMap(),E=0,N=i;E<N.length;E++){var A=N[E],P=m.get(A);if(!k.has(A)&&T||!P||P.isInvalidated||D&&!e.isExternalModuleNameRelative(A)&&d(P)){var w=P,I=h.get(A);I?P=I:(P=l(A,a,x,(null===(r=n.getCompilerHost)||void 0===r?void 0:r.call(n))||n,s),h.set(A,P)),m.set(A,P),B(A,P,g,_),w&&U(w,g,_),f&&o&&!O(w,P)&&(o.push(g),f=!1)}e.Debug.assert(void 0!==P&&!P.isInvalidated),k.set(A,!0),b.push(_(P))}return m.forEach((function(t,r){k.has(r)||e.contains(p,r)||(U(t,g,_),m.delete(r))})),b;function O(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 O(t){return e.endsWith(t,"/node_modules/@types")}function M(t,r){if(A(C,r)){t=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,d());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>T+1?{dir:i.slice(0,T+1).join(e.directorySeparator),dirPath:n.slice(0,T+1).join(e.directorySeparator)}:{dir:S,dirPath:C,nonRecursive:!1}}return L(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,d())),e.getDirectoryPath(r))}function L(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!==C)for(;!A(n,C);){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 R(t){return e.fileExtensionIsOneOf(t,b)}function B(t,r,i,a){if(r.refCount)r.refCount++,e.Debug.assertDefined(r.files);else{r.refCount=1,e.Debug.assert(void 0===r.files),e.isExternalModuleNameRelative(t)?j(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 j(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=M(s,c);if(u){var _=u.dir,d=u.dirPath,p=u.nonRecursive;if(!R(c)){var f=x.get(c)||0;x.set(c,f+1)}d===C?(e.Debug.assert(!p),i=!0):z(_,d,p)}}i&&z(S,C,!0)}}function J(e,t){var r=n.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)||e.forEach(j)}function z(t,r,n){var i=D.get(r);i?(e.Debug.assert(!!n===!!i.nonRecursive),i.refCount++):D.set(r,{watcher:V(t,r,n),refCount:1,nonRecursive:n})}function U(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=M(u,d);if(p){var f=p.dirPath,g=x.get(d);g&&(1===g?x.delete(d):(e.Debug.assert(g>1),x.set(d,g-1))),f===C?o=!0:K(f)}}o&&K(C)}}}function K(e){D.get(e).refCount--}function V(e,t,r){return n.watchDirectoryOfFailedLookupLocation(e,(function(e){var r=n.toPath(e);p&&p.addOrDeleteFileOrDirectory(e,r),G(r,t===r)&&n.onInvalidatedResolution()}),r?0:1)}function q(e,t,r){var n=e.get(t);n&&(n.forEach((function(e){return U(e,t,r)})),e.delete(t))}function W(e){q(f,e,E),q(v,e,N)}function H(t){t.isInvalidated=!0;for(var r=!1,i=0,a=e.Debug.assertDefined(t.files);i<a.length;i++){var o=a[i];(s||(s=e.createMap())).set(o,!0),r=r||o.endsWith(e.inferredTypesContainingFile)}r&&n.onChangedAutomaticTypeDirectiveNames()}function G(r,i){var a;if(i)a=function(e){return A(r,n.toPath(e))};else{var o=t(r);if(!o)return!1;if(r=o,n.fileIsOpen(r))return!1;var s=e.getDirectoryPath(r);if(O(r)||e.isNodeModulesDirectory(r)||O(s)||e.isNodeModulesDirectory(s))a=function(t){return n.toPath(t)===r||e.startsWith(n.toPath(t),r)};else{if(!R(r)&&!x.has(r))return!1;if(e.isEmittedFileOfProgram(n.getCurrentProgram(),r))return!1;a=function(e){return n.toPath(e)===r}}}for(var c=!1,u=0,_=l;u<_.length;u++){var d=_[u];d.failedLookupLocations.some(a)&&(H(d),c=!0)}return c}function Q(){e.clearMap(k,e.closeFileWatcher)}function X(e,t){return n.watchTypeRootsDirectory(t,(function(r){var i=n.toPath(r);p&&p.addOrDeleteFileOrDirectory(r,i),n.onChangedAutomaticTypeDirectiveNames();var a=function(e,t){if(A(C,t))return C;var r=L(e,t);return r&&D.has(r.dirPath)?r.dirPath:void 0}(t,e);a&&G(i,a===i)&&n.onInvalidatedResolution()}),1)}function Y(t){var i=e.getDirectoryPath(e.getDirectoryPath(t)),a=n.toPath(i);return a===C||r(a)}}}(d||(d={})),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: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 o=s(r,i),u=p(r,n,i);return e.firstDefined(u,(function(e){return g(e,o,i,t)}))||c(n,o,t,a)}function s(t,r){return{getCanonicalFileName:e.createGetCanonicalFileName(!r.useCaseSensitiveFileNames||r.useCaseSensitiveFileNames()),sourceDirectory:e.getDirectoryPath(t)}}function c(t,r,n,i){var a=r.getCanonicalFileName,o=r.sourceDirectory,s=i.ending,c=i.relativePreference,l=n.baseUrl,_=n.paths,d=n.rootDirs,p=d&&function(t,r,n,i,a,o){var s=m(r,t,i);if(void 0===s)return;var c=m(n,t,i),u=void 0!==c?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(c,s,i)):s;return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeJs?y(u,a,o):e.removeFileExtension(u)}(d,t,o,a,s,n)||y(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,t,a)),s,n);if(!l||0===c)return p;var g=v(t,l,a);if(!g)return p;var b=y(g,s,n),x=_&&f(e.removeFileExtension(g),b,_),D=void 0===x?b:x;return 1===c?D:(2!==c&&e.Debug.assertNever(c),h(D)||u(p)<u(D)?p:D)}function u(t){for(var r=0,n=e.startsWith(t,"./")?2:0;n<t.length;n++)47===t.charCodeAt(n)&&r++;return r}function l(e){var t=e.match(/\//g);return t?t.length:0}function _(t,r){return e.compareValues(l(t),l(r))}function d(t,r,n,i,a){var s=e.hostGetCanonicalFileName(n),c=n.getCurrentDirectory(),u=n.isSourceOfProjectReferenceRedirect(r)?n.getProjectReferenceRedirect(r):void 0,l=n.redirectTargetsMap.get(e.toPath(r,c,s))||e.emptyArray,_=o(u?[u]:e.emptyArray,[r],l).map((function(t){return e.getNormalizedAbsolutePath(t,c)}));if(!i){var d=e.forEach(_,a);if(d)return d}var p=n.getProbableSymlinks?n.getProbableSymlinks(n.getSourceFiles()):e.discoverProbableSymlinks(n.getSourceFiles(),s,c),f=!n.useCaseSensitiveFileNames||n.useCaseSensitiveFileNames()?e.compareStringsCaseSensitive:e.compareStringsCaseInsensitive;return e.forEachEntry(p,(function(r,i){if(!e.startsWithDirectory(t,r,s)){var o=e.find(_,(function(e){return 0===f(e.slice(0,r.length+1),r+"/")}));if(void 0!==o){var c=e.getRelativePathFromDirectory(r,o,s),u=e.resolvePath(i,c);if(!n.fileExists||n.fileExists(u)){var l=a(u);if(l)return l}}}}))||(i?e.forEach(_,a):void 0)}function p(t,r,n){var i=n.getCurrentDirectory(),a=e.hostGetCanonicalFileName(n),o=e.createMap(),s=!1;d(t,r,n,!0,(function(t){o.set(t,a(t)),s=s||e.pathContainsNodeModules(t)}));for(var c,u=[],l=function(t){var r,n=e.ensureTrailingDirectorySeparator(t);o.forEach((function(t,i){e.startsWith(t,n)&&(s&&!e.pathContainsNodeModules(i)||(r||(r=[])).push(i),o.delete(i))})),r&&(r.length>1&&r.sort(_),u.push.apply(u,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=l(p);if(p=c,"break"===f)break}if(o.size){var g=e.arrayFrom(o.values());g.length>1&&g.sort(_),u.push.apply(u,g)}return u}function f(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 g(t,r,n,i,a){var o=r.getCanonicalFileName,s=r.sourceDirectory;if(n.fileExists&&n.readFile){var c=function(t){var r,n,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"}(n||(n={}));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&&(i=s,a=c,u=1);break;case 1:case 2:1===u&&"@"===t.charAt(s+1)?u=2:(o=c,u=3);break;case 3:u=t.indexOf(e.nodeModulesPathPart,s)===s?1:3}return r=s,u>1?{topLevelNodeModulesIndex:i,topLevelPackageNameIndex:a,packageRootIndex:o,fileNameIndex:r}:void 0}(t);if(c){var u=t;if(!a)for(var l=c.packageRootIndex,_=void 0;;){var d=x(l),p=d.moduleFileToTry,g=d.packageRootPath;if(g){u=g;break}if(_||(_=p),-1===(l=t.indexOf(e.directorySeparator,l+1))){u=D(_);break}}var m=n.getGlobalTypingsCacheLocation&&n.getGlobalTypingsCacheLocation(),v=o(u.substring(0,c.topLevelNodeModulesIndex));if(e.startsWith(s,v)||m&&e.startsWith(o(m),v)){var h=u.substring(c.topLevelPackageNameIndex+1),b=e.getPackageNameFromTypesPackageName(h);return e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.NodeJs&&b===h?void 0:b}}}function x(r){var a=t.substring(0,r),s=e.combinePaths(a,"package.json"),c=t;if(n.fileExists(s)){var u=JSON.parse(n.readFile(s)),l=u.typesVersions?e.getPackageJsonTypesVersionsPaths(u.typesVersions):void 0;if(l){var _=t.slice(a.length+1),d=f(e.removeFileExtension(_),y(_,0,i),l.paths);void 0!==d&&(c=e.combinePaths(a,d))}var p=u.typings||u.types||u.main;if(e.isString(p)){var g=e.toPath(p,a,o);if(e.removeFileExtension(g)===e.removeFileExtension(o(c)))return{packageRootPath:a,moduleFileToTry:c}}}return{moduleFileToTry:c}}function D(t){var r=e.removeFileExtension(t);return"/index"!==o(r.substring(c.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=a[i],s=r+o;if(t.fileExists(s))return s}}(n,r.substring(0,c.fileNameIndex))?r:r.substring(0,c.fileNameIndex)}}function m(t,r,n){return e.firstDefined(r,(function(e){var r=v(t,e,n);return h(r)?void 0:r}))}function y(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 v(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1);return e.isRootedDiskPath(i)?void 0:i}function h(t){return e.startsWith(t,"..")}!function(e){e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Auto=2]="Auto"}(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=s(r,i),o=p(r,n,i);return e.firstDefined(o,(function(e){return g(e,a,i,t,!0)}))},t.getModuleSpecifiers=function(t,r,n,a,o){var u=function(t){var r=e.find(t.declarations,(function(t){return e.isNonGlobalAmbientModule(t)&&(!e.isExternalModuleAugmentation(t)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name)))}));if(r)return r.name.text}(t);if(u)return[u];var l=s(n.path,a),_=e.getSourceFileOfNode(t.valueDeclaration||e.getNonAugmentationDeclaration(t)),d=p(n.path,_.originalFileName,a),f=i(o,r,n),m=e.mapDefined(d,(function(e){return g(e,l,a,r)}));return m.length?m:d.map((function(e){return c(e,l,r,f)}))},t.countPathComponents=u,t.forEachFileNameOfModule=d}(e.moduleSpecifiers||(e.moduleSpecifiers={}))}(d||(d={})),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 s(t){return e.countWhere(t,(function(t){return t.category===e.DiagnosticCategory.Error}))}function c(t){return 1===t?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}function u(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 l(t,r){(t.getCompilerOptions().listFiles||t.getCompilerOptions().listFilesOnly)&&e.forEach(t.getSourceFiles(),(function(e){r(e.fileName)}))}function _(t,r,n,i,a,o,c,u){var _=!!t.getCompilerOptions().listFilesOnly,d=t.getConfigFileParsingDiagnostics().slice(),p=d.length;e.addRange(d,t.getSyntacticDiagnostics(void 0,o)),d.length===p&&(e.addRange(d,t.getOptionsDiagnostics(o)),_||(e.addRange(d,t.getGlobalDiagnostics(o)),d.length===p&&e.addRange(d,t.getSemanticDiagnostics(void 0,o))));var f=_?{emitSkipped:!0,diagnostics:e.emptyArray}:t.emit(void 0,a,o,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(s(y)),{emitResult:f,diagnostics:y}}function d(t,r,n,i,a,o,s,c){var u=_(t,r,n,i,a,o,s,c),l=u.emitResult,d=u.diagnostics;return l.emitSkipped&&d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function p(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||a(t),watchFile:e.maybeBind(t,t.watchFile)||function(){return e.noopFileWatcher},watchDirectory:e.maybeBind(t,t.watchDirectory)||function(){return e.noopFileWatcher},setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function f(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 g(t,r,n,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=f(t,r);return e.copyProperties(o,p(t,i)),o.afterProgramCreate=function(r){var i=r.getCompilerOptions(),s=e.getNewLineCharacter(i,(function(){return t.newLine}));_(r,n,a,(function(t){return o.onWatchStatusChange(e.createCompilerDiagnostic(c(t),t),s,i,t)}))},o}function m(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 m(i,a,e)};var s=e.getParsedCommandLineOfConfigFile(t,r,o,void 0,n);return o.onUnRecoverableConfigFileDiagnostic=void 0,s},e.getErrorCountForSummary=s,e.getWatchErrorSummaryDiagnosticMessage=c,e.getErrorSummaryText=u,e.listFiles=l,e.emitFilesAndReportErrors=_,e.emitFilesAndReportErrorsAndGetExitStatus=d,e.noopFileWatcher={close:e.noop},e.createWatchHost=p,e.WatchType={ConfigFile:"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(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(s){a&&a(s.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(o){a&&a(o.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=r.createHash||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];var s=n.call.apply(n,o([t],e));return s&&(s.version=i.call(r,s.text)),s}},e.createProgramHost=f,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),_=g(o,s,l,u);return _.onUnRecoverableConfigFileDiagnostic=function(e){return m(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=g(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=d(a,t.reportDiagnostic||r(n),(function(e){return i.trace&&i.trace(e)}),t.reportErrorSummary||t.options.pretty?function(e){return n.write(u(e,n.newLine))}:void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(a),o}}(d||(d={})),function(e){function t(t,r){if(!t.out&&!t.outFile){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,s,c,u,l,_,d=e.createMap(),p=!1,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,C=r.options,T=r.watchOptions,k=r.projectReferences,E=!1,N=!1,A=void 0===y?void 0:e.createCachedDirectoryStructureHost(r,m,g),F=A||r,P=e.parseConfigHostFromCompilerHostLike(r,F),w=G();y&&r.configFileParsingResult&&(oe(r.configFileParsingResult),w=G()),te(e.Diagnostics.Starting_compilation_in_watch_mode),y&&!r.configFileParsingResult&&(w=e.getNewLineCharacter(h,(function(){return r.getNewLine()})),e.Debug.assert(!S),ae(),w=G());var I,O=e.createWatchFactory(r,C),M=O.watchFile,L=O.watchFilePath,R=O.watchDirectory,B=O.writeLog,j=e.createGetCanonicalFileName(g);B("Current directory: "+m+" CaseSensitiveFileNames: "+g),y&&(I=M(r,y,(function(){e.Debug.assert(!!y),i=e.ConfigFileProgramReloadLevel.Full,re()}),e.PollingInterval.High,T,e.WatchType.ConfigFile));var J=e.createCompilerHostFromProgramHost(r,(function(){return C}),F);e.setGetSourceFileAsHashVersioned(J,r);var z=J.getSourceFile;J.getSourceFile=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Z.apply(void 0,o([e,Q(e)],t))},J.getSourceFileByPath=Z,J.getNewLine=function(){return w},J.fileExists=Y,J.onReleaseOldSourceFile=function(e,t,r){var n=d.get(e.resolvedPath);void 0!==n&&(X(n)?(u||(u=[])).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),d.delete(e.resolvedPath),r||U.removeResolutionsOfFile(e.path)))},J.toPath=Q,J.getCompilationSettings=function(){return C},J.useSourceOfProjectReferenceRedirect=e.maybeBind(r,r.useSourceOfProjectReferenceRedirect),J.watchDirectoryOfFailedLookupLocation=function(t,n,i){return R(r,t,n,i,T,e.WatchType.FailedLookupLocations)},J.watchTypeRootsDirectory=function(t,n,i){return R(r,t,n,i,T,e.WatchType.TypeRoots)},J.getCachedDirectoryStructureHost=function(){return A},J.onInvalidatedResolution=re,J.onChangedAutomaticTypeDirectiveNames=function(){f=!0,re()},J.fileIsOpen=e.returnFalse,J.getCurrentProgram=W,J.writeLog=B;var U=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 U.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 U.resolveTypeReferenceDirectives(e,t,r)};var K=!!r.resolveModuleNames||!!r.resolveTypeReferenceDirectives;return n=t(C,J),H(),_e(),y?{getCurrentProgram:q,getProgram:ie,close:V}:{getCurrentProgram:q,getProgram:ie,updateRootFileNames:function(t){e.Debug.assert(!y,"Cannot update root file names with config file watch mode"),S=t,re()},close:V};function V(){U.clear(),e.clearMap(d,(function(e){e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),I&&(I.close(),I=void 0),s&&(e.clearMap(s,e.closeFileWatcherOf),s=void 0),a&&(e.clearMap(a,e.closeFileWatcher),a=void 0)}function q(){return n}function W(){return n&&n.getProgramOrUndefined()}function H(){B("Synchronizing program");var t=q();p&&(w=G(),t&&e.changesAffectModuleResolution(t.getCompilerOptions(),C)&&U.clear());var i=U.createHasInvalidatedResolution(K);return e.isProgramUptoDate(W(),S,C,ee,Y,i,f,k)?N&&(n=D(void 0,void 0,J,n,_,k),N=!1):function(t){B("CreatingProgramWith::"),B(" roots: "+JSON.stringify(S)),B(" options: "+JSON.stringify(C));var r=p||!W();p=!1,N=!1,U.startCachingPerDirectoryResolution(),J.hasInvalidatedResolution=t,J.hasChangedAutomaticTypeDirectiveNames=f,f=!1,n=D(S,C,J,n,_,k),U.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(n.getProgram(),a||(a=e.createMap()),ue),r&&U.updateTypeRootsWatch();if(u){for(var i=0,o=u;i<o.length;i++){var s=o[i];a.has(s)||d.delete(s)}u=void 0}}(i),r.afterProgramCreate&&t!==n&&r.afterProgramCreate(n),n}function G(){return e.getNewLineCharacter(C||h,(function(){return r.getNewLine()}))}function Q(t){return e.toPath(t,m,j)}function X(e){return"boolean"===typeof e}function Y(e){var t=Q(e);return!X(d.get(t))&&F.fileExists(e)}function Z(t,n,i,a,o){var s=d.get(n);if(!X(s)){if(void 0===s||o||function(e){return"boolean"===typeof e.version}(s)){var c=z(t,i,a);if(s)c?(s.sourceFile=c,s.version=c.version,s.fileWatcher||(s.fileWatcher=L(r,t,se,e.PollingInterval.Low,T,n,e.WatchType.SourceFile))):(s.fileWatcher&&s.fileWatcher.close(),d.set(n,!1));else if(c){var u=L(r,t,se,e.PollingInterval.Low,T,n,e.WatchType.SourceFile);d.set(n,{sourceFile:c,version:c.version,fileWatcher:u})}else d.set(n,!1);return c}return s.sourceFile}}function $(e){var t=d.get(e);void 0!==t&&(X(t)?d.set(e,{version:!1}):t.version=!1)}function ee(e){var t=d.get(e);return t&&t.version?t.version:void 0}function te(t){r.onWatchStatusChange&&r.onWatchStatusChange(e.createCompilerDiagnostic(t),w,C||h)}function re(){r.setTimeout&&r.clearTimeout&&(c&&r.clearTimeout(c),B("Scheduling update"),c=r.setTimeout(ne,250))}function ne(){c=void 0,te(e.Diagnostics.File_change_detected_Starting_incremental_compilation),ie()}function ie(){switch(i){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),function(){B("Reloading new file names and options");var t=e.getFileNamesFromConfigSpecs(l,e.getNormalizedAbsolutePath(e.getDirectoryPath(y),m),C,P);e.updateErrorForNoInputFiles(t,e.getNormalizedAbsolutePath(y,m),l,_,E)&&(N=!0);S=t.fileNames,H()}();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),function(){B("Reloading config file: "+y),i=e.ConfigFileProgramReloadLevel.None,A&&A.clearCache();ae(),p=!0,H(),_e()}();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),H()}return e.perfLogger.logStopUpdateProgram("Done"),q()}function ae(){oe(e.getParsedCommandLineOfConfigFile(y,h,P,void 0,b,x))}function oe(t){S=t.fileNames,C=t.options,T=t.watchOptions,l=t.configFileSpecs,k=t.projectReferences,_=e.getConfigFileParsingDiagnostics(t).slice(),E=e.canJsonReportNoInutFiles(t.raw),N=!0}function se(t,r,n){ce(t,n,r),r===e.FileWatcherEventKind.Deleted&&d.has(n)&&U.invalidateResolutionOfFile(n),U.removeResolutionsFromProjectReferenceRedirects(n),$(n),re()}function ce(e,t,r){A&&A.addOrDeleteFile(e,t,r)}function ue(t){return L(r,t,le,e.PollingInterval.Medium,T,t,e.WatchType.MissingFile)}function le(t,r,n){ce(t,n,r),r===e.FileWatcherEventKind.Created&&a.has(n)&&(a.get(n).close(),a.delete(n),$(n),re())}function _e(){l?e.updateWatchingWildcardDirectories(s||(s=e.createMap()),e.createMapFromTemplate(l.wildcardDirectories),de):s&&e.clearMap(s,e.closeFileWatcherOf)}function de(t,n){return R(r,t,(function(r){e.Debug.assert(!!y);var n=Q(r);A&&A.addOrDeleteFileOrDirectory(r,n),$(n),(n=e.removeIgnoredPath(n))&&(n===t||!e.hasExtension(n)||e.isSupportedSourceFileName(r,C)?i!==e.ConfigFileProgramReloadLevel.Full&&(i=e.ConfigFileProgramReloadLevel.Partial,re()):B("Project: "+y+" Detected file add/remove of non supported extension: "+r))}),n,T,e.WatchType.WildcardDirectory)}}}(d||(d={})),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")}}(d||(d={})),function(e){var t,r,n=new Date(-864e13),i=new Date(864e13);function a(){return e.createMap()}function s(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,e.createMap)}function c(e,t){return t>e?t:e}function u(t){return e.fileExtensionIs(t,".d.ts")}function l(e){return!!e&&!!e.buildOrder}function _(e){return l(e)?e.buildOrder:e}function d(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 p(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||d(t),a.now=e.maybeBind(t,t.now),a}function f(t,r,n,i,o){var s=r,c=r,u=s.getCurrentDirectory(),l=e.createGetCanonicalFileName(s.useCaseSensitiveFileNames()),_=function(t){var r={};return e.commonOptionsWithBuild.forEach((function(n){e.hasProperty(t,n.name)&&(r[n.name]=t[n.name])})),r}(i),d=e.createCompilerHostFromProgramHost(s,(function(){return D.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(d,s),d.getParsedCommandLine=function(e){return v(D,e,m(D,e))},d.resolveModuleNames=e.maybeBind(s,s.resolveModuleNames),d.resolveTypeReferenceDirectives=e.maybeBind(s,s.resolveTypeReferenceDirectives);var p=d.resolveModuleNames?void 0:e.createModuleResolutionCache(u,l);if(!d.resolveModuleNames){var f=function(t,r,n){return e.resolveModuleName(t,r,D.projectCompilerOptions,d,p,n).resolvedModule};d.resolveModuleNames=function(t,r,n,i){return e.loadWithLocalCache(e.Debug.checkEachDefined(t),r,i,f)}}var g=e.createWatchFactory(c,i),y=g.watchFile,h=g.watchFilePath,b=g.watchDirectory,x=g.writeLog,D={host:s,hostWithWatch:c,currentDirectory:u,getCanonicalFileName:l,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(s),writeFileName:s.trace?function(e){return s.trace(e)}:void 0,options:i,baseCompilerOptions:_,rootNames:n,baseWatchOptions:o,resolvedConfigFilePaths:e.createMap(),configFileCache:a(),projectStatus:a(),buildInfoChecked:a(),extendedConfigCache:e.createMap(),builderPrograms:a(),diagnostics:a(),projectPendingBuild:a(),projectErrorsReported:a(),compilerHost:d,moduleResolutionCache:p,buildOrder:void 0,readFileWithCache:function(e){return s.readFile(e)},projectCompilerOptions:_,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,currentInvalidatedProject:void 0,watch:t,allWatchedWildcardDirectories:a(),allWatchedInputFiles:a(),allWatchedConfigFiles:a(),timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:y,watchFilePath:h,watchDirectory:b,writeLog:x};return D}function g(t,r){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function m(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;var i=g(e,t);return r.set(t,i),i}function y(e){return!!e.options}function v(t,r,n){var i,a=t.configFileCache,o=a.get(n);if(o)return y(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 h(t,r){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,r))}function b(t,r){for(var n,i,a=e.createMap(),o=e.createMap(),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=m(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 _=v(t,r,u);if(_&&_.projectReferences)for(var d=0,p=_.projectReferences;d<p.length;d++){var f=p[d];l(h(t,f.path),c||f.circular)}s.pop(),o.set(u,!0),(n||(n=[])).push(r)}}}function x(t){return t.buildOrder||function(t){var r=b(t,t.rootNames.map((function(e){return h(t,e)})));t.resolvedConfigFilePaths.clear();var n=e.arrayToSet(_(r),(function(e){return m(t,e)})),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}),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 D(t,r,n){var i=r&&h(t,r),a=x(t);if(l(a))return a;if(i){var o=m(t,i);if(-1===e.findIndex(a,(function(e){return m(t,e)===o})))return}var s=i?b(t,[i]):a;return e.Debug.assert(!l(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 S(t){t.cache&&C(t);var r=t.compilerHost,n=t.host,i=t.readFileWithCache,a=r.getSourceFile,s=e.changeCompilerHostLikeToUseCache(n,(function(e){return g(t,e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.call.apply(a,o([r],e))})),c=s.originalReadFile,u=s.originalFileExists,l=s.originalDirectoryExists,_=s.originalCreateDirectory,d=s.originalWriteFile,p=s.getSourceFileWithCache,f=s.readFileWithCache;t.readFileWithCache=f,r.getSourceFile=p,t.cache={originalReadFile:c,originalFileExists:u,originalDirectoryExists:l,originalCreateDirectory:_,originalWriteFile:d,originalReadFileWithCache:i,originalGetSourceFile:a}}function C(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 k(e,t,r){var n=e.projectPendingBuild,i=n.get(t);void 0===i?n.set(t,r):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),S(t),_(x(t)).forEach((function(r){return t.projectPendingBuild.set(m(t,r),e.ConfigFileProgramReloadLevel.None)})),r&&r.throwIfCancellationRequested())}function N(t,r){return t.projectPendingBuild.delete(r),t.currentInvalidatedProject=void 0,t.diagnostics.has(r)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function A(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),N(e,n)}}}function F(a,s,l,_,d,p,f){var y;!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.BuildInvalidatedProjectOfBundle=5]="BuildInvalidatedProjectOfBundle",e[e.QueueReferencingProjects=6]="QueueReferencingProjects",e[e.Done=7]="Done"}(y||(y={}));var b,x,D,S=a===r.Build?y.CreateProgram:y.EmitBundle;return a===r.Build?{kind:a,project:l,projectPath:_,buildOrder:f,getCompilerOptions:function(){return p.options},getCurrentDirectory:function(){return s.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 k((function(e){return e.getSourceFiles()}))},getOptionsDiagnostics:function(e){return k((function(t){return t.getOptionsDiagnostics(e)}))},getGlobalDiagnostics:function(e){return k((function(t){return t.getGlobalDiagnostics(e)}))},getConfigFileParsingDiagnostics:function(){return k((function(e){return e.getConfigFileParsingDiagnostics()}))},getSyntacticDiagnostics:function(e,t){return k((function(r){return r.getSyntacticDiagnostics(e,t)}))},getAllDependencies:function(e){return k((function(t){return t.getAllDependencies(e)}))},getSemanticDiagnostics:function(e,t){return k((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,n,i){return e||n?T((function(a){return a.emit(e,t,r,n,i)})):(J(y.SemanticDiagnostics,r),S===y.Emit?M(t,r,i):void 0)},done:C}:{kind:a,project:l,projectPath:_,buildOrder:f,getCompilerOptions:function(){return p.options},getCurrentDirectory:function(){return s.currentDirectory},emit:function(e,t){return S!==y.EmitBundle?D:B(e,t)},done:C};function C(e,t,r){return J(y.Done,e,t,r),N(s,_)}function T(e){return J(y.CreateProgram),b&&e(b)}function k(t){return T(t)||e.emptyArray}function E(){if(e.Debug.assert(void 0===b),s.options.dry)return Z(s,e.Diagnostics.A_non_dry_build_would_build_project_0,l),x=t.Success,void(S=y.QueueReferencingProjects);if(s.options.verbose&&Z(s,e.Diagnostics.Building_project_0,l),0===p.fileNames.length)return te(s,_,e.getConfigFileParsingDiagnostics(p)),x=t.None,void(S=y.QueueReferencingProjects);var r=s.host,n=s.compilerHost;s.projectCompilerOptions=p.options,function(t,r,n){if(!t.moduleResolutionCache)return;var i=t.moduleResolutionCache,a=g(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)}(s,l,p),b=r.createProgram(p.fileNames,p.options,n,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)}(s,_,p),e.getConfigFileParsingDiagnostics(p),p.projectReferences),S++}function A(e,t,r){e.length?(x=O(s,_,b,p,e,t,r),S=y.QueueReferencingProjects):S++}function P(r){e.Debug.assertIsDefined(b),A(o(b.getConfigFileParsingDiagnostics(),b.getOptionsDiagnostics(r),b.getGlobalDiagnostics(r),b.getSyntacticDiagnostics(void 0,r)),t.SyntaxErrors,"Syntactic")}function w(r){A(e.Debug.checkDefined(b).getSemanticDiagnostics(void 0,r),t.TypeErrors,"Semantic")}function M(r,i,a){var o;e.Debug.assertIsDefined(b),e.Debug.assert(S===y.Emit),b.backupState();var l=[],d=e.emitFilesAndReportErrors(b,(function(e){return(o||(o=[])).push(e)}),void 0,void 0,(function(e,t,r){return l.push({name:e,text:t,writeByteOrderMark:r})}),i,!1,a).emitResult;if(o)return b.restoreState(),x=O(s,_,b,p,o,t.DeclarationEmitErrors,"Declaration file"),S=y.QueueReferencingProjects,{emitSkipped:!0,diagnostics:d.diagnostics};var f=s.host,m=s.compilerHost,v=t.DeclarationOutputUnchanged,h=n,D=!1,C=e.createDiagnosticCollection(),T=e.createMap();return l.forEach((function(n){var i,a=n.name,o=n.text,l=n.writeByteOrderMark;!D&&u(a)&&(f.fileExists(a)&&s.readFileWithCache(a)===o?i=f.getModifiedTime(a):(v&=~t.DeclarationOutputUnchanged,D=!0)),T.set(g(s,a),a),e.writeFile(r?{writeFile:r}:m,C,a,o,l),void 0!==i&&(h=c(i,h))})),L(C,T,h,D,l.length?l[0].name:e.getFirstProjectOutput(p,!f.useCaseSensitiveFileNames()),v),d}function L(r,n,a,o,c,u){var l=r.getDiagnostics();if(l.length)return x=O(s,_,b,p,l,t.EmitErrors,"Emit"),S=y.QueueReferencingProjects,l;s.writeFileName&&(n.forEach((function(e){return function(e,t,r){var n=e.writeFileName;n&&t.options.listEmittedFiles&&n("TSFILE: "+r)}(s,p,e)})),b&&e.listFiles(b,s.writeFileName));var d=R(s,p,a,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,n);return s.diagnostics.delete(_),s.projectStatus.set(_,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:o?i:d,oldestOutputFileName:c}),I(s,_,b,p),s.projectCompilerOptions=s.baseCompilerOptions,S=y.QueueReferencingProjects,x=u,l}function B(i,o){if(e.Debug.assert(a===r.UpdateBundle),s.options.dry)return Z(s,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,l),x=t.Success,void(S=y.QueueReferencingProjects);s.options.verbose&&Z(s,e.Diagnostics.Updating_output_of_project_0,l);var c=s.compilerHost;s.projectCompilerOptions=p.options;var u=e.emitUsingBuildInfo(p,c,(function(e){var t=h(s,e.path);return v(s,t,m(s,t))}),o);if(e.isString(u))return Z(s,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,l,Y(s,u)),S=y.BuildInvalidatedProjectOfBundle,D=F(r.Build,s,l,_,d,p,f);e.Debug.assert(!!u.length);var b=e.createDiagnosticCollection(),C=e.createMap();return u.forEach((function(t){var r=t.name,n=t.text,a=t.writeByteOrderMark;C.set(g(s,r),r),e.writeFile(i?{writeFile:i}:c,b,r,n,a)})),{emitSkipped:!1,diagnostics:L(b,C,n,!1,u[0].name,t.DeclarationOutputUnchanged)}}function J(t,r,n,i){for(;S<=t&&S<y.Done;){var a=S;switch(S){case y.CreateProgram:E();break;case y.SyntaxDiagnostics:P(r);break;case y.SemanticDiagnostics:w(r);break;case y.Emit:M(n,r,i);break;case y.EmitBundle:B(n,i);break;case y.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(D).done(r),S=y.Done;break;case y.QueueReferencingProjects:j(s,l,_,d,p,f,e.Debug.checkDefined(x)),S++;break;case y.Done:default:e.assertType(S)}e.Debug.assert(S>a)}}}function P(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 w(t,n,i){if(t.projectPendingBuild.size&&!l(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],u=m(t,c),_=t.projectPendingBuild.get(u);if(void 0!==_){i&&(i=!1,ie(t,n));var d=v(t,c,u);if(d){if(_===e.ConfigFileProgramReloadLevel.Full)W(t,c,u,d),G(t,c,u,d),Q(t,c,u,d);else if(_===e.ConfigFileProgramReloadLevel.Partial){var p=e.getFileNamesFromConfigSpecs(d.configFileSpecs,e.getDirectoryPath(c),d.options,t.parseConfigFileHost);e.updateErrorForNoInputFiles(p,c,d.configFileSpecs,d.errors,e.canJsonReportNoInutFiles(d.raw)),d.fileNames=p.fileNames,Q(t,c,u,d)}var f=L(t,d,u);if(ae(t,c,f),!a.force){if(f.type===e.UpToDateStatusType.UpToDate){te(t,u,e.getConfigFileParsingDiagnostics(d)),o.delete(u),a.dry&&Z(t,e.Diagnostics.Project_0_is_up_to_date,c);continue}if(f.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return te(t,u,e.getConfigFileParsingDiagnostics(d)),A(t,c,u,d,n)}if(f.type!==e.UpToDateStatusType.UpstreamBlocked){if(f.type!==e.UpToDateStatusType.ContainerOnly)return F(P(t,f,d)?r.Build:r.UpdateBundle,t,c,u,s,d,n);te(t,u,e.getConfigFileParsingDiagnostics(d)),o.delete(u)}else te(t,u,e.getConfigFileParsingDiagnostics(d)),o.delete(u),a.verbose&&Z(t,f.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,c,f.upstreamProjectName)}else re(t,u),o.delete(u)}}}}function I(e,t,r,n){var i=e.host,a=e.watch,o=e.builderPrograms;r?(i.afterProgramEmitAndDiagnostics&&i.afterProgramEmitAndDiagnostics(r),a&&(r.releaseProgram(),o.set(t,r))):i.afterEmitBundle&&i.afterEmitBundle(n)}function O(t,r,n,i,a,o,s){return te(t,r,a),n&&t.writeFileName&&e.listFiles(n,t.writeFileName),t.projectStatus.set(r,{type:e.UpToDateStatusType.Unbuildable,reason:s+" errors"}),I(t,r,n,i),t.projectCompilerOptions=t.baseCompilerOptions,o}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,a){if(void 0===r)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var o=t.projectStatus.get(a);if(void 0!==o)return o;var s=function(t,r,a){for(var o=void 0,s=n,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>s&&(o=p,s=f)}if(!r.fileNames.length&&!e.canJsonReportNoInutFiles(r.raw))return{type:e.UpToDateStatusType.ContainerOnly};for(var g,y=e.getAllProjectOutputs(r,!l.useCaseSensitiveFileNames()),h="(none)",b=i,x="(none)",D=n,S=n,C=!1,T=0,k=y;T<k.length;T++){var E=k[T];if(!l.fileExists(E)){g=E;break}var N=l.getModifiedTime(E)||e.missingFileModifiedTime;if(N<b&&(b=N,h=E),N<s){C=!0;break}if(N>D&&(D=N,x=E),u(E))S=c(S,l.getModifiedTime(E)||e.missingFileModifiedTime)}var A,F=!1,P=!1;if(r.projectReferences){t.projectStatus.set(a,{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=m(t,R),j=L(t,v(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(!g){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!==g)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:g};if(C)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(a)){t.buildInfoChecked.set(a,!0);var U=e.getTsBuildInfoEmitOutputFilePath(r.options);if(U){var K=t.readFileWithCache(U),V=K&&e.getBuildInfo(K);if(V&&(V.bundle||V.program)&&V.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:V.version}}}return P&&F?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:h,newerProjectName:A}:{type:F?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:S,newestInputFileTime:s,newestOutputFileTime:D,newestInputFileName:o,newestOutputFileName:x,oldestOutputFileName:h}}(t,r,a);return t.projectStatus.set(a,s),s}function R(t,r,n,i,a){var o=t.host,s=e.getAllProjectOutputs(r,!o.useCaseSensitiveFileNames());if(!a||s.length!==a.size)for(var l=!!t.options.verbose,_=o.now?o.now():new Date,d=0,p=s;d<p.length;d++){var f=p[d];a&&a.has(g(t,f))||(l&&(l=!1,Z(t,i,r.options.configFilePath)),u(f)&&(n=c(n,o.getModifiedTime(f)||e.missingFileModifiedTime)),o.setModifiedTime(f,_))}return n}function B(t,r,i){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,n,e.Diagnostics.Updating_output_timestamps_of_project_0);t.projectStatus.set(i,{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],_=m(r,l);if(!r.projectPendingBuild.has(_)){var d=v(r,l,_);if(d&&d.projectReferences)for(var p=0,f=d.projectReferences;p<f.length;p++){var g=f[p];if(m(r,h(r,g.path))===i){var y=r.projectStatus.get(_);if(y)switch(y.type){case e.UpToDateStatusType.UpToDate:if(c&t.DeclarationOutputUnchanged){g.prepend?r.projectStatus.set(_,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:y.oldestOutputFileName,newerProjectName:n}):y.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:c&t.DeclarationOutputUnchanged||r.projectStatus.set(_,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:y.type===e.UpToDateStatusType.OutOfDateWithPrepend?y.outOfDateOutputFileName:y.oldestOutputFileName,newerProjectName:n});break;case e.UpToDateStatusType.UpstreamBlocked:m(r,h(r,y.upstreamProjectName))===i&&T(r,_)}k(r,_,e.ConfigFileProgramReloadLevel.None);break}}}}}function J(t,r,n,i){var a=D(t,r,i);if(!a)return e.ExitStatus.InvalidProject_OutputsSkipped;E(t,n);for(var o=!0,s=0;;){var c=w(t,a,o);if(!c)break;o=!1,c.done(n),t.diagnostics.has(c.projectPath)||s++}return C(t),ne(t,a),function(e,t){if(!e.watchAllProjectsPending)return;e.watchAllProjectsPending=!1;for(var r=0,n=_(t);r<n.length;r++){var i=n[r],a=m(e,i),o=v(e,i,a);W(e,i,a,o),o&&(G(e,i,a,o),Q(e,i,a,o))}}(t,a),l(a)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:a.some((function(e){return t.diagnostics.has(m(t,e))}))?s?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function z(t,r,n){var i=D(t,r,n);if(!i)return e.ExitStatus.InvalidProject_OutputsSkipped;if(l(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,u=i;c<u.length;c++){var _=u[c],d=m(t,_),p=v(t,_,d);if(void 0!==p)for(var f=0,g=e.getAllProjectOutputs(p,!o.useCaseSensitiveFileNames());f<g.length;f++){var y=g[f];o.fileExists(y)&&(s?s.push(y):(o.deleteFile(y),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),k(t,r,n),S(t)}function K(e,t,r){e.reportFileChangeDetected=!0,U(e,t,r),V(e)}function V(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=x(t),n=w(t,r,!1);n&&(n.done(),t.projectPendingBuild.size)?t.watch&&!t.timerToBuildInvalidatedProject&&V(t):(C(t),ne(t,r))}function W(t,r,n,i){t.watch&&!t.allWatchedConfigFiles.has(n)&&t.allWatchedConfigFiles.set(n,t.watchFile(t.hostWithWatch,r,(function(){K(t,n,e.ConfigFileProgramReloadLevel.Full)}),e.PollingInterval.High,null===i||void 0===i?void 0:i.watchOptions,e.WatchType.ConfigFile,r))}function H(t,r,n){return 0===e.comparePaths(r,n,t.currentDirectory,!t.host.useCaseSensitiveFileNames())}function G(t,r,n,i){t.watch&&e.updateWatchingWildcardDirectories(s(t.allWatchedWildcardDirectories,n),e.createMapFromTemplate(i.configFileSpecs.wildcardDirectories),(function(a,o){return t.watchDirectory(t.hostWithWatch,a,(function(o){var s=g(t,o);s===g(t,a)||!e.hasExtension(s)||e.isSupportedSourceFileName(o,i.options)?!function(t,r,n){if(n.options.noEmit)return!1;if(!e.fileExtensionIs(r,".d.ts")&&(e.fileExtensionIs(r,".ts")||e.fileExtensionIs(r,".tsx")))return!1;var i=n.options.outFile||n.options.out;return!(!i||!H(t,r,i)&&!H(t,r,e.removeFileExtension(i)+".d.ts"))||(!(!n.options.declarationDir||!e.containsPath(n.options.declarationDir,r,t.currentDirectory,!t.host.useCaseSensitiveFileNames()))||(!(!n.options.outDir||!e.containsPath(n.options.outDir,r,t.currentDirectory,!t.host.useCaseSensitiveFileNames()))||!e.forEach(n.fileNames,(function(e){return H(t,r,e)}))))}(t,o,i)?K(t,n,e.ConfigFileProgramReloadLevel.Partial):t.writeLog(o+" is output file"):t.writeLog("Project: "+r+" Detected file add/remove of non supported extension: "+o)}),o,null===i||void 0===i?void 0:i.watchOptions,e.WatchType.WildcardDirectory,r)}))}function Q(t,r,n,i){t.watch&&e.mutateMap(s(t.allWatchedInputFiles,n),e.arrayToMap(i.fileNames,(function(e){return g(t,e)})),{createNewValue:function(a,o){return t.watchFilePath(t.hostWithWatch,o,(function(){return K(t,n,e.ConfigFileProgramReloadLevel.None)}),e.PollingInterval.Low,null===i||void 0===i?void 0:i.watchOptions,a,e.WatchType.SourceFile,r)},onDeleteValue:e.closeFileWatcher})}function X(t,r,n,i,a){var o=f(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),w(o,x(o),!1)},getBuildOrder:function(){return x(o)},getUpToDateStatusOfProject:function(e){var t=h(o,e),r=m(o,t);return L(o,v(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 y(e)?e:void 0})))},close:function(){return function(t){e.clearMap(t.allWatchedConfigFiles,e.closeFileWatcher),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,o([r],n)))}function $(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t.hostWithWatch.onWatchStatusChange&&t.hostWithWatch.onWatchStatusChange(e.createCompilerDiagnostic.apply(void 0,o([r],n)),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;l(r)?(ie(t,r.buildOrder),ee(t,r.circularDiagnostics),n&&(a+=e.getErrorCountForSummary(r.circularDiagnostics))):(r.forEach((function(r){var n=m(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=l,e.getBuildOrderFromAnyBuildOrder=_,e.createBuilderStatusReporter=d,e.createSolutionBuilderHost=function(t,r,n,i,a){void 0===t&&(t=e.sys);var o=p(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=p(t,r,n,i),s=e.createWatchHost(t,a);return e.copyProperties(o,s),o},e.createSolutionBuilder=function(e,t,r){return X(!1,e,t,r)},e.createSolutionBuilderWithWatch=function(e,t,r,n){return X(!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={}))}(d||(d={})),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 e=new Date;return e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+"."+e.getMilliseconds()}}(e.server||(e.server={}))}(d||(d={})),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=e.arrayToSet(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=n,t.loadSafeList=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));return e.createMapFromTemplate(n.config)},t.loadTypesMap=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));if(n.config)return e.createMapFromTemplate(n.config.simpleMap)},t.discoverTypings=function(t,i,a,o,s,c,u,l,_){if(!u||!u.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var d=e.createMap();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=e.arrayToSet(a,e.getDirectoryPath);g.set(o,!0),g.forEach((function(t,r){C(e.combinePaths(r,"package.json"),p),C(e.combinePaths(r,"bower.json"),p),T(e.combinePaths(r,"bower_components"),p),T(e.combinePaths(r,"node_modules"),p)})),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 C(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 T(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={}));var i=214;function a(t,r,n,a){var o=a?"Scope":"Package";switch(r){case 1:return"'"+t+"':: "+o+" name '"+n+"' cannot be empty";case 2:return"'"+t+"':: "+o+" name '"+n+"' should be less than "+i+" characters";case 3:return"'"+t+"':: "+o+" name '"+n+"' cannot start with '.'";case 4:return"'"+t+"':: "+o+" name '"+n+"' cannot start with '_'";case 5:return"'"+t+"':: "+o+" name '"+n+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}t.validatePackageName=function(e){return function e(t,r){if(!t)return 1;if(t.length>i)return 2;if(46===t.charCodeAt(0))return 3;if(95===t.charCodeAt(0))return 4;if(r){var n=/^@([^/]+)\/([^/]+)$/.exec(t);if(n){var a=e(n[1],!1);if(0!==a)return{name:n[1],isScopeName:!0,result:a};var o=e(n[2],!1);return 0!==o?{name:n[2],isScopeName:!1,result:o}:0}}if(encodeURIComponent(t)!==t)return 5;return 0}(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={}))}(d||(d={})),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={})),e.emptyOptions={},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.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={}))}(d||(d={})),function(e){function t(t){switch(t.kind){case 242:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 156:case 191:case 159:case 158:case 281:case 282:case 161:case 160:case 162:case 163:case 164:case 244:case 201:case 202:case 280:case 273:return 1;case 155:case 246:case 247:case 173:return 2;case 322:return void 0===t.name?3:2;case 284:case 245:return 3;case 249:return e.isAmbientModule(t)?5:1===e.getModuleInstanceState(t)?5:4;case 248:case 257:case 258:case 253:case 254:case 259:case 260:return 7;case 290:return 5}return 7}function r(t){for(;153===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?u(t):c(t);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&r(o.parent)&&n(o.parent)===o}function c(e){return d(e)?e.parent:e}function u(e){return d(e)||p(e)?e.parent:e}function l(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isBreakOrContinueStatement))||void 0===r?void 0:r.label)===t}function _(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isLabeledStatement))||void 0===r?void 0:r.label)===t}function d(t){var r;return(null===(r=e.tryCast(t.parent,e.isPropertyAccessExpression))||void 0===r?void 0:r.name)===t}function p(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 290===(n=F(n)).kind?1:259===n.parent.kind||265===n.parent.kind||258===n.parent.kind||255===n.parent.kind||e.isImportEqualsDeclaration(n.parent)&&n===n.parent.name?7:r(n)?function(t){var r=153===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&253===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(n.parent):function(t){e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent);switch(t.kind){case 104:return!e.isExpressionNode(t);case 183:return!0}switch(t.parent.kind){case 169:return!0;case 188:return!t.parent.isTypeOf;case 216:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(153===t.parent.kind){for(;t.parent&&153===t.parent.kind;)t=t.parent;r=t.right===e}return 169===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(194===t.parent.kind){for(;t.parent&&194===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&216===t.parent.kind&&279===t.parent.parent.kind){var n=t.parent.parent.parent;return 245===n.kind&&113===t.parent.parent.token||246===n.kind&&90===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=c,e.climbPastPropertyOrElementAccess=u,e.getTargetLabel=function(e,t){for(;e;){if(238===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=l,e.isLabelOfLabeledStatement=_,e.isLabelName=function(e){return _(e)||l(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=d,e.isArgumentExpressionOfElementAccess=p,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 159:case 158:case 281:case 284:case 161:case 160:case 163:case 164:case 249:return e.getNameOfDeclaration(t.parent)===t;case 195:return t.parent.argumentExpression===t;case 154:return!0;case 187:return 185===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 290:case 161:case 160:case 244:case 201:case 163:case 164:case 245:case 246:case 248:case 249:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 290:return e.isExternalModule(r)?"module":"script";case 249:return"module";case 245:case 214:return"class";case 246:return"interface";case 247:case 315:case 322:return"type";case 248:return"enum";case 242:return c(r);case 191:return c(e.getRootDeclaration(r));case 202:case 244:case 201:return"function";case 163:return"getter";case 164:return"setter";case 161:case 160:return"method";case 281:var n=r.initializer;return e.isFunctionLike(n)?"method":"property";case 159:case 158:case 282:case 283:return"property";case 167:return"index";case 166:return"construct";case 165:return"call";case 162:return"constructor";case 155:return"type parameter";case 284:return"enum member";case 156:return e.hasModifier(r,92)?"property":"parameter";case 253:case 258:case 263:case 256:case 262:return"alias";case 209: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 75:return e.isImportClause(r.parent)?"alias":"";case 259: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 104:return!0;case 75:return e.identifierIsThisKeyword(t)&&156===t.parent.kind;default:return!1}};var f=/^\/\/\/\s*</;function g(e,t){return y(e.pos,e.end,t)}function m(e,t){return e.pos<t&&t<e.end}function y(e,t,r){return e<=r.pos&&t>=r.end}function v(e,t,r,n){return Math.max(e,r)<Math.min(t,n)}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)&&g(r,t)}));return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function S(e){return 84===e.kind}function C(e){return 80===e.kind}function T(e){return 94===e.kind}function k(t,r){if(!r)switch(t.kind){case 245:case 214: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(),C);if(n)return n}}(t);case 244:case 201: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(),T);if(n)return n}}(t)}if(e.isNamedDeclaration(t))return t.name}function E(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||84!==t.kind)?e.contains(n.modifiers,t):80===t.kind?e.isClassDeclaration(n)||e.isClassExpression(t):94===t.kind?e.isFunctionDeclaration(n)||e.isFunctionExpression(t):114===t.kind?e.isInterfaceDeclaration(n):88===t.kind?e.isEnumDeclaration(n):145===t.kind?e.isTypeAliasDeclaration(n):136===t.kind||135===t.kind?e.isModuleDeclaration(n):96===t.kind?e.isImportEqualsDeclaration(n):131===t.kind?e.isGetAccessorDeclaration(n):142===t.kind&&e.isSetAccessorDeclaration(n))&&(a=k(n,r)))return a;if((109===t.kind||81===t.kind||115===t.kind)&&e.isVariableDeclarationList(n)&&1===n.declarations.length){var i=n.declarations[0];if(e.isIdentifier(i.name))return i.name}if(145===t.kind){if(e.isImportClause(n)&&n.isTypeOnly)if(a=E(n.parent,r))return a;if(e.isExportDeclaration(n)&&n.isTypeOnly)if(a=N(n,r))return a}if(123===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(96===t.kind&&e.isImportDeclaration(n)&&(a=E(n,r)))return a;if(89===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(139===t.kind&&e.isExternalModuleReference(n))return n.expression;if(149===t.kind&&(e.isImportDeclaration(n)||e.isExportDeclaration(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((90===t.kind||113===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(90===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(132===t.kind&&e.isInferTypeNode(n))return n.typeParameter.name;if(97===t.kind&&e.isTypeParameterDeclaration(n)&&e.isMappedTypeNode(n.parent))return n.name;if(134===t.kind&&e.isTypeOperatorNode(n)&&134===n.operator&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(138===t.kind&&e.isTypeOperatorNode(n)&&138===n.operator&&e.isArrayTypeNode(n.type)&&e.isTypeReferenceNode(n.type.elementType))return n.type.elementType.typeName;if(!r){if((99===t.kind&&e.isNewExpression(n)||110===t.kind&&e.isVoidExpression(n)||108===t.kind&&e.isTypeOfExpression(n)||127===t.kind&&e.isAwaitExpression(n)||121===t.kind&&e.isYieldExpression(n)||85===t.kind&&e.isDeleteExpression(n))&&n.expression)return e.skipOuterExpressions(n.expression);if((97===t.kind||98===t.kind)&&e.isBinaryExpression(n)&&n.operatorToken===t)return e.skipOuterExpressions(n.right);if(123===t.kind&&e.isAsExpression(n)&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(97===t.kind&&e.isForInStatement(n)||152===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;for(var s=o.getChildren(r),c=0;c<s.length;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||290===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),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(e,t,r){for(var n=e.kind,i=0;;){var a=M(e.getFullStart(),r);if(!a)return;if((e=a).kind===t){if(0===i)return e;i--}else e.kind===n&&i++}}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 K(t,r){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 75:case 10:case 8:case 9:case 106:case 91:case 108:case 90:case 134:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=M(n.getFullStart(),r)}}function V(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=V(e,t,void 0);return!!n&&r===f.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 Q(e,t){return{span:e,newText:t}}function X(e){return 145===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),getProbableSymlinks:e.maybeBind(r,r.getProbableSymlinks)||function(){return t.getProbableSymlinks()},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)}}}function Z(e,t){return s(s({},Y(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function $(t,r,n,i,a){return e.createImportDeclaration(void 0,void 0,t||r?e.createImportClause(t,r&&r.length?e.createNamedImports(r):void 0,a):void 0,"string"===typeof n?ee(n,i):n)}function ee(t,r){return e.createLiteral(t,0===r)}function te(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function re(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,(function(t){var r=e.getNameOfDeclaration(t);return r&&75===r.kind?r.escapedText:void 0}))}function ne(t,r,n,i){var a=e.createMap();return function t(o){if(!(96&o.flags)||!e.addToSeen(a,e.getSymbolId(o)))return;return e.firstDefined(o.declarations,(function(a){return e.firstDefined(e.getAllSuperTypeNodes(a),(function(a){var o=n.getTypeAtLocation(a),s=o&&o.symbol&&n.getPropertyOfType(o,r);return o&&s&&(e.firstDefined(n.getRootSymbols(s),i)||t(o.symbol))}))}))}(t)}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&&156===e.declarations[0].kind}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=g,e.rangeContainsRangeExclusive=function(e,t){return m(e,t.pos)&&m(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=m,e.startEndContainsRange=y,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return v(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return v(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=v,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),r<t.end||!function t(r,n){if(void 0===r||e.nodeIsMissing(r))return!1;switch(r.kind){case 245:case 246:case 248:case 193:case 189:case 173:case 223:case 250:case 251:case 257:case 261:return h(r,19,n);case 280:return t(r.block,n);case 197:if(!r.arguments)return!0;case 196:case 200:case 182:return h(r,21,n);case 170:case 171:return t(r.type,n);case 162:case 163:case 164:case 244:case 201:case 161:case 160:case 166:case 165:case 202:return r.body?t(r.body,n):r.type?t(r.type,n):b(r,21,n);case 249:return!!r.body&&t(r.body,n);case 227:return r.elseStatement?t(r.elseStatement,n):t(r.thenStatement,n);case 226:return t(r.expression,n)||b(r,26,n);case 192:case 190:case 195:case 154:case 175:return h(r,23,n);case 167:return r.type?t(r.type,n):b(r,23,n);case 277:case 278:return!1;case 230:case 231:case 232:case 229:return t(r.statement,n);case 228:return b(r,111,n)?h(r,21,n):t(r.statement,n);case 172:return t(r.exprName,n);case 204:case 203:case 205:case 212:case 213:return t(r.expression,n);case 198:return t(r.template,n);case 211:var i=e.lastOrUndefined(r.templateSpans);return t(i,n);case 221:return e.nodeIsPresent(r.literal);case 260:case 254:return e.nodeIsPresent(r.moduleSpecifier);case 207:return t(r.operand,n);case 209:return t(r.right,n);case 210:return t(r.whenFalse,n);default:return!0}}(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.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&&276===r.parent.kind||(!(!r||19!==r.kind||276!==r.parent.kind)||29===r.kind&&269===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.findPrecedingMatchingToken=J,e.removeOptionality=z,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=K(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=K,e.isInComment=V,e.hasDocComment=function(t,r){var n=w(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t){var r=e.isDeclaration(t)?e.getCombinedModifierFlags(t):0,n=[];return 8&r&&n.push("private"),16&r&&n.push("protected"),4&r&&n.push("public"),32&r&&n.push("static"),128&r&&n.push("abstract"),1&r&&n.push("export"),8388608&t.flags&&n.push("declare"),259===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 169===t.kind||196===t.kind?t.typeArguments:e.isFunctionLike(t)||245===t.kind||246===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<=74},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 119:case 117:case 118: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(192===t.kind||193===t.kind){if(209===t.parent.kind&&t.parent.left===t&&62===t.parent.operatorToken.kind)return!0;if(232===t.parent.kind&&t.parent.initializer===t)return!0;if(e(281===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 Q(e.createTextSpan(t,r),n)},e.createTextChange=Q,e.typeKeywords=[125,124,151,128,91,134,137,100,140,141,138,143,144,106,110,146,147,148],e.isTypeKeyword=function(t){return e.contains(e.typeKeywords,t)},e.isTypeKeywordToken=X,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 154===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=function(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,e.isStringLiteral);return n?te(n,t):1},e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=re(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=re,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.getPropertySymbolsFromBaseTypes=ne,e.isMemberSymbolInBaseType=function(e,t){return ne(e.parent,e.name,t,(function(e){return!0}))||!1},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=225===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableDeclarationStatement:e.isAnyImportSyntax,o=e.findLast(r.statements,(function(e){return a(e)}));o?e.isArray(n)?t.insertNodesAfter(r,o,n):t.insertNodeAfter(r,o,n):e.isArray(n)?t.insertNodesAtTopOfFile(r,n,i):t.insertNodeAtTopOfFile(r,n,i)},e.getTypeKeywordOfTypeOnlyImport=function(t,r){return e.Debug.assert(t.isTypeOnly),e.cast(t.getChildAt(0,r),X)},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.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(pe()),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;var de="\r\n";function pe(){return ue("\n",e.SymbolDisplayPartKind.lineBreak)}function fe(e){try{return e(se),se.displayParts()}finally{se.clear()}}function ge(t,r){return e.ensureScriptKind(t,r&&r.getScriptKind&&r.getScriptKind(t))}function me(e){return 0!==(33554432&e.flags)}function ye(e){return 0!==(2097152&e.flags)}function ve(e,t){void 0===t&&(t=!0);var r=e&&be(e);return r&&!t&&xe(r),r}function he(t,r,n,i,a){var o;if(void 0===r&&(r=!0),n&&i&&e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent))(c=(s=i.getSymbolAtLocation(t.name))&&n.get(String(e.getSymbolId(s))))&&c.text!==(t.name||t.propertyName).getText()&&(o=e.setOriginalNode(e.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,c,t.initializer),t));else if(n&&i&&e.isIdentifier(t)){var s,c;(c=(s=i.getSymbolAtLocation(t))&&n.get(String(e.getSymbolId(s))))&&(o=e.setOriginalNode(e.createIdentifier(c.text),t))}return o||(o=be(t,n,i,a)),o&&!r&&xe(o),a&&o&&a(t,o),o}function be(t,r,n,i){var a=r||n||i?e.visitEachChild(t,(function(e){return he(e,!0,r,n,i)}),e.nullTransformationContext):e.visitEachChild(t,ve,e.nullTransformationContext);if(a===t){var o=e.getSynthesizedClone(t);return e.isStringLiteral(o)?o.textSourceNode=t:e.isNumericLiteral(o)&&(o.numericLiteralFlags=t.numericLiteralFlags),e.setTextRange(o,t)}return a.parent=void 0,a}function xe(e){De(e),Se(e)}function De(e){Ce(e,512,Te)}function Se(t){Ce(t,1024,e.getLastChild)}function Ce(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&Ce(i,r,n)}function Te(e){return e.forEachChild((function(e){return e}))}function ke(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,Ae(r,n,i,a,e.addSyntheticLeadingComment))}function Ee(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,Ae(r,n,i,a,e.addSyntheticTrailingComment))}function Ne(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,Ae(r,n,i,a,e.addSyntheticLeadingComment))}function Ae(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 Fe(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 Pe(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function we(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Ie(e){return 165===e||166===e||167===e||158===e||160===e}function Oe(e){return 244===e||162===e||161===e||163===e||164===e}function Me(e){return 249===e}function Le(e){return 225===e||226===e||228===e||233===e||234===e||235===e||239===e||241===e||159===e||247===e||254===e||253===e||260===e||252===e||259===e}function Re(e,t){return je(e,e.fileExists,t)}function Be(e){try{return e()}catch(t){return}}function je(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return Be((function(){return t&&t.apply(e,r)}))}function Je(t,r){if(r.readFile){var n=r.readFile(t);if(n){var i=function(e){try{return JSON.parse(e)}catch(t){return}}(n);if(!i)return!1;for(var a={},o=0,c=["dependencies","devDependencies","optionalDependencies","peerDependencies"];o<c.length;o++){var u=c[o],l=i[u];if(l){var _=e.createMap();for(var d in l)_.set(d,l[d]);a[u]=_}}var p=[[1,a.dependencies],[2,a.devDependencies],[8,a.optionalDependencies],[4,a.peerDependencies]];return s(s({},a),{fileName:t,get:f,has:function(e,t){return!!f(e,t)}})}}function f(e,t){void 0===t&&(t=15);for(var r=0,n=p;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 ze(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function Ue(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?void 0:t.newLineCharacter)||(null===(r=e.getNewLine)||void 0===r?void 0:r.call(e))||de},e.lineBreakPart=pe,e.mapToDisplayParts=fe,e.typeToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),fe((function(i){e.writeType(t,r,17408|n,i)}))},e.symbolToDisplayParts=function(e,t,r,n,i){return void 0===i&&(i=0),fe((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,fe((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.scriptKindIs=function(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a=ge(t,r);return e.some(n,(function(e){return e===a}))},e.getScriptKind=ge,e.getSymbolTarget=function(t,r){for(var n=t;ye(n)||me(n)&&n.target;)n=me(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=ve,e.getSynthesizedDeepCloneWithRenames=he,e.getSynthesizedDeepClones=function(t,r){return void 0===r&&(r=!0),t&&e.createNodeArray(t.map((function(e){return ve(e,r)})),t.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=xe,e.suppressLeadingTrivia=De,e.suppressTrailingTrivia=Se,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)?Ne(e,t,r):ke(e,t,r),Ee(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=Fe(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=ke,e.copyTrailingComments=Ee,e.copyTrailingAsLeadingComments=Ne,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 197:return t.getContextualType(r);case 209:var n=r,i=n.left,a=n.operatorToken,o=n.right;return Pe(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 277:return r.expression===e?we(r,t):void 0;default:return t.getContextualType(e)}},e.quote=function(t,r){var n=r.quotePreference||"auto",i=JSON.stringify(t);switch(n){case"auto":case"double":return i;case"single":return"'"+e.stripQuotes(i).replace("'","\\'").replace('\\"','"')+"'";default:return e.Debug.assertNever(n)}},e.isEqualityOperatorKind=Pe,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 211:case 198:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=we,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,void 0,{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=Ie,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=Oe,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Me,e.syntaxRequiresTrailingSemicolonOrASI=Le,e.syntaxMayBeASICandidate=e.or(Ie,Oe,Me,Le),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(Ie(t.kind)){if(n&&27===n.kind)return!1}else if(Me(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(Oe(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!Le(t.kind))return!1;if(228===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(Le(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 je(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return je(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=Re,e.tryDirectoryExists=function(t,r){return Be((function(){return e.directoryProbablyExists(r,t)}))||!1},e.tryAndIgnoreErrors=Be,e.tryIOAndConsumeErrors=je,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");Re(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 Re(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=Je(i,r);a&&n.push(a)}})),n},e.createPackageJsonInfo=Je,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=ze,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,ze)}},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],ze);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"export="===t.escapedName||"default"===t.escapedName?e.firstDefined(t.declarations,(function(t){return e.isExportAssignment(t)&&e.isIdentifier(t.expression)?t.expression.text:void 0}))||e.codefix.moduleSymbolToValidIdentifier(e.Debug.checkDefined(t.parent),r):t.name},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!Ue(e)},e.isNonGlobalDeclaration=Ue}(d||(d={})),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:75===l&&v++;break;case 31:v>0&&v--;break;case 125:case 143:case 140:case 128:case 144:v>0&&!c&&(u=75);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?u=75:e.isKeyword(l)&&e.isKeyword(u)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 131:case 142:case 129:case 120:return!0;default:return!1}}(l,u)&&(u=75)}}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([75,10,8,9,13,104,45,46,21,23,19,106,91],(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 98:case 97:case 123:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 73:case 72:case 74:case 69:case 70:case 71:case 63:case 64:case 65:case 67:case 68:case 62:case 27:case 60:return!0;default:return!1}}(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<=74)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 75:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 249:case 245:case 246:case 244:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function c(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var l=t.getSymbolAtLocation(u),_=l&&function t(r,n,i){var a=r.getFlags();return 0===(2885600&a)?void 0:32&a?11:384&a?12:524288&a?16:1536&a?4&n||1&n&&function(t){return e.some(t.declarations,(function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)}))}(r)?14:void 0:2097152&a?t(i.getAliasedSymbol(r),n,i):2&n?64&a?13:262144&a?15:void 0:void 0}(l,e.getMeaningFromLocation(u),t);_&&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)}(u.getStart(n),u.getEnd(),_)}u.forEachChild(c)}})),{spans:s,endOfLineState:0}}function c(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(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:c(r[i+2])});return n}function l(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 o.jsDoc.parent=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 317:a(i);break;case 321:p(i),t=i.end;break;case 320:case 318: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*)(=)(\s*)('[^']+'|"[^"]+")/gim,a=r.text.substr(t,n),o=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im.exec(a);if(!o)return!1;if(!o[3]||!(o[3]in e.commentPragmas))return!1;var s=t;d(s,o[1].length),l(s+=o[1].length,o[2].length,10),l(s+=o[2].length,o[3].length,21),s+=o[3].length;var c=o[4],u=s;for(;;){var _=i.exec(c);if(!_)break;var p=s+_.index;p>u&&(d(u,p-u),u=p),l(u,_[1].length,22),u+=_[1].length,_[2].length&&(d(u,_[2].length),u+=_[2].length),l(u,_[3].length,5),u+=_[3].length,_[4].length&&(d(u,_[4].length),u+=_[4].length),l(u,_[5].length,24),u+=_[5].length}(s+=o[4].length)>u&&d(u,s-u);o[5]&&(l(s,o[5].length,10),s+=o[5].length);var f=t+n;s<f&&d(s,f-s);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 268:if(e.parent.tagName===e)return 19;break;case 269:if(e.parent.tagName===e)return 20;break;case 267:if(e.parent.tagName===e)return 21;break;case 273: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&&(242===n.kind||159===n.kind||156===n.kind||273===n.kind))return 5;if(209===n.kind||207===n.kind||208===n.kind||210===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&273===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(75===t){if(r)switch(r.parent.kind){case 245:return r.parent.name===r?11:void 0;case 155:return r.parent.name===r?15:void 0;case 246:return r.parent.name===r?13:void 0;case 248:return r.parent.name===r?12:void 0;case 249:return r.parent.name===r?14:void 0;case 156: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 u(s(e,t,r,n,i))},e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=function(e,t,r){return u(l(e,t,r))},e.getEncodedSyntacticClassifications=l}(d||(d={})),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 s(t,r,n,i,a,o){var s,l,_=r.parent;switch(_.kind){case 187:switch(_.parent.kind){case 169:return{kind:2,types:u(i.getTypeArgumentConstraint(_)),isNewIdentifier:!1};case 185:return c(i.getTypeFromTypeNode(_.parent.objectType));case 188:return{kind:0,paths:p(t,r,a,o,i)};case 178:if(!e.isTypeReferenceNode(_.parent.parent))return;var d=(s=_.parent,l=_,e.mapDefined(s.types,(function(t){return t!==l&&e.isLiteralTypeNode(t)&&e.isStringLiteral(t.literal)?t.literal.text:void 0})));return{kind:2,types:u(i.getTypeArgumentConstraint(_.parent)).filter((function(t){return!e.contains(d,t.value)})),isNewIdentifier:!1};default:return}case 281:return e.isObjectLiteralExpression(_.parent)&&_.name===r?c(i.getContextualType(_.parent)):v();case 195:var f=_,g=f.expression,m=f.argumentExpression;return r===m?c(i.getTypeAtLocation(g)):void 0;case 196:case 197:if(!e.isRequireCall(_,!1)&&!e.isImportCall(_)){var y=e.SignatureHelp.getArgumentInfoForCompletions(r,n,t);return y?function(t,r){var n=!1,i=e.createMap(),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}}(y,i):v()}case 254:case 260:case 265:return{kind:0,paths:p(t,r,a,o,i)};default:return v()}function v(){return{kind:2,types:u(e.getContextualTypeFromParent(r,i)),isNewIdentifier:!1}}}function c(t){return t&&{kind:1,symbols:t.getApparentProperties().filter((function(t){return!e.isPrivateIdentifierPropertyDeclaration(e.isTransientSymbol(t)&&t.syntheticOrigin?t.syntheticOrigin.valueDeclaration:t.valueDeclaration)})),hasIndexSignature:e.hasIndexSignature(t)}}function u(t,r){return void 0===r&&(r=e.createMap()),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("\\")),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);return n.map((function(e){return{name:e.name,kind:e.kind,extension:e.extension,span:i}}))}function p(t,r,n,i,a){return d(r.text,r.getStart(t)+1,function(t,r,n,i,a){var s=e.normalizeSlashes(r.text),c=t.path,u=e.getDirectoryPath(c);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}(s)||!n.baseUrl&&(e.isRootedDiskPath(s)||e.isUrl(s))?function(t,r,n,i,a){var s=f(n);return n.rootDirs?function(t,r,n,i,a,s,c){var u=a.project||s.getCurrentDirectory(),l=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),_=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(o(t.map((function(t){return e.combinePaths(t,a)})),[n]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,u,n,l);return e.flatMap(_,(function(e){return m(r,e,i,s,c)}))}(n.rootDirs,t,r,s,n,i,a):m(t,r,s,i,a)}(s,u,n,i,c):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 C=function(e){c.some((function(t){return t.name===e}))||(S=!0,c.push(l(e,"external module name",void 0)))},T=0,k=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=u[c],_=s[l];if(_)for(var d in _)_.hasOwnProperty(d)&&!e.startsWith(d,"@types/")&&n.push(d)}return n}(i,r);T<k.length;T++){var E=k[T];C(E)}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}(s,u,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=e.createMap(),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 C=S[D],T=e.getBaseFileName(e.normalizePath(C));"@types"!==T&&o.push(_(T))}var k=e.findPackageJson(d,i);if(k){var E=e.readJson(k,i).typesVersions;if("object"===typeof E){var N=e.getPackageJsonTypesVersionsPaths(E),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,s){if(!e.endsWith(t,"*"))return e.stringContains(t,"*")?e.emptyArray:d(t);var c=t.slice(0,t.length-1),u=e.tryRemovePrefix(n,c);return void 0===u?d(c):e.flatMap(r,(function(t){return function(t,r,n,i,a){if(!a.readDirectory)return;var s=e.hasZeroOrOneAsteriskCharacter(n)?e.tryParsePattern(n):void 0;if(!s)return;var c=e.resolvePath(s.prefix),u=e.hasTrailingDirectorySeparator(s.prefix)?c:e.getDirectoryPath(c),d=e.hasTrailingDirectorySeparator(s.prefix)?"":e.getBaseFileName(c),p=S(t),f=p?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0,g=p?e.combinePaths(u,d+f):u,m=e.normalizePath(s.suffix),y=e.normalizePath(e.combinePaths(r,g)),v=p?y:e.ensureTrailingDirectorySeparator(y)+d,h=m?"**/*":"./*",b=e.mapDefined(e.tryReadDirectory(a,y,i,void 0,[h]),(function(t){var r=e.tryGetExtensionFromPath(t),n=D(t);return void 0===n?void 0:l(e.removeFileExtension(n),"script",r)})),x=e.mapDefined(e.tryGetDirectories(a,y).map((function(t){return e.combinePaths(y,t)})),(function(e){var t=D(e);return void 0===t?void 0:_(t)}));return o(b,x);function D(t){var r,n,i,a=(r=e.normalizePath(t),n=v,i=m,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)}}(u,i,t,a,s)}));function d(t){return e.startsWith(t,n)?[_(t)]:e.emptyArray}}function b(t,r,n,i,a,o){void 0===o&&(o=[]);for(var s=e.createMap(),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,o,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;switch(r.kind){case 0:return n(r.paths);case 1:var u=[];return t.getCompletionEntriesFromSymbols(r.symbols,u,i,a,a,o,99,s,4,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,entries:u};case 2:u=r.types.map((function(t){return{name:t.value,kindModifiers:"",kind:"string",sortText:"0",replacementSpan:e.getReplacementSpanForContextToken(i)}}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,entries:u};default:return e.Debug.assertNever(r)}}(p=s(r,a,i,o,c,u),a,r,o,l,_)}},r.getStringLiteralCompletionDetails=function(r,n,a,o,c,u,l,_){if(o&&e.isStringLiteralLike(o)){var d=s(n,o,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,o,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={}))}(d||(d={})),function(e){!function(t){var r,n,i,a,o,s;function c(e){return!!(e&&4&e.kind)}function u(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function l(t,r){return e.isSourceFileJS(t)&&!e.isCheckJsEnabledForFile(t,r)}function _(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function d(t,r){return"object"===typeof t?e.pseudoBigIntToString(t)+"n":e.isString(t)?e.quote(t,r):JSON.stringify(t)}function p(e,t){return{name:d(e,t),kind:"string",kindModifiers:"",sortText:r.LocationPriority}}function f(t,r,n,i,a,o,s,u,l,_,d,p,f){var v,h=e.getReplacementSpanForContextToken(n),b=l&&function(e){return!!(16&e.kind)}(l),x=l&&function(e){return!!(2&e.kind)}(l)||u;if(l&&function(e){return!!(1&e.kind)}(l))v=u?"this"+(b?"?.":"")+"["+g(s,f)+"]":"this"+(b?"?.":".")+s;else if((x||b)&&d){v=x?u?"["+g(s,f)+"]":"["+s+"]":s,(b||d.questionDotToken)&&(v="?."+v);var D=e.findChildOfKind(d,24,a)||e.findChildOfKind(d,28,a);if(!D)return;var S=e.startsWith(s,d.name.text)?d.name.end:D.end;h=e.createTextSpanFromBounds(D.getStart(a),S)}if(p&&(void 0===v&&(v=s),v="{"+v+"}","boolean"!==typeof p&&(h=e.createTextSpanFromNode(p,a))),l&&function(e){return!!(8&e.kind)}(l)&&d){void 0===v&&(v=s);var C=e.findPrecedingToken(d.pos,a),T="";C&&e.positionIsASICandidate(C.end,C.parent,a)&&(T=";"),T+="(await "+d.expression.getText()+")",v=u?""+T+v:T+(b?"?.":".")+v,h=e.createTextSpanFromBounds(d.getStart(a),d.end)}if(void 0===v||f.includeCompletionsWithInsertText)return{name:s,kind:e.SymbolDisplay.getSymbolKind(o,t,i),kindModifiers:e.SymbolDisplay.getSymbolModifiers(t),sortText:r,source:y(l),hasAction:l&&c(l)||void 0,isRecommended:m(t,_,o)||void 0,insertText:v,replacementSpan:h}}function g(t,r){return/^\d+$/.test(t)?t:e.quote(t,r)}function m(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}function y(t){return c(t)?e.stripQuotes(t.moduleSymbol.name):1===(null===t||void 0===t?void 0:t.kind)?n.ThisProperty:void 0}function v(t,n,i,a,o,s,c,u,l,_,d,p,g,m,y,v){for(var h=e.timestamp(),b=e.createMap(),x=0,D=t;x<D.length;x++){var S=D[x],C=y?y[e.getSymbolId(S)]:void 0,k=T(S,c,C,l,!!p);if(k){var E=k.name,N=k.needsConvertPropertyAccess;if(!b.get(E)){var A=f(S,v&&v[e.getSymbolId(S)]||r.LocationPriority,i,a,o,s,E,N,C,m,d,g,_);if(A){var F=!C&&!(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 h(t,r,n,i,a,o,s){var c=t.getCompilerOptions(),u=C(t,r,n,l(n,c),i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},a,o);if(!u)return{type:"none"};if(0!==u.kind)return{type:"request",request:u};var _=u.symbols,p=u.literals,f=u.location,g=u.completionKind,m=u.symbolToOriginInfoMap,v=u.previousToken,h=u.isJsxInitializer,b=u.isTypeOnlyLocation,x=e.find(p,(function(e){return d(e,s)===a.name}));return void 0!==x?{type:"literal",literal:x}:e.firstDefined(_,(function(t){var r=m[e.getSymbolId(t)],n=T(t,c.target,r,g,u.isJsxIdentifierExpected);return n&&n.name===a.name&&y(r)===a.source?{type:"symbol",symbol:t,location:f,symbolToOriginInfoMap:m,previousToken:v,isJsxInitializer:h,isTypeOnlyLocation:b}:void 0}))||{type:"none"}}function b(t,r,n){return D(t,"",r,[e.displayPart(t,n)])}function x(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 D(t.name,e.SymbolDisplay.getSymbolModifiers(t),_,u,l,d,o,s)}function D(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 S(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 290===e.kind}))}(t.parent)?t:S(t.parent,r,n))}function C(t,n,i,a,o,s,c,u){var l=t.getTypeChecker(),_=e.timestamp(),d=e.getTokenAtPosition(i,o);n("getCompletionData: Get current token: "+(e.timestamp()-_)),_=e.timestamp();var p=e.isInComment(i,o,d);n("getCompletionData: Is inside comment: "+(e.timestamp()-_));var f=!1,g=!1;if(p){if(e.hasDocComment(i,o)){if(64===i.text.charCodeAt(o-1))return{kind:1};var m=e.getLineStartPositionForPosition(o,i);if(!i.text.substring(m,o).match(/[^\*|\s|(/\*\*)]/))return{kind:2}}var y=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)}(d,o);if(y){if(y.tagName.pos<=o&&o<=y.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 317:case 323:case 318:case 320:case 322:return!0;default:return!1}}(y)&&y.typeExpression&&294===y.typeExpression.kind&&((d=e.getTokenAtPosition(i,o))&&(e.isDeclarationName(d)||323===d.parent.kind&&d.parent.name===d)||(f=le(y.typeExpression))),!f&&e.isJSDocParameterTag(y)&&(e.nodeIsMissing(y.name)||y.name.pos<=o&&o<=y.name.end))return{kind:3,tag:y}}if(!f)return void n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}_=e.timestamp();var v=e.findPrecedingToken(o,i,void 0);n("getCompletionData: Get previous token 1: "+(e.timestamp()-_));var h=v;if(h&&o<=h.end&&(e.isIdentifierOrPrivateIdentifier(h)||e.isKeyword(h.kind))){var b=e.timestamp();h=e.findPrecedingToken(h.getFullStart(),i,void 0),n("getCompletionData: Get previous token 2: "+(e.timestamp()-b))}var x,D=d,C=!1,T=!1,k=!1,E=!1,N=!1,P=!1,R=e.getTouchingPropertyName(i,o);if(h){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 242===n||function(t){return 243===t.parent.kind&&!e.isPossiblyTypeArgumentPosition(t,i,l)}(t)||225===n||248===n||oe(n)||246===n||190===n||247===n||e.isClassLike(r)&&!!r.typeParameters&&r.typeParameters.end>=t.pos;case 24:return 190===n;case 58:return 191===n;case 22:return 190===n;case 20:return 280===n||oe(n);case 18:return 248===n;case 29:return 245===n||214===n||246===n||247===n||e.isFunctionLikeKind(n);case 120:return 159===n&&!e.isClassLike(r.parent);case 25:return 156===n||!!r.parent&&190===r.parent.kind;case 119:case 117:case 118:return 156===n&&!e.isConstructorDeclaration(r.parent);case 123:return 258===n||263===n||256===n;case 131:case 142:return!M(t);case 80:case 88:case 114:case 94:case 109:case 96:case 115:case 81:case 145:return!0;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(F(w(t))&&M(t))return!1;if(ae(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(w(t))||le(t)))return!1;switch(w(t)){case 122:case 80:case 81:case 130:case 88:case 94:case 114:case 115:case 117:case 118:case 119:case 120:case 109:return!0;case 126:return e.isPropertyDeclaration(t.parent)}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==v||o>v.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(268===e.parent.kind)return 268!==R.parent.kind;if(269===e.parent.kind||267===e.parent.kind)return!!e.parent.parent&&266===e.parent.parent.kind}return!1}(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a}(h))return void n("Returning an empty list because completion was requested in an invalid position.");var B=h.parent;if(24===h.kind||28===h.kind)switch(C=24===h.kind,T=28===h.kind,B.kind){case 194:if((D=(x=B).expression).end===h.pos&&e.isCallExpression(D)&&D.getChildCount(i)&&21!==e.last(D.getChildren(i)).kind)return;break;case 153:D=B.left;break;case 249:D=B.name;break;case 188:case 219:D=B;break;default:return}else if(1===i.languageVariant){if(B&&194===B.kind&&(h=B,B=B.parent),d.parent===R)switch(d.kind){case 31:266!==d.parent.kind&&268!==d.parent.kind||(R=d);break;case 43:267===d.parent.kind&&(R=d)}switch(B.kind){case 269:43===h.kind&&(E=!0,R=h);break;case 209:if(!L(B))break;case 267:case 266:case 268:P=!0,29===h.kind&&(k=!0,R=h);break;case 273:switch(v.kind){case 62:N=!0;break;case 75:P=!0,B!==v.parent&&!B.initializer&&e.findChildOfKind(B,62,i)&&(N=v)}}}}var j=e.timestamp(),J=5,z=!1,U=0,K=[],V=[],q=[],W=u.getImportSuggestionsCache&&u.getImportSuggestionsCache(),H=ne();if(C||T)!function(){J=2;var t=e.isLiteralImportTypeNode(D),r=f||t&&!D.isTypeOf||e.isPartOfTypeNode(D.parent)||e.isPossiblyTypeArgumentPosition(h,i,l),n=e.isInRightSideOfInternalImportEqualsDeclaration(D);if(e.isEntityName(D)||t){var a=e.isModuleDeclaration(D.parent);a&&(z=!0);var o=l.getSymbolAtLocation(D);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?D:D.parent,e.name)},_=function(e){return ie(e)},d=a?function(e){return!!(1920&e.flags)&&!e.declarations.every((function(e){return e.parent===D.parent}))}:n?function(e){return _(e)||u(e)}:r?_:u,p=0,g=c;p<g.length;p++){var m=g[p];d(m)&&K.push(m)}if(!r&&o.declarations&&o.declarations.some((function(e){return 290!==e.kind&&249!==e.kind&&248!==e.kind}))){var y=l.getTypeOfSymbolAtLocation(o,D).getNonOptionalType(),v=!1;if(y.isNullableType())((x=C&&!T&&!1!==s.includeAutomaticOptionalChainCompletions)||T)&&(y=y.getNonNullableType(),x&&(v=!0));ee(y,!!(32768&D.flags),v)}return}}if(e.isMetaProperty(D)&&(99===D.keywordToken||96===D.keywordToken)&&h===D.getChildAt(1)){var b=99===D.keywordToken?"target":"meta";return void K.push(l.createSymbol(4,e.escapeLeadingUnderscores(b)))}if(!r){var x;y=l.getTypeAtLocation(D).getNonOptionalType(),v=!1;if(y.isNullableType())((x=C&&!T&&!1!==s.includeAutomaticOptionalChainCompletions)||T)&&(y=y.getNonNullableType(),x&&(v=!0));ee(y,!!(32768&D.flags),v)}}();else if(k){var G=l.getJsxIntrinsicTagNamesAt(R);e.Debug.assertEachIsDefined(G,"getJsxIntrinsicTagNames() should all be defined"),re(),K=G.concat(K),J=3,U=0}else if(E){var Q=h.parent.parent.openingElement.tagName,X=l.getSymbolAtLocation(Q);X&&(K=[X]),J=3,U=0}else if(!re())return;n("getCompletionData: Semantic work: "+(e.timestamp()-j));var Y=v&&function(t,r,n,i){var a=t.parent;switch(t.kind){case 75:return e.getContextualTypeFromParent(t,i);case 62:switch(a.kind){case 242:return i.getContextualType(a.initializer);case 209:return i.getTypeAtLocation(a.left);case 273:return i.getContextualTypeForJsxAttribute(a);default:return}case 99:return i.getContextualType(a);case 78:return e.getSwitchedType(e.cast(a,e.isCaseClause),i);case 18:return e.isJsxExpression(a)&&266!==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)}}(v,o,i,l),Z=e.mapDefined(Y&&(Y.isUnion()?Y.types:[Y]),(function(e){return e.isLiteral()?e.value:void 0})),$=v&&Y&&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)?S(i,t,n):void 0}))}(v,Y,l);return{kind:0,symbols:K,completionKind:J,isInSnippetScope:g,propertyAccessToConvert:x,isNewIdentifierLocation:z,location:R,keywordFilters:U,literals:Z,symbolToOriginInfoMap:V,recommendedCompletion:$,previousToken:v,isJsxInitializer:N,insideJsDocTagTypeExpression:f,symbolToSortTextMap:q,isTypeOnlyLocation:H,isJsxIdentifierExpected:P};function ee(t,r,n){z=!!t.getStringIndexType(),T&&e.some(t.getCallSignatures())&&(z=!0);var i=188===D.kind?D:D.parent;if(a)K.push.apply(K,O(t,l));else for(var o=0,c=t.getApparentProperties();o<c.length;o++){var u=c[o];l.isValidPropertyAccessForCompletions(i,t,u)&&te(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)&&te(u,!0,n)}}}function te(t,r,n){var i=e.firstDefined(t.declarations,(function(t){return e.tryCast(e.getNameOfDeclaration(t),e.isComputedPropertyName)}));if(i){var a=function t(r){return e.isIdentifier(r)?r:e.isPropertyAccessExpression(r)?t(r.expression):void 0}(i.expression),o=a&&l.getSymbolAtLocation(a),c=o&&S(o,h,l);if(c&&!V[e.getSymbolId(c)]){K.push(c);var u=c.parent;V[e.getSymbolId(c)]=u&&e.isExternalModuleSymbol(u)?{kind:d(6),moduleSymbol:u,isDefaultExport:!1}:{kind:d(2)}}else s.includeCompletionsWithInsertText&&(_(t),K.push(t))}else _(t),K.push(t);function _(t){s.includeCompletionsWithInsertText&&(r&&!V[e.getSymbolId(t)]?V[e.getSymbolId(t)]={kind:d(8)}:n&&(V[e.getSymbolId(t)]={kind:16}))}function d(e){return n?16|e:e}}function re(){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 75:return"async"===t.text&&e.isShorthandPropertyAssignment(t.parent)?t.parent.parent:void 0}}return}(h);if(!n)return 0;if(J=0,193===n.kind){var i=l.getContextualType(n),a=i&&l.getContextualType(n,4);if(!i||!a)return 2;z=e.hasIndexSignature(i||a),t=I(i,a,n,l),r=n.properties}else{e.Debug.assert(189===n.kind),z=!1;var o=e.getRootDeclaration(n.parent);if(!e.isVariableLike(o))return e.Debug.fail("Root declaration is not variable-like.");var s=e.hasInitializer(o)||e.hasType(o)||232===o.parent.parent.kind;if(s||156!==o.kind||(e.isExpression(o.parent)?s=!!l.getContextualType(o.parent):161!==o.parent.kind&&164!==o.parent.kind||(s=e.isExpression(o.parent.parent)&&!!l.getContextualType(o.parent.parent))),s){var c=l.getTypeAtLocation(n);if(!c)return 2;var u=e.getContainingClass(n);t=l.getPropertiesOfType(c).filter((function(t){return!(24&e.getDeclarationModifierFlagsFromSymbol(t))||u&&e.contains(c.symbol.declarations,u)})),r=n.elements}}t&&t.length>0&&(K=function(t,r){if(0===r.length)return t;for(var n=e.createMap(),i=e.createUnderscoreEscapedMap(),a=0,o=r;a<o.length;a++){var s=o[a];if((281===s.kind||282===s.kind||191===s.kind||161===s.kind||163===s.kind||164===s.kind||283===s.kind)&&!le(s)){var c=void 0;if(e.isSpreadAssignment(s))se(s,n);else if(e.isBindingElement(s)&&s.propertyName)75===s.propertyName.kind&&(c=s.propertyName.escapedText);else{var u=e.getNameOfDeclaration(s);c=u&&e.isPropertyNameLiteral(u)?e.getEscapedTextOfIdentifierOrLiteral(u):void 0}i.set(c,!0)}}var l=t.filter((function(e){return!i.get(e.escapedName)}));return ue(n,l),l}(t,e.Debug.checkDefined(r)));return ce(),1}()||function(){var t=!h||18!==h.kind&&27!==h.kind?void 0:e.tryCast(h.parent,e.isNamedImportsOrExports);if(!t)return 0;var r=(257===t.kind?t.parent.parent:t.parent).moduleSpecifier;if(!r)return 257===t.kind?2:0;var n=l.getSymbolAtLocation(r);if(!n)return 2;J=3,z=!1;var i=l.getExportsAndPropertiesOfModule(n),a=e.arrayToSet(t.elements,(function(e){return le(e)?void 0:(e.propertyName||e.name).escapedText}));return K=i.filter((function(e){return"default"!==e.escapedName&&!a.get(e.escapedName)})),1}()||function(){var t,n=!h||18!==h.kind&&27!==h.kind?void 0:e.tryCast(h.parent,e.isNamedExports);if(!n)return 0;var i=e.findAncestor(n,e.or(e.isSourceFile,e.isModuleDeclaration));return J=5,z=!1,null===(t=i.locals)||void 0===t||t.forEach((function(t,n){var a,o;K.push(t),(null===(o=null===(a=i.symbol)||void 0===a?void 0:a.exports)||void 0===o?void 0:o.has(n))&&(q[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(ae(t))return r.parent}}}(h)?(J=5,z=!0,U=4,1):0)||function(){var t=function(t,r,n,i){switch(n.kind){case 324: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 75:if(e.isPropertyDeclaration(n.parent)&&n.parent.initializer===n)return;if(M(n))return e.findAncestor(n,e.isObjectTypeDeclaration)}if(!r)return;switch(r.kind){case 62:return;case 26:case 19:return M(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(!M(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)?F:A;return o(r.kind)||41===r.kind||e.isIdentifier(r)&&o(e.stringToToken(r.text))?r.parent.parent:void 0}}(i,h,R,o);if(!t)return 0;if(J=3,z=!0,U=41===h.kind?0:e.isClassLike(t)?2:3,!e.isClassLike(t))return 1;var r=26===h.kind?h.parent.parent:h.parent,n=e.isClassElement(r)?e.getModifierFlags(r):0;if(75===h.kind&&!le(h))switch(h.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 r&&l.getPropertiesOfType(32&n?l.getTypeOfSymbolAtLocation(r.symbol,t):r)}));K=function(t,r,n){for(var i=e.createUnderscoreEscapedMap(),a=0,o=r;a<o.length;a++){var s=o[a];if((159===s.kind||161===s.kind||163===s.kind||164===s.kind)&&(!le(s)&&!e.hasModifier(s,8)&&e.hasModifier(s,32)===!!(32&n))){var c=e.getPropertyNameForPropertyNameNode(s.name);c&&i.set(c,!0)}}return t.filter((function(t){return!i.has(t.escapedName)&&!!t.declarations&&!(8&e.getDeclarationModifierFlagsFromSymbol(t))&&!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 75:case 194:case 274:case 273:case 275:if(r&&(267===r.kind||268===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(273===r.kind)return r.parent.parent;break;case 10:if(r&&(273===r.kind||275===r.kind))return r.parent.parent;break;case 19:if(r&&276===r.kind&&r.parent&&273===r.parent.kind)return r.parent.parent.parent;if(r&&275===r.kind)return r.parent.parent}}return}(h),r=t&&l.getContextualType(t.attributes);if(!r)return 0;var n=t&&l.getContextualType(t.attributes,4);return K=function(t,r){for(var n=e.createUnderscoreEscapedMap(),i=e.createMap(),a=0,o=r;a<o.length;a++){var s=o[a];le(s)||(273===s.kind?n.set(s.name.escapedText,!0):e.isJsxSpreadAttribute(s)&&se(s,i))}var c=t.filter((function(e){return!n.get(e.escapedName)}));return ue(i,c),c}(I(r,n,t.attributes,l),t.attributes.properties),ce(),J=3,z=!1,1}()||(function(){U=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}}(h)?5:1,J=1,z=function(e){if(e){var t=e.parent.kind;switch(w(e)){case 27:return 196===t||162===t||197===t||192===t||209===t||170===t;case 20:return 196===t||162===t||197===t||200===t||182===t;case 22:return 192===t||167===t||154===t;case 135:case 136:return!0;case 24:return 249===t;case 18:return 245===t;case 62:return 242===t||209===t;case 15:return 211===t;case 16:return 221===t;case 119:case 117:case 118:return 159===t}}return!1}(h),v!==h&&e.Debug.assert(!!v,"Expected 'contextToken' to be defined when different from 'previousToken'.");var a=v!==h?v.getStart():o,_=function(t,r,n){var i=t;for(;i&&!e.positionBelongsToNode(i,r,n);)i=i.parent;return i}(h,a,i)||i;g=function(t){switch(t.kind){case 290:case 211:case 276:case 223:return!0;default:return e.isStatement(t)}}(_);var d=2887656|(H?0:111551);K=l.getSymbolsInScope(_,d),e.Debug.assertEachIsDefined(K,"getSymbolsInScope() should all be defined");for(var p=0,f=K;p<f.length;p++){var m=f[p];l.isArgumentsSymbol(m)||e.some(m.declarations,(function(e){return e.getSourceFile()===i}))||(q[e.getSymbolId(m)]=r.GlobalsOrKeywords)}if(s.includeCompletionsWithInsertText&&290!==_.kind){var y=l.tryGetThisTypeAt(_,!1);if(y&&!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}(y,i,l))for(var b=0,x=O(y,l);b<x.length;b++){m=x[b];V[e.getSymbolId(m)]={kind:1},K.push(m),q[e.getSymbolId(m)]=r.SuggestedClassMembers}}if(s.includeCompletionsForModuleExports&&(i.externalModuleIndicator||i.commonJsModuleIndicator||e.compilerOptionsIndicateEs6Modules(t.getCompilerOptions())||e.programContainsModules(t))){var D=v&&e.isIdentifier(v)?v.text.toLowerCase():"",S=function(r,a){var o=W&&W.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=e.createMap(),_=e.createMap(),d=e.createMap(),p=e.createMap(),f=[],g=e.createMap();return e.codefix.forEachExternalModuleToImportFrom(t,a,i,!c,(function(t){if(!c||!c.source||e.stripQuotes(t.name)===c.source){var r=l.resolveExternalModuleSymbol(t);if(e.addToSeen(u,e.getSymbolId(r))){r!==t&&e.every(r.declarations,e.isNonGlobalDeclaration)&&m(r,t,!0);for(var n=0,i=l.getExportsAndPropertiesOfModule(t);n<i.length;n++){var a=i[n],o=e.getSymbolId(a).toString();if(e.addToSeen(_,o)&&!e.some(a.declarations,(function(t){return e.isExportSpecifier(t)&&!!t.propertyName&&e.isIdentifierANonContextualKeyword(t.name)}))){var s=l.getMergedSymbol(a.parent)!==r;if(s||e.some(a.declarations,(function(t){return e.isExportSpecifier(t)&&!t.propertyName&&!!t.parent.parent.moduleSpecifier}))){var f=s?a:function(e,t,r){var n=t;for(;2097152&n.flags&&(n=e.getImmediateAliasedSymbol(n));)if(r(n))return n}(l,a,(function(t){return e.some(t.declarations,(function(t){return e.isExportSpecifier(t)||!!t.localSymbol}))}));if(!f)continue;var y=e.getSymbolId(f).toString();g.has(y)||d.has(y)?e.addToSeen(d,o):(p.set(y,{alias:a,moduleSymbol:t}),d.set(o,!0))}else p.delete(o),m(a,t)}}}}})),p.forEach((function(e){return m(e.alias,e.moduleSymbol)})),n("getSymbolsFromOtherSourceFileExports: "+(e.timestamp()-s)),f;function m(t,n,i){void 0===i&&(i=!1);var a="default"===t.escapedName;if(a&&(t=e.getLocalSymbolForExportDefault(t)||t),!l.isUndefinedSymbol(t)){e.addToSeen(g,e.getSymbolId(t));var o={kind:4,moduleSymbol:n,isDefaultExport:a};f.push({symbol:t,symbolName:e.getNameForExportedSymbol(t,r),origin:o,skipFilter:i})}}}(t.getCompilerOptions().target,u);!c&&W&&W.set(i.fileName,S,u.getProjectVersion&&u.getProjectVersion()),S.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(),D))return;var s=e.getSymbolId(n);K.push(n),V[s]=o,q[s]=r.AutoImportSuggestions}))}!function(t){var r=ne();r&&(U=e.isAssertionExpression(h.parent)?6:7);e.filterMutate(t,(function(t){if(!e.isSourceFile(R)){if(e.isExportAssignment(R.parent))return!0;if(t=e.skipAlias(t,l),e.isInRightSideOfInternalImportEqualsDeclaration(R))return!!(1920&t.flags);if(r)return ie(t)}return!!(111551&e.getCombinedLocalAndExportSymbolFlags(t))}))}(K)}(),1))}function ne(){return f||!function(t){return t&&108===t.kind&&(172===t.parent.kind||e.isTypeOfExpression(t.parent))}(h)&&(e.isPossiblyTypeArgumentPosition(h,i,l)||e.isPartOfTypeNode(R)||function(t){if(t){var r=t.parent.kind;switch(t.kind){case 58:return 159===r||158===r||156===r||242===r||e.isFunctionLikeKind(r);case 62:return 247===r;case 123:return 217===r;case 29:return 169===r||199===r;case 90:return 155===r}}return!1}(h))}function ie(t,r){void 0===r&&(r=e.createMap());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 ie(e,r)}))}function ae(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function oe(t){return e.isFunctionLikeKind(t)&&162!==t}function se(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.set(e.name,!0)}))}function ce(){K.forEach((function(t){16777216&t.flags&&(q[e.getSymbolId(t)]=q[e.getSymbolId(t)]||r.OptionalMember)}))}function ue(t,n){if(0!==t.size)for(var i=0,a=n;i<a.length;i++){var o=a[i];t.has(o.name)&&(q[e.getSymbolId(o)]=r.MemberDeclaredBySpreadAssignment)}}function le(e){return e.getStart(i)<=o&&o<=e.getEnd()}}function T(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.LocationPriority="0",e.OptionalMember="1",e.MemberDeclaredBySpreadAssignment="2",e.SuggestedClassMembers="3",e.GlobalsOrKeywords="4",e.AutoImportSuggestions="5",e.JavascriptIdentifiers="6"}(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,d){var f=i.getTypeChecker(),g=i.getCompilerOptions(),m=e.findPrecedingToken(s,o);if(!d||e.isInString(o,s,m)||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)||L(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,d,m,s)){var y=t.StringCompletions.getStringLiteralCompletions(o,s,m,f,g,n,a,c);if(y)return y;if(m&&e.isBreakOrContinueStatement(m.parent)&&(77===m.kind||82===m.kind||75===m.kind))return function(t){var n=function(t){var n=[],i=e.createMap(),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}}(m.parent);var h=C(i,a,o,l(o,g),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,d=o.isInSnippetScope,f=o.isNewIdentifierLocation,g=o.location,m=o.propertyAccessToConvert,y=o.keywordFilters,h=o.literals,b=o.symbolToOriginInfoMap,x=o.recommendedCompletion,D=o.isJsxInitializer,S=o.insideJsDocTagTypeExpression,C=o.symbolToSortTextMap;if(g&&g.parent&&e.isJsxClosingElement(g.parent)){var T=g.parent.parent.openingElement.tagName,E=!!e.findChildOfKind(g.parent,31,t);return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[{name:T.getFullText(t)+(E?"":">"),kind:"class",kindModifiers:void 0,sortText:r.LocationPriority}]}}var A=[];if(l(t,i)){var F=v(c,A,void 0,g,t,n,i.target,a,u,s,m,o.isJsxIdentifierExpected,D,x,b,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,g.pos,F,i.target,A)}else{if(!f&&(!c||0===c.length)&&0===y)return;v(c,A,void 0,g,t,n,i.target,a,u,s,m,o.isJsxIdentifierExpected,D,x,b,C)}if(0!==y)for(var P=e.arrayToSet(A,(function(e){return e.name})),w=0,I=function(t,r){if(!r)return N(t);var n=t+7+1;return k[n]||(k[n]=N(t).filter((function(t){return!function(e){switch(e){case 122:case 125:case 151:case 128:case 130:case 88:case 150:case 113:case 132:case 114:case 133:case 134:case 135:case 136:case 137:case 140:case 141:case 117:case 118:case 119:case 138:case 143:case 144:case 145:case 147:case 148:return!0;default:return!1}}(e.stringToToken(t.name))})))}(y,!S&&e.isSourceFileJS(t));w<I.length;w++){var O=I[w];P.has(O.name)||A.push(O)}for(var M=0,L=h;M<L.length;M++){var R=L[M];A.push(p(R,s))}return{isGlobalCompletion:d,isMemberCompletion:_(u),isNewIdentifierLocation:f,entries:A}}(o,f,g,a,h,c);case 1:return u(e.JsDoc.getJSDocTagNameCompletions());case 2:return u(e.JsDoc.getJSDocTagCompletions());case 3:return u(e.JsDoc.getJSDocParameterNameCompletions(h.tag));default:return e.Debug.assertNever(h)}}},t.getCompletionEntriesFromSymbols=v,t.getCompletionEntryDetails=function(r,n,i,a,o,s,u,l,_){var p=r.getTypeChecker(),f=r.getCompilerOptions(),g=o.name,m=e.findPrecedingToken(a,i);if(e.isInString(i,a,m))return t.StringCompletions.getStringLiteralCompletionDetails(g,i,a,m,p,f,s,_);var y=h(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 D=y.symbol,S=y.location,C=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,D,r,p,s,f,i,a,y.previousToken,u,l);return x(D,p,i,S,_,C.codeActions,C.sourceDisplay);case"literal":var T=y.literal;return b(d(T,l),"string","string"===typeof T?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return E().some((function(e){return e.name===g}))?b(g,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(y)}},t.createCompletionDetailsForSymbol=x,t.createCompletionDetails=D,t.getCompletionEntrySymbol=function(e,t,r,n,i,a,o){var s=h(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 k=[],E=e.memoize((function(){for(var t=[],n=77;n<=152;n++)t.push({name:e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:r.GlobalsOrKeywords});return t}));function N(t){return k[t]||(k[t]=E().filter((function(r){var n=e.stringToToken(r.name);switch(t){case 0:return!1;case 1:return P(n)||130===n||135===n||145===n||136===n||123===n||e.isTypeKeyword(n)&&146!==n;case 5:return P(n);case 2:return F(n);case 3:return A(n);case 4:return e.isParameterPropertyModifier(n);case 6:return e.isTypeKeyword(n)||81===n;case 7:return e.isTypeKeyword(n);default:return e.Debug.assertNever(t)}})))}function A(e){return 138===e}function F(t){switch(t){case 122:case 129:case 131:case 142:case 126:case 130:return!0;default:return e.isClassMemberModifier(t)}}function P(t){return 126===t||127===t||!e.isContextualKeyword(t)&&!F(t)}function w(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function I(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 O(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 M(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function L(t){var r=t.left;return e.nodeIsMissing(r)}}(e.Completions||(e.Completions={}))}(d||(d={})),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 s(e,t){var r=c(t);return!!r&&r===e}function c(t){return e.findAncestor(t,(function(r){switch(r.kind){case 237:if(233===t.kind)return!1;case 230:case 231:case 232:case 229:case 228: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 u(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 l(t){var r=[];if(u(r,t.getFirstToken(),93,111,86)&&228===t.kind)for(var n=t.getChildren(),a=n.length-1;a>=0&&!u(r,n[a],111);a--);return e.forEach(i(t.statement),(function(e){s(t,e)&&u(r,e.getFirstToken(),77,82)})),r}function _(e){var t=c(e);if(t)switch(t.kind){case 230:case 231:case 232:case 228:case 229:return l(t);case 237:return d(t)}}function d(t){var r=[];return u(r,t.getFirstToken(),103),e.forEach(t.caseBlock.clauses,(function(n){u(r,n.getFirstToken(),78,84),e.forEach(i(n),(function(e){s(t,e)&&u(r,e.getFirstToken(),77)}))})),r}function p(t,r){var n=[];(u(n,t.getFirstToken(),107),t.catchClause&&u(n,t.catchClause.getFirstToken(),79),t.finallyBlock)&&u(n,e.findChildOfKind(t,92,r),92);return n}function f(t,r){var i=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||290===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,105,r))})),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,(function(t){a.push(e.findChildOfKind(t,101,r))})),a}}function g(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,101,r))})),e.forEach(n(i.body),(function(t){a.push(e.findChildOfKind(t,105,r))})),a}}function m(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((function(e){u(n,e,126)})),e.forEachChild(r,(function(t){y(t,(function(t){e.isAwaitExpression(t)&&u(n,t.getFirstToken(),127)}))})),n}}function y(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 y(e,r)}))}t.getDocumentHighlights=function(t,n,i,a,s){var c=e.getTouchingPropertyName(i,a);if(c.parent&&(e.isJsxOpeningElement(c.parent)&&c.parent.tagName===c||e.isJsxClosingElement(c.parent))){var v=c.parent.parent,h=[v.openingElement,v.closingElement].map((function(e){return r(e.tagName,i)}));return[{fileName:i.fileName,highlightSpans:h}]}return function(t,r,n,i,a){var o=e.arrayToSet(a,(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,c,t,n,s)||function(t,n){var i=function(t,n){switch(t.kind){case 95:case 87: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);u(n,i[0],95);for(var a=i.length-1;a>=0&&!u(n,i[a],87);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o<i.length;o++){if(87===i[o].kind&&o<i.length-1){for(var s=i[o],c=i[o+1],l=!0,_=c.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(),c.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 101:return c(t.parent,e.isReturnStatement,g);case 105:return c(t.parent,e.isThrowStatement,f);case 107:case 79:case 92:return c(79===t.kind?t.parent.parent:t.parent,e.isTryStatement,p);case 103:return c(t.parent,e.isSwitchStatement,d);case 78:case 84:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?c(t.parent.parent.parent,e.isSwitchStatement,d):void 0;case 77:case 82:return c(t.parent,e.isBreakOrContinueStatement,_);case 93:case 111:case 86:return c(t.parent,(function(t){return e.isIterationStatement(t,!0)}),l);case 129:return s(e.isConstructorDeclaration,[129]);case 131:case 142:return s(e.isAccessor,[131,142]);case 127:return c(t.parent,e.isAwaitExpression,m);case 126:return v(m(t));case 121:return v(function(t){var r=e.getContainingFunction(t);if(!r)return;var n=[];return e.forEachChild(r,(function(t){y(t,(function(t){e.isYieldExpression(t)&&u(n,t.getFirstToken(),121)}))})),n}(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?v((i=t.kind,a=t.parent,e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 250:case 290:case 223:case 277:case 278:return 128&r&&e.isClassDeclaration(t)?o(t.members,[t]):n.statements;case 162:case 161:case 244:return o(n.parameters,e.isClassLike(n.parent)?n.parent.members:[]);case 245:case 214:case 246:case 173:var i=n.members;if(92&r){var a=e.find(n.members,e.isConstructorDeclaration);if(a)return o(i,a.parameters)}else if(128&r)return o(i,[n]);return i;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 s(r,i){return c(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 c(e,t,r){return t(e)?v(r(e,n)):void 0}function v(e){return e&&e.map((function(e){return r(e,n)}))}}(t,n);return i&&[{fileName:n.fileName,highlightSpans:i}]}(c,i)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(d||(d={})),function(e){function t(t,n,i){void 0===n&&(n="");var a=e.createMap(),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,e.createMap),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}(d||(d={})),function(e){!function(t){function r(t,r){return e.forEach(290===t.kind?t.statements:t.body.statements,(function(t){return r(t)||c(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 260:case 254:(r=t).moduleSpecifier&&e.isStringLiteral(r.moduleSpecifier)&&n(r,r.moduleSpecifier);break;case 253:var r;u(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(196===t.kind)return t.getSourceFile();var r=t.parent;return 290===r.kind?r:(e.Debug.assert(250===r.kind),e.cast(r.parent,c))}function c(e){return 249===e.kind&&10===e.name.kind}function u(e){return 265===e.moduleReference.kind&&10===e.moduleReference.expression.kind}t.createImportTracker=function(t,i,c,l){var _=function(t,r,i){for(var a=e.createMap(),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,c,l);return function(n,d,p){var f=function(t,n,i,s,c,u){var l=s.exportingModuleSymbol,_=s.exportKind,d=e.nodeSeenTracker(),p=e.nodeSeenTracker(),f=[],g=!!l.globalExports,m=g?void 0:[];return function t(r){var n=h(r);if(n)for(var i=0,s=n;i<s.length;i++){var l=s[i];if(d(l))switch(u&&u.throwIfCancellationRequested(),l.kind){case 196:if(!g){var p=l.parent;if(2===_&&242===p.kind){var m=p.name;if(75===m.kind){f.push(m);break}}v(l.getSourceFile())}break;case 75:break;case 253:y(l,l.name,e.hasModifier(l,1),!1);break;case 254:f.push(l);var b=l.importClause&&l.importClause.namedBindings;b&&256===b.kind?y(l,b.name,!1,!0):!g&&e.isDefaultImport(l)&&v(o(l));break;case 260:l.exportClause?f.push(l):t(a(l,c));break;case 188:f.push(l);break;default:e.Debug.failBadSyntaxKind(l,"Unexpected import kind.")}}}(l),{directImports:f,indirectUsers:function(){if(g)return t;for(var r=0,i=l.declarations;r<i.length;r++){var a=i[r];e.isExternalModuleAugmentation(a)&&n.has(a.getSourceFile().fileName)&&v(a)}return m.map(e.getSourceFileOfNode)}()};function y(t,n,i,a){if(2===_)a||f.push(t);else if(!g){var s=o(t);e.Debug.assert(290===s.kind||249===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,c)?function t(r){if(!v(r))return;var n=c.getMergedSymbol(r.symbol);e.Debug.assert(!!(1536&n.flags));var i=h(n);if(i)for(var a=0,s=i;a<s.length;a++){var u=s[a];e.isImportTypeNode(u)||t(o(u))}}(s):v(s)}}function v(t){e.Debug.assert(!g);var r=p(t);return r&&m.push(t),r}function h(t){return i.get(e.getSymbolId(t).toString())}}(t,i,_,d,c,l),g=f.directImports,m=f.indirectUsers;return s({indirectUsers:m},function(t,r,n,i,a){var o=[],s=[];function c(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(253!==t.kind)if(75!==t.kind)if(188!==t.kind){if(10===t.moduleSpecifier.kind)if(260!==t.kind){var o=t.importClause||{name:void 0,namedBindings:void 0},l=o.name,_=o.namedBindings;if(_)switch(_.kind){case 256:p(_.name);break;case 257:0!==n&&1!==n||f(_);break;default:e.Debug.assertNever(_)}if(l&&(1===n||2===n)&&(!a||l.escapedText===e.symbolEscapedNameNoDefault(r)))c(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 u(t)&&p(t.name)}function p(e){2!==n||a&&!g(e.escapedText)||c(e,i.getSymbolAtLocation(e))}function f(e){if(e)for(var t=0,n=e.elements;t<n.length;t++){var o=n[t],u=o.name,l=o.propertyName;if(g((l||u).escapedText))if(l)s.push(l),a&&u.escapedText!==r.escapedName||c(u,i.getSymbolAtLocation(u));else c(u,263===o.kind&&o.propertyName?i.getExportSpecifierLocalTargetSymbol(o):i.getSymbolAtLocation(u))}}function g(e){return e===r.escapedName||0!==n&&"default"===e}}(g,n,d.exportKind,c,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(290===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 253:return r.name===t&&u(r);case 258:return!r.propertyName;case 255:case 256:return e.Debug.assert(r.name===t),!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)}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 194===i.kind?r.declarations.some((function(e){return e===i}))&&e.isBinaryExpression(o)?_(o,!1):void 0:s(r.exportSymbol,c(i));var u=function(t,r){var n=e.isVariableDeclaration(t)?t:e.isBindingElement(t)?e.walkUpBindingElementsAndPatterns(t):void 0;return n?t.name!==r?void 0:e.isCatchClause(n.parent)?void 0:e.isVariableStatement(n.parent.parent)?n.parent.parent:void 0:t}(i,t);if(u&&e.hasModifier(u,1)){if(e.isImportEqualsDeclaration(u)&&u.moduleReference===t){if(a)return;return{kind:0,symbol:n.getSymbolAtLocation(u.name)}}return s(r,c(u))}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 c(t){return e.hasModifier(t,512)?1:0}},t.getExportInfo=i}(e.FindAllReferences||(e.FindAllReferences={}))}(d||(d={})),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 c(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 c(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)?c(i):i}}var a=e.findAncestor(t,e.isComputedPropertyName);return a?c(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||84===t.kind&&e.hasModifier(t.parent,513)?c(t.parent):void 0}}function c(t){if(t)switch(t.kind){case 242:return e.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?e.isVariableStatement(t.parent.parent)?t.parent.parent:e.isForInOrOfStatement(t.parent.parent)?c(t.parent.parent):t.parent:t;case 191:return c(t.parent.parent);case 258:return t.parent.parent.parent;case 263:case 256:return t.parent.parent;case 255:return t.parent;case 209:return e.isExpressionStatement(t.parent)?t.parent:t;case 232:case 231:return{start:t.initializer,end:t.expression};case 281:case 282:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)?c(e.findAncestor(t.parent,(function(t){return e.isBinaryExpression(t)||e.isForInOrOfStatement(t)}))):t;default:return t}}function u(e,t,r){if(r){var n=i(r)?m(r.start,t,r.end):m(r,t);return n.start!==e.start||n.length!==e.length?{contextSpan:n}:void 0}}function l(t,i,a,o,s){if(290!==o.kind){var c=t.getTypeChecker();if(282===o.parent.kind){var u=[];return r.getReferenceEntriesForShorthandPropertyAssignment(o,c,(function(e){return u.push(n(e))})),u}if(102===o.kind||e.isSuperProperty(o.parent)){var l=c.getSymbolAtLocation(o);return l.valueDeclaration&&[n(l.valueDeclaration)]}return _(s,o,t,a,i,{implementations:!0,use:1})}}function _(t,n,i,a,o,s,c){return void 0===s&&(s={}),void 0===c&&(c=e.arrayToSet(a,(function(e){return e.fileName}))),d(r.getReferencedSymbolsForNode(t,n,i,a,o,s,c))}function d(t){return t&&e.flatMap(t,(function(e){return e.references}))}function p(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 f(e){var t=g(e);if(0===e.kind)return s(s({},t),{isWriteAccess:!1,isDefinition:!1});var r=e.kind,n=e.node;return s(s({},t),{isWriteAccess:v(n),isDefinition:h(n),isInString:2===r||void 0})}function g(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile(),r=m(e.node,t);return s({textSpan:r,fileName:t.fileName},u(r,t,e.context))}function m(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 y(e){return 0===e.kind?e.textSpan:m(e.node,e.node.getSourceFile())}function v(t){var r=e.getDeclarationFromName(t);return!!r&&function(t){if(8388608&t.flags)return!0;switch(t.kind){case 209:case 191:case 245:case 214:case 84:case 248:case 284:case 263:case 255:case 253:case 258:case 246:case 315:case 322:case 273:case 249:case 252:case 256:case 262:case 156:case 282:case 247:case 155:return!0;case 281:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 244:case 201:case 162:case 161:case 163:case 164:return!!t.body;case 242:case 159:return!!t.initializer||e.isCatchClause(t.parent);case 160:case 158:case 323:case 317:return!1;default:return e.Debug.failBadSyntaxKind(t)}}(r)||84===t.kind||e.isWriteAccess(t)}function h(t){return 84===t.kind||!!e.getDeclarationFromName(t)||e.isLiteralComputedPropertyDeclarationName(t)||129===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"}(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=c,t.toContextSpan=u,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,o){var l=e.getTouchingPropertyName(a,o),_=r.getReferencedSymbolsForNode(o,l,t,i,n,{use:1}),d=t.getTypeChecker();return _&&_.length?e.mapDefined(_,(function(t){var r=t.definition,i=t.references;return r&&{definition:d.runWithCancellationToken(n,(function(t){return function(t,r,n){var i=function(){switch(t.type){case 0:var i=p(f=t.symbol,r,n),a=i.displayParts,o=i.kind,s=a.map((function(e){return e.text})).join(""),u=f.declarations?e.first(f.declarations):void 0;return{node:u?e.getNameOfDeclaration(u)||u:n,name:s,kind:o,displayParts:a,context:c(u)};case 1:var l=t.node;return{node:l,name:l.text,kind:"label",displayParts:[e.displayPart(l.text,e.SymbolDisplayPartKind.text)]};case 2:var _=t.node,d=e.tokenToString(_.kind);return{node:_,name:d,kind:"keyword",displayParts:[{text:d,kind:"keyword"}]};case 3:var f,g=t.node,m=(f=r.getSymbolAtLocation(g))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,f,g.getSourceFile(),e.getContainerNode(g),g).displayParts||[e.textPart("this")];return{node:g,name:"this",kind:"var",displayParts:m};case 4:var y=t.node;return{node:y,name:y.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(y),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}}(),a=i.node,o=i.name,l=i.kind,_=i.displayParts,d=i.context,f=a.getSourceFile(),g=m(e.isComputedPropertyName(a)?a.expression:a,f);return s({containerKind:"",containerName:"",fileName:f.fileName,kind:l,name:o,textSpan:g,displayParts:_},u(g,f,d))}(r,t,l)})),references:i.map(f)}})):void 0},t.getImplementationsAtPosition=function(t,r,n,i,a){var c,u=e.getTouchingPropertyName(i,a),_=l(t,r,n,u,a);if(194===u.parent.kind||191===u.parent.kind||195===u.parent.kind||102===u.kind)c=_&&o(_);else for(var d=_&&o(_),f=e.createMap();d&&d.length;){var m=d.shift();if(e.addToSeen(f,e.getNodeId(m.node))){c=e.append(c,m);var y=l(t,r,n,m.node,m.node.pos);y&&d.push.apply(d,y)}}var v=t.getTypeChecker();return e.map(c,(function(t){return function(t,r){var n=g(t);if(0!==t.kind){var i=t.node;return s(s({},n),function(t,r){var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?p(n,r,t):193===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:214===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 s(s({},n),{kind:"",displayParts:[]})}(t,v)}))},t.findReferenceOrRenameEntries=function(t,n,i,a,o,s,c){return e.map(d(r.getReferencedSymbolsForNode(o,a,t,i,n,s)),(function(e){return c(e,a,t.getTypeChecker())}))},t.getReferenceEntriesForNode=_,t.toRenameLocation=function(t,r,n,i){return s(s({},g(t)),i&&function(t,r,n){if(0!==t.kind&&e.isIdentifier(r)){var i=t.node,a=t.kind,o=r.text,s=e.isShorthandPropertyAssignment(i.parent);if(s||e.isObjectBindingElementWithoutPropertyName(i.parent)&&i.parent.name===i){var c={prefixText:o+": "},u={suffixText:": "+o};return 3===a?c:4===a?u:s?u:c}if(e.isImportSpecifier(t.node.parent)&&!t.node.parent.propertyName){var l=e.isExportSpecifier(r.parent)?n.getExportSpecifierLocalTargetSymbol(r.parent):n.getSymbolAtLocation(r);return e.contains(l.declarations,t.node.parent)?{prefixText:o+" as "}:e.emptyOptions}if(e.isExportSpecifier(t.node.parent)&&!t.node.parent.propertyName)return r===t.node||n.getSymbolAtLocation(r)===n.getSymbolAtLocation(t.node)?{prefixText:o+" as "}:{suffixText:" as "+o}}return e.emptyOptions}(t,r,n))},t.toReferenceEntry=f,t.toHighlightSpan=function(e){var t=g(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=v(e.node),n=s({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=y,function(r){function i(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 a(t,r,n,i,a,s){var u=1536&t.flags&&t.declarations&&e.find(t.declarations,e.isSourceFile);if(u){var _=t.exports.get("export="),d=c(r,t,!!_,n,s);if(!_||!s.has(u.fileName))return d;var p=r.getTypeChecker();return o(r,d,l(t=e.skipAlias(_,p),void 0,n,s,p,i,a))}}function o(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 c=o[a];if(c&&c.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=s(t,r),a=s(t,n);if(i!==a)return e.compareValues(i,a);var o=y(r),c=y(n);return o.start!==c.start?e.compareValues(o.start,c.start):e.compareValues(o.length,c.length)}))}},l=0,_=c;l<_.length;l++){u(_[l])}else r=c}return r}function s(e,t){var r=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(r)}function c(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 290:break;case 249: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,89,g)):e.getNameOfDeclaration(f)||f;c.push(n(m))}}return c.length?[{definition:{type:0,symbol:i},references:c}]:e.emptyArray}function u(t){return 138===t.kind&&e.isTypeOperatorNode(t.parent)&&138===t.parent.operator}function l(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 N(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,!R(s))||t,u=r?O(r,c):7,l=[],d=new p(n,i,r?function(t){switch(t.kind){case 129:return 1;case 75:if(e.isClassLike(t.parent))return e.Debug.assert(t.parent.name===t),2;default:return 0}}(r):0,a,o,u,s,l),g=R(s)?e.find(c.declarations,e.isExportSpecifier):void 0;if(g)E(g.name,c,g,d.createSearch(r,t,void 0),d,!0,!0);else if(r&&84===r.kind)A(r,c,d),f(r,c,{exportingModuleSymbol:e.Debug.checkDefined(c.parent,"Expected export symbol to have a parent"),exportKind:1},d);else{var m=d.createSearch(r,c,void 0,{allSearchSymbols:r?w(c,r,a,2===s.use,!!s.providePrefixAndSuffixTextForRename,!!s.implementations):[c]});_(c,d,m)}return l}function _(t,r,n){var i=function(t){var r=t.declarations,n=t.flags,i=t.parent,a=t.valueDeclaration;if(a&&(201===a.kind||214===a.kind))return a;if(!r)return;if(8196&n){var o=e.find(r,(function(t){return e.hasModifier(t,8)||e.isPrivateIdentifierPropertyDeclaration(t)}));return o?e.getAncestor(o,245):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||290===d.kind&&!e.isExternalOrCommonJsModule(d))return;s=d}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(),v(s,n,r)}}var d;r.getReferencedSymbolsForNode=function(t,r,s,_,d,p,f){if(void 0===p&&(p={}),void 0===f&&(f=e.arrayToSet(_,(function(e){return e.fileName}))),1===p.use?r=e.getAdjustedReferenceLocation(r):2===p.use&&(r=e.getAdjustedRenameLocation(r)),e.isSourceFile(r)){var g=e.GoToDefinition.getReferenceAtPosition(r,t,s),m=g&&s.getTypeChecker().getMergedSymbol(g.file.symbol);return m&&c(s,m,!1,_,f)}if(!p.implementations){var y=function(t,r,i){if(e.isTypeKeyword(t.kind)){if(110===t.kind&&e.isVoidExpression(t.parent))return;if(138===t.kind&&!u(t))return;return function(t,r,i,a){var o=e.flatMap(t,(function(t){return i.throwIfCancellationRequested(),e.mapDefined(b(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,138===t.kind?u:void 0)}if(e.isJumpStatementTarget(t)){var a=e.getTargetLabel(t.parent,t.text);return a&&D(a.parent,a)}if(e.isLabelOfLabeledStatement(t))return D(t.parent,t);if(e.isThis(t))return function(t,r,i){var a=e.getThisContainer(t,!1),o=32;switch(a.kind){case 161:case 160:if(e.isObjectLiteralMethod(a))break;case 159:case 158:case 162:case 163:case 164:o&=e.getModifierFlags(a),a=a.parent;break;case 290:if(e.isExternalModule(a)||P(t))return;case 244:case 201:break;default:return}var s=e.flatMap(290===a.kind?r:[a.getSourceFile()],(function(t){return i.throwIfCancellationRequested(),b(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 201:case 244:return a.symbol===r.symbol;case 161:case 160:return e.isObjectLiteralMethod(a)&&a.symbol===r.symbol;case 214:case 245:return r.parent&&a.symbol===r.parent.symbol&&(32&e.getModifierFlags(r))===o;case 290:return 290===r.kind&&!e.isExternalModule(r)&&!P(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(102===t.kind)return function(t){var r=e.getSuperContainer(t,!1);if(!r)return;var i=32;switch(r.kind){case 159:case 158:case 161:case 160:case 162:case 163:case 164:i&=e.getModifierFlags(r),r=r.parent;break;default:return}var a=r.getSourceFile(),o=e.mapDefined(b(a,"super",r),(function(t){if(102===t.kind){var a=e.getSuperContainer(t,!1);return a&&(32&e.getModifierFlags(a))===i&&a.parent.symbol===r.symbol?n(t):void 0}}));return[{definition:{type:0,symbol:r.symbol},references:o}]}(t);return}(r,_,d);if(y)return y}var v=s.getTypeChecker(),h=v.getSymbolAtLocation(r);if(!h)return!p.implementations&&e.isStringLiteral(r)?function(t,r,i){var a=e.flatMap(r,(function(r){return i.throwIfCancellationRequested(),e.mapDefined(b(r,t.text),(function(r){return e.isStringLiteral(r)&&r.text===t.text?n(r,2):void 0}))}));return[{definition:{type:4,node:t},references:a}]}(r,_,d):void 0;if("export="===h.escapedName)return c(s,h.parent,!1,_,f);var x=a(h,s,_,d,p,f);if(x&&!(33554432&h.flags))return x;var S=i(r,h,v),C=S&&a(S,s,_,d,p,f);return o(s,x,l(h,r,_,f,v,d,p),C)},function(e){e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"}(d||(d={}));var p=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=e.createMap(),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]=e.createMap()),a=!1,o=0,s=r;o<s.length;o++){var c=s[o];a=e.addToSeen(i,e.getSymbolId(c))||a}return a},r}();function f(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];g(_,n)&&c(_)}for(var d=0,p=a;d<p.length;d++){var f=p[d],m=f[0],y=f[1];S(m.getSourceFile(),n.createSearch(m,y,1),n)}if(s.length){var h=void 0;switch(r.exportKind){case 0:h=n.createSearch(e,t,1);break;case 1:h=2===n.options.use?void 0:n.createSearch(e,t,1,{text:"default"})}if(h)for(var b=0,x=s;b<x.length;b++){v(x[b],h,n)}}}function g(t,r){return!!T(t,r)&&(2!==r.options.use||!!e.isIdentifier(t)&&!(e.isImportOrExportSpecifier(t.parent)&&"default"===t.escapedText))}function m(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();S(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function v(t,r,n){void 0!==e.getNameTable(t).get(r.escapedText)&&S(t,r,n)}function h(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=b(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)&&N(u,l,u.parent,r)===o){var _=i(u);if(_)return _}}}}function b(t,r,n){return void 0===n&&(n=t),x(t,r,n).map((function(r){return e.getTouchingPropertyName(t,r)}))}function x(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 D(t,r){var i=t.getSourceFile(),a=r.text,o=e.mapDefined(b(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 S(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=x(t,r.text,e);a<o.length;a++){k(t,o[a],r,n,i)}}function T(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 76:case 75: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 84:return"default".length===r.length;default:return!1}}(s,i.text)){if(T(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(75===s.kind),void E(s,c,u,i,a,o);var l=function(t,r,n,i){var a=i.checker;return I(r,n,a,!1,2!==i.options.use||!!i.options.providePrefixAndSuffixTextForRename,(function(r,n,i,a){return t.includes(i||n||r)?{symbol:!n||6&e.getCheckFlags(r)?r:n,kind:a}:void 0}),(function(r){return!(t.parents&&!t.parents.some((function(t){return function t(r,n,i,a){if(r===n)return!0;var o=e.getSymbolId(r)+","+e.getSymbolId(n),s=i.get(o);if(void 0!==s)return s;i.set(o,!1);var c=!!r.declarations&&r.declarations.some((function(r){return e.getAllSuperTypeNodes(r).some((function(e){var r=a.getTypeAtLocation(e);return!!r&&!!r.symbol&&t(r.symbol,n,i,a)}))}));return i.set(o,c),c}(r.parent,t,i.inheritsFromCache,a)})))}))}(i,c,s,a);if(l){switch(a.specialSearchKind){case 0:o&&A(s,l,a);break;case 1:!function(t,r,n,i){e.isNewExpressionTarget(t)&&A(t,n.symbol,i);var a=function(){return i.referenceAdder(n.symbol)};if(e.isClassLike(t.parent))e.Debug.assert(84===t.kind||t.parent.name===t),function(t,r,n){var i=F(t);if(i&&i.declarations)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.findChildOfKind(s,129,r);e.Debug.assert(162===s.kind&&!!c),n(c)}t.exports&&t.exports.forEach((function(t){var r=t.valueDeclaration;if(r&&161===r.kind){var i=r.body;i&&L(i,104,(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=F(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(162===o.kind);var s=o.body;s&&L(s,102,(function(t){e.isCallExpressionTarget(t)&&r(t)}))}}(o,a()),function(e,t){if(function(e){return!!F(e.symbol)}(e))return;var r=e.symbol,n=t.createSearch(void 0,r,void 0);_(r,t,n)}(o,i))}var s}(s,r,i,a);break;case 2:!function(t,r,n){A(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.hasModifier(c,32)&&(c.body&&c.body.forEachChild((function t(r){104===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?R(i.options)||m(o,i):f(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)||A(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 E(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=N(r,n,i,o.checker);if(c||a.includes(p)){if(l?r===l?(d.moduleSpecifier||b(),s&&2!==o.options.use&&o.markSeenReExportRHS(_)&&A(_,e.Debug.checkDefined(i.symbol),o)):o.markSeenReExportRHS(r)&&b():2===o.options.use&&"default"===_.escapedText||b(),!R(o.options)||c){var g=84===r.originalKeywordKind||84===i.name.originalKeywordKind?1:0,y=e.Debug.checkDefined(i.symbol),v=t.getExportInfo(y,g,o.checker);v&&f(r,y,v,o)}if(1!==a.comingFrom&&d.moduleSpecifier&&!l&&!R(o.options)){var h=o.checker.getExportSpecifierLocalTargetSymbol(i);h&&m(h,o)}}function b(){s&&A(r,p,o)}}function N(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 A(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(75!==t.kind)return;282===t.parent.kind&&M(t,n.checker,r);var a=function t(r){return e.isIdentifier(r)||e.isPropertyAccessExpression(r)?t(r.parent):e.isExpressionWithTypeArguments(r)?e.tryCast(r.parent.parent,e.isClassLike):void 0}(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;223===c.kind?e.forEachReturnStatement(c,(function(e){e.expression&&u(e.expression)})):u(c)}else e.isAssertionExpression(s)&&u(s.expression);function u(e){(function e(t){switch(t.kind){case 200:return e(t.expression);case 202:case 201:case 193:case 214:case 192:return!0;default:return!1}})(e)&&r(e)}}(t,s,n):s(t,a)}function F(e){return e.members&&e.members.get("__constructor")}function P(e){return 75===e.kind&&156===e.parent.kind&&e.parent.name===e}function w(e,t,r,n,i,a){var o=[];return I(e,t,r,n,!(n&&i),(function(e,t,r){o.push(r||t||e)}),(function(){return!a})),o}function I(t,r,n,a,o,s,c){var u=e.getContainingObjectLiteralElement(r);if(u){var l=n.getShorthandAssignmentValueSymbol(r.parent);if(l&&a)return s(l,void 0,void 0,3);var _=n.getContextualType(u.parent),d=_&&e.firstDefined(e.getPropertySymbolsFromContextualType(u,n,_,!0),(function(e){return C(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=i(r,t,n);if(m){var y=s(m,void 0,void 0,1);if(y)return y}var v=C(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)),C(1&t.flags?h[1]:h[0])}var b=e.getDeclarationOfKind(t,263);if(!a||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(!a){var S=void 0;return(S=o?e.isObjectBindingElementWithoutPropertyName(r.parent)?e.getPropertySymbolFromBindingElement(n,r.parent):void 0:T(t,n))&&C(S,4)}if(e.Debug.assert(a),o)return(S=T(t,n))&&C(S,4);function C(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)?e.getPropertySymbolsFromBaseTypes(i.parent,i.name,n,(function(e){return s(t,i,e,r)})):void 0)}))}function T(t,r){var n=e.getDeclarationOfKind(t,191);if(n&&e.isObjectBindingElementWithoutPropertyName(n))return e.getPropertySymbolFromBindingElement(r,n)}}function O(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 M(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 L(t,r,n){e.forEachChild(t,(function(e){e.kind===r&&n(e),L(e,r,n)}))}function R(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}r.eachExportReference=function(r,n,i,a,o,s,c,u){for(var l=t.createImportTracker(r,e.arrayToSet(r,(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=b(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),h(e,t,r,(function(){return!0}),n)||!1},r.eachSymbolReferenceInFile=h,r.eachSignatureCall=function(t,r,n,i){if(t.name&&e.isIdentifier(t.name))for(var a=e.Debug.checkDefined(n.getSymbolAtLocation(t.name)),o=0,s=r;o<s.length;o++)for(var c=0,u=b(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=_.parent;if(e.isCallExpression(d)&&d.expression===_){var p=n.getSymbolAtLocation(l);p&&n.getRootSymbols(p).some((function(e){return e===a}))&&i(d)}}}},r.getIntersectingMeaningFromDeclarations=O,r.getReferenceEntriesForShorthandPropertyAssignment=M}(r=t.Core||(t.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(d||(d={})),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 84===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(!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=e.getNodeKind(n),c=e.createTextSpanFromBounds(e.skipTrivia(i.text,n.getFullStart(),!1,!0),n.getEnd()),u=e.createTextSpanFromBounds(a.pos,a.end);return{file:i.fileName,kind:s,name:a.text,span:c,selectionSpan:u}}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 75:case 253:case 254:case 260:case 246:case 247:return;case 199:case 217:return void t(r.expression);case 242:case 156:return t(r.name),void t(r.initializer);case 196:case 197:return n(r),t(r.expression),void e.forEach(r.arguments,t);case 198:return n(r),t(r.tag),void t(r.template);case 268:case 267:return n(r),t(r.tagName),void t(r.attributes);case 157:return n(r),void t(r.expression);case 194:case 195:n(r),e.forEachChild(r,t)}e.isPartOfTypeNode(r)||e.forEachChild(r,t)}}}(t,n);switch(r.kind){case 290:!function(t,r){e.forEach(t.statements,r)}(r,a);break;case 249:!function(t,r){!e.hasModifier(t,2)&&t.body&&e.isModuleBlock(t.body)&&e.forEach(t.body.statements,r)}(r,a);break;case 244:case 201:case 202:case 161:case 163:case 164:!function(t,r,n){var i=c(t,r);i&&(e.forEach(i.parameters,n),n(i.body))}(t.getTypeChecker(),r,a);break;case 245:case 214:!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={}))}(d||(d={})),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){if(t){if(t.resolvedModule){var i=s(t.resolvedModule.resolvedFileName);if(i)return i}var a=e.forEach(t.failedLookupLocations,(function(t){var i=r(t);return i&&e.find(n,(function(e){return e.fileName===i}))?o(t):void 0}))||e.forEach(t.failedLookupLocations,o);return a||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1}}function o(t){return e.endsWith(t,"/package.json")?void 0:s(t)}function s(e){var t=r(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.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(_.path),p=void 0!==d?d:_.path,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(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(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(),p,a.newFileName,e.createModuleSpecifierResolutionHost(t,c),r.text):void 0}}))},d=0,p=l;d<p.length;d++){var f=p[d];_(f)}}(o,t,g,m,u,f)}))},e.getPathUpdater=t}(d||(d={})),function(e){!function(t){function r(t,r,i){var s,_,d=n(r,i,t);if(d)return[(s=d.fileName,_=d.file.fileName,{fileName:_,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:s,containerName:void 0,containerKind:void 0})];var p=e.getTouchingPropertyName(r,i);if(p!==r){var f=p.parent,g=t.getTypeChecker();if(e.isJumpStatementTarget(p)){var m=e.getTargetLabel(p.parent,p.text);return m?[u(g,m,"label",p.text,void 0)]:void 0}var y=function(t,r){var n=r.getSymbolAtLocation(t);if(n&&2097152&n.flags&&function(e,t){if(75!==e.kind)return!1;if(e.parent===t)return!0;switch(t.kind){case 255:case 253:return!0;case 258:return 257===t.parent.kind;default:return!1}}(t,n.declarations[0])){var i=r.getAliasedSymbol(n);if(i.declarations)return i}if(n&&e.isInJSFile(t)){var a=e.forEach(n.declarations,(function(t){return e.isVariableDeclaration(t)&&t.initializer&&e.isRequireCall(t.initializer,!0)?t.initializer:void 0}));if(a){var o=r.getSymbolAtLocation(a.arguments[0]);if(o)return r.resolveExternalModuleSymbol(o)}}return n}(p,g);if(!y)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&&l(r,t.declaration)}))}(p,g);var v=function(t,r){var n=function(t){var r=function t(r){return e.isRightSideOfPropertyAccess(r)?t(r.parent):r}(t),n=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)}))}(g,p);if(v&&(!e.isJsxOpeningLikeElement(p.parent)||!function(e){switch(e.kind){case 162:case 171:case 166:return!0;default:return!1}}(v))){var h=l(g,v);if(g.getRootSymbols(y).some((function(t){return function(t,r){return t===r.symbol||t===r.symbol.parent||!e.isCallLikeExpression(r.parent)&&t===r.parent.symbol}(t,v)}))||y.declarations&&y.declarations.some((function(t){return e.isVariableDeclaration(t)&&!!t.initializer&&e.isRequireCall(t.initializer,!1)})))return[h];var b=a(g,y,p,v)||e.emptyArray;return 102===p.kind?o([h],b):o(b,[h])}if(282===p.parent.kind){var x=g.getShorthandAssignmentValueSymbol(y.valueDeclaration);return x?x.declarations.map((function(e){return c(e,g,x,p)})):[]}if(e.isPropertyName(p)&&e.isBindingElement(f)&&e.isObjectBindingPattern(f.parent)&&p===(f.propertyName||f.name)){var D=e.getNameFromPropertyName(p),S=g.getTypeAtLocation(f.parent);return void 0===D?e.emptyArray:e.flatMap(S.isUnion()?S.types:[S],(function(e){var t=e.getProperty(D);return t&&a(g,t,p)}))}var C=e.getContainingObjectLiteralElement(p);if(C){var T=C&&g.getContextualType(C.parent);if(T)return e.flatMap(e.getPropertySymbolsFromContextualType(C,g,T,!1),(function(e){return a(g,e,p)}))}return a(g,y,p)}}function n(e,t,r){var n=_(e.referencedFiles,t);if(n)return(o=r.getSourceFileFromReference(e,n))&&{fileName:n.fileName,file:o};var i=_(e.typeReferenceDirectives,t);if(i){var a=r.getResolvedTypeReferenceDirectives().get(i.fileName);return(o=a&&r.getSourceFile(a.resolvedFileName))&&{fileName:i.fileName,file:o}}var o,s=_(e.libReferenceDirectives,t);return s?(o=r.getLibFileFromReference(s))&&{fileName:s.fileName,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)||129===n.kind)){return o((e.find(a,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)}}()||(e.isCallOrNewExpressionTarget(n)||e.isNameOfFunctionDeclaration(n)?o(a,!1):void 0)||e.map(a,(function(e){return c(e,t,r,n)}));function o(i,a){if(i){var o=i.filter(a?e.isConstructorDeclaration:e.isFunctionLike),s=o.filter((function(e){return!!e.body}));return o.length?0!==s.length?s.map((function(e){return c(e,t,r,n)})):[c(e.last(o),t,r,n)]:void 0}}}function c(t,r,n,i){var a=r.symbolToString(n),o=e.SymbolDisplay.getSymbolKind(r,n,i),s=n.parent?r.symbolToString(n.parent,i):"";return u(r,t,o,a,s)}function u(t,r,n,i,a){var o=e.getNameOfDeclaration(r)||r,c=o.getSourceFile(),u=e.createTextSpanFromNode(o,c);return s(s({fileName:c.fileName,textSpan:u,kind:n,name:i,containerKind:void 0,containerName:a},e.FindAllReferences.toContextSpan(u,c,e.FindAllReferences.getContextNode(r))),{isLocal:!t.isDeclarationVisible(r)})}function l(e,t){return c(t,e,t.symbol,t)}function _(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=_(n.referencedFiles,i)||_(n.typeReferenceDirectives,i)||_(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=_}(e.GoToDefinition||(e.GoToDefinition={}))}(d||(d={})),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 308:case 307:return n(e.class);case 321:return i(e.typeParameters.map((function(e){return e.getText()})).join(", "));case 320:return n(e.typeExpression);case 322:case 315:case 323:case 317: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){switch(t.kind){case 244:case 201:case 161:case 162:case 160:return{commentOwner:t,parameters:t.parameters};case 281:return s(t.initializer);case 245:case 246:case 158:case 248:case 284:case 247:return{commentOwner:t};case 225:var r=t.declarationList.declarations;return{commentOwner:t,parameters:1===r.length&&r[0].initializer?function(t){for(;200===t.kind;)t=t.expression;switch(t.kind){case 201:case 202:return t.parameters;case 214:var r=e.find(t.members,e.isConstructorDeclaration);return r?r.parameters:e.emptyArray}return e.emptyArray}(r[0].initializer):void 0};case 290:return"quit";case 249:return 249===t.parent.kind?void 0:{commentOwner:t};case 226:return s(t.expression);case 209:var n=t;return 0===e.getAssignmentDeclarationKind(n)?"quit":{commentOwner:t,parameters:e.isFunctionLike(n.right)?n.right.parameters:e.emptyArray};case 159:var i=t.initializer;if(i&&(e.isFunctionExpression(i)||e.isArrowFunction(i)))return{commentOwner:t,parameters:i.parameters}}}t.getJsDocCommentsFromDeclarations=function(t){var r=[];return e.forEachUnique(t,(function(t){for(var n=0,i=function(t){switch(t.kind){case 317:case 323:return[t];case 315:case 322:return[t,t.parent];default:return e.getJSDocCommentsAndTags(t)}}(t);n<i.length;n++){var a=i[n].comment;void 0!==a&&(r.length&&r.push(e.lineBreakPart()),r.push(e.textPart(a)))}})),r},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(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:"0"}})))},t.getJSDocTagNameCompletionDetails=o,t.getJSDocTagCompletions=function(){return n||(n=e.map(i,(function(e){return{name:"@"+e,kind:"keyword",kindModifiers:"",sortText:"0"}})))},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:"0"}}})):[]},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){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isJSDoc);if(!a||void 0===a.comment&&!e.length(a.tags)){var o=i.getStart(r);if(a||!(o<n)){var c=function(t){return e.forEachAncestor(t,s)}(i);if(c){var u=c.commentOwner,l=c.parameters;if(!(u.getStart(r)<n)){if(!l||0===l.length){return{newText:"/** */",caretOffset:3}}var _=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),d="/**"+t+_+" * ";return{newText:d+t+function(e,t,r,n){return e.map((function(e,i){var a=e.name,o=e.dotDotDotToken,s=75===a.kind?a.text:"param"+i;return r+" * @param "+(t?o?"{...any} ":"{any} ":"")+s+n})).join("")}(l,e.hasJSFileExtension(r.fileName),_,t)+_+" */"+(o===n?t+_:""),caretOffset:d.length}}}}}}}(e.JsDoc||(e.JsDoc={}))}(d||(d={})),function(e){!function(t){function r(e,t){switch(e.kind){case 255:case 258:case 253: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)||154===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&&154===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={}))}(d||(d={})),function(e){!function(t){var r,n,i,a,o,s=/\s+/g,c=150,u=[],l=[],_=[];function d(){i=void 0,n=void 0,u=[],a=void 0,_=[]}function p(e){return U(e.getText(i))}function f(e){return e.node.kind}function g(e,t){e.children?e.children.push(t):e.children=[t]}function m(t){e.Debug.assert(!u.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++){T(i[n])}return S(),e.Debug.assert(!a&&!u.length),r}function y(e,t){g(a,v(e,t))}function v(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 h(t){o||(o=e.createMap()),o.set(t,!0)}function b(e){for(var t=0;t<e;t++)S()}function x(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--){D(t,i=n[o])}return[n.length-1,n[0]]}function D(e,t){var r=v(e,t);g(a,r),u.push(a),l.push(o),a=r}function S(){a.children&&(k(a.children,a),F(a.children)),a=u.pop(),o=l.pop()}function C(e,t,r){D(e,r),T(t),S()}function T(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 162:var i=t;C(i,i.body);for(var a=0,s=i.parameters;a<s.length;a++){var c=s[a];e.isParameterPropertyDeclaration(c,i)&&y(c)}break;case 161:case 163:case 164:case 160:e.hasDynamicName(t)||C(t,t.body);break;case 159:case 158:e.hasDynamicName(t)||y(t);break;case 255:var u=t;u.name&&y(u.name);var l=u.namedBindings;if(l)if(256===l.kind)y(l);else for(var _=0,d=l.elements;_<d.length;_++){y(d[_])}break;case 282:C(t,t.name);break;case 283:var p=t.expression;e.isIdentifier(p)?y(t,p):y(t);break;case 191:case 281:case 242:var f=t,g=f.name,m=f.initializer;e.isBindingPattern(g)?T(g):m&&function(e){switch(e.kind){case 202:case 201:case 214:return!0;default:return!1}}(m)?(D(t),e.forEachChild(m,T),S()):C(t,m);break;case 244:var v=t.name;v&&e.isIdentifier(v)&&h(v.text),C(t,t.body);break;case 202:case 201:C(t,t.body);break;case 248:D(t);for(var k=0,E=t.members;k<E.length;k++){B(F=E[k])||y(F)}S();break;case 245:case 214:case 246:D(t);for(var N=0,A=t.members;N<A.length;N++){var F;T(F=A[N])}S();break;case 249:C(t,function t(r){return r.body&&e.isModuleDeclaration(r.body)?t(r.body):r}(t).body);break;case 259:case 263:case 253:case 167:case 165:case 166:case 247:y(t);break;case 196:case 209:var P=e.getAssignmentDeclarationKind(t);switch(P){case 1:case 2:return void C(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)?(h(I.expression.text),M=I.expression):(O=(r=x(J,I.expression))[0],M=r[1]),6===P?e.isObjectLiteralExpression(J.right)&&J.right.properties.length>0&&(D(J,M),e.forEachChild(J.right,T),S()):e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?C(t,J.right,M):(D(J,M),C(t,J.right,w.name),S()),void b(O);case 7:case 9:var L=t,R=(M=7===P?L.arguments[0]:L.arguments[0].expression,L.arguments[1]),j=x(t,M);O=j[0];return D(t,j[1]),D(t,e.setTextRange(e.createIdentifier(R.text),R)),T(t.arguments[2]),S(),S(),void b(O);case 5:var J,z=(w=(J=t).left).expression;if(e.isIdentifier(z)&&"prototype"!==e.getElementOrPropertyAccessName(w)&&o&&o.has(z.text))return void(e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?C(t,J.right,z):e.isBindableStaticAccessExpression(w)&&(D(J,z),C(J.left,J.right,e.getNameOrArgument(w)),S()));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)&&y(t)}))})),e.forEachChild(t,T)}}function k(t,r){var n=e.createMap();e.filterMutate(t,(function(t,i){var a=t.name||e.getNameOfDeclaration(t.node),o=a&&p(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=[];return function e(r){if(function(e){if(e.children)return!0;switch(f(e)){case 245:case 214:case 248:case 246:case 249:case 290:case 247:case 322:case 315:return!0;case 202:case 244:case 201:return function(e){if(!e.node.body)return!1;switch(f(e.parent)){case 250:case 290:case 161:case 162:return!0;default:return!1}}(e);default:return!1}}(r)&&(t.push(r),r.children))for(var n=0,i=r.children;n<i.length;n++){var a=i[n];e(a)}}(e),t}(m(t)),M)}finally{d()}},t.getNavigationTree=function(e,t){n=t,i=e;try{return O(m(e))}finally{d()}};var E=((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(E[o]&&E[s]||a(t.node)&&E[o]||a(r.node)&&E[s]||e.isClassDeclaration(t.node)&&E[o]||e.isClassDeclaration(r.node)&&E[s]||e.isClassDeclaration(t.node)&&a(r.node)||e.isClassDeclaration(r.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=v(e.setTextRange(e.createConstructor(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||[t],[l])}else(t.children||r.children)&&(t.children=e.concatenate(t.children||[t],r.children||[r]),t.children&&(k(t.children,t),F(t.children)));c=t.node=e.setTextRange(e.createClassDeclaration(void 0,void 0,t.name||e.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=e.concatenate(t.children,r.children),t.children&&k(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.createClassDeclaration(void 0,void 0,t.name||e.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&&(!A(t,n)||!A(r,n)))return!1;switch(t.kind){case 159:case 161:case 163:case 164:return e.hasModifier(t,32)===e.hasModifier(r,32);case 249:return function e(t,r){return t.body.kind===r.body.kind&&(249!==t.body.kind||e(t.body,r.body))}(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&&(k(t.children,t),F(t.children))}(t,r),!0)}function A(t,r){var n=e.isModuleBlock(t.parent)?t.parent.parent:t.parent;return n===r.node||e.contains(r.additionalNodes,n)}function F(e){e.sort(P)}function P(t,r){return e.compareStringsCaseSensitiveUI(w(t.node),w(r.node))||e.compareValues(f(t),f(r))}function w(t){if(249===t.kind)return R(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 201:case 202:case 214:return z(t);default:return}}function I(t,r){if(249===t.kind)return U(R(t));if(r){var n=e.isIdentifier(r)?r.text:e.isElementAccessExpression(r)?"["+p(r.argumentExpression)+"]":p(r);if(n.length>0)return U(n)}switch(t.kind){case 290:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"<global>";case 259:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 202:case 244:case 201:case 245:case 214:return 512&e.getModifierFlags(t)?"default":z(t);case 162:return"constructor";case 166:return"new()";case 165:return"()";case 167:return"[]";default:return"<unknown>"}}function O(t){return{text:I(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:J(t.node),spans:L(t),nameSpan:t.name&&j(t.name),childItems:e.map(t.children,O)}}function M(t){return{text:I(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:J(t.node),spans:L(t),childItems:e.map(t.children,(function(t){return{text:I(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:L(t),childItems:_,indent:0,bolded:!1,grayed:!1}}))||_,indent:t.indent,bolded:!1,grayed:!1}}function L(e){var t=[j(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(j(i))}return t}function R(t){if(e.isAmbientModule(t))return e.getTextOfNode(t.name);var r=[];for(r.push(e.getTextOfIdentifierOrLiteral(t.name));t.body&&249===t.body.kind;)t=t.body,r.push(e.getTextOfIdentifierOrLiteral(t.name));return r.join(".")}function B(e){return!e.name||154===e.name.kind}function j(t){return 290===t.kind?e.createTextSpanFromRange(t):e.createTextSpanFromNode(t,i)}function J(t){return t.parent&&242===t.parent.kind&&(t=t.parent),e.getNodeModifiers(t)}function z(t){var r=t.parent;if(t.name&&e.getFullWidth(t.name)>0)return U(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return U(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&62===r.operatorToken.kind)return p(r.left).replace(s,"");if(e.isPropertyAssignment(r))return p(r.name);if(512&e.getModifierFlags(t))return"default";if(e.isClassLike(t))return"<class>";if(e.isCallExpression(r)){var n=function t(r){if(e.isIdentifier(r))return r.text;if(e.isPropertyAccessExpression(r)){var n=t(r.expression),i=r.name.text;return void 0===n?i:n+"."+i}return}(r.expression);if(void 0!==n)return(n=U(n)).length>c?n+" callback":n+"("+U(e.mapDefined(r.arguments,(function(t){return e.isStringLiteralLike(t)?t.getText(i):void 0})).join(", "))+") callback"}return"<function>"}function U(e){return(e=e.length>c?e.substring(0,c)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(d||(d={})),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,l=[];i&&l.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 u(e.importClause.namedBindings.name,t.importClause.namedBindings.name)}));v<h.length;v++){var b=h[v];l.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,C=g;S<C.length;S++){N=C[S];D.push(e.createImportSpecifier(e.createIdentifier("default"),N.importClause.name))}D.push.apply(D,e.flatMap(y,(function(e){return e.importClause.namedBindings.elements})));var T=s(D),k=g.length>0?g[0]:y[0],E=0===T.length?x?void 0:e.createNamedImports(e.emptyArray):0===y.length?e.createNamedImports(T):e.updateNamedImports(y[0].importClause.namedBindings,T);f&&x&&E?(l.push(o(k,x,void 0)),l.push(o(null!==(r=y[0])&&void 0!==r?r:k,void 0,E))):l.push(o(k,x,E))}}else{var N=g[0];l.push(o(N,N.importClause.name,m[0].importClause.namedBindings))}}return l}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.updateExportDeclaration(p,p.decorators,p.modifiers,p.exportClause&&(e.isNamedExports(p.exportClause)?e.updateNamedExports(p.exportClause,d):e.updateNamespaceExport(p.exportClause,p.exportClause.name)),p.moduleSpecifier,p.isTypeOnly))}}return o}function o(t,r,n){return e.updateImportDeclaration(t,t.decorators,t.modifiers,e.updateImportClause(t.importClause,r,n,t.importClause.isTypeOnly),t.moduleSpecifier)}function s(t){return e.stableSort(t,(function(e,t){return u(e.propertyName||e.name,t.propertyName||t.name)||u(e.name,t.name)}))}function c(t,r){var i=n(t),a=n(r);return e.compareBooleans(void 0===i,void 0===a)||e.compareBooleans(e.isExternalModuleNameRelative(i),e.isExternalModuleNameRelative(a))||e.compareStringsCaseInsensitive(i,a)}function u(t,r){return e.compareStringsCaseInsensitive(t.text,r.text)}t.organizeImports=function(t,s,u,l,_){var d=e.textChanges.ChangeTracker.fromContext({host:u,formatContext:s,preferences:_}),p=function(n){return i(function(t,n,i){for(var a=i.getTypeChecker(),s=a.getJsxNamespace(n),c=!!(2&n.transformFlags),u=[],l=0,_=t;l<_.length;l++){var d=_[l],p=d.importClause,f=d.moduleSpecifier;if(p){var g=p.name,m=p.namedBindings;if(g&&!v(g)&&(g=void 0),m)if(e.isNamespaceImport(m))v(m.name)||(m=void 0);else{var y=m.elements.filter((function(e){return v(e.name)}));y.length<m.elements.length&&(m=y.length?e.updateNamedImports(m,y):void 0)}g||m?u.push(o(d,g,m)):r(n,f)&&(n.isDeclarationFile?u.push(e.createImportDeclaration(d.decorators,d.modifiers,void 0,f)):u.push(d))}else u.push(d)}return u;function v(t){return c&&t.text===s||e.FindAllReferences.Core.isSymbolReferencedInFile(t,a,n)}}(n,t,l))};y(t.statements.filter(e.isImportDeclaration),p),y(t.statements.filter(e.isExportDeclaration),a);for(var f=0,g=t.statements.filter(e.isAmbientModule);f<g.length;f++){var m=g[f];if(m.body)y(m.body.statements.filter(e.isImportDeclaration),p),y(m.body.statements.filter(e.isExportDeclaration),a)}return d.getChanges();function y(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 c(e[0].moduleSpecifier,t[0].moduleSpecifier)})),l=e.flatMap(o,(function(e){return n(e[0].moduleSpecifier)?i(e):e}));0===l.length?d.delete(t,r[0]):d.replaceNodeWithNodes(t,r[0],l,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(u,s.options)});for(var _=1;_<r.length;_++)d.deleteNode(t,r[_])}}},t.coalesceImports=i,t.coalesceExports=a,t.compareModuleSpecifiers=c}(e.OrganizeImports||(e.OrganizeImports={}))}(d||(d={})),function(e){!function(t){t.collectElements=function(t,r){var u=[];return function(t,r,n){var u=40,l=0,_=o(t.statements,[t.endOfFileToken]),d=_.length;for(;l<d;){for(;l<d&&!e.isAnyImportSyntax(_[l]);)g(_[l]),l++;if(l===d)break;for(var p=l;l<d&&e.isAnyImportSyntax(_[l]);)i(_[l],t,r,n),l++;var f=l-1;f!==p&&n.push(a(e.findChildOfKind(_[p],96,t).getStart(t),_[f].getEnd(),"imports"))}function g(o){var l;if(0!==u){r.throwIfCancellationRequested(),(e.isDeclaration(o)||1===o.kind)&&i(o,t,r,n),function(t){if(!e.isFunctionExpression(t)&&!e.isArrowFunction(t))return!1;var r=e.findAncestor(t,e.isVariableStatement);return!!r&&e.getSingleInitializerOfVariableStatementOrPropertyDeclaration(r)===t}(o)&&i(o.parent.parent.parent,t,r,n);var _=function(t,r){switch(t.kind){case 223:if(e.isFunctionLike(t.parent))return function(t,r,n){var i=e.isNodeArrayMultiLine(t.parameters,n)?e.findChildOfKind(t,20,n):e.findChildOfKind(r,18,n),a=e.findChildOfKind(r,19,n);return i&&a&&s(i,a,t,n,202!==t.kind)}(t.parent,t,r);switch(t.parent.kind){case 228:case 231:case 232:case 230:case 227:case 229:case 236:case 280:return l(t.parent);case 240:var n=t.parent;if(n.tryBlock===t)return l(t.parent);if(n.finallyBlock===t){var i=e.findChildOfKind(n,92,r);if(i)return l(i)}default:return c(e.createTextSpanFromNode(t,r),"code")}case 250:return l(t.parent);case 245:case 214:case 246:case 248:case 251:case 173:return l(t);case 277:case 278:return(o=t.statements).length?c(e.createTextSpanFromRange(o),"code"):void 0;case 193:return u(t);case 192:return u(t,22);case 266:return function(t){var n=e.createTextSpanFromBounds(t.openingElement.getStart(r),t.closingElement.getEnd()),i=t.openingElement.tagName.getText(r);return c(n,"code",n,!1,"<"+i+">...</"+i+">")}(t);case 270:return function(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return c(n,"code",n,!1,"<>...</>")}(t);case 267:case 268:return function(e){if(0===e.properties.length)return;return a(e.getStart(r),e.getEnd(),"code")}(t.attributes);case 211:case 14:return function(e){if(14===e.kind&&0===e.text.length)return;return a(e.getStart(r),e.getEnd(),"code")}(t)}var o;function u(t,r){return void 0===r&&(r=18),l(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function l(n,i,a,o,c){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===c&&(c=18===o?19:23);var u=e.findChildOfKind(t,o,r),l=e.findChildOfKind(t,c,r);return u&&l&&s(u,l,n,r,i,a)}}(o,t);_&&n.push(_),u--,e.isCallExpression(o)?(u++,g(o.expression),u--,o.arguments.forEach(g),null===(l=o.typeArguments)||void 0===l||l.forEach(g)):e.isIfStatement(o)&&o.elseStatement&&e.isIfStatement(o.elseStatement)?(g(o.expression),g(o.thenStatement),u++,g(o.elseStatement),u--):o.forEachChild(g),u++}}}(t,r,u),function(t,r){for(var i=[],a=t.getLineStarts(),o=0,s=a;o<s.length;o++){var u=s[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(c(p,"region",p,!1,_[2]||"#region"))}}}(t,u),u.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 c(e.createTextSpanFromBounds(t,r),n)}function s(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),c(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function c(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={}))}(d||(d={})),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(T(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(T(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&&C(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 T(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))&&T(e,l,r,t)}function S(e,t,r){var n=l(e.charCodeAt(r-1));return l(e.charCodeAt(r))&&(!t||!n)}function C(e,t,r){for(var n=e;n<t;n++)if(!r(n))return!1;return!0}function T(e,t,r,n){return void 0===r&&(r=0),void 0===n&&(n=e.length),C(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=e.createMap(),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}(d||(d={})),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 130===t&&(135===(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(96===t){if(20===(t=_())){if(10===(t=_())||14===t)return p(),!0}else{if(10===t)return p(),!0;145===t&&e.scanner.lookAhead((function(){var t=e.scanner.scan();return 149!==t&&(41===t||18===t||75===t||e.isKeyword(t))}))&&(t=_());if(75===t||e.isKeyword(t))if(149===(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&&149===(t=_())&&10===(t=_())&&p()}else 41===t&&123===(t=_())&&(75===(t=_())||e.isKeyword(t))&&149===(t=_())&&10===(t=_())&&p()}return!0}return!1}function y(){var t=e.scanner.getToken();if(89===t){if(f(),145===(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&&149===(t=_())&&10===(t=_())&&p()}else if(41===t)149===(t=_())&&10===(t=_())&&p();else if(96===t){if(145===(t=_()))e.scanner.lookAhead((function(){var t=e.scanner.scan();return 75===t||e.isKeyword(t)}))&&(t=_());if((75===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 139===n&&(20===(n=_())&&(10===(n=_())||r&&14===n)&&p(),!0)}function h(){var t=e.scanner.getToken();if(75===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 C=0,T=i;C<T.length;C++){0===(D=T[C]).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}}}(d||(d={})),function(e){!function(t){function r(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t)}}function n(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 75:case 76:case 10:case 14:case 104: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)return;var u=c.declarations;if(!u||0===u.length)return;if(u.some(o))return r(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(e.isIdentifier(t)&&84===t.originalKeywordKind&&c.parent&&1536&c.parent.flags)return;if(e.isStringLiteralLike(t)&&e.tryGetImportFromModuleSpecifier(t))return s&&s.allowRenameOfImportPath?function(t,n,i){if(!e.isExternalModuleNameRelative(t.text))return r(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(n)+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 l=e.SymbolDisplay.getSymbolKind(i,c,t),_=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteralLike(t)&&154===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0,d=_||i.symbolToString(c),p=_||i.getFullyQualifiedName(c);return function(e,t,r,i,a,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:n(a,o)}}(d,p,l,e.SymbolDisplay.getSymbolModifiers(c),t,a)}(s,t.getTypeChecker(),i,(function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}),o);if(c)return c}return r(e.Diagnostics.You_cannot_rename_this_element)}}(e.Rename||(e.Rename={}))}(d||(d={})),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={textSpan:e.createTextSpanFromBounds(n.getFullStart(),n.getEnd())},o=n;e:for(;;){var c=i(o);if(!c.length)break;for(var _=0;_<c.length;_++){var d=c[_-1],p=c[_],f=c[_+1];if(p.getStart(n)>t)break e;if(r(n,t,p)){if(e.isBlock(p)||e.isTemplateSpan(p)||e.isTemplateHead(p)||e.isTemplateTail(p)||d&&e.isTemplateHead(d)||e.isVariableDeclarationList(p)&&e.isVariableStatement(o)||e.isSyntaxList(p)&&e.isVariableDeclarationList(o)||e.isVariableDeclaration(p)&&e.isSyntaxList(o)&&1===c.length){o=p;break}if(e.isTemplateSpan(o)&&f&&e.isTemplateMiddleOrTemplateTail(f))h(p.getFullStart()-"${".length,f.getStart()+"}".length);var g=e.isSyntaxList(p)&&u(d)&&l(f)&&!e.positionsAreOnSameLine(d.getStart(),f.getStart(),n),m=e.hasJSDocNodes(p)&&p.jsDoc[0].getStart(),y=g?d.getEnd():p.getStart(),v=g?f.getStart():p.getEnd();e.isNumber(m)&&h(m,v),h(y,v),(e.isStringLiteral(p)||e.isTemplateLiteral(p))&&h(y+1,v-1),o=p;break}if(_===c.length-1)break e}}return a;function h(r,n){if(r!==n){var i=e.createTextSpanFromBounds(r,n);(!a||!e.textSpansEqual(i,a.textSpan)&&e.textSpanIntersectsWithPosition(i,t))&&(a=s({textSpan:i},a&&{parent:a}))}}};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],s=r.slice(1),u=e.Debug.checkDefined(s.pop());e.Debug.assertEqual(i.kind,18),e.Debug.assertEqual(u.kind,19);var l=a(s,(function(e){return e===t.readonlyToken||138===e.kind||e===t.questionToken||57===e.kind}));return[i,c(o(a(l,(function(e){var t=e.kind;return 22===t||155===t||23===t})),(function(e){return 58===e.kind}))),u]}if(e.isPropertySignature(t))return o(s=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(c(r)),r=void 0),n.push(o))}return r&&n.push(c(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],s=e.last(t),u=n&&26===s.kind,l=t.slice(i+1,u?t.length-1:void 0),_=e.compact([a.length?c(a):void 0,o,l.length?c(l):void 0]);return u?_.concat(s):_}function c(t){e.Debug.assertGreaterThanOrEqual(t.length,1);var r=e.createNode(324,t[0].pos,e.last(t).end);return r._children=t,r}function u(e){var t=e&&e.kind;return 18===t||22===t||20===t||268===t}function l(e){var t=e&&e.kind;return 19===t||23===t||21===t||269===t}}(e.SmartSelectionRange||(e.SmartSelectionRange={}))}(d||(d={})),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 s(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)&&198===i.parent.kind){var p=i,f=p.parent;return e.Debug.assert(211===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 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();211===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,o,l){var _=t.getTypeChecker(),d=e.findTokenOnLeftOfPosition(r,n);if(d){var p=!!o&&"characterTyped"===o.kind;if(!p||!e.isInString(r,n,d)&&!e.isInComment(r,n)){var m=!!o&&"invoked"===o.kind,h=function(t,r,n,i,o){for(var l=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 o=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 200:case 161:case 201:case 202:var o=a(t,r);if(!o)return;var s=o.argumentIndex,u=o.argumentCount,l=o.argumentsSpan,_=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return _&&{contextualType:_,argumentIndex:s,argumentCount:u,argumentsSpan:l};case 209:var d=function t(r){return e.isBinaryExpression(r.parent)?t(r.parent):r}(i),p=n.getContextualType(d),f=20===t.kind?0:c(i)-1,g=c(d);return p&&{contextualType:p,argumentIndex:f,argumentCount:g,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}(t,n,i);if(!o)return;var s=o.contextualType,l=o.argumentIndex,_=o.argumentCount,d=o.argumentsSpan,p=s.getCallSignatures();return 1!==p.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(p),node:t,symbol:u(s.symbol)},argumentsSpan:d,argumentIndex:l,argumentCount:_}}(t,0,n,i)||s(t,r,n)}(t,r,n,i);if(o)return{value:o}},_=t;!e.isSourceFile(_)&&(o||!e.isBlock(_));_=_.parent){var d=l(_);if("object"===typeof d)return d.value}return}(d,n,r,_,m);if(h){l.throwIfCancellationRequested();var b=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)}}(h,_,r,d,p);return l.throwIfCancellationRequested(),b?_.runWithCancellationToken(l,(function(e){return 0===b.kind?y(b.candidates,b.resolvedSignature,h,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}(b.symbol,h,r,e)})):e.isSourceFileJS(r)?function(t,r,n){if(2===t.invocation.kind)return;var i=f(t.invocation),a=e.isIdentifier(i)?i.text: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)}))}))}))}(h,t,l):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(n||(n={})),t.getArgumentInfoForCompletions=function(e,t,r){var n=s(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){var s=n.isTypeParameterList,c=n.argumentCount,u=n.argumentsSpan,l=n.invocation,_=n.argumentIndex,d=g(l),p=2===l.kind?l.symbol:a.getSymbolAtLocation(f(l)),m=p?e.symbolToDisplayParts(a,p,void 0,void 0):e.emptyArray,y=t.map((function(t){return function(t,r,n,i,a,s){var c=(n?b:x)(t,i,a,s),u=c.isVariadic,l=c.parameters,_=c.prefix,d=c.suffix,p=o(r,_),f=o(d,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)),g=t.getDocumentationComment(i),m=t.getJsDocTags();return{isVariadic:u,prefixDisplayParts:p,suffixDisplayParts:f,separatorDisplayParts:h,parameters:l,documentation:g,tags:m}}(t,m,s,a,d,i)}));0!==_&&e.Debug.assertLessThan(_,c);var v=t.indexOf(r);return e.Debug.assert(-1!==v),{items:y,applicableSpan:u,selectedItemIndex:v,argumentIndex:_,argumentCount:c}}function v(t,r,n,i,a){var s=e.symbolToDisplayParts(n,t),c=e.createPrinter({removeComments:!0}),u=r.map((function(e){return D(e,n,i,a,c)})),l=t.getDocumentationComment(n),_=t.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:o(s,[e.punctuationPart(29)]),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:h,parameters:u,documentation:l,tags:_}}var h=[e.punctuationPart(27),e.spacePart()];function b(t,r,n,i){var a=(t.target||t).typeParameters,s=e.createPrinter({removeComments:!0}),c=(a||e.emptyArray).map((function(e){return D(e,r,n,i,s)})),u=e.mapToDisplayParts((function(a){var c=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,n,m)]:[],u=e.createNodeArray(o(c,r.getExpandedParameters(t).map((function(e){return r.symbolToParameterDeclaration(e,n,m)}))));s.writeList(2576,u,i,a)}));return{isVariadic:!1,parameters:c,prefix:[e.punctuationPart(29)],suffix:o([e.punctuationPart(31)],u)}}function x(t,r,n,i){var a=r.hasEffectiveRestParameter(t),s=e.createPrinter({removeComments:!0}),c=e.mapToDisplayParts((function(a){if(t.typeParameters&&t.typeParameters.length){var o=e.createNodeArray(t.typeParameters.map((function(e){return r.typeParameterToDeclaration(e,n,m)})));s.writeList(53776,o,i,a)}}));return{isVariadic:a,parameters:r.getExpandedParameters(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);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:o,isOptional:s}}(t,r,n,i,s)})),prefix:o(c,[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}}}(e.SignatureHelp||(e.SignatureHelp={}))}(d||(d={})),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=e.createMap(),a=e.createMap();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=u.outFile||u.out,_=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}}}(d||(d={})),function(e){var t=e.createMap();function r(t){switch(t.kind){case 254:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&r.namedBindings&&256===r.namedBindings.kind&&e.isStringLiteral(n)?r.namedBindings.name:void 0;case 253:return t.name;default:return}}function n(t){return e.isReturnStatement(t)&&!!t.expression&&i(t.expression)}function i(t){if(!a(t)||!t.arguments.every(o))return!1;for(var r=t.expression;a(r)||e.isPropertyAccessExpression(r);){if(e.isCallExpression(r)&&!r.arguments.every(o))return!1;r=r.expression}return!0}function a(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 100===t.kind||e.isIdentifier(t)&&"undefined"===t.text})))}(t)||e.hasPropertyAccessExpressionWithName(t,"catch"))}function o(e){switch(e.kind){case 244:case 201:case 202:t.set(s(e),!0);case 100:case 75:return!0;default:return!1}}function s(e){return e.pos.toString()+":"+e.end.toString()}e.computeSuggestionDiagnostics=function(i,a,o){a.getSemanticDiagnostics(i,o);var c,u=[],l=a.getTypeChecker();i.commonJsModuleIndicator&&(e.programContainsEs6Modules(a)||e.compilerOptionsIndicateEs6Modules(a.getCompilerOptions()))&&function(t){return t.statements.some((function(t){switch(t.kind){case 225:return t.declarationList.declarations.some((function(t){return!!t.initializer&&e.isRequireCall(function t(r){return e.isPropertyAccessExpression(r)?t(r.expression):r}(t.initializer),!0)}));case 226:var r=t.expression;if(!e.isBinaryExpression(r))return e.isRequireCall(r,!0);var n=e.getAssignmentDeclarationKind(r);return 1===n||2===n;default:return!1}}))}(i)&&u.push(e.createDiagnosticForNode((c=i.commonJsModuleIndicator,e.isBinaryExpression(c)?c.left:c),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var _=e.isSourceFileJS(i);if(t.clear(),function r(a){if(_)(function(t){var r,n,i,a;if(201===t.kind){if(e.isVariableDeclaration(t.parent)&&(null===(r=t.symbol.members)||void 0===r?void 0:r.size))return!0;var o=e.getDeclarationOfExpando(t),s=null===o||void 0===o?void 0:o.symbol;return!(!s||!((null===(n=s.exports)||void 0===n?void 0:n.size)||(null===(i=s.members)||void 0===i?void 0:i.size)))}if(244===t.kind)return!!(null===(a=t.symbol.members)||void 0===a?void 0:a.size);return!1})(a)&&u.push(e.createDiagnosticForNode(e.isVariableDeclaration(a.parent)?a.parent.name:a,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(a)&&a.parent===i&&2&a.declarationList.flags&&1===a.declarationList.declarations.length){var o=a.declarationList.declarations[0].initializer;o&&e.isRequireCall(o,!0)&&u.push(e.createDiagnosticForNode(o,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(a)&&u.push(e.createDiagnosticForNode(a.name||a,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(a)&&function(r,i,a){(function(t,r){return!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&(i=t.body,!!e.forEachReturnStatement(i,n))&&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);var i})(r,i)&&!t.has(s(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))}(a,l,u);a.forEachChild(r)}(i),e.getAllowSyntheticDefaultImports(a.getCompilerOptions()))for(var d=0,p=i.imports;d<p.length;d++){var f=p[d],g=r(e.importFromModuleSpecifier(f));if(g){var m=e.getResolvedModule(i,f.text),y=m&&a.getSourceFile(m.resolvedFileName);y&&y.externalModuleIndicator&&e.isExportAssignment(y.externalModuleIndicator)&&y.externalModuleIndicator.isExportEquals&&u.push(e.createDiagnosticForNode(g,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(u,i.bindSuggestionDiagnostics),e.addRange(u,a.getSuggestionDiagnostics(i,o)),u.sort((function(e,t){return e.start-t.start}))},e.isReturnStatementWithFixablePromiseHandler=n,e.isFixablePromiseHandler=i}(d||(d={})),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,214)?"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(104===n.kind&&e.isExpression(n))return"parameter";var o=e.getCombinedLocalAndExportSymbolFlags(r);if(3&o)return e.isFirstDeclarationOfSymbolParameter(r)?"parameter":r.valueDeclaration&&e.isVarConst(r.valueDeclaration)?"const":e.forEach(r.declarations,e.isLet)?"let":a(r)?"local var":"var";if(16&o)return a(r)?"local function":"function";if(32768&o)return"getter";if(65536&o)return"setter";if(8192&o)return"method";if(16384&o)return"constructor";if(4&o){if(33554432&o&&6&r.checkFlags){var s=e.forEach(t.getRootSymbols(r),(function(t){var r=t.getFlags();if(98311&r)return"property";e.Debug.assert(!!(8208&r))}));return s||(t.getTypeOfSymbolAtLocation(r,n).getCallSignatures().length?"method":"property")}switch(n.parent&&n.parent.kind){case 268:case 266:case 267:return 75===n.kind?"property":"JSX attribute";case 273:return"JSX attribute";default:return"property"}}return""}function a(t){return!t.parent&&e.forEach(t.declarations,(function(t){if(201===t.kind)return!0;if(242!==t.kind&&244!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(290===r.kind||250===r.kind)return!1;return!0}))}t.getSymbolKind=n,t.getSymbolModifiers=function(t){var r=t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):"",n=t&&16777216&t.flags?"optional":"";return r&&n?r+","+n:r||n},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=104===u.kind&&e.isInExpressionContext(u),S=!1;if(104===u.kind&&!D)return{displayParts:[e.keywordPart(104)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==b||32&h||2097152&h){"getter"!==b&&"setter"!==b||(b="property");var C=void 0;if(d=D?a.getTypeAtLocation(u):a.getTypeOfSymbolAtLocation(o.exportSymbol||o,u),u.parent&&194===u.parent.kind){var T=u.parent.name;(T===u||T&&0===T.getFullWidth())&&(u=u.parent)}var k=void 0;if(e.isCallOrNewExpression(u)?k=u:e.isCallExpressionTarget(u)||e.isNewExpressionTarget(u)?k=u.parent:u.parent&&e.isJsxOpeningLikeElement(u.parent)&&e.isFunctionLike(o.valueDeclaration)&&(k=u.parent),k){C=a.getResolvedSignature(k);var E=197===k.kind||e.isCallExpression(k)&&102===k.expression.kind,N=E?d.getConstructSignatures():d.getCallSignatures();if(e.contains(N,C.target)||e.contains(N,C)||(C=N.length?N[0]:void 0),C){switch(E&&32&h?(b="constructor",Q(d.symbol,b)):2097152&h?(X(b="alias"),m.push(e.spacePart()),E&&(m.push(e.keywordPart(99)),m.push(e.spacePart())),G(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())),E&&(m.push(e.keywordPart(99)),m.push(e.spacePart())),Y(C,N,262144);break;default:Y(C,N)}x=!0,S=N.length>1}}else if(e.isNameOfFunctionDeclaration(u)&&!(98304&h)||129===u.kind&&162===u.parent.kind){var A=u.parent;if(o.declarations&&e.find(o.declarations,(function(e){return e===(129===u.kind?A.parent:A)}))){N=162===A.kind?d.getNonNullableType().getConstructSignatures():d.getNonNullableType().getCallSignatures();C=a.isImplementationOfOverload(A)?N[0]:a.getSignatureFromDeclaration(A),162===A.kind?(b="constructor",Q(d.symbol,b)):Q(165!==A.kind||2048&d.symbol.flags||4096&d.symbol.flags?o:d.symbol,b),Y(C,N),x=!0,S=N.length>1}}}if(32&h&&!x&&!D&&(W(),e.getDeclarationOfKind(o,214)?X("local class"):m.push(e.keywordPart(80)),m.push(e.spacePart()),G(o),Z(o,s)),64&h&&2&l&&(q(),m.push(e.keywordPart(114)),m.push(e.spacePart()),G(o),Z(o,s)),524288&h&&2&l&&(q(),m.push(e.keywordPart(145)),m.push(e.spacePart()),G(o),Z(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&&(q(),e.some(o.declarations,(function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)}))&&(m.push(e.keywordPart(81)),m.push(e.spacePart())),m.push(e.keywordPart(88)),m.push(e.spacePart()),G(o)),1536&h&&!D){q();var F=(U=e.getDeclarationOfKind(o,249))&&U.name&&75===U.name.kind;m.push(e.keywordPart(F?136:135)),m.push(e.spacePart()),G(o)}if(262144&h&&2&l)if(q(),m.push(e.punctuationPart(20)),m.push(e.textPart("type parameter")),m.push(e.punctuationPart(21)),m.push(e.spacePart()),G(o),o.parent)H(),G(o.parent,c),Z(o.parent,c);else{var P=e.getDeclarationOfKind(o,155);if(void 0===P)return e.Debug.fail();if(U=P.parent)if(e.isFunctionLikeKind(U.kind)){H();C=a.getSignatureFromDeclaration(U);166===U.kind?(m.push(e.keywordPart(99)),m.push(e.spacePart())):165!==U.kind&&U.name&&G(U.symbol),e.addRange(m,e.signatureToDisplayParts(a,C,s,32))}else 247===U.kind&&(H(),m.push(e.keywordPart(145)),m.push(e.spacePart()),G(U.symbol),Z(U.symbol,s))}if(8&h&&(b="enum member",Q(o,"enum member"),284===(U=o.declarations[0]).kind)){var w=a.getConstantValue(U);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&h){if(q(),!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.hasModifier(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}}}switch(o.declarations[0].kind){case 252:m.push(e.keywordPart(89)),m.push(e.spacePart()),m.push(e.keywordPart(136));break;case 259:m.push(e.keywordPart(89)),m.push(e.spacePart()),m.push(e.keywordPart(o.declarations[0].isExportEquals?62:84));break;case 263:m.push(e.keywordPart(89));break;default:m.push(e.keywordPart(96))}m.push(e.spacePart()),G(o),e.forEach(o.declarations,(function(t){if(253===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(139)),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()),G(n,c))}return!0}}))}if(!x)if(""!==b){if(d)if(D?(q(),m.push(e.keywordPart(104))):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);V().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(m,j)}else e.addRange(m,e.typeToDisplayParts(a,d,c));else if(16&h||8192&h||16384&h||131072&h||98304&h||"method"===b){(N=d.getNonNullableType().getCallSignatures()).length&&(Y(N[0],N),S=N.length>1)}}else b=n(a,o,u);if(0!==y.length||S||(y=o.getDocumentationComment(a)),0===y.length&&4&h&&o.parent&&e.forEach(o.parent.declarations,(function(e){return 290===e.kind})))for(var J=0,z=o.declarations;J<z.length;J++){var U;if((U=z[J]).parent&&209===U.parent.kind){var K=a.getSymbolAtLocation(U.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 V(){return p||(p=e.createPrinter({removeComments:!0})),p}function q(){m.length&&m.push(e.lineBreakPart()),W()}function W(){_&&(X("alias"),m.push(e.spacePart()))}function H(){m.push(e.spacePart()),m.push(e.keywordPart(97)),m.push(e.spacePart())}function G(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){q(),r&&(X(r),t&&!e.some(t.declarations,(function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name}))&&(m.push(e.spacePart()),G(t)))}function X(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 Y(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 Z(t,n){var i=e.mapToDisplayParts((function(i){var o=a.symbolToTypeParameterDeclarations(t,n,r);V().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(m,i)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(d||(d={})),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=e.createMapFromTemplate(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}(d||(d={})),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={}))}(d||(d={})),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 273:case 268:case 269:case 267:return e.isKeyword(t.kind)||75===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}});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={}))}(d||(d={})),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={}))}(d||(d={})),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 s(e,t){return function(r){return r.options&&r.options[e]===t}}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]}}function _(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]||t.TokensAreOnSameLine()}}function d(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!!t.options[e]}}function p(e){return 230===e.contextNode.kind}function f(e){return!p(e)}function g(e){switch(e.contextNode.kind){case 209:return 27!==e.contextNode.operatorToken.kind;case 210:case 180:case 217:case 263:case 258:case 168:case 178:case 179:return!0;case 191:case 247:case 253:case 242:case 156:case 284:case 159:case 158:return 62===e.currentTokenSpan.kind||62===e.nextTokenSpan.kind;case 231:case 155:return 97===e.currentTokenSpan.kind||97===e.nextTokenSpan.kind||62===e.currentTokenSpan.kind||62===e.nextTokenSpan.kind;case 232:return 152===e.currentTokenSpan.kind||152===e.nextTokenSpan.kind}return!1}function m(e){return!g(e)}function y(e){return!v(e)}function v(t){var r=t.contextNode.kind;return 159===r||158===r||156===r||242===r||e.isFunctionLikeKind(r)}function h(e){return 210===e.contextNode.kind||180===e.contextNode.kind}function b(e){return e.TokensAreOnSameLine()||T(e)}function x(e){return 189===e.contextNode.kind||186===e.contextNode.kind||function(e){return C(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function D(e){return T(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function S(e){return C(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function C(e){return k(e.contextNode)}function T(e){return k(e.nextTokenParent)}function k(e){if(P(e))return!0;switch(e.kind){case 223:case 251:case 193:case 250:return!0}return!1}function E(e){switch(e.contextNode.kind){case 244:case 161:case 160:case 163:case 164:case 165:case 201:case 162:case 202:case 246:return!0}return!1}function N(e){return!E(e)}function A(e){return 244===e.contextNode.kind||201===e.contextNode.kind}function F(e){return P(e.contextNode)}function P(e){switch(e.kind){case 245:case 214:case 246:case 248:case 173:case 249:case 260:case 261:case 254:case 257:return!0}return!1}function w(e){switch(e.currentTokenParent.kind){case 245:case 249:case 248:case 280:case 250:case 237:return!0;case 223:var t=e.currentTokenParent.parent;if(!t||202!==t.kind&&201!==t.kind)return!0}return!1}function I(e){switch(e.contextNode.kind){case 227:case 237:case 230:case 231:case 232:case 229:case 240:case 228:case 236:case 280:return!0;default:return!1}}function O(e){return 193===e.contextNode.kind}function M(e){return function(e){return 196===e.contextNode.kind}(e)||function(e){return 197===e.contextNode.kind}(e)}function L(e){return 27!==e.currentTokenSpan.kind}function R(e){return 23!==e.nextTokenSpan.kind}function B(e){return 21!==e.nextTokenSpan.kind}function j(e){return 202===e.contextNode.kind}function J(e){return 188===e.contextNode.kind}function z(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function U(e){return 266!==e.contextNode.kind&&270!==e.contextNode.kind}function K(e){return 276===e.contextNode.kind||275===e.contextNode.kind}function V(e){return 273===e.nextTokenParent.kind}function q(e){return 273===e.contextNode.kind}function W(e){return 267===e.contextNode.kind}function H(e){return!E(e)&&!T(e)}function G(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&Q(e.currentTokenParent)&&!Q(e.nextTokenParent)}function Q(t){for(;e.isExpressionNode(t);)t=t.parent;return 157===t.kind}function X(e){return 243===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Y(e){return 2!==e.formattingRequestKind}function Z(e){return 249===e.contextNode.kind}function $(e){return 173===e.contextNode.kind}function ee(e){return 166===e.contextNode.kind}function te(e,t){if(29!==e.kind&&31!==e.kind)return!1;switch(t.kind){case 169:case 199:case 247:case 245:case 214:case 246:case 244:case 201:case 202:case 161:case 160:case 165:case 166:case 196:case 197:case 216:return!0;default:return!1}}function re(e){return te(e.currentTokenSpan,e.currentTokenParent)||te(e.nextTokenSpan,e.nextTokenParent)}function ne(e){return 199===e.contextNode.kind}function ie(e){return 110===e.currentTokenSpan.kind&&205===e.currentTokenParent.kind}function ae(e){return 212===e.contextNode.kind&&void 0!==e.contextNode.expression}function oe(e){return 218===e.contextNode.kind}function se(e){return!function(e){switch(e.contextNode.kind){case 227:case 230:case 231:case 232:case 228:case 229: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:222!==r&&26!==r&&(246===t.contextNode.kind||247===t.contextNode.kind?!e.isPropertySignature(t.currentTokenParent)||!!t.currentTokenParent.type||20!==r:e.isPropertyDeclaration(t.currentTokenParent)?!t.currentTokenParent.initializer:230!==t.currentTokenParent.kind&&224!==t.currentTokenParent.kind&&222!==t.currentTokenParent.kind&&22!==r&&20!==r&&39!==r&&40!==r&&43!==r&&13!==r&&27!==r&&211!==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=[],C=0;C<=152;C++)1!==C&&i.push(C);function k(){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 P={tokens:i,isSpecific:!1},Q=n(o(i,[3])),te=n(o(i,[1])),le=a(77,152),_e=a(29,74),de=[97,98,152,123,133],pe=o([75],e.typeKeywords),fe=Q,ge=n([75,3,80,89,96]),me=n([21,3,86,107,92,87]),ye=[r("IgnoreBeforeComment",P,[2,3],t.anyContext,1),r("IgnoreAfterLineComment",2,P,t.anyContext,1),r("NotSpaceBeforeColon",P,58,[z,m,y],16),r("SpaceAfterColon",58,P,[z,m],4),r("NoSpaceBeforeQuestionMark",P,57,[z,m],16),r("SpaceAfterQuestionMarkInConditionalOperator",57,P,[z,h],4),r("NoSpaceAfterQuestionMark",57,P,[z],16),r("NoSpaceBeforeDot",P,[24,28],[z],16),r("NoSpaceAfterDot",[24,28],P,[z],16),r("NoSpaceBetweenImportParenInImportType",96,20,[z,J],16),r("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,75,20,22,18,104,99],[z,m],16),r("NoSpaceAfterUnaryPreincrementOperator",45,[75,20,104,99],[z],16),r("NoSpaceAfterUnaryPredecrementOperator",46,[75,20,104,99],[z],16),r("NoSpaceBeforeUnaryPostincrementOperator",[75,21,23,99],45,[z,se],16),r("NoSpaceBeforeUnaryPostdecrementOperator",[75,21,23,99],46,[z,se],16),r("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[z,g],4),r("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[z,g],4),r("SpaceAfterAddWhenFollowedByPreincrement",39,45,[z,g],4),r("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[z,g],4),r("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[z,g],4),r("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[z,g],4),r("NoSpaceAfterCloseBrace",19,[27,26],[z],16),r("NewLineBeforeCloseBraceInBlockContext",Q,19,[S],8),r("SpaceAfterCloseBrace",19,k(21),[z,w],4),r("SpaceBetweenCloseBraceAndElse",19,87,[z],4),r("SpaceBetweenCloseBraceAndWhile",19,111,[z],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[z,O],16),r("SpaceAfterConditionalClosingParen",21,22,[I],4),r("NoSpaceBetweenFunctionKeywordAndStar",94,41,[A],16),r("SpaceAfterStarInGeneratorDeclaration",41,75,[A],4),r("SpaceAfterFunctionInFuncDecl",94,P,[E],4),r("NewLineAfterOpenBraceInBlockContext",18,P,[S],8),r("SpaceAfterGetSetInMember",[131,142],75,[E],4),r("NoSpaceBetweenYieldKeywordAndStar",121,41,[z,ae],16),r("SpaceBetweenYieldOrYieldStarAndOperand",[121,41],P,[z,ae],4),r("NoSpaceBetweenReturnAndSemicolon",101,26,[z],16),r("SpaceAfterCertainKeywords",[109,105,99,85,101,108,127],P,[z],4),r("SpaceAfterLetConstInVariableDeclaration",[115,81],P,[z,X],4),r("NoSpaceBeforeOpenParenInFuncCall",P,20,[z,M,L],16),r("SpaceBeforeBinaryKeywordOperator",P,de,[z,g],4),r("SpaceAfterBinaryKeywordOperator",de,P,[z,g],4),r("SpaceAfterVoidOperator",110,P,[z,ie],4),r("SpaceBetweenAsyncAndOpenParen",126,20,[j,z],4),r("SpaceBetweenAsyncAndFunctionKeyword",126,[94,75],[z],4),r("NoSpaceBetweenTagAndTemplateString",[75,21],[14,15],[z],16),r("SpaceBeforeJsxAttribute",P,75,[V,z],4),r("SpaceBeforeSlashInJsxOpeningElement",P,43,[W,z],4),r("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[W,z],16),r("NoSpaceBeforeEqualInJsxAttribute",P,62,[q,z],16),r("NoSpaceAfterEqualInJsxAttribute",62,P,[q,z],16),r("NoSpaceAfterModuleImport",[135,139],20,[z],16),r("SpaceAfterCertainTypeScriptKeywords",[122,80,130,84,88,89,90,131,113,96,114,135,136,117,119,118,138,142,120,145,149,134,132],P,[z],4),r("SpaceBeforeCertainTypeScriptKeywords",P,[90,113,149],[z],4),r("SpaceAfterModuleName",10,18,[Z],4),r("SpaceBeforeArrow",P,38,[z],4),r("SpaceAfterArrow",38,P,[z],4),r("NoSpaceAfterEllipsis",25,75,[z],16),r("NoSpaceAfterOptionalParameters",57,[21,27],[z,m],16),r("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[z,$],16),r("NoSpaceBeforeOpenAngularBracket",pe,29,[z,re],16),r("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[z,re],16),r("NoSpaceAfterOpenAngularBracket",29,P,[z,re],16),r("NoSpaceBeforeCloseAngularBracket",P,31,[z,re],16),r("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[z,re,N],16),r("SpaceBeforeAt",[21,75],59,[z],4),r("NoSpaceAfterAt",59,P,[z],16),r("SpaceAfterDecorator",P,[122,75,89,84,80,120,119,117,118,131,142,22,41],[G],4),r("NoSpaceBeforeNonNullAssertionOperator",P,53,[z,oe],16),r("NoSpaceAfterNewKeywordOnConstructorSignature",99,20,[z,ee],16),r("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[z],4)],ve=[r("SpaceAfterConstructor",129,20,[c("insertSpaceAfterConstructor"),z],4),r("NoSpaceAfterConstructor",129,20,[l("insertSpaceAfterConstructor"),z],16),r("SpaceAfterComma",27,P,[c("insertSpaceAfterCommaDelimiter"),z,U,R,B],4),r("NoSpaceAfterComma",27,P,[l("insertSpaceAfterCommaDelimiter"),z,U],16),r("SpaceAfterAnonymousFunctionKeyword",[94,41],20,[c("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),E],4),r("NoSpaceAfterAnonymousFunctionKeyword",[94,41],20,[l("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),E],16),r("SpaceAfterKeywordInControl",le,20,[c("insertSpaceAfterKeywordsInControlFlowStatements"),I],4),r("NoSpaceAfterKeywordInControl",le,20,[l("insertSpaceAfterKeywordsInControlFlowStatements"),I],16),r("SpaceAfterOpenParen",20,P,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),z],4),r("SpaceBeforeCloseParen",P,21,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),z],4),r("SpaceBetweenOpenParens",20,20,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),z],4),r("NoSpaceBetweenParens",20,21,[z],16),r("NoSpaceAfterOpenParen",20,P,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),z],16),r("NoSpaceBeforeCloseParen",P,21,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),z],16),r("SpaceAfterOpenBracket",22,P,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),z],4),r("SpaceBeforeCloseBracket",P,23,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),z],4),r("NoSpaceBetweenBrackets",22,23,[z],16),r("NoSpaceAfterOpenBracket",22,P,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),z],16),r("NoSpaceBeforeCloseBracket",P,23,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),z],16),r("SpaceAfterOpenBrace",18,P,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),x],4),r("SpaceBeforeCloseBrace",P,19,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),x],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[z,O],16),r("NoSpaceAfterOpenBrace",18,P,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),z],16),r("NoSpaceBeforeCloseBrace",P,19,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),z],16),r("SpaceBetweenEmptyBraceBrackets",18,19,[c("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[u("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),z],16),r("SpaceAfterTemplateHeadAndMiddle",[15,16],P,[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),z],4),r("SpaceBeforeTemplateMiddleAndTail",P,[16,17],[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),z],4),r("NoSpaceAfterTemplateHeadAndMiddle",[15,16],P,[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),z],16),r("NoSpaceBeforeTemplateMiddleAndTail",P,[16,17],[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),z],16),r("SpaceAfterOpenBraceInJsxExpression",18,P,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),z,K],4),r("SpaceBeforeCloseBraceInJsxExpression",P,19,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),z,K],4),r("NoSpaceAfterOpenBraceInJsxExpression",18,P,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),z,K],16),r("NoSpaceBeforeCloseBraceInJsxExpression",P,19,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),z,K],16),r("SpaceAfterSemicolonInFor",26,P,[c("insertSpaceAfterSemicolonInForStatements"),z,p],4),r("NoSpaceAfterSemicolonInFor",26,P,[l("insertSpaceAfterSemicolonInForStatements"),z,p],16),r("SpaceBeforeBinaryOperator",P,_e,[c("insertSpaceBeforeAndAfterBinaryOperators"),z,g],4),r("SpaceAfterBinaryOperator",_e,P,[c("insertSpaceBeforeAndAfterBinaryOperators"),z,g],4),r("NoSpaceBeforeBinaryOperator",P,_e,[l("insertSpaceBeforeAndAfterBinaryOperators"),z,g],16),r("NoSpaceAfterBinaryOperator",_e,P,[l("insertSpaceBeforeAndAfterBinaryOperators"),z,g],16),r("SpaceBeforeOpenParenInFuncDecl",P,20,[c("insertSpaceBeforeFunctionParenthesis"),z,E],4),r("NoSpaceBeforeOpenParenInFuncDecl",P,20,[l("insertSpaceBeforeFunctionParenthesis"),z,E],16),r("NewLineBeforeOpenBraceInControl",me,18,[c("placeOpenBraceOnNewLineForControlBlocks"),I,D],8,1),r("NewLineBeforeOpenBraceInFunction",fe,18,[c("placeOpenBraceOnNewLineForFunctions"),E,D],8,1),r("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",ge,18,[c("placeOpenBraceOnNewLineForFunctions"),F,D],8,1),r("SpaceAfterTypeAssertion",31,P,[c("insertSpaceAfterTypeAssertion"),z,ne],4),r("NoSpaceAfterTypeAssertion",31,P,[l("insertSpaceAfterTypeAssertion"),z,ne],16),r("SpaceBeforeTypeAnnotation",P,58,[c("insertSpaceBeforeTypeAnnotation"),z,v],4),r("NoSpaceBeforeTypeAnnotation",P,58,[l("insertSpaceBeforeTypeAnnotation"),z,v],16),r("NoOptionalSemicolon",26,te,[s("semicolons",e.SemicolonPreference.Remove),ce],32),r("OptionalSemicolon",P,te,[s("semicolons",e.SemicolonPreference.Insert),ue],64)],he=[r("NoSpaceBeforeSemicolon",P,26,[z],16),r("SpaceBeforeOpenBraceInControl",me,18,[_("placeOpenBraceOnNewLineForControlBlocks"),I,Y,b],4,1),r("SpaceBeforeOpenBraceInFunction",fe,18,[_("placeOpenBraceOnNewLineForFunctions"),E,T,Y,b],4,1),r("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",ge,18,[_("placeOpenBraceOnNewLineForFunctions"),F,Y,b],4,1),r("NoSpaceBeforeComma",P,27,[z],16),r("NoSpaceBeforeOpenBracket",k(126,78),22,[z],16),r("NoSpaceAfterCloseBracket",23,P,[z,H],16),r("SpaceAfterSemicolon",26,P,[z],4),r("SpaceBetweenForAndAwaitKeyword",93,127,[z],4),r("SpaceBetweenStatements",[21,86,87,78],P,[z,U,f],4),r("SpaceAfterTryFinally",[107,92],18,[z],4)];return o(ye,ve,he)}}(e.formatting||(e.formatting={}))}(d||(d={})),function(e){!function(t){var r;function n(){return void 0===r&&(r=function(t){var r=function(e){for(var t=new Array(u*u),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,c=0,_=o.leftTokenRange.tokens;c<_.length;c++)for(var d=_[c],p=0,f=o.rightTokenRange.tokens;p<f.length;p++){var g=f[p],m=a(d,g),y=t[m];void 0===y&&(y=t[m]=[]),l(y,o.rule,s,r,m)}return t}(t);return function(t){var n=r[a(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];if(n){for(var o=[],s=0,c=0,u=n;c<u.length;c++){var l=u[c],_=~i(s);l.action&_&&e.every(l.context,(function(e){return e(t)}))&&(o.push(l),s|=l.action)}if(o.length)return o}}}(t.getAllRules())),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<=152&&r<=152,"Must compute formatting context from tokens"),t*u+r}t.getFormatContext=function(e,t){return{options:e,getRules:n(),host:t}};var o,s=5,c=31,u=153;function l(r,n,i,a,u){var l=3&n.action?i?o.StopRulesSpecific:o.StopRulesAny:n.context!==t.anyContext?i?o.ContextRulesSpecific:o.ContextRulesAny:i?o.NoContextRulesSpecific:o.NoContextRulesAny,_=a[u]||0;r.splice(function(e,t){for(var r=0,n=0;n<=t;n+=s)r+=e&c,e>>=s;return r}(_,l),0,n),a[u]=function(t,r){var n=1+(t>>r&c);return e.Debug.assert((n&c)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),t&~(c<<r)|n<<r}(_,l)}!function(e){e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=1*s]="StopRulesAny",e[e.ContextRulesSpecific=2*s]="ContextRulesSpecific",e[e.ContextRulesAny=3*s]="ContextRulesAny",e[e.NoContextRulesSpecific=4*s]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*s]="NoContextRulesAny"}(o||(o={}))}(e.formatting||(e.formatting={}))}(d||(d={})),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 245:case 246:return e.rangeContainsRange(t.members,r);case 249:var n=t.body;return!!n&&250===n.kind&&e.rangeContainsRange(n.statements,r);case 290:case 223:case 250:return e.rangeContainsRange(t.statements,r);case 280: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=T(i,s,p,y),h=a;e.forEachChild(i,(function(e){S(e,-1,i,v,s,c,!1)}),(function(r){!function(r,n,a,s){e.Debug.assert(e.isNodeArray(r));var c=function(e,t){switch(e.kind){case 162:case 244:case 201:case 161:case 160:case 202:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 196:case 197:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 169:if(e.typeArguments===t)return 29;break;case 173:return 18}return 0}(n,r),u=s,_=a;if(0!==c)for(;o.isOnToken();){if((h=o.readTokenInfo(n)).token.end>r.pos)break;if(h.token.kind===c){_=l.getLineAndCharacterOfPosition(h.token.pos).line,C(h,n,s,n);var d=void 0;if(-1!==b)d=b;else{var p=e.getLineStartPositionForPosition(h.token.pos,l);d=t.SmartIndenter.findFirstNonWhitespaceColumn(p,h.token.pos,l,m)}u=T(n,a,d,m.indentSize)}else C(h,n,s,n)}for(var f=-1,g=0;g<r.length;g++){var y=r[g];f=S(y,f,i,u,_,_,!0,0===g)}var v=function(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}(c);if(0!==v&&o.isOnToken()){var h;if(27===(h=o.readTokenInfo(n)).token.kind&&e.isCallLikeExpression(n)){var x=l.getLineAndCharacterOfPosition(h.token.pos).line;_!==x&&(o.advance(),h=o.isOnToken()?o.readTokenInfo(n):void 0)}h&&h.token.kind===v&&e.rangeContainsRange(n,h.token)&&C(h,n,u,n,!0)}}(r,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&&_&&A(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)break;C(S,i,u,i)}if(!o.isOnToken())return s;if(e.isToken(a)&&11!==a.kind){var S=o.readTokenInfo(a);return e.Debug.assert(S.token.end===a.end,"Token end is child end"),C(S,i,u,a),s}var T=157===a.kind?v:d,k=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)?{indentation:a.getIndentation(),delta:s}: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,k.indentation,k.delta),11===a.kind){var E={pos:a.getStart(),end:a.getEnd()};if(E.pos!==E.end){var N=c.getChildren(l),A=N[e.findIndex(N,(function(e){return e.pos===a.pos}))-1];if(A&&l.getLineAndCharacterOfPosition(E.end).line!==l.getLineAndCharacterOfPosition(A.end).line){var F=l.getLineAndCharacterOfPosition(E.pos).line===l.getLineAndCharacterOfPosition(A.end).line;P(E,k.indentation,F,!1,!0)}}}return h=i,f&&192===c.kind&&-1===s&&(s=k.indentation),s}function C(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),d=!1;t.leadingTrivia&&E(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=N(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&&E(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 C=i.getIndentationForComment(t.token.kind,D,a);S=k(t.leadingTrivia,C,S,(function(e){return F(e.pos,C,!1)}))}-1!==D&&S&&(F(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 C=o.getCurrentLeadingTrivia();C&&(k(C,i,!1,(function(e){return N(e,l.getLineAndCharacterOfPosition(e.pos),n,n,void 0)})),!1!==m.trimTrailingWhitespace&&function(){var e=_?_.end:r.pos,t=l.getLineAndCharacterOfPosition(e).line,n=l.getLineAndCharacterOfPosition(r.end).line;w(t,n+1,_)}())}return x;function T(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 87:case 111:case 59:return!1;case 43:case 31:switch(a.kind){case 268:case 269:case 267:return!1}break;case 22:case 23:if(186!==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 245:return 80;case 246:return 114;case 244:return 94;case 248:return 248;case 163:return 131;case 164:return 142;case 161:if(t.asteriskToken)return 41;case 159:case 156: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&&P(c,n,!i),i=!1;break;case 2:i&&u&&a(c),i=!1;break;case 4:i=!0}}return i}function E(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))N(c,l.getLineAndCharacterOfPosition(c.pos),n,i,a)}}function N(e,t,n,i,a){var o=0;u(e)||(_?o=A(e,t.line,n,_,f,d,i,a):w(l.getLineAndCharacterOfPosition(r.pos).line,t.line));return _=e,d=n,f=t.line,o}function A(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 O(r.end,i.pos-r.end),o?2:0;break;case 32:O(r.pos,r.end-r.pos);break;case 8:if(1!==t.flags&&n!==a)return 0;if(1!==a-n)return M(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 M(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&&_&&w(a,r,i),d}function F(t,r,n){var i=p(r,m);if(n)M(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))&&M(o,a.character,i)}}function P(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);if(n!==y.column||o){var 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 C=p(S,m);M(x,D.character,C)}else O(x,D.character)}}}}else i||F(r.pos,n,!1)}function w(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=I(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),O(s,o+1-s))}}}function I(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function O(t,r){r&&x.push(e.createTextChangeFromStartLength(t,r,""))}function M(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={}))}(d||(d={})),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 l=e.parent;l;){var p=!0;if(r){var f=e.getStart(i);p=f<r.pos||f>r.end}var g=s(l,e,i),y=g.line===t.line||d(l,e,t.line,i);if(p){var v=m(e,i,u,!y);if(-1!==v)return v+n;if(-1!==(v=c(e,l,t,y,i,u)))return v+n}D(u,l,e,i,o)&&!y&&(n+=u.indentSize);var h=_(l,e,t.line,i);l=(e=l).parent,t=h?i.getLineAndCharacterOfPosition(e.getStart(i)):g}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))&&(290===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(227===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,87,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 169:return a(n.typeArguments);case 193:return a(n.properties);case 192:return a(n.elements);case 173:return a(n.members);case 244:case 201:case 202:case 161:case 160:case 165:case 162:case 171:case 166:return a(n.typeParameters)||a(n.parameters);case 245:case 214:case 246:case 247:case 321:return a(n.typeParameters);case 197:case 196:return a(n.typeArguments)||a(n.arguments);case 243:return a(n.declarations);case 257:case 261:return a(n.elements);case 189:case 190: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&&243===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(t,r,n,i,a){var o=n?n.kind:0;switch(r.kind){case 226:case 245:case 214:case 246:case 248:case 247:case 192:case 223:case 250:case 193:case 173:case 186:case 175:case 251:case 278:case 277:case 200:case 194:case 196:case 197:case 225:case 259:case 235:case 210:case 190:case 189:case 268:case 271:case 267:case 276:case 160:case 165:case 166:case 156:case 170:case 171:case 182:case 198:case 206:case 261:case 257:case 263:case 258:case 159:return!0;case 242:case 281:case 209:if(!t.indentMultiLineObjectLiteralBeginningOnBlankLine&&i&&193===o)return function(t,r){var n=e.skipTrivia(t.text,r.pos),i=t.getLineAndCharacterOfPosition(n).line,a=t.getLineAndCharacterOfPosition(r.end).line;return i===a}(i,n);if(209!==r.kind)return!0;break;case 228:case 229:case 231:case 232:case 230:case 227:case 244:case 201:case 161:case 202:case 162:case 163:case 164:return 223!==o;case 260:return 261!==o;case 254:return 255!==o||!!n.namedBindings&&257!==n.namedBindings.kind;case 266:return 269!==o;case 270:return 272!==o;case 179:case 178:if(173===o)return!1}return a}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 235:case 239:case 233:case 234:return 223!==t.kind;default:return!1}}(r.kind,t))}!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&&209!==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),g=0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0;return o(d,p,void 0,g,t,!0,c)}var y=m(d,t,c,!0);if(-1!==y)return y;_=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.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={}))}(d||(d={})),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 c,u;function l(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"}(c=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include"}(u=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var _,d={leadingTriviaOption:c.Exclude,trailingTriviaOption:u.Exclude};function p(e,t,r,n){return{pos:f(e,t,n),end:g(e,r,n)}}function f(t,r,n){var i=n.leadingTriviaOption;if(i===c.Exclude)return r.getStart(t);if(i===c.StartLine)return e.getLineStartPositionForPosition(r.getStart(t),t);if(i===c.JSDoc){var a=e.getJSDocCommentRanges(r,t.text);if(null===a||void 0===a?void 0:a.length)return e.getLineStartPositionForPosition(a[0].pos,t)}var o=r.getFullStart(),s=r.getStart(t);if(o===s)return s;var u=e.getLineStartPositionForPosition(o,t);if(e.getLineStartPositionForPosition(s,t)===u)return i===c.IncludeAll?o:s;var _=o>0?1:0,d=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,u)+_,t);return d=l(t.text,d),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,d),t)}function g(t,r,n){var i=r.end,a=n.trailingTriviaOption;if(a===u.Exclude||e.isExpression(r)&&a!==u.Include)return i;var o=e.skipTrivia(t.text,i,!0);return o===i||a!==u.Include&&!e.isLineBreak(t.text.charCodeAt(o-1))?i:o}function m(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&193===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"}(_||(_={})),t.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var y,v,h=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=e.createMap(),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:_.Text,sourceFile:t,text:a.newText,range:e.createTextRangeFromSpan(a.span)})}},t.prototype.deleteRange=function(e,t){this.changes.push({kind:_.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:c.IncludeAll}),this.deleteRange(e,p(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:c.IncludeAll});var i=f(e,t,n),a=g(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(e,t,n),a=void 0===r?e.text.length:f(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:_.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},t.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=d),this.replaceRange(e,p(e,t,t,n),r,n)},t.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=d),this.replaceRange(e,p(e,t,r,i),n,i)},t.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:_.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},t.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=d),this.replaceRangeWithNodes(e,p(e,t,t,n),r,n)},t.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,p(e,t,t,d),r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=d),this.replaceRangeWithNodes(e,p(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,v(),o;var c=e.getShebang(s);void 0!==c&&(o=c.length,v());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;var g=t.getLineAndCharacterOfPosition(f.pos).line,m=t.getLineAndCharacterOfPosition(u.range.end).line;if(g>=m+2)break}if(t.statements.length){void 0===l&&(l=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line);var y=t.getLineAndCharacterOfPosition(f.end).line;if(l<y+2)break}u={range:f,pinnedOrTripleSlash:!1}}u&&(o=u.range.end,v());return o;function v(){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){void 0===n&&(n=!1),this.insertNodeAt(e,f(e,t,{}),r,this.getOptionsForInsertNodeBefore(t,r,n))},t.prototype.insertModifierBefore=function(t,r,n){var i=n.getStart(t);this.insertNodeAt(t,i,e.createToken(r),{suffix:" "})},t.prototype.insertLastModifierBefore=function(t,r,n){if(n.modifiers){var i=n.modifiers.end;this.insertNodeAt(t,i,e.createToken(r),{prefix:" "})}else this.insertModifierBefore(t,r,n)},t.prototype.insertCommentBeforeLine=function(t,r,n,i){var a=e.getStartPositionOfLine(r,t),o=e.getFirstNonSpaceCharacterPosition(t.text,a),s=T(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:g(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:_.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=242===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:">"})},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.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,o([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,o(r.body.statements,[n]))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=f(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,x(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=x(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===x(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)&&154===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createRange(r.end),e.createToken(26)),g(t,r,{})},t.prototype.getInsertNodeAfterOptions=function(t,r){var n=this.getInsertNodeAfterOptionsWorker(r);return s(s({},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 245:case 249:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 242:case 10:case 75:return{prefix:", "};case 281:return{suffix:","+this.newLineCharacter};case 89:return{prefix:" "};case 156: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),202===r.kind){var i=e.findChildOfKind(r,38,t),a=e.findChildOfKind(r,20,t);a?(this.insertNodesAt(t,a.getStart(t),[e.createToken(94),e.createIdentifier(n)],{joiner:" "}),k(this,t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function "+n+"("),this.replaceRange(t,i,e.createToken(21))),223!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.createToken(18),e.createToken(101)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.createToken(26),e.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(r,201===r.kind?94:80,t).end;this.insertNodeAt(t,o,e.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&&m(r,s)){var c=e.getLineAndCharacterOfPosition(t,l(t.text,i[a+1].getFullStart())),u=e.getLineAndCharacterOfPosition(t,s.end),_=void 0,d=void 0;u.line===c.line?(d=s.end,_=function(e){for(var t="",r=0;r<e;r++)t+=" ";return t}(c.character-u.character)):d=e.getStartPositionOfLine(c.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 f=r.getStart(t),g=e.getLineStartPositionForPosition(f,t),y=void 0,v=!1;if(1===i.length)y=27;else{var h=e.findPrecedingToken(r.pos,t);y=m(r,h)?h.kind:27,v=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==g}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.createToken(y));var b=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(g,f,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.createParen(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?void 0:n.end,null===i||void 0===i?void 0:i.end]}(n,i),o=a[0],s=a[1];if(void 0!==o&&void 0!==s){var c=0===x(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.NodeSet,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(n)):v.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:b(i,a[o+1])})}}))},t.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var t=y.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(y.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 b(t,r){return e.skipTrivia(t.text,f(t,r,{leadingTriviaOption:c.IncludeAll}),!1,!0)}function x(t){return e.isObjectLiteralExpression(t)?t.properties:t.members}function D(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 S(t){var n=e.visitEachChild(t,S,e.nullTransformationContext,C,S),a=e.nodeIsSynthesized(n)?n:Object.create(n);return a.pos=r(t),a.end=i(t),a}function C(t,n,a,o,s){var c=e.visitNodes(t,n,a,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=r(t),u.end=i(t),u}function T(t,r){return!e.isInComment(t,r)&&!e.isInString(t,r)&&!e.isInTemplateString(t,r)&&!e.isInJSXText(t,r)}function k(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(t,r,n),a=g(t,r,n);e.deleteRange(t,{pos:i,end:a})}function E(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:b(n,i),end:o===a.length-1?g(n,i,{}):b(n,a[o+1])})):k(t,n,i)}t.ChangeTracker=h,t.getNewFileText=function(e,t,r,n){return y.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(t,r,n,a,o){var s=n.map((function(e){return i(e,t,a).text})).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return D(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}}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:function(e){i.write(e),o(e,!1)},writeComment:function(e){i.writeComment(e)},writeKeyword:function(e){i.writeKeyword(e),o(e,!1)},writeOperator:function(e){i.writeOperator(e),o(e,!1)},writePunctuation:function(e){i.writePunctuation(e),o(e,!1)},writeTrailingSemicolon:function(e){i.writeTrailingSemicolon(e),o(e,!1)},writeParameter:function(e){i.writeParameter(e),o(e,!1)},writeProperty:function(e){i.writeProperty(e),o(e,!1)},writeSpace:function(e){i.writeSpace(e),o(e,!1)},writeStringLiteral:function(e){i.writeStringLiteral(e),o(e,!1)},writeSymbol:function(e,t){i.writeSymbol(e,t),o(e,!1)},writeLine:function(e){i.writeLine(e)},increaseIndent:function(){i.increaseIndent()},decreaseIndent:function(){i.decreaseIndent()},getText:function(){return i.getText()},rawWrite:function(e){i.rawWrite(e),o(e,!1)},writeLiteral:function(e){i.writeLiteral(e),o(e,!0)},getTextPos:function(){return i.getTextPos()},getLine:function(){return i.getLine()},getColumn:function(){return i.getColumn()},getIndent:function(){return i.getIndent()},isAtStartOfLine:function(){return i.isAtStartOfLine()},hasTrailingComment:function(){return i.hasTrailingComment()},hasTrailingWhitespace:function(){return i.hasTrailingWhitespace()},clear:function(){i.clear(),r=0}}}(i),s="\n"===i?1:0;return e.createPrinter({newLine:s,neverAsciiEscape:!0,preserveSourceNewlines:!0},o).writeNode(4,t,r,o),{text:o.getText(),node:S(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,c=e.stableSort(t,(function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end})),u=function(t){e.Debug.assert(c[t].range.end<=c[t+1].range.pos,"Changes overlap",(function(){return JSON.stringify(c[t].range)+" and "+JSON.stringify(c[t+1].range)}))},l=0;l<c.length-1;l++)u(l);var d=e.mapDefined(c,(function(t){var c=e.createTextSpanFromRange(t.range),u=function(t,r,n,a,o){if(t.kind===_.Remove)return"";if(t.kind===_.Text)return t.text;var c=t.options,u=void 0===c?{}:c,l=t.range.pos,d=function(t){return function(t,r,n,a,o,c,u){var l=a.indentation,_=a.prefix,d=a.delta,p=i(t,r,o),f=p.node,g=p.text;u&&u(f,g);var m=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 s(s({},n),{semicolons:a?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}(c,r),y=void 0!==l?l:e.formatting.SmartIndenter.getIndentation(n,r,m,_===o||e.getLineStartPositionForPosition(n,r)===n);void 0===d&&(d=e.formatting.SmartIndenter.shouldIndentChildNode(m,t)&&m.indentSize||0);var v={text:g,getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}},h=e.formatting.formatNodeGivenIndentation(f,v,r.languageVariant,y,d,s(s({},c),{options:m}));return D(g,h)}(t,r,l,u,n,a,o)},p=t.kind===_.ReplaceWithMultipleNodes?t.nodes.map((function(t){return e.removeSuffix(d(t),n)})).join(t.options.joiner||n):d(t.node),f=u.preserveLeadingWhitespace||void 0!==u.indentation||e.getLineStartPositionForPosition(l,r)===l?p:p.replace(/^\s+/,"");return(u.prefix||"")+f+(!u.suffix||e.endsWith(f,u.suffix)?"":u.suffix)}(t,o,r,n,a);if(c.length!==u.length||!e.stringContainsAt(o.text,u,c.start))return e.createTextChange(c,u)}));return d.length>0?{fileName:o.fileName,textChanges:d}: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}(y||(y={})),t.applyChanges=D,t.isValidLocationToAddComment=T,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{k(t,r,e.getAncestor(n,254))}}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 156:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):E(t,n,i,a);break;case 254:case 253:k(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;case 191:var s=a.parent;190===s.kind&&a!==e.last(s.elements)?k(t,i,a):E(t,n,i,a);break;case 242:!function(t,r,n,i){var a=i.parent;if(280===a.kind)return void t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n));if(1!==a.declarations.length)return void E(t,r,n,i);var o=a.parent;switch(o.kind){case 232:case 231:t.replaceNode(n,i,e.createObjectLiteral());break;case 230:k(t,n,a);break;case 225:k(t,n,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}(t,n,i,a);break;case 155:E(t,n,i,a);break;case 258:var l=a.parent;1===l.elements.length?r(t,i,l):E(t,n,i,a);break;case 256:r(t,i,a);break;case 26:k(t,i,a,{trailingTriviaOption:u.Exclude});break;case 94:k(t,i,a,{leadingTriviaOption:c.Exclude});break;case 245:case 244:k(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?c.JSDoc:c.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 k(t,r,n.name)}else k(t,r,n.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?E(t,n,i,a):k(t,i,a)}}}(v||(v={})),t.deleteNode=k}(e.textChanges||(e.textChanges={}))}(d||(d={})),function(e){!function(t){var r=e.createMultiMap(),n=e.createMap();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 c(e,t){return{changes:e,commands:t}}function u(t,r,n){for(var i=0,a=_(t);i<a.length;i++){var o=a[i];e.contains(r,o.code)&&n(o)}}function _(t){var r=t.program,n=t.sourceFile,i=t.cancellationToken;return o(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=_(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 c=o[a];if(e.contains(n,c.code)&&i++,i>1)break}var u=i<2;return function(e){var t=e.fixId,r=e.fixAllDescription,n=l(e,["fixId","fixAllDescription"]);return u?n:s(s({},n),{fixId:t,fixAllDescription:r})}}(r,n))}))},t.getAllFixes=function(t){return n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=c,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[];return c(e.textChanges.ChangeTracker.with(t,(function(e){return u(t,r,(function(t){return n(e,t,i)}))})),0===i.length?void 0:i)},t.eachDiagnostic=u}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r=e.createMap();t.registerRefactor=function(e,t){r.set(e,t)},t.getApplicableRefactors=function(t){return e.arrayFrom(e.flatMapIterator(r.values(),(function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?void 0:e.getAvailableActions(t)})))},t.getEditsForRefactor=function(e,t,n){var i=r.get(t);return i&&i.getEditsForAction(e,n)}}(e.refactor||(e.refactor={}))}(d||(d={})),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.isTypeAssertion(t)})),"Expected to find an assertion expression"),o=e.isAsExpression(a)?e.createAsExpression(a.expression,e.createKeywordTypeNode(148)):e.createTypeAssertion(e.createKeywordTypeNode(148),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={}))}(d||(d={})),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],getCodeActions:function(r){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,(function(t){var r=e.createExportDeclaration(void 0,void 0,e.createNamedExports([]),void 0,!1);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={}))}(d||(d={})),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).toString()))return;null===i||void 0===i||i.set(e.getNodeId(n).toString(),!0);var a=e.getSynthesizedDeepClone(n,!0);a.modifiers=e.createNodeArray(e.createModifiersFromModifierFlags(256|e.getModifierFlags(n))),a.modifierFlagsCache=0,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=e.createMap();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={}))}(d||(d={})),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=o([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 s(r,n,i,o,s,c){var u=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,u=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(_,225);if(!_||!p||_.type||!_.initializer||p.getSourceFile()!==r||e.hasModifier(p,1)||!d||!l(_.initializer))return u=!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 u=!1,"continue";(c||(c=[])).push({expression:_.initializer,declarationSymbol:s})},d=0,p=s.identifiers;d<p.length;d++){var f=p[d];_(f)}return c&&{initializers:c,needsSecondPassForFixAll:!u}}(n,u,p,d,o);if(f){var g=s((function(t){e.forEach(f.initializers,(function(e){var r=e.expression;return _(t,i,u,o,r,c)})),c&&f.needsSecondPassForFixAll&&_(t,i,u,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 c(n,i,a,o,s,c){var u=s((function(e){return _(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 u(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)&&l(s)?s:void 0}function l(t){return 32768&t.kind||!!e.findAncestor(t,(function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t||e.isBlock(t)&&(244===t.parent.kind||201===t.parent.kind||202===t.parent.kind||161===t.parent.kind)}))}function _(t,r,a,o,s,c){if(e.isBinaryExpression(s))for(var u=0,l=[s.left,s.right];u<l.length;u++){var _=l[u];if(c&&e.isIdentifier(_))if((g=o.getSymbolAtLocation(_))&&c.has(e.getSymbolId(g).toString()))continue;var p=o.getTypeAtLocation(_),f=o.getPromisedTypeOfPromise(p)?e.createAwait(_):_;t.replaceNode(a,_,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).toString()))return;t.replaceNode(a,s.parent.expression,e.createParen(e.createAwait(s.parent.expression))),d(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).toString()))return;t.replaceNode(a,s,e.createParen(e.createAwait(s))),d(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.addToSeen(c,e.getSymbolId(g)))return;t.replaceNode(a,s,e.createAwait(s))}}function d(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=u(r,n,t.span,t.cancellationToken,t.program);if(i){var a=t.program.getTypeChecker(),o=function(r){return e.textChanges.ChangeTracker.with(t,r)};return e.compact([s(t,i,n,a,o),c(t,i,n,a,o)])}},getAllCodeActions:function(r){var n=r.sourceFile,i=r.program,o=r.cancellationToken,l=r.program.getTypeChecker(),_=e.createMap();return t.codeFixAll(r,a,(function(e,t){var a=u(n,t.code,t,o,i);if(a){var d=function(t){return t(e),[]};return s(r,a,t.code,l,d,_)||c(r,a,t.code,l,d,_)}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),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,o){var s=e.getTokenAtPosition(r,n),c=e.findAncestor(s,(function(t){return e.isForInOrOfStatement(t.parent)?t.parent.initializer===t:!function(e){switch(e.kind){case 75:case 192:case 193:case 281:case 282:return!0;default:return!1}}(t)&&"quit"}));if(c)return a(t,c,r,o);var u=s.parent;if(e.isBinaryExpression(u)&&62===u.operatorToken.kind&&e.isExpressionStatement(u.parent))return a(t,s,r,o);if(e.isArrayLiteralExpression(u)){var l=i.getTypeChecker();if(!e.every(u.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,l)})))return;return a(t,u,r,o)}var _=e.findAncestor(s,(function(t){return!!e.isExpressionStatement(t.parent)||!function(e){switch(e.kind){case 75:case 209:case 27:return!0;default:return!1}}(t)&&"quit"}));if(_){if(!function t(r,n){if(!e.isBinaryExpression(r))return!1;if(27===r.operatorToken.kind)return e.every([r.left,r.right],(function(e){return t(e,n)}));return 62===r.operatorToken.kind&&e.isIdentifier(r.left)&&!n.getSymbolAtLocation(r.left)}(_,i.getTypeChecker()))return;return a(t,_,r,o)}}function a(e,t,r,n){n&&!n.tryAdd(t)||e.insertModifierBefore(r,81,t)}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.NodeSet;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,r.program,a)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),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;159!==o.kind||i&&!i.tryAdd(o)||t.insertModifierBefore(r,130,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.NodeSet;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,a)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),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.createCall(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={}))}(d||(d={})),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.createParameter(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,e.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={}))}(d||(d={})),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)||242===t.kind||158===t.kind||159===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.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.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 295:case 296:return e.createTypeReferenceNode("any",e.emptyArray);case 299:return function(t){return e.createUnionTypeNode([e.visitNode(t.type,c),e.createTypeReferenceNode("undefined",e.emptyArray)])}(t);case 298:return c(t.type);case 297:return function(t){return e.createUnionTypeNode([e.visitNode(t.type,c),e.createTypeReferenceNode("null",e.emptyArray)])}(t);case 301:return function(t){return e.createArrayTypeNode(e.visitNode(t.type,c))}(t);case 300:return function(t){return e.createFunctionTypeNode(e.emptyArray,t.parameters.map(u),t.type)}(t);case 169: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.createParameter(void 0,void 0,void 0,140===t.typeArguments[0].kind?"n":"s",void 0,e.createTypeReferenceNode(140===t.typeArguments[0].kind?"number":"string",[]),void 0),n=e.createTypeLiteralNode([e.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.createIdentifier(i),n="Array"!==i&&"Promise"!==i||t.typeArguments?e.visitNodes(t.typeArguments,c):e.createNodeArray([e.createTypeReferenceNode("any",e.emptyArray)])}return e.createTypeReferenceNode(r,n)}(t);default:var r=e.visitEachChild(t,c,void 0);return e.setEmitFlags(r,1),r}}function u(t){var r=t.parent.parameters.indexOf(t),n=301===t.type.kind&&r===t.parent.parameters.length-1,i=t.name||(n?"rest":"arg"+r),a=n?e.createToken(25):t.dotDotDotToken;return e.createParameter(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={}))}(d||(d={})),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){var o=i.getSymbolAtLocation(e.getTokenAtPosition(r,n));if(o&&19&o.flags){var s,c,u=o.valueDeclaration;switch(u.kind){case 244:s=u,t.delete(r,u),c=function(t){var r=l(o);t.body&&r.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body));var n=a(t,89);return e.createClassDeclaration(void 0,n,t.name,void 0,void 0,r)}(u);break;case 242:s=u.parent.parent,c=function(t){var r=t.initializer;if(!r||201!==r.kind)return;if(75!==t.name.kind)return;var n=l(t.symbol);r.body&&n.unshift(e.createConstructor(void 0,void 0,r.parameters,r.body));var i=a(s,89);return e.createClassDeclaration(void 0,i,t.name,void 0,void 0,n)}(u),1===u.parent.declarations.length?(e.copyLeadingComments(s,c,r),t.delete(r,s)):t.delete(r,u)}c&&(e.hasJSDocNodes(u)&&e.copyLeadingComments(u,c,r),t.insertNodeAfter(r,s,c))}function l(n){var i=[];return n.members&&n.members.forEach((function(e){var t=o(e,void 0);t&&i.push(t)})),n.exports&&n.exports.forEach((function(t){var r=o(t,[e.createToken(120)]);r&&i.push(r)})),i;function o(n,i){if(8192&n.flags){var o=n.valueDeclaration,s=o.parent;if(c=s.right,e.isFunctionLike(c)){var c,u=s.parent&&226===s.parent.kind?s.parent:s;if(t.delete(r,u),!s.right)return e.createProperty([],i,n.name,void 0,void 0,void 0);switch(s.right.kind){case 201:var l=s.right,_=e.concatenate(i,a(l,126)),d=e.createMethod(void 0,_,void 0,o.name,void 0,void 0,l.parameters,void 0,l.body);return e.copyLeadingComments(s,d,r),d;case 202:var p=s.right,f=p.body,g=void 0;g=223===f.kind?f:e.createBlock([e.createReturn(f)]);_=e.concatenate(i,a(p,126)),d=e.createMethod(void 0,_,void 0,o.name,void 0,void 0,p.parameters,void 0,g);return e.copyLeadingComments(s,d,r),d;default:if(e.isSourceFileJS(r))return;var m=e.createProperty(void 0,i,o.name,void 0,void 0,s.right);return e.copyLeadingComments(s.parent,m,r),m}}}}}}function a(t,r){return e.filter(t.modifiers,(function(e){return e.kind===r}))}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())}));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.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r,n="convertToAsyncFunction",i=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],a=!0;function s(t,r,n,i,a){var o,s=e.getTokenAtPosition(r,n);if(o=e.isIdentifier(s)&&e.isVariableDeclaration(s.parent)&&s.parent.initializer&&e.isFunctionLikeDeclaration(s.parent.initializer)?s.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.isFunctionLikeDeclaration)){var _=e.createMap(),p=e.isInJSFile(o),f=function(t,r){if(!t.body)return e.createMap();var n=e.createMap();return e.forEachChild(t.body,(function t(i){c(i,r,"then")?(n.set(e.getNodeId(i).toString(),!0),e.forEach(i.arguments,t)):c(i,r,"catch")?(n.set(e.getNodeId(i).toString(),!0),e.forEachChild(i,t)):u(i,r)?n.set(e.getNodeId(i).toString(),!0):e.forEachChild(i,t)})),n}(o,i),g=function(t,r,n,i){var a=e.createMap(),o=e.createMultiMap();return e.forEachChild(t,(function t(s){if(e.isIdentifier(s)){var c=r.getSymbolAtLocation(s),u=c&&function(e,t){return e.valueDeclaration&&e.valueDeclaration.getSourceFile()===t}(c,i);if(c&&u){var _=m(r.getTypeAtLocation(s),r),d=e.getSymbolId(c).toString();if(!_||e.isFunctionLikeDeclaration(s.parent)||n.has(d)){if(s.parent&&(e.isParameter(s.parent)||e.isVariableDeclaration(s.parent)||e.isBindingElement(s.parent))){var p=s.text,f=o.get(p);if(f&&f.some((function(e){return e!==c}))){var g=l(s,o);a.set(d,g.identifier),n.set(d,g),o.add(p,c)}else{var y=e.getSynthesizedDeepClone(s);n.set(d,x(y)),o.add(p,c)}}}else{var v=e.firstOrUndefined(_.parameters),h=v&&e.isParameter(v.valueDeclaration)&&e.tryCast(v.valueDeclaration.name,e.isIdentifier)||e.createOptimisticUniqueName("result"),b=l(h,o);n.set(d,b),o.add(h.text,c)}}}else e.forEachChild(s,t)})),e.getSynthesizedDeepCloneWithRenames(t,!0,a,r)}(o,i,_,a.sourceFile),y=g.body&&e.isBlock(g.body)?function(t){var r=[];return e.forEachReturnStatement(t,(function(t){e.isReturnStatementWithFixablePromiseHandler(t)&&r.push(t)})),r}(g.body):e.emptyArray,v={checker:i,synthNamesMap:_,setOfExpressionsToReturn:f,isInJSFile:p};if(y.length){t.insertLastModifierBefore(r,126,o);for(var h=function(n){e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=d(a,v);t.replaceNodeWithNodes(r,n,o)}else e.isFunctionLike(a)||e.forEachChild(a,i)}))},b=0,D=y;b<D.length;b++){h(D[b])}}}}function c(t,r,n){if(!e.isCallExpression(t))return!1;var i=e.hasPropertyAccessExpressionWithName(t,n)&&r.getTypeAtLocation(t);return!(!i||!r.getPromisedTypeOfPromise(i))}function u(t,r){return!!e.isExpression(t)&&!!r.getPromisedTypeOfPromise(r.getTypeAtLocation(t))}function l(t,r){var n=(r.get(t.text)||e.emptyArray).length;return x(0===n?t:e.createIdentifier(t.text+"_"+n))}function _(){return a=!1,e.emptyArray}function d(t,r,n){if(c(t,r.checker,"then"))return 0===t.arguments.length?_():function(t,r,n){var i=t.arguments,a=i[0],o=i[1],s=v(a,r),c=g(a,n,s,t,r);if(o){var u=v(o,r),l=e.createBlock(d(t.expression,r,s).concat(c)),_=g(o,n,u,t,r),p=u?D(u)?u.identifier.text:u.bindingPattern:"e",f=e.createVariableDeclaration(p),m=e.createCatchClause(f,e.createBlock(_));return[e.createTry(l,m,void 0)]}return d(t.expression,r,s).concat(c)}(t,r,n);if(c(t,r.checker,"catch"))return 0===t.arguments.length?_():function(t,r,n){var i,a=t.arguments[0],o=v(a,r);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.createOptimisticUniqueName(t.identifier.text))}(n);r.synthNamesMap.set(i,a)}}))):i=x(e.createOptimisticUniqueName("result"),n.types),i.hasBeenDeclared=!0);var s,c,u=e.createBlock(d(t.expression,r,i)),l=g(a,i,o,t,r),_=o?D(o)?o.identifier.text:o.bindingPattern:"e",p=e.createVariableDeclaration(_),f=e.createCatchClause(p,e.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.createVariableDeclaration(c,h)];s=e.createVariableStatement(void 0,e.createVariableDeclarationList(b,1))}var C=e.createTry(u,f,void 0),T=n&&c&&(k=n,1===k.kind)&&e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepCloneWithRenames(n.bindingPattern),void 0,c)],2));var k;return e.compact([s,C,T])}(t,r,n);if(e.isPropertyAccessExpression(t))return d(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.createReturn(e.getSynthesizedDeepClone(t))];return p(n,e.createAwait(t),void 0)}(t,r,n)):_()}function p(t,r,n){return!t||h(t)?[e.createExpressionStatement(r)]:D(t)&&t.hasBeenDeclared?[e.createExpressionStatement(e.createAssignment(e.getSynthesizedDeepClone(t.identifier),r))]:[e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(b(t)),n,r)],2))]}function f(t,r){if(r&&t){var n=e.createOptimisticUniqueName("result");return o(p(x(n),t,r),[e.createReturn(n)])}return[e.createReturn(t)]}function g(t,r,n,i,a){var o,s,c,l;switch(t.kind){case 100:break;case 75:if(!n)break;var d=e.createCall(e.getSynthesizedDeepClone(t),void 0,D(n)?[n.identifier]:[]);if(S(i,a))return f(d,null===(o=i.typeArguments)||void 0===o?void 0:o[0]);var g=a.checker.getTypeAtLocation(t),v=a.checker.getSignaturesOfType(g,0);if(!v.length)return _();var h=v[0].getReturnType(),x=p(r,e.createAwait(d),null===(s=i.typeArguments)||void 0===s?void 0:s[0]);return r&&r.types.push(h),x;case 201:case 202:var C=t.body;if(e.isBlock(C)){for(var T=[],k=!1,E=0,N=C.statements;E<N.length;E++){var A=N[E];e.isReturnStatement(A)?(k=!0,e.isReturnStatementWithFixablePromiseHandler(A)?T=T.concat(y(a,[A],r)):T.push.apply(T,f(A.expression,null===(c=i.typeArguments)||void 0===c?void 0:c[0]))):T.push(A)}return S(i,a)?T.map((function(t){return e.getSynthesizedDeepClone(t)})):function(t,r,n,i){for(var a=[],o=0,s=t;o<s.length;o++){var c=s[o];if(e.isReturnStatement(c)){if(c.expression){var l=u(c.expression,n.checker)?e.createAwait(c.expression):c.expression;void 0===r?a.push(e.createExpressionStatement(l)):a.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(b(r),void 0,l)],2)))}}else a.push(e.getSynthesizedDeepClone(c))}i||void 0===r||a.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(b(r),void 0,e.createIdentifier("undefined"))],2)));return a}(T,r,a,k)}var F=y(a,e.isFixablePromiseHandler(C)?[e.createReturn(C)]:e.emptyArray,r);if(F.length>0)return F;var P=m(a.checker.getTypeAtLocation(t),a.checker).getReturnType(),w=e.getSynthesizedDeepClone(C),I=a.checker.getPromisedTypeOfPromise(P)?e.createAwait(w):w;if(S(i,a))return f(I,null===(l=i.typeArguments)||void 0===l?void 0:l[0]);var O=p(r,I,void 0);return r&&r.types.push(P),O;default:return _()}return e.emptyArray}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=d(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));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).toString())}t.registerCodeFix({errorCodes:i,getCodeActions:function(r){a=!0;var i=e.textChanges.ChangeTracker.with(r,(function(e){return s(e,r.sourceFile,r.span.start,r.program.getTypeChecker(),r)}));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 s(t,r.file,r.start,e.program.getTypeChecker(),e)}))}}),function(e){e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"}(r||(r={}))}(e.codefix||(e.codefix={}))}(d||(d={})),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 253:n.replaceNode(t,u,e.makeImport(u.name,void 0,s,i));break;case 196:e.isRequireCall(u,!1)&&n.replaceNode(t,u,e.createPropertyAccess(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(r,n,i,c,f,g,m,y){switch(n.kind){case 225:return function(r,n,i,a,o,c,u){var p=n.declarationList,f=!1,g=e.flatMap(p.declarations,(function(n){var g=n.name,m=n.initializer;if(m){if(e.isExportsOrModuleExportsOrAlias(r,m))return f=!0,[];if(e.isRequireCall(m,!0))return f=!0,function(r,n,i,a,o,c,u,l){switch(n.kind){case 189:var p=e.mapAllOrFail(n.elements,(function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:_(t.propertyName&&t.propertyName.text,t.name.text)}));if(p)return[e.makeImport(void 0,p,i,l)];case 190:var f=s(t.moduleSpecifierToValidIdentifier(i.text,u),c);return[e.makeImport(e.createIdentifier(f),void 0,i,l),d(void 0,e.getSynthesizedDeepClone(n),e.createIdentifier(f))];case 75:return function(t,r,n,i,a,o,c){for(var u=a.getSymbolAtLocation(r),l=e.createMap(),_=!1,d=0,p=o.original.get(r.text);d<p.length;d++){var f=p[d];if(a.getSymbolAtLocation(f)===u&&f!==r){var g=f.parent;if(e.isPropertyAccessExpression(g)){var m=g.expression,y=g.name.text;e.Debug.assert(m===f,"Didn't expect expression === use");var v=l.get(y);void 0===v&&(v=s(y,o),l.set(y,v)),i.replaceNode(t,g,e.createIdentifier(v))}else _=!0}}var h=0===l.size?void 0:e.arrayFrom(e.mapIterator(l.entries(),(function(t){var r=t[0],n=t[1];return e.createImportSpecifier(r===n?void 0:e.createIdentifier(r),e.createIdentifier(n))})));h||(_=!0);return[e.makeImport(_?e.getSynthesizedDeepClone(r):void 0,h,n,c)]}(r,n,i,a,o,c,l);default:return e.Debug.assertNever(n,"Convert to ES6 module got invalid name kind "+n.kind)}}(r,g,m.arguments[0],i,a,o,c,u);if(e.isPropertyAccessExpression(m)&&e.isRequireCall(m.expression,!0))return f=!0,function(t,r,n,i,a){switch(t.kind){case 189:case 190:var o=s(r,i);return[l(o,r,n,a),d(void 0,t,e.createIdentifier(o))];case 75:return[l(t.text,r,n,a)];default:return e.Debug.assertNever(t,"Convert to ES6 module got invalid syntax form "+t.kind)}}(g,m.name.text,m.expression.arguments[0],o,u)}return e.createVariableStatement(void 0,e.createVariableDeclarationList([n],p.flags))}));f&&i.replaceNodeWithNodes(r,n,g)}(r,n,c,i,f,g,y),!1;case 226:var v=n.expression;switch(v.kind){case 196:return e.isRequireCall(v,!0)&&c.replaceNode(r,n,e.makeImport(void 0,void 0,v.arguments[0],y)),!1;case 209:return 62===v.operatorToken.kind&&function(t,r,n,i,s){var c=n.left,l=n.right;if(!e.isPropertyAccessExpression(c))return!1;if(e.isExportsOrModuleExportsOrAlias(t,c)){if(!e.isExportsOrModuleExportsOrAlias(t,l)){var _=e.isObjectLiteralExpression(l)?function(t){var r=e.mapAllOrFail(t.properties,(function(t){switch(t.kind){case 163:case 164:case 282:case 283:return;case 281:return e.isIdentifier(t.name)?function(t,r){var n=[e.createToken(89)];switch(r.kind){case 201:var i=r.name;if(i&&i.text!==t)return a();case 202:return u(t,n,r);case 214:return function(t,r,n){return e.createClassDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.heritageClauses),e.getSynthesizedDeepClones(n.members))}(t,n,r);default:return a()}function a(){return d(n,e.createIdentifier(t),r)}}(t.name.text,t.initializer):void 0;case 161:return e.isIdentifier(t.name)?u(t.name.text,[e.createToken(89)],t):void 0;default:e.Debug.assertNever(t,"Convert to ES6 got invalid prop kind "+t.kind)}}));return r&&[r,!1]}(l):e.isRequireCall(l,!0)?function(t,r){var n=t.text,i=r.getSymbolAtLocation(t),s=i?i.exports:e.emptyUnderscoreEscapedMap;return s.has("export=")?[[o(n)],!0]:s.has("default")?s.size>1?[[a(n),o(n)],!0]:[[o(n)],!0]:[[a(n)],!1]}(l.arguments[0],r):void 0;return _?(i.replaceNodeWithNodes(t,n.parent,_[0]),_[1]):(i.replaceRangeWithText(t,e.createRange(c.getStart(t),l.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,c.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[d(void 0,o,r.right),p([e.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.createToken(89),e.createToken(81)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.createToken(89),{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,s);return!1}(r,i,v,c,m)}default:return!1}}function a(e){return p(void 0,e)}function o(t){return p([e.createExportSpecifier(void 0,"default")],t)}function s(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.set(e,!0),e}function c(t){var r=e.createMultiMap();return function t(r,n){e.isIdentifier(r)&&function(e){var t=e.parent;switch(t.kind){case 194:return t.name!==e;case 191:case 258:return t.propertyName!==e;default:return!0}}(r)&&n(r);r.forEachChild((function(e){return t(e,n)}))}(t,(function(e){return r.add(e.text,e)})),r}function u(t,r,n){return e.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.convertToFunctionBody(e.getSynthesizedDeepClone(n.body)))}function l(t,r,n,i){return"default"===r?e.makeImport(e.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[_(r,t)],n,i)}function _(t,r){return e.createImportSpecifier(void 0!==t&&t!==r?e.createIdentifier(t):void 0,e.createIdentifier(r))}function d(t,r,n){return e.createVariableStatement(t,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,n)],2))}function p(t,r){return e.createExportDeclaration(void 0,void 0,t&&e.createNamedExports(t),void 0===r?void 0:e.createLiteral(r))}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(a){var o=a.sourceFile,u=a.program,l=a.preferences,_=e.textChanges.ChangeTracker.with(a,(function(t){if(function(t,r,a,o,u){var l={original:c(t),additional:e.createMap()},_=function(t,r,i){var a=e.createMap();return n(t,(function(t){var n=t.name,o=n.text,c=n.originalKeywordKind;!a.has(o)&&(void 0!==c&&e.isNonContextualKeyword(c)||r.resolveName(o,t,111551,!0))&&a.set(o,s("_"+o,i))})),a}(t,r,l);!function(t,r,i){n(t,(function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.createIdentifier(r.get(o)||o))}}))}(t,_,a);for(var d=!1,p=0,f=t.statements;p<f.length;p++){var g=f[p],m=i(t,g,r,a,l,o,_,u);d=d||m}return d}(o,u.getTypeChecker(),t,u.getCompilerOptions().target,e.getQuotePreference(o,l)))for(var a=0,_=u.getSourceFiles();a<_.length;a++){var d=_[a];r(d,o,t,e.getQuotePreference(d,l))}}));return[t.createCodeFixActionWithoutFixAll("convertToEs6Module",_,e.Diagnostics.Convert_to_ES6_module)]}})}(e.codefix||(e.codefix={}))}(d||(d={})),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.createIndexedAccessTypeNode(e.createTypeReferenceNode(n.left,void 0),e.createLiteralTypeNode(e.createLiteral(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={}))}(d||(d={})),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.replaceNode(i.sourceFile,o,e.updateExportDeclaration(o,o.decorators,o.modifiers,a,o.moduleSpecifier,!0));else{var c=e.updateExportDeclaration(o,o.decorators,o.modifiers,e.updateNamedExports(a,e.filter(a.elements,(function(t){return!e.contains(s,t)}))),o.moduleSpecifier,!1),u=e.createExportDeclaration(void 0,void 0,e.createNamedExports(s),o.moduleSpecifier,!0);t.replaceNode(i.sourceFile,o,c),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=e.createMap();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={}))}(d||(d={})),function(e){!function(t){var r=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_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?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.updateImportDeclaration(r,void 0,void 0,e.createImportClause(i.name,void 0,!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={}))}(d||(d={})),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.getModifierFlags(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,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=e.createMap();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={}))}(d||(d={})),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 c(t,r,n,i){var a=r.getCompilerOptions(),o=[],s=[],c=e.createMap(),_=e.createMap();return{addImportFromDiagnostic:function(e,t){var r=y(t,e.code,e.start);if(!r||!r.fixes.length)return;p(r)},addImportFromExportedSymbol:function(o,s){var c=e.Debug.checkDefined(o.parent),l=e.getNameForExportedSymbol(o,e.getEmitScriptTarget(a)),_=r.getTypeChecker(),f=_.getMergedSymbol(e.skipAlias(o,_)),m=d(t,f,c,l,t,a,_,r.getSourceFiles()),y=!!s&&2===a.importsNotUsedAsValues,v=g(t,a);p({fixes:[u(t,m,c,l,r,void 0,y,v,i,n)],symbolName:l})},writeFixes:function(r){for(var i,a=e.getQuotePreference(t,n),u=0,d=o;u<d.length;u++){var p=d[u];S(r,t,p)}for(var f=0,g=s;f<g.length;f++){p=g[f];C(r,t,p,a)}c.forEach((function(e){var n=e.importClauseOrBindingPattern,i=e.defaultImport,a=e.namedImports,o=e.canUseTypeOnlyImport;D(r,t,n,i,a,o)})),_.forEach((function(t,r){var n=t.useRequire,o=l(t,["useRequire"]),s=n?E:k;i=e.combine(i,s(r,a,o))})),i&&e.insertImports(r,t,i,!0)}};function p(t){var r=t.fixes,n=t.symbolName,i=e.first(r);switch(i.kind){case 0:o.push(i);break;case 1:s.push(i);break;case 2:var a=i.importClauseOrBindingPattern,u=i.importKind,l=i.canUseTypeOnlyImport,d=String(e.getNodeId(a));(p=c.get(d))||c.set(d,p={importClauseOrBindingPattern:a,defaultImport:void 0,namedImports:[],canUseTypeOnlyImport:l}),0===u?e.pushIfUnique(p.namedImports,n):(e.Debug.assert(void 0===p.defaultImport||p.defaultImport===n,"(Add to Existing) Default import should be missing or match symbolName"),p.defaultImport=n);break;case 3:var p,f=i.moduleSpecifier,g=(u=i.importKind,i.useRequire),m=i.typeOnly;switch((p=_.get(f))?p.typeOnly=p.typeOnly&&m:_.set(f,p={namedImports:[],namespaceLikeImport:void 0,typeOnly:m,useRequire:g}),u){case 1:e.Debug.assert(void 0===p.defaultImport||p.defaultImport===n,"(Add new) Default import should be missing or match symbolName"),p.defaultImport=n;break;case 0:e.pushIfUnique(p.namedImports||(p.namedImports=[]),n);break;case 3:case 2:e.Debug.assert(void 0===p.namespaceLikeImport||p.namespaceLikeImport.name===n,"Namespacelike import shoudl be missing or match symbolName"),p.namespaceLikeImport={importKind:u,name:n}}break;default:e.Debug.assertNever(i,"fix wasn't never - got kind "+i.kind)}}}function u(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"),e.first(f(r,i,o,s,c,a,t,u,l))}function _(e){return{description:e.description,changes:e.changes,commands:e.commands}}function d(t,r,n,i,a,o,s,c){var u=[];return P(s,c,(function(c,l){if(!l||c===n||!e.startsWith(a.fileName,e.getDirectoryPath(l.fileName))){var _=h(t,c,s,o);_&&_.name===i&&e.skipAlias(_.symbol,s)===r&&u.push({moduleSymbol:c,importKind:_.kind,exportedSymbolIsTypeOnly:p(_.symbol,s)});for(var d=0,f=s.getExportsAndPropertiesOfModule(c);d<f.length;d++){var g=f[d];g.name===i&&e.skipAlias(g,s)===r&&u.push({moduleSymbol:c,importKind:0,exportedSymbolIsTypeOnly:p(g,s)})}}})),u}function p(t,r){return!(111551&e.skipAlias(t,r).flags)}function f(t,r,n,i,a,s,c,u,l){var _=s.getTypeChecker(),d=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:(254===n.kind||253===n.kind)&&r.getSymbolAtLocation(t)===i?{declaration:n,importKind:a}:void 0}))}(t,_,c)})),p=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 242:return null===(r=e.tryCast(t.name,e.isIdentifier))||void 0===r?void 0:r.text;case 253:return t.name.text;case 254: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 242:return r.resolveExternalModuleName(t.initializer.arguments[0]);case 253:return r.getAliasedSymbol(t.symbol);case 254: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}}}))}(d,r,n,_),f=function(t,r){return e.firstDefined(t,(function(e){var t=e.declaration,n=e.importKind;if(253!==t.kind){if(242===t.kind)return 0!==n&&1!==n||189!==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||257===o.kind)?{kind:2,importClauseOrBindingPattern:i,importKind:n,moduleSpecifier:t.moduleSpecifier.getText(),canUseTypeOnlyImport:r}:void 0}}}))}(d,void 0!==n&&function(t,r){return e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(t,r))}(c,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=254===i.kind?i.moduleSpecifier:242===i.kind?i.initializer.arguments[0]:265===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]:m(n,i,a,o,s,t,c,u)}(t,d,s,c,n,i,a,u,l);return o(p?[p]:e.emptyArray,g)}function g(t,r){return e.isSourceFileJS(t)&&!t.externalModuleIndicator&&(!!t.commonJsModuleIndicator||e.getEmitModuleKind(r)<e.ModuleKind.ES2015)}function m(t,r,n,i,a,o,s,c){var u=e.isSourceFileJS(r),l=t.getCompilerOptions(),_=O(r,t,s).allowsImportingSpecifier,d=e.flatMap(o,(function(o){var _=o.moduleSymbol,d=o.importKind,p=o.exportedSymbolIsTypeOnly;return e.moduleSpecifiers.getModuleSpecifiers(_,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}}))}));return e.sort(d,(function(e,t){var r=_(e.moduleSpecifier),n=_(t.moduleSpecifier);return r&&!n?-1:n&&!r?1:e.moduleSpecifier.length-t.moduleSpecifier.length}))}function y(t,r,n){var i=e.getTokenAtPosition(t.sourceFile,n),a=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,_=[{moduleSymbol:u,importKind:v(n,i.getCompilerOptions()),exportedSymbolIsTypeOnly:!1}],d=g(n,i.getCompilerOptions());return{fixes:f(_,l,e.isIdentifier(r)?r.getStart(n):void 0,!1,d,i,n,a,o),symbolName:l}}(t,i):e.isIdentifier(i)?function(t,r){var n=t.sourceFile,i=t.program,a=t.cancellationToken,o=t.host,s=t.preferences,c=i.getTypeChecker(),u=e.isJsxOpeningLikeElement(r.parent)&&r.parent.tagName===r&&(e.isIntrinsicJsxName(r.text)||c.resolveName(r.text,r,67108863,!1))?c.getJsxNamespace(n):r.text;e.Debug.assert("default"!==u,"'default' isn't a legal identifier and couldn't occur here");var l=i.getCompilerOptions(),_=2===l.importsNotUsedAsValues&&e.isValidTypeOnlyAliasUseSite(r),d=g(n,l),m=function(t,r,n,i,a,o,s){var c=e.createMultiMap();function u(t,r,n){c.add(e.getUniqueSymbolId(r,a).toString(),{moduleSymbol:t,importKind:n,exportedSymbolIsTypeOnly:p(r,a)})}return F(o,s,i,!0,(function(e){n.throwIfCancellationRequested();var s=h(i,e,a,o.getCompilerOptions());s&&s.name===t&&A(s.symbolForMeaning,r)&&u(e,s.symbol,s.kind);var c=a.tryGetMemberInModuleExportsAndProperties(t,e);c&&A(c,r)&&u(e,c,0)})),c}(u,e.getMeaningFromLocation(r),a,n,c,i,o);return{fixes:e.arrayFrom(e.flatMapIterator(m.entries(),(function(e){e[0];return f(e[1],u,r.getStart(n),_,d,i,n,o,s)}))),symbolName:u}}(t,i):void 0;return a&&s(s({},a),{fixes:e.sort(a.fixes,(function(e,t){return e.kind-t.kind}))})}function v(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 h(t,r,n,i){var a=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:b(e,n)}}(t,r,n,i);if(a){var o=a.symbol,c=a.kind,u=function t(r,n,i,a){var o=e.getLocalSymbolForExportDefault(r);if(o)return{symbolForMeaning:o,name:o.name};var s=function(t){return t.declarations&&e.firstDefined(t.declarations,(function(t){if(e.isExportAssignment(t)){if(e.isIdentifier(t.expression))return t.expression.text}else if(e.isExportSpecifier(t))return e.Debug.assert("default"===t.name.text,"Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text}))}(r);if(void 0!==s)return{symbolForMeaning:r,name:s};if(2097152&r.flags){var c=i.getImmediateAliasedSymbol(r);return c&&t(c,e.Debug.checkDefined(c.parent,"Alias targets of default exports must have a parent"),i,a)}if("default"!==r.escapedName&&"export="!==r.escapedName)return{symbolForMeaning:r,name:r.getName()};return{symbolForMeaning:r,name:w(n,a.target)}}(o,r,n,i);return u&&s({symbol:o,kind:c},u)}}function b(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 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 C(t,r,i,a),[e.Diagnostics.Change_0_to_1,n,T(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?E:k,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(189!==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.createIdentifier(i),{suffix:", "})),a.length){var c=a.map((function(t){return e.createImportSpecifier(void 0,e.createIdentifier(t))}));if(n.namedBindings&&e.cast(n.namedBindings,e.isNamedImports).elements.length)for(var u=0,l=c;u<l.length;u++){var _=l[u];t.insertNodeInListAfter(r,e.last(e.cast(n.namedBindings,e.isNamedImports).elements),_)}else if(c.length){var d=e.createNamedImports(c);n.namedBindings?t.replaceNode(r,n.namedBindings,d):t.insertNodeAfter(r,e.Debug.checkDefined(n.name,"Import clause must have either named imports or a default import"),d)}}s&&t.delete(r,e.getTypeKeywordOfTypeOnlyImport(n,r))}else{i&&g(n,i,"default");for(var p=0,f=a;p<f.length;p++){g(n,f[p],void 0)}}function g(n,i,a){var o=e.createBindingElement(void 0,a,i);n.elements.length?t.insertNodeInListAfter(r,e.last(n.elements),o):t.replaceNode(r,n,e.createObjectBindingPattern([o]))}}function S(e,t,r){var n=r.namespacePrefix,i=r.position;e.insertText(t,i,n+".")}function C(e,t,r,n){var i=r.moduleSpecifier,a=r.position;e.insertText(t,a,T(i,n))}function T(t,r){var n=e.getQuoteFromPreference(r);return"import("+n+t+n+")."}function k(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.createIdentifier(n.defaultImport),null===(a=n.namedImports)||void 0===a?void 0:a.map((function(t){return e.createImportSpecifier(void 0,e.createIdentifier(t))})),t,r,n.typeOnly)));var c=n.namespaceLikeImport,u=n.typeOnly;if(c){var l=3===c.importKind?e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(c.name),e.createExternalModuleReference(s)):e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(c.name)),u),s);o=e.combine(o,l)}return e.Debug.checkDefined(o)}function E(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.createBindingElement(void 0,void 0,t)})))||[];n.defaultImport&&c.unshift(e.createBindingElement(void 0,"default",n.defaultImport));var u=N(e.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.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("string"===typeof t?e.createIdentifier(t):t,void 0,e.createCall(e.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){var o=0,s=e.createModuleSpecifierResolutionHost(t,r),c=i&&O(n,t,r,s);P(t.getTypeChecker(),t.getSourceFiles(),(function(r,i){void 0===i?!c||c.allowsImportingAmbientModule(r)?a(r):c&&o++: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,s)&&(!c||c.allowsImportingSourceFile(i)?a(r):c&&o++)})),r.log&&r.log("forEachExternalModuleToImportFrom: filtered out "+o+" modules by package.json contents")}function P(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)}}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),s=11;return{allowsImportingAmbientModule:function(t){if(!o.length)return!0;var r=l(t.valueDeclaration.getSourceFile().fileName);if("undefined"===typeof r)return!0;var n=e.stripQuotes(t.getName());if(u(n))return!0;return c(r)||c(n)},allowsImportingSourceFile:function(e){if(!o.length)return!0;var t=l(e.fileName);if(!t)return!0;return c(t)},allowsImportingSpecifier:function(t){if(!o.length||u(t))return!0;if(e.pathIsRelative(t)||e.isRootedDiskPath(t))return!0;return c(t)},moduleSpecifierResolutionHost:i};function c(t){for(var r=_(t),n=0,i=o;n<i.length;n++){var a=i[n];if(a.has(r,s)||a.has(e.getTypesPackageName(r),s))return!0}return!1}function u(r){return!!(e.isSourceFileJS(t)&&e.JsTyping.nodeCoreModules.has(r)&&(void 0===a&&(a=e.consumesNodeCoreModules(t)),a))}function l(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:_(a)}}function _(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=y(t,r,a.start);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=c(r.sourceFile,r.program,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=c,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,s,c,l){var p=o.getCompilerOptions(),f=d(n,t,r,i,n,p,o.getTypeChecker(),o.getSourceFiles()),y=g(n,p),v=2===p.importsNotUsedAsValues&&!e.isSourceFileJS(n)&&e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(n,c));return{moduleSpecifier:e.first(m(o,n,c,v,y,f,a,l)).moduleSpecifier,codeAction:_(x({host:a,formatContext:s,preferences:l},n,i,u(n,f,r,i,o,c,v,y,a,l),e.getQuotePreference(n,l)))}},t.forEachExternalModuleToImportFrom=F,t.moduleSymbolToValidIdentifier=w,t.moduleSpecifierToValidIdentifier=I}(e.codefix||(e.codefix={}))}(d||(d={})),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(r,n,i,a){var o=e.getTokenAtPosition(n,i);e.Debug.assert(104===o.kind);var s=e.getThisContainer(o,!1);if(e.isFunctionDeclaration(s)||e.isFunctionExpression(s)){if(!e.isSourceFile(e.getThisContainer(s,!1))){var c=e.Debug.assertDefined(e.findChildOfKind(s,94,n)),u=s.name,l=e.Debug.assertDefined(s.body);if(e.isFunctionExpression(s)){if(u&&e.FindAllReferences.Core.isSymbolReferencedInFile(u,a,n,l))return;return r.delete(n,c),u&&r.delete(n,u),r.insertText(n,l.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,u?u.text:e.ANONYMOUS]}return r.replaceNode(n,c,e.createToken(81)),r.insertText(n,u.end," = "),r.insertText(n,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,u.text]}return e.isSourceFileJS(n)&&e.isPropertyAccessExpression(o.parent)&&e.isAssignmentExpression(o.parent.parent)?(t.addJSDocTags(r,n,s,[e.createJSDocClassTag()]),e.Diagnostics.Add_class_tag):void 0}}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={}))}(d||(d={})),function(e){!function(t){var r=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2.code];function n(t,r,n){var i,a=e.getTokenAtPosition(t,r),o=a.parent,s=n.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isIdentifierOrPrivateIdentifier(a),"Expected an identifier for spelling (property access)");var c=s.getTypeAtLocation(o.expression);32&o.flags&&(c=s.getNonNullableType(c)),i=s.getSuggestedSymbolForNonexistentProperty(a,c)}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var u=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));u&&u.symbol&&(i=s.getSuggestedSymbolForNonexistentModule(a,u.symbol))}else{var l=e.getMeaningFromLocation(a),_=e.getTextOfNode(a);e.Debug.assert(void 0!==_,"name should be defined"),i=s.getSuggestedSymbolForNonexistentSymbol(a,_,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(l))}return void 0===i?void 0:{node:a,suggestedSymbol:i}}function i(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.createIdentifier(o)):t.replaceNode(r,n.parent,e.createElementAccess(n.parent.expression,e.createLiteral(o)))}else t.replaceNode(r,n,e.createIdentifier(o))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,o=n(a,r.span.start,r);if(o){var s=o.node,c=o.suggestedSymbol,u=r.host.getCompilationSettings().target,l=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,a,s,c,u)}));return[t.createCodeFixAction("spelling",l,[e.Diagnostics.Change_spelling_to_0,e.symbolName(c)],"fixSpelling",e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:["fixSpelling"],getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){var a=n(r.file,r.start,e),o=e.host.getCompilationSettings().target;a&&i(t,e.sourceFile,a.node,a.suggestedSymbol,o)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r,n="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBlockBodyBrace",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,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)&&u(t,n,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)){if(u(t,n,s=e.createObjectLiteral([e.createPropertyAssignment(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 s,c=e.first(o.statements);if(e.isLabeledStatement(c)&&e.isExpressionStatement(c.statement))if(u(t,n,s=e.createObjectLiteral([e.createPropertyAssignment(c.label,c.statement.expression)]),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:c}}}}function u(t,r,n,i,a){return t.isTypeAssignableTo(t.getTypeAtLocation(a?e.updateFunctionLikeBody(r,e.createBlock([e.createReturn(n)])):n),i)}function l(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 c(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),u=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!u)return;return c(t,o,u,!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 242:case 156:case 191:case 159:case 281:return t.initializer;case 273:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 282:case 158:case 284:case 323:case 317:return}}(a.parent);if(!l||!e.isFunctionLikeDeclaration(l)||!l.body)return;return c(t,l,t.getTypeAtLocation(a.parent),!0)}}}function _(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.createReturn(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function d(t,r,n,i,a,o){var s=o||e.needsParentheses(i)?e.createParen(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(r,n.body,s)}function p(t,r,n,i){t.replaceNode(r,n.body,e.createParen(i))}function f(r,a,o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return _(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 g(r,i,a){var s=e.textChanges.ChangeTracker.with(r,(function(e){return p(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(_)return _.kind===r.MissingReturnStatement?e.append([f(i,_.expression,_.statement)],e.isArrowFunction(_.declaration)?function(r,i,o,s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return d(e,r.sourceFile,i,o,s,!1)}));return t.createCodeFixAction(n,c,e.Diagnostics.Remove_block_body_braces,a,e.Diagnostics.Remove_all_incorrect_body_block_braces)}(i,_.declaration,_.expression,_.commentSource):void 0):[g(i,_.declaration,_.expression)]},getAllCodeActions:function(r){return t.codeFixAll(r,s,(function(t,n){var s=l(r.program.getTypeChecker(),n.file,n.start,n.code);if(s)switch(r.fixId){case i:_(t,n.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;d(t,n.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;p(t,n.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r,n="addMissingMember",i=[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],a="addMissingMember";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.isPropertyAccessExpression(o)){var s=e.skipConstraint(n.getTypeAtLocation(o.expression)),c=s.symbol;if(c&&c.declarations){var u=e.find(c.declarations,e.isClassLike);if(u||!e.isPrivateIdentifier(a)){var l=u||e.find(c.declarations,e.isInterfaceDeclaration);if(l&&!i.isSourceFileFromExternalLibrary(l.getSourceFile())){var _=(s.target||s)!==n.getDeclaredTypeOfSymbol(c);if(_&&(e.isPrivateIdentifier(a)||e.isInterfaceDeclaration(l)))return;var d=l.getSourceFile();return{kind:1,token:a,parentDeclaration:l,makeStatic:_,declSourceFile:d,inJs:e.isSourceFileJS(d),call:e.tryCast(o.parent,e.isCallExpression)}}var p=e.find(c.declarations,e.isEnumDeclaration);return!p||e.isPrivateIdentifier(a)||i.isSourceFileFromExternalLibrary(p.getSourceFile())?void 0:{kind:0,token:a,parentDeclaration:p}}}}}}function s(t,r,n,i,a){var o=i.text;if(a){if(214===n.kind)return;var s=n.name.getText(),u=c(e.createIdentifier(s),o);t.insertNodeAfter(r,n,u)}else if(e.isPrivateIdentifier(i)){var l=e.createProperty(void 0,void 0,o,void 0,void 0,void 0),_=d(n);_?t.insertNodeAfter(r,_,l):t.insertNodeAtClassStart(r,n,l)}else{var p=e.getFirstConstructorWithBody(n);if(!p)return;var f=c(e.createThis(),o);t.insertNodeAtConstructorEnd(r,p,f)}}function c(t,r){return e.createStatement(e.createAssignment(e.createPropertyAccess(t,r),e.createIdentifier("undefined")))}function u(t,r,n){var i;if(209===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.createKeywordTypeNode(125)}function l(r,i,o,s,c,u){var l=e.textChanges.ChangeTracker.with(r,(function(e){return _(e,i,o,s,c,u)}));return 8&u?t.createCodeFixActionWithoutFixAll(n,l,[e.Diagnostics.Declare_private_property_0,s]):t.createCodeFixAction(n,l,[32&u?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,s],a,e.Diagnostics.Add_all_missing_members)}function _(t,r,n,i,a,o){var s=e.createProperty(void 0,o?e.createNodeArray(e.createModifiersFromModifierFlags(o)):void 0,i,void 0,a,void 0),c=d(n);c?t.insertNodeAfter(r,c,s):t.insertNodeAtClassStart(r,n,s)}function d(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 p(r,n,i,a,o,s,c,u){var l=t.createImportAdder(i,r.program,r.preferences,r.host),_=t.createMethodFromCallExpression(r,s,o.text,u,c,a,l),d=e.getAncestor(s,161);d&&d.parent===a?n.insertNodeAfter(i,d,_):n.insertNodeAtClassStart(i,a,_),l.writeFixes(n)}function f(t,r,n,i){var a=e.some(i.members,(function(e){var t=r.getTypeAtLocation(e);return!!(t&&132&t.flags)})),o=e.createEnumMember(n,a?e.createStringLiteral(n.text):void 0);t.replaceNode(i.getSourceFile(),i,e.updateEnumDeclaration(i,i.decorators,i.modifiers,i.name,e.concatenate(i.members,e.singleElementArray(o))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}t.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i=o(r.sourceFile,r.span.start,r.program.getTypeChecker(),r.program);if(i){if(0===i.kind){var c=i.token,_=i.parentDeclaration,d=e.textChanges.ChangeTracker.with(r,(function(e){return f(e,r.program.getTypeChecker(),c,_)}));return[t.createCodeFixAction(n,d,[e.Diagnostics.Add_missing_enum_member_0,c.text],a,e.Diagnostics.Add_all_missing_members)]}var g=i.parentDeclaration,m=i.declSourceFile,y=i.inJs,v=i.makeStatic,h=i.token,b=i.call,x=b&&function(r,i,o,s,c,u,l){if(e.isPrivateIdentifier(s))return;var _=e.textChanges.ChangeTracker.with(r,(function(e){return p(r,e,i,o,s,c,u,l)}));return t.createCodeFixAction(n,_,[u?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,s.text],a,e.Diagnostics.Add_all_missing_members)}(r,m,g,h,b,v,y),D=y&&!e.isInterfaceDeclaration(g)?e.singleElementArray(function(r,i,o,c,u){var l=e.textChanges.ChangeTracker.with(r,(function(e){return s(e,i,o,c,u)}));if(0===l.length)return;var _=u?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(c)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return t.createCodeFixAction(n,l,[_,c.text],a,e.Diagnostics.Add_all_missing_members)}(r,m,g,h,v)):function(r,i,a,o,s){var c=u(r.program.getTypeChecker(),a,o),_=[l(r,i,a,o.text,c,s?32:0)];if(s||e.isPrivateIdentifier(o))return _;e.startsWithUnderscore(o.text)&&_.unshift(l(r,i,a,o.text,c,8));return _.push(function(r,i,a,o,s){var c=e.createKeywordTypeNode(143),u=e.createParameter(void 0,void 0,void 0,"x",void 0,c,void 0),l=e.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,i,a,o.text,c)),_}(r,m,g,h,v);return e.concatenate(e.singleElementArray(x),D)}},fixIds:[a],getAllCodeActions:function(r){var n=r.program,a=n.getTypeChecker(),c=e.createMap(),l=new e.NodeMap;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(function(d){t.eachDiagnostic(r,i,(function(t){var n=o(t.file,t.start,a,r.program);if(n&&e.addToSeen(c,e.getNodeId(n.parentDeclaration)+"#"+n.token.text))if(0===n.kind){var i=n.token,s=n.parentDeclaration;f(d,a,i,s)}else{s=n.parentDeclaration;var u=n.token,_=l.getOrUpdate(s,(function(){return[]}));_.some((function(e){return e.token.text===u.text}))||_.push(n)}})),l.forEach((function(t,i){for(var o=function(t,r){var n=[];for(;t;){var i=e.getClassExtendsHeritageElement(t),a=i&&r.getSymbolAtLocation(i.expression),o=a&&e.find(a.declarations,e.isClassLike);o&&n.push(o),t=o}return n}(i,a),c=function(t){if(o.some((function(e){var r=l.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.inJs,f=t.makeStatic,g=t.token,m=t.call;if(m&&!e.isPrivateIdentifier(g))p(r,d,a,i,g,m,f,c);else if(c&&!e.isInterfaceDeclaration(i))s(d,a,i,g,f);else{var y=u(n.getTypeChecker(),i,g);_(d,a,i,g.text,y,f?32:0)}},f=0,g=t;f<g.length;f++){c(g[f])}}))})))}}),function(e){e[e.Enum=0]="Enum",e[e.ClassOrInterface=1]="ClassOrInterface"}(r||(r={}))}(e.codefix||(e.codefix={}))}(d||(d={})),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.createNew(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={}))}(d||(d={})),function(e){!function(t){var r=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,n=[r,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function i(e,t){return{type:"install package",file:e,packageName:t}}function a(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 o(t,n,i){return i===r?e.JsTyping.nodeCoreModules.has(t)?"@types/node":void 0:n.isKnownTypesPackageName(t)?e.getTypesPackageName(t):void 0}t.registerCodeFix({errorCodes:n,getCodeActions:function(r){var n=r.host,s=r.sourceFile,c=a(s,r.span.start);if(void 0!==c){var u=o(c,n,r.errorCode);return void 0===u?[]:[t.createCodeFixAction("fixCannotFindModule",[],[e.Diagnostics.Install_0,u],"installTypesPackage",e.Diagnostics.Install_all_missing_types_packages,i(s.fileName,u))]}},fixIds:["installTypesPackage"],getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n,s){var c=a(n.file,n.start);if(void 0!==c)switch(r.fixId){case"installTypesPackage":var u=o(c,r.host,n.code);u&&s.push(i(n.file.fileName,u));break;default:e.Debug.fail("Bad fixId: "+r.fixId)}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),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,_,i,s,d,(function(e){return a.insertNodeAtClassStart(n,r,e)})),d.writeFixes(a)}function o(t){var r=e.getModifierFlags(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=e.createMap();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={}))}(d||(d={})),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(104===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=e.createMap();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={}))}(d||(d={})),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.createStatement(e.createCall(e.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={}))}(d||(d={})),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.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={}))}(d||(d={})),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.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={}))}(d||(d={})),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],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.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.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.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={}))}(d||(d={})),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 90===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.createToken(113)),2===i.length&&90===i[0].token&&113===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.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={}))}(d||(d={})),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.createPropertyAccess(a?e.createIdentifier(a):e.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={}))}(d||(d={})),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(s,r)+"}";t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="unusedIdentifier",n="unusedIdentifier_prefix",i="unusedIdentifier_delete",a="unusedIdentifier_infer",o=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];function s(t,r,n){t.replaceNode(r,n.parent,e.createKeywordTypeNode(148))}function c(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function u(t,r,n){t.delete(r,e.Debug.checkDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function l(t){return 96===t.kind?e.tryCast(t.parent,e.isImportDeclaration):void 0}function _(t,r,n,i,a,o){if(18!==t.kind||!e.isObjectBindingPattern(t.parent))return!1;var s=t.parent.parent;return 156===s.kind?g(r,n,s,i,a,o):r.delete(n,s),!0}function d(t,r,n){var i=e.tryCast(r.parent,e.isVariableDeclarationList);return!(!i||i.getChildren(t)[0]!==r)&&(n.delete(t,225===i.parent.kind?i.parent:i),!0)}function p(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(132===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&function(e){switch(e.parent.kind){case 156:case 155:return!0;case 242:switch(e.parent.parent.parent.kind){case 232:case 231:return!0}}return!1}(i)&&(t.replaceNode(n,i,e.createIdentifier("_"+i.text)),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach((function(r){e.isIdentifier(r.name)&&t.replaceNode(n,r.name,e.createIdentifier("_"+r.name.text))}))))}function f(t,r,n,i,a,o){!function(t,r,n,i,a,o){var s=t.parent;e.isParameter(s)?g(r,n,s,i,a,o):r.delete(n,e.isImportClause(s)?t:e.isComputedPropertyName(s)?s.parent:s)}(r,n,t,i,a,o),e.isIdentifier(r)&&function(t,r,n,i){e.FindAllReferences.Core.eachSymbolReferenceInFile(n,i,r,(function(n){e.isPropertyAccessExpression(n.parent)&&n.parent.name===n&&(n=n.parent),e.isBinaryExpression(n.parent)&&e.isExpressionStatement(n.parent.parent)&&n.parent.left===n&&t.delete(r,n.parent.parent)}))}(n,t,r,i)}function g(t,r,n,i,a,o){(function(t,r,n){var i=t.parent;switch(i.kind){case 161:var a=r.getSymbolAtLocation(i.name);if(e.isMemberSymbolInBaseType(a,r))return!1;case 162:case 244:return!0;case 201:case 202:var o=i.parameters,s=o.indexOf(t);return e.Debug.assert(-1!==s,"The parameter should already be in the list"),n?o.slice(s+1).every((function(e){return 75===e.name.kind&&!e.symbol.isReferenced})):s===o.length-1;case 164:return!1;default:return e.Debug.failBadSyntaxKind(i)}})(n,i,o)&&(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach((function(e){t.deleteModifier(r,e)})):(t.delete(r,n),function(t,r,n,i,a){e.FindAllReferences.Core.eachSignatureCall(n.parent,i,a,(function(e){var i=n.parent.parameters.indexOf(n);e.arguments.length>i&&t.delete(r,e.arguments[i])}))}(t,r,n,a,i)))}t.registerCodeFix({errorCodes:o,getCodeActions:function(i){var o=i.errorCode,g=i.sourceFile,m=i.program,y=m.getTypeChecker(),v=m.getSourceFiles(),h=e.getTokenAtPosition(g,i.span.start);if(e.isJSDocTemplateTag(h))return[c(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(g,h)})),e.Diagnostics.Remove_template_tag)];if(29===h.kind)return[c(C=e.textChanges.ChangeTracker.with(i,(function(e){return u(e,g,h)})),e.Diagnostics.Remove_type_parameters)];var b=l(h);if(b)return[c(C=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(g,b)})),[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(b)])];var x=e.textChanges.ChangeTracker.with(i,(function(e){return _(h,e,g,y,v,!1)}));if(x.length)return[c(x,e.Diagnostics.Remove_destructuring)];var D=e.textChanges.ChangeTracker.with(i,(function(e){return d(g,h,e)}));if(D.length)return[c(D,e.Diagnostics.Remove_variable_statement)];var S=[];if(132===h.kind){var C=e.textChanges.ChangeTracker.with(i,(function(e){return s(e,g,h)})),T=e.cast(h.parent,e.isInferTypeNode).typeParameter.name.text;S.push(t.createCodeFixAction(r,C,[e.Diagnostics.Replace_infer_0_with_unknown,T],a,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var k=e.textChanges.ChangeTracker.with(i,(function(e){return f(g,h,e,y,v,!1)}));if(k.length){T=e.isComputedPropertyName(h.parent)?h.parent:h;S.push(c(k,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,T.getText(g)]))}}var E=e.textChanges.ChangeTracker.with(i,(function(e){return p(e,o,g,h)}));return E.length&&S.push(t.createCodeFixAction(r,E,[e.Diagnostics.Prefix_0_with_an_underscore,h.getText(g)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),S},fixIds:[n,i,a],getAllCodeActions:function(r){var c=r.sourceFile,g=r.program,m=g.getTypeChecker(),y=g.getSourceFiles();return t.codeFixAll(r,o,(function(t,o){var g=e.getTokenAtPosition(c,o.start);switch(r.fixId){case n:p(t,o.code,c,g);break;case i:if(132===g.kind)break;var v=l(g);v?t.delete(c,v):e.isJSDocTemplateTag(g)?t.delete(c,g):29===g.kind?u(t,c,g):_(g,t,c,m,y,!0)||d(c,g,t)||f(c,g,t,m,y,!0);break;case a:132===g.kind&&s(t,c,g);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),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 227:if(u.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.createBlock(e.emptyArray))}case 229:case 230: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={}))}(d||(d={})),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={}))}(d||(d={})),function(e){!function(t){var r=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function n(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r,void 0))}function i(t,r,n){var i=e.findAncestor(e.getTokenAtPosition(t,r),a),o=i&&i.type;return o&&{typeNode:o,type:n.getTypeFromTypeNode(o)}}function a(e){switch(e.kind){case 217:case 165:case 166:case 244:case 163:case 167:case 186:case 161:case 160:case 156:case 159:case 158:case 164:case 247:case 199:case 242:return!0;default:return!1}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,o=r.program.getTypeChecker(),s=i(a,r.span.start,o);if(s){var c=s.typeNode,u=s.type,l=c.getText(a),_=[d(u,"fixJSDocTypes_plain",e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 297===c.kind&&_.push(d(o.getNullableType(u,32768),"fixJSDocTypes_nullable",e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),_}function d(i,s,u){var _=e.textChanges.ChangeTracker.with(r,(function(e){return n(e,a,c,i,o)}));return t.createCodeFixAction("jdocTypes",_,[e.Diagnostics.Change_0_to_1,l,o.typeToString(i)],s,u)}},fixIds:["fixJSDocTypes_plain","fixJSDocTypes_nullable"],getAllCodeActions:function(e){var a=e.fixId,o=e.program,s=e.sourceFile,c=o.getTypeChecker();return t.codeFixAll(e,r,(function(e,t){var r=i(t.file,t.start,c);if(r){var o=r.typeNode,u=r.type,l=297===o.kind&&"fixJSDocTypes_nullable"===a?c.getNullableType(u,32768):u;n(e,s,o,l,c)}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),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={}))}(d||(d={})),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.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingFunction(n);if(i){var a,o;switch(i.kind){case 161:a=i.name;break;case 244:case 201:a=e.findChildOfKind(i,94,t);break;case 202: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&&75===o.kind&&"Promise"===o.text||t.replaceNode(r,a,e.createTypeReferenceNode("Promise",e.createNodeArray([a])))}t.insertModifierBefore(r,126,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=e.createMap();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={}))}(d||(d={})),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,o,d,m,y,v){if(e.isParameterPropertyModifier(i.kind)||75===i.kind||25===i.kind||104===i.kind){var h=i.parent,b=t.createImportAdder(n,o,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 s(r,b,n,h,o,y,d),b.writeFixes(r),h;if(e.isPropertyAccessExpression(h)){var x=p(h.name,o,d),D=e.getTypeNodeIfAccessible(x,h,o,y);if(D){var S=e.createJSDocTypeTag(e.createJSDocTypeExpression(D),"");_(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 C=o.getTypeChecker().getSymbolAtLocation(i);return C&&C.valueDeclaration&&e.isVariableDeclaration(C.valueDeclaration)&&m(C.valueDeclaration)?(s(r,b,n,C.valueDeclaration,o,y,d),b.writeFixes(r),C.valueDeclaration):void 0}var T=e.getContainingFunction(i);if(void 0!==T){var k;switch(a){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(T)){c(r,b,n,T,o,y,d),k=T;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(m(T)){var E=e.cast(h,e.isParameter);!function(t,r,n,i,a,o,s,c){if(!e.isIdentifier(i.name))return;var _=function(t,r,n,i){var a=f(t,r,n,i);return a&&g(n,a,i).parameters(t)||t.parameters.map((function(t){return{declaration:t,type:e.isIdentifier(t.name)?p(t.name,n,i):n.getTypeChecker().getAnyType()}}))}(a,n,o,c);if(e.Debug.assert(a.parameters.length===_.length,"Parameter count and inference count should match"),e.isInJSFile(a))l(t,n,_,o,s);else{var d=e.isArrowFunction(a)&&!e.findChildOfKind(a,20,n);d&&t.insertNodeBefore(n,e.first(a.parameters),e.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||u(t,r,n,h,b,o,s)}d&&t.insertNodeAfter(n,e.last(a.parameters),e.createToken(21))}}(r,b,n,E,T,o,y,d),k=E}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(T)&&e.isIdentifier(T.name)&&(u(r,b,n,T,p(T.name,o,d),o,y),k=T);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(T)&&(c(r,b,n,T,o,y,d),k=T);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(T)&&m(T)&&(!function(t,r,n,i,a,o){var s=f(n,r,i,o);if(!s||!s.length)return;var c=g(i,s,o).thisParameter(),u=e.getTypeNodeIfAccessible(c,n,i,a);if(!u)return;e.isInJSFile(n)?function(t,r,n,i){_(t,r,n,[e.createJSDocThisTag(e.createJSDocTypeExpression(i))])}(t,r,n,u):t.tryInsertThisTypeAnnotation(r,n,u)}(r,n,T,o,y,d),k=T);break;default:return e.Debug.fail(String(a))}return b.writeFixes(r),k}}}function s(t,r,n,i,a,o,s){e.isIdentifier(i.name)&&u(t,r,n,i,p(i.name,a,s),a,o)}function c(t,r,n,i,a,o,s){var c=e.firstOrUndefined(i.parameters);if(c&&e.isIdentifier(i.name)&&e.isIdentifier(c.name)){var _=p(i.name,a,s);_===a.getTypeChecker().getAnyType()&&(_=p(c.name,a,s)),e.isInJSFile(i)?l(t,n,[{declaration:c,type:_}],a,o):u(t,r,n,c,_,a,o)}}function u(r,n,i,a,o,s,c){var u=e.getTypeNodeIfAccessible(o,a,s,c);if(u)if(e.isInJSFile(i)&&158!==a.kind){var l=e.isVariableDeclaration(a)?e.tryCast(a.parent.parent,e.isVariableStatement):a;if(!l)return;var d=e.createJSDocTypeExpression(u);_(r,i,l,[e.isGetAccessorDeclaration(a)?e.createJSDocReturnTag(d,""):e.createJSDocTypeTag(d,"")])}else(function(r,n,i,a,o,s,c){var u=t.tryGetAutoImportableReferenceFromImportTypeNode(r,i,c);if(u&&o.tryInsertTypeAnnotation(a,n,u.typeReference))return e.forEach(u.symbols,(function(e){return s.addImportFromExportedSymbol(e,!0)})),!0;return!1})(u,a,o,i,r,n,e.getEmitScriptTarget(s.getCompilerOptions()))||r.tryInsertTypeAnnotation(i,a,u)}function l(t,r,n,i,a){var o=n.length&&n[0].declaration.parent;o&&_(t,r,o,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),o=e.getSynthesizedClone(r.name);return e.setEmitFlags(o,3584),n&&e.createJSDocParamTag(o,!!t.isOptional,e.createJSDocTypeExpression(n),"")}})))}function _(t,r,n,i){var a=e.mapDefined(n.jsDoc,(function(e){return e.comment})),s=e.flatMapToMutable(n.jsDoc,(function(e){return e.tags})),c=i.filter((function(t){return!s||!s.some((function(r,n){var i=function(t,r){if(t.kind!==r.kind)return;switch(t.kind){case 317:var n=t,i=r;return e.isIdentifier(n.name)&&e.isIdentifier(i.name)&&n.name.escapedText===i.name.escapedText?e.createJSDocParamTag(i.name,i.isBracketed,i.typeExpression,n.comment):void 0;case 318:return e.createJSDocReturnTag(r.typeExpression,t.comment)}}(r,t);return i&&(s[n]=i),!!i}))})),u=e.createJSDocComment(a.join("\n"),e.createNodeArray(o(s||e.emptyArray,c))),l=202===n.kind?function(e){if(159===e.parent.kind)return e.parent;return e.parent.parent}(n):n;l.jsDoc=n.jsDoc,l.jsDocCache=n.jsDocCache,t.insertJsdocCommentBefore(r,l,u)}function d(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 p(e,t,r){return g(t,d(e,t,r),r).single()}function f(t,r,n,i){var a;switch(t.kind){case 162:a=e.findChildOfKind(t,129,r);break;case 202:case 201:var o=t.parent;a=e.isVariableDeclaration(o)&&e.isIdentifier(o.name)?o.name:t.name;break;case 244:case 161:a=t.name}if(a)return d(a,n,i)}function g(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)}},s=[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 s=c(),_=0,p=r;_<p.length;_++){var g=p[_];n.throwIfCancellationRequested(),l(g,s)}var m=o(s.constructs||[],s.calls||[]);return a.parameters.map((function(r,o){for(var s=[],c=e.isRestParameter(r),l=!1,_=0,p=m;_<p.length;_++){var g=p[_];if(g.argumentTypes.length<=o)l=e.isInJSFile(a),s.push(i.getUndefinedType());else if(c)for(var y=o;y<g.argumentTypes.length;y++)s.push(i.getBaseTypeOfLiteralType(g.argumentTypes[y]));else s.push(i.getBaseTypeOfLiteralType(g.argumentTypes[o]))}if(e.isIdentifier(r.name)){var v=u(d(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=c(),i=0,a=r;i<a.length;i++){var o=a[i];n.throwIfCancellationRequested(),l(o,t)}return f(t.candidateThisTypes||e.emptyArray)}};function c(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function 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 226:!function(t,r){v(r,e.isCallExpression(t)?i.getVoidType():i.getAnyType())}(t,r);break;case 208:r.isNumber=!0;break;case 207:!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 209:!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 74: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:132&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 97:t===r.left&&(n.isString=!0);break;case 56:case 60:t!==r.left||242!==t.parent.parent.kind&&!e.isAssignmentExpression(t.parent.parent,!0)||v(n,i.getTypeAtLocation(r.right))}}(t,t.parent,r);break;case 277:case 278:!function(e,t){v(t,i.getTypeAtLocation(e.parent.parent.expression))}(t.parent,r);break;case 196:case 197: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_),196===e.kind?(t.calls||(t.calls=[])).push(r):(t.constructs||(t.constructs=[])).push(r)}(t.parent,r):_(t,r);break;case 194:!function(t,r){var n=e.escapeLeadingUnderscores(t.name.text);r.properties||(r.properties=e.createUnderscoreEscapedMap());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 195:!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 281:case 282:!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 159:!function(e,t){h(t,i.getTypeAtLocation(e.parent))}(t.parent,r);break;case 242:var n=t.parent,a=n.name,o=n.initializer;if(t===a){o&&v(r,i.getTypeAtLocation(o));break}default:return _(t,r)}}function _(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,o,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===(o=t.constructs)||void 0===o?void 0:o.length)||t.stringIndex)&&c.push(function(t){var r=e.createUnderscoreEscapedMap();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=s.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(function t(r){for(var n=e.createUnderscoreEscapedMap(),i=0,a=r;i<a.length;i++){var o=a[i];o.properties&&o.properties.forEach((function(e,t){n.has(t)||n.set(t,[]),n.get(t).push(e)}))}var s=e.createUnderscoreEscapedMap();return n.forEach((function(e,r){s.set(r,t(e))})),{isNumber:r.some((function(e){return e.isNumber})),isString:r.some((function(e){return e.isString})),isNumberOrString:r.some((function(e){return e.isNumberOrString})),candidateTypes:e.flatMap(r,(function(e){return e.candidateTypes})),properties:s,calls:e.flatMap(r,(function(e){return e.calls})),constructs:e.flatMap(r,(function(e){return e.constructs})),numberIndex:e.forEach(r,(function(e){return e.numberIndex})),stringIndex:e.forEach(r,(function(e){return e.stringIndex})),candidateThisTypes:e.flatMap(r,(function(e){return e.candidateThisTypes})),inferredTypes:void 0}}(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=_}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="disableJsDiagnostics",n=e.mapDefined(Object.keys(e.Diagnostics),(function(t){var r=e.Diagnostics[t];return r.category===e.DiagnosticCategory.Error?r.code:void 0}));function i(t,r,n,i){var a=e.getLineAndCharacterOfPosition(r,n).line;i&&!e.addToSeen(i,a)||t.insertCommentBeforeLine(r,a,n," @ts-ignore")}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.sourceFile,o=n.program,s=n.span,c=n.host,u=n.formatContext;if(e.isInJSFile(a)&&e.isCheckJsEnabledForFile(a,o.getCompilerOptions())){var l=a.checkJsDirective?"":e.getNewLineOrDefaultFromHost(c,u.options),_=[t.createCodeFixActionWithoutFixAll("disableJsDiagnostics",[t.createFileTextChanges(a.fileName,[e.createTextChange(a.checkJsDirective?e.createTextSpanFromBounds(a.checkJsDirective.pos,a.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+l)])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(a,s.start)&&_.unshift(t.createCodeFixAction("disableJsDiagnostics",e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a,s.start)})),e.Diagnostics.Ignore_this_error_message,r,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),_}},fixIds:[r],getAllCodeActions:function(r){var a=e.createMap();return t.codeFixAll(r,n,(function(t,r){e.textChanges.isValidLocationToAddComment(r.file,r.start)&&i(t,r.file,r.start,a)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),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){var d=t.getDeclarations();if(d&&d.length){var p=i.program.getTypeChecker(),f=e.getEmitScriptTarget(i.program.getCompilerOptions()),g=d[0],m=e.getSynthesizedDeepClone(e.getNameOfDeclaration(g),!1),y=function(t){if(4&t)return e.createToken(119);if(16&t)return e.createToken(118);return}(e.getModifierFlags(g)),v=y?e.createNodeArray([y]):void 0,h=p.getWidenedType(p.getTypeOfSymbolAtLocation(t,n)),b=!!(16777216&t.flags),x=!!(8388608&n.flags);switch(g.kind){case 158:case 159:var D="single"===s.quotePreference?268435456:void 0,S=p.typeToTypeNode(h,n,D,r(i));if(c)(C=l(S,h,f))&&(S=C.typeReference,_(c,C.symbols));u(e.createProperty(void 0,v,m,b?e.createToken(57):void 0,S,void 0));break;case 163:case 164:var C,T=p.typeToTypeNode(h,n,void 0,r(i)),k=e.getAllAccessorDeclarations(d,g),E=k.secondAccessor?[k.firstAccessor,k.secondAccessor]:[k.firstAccessor];if(c)(C=l(T,h,f))&&(T=C.typeReference,_(c,C.symbols));for(var N=0,A=E;N<A.length;N++){var F=A[N];if(e.isGetAccessorDeclaration(F))u(e.createGetAccessor(void 0,v,m,e.emptyArray,T,x?void 0:o(s)));else{e.Debug.assertNode(F,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var P=e.getSetAccessorValueParameter(F),w=P&&e.isIdentifier(P.name)?e.idText(P.name):void 0;u(e.createSetAccessor(void 0,v,m,a(1,[w],[T],1,!1),x?void 0:o(s)))}}break;case 160:case 161:var I=p.getSignaturesOfType(h,0);if(!e.some(I))break;if(1===d.length){e.Debug.assert(1===I.length,"One declaration implies one signature"),L(I[0],v,m,x?void 0:o(s));break}for(var O=0,M=I;O<M.length;O++){L(M[O],e.getSynthesizedDeepClones(v,!1),e.getSynthesizedDeepClone(m,!1))}if(!x)if(d.length>I.length)L(p.getSignatureFromDeclaration(d[d.length-1]),v,m,o(s));else e.Debug.assert(d.length===I.length,"Declarations and signatures should match count"),u(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.createArrayTypeNode(e.createKeywordTypeNode(125)),v=e.createParameter(void 0,void 0,e.createToken(25),g[f]||"rest",f>=u?e.createToken(57):void 0,y,void 0);m.push(v)}return function(t,r,n,i,a,s,c){return e.createMethod(void 0,t,void 0,r,n?e.createToken(57):void 0,i,a,s,o(c))}(i,r,n,void 0,m,void 0,s)}(I,m,b,v,s))}}function L(t,a,o,s){var d=function(t,n,i,a,o,s,c,u){var d=t.program,p=d.getTypeChecker(),f=e.getEmitScriptTarget(d.getCompilerOptions()),g=p.signatureToSignatureDeclaration(n,161,i,257,r(t));if(!g)return;if(u&&(g.typeParameters&&e.forEach(g.typeParameters,(function(e,t){var r,i=n.typeParameters[t];e.constraint&&((r=l(e.constraint,i.constraint,f))&&(e.constraint=r.typeReference,_(u,r.symbols)));e.default&&((r=l(e.default,i.default,f))&&(e.default=r.typeReference,_(u,r.symbols)))})),e.forEach(g.parameters,(function(e,t){var r=n.parameters[t],i=l(e.type,p.getTypeAtLocation(r.valueDeclaration),f);i&&(e.type=i.typeReference,_(u,i.symbols))})),g.type)){var m=l(g.type,n.resolvedReturnType,f);m&&(g.type=m.typeReference,_(u,m.symbols))}return g.decorators=void 0,g.modifiers=a,g.name=o,g.questionToken=s?e.createToken(57):void 0,g.body=c,g}(i,t,n,a,o,b,s,c);d&&u(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=l(c,n,a);if(u)return _(r,u.symbols),u.typeReference}return c}function a(t,r,n,i,a){for(var o=[],s=0;s<t;s++){var c=e.createParameter(void 0,void 0,void 0,r&&r[s]||"arg"+s,void 0!==i&&s>=i?e.createToken(57):void 0,a?void 0:n&&n[s]||e.createKeywordTypeNode(125),void 0);o.push(c)}return o}function o(t){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.","single"===t.quotePreference)]))],!0)}function s(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=u(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,l=n;s<l.length;s++){var _=l[s],d=_[0],p=_[1],f=u(o,d);void 0===f?t.insertNodeAtObjectStart(r,o,c(d,p)):t.replaceNode(r,f.initializer,p)}}else t.insertNodeAtObjectStart(r,i,c("compilerOptions",e.createObjectLiteral(n.map((function(e){return c(e[0],e[1])})),!0)))}}function c(t,r){return e.createPropertyAssignment(e.createStringLiteral(t),r)}function u(t,r){return e.find(t.properties,(function(t){return e.isPropertyAssignment(t)&&!!t.name&&e.isStringLiteral(t.name)&&t.name.text===r}))}function l(t,r,n){if(t&&e.isLiteralImportTypeNode(t)&&t.qualifier&&(!r||r.symbol)){var i=e.getFirstIdentifier(t.qualifier),a=e.getNameForExportedSymbol(i.symbol,n),o=a!==i.text?function t(r,n){if(75===r.kind)return n;return e.createQualifiedName(t(r.left,n),r.right)}(t.qualifier,e.createIdentifier(a)):t.qualifier,s=[i.symbol],c=[];return t.typeArguments&&t.typeArguments.forEach((function(e){var t=l(e,r,n);t?(s.push.apply(s,t.symbols),c.push(t.typeReference)):c.push(e)})),{symbols:s,typeReference:e.createTypeReferenceNode(o,c)}}}function _(e,t){t.forEach((function(t){return e.addImportFromExportedSymbol(t,!0)}))}t.createMissingMemberNodes=function(e,t,r,i,a,o){for(var s=e.symbol.members,c=0,u=t;c<u.length;c++){var l=u[c];s.has(l.escapedName)||n(l,e,r,i,a,o)}},t.getNoopSymbolTrackerWithResolver=r,t.createMethodFromCallExpression=function(t,n,s,c,u,l,_){var d=!e.isInterfaceDeclaration(l),p=n.typeArguments,f=n.arguments,g=n.parent,m=e.getEmitScriptTarget(t.program.getCompilerOptions()),y=t.program.getTypeChecker(),v=r(t),h=e.map(f,(function(e){return i(y,_,y.getBaseTypeOfLiteralType(y.getTypeAtLocation(e)),l,m,void 0,v)})),b=e.map(f,(function(t){return e.isIdentifier(t)?t.text:e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)?t.name.text:void 0})),x=y.getContextualType(n),D=c||!x?void 0:y.typeToTypeNode(x,l,void 0,v);return e.createMethod(void 0,u?[e.createToken(120)]:void 0,e.isYieldExpression(g)?e.createToken(41):void 0,s,void 0,c?void 0:e.map(p,(function(t,r){return e.createTypeParameterDeclaration(84+p.length-1<=90?String.fromCharCode(84+r):"T"+r)})),a(f.length,b,h,void 0,c),D,d?o(t.preferences):void 0)},t.typeToAutoImportableTypeNode=i,t.setJsonCompilerOptionValues=s,t.setJsonCompilerOptionValue=function(e,t,r,n){s(e,t,[[r,n]])},t.createJsonPropertyAssignment=c,t.findJsonProperty=u,t.tryGetAutoImportableReferenceFromImportTypeNode=l,t.importSymbols=_}(e.codefix||(e.codefix={}))}(d||(d={})),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.createImportEqualsDeclaration(void 0,void 0,a.name,e.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.createPropertyAccess(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?196:197,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={}))}(d||(d={})),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.updateProperty(n,n.decorators,n.modifiers,n.name,e.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.createKeywordTypeNode(146),a=n.type,o=e.isUnionTypeNode(a)?a.types.concat(i):[a,i];t.replaceNode(r,a,e.createUnionTypeNode(o))}function d(t,r,n,i){var a=e.updateProperty(n,n.decorators,n.modifiers,n.name,n.questionToken,n.type,i);t.replaceNode(r,n,a)}function p(t,r){return function t(r,n){if(512&n.flags)return n===r.getFalseType()||n===r.getFalseType(!0)?e.createFalse():e.createTrue();if(n.isLiteral())return e.createLiteral(n.value);if(n.isUnion())return e.firstDefined(n.types,(function(e){return t(r,e)}));if(n.isClass()){var i=e.getClassLikeDeclarationOfSymbol(n.symbol);if(!i||e.hasModifier(i,128))return;var a=e.getFirstConstructorWithBody(i);if(a&&a.parameters.length)return;return e.createNew(e.createIdentifier(n.symbol.name),void 0,void 0)}if(r.isArrayLikeType(n))return e.createArrayLiteral();return}(t,t.getTypeFromTypeNode(r.type))}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={}))}(d||(d={})),function(e){!function(t){var r="requireInTs",n=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];function i(t,r,n,i){var a=function(t,r){var n=e.getTokenAtPosition(t,r).parent;if(!e.isRequireCall(n,!0))throw e.Debug.failBadSyntaxKind(n);var i=e.cast(n.parent,e.isVariableDeclaration);return{statement:e.cast(i.parent.parent,e.isVariableStatement),name:e.cast(i.name,e.isIdentifier),required:n.arguments[0]}}(r,n),o=a.statement,s=a.name,c=a.required;t.replaceNode(r,o,e.getAllowSyntheticDefaultImports(i.getCompilerOptions())?e.createImportDeclaration(void 0,void 0,e.createImportClause(s,void 0),c):e.createImportEqualsDeclaration(void 0,void 0,s,e.createExternalModuleReference(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,n.program)}));return[t.createCodeFixAction(r,a,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){return i(t,r.file,r.start,e.program)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),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={}))}(d||(d={})),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.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={}))}(d||(d={})),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(96===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(188===n.parent.kind,"Token parent should be an ImportType"),n.parent}function a(t,r,n){var i=e.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={}))}(d||(d={})),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,s=n.indexSignature,c=n.container,u=(e.isInterfaceDeclaration(c)?c.members:c.type.members).filter((function(t){return!e.isIndexSignatureDeclaration(t)})),l=e.first(s.parameters),_=e.createTypeParameterDeclaration(e.cast(l.name,e.isIdentifier),l.type),d=e.createMappedTypeNode(e.hasReadonlyModifier(s)?e.createModifier(138):void 0,_,s.questionToken,s.type),p=e.createIntersectionTypeNode(o(e.getAllSuperTypeNodes(c),[d],u.length?[e.createTypeLiteralNode(u)]:e.emptyArray));t.replaceNode(r,c,(i=c,a=p,e.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={}))}(d||(d={})),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 127===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&&99!==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={}))}(d||(d={})),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.updateImportDeclaration(r,r.decorators,r.modifiers,e.updateImportClause(i,i.name,void 0,i.isTypeOnly),r.moduleSpecifier)),t.insertNodeAfter(n.sourceFile,r,e.createImportDeclaration(void 0,void 0,e.updateImportClause(i,void 0,i.namedBindings,i.isTypeOnly),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={}))}(d||(d={})),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={}))}(d||(d={})),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.createNode(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={}))}(d||(d={})),function(e){!function(t){function r(t){var r=t.file,n=e.getRefactorContextSpan(t),i=e.getTokenAtPosition(r,n.start),a=e.getParentNodeInSpan(i,r,n);if(a&&(e.isSourceFile(a.parent)||e.isModuleBlock(a.parent)&&e.isAmbientModule(a.parent.parent))){var o=e.isSourceFile(a.parent)?a.parent.symbol:a.parent.parent.symbol,s=e.getModifierFlags(a),c=!!(512&s);if(1&s&&(c||!o.exports.has("default")))switch(a.kind){case 244:case 245:case 246:case 248:case 247:case 249:var u=a;return u.name&&e.isIdentifier(u.name)?{exportNode:u,exportName:u.name,wasDefault:c,exportingModuleSymbol:o}:void 0;case 225:var l=a;if(!(2&l.declarationList.flags)||1!==l.declarationList.declarations.length)return;var _=e.first(l.declarationList.declarations);if(!_.initializer)return;return e.Debug.assert(!c,"Can't have a default flag here"),e.isIdentifier(_.name)?{exportNode:l,exportName:_.name,wasDefault:c,exportingModuleSymbol:o}:void 0;default:return}}}function n(t,r){return e.createImportSpecifier(t===r?void 0:e.createIdentifier(t),e.createIdentifier(r))}t.registerRefactor("Convert export",{getAvailableActions:function(t){var n=r(t);if(!n)return e.emptyArray;var i=n.wasDefault?e.Diagnostics.Convert_default_export_to_named_export.message:e.Diagnostics.Convert_named_export_to_default_export.message;return[{name:"Convert export",description:i,actions:[{name:n.wasDefault?"Convert default export to named export":"Convert named export to default export",description:i}]}]},getEditsForAction:function(t,i){return e.Debug.assert("Convert default export to named export"===i||"Convert named export to default export"===i,"Unexpected action name"),{edits:e.textChanges.ChangeTracker.with(t,(function(i){return a=t.file,o=t.program,s=e.Debug.checkDefined(r(t),"context must have info"),c=i,u=t.cancellationToken,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,84),"Should find a default keyword in modifier list"));else{var c=e.Debug.checkDefined(e.findModifier(o,89),"Should find an export keyword in modifier list");switch(o.kind){case 244:case 245:case 246:n.insertNodeAfter(t,c,e.createToken(84));break;case 225:if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)){n.replaceNode(t,o,e.createExportDefault(e.Debug.checkDefined(e.first(o.declarationList.declarations).initializer,"Initializer was previously known to be present")));break}case 248:case 247:case 249:n.deleteModifier(t,c),n.insertNodeAfter(t,o,e.createExportDefault(e.createIdentifier(s.text)));break;default:e.Debug.assertNever(o,"Unexpected exportNode kind "+o.kind)}}}(a,s,c,o.getTypeChecker()),void function(t,r,i,a){var o=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,a,l,c,s.text,o,(function(t){var r=t.getSourceFile();o?function(t,r,i,a){var o=r.parent;switch(o.kind){case 194:i.replaceNode(t,r,e.createIdentifier(a));break;case 258:case 263:var s=o;i.replaceNode(t,s,n(a,s.name.text));break;case 255:var c=o;e.Debug.assert(c.name===r,"Import clause name should match provided ref"),s=n(a,r.text);var u=c.namedBindings;if(u)if(256===u.kind){i.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,[n(a,r.text)],c.parent.moduleSpecifier,l);i.insertNodeAfter(t,c.parent,_)}else i.delete(t,r),i.insertNodeAtEndOfList(t,u.elements,s);else i.replaceNode(t,r,e.createNamedImports([s]));break;default:e.Debug.failBadSyntaxKind(o)}}(r,t,i,s.text):function(t,r,n){var i,a,o=r.parent;switch(o.kind){case 194:n.replaceNode(t,r,e.createIdentifier("default"));break;case 258:var s=e.createIdentifier(o.name.text);1===o.parent.elements.length?n.replaceNode(t,o.parent,s):(n.delete(t,o),n.insertNodeBefore(t,o.parent,s));break;case 263:n.replaceNode(t,o,(i="default",a=o.name.text,e.createExportSpecifier(i===a?void 0:e.createIdentifier(i),e.createIdentifier(a))));break;default:e.Debug.assertNever(o,"Unexpected parent kind "+o.kind)}}(r,t,i)}))}(o,s,c,u);var a,o,s,c,u})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){function r(t){var r=t.file,n=e.getRefactorContextSpan(t),i=e.getTokenAtPosition(r,n.start),a=e.getParentNodeInSpan(i,r,n);if(a&&e.isImportDeclaration(a)){var o=a.importClause;return o&&o.namedBindings}}function n(t,r,n){return e.createImportDeclaration(void 0,void 0,e.createImportClause(r,n&&n.length?e.createNamedImports(n):void 0),t.moduleSpecifier)}t.registerRefactor("Convert import",{getAvailableActions:function(t){var n=r(t);if(!n)return e.emptyArray;var i=256===n.kind?e.Diagnostics.Convert_namespace_import_to_named_imports.message:e.Diagnostics.Convert_named_imports_to_namespace_import.message;return[{name:"Convert import",description:i,actions:[{name:256===n.kind?"Convert namespace import to named imports":"Convert named imports to namespace import",description:i}]}]},getEditsForAction:function(t,i){return e.Debug.assert("Convert namespace import to named imports"===i||"Convert named imports to namespace import"===i,"Unexpected action name"),{edits:e.textChanges.ChangeTracker.with(t,(function(i){return function(t,r,i,a){var o=r.getTypeChecker();256===a.kind?function(t,r,i,a,o){var s=!1,c=[],u=e.createMap();e.FindAllReferences.Core.eachSymbolReferenceInFile(a.name,r,t,(function(t){if(e.isPropertyAccessExpression(t.parent)){var n=e.cast(t.parent,e.isPropertyAccessExpression),i=n.name.text;r.resolveName(i,t,67108863,!0)&&u.set(i,!0),e.Debug.assert(n.expression===t,"Parent expression should match id"),c.push(n)}else s=!0}));for(var l=e.createMap(),_=0,d=c;_<d.length;_++){var p=d[_],f=p.name.text,g=l.get(f);void 0===g&&l.set(f,g=u.has(f)?e.getUniqueName(f,t):f),i.replaceNode(t,p,e.createIdentifier(g))}var m=[];l.forEach((function(t,r){m.push(e.createImportSpecifier(t===r?void 0:e.createIdentifier(r),e.createIdentifier(t)))}));var y=a.parent.parent;s&&!o?i.insertNodeAfter(t,y,n(y,void 0,m)):i.replaceNode(t,y,n(y,s?e.createIdentifier(a.name.text):void 0,m))}(t,o,i,a,e.getAllowSyntheticDefaultImports(r.getCompilerOptions())):function(t,r,i,a){for(var o=a.parent.parent,s=o.moduleSpecifier,c=s&&e.isStringLiteral(s)?e.codefix.moduleSpecifierToValidIdentifier(s.text,99):"module",u=a.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(n){var a=(n.propertyName||n.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,r,t,(function(r){var o=e.createPropertyAccess(e.createIdentifier(u),a);e.isShorthandPropertyAssignment(r.parent)?i.replaceNode(t,r.parent,e.createPropertyAssignment(r.text,o)):e.isExportSpecifier(r.parent)&&!r.parent.propertyName?l.some((function(e){return e.name===n.name}))||l.push(e.createImportSpecifier(n.propertyName&&e.createIdentifier(n.propertyName.text),e.createIdentifier(n.name.text))):i.replaceNode(t,r,o)}))},d=0,p=a.elements;d<p.length;d++){var f=p[d];_(f)}i.replaceNode(t,a,e.createNamespaceImport(e.createIdentifier(u))),l.length&&i.insertNodeAfter(t,a.parent.parent,n(o,void 0,l))}(t,o,i,a)}(t.file,t.program,i,e.Debug.checkDefined(r(t),"Context must provide an import to convert"))})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){!function(r){var n,i,a,o,s="Extract Symbol";function c(t){var r=l(t.file,e.getRefactorContextSpan(t)).targetRange;if(void 0===r)return e.emptyArray;var n=function(t,r){var n=p(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 162:return"constructor";case 201:case 244:return t.name?"function '"+t.name.text+"'":e.ANONYMOUS;case 202:return"arrow function";case 161:return"method '"+t.name.getText()+"'";case 163:return"'get "+t.name.getText()+"'";case 164:return"'set "+t.name.getText()+"'";default:throw e.Debug.assertNever(t,"Unexpected scope kind "+t.kind)}}(t):e.isClassLike(t)?function(e){return 245===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 250===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]}}}))}(r,t);if(void 0===n)return e.emptyArray;for(var i=[],a=e.createMap(),o=[],c=e.createMap(),u=0,_=0,d=n;_<d.length;_++){var f=d[_],g=f.functionExtraction,m=f.constantExtraction;if(0===g.errors.length){var y=g.description;a.has(y)||(a.set(y,!0),i.push({description:y,name:"function_scope_"+u}))}if(0===m.errors.length){y=m.description;c.has(y)||(c.set(y,!0),o.push({description:y,name:"constant_scope_"+u}))}u++}var v=[];return o.length&&v.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:o}),i.length&&v.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:i}),v.length?v:e.emptyArray}function u(t,r){var n=l(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=p(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(),v=e.getEmitScriptTarget(s.program.getCompilerOptions()),h=e.codefix.createImportAdder(s.file,s.program,s.preferences,s.host),b=r.getSourceFile(),x=e.getUniqueName(e.isClassLike(r)?"newMethod":"newFunction",b),D=e.isInJSFile(r),S=e.createIdentifier(x),C=[],T=[];l.forEach((function(t,n){var i;if(!D){var a=p.getTypeOfSymbolAtLocation(t.symbol,t.node);a=p.getBaseTypeOfLiteralType(a),i=e.codefix.typeToAutoImportableTypeNode(p,h,a,r,v,1)}var o=e.createParameter(void 0,void 0,void 0,n,void 0,i);C.push(o),2===t.usage&&(u||(u=[])).push(t),T.push(e.createIdentifier(n))}));var k=e.arrayFrom(_.values()).map((function(e){return{type:e,declaration:f(e)}})).sort(g),E=0===k.length?void 0:k.map((function(e){return e.declaration})),N=void 0!==E?E.map((function(t){return e.createTypeReferenceNode(t.name,void 0)})):void 0;if(e.isExpression(t)&&!D){var A=p.getContextualType(t);c=p.typeToTypeNode(A,r,1)}var F,P=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.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.createReturn(t)]);if(s||i.size){var l=e.visitNodes(u,(function t(a){if(!c&&235===a.kind&&s){var u=m(r,n);return a.expression&&(o||(o="__return"),u.unshift(e.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===u.length?e.createReturn(u[0].name):e.createReturn(e.createObjectLiteral(u))}var l=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var _=i.get(e.getNodeId(a).toString()),d=_?e.getSynthesizedDeepClone(_):e.visitEachChild(a,t,e.nullTransformationContext);return c=l,d})).slice();if(s&&!a&&e.isStatement(t)){var _=m(r,n);1===_.length?l.push(e.createReturn(_[0].name)):l.push(e.createReturn(e.createObjectLiteral(_)))}return{body:e.createBlock(l,!0),returnValueProperty:o}}return{body:e.createBlock(u,!0),returnValueProperty:void 0}}(t,a,u,d,!!(o.facts&i.HasReturn)),w=P.body,I=P.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(w),e.isClassLike(r)){var O=D?[]:[e.createToken(117)];o.facts&i.InStaticRegion&&O.push(e.createToken(120)),o.facts&i.IsAsyncFunction&&O.push(e.createToken(126)),F=e.createMethod(void 0,O.length?O:void 0,o.facts&i.IsGenerator?e.createToken(41):void 0,S,void 0,E,C,c,w)}else F=e.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.createToken(126)]:void 0,o.facts&i.IsGenerator?e.createToken(41):void 0,S,E,C,c,w);var M=e.textChanges.ChangeTracker.fromContext(s),L=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)}))}((y(o.range)?e.last(o.range):o.range).end,r);L?M.insertNodeBefore(s.file,L,F,!0):M.insertNodeAtEndOfScope(s.file,r,F);h.writeFixes(M);var R=[],B=function(t,r,n){var a=e.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.createIdentifier(t.name.text):e.createThis();return e.createPropertyAccess(o,a)}return a}(r,o,x),j=e.createCall(B,N,T);o.facts&i.IsGenerator&&(j=e.createYield(e.createToken(41),j));o.facts&i.IsAsyncFunction&&(j=e.createAwait(j));if(a.length&&!u)if(e.Debug.assert(!I,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var J=a[0];R.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(J.name),e.getSynthesizedDeepClone(J.type),j)],J.parent.flags)))}else{for(var z=[],U=[],K=a[0].parent.flags,V=!1,q=0,W=a;q<W.length;q++){J=W[q];z.push(e.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(J.name)));var H=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(J)),r,1);U.push(e.createPropertySignature(void 0,J.symbol.name,void 0,H,void 0)),V=V||void 0!==J.type,K&=J.parent.flags}var G=V?e.createTypeLiteralNode(U):void 0;G&&e.setEmitFlags(G,1),R.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createObjectBindingPattern(z),G,j)],K)))}else if(a.length||u){if(a.length)for(var Q=0,X=a;Q<X.length;Q++){var Y=(J=X[Q]).parent.flags;2&Y&&(Y=-3&Y|1),R.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(J.symbol.name,re(J.type))],Y)))}I&&R.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(I,re(c))],1)));var Z=m(a,u);I&&Z.unshift(e.createShorthandPropertyAssignment(I)),1===Z.length?(e.Debug.assert(!I,"Shouldn't have returnValueProperty here"),R.push(e.createStatement(e.createAssignment(Z[0].name,j))),o.facts&i.HasReturn&&R.push(e.createReturn())):(R.push(e.createStatement(e.createAssignment(e.createObjectLiteral(Z),j))),I&&R.push(e.createReturn(e.createIdentifier(I))))}else o.facts&i.HasReturn?R.push(e.createReturn(j)):y(o.range)?R.push(e.createStatement(j)):R.push(j);y(o.range)?M.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),R):M.replaceNodeWithNodes(s.file,o.range,R);var $=M.getChanges(),ee=(y(o.range)?e.first(o.range):o.range).getSourceFile().fileName,te=e.getRenameLocation($,ee,x,!1);return{renameFilename:ee,renameLocation:te,edits:$};function re(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 146===e.kind}))?r:e.createUnionTypeNode([r,e.createKeywordTypeNode(146)])}}}(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=p(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),p=e.isInJSFile(r),f=p||!u.isContextSensitive(t)?void 0:u.typeToTypeNode(u.getContextualType(t),r,1),g=function(t,r){return r.size?function t(n){var i=r.get(e.getNodeId(n).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(n,t,e.nullTransformationContext)}(t):t}(t,c);s=function(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.updateParameter(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.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.createParameter(void 0,void 0,void 0,"this",void 0,u.typeToTypeNode(g,r,1)))}}i=e.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}}(f,g),f=s.variableType,g=s.initializer,e.suppressLeadingAndTrailingTrivia(g);var m=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(r)){e.Debug.assert(!p,"Cannot extract to a JS class");var y=[];y.push(e.createToken(117)),a&i.InStaticRegion&&y.push(e.createToken(120)),y.push(e.createToken(138));var h=e.createProperty(void 0,y,_,void 0,f,g),b=e.createPropertyAccess(a&i.InStaticRegion?e.createIdentifier(r.name.getText()):e.createThis(),e.createIdentifier(_)),x=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,x,h,!0),m.replaceNode(o.file,t,b)}else{var D=e.createVariableDeclaration(_,f,g),S=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(S){m.insertNodeBefore(o.file,S,D);b=e.createIdentifier(_);m.replaceNode(o.file,t,b)}else if(226===t.parent.kind&&r===e.findAncestor(t,d)){var C=e.createVariableStatement(void 0,e.createVariableDeclarationList([D],2));m.replaceNode(o.file,t.parent,C)}else{C=e.createVariableStatement(void 0,e.createVariableDeclarationList([D],2));if(0===(x=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)d(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(v(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,x,C,!1),226===t.parent.kind)m.delete(o.file,t.parent);else{b=e.createIdentifier(_);m.replaceNode(o.file,t,b)}}}var T=m.getChanges(),k=t.getSourceFile().fileName,E=e.getRenameLocation(T,k,_,!0);return{renameFilename:k,renameLocation:E,edits:T}}(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 l(t,r){var a=r.length;if(0===a)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractEmpty)]};var o=e.getParentNodeInSpan(e.getTokenAtPosition(t,r.start),t,r),s=e.getParentNodeInSpan(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),t,r),c=[],u=i.None;if(!o||!s)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};if(o.parent!==s.parent)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};if(o!==s){if(!v(o.parent))return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};for(var l=[],d=0,p=o.parent.statements;d<p.length;d++){var f=p[d];if(f===o||l.length){var g=h(f);if(g)return{errors:g};l.push(f)}if(f===s)break}return l.length?{targetRange:{range:l,facts:u,declarations:c}}:{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]}}if(e.isJSDoc(o))return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractJSDoc)]};if(e.isReturnStatement(o)&&!o.expression)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};var m=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}(o),y=function(t){if(e.isIdentifier(e.isExpressionStatement(t)?t.expression:t))return[e.createDiagnosticForNode(t,n.cannotExtractIdentifier)];return}(m)||h(m);return y?{errors:y}:{targetRange:{range:_(m),facts:u,declarations:c}};function h(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)||!function(e){var t=e.parent;switch(t.kind){case 284:return!1}switch(e.kind){case 10:return 254!==t.kind&&258!==t.kind;case 213:case 189:case 191:return!1;case 75:return 191!==t.kind&&258!==t.kind&&263!==t.kind}return!0}(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(159===n.kind){e.hasModifier(n,32)&&(u|=i.InStaticRegion);break}if(156===n.kind){162===e.getContainingFunction(n).kind&&(u|=i.InStaticRegion);break}161===n.kind&&e.hasModifier(n,32)&&(u|=i.InStaticRegion),n=n.parent}}(t,s);var l,_=4;return function t(a){if(o)return!0;if(e.isDeclaration(a)){var s=242===a.kind?a.parent.parent:a;if(e.hasModifier(s,1))return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;c.push(a.symbol)}switch(a.kind){case 254:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractImport)),!0;case 102:if(196===a.parent.kind){var d=e.getContainingClass(a);if(d.pos<r.start||d.end>=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else u|=i.UsesThis}if(e.isFunctionLikeDeclaration(a)||e.isClassLike(a)){switch(a.kind){case 244:case 245:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope))}return!1}var p=_;switch(a.kind){case 227:case 240:_=0;break;case 223:a.parent&&240===a.parent.kind&&a.parent.finallyBlock===a&&(_=4);break;case 278:case 277:_|=1;break;default:e.isIterationStatement(a,!1)&&(_|=3)}switch(a.kind){case 183:case 104:u|=i.UsesThis;break;case 238:var f=a.label;(l||(l=[])).push(f.escapedText),e.forEachChild(a,t),l.pop();break;case 234:case 233:(f=a.label)?e.contains(l,f.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):_&(234===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 206:u|=i.IsAsyncFunction;break;case 212:u|=i.IsGenerator;break;case 235:4&_?u|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}_=p}(t),o}}function _(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:void 0}function d(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function p(t,r){var a=r.file,o=function(t){var r=y(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(156===(r=r.parent).kind&&(r=e.findAncestor(r,(function(t){return e.isFunctionLikeDeclaration(t)})).parent),d(r)&&(o.push(r),290===r.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,r,a,o,s,c){var u,l,_=e.createMap(),d=[],p=[],f=[],g=[],m=[],v=e.createMap(),h=[],b=y(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 C=0,T=r;C<T.length;C++){var k=T[C];d.push({usages:e.createMap(),typeParameterUsages:e.createMap(),substitutions:e.createMap()}),p.push(e.createMap()),f.push(e.isFunctionLikeDeclaration(k)&&244!==k.kind?[e.createDiagnosticForNode(k,n.cannotExtractToOtherFunctionLike)]:[]);var E=[];l&&E.push(l),e.isClassLike(k)&&e.isInJSFile(k)&&E.push(e.createDiagnosticForNode(k,n.cannotExtractToJSClass)),e.isArrowFunction(k)&&!e.isBlock(k.body)&&E.push(e.createDiagnosticForNode(k,n.cannotExtractToExpressionArrowFunction)),g.push(E)}var N=e.createMap(),A=y(t.range)?e.createBlock(t.range):t.range,F=y(t.range)?e.first(t.range):t.range,P=(w=F,!!e.findAncestor(w,(function(t){return e.isDeclarationWithTypeParameters(t)&&0!==e.getEffectiveTypeParameterDeclarations(t).length})));var w;if(function c(u,l){void 0===l&&(l=1);if(P){K(s.getTypeAtLocation(u))}e.isDeclaration(u)&&u.symbol&&m.push(u);if(e.isAssignmentExpression(u))c(u.left,2),c(u.right);else if(e.isUnaryExpressionWithWrite(u))c(u.operand,2);else if(e.isPropertyAccessExpression(u)||e.isElementAccessExpression(u))e.forEachChild(u,c);else if(e.isIdentifier(u)){if(!u.parent)return;if(e.isQualifiedName(u.parent)&&u!==u.parent.left)return;if(e.isPropertyAccessExpression(u.parent)&&u!==u.parent.expression)return;!function(c,u,l){var _=function(c,u,l){var _=V(c);if(!_)return;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)return;if(e.rangeContainsStartEnd(a,D.getStart(),D.end))return;if(t.facts&i.IsGenerator&&2===u){for(var S=e.createDiagnosticForNode(c,n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),C=0,T=f;C<T.length;C++){T[C].push(S)}for(var k=0,E=g;k<E.length;k++){E[k].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=q(_.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}(c,u,l);if(_)for(var m=0;m<r.length;m++){var y=p[m].get(_);y&&d[m].substitutions.set(e.getNodeId(c).toString(),y)}}(u,l,e.isPartOfTypeNode(u))}else e.forEachChild(u,c)}(A),P&&!y(t.range)){K(s.getContextualType(t.range))}if(_.size>0){for(var I=e.createMap(),O=0,M=F;void 0!==M&&O<r.length;M=M.parent)if(M===r[O]&&(I.forEach((function(e,t){d[O].typeParameterUsages.set(t,e)})),O++),e.isDeclarationWithTypeParameters(M))for(var L=0,R=e.getEffectiveTypeParameterDeclarations(M);L<R.length;L++){var B=R[L],j=s.getTypeAtLocation(B);_.has(j.id.toString())&&I.set(j.id.toString(),j)}e.Debug.assert(O===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,(function r(n){if(n===t.range||y(t.range)&&t.range.indexOf(n)>=0)return;var i=e.isIdentifier(n)?V(n):s.getSymbolAtLocation(n);if(i){var a=e.find(m,(function(e){return e.symbol===i}));if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();v.has(o)||(h.push(a),v.set(o,!0))}else u=u||a}e.forEachChild(n,r)}))}for(var z=function(r){var i=d[r];if(r>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=y(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.hasModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))})),e.Debug.assert(y(t.range)||0===h.length,"No variable declarations expected if something was extracted"),s&&!y(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)}},U=0;U<r.length;U++)z(U);return{target:A,usagesPerScope:d,functionErrorsPerScope:f,constantErrorsPerScope:g,exposedVariableDeclarations:h};function K(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 V(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function q(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some((function(e){return e.parent===r})))return e.createIdentifier(t.name);var a=q(t.parent,r,n);if(void 0!==a)return n?e.createQualifiedName(a,e.createIdentifier(t.name)):e.createPropertyAccess(a,t.name)}}}(t,o,function(t,r){return y(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 f(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 g(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 m(t,r){var n=e.map(t,(function(t){return e.createShorthandPropertyAssignment(t.symbol.name)})),i=e.map(r,(function(t){return e.createShorthandPropertyAssignment(t.symbol.name)}));return void 0===n?i:void 0===i?n:n.concat(i)}function y(t){return e.isArray(t)}function v(e){switch(e.kind){case 223:case 290:case 250:case 277:return!0;default:return!1}}t.registerRefactor(s,{getAvailableActions:c,getEditsForAction:u}),r.getAvailableActions=c,r.getEditsForAction=u,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=l,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={}))}(d||(d={})),function(e){!function(t){function r(t){var r=t.file,i=t.startPosition,a=e.isSourceFileJS(r),o=e.getTokenAtPosition(r,i),s=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),c=e.findAncestor(o,(function(e){return e.parent&&n(s,e,r)&&!n(s,e.parent,r)}));if(c&&e.isTypeNode(c)){var u=t.program.getTypeChecker(),l=e.Debug.checkDefined(e.findAncestor(c,e.isStatement),"Should find a statement"),_=function(t,r,i,a){var o=[];return function s(c){if(e.isTypeReferenceNode(c)){if(e.isIdentifier(c.typeName))if(d=t.resolveName(c.typeName.text,c.typeName,262144,!0)){var u=e.cast(e.first(d.declarations),e.isTypeParameterDeclaration);n(i,u,a)&&!n(r,u,a)&&o.push(u)}}else if(e.isInferTypeNode(c)){var l=e.findAncestor(c,(function(t){return e.isConditionalTypeNode(t)&&n(t.extendsType,c,a)}));if(!l||!n(r,l,a))return!0}else if(e.isTypePredicateNode(c)||e.isThisTypeNode(c)){var _=e.findAncestor(c.parent,e.isFunctionLike);if(_&&_.type&&n(_.type,c,a)&&!n(r,_,a))return!0}else if(e.isTypeQueryNode(c)){var d;if(e.isIdentifier(c.exprName)){if((d=t.resolveName(c.exprName.text,c.exprName,111551,!1))&&n(i,d.valueDeclaration,a)&&!n(r,d.valueDeclaration,a))return!0}else if(e.isThisIdentifier(c.exprName.left)&&!n(r,c.parent,a))return!0}return e.forEachChild(c,s)}(r)?void 0:o}(u,c,l,r);if(_)return{isJS:a,selection:c,firstStatement:l,typeParameters:_,typeElements:function t(r,n){if(!n)return;if(e.isIntersectionTypeNode(n)){for(var i=[],a=e.createMap(),o=0,s=n.types;o<s.length;o++){var c=s[o],u=t(r,c);if(!u||!u.every((function(t){return t.name&&e.addToSeen(a,e.getNameFromPropertyName(t.name))})))return;e.addRange(i,u)}return i}if(e.isParenthesizedTypeNode(n))return t(r,n.type);if(e.isTypeLiteralNode(n))return n.members;return}(u,c)}}}function n(t,r,n){return e.rangeContainsStartEnd(t,e.skipTrivia(n.text,r.pos),r.end)}t.registerRefactor("Extract type",{getAvailableActions:function(t){var n=r(t);return n?[{name:"Extract type",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:n.isJS?[{name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef)}]:e.append([{name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias)}],n.typeElements&&{name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface)})}]:e.emptyArray},getEditsForAction:function(t,n){var i=t.file,a=e.Debug.checkDefined(r(t),"Expected to find a range to extract"),o=e.getUniqueName("NewType",i),s=e.textChanges.ChangeTracker.with(t,(function(t){switch(n){case"Extract to type alias":return e.Debug.assert(!a.isJS,"Invalid actionName/JS combo"),function(t,r,n,i){var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.createTypeAliasDeclaration(void 0,void 0,n,s.map((function(t){return e.updateTypeParameterDeclaration(t,t.name,t.constraint,void 0)})),o);t.insertNodeBefore(r,a,e.ignoreSourceNewlines(c),!0),t.replaceNode(r,o,e.createTypeReferenceNode(n,s.map((function(t){return e.createTypeReferenceNode(t.name,void 0)}))))}(t,i,o,a);case"Extract to typedef":return e.Debug.assert(a.isJS,"Invalid actionName/JS combo"),function(t,r,n,i){var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.createNode(322);c.tagName=e.createIdentifier("typedef"),c.fullName=e.createIdentifier(n),c.name=c.fullName,c.typeExpression=e.createJSDocTypeExpression(o);var u=[];e.forEach(s,(function(t){var r=e.getEffectiveConstraintOfTypeParameter(t),n=e.createNode(321);n.tagName=e.createIdentifier("template"),n.constraint=r&&e.cast(r,e.isJSDocTypeExpression);var i=e.createNode(155);i.name=t.name,n.typeParameters=e.createNodeArray([i]),u.push(n)})),t.insertNodeBefore(r,a,e.createJSDocComment(void 0,e.createNodeArray(e.concatenate(u,[c]))),!0),t.replaceNode(r,o,e.createTypeReferenceNode(n,s.map((function(t){return e.createTypeReferenceNode(t.name,void 0)}))))}(t,i,o,a);case"Extract to interface":return e.Debug.assert(!a.isJS&&!!a.typeElements,"Invalid actionName/JS combo"),function(t,r,n,i){var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=i.typeElements,u=e.createInterfaceDeclaration(void 0,void 0,n,s,void 0,c);t.insertNodeBefore(r,a,e.ignoreSourceNewlines(u),!0),t.replaceNode(r,o,e.createTypeReferenceNode(n,s.map((function(t){return e.createTypeReferenceNode(t.name,void 0)}))))}(t,i,o,a);default:e.Debug.fail("Unexpected action name")}})),c=i.fileName;return{edits:s,renameFilename:c,renameLocation:e.getRenameLocation(s,c,o,!1)}}})}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){!function(r){var n="Generate 'get' and 'set' accessors",i=e.Diagnostics.Generate_get_and_set_accessors.message;function a(t){return e.isParameterPropertyDeclaration(t,t.parent)||e.isPropertyDeclaration(t)||e.isPropertyAssignment(t)}function o(t,r){return e.isIdentifier(r)?e.createIdentifier(t):e.createLiteral(t)}function s(t,r,n){var i=r?n.name:e.createThis();return e.isIdentifier(t)?e.createPropertyAccess(i,t):e.createElementAccess(i,e.createLiteral(t))}function c(t,r,n){var i=e.append(t?void 0:[e.createToken(n)],r?e.createToken(120):void 0);return i&&e.createNodeArray(i)}function u(t){var r=t.file,n=t.startPosition,i=t.endPosition,s=e.getTokenAtPosition(r,n),c=e.findAncestor(s.parent,a);if(c&&e.nodeOverlapsWithStartEnd(c.name,r,n,i)&&function(t){return e.isIdentifier(t)||e.isStringLiteral(t)}(c.name)&&124===(124|e.getModifierFlags(c))){var u=c.name.text,l=e.startsWithUnderscore(u),_=o(l?u:e.getUniqueName("_"+u,r),c.name),d=o(l?e.getUniqueName(u.substring(1),r):u,c.name);return{isStatic:e.hasStaticModifier(c),isReadonly:e.hasReadonlyModifier(c),type:e.getTypeAnnotationNode(c),container:156===c.kind?c.parent.parent:c.parent,originalName:c.name.text,declaration:c,fieldName:_,accessorName:d,renameAccessor:l}}}function l(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)}t.registerRefactor(n,{getEditsForAction:function(t,r){var n=t.file,i=u(t);if(!i)return;var a=e.isSourceFileJS(n),o=e.textChanges.ChangeTracker.fromContext(t),_=i.isStatic,d=i.isReadonly,p=i.fieldName,f=i.accessorName,g=i.originalName,m=i.type,y=i.container,v=i.declaration,h=i.renameAccessor;e.suppressLeadingAndTrailingTrivia(p),e.suppressLeadingAndTrailingTrivia(f),e.suppressLeadingAndTrailingTrivia(v),e.suppressLeadingAndTrailingTrivia(y);var b=e.isClassLike(y),x=-65&e.getModifierFlags(v),D=b?!x||8&x?c(a,_,119):e.createNodeArray(e.createModifiersFromModifierFlags(x)):void 0,S=b?c(a,_,117):void 0;!function(t,r,n,i,a){e.isPropertyDeclaration(n)?function(t,r,n,i,a){var o=e.updateProperty(n,n.decorators,a,i,n.questionToken||n.exclamationToken,n.type,n.initializer);t.replaceNode(r,n,o)}(t,r,n,i,a):e.isPropertyAssignment(n)?function(t,r,n,i){var a=e.updatePropertyAssignment(n,i,n.initializer);t.replacePropertyAssignment(r,n,a)}(t,r,n,i):t.replaceNode(r,n,e.updateParameter(n,n.decorators,a,n.dotDotDotToken,e.cast(i,e.isIdentifier),n.questionToken,n.type,n.initializer))}(o,n,v,p,S);var C=function(t,r,n,i,a,o){return e.createGetAccessor(void 0,i,r,void 0,n,e.createBlock([e.createReturn(s(t,a,o))],!0))}(p,f,m,D,_,y);if(e.suppressLeadingAndTrailingTrivia(C),l(o,n,C,v,y),d){var T=e.getFirstConstructorWithBody(y);T&&function(t,r,n,i,a){if(!n.body)return;n.body.forEachChild((function n(o){e.isElementAccessExpression(o)&&104===o.expression.kind&&e.isStringLiteral(o.argumentExpression)&&o.argumentExpression.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.argumentExpression,e.createStringLiteral(i)),e.isPropertyAccessExpression(o)&&104===o.expression.kind&&o.name.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.name,e.createIdentifier(i)),e.isFunctionLike(o)||e.isClassLike(o)||o.forEachChild(n)}))}(o,n,T,p.text,g)}else{var k=function(t,r,n,i,a,o){return e.createSetAccessor(void 0,i,r,[e.createParameter(void 0,void 0,void 0,e.createIdentifier("value"),void 0,n)],e.createBlock([e.createStatement(e.createAssignment(s(t,a,o),e.createIdentifier("value")))],!0))}(p,f,m,D,_,y);e.suppressLeadingAndTrailingTrivia(k),l(o,n,k,v,y)}var E=o.getChanges(),N=n.fileName,A=h?f:p,F=(e.isIdentifier(A)?0:-1)+e.getRenameLocation(E,N,A.text,e.isParameter(v));return{renameFilename:N,renameLocation:F,edits:E}},getAvailableActions:function(t){return u(t)?[{name:n,description:i,actions:[{name:n,description:i}]}]:e.emptyArray}})}(t.generateGetAccessorAndSetAccessor||(t.generateGetAccessorAndSetAccessor={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){function r(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,o=r.afterLast;return e.getRangesWhere(a,(function(t){return!function(t){switch(t.kind){case 254:return!0;case 253:return!e.hasModifier(t,1);case 225:return t.declarationList.declarations.every((function(t){return!!t.initializer&&e.isRequireCall(t.initializer,!0)}));default:return!1}}(t)}),(function(e,t){for(var r=e;r<t;r++)n.push(a[r]);i.push({first:a[e],afterLast:o})})),0===n.length?void 0:{all:n,ranges:i}}}function n(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 i(e){return 254===e.kind?e.moduleSpecifier:253===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function a(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 s(t,r,n,i,a){if(n=e.ensurePathIsNonModuleName(n),i){var o=r.map((function(t){return e.createImportSpecifier(void 0,e.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.createBindingElement(void 0,void 0,t)}));return s.length?c(e.createObjectBindingPattern(s),void 0,u(e.createLiteral(n))):void 0}function c(t,r,n,i){return void 0===i&&(i=2),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(t,r,n)],i))}function u(t){return e.createCall(e.createIdentifier("require"),void 0,[t])}function l(t,r,n,i){switch(r.kind){case 254:!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||(256===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.updateImportClause(r.importClause,o,void 0,r.importClause.isTypeOnly));else if(257===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 253:i(r.name)&&n.delete(t,r);break;case 242:!function(t,r,n,i){var a=r.name;switch(a.kind){case 75:i(a)&&n.delete(t,a);break;case 190:break;case 189: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 _(t){switch(t.kind){case 253:case 258:case 255:case 256:return!0;case 242:return d(t);case 191:return e.isVariableDeclaration(t.parent.parent)&&d(t.parent.parent);default:return!1}}function d(t){return e.isSourceFile(t.parent.parent.parent)&&!!t.initializer&&e.isRequireCall(t.initializer,!0)}function p(t,r,n){switch(t.kind){case 254: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(256===t.kind)return r(t.name)?t:void 0;var n=t.elements.filter((function(e){return r(e.name)}));return n.length?e.createNamedImports(n):void 0}(i.namedBindings,n);return a||o?e.createImportDeclaration(void 0,void 0,e.createImportClause(a,o),r):void 0;case 253:return n(t.name)?t:void 0;case 242:var s=function(t,r){switch(t.kind){case 75:return r(t)?t:void 0;case 190:return t;case 189:var n=t.elements.filter((function(t){return t.propertyName||!e.isIdentifier(t.name)||r(t.name)}));return n.length?e.createObjectBindingPattern(n):void 0}}(t.name,n);return s?c(s,t.type,u(r),t.parent.flags):void 0;default:return e.Debug.assertNever(t,"Unexpected import kind "+t.kind)}}function f(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("Move to a new file",{getAvailableActions:function(t){if(!t.preferences.allowTextChangesInNewFiles||void 0===r(t))return e.emptyArray;var n=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file);return[{name:"Move to a new file",description:n,actions:[{name:"Move to a new file",description:n}]}]},getEditsForAction:function(t,c){e.Debug.assert("Move to a new file"===c,"Wrong refactor invoked");var d=e.Debug.checkDefined(r(t));return{edits:e.textChanges.ChangeTracker.with(t,(function(r){return function(t,r,c,d,T,k){var E=r.getTypeChecker(),N=function(t,r,n){var i=new g,a=new g,o=new g,s=function(t){if(void 0===t)return;var r=n.getJsxNamespace(t),i=n.resolveName(r,t,1920,!0);return i&&e.some(i.declarations,_)?i:void 0}(e.find(r,(function(e){return!!(2&e.transformFlags)})));s&&a.add(s);for(var c=0,u=r;c<u.length;c++){v(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,d=r;l<d.length;l++){f(x=d[l],n,(function(r){var n;if(r.declarations)for(var s=0,c=r.declarations;s<c.length;s++){var u=c[s];_(u)?a.add(r):m(u)&&(n=u,(e.isVariableDeclaration(n)?n.parent.parent.parent:n.parent)===t)&&!i.has(r)&&o.add(r)}}))}for(var p=a.clone(),y=new g,h=0,b=t.statements;h<b.length;h++){var x=b[h];e.contains(r,x)||(s&&2&x.transformFlags&&p.delete(s),f(x,n,(function(e){i.has(e)&&y.add(e),p.delete(e)})))}return{movedSymbols:i,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:y,oldImportsNeededByNewFile:a,unusedImportsFromOldFile:p}}(t,c.all,E),A=e.getDirectoryPath(t.fileName),F=e.extensionFromPath(t.fileName),P=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}}((I=N.movedSymbols,I.forEachEntry(e.symbolNameNoDefault)||"newFile"),F,A,T),w=P+F;var I;d.createNewFile(t,e.combinePaths(A,w),function(t,r,c,_,d,f,g){var T=d.getTypeChecker();if(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)return n(t,_.ranges,c),_.all;var k=!!t.externalModuleIndicator,E=e.getQuotePreference(t,g),N=function(t,r,n,i){var a,o=[];return t.forEach((function(t){"default"===t.escapedName?a=e.createIdentifier(e.symbolNameNoDefault(t)):o.push(t.name)})),s(a,o,r,n,i)}(r.oldFileImportsFromNewFile,f,k,E);N&&e.insertImports(c,t,N,!0);return function(t,r,n,i,o){for(var s=0,c=t.statements;s<c.length;s++){var u=c[s];e.contains(r,u)||a(u,(function(e){return l(t,e,n,(function(e){return i.has(o.getSymbolAtLocation(e))}))}))}}(t,_.all,c,r.unusedImportsFromOldFile,T),n(t,_.ranges,c),function(t,r,n,o,s){for(var c=r.getTypeChecker(),_=function(r){if(r===n)return"continue";for(var _=function(_){a(_,(function(a){if(c.getSymbolAtLocation(i(a))===n.symbol){var d=function(t){var r=e.isBindingElement(t.parent)?e.getPropertySymbolFromBindingElement(c,t.parent):e.skipAlias(c.getSymbolAtLocation(t),c);return!!r&&o.has(r)};l(r,a,t,d);var f=e.combinePaths(e.getDirectoryPath(i(a).text),s),g=p(a,e.createLiteral(f),d);g&&t.insertNodeAfter(r,_,g);var m=function(t){switch(t.kind){case 254:return t.importClause&&t.importClause.namedBindings&&256===t.importClause.namedBindings.kind?t.importClause.namedBindings.name:void 0;case 253:return t.name;case 242:return e.tryCast(t.name,e.isIdentifier);default:return e.Debug.assertNever(t,"Unexpected node kind "+t.kind)}}(a);m&&function(t,r,n,i,a,o,s,c){var l=e.codefix.moduleSpecifierToValidIdentifier(a,99),_=!1,d=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(s,n,r,(function(t){e.isPropertyAccessExpression(t.parent)&&(_=_||!!n.resolveName(l,t,67108863,!0),i.has(n.getSymbolAtLocation(t.parent.name))&&d.push(t))})),d.length){for(var p=_?e.getUniqueName(l,r):l,f=0,g=d;f<g.length;f++){var m=g[f];t.replaceNode(r,m,e.createIdentifier(p))}t.insertNodeAfter(r,c,function(t,r,n){var i=e.createIdentifier(r),a=e.createLiteral(n);switch(t.kind){case 254:return e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(i)),a);case 253:return e.createImportEqualsDeclaration(void 0,void 0,i,e.createExternalModuleReference(a));case 242:return e.createVariableDeclaration(i,void 0,u(a));default:return e.Debug.assertNever(t,"Unexpected node kind "+t.kind)}}(c,a,o))}}(t,r,c,o,s,f,m,a)}}))},d=0,f=r.statements;d<f.length;d++){_(f[d])}},d=0,f=r.getSourceFiles();d<f.length;d++){var g=f[d];_(g)}}(c,d,t,r.movedSymbols,f),o(function(t,r,n,o,c,u,l){for(var _,d=[],f=0,g=t.statements;f<g.length;f++){a(g[f],(function(t){e.append(d,p(t,i(t),(function(e){return r.has(c.getSymbolAtLocation(e))})))}))}var y=[],v=e.nodeSeenTracker();return n.forEach((function(r){for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];if(m(a)){var s=(l=a,e.isExpressionStatement(l)?e.tryCast(l.expression.left.name,e.isIdentifier):e.tryCast(l.name,e.isIdentifier));if(s){var c=h(a);v(c)&&b(t,c,o,u),e.hasModifier(a,512)?_=s:y.push(s.text)}}}var l})),e.append(d,s(_,y,e.removeFileExtension(e.getBaseFileName(t.fileName)),u,l)),d}(t,r.oldImportsNeededByNewFile,r.newFileImportsFromOldFile,c,T,k,E),function(t,r,n,i){return e.flatMap(r,(function(r){if(s=r,e.Debug.assert(e.isSourceFile(s.parent),"Node parent should be a SourceFile"),(y(s)||e.isVariableStatement(s))&&!x(t,r,i)&&v(r,(function(t){return n.has(e.Debug.checkDefined(t.symbol))}))){var a=function(e,t){return t?[D(e)]:function(e){return o([e],S(e).map(C))}(e)}(r,i);if(a)return a}var s;return r}))}(t,_.all,r.oldFileImportsFromNewFile,k))}(t,N,d,c,r,P,k)),function(t,r,n,i,a){var o=t.getCompilerOptions().configFile;if(!o)return;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.createLiteral(c),l.initializer.elements)}(r,d,t.fileName,w,e.hostGetCanonicalFileName(T))}(t.file,t.program,d,r,t.host,t.preferences)})),renameFilename:void 0,renameLocation:void 0}}});var g=function(){function t(){this.map=e.createMap()}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 m(t){return y(t)&&e.isSourceFile(t.parent)||e.isVariableDeclaration(t)&&e.isSourceFile(t.parent.parent.parent)}function y(e){switch(e.kind){case 244:case 245:case 249:case 248:case 247:case 246:case 253:return!0;default:return!1}}function v(t,r){switch(t.kind){case 244:case 245:case 249:case 248:case 247:case 246:case 253:return r(t);case 225:return e.firstDefined(t.declarationList.declarations,(function(t){return function t(r,n){switch(r.kind){case 75:return n(e.cast(r.parent,(function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)})));case 190:case 189:return e.firstDefined(r.elements,(function(r){return e.isOmittedExpression(r)?void 0:t(r.name,n)}));default:return e.Debug.assertNever(r,"Unexpected name kind "+r.kind)}}(t.name,r)}));case 226:var n=t.expression;return e.isBinaryExpression(n)&&1===e.getAssignmentDeclarationKind(n)?r(t):void 0}}function h(t){switch(t.kind){case 242:return t.parent.parent;case 191:return h(e.cast(t.parent.parent,(function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)})));default:return t}}function b(t,r,n,i){if(!x(t,r,i))if(i)e.isExpressionStatement(r)||n.insertExportModifier(t,r);else{var a=S(r);0!==a.length&&n.insertNodesAfter(t,r,a.map(C))}}function x(t,r,n){return n?!e.isExpressionStatement(r)&&e.hasModifier(r,1):S(r).some((function(r){return t.symbol.exports.has(e.escapeLeadingUnderscores(r))}))}function D(t){var r=e.concatenate([e.createModifier(89)],t.modifiers);switch(t.kind){case 244:return e.updateFunctionDeclaration(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 245:return e.updateClassDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 225:return e.updateVariableStatement(t,r,t.declarationList);case 249:return e.updateModuleDeclaration(t,t.decorators,r,t.name,t.body);case 248:return e.updateEnumDeclaration(t,t.decorators,r,t.name,t.members);case 247:return e.updateTypeAliasDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.type);case 246:return e.updateInterfaceDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 253:return e.updateImportEqualsDeclaration(t,t.decorators,r,t.name,t.moduleReference);case 226:return e.Debug.fail();default:return e.Debug.assertNever(t,"Unexpected declaration kind "+t.kind)}}function S(t){switch(t.kind){case 244:case 245:return[t.name.text];case 225:return e.mapDefined(t.declarationList.declarations,(function(t){return e.isIdentifier(t.name)?t.name.text:void 0}));case 249:case 248:case 247:case 246:case 253:return e.emptyArray;case 226:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(t,"Unexpected decl kind "+t.kind)}}function C(t){return e.createExpressionStatement(e.createBinary(e.createPropertyAccess(e.createIdentifier("exports"),e.createIdentifier(t)),62,e.createIdentifier(t)))}}(e.refactor||(e.refactor={}))}(d||(d={})),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="Add braces to arrow function",o="Remove braces from arrow function",s=e.Diagnostics.Add_braces_to_arrow_function.message,c=e.Diagnostics.Remove_braces_from_arrow_function.message;function u(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingFunction(n);if(i&&e.isArrowFunction(i)&&e.rangeContainsRange(i,n)&&!e.rangeContainsRange(i.body,n)){if(e.isExpression(i.body))return{func:i,addBraces:!0,expression:i.body};if(1===i.body.statements.length){var a=e.first(i.body.statements);if(e.isReturnStatement(a))return{func:i,addBraces:!1,expression:a.expression,returnStatement:a}}}}t.registerRefactor(n,{getEditsForAction:function(t,r){var n=t.file,i=t.startPosition,s=u(n,i);if(!s)return;var c,l=s.expression,_=s.returnStatement,d=s.func;if(r===a){var p=e.createReturn(l);c=e.createBlock([p],!0),e.suppressLeadingAndTrailingTrivia(c),e.copyLeadingComments(l,p,n,3,!0)}else if(r===o&&_){var f=l||e.createVoidZero();c=e.needsParentheses(f)?e.createParen(f):f,e.suppressLeadingAndTrailingTrivia(c),e.copyTrailingAsLeadingComments(_,c,n,3,!1),e.copyLeadingComments(_,c,n,3,!1),e.copyTrailingComments(_,c,n,3,!1)}else e.Debug.fail("invalid action");var g=e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNode(n,d.body,c)}));return{renameFilename:void 0,renameLocation:void 0,edits:g}},getAvailableActions:function(t){var r=t.file,l=t.startPosition,_=u(r,l);return _?[{name:n,description:i,actions:[_.addBraces?{name:a,description:s}:{name:o,description:c}]}]:e.emptyArray}})}(t.addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){!function(r){var n="Convert parameters to destructured object",i=2;function a(t){var r=t.node;return e.isImportSpecifier(r.parent)||e.isImportClause(r.parent)||e.isImportEqualsDeclaration(r.parent)||e.isNamespaceImport(r.parent)?r:e.isExportSpecifier(r.parent)||e.isExportAssignment(r.parent)?r:void 0}function s(t){if(e.isDeclaration(t.node.parent))return t.node}function c(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 196:case 197:var i=e.tryCast(n,e.isCallOrNewExpression);if(i&&i.expression===r)return i;break;case 194: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 195: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 u(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 194:var i=e.tryCast(n,e.isPropertyAccessExpression);if(i&&i.expression===r)return i;break;case 195:var a=e.tryCast(n,e.isElementAccessExpression);if(a&&a.expression===r)return a}}}function l(t){var r=t.node;if(2===e.getMeaningFromLocation(r)||e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent))return r}function _(t,r,n){var a=e.getTouchingToken(t,r),o=e.getContainingFunctionDeclaration(a);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}(a))return!(o&&function(t,r){if(!function(t,r){return function(e){if(g(e))return e.length-1;return e.length}(t)>=i&&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 244:return p(t)&&d(t,r);case 161:return d(t,r);case 162:return e.isClassDeclaration(t.parent)?p(t.parent)&&d(t,r):f(t.parent.parent)&&d(t,r);case 201:case 202:return f(t.parent)}return!1}(o,n)&&e.rangeContainsRange(o,a))||o.body&&e.rangeContainsRange(o.body,a)?void 0:o}function d(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function p(t){return!!t.name||!!e.findModifier(t,84)}function f(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function g(t){return t.length>0&&e.isThis(t[0].name)}function m(t){return g(t)&&(t=e.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function y(t,r){var n=m(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=v(n[r]),s=(i=o,a=t,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.createShorthandPropertyAssignment(i):e.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.createPropertyAssignment(v(e.last(n)),e.createArrayLiteral(s));o.push(c)}return e.createObjectLiteral(o,!1)}function v(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(n,{getEditsForAction:function(t,r){e.Debug.assert(r===n,"Unexpected action name");var i=t.file,d=t.startPosition,p=t.program,f=t.cancellationToken,h=t.host,b=_(i,d,p.getTypeChecker());if(!b||!f)return;var x=function(t,r,n){var i=function(t){switch(t.kind){case 244:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,84),"Nameless function declaration should be a default export")];case 161:return[t.name];case 162:var r=e.Debug.checkDefined(e.findChildOfKind(t,129,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 214===t.parent.kind?[t.parent.parent.name,r]:[r];case 202:return[t.parent.name];case 201:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind "+t.kind)}}(t),_=e.isConstructorDeclaration(t)?function(t){switch(t.parent.kind){case 245:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,84),"Nameless class declaration should be a default export")];case 214:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}}(t):[],d=e.deduplicate(o(i,_),e.equateValues),p=r.getTypeChecker(),f=function(r){for(var n={accessExpressions:[],typeUsages:[]},o={functionCalls:[],declarations:[],classReferences:n,valid:!0},d=e.map(i,g),p=e.map(_,g),f=e.isConstructorDeclaration(t),m=0,y=r;m<y.length;m++){var v=y[m];if(1===v.kind){if(e.contains(d,g(v.node))||e.isNewExpressionTarget(v.node)){if(a(v))continue;if(b=s(v)){o.declarations.push(b);continue}var h=c(v);if(h){o.functionCalls.push(h);continue}}if(f&&e.contains(p,g(v.node))){var b;if(a(v))continue;if(b=s(v)){o.declarations.push(b);continue}var x=u(v);if(x){n.accessExpressions.push(x);continue}if(e.isClassDeclaration(t.parent)){var D=l(v);if(D){n.typeUsages.push(D);continue}}}o.valid=!1}else o.valid=!1}return o}(e.flatMap(d,(function(t){return e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n)})));e.every(f.declarations,(function(t){return e.contains(d,t)}))||(f.valid=!1);return f;function g(t){var r=p.getSymbolAtLocation(t);return r&&e.getSymbolTarget(r,p)}}(b,p,f);if(x.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=e.map(function(t,r,n){var i,a=r.getTypeChecker(),o=m(t.parameters),s=e.map(o,(function(t){var r=e.createBindingElement(void 0,void 0,v(t),e.isRestParameter(t)&&f(t)?e.createArrayLiteral():t.initializer);e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer);return r})),c=e.createObjectBindingPattern(s),u=function(t){var r=e.map(t,p);return e.addEmitFlags(e.createTypeLiteralNode(r),1)}(o);e.every(o,f)&&(i=e.createObjectLiteral());var l=e.createParameter(void 0,void 0,void 0,c,void 0,u,i);if(g(t.parameters)){var _=t.parameters[0],d=e.createParameter(void 0,void 0,void 0,_.name,void 0,_.type);return e.suppressLeadingAndTrailingTrivia(d.name),e.copyComments(_.name,d.name),_.type&&(e.suppressLeadingAndTrailingTrivia(d.type),e.copyComments(_.type,d.type)),e.createNodeArray([d,l])}return e.createNodeArray([l]);function p(t){var i=t.type;i||!t.initializer&&!e.isRestParameter(t)||(i=function(t){var i=a.getTypeAtLocation(t);return e.getTypeNodeIfAccessible(i,t,r,n)}(t));var o=e.createPropertySignature(void 0,v(t),f(t)?e.createToken(57):t.questionToken,i,void 0);return e.suppressLeadingAndTrailingTrivia(o),e.copyComments(t.name,o.name),t.type&&o.type&&e.copyComments(t.type,o.type),o}function f(t){if(e.isRestParameter(t)){var r=a.getTypeAtLocation(t);return!a.isTupleType(r)}return a.isOptionalParameter(t)}}(a,r,n),(function(t){return e.getSynthesizedDeepClone(t)}));i.replaceNodeRangeWithNodes(t,e.first(a.parameters),e.last(a.parameters),s,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include});for(var c=e.sortAndDeduplicate(o.functionCalls,(function(t,r){return e.compareValues(t.pos,r.pos)})),u=0,l=c;u<l.length;u++){var _=l[u];if(_.arguments&&_.arguments.length){var d=e.getSynthesizedDeepClone(y(a,_.arguments),!0);i.replaceNodeRange(e.getSourceFileOfNode(_),e.first(_.arguments),e.last(_.arguments),d,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}}(i,p,h,t,b,x)}))}}return{edits:[]}},getAvailableActions:function(t){var r=t.file,i=t.startPosition;if(e.isSourceFileJS(r))return e.emptyArray;if(!_(r,i,t.program.getTypeChecker()))return e.emptyArray;var a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object);return[{name:n,description:a,actions:[{name:n,description:a}]}]}})}(t.convertParamsToDestructuredObject||(t.convertParamsToDestructuredObject={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){!function(r){var n="Convert to template string",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string);function a(t,r){var n=e.getTokenAtPosition(t,r),i=s(n);return!c(i)&&e.isParenthesizedExpression(i.parent)&&e.isBinaryExpression(i.parent.parent)?i.parent.parent:n}function o(t,r){var n=s(r),i=t.file,a=function(t,r){var n=t.nodes,i=t.operators,a=l(i,r),o=_(n,r,a),s=d(0,n),c=s[0],u=s[1],f=s[2];if(c===n.length){var g=e.createNoSubstitutionTemplateLiteral(u);return o(f,g),g}var m=[],y=e.createTemplateHead(u);o(f,y);for(var v=c;v<n.length;v++){var h=p(n[v]);a(v,h);var b=d(v+1,n),x=b[0],D=b[1],S=b[2],C=(v=x-1)===n.length-1?e.createTemplateTail(D):e.createTemplateMiddle(D);o(S,C),m.push(e.createTemplateSpan(h,C))}return e.createTemplateExpression(y,m)}(u(n),i),o=e.getTrailingCommentRanges(i.text,n.end);if(o){var c=o[o.length-1],f={pos:o[0].pos,end:c.end};return e.textChanges.ChangeTracker.with(t,(function(e){e.deleteRange(i,f),e.replaceNode(i,n,a)}))}return e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(i,n,a)}))}function s(t){for(;e.isBinaryExpression(t.parent)&&62!==t.parent.operatorToken.kind;)t=t.parent;return t}function c(e){var t=u(e),r=t.containsString,n=t.areOperatorsValid;return r&&n}function u(t){if(e.isBinaryExpression(t)){var r=u(t.left),n=r.nodes,i=r.operators,a=r.containsString,o=r.areOperatorsValid;if(!a&&!e.isStringLiteral(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,{getEditsForAction:function(t,r){var n=t.file,s=t.startPosition,c=a(n,s);switch(r){case i:return{edits:o(t,c)};default:return e.Debug.fail("invalid action")}},getAvailableActions:function(t){var r=t.file,o=t.startPosition,u=s(a(r,o)),l={name:n,description:i,actions:[]};if(e.isBinaryExpression(u)&&c(u))return l.actions.push({name:n,description:i}),[l];return e.emptyArray}});var l=function(t,r){return function(n,i){n<t.length&&e.copyTrailingComments(t[n],i,r,3,!1)}},_=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)}}};function d(t,r){for(var n="",i=[];t<r.length&&e.isStringLiteral(r[t]);){n+=r[t].text,i.push(t),t++}return[t,n,i]}function p(t){return e.isParenthesizedExpression(t)&&(!function(t){var r=t.getSourceFile();e.copyTrailingComments(t,t.expression,r,3,!1),e.copyTrailingAsLeadingComments(t.expression,t.expression,r,3,!1)}(t),t=t.expression),t}}(t.convertStringOrTemplateLiteral||(t.convertStringOrTemplateLiteral={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){function t(t,n,i,a){var o=e.isNodeKind(t)?new r(t,n,i):75===t?new l(75,n,i):76===t?new d(76,n,i):new u(t,n,i);return o.parent=a,o.flags=25358336&a.flags,o}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};return e.forEach(r.jsDoc,s),o=r.pos,r.forEachChild(s,(function(e){n(a,o,e.pos,r),a.push(function(e,r){var i=t(324,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})),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<294||e.kind>323}));return n.kind<153?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<153?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&&(75===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}(),c=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){return this.documentationComment||(this.documentationComment=e.emptyArray,this.documentationComment=m(this.declarations,t)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),u=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.kind=t,i}return _(t,e),t}(i),l=function(t){function r(e,r,n){var i=t.call(this,r,n)||this;return i.kind=75,i}return _(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(i);l.prototype.kind=75;var d=function(t){function r(e,r,n){return t.call(this,r,n)||this}return _(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(i);d.prototype.kind=76;var p=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}(),f=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=m(e.singleElementArray(this.declaration),this.checker))},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}();function g(t){return e.getJSDocTags(t).some((function(e){return"inheritDoc"===e.tagName.text}))}function m(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocCommentsFromDeclarations(t);return(0===n.length||t.some(g))&&e.forEachUnique(t,(function(t){var i=function(t,r,n){return e.firstDefined(t.parent?e.getAllSuperTypeNodes(t.parent):e.emptyArray,(function(e){var t=n.getTypeAtLocation(e),i=t&&n.getPropertyOfType(t,r),a=i&&i.getDocumentationComment(n);return a&&a.length?a:void 0}))}(t,t.symbol.name,r);i&&(n=0===n.length?i.slice():i.concat(e.lineBreakPart(),n))})),n}var y=function(t){function r(e,r,n){var i=t.call(this,e,r,n)||this;return i.kind=290,i}return _(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 244:case 201:case 161:case 160: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 245:case 214:case 246:case 247:case 248:case 249:case 253:case 263:case 258:case 255:case 256:case 163:case 164:case 173:r(a),e.forEachChild(a,i);break;case 156:if(!e.hasModifier(a,92))break;case 242:case 191:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 284:case 159:case 158:r(a);break;case 260:var _=a;_.exportClause&&(e.isNamedExports(_.exportClause)?e.forEach(_.exportClause.elements,i):i(_.exportClause.name));break;case 254:var d=a.importClause;d&&(d.name&&r(d.name),d.namedBindings&&(256===d.namedBindings.kind?r(d.namedBindings):e.forEach(d.namedBindings.elements,i)));break;case 209: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),v=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 h(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!b(n)){r=!1;break}if(r)return t;var i={};for(var n in t){if(e.hasProperty(t,n))i[b(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]}return i}function b(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function x(){return{target:1,jsx:1}}e.toEditorSettings=h,e.displayPartsToString=function(t){return t?e.map(t,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=x,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var D=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();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}(),S=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=T(t,r,99,a,!0,i);else if(this.currentFileVersion!==a){var o=r.getChangeRange(this.currentFileScriptSnapshot);n=k(this.currentSourceFile,r,a,o)}return n&&(this.currentFileVersion=a,this.currentFileName=t,this.currentFileScriptSnapshot=r,this.currentSourceFile=n),this.currentSourceFile},t}();function C(e,t,r){e.version=r,e.scriptSnapshot=t}function T(t,r,n,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(r),n,a,o);return C(s,r,i),s}function k(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 C(l,r,n),l.nameTable=void 0,t!==l&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),l}return T(t.fileName,r,t.languageVersion,n,!0,t.scriptKind)}e.createLanguageServiceSourceFile=T,e.updateLanguageServiceSourceFile=k;var E=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return!!this.cancellationToken&&this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}(),N=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 new e.OperationCanceledException},t}();function A(t){var r=function(t){switch(t.kind){case 10:case 14:case 8:if(154===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 75:return!e.isObjectLiteralElement(t.parent)||193!==t.parent.parent.kind&&274!==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)&&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.ThrottledCancellationToken=N,e.createLanguageService=function(t,r,n){var i;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),void 0===n&&(n=!1);var a,c,u=new S(t),l=0,_=new E(t.getCancellationToken&&t.getCancellationToken()),d=t.getCurrentDirectory();function p(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(t.getLocalizedDiagnosticMessages());var f=e.hostUsesCaseSensitiveFileNames(t),g=e.createGetCanonicalFileName(f),m=e.getSourceMapper({useCaseSensitiveFileNames:function(){return f},getCurrentDirectory:function(){return d},getProgram:b,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:p});function y(e){var t=a.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '"+e+"'.");throw r.ProgramFiles=a.getSourceFiles().map((function(e){return e.fileName})),r}return t}function v(){var i;if(e.Debug.assert(!n),t.getProjectVersion){var o=t.getProjectVersion();if(o){if(c===o&&!t.hasChangedAutomaticTypeDirectiveNames)return;c=o}}var s=t.getTypeRootsVersion?t.getTypeRootsVersion():0;l!==s&&(p("TypeRoots version has changed; provide new program"),a=void 0,l=s);var u=new D(t,g),y=u.getRootFileNames(),v=t.hasInvalidatedResolution||e.returnFalse,h=u.getProjectReferences();if(!e.isProgramUptoDate(a,y,u.compilationSettings(),(function(e,r){return t.getScriptVersion(r)}),T,v,!!t.hasChangedAutomaticTypeDirectiveNames,h)){var b=u.compilationSettings(),x={getSourceFile:function(t,r,n,i){return k(t,e.toPath(t,d,g),r,n,i)},getSourceFileByPath:k,getCancellationToken:function(){return _},getCanonicalFileName:g,useCaseSensitiveFileNames:function(){return f},getNewLine:function(){return e.getNewLineCharacter(b,(function(){return e.getNewLineOrDefaultFromHost(t)}))},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return d},fileExists:T,readFile:function(r){var n=e.toPath(r,d,g),i=u&&u.getEntryByPath(n);if(i)return e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot);return t.readFile&&t.readFile(r)},realpath:t.realpath&&function(e){return t.realpath(e)},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:v,hasChangedAutomaticTypeDirectiveNames:t.hasChangedAutomaticTypeDirectiveNames};t.trace&&(x.trace=function(e){return t.trace(e)}),t.resolveModuleNames&&(x.resolveModuleNames=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.resolveModuleNames.apply(t,e)}),t.resolveTypeReferenceDirectives&&(x.resolveTypeReferenceDirectives=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.resolveTypeReferenceDirectives.apply(t,e)}),t.useSourceOfProjectReferenceRedirect&&(x.useSourceOfProjectReferenceRedirect=function(){return t.useSourceOfProjectReferenceRedirect()}),null===(i=t.setCompilerHost)||void 0===i||i.call(t,x);var S=r.getKeyForCompilationSettings(b),C={rootNames:y,options:b,host:x,oldProgram:a,projectReferences:h};return a=e.createProgram(C),u=void 0,m.clearCache(),void a.getTypeChecker()}function T(r){var n=e.toPath(r,d,g),i=u&&u.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function k(t,n,i,o,s){e.Debug.assert(void 0!==u,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var c=u&&u.getOrCreateEntryByPath(t,n);if(c){if(!s){var l=a&&a.getSourceFileByPath(n);if(l)return e.Debug.assertEqual(c.scriptKind,l.scriptKind,"Registered script kind should match new script kind."),r.updateDocumentWithKey(t,n,b,S,c.scriptSnapshot,c.version,c.scriptKind)}return r.acquireDocumentWithKey(t,n,b,S,c.scriptSnapshot,c.version,c.scriptKind)}}}function b(){if(!n)return v(),a;e.Debug.assert(void 0===a)}function x(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some((function(t){return e.normalizePath(t)===i}))),v();var o=e.mapDefined(n,(function(e){return a.getSourceFile(e)})),s=y(t);return e.DocumentHighlights.getDocumentHighlights(a,_,s,r,o)}function C(t,r,n,i){v();var o=n&&2===n.use?a.getSourceFiles().filter((function(e){return!a.isSourceFileDefaultLibrary(e)})):a.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(a,_,o,t,r,n,i)}function T(r){var n=e.getScriptKind(r,t);return 3===n||4===n}var k=e.createMapFromTemplate(((i={})[18]=19,i[20]=21,i[22]=23,i[31]=29,i));function N(r){var n;return e.Debug.assertEqual(r.type,"install package"),t.installPackage?t.installPackage({fileName:(n=r.file,e.toPath(n,d,g)),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`")}function P(r,n,i,a){var o="number"===typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:o[0],endPosition:o[1],program:b(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:_,preferences:i}}return k.forEach((function(e,t){return k.set(e.toString(),Number(t))})),{dispose:function(){if(a){var n=r.getKeyForCompilationSettings(a.getCompilerOptions());e.forEach(a.getSourceFiles(),(function(e){return r.releaseDocumentWithKey(e.resolvedPath,n)})),a=void 0}t=void 0},cleanupSemanticCache:function(){a=void 0},getSyntacticDiagnostics:function(e){return v(),a.getSyntacticDiagnostics(y(e),_).slice()},getSemanticDiagnostics:function(t){v();var r=y(t),n=a.getSemanticDiagnostics(r,_);if(!e.getEmitDeclarations(a.getCompilerOptions()))return n.slice();var i=a.getDeclarationDiagnostics(r,_);return o(n,i)},getSuggestionDiagnostics:function(t){return v(),e.computeSuggestionDiagnostics(y(t),a,_)},getCompilerOptionsDiagnostics:function(){return v(),o(a.getOptionsDiagnostics(_),a.getGlobalDiagnostics(_))},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(_,u.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r){return T(t)?(v(),e.getSemanticClassifications(a.getTypeChecker(),_,y(t),a.getClassifiableNames(),r)):[]},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(_,u.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r){return T(t)?(v(),e.getEncodedSemanticClassifications(a.getTypeChecker(),_,y(t),a.getClassifiableNames(),r)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(r,n,i){void 0===i&&(i=e.emptyOptions);var o=s(s({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return v(),e.Completions.getCompletionsAtPosition(t,a,p,y(r),n,o,i.triggerCharacter)},getCompletionEntryDetails:function(r,n,i,o,s,c){return void 0===c&&(c=e.emptyOptions),v(),e.Completions.getCompletionEntryDetails(a,p,y(r),n,{name:i,source:s},t,o&&e.formatting.getFormatContext(o,t),c,_)},getCompletionEntrySymbol:function(r,n,i,o,s){return void 0===s&&(s=e.emptyOptions),v(),e.Completions.getCompletionEntrySymbol(a,p,y(r),n,{name:i,source:o},t,s)},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;v();var o=y(t);return e.SignatureHelp.getSignatureHelpItems(a,o,r,i,_)},getQuickInfoAtPosition:function(t,r){v();var n=y(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var o=a.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,o);if(!c||o.isUnknownSymbol(c)){var u=function(t,r,n){switch(r.kind){case 75:return!e.isLabelName(r)&&!e.isTagName(r);case 194:case 153:return!e.isInComment(t,n);case 104:case 183:case 102:return!0;default:return!1}}(n,s,r)?o.getTypeAtLocation(s):void 0;return u&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(s,n),displayParts:o.runWithCancellationToken(_,(function(t){return e.typeToDisplayParts(t,u,e.getContainerNode(s))})),documentation:u.symbol?u.symbol.getDocumentationComment(o):void 0,tags:u.symbol?u.symbol.getJsDocTags():void 0}}var l=o.runWithCancellationToken(_,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,c,n,e.getContainerNode(s),s)})),d=l.symbolKind,p=l.displayParts,f=l.documentation,g=l.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(c),textSpan:e.createTextSpanFromNode(s,n),displayParts:p,documentation:f,tags:g}}},getDefinitionAtPosition:function(t,r){return v(),e.GoToDefinition.getDefinitionAtPosition(a,y(t),r)},getDefinitionAndBoundSpan:function(t,r){return v(),e.GoToDefinition.getDefinitionAndBoundSpan(a,y(t),r)},getImplementationAtPosition:function(t,r){return v(),e.FindAllReferences.getImplementationsAtPosition(a,_,a.getSourceFiles(),y(t),r)},getTypeDefinitionAtPosition:function(t,r){return v(),e.GoToDefinition.getTypeDefinitionAtPosition(a.getTypeChecker(),y(t),r)},getReferencesAtPosition:function(t,r){return v(),C(e.getTouchingPropertyName(y(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return v(),e.FindAllReferences.findReferencedSymbols(a,_,a.getSourceFiles(),y(t),r)},getOccurrencesAtPosition:function(t,r){return e.flatMap(x(t,r,[t]),(function(e){return e.highlightSpans.map((function(t){return s(s({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})}))}))},getDocumentHighlights:x,getNameOrDottedNameSpan:function(t,r,n){var i=u.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 194:case 153:case 10:case 91:case 106:case 100:case 102:case 104:case 183:case 75:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(249!==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=u.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),v();var o=n?[y(n)]:a.getSourceFiles();return e.NavigateTo.getNavigateToItems(o,a.getTypeChecker(),_,t,r,i)},getRenameInfo:function(t,r,n){return v(),e.Rename.getRenameInfo(a,y(t),r,n)},getSmartSelectionRange:function(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,u.getCurrentSourceFile(t))},findRenameLocations:function(t,r,n,i,a){v();var o=y(t),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(o,r));if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var u=c.parent.parent;return[u.openingElement,u.closingElement].map((function(t){var r=e.createTextSpanFromNode(t.tagName,o);return s({fileName:o.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,o,t.parent))}))}return C(c,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(u.getCurrentSourceFile(t),_)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(u.getCurrentSourceFile(t),_)},getOutliningSpans:function(t){var r=u.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,_)},getTodoComments:function(t,r){v();var n=y(t);_.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);){_.throwIfCancellationRequested();e.Debug.assert(u.length===r.length+3);var l=u[1],d=u.index+l.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=u.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?k.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=h(n),o=u.getCurrentSourceFile(t);p("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return p("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(r,n,i,a){var o=u.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(h(a),t))},getFormattingEditsForDocument:function(r,n){return e.formatting.formatDocument(u.getCurrentSourceFile(r),e.formatting.getFormatContext(h(n),t))},getFormattingEditsAfterKeystroke:function(r,n,i,a){var o=u.getCurrentSourceFile(r),s=e.formatting.getFormatContext(h(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){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),u.getCurrentSourceFile(r),n)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=u.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=u.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&&function t(r){var n=r.openingElement,i=r.closingElement,a=r.parent;return!e.tagNamesAreEquivalent(n.tagName,i.tagName)||e.isJsxElement(a)&&e.tagNamesAreEquivalent(n.tagName,a.openingElement.tagName)&&t(a)}(a)?{newText:"</"+a.openingElement.tagName.getText(n)+">"}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=u.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,o,s,c){void 0===c&&(c=e.emptyOptions),v();var u=y(r),l=e.createTextSpanFromBounds(n,i),d=e.formatting.getFormatContext(s,t);return e.flatMap(e.deduplicate(o,e.equateValues,e.compareValues),(function(r){return _.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:u,span:l,program:a,host:t,cancellationToken:_,formatContext:d,preferences:c})}))},getCombinedCodeFix:function(r,n,i,o){void 0===o&&(o=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:a,host:t,cancellationToken:_,formatContext:c,preferences:o})},applyCodeActionCommand:function(t,r){var n="string"===typeof t?r:t;return e.isArray(n)?Promise.all(n.map((function(e){return N(e)}))):N(n)},organizeImports:function(r,n,i){void 0===i&&(i=e.emptyOptions),v(),e.Debug.assert("file"===r.type);var o=y(r.fileName),s=e.formatting.getFormatContext(n,t);return e.OrganizeImports.organizeImports(o,s,t,a,i)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(b(),r,n,t,e.formatting.getFormatContext(i,t),a,m)},getEmitOutput:function(r,n,i){v();var o=y(r),s=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(a,o,!!n,_,s,i)},getNonBoundSourceFile:function(e){return u.getCurrentSourceFile(e)},getProgram:b,getApplicableRefactors:function(t,r,n){void 0===n&&(n=e.emptyOptions),v();var i=y(t);return e.refactor.getApplicableRefactors(P(i,r,n))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),v();var s=y(t);return e.refactor.getEditsForRefactor(P(s,n,o,r),i,a)},toLineColumnOffset:m.toLineColumnOffset,getSourceMapper:function(){return m},clearSourceMapperCache:function(){return m.clearCache()},prepareCallHierarchy:function(t,r){v();var n=e.CallHierarchy.resolveCallHierarchyDeclaration(a,e.getTouchingPropertyName(y(t),r));return n&&e.mapOneOrMany(n,(function(t){return e.CallHierarchy.createCallHierarchyItem(a,t)}))},provideCallHierarchyIncomingCalls:function(t,r){v();var n=y(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(a,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getIncomingCalls(a,i,_):[]},provideCallHierarchyOutgoingCalls:function(t,r){v();var n=y(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(a,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getOutgoingCalls(a,i):[]}}},e.getNameTable=function(t){return t.nameTable||function(t){var r=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild((function t(n){if(e.isIdentifier(n)&&!e.isTagName(n)&&n.escapedText||e.isStringOrNumericLiteralLike(n)&&function(t){return e.isDeclarationName(t)||265===t.parent.kind||function(e){return e&&e.parent&&195===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){return a+e.directorySeparator+e.getDefaultLibFileName(t)},e.setObjectAllocator({getNodeConstructor:function(){return r},getTokenConstructor:function(){return u},getIdentifierConstructor:function(){return l},getPrivateIdentifierConstructor:function(){return d},getSourceFileConstructor:function(){return y},getSymbolConstructor:function(){return c},getTypeConstructor:function(){return p},getSignatureConstructor:function(){return f},getSourceMapSourceConstructor:function(){return v}})}(d||(d={})),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 225:return v(r.declarationList.declarations[0]);case 242:case 159:case 158:return v(r);case 156:return function t(r){if(e.isBindingPattern(r.name))return D(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(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 244:case 161:case 160:case 163:case 164:case 162:case 201:case 202:return function(e){if(!e.body)return;if(h(e))return o(e);return _(e.body)}(r);case 223: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 250:return b(r);case 280:return b(r.block);case 226:return o(r.expression);case 235:return o(r.getChildAt(0),r.expression);case 229:return s(r,r.expression);case 228:return _(r.statement);case 241:return o(r.getChildAt(0));case 227:return s(r,r.expression);case 238:return _(r.statement);case 234:case 233:return o(r.getChildAt(0),r.label);case 230: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 231:return s(r,r.expression);case 232:return x(r);case 237:return s(r,r.expression);case 277:case 278:return _(r.statements[0]);case 240:return b(r.tryBlock);case 239:case 259:return o(r,r.expression);case 253:return o(r,r.moduleReference);case 254:case 260:return o(r,r.moduleSpecifier);case 249:if(1!==e.getModuleInstanceState(r))return;case 245:case 248:case 284:case 191:return o(r);case 236:return _(r.statement);case 157:return m=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,m.pos),m.end);case 189:case 190:return D(r);case 246:case 247: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 248:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 245:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 251:return c(r.parent.parent,r.parent.clauses[0])}return _(r.parent)}(r);case 19:return function(t){switch(t.parent.kind){case 250:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 248:case 245:return o(t);case 223:if(e.isFunctionBlock(t.parent))return o(t);case 280:return _(e.lastOrUndefined(t.parent.statements));case 251:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?_(e.lastOrUndefined(n.statements)):void 0;case 189: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 190: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(228===e.parent.kind||196===e.parent.kind||197===e.parent.kind)return u(e);if(200===e.parent.kind)return l(e);return _(e.parent)}(r);case 21:return function(e){switch(e.parent.kind){case 201:case 244:case 202:case 161:case 160:case 163:case 164:case 162:case 229:case 228:case 230:case 232:case 196:case 197:case 200:return u(e);default:return _(e.parent)}}(r);case 58:return function(t){if(e.isFunctionLike(t.parent)||281===t.parent.kind||156===t.parent.kind)return u(t);return _(t.parent)}(r);case 31:case 29:return function(e){if(199===e.parent.kind)return l(e);return _(e.parent)}(r);case 111:return function(e){if(228===e.parent.kind)return s(e,e.parent.expression);return _(e.parent)}(r);case 87:case 79:case 92:return l(r);case 152:return function(e){if(232===e.parent.kind)return l(e);return _(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return S(r);if((75===r.kind||213===r.kind||281===r.kind||282===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(209===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 228:return u(r);case 157:return _(r.parent);case 230:case 232:return o(r);case 209:if(27===r.parent.operatorToken.kind)return o(r);break;case 202:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 281:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return _(r.parent.initializer);break;case 199:if(r.parent.type===r)return l(r.parent.type);break;case 242:case 156:var p=r.parent,f=p.initializer,g=p.type;if(f===r||g===r||e.isAssignmentOperator(r.kind))return u(r);break;case 209: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(231===r.parent.parent.kind)return _(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?D(r.name):r.initializer||e.hasModifier(r,1)||232===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.hasModifier(t,1)||245===t.parent.kind&&162!==t.kind}function b(r){switch(r.parent.kind){case 249:if(1!==e.getModuleInstanceState(r.parent))return;case 229:case 227:case 231:return c(r.parent,r.statements[0]);case 230:case 232:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return _(r.statements[0])}function x(e){if(243!==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 215!==e.kind?e:void 0}));return r?_(r):191===t.parent.kind?o(t.parent):y(t.parent)}function S(t){e.Debug.assert(190!==t.kind&&189!==t.kind);var r=192===t.kind?t.elements:t.properties,n=e.forEach(r,(function(e){return 215!==e.kind?e:void 0}));return n?_(n):o(209===t.parent.kind?t.parent:t)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(d||(d={})),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,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(d||(d={}));var d,p=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(t){return this.log(t.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 c(e,t,!0,r,n)}function c(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(c){return c instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,c),c.description=n,JSON.stringify({error:c}))}}e.CoreServicesShimHostAdapter=i;var u=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function d(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}}(t,r)}))}e.realizeDiagnostics=d;var f=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 _(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,p&&p.CollectGarbage&&(p.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 d(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 g(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 g(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.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){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)}))},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=l(r,["diagnostics"]);return s(s({},i),{diagnostics:t.realizeDiagnostics(n)})}))},r.prototype.getEmitOutputObject=function(e){var t=this;return c(this.logger,"getEmitOutput('"+e+"')",!1,(function(){return t.languageService.getEmitOutput(e)}),this.logPerformance)},r}(u);function g(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var m=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 _(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),a(this.logger,"getEncodedLexicalClassifications",(function(){return g(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}(u),y=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 _(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),s=e.parseJsonSourceFileConfigFileContent(i,n.host,e.getDirectoryPath(a),{},a);return{options:s.options,typeAcquisition:s.typeAcquisition,files:s.fileNames,raw:s.raw,errors:d(o(i.parseDiagnostics,s.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}(u),v=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 f(this,r,a)}catch(o){throw t(r,o),o}},r.prototype.createClassifierShim=function(e){try{return new m(this,e)}catch(r){throw t(e,r),r}},r.prototype.createCoreServicesShim=function(e){try{var r=new i(e);return new y(this,e,r)}catch(n){throw t(e,n),n}},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=v}(d||(d={})),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}}(),globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=d.TypeScriptServicesFactory,globalThis.toolsVersion=d.versionMajorMinor,e.exports&&(e.exports=d)}).call(this,r("8oxB"),"/index.js",r("yLpj"),"/")}}]);